@phonghq/go-chat 1.0.55 → 1.0.56

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.
@@ -28,7 +28,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
28
28
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
29
29
  */const Nl=f.ref(""),ev=f.ref("granted"),mD=async()=>{if(navigator.permissions&&navigator.permissions.query)try{const e=await navigator.permissions.query({name:"microphone"});e.state=="prompt"?Nl.value="Microphone access is needed. Please allow microphone permission to continue.":e.state=="denied"&&(Nl.value="You have denied microphone access. Please enable microphone permission in your browser to continue the call."),ev.value=e.state}catch(e){console.log(e)}},tv=e=>{Nl.value=e},hD={qos:1,retain:!1};let Tt=null,RY=`_${Date.now()}_${Math.floor(Math.random()*1e3)}`,Eo=!1;const xl=new Set;let Vd=[],nv=0;const MY=5,qd=async()=>{const e=await OY();e!=null&&e.is_new_connect&&(xl.forEach(t=>{Tt==null||Tt.subscribe(t,hD,n=>{n?console.error(`Failed to subscribe ${t}`,n):console.log(`Subscribed to ${t}`)})}),Tt==null||Tt.on("message",(t,n)=>{try{let i=n;if(n instanceof Uint8Array){const o=new TextDecoder("utf-8");i=JSON.parse(o.decode(n))}console.log(t,i),Vd.filter(o=>o.topic===t).forEach(o=>{o.callBack(t,i)})}catch(i){console.error("Error parsing message:",i)}}))},OY=()=>new Promise((e,t)=>{if(nv=0,Tt&&Eo)return e({});Tt==null||Tt.removeAllListeners();const n=JSON.parse(localStorage.getItem("user")||"{}"),o={protocolVersion:5,clientId:`${n==null?void 0:n.id}_${RY}`,host:"mqtt-digital-signage.dev01.dtsmart.dev",port:443,protocol:"wss",username:"admin123",password:"admin123",clean:!1,reconnectPeriod:1e3,path:"/mqtt"},{host:r,port:s,path:l,...u}=o,d=`wss://${r}:${s}${l}`;Tt=CY.connect(d,u),Tt==null||Tt.on("reconnect",()=>{console.log("Reconnecting..."),nv++,nv>=MY&&t()}),Tt==null||Tt.on("offline",()=>{console.log("ssssssssssssssssssssssssssss"),Eo=!1}),Tt==null||Tt.on("close",()=>{console.log("ssssssssssssssssssssssssssss"),Eo=!1}),Tt==null||Tt.on("error",c=>{console.log("ssssssssssssssssssssssssssss"),Eo=!1,t(c)}),Tt==null||Tt.on("connect",()=>{Eo=!0,setTimeout(()=>{e({is_new_connect:!0})},200)})}),iv=e=>{xl.has(e)||!e||Eo&&(Tt==null||Tt.subscribe(e,hD,t=>{t?console.error(`Failed to subscribe ${e}`,t):(xl.add(e),console.log(`Subscribed to ${e}`))}))},ov=async e=>{if(e){if(!Eo||!Tt){xl.delete(e);return}try{await new Promise((t,n)=>{Tt==null||Tt.unsubscribe(e,i=>{i?n(i):t()})}),xl.delete(e),console.log(`Unsubscribed from ${e}`)}catch(t){console.error(`Failed to unsubscribe ${e}`,t)}}},Gd=async(e,t)=>{if(Eo||await qd(),Eo&&t){const n=typeof t!="string"?JSON.stringify(t):t;Tt==null||Tt.publish(e,n,{qos:1,retain:!1,properties:{messageExpiryInterval:60}},i=>{i&&console.error(`Failed to publish message to ${e}`,i)})}},yD=(e,t,n)=>{rv(e),Vd.push({key:e,callBack:n,topic:t})},rv=e=>{const t=Vd.findIndex(n=>n.key===e);t>-1&&Vd.splice(t,1)},gD="call/message/",wY="sms-inbound/",Cr=["chat/conversation/update/sms-inbound/","chat/conversation/read_message/"],ED=async e=>await cn.get("/api/v1/message/conversation/get-conversation",{params:e}),NY=async e=>{let t=await cn.get("/api/v1/message/conversation/view",{params:{id:e}});return t.receiver_id=t.customer_id??0,t},xY=async e=>{var s,l,u,d,c,a,p,v,_,m,h,E,g,y,b;const t=await vH({conversation_id:((s=e.infoUser)==null?void 0:s.conversation_id)??0,receiver_id:Number((l=e.infoUser)==null?void 0:l.id)});let n=e.message??"";e.isSendImg?n="Photo":e.isCall!=null&&e.isCall=="call"&&(n="Call ended");const i=kt().tz(rd).format(Is.DATE_FORMAT_FULL),o={id:((u=e.infoUser)==null?void 0:u.conversation_id)??0,receiver_id:Number(((d=Xe.value)==null?void 0:d.id)??0),username:"",phone:((c=Xe.value)==null?void 0:c.phone)??"",avatar:((a=Xe.value)==null?void 0:a.avatar)??"",last_message:n,last_message_time:i,created_at:i,updated_at:i,unread_count:(t==null?void 0:t.unread_count)??0,status:1,color:((p=Xe.value)==null?void 0:p.color)??"",is_call:"",is_unknown:e.is_unknown};Gd(`${Cr[0]+Number((v=e.infoUser)==null?void 0:v.id)}`,JSON.stringify(o));const r={id:((_=e.infoUser)==null?void 0:_.conversation_id)??0,receiver_id:Number(((m=e.infoUser)==null?void 0:m.id)??0),username:((h=e.infoUser)==null?void 0:h.username)??"",phone:((E=e.infoUser)==null?void 0:E.phone)??"",avatar:((g=e.infoUser)==null?void 0:g.avatar)??"",last_message:n,last_message_time:i,created_at:i,updated_at:i,unread_count:0,status:1,color:(y=e.infoUser)==null?void 0:y.color,is_unknown:e.is_unknown};Gd(`${Cr[0]+Number((b=Xe.value)==null?void 0:b.id)}`,JSON.stringify(r))},PY={class:"loader-line"},DY={class:"loader-line"},Wi=20,sv=Pt(f.defineComponent({__name:"ScrollEvent",props:{top:{type:Boolean},bottom:{type:Boolean},disabled:{type:Boolean}},emits:["getDataBottom","getDataTop"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=f.ref(null),s=f.ref(!1),l=f.ref(!1);let u=!1,d=!1,c=0,a=0,p=0,v=0;const _=()=>{var S;s.value&&i.bottom&&o("getDataBottom"),l.value&&i.top&&(v=((S=r.value)==null?void 0:S.scrollHeight)??0,console.log(v),o("getDataTop"))},m=Co((S,I)=>{h(S,I)},10),h=async(S,I)=>{if(i.disabled)return;if(p=I.scrollTop,I&&I.scrollHeight<=I.clientHeight){S.touches[0].clientY>c?l.value=!0:l.value=!1;return}if(I&&I.scrollHeight<=I.clientHeight){S.touches[0].clientY<c?s.value=!0:s.value=!1;return}if(d){S.touches[0].clientY>c?l.value=!0:l.value=!1;return}if(u){S.touches[0].clientY<c?s.value=!0:s.value=!1;return}const A=I.scrollHeight-a-I.clientHeight,R=I.scrollHeight-p-I.clientHeight;A>Wi&&R<=Wi?s.value=!0:R>Wi&&(s.value=!1),a>Wi&&p<=Wi?l.value=!0:p>Wi&&(l.value=!1),a=p},E=async(S,I)=>{if(c=S.touches[0].clientY,!I){u=!1,d=!1;return}I&&I.scrollTop<Wi?d=!0:d=!1,I.scrollHeight-I.scrollTop-I.clientHeight<Wi?u=!0:u=!1},g=()=>{s.value=!1,l.value=!1},y=(S,I)=>{if(i.disabled)return;const A=I.scrollTop,R=I.scrollHeight,M=I.clientHeight;A<=Wi&&!l.value?(l.value=!0,i.top&&(o("getDataTop"),v=R)):l.value&&(l.value=!1),A+M>=R-Wi?(i.bottom&&o("getDataBottom"),s.value=!0):s.value=!1};return t({hideLoading:g,fixedScroll:()=>{var I;const S=((I=r.value)==null?void 0:I.scrollHeight)??0;r.value.scrollTop+=S-v},canScroll:()=>r.value?r.value.scrollHeight>r.value.clientHeight:!1}),(S,I)=>(f.openBlock(),f.createElementBlock("div",{onTouchend:_,onTouchmove:I[0]||(I[0]=A=>f.unref(m)(A,r.value)),onTouchstart:I[1]||(I[1]=A=>E(A,r.value)),onScroll:I[2]||(I[2]=A=>y(A,r.value)),ref_key:"scrollEvent",ref:r},[f.withDirectives(f.createElementVNode("div",PY,null,512),[[f.vShow,l.value&&S.top]]),f.renderSlot(S.$slots,"default",{},void 0,!0),f.withDirectives(f.createElementVNode("div",DY,null,512),[[f.vShow,s.value&&S.bottom]])],544))}}),[["__scopeId","data-v-ba6deada"]]);var TD={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Zr,function(){return function(n,i,o){n=n||{};var r=i.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(d,c,a,p){return r.fromToBase(d,c,a,p)}o.en.relativeTime=s,r.fromToBase=function(d,c,a,p,v){for(var _,m,h,E=a.$locale().relativeTime||s,g=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],y=g.length,b=0;b<y;b+=1){var T=g[b];T.d&&(_=p?o(d).diff(a,T.d,!0):a.diff(d,T.d,!0));var S=(n.rounding||Math.round)(Math.abs(_));if(h=_>0,S<=T.r||!T.r){S<=1&&b>0&&(T=g[b-1]);var I=E[T.l];v&&(S=v(""+S)),m=typeof I=="string"?I.replace("%d",S):I(S,c,T.l,h);break}}if(c)return m;var A=h?E.future:E.past;return typeof A=="function"?A(m):A.replace("%s",m)},r.to=function(d,c){return l(d,c,this,!0)},r.from=function(d,c){return l(d,c,this)};var u=function(d){return d.$u?o.utc():o()};r.toNow=function(d){return this.to(u(this),d)},r.fromNow=function(d){return this.from(u(this),d)}}})})(TD);var kY=TD.exports;const LY=Mo(kY);var bD={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Zr,function(){return function(n,i,o){o.updateLocale=function(r,s){var l=o.Ls[r];if(l)return(s?Object.keys(s):[]).forEach(function(u){l[u]=s[u]}),l}}})})(bD);var UY=bD.exports;const BY=Mo(UY);var SD={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Zr,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,s,l){var u=s.prototype;l.utc=function(m){var h={date:m,utc:!0,args:arguments};return new s(h)},u.utc=function(m){var h=l(this.toDate(),{locale:this.$L,utc:!0});return m?h.add(this.utcOffset(),n):h},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var d=u.parse;u.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),d.call(this,m)};var c=u.init;u.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else c.call(this)};var a=u.utcOffset;u.utcOffset=function(m,h){var E=this.$utils().u;if(E(m))return this.$u?0:E(this.$offset)?a.call(this):this.$offset;if(typeof m=="string"&&(m=function(T){T===void 0&&(T="");var S=T.match(i);if(!S)return null;var I=(""+S[0]).match(o)||["-",0,0],A=I[0],R=60*+I[1]+ +I[2];return R===0?0:A==="+"?R:-R}(m),m===null))return this;var g=Math.abs(m)<=16?60*m:m,y=this;if(h)return y.$offset=g,y.$u=m===0,y;if(m!==0){var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(g+b,n)).$offset=g,y.$x.$localOffset=b}else y=this.utc();return y};var p=u.format;u.format=function(m){var h=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,h)},u.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var v=u.toDate;u.toDate=function(m){return m==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var _=u.diff;u.diff=function(m,h,E){if(m&&this.$u===m.$u)return _.call(this,m,h,E);var g=this.local(),y=l(m).local();return _.call(g,y,h,E)}}})})(SD);var jY=SD.exports;const ID=Mo(jY);var AD={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Zr,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(o,r,s){var l,u=function(p,v,_){_===void 0&&(_={});var m=new Date(p),h=function(E,g){g===void 0&&(g={});var y=g.timeZoneName||"short",b=E+"|"+y,T=i[b];return T||(T=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:E,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:y}),i[b]=T),T}(v,_);return h.formatToParts(m)},d=function(p,v){for(var _=u(p,v),m=[],h=0;h<_.length;h+=1){var E=_[h],g=E.type,y=E.value,b=n[g];b>=0&&(m[b]=parseInt(y,10))}var T=m[3],S=T===24?0:T,I=m[0]+"-"+m[1]+"-"+m[2]+" "+S+":"+m[4]+":"+m[5]+":000",A=+p;return(s.utc(I).valueOf()-(A-=A%1e3))/6e4},c=r.prototype;c.tz=function(p,v){p===void 0&&(p=l);var _,m=this.utcOffset(),h=this.toDate(),E=h.toLocaleString("en-US",{timeZone:p}),g=Math.round((h-new Date(E))/1e3/60),y=15*-Math.round(h.getTimezoneOffset()/15)-g;if(!Number(y))_=this.utcOffset(0,v);else if(_=s(E,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(y,!0),v){var b=_.utcOffset();_=_.add(m-b,"minute")}return _.$x.$timezone=p,_},c.offsetName=function(p){var v=this.$x.$timezone||s.tz.guess(),_=u(this.valueOf(),v,{timeZoneName:p}).find(function(m){return m.type.toLowerCase()==="timezonename"});return _&&_.value};var a=c.startOf;c.startOf=function(p,v){if(!this.$x||!this.$x.$timezone)return a.call(this,p,v);var _=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(_,p,v).tz(this.$x.$timezone,!0)},s.tz=function(p,v,_){var m=_&&v,h=_||v||l,E=d(+s(),h);if(typeof p!="string")return s(p).tz(h);var g=function(S,I,A){var R=S-60*I*1e3,M=d(R,A);if(I===M)return[R,I];var x=d(R-=60*(M-I)*1e3,A);return M===x?[R,M]:[S-60*Math.min(M,x)*1e3,Math.max(M,x)]}(s.utc(p,m).valueOf(),E,h),y=g[0],b=g[1],T=s(y).utcOffset(b);return T.$x.$timezone=h,T},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){l=p}}})})(AD);var FY=AD.exports;const CD=Mo(FY),VY={},qY={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"};function GY(e,t){return f.openBlock(),f.createElementBlock("svg",qY,t[0]||(t[0]=[f.createElementVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#1DA1F2"},null,-1),f.createElementVNode("path",{d:"M9 12.5l2 2 4-4",fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const HY=Pt(VY,[["render",GY]]);function zY(e){if(!f.isRef(e))return f.reactive(e);const t=new Proxy({},{get(n,i,o){return f.unref(Reflect.get(e.value,i,o))},set(n,i,o){return f.isRef(e.value[i])&&!f.isRef(o)?e.value[i].value=o:e.value[i]=o,!0},deleteProperty(n,i){return Reflect.deleteProperty(e.value,i)},has(n,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return f.reactive(t)}function YY(e){return zY(f.computed(e))}function Hd(e,...t){const n=t.flat(),i=n[0];return YY(()=>Object.fromEntries(typeof i=="function"?Object.entries(f.toRefs(e)).filter(([o,r])=>!i(f.toValue(r),o)):Object.entries(f.toRefs(e)).filter(o=>!n.includes(o[0]))))}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Rr(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,i=Symbol(n);return[s=>{const l=f.inject(i,s);if(l||l===null)return l;throw new Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(f.provide(i,s),s)]}function Go(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function RD(e,t,n){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),i.dispatchEvent(o)}function lv(e){return e?e.flatMap(t=>t.type===f.Fragment?lv(t.children):[t]):[]}const[uv,Eoe]=Rr("ConfigProvider");function WY(e,t){var n;const i=f.shallowRef();return f.watchEffect(()=>{i.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),f.readonly(i)}function MD(e){return f.getCurrentScope()?(f.onScopeDispose(e),!0):!1}function $Y(e){let t=!1,n;const i=f.effectScope(!0);return(...o)=>(t||(n=i.run(()=>e(...o)),t=!0),n)}function KY(e){let t=0,n,i;const o=()=>{t-=1,i&&t<=0&&(i.stop(),n=void 0,i=void 0)};return(...r)=>(t+=1,i||(i=f.effectScope(!0),n=i.run(()=>e(...r))),MD(o),n)}function QY(e){if(!f.isRef(e))return f.reactive(e);const t=new Proxy({},{get(n,i,o){return f.unref(Reflect.get(e.value,i,o))},set(n,i,o){return f.isRef(e.value[i])&&!f.isRef(o)?e.value[i].value=o:e.value[i]=o,!0},deleteProperty(n,i){return Reflect.deleteProperty(e.value,i)},has(n,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return f.reactive(t)}function JY(e){return QY(f.computed(e))}function XY(e,...t){const n=t.flat(),i=n[0];return JY(()=>Object.fromEntries(typeof i=="function"?Object.entries(f.toRefs(e)).filter(([o,r])=>!i(f.toValue(r),o)):Object.entries(f.toRefs(e)).filter(o=>!n.includes(o[0]))))}const Ho=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ZY=e=>typeof e<"u",eW=Object.prototype.toString,tW=e=>eW.call(e)==="[object Object]",OD=nW();function nW(){var e,t;return Ho&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function iW(e){return f.getCurrentInstance()}function dv(e){return Array.isArray(e)?e:[e]}function oW(e,t){iW()&&f.onBeforeUnmount(e,t)}function rW(e,t,n){return f.watch(e,t,{...n,immediate:!0})}const cv=Ho?window:void 0;function xs(e){var t;const n=f.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function av(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},i=(l,u,d,c)=>(l.addEventListener(u,d,c),()=>l.removeEventListener(u,d,c)),o=f.computed(()=>{const l=dv(f.toValue(e[0])).filter(u=>u!=null);return l.every(u=>typeof u!="string")?l:void 0}),r=rW(()=>{var l,u;return[(u=(l=o.value)==null?void 0:l.map(d=>xs(d)))!=null?u:[cv].filter(d=>d!=null),dv(f.toValue(o.value?e[1]:e[0])),dv(f.unref(o.value?e[2]:e[1])),f.toValue(o.value?e[3]:e[2])]},([l,u,d,c])=>{if(n(),!(l!=null&&l.length)||!(u!=null&&u.length)||!(d!=null&&d.length))return;const a=tW(c)?{...c}:c;t.push(...l.flatMap(p=>u.flatMap(v=>d.map(_=>i(p,v,_,a)))))},{flush:"post"}),s=()=>{r(),n()};return MD(n),s}function sW(){const e=f.shallowRef(!1),t=f.getCurrentInstance();return t&&f.onMounted(()=>{e.value=!0},t),e}function lW(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function uW(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=cv,eventName:r="keydown",passive:s=!1,dedupe:l=!1}=i,u=lW(t);return av(o,r,c=>{c.repeat&&f.toValue(l)||u(c)&&n(c)},s)}function dW(e){return JSON.parse(JSON.stringify(e))}function zd(e,t,n,i={}){var o,r,s;const{clone:l=!1,passive:u=!1,eventName:d,deep:c=!1,defaultValue:a,shouldEmit:p}=i,v=f.getCurrentInstance(),_=n||(v==null?void 0:v.emit)||((o=v==null?void 0:v.$emit)==null?void 0:o.bind(v))||((s=(r=v==null?void 0:v.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(v==null?void 0:v.proxy));let m=d;t||(t="modelValue"),m=m||`update:${t.toString()}`;const h=y=>l?typeof l=="function"?l(y):dW(y):y,E=()=>ZY(e[t])?h(e[t]):a,g=y=>{p?p(y)&&_(m,y):_(m,y)};if(u){const y=E(),b=f.ref(y);let T=!1;return f.watch(()=>e[t],S=>{T||(T=!0,b.value=h(S),f.nextTick(()=>T=!1))}),f.watch(b,S=>{!T&&(S!==e[t]||c)&&g(S)},{deep:c}),b}else return f.computed({get(){return E()},set(y){g(y)}})}function fv(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function pv(e,t,n=".",i){if(!fv(t))return pv(e,{},n,i);const o=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const s=e[r];s!=null&&(i&&i(o,r,s,n)||(Array.isArray(s)&&Array.isArray(o[r])?o[r]=[...s,...o[r]]:fv(s)&&fv(o[r])?o[r]=pv(s,o[r],(n?`${n}.`:"")+r.toString(),i):o[r]=s))}return o}function cW(e){return(...t)=>t.reduce((n,i)=>pv(n,i,"",e),{})}const aW=cW(),fW=KY(()=>{const e=f.ref(new Map),t=f.ref(),n=f.computed(()=>{for(const s of e.value.values())if(s)return!0;return!1}),i=uv({scrollBody:f.ref(!0)});let o=null;const r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",OD&&(o==null||o()),t.value=void 0};return f.watch(n,(s,l)=>{var a;if(!Ho)return;if(!s){l&&r();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},c=(a=i.scrollBody)!=null&&a.value?typeof i.scrollBody.value=="object"?aW({padding:i.scrollBody.value.padding===!0?u:i.scrollBody.value.padding,margin:i.scrollBody.value.margin===!0?u:i.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),OD&&(o=av(document,"touchmove",p=>_W(p),{passive:!1})),f.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function pW(e){const t=Math.random().toString(36).substring(2,7),n=fW();n.value.set(t,e);const i=f.computed({get:()=>n.value.get(t)??!1,set:o=>n.value.set(t,o)});return oW(()=>{n.value.delete(t)}),i}function wD(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:wD(n)}}function _W(e){const t=e||window.event,n=t.target;return n instanceof Element&&wD(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function ND(e){const t=uv({dir:f.ref("ltr")});return f.computed(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function vW(e){const t=f.getCurrentInstance(),n=t==null?void 0:t.type.emits,i={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(o=>{i[f.toHandlerKey(f.camelize(o))]=(...r)=>e(o,...r)}),i}let _v=0;function mW(){f.watchEffect(e=>{if(!Ho)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??xD()),document.body.insertAdjacentElement("beforeend",t[1]??xD()),_v++,e(()=>{_v===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),_v--})})}function xD(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function li(){const e=f.getCurrentInstance(),t=f.ref(),n=f.computed(()=>{var s,l;return["#text","#comment"].includes((s=t.value)==null?void 0:s.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:xs(t)}),i=Object.assign({},e.exposed),o={};for(const s in e.props)Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(i).length>0)for(const s in i)Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get:()=>i[s]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function r(s){t.value=s,s&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),e.exposed=o)}return{forwardRef:r,currentRef:t,currentElement:n}}function vv(e){const t=f.getCurrentInstance(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((o,r)=>{const s=(t==null?void 0:t.type.props[r]).default;return s!==void 0&&(o[r]=s),o},{}),i=f.toRef(e);return f.computed(()=>{const o={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(s=>{o[f.camelize(s)]=r[s]}),Object.keys({...n,...o}).reduce((s,l)=>(i.value[l]!==void 0&&(s[l]=i.value[l]),s),{})})}function Mr(e,t){const n=vv(e),i=t?vW(t):{};return f.computed(()=>({...n.value,...i}))}var hW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ps=new WeakMap,Yd=new WeakMap,Wd={},mv=0,PD=function(e){return e&&(e.host||PD(e.parentNode))},yW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=PD(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gW=function(e,t,n,i){var o=yW(t,Array.isArray(e)?e:[e]);Wd[n]||(Wd[n]=new WeakMap);var r=Wd[n],s=[],l=new Set,u=new Set(o),d=function(a){!a||l.has(a)||(l.add(a),d(a.parentNode))};o.forEach(d);var c=function(a){!a||u.has(a)||Array.prototype.forEach.call(a.children,function(p){if(l.has(p))c(p);else try{var v=p.getAttribute(i),_=v!==null&&v!=="false",m=(Ps.get(p)||0)+1,h=(r.get(p)||0)+1;Ps.set(p,m),r.set(p,h),s.push(p),m===1&&_&&Yd.set(p,!0),h===1&&p.setAttribute(n,"true"),_||p.setAttribute(i,"true")}catch(E){console.error("aria-hidden: cannot operate on ",p,E)}})};return c(t),l.clear(),mv++,function(){s.forEach(function(a){var p=Ps.get(a)-1,v=r.get(a)-1;Ps.set(a,p),r.set(a,v),p||(Yd.has(a)||a.removeAttribute(i),Yd.delete(a)),v||a.removeAttribute(n)}),mv--,mv||(Ps=new WeakMap,Ps=new WeakMap,Yd=new WeakMap,Wd={})}},EW=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=hW(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),gW(i,o,n,"aria-hidden")):function(){return null}};function TW(e){let t;f.watch(()=>xs(e),n=>{n?t=EW(n):t&&t()}),f.onUnmounted(()=>{t&&t()})}let bW=0;function Pl(e,t="reka"){var i;if("useId"in no)return`${t}-${(i=no.useId)==null?void 0:i.call(no)}`;const n=uv({useId:void 0});return n.useId?`${t}-${n.useId()}`:`${t}-${++bW}`}function SW(e){const t=f.ref(),n=f.computed(()=>{var o;return((o=t.value)==null?void 0:o.width)??0}),i=f.computed(()=>{var o;return((o=t.value)==null?void 0:o.height)??0});return f.onMounted(()=>{const o=xs(e);if(o){t.value={width:o.offsetWidth,height:o.offsetHeight};const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,d;if("borderBoxSize"in l){const c=l.borderBoxSize,a=Array.isArray(c)?c[0]:c;u=a.inlineSize,d=a.blockSize}else u=o.offsetWidth,d=o.offsetHeight;t.value={width:u,height:d}});return r.observe(o,{box:"border-box"}),()=>r.unobserve(o)}else t.value=void 0}),{width:n,height:i}}function IW(e,t){const n=f.ref(e);function i(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=i(r)}}}function AW(e,t){var h;const n=f.ref({}),i=f.ref("none"),o=f.ref(e),r=e.value?"mounted":"unmounted";let s;const l=((h=t.value)==null?void 0:h.ownerDocument.defaultView)??cv,{state:u,dispatch:d}=IW(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=E=>{var g;if(Ho){const y=new CustomEvent(E,{bubbles:!1,cancelable:!1});(g=t.value)==null||g.dispatchEvent(y)}};f.watch(e,async(E,g)=>{var b;const y=g!==E;if(await f.nextTick(),y){const T=i.value,S=$d(t.value);E?(d("MOUNT"),c("enter"),S==="none"&&c("after-enter")):S==="none"||S==="undefined"||((b=n.value)==null?void 0:b.display)==="none"?(d("UNMOUNT"),c("leave"),c("after-leave")):g&&T!==S?(d("ANIMATION_OUT"),c("leave")):(d("UNMOUNT"),c("after-leave"))}},{immediate:!0});const a=E=>{const g=$d(t.value),y=g.includes(CSS.escape(E.animationName)),b=u.value==="mounted"?"enter":"leave";if(E.target===t.value&&y&&(c(`after-${b}`),d("ANIMATION_END"),!o.value)){const T=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=l==null?void 0:l.setTimeout(()=>{var S;((S=t.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=T)})}E.target===t.value&&g==="none"&&d("ANIMATION_END")},p=E=>{E.target===t.value&&(i.value=$d(t.value))},v=f.watch(t,(E,g)=>{E?(n.value=getComputedStyle(E),E.addEventListener("animationstart",p),E.addEventListener("animationcancel",a),E.addEventListener("animationend",a)):(d("ANIMATION_END"),s!==void 0&&(l==null||l.clearTimeout(s)),g==null||g.removeEventListener("animationstart",p),g==null||g.removeEventListener("animationcancel",a),g==null||g.removeEventListener("animationend",a))},{immediate:!0}),_=f.watch(u,()=>{const E=$d(t.value);i.value=u.value==="mounted"?E:"none"});return f.onUnmounted(()=>{v(),_()}),{isPresent:f.computed(()=>["mounted","unmountSuspended"].includes(u.value))}}function $d(e){return e&&getComputedStyle(e).animationName||"none"}var DD=f.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var d;const{present:i,forceMount:o}=f.toRefs(e),r=f.ref(),{isPresent:s}=AW(i,r);n({present:s});let l=t.default({present:s.value});l=lv(l||[]);const u=f.getCurrentInstance();if(l&&(l==null?void 0:l.length)>1){const c=(d=u==null?void 0:u.parent)!=null&&d.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(a=>` - ${a}`).join(`
30
30
  `)].join(`
31
- `))}return()=>o.value||i.value||s.value?f.h(t.default({present:s.value})[0],{ref:c=>{const a=xs(c);return typeof(a==null?void 0:a.hasAttribute)>"u"||(a!=null&&a.hasAttribute("data-reka-popper-content-wrapper")?r.value=a.firstElementChild:r.value=a),a}}):null}});const hv=f.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var u;if(!n.default)return null;const i=lv(n.default()),o=i.findIndex(d=>d.type!==f.Comment);if(o===-1)return i;const r=i[o];(u=r.props)==null||delete u.ref;const s=r.props?f.mergeProps(t,r.props):t,l=f.cloneVNode({...r,props:{}},s);return i.length===1?l:(i[o]=l,i)}}}),CW=["area","img","input"],Jn=f.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const i=e.asChild?"template":e.as;return typeof i=="string"&&CW.includes(i)?()=>f.h(i,t):i!=="template"?()=>f.h(e.as,t,{default:n.default}):()=>f.h(hv,t,{default:n.default})}});function kD(){const e=f.ref(),t=f.computed(()=>{var n,i;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(i=e.value)==null?void 0:i.$el.nextElementSibling:xs(e)});return{primitiveElement:e,currentElement:t}}const[LD,RW]=Rr("CollapsibleRoot");var MW=f.defineComponent({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(e,{expose:t,emit:n}){const i=e,r=zd(i,"open",n,{defaultValue:i.defaultOpen,passive:i.open===void 0}),{disabled:s,unmountOnHide:l}=f.toRefs(i);return RW({contentId:"",disabled:s,open:r,unmountOnHide:l,onOpenToggle:()=>{s.value||(r.value=!r.value)}}),t({open:r}),li(),(u,d)=>(f.openBlock(),f.createBlock(f.unref(Jn),{as:u.as,"as-child":i.asChild,"data-state":f.unref(r)?"open":"closed","data-disabled":f.unref(s)?"":void 0},{default:f.withCtx(()=>[f.renderSlot(u.$slots,"default",{open:f.unref(r)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),OW=MW,wW=f.defineComponent({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(e,{emit:t}){const n=e,i=t,o=LD();o.contentId||(o.contentId=Pl(void 0,"reka-collapsible-content"));const r=f.ref(),{forwardRef:s,currentElement:l}=li(),u=f.ref(0),d=f.ref(0),c=f.computed(()=>o.open.value),a=f.ref(c.value),p=f.ref();f.watch(()=>{var _;return[c.value,(_=r.value)==null?void 0:_.present]},async()=>{await f.nextTick();const _=l.value;if(!_)return;p.value=p.value||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const m=_.getBoundingClientRect();d.value=m.height,u.value=m.width,a.value||(_.style.transitionDuration=p.value.transitionDuration,_.style.animationName=p.value.animationName)},{immediate:!0});const v=f.computed(()=>a.value&&o.open.value);return f.onMounted(()=>{requestAnimationFrame(()=>{a.value=!1})}),av(l,"beforematch",_=>{requestAnimationFrame(()=>{o.onOpenToggle(),i("contentFound")})}),(_,m)=>(f.openBlock(),f.createBlock(f.unref(DD),{ref_key:"presentRef",ref:r,present:_.forceMount||f.unref(o).open.value,"force-mount":!0},{default:f.withCtx(({present:h})=>{var E;return[f.createVNode(f.unref(Jn),f.mergeProps(_.$attrs,{id:f.unref(o).contentId,ref:f.unref(s),"as-child":n.asChild,as:_.as,hidden:h?void 0:f.unref(o).unmountOnHide.value?"":"until-found","data-state":v.value?void 0:f.unref(o).open.value?"open":"closed","data-disabled":(E=f.unref(o).disabled)!=null&&E.value?"":void 0,style:{"--reka-collapsible-content-height":`${d.value}px`,"--reka-collapsible-content-width":`${u.value}px`}}),{default:f.withCtx(()=>[!f.unref(o).unmountOnHide.value||h?f.renderSlot(_.$slots,"default",{key:0}):f.createCommentVNode("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]}),_:3},8,["present"]))}}),NW=wW,xW=f.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;li();const n=LD();return(i,o)=>{var r,s;return f.openBlock(),f.createBlock(f.unref(Jn),{type:i.as==="button"?"button":void 0,as:i.as,"as-child":t.asChild,"aria-controls":f.unref(n).contentId,"aria-expanded":f.unref(n).open.value,"data-state":f.unref(n).open.value?"open":"closed","data-disabled":(r=f.unref(n).disabled)!=null&&r.value?"":void 0,disabled:(s=f.unref(n).disabled)==null?void 0:s.value,onClick:f.unref(n).onOpenToggle},{default:f.withCtx(()=>[f.renderSlot(i.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}}),PW=xW;const DW="dismissableLayer.pointerDownOutside",kW="dismissableLayer.focusOutside";function UD(e,t){const n=t.closest("[data-dismissable-layer]"),i=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(i===n||o.indexOf(i)<o.indexOf(n)))}function LW(e,t,n=!0){var s;const i=((s=t==null?void 0:t.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=f.ref(!1),r=f.ref(()=>{});return f.watchEffect(l=>{if(!Ho||!f.toValue(n))return;const u=async c=>{const a=c.target;if(!(!(t!=null&&t.value)||!a)){if(UD(t.value,a)){o.value=!1;return}if(c.target&&!o.value){let v=function(){RD(DW,e,p)};const p={originalEvent:c};c.pointerType==="touch"?(i.removeEventListener("click",r.value),r.value=v,i.addEventListener("click",r.value,{once:!0})):v()}else i.removeEventListener("click",r.value);o.value=!1}},d=window.setTimeout(()=>{i.addEventListener("pointerdown",u)},0);l(()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",u),i.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{f.toValue(n)&&(o.value=!0)}}}function UW(e,t,n=!0){var r;const i=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=f.ref(!1);return f.watchEffect(s=>{if(!Ho||!f.toValue(n))return;const l=async u=>{if(!(t!=null&&t.value))return;await f.nextTick(),await f.nextTick();const d=u.target;!t.value||!d||UD(t.value,d)||u.target&&!o.value&&RD(kW,e,{originalEvent:u})};i.addEventListener("focusin",l),s(()=>i.removeEventListener("focusin",l))}),{onFocusCapture:()=>{f.toValue(n)&&(o.value=!0)},onBlurCapture:()=>{f.toValue(n)&&(o.value=!1)}}}const To=f.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var BW=f.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,i=t,{forwardRef:o,currentElement:r}=li(),s=f.computed(()=>{var _;return((_=r.value)==null?void 0:_.ownerDocument)??globalThis.document}),l=f.computed(()=>To.layersRoot),u=f.computed(()=>r.value?Array.from(l.value).indexOf(r.value):-1),d=f.computed(()=>To.layersWithOutsidePointerEventsDisabled.size>0),c=f.computed(()=>{const _=Array.from(l.value),[m]=[...To.layersWithOutsidePointerEventsDisabled].slice(-1),h=_.indexOf(m);return u.value>=h}),a=LW(async _=>{const m=[...To.branches].some(h=>h==null?void 0:h.contains(_.target));!c.value||m||(i("pointerDownOutside",_),i("interactOutside",_),await f.nextTick(),_.defaultPrevented||i("dismiss"))},r),p=UW(_=>{[...To.branches].some(h=>h==null?void 0:h.contains(_.target))||(i("focusOutside",_),i("interactOutside",_),_.defaultPrevented||i("dismiss"))},r);uW("Escape",_=>{u.value===l.value.size-1&&(i("escapeKeyDown",_),_.defaultPrevented||i("dismiss"))});let v;return f.watchEffect(_=>{r.value&&(n.disableOutsidePointerEvents&&(To.layersWithOutsidePointerEventsDisabled.size===0&&(v=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),To.layersWithOutsidePointerEventsDisabled.add(r.value)),l.value.add(r.value),_(()=>{n.disableOutsidePointerEvents&&To.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=v)}))}),f.watchEffect(_=>{_(()=>{r.value&&(l.value.delete(r.value),To.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(_,m)=>(f.openBlock(),f.createBlock(f.unref(Jn),{ref:f.unref(o),"as-child":_.asChild,as:_.as,"data-dismissable-layer":"",style:f.normalizeStyle({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:f.unref(p).onFocusCapture,onBlurCapture:f.unref(p).onBlurCapture,onPointerdownCapture:f.unref(a).onPointerDownCapture},{default:f.withCtx(()=>[f.renderSlot(_.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),jW=BW;const FW=$Y(()=>f.ref([]));function VW(){const e=FW();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=BD(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=BD(e.value,t),(n=e.value[0])==null||n.resume()}}}function BD(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function qW(e){return e.filter(t=>t.tagName!=="A")}const yv="focusScope.autoFocusOnMount",gv="focusScope.autoFocusOnUnmount",jD={bubbles:!1,cancelable:!0};function GW(e,{select:t=!1}={}){const n=Go();for(const i of e)if(zo(i,{select:t}),Go()!==n)return!0}function HW(e){const t=FD(e),n=VD(t,e),i=VD(t.reverse(),e);return[n,i]}function FD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function VD(e,t){for(const n of e)if(!zW(n,{upTo:t}))return n}function zW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function YW(e){return e instanceof HTMLInputElement&&"select"in e}function zo(e,{select:t=!1}={}){if(e&&e.focus){const n=Go();e.focus({preventScroll:!0}),e!==n&&YW(e)&&t&&e.select()}}var WW=f.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,i=t,{currentRef:o,currentElement:r}=li(),s=f.ref(null),l=VW(),u=f.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});f.watchEffect(c=>{if(!Ho)return;const a=r.value;if(!n.trapped)return;function p(h){if(u.paused||!a)return;const E=h.target;a.contains(E)?s.value=E:zo(s.value,{select:!0})}function v(h){if(u.paused||!a)return;const E=h.relatedTarget;E!==null&&(a.contains(E)||zo(s.value,{select:!0}))}function _(h){a.contains(s.value)||zo(a)}document.addEventListener("focusin",p),document.addEventListener("focusout",v);const m=new MutationObserver(_);a&&m.observe(a,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),m.disconnect()})}),f.watchEffect(async c=>{const a=r.value;if(await f.nextTick(),!a)return;l.add(u);const p=Go();if(!a.contains(p)){const _=new CustomEvent(yv,jD);a.addEventListener(yv,m=>i("mountAutoFocus",m)),a.dispatchEvent(_),_.defaultPrevented||(GW(qW(FD(a)),{select:!0}),Go()===p&&zo(a))}c(()=>{a.removeEventListener(yv,h=>i("mountAutoFocus",h));const _=new CustomEvent(gv,jD),m=h=>{i("unmountAutoFocus",h)};a.addEventListener(gv,m),a.dispatchEvent(_),setTimeout(()=>{_.defaultPrevented||zo(p??document.body,{select:!0}),a.removeEventListener(gv,m),l.remove(u)},0)})});function d(c){if(!n.loop&&!n.trapped||u.paused)return;const a=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,p=Go();if(a&&p){const v=c.currentTarget,[_,m]=HW(v);_&&m?!c.shiftKey&&p===m?(c.preventDefault(),n.loop&&zo(_,{select:!0})):c.shiftKey&&p===_&&(c.preventDefault(),n.loop&&zo(m,{select:!0})):p===v&&c.preventDefault()}}return(c,a)=>(f.openBlock(),f.createBlock(f.unref(Jn),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:f.withCtx(()=>[f.renderSlot(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),$W=WW,KW=f.defineComponent({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=sW();return(n,i)=>f.unref(t)||n.forceMount?(f.openBlock(),f.createBlock(f.Teleport,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[f.renderSlot(n.$slots,"default")],8,["to","disabled","defer"])):f.createCommentVNode("v-if",!0)}}),QW=KW;const qD="data-reka-collection-item";function GD(e={}){const{key:t="",isProvider:n=!1}=e,i=`${t}CollectionProvider`;let o;if(n){const c=f.ref(new Map);o={collectionRef:f.ref(),itemMap:c},f.provide(i,o)}else o=f.inject(i);const r=(c=!1)=>{const a=o.collectionRef.value;if(!a)return[];const p=Array.from(a.querySelectorAll(`[${qD}]`)),_=Array.from(o.itemMap.value.values()).sort((m,h)=>p.indexOf(m.ref)-p.indexOf(h.ref));return c?_:_.filter(m=>m.ref.dataset.disabled!=="")},s=f.defineComponent({name:"CollectionSlot",setup(c,{slots:a}){const{primitiveElement:p,currentElement:v}=kD();return f.watch(v,()=>{o.collectionRef.value=v.value}),()=>f.h(hv,{ref:p},a)}}),l=f.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(c,{slots:a,attrs:p}){const{primitiveElement:v,currentElement:_}=kD();return f.watchEffect(m=>{if(_.value){const h=f.markRaw(_.value);o.itemMap.value.set(h,{ref:_.value,value:c.value}),m(()=>o.itemMap.value.delete(h))}}),()=>f.h(hv,{...p,[qD]:"",ref:v},a)}}),u=f.computed(()=>Array.from(o.itemMap.value.values())),d=f.computed(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:u,itemMapSize:d,CollectionSlot:s,CollectionItem:l}}const JW="rovingFocusGroup.onEntryFocus",XW={bubbles:!1,cancelable:!0},ZW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e$(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function t$(e,t,n){const i=e$(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return ZW[i]}function HD(e,t=!1){const n=Go();for(const i of e)if(i===n||(i.focus({preventScroll:t}),Go()!==n))return}function n$(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const[i$,o$]=Rr("RovingFocusGroup");var r$=f.defineComponent({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const i=e,o=n,{loop:r,orientation:s,dir:l}=f.toRefs(i),u=ND(l),d=zd(i,"currentTabStopId",o,{defaultValue:i.defaultCurrentTabStopId,passive:i.currentTabStopId===void 0}),c=f.ref(!1),a=f.ref(!1),p=f.ref(0),{getItems:v,CollectionSlot:_}=GD({isProvider:!0});function m(E){const g=!a.value;if(E.currentTarget&&E.target===E.currentTarget&&g&&!c.value){const y=new CustomEvent(JW,XW);if(E.currentTarget.dispatchEvent(y),o("entryFocus",y),!y.defaultPrevented){const b=v().map(R=>R.ref).filter(R=>R.dataset.disabled!==""),T=b.find(R=>R.getAttribute("data-active")===""),S=b.find(R=>R.getAttribute("data-highlighted")===""),I=b.find(R=>R.id===d.value),A=[T,S,I,...b].filter(Boolean);HD(A,i.preventScrollOnEntryFocus)}}a.value=!1}function h(){setTimeout(()=>{a.value=!1},1)}return t({getItems:v}),o$({loop:r,dir:u,orientation:s,currentTabStopId:d,onItemFocus:E=>{d.value=E},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(E,g)=>(f.openBlock(),f.createBlock(f.unref(_),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{tabindex:c.value||p.value===0?-1:0,"data-orientation":f.unref(s),as:E.as,"as-child":E.asChild,dir:f.unref(u),style:{outline:"none"},onMousedown:g[0]||(g[0]=y=>a.value=!0),onMouseup:h,onFocus:m,onBlur:g[1]||(g[1]=y=>c.value=!1)},{default:f.withCtx(()=>[f.renderSlot(E.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),s$=r$,l$=f.defineComponent({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=i$(),i=Pl(),o=f.computed(()=>t.tabStopId||i),r=f.computed(()=>n.currentTabStopId.value===o.value),{getItems:s,CollectionItem:l}=GD();f.onMounted(()=>{t.focusable&&n.onFocusableItemAdd()}),f.onUnmounted(()=>{t.focusable&&n.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){n.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const c=t$(d,n.orientation.value,n.dir.value);if(c!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!t.allowShiftKey&&d.shiftKey)return;d.preventDefault();let a=[...s().map(p=>p.ref).filter(p=>p.dataset.disabled!=="")];if(c==="last")a.reverse();else if(c==="prev"||c==="next"){c==="prev"&&a.reverse();const p=a.indexOf(d.currentTarget);a=n.loop.value?n$(a,p+1):a.slice(p+1)}f.nextTick(()=>HD(a))}}return(d,c)=>(f.openBlock(),f.createBlock(f.unref(l),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{tabindex:r.value?0:-1,"data-orientation":f.unref(n).orientation.value,"data-active":d.active?"":void 0,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:c[0]||(c[0]=a=>{d.focusable?f.unref(n).onItemFocus(o.value):a.preventDefault()}),onFocus:c[1]||(c[1]=a=>f.unref(n).onItemFocus(o.value)),onKeydown:u},{default:f.withCtx(()=>[f.renderSlot(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),u$=l$;const[zD,d$]=Rr("PopperRoot");var c$=f.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=f.ref();return d$({anchor:t,onAnchorChange:n=>t.value=n}),(n,i)=>f.renderSlot(n.$slots,"default")}}),a$=c$,f$=f.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:i}=li(),o=zD();return f.watchPostEffect(()=>{o.onAnchorChange(t.reference??i.value)}),(r,s)=>(f.openBlock(),f.createBlock(f.unref(Jn),{ref:f.unref(n),as:r.as,"as-child":r.asChild},{default:f.withCtx(()=>[f.renderSlot(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),p$=f$;function _$(e){return e!==null}function v$(e){return{name:"transformOrigin",options:e,fn(t){var h,E,g;const{placement:n,rects:i,middlewareData:o}=t,s=((h=o.arrow)==null?void 0:h.centerOffset)!==0,l=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[d,c]=Ev(n),a={start:"0%",center:"50%",end:"100%"}[c],p=(((E=o.arrow)==null?void 0:E.x)??0)+l/2,v=(((g=o.arrow)==null?void 0:g.y)??0)+u/2;let _="",m="";return d==="bottom"?(_=s?a:`${p}px`,m=`${-u}px`):d==="top"?(_=s?a:`${p}px`,m=`${i.floating.height+u}px`):d==="right"?(_=`${-u}px`,m=s?a:`${v}px`):d==="left"&&(_=`${i.floating.width+u}px`,m=s?a:`${v}px`),{data:{x:_,y:m}}}}}function Ev(e){const[t,n="center"]=e.split("-");return[t,n]}const m$=["top","right","bottom","left"],Yo=Math.min,hi=Math.max,Kd=Math.round,Qd=Math.floor,$i=e=>({x:e,y:e}),h$={left:"right",right:"left",bottom:"top",top:"bottom"},y$={start:"end",end:"start"};function Tv(e,t,n){return hi(e,Yo(t,n))}function bo(e,t){return typeof e=="function"?e(t):e}function So(e){return e.split("-")[0]}function Ds(e){return e.split("-")[1]}function bv(e){return e==="x"?"y":"x"}function Sv(e){return e==="y"?"height":"width"}const g$=new Set(["top","bottom"]);function Ki(e){return g$.has(So(e))?"y":"x"}function Iv(e){return bv(Ki(e))}function E$(e,t,n){n===void 0&&(n=!1);const i=Ds(e),o=Iv(e),r=Sv(o);let s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Jd(s)),[s,Jd(s)]}function T$(e){const t=Jd(e);return[Av(e),t,Av(t)]}function Av(e){return e.replace(/start|end/g,t=>y$[t])}const YD=["left","right"],WD=["right","left"],b$=["top","bottom"],S$=["bottom","top"];function I$(e,t,n){switch(e){case"top":case"bottom":return n?t?WD:YD:t?YD:WD;case"left":case"right":return t?b$:S$;default:return[]}}function A$(e,t,n,i){const o=Ds(e);let r=I$(So(e),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),t&&(r=r.concat(r.map(Av)))),r}function Jd(e){return e.replace(/left|right|bottom|top/g,t=>h$[t])}function C$(e){return{top:0,right:0,bottom:0,left:0,...e}}function $D(e){return typeof e!="number"?C$(e):{top:e,right:e,bottom:e,left:e}}function Xd(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function KD(e,t,n){let{reference:i,floating:o}=e;const r=Ki(t),s=Iv(t),l=Sv(s),u=So(t),d=r==="y",c=i.x+i.width/2-o.width/2,a=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;let v;switch(u){case"top":v={x:c,y:i.y-o.height};break;case"bottom":v={x:c,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:a};break;case"left":v={x:i.x-o.width,y:a};break;default:v={x:i.x,y:i.y}}switch(Ds(t)){case"start":v[s]-=p*(n&&d?-1:1);break;case"end":v[s]+=p*(n&&d?-1:1);break}return v}const R$=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:a}=KD(d,i,u),p=i,v={},_=0;for(let m=0;m<l.length;m++){const{name:h,fn:E}=l[m],{x:g,y,data:b,reset:T}=await E({x:c,y:a,initialPlacement:i,placement:p,strategy:o,middlewareData:v,rects:d,platform:s,elements:{reference:e,floating:t}});c=g??c,a=y??a,v={...v,[h]:{...v[h],...b}},T&&_<=50&&(_++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(d=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:c,y:a}=KD(d,p,u)),m=-1)}return{x:c,y:a,placement:p,strategy:o,middlewareData:v}};async function Dl(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:a="floating",altBoundary:p=!1,padding:v=0}=bo(t,e),_=$D(v),h=l[p?a==="floating"?"reference":"floating":a],E=Xd(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(h)))==null||n?h:h.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:d,rootBoundary:c,strategy:u})),g=a==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},T=Xd(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(E.top-T.top+_.top)/b.y,bottom:(T.bottom-E.bottom+_.bottom)/b.y,left:(E.left-T.left+_.left)/b.x,right:(T.right-E.right+_.right)/b.x}}const M$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:u}=t,{element:d,padding:c=0}=bo(e,t)||{};if(d==null)return{};const a=$D(c),p={x:n,y:i},v=Iv(o),_=Sv(v),m=await s.getDimensions(d),h=v==="y",E=h?"top":"left",g=h?"bottom":"right",y=h?"clientHeight":"clientWidth",b=r.reference[_]+r.reference[v]-p[v]-r.floating[_],T=p[v]-r.reference[v],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let I=S?S[y]:0;(!I||!await(s.isElement==null?void 0:s.isElement(S)))&&(I=l.floating[y]||r.floating[_]);const A=b/2-T/2,R=I/2-m[_]/2-1,M=Yo(a[E],R),x=Yo(a[g],R),w=M,U=I-m[_]-x,L=I/2-m[_]/2+A,N=Tv(w,L,U),B=!u.arrow&&Ds(o)!=null&&L!==N&&r.reference[_]/2-(L<w?M:x)-m[_]/2<0,F=B?L<w?L-w:L-U:0;return{[v]:p[v]+F,data:{[v]:N,centerOffset:L-N-F,...B&&{alignmentOffset:F}},reset:B}}}),O$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:u,elements:d}=t,{mainAxis:c=!0,crossAxis:a=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:m=!0,...h}=bo(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const E=So(o),g=Ki(l),y=So(l)===l,b=await(u.isRTL==null?void 0:u.isRTL(d.floating)),T=p||(y||!m?[Jd(l)]:T$(l)),S=_!=="none";!p&&S&&T.push(...A$(l,m,_,b));const I=[l,...T],A=await Dl(t,h),R=[];let M=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&R.push(A[E]),a){const L=E$(o,s,b);R.push(A[L[0]],A[L[1]])}if(M=[...M,{placement:o,overflows:R}],!R.every(L=>L<=0)){var x,w;const L=(((x=r.flip)==null?void 0:x.index)||0)+1,N=I[L];if(N&&(!(a==="alignment"?g!==Ki(N):!1)||M.every(k=>Ki(k.placement)===g?k.overflows[0]>0:!0)))return{data:{index:L,overflows:M},reset:{placement:N}};let B=(w=M.filter(F=>F.overflows[0]<=0).sort((F,k)=>F.overflows[1]-k.overflows[1])[0])==null?void 0:w.placement;if(!B)switch(v){case"bestFit":{var U;const F=(U=M.filter(k=>{if(S){const $=Ki(k.placement);return $===g||$==="y"}return!0}).map(k=>[k.placement,k.overflows.filter($=>$>0).reduce(($,q)=>$+q,0)]).sort((k,$)=>k[1]-$[1])[0])==null?void 0:U[0];F&&(B=F);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function QD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function JD(e){return m$.some(t=>e[t]>=0)}const w$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=bo(e,t);switch(i){case"referenceHidden":{const r=await Dl(t,{...o,elementContext:"reference"}),s=QD(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:JD(s)}}}case"escaped":{const r=await Dl(t,{...o,altBoundary:!0}),s=QD(r,n.floating);return{data:{escapedOffsets:s,escaped:JD(s)}}}default:return{}}}}},XD=new Set(["left","top"]);async function N$(e,t){const{placement:n,platform:i,elements:o}=e,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=So(n),l=Ds(n),u=Ki(n)==="y",d=XD.has(s)?-1:1,c=r&&u?-1:1,a=bo(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:_}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return l&&typeof _=="number"&&(v=l==="end"?_*-1:_),u?{x:v*c,y:p*d}:{x:p*d,y:v*c}}const x$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:r,placement:s,middlewareData:l}=t,u=await N$(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:r+u.y,data:{...u,placement:s}}}}},P$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:E,y:g}=h;return{x:E,y:g}}},...u}=bo(e,t),d={x:n,y:i},c=await Dl(t,u),a=Ki(So(o)),p=bv(a);let v=d[p],_=d[a];if(r){const h=p==="y"?"top":"left",E=p==="y"?"bottom":"right",g=v+c[h],y=v-c[E];v=Tv(g,v,y)}if(s){const h=a==="y"?"top":"left",E=a==="y"?"bottom":"right",g=_+c[h],y=_-c[E];_=Tv(g,_,y)}const m=l.fn({...t,[p]:v,[a]:_});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[p]:r,[a]:s}}}}}},D$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:r,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=bo(e,t),c={x:n,y:i},a=Ki(o),p=bv(a);let v=c[p],_=c[a];const m=bo(l,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const y=p==="y"?"height":"width",b=r.reference[p]-r.floating[y]+h.mainAxis,T=r.reference[p]+r.reference[y]-h.mainAxis;v<b?v=b:v>T&&(v=T)}if(d){var E,g;const y=p==="y"?"width":"height",b=XD.has(So(o)),T=r.reference[a]-r.floating[y]+(b&&((E=s.offset)==null?void 0:E[a])||0)+(b?0:h.crossAxis),S=r.reference[a]+r.reference[y]+(b?0:((g=s.offset)==null?void 0:g[a])||0)-(b?h.crossAxis:0);_<T?_=T:_>S&&(_=S)}return{[p]:v,[a]:_}}}},k$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:r,platform:s,elements:l}=t,{apply:u=()=>{},...d}=bo(e,t),c=await Dl(t,d),a=So(o),p=Ds(o),v=Ki(o)==="y",{width:_,height:m}=r.floating;let h,E;a==="top"||a==="bottom"?(h=a,E=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(E=a,h=p==="end"?"top":"bottom");const g=m-c.top-c.bottom,y=_-c.left-c.right,b=Yo(m-c[h],g),T=Yo(_-c[E],y),S=!t.middlewareData.shift;let I=b,A=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(I=g),S&&!p){const M=hi(c.left,0),x=hi(c.right,0),w=hi(c.top,0),U=hi(c.bottom,0);v?A=_-2*(M!==0||x!==0?M+x:hi(c.left,c.right)):I=m-2*(w!==0||U!==0?w+U:hi(c.top,c.bottom))}await u({...t,availableWidth:A,availableHeight:I});const R=await s.getDimensions(l.floating);return _!==R.width||m!==R.height?{reset:{rects:!0}}:{}}}};function Zd(){return typeof window<"u"}function Or(e){return Cv(e)?(e.nodeName||"").toLowerCase():"#document"}function yi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qi(e){var t;return(t=(Cv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cv(e){return Zd()?e instanceof Node||e instanceof yi(e).Node:!1}function Di(e){return Zd()?e instanceof Element||e instanceof yi(e).Element:!1}function Ji(e){return Zd()?e instanceof HTMLElement||e instanceof yi(e).HTMLElement:!1}function ZD(e){return!Zd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yi(e).ShadowRoot}const L$=new Set(["inline","contents"]);function kl(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ki(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!L$.has(o)}const U$=new Set(["table","td","th"]);function B$(e){return U$.has(Or(e))}const j$=[":popover-open",":modal"];function ec(e){return j$.some(t=>{try{return e.matches(t)}catch{return!1}})}const F$=["transform","translate","scale","rotate","perspective"],V$=["transform","translate","scale","rotate","perspective","filter"],q$=["paint","layout","strict","content"];function Rv(e){const t=Mv(),n=Di(e)?ki(e):e;return F$.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||V$.some(i=>(n.willChange||"").includes(i))||q$.some(i=>(n.contain||"").includes(i))}function G$(e){let t=Wo(e);for(;Ji(t)&&!ks(t);){if(Rv(t))return t;if(ec(t))return null;t=Wo(t)}return null}function Mv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const H$=new Set(["html","body","#document"]);function ks(e){return H$.has(Or(e))}function ki(e){return yi(e).getComputedStyle(e)}function tc(e){return Di(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wo(e){if(Or(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ZD(e)&&e.host||Qi(e);return ZD(t)?t.host:t}function ek(e){const t=Wo(e);return ks(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&kl(t)?t:ek(t)}function Ll(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ek(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),s=yi(o);if(r){const l=Ov(s);return t.concat(s,s.visualViewport||[],kl(o)?o:[],l&&n?Ll(l):[])}return t.concat(o,Ll(o,[],n))}function Ov(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tk(e){const t=ki(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Ji(e),r=o?e.offsetWidth:n,s=o?e.offsetHeight:i,l=Kd(n)!==r||Kd(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function wv(e){return Di(e)?e:e.contextElement}function Ls(e){const t=wv(e);if(!Ji(t))return $i(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=tk(t);let s=(r?Kd(n.width):n.width)/i,l=(r?Kd(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const z$=$i(0);function nk(e){const t=yi(e);return!Mv()||!t.visualViewport?z$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Y$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yi(e)?!1:t}function wr(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=wv(e);let s=$i(1);t&&(i?Di(i)&&(s=Ls(i)):s=Ls(e));const l=Y$(r,n,i)?nk(r):$i(0);let u=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,c=o.width/s.x,a=o.height/s.y;if(r){const p=yi(r),v=i&&Di(i)?yi(i):i;let _=p,m=Ov(_);for(;m&&i&&v!==_;){const h=Ls(m),E=m.getBoundingClientRect(),g=ki(m),y=E.left+(m.clientLeft+parseFloat(g.paddingLeft))*h.x,b=E.top+(m.clientTop+parseFloat(g.paddingTop))*h.y;u*=h.x,d*=h.y,c*=h.x,a*=h.y,u+=y,d+=b,_=yi(m),m=Ov(_)}}return Xd({width:c,height:a,x:u,y:d})}function Nv(e,t){const n=tc(e).scrollLeft;return t?t.left+n:wr(Qi(e)).left+n}function ik(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=i.left+t.scrollLeft-(n?0:Nv(e,i)),r=i.top+t.scrollTop;return{x:o,y:r}}function W$(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const r=o==="fixed",s=Qi(i),l=t?ec(t.floating):!1;if(i===s||l&&r)return n;let u={scrollLeft:0,scrollTop:0},d=$i(1);const c=$i(0),a=Ji(i);if((a||!a&&!r)&&((Or(i)!=="body"||kl(s))&&(u=tc(i)),Ji(i))){const v=wr(i);d=Ls(i),c.x=v.x+i.clientLeft,c.y=v.y+i.clientTop}const p=s&&!a&&!r?ik(s,u,!0):$i(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+c.x+p.x,y:n.y*d.y-u.scrollTop*d.y+c.y+p.y}}function $$(e){return Array.from(e.getClientRects())}function K$(e){const t=Qi(e),n=tc(e),i=e.ownerDocument.body,o=hi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=hi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Nv(e);const l=-n.scrollTop;return ki(i).direction==="rtl"&&(s+=hi(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:l}}function Q$(e,t){const n=yi(e),i=Qi(e),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;const d=Mv();(!d||d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:r,height:s,x:l,y:u}}const J$=new Set(["absolute","fixed"]);function X$(e,t){const n=wr(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=Ji(e)?Ls(e):$i(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,u=o*r.x,d=i*r.y;return{width:s,height:l,x:u,y:d}}function ok(e,t,n){let i;if(t==="viewport")i=Q$(e,n);else if(t==="document")i=K$(Qi(e));else if(Di(t))i=X$(t,n);else{const o=nk(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xd(i)}function rk(e,t){const n=Wo(e);return n===t||!Di(n)||ks(n)?!1:ki(n).position==="fixed"||rk(n,t)}function Z$(e,t){const n=t.get(e);if(n)return n;let i=Ll(e,[],!1).filter(l=>Di(l)&&Or(l)!=="body"),o=null;const r=ki(e).position==="fixed";let s=r?Wo(e):e;for(;Di(s)&&!ks(s);){const l=ki(s),u=Rv(s);!u&&l.position==="fixed"&&(o=null),(r?!u&&!o:!u&&l.position==="static"&&!!o&&J$.has(o.position)||kl(s)&&!u&&rk(e,s))?i=i.filter(c=>c!==s):o=l,s=Wo(s)}return t.set(e,i),i}function eK(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const s=[...n==="clippingAncestors"?ec(t)?[]:Z$(t,this._c):[].concat(n),i],l=s[0],u=s.reduce((d,c)=>{const a=ok(t,c,o);return d.top=hi(a.top,d.top),d.right=Yo(a.right,d.right),d.bottom=Yo(a.bottom,d.bottom),d.left=hi(a.left,d.left),d},ok(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function tK(e){const{width:t,height:n}=tk(e);return{width:t,height:n}}function nK(e,t,n){const i=Ji(t),o=Qi(t),r=n==="fixed",s=wr(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const u=$i(0);function d(){u.x=Nv(o)}if(i||!i&&!r)if((Or(t)!=="body"||kl(o))&&(l=tc(t)),i){const v=wr(t,!0,r,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&d();r&&!i&&o&&d();const c=o&&!i&&!r?ik(o,l):$i(0),a=s.left+l.scrollLeft-u.x-c.x,p=s.top+l.scrollTop-u.y-c.y;return{x:a,y:p,width:s.width,height:s.height}}function xv(e){return ki(e).position==="static"}function sk(e,t){if(!Ji(e)||ki(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qi(e)===n&&(n=n.ownerDocument.body),n}function lk(e,t){const n=yi(e);if(ec(e))return n;if(!Ji(e)){let o=Wo(e);for(;o&&!ks(o);){if(Di(o)&&!xv(o))return o;o=Wo(o)}return n}let i=sk(e,t);for(;i&&B$(i)&&xv(i);)i=sk(i,t);return i&&ks(i)&&xv(i)&&!Rv(i)?n:i||G$(e)||n}const iK=async function(e){const t=this.getOffsetParent||lk,n=this.getDimensions,i=await n(e.floating);return{reference:nK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oK(e){return ki(e).direction==="rtl"}const rK={convertOffsetParentRelativeRectToViewportRelativeRect:W$,getDocumentElement:Qi,getClippingRect:eK,getOffsetParent:lk,getElementRects:iK,getClientRects:$$,getDimensions:tK,getScale:Ls,isElement:Di,isRTL:oK};function uk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sK(e,t){let n=null,i;const o=Qi(e);function r(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),r();const d=e.getBoundingClientRect(),{left:c,top:a,width:p,height:v}=d;if(l||t(),!p||!v)return;const _=Qd(a),m=Qd(o.clientWidth-(c+p)),h=Qd(o.clientHeight-(a+v)),E=Qd(c),y={rootMargin:-_+"px "+-m+"px "+-h+"px "+-E+"px",threshold:hi(0,Yo(1,u))||1};let b=!0;function T(S){const I=S[0].intersectionRatio;if(I!==u){if(!b)return s();I?s(!1,I):i=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!uk(d,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(T,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,y)}n.observe(e)}return s(!0),r}function lK(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,d=wv(e),c=o||r?[...d?Ll(d):[],...Ll(t)]:[];c.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),r&&E.addEventListener("resize",n)});const a=d&&l?sK(d,n):null;let p=-1,v=null;s&&(v=new ResizeObserver(E=>{let[g]=E;g&&g.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),d&&!u&&v.observe(d),v.observe(t));let _,m=u?wr(e):null;u&&h();function h(){const E=wr(e);m&&!uk(m,E)&&n(),m=E,_=requestAnimationFrame(h)}return n(),()=>{var E;c.forEach(g=>{o&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),a==null||a(),(E=v)==null||E.disconnect(),v=null,u&&cancelAnimationFrame(_)}}const uK=x$,dK=P$,dk=O$,cK=k$,aK=w$,fK=M$,pK=D$,_K=(e,t,n)=>{const i=new Map,o={platform:rK,...n},r={...o.platform,_c:i};return R$(e,t,{...o,platform:r})};function vK(e){return e!=null&&typeof e=="object"&&"$el"in e}function Pv(e){if(vK(e)){const t=e.$el;return Cv(t)&&Or(t)==="#comment"?null:t}return e}function Us(e){return typeof e=="function"?e():f.unref(e)}function mK(e){return{name:"arrow",options:e,fn(t){const n=Pv(Us(e.element));return n==null?{}:fK({element:n,padding:e.padding}).fn(t)}}}function ck(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ak(e,t){const n=ck(e);return Math.round(t*n)/n}function hK(e,t,n){n===void 0&&(n={});const i=n.whileElementsMounted,o=f.computed(()=>{var I;return(I=Us(n.open))!=null?I:!0}),r=f.computed(()=>Us(n.middleware)),s=f.computed(()=>{var I;return(I=Us(n.placement))!=null?I:"bottom"}),l=f.computed(()=>{var I;return(I=Us(n.strategy))!=null?I:"absolute"}),u=f.computed(()=>{var I;return(I=Us(n.transform))!=null?I:!0}),d=f.computed(()=>Pv(e.value)),c=f.computed(()=>Pv(t.value)),a=f.ref(0),p=f.ref(0),v=f.ref(l.value),_=f.ref(s.value),m=f.shallowRef({}),h=f.ref(!1),E=f.computed(()=>{const I={position:v.value,left:"0",top:"0"};if(!c.value)return I;const A=ak(c.value,a.value),R=ak(c.value,p.value);return u.value?{...I,transform:"translate("+A+"px, "+R+"px)",...ck(c.value)>=1.5&&{willChange:"transform"}}:{position:v.value,left:A+"px",top:R+"px"}});let g;function y(){if(d.value==null||c.value==null)return;const I=o.value;_K(d.value,c.value,{middleware:r.value,placement:s.value,strategy:l.value}).then(A=>{a.value=A.x,p.value=A.y,v.value=A.strategy,_.value=A.placement,m.value=A.middlewareData,h.value=I!==!1})}function b(){typeof g=="function"&&(g(),g=void 0)}function T(){if(b(),i===void 0){y();return}if(d.value!=null&&c.value!=null){g=i(d.value,c.value,y);return}}function S(){o.value||(h.value=!1)}return f.watch([r,s,l,o],y,{flush:"sync"}),f.watch([d,c],T,{flush:"sync"}),f.watch(o,S,{flush:"sync"}),f.getCurrentScope()&&f.onScopeDispose(b),{x:f.shallowReadonly(a),y:f.shallowReadonly(p),strategy:f.shallowReadonly(v),placement:f.shallowReadonly(_),middlewareData:f.shallowReadonly(m),isPositioned:f.shallowReadonly(h),floatingStyles:E,update:y}}const yK={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Toe,gK]=Rr("PopperContent");var EK=f.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:f.mergeDefaults({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...yK}),emits:["placed"],setup(e,{emit:t}){const n=e,i=t,o=zD(),{forwardRef:r,currentElement:s}=li(),l=f.ref(),u=f.ref(),{width:d,height:c}=SW(u),a=f.computed(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=f.computed(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),v=f.computed(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),_=f.computed(()=>({padding:p.value,boundary:v.value.filter(_$),altBoundary:v.value.length>0})),m=f.computed(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),h=WY(()=>[uK({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&dk({..._.value,...m.value}),n.avoidCollisions&&dK({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?pK():void 0,..._.value}),!n.prioritizePosition&&n.avoidCollisions&&dk({..._.value,...m.value}),cK({..._.value,apply:({elements:U,rects:L,availableWidth:N,availableHeight:B})=>{const{width:F,height:k}=L.reference,$=U.floating.style;$.setProperty("--reka-popper-available-width",`${N}px`),$.setProperty("--reka-popper-available-height",`${B}px`),$.setProperty("--reka-popper-anchor-width",`${F}px`),$.setProperty("--reka-popper-anchor-height",`${k}px`)}}),u.value&&mK({element:u.value,padding:n.arrowPadding}),v$({arrowWidth:d.value,arrowHeight:c.value}),n.hideWhenDetached&&aK({strategy:"referenceHidden",..._.value})]),E=f.computed(()=>n.reference??o.anchor.value),{floatingStyles:g,placement:y,isPositioned:b,middlewareData:T,update:S}=hK(E,l,{strategy:n.positionStrategy,placement:a,whileElementsMounted:(...U)=>lK(...U,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),I=f.computed(()=>Ev(y.value)[0]),A=f.computed(()=>Ev(y.value)[1]);f.watchPostEffect(()=>{b.value&&i("placed")});const R=f.computed(()=>{var U;return((U=T.value.arrow)==null?void 0:U.centerOffset)!==0}),M=f.ref("");f.watchEffect(()=>{s.value&&(M.value=window.getComputedStyle(s.value).zIndex)});const x=f.computed(()=>{var U;return((U=T.value.arrow)==null?void 0:U.x)??0}),w=f.computed(()=>{var U;return((U=T.value.arrow)==null?void 0:U.y)??0});return gK({placedSide:I,onArrowChange:U=>u.value=U,arrowX:x,arrowY:w,shouldHideArrow:R}),(U,L)=>{var N,B,F;return f.openBlock(),f.createElementBlock("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:f.normalizeStyle({...f.unref(g),transform:f.unref(b)?f.unref(g).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:M.value,"--reka-popper-transform-origin":[(N=f.unref(T).transformOrigin)==null?void 0:N.x,(B=f.unref(T).transformOrigin)==null?void 0:B.y].join(" "),...((F=f.unref(T).hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[f.createVNode(f.unref(Jn),f.mergeProps({ref:f.unref(r)},U.$attrs,{"as-child":n.asChild,as:U.as,"data-side":I.value,"data-align":A.value,style:{animation:f.unref(b)?void 0:"none"}}),{default:f.withCtx(()=>[f.renderSlot(U.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),TK=EK;const[Ul,bK]=Rr("PopoverRoot");var SK=f.defineComponent({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,i=t,{modal:o}=f.toRefs(n),r=zd(n,"open",i,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=f.ref(),l=f.ref(!1);return bK({contentId:"",triggerId:"",modal:o,open:r,onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},triggerElement:s,hasCustomAnchor:l}),(u,d)=>(f.openBlock(),f.createBlock(f.unref(a$),null,{default:f.withCtx(()=>[f.renderSlot(u.$slots,"default",{open:f.unref(r),close:()=>r.value=!1})]),_:3}))}}),IK=SK,AK=f.defineComponent({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=vv(XY(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=li(),s=Ul();return mW(),(l,u)=>(f.openBlock(),f.createBlock(f.unref($W),{"as-child":"",loop:"",trapped:l.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>i("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>i("closeAutoFocus",d))},{default:f.withCtx(()=>[f.createVNode(f.unref(jW),{"as-child":"","disable-outside-pointer-events":l.disableOutsidePointerEvents,onPointerDownOutside:u[0]||(u[0]=d=>i("pointerDownOutside",d)),onInteractOutside:u[1]||(u[1]=d=>i("interactOutside",d)),onEscapeKeyDown:u[2]||(u[2]=d=>i("escapeKeyDown",d)),onFocusOutside:u[3]||(u[3]=d=>i("focusOutside",d)),onDismiss:u[4]||(u[4]=d=>f.unref(s).onOpenChange(!1))},{default:f.withCtx(()=>[f.createVNode(f.unref(TK),f.mergeProps(f.unref(o),{id:f.unref(s).contentId,ref:f.unref(r),"data-state":f.unref(s).open.value?"open":"closed","aria-labelledby":f.unref(s).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),fk=AK,CK=f.defineComponent({__name:"PopoverContentModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=Ul(),r=f.ref(!1);pW(!0);const s=Mr(n,i),{forwardRef:l,currentElement:u}=li();return TW(u),(d,c)=>(f.openBlock(),f.createBlock(fk,f.mergeProps(f.unref(s),{ref:f.unref(l),"trap-focus":f.unref(o).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=f.withModifiers(a=>{var p;i("closeAutoFocus",a),r.value||(p=f.unref(o).triggerElement.value)==null||p.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=a=>{i("pointerDownOutside",a);const p=a.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0,_=p.button===2||v;r.value=_}),onFocusOutside:c[2]||(c[2]=f.withModifiers(()=>{},["prevent"]))}),{default:f.withCtx(()=>[f.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),RK=CK,MK=f.defineComponent({__name:"PopoverContentNonModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=Ul(),r=f.ref(!1),s=f.ref(!1),l=Mr(n,i);return(u,d)=>(f.openBlock(),f.createBlock(fk,f.mergeProps(f.unref(l),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{var a;i("closeAutoFocus",c),c.defaultPrevented||(r.value||(a=f.unref(o).triggerElement.value)==null||a.focus(),c.preventDefault()),r.value=!1,s.value=!1}),onInteractOutside:d[1]||(d[1]=async c=>{var v;i("interactOutside",c),c.defaultPrevented||(r.value=!0,c.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const a=c.target;((v=f.unref(o).triggerElement.value)==null?void 0:v.contains(a))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.value&&c.preventDefault()})}),{default:f.withCtx(()=>[f.renderSlot(u.$slots,"default")]),_:3},16))}}),OK=MK,wK=f.defineComponent({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=Ul(),r=Mr(n,i),{forwardRef:s}=li();return o.contentId||(o.contentId=Pl(void 0,"reka-popover-content")),(l,u)=>(f.openBlock(),f.createBlock(f.unref(DD),{present:l.forceMount||f.unref(o).open.value},{default:f.withCtx(()=>[f.unref(o).modal.value?(f.openBlock(),f.createBlock(RK,f.mergeProps({key:0},f.unref(r),{ref:f.unref(s)}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},16)):(f.openBlock(),f.createBlock(OK,f.mergeProps({key:1},f.unref(r),{ref:f.unref(s)}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),NK=wK,xK=f.defineComponent({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,i)=>(f.openBlock(),f.createBlock(f.unref(QW),f.normalizeProps(f.guardReactiveProps(t)),{default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3},16))}}),PK=xK,DK=f.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Ul(),{forwardRef:i,currentElement:o}=li();return n.triggerId||(n.triggerId=Pl(void 0,"reka-popover-trigger")),f.onMounted(()=>{n.triggerElement.value=o.value}),(r,s)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(f.unref(n).hasCustomAnchor.value?f.unref(Jn):f.unref(p$)),{"as-child":""},{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{id:f.unref(n).triggerId,ref:f.unref(i),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":f.unref(n).open.value,"aria-controls":f.unref(n).contentId,"data-state":f.unref(n).open.value?"open":"closed",as:r.as,"as-child":t.asChild,onClick:f.unref(n).onOpenToggle},{default:f.withCtx(()=>[f.renderSlot(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),kK=DK;const[pk,LK]=Rr("TabsRoot");var UK=f.defineComponent({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,{orientation:o,unmountOnHide:r,dir:s}=f.toRefs(n),l=ND(s);li();const u=zd(n,"modelValue",i,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),d=f.ref();return LK({modelValue:u,changeModelValue:c=>{u.value=c},orientation:o,dir:l,unmountOnHide:r,activationMode:n.activationMode,baseId:Pl(void 0,"reka-tabs"),tabsList:d}),(c,a)=>(f.openBlock(),f.createBlock(f.unref(Jn),{dir:f.unref(l),"data-orientation":f.unref(o),"as-child":c.asChild,as:c.as},{default:f.withCtx(()=>[f.renderSlot(c.$slots,"default",{modelValue:f.unref(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),BK=UK;function jK(e,t){return`${e}-trigger-${t}`}function FK(e,t){return`${e}-content-${t}`}var VK=f.defineComponent({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=f.toRefs(t),{forwardRef:i,currentElement:o}=li(),r=pk();return r.tabsList=o,(s,l)=>(f.openBlock(),f.createBlock(f.unref(s$),{"as-child":"",orientation:f.unref(r).orientation.value,dir:f.unref(r).dir.value,loop:f.unref(n)},{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{ref:f.unref(i),role:"tablist","as-child":s.asChild,as:s.as,"aria-orientation":f.unref(r).orientation.value},{default:f.withCtx(()=>[f.renderSlot(s.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),qK=VK,GK=f.defineComponent({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=li(),i=pk(),o=f.computed(()=>jK(i.baseId,t.value)),r=f.computed(()=>FK(i.baseId,t.value)),s=f.computed(()=>t.value===i.modelValue.value);return(l,u)=>(f.openBlock(),f.createBlock(f.unref(u$),{"as-child":"",focusable:!l.disabled,active:s.value},{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{id:o.value,ref:f.unref(n),role:"tab",type:l.as==="button"?"button":void 0,as:l.as,"as-child":l.asChild,"aria-selected":s.value?"true":"false","aria-controls":r.value,"data-state":s.value?"active":"inactive",disabled:l.disabled,"data-disabled":l.disabled?"":void 0,"data-orientation":f.unref(i).orientation.value,onMousedown:u[0]||(u[0]=f.withModifiers(d=>{!l.disabled&&d.ctrlKey===!1?f.unref(i).changeModelValue(l.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=f.withKeys(d=>f.unref(i).changeModelValue(l.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const d=f.unref(i).activationMode!=="manual";!s.value&&!l.disabled&&d&&f.unref(i).changeModelValue(l.value)})},{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),HK=GK;function _k(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_k(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function vk(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_k(e))&&(i&&(i+=" "),i+=t);return i}const Dv="-",zK=e=>{const t=WK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const l=s.split(Dv);return l[0]===""&&l.length!==1&&l.shift(),mk(l,t)||YK(s)},getConflictingClassGroupIds:(s,l)=>{const u=n[s]||[];return l&&i[s]?[...u,...i[s]]:u}}},mk=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?mk(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const r=e.join(Dv);return(s=t.validators.find(({validator:l})=>l(r)))==null?void 0:s.classGroupId},hk=/^\[(.+)\]$/,YK=e=>{if(hk.test(e)){const t=hk.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},WK=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const o in n)kv(n[o],i,o,t);return i},kv=(e,t,n,i)=>{e.forEach(o=>{if(typeof o=="string"){const r=o===""?t:yk(t,o);r.classGroupId=n;return}if(typeof o=="function"){if($K(o)){kv(o(i),t,n,i);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([r,s])=>{kv(s,yk(t,r),n,i)})})},yk=(e,t)=>{let n=e;return t.split(Dv).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},$K=e=>e.isThemeGetter,KK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const o=(r,s)=>{n.set(r,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(r){let s=n.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return o(r,s),s},set(r,s){n.has(r)?n.set(r,s):o(r,s)}}},Lv="!",Uv=":",QK=Uv.length,JK=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=o=>{const r=[];let s=0,l=0,u=0,d;for(let _=0;_<o.length;_++){let m=o[_];if(s===0&&l===0){if(m===Uv){r.push(o.slice(u,_)),u=_+QK;continue}if(m==="/"){d=_;continue}}m==="["?s++:m==="]"?s--:m==="("?l++:m===")"&&l--}const c=r.length===0?o:o.substring(u),a=XK(c),p=a!==c,v=d&&d>u?d-u:void 0;return{modifiers:r,hasImportantModifier:p,baseClassName:a,maybePostfixModifierPosition:v}};if(t){const o=t+Uv,r=i;i=s=>s.startsWith(o)?r(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=i;i=r=>n({className:r,parseClassName:o})}return i},XK=e=>e.endsWith(Lv)?e.substring(0,e.length-1):e.startsWith(Lv)?e.substring(1):e,ZK=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let r=[];return i.forEach(s=>{s[0]==="["||t[s]?(o.push(...r.sort(),s),r=[]):r.push(s)}),o.push(...r.sort()),o}},eQ=e=>({cache:KK(e.cacheSize),parseClassName:JK(e),sortModifiers:ZK(e),...zK(e)}),tQ=/\s+/,nQ=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r}=t,s=[],l=e.trim().split(tQ);let u="";for(let d=l.length-1;d>=0;d-=1){const c=l[d],{isExternal:a,modifiers:p,hasImportantModifier:v,baseClassName:_,maybePostfixModifierPosition:m}=n(c);if(a){u=c+(u.length>0?" "+u:u);continue}let h=!!m,E=i(h?_.substring(0,m):_);if(!E){if(!h){u=c+(u.length>0?" "+u:u);continue}if(E=i(_),!E){u=c+(u.length>0?" "+u:u);continue}h=!1}const g=r(p).join(":"),y=v?g+Lv:g,b=y+E;if(s.includes(b))continue;s.push(b);const T=o(E,h);for(let S=0;S<T.length;++S){const I=T[S];s.push(y+I)}u=c+(u.length>0?" "+u:u)}return u};function iQ(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gk(t))&&(i&&(i+=" "),i+=n);return i}const gk=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=gk(e[i]))&&(n&&(n+=" "),n+=t);return n};function oQ(e,...t){let n,i,o,r=s;function s(u){const d=t.reduce((c,a)=>a(c),e());return n=eQ(d),i=n.cache.get,o=n.cache.set,r=l,l(u)}function l(u){const d=i(u);if(d)return d;const c=nQ(u,n);return o(u,c),c}return function(){return r(iQ.apply(null,arguments))}}const hn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ek=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rQ=/^\d+\/\d+$/,sQ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lQ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,uQ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dQ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cQ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bs=e=>rQ.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),$o=e=>!!e&&Number.isInteger(Number(e)),Bv=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Io=e=>sQ.test(e),aQ=()=>!0,fQ=e=>lQ.test(e)&&!uQ.test(e),bk=()=>!1,pQ=e=>dQ.test(e),_Q=e=>cQ.test(e),vQ=e=>!nt(e)&&!it(e),mQ=e=>js(e,Rk,bk),nt=e=>Ek.test(e),Nr=e=>js(e,Mk,fQ),jv=e=>js(e,TQ,ht),Sk=e=>js(e,Ak,bk),hQ=e=>js(e,Ck,_Q),nc=e=>js(e,Ok,pQ),it=e=>Tk.test(e),Bl=e=>Fs(e,Mk),yQ=e=>Fs(e,bQ),Ik=e=>Fs(e,Ak),gQ=e=>Fs(e,Rk),EQ=e=>Fs(e,Ck),ic=e=>Fs(e,Ok,!0),js=(e,t,n)=>{const i=Ek.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},Fs=(e,t,n=!1)=>{const i=Tk.exec(e);return i?i[1]?t(i[1]):n:!1},Ak=e=>e==="position"||e==="percentage",Ck=e=>e==="image"||e==="url",Rk=e=>e==="length"||e==="size"||e==="bg-size",Mk=e=>e==="length",TQ=e=>e==="number",bQ=e=>e==="family-name",Ok=e=>e==="shadow",SQ=oQ(()=>{const e=hn("color"),t=hn("font"),n=hn("text"),i=hn("font-weight"),o=hn("tracking"),r=hn("leading"),s=hn("breakpoint"),l=hn("container"),u=hn("spacing"),d=hn("radius"),c=hn("shadow"),a=hn("inset-shadow"),p=hn("text-shadow"),v=hn("drop-shadow"),_=hn("blur"),m=hn("perspective"),h=hn("aspect"),E=hn("ease"),g=hn("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...b(),it,nt],S=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],A=()=>[it,nt,u],R=()=>[Bs,"full","auto",...A()],M=()=>[$o,"none","subgrid",it,nt],x=()=>["auto",{span:["full",$o,it,nt]},$o,it,nt],w=()=>[$o,"auto",it,nt],U=()=>["auto","min","max","fr",it,nt],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...A()],F=()=>[Bs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],k=()=>[e,it,nt],$=()=>[...b(),Ik,Sk,{position:[it,nt]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",gQ,mQ,{size:[it,nt]}],j=()=>[Bv,Bl,Nr],W=()=>["","none","full",d,it,nt],te=()=>["",ht,Bl,Nr],V=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[ht,Bv,Ik,Sk],G=()=>["","none",_,it,nt],oe=()=>["none",ht,it,nt],Q=()=>["none",ht,it,nt],Z=()=>[ht,it,nt],re=()=>[Bs,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Io],breakpoint:[Io],color:[aQ],container:[Io],"drop-shadow":[Io],ease:["in","out","in-out"],font:[vQ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Io],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Io],shadow:[Io],spacing:["px",ht],text:[Io],"text-shadow":[Io],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Bs,nt,it,h]}],container:["container"],columns:[{columns:[ht,nt,it,l]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[$o,"auto",it,nt]}],basis:[{basis:[Bs,"full","auto",l,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,Bs,"auto","initial","none",nt]}],grow:[{grow:["",ht,it,nt]}],shrink:[{shrink:["",ht,it,nt]}],order:[{order:[$o,"first","last","none",it,nt]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[l,"screen",...F()]}],"min-w":[{"min-w":[l,"screen","none",...F()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,Bl,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,it,jv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bv,nt]}],"font-family":[{font:[yQ,nt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,it,nt]}],"line-clamp":[{"line-clamp":[ht,"none",it,jv]}],leading:[{leading:[r,...A()]}],"list-image":[{"list-image":["none",it,nt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",it,nt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",it,Nr]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[ht,"auto",it,nt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it,nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",it,nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$o,it,nt],radial:["",it,nt],conic:[$o,it,nt]},EQ,hQ]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,it,nt]}],"outline-w":[{outline:["",ht,Bl,Nr]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",c,ic,nc]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",a,ic,nc]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[ht,Nr]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",p,ic,nc]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[ht,it,nt]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[it,nt]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",it,nt]}],filter:[{filter:["","none",it,nt]}],blur:[{blur:G()}],brightness:[{brightness:[ht,it,nt]}],contrast:[{contrast:[ht,it,nt]}],"drop-shadow":[{"drop-shadow":["","none",v,ic,nc]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",ht,it,nt]}],"hue-rotate":[{"hue-rotate":[ht,it,nt]}],invert:[{invert:["",ht,it,nt]}],saturate:[{saturate:[ht,it,nt]}],sepia:[{sepia:["",ht,it,nt]}],"backdrop-filter":[{"backdrop-filter":["","none",it,nt]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[ht,it,nt]}],"backdrop-contrast":[{"backdrop-contrast":[ht,it,nt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,it,nt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,it,nt]}],"backdrop-invert":[{"backdrop-invert":["",ht,it,nt]}],"backdrop-opacity":[{"backdrop-opacity":[ht,it,nt]}],"backdrop-saturate":[{"backdrop-saturate":[ht,it,nt]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,it,nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",it,nt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",it,nt]}],ease:[{ease:["linear","initial",E,it,nt]}],delay:[{delay:[ht,it,nt]}],animate:[{animate:["none",g,it,nt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,it,nt]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[it,nt,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",it,nt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",it,nt]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[ht,Bl,Nr,jv]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function jl(...e){return SQ(vk(e))}const IQ=f.defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=Hd(n,"class"),r=Mr(o,i);return(s,l)=>(f.openBlock(),f.createBlock(f.unref(BK),f.mergeProps({"data-slot":"tabs"},f.unref(r),{class:f.unref(jl)("flex flex-col gap-2",n.class)}),{default:f.withCtx(u=>[f.renderSlot(s.$slots,"default",f.normalizeProps(f.guardReactiveProps(u)))]),_:3},16,["class"]))}}),AQ=f.defineComponent({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Hd(t,"class");return(i,o)=>(f.openBlock(),f.createBlock(f.unref(qK),f.mergeProps({"data-slot":"tabs-list"},f.unref(n),{class:f.unref(jl)("bg-chat-haze-200 inline-flex w-fit items-center justify-center rounded-xl p-[3px]",t.class)}),{default:f.withCtx(()=>[f.renderSlot(i.$slots,"default")]),_:3},16,["class"]))}}),CQ=f.defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Hd(t,"class"),i=vv(n);return(o,r)=>(f.openBlock(),f.createBlock(f.unref(HK),f.mergeProps({"data-slot":"tabs-trigger",class:f.unref(jl)("data-[state=active]:bg-white focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex flex-1 items-center justify-center gap-1.5 rounded-xl px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow,background-color] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class)},f.unref(i)),{default:f.withCtx(()=>[f.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),RQ={class:"flex w-full max-w-sm flex-col gap-6"},MQ=f.defineComponent({__name:"TabBase",props:f.mergeModels({tabs:{}},{active:{},activeModifiers:{}}),emits:["update:active"],setup(e){const t=f.useModel(e,"active");return(n,i)=>(f.openBlock(),f.createElementBlock("div",RQ,[f.createVNode(f.unref(IQ),{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o)},{default:f.withCtx(()=>[f.createVNode(f.unref(AQ),null,{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.tabs,o=>(f.openBlock(),f.createBlock(f.unref(CQ),{class:"px-4 py-2 relative",value:o.value,key:o.value},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("div",{class:"w-5 h-5 bg-chat-error rounded-full absolute -top-[8px] -right-2 text-white"},f.toDisplayString(o.badge),513),[[f.vShow,o.badge]]),f.createTextVNode(" "+f.toDisplayString(o.label),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]))}});function wk(e,t,n=1e3){var s,l;if(!((s=Xe.value)!=null&&s.id))return;const i=Date.now(),o=(l=Xe.value)==null?void 0:l.id,r={timestamp:i,ttl:n,id:o,data:t};localStorage.setItem(e,JSON.stringify(r))}function Nk(e){var i,o;if(!((i=Xe.value)!=null&&i.id))return{data:null};const t=localStorage.getItem(e),n=(o=Xe.value)==null?void 0:o.id;if(!t)return{data:null};try{const r=JSON.parse(t);if(!r.timestamp||!r.ttl)return{data:null};if(!(r!=null&&r.id)||(r==null?void 0:r.id)!=n)return{data:null};const s=Date.now()-r.timestamp>r.ttl;return{data:r.data,needReload:s}}catch(r){return console.warn("Cache parse error:",r),{data:null}}}function OQ(e,t){const n=Object.keys(localStorage).filter(i=>i.startsWith(t));if(n.length>e){const i=n.map(o=>{const r=localStorage.getItem(o);try{const s=JSON.parse(r||"{}");return{key:o,expire:s.timestamp||0}}catch{return{key:o,expire:0}}});for(i.sort((o,r)=>o.expire-r.expire);i.length>e;){const o=i.shift();o&&localStorage.removeItem(o.key)}}}const{digibotData:wQ,digibotId:NQ}=hh(),xk=(e,t)=>{const n="chat-conversation-",i=f.ref(0),o=f.ref([]),r=f.ref({page:1,search:""});f.ref(!1),f.onMounted(()=>{l()}),f.onUnmounted(()=>{});const s=()=>{var v;Cr.forEach(_=>{var m;ov(_+((m=Xe.value)==null?void 0:m.id)),rv("chat-list-"+_+"-"+e)}),((v=Xe.value)==null?void 0:v.user_type)=="tenant"},l=async()=>{try{Xe.value&&(await qd(),Cr.forEach(v=>{var _,m;e==0&&iv(v+((_=Xe.value)==null?void 0:_.id)),yD("chat-list-"+v+"-"+e,v+((m=Xe.value)==null?void 0:m.id),u)}))}catch(v){console.error(v)}},u=(v,_)=>{var m,h;if((_.is_unknown??0)==e||!t&&e==0){if(d(),v===Cr[0]+((m=Xe.value)==null?void 0:m.id)){const E=o.value.findIndex(y=>y.id===_.id),g=o.value.findIndex(y=>y.id===NQ);E!=-1&&(_.username=o.value[E].username??"",o.value.splice(E,1)),g>-1?o.value.splice(1,0,_):o.value.unshift(_)}if(v===Cr[1]+((h=Xe.value)==null?void 0:h.id)&&_.is_unknown==e){const E=o.value.findIndex(g=>g.id===_.id);E!=-1&&(o.value[E].unread_count=0)}}},d=Co(()=>{c(void 0,{hideLoading:!0,reset:!0})},5e3),c=async(v,_)=>{var m,h,E;try{if(!t&&e==1)return;r.value={...r.value,...v??{}};const g=t?e:void 0;_!=null&&_.reset&&(r.value.page=1);const y=await ED({...r.value,is_unknown:g});_!=null&&_.reset&&(o.value=[],e==0&&((m=Xe.value)==null?void 0:m.user_type)=="tenant"&&o.value.push(wQ),await f.nextTick()),o.value.push(...(y==null?void 0:y.items)??[]),r.value.page=((h=y==null?void 0:y._meta)==null?void 0:h.currentPage)||1,i.value=((E=y==null?void 0:y._meta)==null?void 0:E.pageCount)||1,r.value.page<=1&&wk(n+e,o.value)}catch(g){console.error(g)}finally{}};return{listConversations:o,params:r,pageCount:i,getData:c,handleReadMessage:v=>{var m;const _=o.value.findIndex(h=>h.receiver_id==v);_>-1&&o.value[_].unread_count&&(pH(o.value[_].id),o.value[_].unread_count=0,Gd(Cr[1]+((m=Xe.value)==null?void 0:m.id),o.value[_]))},getDataCache:()=>{const v=Nk(n+e);return v.data?(o.value=[],o.value.push(...v.data??[]),!0):!1}}},Xi=(e,t=1)=>{let n=(""+e||"").replace(/[^\d*]/g,"");return n.length>10&&(n=n.substring(n.length-10)),n.length==10?(n=(n||"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"),n):""};function Pk(e){const t=e.replace(/\D/g,"").slice(0,10),n=t.length;return n===0?"":n<4?`(${t}`:n<7?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`}const xQ={class:"h-full flex flex-col bg-white pt-6"},PQ={class:"shrink-0 w-full px-6 flex gap-2 mb-4"},DQ={class:"grow relative overflow-hidden"},kQ=["onClick"],LQ={class:"grow ml-3 overflow-hidden"},UQ={class:"flex justify-between items-center gap-4"},BQ={class:"truncate text-left"},jQ={class:"flex items-center"},FQ={class:"truncate font-semibold"},VQ={key:1,class:"shrink-0 ml-2 bg-[#E60000] text-white text-xs font-bold px-2 py-[1px] flex-center rounded-full"},qQ={key:0,class:"shrink-0 text-sm text-right text-chat-gray-4 w-[80px] md:w-[130px]"},Dk=Pt(f.defineComponent({__name:"ChatList",props:f.mergeModels({responsive:{}},{receiverId:{},receiverIdModifiers:{}}),emits:f.mergeModels(["selectReceiver","openPhoneNumpad"],["update:receiverId"]),setup(e,{expose:t,emit:n}){var W,te;kt.extend(BY),kt.extend(LY),kt.extend(ID),kt.extend(CD),kt.updateLocale("en",{relativeTime:{future:"%s",past:"%s",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});const i=e,o=n,r={ALL:0,UNKNOWN:1},s=f.computed(()=>[{label:"All",value:r.ALL},{label:"Message Requests",value:r.UNKNOWN,badge:(I.value||"").toString()}]),{digibotData:l,digibotId:u}=hh(),{listConversations:d,getData:c,params:a,pageCount:p,handleReadMessage:v,getDataCache:_}=xk(r.ALL,((W=Xe.value)==null?void 0:W.user_type)==="tenant"),{listConversations:m,getData:h,params:E,pageCount:g,handleReadMessage:y,getDataCache:b}=xk(r.UNKNOWN,((te=Xe.value)==null?void 0:te.user_type)==="tenant"),T=f.useModel(e,"receiverId"),S=f.computed(()=>R.value==r.ALL?d.value:m.value),I=f.computed(()=>m.value.reduce((V,le)=>V+((le==null?void 0:le.unread_count)??0),0)??0),A=f.ref(""),R=f.ref(r.ALL),M=f.ref(null),x=f.ref(!1),w=async(V,le)=>{try{const K=(le==null?void 0:le.tab)??R.value;if(le!=null&&le.hideLoading||(x.value=!0),le!=null&&le.reset){let G=!1;K==r.ALL?G=_():K==r.UNKNOWN&&(G=b()),G&&(x.value=!1)}K==r.ALL?await c(V,le):K==r.UNKNOWN&&await h(V,le),le!=null&&le.hideCheckHasReceiveId||L(),le!=null&&le.reset&&U(K)}catch(K){console.error(K)}finally{x.value=!1}},U=async V=>{var le,K;if(V==r.ALL)for(;a.value.page<p.value&&!((le=M.value)!=null&&le.canScroll());){let G=a.value.page+1;await w({page:G},{tab:V})}else if(V==r.UNKNOWN)for(;E.value.page<g.value&&!((K=M.value)!=null&&K.canScroll());){let G=E.value.page+1;await w({page:G},{tab:V})}},L=()=>{var le,K;const V=(le=S.value)==null?void 0:le.some(G=>G.receiver_id===T.value&&T.value);i.responsive!="mobile"&&(V||(K=S.value)!=null&&K.length&&o("selectReceiver",S.value[0]))},N=V=>{w({search:V},{reset:!0})},B=Co(async()=>{var V,le,K,G;if(R.value==r.ALL){if(a.value.page>=p.value){(V=M.value)==null||V.hideLoading();return}let oe=a.value.page+1;await w({page:oe}),(le=M.value)==null||le.hideLoading()}else if(R.value==r.UNKNOWN){if(E.value.page>=g.value){(K=M.value)==null||K.hideLoading();return}let oe=E.value.page+1;await w({page:oe}),(G=M.value)==null||G.hideLoading()}},200),F=V=>{o("selectReceiver",V)},k=()=>{R.value==r.ALL?v(T.value):R.value==r.UNKNOWN&&y(T.value)},$=V=>V&&kt(V).isValid()?kt.tz(V,rd).local().fromNow():V??"",q=async(V,le)=>{var K,G;V==r.ALL&&!((K=d.value)!=null&&K.length)?await w({},{reset:!0,tab:V,...le??{}}):V==r.UNKNOWN&&!((G=m.value)!=null&&G.length)&&await w({},{reset:!0,tab:V,...le??{}})};return t({handleReadMessage:k,listConversationsAll:d,listConversationsUnknown:m,getCurrentConversation:()=>{var V;return(V=S.value)==null?void 0:V.find(le=>le.receiver_id==T.value)},initData:async V=>{(V!=null&&V.is_unknown||(V==null?void 0:V.is_unknown)=="0")&&(R.value=Number(V==null?void 0:V.is_unknown));let le=!1;if(V!=null&&V.conversation_id){const K=await NY(V==null?void 0:V.conversation_id);K.receiver_id&&(le=!0,F(K))}q(R.value,{hideCheckHasReceiveId:le}),q(R.value==1?0:1,{hideCheckHasReceiveId:!0,hideLoading:!0})}}),(V,le)=>{var K;return f.openBlock(),f.createElementBlock("div",xQ,[f.createElementVNode("div",PQ,[f.createVNode(t3,{class:"h-11 grow",responsive:V.responsive,modelValue:A.value,"onUpdate:modelValue":le[0]||(le[0]=G=>A.value=G),onSearch:N},null,8,["responsive","modelValue"]),V.responsive!="window"?(f.openBlock(),f.createElementBlock("button",{key:0,class:"shrink-0 h-11 w-11 rounded-full flex-center bg-[#C7DEFF]",onClick:le[1]||(le[1]=G=>o("openPhoneNumpad"))},[f.createVNode(r3,{class:"text-[#004AB3]"})])):f.createCommentVNode("",!0)]),((K=f.unref(Xe))==null?void 0:K.user_type)=="tenant"?(f.openBlock(),f.createBlock(MQ,{key:0,class:"shrink-0 px-6 mb-4",tabs:s.value,onChange:q,active:R.value,"onUpdate:active":le[2]||(le[2]=G=>R.value=G)},null,8,["tabs","active"])):f.createCommentVNode("",!0),f.createElementVNode("div",DQ,[f.createVNode(sv,{ref_key:"scrollEventRef",ref:M,class:"h-full overflow-auto",onGetDataBottom:f.unref(B),disabled:R.value==r.ALL?f.unref(a).page>=f.unref(p):f.unref(E).page>=f.unref(g),bottom:""},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(S.value,G=>(f.openBlock(),f.createElementBlock("div",{class:"",key:G.id,onClick:oe=>F(G)},[f.createElementVNode("div",{class:f.normalizeClass(["w-full overflow-hidden flex items-center hover:bg-[#EDF5FF] cursor-pointer px-6 py-2",{"bg-[#EDF5FF]":T.value==G.receiver_id&&V.responsive!="mobile"}])},[f.createVNode(nr,{id:G.id,class:f.normalizeClass(["shrink-0",{"animal-icon":(G==null?void 0:G.id)===f.unref(u)}]),src:G.avatar??"",color:G.color,name:G.username??""},null,8,["id","class","src","color","name"]),f.createElementVNode("div",LQ,[f.createElementVNode("div",UQ,[f.createElementVNode("div",BQ,[f.createElementVNode("div",jQ,[f.createElementVNode("p",FQ,f.toDisplayString(G.username||f.unref(Xi)(G.phone)||"n/a"),1),G.id==f.unref(u)?(f.openBlock(),f.createBlock(HY,{key:0,class:"ml-2"})):f.createCommentVNode("",!0),G.unread_count?(f.openBlock(),f.createElementBlock("span",VQ,f.toDisplayString(G.unread_count),1)):f.createCommentVNode("",!0)]),f.createElementVNode("p",{class:f.normalizeClass(["text-sm truncate",{"font-semibold":G.unread_count,"text-chat-gray-3":!G.unread_count}])},f.toDisplayString(G.last_message??"No messages"),3)]),G.id!=f.unref(u)?(f.openBlock(),f.createElementBlock("span",qQ,f.toDisplayString($(G.last_message_time??"")),1)):f.createCommentVNode("",!0)])])],2)],8,kQ))),128))]),_:1},8,["onGetDataBottom","disabled"])])])}}}),[["__scopeId","data-v-b30d01cf"]]),GQ={},HQ={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zQ(e,t){return f.openBlock(),f.createElementBlock("svg",HQ,t[0]||(t[0]=[f.createElementVNode("path",{d:"M16.5001 12.69V14.94C16.5009 15.1488 16.4581 15.3556 16.3745 15.547C16.2908 15.7383 16.168 15.9101 16.0141 16.0513C15.8602 16.1926 15.6785 16.3001 15.4806 16.367C15.2828 16.4339 15.0731 16.4588 14.8651 16.44C12.5572 16.1892 10.3403 15.4006 8.39257 14.1375C6.58044 12.9859 5.04407 11.4496 3.89257 9.63745C2.62506 7.68085 1.83625 5.4532 1.59007 3.13495C1.57133 2.92755 1.59598 2.71852 1.66245 2.52117C1.72892 2.32382 1.83575 2.14247 1.97615 1.98867C2.11654 1.83487 2.28743 1.71198 2.47792 1.62784C2.6684 1.5437 2.87433 1.50015 3.08257 1.49995H5.33257C5.69655 1.49637 6.04942 1.62526 6.32539 1.8626C6.60137 2.09994 6.78163 2.42954 6.83257 2.78995C6.92754 3.51 7.10366 4.217 7.35757 4.89745C7.45848 5.16589 7.48032 5.45764 7.4205 5.73811C7.36069 6.01859 7.22172 6.27603 7.02007 6.47995L6.06757 7.43245C7.13524 9.31011 8.68991 10.8648 10.5676 11.9325L11.5201 10.98C11.724 10.7783 11.9814 10.6393 12.2619 10.5795C12.5424 10.5197 12.8341 10.5415 13.1026 10.6425C13.783 10.8964 14.49 11.0725 15.2101 11.1675C15.5744 11.2188 15.9071 11.4024 16.145 11.6831C16.3828 11.9638 16.5092 12.3221 16.5001 12.69Z",fill:"currentColor"},null,-1)]))}const YQ=Pt(GQ,[["render",zQ]]);var mt=(e=>(e.HOME="home",e.CUSTOMER_DETAIL="customer_detail",e.CUSTOMER_CHECK_IN="customer_check_in",e.CUSTOMER_APPOINTMENT="customer_appointment",e.TENANT_ERROR="tenant_error",e.CHAT_LIST="chat_list",e.REGISTER_TENANT="register_tenant",e.REGISTER_SUCCESS="register_success",e.NOT_TENANT_PHONE="not_tenant_phone",e))(mt||{});const yn=f.ref(mt.HOME),Xn=e=>{yn.value=e},Ko=f.ref(null),ui=f.ref(null),WQ=async e=>await bl.get(`/v1/pos/customer/site/history?phone=${e}`),$Q=async e=>await cn.get("/api/v1/message/customer/info",{params:e});function kk(e,t="created_at"){let n=[];if(e!=null&&e.length){let i=kt(e[0][t]).format("YYYY"),o=[];for(let r=0;r<e.length;r++){o.push(e[r]);let s=e[r+1]?kt(e[r+1][t]).format("YYYY"):i;s!=i&&(n.push({year:i,items:[...o]}),i=s,o=[])}n.push({year:i,items:[...o]})}return n}const KQ={},QQ={width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JQ(e,t){return f.openBlock(),f.createElementBlock("svg",QQ,t[0]||(t[0]=[f.createElementVNode("path",{d:"M6.00003 17.9998H30",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M13.4994 25.5L5.99951 18L13.4995 10.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const oc=Pt(KQ,[["render",JQ]]),XQ={},ZQ={fill:"#fff",height:"18",width:"18",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","enable-background":"new 0 0 512 512","xml:space":"preserve"};function eJ(e,t){return f.openBlock(),f.createElementBlock("svg",ZQ,t[0]||(t[0]=[f.createElementVNode("path",{d:`M448,0H64C28.6,0,0,28.6,0,64v256c0,35.4,28.6,64,64,64h128l-42.7,128l192-128H448c35.4,0,64-28.6,64-64V64
31
+ `))}return()=>o.value||i.value||s.value?f.h(t.default({present:s.value})[0],{ref:c=>{const a=xs(c);return typeof(a==null?void 0:a.hasAttribute)>"u"||(a!=null&&a.hasAttribute("data-reka-popper-content-wrapper")?r.value=a.firstElementChild:r.value=a),a}}):null}});const hv=f.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var u;if(!n.default)return null;const i=lv(n.default()),o=i.findIndex(d=>d.type!==f.Comment);if(o===-1)return i;const r=i[o];(u=r.props)==null||delete u.ref;const s=r.props?f.mergeProps(t,r.props):t,l=f.cloneVNode({...r,props:{}},s);return i.length===1?l:(i[o]=l,i)}}}),CW=["area","img","input"],Jn=f.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const i=e.asChild?"template":e.as;return typeof i=="string"&&CW.includes(i)?()=>f.h(i,t):i!=="template"?()=>f.h(e.as,t,{default:n.default}):()=>f.h(hv,t,{default:n.default})}});function kD(){const e=f.ref(),t=f.computed(()=>{var n,i;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(i=e.value)==null?void 0:i.$el.nextElementSibling:xs(e)});return{primitiveElement:e,currentElement:t}}const[LD,RW]=Rr("CollapsibleRoot");var MW=f.defineComponent({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(e,{expose:t,emit:n}){const i=e,r=zd(i,"open",n,{defaultValue:i.defaultOpen,passive:i.open===void 0}),{disabled:s,unmountOnHide:l}=f.toRefs(i);return RW({contentId:"",disabled:s,open:r,unmountOnHide:l,onOpenToggle:()=>{s.value||(r.value=!r.value)}}),t({open:r}),li(),(u,d)=>(f.openBlock(),f.createBlock(f.unref(Jn),{as:u.as,"as-child":i.asChild,"data-state":f.unref(r)?"open":"closed","data-disabled":f.unref(s)?"":void 0},{default:f.withCtx(()=>[f.renderSlot(u.$slots,"default",{open:f.unref(r)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),OW=MW,wW=f.defineComponent({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(e,{emit:t}){const n=e,i=t,o=LD();o.contentId||(o.contentId=Pl(void 0,"reka-collapsible-content"));const r=f.ref(),{forwardRef:s,currentElement:l}=li(),u=f.ref(0),d=f.ref(0),c=f.computed(()=>o.open.value),a=f.ref(c.value),p=f.ref();f.watch(()=>{var _;return[c.value,(_=r.value)==null?void 0:_.present]},async()=>{await f.nextTick();const _=l.value;if(!_)return;p.value=p.value||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const m=_.getBoundingClientRect();d.value=m.height,u.value=m.width,a.value||(_.style.transitionDuration=p.value.transitionDuration,_.style.animationName=p.value.animationName)},{immediate:!0});const v=f.computed(()=>a.value&&o.open.value);return f.onMounted(()=>{requestAnimationFrame(()=>{a.value=!1})}),av(l,"beforematch",_=>{requestAnimationFrame(()=>{o.onOpenToggle(),i("contentFound")})}),(_,m)=>(f.openBlock(),f.createBlock(f.unref(DD),{ref_key:"presentRef",ref:r,present:_.forceMount||f.unref(o).open.value,"force-mount":!0},{default:f.withCtx(({present:h})=>{var E;return[f.createVNode(f.unref(Jn),f.mergeProps(_.$attrs,{id:f.unref(o).contentId,ref:f.unref(s),"as-child":n.asChild,as:_.as,hidden:h?void 0:f.unref(o).unmountOnHide.value?"":"until-found","data-state":v.value?void 0:f.unref(o).open.value?"open":"closed","data-disabled":(E=f.unref(o).disabled)!=null&&E.value?"":void 0,style:{"--reka-collapsible-content-height":`${d.value}px`,"--reka-collapsible-content-width":`${u.value}px`}}),{default:f.withCtx(()=>[!f.unref(o).unmountOnHide.value||h?f.renderSlot(_.$slots,"default",{key:0}):f.createCommentVNode("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]}),_:3},8,["present"]))}}),NW=wW,xW=f.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;li();const n=LD();return(i,o)=>{var r,s;return f.openBlock(),f.createBlock(f.unref(Jn),{type:i.as==="button"?"button":void 0,as:i.as,"as-child":t.asChild,"aria-controls":f.unref(n).contentId,"aria-expanded":f.unref(n).open.value,"data-state":f.unref(n).open.value?"open":"closed","data-disabled":(r=f.unref(n).disabled)!=null&&r.value?"":void 0,disabled:(s=f.unref(n).disabled)==null?void 0:s.value,onClick:f.unref(n).onOpenToggle},{default:f.withCtx(()=>[f.renderSlot(i.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}}),PW=xW;const DW="dismissableLayer.pointerDownOutside",kW="dismissableLayer.focusOutside";function UD(e,t){const n=t.closest("[data-dismissable-layer]"),i=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(i===n||o.indexOf(i)<o.indexOf(n)))}function LW(e,t,n=!0){var s;const i=((s=t==null?void 0:t.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=f.ref(!1),r=f.ref(()=>{});return f.watchEffect(l=>{if(!Ho||!f.toValue(n))return;const u=async c=>{const a=c.target;if(!(!(t!=null&&t.value)||!a)){if(UD(t.value,a)){o.value=!1;return}if(c.target&&!o.value){let v=function(){RD(DW,e,p)};const p={originalEvent:c};c.pointerType==="touch"?(i.removeEventListener("click",r.value),r.value=v,i.addEventListener("click",r.value,{once:!0})):v()}else i.removeEventListener("click",r.value);o.value=!1}},d=window.setTimeout(()=>{i.addEventListener("pointerdown",u)},0);l(()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",u),i.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{f.toValue(n)&&(o.value=!0)}}}function UW(e,t,n=!0){var r;const i=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=f.ref(!1);return f.watchEffect(s=>{if(!Ho||!f.toValue(n))return;const l=async u=>{if(!(t!=null&&t.value))return;await f.nextTick(),await f.nextTick();const d=u.target;!t.value||!d||UD(t.value,d)||u.target&&!o.value&&RD(kW,e,{originalEvent:u})};i.addEventListener("focusin",l),s(()=>i.removeEventListener("focusin",l))}),{onFocusCapture:()=>{f.toValue(n)&&(o.value=!0)},onBlurCapture:()=>{f.toValue(n)&&(o.value=!1)}}}const To=f.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var BW=f.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,i=t,{forwardRef:o,currentElement:r}=li(),s=f.computed(()=>{var _;return((_=r.value)==null?void 0:_.ownerDocument)??globalThis.document}),l=f.computed(()=>To.layersRoot),u=f.computed(()=>r.value?Array.from(l.value).indexOf(r.value):-1),d=f.computed(()=>To.layersWithOutsidePointerEventsDisabled.size>0),c=f.computed(()=>{const _=Array.from(l.value),[m]=[...To.layersWithOutsidePointerEventsDisabled].slice(-1),h=_.indexOf(m);return u.value>=h}),a=LW(async _=>{const m=[...To.branches].some(h=>h==null?void 0:h.contains(_.target));!c.value||m||(i("pointerDownOutside",_),i("interactOutside",_),await f.nextTick(),_.defaultPrevented||i("dismiss"))},r),p=UW(_=>{[...To.branches].some(h=>h==null?void 0:h.contains(_.target))||(i("focusOutside",_),i("interactOutside",_),_.defaultPrevented||i("dismiss"))},r);uW("Escape",_=>{u.value===l.value.size-1&&(i("escapeKeyDown",_),_.defaultPrevented||i("dismiss"))});let v;return f.watchEffect(_=>{r.value&&(n.disableOutsidePointerEvents&&(To.layersWithOutsidePointerEventsDisabled.size===0&&(v=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),To.layersWithOutsidePointerEventsDisabled.add(r.value)),l.value.add(r.value),_(()=>{n.disableOutsidePointerEvents&&To.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=v)}))}),f.watchEffect(_=>{_(()=>{r.value&&(l.value.delete(r.value),To.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(_,m)=>(f.openBlock(),f.createBlock(f.unref(Jn),{ref:f.unref(o),"as-child":_.asChild,as:_.as,"data-dismissable-layer":"",style:f.normalizeStyle({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:f.unref(p).onFocusCapture,onBlurCapture:f.unref(p).onBlurCapture,onPointerdownCapture:f.unref(a).onPointerDownCapture},{default:f.withCtx(()=>[f.renderSlot(_.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),jW=BW;const FW=$Y(()=>f.ref([]));function VW(){const e=FW();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=BD(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=BD(e.value,t),(n=e.value[0])==null||n.resume()}}}function BD(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function qW(e){return e.filter(t=>t.tagName!=="A")}const yv="focusScope.autoFocusOnMount",gv="focusScope.autoFocusOnUnmount",jD={bubbles:!1,cancelable:!0};function GW(e,{select:t=!1}={}){const n=Go();for(const i of e)if(zo(i,{select:t}),Go()!==n)return!0}function HW(e){const t=FD(e),n=VD(t,e),i=VD(t.reverse(),e);return[n,i]}function FD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function VD(e,t){for(const n of e)if(!zW(n,{upTo:t}))return n}function zW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function YW(e){return e instanceof HTMLInputElement&&"select"in e}function zo(e,{select:t=!1}={}){if(e&&e.focus){const n=Go();e.focus({preventScroll:!0}),e!==n&&YW(e)&&t&&e.select()}}var WW=f.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,i=t,{currentRef:o,currentElement:r}=li(),s=f.ref(null),l=VW(),u=f.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});f.watchEffect(c=>{if(!Ho)return;const a=r.value;if(!n.trapped)return;function p(h){if(u.paused||!a)return;const E=h.target;a.contains(E)?s.value=E:zo(s.value,{select:!0})}function v(h){if(u.paused||!a)return;const E=h.relatedTarget;E!==null&&(a.contains(E)||zo(s.value,{select:!0}))}function _(h){a.contains(s.value)||zo(a)}document.addEventListener("focusin",p),document.addEventListener("focusout",v);const m=new MutationObserver(_);a&&m.observe(a,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),m.disconnect()})}),f.watchEffect(async c=>{const a=r.value;if(await f.nextTick(),!a)return;l.add(u);const p=Go();if(!a.contains(p)){const _=new CustomEvent(yv,jD);a.addEventListener(yv,m=>i("mountAutoFocus",m)),a.dispatchEvent(_),_.defaultPrevented||(GW(qW(FD(a)),{select:!0}),Go()===p&&zo(a))}c(()=>{a.removeEventListener(yv,h=>i("mountAutoFocus",h));const _=new CustomEvent(gv,jD),m=h=>{i("unmountAutoFocus",h)};a.addEventListener(gv,m),a.dispatchEvent(_),setTimeout(()=>{_.defaultPrevented||zo(p??document.body,{select:!0}),a.removeEventListener(gv,m),l.remove(u)},0)})});function d(c){if(!n.loop&&!n.trapped||u.paused)return;const a=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,p=Go();if(a&&p){const v=c.currentTarget,[_,m]=HW(v);_&&m?!c.shiftKey&&p===m?(c.preventDefault(),n.loop&&zo(_,{select:!0})):c.shiftKey&&p===_&&(c.preventDefault(),n.loop&&zo(m,{select:!0})):p===v&&c.preventDefault()}}return(c,a)=>(f.openBlock(),f.createBlock(f.unref(Jn),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:f.withCtx(()=>[f.renderSlot(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),$W=WW,KW=f.defineComponent({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=sW();return(n,i)=>f.unref(t)||n.forceMount?(f.openBlock(),f.createBlock(f.Teleport,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[f.renderSlot(n.$slots,"default")],8,["to","disabled","defer"])):f.createCommentVNode("v-if",!0)}}),QW=KW;const qD="data-reka-collection-item";function GD(e={}){const{key:t="",isProvider:n=!1}=e,i=`${t}CollectionProvider`;let o;if(n){const c=f.ref(new Map);o={collectionRef:f.ref(),itemMap:c},f.provide(i,o)}else o=f.inject(i);const r=(c=!1)=>{const a=o.collectionRef.value;if(!a)return[];const p=Array.from(a.querySelectorAll(`[${qD}]`)),_=Array.from(o.itemMap.value.values()).sort((m,h)=>p.indexOf(m.ref)-p.indexOf(h.ref));return c?_:_.filter(m=>m.ref.dataset.disabled!=="")},s=f.defineComponent({name:"CollectionSlot",setup(c,{slots:a}){const{primitiveElement:p,currentElement:v}=kD();return f.watch(v,()=>{o.collectionRef.value=v.value}),()=>f.h(hv,{ref:p},a)}}),l=f.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(c,{slots:a,attrs:p}){const{primitiveElement:v,currentElement:_}=kD();return f.watchEffect(m=>{if(_.value){const h=f.markRaw(_.value);o.itemMap.value.set(h,{ref:_.value,value:c.value}),m(()=>o.itemMap.value.delete(h))}}),()=>f.h(hv,{...p,[qD]:"",ref:v},a)}}),u=f.computed(()=>Array.from(o.itemMap.value.values())),d=f.computed(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:u,itemMapSize:d,CollectionSlot:s,CollectionItem:l}}const JW="rovingFocusGroup.onEntryFocus",XW={bubbles:!1,cancelable:!0},ZW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e$(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function t$(e,t,n){const i=e$(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return ZW[i]}function HD(e,t=!1){const n=Go();for(const i of e)if(i===n||(i.focus({preventScroll:t}),Go()!==n))return}function n$(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const[i$,o$]=Rr("RovingFocusGroup");var r$=f.defineComponent({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const i=e,o=n,{loop:r,orientation:s,dir:l}=f.toRefs(i),u=ND(l),d=zd(i,"currentTabStopId",o,{defaultValue:i.defaultCurrentTabStopId,passive:i.currentTabStopId===void 0}),c=f.ref(!1),a=f.ref(!1),p=f.ref(0),{getItems:v,CollectionSlot:_}=GD({isProvider:!0});function m(E){const g=!a.value;if(E.currentTarget&&E.target===E.currentTarget&&g&&!c.value){const y=new CustomEvent(JW,XW);if(E.currentTarget.dispatchEvent(y),o("entryFocus",y),!y.defaultPrevented){const b=v().map(R=>R.ref).filter(R=>R.dataset.disabled!==""),T=b.find(R=>R.getAttribute("data-active")===""),S=b.find(R=>R.getAttribute("data-highlighted")===""),I=b.find(R=>R.id===d.value),A=[T,S,I,...b].filter(Boolean);HD(A,i.preventScrollOnEntryFocus)}}a.value=!1}function h(){setTimeout(()=>{a.value=!1},1)}return t({getItems:v}),o$({loop:r,dir:u,orientation:s,currentTabStopId:d,onItemFocus:E=>{d.value=E},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(E,g)=>(f.openBlock(),f.createBlock(f.unref(_),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{tabindex:c.value||p.value===0?-1:0,"data-orientation":f.unref(s),as:E.as,"as-child":E.asChild,dir:f.unref(u),style:{outline:"none"},onMousedown:g[0]||(g[0]=y=>a.value=!0),onMouseup:h,onFocus:m,onBlur:g[1]||(g[1]=y=>c.value=!1)},{default:f.withCtx(()=>[f.renderSlot(E.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),s$=r$,l$=f.defineComponent({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=i$(),i=Pl(),o=f.computed(()=>t.tabStopId||i),r=f.computed(()=>n.currentTabStopId.value===o.value),{getItems:s,CollectionItem:l}=GD();f.onMounted(()=>{t.focusable&&n.onFocusableItemAdd()}),f.onUnmounted(()=>{t.focusable&&n.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){n.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const c=t$(d,n.orientation.value,n.dir.value);if(c!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!t.allowShiftKey&&d.shiftKey)return;d.preventDefault();let a=[...s().map(p=>p.ref).filter(p=>p.dataset.disabled!=="")];if(c==="last")a.reverse();else if(c==="prev"||c==="next"){c==="prev"&&a.reverse();const p=a.indexOf(d.currentTarget);a=n.loop.value?n$(a,p+1):a.slice(p+1)}f.nextTick(()=>HD(a))}}return(d,c)=>(f.openBlock(),f.createBlock(f.unref(l),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{tabindex:r.value?0:-1,"data-orientation":f.unref(n).orientation.value,"data-active":d.active?"":void 0,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:c[0]||(c[0]=a=>{d.focusable?f.unref(n).onItemFocus(o.value):a.preventDefault()}),onFocus:c[1]||(c[1]=a=>f.unref(n).onItemFocus(o.value)),onKeydown:u},{default:f.withCtx(()=>[f.renderSlot(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),u$=l$;const[zD,d$]=Rr("PopperRoot");var c$=f.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=f.ref();return d$({anchor:t,onAnchorChange:n=>t.value=n}),(n,i)=>f.renderSlot(n.$slots,"default")}}),a$=c$,f$=f.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:i}=li(),o=zD();return f.watchPostEffect(()=>{o.onAnchorChange(t.reference??i.value)}),(r,s)=>(f.openBlock(),f.createBlock(f.unref(Jn),{ref:f.unref(n),as:r.as,"as-child":r.asChild},{default:f.withCtx(()=>[f.renderSlot(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),p$=f$;function _$(e){return e!==null}function v$(e){return{name:"transformOrigin",options:e,fn(t){var h,E,g;const{placement:n,rects:i,middlewareData:o}=t,s=((h=o.arrow)==null?void 0:h.centerOffset)!==0,l=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[d,c]=Ev(n),a={start:"0%",center:"50%",end:"100%"}[c],p=(((E=o.arrow)==null?void 0:E.x)??0)+l/2,v=(((g=o.arrow)==null?void 0:g.y)??0)+u/2;let _="",m="";return d==="bottom"?(_=s?a:`${p}px`,m=`${-u}px`):d==="top"?(_=s?a:`${p}px`,m=`${i.floating.height+u}px`):d==="right"?(_=`${-u}px`,m=s?a:`${v}px`):d==="left"&&(_=`${i.floating.width+u}px`,m=s?a:`${v}px`),{data:{x:_,y:m}}}}}function Ev(e){const[t,n="center"]=e.split("-");return[t,n]}const m$=["top","right","bottom","left"],Yo=Math.min,hi=Math.max,Kd=Math.round,Qd=Math.floor,$i=e=>({x:e,y:e}),h$={left:"right",right:"left",bottom:"top",top:"bottom"},y$={start:"end",end:"start"};function Tv(e,t,n){return hi(e,Yo(t,n))}function bo(e,t){return typeof e=="function"?e(t):e}function So(e){return e.split("-")[0]}function Ds(e){return e.split("-")[1]}function bv(e){return e==="x"?"y":"x"}function Sv(e){return e==="y"?"height":"width"}const g$=new Set(["top","bottom"]);function Ki(e){return g$.has(So(e))?"y":"x"}function Iv(e){return bv(Ki(e))}function E$(e,t,n){n===void 0&&(n=!1);const i=Ds(e),o=Iv(e),r=Sv(o);let s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Jd(s)),[s,Jd(s)]}function T$(e){const t=Jd(e);return[Av(e),t,Av(t)]}function Av(e){return e.replace(/start|end/g,t=>y$[t])}const YD=["left","right"],WD=["right","left"],b$=["top","bottom"],S$=["bottom","top"];function I$(e,t,n){switch(e){case"top":case"bottom":return n?t?WD:YD:t?YD:WD;case"left":case"right":return t?b$:S$;default:return[]}}function A$(e,t,n,i){const o=Ds(e);let r=I$(So(e),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),t&&(r=r.concat(r.map(Av)))),r}function Jd(e){return e.replace(/left|right|bottom|top/g,t=>h$[t])}function C$(e){return{top:0,right:0,bottom:0,left:0,...e}}function $D(e){return typeof e!="number"?C$(e):{top:e,right:e,bottom:e,left:e}}function Xd(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function KD(e,t,n){let{reference:i,floating:o}=e;const r=Ki(t),s=Iv(t),l=Sv(s),u=So(t),d=r==="y",c=i.x+i.width/2-o.width/2,a=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;let v;switch(u){case"top":v={x:c,y:i.y-o.height};break;case"bottom":v={x:c,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:a};break;case"left":v={x:i.x-o.width,y:a};break;default:v={x:i.x,y:i.y}}switch(Ds(t)){case"start":v[s]-=p*(n&&d?-1:1);break;case"end":v[s]+=p*(n&&d?-1:1);break}return v}const R$=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:a}=KD(d,i,u),p=i,v={},_=0;for(let m=0;m<l.length;m++){const{name:h,fn:E}=l[m],{x:g,y,data:b,reset:T}=await E({x:c,y:a,initialPlacement:i,placement:p,strategy:o,middlewareData:v,rects:d,platform:s,elements:{reference:e,floating:t}});c=g??c,a=y??a,v={...v,[h]:{...v[h],...b}},T&&_<=50&&(_++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(d=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:c,y:a}=KD(d,p,u)),m=-1)}return{x:c,y:a,placement:p,strategy:o,middlewareData:v}};async function Dl(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:r,rects:s,elements:l,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:a="floating",altBoundary:p=!1,padding:v=0}=bo(t,e),_=$D(v),h=l[p?a==="floating"?"reference":"floating":a],E=Xd(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(h)))==null||n?h:h.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:d,rootBoundary:c,strategy:u})),g=a==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},T=Xd(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(E.top-T.top+_.top)/b.y,bottom:(T.bottom-E.bottom+_.bottom)/b.y,left:(E.left-T.left+_.left)/b.x,right:(T.right-E.right+_.right)/b.x}}const M$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:u}=t,{element:d,padding:c=0}=bo(e,t)||{};if(d==null)return{};const a=$D(c),p={x:n,y:i},v=Iv(o),_=Sv(v),m=await s.getDimensions(d),h=v==="y",E=h?"top":"left",g=h?"bottom":"right",y=h?"clientHeight":"clientWidth",b=r.reference[_]+r.reference[v]-p[v]-r.floating[_],T=p[v]-r.reference[v],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let I=S?S[y]:0;(!I||!await(s.isElement==null?void 0:s.isElement(S)))&&(I=l.floating[y]||r.floating[_]);const A=b/2-T/2,R=I/2-m[_]/2-1,M=Yo(a[E],R),x=Yo(a[g],R),w=M,U=I-m[_]-x,L=I/2-m[_]/2+A,N=Tv(w,L,U),B=!u.arrow&&Ds(o)!=null&&L!==N&&r.reference[_]/2-(L<w?M:x)-m[_]/2<0,F=B?L<w?L-w:L-U:0;return{[v]:p[v]+F,data:{[v]:N,centerOffset:L-N-F,...B&&{alignmentOffset:F}},reset:B}}}),O$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:u,elements:d}=t,{mainAxis:c=!0,crossAxis:a=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:m=!0,...h}=bo(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const E=So(o),g=Ki(l),y=So(l)===l,b=await(u.isRTL==null?void 0:u.isRTL(d.floating)),T=p||(y||!m?[Jd(l)]:T$(l)),S=_!=="none";!p&&S&&T.push(...A$(l,m,_,b));const I=[l,...T],A=await Dl(t,h),R=[];let M=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&R.push(A[E]),a){const L=E$(o,s,b);R.push(A[L[0]],A[L[1]])}if(M=[...M,{placement:o,overflows:R}],!R.every(L=>L<=0)){var x,w;const L=(((x=r.flip)==null?void 0:x.index)||0)+1,N=I[L];if(N&&(!(a==="alignment"?g!==Ki(N):!1)||M.every(k=>Ki(k.placement)===g?k.overflows[0]>0:!0)))return{data:{index:L,overflows:M},reset:{placement:N}};let B=(w=M.filter(F=>F.overflows[0]<=0).sort((F,k)=>F.overflows[1]-k.overflows[1])[0])==null?void 0:w.placement;if(!B)switch(v){case"bestFit":{var U;const F=(U=M.filter(k=>{if(S){const $=Ki(k.placement);return $===g||$==="y"}return!0}).map(k=>[k.placement,k.overflows.filter($=>$>0).reduce(($,q)=>$+q,0)]).sort((k,$)=>k[1]-$[1])[0])==null?void 0:U[0];F&&(B=F);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function QD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function JD(e){return m$.some(t=>e[t]>=0)}const w$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=bo(e,t);switch(i){case"referenceHidden":{const r=await Dl(t,{...o,elementContext:"reference"}),s=QD(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:JD(s)}}}case"escaped":{const r=await Dl(t,{...o,altBoundary:!0}),s=QD(r,n.floating);return{data:{escapedOffsets:s,escaped:JD(s)}}}default:return{}}}}},XD=new Set(["left","top"]);async function N$(e,t){const{placement:n,platform:i,elements:o}=e,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=So(n),l=Ds(n),u=Ki(n)==="y",d=XD.has(s)?-1:1,c=r&&u?-1:1,a=bo(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:_}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return l&&typeof _=="number"&&(v=l==="end"?_*-1:_),u?{x:v*c,y:p*d}:{x:p*d,y:v*c}}const x$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:r,placement:s,middlewareData:l}=t,u=await N$(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:r+u.y,data:{...u,placement:s}}}}},P$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:E,y:g}=h;return{x:E,y:g}}},...u}=bo(e,t),d={x:n,y:i},c=await Dl(t,u),a=Ki(So(o)),p=bv(a);let v=d[p],_=d[a];if(r){const h=p==="y"?"top":"left",E=p==="y"?"bottom":"right",g=v+c[h],y=v-c[E];v=Tv(g,v,y)}if(s){const h=a==="y"?"top":"left",E=a==="y"?"bottom":"right",g=_+c[h],y=_-c[E];_=Tv(g,_,y)}const m=l.fn({...t,[p]:v,[a]:_});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[p]:r,[a]:s}}}}}},D$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:r,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=bo(e,t),c={x:n,y:i},a=Ki(o),p=bv(a);let v=c[p],_=c[a];const m=bo(l,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const y=p==="y"?"height":"width",b=r.reference[p]-r.floating[y]+h.mainAxis,T=r.reference[p]+r.reference[y]-h.mainAxis;v<b?v=b:v>T&&(v=T)}if(d){var E,g;const y=p==="y"?"width":"height",b=XD.has(So(o)),T=r.reference[a]-r.floating[y]+(b&&((E=s.offset)==null?void 0:E[a])||0)+(b?0:h.crossAxis),S=r.reference[a]+r.reference[y]+(b?0:((g=s.offset)==null?void 0:g[a])||0)-(b?h.crossAxis:0);_<T?_=T:_>S&&(_=S)}return{[p]:v,[a]:_}}}},k$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:r,platform:s,elements:l}=t,{apply:u=()=>{},...d}=bo(e,t),c=await Dl(t,d),a=So(o),p=Ds(o),v=Ki(o)==="y",{width:_,height:m}=r.floating;let h,E;a==="top"||a==="bottom"?(h=a,E=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(E=a,h=p==="end"?"top":"bottom");const g=m-c.top-c.bottom,y=_-c.left-c.right,b=Yo(m-c[h],g),T=Yo(_-c[E],y),S=!t.middlewareData.shift;let I=b,A=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(I=g),S&&!p){const M=hi(c.left,0),x=hi(c.right,0),w=hi(c.top,0),U=hi(c.bottom,0);v?A=_-2*(M!==0||x!==0?M+x:hi(c.left,c.right)):I=m-2*(w!==0||U!==0?w+U:hi(c.top,c.bottom))}await u({...t,availableWidth:A,availableHeight:I});const R=await s.getDimensions(l.floating);return _!==R.width||m!==R.height?{reset:{rects:!0}}:{}}}};function Zd(){return typeof window<"u"}function Or(e){return Cv(e)?(e.nodeName||"").toLowerCase():"#document"}function yi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qi(e){var t;return(t=(Cv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cv(e){return Zd()?e instanceof Node||e instanceof yi(e).Node:!1}function Di(e){return Zd()?e instanceof Element||e instanceof yi(e).Element:!1}function Ji(e){return Zd()?e instanceof HTMLElement||e instanceof yi(e).HTMLElement:!1}function ZD(e){return!Zd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yi(e).ShadowRoot}const L$=new Set(["inline","contents"]);function kl(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ki(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!L$.has(o)}const U$=new Set(["table","td","th"]);function B$(e){return U$.has(Or(e))}const j$=[":popover-open",":modal"];function ec(e){return j$.some(t=>{try{return e.matches(t)}catch{return!1}})}const F$=["transform","translate","scale","rotate","perspective"],V$=["transform","translate","scale","rotate","perspective","filter"],q$=["paint","layout","strict","content"];function Rv(e){const t=Mv(),n=Di(e)?ki(e):e;return F$.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||V$.some(i=>(n.willChange||"").includes(i))||q$.some(i=>(n.contain||"").includes(i))}function G$(e){let t=Wo(e);for(;Ji(t)&&!ks(t);){if(Rv(t))return t;if(ec(t))return null;t=Wo(t)}return null}function Mv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const H$=new Set(["html","body","#document"]);function ks(e){return H$.has(Or(e))}function ki(e){return yi(e).getComputedStyle(e)}function tc(e){return Di(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wo(e){if(Or(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ZD(e)&&e.host||Qi(e);return ZD(t)?t.host:t}function ek(e){const t=Wo(e);return ks(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&kl(t)?t:ek(t)}function Ll(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ek(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),s=yi(o);if(r){const l=Ov(s);return t.concat(s,s.visualViewport||[],kl(o)?o:[],l&&n?Ll(l):[])}return t.concat(o,Ll(o,[],n))}function Ov(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tk(e){const t=ki(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Ji(e),r=o?e.offsetWidth:n,s=o?e.offsetHeight:i,l=Kd(n)!==r||Kd(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function wv(e){return Di(e)?e:e.contextElement}function Ls(e){const t=wv(e);if(!Ji(t))return $i(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=tk(t);let s=(r?Kd(n.width):n.width)/i,l=(r?Kd(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const z$=$i(0);function nk(e){const t=yi(e);return!Mv()||!t.visualViewport?z$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Y$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yi(e)?!1:t}function wr(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=wv(e);let s=$i(1);t&&(i?Di(i)&&(s=Ls(i)):s=Ls(e));const l=Y$(r,n,i)?nk(r):$i(0);let u=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,c=o.width/s.x,a=o.height/s.y;if(r){const p=yi(r),v=i&&Di(i)?yi(i):i;let _=p,m=Ov(_);for(;m&&i&&v!==_;){const h=Ls(m),E=m.getBoundingClientRect(),g=ki(m),y=E.left+(m.clientLeft+parseFloat(g.paddingLeft))*h.x,b=E.top+(m.clientTop+parseFloat(g.paddingTop))*h.y;u*=h.x,d*=h.y,c*=h.x,a*=h.y,u+=y,d+=b,_=yi(m),m=Ov(_)}}return Xd({width:c,height:a,x:u,y:d})}function Nv(e,t){const n=tc(e).scrollLeft;return t?t.left+n:wr(Qi(e)).left+n}function ik(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=i.left+t.scrollLeft-(n?0:Nv(e,i)),r=i.top+t.scrollTop;return{x:o,y:r}}function W$(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const r=o==="fixed",s=Qi(i),l=t?ec(t.floating):!1;if(i===s||l&&r)return n;let u={scrollLeft:0,scrollTop:0},d=$i(1);const c=$i(0),a=Ji(i);if((a||!a&&!r)&&((Or(i)!=="body"||kl(s))&&(u=tc(i)),Ji(i))){const v=wr(i);d=Ls(i),c.x=v.x+i.clientLeft,c.y=v.y+i.clientTop}const p=s&&!a&&!r?ik(s,u,!0):$i(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+c.x+p.x,y:n.y*d.y-u.scrollTop*d.y+c.y+p.y}}function $$(e){return Array.from(e.getClientRects())}function K$(e){const t=Qi(e),n=tc(e),i=e.ownerDocument.body,o=hi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=hi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Nv(e);const l=-n.scrollTop;return ki(i).direction==="rtl"&&(s+=hi(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:l}}function Q$(e,t){const n=yi(e),i=Qi(e),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;const d=Mv();(!d||d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:r,height:s,x:l,y:u}}const J$=new Set(["absolute","fixed"]);function X$(e,t){const n=wr(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=Ji(e)?Ls(e):$i(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,u=o*r.x,d=i*r.y;return{width:s,height:l,x:u,y:d}}function ok(e,t,n){let i;if(t==="viewport")i=Q$(e,n);else if(t==="document")i=K$(Qi(e));else if(Di(t))i=X$(t,n);else{const o=nk(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xd(i)}function rk(e,t){const n=Wo(e);return n===t||!Di(n)||ks(n)?!1:ki(n).position==="fixed"||rk(n,t)}function Z$(e,t){const n=t.get(e);if(n)return n;let i=Ll(e,[],!1).filter(l=>Di(l)&&Or(l)!=="body"),o=null;const r=ki(e).position==="fixed";let s=r?Wo(e):e;for(;Di(s)&&!ks(s);){const l=ki(s),u=Rv(s);!u&&l.position==="fixed"&&(o=null),(r?!u&&!o:!u&&l.position==="static"&&!!o&&J$.has(o.position)||kl(s)&&!u&&rk(e,s))?i=i.filter(c=>c!==s):o=l,s=Wo(s)}return t.set(e,i),i}function eK(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const s=[...n==="clippingAncestors"?ec(t)?[]:Z$(t,this._c):[].concat(n),i],l=s[0],u=s.reduce((d,c)=>{const a=ok(t,c,o);return d.top=hi(a.top,d.top),d.right=Yo(a.right,d.right),d.bottom=Yo(a.bottom,d.bottom),d.left=hi(a.left,d.left),d},ok(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function tK(e){const{width:t,height:n}=tk(e);return{width:t,height:n}}function nK(e,t,n){const i=Ji(t),o=Qi(t),r=n==="fixed",s=wr(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const u=$i(0);function d(){u.x=Nv(o)}if(i||!i&&!r)if((Or(t)!=="body"||kl(o))&&(l=tc(t)),i){const v=wr(t,!0,r,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&d();r&&!i&&o&&d();const c=o&&!i&&!r?ik(o,l):$i(0),a=s.left+l.scrollLeft-u.x-c.x,p=s.top+l.scrollTop-u.y-c.y;return{x:a,y:p,width:s.width,height:s.height}}function xv(e){return ki(e).position==="static"}function sk(e,t){if(!Ji(e)||ki(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qi(e)===n&&(n=n.ownerDocument.body),n}function lk(e,t){const n=yi(e);if(ec(e))return n;if(!Ji(e)){let o=Wo(e);for(;o&&!ks(o);){if(Di(o)&&!xv(o))return o;o=Wo(o)}return n}let i=sk(e,t);for(;i&&B$(i)&&xv(i);)i=sk(i,t);return i&&ks(i)&&xv(i)&&!Rv(i)?n:i||G$(e)||n}const iK=async function(e){const t=this.getOffsetParent||lk,n=this.getDimensions,i=await n(e.floating);return{reference:nK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oK(e){return ki(e).direction==="rtl"}const rK={convertOffsetParentRelativeRectToViewportRelativeRect:W$,getDocumentElement:Qi,getClippingRect:eK,getOffsetParent:lk,getElementRects:iK,getClientRects:$$,getDimensions:tK,getScale:Ls,isElement:Di,isRTL:oK};function uk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sK(e,t){let n=null,i;const o=Qi(e);function r(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),r();const d=e.getBoundingClientRect(),{left:c,top:a,width:p,height:v}=d;if(l||t(),!p||!v)return;const _=Qd(a),m=Qd(o.clientWidth-(c+p)),h=Qd(o.clientHeight-(a+v)),E=Qd(c),y={rootMargin:-_+"px "+-m+"px "+-h+"px "+-E+"px",threshold:hi(0,Yo(1,u))||1};let b=!0;function T(S){const I=S[0].intersectionRatio;if(I!==u){if(!b)return s();I?s(!1,I):i=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!uk(d,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(T,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,y)}n.observe(e)}return s(!0),r}function lK(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,d=wv(e),c=o||r?[...d?Ll(d):[],...Ll(t)]:[];c.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),r&&E.addEventListener("resize",n)});const a=d&&l?sK(d,n):null;let p=-1,v=null;s&&(v=new ResizeObserver(E=>{let[g]=E;g&&g.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),d&&!u&&v.observe(d),v.observe(t));let _,m=u?wr(e):null;u&&h();function h(){const E=wr(e);m&&!uk(m,E)&&n(),m=E,_=requestAnimationFrame(h)}return n(),()=>{var E;c.forEach(g=>{o&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),a==null||a(),(E=v)==null||E.disconnect(),v=null,u&&cancelAnimationFrame(_)}}const uK=x$,dK=P$,dk=O$,cK=k$,aK=w$,fK=M$,pK=D$,_K=(e,t,n)=>{const i=new Map,o={platform:rK,...n},r={...o.platform,_c:i};return R$(e,t,{...o,platform:r})};function vK(e){return e!=null&&typeof e=="object"&&"$el"in e}function Pv(e){if(vK(e)){const t=e.$el;return Cv(t)&&Or(t)==="#comment"?null:t}return e}function Us(e){return typeof e=="function"?e():f.unref(e)}function mK(e){return{name:"arrow",options:e,fn(t){const n=Pv(Us(e.element));return n==null?{}:fK({element:n,padding:e.padding}).fn(t)}}}function ck(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ak(e,t){const n=ck(e);return Math.round(t*n)/n}function hK(e,t,n){n===void 0&&(n={});const i=n.whileElementsMounted,o=f.computed(()=>{var I;return(I=Us(n.open))!=null?I:!0}),r=f.computed(()=>Us(n.middleware)),s=f.computed(()=>{var I;return(I=Us(n.placement))!=null?I:"bottom"}),l=f.computed(()=>{var I;return(I=Us(n.strategy))!=null?I:"absolute"}),u=f.computed(()=>{var I;return(I=Us(n.transform))!=null?I:!0}),d=f.computed(()=>Pv(e.value)),c=f.computed(()=>Pv(t.value)),a=f.ref(0),p=f.ref(0),v=f.ref(l.value),_=f.ref(s.value),m=f.shallowRef({}),h=f.ref(!1),E=f.computed(()=>{const I={position:v.value,left:"0",top:"0"};if(!c.value)return I;const A=ak(c.value,a.value),R=ak(c.value,p.value);return u.value?{...I,transform:"translate("+A+"px, "+R+"px)",...ck(c.value)>=1.5&&{willChange:"transform"}}:{position:v.value,left:A+"px",top:R+"px"}});let g;function y(){if(d.value==null||c.value==null)return;const I=o.value;_K(d.value,c.value,{middleware:r.value,placement:s.value,strategy:l.value}).then(A=>{a.value=A.x,p.value=A.y,v.value=A.strategy,_.value=A.placement,m.value=A.middlewareData,h.value=I!==!1})}function b(){typeof g=="function"&&(g(),g=void 0)}function T(){if(b(),i===void 0){y();return}if(d.value!=null&&c.value!=null){g=i(d.value,c.value,y);return}}function S(){o.value||(h.value=!1)}return f.watch([r,s,l,o],y,{flush:"sync"}),f.watch([d,c],T,{flush:"sync"}),f.watch(o,S,{flush:"sync"}),f.getCurrentScope()&&f.onScopeDispose(b),{x:f.shallowReadonly(a),y:f.shallowReadonly(p),strategy:f.shallowReadonly(v),placement:f.shallowReadonly(_),middlewareData:f.shallowReadonly(m),isPositioned:f.shallowReadonly(h),floatingStyles:E,update:y}}const yK={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Toe,gK]=Rr("PopperContent");var EK=f.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:f.mergeDefaults({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...yK}),emits:["placed"],setup(e,{emit:t}){const n=e,i=t,o=zD(),{forwardRef:r,currentElement:s}=li(),l=f.ref(),u=f.ref(),{width:d,height:c}=SW(u),a=f.computed(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=f.computed(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),v=f.computed(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),_=f.computed(()=>({padding:p.value,boundary:v.value.filter(_$),altBoundary:v.value.length>0})),m=f.computed(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),h=WY(()=>[uK({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&dk({..._.value,...m.value}),n.avoidCollisions&&dK({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?pK():void 0,..._.value}),!n.prioritizePosition&&n.avoidCollisions&&dk({..._.value,...m.value}),cK({..._.value,apply:({elements:U,rects:L,availableWidth:N,availableHeight:B})=>{const{width:F,height:k}=L.reference,$=U.floating.style;$.setProperty("--reka-popper-available-width",`${N}px`),$.setProperty("--reka-popper-available-height",`${B}px`),$.setProperty("--reka-popper-anchor-width",`${F}px`),$.setProperty("--reka-popper-anchor-height",`${k}px`)}}),u.value&&mK({element:u.value,padding:n.arrowPadding}),v$({arrowWidth:d.value,arrowHeight:c.value}),n.hideWhenDetached&&aK({strategy:"referenceHidden",..._.value})]),E=f.computed(()=>n.reference??o.anchor.value),{floatingStyles:g,placement:y,isPositioned:b,middlewareData:T,update:S}=hK(E,l,{strategy:n.positionStrategy,placement:a,whileElementsMounted:(...U)=>lK(...U,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),I=f.computed(()=>Ev(y.value)[0]),A=f.computed(()=>Ev(y.value)[1]);f.watchPostEffect(()=>{b.value&&i("placed")});const R=f.computed(()=>{var U;return((U=T.value.arrow)==null?void 0:U.centerOffset)!==0}),M=f.ref("");f.watchEffect(()=>{s.value&&(M.value=window.getComputedStyle(s.value).zIndex)});const x=f.computed(()=>{var U;return((U=T.value.arrow)==null?void 0:U.x)??0}),w=f.computed(()=>{var U;return((U=T.value.arrow)==null?void 0:U.y)??0});return gK({placedSide:I,onArrowChange:U=>u.value=U,arrowX:x,arrowY:w,shouldHideArrow:R}),(U,L)=>{var N,B,F;return f.openBlock(),f.createElementBlock("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:f.normalizeStyle({...f.unref(g),transform:f.unref(b)?f.unref(g).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:M.value,"--reka-popper-transform-origin":[(N=f.unref(T).transformOrigin)==null?void 0:N.x,(B=f.unref(T).transformOrigin)==null?void 0:B.y].join(" "),...((F=f.unref(T).hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[f.createVNode(f.unref(Jn),f.mergeProps({ref:f.unref(r)},U.$attrs,{"as-child":n.asChild,as:U.as,"data-side":I.value,"data-align":A.value,style:{animation:f.unref(b)?void 0:"none"}}),{default:f.withCtx(()=>[f.renderSlot(U.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),TK=EK;const[Ul,bK]=Rr("PopoverRoot");var SK=f.defineComponent({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,i=t,{modal:o}=f.toRefs(n),r=zd(n,"open",i,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=f.ref(),l=f.ref(!1);return bK({contentId:"",triggerId:"",modal:o,open:r,onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},triggerElement:s,hasCustomAnchor:l}),(u,d)=>(f.openBlock(),f.createBlock(f.unref(a$),null,{default:f.withCtx(()=>[f.renderSlot(u.$slots,"default",{open:f.unref(r),close:()=>r.value=!1})]),_:3}))}}),IK=SK,AK=f.defineComponent({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=vv(XY(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=li(),s=Ul();return mW(),(l,u)=>(f.openBlock(),f.createBlock(f.unref($W),{"as-child":"",loop:"",trapped:l.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>i("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>i("closeAutoFocus",d))},{default:f.withCtx(()=>[f.createVNode(f.unref(jW),{"as-child":"","disable-outside-pointer-events":l.disableOutsidePointerEvents,onPointerDownOutside:u[0]||(u[0]=d=>i("pointerDownOutside",d)),onInteractOutside:u[1]||(u[1]=d=>i("interactOutside",d)),onEscapeKeyDown:u[2]||(u[2]=d=>i("escapeKeyDown",d)),onFocusOutside:u[3]||(u[3]=d=>i("focusOutside",d)),onDismiss:u[4]||(u[4]=d=>f.unref(s).onOpenChange(!1))},{default:f.withCtx(()=>[f.createVNode(f.unref(TK),f.mergeProps(f.unref(o),{id:f.unref(s).contentId,ref:f.unref(r),"data-state":f.unref(s).open.value?"open":"closed","aria-labelledby":f.unref(s).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),fk=AK,CK=f.defineComponent({__name:"PopoverContentModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=Ul(),r=f.ref(!1);pW(!0);const s=Mr(n,i),{forwardRef:l,currentElement:u}=li();return TW(u),(d,c)=>(f.openBlock(),f.createBlock(fk,f.mergeProps(f.unref(s),{ref:f.unref(l),"trap-focus":f.unref(o).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=f.withModifiers(a=>{var p;i("closeAutoFocus",a),r.value||(p=f.unref(o).triggerElement.value)==null||p.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=a=>{i("pointerDownOutside",a);const p=a.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0,_=p.button===2||v;r.value=_}),onFocusOutside:c[2]||(c[2]=f.withModifiers(()=>{},["prevent"]))}),{default:f.withCtx(()=>[f.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),RK=CK,MK=f.defineComponent({__name:"PopoverContentNonModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=Ul(),r=f.ref(!1),s=f.ref(!1),l=Mr(n,i);return(u,d)=>(f.openBlock(),f.createBlock(fk,f.mergeProps(f.unref(l),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{var a;i("closeAutoFocus",c),c.defaultPrevented||(r.value||(a=f.unref(o).triggerElement.value)==null||a.focus(),c.preventDefault()),r.value=!1,s.value=!1}),onInteractOutside:d[1]||(d[1]=async c=>{var v;i("interactOutside",c),c.defaultPrevented||(r.value=!0,c.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const a=c.target;((v=f.unref(o).triggerElement.value)==null?void 0:v.contains(a))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.value&&c.preventDefault()})}),{default:f.withCtx(()=>[f.renderSlot(u.$slots,"default")]),_:3},16))}}),OK=MK,wK=f.defineComponent({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=Ul(),r=Mr(n,i),{forwardRef:s}=li();return o.contentId||(o.contentId=Pl(void 0,"reka-popover-content")),(l,u)=>(f.openBlock(),f.createBlock(f.unref(DD),{present:l.forceMount||f.unref(o).open.value},{default:f.withCtx(()=>[f.unref(o).modal.value?(f.openBlock(),f.createBlock(RK,f.mergeProps({key:0},f.unref(r),{ref:f.unref(s)}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},16)):(f.openBlock(),f.createBlock(OK,f.mergeProps({key:1},f.unref(r),{ref:f.unref(s)}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),NK=wK,xK=f.defineComponent({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,i)=>(f.openBlock(),f.createBlock(f.unref(QW),f.normalizeProps(f.guardReactiveProps(t)),{default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3},16))}}),PK=xK,DK=f.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Ul(),{forwardRef:i,currentElement:o}=li();return n.triggerId||(n.triggerId=Pl(void 0,"reka-popover-trigger")),f.onMounted(()=>{n.triggerElement.value=o.value}),(r,s)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(f.unref(n).hasCustomAnchor.value?f.unref(Jn):f.unref(p$)),{"as-child":""},{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{id:f.unref(n).triggerId,ref:f.unref(i),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":f.unref(n).open.value,"aria-controls":f.unref(n).contentId,"data-state":f.unref(n).open.value?"open":"closed",as:r.as,"as-child":t.asChild,onClick:f.unref(n).onOpenToggle},{default:f.withCtx(()=>[f.renderSlot(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),kK=DK;const[pk,LK]=Rr("TabsRoot");var UK=f.defineComponent({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,{orientation:o,unmountOnHide:r,dir:s}=f.toRefs(n),l=ND(s);li();const u=zd(n,"modelValue",i,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),d=f.ref();return LK({modelValue:u,changeModelValue:c=>{u.value=c},orientation:o,dir:l,unmountOnHide:r,activationMode:n.activationMode,baseId:Pl(void 0,"reka-tabs"),tabsList:d}),(c,a)=>(f.openBlock(),f.createBlock(f.unref(Jn),{dir:f.unref(l),"data-orientation":f.unref(o),"as-child":c.asChild,as:c.as},{default:f.withCtx(()=>[f.renderSlot(c.$slots,"default",{modelValue:f.unref(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),BK=UK;function jK(e,t){return`${e}-trigger-${t}`}function FK(e,t){return`${e}-content-${t}`}var VK=f.defineComponent({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=f.toRefs(t),{forwardRef:i,currentElement:o}=li(),r=pk();return r.tabsList=o,(s,l)=>(f.openBlock(),f.createBlock(f.unref(s$),{"as-child":"",orientation:f.unref(r).orientation.value,dir:f.unref(r).dir.value,loop:f.unref(n)},{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{ref:f.unref(i),role:"tablist","as-child":s.asChild,as:s.as,"aria-orientation":f.unref(r).orientation.value},{default:f.withCtx(()=>[f.renderSlot(s.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),qK=VK,GK=f.defineComponent({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=li(),i=pk(),o=f.computed(()=>jK(i.baseId,t.value)),r=f.computed(()=>FK(i.baseId,t.value)),s=f.computed(()=>t.value===i.modelValue.value);return(l,u)=>(f.openBlock(),f.createBlock(f.unref(u$),{"as-child":"",focusable:!l.disabled,active:s.value},{default:f.withCtx(()=>[f.createVNode(f.unref(Jn),{id:o.value,ref:f.unref(n),role:"tab",type:l.as==="button"?"button":void 0,as:l.as,"as-child":l.asChild,"aria-selected":s.value?"true":"false","aria-controls":r.value,"data-state":s.value?"active":"inactive",disabled:l.disabled,"data-disabled":l.disabled?"":void 0,"data-orientation":f.unref(i).orientation.value,onMousedown:u[0]||(u[0]=f.withModifiers(d=>{!l.disabled&&d.ctrlKey===!1?f.unref(i).changeModelValue(l.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=f.withKeys(d=>f.unref(i).changeModelValue(l.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const d=f.unref(i).activationMode!=="manual";!s.value&&!l.disabled&&d&&f.unref(i).changeModelValue(l.value)})},{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),HK=GK;function _k(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_k(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function vk(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_k(e))&&(i&&(i+=" "),i+=t);return i}const Dv="-",zK=e=>{const t=WK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const l=s.split(Dv);return l[0]===""&&l.length!==1&&l.shift(),mk(l,t)||YK(s)},getConflictingClassGroupIds:(s,l)=>{const u=n[s]||[];return l&&i[s]?[...u,...i[s]]:u}}},mk=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?mk(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const r=e.join(Dv);return(s=t.validators.find(({validator:l})=>l(r)))==null?void 0:s.classGroupId},hk=/^\[(.+)\]$/,YK=e=>{if(hk.test(e)){const t=hk.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},WK=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const o in n)kv(n[o],i,o,t);return i},kv=(e,t,n,i)=>{e.forEach(o=>{if(typeof o=="string"){const r=o===""?t:yk(t,o);r.classGroupId=n;return}if(typeof o=="function"){if($K(o)){kv(o(i),t,n,i);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([r,s])=>{kv(s,yk(t,r),n,i)})})},yk=(e,t)=>{let n=e;return t.split(Dv).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},$K=e=>e.isThemeGetter,KK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const o=(r,s)=>{n.set(r,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(r){let s=n.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return o(r,s),s},set(r,s){n.has(r)?n.set(r,s):o(r,s)}}},Lv="!",Uv=":",QK=Uv.length,JK=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=o=>{const r=[];let s=0,l=0,u=0,d;for(let _=0;_<o.length;_++){let m=o[_];if(s===0&&l===0){if(m===Uv){r.push(o.slice(u,_)),u=_+QK;continue}if(m==="/"){d=_;continue}}m==="["?s++:m==="]"?s--:m==="("?l++:m===")"&&l--}const c=r.length===0?o:o.substring(u),a=XK(c),p=a!==c,v=d&&d>u?d-u:void 0;return{modifiers:r,hasImportantModifier:p,baseClassName:a,maybePostfixModifierPosition:v}};if(t){const o=t+Uv,r=i;i=s=>s.startsWith(o)?r(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=i;i=r=>n({className:r,parseClassName:o})}return i},XK=e=>e.endsWith(Lv)?e.substring(0,e.length-1):e.startsWith(Lv)?e.substring(1):e,ZK=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let r=[];return i.forEach(s=>{s[0]==="["||t[s]?(o.push(...r.sort(),s),r=[]):r.push(s)}),o.push(...r.sort()),o}},eQ=e=>({cache:KK(e.cacheSize),parseClassName:JK(e),sortModifiers:ZK(e),...zK(e)}),tQ=/\s+/,nQ=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r}=t,s=[],l=e.trim().split(tQ);let u="";for(let d=l.length-1;d>=0;d-=1){const c=l[d],{isExternal:a,modifiers:p,hasImportantModifier:v,baseClassName:_,maybePostfixModifierPosition:m}=n(c);if(a){u=c+(u.length>0?" "+u:u);continue}let h=!!m,E=i(h?_.substring(0,m):_);if(!E){if(!h){u=c+(u.length>0?" "+u:u);continue}if(E=i(_),!E){u=c+(u.length>0?" "+u:u);continue}h=!1}const g=r(p).join(":"),y=v?g+Lv:g,b=y+E;if(s.includes(b))continue;s.push(b);const T=o(E,h);for(let S=0;S<T.length;++S){const I=T[S];s.push(y+I)}u=c+(u.length>0?" "+u:u)}return u};function iQ(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gk(t))&&(i&&(i+=" "),i+=n);return i}const gk=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=gk(e[i]))&&(n&&(n+=" "),n+=t);return n};function oQ(e,...t){let n,i,o,r=s;function s(u){const d=t.reduce((c,a)=>a(c),e());return n=eQ(d),i=n.cache.get,o=n.cache.set,r=l,l(u)}function l(u){const d=i(u);if(d)return d;const c=nQ(u,n);return o(u,c),c}return function(){return r(iQ.apply(null,arguments))}}const hn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ek=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rQ=/^\d+\/\d+$/,sQ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lQ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,uQ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dQ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cQ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bs=e=>rQ.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),$o=e=>!!e&&Number.isInteger(Number(e)),Bv=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Io=e=>sQ.test(e),aQ=()=>!0,fQ=e=>lQ.test(e)&&!uQ.test(e),bk=()=>!1,pQ=e=>dQ.test(e),_Q=e=>cQ.test(e),vQ=e=>!nt(e)&&!it(e),mQ=e=>js(e,Rk,bk),nt=e=>Ek.test(e),Nr=e=>js(e,Mk,fQ),jv=e=>js(e,TQ,ht),Sk=e=>js(e,Ak,bk),hQ=e=>js(e,Ck,_Q),nc=e=>js(e,Ok,pQ),it=e=>Tk.test(e),Bl=e=>Fs(e,Mk),yQ=e=>Fs(e,bQ),Ik=e=>Fs(e,Ak),gQ=e=>Fs(e,Rk),EQ=e=>Fs(e,Ck),ic=e=>Fs(e,Ok,!0),js=(e,t,n)=>{const i=Ek.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},Fs=(e,t,n=!1)=>{const i=Tk.exec(e);return i?i[1]?t(i[1]):n:!1},Ak=e=>e==="position"||e==="percentage",Ck=e=>e==="image"||e==="url",Rk=e=>e==="length"||e==="size"||e==="bg-size",Mk=e=>e==="length",TQ=e=>e==="number",bQ=e=>e==="family-name",Ok=e=>e==="shadow",SQ=oQ(()=>{const e=hn("color"),t=hn("font"),n=hn("text"),i=hn("font-weight"),o=hn("tracking"),r=hn("leading"),s=hn("breakpoint"),l=hn("container"),u=hn("spacing"),d=hn("radius"),c=hn("shadow"),a=hn("inset-shadow"),p=hn("text-shadow"),v=hn("drop-shadow"),_=hn("blur"),m=hn("perspective"),h=hn("aspect"),E=hn("ease"),g=hn("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...b(),it,nt],S=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],A=()=>[it,nt,u],R=()=>[Bs,"full","auto",...A()],M=()=>[$o,"none","subgrid",it,nt],x=()=>["auto",{span:["full",$o,it,nt]},$o,it,nt],w=()=>[$o,"auto",it,nt],U=()=>["auto","min","max","fr",it,nt],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...A()],F=()=>[Bs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],k=()=>[e,it,nt],$=()=>[...b(),Ik,Sk,{position:[it,nt]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",gQ,mQ,{size:[it,nt]}],j=()=>[Bv,Bl,Nr],W=()=>["","none","full",d,it,nt],te=()=>["",ht,Bl,Nr],V=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[ht,Bv,Ik,Sk],G=()=>["","none",_,it,nt],oe=()=>["none",ht,it,nt],Q=()=>["none",ht,it,nt],Z=()=>[ht,it,nt],re=()=>[Bs,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Io],breakpoint:[Io],color:[aQ],container:[Io],"drop-shadow":[Io],ease:["in","out","in-out"],font:[vQ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Io],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Io],shadow:[Io],spacing:["px",ht],text:[Io],"text-shadow":[Io],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Bs,nt,it,h]}],container:["container"],columns:[{columns:[ht,nt,it,l]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[$o,"auto",it,nt]}],basis:[{basis:[Bs,"full","auto",l,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,Bs,"auto","initial","none",nt]}],grow:[{grow:["",ht,it,nt]}],shrink:[{shrink:["",ht,it,nt]}],order:[{order:[$o,"first","last","none",it,nt]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[l,"screen",...F()]}],"min-w":[{"min-w":[l,"screen","none",...F()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,Bl,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,it,jv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bv,nt]}],"font-family":[{font:[yQ,nt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,it,nt]}],"line-clamp":[{"line-clamp":[ht,"none",it,jv]}],leading:[{leading:[r,...A()]}],"list-image":[{"list-image":["none",it,nt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",it,nt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",it,Nr]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[ht,"auto",it,nt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it,nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",it,nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$o,it,nt],radial:["",it,nt],conic:[$o,it,nt]},EQ,hQ]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,it,nt]}],"outline-w":[{outline:["",ht,Bl,Nr]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",c,ic,nc]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",a,ic,nc]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[ht,Nr]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",p,ic,nc]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[ht,it,nt]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[it,nt]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",it,nt]}],filter:[{filter:["","none",it,nt]}],blur:[{blur:G()}],brightness:[{brightness:[ht,it,nt]}],contrast:[{contrast:[ht,it,nt]}],"drop-shadow":[{"drop-shadow":["","none",v,ic,nc]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",ht,it,nt]}],"hue-rotate":[{"hue-rotate":[ht,it,nt]}],invert:[{invert:["",ht,it,nt]}],saturate:[{saturate:[ht,it,nt]}],sepia:[{sepia:["",ht,it,nt]}],"backdrop-filter":[{"backdrop-filter":["","none",it,nt]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[ht,it,nt]}],"backdrop-contrast":[{"backdrop-contrast":[ht,it,nt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,it,nt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,it,nt]}],"backdrop-invert":[{"backdrop-invert":["",ht,it,nt]}],"backdrop-opacity":[{"backdrop-opacity":[ht,it,nt]}],"backdrop-saturate":[{"backdrop-saturate":[ht,it,nt]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,it,nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",it,nt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",it,nt]}],ease:[{ease:["linear","initial",E,it,nt]}],delay:[{delay:[ht,it,nt]}],animate:[{animate:["none",g,it,nt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,it,nt]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[it,nt,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",it,nt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",it,nt]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[ht,Bl,Nr,jv]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function jl(...e){return SQ(vk(e))}const IQ=f.defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=Hd(n,"class"),r=Mr(o,i);return(s,l)=>(f.openBlock(),f.createBlock(f.unref(BK),f.mergeProps({"data-slot":"tabs"},f.unref(r),{class:f.unref(jl)("flex flex-col gap-2",n.class)}),{default:f.withCtx(u=>[f.renderSlot(s.$slots,"default",f.normalizeProps(f.guardReactiveProps(u)))]),_:3},16,["class"]))}}),AQ=f.defineComponent({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Hd(t,"class");return(i,o)=>(f.openBlock(),f.createBlock(f.unref(qK),f.mergeProps({"data-slot":"tabs-list"},f.unref(n),{class:f.unref(jl)("bg-chat-haze-200 inline-flex w-fit items-center justify-center rounded-xl p-[3px]",t.class)}),{default:f.withCtx(()=>[f.renderSlot(i.$slots,"default")]),_:3},16,["class"]))}}),CQ=f.defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Hd(t,"class"),i=vv(n);return(o,r)=>(f.openBlock(),f.createBlock(f.unref(HK),f.mergeProps({"data-slot":"tabs-trigger",class:f.unref(jl)("data-[state=active]:bg-white focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex flex-1 items-center justify-center gap-1.5 rounded-xl px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow,background-color] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class)},f.unref(i)),{default:f.withCtx(()=>[f.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),RQ={class:"flex w-full max-w-sm flex-col gap-6"},MQ=f.defineComponent({__name:"TabBase",props:f.mergeModels({tabs:{}},{active:{},activeModifiers:{}}),emits:["update:active"],setup(e){const t=f.useModel(e,"active");return(n,i)=>(f.openBlock(),f.createElementBlock("div",RQ,[f.createVNode(f.unref(IQ),{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o)},{default:f.withCtx(()=>[f.createVNode(f.unref(AQ),null,{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.tabs,o=>(f.openBlock(),f.createBlock(f.unref(CQ),{class:"px-4 py-2 relative",value:o.value,key:o.value},{default:f.withCtx(()=>[f.withDirectives(f.createElementVNode("div",{class:"w-5 h-5 bg-chat-error rounded-full absolute -top-[8px] -right-2 text-white"},f.toDisplayString(o.badge),513),[[f.vShow,o.badge]]),f.createTextVNode(" "+f.toDisplayString(o.label),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]))}});function wk(e,t,n=1e3){var s,l;if(!((s=Xe.value)!=null&&s.id))return;const i=Date.now(),o=(l=Xe.value)==null?void 0:l.id,r={timestamp:i,ttl:n,id:o,data:t};localStorage.setItem(e,JSON.stringify(r))}function Nk(e){var i,o;if(!((i=Xe.value)!=null&&i.id))return{data:null};const t=localStorage.getItem(e),n=(o=Xe.value)==null?void 0:o.id;if(!t)return{data:null};try{const r=JSON.parse(t);if(!r.timestamp||!r.ttl)return{data:null};if(!(r!=null&&r.id)||(r==null?void 0:r.id)!=n)return{data:null};const s=Date.now()-r.timestamp>r.ttl;return{data:r.data,needReload:s}}catch(r){return console.warn("Cache parse error:",r),{data:null}}}function OQ(e,t){const n=Object.keys(localStorage).filter(i=>i.startsWith(t));if(n.length>e){const i=n.map(o=>{const r=localStorage.getItem(o);try{const s=JSON.parse(r||"{}");return{key:o,expire:s.timestamp||0}}catch{return{key:o,expire:0}}});for(i.sort((o,r)=>o.expire-r.expire);i.length>e;){const o=i.shift();o&&localStorage.removeItem(o.key)}}}const{digibotData:wQ,digibotId:NQ}=hh(),xk=(e,t)=>{const n="chat-conversation-",i=f.ref(0),o=f.ref([]),r=f.ref({page:1,search:""});f.ref(!1),f.onMounted(()=>{l()}),f.onUnmounted(()=>{});const s=()=>{var v;Cr.forEach(_=>{var m;ov(_+((m=Xe.value)==null?void 0:m.id)),rv("chat-list-"+_+"-"+e)}),((v=Xe.value)==null?void 0:v.user_type)=="tenant"},l=async()=>{try{Xe.value&&(await qd(),Cr.forEach(v=>{var _,m;e==0&&iv(v+((_=Xe.value)==null?void 0:_.id)),yD("chat-list-"+v+"-"+e,v+((m=Xe.value)==null?void 0:m.id),u)}))}catch(v){console.error(v)}},u=(v,_)=>{var m,h;if((_.is_unknown??0)==e||!t&&e==0){if(d(),v===Cr[0]+((m=Xe.value)==null?void 0:m.id)){const E=o.value.findIndex(y=>y.id===_.id),g=o.value.findIndex(y=>y.id===NQ);E!=-1&&(_.username=o.value[E].username??"",o.value.splice(E,1)),g>-1?o.value.splice(1,0,_):o.value.unshift(_)}if(v===Cr[1]+((h=Xe.value)==null?void 0:h.id)&&_.is_unknown==e){const E=o.value.findIndex(g=>g.id===_.id);E!=-1&&(o.value[E].unread_count=0)}}},d=Co(()=>{c(void 0,{hideLoading:!0,reset:!0})},5e3),c=async(v,_)=>{var m,h,E;try{if(!t&&e==1)return;r.value={...r.value,...v??{}};const g=t?e:void 0;_!=null&&_.reset&&(r.value.page=1);const y=await ED({...r.value,is_unknown:g});_!=null&&_.reset&&(o.value=[],e==0&&((m=Xe.value)==null?void 0:m.user_type)=="tenant"&&o.value.push(wQ),await f.nextTick()),o.value.push(...(y==null?void 0:y.items)??[]),r.value.page=((h=y==null?void 0:y._meta)==null?void 0:h.currentPage)||1,i.value=((E=y==null?void 0:y._meta)==null?void 0:E.pageCount)||1,r.value.page<=1&&wk(n+e,o.value)}catch(g){console.error(g)}finally{}};return{listConversations:o,params:r,pageCount:i,getData:c,handleReadMessage:v=>{var m;const _=o.value.findIndex(h=>h.receiver_id==v);_>-1&&o.value[_].unread_count&&(pH(o.value[_].id),o.value[_].unread_count=0,Gd(Cr[1]+((m=Xe.value)==null?void 0:m.id),o.value[_]))},getDataCache:()=>{const v=Nk(n+e);return v.data?(o.value=[],o.value.push(...v.data??[]),!0):!1}}},Xi=(e,t=1)=>{let n=(""+e||"").replace(/[^\d*]/g,"");return n.length>10&&(n=n.substring(n.length-10)),n.length==10?(n=(n||"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"),n):""};function Pk(e){const t=e.replace(/\D/g,"").slice(0,10),n=t.length;return n===0?"":n<4?`(${t}`:n<7?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`}const xQ={class:"h-full flex flex-col bg-white pt-6"},PQ={class:"shrink-0 w-full px-6 flex gap-2 mb-4"},DQ={class:"grow relative overflow-hidden"},kQ=["onClick"],LQ={class:"grow ml-3 overflow-hidden"},UQ={class:"flex justify-between items-center gap-4"},BQ={class:"truncate text-left"},jQ={class:"flex items-center"},FQ={class:"truncate font-semibold"},VQ={key:1,class:"shrink-0 ml-2 bg-[#E60000] text-white text-xs font-bold px-2 py-[1px] flex-center rounded-full"},qQ={key:0,class:"shrink-0 text-sm text-right text-chat-gray-4 w-[80px] md:w-[130px]"},Dk=Pt(f.defineComponent({__name:"ChatList",props:f.mergeModels({responsive:{}},{receiverId:{},receiverIdModifiers:{}}),emits:f.mergeModels(["selectReceiver","openPhoneNumpad"],["update:receiverId"]),setup(e,{expose:t,emit:n}){var W,te;kt.extend(BY),kt.extend(LY),kt.extend(ID),kt.extend(CD),kt.updateLocale("en",{relativeTime:{future:"%s",past:"%s",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});const i=e,o=n,r={ALL:0,UNKNOWN:1},s=f.computed(()=>[{label:"All",value:r.ALL},{label:"Message Requests",value:r.UNKNOWN,badge:(I.value||"").toString()}]),{digibotData:l,digibotId:u}=hh(),{listConversations:d,getData:c,params:a,pageCount:p,handleReadMessage:v,getDataCache:_}=xk(r.ALL,((W=Xe.value)==null?void 0:W.user_type)==="tenant"),{listConversations:m,getData:h,params:E,pageCount:g,handleReadMessage:y,getDataCache:b}=xk(r.UNKNOWN,((te=Xe.value)==null?void 0:te.user_type)==="tenant"),T=f.useModel(e,"receiverId"),S=f.computed(()=>R.value==r.ALL?d.value:m.value),I=f.computed(()=>m.value.reduce((V,le)=>V+((le==null?void 0:le.unread_count)??0),0)??0),A=f.ref(""),R=f.ref(r.ALL),M=f.ref(null),x=f.ref(!1),w=async(V,le)=>{try{const K=(le==null?void 0:le.tab)??R.value;if(le!=null&&le.hideLoading||(x.value=!0),le!=null&&le.reset){let G=!1;K==r.ALL?G=_():K==r.UNKNOWN&&(G=b()),G&&(x.value=!1)}K==r.ALL?await c(V,le):K==r.UNKNOWN&&await h(V,le),le!=null&&le.hideCheckHasReceiveId||L(),le!=null&&le.reset&&U(K)}catch(K){console.error(K)}finally{x.value=!1}},U=async V=>{var le,K;if(V==r.ALL)for(;a.value.page<p.value&&!((le=M.value)!=null&&le.canScroll());){let G=a.value.page+1;await w({page:G},{tab:V})}else if(V==r.UNKNOWN)for(;E.value.page<g.value&&!((K=M.value)!=null&&K.canScroll());){let G=E.value.page+1;await w({page:G},{tab:V})}},L=()=>{var le,K;const V=(le=S.value)==null?void 0:le.some(G=>G.receiver_id===T.value&&T.value);i.responsive!="mobile"&&(V||(K=S.value)!=null&&K.length&&o("selectReceiver",S.value[0]))},N=V=>{w({search:V},{reset:!0})},B=Co(async()=>{var V,le,K,G;if(R.value==r.ALL){if(a.value.page>=p.value){(V=M.value)==null||V.hideLoading();return}let oe=a.value.page+1;await w({page:oe}),(le=M.value)==null||le.hideLoading()}else if(R.value==r.UNKNOWN){if(E.value.page>=g.value){(K=M.value)==null||K.hideLoading();return}let oe=E.value.page+1;await w({page:oe}),(G=M.value)==null||G.hideLoading()}},200),F=V=>{o("selectReceiver",V)},k=()=>{R.value==r.ALL?v(T.value):R.value==r.UNKNOWN&&y(T.value)},$=V=>V&&kt(V).isValid()?kt.tz(V,rd).local().fromNow():V??"",q=async(V,le)=>{var K,G;V==r.ALL&&!((K=d.value)!=null&&K.length)?await w({},{reset:!0,tab:V,...le??{}}):V==r.UNKNOWN&&!((G=m.value)!=null&&G.length)&&await w({},{reset:!0,tab:V,...le??{}})};return t({handleReadMessage:k,listConversationsAll:d,listConversationsUnknown:m,getCurrentConversation:()=>{var V;return(V=S.value)==null?void 0:V.find(le=>le.receiver_id==T.value)},initData:async V=>{(V!=null&&V.is_unknown||(V==null?void 0:V.is_unknown)=="0")&&(R.value=Number(V==null?void 0:V.is_unknown));let le=!1;if(V!=null&&V.conversation_id){const K=await NY(V==null?void 0:V.conversation_id);K.receiver_id&&(le=!0,F(K))}q(R.value,{hideCheckHasReceiveId:le}),q(R.value==1?0:1,{hideCheckHasReceiveId:!0,hideLoading:!0})}}),(V,le)=>{var K;return f.openBlock(),f.createElementBlock("div",xQ,[f.createElementVNode("div",PQ,[f.createVNode(t3,{class:"h-11 grow",responsive:V.responsive,modelValue:A.value,"onUpdate:modelValue":le[0]||(le[0]=G=>A.value=G),onSearch:N},null,8,["responsive","modelValue"]),V.responsive!="window"?(f.openBlock(),f.createElementBlock("button",{key:0,class:"shrink-0 h-11 w-11 rounded-full flex-center bg-[#C7DEFF]",onClick:le[1]||(le[1]=G=>o("openPhoneNumpad"))},[f.createVNode(r3,{class:"text-[#004AB3]"})])):f.createCommentVNode("",!0)]),((K=f.unref(Xe))==null?void 0:K.user_type)=="tenant"?(f.openBlock(),f.createBlock(MQ,{key:0,class:"shrink-0 px-6 mb-4",tabs:s.value,onChange:q,active:R.value,"onUpdate:active":le[2]||(le[2]=G=>R.value=G)},null,8,["tabs","active"])):f.createCommentVNode("",!0),f.createElementVNode("div",DQ,[f.createVNode(sv,{ref_key:"scrollEventRef",ref:M,class:"h-full overflow-auto",onGetDataBottom:f.unref(B),disabled:R.value==r.ALL?f.unref(a).page>=f.unref(p):f.unref(E).page>=f.unref(g),bottom:""},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(S.value,G=>(f.openBlock(),f.createElementBlock("div",{class:"",key:G.id,onClick:oe=>F(G)},[f.createElementVNode("div",{class:f.normalizeClass(["w-full overflow-hidden flex items-center hover:bg-[#EDF5FF] cursor-pointer px-6 py-2",{"bg-[#EDF5FF]":T.value==G.receiver_id&&V.responsive!="mobile"}])},[f.createVNode(nr,{id:G.id,class:f.normalizeClass(["shrink-0",{"animal-icon":(G==null?void 0:G.id)===f.unref(u)}]),src:G.avatar??"",color:G.color,name:G.username??""},null,8,["id","class","src","color","name"]),f.createElementVNode("div",LQ,[f.createElementVNode("div",UQ,[f.createElementVNode("div",BQ,[f.createElementVNode("div",jQ,[f.createElementVNode("p",FQ,f.toDisplayString(G.username||f.unref(Xi)(G.phone)||"n/a"),1),G.id==f.unref(u)?(f.openBlock(),f.createBlock(HY,{key:0,class:"ml-2"})):f.createCommentVNode("",!0),G.unread_count?(f.openBlock(),f.createElementBlock("span",VQ,f.toDisplayString(G.unread_count),1)):f.createCommentVNode("",!0)]),f.createElementVNode("p",{class:f.normalizeClass(["text-sm truncate",{"font-semibold":G.unread_count,"text-chat-gray-3":!G.unread_count}])},f.toDisplayString(G.last_message??"No messages"),3)]),G.id!=f.unref(u)?(f.openBlock(),f.createElementBlock("span",qQ,f.toDisplayString($(G.last_message_time??"")),1)):f.createCommentVNode("",!0)])])],2)],8,kQ))),128))]),_:1},8,["onGetDataBottom","disabled"])])])}}}),[["__scopeId","data-v-463fb3bd"]]),GQ={},HQ={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zQ(e,t){return f.openBlock(),f.createElementBlock("svg",HQ,t[0]||(t[0]=[f.createElementVNode("path",{d:"M16.5001 12.69V14.94C16.5009 15.1488 16.4581 15.3556 16.3745 15.547C16.2908 15.7383 16.168 15.9101 16.0141 16.0513C15.8602 16.1926 15.6785 16.3001 15.4806 16.367C15.2828 16.4339 15.0731 16.4588 14.8651 16.44C12.5572 16.1892 10.3403 15.4006 8.39257 14.1375C6.58044 12.9859 5.04407 11.4496 3.89257 9.63745C2.62506 7.68085 1.83625 5.4532 1.59007 3.13495C1.57133 2.92755 1.59598 2.71852 1.66245 2.52117C1.72892 2.32382 1.83575 2.14247 1.97615 1.98867C2.11654 1.83487 2.28743 1.71198 2.47792 1.62784C2.6684 1.5437 2.87433 1.50015 3.08257 1.49995H5.33257C5.69655 1.49637 6.04942 1.62526 6.32539 1.8626C6.60137 2.09994 6.78163 2.42954 6.83257 2.78995C6.92754 3.51 7.10366 4.217 7.35757 4.89745C7.45848 5.16589 7.48032 5.45764 7.4205 5.73811C7.36069 6.01859 7.22172 6.27603 7.02007 6.47995L6.06757 7.43245C7.13524 9.31011 8.68991 10.8648 10.5676 11.9325L11.5201 10.98C11.724 10.7783 11.9814 10.6393 12.2619 10.5795C12.5424 10.5197 12.8341 10.5415 13.1026 10.6425C13.783 10.8964 14.49 11.0725 15.2101 11.1675C15.5744 11.2188 15.9071 11.4024 16.145 11.6831C16.3828 11.9638 16.5092 12.3221 16.5001 12.69Z",fill:"currentColor"},null,-1)]))}const YQ=Pt(GQ,[["render",zQ]]);var mt=(e=>(e.HOME="home",e.CUSTOMER_DETAIL="customer_detail",e.CUSTOMER_CHECK_IN="customer_check_in",e.CUSTOMER_APPOINTMENT="customer_appointment",e.TENANT_ERROR="tenant_error",e.CHAT_LIST="chat_list",e.REGISTER_TENANT="register_tenant",e.REGISTER_SUCCESS="register_success",e.NOT_TENANT_PHONE="not_tenant_phone",e))(mt||{});const yn=f.ref(mt.HOME),Xn=e=>{yn.value=e},Ko=f.ref(null),ui=f.ref(null),WQ=async e=>await bl.get(`/v1/pos/customer/site/history?phone=${e}`),$Q=async e=>await cn.get("/api/v1/message/customer/info",{params:e});function kk(e,t="created_at"){let n=[];if(e!=null&&e.length){let i=kt(e[0][t]).format("YYYY"),o=[];for(let r=0;r<e.length;r++){o.push(e[r]);let s=e[r+1]?kt(e[r+1][t]).format("YYYY"):i;s!=i&&(n.push({year:i,items:[...o]}),i=s,o=[])}n.push({year:i,items:[...o]})}return n}const KQ={},QQ={width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JQ(e,t){return f.openBlock(),f.createElementBlock("svg",QQ,t[0]||(t[0]=[f.createElementVNode("path",{d:"M6.00003 17.9998H30",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M13.4994 25.5L5.99951 18L13.4995 10.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const oc=Pt(KQ,[["render",JQ]]),XQ={},ZQ={fill:"#fff",height:"18",width:"18",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","enable-background":"new 0 0 512 512","xml:space":"preserve"};function eJ(e,t){return f.openBlock(),f.createElementBlock("svg",ZQ,t[0]||(t[0]=[f.createElementVNode("path",{d:`M448,0H64C28.6,0,0,28.6,0,64v256c0,35.4,28.6,64,64,64h128l-42.7,128l192-128H448c35.4,0,64-28.6,64-64V64
32
32
  C512,28.6,483.4,0,448,0z`},null,-1)]))}const tJ=Pt(XQ,[["render",eJ]]),Lk=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Uk=vk,nJ=((e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return Uk(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,s=Object.keys(o).map(d=>{const c=n==null?void 0:n[d],a=r==null?void 0:r[d];if(c===null)return null;const p=Lk(c)||Lk(a);return o[d][p]}),l=n&&Object.entries(n).reduce((d,c)=>{let[a,p]=c;return p===void 0||(d[a]=p),d},{}),u=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((d,c)=>{let{class:a,className:p,...v}=c;return Object.entries(v).every(_=>{let[m,h]=_;return Array.isArray(h)?h.includes({...r,...l}[m]):{...r,...l}[m]===h})?[...d,a,p]:d},[]);return Uk(e,s,u,n==null?void 0:n.class,n==null?void 0:n.className)})("inline-flex flex-center gap-2 whitespace-nowrap rounded-[8px] text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:duration-100",{variants:{variant:{default:"bg-chat-primary text-white hover:bg-chat-primary-hover [&_.loader::before]:border-white",primary:"bg-chat-primary text-white hover:bg-chat-primary-hover [&_.loader::before]:border-white","danger-outline":"bg-white border border-chat-error border-[1.5px] text-chat-error hover:bg-chat-error hover:text-white [&_.loader::before]:border-chat-error",success:"bg-chat-success text-white hover:bg-chat-success-hover [&_.loader::before]:border-white",danger:"bg-chat-error text-white hover:bg-chat-error-hover [&_.loader::before]:border-white","primary-outline":"bg-white text-chat-primary hover:bg-chat-primary border hover:text-white border-primary border-[1.5px] [&_.loader::before]:border-primary",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-chat-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),iJ=Pt(f.defineComponent({__name:"BaseSpin",props:{size:{default:48},border:{default:5},color:{}},setup(e){const t=e,n=f.computed(()=>{let i={};return i.width=t.size+"px",i.height=t.size+"px",i.borderWidth=t.border+"px",t.color&&(i.borderColor=t.color),i.borderBottomColor="transparent",i});return(i,o)=>(f.openBlock(),f.createElementBlock("span",{class:"loader",style:f.normalizeStyle(n.value)},null,4))}}),[["__scopeId","data-v-8aad0b79"]]),oJ=f.defineComponent({__name:"CButton",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,i)=>(f.openBlock(),f.createBlock(f.unref(Jn),{as:n.as,"as-child":n.asChild,class:f.normalizeClass(f.unref(jl)(f.unref(nJ)({variant:n.variant,size:n.size}),t.class))},{default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),rJ=f.defineComponent({__name:"CSpin",props:{size:{default:48},border:{default:5}},setup(e){const t=e,n=f.computed(()=>{let i={};return i.width=t.size+"px",i.height=t.size+"px",i.borderWidth=t.border+"px",i});return f.onMounted(()=>{}),(i,o)=>(f.openBlock(),f.createElementBlock("span",{class:"loader",style:f.normalizeStyle(n.value)},null,4))}}),rc=Pt(f.defineComponent({__name:"ButtonBase",props:{disabled:{type:Boolean,default:!1},type:{},isReverseIcon:{type:Boolean},loading:{type:Boolean,default:!1}},setup(e){const t=e,n=f.computed(()=>{switch(t.type){case"primary":return"default";default:return t.type}});return(i,o)=>(f.openBlock(),f.createBlock(oJ,{variant:n.value,disabled:i.disabled},{default:f.withCtx(()=>[i.loading?(f.openBlock(),f.createBlock(rJ,{key:0,size:24,border:3})):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.renderSlot(i.$slots,"icon",{},void 0,!0),f.renderSlot(i.$slots,"default",{},void 0,!0)],64))]),_:3},8,["variant","disabled"]))}}),[["__scopeId","data-v-caae24ef"]]),sJ={class:"flex items-center gap-2 h-full"},lJ={class:"grow overflow-x-hidden"},uJ={class:"w-full flex justify-between items-center gap-4"},dJ={class:"flex items-center"},cJ={class:"font-semibold truncate"},aJ={key:0,class:"hidden md:block"},fJ=f.defineComponent({__name:"HomeHeader",props:{data:{},responsive:{}},emits:["call","back"],setup(e,{emit:t}){var u;const n=e,i=t,o=f.ref(((u=Xe.value)==null?void 0:u.is_sms_active)==1),r=f.ref(!1),s=()=>{var d,c;((d=n.data)==null?void 0:d.id)!=io.toString()&&((c=Xe.value)==null?void 0:c.user_type)=="tenant"&&(Ko.value=n.data,Xn(mt.CUSTOMER_DETAIL))},l=async d=>{var c;try{r.value=!0,await hH({id:(c=Xe.value)==null?void 0:c.id,is_sms:d?1:0}),Xe.value!=null&&(Xe.value.is_sms_active=d?1:0),o.value=d}catch(a){o.value=!d,console.log(a)}r.value=!1};return(d,c)=>{var a,p,v,_,m,h,E,g,y,b,T,S,I,A;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["px-8 py-4 h-[96px] layout-shadow border-b border-chat-gray-5 z-10",{"!px-4":d.responsive=="mobile"}])},[f.createElementVNode("div",sJ,[d.responsive=="mobile"?(f.openBlock(),f.createElementBlock("button",{key:0,class:"shrink-0 flex items-center",onClick:c[0]||(c[0]=R=>i("back"))},[f.createVNode(oc)])):f.createCommentVNode("",!0),f.createVNode(nr,{class:f.normalizeClass(["shrink-0",{"cursor-pointer":((a=f.unref(Xe))==null?void 0:a.user_type)=="tenant"}]),src:((p=d.data)==null?void 0:p.avatar)??"",id:((v=d.data)==null?void 0:v.id)??"",color:(_=d.data)==null?void 0:_.color,name:(m=d.data)==null?void 0:m.username,onClick:s},null,8,["class","src","id","color","name"]),f.createElementVNode("div",lJ,[f.createElementVNode("div",uJ,[f.createElementVNode("div",{class:f.normalizeClass(["grow overflow-x-hidden",{"cursor-pointer":((h=f.unref(Xe))==null?void 0:h.user_type)=="tenant"}]),onClick:s},[f.createElementVNode("div",dJ,[f.createElementVNode("p",cJ,f.toDisplayString(((E=d.data)==null?void 0:E.username)||f.unref(Xi)(((g=d.data)==null?void 0:g.phone)??"")||"n/a"),1)])],2),(y=d.data)!=null&&y.id&&((b=d.data)==null?void 0:b.id)!=f.unref(io).toString()&&((T=f.unref(Xe))==null?void 0:T.user_type)=="tenant"?(f.openBlock(),f.createBlock(rc,{key:0,type:o.value?"success":"danger",loading:r.value,onClick:c[1]||(c[1]=R=>l(!o.value)),class:"shrink-0 px-1 flex-center gap-2 text-white font-semibold w-9 md:w-[140px] h-9"},{default:f.withCtx(()=>[f.createVNode(tJ),d.responsive!="mobile"?(f.openBlock(),f.createElementBlock("span",aJ,"SMS "+f.toDisplayString(o.value?"ON":"OFF"),1)):f.createCommentVNode("",!0)]),_:1},8,["type","loading"])):f.createCommentVNode("",!0),(S=d.data)!=null&&S.id&&((I=d.data)==null?void 0:I.id)!=f.unref(io).toString()&&((A=f.unref(Xe))==null?void 0:A.user_type)=="tenant"?(f.openBlock(),f.createElementBlock("button",{key:1,class:"shrink-0 flex-center text-[#0051E6] bg-chat-haze-200 w-9 h-9 rounded-lg",onClick:c[2]||(c[2]=R=>i("call"))},[f.createVNode(YQ)])):f.createCommentVNode("",!0)])])])],2)}}}),pJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOpSURBVHgB7VZbaxNBFD4zmw1t4iWNF1pb2rXaiLfYKOqLYqrggwjWHyDGV1Er2l/gg09eKvrgmxHfRLDi5UHQRhRERVPT4qVV2UCtkpo2WpJKNrvjnKkJuW2yyat+sDCzMzvfnLPnO+cA/GsgUAdOhk+6bFQPGAQShq6FBnxXVagRNRNzUkWW2dCXmagCwKCzqUPVNOob8A0kajnHVmmxf+SYHwzqNwhT0TKAhoRs0y+Oxj4oo1MfxB7N0JQ17lXX+PAgekKW9F7GiJIx0sFKniDmlh3tZpSFuWWwwO6E5c6lIFMZ1EQUXky+Kdjra94IHvdqvARM/PoGSS0JK10d4CQNPed8V0JQi8UStQWGYxEYm/4M1RD+PiKefGi6Bpubvb18GCr3DQVzuNLcgnqB1huMLTZbNyUmlHXgretFMp0CQkAxPT9/kpUJv86Bmd+//A+/PM6tOeRG2NTqFeOx2DjEU9O5te4VXmi0N0I8OQ1jU+PinSzJ0NOxE5oaFoUMBteLZUfySHMywQCKpX4U3HCJww1n952ZJ+aHn39yKbd2elcfeJZ1wfPoCwi+ulHwXevCFvEUyy7nahs1Akj6cvJ1CWkxkGRPVw9YwdfZb/CSq+Bj/JMivPkXOWJGjGGn3QFWsX/dPuEFq3DITsBMV0J83ntlcLlj6bDHvarqISltTvzzwNZDYAXrl62F1gUt6gXv5WAJMSKToQc38E3VcPPtLUFu1eUrXe2g6+mCjSVysqJdjN577+6LMbocra8EO894xSgg5lF9GyPaCh6Nh0R0I2mbq63i3tGp92CzydfKEp+KHA9MzyW6s8nfClA66PJqwLQbS8X9pyPHekuIKQNXLDkFtQCTSNbl1SAyGaPd2XmuSGQMKehxd/XZJbvydXZS6C8fc9yyu+8ezBMm47n36HLG8xC6fCIxUULIlQIKr1TK4nY1o6eD2ffFKVOhku6nBA5jyhxSn4pkXy/2du4WKRMMuIOG5TcLpvW4f+T40JD6zF8ti5mhdVEL7GjbHjq38XJZvZlWJ2aQqKOGTFYMlBBjoJqtV6rHiXL6swrsVighP83WTTsQQo1Bz5LVfVjenDzPtnHX4WEojfD3SMHebSu2iOyUbX3SvI53NrXzQzJB0/OhAjDYsGoR3uxpujSIwdEfOREcm/l8OEvua/bCGnfnoJaRjvCpSwQnb/aAGvz/lu+3qhKbXMYlSSys/owqOEeZ6Hrt7W29Df287HjSKZbJf5jhD7eYnonr3cU0AAAAAElFTkSuQmCC",_J={class:"flex flex-col items-center justify-center text-center"},vJ={class:"flex items-center gap-1"},mJ={class:"text-2xl font-semibold"},Bk=f.defineComponent({__name:"NewCustomer",props:{data:{}},setup(e){return(t,n)=>{var i,o,r,s,l,u;return f.openBlock(),f.createElementBlock("div",_J,[f.createVNode(nr,{class:"mb-4",src:((i=t.data)==null?void 0:i.avatar)??"",id:((o=t.data)==null?void 0:o.id)??"",color:(r=t.data)==null?void 0:r.color,name:(s=t.data)==null?void 0:s.username,size:"xxl"},null,8,["src","id","color","name"]),f.createElementVNode("div",vJ,[f.createElementVNode("h2",mJ,f.toDisplayString(((l=t.data)==null?void 0:l.username)||f.unref(Xi)(((u=t.data)==null?void 0:u.phone)??"")||"n/a"),1),n[0]||(n[0]=f.createElementVNode("img",{src:pJ},null,-1))]),n[1]||(n[1]=f.createElementVNode("p",{class:"text-chat-haze-400 text-sm mt-3 max-w-md"}," You and the customer haven't had any conversations yet. Please send a message to start the conversation. ",-1))])}}}),hJ={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yJ=["fill"],gJ=f.defineComponent({__name:"IconPlan",props:{color:{type:String,default:"#333333"}},setup(e){return(t,n)=>(f.openBlock(),f.createElementBlock("svg",hJ,[f.createElementVNode("path",{d:"M17.8325 0.166404C17.9118 0.245875 17.9661 0.346908 17.9885 0.456951C18.0109 0.566994 18.0005 0.681198 17.9585 0.785376L11.2894 17.4598C11.2306 17.6066 11.1325 17.7344 11.0058 17.8291C10.8791 17.9237 10.7287 17.9816 10.5712 17.9963C10.4137 18.011 10.2553 17.9819 10.1132 17.9124C9.97122 17.8428 9.85114 17.7354 9.76621 17.6019L6.12391 11.8764L0.399134 8.23367C0.265405 8.14883 0.15771 8.02869 0.0879332 7.88651C0.0181566 7.74432 -0.0109891 7.58562 0.00371211 7.42792C0.0184133 7.27022 0.0763899 7.11964 0.171244 6.99281C0.266099 6.86598 0.394144 6.76782 0.541251 6.70917L17.2136 0.0414633C17.3177 -0.000475161 17.4319 -0.0108827 17.542 0.0115334C17.652 0.0339496 17.753 0.0882016 17.8325 0.16755V0.166404ZM7.26772 11.5417L10.4321 16.5141L15.8566 2.95178L7.26772 11.5417ZM15.0463 2.14138L1.48564 7.56656L6.45857 10.7302L15.0474 2.14138H15.0463Z",fill:e.color},null,8,yJ)]))}}),jk="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",Fk={recent:"Recently used",smileys_people:"Smiles & People",animals_nature:"Animals & Nature",food_drink:"Food & Drink",activities:"Activities",travel_places:"Travel places",objects:"Objects",symbols:"Symbols",flags:"Flags"},Vk="u",sc="n",lc="v",Fl="r",EJ={[sc]:["grinning face","grinning"],[Vk]:"1f600",[Fl]:"1f600"},uc="neutral",TJ=[uc,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],bJ={placeholder:"Search emoji",skinTone:"Skin tone"},SJ=["light","dark","auto"];var IJ={smileys_people:[{n:["grinning face","grinning"],u:"1f600"},{n:["grinning face with smiling eyes","grin"],u:"1f601"},{n:["face with tears of joy","joy"],u:"1f602"},{n:["rolling on the floor laughing","rolling_on_the_floor_laughing"],u:"1f923"},{n:["smiling face with open mouth","smiley"],u:"1f603"},{n:["smiling face with open mouth and smiling eyes","smile"],u:"1f604"},{n:["smiling face with open mouth and cold sweat","sweat_smile"],u:"1f605"},{n:["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],u:"1f606"},{n:["winking face","wink"],u:"1f609"},{n:["smiling face with smiling eyes","blush"],u:"1f60a"},{n:["face savouring delicious food","yum"],u:"1f60b"},{n:["smiling face with sunglasses","sunglasses"],u:"1f60e"},{n:["smiling face with heart-shaped eyes","heart_eyes"],u:"1f60d"},{n:["face throwing a kiss","kissing_heart"],u:"1f618"},{n:["kissing face","kissing"],u:"1f617"},{n:["kissing face with smiling eyes","kissing_smiling_eyes"],u:"1f619"},{n:["kissing face with closed eyes","kissing_closed_eyes"],u:"1f61a"},{n:["white smiling face","relaxed"],u:"263a-fe0f"},{n:["slightly smiling face","slightly_smiling_face"],u:"1f642"},{n:["hugging face","hugging_face"],u:"1f917"},{n:["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],u:"1f929"},{n:["thinking face","thinking_face"],u:"1f914"},{n:["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],u:"1f928"},{n:["neutral face","neutral_face"],u:"1f610"},{n:["expressionless face","expressionless"],u:"1f611"},{n:["face without mouth","no_mouth"],u:"1f636"},{n:["face with rolling eyes","face_with_rolling_eyes"],u:"1f644"},{n:["smirking face","smirk"],u:"1f60f"},{n:["persevering face","persevere"],u:"1f623"},{n:["disappointed but relieved face","disappointed_relieved"],u:"1f625"},{n:["face with open mouth","open_mouth"],u:"1f62e"},{n:["zipper-mouth face","zipper_mouth_face"],u:"1f910"},{n:["hushed face","hushed"],u:"1f62f"},{n:["sleepy face","sleepy"],u:"1f62a"},{n:["tired face","tired_face"],u:"1f62b"},{n:["sleeping face","sleeping"],u:"1f634"},{n:["relieved face","relieved"],u:"1f60c"},{n:["face with stuck-out tongue","stuck_out_tongue"],u:"1f61b"},{n:["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],u:"1f61c"},{n:["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],u:"1f61d"},{n:["drooling face","drooling_face"],u:"1f924"},{n:["unamused face","unamused"],u:"1f612"},{n:["face with cold sweat","sweat"],u:"1f613"},{n:["pensive face","pensive"],u:"1f614"},{n:["confused face","confused"],u:"1f615"},{n:["upside-down face","upside_down_face"],u:"1f643"},{n:["money-mouth face","money_mouth_face"],u:"1f911"},{n:["astonished face","astonished"],u:"1f632"},{n:["white_frowning_face"],u:"2639-fe0f"},{n:["slightly frowning face","slightly_frowning_face"],u:"1f641"},{n:["confounded face","confounded"],u:"1f616"},{n:["disappointed face","disappointed"],u:"1f61e"},{n:["worried face","worried"],u:"1f61f"},{n:["face with look of triumph","triumph"],u:"1f624"},{n:["crying face","cry"],u:"1f622"},{n:["loudly crying face","sob"],u:"1f62d"},{n:["frowning face with open mouth","frowning"],u:"1f626"},{n:["anguished face","anguished"],u:"1f627"},{n:["fearful face","fearful"],u:"1f628"},{n:["weary face","weary"],u:"1f629"},{n:["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],u:"1f92f"},{n:["grimacing face","grimacing"],u:"1f62c"},{n:["face with open mouth and cold sweat","cold_sweat"],u:"1f630"},{n:["face screaming in fear","scream"],u:"1f631"},{n:["flushed face","flushed"],u:"1f633"},{n:["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],u:"1f92a"},{n:["dizzy face","dizzy_face"],u:"1f635"},{n:["pouting face","rage"],u:"1f621"},{n:["angry face","angry"],u:"1f620"},{n:["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],u:"1f92c"},{n:["face with medical mask","mask"],u:"1f637"},{n:["face with thermometer","face_with_thermometer"],u:"1f912"},{n:["face with head-bandage","face_with_head_bandage"],u:"1f915"},{n:["nauseated face","nauseated_face"],u:"1f922"},{n:["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],u:"1f92e"},{n:["sneezing face","sneezing_face"],u:"1f927"},{n:["smiling face with halo","innocent"],u:"1f607"},{n:["face with cowboy hat","face_with_cowboy_hat"],u:"1f920"},{n:["clown face","clown_face"],u:"1f921"},{n:["lying face","lying_face"],u:"1f925"},{n:["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],u:"1f92b"},{n:["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],u:"1f92d"},{n:["face with monocle","face_with_monocle"],u:"1f9d0"},{n:["nerd face","nerd_face"],u:"1f913"},{n:["smiling face with horns","smiling_imp"],u:"1f608"},{n:["imp"],u:"1f47f"},{n:["japanese ogre","japanese_ogre"],u:"1f479"},{n:["japanese goblin","japanese_goblin"],u:"1f47a"},{n:["skull"],u:"1f480"},{n:["skull_and_crossbones"],u:"2620-fe0f"},{n:["ghost"],u:"1f47b"},{n:["extraterrestrial alien","alien"],u:"1f47d"},{n:["alien monster","space_invader"],u:"1f47e"},{n:["robot face","robot_face"],u:"1f916"},{n:["pile of poo","hankey","poop","shit"],u:"1f4a9"},{n:["smiling cat face with open mouth","smiley_cat"],u:"1f63a"},{n:["grinning cat face with smiling eyes","smile_cat"],u:"1f638"},{n:["cat face with tears of joy","joy_cat"],u:"1f639"},{n:["smiling cat face with heart-shaped eyes","heart_eyes_cat"],u:"1f63b"},{n:["cat face with wry smile","smirk_cat"],u:"1f63c"},{n:["kissing cat face with closed eyes","kissing_cat"],u:"1f63d"},{n:["weary cat face","scream_cat"],u:"1f640"},{n:["crying cat face","crying_cat_face"],u:"1f63f"},{n:["pouting cat face","pouting_cat"],u:"1f63e"},{n:["see-no-evil monkey","see_no_evil"],u:"1f648"},{n:["hear-no-evil monkey","hear_no_evil"],u:"1f649"},{n:["speak-no-evil monkey","speak_no_evil"],u:"1f64a"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{n:["older adult","older_adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{n:["older man","older_man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{n:["older woman","older_woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{n:["male-doctor"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{n:["female-doctor"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{n:["male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{n:["female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{n:["male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{n:["female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{n:["male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{n:["female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{n:["male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{n:["female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{n:["male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{n:["female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{n:["male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{n:["female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{n:["male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{n:["female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{n:["male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{n:["female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{n:["male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{n:["female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{n:["male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{n:["female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{n:["male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{n:["female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{n:["male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{n:["female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{n:["male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{n:["female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{n:["male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{n:["female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{n:["male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{n:["female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{n:["police officer","cop"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{n:["male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{n:["female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{n:["sleuth_or_spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{n:["male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{n:["female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{n:["male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{n:["female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{n:["construction worker","construction_worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{n:["male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{n:["female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{n:["man with turban","man_with_turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{n:["man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{n:["woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{n:["man with gua pi mao","man_with_gua_pi_mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{n:["person with headscarf","person_with_headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{n:["bearded person","bearded_person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{n:["person with blond hair","person_with_blond_hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{n:["blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{n:["blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{n:["man in tuxedo","man_in_tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{n:["bride with veil","bride_with_veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{n:["pregnant woman","pregnant_woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{n:["baby angel","angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{n:["father christmas","santa"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{n:["mother christmas","mrs_claus","mother_christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{n:["female_mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{n:["male_mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{n:["female_fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{n:["male_fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{n:["female_vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{n:["male_vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{n:["female_elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{n:["male_elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{n:["genie"],u:"1f9de"},{n:["female_genie"],u:"1f9de-200d-2640-fe0f"},{n:["male_genie"],u:"1f9de-200d-2642-fe0f"},{n:["zombie"],u:"1f9df"},{n:["female_zombie"],u:"1f9df-200d-2640-fe0f"},{n:["male_zombie"],u:"1f9df-200d-2642-fe0f"},{n:["person frowning","person_frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{n:["man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{n:["woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{n:["person with pouting face","person_with_pouting_face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{n:["man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{n:["woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{n:["face with no good gesture","no_good"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{n:["man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{n:["face with ok gesture","ok_woman"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{n:["man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{n:["information desk person","information_desk_person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{n:["man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{n:["woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{n:["happy person raising one hand","raising_hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{n:["man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{n:["woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{n:["person bowing deeply","bow"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{n:["man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{n:["woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{n:["face palm","face_palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{n:["man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{n:["woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{n:["man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{n:["woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{n:["face massage","massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{n:["man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{n:["man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{n:["pedestrian","walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{n:["man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{n:["woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{n:["man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{n:["woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{n:["man dancing","man_dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{n:["woman with bunny ears","dancers"],u:"1f46f"},{n:["man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f"},{n:["woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f"},{n:["person in steamy room","person_in_steamy_room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{n:["woman_in_steamy_room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{n:["man_in_steamy_room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{n:["person climbing","person_climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{n:["woman_climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{n:["man_climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{n:["person in lotus position","person_in_lotus_position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{n:["woman_in_lotus_position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{n:["man_in_lotus_position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{n:["sleeping accommodation","sleeping_accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{n:["man_in_business_suit_levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{n:["speaking_head_in_silhouette"],u:"1f5e3-fe0f"},{n:["bust in silhouette","bust_in_silhouette"],u:"1f464"},{n:["busts in silhouette","busts_in_silhouette"],u:"1f465"},{n:["fencer"],u:"1f93a"},{n:["horse racing","horse_racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{n:["skier"],u:"26f7-fe0f"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{n:["golfer"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{n:["man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{n:["woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{n:["man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{n:["woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{n:["man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{n:["woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{n:["man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{n:["woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{n:["person_with_ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{n:["man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{n:["woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{n:["weight_lifter"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{n:["man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{n:["woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{n:["man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{n:["woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{n:["mountain bicyclist","mountain_bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{n:["man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{n:["woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{n:["racing_car"],u:"1f3ce-fe0f"},{n:["racing_motorcycle"],u:"1f3cd-fe0f"},{n:["person doing cartwheel","person_doing_cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{n:["man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{n:["woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{n:["wrestlers"],u:"1f93c"},{n:["man-wrestling"],u:"1f93c-200d-2642-fe0f"},{n:["woman-wrestling"],u:"1f93c-200d-2640-fe0f"},{n:["water polo","water_polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{n:["man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{n:["man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{n:["man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{n:["woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{n:["man and woman holding hands","couple","man_and_woman_holding_hands"],u:"1f46b"},{n:["two men holding hands","two_men_holding_hands"],u:"1f46c"},{n:["two women holding hands","two_women_holding_hands"],u:"1f46d"},{n:["kiss","couplekiss"],u:"1f48f"},{n:["woman-kiss-man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["man-kiss-man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["woman-kiss-woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{n:["couple with heart","couple_with_heart"],u:"1f491"},{n:["woman-heart-man"],u:"1f469-200d-2764-fe0f-200d-1f468"},{n:["man-heart-man"],u:"1f468-200d-2764-fe0f-200d-1f468"},{n:["woman-heart-woman"],u:"1f469-200d-2764-fe0f-200d-1f469"},{n:["family","man-woman-boy"],u:"1f46a"},{n:["man-woman-boy","family"],u:"1f468-200d-1f469-200d-1f466"},{n:["man-woman-girl"],u:"1f468-200d-1f469-200d-1f467"},{n:["man-woman-girl-boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466"},{n:["man-woman-boy-boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466"},{n:["man-woman-girl-girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467"},{n:["man-man-boy"],u:"1f468-200d-1f468-200d-1f466"},{n:["man-man-girl"],u:"1f468-200d-1f468-200d-1f467"},{n:["man-man-girl-boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466"},{n:["man-man-boy-boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466"},{n:["man-man-girl-girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467"},{n:["woman-woman-boy"],u:"1f469-200d-1f469-200d-1f466"},{n:["woman-woman-girl"],u:"1f469-200d-1f469-200d-1f467"},{n:["woman-woman-girl-boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466"},{n:["woman-woman-boy-boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466"},{n:["woman-woman-girl-girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467"},{n:["man-boy"],u:"1f468-200d-1f466"},{n:["man-boy-boy"],u:"1f468-200d-1f466-200d-1f466"},{n:["man-girl"],u:"1f468-200d-1f467"},{n:["man-girl-boy"],u:"1f468-200d-1f467-200d-1f466"},{n:["man-girl-girl"],u:"1f468-200d-1f467-200d-1f467"},{n:["woman-boy"],u:"1f469-200d-1f466"},{n:["woman-boy-boy"],u:"1f469-200d-1f466-200d-1f466"},{n:["woman-girl"],u:"1f469-200d-1f467"},{n:["woman-girl-boy"],u:"1f469-200d-1f467-200d-1f466"},{n:["woman-girl-girl"],u:"1f469-200d-1f467-200d-1f467"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{n:["flexed biceps","muscle"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{n:["white left pointing backhand index","point_left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{n:["white right pointing backhand index","point_right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{n:["white up pointing index","point_up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{n:["white up pointing backhand index","point_up_2"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{n:["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{n:["white down pointing backhand index","point_down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{n:["victory hand","v"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{n:["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{n:["raised hand with part between middle and ring fingers","spock-hand"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{n:["sign of the horns","the_horns","sign_of_the_horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{n:["call me hand","call_me_hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{n:["raised_hand_with_fingers_splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{n:["raised hand","hand","raised_hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{n:["ok hand sign","ok_hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{n:["thumbs up sign","+1","thumbsup"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{n:["thumbs down sign","-1","thumbsdown"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{n:["raised fist","fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{n:["fisted hand sign","facepunch","punch"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{n:["left-facing fist","left-facing_fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{n:["right-facing fist","right-facing_fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{n:["raised back of hand","raised_back_of_hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{n:["waving hand sign","wave"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{n:["i love you hand sign","i_love_you_hand_sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{n:["writing_hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{n:["clapping hands sign","clap"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{n:["open hands sign","open_hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{n:["person raising both hands in celebration","raised_hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{n:["palms up together","palms_up_together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{n:["person with folded hands","pray"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{n:["handshake"],u:"1f91d"},{n:["nail polish","nail_care"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{n:["footprints"],u:"1f463"},{n:["eyes"],u:"1f440"},{n:["eye"],u:"1f441-fe0f"},{n:["eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f"},{n:["brain"],u:"1f9e0"},{n:["tongue"],u:"1f445"},{n:["mouth","lips"],u:"1f444"},{n:["kiss mark","kiss"],u:"1f48b"},{n:["heart with arrow","cupid"],u:"1f498"},{n:["heavy black heart","heart"],u:"2764-fe0f"},{n:["beating heart","heartbeat"],u:"1f493"},{n:["broken heart","broken_heart"],u:"1f494"},{n:["two hearts","two_hearts"],u:"1f495"},{n:["sparkling heart","sparkling_heart"],u:"1f496"},{n:["growing heart","heartpulse"],u:"1f497"},{n:["blue heart","blue_heart"],u:"1f499"},{n:["green heart","green_heart"],u:"1f49a"},{n:["yellow heart","yellow_heart"],u:"1f49b"},{n:["orange heart","orange_heart"],u:"1f9e1"},{n:["purple heart","purple_heart"],u:"1f49c"},{n:["black heart","black_heart"],u:"1f5a4"},{n:["heart with ribbon","gift_heart"],u:"1f49d"},{n:["revolving hearts","revolving_hearts"],u:"1f49e"},{n:["heart decoration","heart_decoration"],u:"1f49f"},{n:["heavy_heart_exclamation_mark_ornament"],u:"2763-fe0f"},{n:["love letter","love_letter"],u:"1f48c"},{n:["sleeping symbol","zzz"],u:"1f4a4"},{n:["anger symbol","anger"],u:"1f4a2"},{n:["bomb"],u:"1f4a3"},{n:["collision symbol","boom","collision"],u:"1f4a5"},{n:["splashing sweat symbol","sweat_drops"],u:"1f4a6"},{n:["dash symbol","dash"],u:"1f4a8"},{n:["dizzy symbol","dizzy"],u:"1f4ab"},{n:["speech balloon","speech_balloon"],u:"1f4ac"},{n:["left_speech_bubble"],u:"1f5e8-fe0f"},{n:["right_anger_bubble"],u:"1f5ef-fe0f"},{n:["thought balloon","thought_balloon"],u:"1f4ad"},{n:["hole"],u:"1f573-fe0f"},{n:["eyeglasses"],u:"1f453"},{n:["dark_sunglasses"],u:"1f576-fe0f"},{n:["necktie"],u:"1f454"},{n:["t-shirt","shirt","tshirt"],u:"1f455"},{n:["jeans"],u:"1f456"},{n:["scarf"],u:"1f9e3"},{n:["gloves"],u:"1f9e4"},{n:["coat"],u:"1f9e5"},{n:["socks"],u:"1f9e6"},{n:["dress"],u:"1f457"},{n:["kimono"],u:"1f458"},{n:["bikini"],u:"1f459"},{n:["womans clothes","womans_clothes"],u:"1f45a"},{n:["purse"],u:"1f45b"},{n:["handbag"],u:"1f45c"},{n:["pouch"],u:"1f45d"},{n:["shopping_bags"],u:"1f6cd-fe0f"},{n:["school satchel","school_satchel"],u:"1f392"},{n:["mans shoe","mans_shoe","shoe"],u:"1f45e"},{n:["athletic shoe","athletic_shoe"],u:"1f45f"},{n:["high-heeled shoe","high_heel"],u:"1f460"},{n:["womans sandal","sandal"],u:"1f461"},{n:["womans boots","boot"],u:"1f462"},{n:["crown"],u:"1f451"},{n:["womans hat","womans_hat"],u:"1f452"},{n:["top hat","tophat"],u:"1f3a9"},{n:["graduation cap","mortar_board"],u:"1f393"},{n:["billed cap","billed_cap"],u:"1f9e2"},{n:["helmet_with_white_cross"],u:"26d1-fe0f"},{n:["prayer beads","prayer_beads"],u:"1f4ff"},{n:["lipstick"],u:"1f484"},{n:["ring"],u:"1f48d"},{n:["gem stone","gem"],u:"1f48e"}],animals_nature:[{n:["monkey face","monkey_face"],u:"1f435"},{n:["monkey"],u:"1f412"},{n:["gorilla"],u:"1f98d"},{n:["dog face","dog"],u:"1f436"},{n:["dog","dog2"],u:"1f415"},{n:["poodle"],u:"1f429"},{n:["wolf face","wolf"],u:"1f43a"},{n:["fox face","fox_face"],u:"1f98a"},{n:["cat face","cat"],u:"1f431"},{n:["cat","cat2"],u:"1f408"},{n:["lion face","lion_face"],u:"1f981"},{n:["tiger face","tiger"],u:"1f42f"},{n:["tiger","tiger2"],u:"1f405"},{n:["leopard"],u:"1f406"},{n:["horse face","horse"],u:"1f434"},{n:["horse","racehorse"],u:"1f40e"},{n:["unicorn face","unicorn_face"],u:"1f984"},{n:["zebra face","zebra_face"],u:"1f993"},{n:["deer"],u:"1f98c"},{n:["cow face","cow"],u:"1f42e"},{n:["ox"],u:"1f402"},{n:["water buffalo","water_buffalo"],u:"1f403"},{n:["cow","cow2"],u:"1f404"},{n:["pig face","pig"],u:"1f437"},{n:["pig","pig2"],u:"1f416"},{n:["boar"],u:"1f417"},{n:["pig nose","pig_nose"],u:"1f43d"},{n:["ram"],u:"1f40f"},{n:["sheep"],u:"1f411"},{n:["goat"],u:"1f410"},{n:["dromedary camel","dromedary_camel"],u:"1f42a"},{n:["bactrian camel","camel"],u:"1f42b"},{n:["giraffe face","giraffe_face"],u:"1f992"},{n:["elephant"],u:"1f418"},{n:["rhinoceros"],u:"1f98f"},{n:["mouse face","mouse"],u:"1f42d"},{n:["mouse","mouse2"],u:"1f401"},{n:["rat"],u:"1f400"},{n:["hamster face","hamster"],u:"1f439"},{n:["rabbit face","rabbit"],u:"1f430"},{n:["rabbit","rabbit2"],u:"1f407"},{n:["chipmunk"],u:"1f43f-fe0f"},{n:["hedgehog"],u:"1f994"},{n:["bat"],u:"1f987"},{n:["bear face","bear"],u:"1f43b"},{n:["koala"],u:"1f428"},{n:["panda face","panda_face"],u:"1f43c"},{n:["paw prints","feet","paw_prints"],u:"1f43e"},{n:["turkey"],u:"1f983"},{n:["chicken"],u:"1f414"},{n:["rooster"],u:"1f413"},{n:["hatching chick","hatching_chick"],u:"1f423"},{n:["baby chick","baby_chick"],u:"1f424"},{n:["front-facing baby chick","hatched_chick"],u:"1f425"},{n:["bird"],u:"1f426"},{n:["penguin"],u:"1f427"},{n:["dove_of_peace"],u:"1f54a-fe0f"},{n:["eagle"],u:"1f985"},{n:["duck"],u:"1f986"},{n:["owl"],u:"1f989"},{n:["frog face","frog"],u:"1f438"},{n:["crocodile"],u:"1f40a"},{n:["turtle"],u:"1f422"},{n:["lizard"],u:"1f98e"},{n:["snake"],u:"1f40d"},{n:["dragon face","dragon_face"],u:"1f432"},{n:["dragon"],u:"1f409"},{n:["sauropod"],u:"1f995"},{n:["t-rex"],u:"1f996"},{n:["spouting whale","whale"],u:"1f433"},{n:["whale","whale2"],u:"1f40b"},{n:["dolphin","flipper"],u:"1f42c"},{n:["fish"],u:"1f41f"},{n:["tropical fish","tropical_fish"],u:"1f420"},{n:["blowfish"],u:"1f421"},{n:["shark"],u:"1f988"},{n:["octopus"],u:"1f419"},{n:["spiral shell","shell"],u:"1f41a"},{n:["crab"],u:"1f980"},{n:["shrimp"],u:"1f990"},{n:["squid"],u:"1f991"},{n:["snail"],u:"1f40c"},{n:["butterfly"],u:"1f98b"},{n:["bug"],u:"1f41b"},{n:["ant"],u:"1f41c"},{n:["honeybee","bee"],u:"1f41d"},{n:["lady beetle","beetle"],u:"1f41e"},{n:["cricket"],u:"1f997"},{n:["spider"],u:"1f577-fe0f"},{n:["spider_web"],u:"1f578-fe0f"},{n:["scorpion"],u:"1f982"},{n:["bouquet"],u:"1f490"},{n:["cherry blossom","cherry_blossom"],u:"1f338"},{n:["white flower","white_flower"],u:"1f4ae"},{n:["rosette"],u:"1f3f5-fe0f"},{n:["rose"],u:"1f339"},{n:["wilted flower","wilted_flower"],u:"1f940"},{n:["hibiscus"],u:"1f33a"},{n:["sunflower"],u:"1f33b"},{n:["blossom"],u:"1f33c"},{n:["tulip"],u:"1f337"},{n:["seedling"],u:"1f331"},{n:["evergreen tree","evergreen_tree"],u:"1f332"},{n:["deciduous tree","deciduous_tree"],u:"1f333"},{n:["palm tree","palm_tree"],u:"1f334"},{n:["cactus"],u:"1f335"},{n:["ear of rice","ear_of_rice"],u:"1f33e"},{n:["herb"],u:"1f33f"},{n:["shamrock"],u:"2618-fe0f"},{n:["four leaf clover","four_leaf_clover"],u:"1f340"},{n:["maple leaf","maple_leaf"],u:"1f341"},{n:["fallen leaf","fallen_leaf"],u:"1f342"},{n:["leaf fluttering in wind","leaves"],u:"1f343"}],food_drink:[{n:["grapes"],u:"1f347"},{n:["melon"],u:"1f348"},{n:["watermelon"],u:"1f349"},{n:["tangerine"],u:"1f34a"},{n:["lemon"],u:"1f34b"},{n:["banana"],u:"1f34c"},{n:["pineapple"],u:"1f34d"},{n:["red apple","apple"],u:"1f34e"},{n:["green apple","green_apple"],u:"1f34f"},{n:["pear"],u:"1f350"},{n:["peach"],u:"1f351"},{n:["cherries"],u:"1f352"},{n:["strawberry"],u:"1f353"},{n:["kiwifruit"],u:"1f95d"},{n:["tomato"],u:"1f345"},{n:["coconut"],u:"1f965"},{n:["avocado"],u:"1f951"},{n:["aubergine","eggplant"],u:"1f346"},{n:["potato"],u:"1f954"},{n:["carrot"],u:"1f955"},{n:["ear of maize","corn"],u:"1f33d"},{n:["hot_pepper"],u:"1f336-fe0f"},{n:["cucumber"],u:"1f952"},{n:["broccoli"],u:"1f966"},{n:["mushroom"],u:"1f344"},{n:["peanuts"],u:"1f95c"},{n:["chestnut"],u:"1f330"},{n:["bread"],u:"1f35e"},{n:["croissant"],u:"1f950"},{n:["baguette bread","baguette_bread"],u:"1f956"},{n:["pretzel"],u:"1f968"},{n:["pancakes"],u:"1f95e"},{n:["cheese wedge","cheese_wedge"],u:"1f9c0"},{n:["meat on bone","meat_on_bone"],u:"1f356"},{n:["poultry leg","poultry_leg"],u:"1f357"},{n:["cut of meat","cut_of_meat"],u:"1f969"},{n:["bacon"],u:"1f953"},{n:["hamburger"],u:"1f354"},{n:["french fries","fries"],u:"1f35f"},{n:["slice of pizza","pizza"],u:"1f355"},{n:["hot dog","hotdog"],u:"1f32d"},{n:["sandwich"],u:"1f96a"},{n:["taco"],u:"1f32e"},{n:["burrito"],u:"1f32f"},{n:["stuffed flatbread","stuffed_flatbread"],u:"1f959"},{n:["egg"],u:"1f95a"},{n:["cooking","fried_egg"],u:"1f373"},{n:["shallow pan of food","shallow_pan_of_food"],u:"1f958"},{n:["pot of food","stew"],u:"1f372"},{n:["bowl with spoon","bowl_with_spoon"],u:"1f963"},{n:["green salad","green_salad"],u:"1f957"},{n:["popcorn"],u:"1f37f"},{n:["canned food","canned_food"],u:"1f96b"},{n:["bento box","bento"],u:"1f371"},{n:["rice cracker","rice_cracker"],u:"1f358"},{n:["rice ball","rice_ball"],u:"1f359"},{n:["cooked rice","rice"],u:"1f35a"},{n:["curry and rice","curry"],u:"1f35b"},{n:["steaming bowl","ramen"],u:"1f35c"},{n:["spaghetti"],u:"1f35d"},{n:["roasted sweet potato","sweet_potato"],u:"1f360"},{n:["oden"],u:"1f362"},{n:["sushi"],u:"1f363"},{n:["fried shrimp","fried_shrimp"],u:"1f364"},{n:["fish cake with swirl design","fish_cake"],u:"1f365"},{n:["dango"],u:"1f361"},{n:["dumpling"],u:"1f95f"},{n:["fortune cookie","fortune_cookie"],u:"1f960"},{n:["takeout box","takeout_box"],u:"1f961"},{n:["soft ice cream","icecream"],u:"1f366"},{n:["shaved ice","shaved_ice"],u:"1f367"},{n:["ice cream","ice_cream"],u:"1f368"},{n:["doughnut"],u:"1f369"},{n:["cookie"],u:"1f36a"},{n:["birthday cake","birthday"],u:"1f382"},{n:["shortcake","cake"],u:"1f370"},{n:["pie"],u:"1f967"},{n:["chocolate bar","chocolate_bar"],u:"1f36b"},{n:["candy"],u:"1f36c"},{n:["lollipop"],u:"1f36d"},{n:["custard"],u:"1f36e"},{n:["honey pot","honey_pot"],u:"1f36f"},{n:["baby bottle","baby_bottle"],u:"1f37c"},{n:["glass of milk","glass_of_milk"],u:"1f95b"},{n:["hot beverage","coffee"],u:"2615"},{n:["teacup without handle","tea"],u:"1f375"},{n:["sake bottle and cup","sake"],u:"1f376"},{n:["bottle with popping cork","champagne"],u:"1f37e"},{n:["wine glass","wine_glass"],u:"1f377"},{n:["cocktail glass","cocktail"],u:"1f378"},{n:["tropical drink","tropical_drink"],u:"1f379"},{n:["beer mug","beer"],u:"1f37a"},{n:["clinking beer mugs","beers"],u:"1f37b"},{n:["clinking glasses","clinking_glasses"],u:"1f942"},{n:["tumbler glass","tumbler_glass"],u:"1f943"},{n:["cup with straw","cup_with_straw"],u:"1f964"},{n:["chopsticks"],u:"1f962"},{n:["knife_fork_plate"],u:"1f37d-fe0f"},{n:["fork and knife","fork_and_knife"],u:"1f374"},{n:["spoon"],u:"1f944"},{n:["hocho","knife"],u:"1f52a"},{n:["amphora"],u:"1f3fa"}],activities:[{n:["jack-o-lantern","jack_o_lantern"],u:"1f383"},{n:["christmas tree","christmas_tree"],u:"1f384"},{n:["fireworks"],u:"1f386"},{n:["firework sparkler","sparkler"],u:"1f387"},{n:["sparkles"],u:"2728"},{n:["balloon"],u:"1f388"},{n:["party popper","tada"],u:"1f389"},{n:["confetti ball","confetti_ball"],u:"1f38a"},{n:["tanabata tree","tanabata_tree"],u:"1f38b"},{n:["pine decoration","bamboo"],u:"1f38d"},{n:["japanese dolls","dolls"],u:"1f38e"},{n:["carp streamer","flags"],u:"1f38f"},{n:["wind chime","wind_chime"],u:"1f390"},{n:["moon viewing ceremony","rice_scene"],u:"1f391"},{n:["ribbon"],u:"1f380"},{n:["wrapped present","gift"],u:"1f381"},{n:["reminder_ribbon"],u:"1f397-fe0f"},{n:["admission_tickets"],u:"1f39f-fe0f"},{n:["ticket"],u:"1f3ab"},{n:["medal"],u:"1f396-fe0f"},{n:["trophy"],u:"1f3c6"},{n:["sports medal","sports_medal"],u:"1f3c5"},{n:["first place medal","first_place_medal"],u:"1f947"},{n:["second place medal","second_place_medal"],u:"1f948"},{n:["third place medal","third_place_medal"],u:"1f949"},{n:["soccer ball","soccer"],u:"26bd"},{n:["baseball"],u:"26be"},{n:["basketball and hoop","basketball"],u:"1f3c0"},{n:["volleyball"],u:"1f3d0"},{n:["american football","football"],u:"1f3c8"},{n:["rugby football","rugby_football"],u:"1f3c9"},{n:["tennis racquet and ball","tennis"],u:"1f3be"},{n:["billiards","8ball"],u:"1f3b1"},{n:["bowling"],u:"1f3b3"},{n:["cricket bat and ball","cricket_bat_and_ball"],u:"1f3cf"},{n:["field hockey stick and ball","field_hockey_stick_and_ball"],u:"1f3d1"},{n:["ice hockey stick and puck","ice_hockey_stick_and_puck"],u:"1f3d2"},{n:["table tennis paddle and ball","table_tennis_paddle_and_ball"],u:"1f3d3"},{n:["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],u:"1f3f8"},{n:["boxing glove","boxing_glove"],u:"1f94a"},{n:["martial arts uniform","martial_arts_uniform"],u:"1f94b"},{n:["goal net","goal_net"],u:"1f945"},{n:["direct hit","dart"],u:"1f3af"},{n:["flag in hole","golf"],u:"26f3"},{n:["ice_skate"],u:"26f8-fe0f"},{n:["fishing pole and fish","fishing_pole_and_fish"],u:"1f3a3"},{n:["running shirt with sash","running_shirt_with_sash"],u:"1f3bd"},{n:["ski and ski boot","ski"],u:"1f3bf"},{n:["sled"],u:"1f6f7"},{n:["curling stone","curling_stone"],u:"1f94c"},{n:["video game","video_game"],u:"1f3ae"},{n:["joystick"],u:"1f579-fe0f"},{n:["game die","game_die"],u:"1f3b2"},{n:["black spade suit","spades"],u:"2660-fe0f"},{n:["black heart suit","hearts"],u:"2665-fe0f"},{n:["black diamond suit","diamonds"],u:"2666-fe0f"},{n:["black club suit","clubs"],u:"2663-fe0f"},{n:["playing card black joker","black_joker"],u:"1f0cf"},{n:["mahjong tile red dragon","mahjong"],u:"1f004"},{n:["flower playing cards","flower_playing_cards"],u:"1f3b4"}],travel_places:[{n:["earth globe europe-africa","earth_africa"],u:"1f30d"},{n:["earth globe americas","earth_americas"],u:"1f30e"},{n:["earth globe asia-australia","earth_asia"],u:"1f30f"},{n:["globe with meridians","globe_with_meridians"],u:"1f310"},{n:["world_map"],u:"1f5fa-fe0f"},{n:["silhouette of japan","japan"],u:"1f5fe"},{n:["snow_capped_mountain"],u:"1f3d4-fe0f"},{n:["mountain"],u:"26f0-fe0f"},{n:["volcano"],u:"1f30b"},{n:["mount fuji","mount_fuji"],u:"1f5fb"},{n:["camping"],u:"1f3d5-fe0f"},{n:["beach_with_umbrella"],u:"1f3d6-fe0f"},{n:["desert"],u:"1f3dc-fe0f"},{n:["desert_island"],u:"1f3dd-fe0f"},{n:["national_park"],u:"1f3de-fe0f"},{n:["stadium"],u:"1f3df-fe0f"},{n:["classical_building"],u:"1f3db-fe0f"},{n:["building_construction"],u:"1f3d7-fe0f"},{n:["house_buildings"],u:"1f3d8-fe0f"},{n:["cityscape"],u:"1f3d9-fe0f"},{n:["derelict_house_building"],u:"1f3da-fe0f"},{n:["house building","house"],u:"1f3e0"},{n:["house with garden","house_with_garden"],u:"1f3e1"},{n:["office building","office"],u:"1f3e2"},{n:["japanese post office","post_office"],u:"1f3e3"},{n:["european post office","european_post_office"],u:"1f3e4"},{n:["hospital"],u:"1f3e5"},{n:["bank"],u:"1f3e6"},{n:["hotel"],u:"1f3e8"},{n:["love hotel","love_hotel"],u:"1f3e9"},{n:["convenience store","convenience_store"],u:"1f3ea"},{n:["school"],u:"1f3eb"},{n:["department store","department_store"],u:"1f3ec"},{n:["factory"],u:"1f3ed"},{n:["japanese castle","japanese_castle"],u:"1f3ef"},{n:["european castle","european_castle"],u:"1f3f0"},{n:["wedding"],u:"1f492"},{n:["tokyo tower","tokyo_tower"],u:"1f5fc"},{n:["statue of liberty","statue_of_liberty"],u:"1f5fd"},{n:["church"],u:"26ea"},{n:["mosque"],u:"1f54c"},{n:["synagogue"],u:"1f54d"},{n:["shinto_shrine"],u:"26e9-fe0f"},{n:["kaaba"],u:"1f54b"},{n:["fountain"],u:"26f2"},{n:["tent"],u:"26fa"},{n:["foggy"],u:"1f301"},{n:["night with stars","night_with_stars"],u:"1f303"},{n:["sunrise over mountains","sunrise_over_mountains"],u:"1f304"},{n:["sunrise"],u:"1f305"},{n:["cityscape at dusk","city_sunset"],u:"1f306"},{n:["sunset over buildings","city_sunrise"],u:"1f307"},{n:["bridge at night","bridge_at_night"],u:"1f309"},{n:["hot springs","hotsprings"],u:"2668-fe0f"},{n:["milky way","milky_way"],u:"1f30c"},{n:["carousel horse","carousel_horse"],u:"1f3a0"},{n:["ferris wheel","ferris_wheel"],u:"1f3a1"},{n:["roller coaster","roller_coaster"],u:"1f3a2"},{n:["barber pole","barber"],u:"1f488"},{n:["circus tent","circus_tent"],u:"1f3aa"},{n:["performing arts","performing_arts"],u:"1f3ad"},{n:["frame_with_picture"],u:"1f5bc-fe0f"},{n:["artist palette","art"],u:"1f3a8"},{n:["slot machine","slot_machine"],u:"1f3b0"},{n:["steam locomotive","steam_locomotive"],u:"1f682"},{n:["railway car","railway_car"],u:"1f683"},{n:["high-speed train","bullettrain_side"],u:"1f684"},{n:["high-speed train with bullet nose","bullettrain_front"],u:"1f685"},{n:["train","train2"],u:"1f686"},{n:["metro"],u:"1f687"},{n:["light rail","light_rail"],u:"1f688"},{n:["station"],u:"1f689"},{n:["tram"],u:"1f68a"},{n:["monorail"],u:"1f69d"},{n:["mountain railway","mountain_railway"],u:"1f69e"},{n:["tram car","train"],u:"1f68b"},{n:["bus"],u:"1f68c"},{n:["oncoming bus","oncoming_bus"],u:"1f68d"},{n:["trolleybus"],u:"1f68e"},{n:["minibus"],u:"1f690"},{n:["ambulance"],u:"1f691"},{n:["fire engine","fire_engine"],u:"1f692"},{n:["police car","police_car"],u:"1f693"},{n:["oncoming police car","oncoming_police_car"],u:"1f694"},{n:["taxi"],u:"1f695"},{n:["oncoming taxi","oncoming_taxi"],u:"1f696"},{n:["automobile","car","red_car"],u:"1f697"},{n:["oncoming automobile","oncoming_automobile"],u:"1f698"},{n:["recreational vehicle","blue_car"],u:"1f699"},{n:["delivery truck","truck"],u:"1f69a"},{n:["articulated lorry","articulated_lorry"],u:"1f69b"},{n:["tractor"],u:"1f69c"},{n:["bicycle","bike"],u:"1f6b2"},{n:["scooter"],u:"1f6f4"},{n:["motor scooter","motor_scooter"],u:"1f6f5"},{n:["bus stop","busstop"],u:"1f68f"},{n:["motorway"],u:"1f6e3-fe0f"},{n:["railway_track"],u:"1f6e4-fe0f"},{n:["fuel pump","fuelpump"],u:"26fd"},{n:["police cars revolving light","rotating_light"],u:"1f6a8"},{n:["horizontal traffic light","traffic_light"],u:"1f6a5"},{n:["vertical traffic light","vertical_traffic_light"],u:"1f6a6"},{n:["construction sign","construction"],u:"1f6a7"},{n:["octagonal sign","octagonal_sign"],u:"1f6d1"},{n:["anchor"],u:"2693"},{n:["sailboat","boat"],u:"26f5"},{n:["canoe"],u:"1f6f6"},{n:["speedboat"],u:"1f6a4"},{n:["passenger_ship"],u:"1f6f3-fe0f"},{n:["ferry"],u:"26f4-fe0f"},{n:["motor_boat"],u:"1f6e5-fe0f"},{n:["ship"],u:"1f6a2"},{n:["airplane"],u:"2708-fe0f"},{n:["small_airplane"],u:"1f6e9-fe0f"},{n:["airplane departure","airplane_departure"],u:"1f6eb"},{n:["airplane arriving","airplane_arriving"],u:"1f6ec"},{n:["seat"],u:"1f4ba"},{n:["helicopter"],u:"1f681"},{n:["suspension railway","suspension_railway"],u:"1f69f"},{n:["mountain cableway","mountain_cableway"],u:"1f6a0"},{n:["aerial tramway","aerial_tramway"],u:"1f6a1"},{n:["satellite"],u:"1f6f0-fe0f"},{n:["rocket"],u:"1f680"},{n:["flying saucer","flying_saucer"],u:"1f6f8"},{n:["bellhop_bell"],u:"1f6ce-fe0f"},{n:["door"],u:"1f6aa"},{n:["bed"],u:"1f6cf-fe0f"},{n:["couch_and_lamp"],u:"1f6cb-fe0f"},{n:["toilet"],u:"1f6bd"},{n:["shower"],u:"1f6bf"},{n:["bathtub"],u:"1f6c1"},{n:["hourglass"],u:"231b"},{n:["hourglass with flowing sand","hourglass_flowing_sand"],u:"23f3"},{n:["watch"],u:"231a"},{n:["alarm clock","alarm_clock"],u:"23f0"},{n:["stopwatch"],u:"23f1-fe0f"},{n:["timer_clock"],u:"23f2-fe0f"},{n:["mantelpiece_clock"],u:"1f570-fe0f"},{n:["clock face twelve oclock","clock12"],u:"1f55b"},{n:["clock face twelve-thirty","clock1230"],u:"1f567"},{n:["clock face one oclock","clock1"],u:"1f550"},{n:["clock face one-thirty","clock130"],u:"1f55c"},{n:["clock face two oclock","clock2"],u:"1f551"},{n:["clock face two-thirty","clock230"],u:"1f55d"},{n:["clock face three oclock","clock3"],u:"1f552"},{n:["clock face three-thirty","clock330"],u:"1f55e"},{n:["clock face four oclock","clock4"],u:"1f553"},{n:["clock face four-thirty","clock430"],u:"1f55f"},{n:["clock face five oclock","clock5"],u:"1f554"},{n:["clock face five-thirty","clock530"],u:"1f560"},{n:["clock face six oclock","clock6"],u:"1f555"},{n:["clock face six-thirty","clock630"],u:"1f561"},{n:["clock face seven oclock","clock7"],u:"1f556"},{n:["clock face seven-thirty","clock730"],u:"1f562"},{n:["clock face eight oclock","clock8"],u:"1f557"},{n:["clock face eight-thirty","clock830"],u:"1f563"},{n:["clock face nine oclock","clock9"],u:"1f558"},{n:["clock face nine-thirty","clock930"],u:"1f564"},{n:["clock face ten oclock","clock10"],u:"1f559"},{n:["clock face ten-thirty","clock1030"],u:"1f565"},{n:["clock face eleven oclock","clock11"],u:"1f55a"},{n:["clock face eleven-thirty","clock1130"],u:"1f566"},{n:["new moon symbol","new_moon"],u:"1f311"},{n:["waxing crescent moon symbol","waxing_crescent_moon"],u:"1f312"},{n:["first quarter moon symbol","first_quarter_moon"],u:"1f313"},{n:["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],u:"1f314"},{n:["full moon symbol","full_moon"],u:"1f315"},{n:["waning gibbous moon symbol","waning_gibbous_moon"],u:"1f316"},{n:["last quarter moon symbol","last_quarter_moon"],u:"1f317"},{n:["waning crescent moon symbol","waning_crescent_moon"],u:"1f318"},{n:["crescent moon","crescent_moon"],u:"1f319"},{n:["new moon with face","new_moon_with_face"],u:"1f31a"},{n:["first quarter moon with face","first_quarter_moon_with_face"],u:"1f31b"},{n:["last quarter moon with face","last_quarter_moon_with_face"],u:"1f31c"},{n:["thermometer"],u:"1f321-fe0f"},{n:["black sun with rays","sunny"],u:"2600-fe0f"},{n:["full moon with face","full_moon_with_face"],u:"1f31d"},{n:["sun with face","sun_with_face"],u:"1f31e"},{n:["white medium star","star"],u:"2b50"},{n:["glowing star","star2"],u:"1f31f"},{n:["shooting star","stars"],u:"1f320"},{n:["cloud"],u:"2601-fe0f"},{n:["sun behind cloud","partly_sunny"],u:"26c5"},{n:["thunder_cloud_and_rain"],u:"26c8-fe0f"},{n:["mostly_sunny","sun_small_cloud"],u:"1f324-fe0f"},{n:["barely_sunny","sun_behind_cloud"],u:"1f325-fe0f"},{n:["partly_sunny_rain","sun_behind_rain_cloud"],u:"1f326-fe0f"},{n:["rain_cloud"],u:"1f327-fe0f"},{n:["snow_cloud"],u:"1f328-fe0f"},{n:["lightning","lightning_cloud"],u:"1f329-fe0f"},{n:["tornado","tornado_cloud"],u:"1f32a-fe0f"},{n:["fog"],u:"1f32b-fe0f"},{n:["wind_blowing_face"],u:"1f32c-fe0f"},{n:["cyclone"],u:"1f300"},{n:["rainbow"],u:"1f308"},{n:["closed umbrella","closed_umbrella"],u:"1f302"},{n:["umbrella"],u:"2602-fe0f"},{n:["umbrella with rain drops","umbrella_with_rain_drops"],u:"2614"},{n:["umbrella_on_ground"],u:"26f1-fe0f"},{n:["high voltage sign","zap"],u:"26a1"},{n:["snowflake"],u:"2744-fe0f"},{n:["snowman"],u:"2603-fe0f"},{n:["snowman without snow","snowman_without_snow"],u:"26c4"},{n:["comet"],u:"2604-fe0f"},{n:["fire"],u:"1f525"},{n:["droplet"],u:"1f4a7"},{n:["water wave","ocean"],u:"1f30a"}],objects:[{n:["speaker with cancellation stroke","mute"],u:"1f507"},{n:["speaker"],u:"1f508"},{n:["speaker with one sound wave","sound"],u:"1f509"},{n:["speaker with three sound waves","loud_sound"],u:"1f50a"},{n:["public address loudspeaker","loudspeaker"],u:"1f4e2"},{n:["cheering megaphone","mega"],u:"1f4e3"},{n:["postal horn","postal_horn"],u:"1f4ef"},{n:["bell"],u:"1f514"},{n:["bell with cancellation stroke","no_bell"],u:"1f515"},{n:["musical score","musical_score"],u:"1f3bc"},{n:["musical note","musical_note"],u:"1f3b5"},{n:["multiple musical notes","notes"],u:"1f3b6"},{n:["studio_microphone"],u:"1f399-fe0f"},{n:["level_slider"],u:"1f39a-fe0f"},{n:["control_knobs"],u:"1f39b-fe0f"},{n:["microphone"],u:"1f3a4"},{n:["headphone","headphones"],u:"1f3a7"},{n:["radio"],u:"1f4fb"},{n:["saxophone"],u:"1f3b7"},{n:["guitar"],u:"1f3b8"},{n:["musical keyboard","musical_keyboard"],u:"1f3b9"},{n:["trumpet"],u:"1f3ba"},{n:["violin"],u:"1f3bb"},{n:["drum with drumsticks","drum_with_drumsticks"],u:"1f941"},{n:["mobile phone","iphone"],u:"1f4f1"},{n:["mobile phone with rightwards arrow at left","calling"],u:"1f4f2"},{n:["black telephone","phone","telephone"],u:"260e-fe0f"},{n:["telephone receiver","telephone_receiver"],u:"1f4de"},{n:["pager"],u:"1f4df"},{n:["fax machine","fax"],u:"1f4e0"},{n:["battery"],u:"1f50b"},{n:["electric plug","electric_plug"],u:"1f50c"},{n:["personal computer","computer"],u:"1f4bb"},{n:["desktop_computer"],u:"1f5a5-fe0f"},{n:["printer"],u:"1f5a8-fe0f"},{n:["keyboard"],u:"2328-fe0f"},{n:["three_button_mouse"],u:"1f5b1-fe0f"},{n:["trackball"],u:"1f5b2-fe0f"},{n:["minidisc"],u:"1f4bd"},{n:["floppy disk","floppy_disk"],u:"1f4be"},{n:["optical disc","cd"],u:"1f4bf"},{n:["dvd"],u:"1f4c0"},{n:["movie camera","movie_camera"],u:"1f3a5"},{n:["film_frames"],u:"1f39e-fe0f"},{n:["film_projector"],u:"1f4fd-fe0f"},{n:["clapper board","clapper"],u:"1f3ac"},{n:["television","tv"],u:"1f4fa"},{n:["camera"],u:"1f4f7"},{n:["camera with flash","camera_with_flash"],u:"1f4f8"},{n:["video camera","video_camera"],u:"1f4f9"},{n:["videocassette","vhs"],u:"1f4fc"},{n:["left-pointing magnifying glass","mag"],u:"1f50d"},{n:["right-pointing magnifying glass","mag_right"],u:"1f50e"},{n:["microscope"],u:"1f52c"},{n:["telescope"],u:"1f52d"},{n:["satellite antenna","satellite_antenna"],u:"1f4e1"},{n:["candle"],u:"1f56f-fe0f"},{n:["electric light bulb","bulb"],u:"1f4a1"},{n:["electric torch","flashlight"],u:"1f526"},{n:["izakaya lantern","izakaya_lantern","lantern"],u:"1f3ee"},{n:["notebook with decorative cover","notebook_with_decorative_cover"],u:"1f4d4"},{n:["closed book","closed_book"],u:"1f4d5"},{n:["open book","book","open_book"],u:"1f4d6"},{n:["green book","green_book"],u:"1f4d7"},{n:["blue book","blue_book"],u:"1f4d8"},{n:["orange book","orange_book"],u:"1f4d9"},{n:["books"],u:"1f4da"},{n:["notebook"],u:"1f4d3"},{n:["ledger"],u:"1f4d2"},{n:["page with curl","page_with_curl"],u:"1f4c3"},{n:["scroll"],u:"1f4dc"},{n:["page facing up","page_facing_up"],u:"1f4c4"},{n:["newspaper"],u:"1f4f0"},{n:["rolled_up_newspaper"],u:"1f5de-fe0f"},{n:["bookmark tabs","bookmark_tabs"],u:"1f4d1"},{n:["bookmark"],u:"1f516"},{n:["label"],u:"1f3f7-fe0f"},{n:["money bag","moneybag"],u:"1f4b0"},{n:["banknote with yen sign","yen"],u:"1f4b4"},{n:["banknote with dollar sign","dollar"],u:"1f4b5"},{n:["banknote with euro sign","euro"],u:"1f4b6"},{n:["banknote with pound sign","pound"],u:"1f4b7"},{n:["money with wings","money_with_wings"],u:"1f4b8"},{n:["credit card","credit_card"],u:"1f4b3"},{n:["chart with upwards trend and yen sign","chart"],u:"1f4b9"},{n:["currency exchange","currency_exchange"],u:"1f4b1"},{n:["heavy dollar sign","heavy_dollar_sign"],u:"1f4b2"},{n:["envelope","email"],u:"2709-fe0f"},{n:["e-mail symbol","e-mail"],u:"1f4e7"},{n:["incoming envelope","incoming_envelope"],u:"1f4e8"},{n:["envelope with downwards arrow above","envelope_with_arrow"],u:"1f4e9"},{n:["outbox tray","outbox_tray"],u:"1f4e4"},{n:["inbox tray","inbox_tray"],u:"1f4e5"},{n:["package"],u:"1f4e6"},{n:["closed mailbox with raised flag","mailbox"],u:"1f4eb"},{n:["closed mailbox with lowered flag","mailbox_closed"],u:"1f4ea"},{n:["open mailbox with raised flag","mailbox_with_mail"],u:"1f4ec"},{n:["open mailbox with lowered flag","mailbox_with_no_mail"],u:"1f4ed"},{n:["postbox"],u:"1f4ee"},{n:["ballot_box_with_ballot"],u:"1f5f3-fe0f"},{n:["pencil","pencil2"],u:"270f-fe0f"},{n:["black nib","black_nib"],u:"2712-fe0f"},{n:["lower_left_fountain_pen"],u:"1f58b-fe0f"},{n:["lower_left_ballpoint_pen"],u:"1f58a-fe0f"},{n:["lower_left_paintbrush"],u:"1f58c-fe0f"},{n:["lower_left_crayon"],u:"1f58d-fe0f"},{n:["memo","pencil"],u:"1f4dd"},{n:["briefcase"],u:"1f4bc"},{n:["file folder","file_folder"],u:"1f4c1"},{n:["open file folder","open_file_folder"],u:"1f4c2"},{n:["card_index_dividers"],u:"1f5c2-fe0f"},{n:["calendar","date"],u:"1f4c5"},{n:["tear-off calendar","calendar"],u:"1f4c6"},{n:["spiral_note_pad"],u:"1f5d2-fe0f"},{n:["spiral_calendar_pad"],u:"1f5d3-fe0f"},{n:["card index","card_index"],u:"1f4c7"},{n:["chart with upwards trend","chart_with_upwards_trend"],u:"1f4c8"},{n:["chart with downwards trend","chart_with_downwards_trend"],u:"1f4c9"},{n:["bar chart","bar_chart"],u:"1f4ca"},{n:["clipboard"],u:"1f4cb"},{n:["pushpin"],u:"1f4cc"},{n:["round pushpin","round_pushpin"],u:"1f4cd"},{n:["paperclip"],u:"1f4ce"},{n:["linked_paperclips"],u:"1f587-fe0f"},{n:["straight ruler","straight_ruler"],u:"1f4cf"},{n:["triangular ruler","triangular_ruler"],u:"1f4d0"},{n:["black scissors","scissors"],u:"2702-fe0f"},{n:["card_file_box"],u:"1f5c3-fe0f"},{n:["file_cabinet"],u:"1f5c4-fe0f"},{n:["wastebasket"],u:"1f5d1-fe0f"},{n:["lock"],u:"1f512"},{n:["open lock","unlock"],u:"1f513"},{n:["lock with ink pen","lock_with_ink_pen"],u:"1f50f"},{n:["closed lock with key","closed_lock_with_key"],u:"1f510"},{n:["key"],u:"1f511"},{n:["old_key"],u:"1f5dd-fe0f"},{n:["hammer"],u:"1f528"},{n:["pick"],u:"26cf-fe0f"},{n:["hammer_and_pick"],u:"2692-fe0f"},{n:["hammer_and_wrench"],u:"1f6e0-fe0f"},{n:["dagger_knife"],u:"1f5e1-fe0f"},{n:["crossed_swords"],u:"2694-fe0f"},{n:["pistol","gun"],u:"1f52b"},{n:["bow and arrow","bow_and_arrow"],u:"1f3f9"},{n:["shield"],u:"1f6e1-fe0f"},{n:["wrench"],u:"1f527"},{n:["nut and bolt","nut_and_bolt"],u:"1f529"},{n:["gear"],u:"2699-fe0f"},{n:["compression"],u:"1f5dc-fe0f"},{n:["alembic"],u:"2697-fe0f"},{n:["scales"],u:"2696-fe0f"},{n:["link symbol","link"],u:"1f517"},{n:["chains"],u:"26d3-fe0f"},{n:["syringe"],u:"1f489"},{n:["pill"],u:"1f48a"},{n:["smoking symbol","smoking"],u:"1f6ac"},{n:["coffin"],u:"26b0-fe0f"},{n:["funeral_urn"],u:"26b1-fe0f"},{n:["moyai"],u:"1f5ff"},{n:["oil_drum"],u:"1f6e2-fe0f"},{n:["crystal ball","crystal_ball"],u:"1f52e"},{n:["shopping trolley","shopping_trolley"],u:"1f6d2"}],symbols:[{n:["automated teller machine","atm"],u:"1f3e7"},{n:["put litter in its place symbol","put_litter_in_its_place"],u:"1f6ae"},{n:["potable water symbol","potable_water"],u:"1f6b0"},{n:["wheelchair symbol","wheelchair"],u:"267f"},{n:["mens symbol","mens"],u:"1f6b9"},{n:["womens symbol","womens"],u:"1f6ba"},{n:["restroom"],u:"1f6bb"},{n:["baby symbol","baby_symbol"],u:"1f6bc"},{n:["water closet","wc"],u:"1f6be"},{n:["passport control","passport_control"],u:"1f6c2"},{n:["customs"],u:"1f6c3"},{n:["baggage claim","baggage_claim"],u:"1f6c4"},{n:["left luggage","left_luggage"],u:"1f6c5"},{n:["warning sign","warning"],u:"26a0-fe0f"},{n:["children crossing","children_crossing"],u:"1f6b8"},{n:["no entry","no_entry"],u:"26d4"},{n:["no entry sign","no_entry_sign"],u:"1f6ab"},{n:["no bicycles","no_bicycles"],u:"1f6b3"},{n:["no smoking symbol","no_smoking"],u:"1f6ad"},{n:["do not litter symbol","do_not_litter"],u:"1f6af"},{n:["non-potable water symbol","non-potable_water"],u:"1f6b1"},{n:["no pedestrians","no_pedestrians"],u:"1f6b7"},{n:["no mobile phones","no_mobile_phones"],u:"1f4f5"},{n:["no one under eighteen symbol","underage"],u:"1f51e"},{n:["radioactive_sign"],u:"2622-fe0f"},{n:["biohazard_sign"],u:"2623-fe0f"},{n:["upwards black arrow","arrow_up"],u:"2b06-fe0f"},{n:["north east arrow","arrow_upper_right"],u:"2197-fe0f"},{n:["black rightwards arrow","arrow_right"],u:"27a1-fe0f"},{n:["south east arrow","arrow_lower_right"],u:"2198-fe0f"},{n:["downwards black arrow","arrow_down"],u:"2b07-fe0f"},{n:["south west arrow","arrow_lower_left"],u:"2199-fe0f"},{n:["leftwards black arrow","arrow_left"],u:"2b05-fe0f"},{n:["north west arrow","arrow_upper_left"],u:"2196-fe0f"},{n:["up down arrow","arrow_up_down"],u:"2195-fe0f"},{n:["left right arrow","left_right_arrow"],u:"2194-fe0f"},{n:["leftwards arrow with hook","leftwards_arrow_with_hook"],u:"21a9-fe0f"},{n:["rightwards arrow with hook","arrow_right_hook"],u:"21aa-fe0f"},{n:["arrow pointing rightwards then curving upwards","arrow_heading_up"],u:"2934-fe0f"},{n:["arrow pointing rightwards then curving downwards","arrow_heading_down"],u:"2935-fe0f"},{n:["clockwise downwards and upwards open circle arrows","arrows_clockwise"],u:"1f503"},{n:["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],u:"1f504"},{n:["back with leftwards arrow above","back"],u:"1f519"},{n:["end with leftwards arrow above","end"],u:"1f51a"},{n:["on with exclamation mark with left right arrow above","on"],u:"1f51b"},{n:["soon with rightwards arrow above","soon"],u:"1f51c"},{n:["top with upwards arrow above","top"],u:"1f51d"},{n:["place of worship","place_of_worship"],u:"1f6d0"},{n:["atom_symbol"],u:"269b-fe0f"},{n:["om_symbol"],u:"1f549-fe0f"},{n:["star_of_david"],u:"2721-fe0f"},{n:["wheel_of_dharma"],u:"2638-fe0f"},{n:["yin_yang"],u:"262f-fe0f"},{n:["latin_cross"],u:"271d-fe0f"},{n:["orthodox_cross"],u:"2626-fe0f"},{n:["star_and_crescent"],u:"262a-fe0f"},{n:["peace_symbol"],u:"262e-fe0f"},{n:["menorah with nine branches","menorah_with_nine_branches"],u:"1f54e"},{n:["six pointed star with middle dot","six_pointed_star"],u:"1f52f"},{n:["aries"],u:"2648"},{n:["taurus"],u:"2649"},{n:["gemini"],u:"264a"},{n:["cancer"],u:"264b"},{n:["leo"],u:"264c"},{n:["virgo"],u:"264d"},{n:["libra"],u:"264e"},{n:["scorpius"],u:"264f"},{n:["sagittarius"],u:"2650"},{n:["capricorn"],u:"2651"},{n:["aquarius"],u:"2652"},{n:["pisces"],u:"2653"},{n:["ophiuchus"],u:"26ce"},{n:["twisted rightwards arrows","twisted_rightwards_arrows"],u:"1f500"},{n:["clockwise rightwards and leftwards open circle arrows","repeat"],u:"1f501"},{n:["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],u:"1f502"},{n:["black right-pointing triangle","arrow_forward"],u:"25b6-fe0f"},{n:["black right-pointing double triangle","fast_forward"],u:"23e9"},{n:["black_right_pointing_double_triangle_with_vertical_bar"],u:"23ed-fe0f"},{n:["black_right_pointing_triangle_with_double_vertical_bar"],u:"23ef-fe0f"},{n:["black left-pointing triangle","arrow_backward"],u:"25c0-fe0f"},{n:["black left-pointing double triangle","rewind"],u:"23ea"},{n:["black_left_pointing_double_triangle_with_vertical_bar"],u:"23ee-fe0f"},{n:["up-pointing small red triangle","arrow_up_small"],u:"1f53c"},{n:["black up-pointing double triangle","arrow_double_up"],u:"23eb"},{n:["down-pointing small red triangle","arrow_down_small"],u:"1f53d"},{n:["black down-pointing double triangle","arrow_double_down"],u:"23ec"},{n:["double_vertical_bar"],u:"23f8-fe0f"},{n:["black_square_for_stop"],u:"23f9-fe0f"},{n:["black_circle_for_record"],u:"23fa-fe0f"},{n:["eject"],u:"23cf-fe0f"},{n:["cinema"],u:"1f3a6"},{n:["low brightness symbol","low_brightness"],u:"1f505"},{n:["high brightness symbol","high_brightness"],u:"1f506"},{n:["antenna with bars","signal_strength"],u:"1f4f6"},{n:["vibration mode","vibration_mode"],u:"1f4f3"},{n:["mobile phone off","mobile_phone_off"],u:"1f4f4"},{n:["female_sign"],u:"2640-fe0f"},{n:["male_sign"],u:"2642-fe0f"},{n:["medical_symbol","staff_of_aesculapius"],u:"2695-fe0f"},{n:["black universal recycling symbol","recycle"],u:"267b-fe0f"},{n:["fleur_de_lis"],u:"269c-fe0f"},{n:["trident emblem","trident"],u:"1f531"},{n:["name badge","name_badge"],u:"1f4db"},{n:["japanese symbol for beginner","beginner"],u:"1f530"},{n:["heavy large circle","o"],u:"2b55"},{n:["white heavy check mark","white_check_mark"],u:"2705"},{n:["ballot box with check","ballot_box_with_check"],u:"2611-fe0f"},{n:["heavy check mark","heavy_check_mark"],u:"2714-fe0f"},{n:["heavy multiplication x","heavy_multiplication_x"],u:"2716-fe0f"},{n:["cross mark","x"],u:"274c"},{n:["negative squared cross mark","negative_squared_cross_mark"],u:"274e"},{n:["heavy plus sign","heavy_plus_sign"],u:"2795"},{n:["heavy minus sign","heavy_minus_sign"],u:"2796"},{n:["heavy division sign","heavy_division_sign"],u:"2797"},{n:["curly loop","curly_loop"],u:"27b0"},{n:["double curly loop","loop"],u:"27bf"},{n:["part alternation mark","part_alternation_mark"],u:"303d-fe0f"},{n:["eight spoked asterisk","eight_spoked_asterisk"],u:"2733-fe0f"},{n:["eight pointed black star","eight_pointed_black_star"],u:"2734-fe0f"},{n:["sparkle"],u:"2747-fe0f"},{n:["double exclamation mark","bangbang"],u:"203c-fe0f"},{n:["exclamation question mark","interrobang"],u:"2049-fe0f"},{n:["black question mark ornament","question"],u:"2753"},{n:["white question mark ornament","grey_question"],u:"2754"},{n:["white exclamation mark ornament","grey_exclamation"],u:"2755"},{n:["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],u:"2757"},{n:["wavy dash","wavy_dash"],u:"3030-fe0f"},{n:["copyright sign","copyright"],u:"00a9-fe0f"},{n:["registered sign","registered"],u:"00ae-fe0f"},{n:["trade mark sign","tm"],u:"2122-fe0f"},{n:["hash key","hash"],u:"0023-fe0f-20e3"},{n:["keycap_star"],u:"002a-fe0f-20e3"},{n:["keycap 0","zero"],u:"0030-fe0f-20e3"},{n:["keycap 1","one"],u:"0031-fe0f-20e3"},{n:["keycap 2","two"],u:"0032-fe0f-20e3"},{n:["keycap 3","three"],u:"0033-fe0f-20e3"},{n:["keycap 4","four"],u:"0034-fe0f-20e3"},{n:["keycap 5","five"],u:"0035-fe0f-20e3"},{n:["keycap 6","six"],u:"0036-fe0f-20e3"},{n:["keycap 7","seven"],u:"0037-fe0f-20e3"},{n:["keycap 8","eight"],u:"0038-fe0f-20e3"},{n:["keycap 9","nine"],u:"0039-fe0f-20e3"},{n:["keycap ten","keycap_ten"],u:"1f51f"},{n:["hundred points symbol","100"],u:"1f4af"},{n:["input symbol for latin capital letters","capital_abcd"],u:"1f520"},{n:["input symbol for latin small letters","abcd"],u:"1f521"},{n:["input symbol for numbers","1234"],u:"1f522"},{n:["input symbol for symbols","symbols"],u:"1f523"},{n:["input symbol for latin letters","abc"],u:"1f524"},{n:["negative squared latin capital letter a","a"],u:"1f170-fe0f"},{n:["negative squared ab","ab"],u:"1f18e"},{n:["negative squared latin capital letter b","b"],u:"1f171-fe0f"},{n:["squared cl","cl"],u:"1f191"},{n:["squared cool","cool"],u:"1f192"},{n:["squared free","free"],u:"1f193"},{n:["information source","information_source"],u:"2139-fe0f"},{n:["squared id","id"],u:"1f194"},{n:["circled latin capital letter m","m"],u:"24c2-fe0f"},{n:["squared new","new"],u:"1f195"},{n:["squared ng","ng"],u:"1f196"},{n:["negative squared latin capital letter o","o2"],u:"1f17e-fe0f"},{n:["squared ok","ok"],u:"1f197"},{n:["negative squared latin capital letter p","parking"],u:"1f17f-fe0f"},{n:["squared sos","sos"],u:"1f198"},{n:["squared up with exclamation mark","up"],u:"1f199"},{n:["squared vs","vs"],u:"1f19a"},{n:["squared katakana koko","koko"],u:"1f201"},{n:["squared katakana sa","sa"],u:"1f202-fe0f"},{n:["squared cjk unified ideograph-6708","u6708"],u:"1f237-fe0f"},{n:["squared cjk unified ideograph-6709","u6709"],u:"1f236"},{n:["squared cjk unified ideograph-6307","u6307"],u:"1f22f"},{n:["circled ideograph advantage","ideograph_advantage"],u:"1f250"},{n:["squared cjk unified ideograph-5272","u5272"],u:"1f239"},{n:["squared cjk unified ideograph-7121","u7121"],u:"1f21a"},{n:["squared cjk unified ideograph-7981","u7981"],u:"1f232"},{n:["circled ideograph accept","accept"],u:"1f251"},{n:["squared cjk unified ideograph-7533","u7533"],u:"1f238"},{n:["squared cjk unified ideograph-5408","u5408"],u:"1f234"},{n:["squared cjk unified ideograph-7a7a","u7a7a"],u:"1f233"},{n:["circled ideograph congratulation","congratulations"],u:"3297-fe0f"},{n:["circled ideograph secret","secret"],u:"3299-fe0f"},{n:["squared cjk unified ideograph-55b6","u55b6"],u:"1f23a"},{n:["squared cjk unified ideograph-6e80","u6e80"],u:"1f235"},{n:["black small square","black_small_square"],u:"25aa-fe0f"},{n:["white small square","white_small_square"],u:"25ab-fe0f"},{n:["white medium square","white_medium_square"],u:"25fb-fe0f"},{n:["black medium square","black_medium_square"],u:"25fc-fe0f"},{n:["white medium small square","white_medium_small_square"],u:"25fd"},{n:["black medium small square","black_medium_small_square"],u:"25fe"},{n:["black large square","black_large_square"],u:"2b1b"},{n:["white large square","white_large_square"],u:"2b1c"},{n:["large orange diamond","large_orange_diamond"],u:"1f536"},{n:["large blue diamond","large_blue_diamond"],u:"1f537"},{n:["small orange diamond","small_orange_diamond"],u:"1f538"},{n:["small blue diamond","small_blue_diamond"],u:"1f539"},{n:["up-pointing red triangle","small_red_triangle"],u:"1f53a"},{n:["down-pointing red triangle","small_red_triangle_down"],u:"1f53b"},{n:["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],u:"1f4a0"},{n:["radio button","radio_button"],u:"1f518"},{n:["black square button","black_square_button"],u:"1f532"},{n:["white square button","white_square_button"],u:"1f533"},{n:["medium white circle","white_circle"],u:"26aa"},{n:["medium black circle","black_circle"],u:"26ab"},{n:["large red circle","red_circle"],u:"1f534"},{n:["large blue circle","large_blue_circle"],u:"1f535"}],flags:[{n:["chequered flag","checkered_flag"],u:"1f3c1"},{n:["triangular flag on post","triangular_flag_on_post"],u:"1f6a9"},{n:["crossed flags","crossed_flags"],u:"1f38c"},{n:["waving black flag","waving_black_flag"],u:"1f3f4"},{n:["waving_white_flag"],u:"1f3f3-fe0f"},{n:["rainbow-flag"],u:"1f3f3-fe0f-200d-1f308"},{n:["ascension island flag","flag-ac"],u:"1f1e6-1f1e8"},{n:["andorra flag","flag-ad"],u:"1f1e6-1f1e9"},{n:["united arab emirates flag","flag-ae"],u:"1f1e6-1f1ea"},{n:["afghanistan flag","flag-af"],u:"1f1e6-1f1eb"},{n:["antigua & barbuda flag","flag-ag"],u:"1f1e6-1f1ec"},{n:["anguilla flag","flag-ai"],u:"1f1e6-1f1ee"},{n:["albania flag","flag-al"],u:"1f1e6-1f1f1"},{n:["armenia flag","flag-am"],u:"1f1e6-1f1f2"},{n:["angola flag","flag-ao"],u:"1f1e6-1f1f4"},{n:["antarctica flag","flag-aq"],u:"1f1e6-1f1f6"},{n:["argentina flag","flag-ar"],u:"1f1e6-1f1f7"},{n:["american samoa flag","flag-as"],u:"1f1e6-1f1f8"},{n:["austria flag","flag-at"],u:"1f1e6-1f1f9"},{n:["australia flag","flag-au"],u:"1f1e6-1f1fa"},{n:["aruba flag","flag-aw"],u:"1f1e6-1f1fc"},{n:["åland islands flag","flag-ax"],u:"1f1e6-1f1fd"},{n:["azerbaijan flag","flag-az"],u:"1f1e6-1f1ff"},{n:["bosnia & herzegovina flag","flag-ba"],u:"1f1e7-1f1e6"},{n:["barbados flag","flag-bb"],u:"1f1e7-1f1e7"},{n:["bangladesh flag","flag-bd"],u:"1f1e7-1f1e9"},{n:["belgium flag","flag-be"],u:"1f1e7-1f1ea"},{n:["burkina faso flag","flag-bf"],u:"1f1e7-1f1eb"},{n:["bulgaria flag","flag-bg"],u:"1f1e7-1f1ec"},{n:["bahrain flag","flag-bh"],u:"1f1e7-1f1ed"},{n:["burundi flag","flag-bi"],u:"1f1e7-1f1ee"},{n:["benin flag","flag-bj"],u:"1f1e7-1f1ef"},{n:["st. barthélemy flag","flag-bl"],u:"1f1e7-1f1f1"},{n:["bermuda flag","flag-bm"],u:"1f1e7-1f1f2"},{n:["brunei flag","flag-bn"],u:"1f1e7-1f1f3"},{n:["bolivia flag","flag-bo"],u:"1f1e7-1f1f4"},{n:["caribbean netherlands flag","flag-bq"],u:"1f1e7-1f1f6"},{n:["brazil flag","flag-br"],u:"1f1e7-1f1f7"},{n:["bahamas flag","flag-bs"],u:"1f1e7-1f1f8"},{n:["bhutan flag","flag-bt"],u:"1f1e7-1f1f9"},{n:["bouvet island flag","flag-bv"],u:"1f1e7-1f1fb"},{n:["botswana flag","flag-bw"],u:"1f1e7-1f1fc"},{n:["belarus flag","flag-by"],u:"1f1e7-1f1fe"},{n:["belize flag","flag-bz"],u:"1f1e7-1f1ff"},{n:["canada flag","flag-ca"],u:"1f1e8-1f1e6"},{n:["cocos (keeling) islands flag","flag-cc"],u:"1f1e8-1f1e8"},{n:["congo - kinshasa flag","flag-cd"],u:"1f1e8-1f1e9"},{n:["central african republic flag","flag-cf"],u:"1f1e8-1f1eb"},{n:["congo - brazzaville flag","flag-cg"],u:"1f1e8-1f1ec"},{n:["switzerland flag","flag-ch"],u:"1f1e8-1f1ed"},{n:["côte d’ivoire flag","flag-ci"],u:"1f1e8-1f1ee"},{n:["cook islands flag","flag-ck"],u:"1f1e8-1f1f0"},{n:["chile flag","flag-cl"],u:"1f1e8-1f1f1"},{n:["cameroon flag","flag-cm"],u:"1f1e8-1f1f2"},{n:["china flag","cn","flag-cn"],u:"1f1e8-1f1f3"},{n:["colombia flag","flag-co"],u:"1f1e8-1f1f4"},{n:["clipperton island flag","flag-cp"],u:"1f1e8-1f1f5"},{n:["costa rica flag","flag-cr"],u:"1f1e8-1f1f7"},{n:["cuba flag","flag-cu"],u:"1f1e8-1f1fa"},{n:["cape verde flag","flag-cv"],u:"1f1e8-1f1fb"},{n:["curaçao flag","flag-cw"],u:"1f1e8-1f1fc"},{n:["christmas island flag","flag-cx"],u:"1f1e8-1f1fd"},{n:["cyprus flag","flag-cy"],u:"1f1e8-1f1fe"},{n:["czechia flag","flag-cz"],u:"1f1e8-1f1ff"},{n:["germany flag","de","flag-de"],u:"1f1e9-1f1ea"},{n:["diego garcia flag","flag-dg"],u:"1f1e9-1f1ec"},{n:["djibouti flag","flag-dj"],u:"1f1e9-1f1ef"},{n:["denmark flag","flag-dk"],u:"1f1e9-1f1f0"},{n:["dominica flag","flag-dm"],u:"1f1e9-1f1f2"},{n:["dominican republic flag","flag-do"],u:"1f1e9-1f1f4"},{n:["algeria flag","flag-dz"],u:"1f1e9-1f1ff"},{n:["ceuta & melilla flag","flag-ea"],u:"1f1ea-1f1e6"},{n:["ecuador flag","flag-ec"],u:"1f1ea-1f1e8"},{n:["estonia flag","flag-ee"],u:"1f1ea-1f1ea"},{n:["egypt flag","flag-eg"],u:"1f1ea-1f1ec"},{n:["western sahara flag","flag-eh"],u:"1f1ea-1f1ed"},{n:["eritrea flag","flag-er"],u:"1f1ea-1f1f7"},{n:["spain flag","es","flag-es"],u:"1f1ea-1f1f8"},{n:["ethiopia flag","flag-et"],u:"1f1ea-1f1f9"},{n:["european union flag","flag-eu"],u:"1f1ea-1f1fa"},{n:["finland flag","flag-fi"],u:"1f1eb-1f1ee"},{n:["fiji flag","flag-fj"],u:"1f1eb-1f1ef"},{n:["falkland islands flag","flag-fk"],u:"1f1eb-1f1f0"},{n:["micronesia flag","flag-fm"],u:"1f1eb-1f1f2"},{n:["faroe islands flag","flag-fo"],u:"1f1eb-1f1f4"},{n:["france flag","fr","flag-fr"],u:"1f1eb-1f1f7"},{n:["gabon flag","flag-ga"],u:"1f1ec-1f1e6"},{n:["united kingdom flag","gb","uk","flag-gb"],u:"1f1ec-1f1e7"},{n:["grenada flag","flag-gd"],u:"1f1ec-1f1e9"},{n:["georgia flag","flag-ge"],u:"1f1ec-1f1ea"},{n:["french guiana flag","flag-gf"],u:"1f1ec-1f1eb"},{n:["guernsey flag","flag-gg"],u:"1f1ec-1f1ec"},{n:["ghana flag","flag-gh"],u:"1f1ec-1f1ed"},{n:["gibraltar flag","flag-gi"],u:"1f1ec-1f1ee"},{n:["greenland flag","flag-gl"],u:"1f1ec-1f1f1"},{n:["gambia flag","flag-gm"],u:"1f1ec-1f1f2"},{n:["guinea flag","flag-gn"],u:"1f1ec-1f1f3"},{n:["guadeloupe flag","flag-gp"],u:"1f1ec-1f1f5"},{n:["equatorial guinea flag","flag-gq"],u:"1f1ec-1f1f6"},{n:["greece flag","flag-gr"],u:"1f1ec-1f1f7"},{n:["south georgia & south sandwich islands flag","flag-gs"],u:"1f1ec-1f1f8"},{n:["guatemala flag","flag-gt"],u:"1f1ec-1f1f9"},{n:["guam flag","flag-gu"],u:"1f1ec-1f1fa"},{n:["guinea-bissau flag","flag-gw"],u:"1f1ec-1f1fc"},{n:["guyana flag","flag-gy"],u:"1f1ec-1f1fe"},{n:["hong kong sar china flag","flag-hk"],u:"1f1ed-1f1f0"},{n:["heard & mcdonald islands flag","flag-hm"],u:"1f1ed-1f1f2"},{n:["honduras flag","flag-hn"],u:"1f1ed-1f1f3"},{n:["croatia flag","flag-hr"],u:"1f1ed-1f1f7"},{n:["haiti flag","flag-ht"],u:"1f1ed-1f1f9"},{n:["hungary flag","flag-hu"],u:"1f1ed-1f1fa"},{n:["canary islands flag","flag-ic"],u:"1f1ee-1f1e8"},{n:["indonesia flag","flag-id"],u:"1f1ee-1f1e9"},{n:["ireland flag","flag-ie"],u:"1f1ee-1f1ea"},{n:["israel flag","flag-il"],u:"1f1ee-1f1f1"},{n:["isle of man flag","flag-im"],u:"1f1ee-1f1f2"},{n:["india flag","flag-in"],u:"1f1ee-1f1f3"},{n:["british indian ocean territory flag","flag-io"],u:"1f1ee-1f1f4"},{n:["iraq flag","flag-iq"],u:"1f1ee-1f1f6"},{n:["iran flag","flag-ir"],u:"1f1ee-1f1f7"},{n:["iceland flag","flag-is"],u:"1f1ee-1f1f8"},{n:["italy flag","it","flag-it"],u:"1f1ee-1f1f9"},{n:["jersey flag","flag-je"],u:"1f1ef-1f1ea"},{n:["jamaica flag","flag-jm"],u:"1f1ef-1f1f2"},{n:["jordan flag","flag-jo"],u:"1f1ef-1f1f4"},{n:["japan flag","jp","flag-jp"],u:"1f1ef-1f1f5"},{n:["kenya flag","flag-ke"],u:"1f1f0-1f1ea"},{n:["kyrgyzstan flag","flag-kg"],u:"1f1f0-1f1ec"},{n:["cambodia flag","flag-kh"],u:"1f1f0-1f1ed"},{n:["kiribati flag","flag-ki"],u:"1f1f0-1f1ee"},{n:["comoros flag","flag-km"],u:"1f1f0-1f1f2"},{n:["st. kitts & nevis flag","flag-kn"],u:"1f1f0-1f1f3"},{n:["north korea flag","flag-kp"],u:"1f1f0-1f1f5"},{n:["south korea flag","kr","flag-kr"],u:"1f1f0-1f1f7"},{n:["kuwait flag","flag-kw"],u:"1f1f0-1f1fc"},{n:["cayman islands flag","flag-ky"],u:"1f1f0-1f1fe"},{n:["kazakhstan flag","flag-kz"],u:"1f1f0-1f1ff"},{n:["laos flag","flag-la"],u:"1f1f1-1f1e6"},{n:["lebanon flag","flag-lb"],u:"1f1f1-1f1e7"},{n:["st. lucia flag","flag-lc"],u:"1f1f1-1f1e8"},{n:["liechtenstein flag","flag-li"],u:"1f1f1-1f1ee"},{n:["sri lanka flag","flag-lk"],u:"1f1f1-1f1f0"},{n:["liberia flag","flag-lr"],u:"1f1f1-1f1f7"},{n:["lesotho flag","flag-ls"],u:"1f1f1-1f1f8"},{n:["lithuania flag","flag-lt"],u:"1f1f1-1f1f9"},{n:["luxembourg flag","flag-lu"],u:"1f1f1-1f1fa"},{n:["latvia flag","flag-lv"],u:"1f1f1-1f1fb"},{n:["libya flag","flag-ly"],u:"1f1f1-1f1fe"},{n:["morocco flag","flag-ma"],u:"1f1f2-1f1e6"},{n:["monaco flag","flag-mc"],u:"1f1f2-1f1e8"},{n:["moldova flag","flag-md"],u:"1f1f2-1f1e9"},{n:["montenegro flag","flag-me"],u:"1f1f2-1f1ea"},{n:["st. martin flag","flag-mf"],u:"1f1f2-1f1eb"},{n:["madagascar flag","flag-mg"],u:"1f1f2-1f1ec"},{n:["marshall islands flag","flag-mh"],u:"1f1f2-1f1ed"},{n:["macedonia flag","flag-mk"],u:"1f1f2-1f1f0"},{n:["mali flag","flag-ml"],u:"1f1f2-1f1f1"},{n:["myanmar (burma) flag","flag-mm"],u:"1f1f2-1f1f2"},{n:["mongolia flag","flag-mn"],u:"1f1f2-1f1f3"},{n:["macau sar china flag","flag-mo"],u:"1f1f2-1f1f4"},{n:["northern mariana islands flag","flag-mp"],u:"1f1f2-1f1f5"},{n:["martinique flag","flag-mq"],u:"1f1f2-1f1f6"},{n:["mauritania flag","flag-mr"],u:"1f1f2-1f1f7"},{n:["montserrat flag","flag-ms"],u:"1f1f2-1f1f8"},{n:["malta flag","flag-mt"],u:"1f1f2-1f1f9"},{n:["mauritius flag","flag-mu"],u:"1f1f2-1f1fa"},{n:["maldives flag","flag-mv"],u:"1f1f2-1f1fb"},{n:["malawi flag","flag-mw"],u:"1f1f2-1f1fc"},{n:["mexico flag","flag-mx"],u:"1f1f2-1f1fd"},{n:["malaysia flag","flag-my"],u:"1f1f2-1f1fe"},{n:["mozambique flag","flag-mz"],u:"1f1f2-1f1ff"},{n:["namibia flag","flag-na"],u:"1f1f3-1f1e6"},{n:["new caledonia flag","flag-nc"],u:"1f1f3-1f1e8"},{n:["niger flag","flag-ne"],u:"1f1f3-1f1ea"},{n:["norfolk island flag","flag-nf"],u:"1f1f3-1f1eb"},{n:["nigeria flag","flag-ng"],u:"1f1f3-1f1ec"},{n:["nicaragua flag","flag-ni"],u:"1f1f3-1f1ee"},{n:["netherlands flag","flag-nl"],u:"1f1f3-1f1f1"},{n:["norway flag","flag-no"],u:"1f1f3-1f1f4"},{n:["nepal flag","flag-np"],u:"1f1f3-1f1f5"},{n:["nauru flag","flag-nr"],u:"1f1f3-1f1f7"},{n:["niue flag","flag-nu"],u:"1f1f3-1f1fa"},{n:["new zealand flag","flag-nz"],u:"1f1f3-1f1ff"},{n:["oman flag","flag-om"],u:"1f1f4-1f1f2"},{n:["panama flag","flag-pa"],u:"1f1f5-1f1e6"},{n:["peru flag","flag-pe"],u:"1f1f5-1f1ea"},{n:["french polynesia flag","flag-pf"],u:"1f1f5-1f1eb"},{n:["papua new guinea flag","flag-pg"],u:"1f1f5-1f1ec"},{n:["philippines flag","flag-ph"],u:"1f1f5-1f1ed"},{n:["pakistan flag","flag-pk"],u:"1f1f5-1f1f0"},{n:["poland flag","flag-pl"],u:"1f1f5-1f1f1"},{n:["st. pierre & miquelon flag","flag-pm"],u:"1f1f5-1f1f2"},{n:["pitcairn islands flag","flag-pn"],u:"1f1f5-1f1f3"},{n:["puerto rico flag","flag-pr"],u:"1f1f5-1f1f7"},{n:["palestinian territories flag","flag-ps"],u:"1f1f5-1f1f8"},{n:["portugal flag","flag-pt"],u:"1f1f5-1f1f9"},{n:["palau flag","flag-pw"],u:"1f1f5-1f1fc"},{n:["paraguay flag","flag-py"],u:"1f1f5-1f1fe"},{n:["qatar flag","flag-qa"],u:"1f1f6-1f1e6"},{n:["réunion flag","flag-re"],u:"1f1f7-1f1ea"},{n:["romania flag","flag-ro"],u:"1f1f7-1f1f4"},{n:["serbia flag","flag-rs"],u:"1f1f7-1f1f8"},{n:["russia flag","ru","flag-ru"],u:"1f1f7-1f1fa"},{n:["rwanda flag","flag-rw"],u:"1f1f7-1f1fc"},{n:["saudi arabia flag","flag-sa"],u:"1f1f8-1f1e6"},{n:["solomon islands flag","flag-sb"],u:"1f1f8-1f1e7"},{n:["seychelles flag","flag-sc"],u:"1f1f8-1f1e8"},{n:["sudan flag","flag-sd"],u:"1f1f8-1f1e9"},{n:["sweden flag","flag-se"],u:"1f1f8-1f1ea"},{n:["singapore flag","flag-sg"],u:"1f1f8-1f1ec"},{n:["st. helena flag","flag-sh"],u:"1f1f8-1f1ed"},{n:["slovenia flag","flag-si"],u:"1f1f8-1f1ee"},{n:["svalbard & jan mayen flag","flag-sj"],u:"1f1f8-1f1ef"},{n:["slovakia flag","flag-sk"],u:"1f1f8-1f1f0"},{n:["sierra leone flag","flag-sl"],u:"1f1f8-1f1f1"},{n:["san marino flag","flag-sm"],u:"1f1f8-1f1f2"},{n:["senegal flag","flag-sn"],u:"1f1f8-1f1f3"},{n:["somalia flag","flag-so"],u:"1f1f8-1f1f4"},{n:["suriname flag","flag-sr"],u:"1f1f8-1f1f7"},{n:["south sudan flag","flag-ss"],u:"1f1f8-1f1f8"},{n:["são tomé & príncipe flag","flag-st"],u:"1f1f8-1f1f9"},{n:["el salvador flag","flag-sv"],u:"1f1f8-1f1fb"},{n:["sint maarten flag","flag-sx"],u:"1f1f8-1f1fd"},{n:["syria flag","flag-sy"],u:"1f1f8-1f1fe"},{n:["swaziland flag","flag-sz"],u:"1f1f8-1f1ff"},{n:["tristan da cunha flag","flag-ta"],u:"1f1f9-1f1e6"},{n:["turks & caicos islands flag","flag-tc"],u:"1f1f9-1f1e8"},{n:["chad flag","flag-td"],u:"1f1f9-1f1e9"},{n:["french southern territories flag","flag-tf"],u:"1f1f9-1f1eb"},{n:["togo flag","flag-tg"],u:"1f1f9-1f1ec"},{n:["thailand flag","flag-th"],u:"1f1f9-1f1ed"},{n:["tajikistan flag","flag-tj"],u:"1f1f9-1f1ef"},{n:["tokelau flag","flag-tk"],u:"1f1f9-1f1f0"},{n:["timor-leste flag","flag-tl"],u:"1f1f9-1f1f1"},{n:["turkmenistan flag","flag-tm"],u:"1f1f9-1f1f2"},{n:["tunisia flag","flag-tn"],u:"1f1f9-1f1f3"},{n:["tonga flag","flag-to"],u:"1f1f9-1f1f4"},{n:["turkey flag","flag-tr"],u:"1f1f9-1f1f7"},{n:["trinidad & tobago flag","flag-tt"],u:"1f1f9-1f1f9"},{n:["tuvalu flag","flag-tv"],u:"1f1f9-1f1fb"},{n:["taiwan flag","flag-tw"],u:"1f1f9-1f1fc"},{n:["tanzania flag","flag-tz"],u:"1f1f9-1f1ff"},{n:["ukraine flag","flag-ua"],u:"1f1fa-1f1e6"},{n:["uganda flag","flag-ug"],u:"1f1fa-1f1ec"},{n:["u.s. outlying islands flag","flag-um"],u:"1f1fa-1f1f2"},{n:["united nations flag","flag-un"],u:"1f1fa-1f1f3"},{n:["united states flag","us","flag-us"],u:"1f1fa-1f1f8"},{n:["uruguay flag","flag-uy"],u:"1f1fa-1f1fe"},{n:["uzbekistan flag","flag-uz"],u:"1f1fa-1f1ff"},{n:["vatican city flag","flag-va"],u:"1f1fb-1f1e6"},{n:["st. vincent & grenadines flag","flag-vc"],u:"1f1fb-1f1e8"},{n:["venezuela flag","flag-ve"],u:"1f1fb-1f1ea"},{n:["british virgin islands flag","flag-vg"],u:"1f1fb-1f1ec"},{n:["u.s. virgin islands flag","flag-vi"],u:"1f1fb-1f1ee"},{n:["vietnam flag","flag-vn"],u:"1f1fb-1f1f3"},{n:["vanuatu flag","flag-vu"],u:"1f1fb-1f1fa"},{n:["wallis & futuna flag","flag-wf"],u:"1f1fc-1f1eb"},{n:["samoa flag","flag-ws"],u:"1f1fc-1f1f8"},{n:["kosovo flag","flag-xk"],u:"1f1fd-1f1f0"},{n:["yemen flag","flag-ye"],u:"1f1fe-1f1ea"},{n:["mayotte flag","flag-yt"],u:"1f1fe-1f1f9"},{n:["south africa flag","flag-za"],u:"1f1ff-1f1e6"},{n:["zambia flag","flag-zm"],u:"1f1ff-1f1f2"},{n:["zimbabwe flag","flag-zw"],u:"1f1ff-1f1fc"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}]},qk=[{key:"recent",title:"Recently Used",u:"1f551"},{key:"smileys_people",title:"Smiles & People",u:"1f600"},{key:"animals_nature",title:"Animals & Nature",u:"1F431"},{key:"food_drink",title:"Food & Drink",u:"2615"},{key:"activities",title:"Activities",u:"26BD"},{key:"travel_places",title:"Travel & Places",u:"1F697"},{key:"objects",title:"Objects",u:"1F4A1"},{key:"symbols",title:"Symbols",u:"1f4af"},{key:"flags",title:"Flags",u:"1f3f3-fe0f"}];const AJ=(e,t)=>t.some(n=>e instanceof n);let Gk,Hk;function CJ(){return Gk||(Gk=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function RJ(){return Hk||(Hk=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const zk=new WeakMap,Fv=new WeakMap,Yk=new WeakMap,Vv=new WeakMap,qv=new WeakMap;function MJ(e){const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("success",r),e.removeEventListener("error",s)},r=()=>{n(Qo(e.result)),o()},s=()=>{i(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&zk.set(n,e)}).catch(()=>{}),qv.set(t,e),t}function OJ(e){if(Fv.has(e))return;const t=new Promise((n,i)=>{const o=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",s),e.removeEventListener("abort",s)},r=()=>{n(),o()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",r),e.addEventListener("error",s),e.addEventListener("abort",s)});Fv.set(e,t)}let Gv={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Fv.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Yk.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Qo(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function wJ(e){Gv=e(Gv)}function NJ(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(Hv(this),t,...n);return Yk.set(i,t.sort?t.sort():[t]),Qo(i)}:RJ().includes(e)?function(...t){return e.apply(Hv(this),t),Qo(zk.get(this))}:function(...t){return Qo(e.apply(Hv(this),t))}}function xJ(e){return typeof e=="function"?NJ(e):(e instanceof IDBTransaction&&OJ(e),AJ(e,CJ())?new Proxy(e,Gv):e)}function Qo(e){if(e instanceof IDBRequest)return MJ(e);if(Vv.has(e))return Vv.get(e);const t=xJ(e);return t!==e&&(Vv.set(e,t),qv.set(t,e)),t}const Hv=e=>qv.get(e);function zv(e,t,{blocked:n,upgrade:i,blocking:o,terminated:r}={}){const s=indexedDB.open(e,t),l=Qo(s);return i&&s.addEventListener("upgradeneeded",u=>{i(Qo(s.result),u.oldVersion,u.newVersion,Qo(s.transaction),u)}),n&&s.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),l.then(u=>{r&&u.addEventListener("close",()=>r()),o&&u.addEventListener("versionchange",d=>o(d.oldVersion,d.newVersion,d))}).catch(()=>{}),l}const PJ=["get","getKey","getAll","getAllKeys","count"],DJ=["put","add","delete","clear"],Yv=new Map;function Wk(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Yv.get(t))return Yv.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,o=DJ.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(o||PJ.includes(n)))return;const r=async function(s,...l){const u=this.transaction(s,o?"readwrite":"readonly");let d=u.store;return i&&(d=d.index(l.shift())),(await Promise.all([d[n](...l),o&&u.done]))[0]};return Yv.set(t,r),r}wJ(e=>({...e,get:(t,n,i)=>Wk(t,n)||e.get(t,n,i),has:(t,n)=>!!Wk(t,n)||e.has(t,n)}));const Wv="EMJ",Vs="emojis",$v=3;async function kJ(){(await zv(Wv,$v,{upgrade(t,n){t.objectStoreNames.contains(Vs)||t.createObjectStore(Vs,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}kJ();const LJ={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function UJ(){return await(await zv(Wv,$v)).transaction(Vs,"readonly").objectStore(Vs).getAll()}function BJ(){const e=f.reactive({search:"",emoji:EJ,activeGroup:"",skinTone:uc,options:LJ,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...IJ}},get disabled(){let a=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(a=["recent",...a]),a},get groups(){return qk.filter(a=>!this.disabled.includes(a.key))},get orderedGroupKeys(){const a=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...qk.map(p=>p.key)];return[...new Set(a)].filter(p=>!this.disabled.includes(p))}});function t(){e.options.displayRecent&&i()}async function n(){var a;let p=await UJ();return Array.isArray(p)&&p.length?p=JSON.parse(((a=p[0])==null?void 0:a.value)||""):p=[],p}function i(){n().then(a=>{e.recent=a,d()})}const o=a=>{e.search=a},r=a=>{e.emoji=a},s=a=>{e.activeGroup=a},l=(a=uc)=>{e.skinTone=a},u=a=>{e.options=Object.assign({},e.options,a),t()};async function d(){(await zv(Wv,$v)).transaction(Vs,"readwrite").objectStore(Vs).put({id:0,value:JSON.stringify(e.recent)})}const c=a=>{if(e.options.displayRecent!==!0)return;const p=e.recent.findIndex(_=>_.u===a.u);if(p>0&&e.recent.splice(p,1),p===0)return;const v={u:a.u,n:f.toRaw(a.n)};e.recent=[v,...e.recent],e.recent.length>24&&(e.recent.length=24),d()};return{state:f.readonly(e),updateSearch:o,updateEmoji:r,updateActiveGroup:s,updateSkinTone:l,updateOptions:u,updateSelect:c}}var di="top",Ri="bottom",Mi="right",ci="left",Kv="auto",Vl=[di,Ri,Mi,ci],qs="start",ql="end",jJ="clippingParents",$k="viewport",Gl="popper",FJ="reference",Kk=Vl.reduce(function(e,t){return e.concat([t+"-"+qs,t+"-"+ql])},[]),Qk=[].concat(Vl,[Kv]).reduce(function(e,t){return e.concat([t,t+"-"+qs,t+"-"+ql])},[]),VJ="beforeRead",qJ="read",GJ="afterRead",HJ="beforeMain",zJ="main",YJ="afterMain",WJ="beforeWrite",$J="write",KJ="afterWrite",QJ=[VJ,qJ,GJ,HJ,zJ,YJ,WJ,$J,KJ];function Zi(e){return e?(e.nodeName||"").toLowerCase():null}function Li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gs(e){var t=Li(e).Element;return e instanceof t||e instanceof Element}function Oi(e){var t=Li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jk(e){if(typeof ShadowRoot>"u")return!1;var t=Li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JJ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},r=t.elements[n];!Oi(r)||!Zi(r)||(Object.assign(r.style,i),Object.keys(o).forEach(function(s){var l=o[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function XJ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],r=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=s.reduce(function(u,d){return u[d]="",u},{});!Oi(o)||!Zi(o)||(Object.assign(o.style,l),Object.keys(r).forEach(function(u){o.removeAttribute(u)}))})}}var ZJ={name:"applyStyles",enabled:!0,phase:"write",fn:JJ,effect:XJ,requires:["computeStyles"]};function eo(e){return e.split("-")[0]}var xr=Math.max,dc=Math.min,Hs=Math.round;function zs(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),i=1,o=1;if(Oi(e)&&t){var r=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Hs(n.width)/s||1),r>0&&(o=Hs(n.height)/r||1)}return{width:n.width/i,height:n.height/o,top:n.top/o,right:n.right/i,bottom:n.bottom/o,left:n.left/i,x:n.left/i,y:n.top/o}}function Qv(e){var t=zs(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Xk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jk(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function to(e){return Li(e).getComputedStyle(e)}function eX(e){return["table","td","th"].indexOf(Zi(e))>=0}function Jo(e){return((Gs(e)?e.ownerDocument:e.document)||window.document).documentElement}function cc(e){return Zi(e)==="html"?e:e.assignedSlot||e.parentNode||(Jk(e)?e.host:null)||Jo(e)}function Zk(e){return!Oi(e)||to(e).position==="fixed"?null:e.offsetParent}function tX(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Oi(e)){var i=to(e);if(i.position==="fixed")return null}for(var o=cc(e);Oi(o)&&["html","body"].indexOf(Zi(o))<0;){var r=to(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Hl(e){for(var t=Li(e),n=Zk(e);n&&eX(n)&&to(n).position==="static";)n=Zk(n);return n&&(Zi(n)==="html"||Zi(n)==="body"&&to(n).position==="static")?t:n||tX(e)||t}function Jv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zl(e,t,n){return xr(e,dc(t,n))}function nX(e,t,n){var i=zl(e,t,n);return i>n?n:i}function e2(){return{top:0,right:0,bottom:0,left:0}}function t2(e){return Object.assign({},e2(),e)}function n2(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var iX=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,t2(typeof t!="number"?t:n2(t,Vl))};function oX(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,l=eo(n.placement),u=Jv(l),d=[ci,Mi].indexOf(l)>=0,c=d?"height":"width";if(!(!r||!s)){var a=iX(o.padding,n),p=Qv(r),v=u==="y"?di:ci,_=u==="y"?Ri:Mi,m=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],h=s[u]-n.rects.reference[u],E=Hl(r),g=E?u==="y"?E.clientHeight||0:E.clientWidth||0:0,y=m/2-h/2,b=a[v],T=g-p[c]-a[_],S=g/2-p[c]/2+y,I=zl(b,S,T),A=u;n.modifiersData[i]=(t={},t[A]=I,t.centerOffset=I-S,t)}}function rX(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Xk(t.elements.popper,o)&&(t.elements.arrow=o))}var sX={name:"arrow",enabled:!0,phase:"main",fn:oX,effect:rX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ys(e){return e.split("-")[1]}var lX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uX(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:Hs(t*o)/o||0,y:Hs(n*o)/o||0}}function i2(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,a=e.isFixed,p=c===!0?uX(s):typeof c=="function"?c(s):s,v=p.x,_=v===void 0?0:v,m=p.y,h=m===void 0?0:m,E=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),y=ci,b=di,T=window;if(d){var S=Hl(n),I="clientHeight",A="clientWidth";if(S===Li(n)&&(S=Jo(n),to(S).position!=="static"&&l==="absolute"&&(I="scrollHeight",A="scrollWidth")),S=S,o===di||(o===ci||o===Mi)&&r===ql){b=Ri;var R=a&&T.visualViewport?T.visualViewport.height:S[I];h-=R-i.height,h*=u?1:-1}if(o===ci||(o===di||o===Ri)&&r===ql){y=Mi;var M=a&&T.visualViewport?T.visualViewport.width:S[A];_-=M-i.width,_*=u?1:-1}}var x=Object.assign({position:l},d&&lX);if(u){var w;return Object.assign({},x,(w={},w[b]=g?"0":"",w[y]=E?"0":"",w.transform=(T.devicePixelRatio||1)<=1?"translate("+_+"px, "+h+"px)":"translate3d("+_+"px, "+h+"px, 0)",w))}return Object.assign({},x,(t={},t[b]=g?h+"px":"",t[y]=E?_+"px":"",t.transform="",t))}function dX(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,r=n.adaptive,s=r===void 0?!0:r,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:eo(t.placement),variation:Ys(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i2(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i2(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var cX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dX,data:{}},ac={passive:!0};function aX(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=o===void 0?!0:o,s=i.resize,l=s===void 0?!0:s,u=Li(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",n.update,ac)}),l&&u.addEventListener("resize",n.update,ac),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",n.update,ac)}),l&&u.removeEventListener("resize",n.update,ac)}}var fX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aX,data:{}},pX={left:"right",right:"left",bottom:"top",top:"bottom"};function fc(e){return e.replace(/left|right|bottom|top/g,function(t){return pX[t]})}var _X={start:"end",end:"start"};function o2(e){return e.replace(/start|end/g,function(t){return _X[t]})}function Xv(e){var t=Li(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Zv(e){return zs(Jo(e)).left+Xv(e).scrollLeft}function vX(e){var t=Li(e),n=Jo(e),i=t.visualViewport,o=n.clientWidth,r=n.clientHeight,s=0,l=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:o,height:r,x:s+Zv(e),y:l}}function mX(e){var t,n=Jo(e),i=Xv(e),o=(t=e.ownerDocument)==null?void 0:t.body,r=xr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=xr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+Zv(e),u=-i.scrollTop;return to(o||n).direction==="rtl"&&(l+=xr(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:l,y:u}}function em(e){var t=to(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function r2(e){return["html","body","#document"].indexOf(Zi(e))>=0?e.ownerDocument.body:Oi(e)&&em(e)?e:r2(cc(e))}function Yl(e,t){var n;t===void 0&&(t=[]);var i=r2(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),r=Li(i),s=o?[r].concat(r.visualViewport||[],em(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(Yl(cc(s)))}function tm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hX(e){var t=zs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function s2(e,t){return t===$k?tm(vX(e)):Gs(t)?hX(t):tm(mX(Jo(e)))}function yX(e){var t=Yl(cc(e)),n=["absolute","fixed"].indexOf(to(e).position)>=0,i=n&&Oi(e)?Hl(e):e;return Gs(i)?t.filter(function(o){return Gs(o)&&Xk(o,i)&&Zi(o)!=="body"&&(n?to(o).position!=="static":!0)}):[]}function gX(e,t,n){var i=t==="clippingParents"?yX(e):[].concat(t),o=[].concat(i,[n]),r=o[0],s=o.reduce(function(l,u){var d=s2(e,u);return l.top=xr(d.top,l.top),l.right=dc(d.right,l.right),l.bottom=dc(d.bottom,l.bottom),l.left=xr(d.left,l.left),l},s2(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function l2(e){var t=e.reference,n=e.element,i=e.placement,o=i?eo(i):null,r=i?Ys(i):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case di:u={x:s,y:t.y-n.height};break;case Ri:u={x:s,y:t.y+t.height};break;case Mi:u={x:t.x+t.width,y:l};break;case ci:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?Jv(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case qs:u[d]=u[d]-(t[c]/2-n[c]/2);break;case ql:u[d]=u[d]+(t[c]/2-n[c]/2);break}}return u}function Wl(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,r=n.boundary,s=r===void 0?jJ:r,l=n.rootBoundary,u=l===void 0?$k:l,d=n.elementContext,c=d===void 0?Gl:d,a=n.altBoundary,p=a===void 0?!1:a,v=n.padding,_=v===void 0?0:v,m=t2(typeof _!="number"?_:n2(_,Vl)),h=c===Gl?FJ:Gl,E=e.rects.popper,g=e.elements[p?h:c],y=gX(Gs(g)?g:g.contextElement||Jo(e.elements.popper),s,u),b=zs(e.elements.reference),T=l2({reference:b,element:E,strategy:"absolute",placement:o}),S=tm(Object.assign({},E,T)),I=c===Gl?S:b,A={top:y.top-I.top+m.top,bottom:I.bottom-y.bottom+m.bottom,left:y.left-I.left+m.left,right:I.right-y.right+m.right},R=e.modifiersData.offset;if(c===Gl&&R){var M=R[o];Object.keys(A).forEach(function(x){var w=[Mi,Ri].indexOf(x)>=0?1:-1,U=[di,Ri].indexOf(x)>=0?"y":"x";A[x]+=M[U]*w})}return A}function EX(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?Qk:u,c=Ys(i),a=c?l?Kk:Kk.filter(function(_){return Ys(_)===c}):Vl,p=a.filter(function(_){return d.indexOf(_)>=0});p.length===0&&(p=a);var v=p.reduce(function(_,m){return _[m]=Wl(e,{placement:m,boundary:o,rootBoundary:r,padding:s})[eo(m)],_},{});return Object.keys(v).sort(function(_,m){return v[_]-v[m]})}function TX(e){if(eo(e)===Kv)return[];var t=fc(e);return[o2(e),t,o2(t)]}function bX(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,c=n.boundary,a=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,_=v===void 0?!0:v,m=n.allowedAutoPlacements,h=t.options.placement,E=eo(h),g=E===h,y=u||(g||!_?[fc(h)]:TX(h)),b=[h].concat(y).reduce(function(te,V){return te.concat(eo(V)===Kv?EX(t,{placement:V,boundary:c,rootBoundary:a,padding:d,flipVariations:_,allowedAutoPlacements:m}):V)},[]),T=t.rects.reference,S=t.rects.popper,I=new Map,A=!0,R=b[0],M=0;M<b.length;M++){var x=b[M],w=eo(x),U=Ys(x)===qs,L=[di,Ri].indexOf(w)>=0,N=L?"width":"height",B=Wl(t,{placement:x,boundary:c,rootBoundary:a,altBoundary:p,padding:d}),F=L?U?Mi:ci:U?Ri:di;T[N]>S[N]&&(F=fc(F));var k=fc(F),$=[];if(r&&$.push(B[w]<=0),l&&$.push(B[F]<=0,B[k]<=0),$.every(function(te){return te})){R=x,A=!1;break}I.set(x,$)}if(A)for(var q=_?3:1,H=function(V){var le=b.find(function(K){var G=I.get(K);if(G)return G.slice(0,V).every(function(oe){return oe})});if(le)return R=le,"break"},j=q;j>0;j--){var W=H(j);if(W==="break")break}t.placement!==R&&(t.modifiersData[i]._skip=!0,t.placement=R,t.reset=!0)}}var SX={name:"flip",enabled:!0,phase:"main",fn:bX,requiresIfExists:["offset"],data:{_skip:!1}};function u2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function d2(e){return[di,Mi,Ri,ci].some(function(t){return e[t]>=0})}function IX(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=Wl(t,{elementContext:"reference"}),l=Wl(t,{altBoundary:!0}),u=u2(s,i),d=u2(l,o,r),c=d2(u),a=d2(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:a},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":a})}var AX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:IX};function CX(e,t,n){var i=eo(e),o=[ci,di].indexOf(i)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=r[0],l=r[1];return s=s||0,l=(l||0)*o,[ci,Mi].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function RX(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=o===void 0?[0,0]:o,s=Qk.reduce(function(c,a){return c[a]=CX(a,t.rects,r),c},{}),l=s[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}var MX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RX};function OX(e){var t=e.state,n=e.name;t.modifiersData[n]=l2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var wX={name:"popperOffsets",enabled:!0,phase:"read",fn:OX,data:{}};function NX(e){return e==="x"?"y":"x"}function xX(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,d=n.rootBoundary,c=n.altBoundary,a=n.padding,p=n.tether,v=p===void 0?!0:p,_=n.tetherOffset,m=_===void 0?0:_,h=Wl(t,{boundary:u,rootBoundary:d,padding:a,altBoundary:c}),E=eo(t.placement),g=Ys(t.placement),y=!g,b=Jv(E),T=NX(b),S=t.modifiersData.popperOffsets,I=t.rects.reference,A=t.rects.popper,R=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,w={x:0,y:0};if(S){if(r){var U,L=b==="y"?di:ci,N=b==="y"?Ri:Mi,B=b==="y"?"height":"width",F=S[b],k=F+h[L],$=F-h[N],q=v?-A[B]/2:0,H=g===qs?I[B]:A[B],j=g===qs?-A[B]:-I[B],W=t.elements.arrow,te=v&&W?Qv(W):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:e2(),le=V[L],K=V[N],G=zl(0,I[B],te[B]),oe=y?I[B]/2-q-G-le-M.mainAxis:H-G-le-M.mainAxis,Q=y?-I[B]/2+q+G+K+M.mainAxis:j+G+K+M.mainAxis,Z=t.elements.arrow&&Hl(t.elements.arrow),re=Z?b==="y"?Z.clientTop||0:Z.clientLeft||0:0,me=(U=x==null?void 0:x[b])!=null?U:0,ve=F+oe-me-re,J=F+Q-me,ie=zl(v?dc(k,ve):k,F,v?xr($,J):$);S[b]=ie,w[b]=ie-F}if(l){var ne,fe=b==="x"?di:ci,he=b==="x"?Ri:Mi,ge=S[T],ue=T==="y"?"height":"width",Ee=ge+h[fe],be=ge-h[he],ye=[di,ci].indexOf(E)!==-1,xe=(ne=x==null?void 0:x[T])!=null?ne:0,C=ye?Ee:ge-I[ue]-A[ue]-xe+M.altAxis,O=ye?ge+I[ue]+A[ue]-xe-M.altAxis:be,P=v&&ye?nX(C,ge,O):zl(v?C:Ee,ge,v?O:be);S[T]=P,w[T]=P-ge}t.modifiersData[i]=w}}var PX={name:"preventOverflow",enabled:!0,phase:"main",fn:xX,requiresIfExists:["offset"]};function DX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kX(e){return e===Li(e)||!Oi(e)?Xv(e):DX(e)}function LX(e){var t=e.getBoundingClientRect(),n=Hs(t.width)/e.offsetWidth||1,i=Hs(t.height)/e.offsetHeight||1;return n!==1||i!==1}function UX(e,t,n){n===void 0&&(n=!1);var i=Oi(t),o=Oi(t)&&LX(t),r=Jo(t),s=zs(e,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Zi(t)!=="body"||em(r))&&(l=kX(t)),Oi(t)?(u=zs(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=Zv(r))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function BX(e){var t=new Map,n=new Set,i=[];e.forEach(function(r){t.set(r.name,r)});function o(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),i.push(r)}return e.forEach(function(r){n.has(r.name)||o(r)}),i}function jX(e){var t=BX(e);return QJ.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function FX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function VX(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var c2={placement:"bottom",modifiers:[],strategy:"absolute"};function a2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function qX(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,r=o===void 0?c2:o;return function(l,u,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},c2,r),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},a=[],p=!1,v={state:c,setOptions:function(E){var g=typeof E=="function"?E(c.options):E;m(),c.options=Object.assign({},r,c.options,g),c.scrollParents={reference:Gs(l)?Yl(l):l.contextElement?Yl(l.contextElement):[],popper:Yl(u)};var y=jX(VX([].concat(i,c.options.modifiers)));return c.orderedModifiers=y.filter(function(b){return b.enabled}),_(),v.update()},forceUpdate:function(){if(!p){var E=c.elements,g=E.reference,y=E.popper;if(a2(g,y)){c.rects={reference:UX(g,Hl(y),c.options.strategy==="fixed"),popper:Qv(y)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var T=c.orderedModifiers[b],S=T.fn,I=T.options,A=I===void 0?{}:I,R=T.name;typeof S=="function"&&(c=S({state:c,options:A,name:R,instance:v})||c)}}}},update:FX(function(){return new Promise(function(h){v.forceUpdate(),h(c)})}),destroy:function(){m(),p=!0}};if(!a2(l,u))return v;v.setOptions(d).then(function(h){!p&&d.onFirstUpdate&&d.onFirstUpdate(h)});function _(){c.orderedModifiers.forEach(function(h){var E=h.name,g=h.options,y=g===void 0?{}:g,b=h.effect;if(typeof b=="function"){var T=b({state:c,name:E,instance:v,options:y}),S=function(){};a.push(T||S)}})}function m(){a.forEach(function(h){return h()}),a=[]}return v}}var GX=[fX,wX,cX,ZJ,MX,SX,PX,sX,AX],HX=qX({defaultModifiers:GX}),f2="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function pc(e){return e.split("-").map(t=>parseInt(t,16)).map(t=>String.fromCodePoint(t)).join("")}function zX(e,t,n,i=[]){const o={};return Object.keys(e).forEach(r=>{if(i.includes(r))return;const s=[];e[r].forEach(l=>{var u;if(l[sc][0].includes(t.toLocaleLowerCase())){let d=l[Vk];if(n!==uc&&Array.isArray(l[lc])){const c=((u=l[lc])==null?void 0:u.findIndex(a=>a.includes(n)))||-1;c!==-1&&l[lc]&&(d=l[lc][c])}return s.push({...l,[Fl]:d})}}),s.length&&(o[r]=s)}),o}function p2(){var e;return(((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function _2(e){return e.replace(/^_*(.)|_+(.)/g,(t,n,i)=>n?n.toUpperCase():" "+i.toUpperCase())}var $l=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const YX=f.defineComponent({name:"Body",emits:{select:e=>!0},setup(){const{state:e,updateEmoji:t,updateSelect:n}=f.inject("store"),i=f.ref(null),o=f.computed(()=>zX(e.emojis,e.search,e.skinTone,e.options.disabledGroups)),r=f.getCurrentInstance(),s=f.computed(()=>!e.options.hideGroupNames),l=f.computed(()=>!e.options.disableStickyGroupNames),u=f.toRaw(e.options.groupNames),d=e.orderedGroupKeys;e.options.additionalGroups&&Object.keys(e.options.additionalGroups).map(_=>{e.options.groupNames[_]?u[_]=e.options.groupNames[_]:u[_]=_2(_)});const c=p2()?"is-mac":"";function a(_){t(_)}function p(_){n(_),r==null||r.emit("select",{..._,t:e.skinTone,i:pc(_.r)})}function v(_,m){var h;const E=(h=_==null?void 0:_.target)==null?void 0:h.closest("button");E&&(E.innerHTML=`<span>${pc(m)}</span>`)}return f.watch(()=>e.activeGroup,()=>{var _;const m=(_=i.value)==null?void 0:_.querySelector("#"+e.activeGroup);m&&(m.parentNode.scrollTop=m.offsetTop-m.parentNode.offsetTop)}),{emojis:o,bodyInner:i,EMOJI_REMOTE_SRC:jk,GROUP_NAMES:Fk,handleClick:p,handleError:v,handleMouseEnter:a,native:e.options.native,unicodeToEmoji:pc,EMOJI_RESULT_KEY:Fl,EMOJI_NAME_KEY:sc,hasGroupNames:s,isSticky:l,platform:c,groupNames:u,orderedKeys:d}}}),WX={class:"v3-body"},$X=["id"],KX={class:"v3-emojis"},QX=["onMouseenter","onClick"],JX={key:0},XX=["src","alt","onError"],ZX={key:1,class:"v3-no-result"};function eZ(e,t,n,i,o,r){return f.openBlock(),f.createElementBlock("div",WX,[f.createElementVNode("div",{ref:"bodyInner",class:f.normalizeClass([e.platform,"v3-body-inner"])},[e.orderedKeys.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:0},f.renderList(e.orderedKeys,s=>(f.openBlock(),f.createElementBlock("div",{id:s,key:s,class:"v3-group"},[e.hasGroupNames?f.withDirectives((f.openBlock(),f.createElementBlock("h5",{key:0,class:f.normalizeClass(e.isSticky?"v3-sticky":"")},f.toDisplayString(e.groupNames[s]),3)),[[f.vShow,e.emojis[s]]]):f.createCommentVNode("",!0),f.withDirectives(f.createElementVNode("div",KX,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(e.emojis[s],l=>(f.openBlock(),f.createElementBlock("button",{key:l.r,type:"button",onMouseenter:u=>e.handleMouseEnter(l),onClick:u=>e.handleClick(l)},[e.native?(f.openBlock(),f.createElementBlock("span",JX,f.toDisplayString(e.unicodeToEmoji(l.r)),1)):(f.openBlock(),f.createElementBlock("img",{key:1,src:e.EMOJI_REMOTE_SRC+`/${l.r}.png`,alt:l.n[0],onError:u=>e.handleError(u,l.r)},null,40,XX))],40,QX))),128))],512),[[f.vShow,e.emojis[s]]])],8,$X))),128)):(f.openBlock(),f.createElementBlock("span",ZX," No emoji has been found! "))],2)])}var tZ=$l(YX,[["render",eZ]]),nZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",iZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",oZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",rZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",sZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",lZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",uZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",dZ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const cZ=f.defineComponent({name:"Header",setup(e){const{state:t,updateSearch:n,updateActiveGroup:i}=f.inject("store"),o=f.computed(()=>!t.options.hideSearch),r=f.computed(()=>!t.options.hideGroupIcons),s=JSON.parse(JSON.stringify(t.orderedGroupKeys)),l=f.computed(()=>t.options.staticTexts.placeholder||""),u=f.computed({get:()=>t.search,set:a=>n(a)}),d=[...t.groups,...Object.keys(t.options.additionalGroups).map(a=>({key:a,title:t.options.groupNames[a]?t.options.groupNames[a]:_2(a)}))],c=[];return s.forEach(a=>{const p=d.findIndex(v=>v.key===a);p!==-1&&(c.push(d[p]),d.splice(p,1))}),{orderedGroups:c,orderedKeys:s,searchValue:u,updateActiveGroup:i,hasSearch:o,hasGroupIcons:r,placeholder:l,icons:{smileys_people:f2,animals_nature:nZ,food_drink:iZ,activities:oZ,travel_places:rZ,objects:sZ,symbols:lZ,flags:uZ,...t.options.groupIcons,recent:dZ}}}}),aZ={key:0,class:"v3-header"},fZ={key:0,class:"v3-groups"},pZ=["onClick"],_Z=["title"],vZ=["src"],mZ={key:1,class:"v3-spacing"},hZ={key:2,class:"v3-search"},yZ=["placeholder"];function gZ(e,t,n,i,o,r){return e.hasGroupIcons||e.hasSearch?(f.openBlock(),f.createElementBlock("div",aZ,[e.hasGroupIcons?(f.openBlock(),f.createElementBlock("div",fZ,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(e.orderedGroups,s=>(f.openBlock(),f.createElementBlock("button",{key:s.key,type:"button",class:f.normalizeClass(["v3-group",{"v3-is-hidden":!e.icons[s.key]}]),onClick:l=>e.updateActiveGroup(s.key)},[f.createElementVNode("span",{title:s.title,class:"v3-icon"},[f.createElementVNode("img",{src:e.icons[s.key],alt:""},null,8,vZ)],8,_Z)],10,pZ))),128))])):f.createCommentVNode("",!0),e.hasGroupIcons&&e.hasSearch?(f.openBlock(),f.createElementBlock("div",mZ)):f.createCommentVNode("",!0),e.hasSearch?(f.openBlock(),f.createElementBlock("div",hZ,[f.withDirectives(f.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=s=>e.searchValue=s),type:"text",placeholder:e.placeholder},null,8,yZ),[[f.vModelText,e.searchValue]])])):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)}var EZ=$l(cZ,[["render",gZ]]);const TZ=f.defineComponent({name:"Header",setup(){const{state:e,updateSkinTone:t}=f.inject("store"),n=f.ref(!1),i=f.ref(!1),o=f.computed(()=>e.skinTone),r=f.computed(()=>e.options.staticTexts.skinTone||"Skin tone"),s=f.computed(()=>!e.options.disableSkinTones),l=p2()?"is-mac":"",u=f.computed(()=>({...e.emoji,src:jk+"/"+e.emoji[Fl]+".png"}));function d(p=!0){n.value=p}function c(){n.value=!n.value}function a(p){t(p),d(!1)}return f.watch(()=>e.emoji,()=>{i.value=!1}),{emoji:u,SKIN_TONES:TJ,updateSkinToneState:d,skinTone:n,stateSkinTone:o,selectSkinTone:a,toggleSkinToneState:c,EMOJI_RESULT_KEY:Fl,EMOJI_NAME_KEY:sc,skinToneText:r,hasSkinTones:s,native:e.options.native,unicodeToEmoji:pc,platform:l,hasError:i}}}),bZ={class:"v3-foot-left"},SZ={key:0},IZ=["alt","src"],AZ={class:"v3-text"},CZ={class:"v3-text"},RZ=["onClick"];function MZ(e,t,n,i,o,r){return f.openBlock(),f.createElementBlock("div",{class:"v3-footer",onMouseleave:t[2]||(t[2]=s=>e.updateSkinToneState(!1))},[f.createElementVNode("div",bZ,[f.createElementVNode("span",{class:f.normalizeClass([e.platform,"v3-icon"])},[e.native||e.hasError?(f.openBlock(),f.createElementBlock("span",SZ,f.toDisplayString(e.unicodeToEmoji(e.emoji.r)),1)):(f.openBlock(),f.createElementBlock("img",{key:1,alt:e.unicodeToEmoji(e.emoji.r),src:e.emoji.src,onError:t[0]||(t[0]=s=>e.hasError=!0)},null,40,IZ))],2),f.createElementVNode("span",AZ," :"+f.toDisplayString(e.emoji[e.EMOJI_NAME_KEY][1]||e.emoji[e.EMOJI_NAME_KEY][0])+": ",1)]),e.hasSkinTones?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createElementVNode("button",{type:"button",class:"v3-tone",onClick:t[1]||(t[1]=(...s)=>e.toggleSkinToneState&&e.toggleSkinToneState(...s))},[f.createElementVNode("span",CZ,f.toDisplayString(e.skinToneText),1),f.createElementVNode("span",{class:f.normalizeClass(`v3-icon v3-tone-${e.stateSkinTone}`)},null,2)]),f.createElementVNode("div",{class:f.normalizeClass([e.skinTone?"v3-is-open":"","v3-skin-tones"])},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(e.SKIN_TONES,s=>(f.openBlock(),f.createElementBlock("button",{key:s,type:"button",class:f.normalizeClass(["v3-skin-tone-"+s,"v3-skin-tone"]),onClick:l=>e.selectSkinTone(s)},null,10,RZ))),128))],2)],64)):f.createCommentVNode("",!0)],32)}var OZ=$l(TZ,[["render",MZ]]);const wZ=f.defineComponent({name:"PickerRoot",components:{Header:EZ,Body:tZ,Footer:OZ},props:{type:{type:String,default:""},text:{type:String,default:""},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},groupNames:{type:Object,default:()=>({})}},emits:{select:e=>!0,"update:text":e=>!0},setup(e,{emit:t}){const n=f.ref(),i=f.ref(),o=f.ref(),r=f.ref(!1),s=f.ref(e.text),l=e.type==="input"||e.type==="textarea";let u=-1;const{state:d}=f.inject("store"),c=f.computed(()=>d.options.colorTheme);function a(h){if(l){const E=d.options.mode;E==="prepend"?s.value=h.i+s.value:E==="insert"&&u!==-1?(s.value=`${s.value.slice(0,u)}${h.i}${s.value.slice(u)}`,u+=h.i.length):s.value+=h.i,t("update:text",s.value)}t("select",h)}function p(){var h;n.value&&(u=((h=n.value)==null?void 0:h.selectionEnd)||-1)}function v(h){var E;!((E=h.target)!=null&&E.closest(".v3-input-picker-wrap"))&&r.value&&(r.value=!1)}function _(){if(i.value&&o.value&&l){let h=d.options.offset;typeof h!="number"&&(h=6),HX(i.value,o.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,h]}}]}),document.body.addEventListener("click",v)}}function m(h){s.value=h.target.value||"",t("update:text",s.value)}return f.onMounted(()=>{_()}),f.onBeforeUnmount(()=>{document.body.removeEventListener("click",v)}),{face:f2,open:r,onSelect:a,input:s,elem:n,updateCursor:p,button:i,picker:o,isInputType:l,onChangeText:m,colorTheme:c}}}),NZ={key:0,class:"v3-input-emoji-picker"},xZ={class:"v3-input-picker-root"},PZ=["value"],DZ=["value"],kZ=["src"];function LZ(e,t,n,i,o,r){const s=f.resolveComponent("Header"),l=f.resolveComponent("Body"),u=f.resolveComponent("Footer");return e.isInputType?(f.openBlock(),f.createElementBlock("div",NZ,[f.createElementVNode("div",xZ,[e.type==="input"?(f.openBlock(),f.createElementBlock("input",{key:0,ref:"elem",value:e.input,type:"text",class:"v3-emoji-picker-input",onInput:t[0]||(t[0]=(...d)=>e.onChangeText&&e.onChangeText(...d)),onBlur:t[1]||(t[1]=(...d)=>e.updateCursor&&e.updateCursor(...d))},null,40,PZ)):(f.openBlock(),f.createElementBlock("textarea",{key:1,ref:"elem",value:e.input,class:"v3-emoji-picker-textarea",onInput:t[2]||(t[2]=(...d)=>e.onChangeText&&e.onChangeText(...d)),onBlur:t[3]||(t[3]=(...d)=>e.updateCursor&&e.updateCursor(...d))},null,40,DZ)),f.createElementVNode("div",{class:f.normalizeClass(["v3-input-picker-wrap",e.open?"v3-picker-is-open":""])},[f.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:t[4]||(t[4]=d=>e.open=!e.open)},[f.createElementVNode("img",{src:e.face,alt:""},null,8,kZ)],512),f.createElementVNode("div",{ref:"picker",class:f.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[f.createVNode(s),f.createVNode(l,{onSelect:e.onSelect},null,8,["onSelect"]),f.createVNode(u)],2)],2)])])):(f.openBlock(),f.createElementBlock("div",{key:1,class:f.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[f.createVNode(s),f.createVNode(l,{onSelect:e.onSelect},null,8,["onSelect"]),f.createVNode(u)],2))}var UZ=$l(wZ,[["render",LZ]]);const BZ=f.defineComponent({name:"Picker",components:{PickerRoot:UZ},props:{native:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},hideGroupIcons:{type:Boolean,default:!1},hideGroupNames:{type:Boolean,default:!1},staticTexts:{type:Object,default:()=>({})},disableStickyGroupNames:{type:Boolean,default:!1},disabledGroups:{type:Array,default:()=>[]},groupNames:{type:Object,default:()=>({})},disableSkinTones:{type:Boolean,default:!1},text:{type:String,default:""},mode:{type:String,default:"insert"},offset:{type:Number,default:6},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},pickerType:{type:String,default:""},displayRecent:{type:Boolean,default:!1},theme:{type:String,default:"light"}},emits:{"update:text":e=>!0,select:e=>!0},setup(e,{emit:t}){const n=f.ref(e.text);function i(r){n.value=r||"",t("update:text",n.value)}const o=BJ();return o.updateOptions({native:e.native,hideSearch:e.hideSearch,hideGroupIcons:e.hideGroupIcons,hideGroupNames:e.hideGroupNames,staticTexts:{...bJ,...e.staticTexts},disableStickyGroupNames:e.disableStickyGroupNames,disabledGroups:e.disabledGroups,groupNames:{...Fk,...e.groupNames},disableSkinTones:e.disableSkinTones,displayRecent:e.displayRecent,additionalGroups:e.additionalGroups,mode:e.mode,offset:e.offset,groupOrder:e.groupOrder,groupIcons:e.groupIcons,colorTheme:SJ.includes(e.theme)?e.theme:"light"}),f.provide("store",o),{type:e.pickerType,input:n,onChangeText:i}}});function jZ(e,t,n,i,o,r){const s=f.resolveComponent("picker-root");return f.openBlock(),f.createBlock(s,{type:e.type,text:e.input,onSelect:t[0]||(t[0]=l=>e.$emit("select",l)),"onUpdate:text":e.onChangeText},null,8,["type","text","onUpdate:text"])}var v2=$l(BZ,[["render",jZ]]);const FZ=f.defineComponent({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=Mr(e,t);return(r,s)=>(f.openBlock(),f.createBlock(f.unref(IK),f.normalizeProps(f.guardReactiveProps(f.unref(o))),{default:f.withCtx(()=>[f.renderSlot(r.$slots,"default")]),_:3},16))}}),VZ=f.defineComponent({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,o=Hd(n,"class"),r=Mr(o,i);return(s,l)=>(f.openBlock(),f.createBlock(f.unref(PK),null,{default:f.withCtx(()=>[f.createVNode(f.unref(NK),f.mergeProps({...f.unref(r),...s.$attrs},{class:f.unref(jl)("z-[2000] min-w-72 w-max rounded-md bg-white outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:f.withCtx(()=>[f.renderSlot(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),qZ=f.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,i)=>(f.openBlock(),f.createBlock(f.unref(kK),f.normalizeProps(f.guardReactiveProps(t)),{default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3},16))}}),GZ=f.defineComponent({__name:"PopoverBase",props:f.mergeModels({side:{},align:{default:"center"},sideOffset:{default:4},delay:{default:100},trigger:{default:"click"},triggerClass:{default:""},disabled:{type:Boolean}},{open:{type:Boolean},openModifiers:{}}),emits:["update:open"],setup(e){const t=e;let n=null;const i=f.useModel(e,"open");function o(u,d){if(!t.disabled){if(n&&(clearTimeout(n),n=null),d===0){r(u);return}n=setTimeout(()=>{r(u),n=null},d)}}const r=u=>{i.value=u};function s(){t.trigger=="hover"&&o(!0,t.delay)}const l=()=>{t.trigger=="hover"&&o(!1,t.delay)};return(u,d)=>(f.openBlock(),f.createBlock(f.unref(FZ),{open:i.value,"onUpdate:open":d[0]||(d[0]=c=>i.value=c)},{default:f.withCtx(()=>[f.createVNode(f.unref(qZ),{class:f.normalizeClass(t.triggerClass),onMouseenter:s,onMouseleave:l},{default:f.withCtx(()=>[f.renderSlot(u.$slots,"default")]),_:3},8,["class"]),u.disabled?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(f.unref(VZ),{key:0,side:u.side,align:u.align,onMouseenter:s,onMouseleave:l},{default:f.withCtx(()=>[f.renderSlot(u.$slots,"content")]),_:3},8,["side","align"]))]),_:3},8,["open"]))}}),HZ={class:"z-10 layout-shadow border-t border-chat-gray-5"},zZ={class:"flex gap-2 items-end h-max"},YZ={class:"relative grow"},WZ={class:"flex gap-2 -translate-y-2"},$Z={class:"cursor-pointer relative"},KZ=f.defineComponent({__name:"InputChat",props:f.mergeModels({data:{},responsive:{}},{modelValue:{},modelModifiers:{}}),emits:f.mergeModels(["sendMessage","focus"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=e,o=n,r=[{value:"0",label:"Go Chat"},{value:"1",label:"Go sms"}];f.computed(()=>{var y;return((y=r.find(b=>b.value===a.value))==null?void 0:y.label)??""});const s=f.useModel(e,"modelValue");let l=1;const u=f.ref(null);f.ref([]),f.ref(!1),f.ref(!1);const d=f.ref(null),c=f.ref(!1),a=f.ref("0"),p=async y=>{var R,M,x,w,U;const b=Date.now();let T="",S=[];if(y=="message"){if(!s.value)return;T=s.value,s.value="",h(d.value)}else if(y=="file"){const L=v();if(!L)return;const N=URL.createObjectURL(L);S=[{file_name:String(b),file_path:N,file_local:L}]}s.value="",l++;const I=((R=i.data)==null?void 0:R.id.toString())+"-"+l+"-"+Date.now(),A={conversation_id:(M=i.data)==null?void 0:M.conversation_id,created_at:kt().tz(rd).format(Is.DATE_FORMAT_FULL),id:I,message:T,receiver_id:((x=i.data)==null?void 0:x.id)||0,sender_id:(w=Xe.value)==null?void 0:w.id,status:"read",attachments:S,is_sms:(U=Xe.value)==null?void 0:U.is_sms_active};o("sendMessage",A)},v=()=>!u.value||!u.value.files||u.value.files.length===0?null:u.value.files[0],_=()=>{p("file")},m=y=>{var b;s.value=(s.value??"")+(((b=y==null?void 0:y.i)==null?void 0:b.replace("undefined",""))??"")},h=y=>{var T;const b=d.value;b.style.height="auto",((T=s.value)==null?void 0:T.replace(/\s+/g,""))==""?(b.style.height="42px",s.value=""):b.style.height=b.scrollHeight+"px"},E=()=>{i.responsive=="mobile",o("focus")};return t({clearInput:()=>{s.value=""}}),(y,b)=>{var T,S,I;return f.openBlock(),f.createElementBlock("div",HZ,[f.createElementVNode("div",zZ,[f.createElementVNode("div",YZ,[f.withDirectives(f.createElementVNode("textarea",{class:"text-[14px] sm:text-base w-full min-h-11 overflow-hidden chat-input !rounded-xl px-4 py-2 border border-chat-haze-200 leading-[24px]",ref_key:"chatInputRef",ref:d,rows:"1",placeholder:"Send Message",onKeydown:b[0]||(b[0]=f.withKeys(A=>p("message"),["enter"])),onFocus:b[1]||(b[1]=A=>E()),onInput:b[2]||(b[2]=A=>h()),"onUpdate:modelValue":b[3]||(b[3]=A=>s.value=A)},null,544),[[f.vModelText,s.value]])]),f.createElementVNode("div",WZ,[(T=f.unref(Xe))!=null&&T.is_sms_active?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(GZ,{key:0,open:c.value,"onUpdate:open":b[5]||(b[5]=A=>c.value=A),align:"end",side:"top"},{content:f.withCtx(()=>[f.createVNode(f.unref(v2),{class:"!w-[300px]",native:!0,offset:2,"hide-search":"",onSelect:m})]),default:f.withCtx(()=>[f.createElementVNode("button",{onClick:b[4]||(b[4]=f.withModifiers(A=>c.value=!c.value,["stop"])),class:"h-11 w-8"}," 😊 ")]),_:1},8,["open"])),(S=f.unref(Xe))!=null&&S.is_sms_active?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(f.unref(v2),{key:1,class:"opacity-0 pointer-events-none absolute",native:!0,offset:2,"hide-search":""})),f.withDirectives(f.createElementVNode("label",$Z,[f.createElementVNode("input",{type:"file",class:"hidden",ref_key:"refInputImage",ref:u,accept:".png, .jpeg, .jpg",onChange:_},null,544),b[7]||(b[7]=f.createElementVNode("div",{class:"h-11 w-8 flex-center"},[f.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",class:"w-5 h-5"},[f.createElementVNode("path",{d:"M21.44 11.05l-8.49 8.49a5 5 0 01-7.07-7.07l8.49-8.49a3.5 3.5 0 014.95 4.95l-8.5 8.49a2 2 0 11-2.83-2.83l7.78-7.78"})])],-1))],512),[[f.vShow,!(s.value!=""&&y.responsive=="mobile")&&!((I=f.unref(Xe))!=null&&I.is_sms_active)]]),f.createElementVNode("button",{class:"h-11 w-11 rounded-full flex-center bg-[#002E6B] ml-2",onClick:b[6]||(b[6]=A=>p("message"))},[f.createVNode(gJ,{color:"#fff"})])])])])}}}),ai={Sending:"sending",Sent:"sent",Read:"read",Failed:"failed",Uploading:"uploading",Uploaded:"uploaded"},QZ={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},m2=f.defineComponent({__name:"IconPhoneCancel",props:{weight:{type:Number,default:1.5}},setup(e){return(t,n)=>(f.openBlock(),f.createElementBlock("svg",QZ,n[0]||(n[0]=[f.createElementVNode("path",{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"},null,-1),f.createElementVNode("line",{x1:"22",x2:"2",y1:"2",y2:"22"},null,-1)])))}}),ot={CONNECTING:"Connecting...",CALLING:"calling",RINGING:"ringing",CONNECT_FAILED:"failed",CALL_START:"in-progress",CALL_END:"completed",NO_ANSWER:"no-answer",CANCEL:"cancel",TIME_OUT:"timeout",BUSY:"busy",MEDIA_PERMISSION_FAIL:"media-permission-fail"},JZ={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XZ=["stroke-width"],nm=f.defineComponent({__name:"IconPhone",props:{weight:{type:Number,default:1.25}},setup(e){return(t,n)=>(f.openBlock(),f.createElementBlock("svg",JZ,[f.createElementVNode("path",{d:"M9.15826 5.71223L8.7556 4.80625C8.49232 4.21388 8.36068 3.91768 8.16381 3.69101C7.91708 3.40694 7.59547 3.19794 7.23568 3.08785C6.94859 3 6.62446 3 5.97621 3C5.02791 3 4.55376 3 4.15573 3.18229C3.68687 3.39702 3.26344 3.86328 3.09473 4.3506C2.95151 4.76429 2.99254 5.18943 3.07458 6.0397C3.94791 15.0902 8.90982 20.0521 17.9603 20.9254C18.8106 21.0075 19.2358 21.0485 19.6494 20.9053C20.1368 20.7366 20.603 20.3131 20.8178 19.8443C21 19.4462 21 18.9721 21 18.0238C21 17.3755 21 17.0514 20.9122 16.7643C20.8021 16.4045 20.5931 16.0829 20.309 15.8362C20.0824 15.6393 19.7862 15.5077 19.1938 15.2444L18.2878 14.8417C17.6463 14.5566 17.3255 14.4141 16.9996 14.3831C16.6876 14.3534 16.3731 14.3972 16.0811 14.5109C15.776 14.6297 15.5064 14.8544 14.967 15.3038C14.4302 15.7512 14.1618 15.9749 13.8338 16.0947C13.543 16.2009 13.1586 16.2403 12.8524 16.1951C12.5069 16.1442 12.2424 16.0029 11.7133 15.7201C10.0673 14.8405 9.15953 13.9328 8.27987 12.2867C7.99714 11.7577 7.85578 11.4931 7.80487 11.1477C7.75974 10.8414 7.79908 10.457 7.9053 10.1663C8.02512 9.83828 8.24881 9.56986 8.69619 9.033C9.14562 8.49368 9.37034 8.22402 9.48915 7.91891C9.60285 7.62694 9.64662 7.3124 9.61695 7.00048C9.58594 6.67452 9.44338 6.35376 9.15826 5.71223Z",stroke:"currentColor","stroke-width":e.weight,"stroke-linecap":"round"},null,8,XZ)]))}}),ZZ={key:0,class:"flex flex-col gap-2 w-[210px]"},eee={class:"flex items-center gap-1"},tee={class:"font-semibold"},nee={class:"flex items-center gap-2 shrink-0"},iee={key:1},oee=["innerHTML"],ree={key:2},see=["src"],lee=f.defineComponent({__name:"ChatMessageItem",props:{message:{},responsive:{},isEndMessage:{type:Boolean},isMyMessage:{type:Boolean},isLastMessage:{type:Boolean},shouldShowAvatar:{type:Boolean},isChatFinished:{type:Boolean},isChatStart:{type:Boolean},data:{}},emits:["callAgain"],setup(e,{emit:t}){kt.extend(ID),kt.extend(CD);const n=e,i=t,o=f.computed(()=>{var d,c,a,p,v,_,m,h,E;if(n.isMyMessage){if(((d=n.message)==null?void 0:d.call_status)==ot.CONNECT_FAILED)return"Call canceled";if(((c=n.message)==null?void 0:c.call_status)==ot.CALL_END)return"Outgoing audio call";if(((a=n.message)==null?void 0:a.call_status)==ot.CANCEL)return"Call canceled"}else{if(((p=n.message)==null?void 0:p.call_status)==ot.CONNECT_FAILED||((v=n.message)==null?void 0:v.call_status)==ot.TIME_OUT||((_=n.message)==null?void 0:_.call_status)==ot.CANCEL||((m=n.message)==null?void 0:m.call_status)==ot.NO_ANSWER||((h=n.message)==null?void 0:h.call_status)==ot.BUSY)return"Call missed";if(((E=n.message)==null?void 0:E.call_status)==ot.CALL_END)return"Incomming audio call"}return""}),r=()=>{f.nextTick(()=>{const d=document.getElementById("content-chat");d&&(d.scrollTop=d.scrollHeight)})},s=d=>{const c=Math.floor(d/60),a=d%60;return`${String(c).padStart(2,"0")}:${String(a).padStart(2,"0")}`},l=d=>{switch(d.state){case ai.Sending:return"Sending...";case ai.Uploading:return"Uploading...";case ai.Sent:return"";case ai.Read:return"Seen";case ai.Failed:return d.error||"Message failed";default:return""}},u=d=>kt(d).isValid()?kt.tz(d,rd).local().format(Is.TIME_12_FORMAT):"";return(d,c)=>{var a,p,v,_,m,h,E,g;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["flex items-end mt-1",{"mt-2":d.shouldShowAvatar,"flex-col justify-end pl-[60px]":d.isMyMessage,"gap-2":!d.isMyMessage}])},[d.message.state!=f.unref(ai).Sending||d.isMyMessage?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[d.isMyMessage?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[d.shouldShowAvatar?(f.openBlock(),f.createBlock(nr,{key:0,class:f.normalizeClass(["shrink-0",{"translate-y-[-2px]":d.responsive=="mobile","!-translate-y-[26px]":d.isChatStart&&d.isChatFinished}]),src:((a=d.data)==null?void 0:a.avatar)??"",color:(p=d.data)==null?void 0:p.color,name:(v=d.data)==null?void 0:v.username,size:d.responsive=="mobile"?"sm":"md"},null,8,["src","color","name","size","class"])):(f.openBlock(),f.createElementBlock("div",{key:1,class:f.normalizeClass(["shrink-0",d.responsive=="mobile"?"w-8":"w-12"])},null,2))],64)),f.createElementVNode("div",null,[f.createElementVNode("div",{class:f.normalizeClass(["px-3 py-2 rounded-2xl text-left w-max",{"rounded-tl-[6px]":!d.isChatStart&&!d.isMyMessage,"rounded-bl-[6px]":!d.isChatFinished&&!d.isMyMessage,"rounded-tr-[6px]":!d.isChatStart&&d.isMyMessage,"rounded-br-[6px]":!d.isChatFinished&&d.isMyMessage,"!text-white !bg-chat-success":d.message.message_uuid&&!d.message.is_call||d.message.is_sms,"bg-chat-primary text-white":d.isMyMessage&&!d.message.is_call,"bg-[#E4E4E4D4] text-chat-haze-600":!d.isMyMessage||d.message.is_call,"ml-auto":d.isMyMessage,"mr-auto":!d.isMyMessage,"max-w-[280px]":d.responsive=="mobile","max-w-[480px]":d.responsive!=="mobile"}])},[d.message.is_call==1?(f.openBlock(),f.createElementBlock("div",ZZ,[f.createElementVNode("div",eee,[d.message.call_status==f.unref(ot).CALL_END?(f.openBlock(),f.createBlock(nm,{key:0,weight:2,class:"w-5 h-5 text-chat-success"})):(f.openBlock(),f.createBlock(m2,{key:1,weight:2,class:"w-5 h-5 text-chat-error"})),f.createElementVNode("p",tee,f.toDisplayString(o.value),1)]),f.createElementVNode("div",nee,[f.createElementVNode("span",null,"Duration: "+f.toDisplayString(s(((_=d.message)==null?void 0:_.duration)??0)),1)]),f.createElementVNode("button",{onClick:c[0]||(c[0]=y=>i("callAgain")),class:"flex-center h-10 rounded-xl bg-chat-haze-200 font-semibold"},c[2]||(c[2]=[f.createElementVNode("p",null,"Call back",-1)]))])):d.message.message?(f.openBlock(),f.createElementBlock("div",iee,[f.createElementVNode("div",{innerHTML:d.message.message,style:{wordBreak:"break-word"}},null,8,oee)])):(h=(m=d.message)==null?void 0:m.attachments)!=null&&h.length?(f.openBlock(),f.createElementBlock("div",ree,[f.createElementVNode("img",{src:(E=d.message.attachments[0])==null?void 0:E.file_path,alt:"image",onLoad:c[1]||(c[1]=()=>{d.isLastMessage&&r()})},null,40,see)])):f.createCommentVNode("",!0)],2),d.isChatFinished?(f.openBlock(),f.createElementBlock("p",{key:0,class:f.normalizeClass(["text-sm mt-1",d.isMyMessage?"text-right":"text-left"])},f.toDisplayString(u((g=d.message)==null?void 0:g.created_at)),3)):f.createCommentVNode("",!0)]),d.isMyMessage?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[d.isLastMessage&&l(d.message)||d.message.state==f.unref(ai).Failed?(f.openBlock(),f.createElementBlock("span",{key:0,class:f.normalizeClass(["text-chat-haze-200 text-xs mt-1",{"!text-chat-error":d.message.state==f.unref(ai).Failed}])},f.toDisplayString(l(d.message)),3)):f.createCommentVNode("",!0)],64)):f.createCommentVNode("",!0)],64)):f.createCommentVNode("",!0)],2)}}}),uee={class:"relative overflow-hidden"},dee={key:0,class:"shrink-0 h-[500px] chat-padding-page"},cee={class:"chat-padding-page"},aee=f.defineComponent({__name:"ChatMessage",props:{data:{},message:{},responsive:{},showNewCustomer:{type:Boolean}},emits:["scrollTop","callBack"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=f.ref(null),s=()=>{f.nextTick(()=>{const _=document.getElementById("content-chat");_&&(_.scrollTop=_.scrollHeight)})},l=_=>_===0?!0:i.message[_-1].sender_id!==i.message[_].sender_id,u=_=>{var m;return((m=i.message)==null?void 0:m.length)==_+1?!0:i.message[_+1].sender_id!==i.message[_].sender_id},d=_=>{if(u(_))return!0;const m=kt(i.message[_].created_at);return kt(i.message[_+1].created_at).diff(m,"minute")>10},c=_=>{if(l(_))return!0;const m=kt(i.message[_-1].created_at);return kt(i.message[_].created_at).diff(m,"minute")>10},a=()=>{o("scrollTop")};return t({scrollBottom:s,hideScrollEvent:()=>{var _;(_=r.value)==null||_.hideLoading()},fixedScroll:()=>{var _;(_=r.value)==null||_.fixedScroll()}}),(_,m)=>(f.openBlock(),f.createElementBlock("div",uee,[f.createVNode(sv,{class:"bg-white h-full flex flex-col overflow-auto",id:"content-chat",top:"",ref_key:"scrollEventRef",ref:r,onGetDataTop:a},{default:f.withCtx(()=>[_.showNewCustomer?(f.openBlock(),f.createElementBlock("div",dee,[f.createVNode(Bk,{class:"h-full",data:_.data},null,8,["data"])])):f.createCommentVNode("",!0),f.createElementVNode("div",cee,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(_.message,(h,E)=>{var g;return f.openBlock(),f.createBlock(lee,{key:h.id,onCallAgain:m[0]||(m[0]=y=>o("callBack")),message:h,index:E,responsive:_.responsive,"is-my-message":h.sender_id==((g=f.unref(Xe))==null?void 0:g.id),data:_.data,"should-show-avatar":l(E),"is-last-message":E==_.message.length-1,"is-end-message":u(E),"is-chat-finished":d(E),"is-chat-start":c(E)},null,8,["message","index","responsive","is-my-message","data","should-show-avatar","is-last-message","is-end-message","is-chat-finished","is-chat-start"])}),128))])]),_:1},512)]))}}),fee={class:"h-full flex flex-col overflow-hidden"},pee={key:2,class:"grow"},im="chat-message-",h2=f.defineComponent({__name:"Home",props:{receiverId:{},responsive:{},conversation:{}},emits:["call","inputFocus","back"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=f.computed(()=>a.value.slice().reverse());let s=1,l=1,u="";const d=f.ref(!1),c=f.shallowRef(null),a=f.ref([]),p=f.ref(null),v=f.ref(null);f.onMounted(()=>{}),f.onUnmounted(()=>{m()});const _=async()=>{var R;try{await qd(),u=wY+((R=c.value)==null?void 0:R.conversation_id),iv(u),yD("chat-home-1",u,h)}catch(M){console.error(M)}},m=async()=>{await ov(u),rv("chat-home-1")},h=(R,M)=>{var x,w,U,L,N,B,F,k,$;if((x=c.value)!=null&&x.id&&((w=M==null?void 0:M.sender_id)==null?void 0:w.toString())==((L=(U=c.value)==null?void 0:U.id)==null?void 0:L.toString())||(N=c.value)!=null&&N.id&&((B=M==null?void 0:M.receiver_id)==null?void 0:B.toString())==((k=(F=c.value)==null?void 0:F.id)==null?void 0:k.toString())){const q=a.value.findIndex(H=>H.id===(M==null?void 0:M.id));q<0?a.value.unshift(M):a.value[q]=M,($=p.value)==null||$.scrollBottom()}},E=async R=>{var M,x,w,U;try{const L=i.receiverId,N={page:R!=null&&R.resetList?1:s,receiver_id:i.receiverId};if(N.page<=1){const F=Nk(im+L);F.data&&(a.value=F.data??[],(M=p.value)==null||M.scrollBottom())}let B=await aH(N);s=((x=B._meta)==null?void 0:x.currentPage)||1,l=((w=B._meta)==null?void 0:w.pageCount)||1,L==i.receiverId&&(s<=1?(a.value=B.items,(U=p.value)==null||U.scrollBottom(),wk(im+L,B.items),OQ(8,im)):a.value.push(...B.items))}catch(L){console.error(L)}},g=async()=>{var R,M,x;if(s>=l){(R=p.value)==null||R.hideScrollEvent();return}s=s+1,await E(),(M=p.value)==null||M.hideScrollEvent(),(x=p.value)==null||x.fixedScroll()},y=async R=>{const M=i.receiverId;R&&(c.value={...R,conversation_id:R.id});const x=await fH(i.receiverId)??null;M==i.receiverId&&(c.value=x,await m(),await _())},b=async R=>{var M,x;try{d.value=!0,a.value=[],(M=v.value)==null||M.clearInput(),y(R),await Promise.allSettled([E({resetList:!0})]),await f.nextTick(),(x=p.value)==null||x.scrollBottom()}catch(w){console.error(w)}finally{d.value=!1}},T=(R,M)=>{const x=a.value.findIndex(w=>w.id==R);if(x>-1){const w=a.value[x];a.value[x]={...w,...M}}},S=async R=>{var M,x,w,U,L,N,B,F;try{a.value.unshift({...R,state:ai.Sending}),await f.nextTick();let k=[];(M=R==null?void 0:R.attachments)!=null&&M.length&&(T(R.id,{state:ai.Uploading}),k=await I(R==null?void 0:R.attachments[0].file_local)),T(R.id,{state:ai.Sending}),(x=p.value)==null||x.scrollBottom();const $=new FormData;$.append("message",R.message??""),$.append("receiver_id",((w=c.value)==null?void 0:w.id)??""),k!=null&&k.length&&$.append("url",((U=k[0])==null?void 0:U.url)??""),await _H($),Gd(u,{...R,state:ai.Sent,attachments:k?[{file_name:((L=R.attachments[0])==null?void 0:L.file_name)??"",file_path:((N=k[0])==null?void 0:N.url)??""}]:[]}),T(R.id,{state:ai.Sent}),(B=p.value)==null||B.scrollBottom(),xY({message:(R==null?void 0:R.message)??"",isSendImg:!!(k!=null&&k.length),infoUser:c.value,is_unknown:((F=i.conversation)==null?void 0:F.is_unknown)??0})}catch(k){console.log(k),T(R.id,{state:ai.Failed,error:typeof(k==null?void 0:k.messages)=="string"?k.messages:k})}},I=async R=>{var w,U;if(R==null||R==null)return[];if(R.size>1*1024*1024)throw new Error("File size exceeds limit");const M=new FormData;M.append("file",R);const x=await mH(M);if((w=x==null?void 0:x[0])!=null&&w.error)throw new Error(((U=x==null?void 0:x[0])==null?void 0:U.errors)??"Error!");return x},A=()=>{c.value&&o("call",c.value)};return t({getData:b,handleGetMessage:E,infoUser:c}),(R,M)=>{var x;return f.openBlock(),f.createElementBlock("div",fee,[f.createVNode(fJ,{class:"shrink-0",data:c.value,onCall:A,responsive:R.responsive,onBack:M[0]||(M[0]=w=>o("back"))},null,8,["data","responsive"]),(x=a.value)!=null&&x.length?(f.openBlock(),f.createBlock(aee,{key:0,ref_key:"chatMessageRef",ref:p,onScrollTop:g,data:c.value,message:r.value,class:"grow",responsive:R.responsive,"show-new-customer":f.unref(s)>=f.unref(l),onCallBack:A},null,8,["data","message","responsive","show-new-customer"])):d.value?(f.openBlock(),f.createElementBlock("span",pee)):(f.openBlock(),f.createBlock(Bk,{key:1,data:c.value,class:"grow"},null,8,["data"])),R.receiverId!=f.unref(io)?(f.openBlock(),f.createBlock(KZ,{key:3,data:c.value,responsive:R.responsive,onSendMessage:S,onFocus:M[1]||(M[1]=w=>o("inputFocus")),ref_key:"inputChatRef",ref:v,class:"p-2 sm:p-6"},null,8,["data","responsive"])):f.createCommentVNode("",!0)])}}}),_ee={},vee={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mee(e,t){return f.openBlock(),f.createElementBlock("svg",vee,t[0]||(t[0]=[f.createElementVNode("path",{d:"M6.00003 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const y2=Pt(_ee,[["render",mee]]),hee={class:"w-full"},yee={class:"text-chat-haze-500 font-semibold"},gee={class:"bg-white rounded-xl border border-chat-haze-100 mt-1 p-4 space-y-4"},Eee=["onClick"],Tee={class:"flex items-center gap-1 grow text-chat-haze-900"},bee={key:0,class:"flex items-center text-chat-haze-300"},See={class:"ml-1"},Iee={class:"border-chat-haze-100 mx-6"},om=f.defineComponent({__name:"SubInformation",props:{information:{default:[]},title:{default:""}},setup(e){return(t,n)=>(f.openBlock(),f.createElementBlock("div",hee,[f.createElementVNode("h2",yee,f.toDisplayString(t.title),1),f.createElementVNode("div",gee,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.information,(i,o)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:o},[f.createElementVNode("div",{class:f.normalizeClass(["flex items-center gap-1",{"cursor-pointer":i.click}]),onClick:r=>{var s;return(s=i.click)==null?void 0:s.call(i)}},[f.createElementVNode("div",Tee,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(i.icon))),f.createElementVNode("span",null,f.toDisplayString(i.label),1)]),i.value?(f.openBlock(),f.createElementBlock("div",bee,[f.createTextVNode(f.toDisplayString(i.value)+" ",1),f.createElementVNode("span",See,[f.createVNode(y2)])])):f.createCommentVNode("",!0)],10,Eee),f.withDirectives(f.createElementVNode("hr",Iee,null,512),[[f.vShow,o<t.information.length-1]])],64))),128))])]))}}),Aee={},Cee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ree(e,t){return f.openBlock(),f.createElementBlock("svg",Cee,t[0]||(t[0]=[f.createElementVNode("path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M2.01577 13.4756C2.08114 16.5411 2.11383 18.0739 3.24496 19.2093C4.37609 20.3448 5.95034 20.3843 9.09884 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.755 19.2093C21.8862 18.0739 21.9189 16.5411 21.9842 13.4756C22.0053 12.4899 22.0053 11.51 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.755 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95034 3.61566 4.37609 3.65521 3.24496 4.79065C2.11383 5.92608 2.08114 7.45885 2.01577 10.5243C1.99474 11.51 1.99474 12.4899 2.01577 13.4756Z",stroke:"#363E44","stroke-width":"1.25","stroke-linejoin":"round"},null,-1)]))}const Mee=Pt(Aee,[["render",Ree]]),Oee={},wee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nee(e,t){return f.openBlock(),f.createElementBlock("svg",wee,t[0]||(t[0]=[f.createElementVNode("path",{d:"M18.9905 19H19M18.9905 19C18.3678 19.6175 17.2393 19.4637 16.4479 19.4637C15.4765 19.4637 15.0087 19.6537 14.3154 20.347C13.7251 20.9374 12.9337 22 12 22C11.0663 22 10.2749 20.9374 9.68457 20.347C8.99128 19.6537 8.52349 19.4637 7.55206 19.4637C6.76068 19.4637 5.63218 19.6175 5.00949 19C4.38181 18.3776 4.53628 17.2444 4.53628 16.4479C4.53628 15.4414 4.31616 14.9786 3.59938 14.2618C2.53314 13.1956 2.00002 12.6624 2 12C2.00001 11.3375 2.53312 10.8044 3.59935 9.73817C4.2392 9.09832 4.53628 8.46428 4.53628 7.55206C4.53628 6.76065 4.38249 5.63214 5 5.00944C5.62243 4.38178 6.7556 4.53626 7.55208 4.53626C8.46427 4.53626 9.09832 4.2392 9.73815 3.59937C10.8044 2.53312 11.3375 2 12 2C12.6625 2 13.1956 2.53312 14.2618 3.59937C14.9015 4.23907 15.5355 4.53626 16.4479 4.53626C17.2393 4.53626 18.3679 4.38247 18.9906 5C19.6182 5.62243 19.4637 6.75559 19.4637 7.55206C19.4637 8.55858 19.6839 9.02137 20.4006 9.73817C21.4669 10.8044 22 11.3375 22 12C22 12.6624 21.4669 13.1956 20.4006 14.2618C19.6838 14.9786 19.4637 15.4414 19.4637 16.4479C19.4637 17.2444 19.6182 18.3776 18.9905 19Z",stroke:"#363E44","stroke-width":"1.25"},null,-1),f.createElementVNode("path",{d:"M9 12.8929C9 12.8929 10.2 13.5447 10.8 14.5C10.8 14.5 12.6 10.75 15 9.5",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const xee=Pt(Oee,[["render",Nee]]),Pee={},Dee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kee(e,t){return f.openBlock(),f.createElementBlock("svg",Dee,t[0]||(t[0]=[f.createElementVNode("path",{d:"M16 2V6M8 2V6",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M3 10H21",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M9 16.5C9 16.5 10.5 17 11 18.5C11 18.5 13.1765 14.5 16 13.5",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Lee=Pt(Pee,[["render",kee]]),Uee={},Bee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jee(e,t){return f.openBlock(),f.createElementBlock("svg",Bee,t[0]||(t[0]=[f.createStaticVNode('<path d="M13.0289 7.4183C13.0098 7.2816 13 7.14195 13 7C13 5.34314 14.3432 4 16 4C17.6568 4 19 5.34314 19 7C19 8.65686 17.6568 10 16 10C15.4416 10 14.9188 9.84745 14.4711 9.58172" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 14.9498C21 12.2161 18.7614 10 16 10C13.2386 10 11 12.2161 11 14.9498" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 9C14 6.79086 12.2091 5 10 5C7.79086 5 6 6.79086 6 9C6 11.2091 7.79086 13 10 13C12.2091 13 14 11.2091 14 9Z" fill="white" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 18.6569C17 15.5327 13.866 13 10 13C6.134 13 3 15.5327 3 18.6569" fill="white"></path><path d="M17 18.6569C17 15.5327 13.866 13 10 13C6.134 13 3 15.5327 3 18.6569C3 21.781 17 21.781 17 18.6569Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>',5)]))}const Fee=Pt(Uee,[["render",jee]]),Vee={},qee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gee(e,t){return f.openBlock(),f.createElementBlock("svg",qee,t[0]||(t[0]=[f.createElementVNode("path",{d:"M3 11C3 7.25027 3 5.3754 3.95491 4.06107C4.26331 3.6366 4.6366 3.26331 5.06107 2.95491C6.3754 2 8.25027 2 12 2C15.7497 2 17.6246 2 18.9389 2.95491C19.3634 3.26331 19.7367 3.6366 20.0451 4.06107C21 5.3754 21 7.25027 21 11V13C21 16.7497 21 18.6246 20.0451 19.9389C19.7367 20.3634 19.3634 20.7367 18.9389 21.0451C17.6246 22 15.7497 22 12 22C8.25027 22 6.3754 22 5.06107 21.0451C4.6366 20.7367 4.26331 20.3634 3.95491 19.9389C3 18.6246 3 16.7497 3 13V11Z",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M15 9.5H7M10 14.5H7",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Hee=Pt(Vee,[["render",Gee]]),zee={},Yee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wee(e,t){return f.openBlock(),f.createElementBlock("svg",Yee,t[0]||(t[0]=[f.createElementVNode("path",{d:"M17 17L21 21",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const $ee=Pt(zee,[["render",Wee]]),Kee={},Qee={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jee(e,t){return f.openBlock(),f.createElementBlock("svg",Qee,t[0]||(t[0]=[f.createElementVNode("path",{d:"M3 21L8 16",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M13.2585 18.8714C9.51516 18.0215 5.97844 14.4848 5.12853 10.7415C4.99399 10.1489 4.92672 9.85266 5.12161 9.37197C5.3165 8.89129 5.55457 8.74255 6.03071 8.44509C7.10705 7.77265 8.27254 7.55888 9.48209 7.66586C11.1793 7.81598 12.0279 7.89104 12.4512 7.67048C12.8746 7.44991 13.1622 6.93417 13.7376 5.90269L14.4664 4.59604C14.9465 3.73528 15.1866 3.3049 15.7513 3.10202C16.316 2.89913 16.6558 3.02199 17.3355 3.26771C18.9249 3.84236 20.1576 5.07505 20.7323 6.66449C20.978 7.34417 21.1009 7.68401 20.898 8.2487C20.6951 8.8134 20.2647 9.05346 19.4039 9.53358L18.0672 10.2792C17.0376 10.8534 16.5229 11.1406 16.3024 11.568C16.0819 11.9955 16.162 12.8256 16.3221 14.4859C16.4399 15.7068 16.2369 16.88 15.5555 17.9697C15.2577 18.4458 15.1088 18.6839 14.6283 18.8786C14.1477 19.0733 13.8513 19.006 13.2585 18.8714Z",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Xee=Pt(Kee,[["render",Jee]]),Zee={class:"chat-padding-page overflow-auto"},ete={class:"flex flex-col items-center mx-auto"},tte={class:"flex items-center gap-1 mt-3"},nte={class:"text-lg font-semibold text-gray-800"},ite={class:"w-full flex items-center justify-center gap-1"},ote={class:"text-lg font-semibold text-chat-haze-900"},rte=["src"],ste={class:"text-chat-haze-400"},lte={class:"w-full py-6"},g2=f.defineComponent({__name:"CustomerDetail",props:{receiverId:{},responsive:{}},setup(e){const t=f.computed(()=>{var s,l,u;return[{label:"Points",value:((s=ui.value)==null?void 0:s.lifetime_point)??0},{label:"Total Visit",value:((l=ui.value)==null?void 0:l.visit_count)??0},{label:"Spent",value:((u=ui.value)==null?void 0:u.total_money)??0}]}),n=f.computed(()=>{var s;return[{icon:Mee,label:""},{icon:nm,label:Xi(((s=Ko.value)==null?void 0:s.phone)??"",2)}]}),i=f.computed(()=>{var s,l,u,d,c,a,p,v,_,m;return[{icon:xee,label:"Check In",value:(s=ui.value)!=null&&s.visit_count?((l=ui.value)==null?void 0:l.visit_count)+(((u=ui.value)==null?void 0:u.visit_count)>1?" times":" time"):"",click:(d=ui.value)!=null&&d.visit_count?()=>{Xn(mt.CUSTOMER_CHECK_IN)}:null},{icon:Hee,label:"Orders",value:((a=(c=ui.value)==null?void 0:c.order)==null?void 0:a.length)??""},{icon:Lee,label:"Appointments",value:((v=(p=ui.value)==null?void 0:p.appointment)==null?void 0:v.length)??"",click:(m=(_=ui.value)==null?void 0:_.appointment)!=null&&m.length?()=>{Xn(mt.CUSTOMER_APPOINTMENT)}:null}]}),o=[{icon:$ee,label:"Search in the conversation"},{icon:Xee,label:"Pin Message"},{icon:Fee,label:"Add Groups"}];return(async()=>{var s,l;ui.value=null,ui.value=await WQ(((l=(s=Ko.value)==null?void 0:s.phone)==null?void 0:l.slice(1))??"")})(),(s,l)=>{var u,d,c,a,p;return f.openBlock(),f.createElementBlock("div",Zee,[f.createElementVNode("div",ete,[f.createVNode(nr,{src:((u=f.unref(Ko))==null?void 0:u.avatar)??"",color:((d=f.unref(Ko))==null?void 0:d.color)??"",name:((c=f.unref(Ko))==null?void 0:c.username)??"",size:"xl"},null,8,["src","color","name"]),f.createElementVNode("div",tte,[f.createElementVNode("h2",nte,f.toDisplayString(((a=f.unref(Ko))==null?void 0:a.username)??f.unref(Xi)(((p=f.unref(Ko))==null?void 0:p.phone)??"")),1)])]),f.createElementVNode("div",{class:f.normalizeClass(["mt-5 text-center mx-auto",{"flex justify-between w-max":s.responsive!="mobile","grid grid-cols-3 w-full":s.responsive=="mobile"}])},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.value,(v,_)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["border-l border-chat-haze-100 first:border-none",{"w-full":s.responsive=="mobile","w-[130px]":s.responsive!="mobile"}]),key:_},[f.createElementVNode("div",ite,[f.createElementVNode("p",ote,f.toDisplayString(v.value),1),v.icon?(f.openBlock(),f.createElementBlock("img",{key:0,src:v.icon},null,8,rte)):f.createCommentVNode("",!0)]),f.createElementVNode("p",ste,f.toDisplayString(v.label),1)],2))),128))],2),f.createElementVNode("div",lte,[f.createVNode(om,{class:"mb-6",information:n.value,title:"Information"},null,8,["information"]),f.createVNode(om,{class:"mb-6",information:i.value,title:"History"},null,8,["information"]),f.createVNode(om,{class:"",information:o,title:"Other Action"})])])}}}),ute={},dte={class:"bg-white border border-chat-haze-200 rounded-lg p-4"};function cte(e,t){return f.openBlock(),f.createElementBlock("div",dte,[f.renderSlot(e.$slots,"header"),t[0]||(t[0]=f.createElementVNode("div",{class:"border-t border-dashed border-chat-haze-200 my-2"},null,-1)),f.renderSlot(e.$slots,"content")])}const E2=Pt(ute,[["render",cte]]);var T2=(e=>(e.Orange="#F2994A",e.Blue_Teal="#F2994A",e))(T2||{});function ate(){var t,n,i;const e=document.querySelector(":root");e&&((t=e.style)==null||t.setProperty("--chat-color-primary","#0051E6"),(n=e.style)==null||n.setProperty("--chat-color-error","#ef4444"),(i=e.style)==null||i.setProperty("--chat-color-success","#4ade80"))}const fte=f.defineComponent({__name:"Collapsible",props:{defaultOpen:{type:Boolean},open:{type:Boolean},disabled:{type:Boolean},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(e,{emit:t}){const o=Mr(e,t);return(r,s)=>(f.openBlock(),f.createBlock(f.unref(OW),f.normalizeProps(f.guardReactiveProps(f.unref(o))),{default:f.withCtx(({open:l})=>[f.renderSlot(r.$slots,"default",{open:l})]),_:3},16))}}),pte=f.defineComponent({__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,i)=>(f.openBlock(),f.createBlock(f.unref(NW),f.mergeProps(t,{class:"overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"}),{default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3},16))}}),_te=f.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,i)=>(f.openBlock(),f.createBlock(f.unref(PW),f.normalizeProps(f.guardReactiveProps(t)),{default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3},16))}}),vte=f.defineComponent({__name:"CollapseBase",props:{open:{type:Boolean},openModifiers:{}},emits:["update:open"],setup(e){const t=f.useModel(e,"open");return(n,i)=>(f.openBlock(),f.createBlock(f.unref(fte),{open:t.value,"onUpdate:open":i[0]||(i[0]=o=>t.value=o)},{default:f.withCtx(()=>[f.createVNode(f.unref(_te),null,{default:f.withCtx(()=>[f.renderSlot(n.$slots,"trigger")]),_:3}),f.createVNode(f.unref(pte),null,{default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3})]),_:3},8,["open"]))}}),mte={class:"flex items-center text-chat-haze-400 mb-3"},hte={class:"font-semibold text-lg"},b2=f.defineComponent({__name:"CollapseCheckIn",props:{title:{}},setup(e){const t=f.ref(!0);return(n,i)=>(f.openBlock(),f.createBlock(vte,{class:"relative",open:t.value,"onUpdate:open":i[0]||(i[0]=o=>t.value=o)},{trigger:f.withCtx(()=>[i[1]||(i[1]=f.createElementVNode("div",{class:"w-2 h-2 bg-chat-haze-400 rounded-full absolute left-[-20px] top-2"},null,-1)),f.createElementVNode("div",mte,[f.createElementVNode("span",hte,f.toDisplayString(n.title),1),f.createVNode(y2,{class:f.normalizeClass(t.value?"rotate-90":"rotate-0")},null,8,["class"])])]),default:f.withCtx(()=>[f.renderSlot(n.$slots,"default")]),_:3},8,["open"]))}}),yte={class:"chat-padding-page"},gte={class:"relative pl-4 h-max"},Ete={class:"flex flex-col gap-y-3"},Tte={class:"flex justify-between items-center"},bte={class:"text-chat-haze-600 font-bold"},Ste={class:"flex justify-between items-center"},Ite={class:"text-chat-haze-400 font-normal"},S2=f.defineComponent({__name:"CustomerCheckIn",setup(e){const t=f.computed(()=>{var n;return kk(((n=ui.value)==null?void 0:n.checkin)??[])});return f.ref(!0),f.ref(!0),(n,i)=>(f.openBlock(),f.createElementBlock("div",yte,[i[1]||(i[1]=f.createElementVNode("p",{class:"font-semibold mb-4"},"Total Point: 666",-1)),f.createElementVNode("div",gte,[i[0]||(i[0]=f.createElementVNode("div",{class:"absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2"},null,-1)),(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.value,(o,r)=>(f.openBlock(),f.createBlock(b2,{class:"relative",title:o.year,key:r},{default:f.withCtx(()=>[f.createElementVNode("div",Ete,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.items,s=>(f.openBlock(),f.createElementBlock("div",{key:s.id},[f.createVNode(E2,null,{header:f.withCtx(()=>[f.createElementVNode("div",Tte,[f.createElementVNode("p",bte,"ID: "+f.toDisplayString(s.id),1),f.createElementVNode("p",{class:"font-bold",style:f.normalizeStyle({color:f.unref(T2).Orange})},f.toDisplayString(s.status),5)])]),content:f.withCtx(()=>[f.createElementVNode("div",Ste,[f.createElementVNode("p",Ite,f.toDisplayString(f.unref(kt)(s.created_at).format(f.unref(Is).DATE_FORMAT)),1),f.withDirectives(f.createElementVNode("p",{class:"text-chat-success"},"+"+f.toDisplayString(s.point_bonus)+" points",513),[[f.vShow,s.point_bonus>0]]),f.withDirectives(f.createElementVNode("p",{class:""},"+"+f.toDisplayString(s.point_bonus)+" points",513),[[f.vShow,!s.point_bonus]])])]),_:2},1024)]))),128))])]),_:2},1032,["title"]))),128))])]))}}),Ate={},Cte={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rte(e,t){return f.openBlock(),f.createElementBlock("svg",Cte,t[0]||(t[0]=[f.createStaticVNode('<path d="M5.8335 17.5V15" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.1665 17.5V12.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.1665 5V2.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.8335 7.5V2.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.8335 15C5.05693 15 4.66865 15 4.36235 14.8732C3.95398 14.704 3.62952 14.3795 3.46036 13.9712C3.3335 13.6648 3.3335 13.2766 3.3335 12.5C3.3335 11.7234 3.3335 11.3352 3.46036 11.0288C3.62952 10.6205 3.95398 10.296 4.36235 10.1268C4.66865 10 5.05693 10 5.8335 10C6.61006 10 6.99835 10 7.30464 10.1268C7.71301 10.296 8.03747 10.6205 8.20663 11.0288C8.3335 11.3352 8.3335 11.7234 8.3335 12.5C8.3335 13.2766 8.3335 13.6648 8.20663 13.9712C8.03747 14.3795 7.71301 14.704 7.30464 14.8732C6.99835 15 6.61006 15 5.8335 15Z" stroke="currentColor" stroke-width="1.25"></path><path d="M14.1665 10C13.3899 10 13.0017 10 12.6953 9.87317C12.287 9.704 11.9625 9.3795 11.7933 8.97117C11.6665 8.66483 11.6665 8.27657 11.6665 7.5C11.6665 6.72343 11.6665 6.33515 11.7933 6.02886C11.9625 5.62048 12.287 5.29602 12.6953 5.12687C13.0017 5 13.3899 5 14.1665 5C14.9431 5 15.3313 5 15.6377 5.12687C16.046 5.29602 16.3705 5.62048 16.5397 6.02886C16.6665 6.33515 16.6665 6.72343 16.6665 7.5C16.6665 8.27657 16.6665 8.66483 16.5397 8.97117C16.3705 9.3795 16.046 9.704 15.6377 9.87317C15.3313 10 14.9431 10 14.1665 10Z" stroke="currentColor" stroke-width="1.25"></path>',6)]))}const Mte=Pt(Ate,[["render",Rte]]);var Ws=(e=>(e.Confirmed="confirmed",e.Scheduled="scheduled",e.Canceled="canceled",e.Done="done",e.Reminder="reminder",e.Waiting="wait_list",e))(Ws||{});const Ote={class:"chat-padding-page"},wte={class:"flex justify-between items-center mb-5"},Nte={class:"flex text-chat-haze-300 border border-chat-haze-300 rounded-[99px] px-2"},xte={class:"relative pl-4 h-max"},Pte={class:"flex flex-col gap-y-3"},Dte={class:"flex justify-between items-center"},kte={class:"text-lg text-chat-haze-600 font-bold"},Lte={class:"translate-y-[-4px]"},Ute={class:"flex justify-between items-end"},Bte={class:"text-chat-haze-400"},jte={class:"text-chat-haze-400"},Fte={class:"text-chat-haze-409 font-medium"},Vte={class:"text-chat-haze-409 font-medium"},I2=f.defineComponent({__name:"CustomerAppointment",setup(e){const t=f.computed(()=>{var i;return kk(((i=ui.value)==null?void 0:i.appointment)??[],"start_time")}),n=i=>{switch(i){case Ws.Confirmed:return"background-color: #E3FFF1; color: #06C270";case Ws.Scheduled:return"background-color: #FFF0FF; color: #6600CC";case Ws.Canceled:return"background-color: #FFE4DC; color: #F15220";case Ws.Done:return"background-color: #E5F0FF; color: #0063F7";case Ws.Waiting:return"background-color: #FFF0E0; color: #D96A2B";case"website":return"background-color: #FFF3B6; color: #F5B02A";case"checkin":return"background-color: #fff; color: #00b1bc";default:return""}};return(i,o)=>(f.openBlock(),f.createElementBlock("div",Ote,[f.createElementVNode("div",wte,[o[1]||(o[1]=f.createElementVNode("p",{class:"text-chat-haze-900 font-semibold"},"All Appointment",-1)),f.createElementVNode("button",Nte,[o[0]||(o[0]=f.createElementVNode("span",{class:"font-medium"},"Filter",-1)),f.createVNode(Mte)])]),f.createElementVNode("div",xte,[o[2]||(o[2]=f.createElementVNode("div",{class:"absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2"},null,-1)),(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.value,(r,s)=>(f.openBlock(),f.createBlock(b2,{class:"relative",title:r.year,key:s},{default:f.withCtx(()=>[f.createElementVNode("div",Pte,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.items,l=>(f.openBlock(),f.createBlock(E2,{key:l.id},{header:f.withCtx(()=>[f.createElementVNode("div",Dte,[f.createElementVNode("p",kte,"ID: "+f.toDisplayString(l.id),1),f.createElementVNode("div",Lte,[f.createElementVNode("div",{class:"w-max rounded-[6px] text-14px px-2 py-1 mt-2",style:f.normalizeStyle(n(l.status))},f.toDisplayString(l.status),5)])]),f.createElementVNode("div",Ute,[f.createElementVNode("p",Bte,f.toDisplayString(f.unref(kt)(l.start_time).format(f.unref(Is).DATE_FORMAT)),1),f.createElementVNode("p",jte," start time: "+f.toDisplayString(f.unref(kt)(l.start_time).format(f.unref(Is).TIME_12_FORMAT)),1)])]),content:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(l.services,(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"flex justify-between items-center",key:d},[f.createElementVNode("p",Fte,f.toDisplayString(u.employee_name),1),f.createElementVNode("p",Vte,f.toDisplayString(u.name),1)]))),128))]),_:2},1024))),128))])]),_:2},1032,["title"]))),128))])]))}});class gi extends Error{constructor(t){var n,i,o,r;super("ClientResponseError"),this.url="",this.status=0,this.response={},this.isAbort=!1,this.originalError=null,Object.setPrototypeOf(this,gi.prototype),t!==null&&typeof t=="object"&&(this.url=typeof t.url=="string"?t.url:"",this.status=typeof t.status=="number"?t.status:0,this.isAbort=!!t.isAbort,this.originalError=t.originalError,t.response!==null&&typeof t.response=="object"?this.response=t.response:t.data!==null&&typeof t.data=="object"?this.response=t.data:this.response={}),this.originalError||t instanceof gi||(this.originalError=t),typeof DOMException<"u"&&t instanceof DOMException&&(t.name=="AbortError"||t.code==20)&&(this.isAbort=!0),this.name="ClientResponseError "+this.status,this.message=(n=this.response)==null?void 0:n.message,this.message||(this.isAbort?this.message="The request was autocancelled. You can find more info in https://github.com/pocketbase/js-sdk#auto-cancellation.":(r=(o=(i=this.originalError)==null?void 0:i.cause)==null?void 0:o.message)!=null&&r.includes("ECONNREFUSED ::1")?this.message="Failed to connect to the PocketBase server. Try changing the SDK URL from localhost to 127.0.0.1 (https://github.com/pocketbase/js-sdk/issues/21).":this.message="Something went wrong."),this.cause=this.originalError}get data(){return this.response}toJSON(){return{...this}}}const _c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function qte(e,t){const n={};if(typeof e!="string")return n;const i=Object.assign({},{}).decode||Gte;let o=0;for(;o<e.length;){const r=e.indexOf("=",o);if(r===-1)break;let s=e.indexOf(";",o);if(s===-1)s=e.length;else if(s<r){o=e.lastIndexOf(";",r-1)+1;continue}const l=e.slice(o,r).trim();if(n[l]===void 0){let u=e.slice(r+1,s).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1));try{n[l]=i(u)}catch{n[l]=u}}o=s+1}return n}function A2(e,t,n){const i=Object.assign({},n||{}),o=i.encode||Hte;if(!_c.test(e))throw new TypeError("argument name is invalid");const r=o(t);if(r&&!_c.test(r))throw new TypeError("argument val is invalid");let s=e+"="+r;if(i.maxAge!=null){const l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(l)}if(i.domain){if(!_c.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain="+i.domain}if(i.path){if(!_c.test(i.path))throw new TypeError("option path is invalid");s+="; Path="+i.path}if(i.expires){if(!function(u){return Object.prototype.toString.call(u)==="[object Date]"||u instanceof Date}(i.expires)||isNaN(i.expires.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.priority)switch(typeof i.priority=="string"?i.priority.toLowerCase():i.priority){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s}function Gte(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Hte(e){return encodeURIComponent(e)}const zte=typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal;let C2;function $s(e){if(e)try{const t=decodeURIComponent(C2(e.split(".")[1]).split("").map(function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(t)||{}}catch{}return{}}function R2(e,t=0){let n=$s(e);return!(Object.keys(n).length>0&&(!n.exp||n.exp-t>Date.now()/1e3))}C2=typeof atob!="function"||zte?e=>{let t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,r=0,s="";i=t.charAt(r++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}:atob;const M2="pb_auth";class rm{constructor(){this.baseToken="",this.baseModel=null,this._onChangeCallbacks=[]}get token(){return this.baseToken}get record(){return this.baseModel}get model(){return this.baseModel}get isValid(){return!R2(this.token)}get isSuperuser(){var n,i;let t=$s(this.token);return t.type=="auth"&&(((n=this.record)==null?void 0:n.collectionName)=="_superusers"||!((i=this.record)!=null&&i.collectionName)&&t.collectionId=="pbc_3142635823")}get isAdmin(){return console.warn("Please replace pb.authStore.isAdmin with pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),this.isSuperuser}get isAuthRecord(){return console.warn("Please replace pb.authStore.isAuthRecord with !pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),$s(this.token).type=="auth"&&!this.isSuperuser}save(t,n){this.baseToken=t||"",this.baseModel=n||null,this.triggerChange()}clear(){this.baseToken="",this.baseModel=null,this.triggerChange()}loadFromCookie(t,n=M2){const i=qte(t||"")[n]||"";let o={};try{o=JSON.parse(i),(typeof o===null||typeof o!="object"||Array.isArray(o))&&(o={})}catch{}this.save(o.token||"",o.record||o.model||null)}exportToCookie(t,n=M2){var u,d;const i={secure:!0,sameSite:!0,httpOnly:!0,path:"/"},o=$s(this.token);i.expires=o!=null&&o.exp?new Date(1e3*o.exp):new Date("1970-01-01"),t=Object.assign({},i,t);const r={token:this.token,record:this.record?JSON.parse(JSON.stringify(this.record)):null};let s=A2(n,JSON.stringify(r),t);const l=typeof Blob<"u"?new Blob([s]).size:s.length;if(r.record&&l>4096){r.record={id:(u=r.record)==null?void 0:u.id,email:(d=r.record)==null?void 0:d.email};const c=["collectionId","collectionName","verified"];for(const a in this.record)c.includes(a)&&(r.record[a]=this.record[a]);s=A2(n,JSON.stringify(r),t)}return s}onChange(t,n=!1){return this._onChangeCallbacks.push(t),n&&t(this.token,this.record),()=>{for(let i=this._onChangeCallbacks.length-1;i>=0;i--)if(this._onChangeCallbacks[i]==t)return delete this._onChangeCallbacks[i],void this._onChangeCallbacks.splice(i,1)}}triggerChange(){for(const t of this._onChangeCallbacks)t&&t(this.token,this.record)}}class Yte extends rm{constructor(t="pocketbase_auth"){super(),this.storageFallback={},this.storageKey=t,this._bindStorageEvent()}get token(){return(this._storageGet(this.storageKey)||{}).token||""}get record(){const t=this._storageGet(this.storageKey)||{};return t.record||t.model||null}get model(){return this.record}save(t,n){this._storageSet(this.storageKey,{token:t,record:n}),super.save(t,n)}clear(){this._storageRemove(this.storageKey),super.clear()}_storageGet(t){if(typeof window<"u"&&(window!=null&&window.localStorage)){const n=window.localStorage.getItem(t)||"";try{return JSON.parse(n)}catch{return n}}return this.storageFallback[t]}_storageSet(t,n){if(typeof window<"u"&&(window!=null&&window.localStorage)){let i=n;typeof n!="string"&&(i=JSON.stringify(n)),window.localStorage.setItem(t,i)}else this.storageFallback[t]=n}_storageRemove(t){var n;typeof window<"u"&&(window!=null&&window.localStorage)&&((n=window.localStorage)==null||n.removeItem(t)),delete this.storageFallback[t]}_bindStorageEvent(){typeof window<"u"&&(window!=null&&window.localStorage)&&window.addEventListener&&window.addEventListener("storage",t=>{if(t.key!=this.storageKey)return;const n=this._storageGet(this.storageKey)||{};super.save(n.token||"",n.record||n.model||null)})}}class Ao{constructor(t){this.client=t}}class Wte extends Ao{async getAll(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/settings",t)}async update(t,n){return n=Object.assign({method:"PATCH",body:t},n),this.client.send("/api/settings",n)}async testS3(t="storage",n){return n=Object.assign({method:"POST",body:{filesystem:t}},n),this.client.send("/api/settings/test/s3",n).then(()=>!0)}async testEmail(t,n,i,o){return o=Object.assign({method:"POST",body:{email:n,template:i,collection:t}},o),this.client.send("/api/settings/test/email",o).then(()=>!0)}async generateAppleClientSecret(t,n,i,o,r,s){return s=Object.assign({method:"POST",body:{clientId:t,teamId:n,keyId:i,privateKey:o,duration:r}},s),this.client.send("/api/settings/apple/generate-client-secret",s)}}const $te=["requestKey","$cancelKey","$autoCancel","fetch","headers","body","query","params","cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","signal","window"];function sm(e){if(e){e.query=e.query||{};for(let t in e)$te.includes(t)||(e.query[t]=e[t],delete e[t])}}function O2(e){const t=[];for(const n in e){const i=encodeURIComponent(n),o=Array.isArray(e[n])?e[n]:[e[n]];for(let r of o)r=Kte(r),r!==null&&t.push(i+"="+r)}return t.join("&")}function Kte(e){return e==null?null:e instanceof Date?encodeURIComponent(e.toISOString().replace("T"," ")):encodeURIComponent(typeof e=="object"?JSON.stringify(e):e)}class w2 extends Ao{constructor(){super(...arguments),this.clientId="",this.eventSource=null,this.subscriptions={},this.lastSentSubscriptions=[],this.maxConnectTimeout=15e3,this.reconnectAttempts=0,this.maxReconnectAttempts=1/0,this.predefinedReconnectIntervals=[200,300,500,1e3,1200,1500,2e3],this.pendingConnects=[]}get isConnected(){return!!this.eventSource&&!!this.clientId&&!this.pendingConnects.length}async subscribe(t,n,i){var s;if(!t)throw new Error("topic must be set.");let o=t;if(i){sm(i=Object.assign({},i));const l="options="+encodeURIComponent(JSON.stringify({query:i.query,headers:i.headers}));o+=(o.includes("?")?"&":"?")+l}const r=function(l){const u=l;let d;try{d=JSON.parse(u==null?void 0:u.data)}catch{}n(d||{})};return this.subscriptions[o]||(this.subscriptions[o]=[]),this.subscriptions[o].push(r),this.isConnected?this.subscriptions[o].length===1?await this.submitSubscriptions():(s=this.eventSource)==null||s.addEventListener(o,r):await this.connect(),async()=>this.unsubscribeByTopicAndListener(t,r)}async unsubscribe(t){var i;let n=!1;if(t){const o=this.getSubscriptionsByTopic(t);for(let r in o)if(this.hasSubscriptionListeners(r)){for(let s of this.subscriptions[r])(i=this.eventSource)==null||i.removeEventListener(r,s);delete this.subscriptions[r],n||(n=!0)}}else this.subscriptions={};this.hasSubscriptionListeners()?n&&await this.submitSubscriptions():this.disconnect()}async unsubscribeByPrefix(t){var i;let n=!1;for(let o in this.subscriptions)if((o+"?").startsWith(t)){n=!0;for(let r of this.subscriptions[o])(i=this.eventSource)==null||i.removeEventListener(o,r);delete this.subscriptions[o]}n&&(this.hasSubscriptionListeners()?await this.submitSubscriptions():this.disconnect())}async unsubscribeByTopicAndListener(t,n){var r;let i=!1;const o=this.getSubscriptionsByTopic(t);for(let s in o){if(!Array.isArray(this.subscriptions[s])||!this.subscriptions[s].length)continue;let l=!1;for(let u=this.subscriptions[s].length-1;u>=0;u--)this.subscriptions[s][u]===n&&(l=!0,delete this.subscriptions[s][u],this.subscriptions[s].splice(u,1),(r=this.eventSource)==null||r.removeEventListener(s,n));l&&(this.subscriptions[s].length||delete this.subscriptions[s],i||this.hasSubscriptionListeners(s)||(i=!0))}this.hasSubscriptionListeners()?i&&await this.submitSubscriptions():this.disconnect()}hasSubscriptionListeners(t){var n,i;if(this.subscriptions=this.subscriptions||{},t)return!!((n=this.subscriptions[t])!=null&&n.length);for(let o in this.subscriptions)if((i=this.subscriptions[o])!=null&&i.length)return!0;return!1}async submitSubscriptions(){if(this.clientId)return this.addAllSubscriptionListeners(),this.lastSentSubscriptions=this.getNonEmptySubscriptionKeys(),this.client.send("/api/realtime",{method:"POST",body:{clientId:this.clientId,subscriptions:this.lastSentSubscriptions},requestKey:this.getSubscriptionsCancelKey()}).catch(t=>{if(!(t!=null&&t.isAbort))throw t})}getSubscriptionsCancelKey(){return"realtime_"+this.clientId}getSubscriptionsByTopic(t){const n={};t=t.includes("?")?t:t+"?";for(let i in this.subscriptions)(i+"?").startsWith(t)&&(n[i]=this.subscriptions[i]);return n}getNonEmptySubscriptionKeys(){const t=[];for(let n in this.subscriptions)this.subscriptions[n].length&&t.push(n);return t}addAllSubscriptionListeners(){if(this.eventSource){this.removeAllSubscriptionListeners();for(let t in this.subscriptions)for(let n of this.subscriptions[t])this.eventSource.addEventListener(t,n)}}removeAllSubscriptionListeners(){if(this.eventSource)for(let t in this.subscriptions)for(let n of this.subscriptions[t])this.eventSource.removeEventListener(t,n)}async connect(){if(!(this.reconnectAttempts>0))return new Promise((t,n)=>{this.pendingConnects.push({resolve:t,reject:n}),this.pendingConnects.length>1||this.initConnect()})}initConnect(){this.disconnect(!0),clearTimeout(this.connectTimeoutId),this.connectTimeoutId=setTimeout(()=>{this.connectErrorHandler(new Error("EventSource connect took too long."))},this.maxConnectTimeout),this.eventSource=new EventSource(this.client.buildURL("/api/realtime")),this.eventSource.onerror=t=>{this.connectErrorHandler(new Error("Failed to establish realtime connection."))},this.eventSource.addEventListener("PB_CONNECT",t=>{const n=t;this.clientId=n==null?void 0:n.lastEventId,this.submitSubscriptions().then(async()=>{let i=3;for(;this.hasUnsentSubscriptions()&&i>0;)i--,await this.submitSubscriptions()}).then(()=>{for(let o of this.pendingConnects)o.resolve();this.pendingConnects=[],this.reconnectAttempts=0,clearTimeout(this.reconnectTimeoutId),clearTimeout(this.connectTimeoutId);const i=this.getSubscriptionsByTopic("PB_CONNECT");for(let o in i)for(let r of i[o])r(t)}).catch(i=>{this.clientId="",this.connectErrorHandler(i)})})}hasUnsentSubscriptions(){const t=this.getNonEmptySubscriptionKeys();if(t.length!=this.lastSentSubscriptions.length)return!0;for(const n of t)if(!this.lastSentSubscriptions.includes(n))return!0;return!1}connectErrorHandler(t){if(clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),!this.clientId&&!this.reconnectAttempts||this.reconnectAttempts>this.maxReconnectAttempts){for(let i of this.pendingConnects)i.reject(new gi(t));return this.pendingConnects=[],void this.disconnect()}this.disconnect(!0);const n=this.predefinedReconnectIntervals[this.reconnectAttempts]||this.predefinedReconnectIntervals[this.predefinedReconnectIntervals.length-1];this.reconnectAttempts++,this.reconnectTimeoutId=setTimeout(()=>{this.initConnect()},n)}disconnect(t=!1){var n;if(this.clientId&&this.onDisconnect&&this.onDisconnect(Object.keys(this.subscriptions)),clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),this.removeAllSubscriptionListeners(),this.client.cancelRequest(this.getSubscriptionsCancelKey()),(n=this.eventSource)==null||n.close(),this.eventSource=null,this.clientId="",!t){this.reconnectAttempts=0;for(let i of this.pendingConnects)i.resolve();this.pendingConnects=[]}}}class N2 extends Ao{decode(t){return t}async getFullList(t,n){if(typeof t=="number")return this._getFullList(t,n);let i=500;return(n=Object.assign({},t,n)).batch&&(i=n.batch,delete n.batch),this._getFullList(i,n)}async getList(t=1,n=30,i){return(i=Object.assign({method:"GET"},i)).query=Object.assign({page:t,perPage:n},i.query),this.client.send(this.baseCrudPath,i).then(o=>{var r;return o.items=((r=o.items)==null?void 0:r.map(s=>this.decode(s)))||[],o})}async getFirstListItem(t,n){return(n=Object.assign({requestKey:"one_by_filter_"+this.baseCrudPath+"_"+t},n)).query=Object.assign({filter:t,skipTotal:1},n.query),this.getList(1,1,n).then(i=>{var o;if(!((o=i==null?void 0:i.items)!=null&&o.length))throw new gi({status:404,response:{code:404,message:"The requested resource wasn't found.",data:{}}});return i.items[0]})}async getOne(t,n){if(!t)throw new gi({url:this.client.buildURL(this.baseCrudPath+"/"),status:404,response:{code:404,message:"Missing required record id.",data:{}}});return n=Object.assign({method:"GET"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),n).then(i=>this.decode(i))}async create(t,n){return n=Object.assign({method:"POST",body:t},n),this.client.send(this.baseCrudPath,n).then(i=>this.decode(i))}async update(t,n,i){return i=Object.assign({method:"PATCH",body:n},i),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),i).then(o=>this.decode(o))}async delete(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),n).then(()=>!0)}_getFullList(t=500,n){(n=n||{}).query=Object.assign({skipTotal:1},n.query);let i=[],o=async r=>this.getList(r,t||500,n).then(s=>{const l=s.items;return i=i.concat(l),l.length==s.perPage?o(r+1):i});return o(1)}}function Xo(e,t,n,i){const o=i!==void 0;return o||n!==void 0?o?(console.warn(e),t.body=Object.assign({},t.body,n),t.query=Object.assign({},t.query,i),t):Object.assign(t,n):t}function lm(e){var t;(t=e._resetAutoRefresh)==null||t.call(e)}class Qte extends N2{constructor(t,n){super(t),this.collectionIdOrName=n}get baseCrudPath(){return this.baseCollectionPath+"/records"}get baseCollectionPath(){return"/api/collections/"+encodeURIComponent(this.collectionIdOrName)}get isSuperusers(){return this.collectionIdOrName=="_superusers"||this.collectionIdOrName=="_pbc_2773867675"}async subscribe(t,n,i){if(!t)throw new Error("Missing topic.");if(!n)throw new Error("Missing subscription callback.");return this.client.realtime.subscribe(this.collectionIdOrName+"/"+t,n,i)}async unsubscribe(t){return t?this.client.realtime.unsubscribe(this.collectionIdOrName+"/"+t):this.client.realtime.unsubscribeByPrefix(this.collectionIdOrName)}async getFullList(t,n){if(typeof t=="number")return super.getFullList(t,n);const i=Object.assign({},t,n);return super.getFullList(i)}async getList(t=1,n=30,i){return super.getList(t,n,i)}async getFirstListItem(t,n){return super.getFirstListItem(t,n)}async getOne(t,n){return super.getOne(t,n)}async create(t,n){return super.create(t,n)}async update(t,n,i){return super.update(t,n,i).then(o=>{var r,s,l;if(((r=this.client.authStore.record)==null?void 0:r.id)===(o==null?void 0:o.id)&&(((s=this.client.authStore.record)==null?void 0:s.collectionId)===this.collectionIdOrName||((l=this.client.authStore.record)==null?void 0:l.collectionName)===this.collectionIdOrName)){let u=Object.assign({},this.client.authStore.record.expand),d=Object.assign({},this.client.authStore.record,o);u&&(d.expand=Object.assign(u,o.expand)),this.client.authStore.save(this.client.authStore.token,d)}return o})}async delete(t,n){return super.delete(t,n).then(i=>{var o,r,s;return!i||((o=this.client.authStore.record)==null?void 0:o.id)!==t||((r=this.client.authStore.record)==null?void 0:r.collectionId)!==this.collectionIdOrName&&((s=this.client.authStore.record)==null?void 0:s.collectionName)!==this.collectionIdOrName||this.client.authStore.clear(),i})}authResponse(t){const n=this.decode((t==null?void 0:t.record)||{});return this.client.authStore.save(t==null?void 0:t.token,n),Object.assign({},t,{token:(t==null?void 0:t.token)||"",record:n})}async listAuthMethods(t){return t=Object.assign({method:"GET",fields:"mfa,otp,password,oauth2"},t),this.client.send(this.baseCollectionPath+"/auth-methods",t)}async authWithPassword(t,n,i){let o;i=Object.assign({method:"POST",body:{identity:t,password:n}},i),this.isSuperusers&&(o=i.autoRefreshThreshold,delete i.autoRefreshThreshold,i.autoRefresh||lm(this.client));let r=await this.client.send(this.baseCollectionPath+"/auth-with-password",i);return r=this.authResponse(r),o&&this.isSuperusers&&function(l,u,d,c){lm(l);const a=l.beforeSend,p=l.authStore.record,v=l.authStore.onChange((_,m)=>{(!_||(m==null?void 0:m.id)!=(p==null?void 0:p.id)||(m!=null&&m.collectionId||p!=null&&p.collectionId)&&(m==null?void 0:m.collectionId)!=(p==null?void 0:p.collectionId))&&lm(l)});l._resetAutoRefresh=function(){v(),l.beforeSend=a,delete l._resetAutoRefresh},l.beforeSend=async(_,m)=>{var y;const h=l.authStore.token;if((y=m.query)!=null&&y.autoRefresh)return a?a(_,m):{url:_,sendOptions:m};let E=l.authStore.isValid;if(E&&R2(l.authStore.token,u))try{await d()}catch{E=!1}E||await c();const g=m.headers||{};for(let b in g)if(b.toLowerCase()=="authorization"&&h==g[b]&&l.authStore.token){g[b]=l.authStore.token;break}return m.headers=g,a?a(_,m):{url:_,sendOptions:m}}}(this.client,o,()=>this.authRefresh({autoRefresh:!0}),()=>this.authWithPassword(t,n,Object.assign({autoRefresh:!0},i))),r}async authWithOAuth2Code(t,n,i,o,r,s,l){let u={method:"POST",body:{provider:t,code:n,codeVerifier:i,redirectURL:o,createData:r}};return u=Xo("This form of authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, body?, query?) is deprecated. Consider replacing it with authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, options?).",u,s,l),this.client.send(this.baseCollectionPath+"/auth-with-oauth2",u).then(d=>this.authResponse(d))}authWithOAuth2(...t){if(t.length>1||typeof(t==null?void 0:t[0])=="string")return console.warn("PocketBase: This form of authWithOAuth2() is deprecated and may get removed in the future. Please replace with authWithOAuth2Code() OR use the authWithOAuth2() realtime form as shown in https://pocketbase.io/docs/authentication/#oauth2-integration."),this.authWithOAuth2Code((t==null?void 0:t[0])||"",(t==null?void 0:t[1])||"",(t==null?void 0:t[2])||"",(t==null?void 0:t[3])||"",(t==null?void 0:t[4])||{},(t==null?void 0:t[5])||{},(t==null?void 0:t[6])||{});const n=(t==null?void 0:t[0])||{};let i=null;n.urlCallback||(i=x2(void 0));const o=new w2(this.client);function r(){i==null||i.close(),o.unsubscribe()}const s={},l=n.requestKey;return l&&(s.requestKey=l),this.listAuthMethods(s).then(u=>{var p;const d=u.oauth2.providers.find(v=>v.name===n.provider);if(!d)throw new gi(new Error(`Missing or invalid provider "${n.provider}".`));const c=this.client.buildURL("/api/oauth2-redirect"),a=l?(p=this.client.cancelControllers)==null?void 0:p[l]:void 0;return a&&(a.signal.onabort=()=>{r()}),new Promise(async(v,_)=>{var m;try{await o.subscribe("@oauth2",async y=>{var T;const b=o.clientId;try{if(!y.state||b!==y.state)throw new Error("State parameters don't match.");if(y.error||!y.code)throw new Error("OAuth2 redirect error or missing code: "+y.error);const S=Object.assign({},n);delete S.provider,delete S.scopes,delete S.createData,delete S.urlCallback,(T=a==null?void 0:a.signal)!=null&&T.onabort&&(a.signal.onabort=null);const I=await this.authWithOAuth2Code(d.name,y.code,d.codeVerifier,c,n.createData,S);v(I)}catch(S){_(new gi(S))}r()});const h={state:o.clientId};(m=n.scopes)!=null&&m.length&&(h.scope=n.scopes.join(" "));const E=this._replaceQueryParams(d.authURL+c,h);await(n.urlCallback||function(y){i?i.location.href=y:i=x2(y)})(E)}catch(h){r(),_(new gi(h))}})}).catch(u=>{throw r(),u})}async authRefresh(t,n){let i={method:"POST"};return i=Xo("This form of authRefresh(body?, query?) is deprecated. Consider replacing it with authRefresh(options?).",i,t,n),this.client.send(this.baseCollectionPath+"/auth-refresh",i).then(o=>this.authResponse(o))}async requestPasswordReset(t,n,i){let o={method:"POST",body:{email:t}};return o=Xo("This form of requestPasswordReset(email, body?, query?) is deprecated. Consider replacing it with requestPasswordReset(email, options?).",o,n,i),this.client.send(this.baseCollectionPath+"/request-password-reset",o).then(()=>!0)}async confirmPasswordReset(t,n,i,o,r){let s={method:"POST",body:{token:t,password:n,passwordConfirm:i}};return s=Xo("This form of confirmPasswordReset(token, password, passwordConfirm, body?, query?) is deprecated. Consider replacing it with confirmPasswordReset(token, password, passwordConfirm, options?).",s,o,r),this.client.send(this.baseCollectionPath+"/confirm-password-reset",s).then(()=>!0)}async requestVerification(t,n,i){let o={method:"POST",body:{email:t}};return o=Xo("This form of requestVerification(email, body?, query?) is deprecated. Consider replacing it with requestVerification(email, options?).",o,n,i),this.client.send(this.baseCollectionPath+"/request-verification",o).then(()=>!0)}async confirmVerification(t,n,i){let o={method:"POST",body:{token:t}};return o=Xo("This form of confirmVerification(token, body?, query?) is deprecated. Consider replacing it with confirmVerification(token, options?).",o,n,i),this.client.send(this.baseCollectionPath+"/confirm-verification",o).then(()=>{const r=$s(t),s=this.client.authStore.record;return s&&!s.verified&&s.id===r.id&&s.collectionId===r.collectionId&&(s.verified=!0,this.client.authStore.save(this.client.authStore.token,s)),!0})}async requestEmailChange(t,n,i){let o={method:"POST",body:{newEmail:t}};return o=Xo("This form of requestEmailChange(newEmail, body?, query?) is deprecated. Consider replacing it with requestEmailChange(newEmail, options?).",o,n,i),this.client.send(this.baseCollectionPath+"/request-email-change",o).then(()=>!0)}async confirmEmailChange(t,n,i,o){let r={method:"POST",body:{token:t,password:n}};return r=Xo("This form of confirmEmailChange(token, password, body?, query?) is deprecated. Consider replacing it with confirmEmailChange(token, password, options?).",r,i,o),this.client.send(this.baseCollectionPath+"/confirm-email-change",r).then(()=>{const s=$s(t),l=this.client.authStore.record;return l&&l.id===s.id&&l.collectionId===s.collectionId&&this.client.authStore.clear(),!0})}async listExternalAuths(t,n){return this.client.collection("_externalAuths").getFullList(Object.assign({},n,{filter:this.client.filter("recordRef = {:id}",{id:t})}))}async unlinkExternalAuth(t,n,i){const o=await this.client.collection("_externalAuths").getFirstListItem(this.client.filter("recordRef = {:recordId} && provider = {:provider}",{recordId:t,provider:n}));return this.client.collection("_externalAuths").delete(o.id,i).then(()=>!0)}async requestOTP(t,n){return n=Object.assign({method:"POST",body:{email:t}},n),this.client.send(this.baseCollectionPath+"/request-otp",n)}async authWithOTP(t,n,i){return i=Object.assign({method:"POST",body:{otpId:t,password:n}},i),this.client.send(this.baseCollectionPath+"/auth-with-otp",i).then(o=>this.authResponse(o))}async impersonate(t,n,i){(i=Object.assign({method:"POST",body:{duration:n}},i)).headers=i.headers||{},i.headers.Authorization||(i.headers.Authorization=this.client.authStore.token);const o=new k2(this.client.baseURL,new rm,this.client.lang),r=await o.send(this.baseCollectionPath+"/impersonate/"+encodeURIComponent(t),i);return o.authStore.save(r==null?void 0:r.token,this.decode((r==null?void 0:r.record)||{})),o}_replaceQueryParams(t,n={}){let i=t,o="";t.indexOf("?")>=0&&(i=t.substring(0,t.indexOf("?")),o=t.substring(t.indexOf("?")+1));const r={},s=o.split("&");for(const l of s){if(l=="")continue;const u=l.split("=");r[decodeURIComponent(u[0].replace(/\+/g," "))]=decodeURIComponent((u[1]||"").replace(/\+/g," "))}for(let l in n)n.hasOwnProperty(l)&&(n[l]==null?delete r[l]:r[l]=n[l]);o="";for(let l in r)r.hasOwnProperty(l)&&(o!=""&&(o+="&"),o+=encodeURIComponent(l.replace(/%20/g,"+"))+"="+encodeURIComponent(r[l].replace(/%20/g,"+")));return o!=""?i+"?"+o:i}}function x2(e){if(typeof window>"u"||!(window!=null&&window.open))throw new gi(new Error("Not in a browser context - please pass a custom urlCallback function."));let t=1024,n=768,i=window.innerWidth,o=window.innerHeight;t=t>i?i:t,n=n>o?o:n;let r=i/2-t/2,s=o/2-n/2;return window.open(e,"popup_window","width="+t+",height="+n+",top="+s+",left="+r+",resizable,menubar=no")}class Jte extends N2{get baseCrudPath(){return"/api/collections"}async import(t,n=!1,i){return i=Object.assign({method:"PUT",body:{collections:t,deleteMissing:n}},i),this.client.send(this.baseCrudPath+"/import",i).then(()=>!0)}async getScaffolds(t){return t=Object.assign({method:"GET"},t),this.client.send(this.baseCrudPath+"/meta/scaffolds",t)}async truncate(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t)+"/truncate",n).then(()=>!0)}}class Xte extends Ao{async getList(t=1,n=30,i){return(i=Object.assign({method:"GET"},i)).query=Object.assign({page:t,perPage:n},i.query),this.client.send("/api/logs",i)}async getOne(t,n){if(!t)throw new gi({url:this.client.buildURL("/api/logs/"),status:404,response:{code:404,message:"Missing required log id.",data:{}}});return n=Object.assign({method:"GET"},n),this.client.send("/api/logs/"+encodeURIComponent(t),n)}async getStats(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/logs/stats",t)}}class Zte extends Ao{async check(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/health",t)}}class ene extends Ao{getUrl(t,n,i={}){return console.warn("Please replace pb.files.getUrl() with pb.files.getURL()"),this.getURL(t,n,i)}getURL(t,n,i={}){if(!n||!(t!=null&&t.id)||!(t!=null&&t.collectionId)&&!(t!=null&&t.collectionName))return"";const o=[];o.push("api"),o.push("files"),o.push(encodeURIComponent(t.collectionId||t.collectionName)),o.push(encodeURIComponent(t.id)),o.push(encodeURIComponent(n));let r=this.client.buildURL(o.join("/"));if(Object.keys(i).length){i.download===!1&&delete i.download;const s=new URLSearchParams(i);r+=(r.includes("?")?"&":"?")+s}return r}async getToken(t){return t=Object.assign({method:"POST"},t),this.client.send("/api/files/token",t).then(n=>(n==null?void 0:n.token)||"")}}class tne extends Ao{async getFullList(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/backups",t)}async create(t,n){return n=Object.assign({method:"POST",body:{name:t}},n),this.client.send("/api/backups",n).then(()=>!0)}async upload(t,n){return n=Object.assign({method:"POST",body:t},n),this.client.send("/api/backups/upload",n).then(()=>!0)}async delete(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(`/api/backups/${encodeURIComponent(t)}`,n).then(()=>!0)}async restore(t,n){return n=Object.assign({method:"POST"},n),this.client.send(`/api/backups/${encodeURIComponent(t)}/restore`,n).then(()=>!0)}getDownloadUrl(t,n){return console.warn("Please replace pb.backups.getDownloadUrl() with pb.backups.getDownloadURL()"),this.getDownloadURL(t,n)}getDownloadURL(t,n){return this.client.buildURL(`/api/backups/${encodeURIComponent(n)}?token=${encodeURIComponent(t)}`)}}class nne extends Ao{async getFullList(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/crons",t)}async run(t,n){return n=Object.assign({method:"POST"},n),this.client.send(`/api/crons/${encodeURIComponent(t)}`,n).then(()=>!0)}}function um(e){return typeof Blob<"u"&&e instanceof Blob||typeof File<"u"&&e instanceof File||e!==null&&typeof e=="object"&&e.uri&&(typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal)}function dm(e){var t;return e&&(((t=e.constructor)==null?void 0:t.name)==="FormData"||typeof FormData<"u"&&e instanceof FormData)}function P2(e){for(const t in e){const n=Array.isArray(e[t])?e[t]:[e[t]];for(const i of n)if(um(i))return!0}return!1}const ine=/^[\-\.\d]+$/;function D2(e){if(typeof e!="string")return e;if(e=="true")return!0;if(e=="false")return!1;if((e[0]==="-"||e[0]>="0"&&e[0]<="9")&&ine.test(e)){let t=+e;if(""+t===e)return t}return e}class one extends Ao{constructor(){super(...arguments),this.requests=[],this.subs={}}collection(t){return this.subs[t]||(this.subs[t]=new rne(this.requests,t)),this.subs[t]}async send(t){const n=new FormData,i=[];for(let o=0;o<this.requests.length;o++){const r=this.requests[o];if(i.push({method:r.method,url:r.url,headers:r.headers,body:r.json}),r.files)for(let s in r.files){const l=r.files[s]||[];for(let u of l)n.append("requests."+o+"."+s,u)}}return n.append("@jsonPayload",JSON.stringify({requests:i})),t=Object.assign({method:"POST",body:n},t),this.client.send("/api/batch",t)}}class rne{constructor(t,n){this.requests=[],this.requests=t,this.collectionIdOrName=n}upsert(t,n){n=Object.assign({body:t||{}},n);const i={method:"PUT",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(i,n),this.requests.push(i)}create(t,n){n=Object.assign({body:t||{}},n);const i={method:"POST",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(i,n),this.requests.push(i)}update(t,n,i){i=Object.assign({body:n||{}},i);const o={method:"PATCH",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(t)};this.prepareRequest(o,i),this.requests.push(o)}delete(t,n){n=Object.assign({},n);const i={method:"DELETE",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(t)};this.prepareRequest(i,n),this.requests.push(i)}prepareRequest(t,n){if(sm(n),t.headers=n.headers,t.json={},t.files={},n.query!==void 0){const o=O2(n.query);o&&(t.url+=(t.url.includes("?")?"&":"?")+o)}let i=n.body;dm(i)&&(i=function(r){let s={};return r.forEach((l,u)=>{if(u==="@jsonPayload"&&typeof l=="string")try{let d=JSON.parse(l);Object.assign(s,d)}catch(d){console.warn("@jsonPayload error:",d)}else s[u]!==void 0?(Array.isArray(s[u])||(s[u]=[s[u]]),s[u].push(D2(l))):s[u]=D2(l)}),s}(i));for(const o in i){const r=i[o];if(um(r))t.files[o]=t.files[o]||[],t.files[o].push(r);else if(Array.isArray(r)){const s=[],l=[];for(const u of r)um(u)?s.push(u):l.push(u);if(s.length>0&&s.length==r.length){t.files[o]=t.files[o]||[];for(let u of s)t.files[o].push(u)}else if(t.json[o]=l,s.length>0){let u=o;o.startsWith("+")||o.endsWith("+")||(u+="+"),t.files[u]=t.files[u]||[];for(let d of s)t.files[u].push(d)}}else t.json[o]=r}}}class k2{get baseUrl(){return this.baseURL}set baseUrl(t){this.baseURL=t}constructor(t="/",n,i="en-US"){this.cancelControllers={},this.recordServices={},this.enableAutoCancellation=!0,this.baseURL=t,this.lang=i,n?this.authStore=n:typeof window<"u"&&window.Deno?this.authStore=new rm:this.authStore=new Yte,this.collections=new Jte(this),this.files=new ene(this),this.logs=new Xte(this),this.settings=new Wte(this),this.realtime=new w2(this),this.health=new Zte(this),this.backups=new tne(this),this.crons=new nne(this)}get admins(){return this.collection("_superusers")}createBatch(){return new one(this)}collection(t){return this.recordServices[t]||(this.recordServices[t]=new Qte(this,t)),this.recordServices[t]}autoCancellation(t){return this.enableAutoCancellation=!!t,this}cancelRequest(t){return this.cancelControllers[t]&&(this.cancelControllers[t].abort(),delete this.cancelControllers[t]),this}cancelAllRequests(){for(let t in this.cancelControllers)this.cancelControllers[t].abort();return this.cancelControllers={},this}filter(t,n){if(!n)return t;for(let i in n){let o=n[i];switch(typeof o){case"boolean":case"number":o=""+o;break;case"string":o="'"+o.replace(/'/g,"\\'")+"'";break;default:o=o===null?"null":o instanceof Date?"'"+o.toISOString().replace("T"," ")+"'":"'"+JSON.stringify(o).replace(/'/g,"\\'")+"'"}t=t.replaceAll("{:"+i+"}",o)}return t}getFileUrl(t,n,i={}){return console.warn("Please replace pb.getFileUrl() with pb.files.getURL()"),this.files.getURL(t,n,i)}buildUrl(t){return console.warn("Please replace pb.buildUrl() with pb.buildURL()"),this.buildURL(t)}buildURL(t){var i;let n=this.baseURL;return typeof window>"u"||!window.location||n.startsWith("https://")||n.startsWith("http://")||(n=(i=window.location.origin)!=null&&i.endsWith("/")?window.location.origin.substring(0,window.location.origin.length-1):window.location.origin||"",this.baseURL.startsWith("/")||(n+=window.location.pathname||"/",n+=n.endsWith("/")?"":"/"),n+=this.baseURL),t&&(n+=n.endsWith("/")?"":"/",n+=t.startsWith("/")?t.substring(1):t),n}async send(t,n){n=this.initSendOptions(t,n);let i=this.buildURL(t);if(this.beforeSend){const o=Object.assign({},await this.beforeSend(i,n));o.url!==void 0||o.options!==void 0?(i=o.url||i,n=o.options||n):Object.keys(o).length&&(n=o,console!=null&&console.warn&&console.warn("Deprecated format of beforeSend return: please use `return { url, options }`, instead of `return options`."))}if(n.query!==void 0){const o=O2(n.query);o&&(i+=(i.includes("?")?"&":"?")+o),delete n.query}return this.getHeader(n.headers,"Content-Type")=="application/json"&&n.body&&typeof n.body!="string"&&(n.body=JSON.stringify(n.body)),(n.fetch||fetch)(i,n).then(async o=>{var s;let r={};try{r=await o.json()}catch(l){if((s=n.signal)!=null&&s.aborted||typeof DOMException<"u"&&l instanceof DOMException&&(l.name=="AbortError"||l.code==20))throw l}if(this.afterSend&&(r=await this.afterSend(o,r,n)),o.status>=400)throw new gi({url:o.url,status:o.status,data:r});return r}).catch(o=>{throw new gi(o)})}initSendOptions(t,n){if((n=Object.assign({method:"GET"},n)).body=function(o){if(typeof FormData>"u"||o===void 0||typeof o!="object"||o===null||dm(o)||!P2(o))return o;const r=new FormData;for(const s in o){const l=o[s];if(l!==void 0)if(typeof l!="object"||P2({data:l})){const u=Array.isArray(l)?l:[l];for(let d of u)r.append(s,d)}else{let u={};u[s]=l,r.append("@jsonPayload",JSON.stringify(u))}}return r}(n.body),sm(n),n.query=Object.assign({},n.params,n.query),n.requestKey===void 0&&(n.$autoCancel===!1||n.query.$autoCancel===!1?n.requestKey=null:(n.$cancelKey||n.query.$cancelKey)&&(n.requestKey=n.$cancelKey||n.query.$cancelKey)),delete n.$autoCancel,delete n.query.$autoCancel,delete n.$cancelKey,delete n.query.$cancelKey,this.getHeader(n.headers,"Content-Type")!==null||dm(n.body)||(n.headers=Object.assign({},n.headers,{"Content-Type":"application/json"})),this.getHeader(n.headers,"Accept-Language")===null&&(n.headers=Object.assign({},n.headers,{"Accept-Language":this.lang})),this.authStore.token&&this.getHeader(n.headers,"Authorization")===null&&(n.headers=Object.assign({},n.headers,{Authorization:this.authStore.token})),this.enableAutoCancellation&&n.requestKey!==null){const i=n.requestKey||(n.method||"GET")+t;delete n.requestKey,this.cancelRequest(i);const o=new AbortController;this.cancelControllers[i]=o,n.signal=o.signal}return n}getHeader(t,n){t=t||{},n=n.toLowerCase();for(let i in t)if(i.toLowerCase()==n)return t[i];return null}}const sne=new k2("https://gap-calendar-log.gci-app.dtsmart.dev/"),lne=async e=>{await sne.collection("go_chat_service").create(e)},vc=f.ref(!1);function une(){const e="notifyIdAppointment",t=async s=>{try{if(vc.value=!1,(await cH(s.props)).tenant_error){const d=await o()}await n(s.props,s.responsive),await qd();const u=i();return vc.value=!0,u}catch(l){return vc.value=!0,console.log(l),{}}},n=async(s,l)=>{var u,d,c;await lH(),((u=Xe.value)==null?void 0:u.user_type)=="tenant"&&await uH(),ov(gD+((d=Xe.value)==null?void 0:d.id)),iv(gD+((c=Xe.value)==null?void 0:c.id)),l=="mobile"?Xn(mt.CHAT_LIST):Xn(mt.HOME)},i=()=>{const s=window.location.search,l=new URLSearchParams(s),u=l.get("conversation_id")||"",d=l.get("is_unknown")||"";return!u||!d?{}:(r(),{conversation_id:u,is_unknown:d})},o=async()=>{try{const s=window.location.search,l=new URLSearchParams(s),u=l.get("tenant_id")||"",d=l.get("phone")||"",c=l.get("message")||"",a=l.get("customer_name")||"",p=l.get("business_name")||"";return!u||!d||!c||!a||!p?{client_error:!0}:(await sH({tenant_id:u,phone:d,message:c,customer_name:a,business_name:p}),r(),{})}catch(s){return console.log(s),{client_error:!0}}finally{}},r=()=>{const s=new URL(window.location.href);s.search="",window.history.replaceState({},document.title,s)};return{NOTIFY_ID_APPOINTMENT_NAME:e,initPage:t}}const dne={class:"m-auto w-max"},cne={class:"flex gap-4"},ane=f.defineComponent({__name:"Error",setup(e){const t=()=>window.location.reload();return(n,i)=>(f.openBlock(),f.createElementBlock("div",dne,[i[2]||(i[2]=f.createElementVNode("h1",{class:"font-bold text-chat-haze-900 text-center mb-2",style:{"font-size":"56px"}}," 404 ",-1)),i[3]||(i[3]=f.createElementVNode("p",{class:"text-chat-haze-500 text-center mb-8",style:{"font-size":"20px"}}," Page not found. ",-1)),f.createElementVNode("div",cne,[f.createElementVNode("button",{onClick:i[0]||(i[0]=o=>t()),class:"px-6 py-2 bg-[#004AB3] text-white rounded-lg"}," Try Again "),f.createElementVNode("button",{onClick:i[1]||(i[1]=o=>f.unref(jN)()),class:"px-6 py-2 bg-[#004AB3] text-white rounded-lg"}," Logout ")])]))}}),fne={},pne={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function _ne(e,t){return f.openBlock(),f.createElementBlock("svg",pne,t[0]||(t[0]=[f.createElementVNode("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},null,-1)]))}const vne=Pt(fne,[["render",_ne]]),cm="https://web-socket.dev01.dtsmart.dev",mne=async e=>{const t=cm+"/ws/download-record",n=await fetch(t,{method:"POST",body:JSON.stringify({url:e}),headers:{"Content-Type":"application/json"}});if(!n.ok)throw new Error(`Response status: ${n.status}`);const i=await n.blob(),o=window.URL.createObjectURL(i),r=document.createElement("a");r.href=o,r.download="recording.mp3",r.click(),r.remove()},L2=async()=>{var i,o;const e=cm+"/ws/generate-token",t=await fetch(e,{method:"POST",body:JSON.stringify({username:(o=(i=Xe.value)==null?void 0:i.id)==null?void 0:o.toString()}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const n=await t.json();return n==null?void 0:n.accessToken},hne=async e=>{try{const t=cm+"/ws/create-sip-account",n=await fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}});if(!n.ok)throw new Error(`Response status: ${n.status}`);return await n.json()}catch{tv("We’re having trouble connecting the call. Please try again in a moment")}},yne={class:"relative w-full h-full"},gne={class:"edit-scrollbar grow overflow-auto w-full min-w-full drawer-content"},U2=Pt(f.defineComponent({__name:"DrawerBaseCustom",props:{showTitle:{type:Boolean,default:!0},position:{default:"right"},width:{default:550},responsive:{},disabledClose:{type:Boolean},absolute:{type:Boolean},index:{default:1500}},emits:["update:modelValue","afterClose"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=f.ref(!1),s=f.computed(()=>{let d="";return r.value?d="translateX(0)":i.position==="right"?d="translateX(100%)":i.position==="left"&&(d="translateX(-100%)"),{width:i.responsive=="mobile"?"100%":i.width+"px",[i.position]:"0",transform:d}}),l=()=>{r.value=!0},u=async()=>{await o("afterClose"),r.value=!1};return t({close:u,open:l}),(d,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["top-0 bottom-0 right-0 left-0 drawer",{"opacity-1":r.value,"pointer-events-none opacity-0 delay-300":!r.value,absolute:d.absolute,fixed:!d.absolute}]),style:f.normalizeStyle({zIndex:d.index})},[d.disabledClose?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",{key:0,class:"absolute w-full h-full z-[1500]",onClick:u,onTouchstart:f.withModifiers(u,["prevent"])},null,32)),f.createElementVNode("div",yne,[f.createElementVNode("div",{class:"duration-300 ease-out absolute top-0 bg-white flex flex-col drawer-box",style:f.normalizeStyle(s.value)},[f.createElementVNode("div",gne,[f.renderSlot(d.$slots,"content",{},()=>[c[0]||(c[0]=f.createElementVNode("div",{class:"flex p-4 content"},[f.createElementVNode("p")],-1))],!0)])],4)])],6))}}),[["__scopeId","data-v-6db54a67"]]),Ene=(e,t="1")=>{let n=e.replace(/\D/g,"");return n!=null&&n.startsWith(t)?n.slice(t.length):n},Tne={},bne={width:"32",height:"32",viewBox:"0 0 24 24",id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg"};function Sne(e,t){return f.openBlock(),f.createElementBlock("svg",bne,t[0]||(t[0]=[f.createStaticVNode('<line class="cls-1" x1="12" y1="11.05" x2="12" y2="18.68" data-v-e06799fb></line><line class="cls-1" x1="15.82" y1="12.95" x2="15.82" y2="16.77" data-v-e06799fb></line><line class="cls-1" x1="8.18" y1="12.95" x2="8.18" y2="16.77" data-v-e06799fb></line><polygon class="cls-1" points="20.59 6.27 20.59 22.5 3.41 22.5 3.41 1.5 15.82 1.5 20.59 6.27" data-v-e06799fb></polygon><polygon class="cls-1" points="20.59 6.27 20.59 7.23 14.86 7.23 14.86 1.5 15.82 1.5 20.59 6.27" data-v-e06799fb></polygon>',5)]))}const Ine=Pt(Tne,[["render",Sne],["__scopeId","data-v-e06799fb"]]),Ane={},Cne={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rne(e,t){return f.openBlock(),f.createElementBlock("svg",Cne,t[0]||(t[0]=[f.createElementVNode("g",{id:"Menu / Close_MD"},[f.createElementVNode("path",{id:"Vector",d:"M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))}const Mne=Pt(Ane,[["render",Rne]]);function One(e){var t={debug:"ALL",deviceParams:{micEnabled:!0,audioConstraints:{audio:!0,video:!1}}},n=null;let i="",o=null,r=null;const s=async I=>{var A,R,M,x,w,U,L,N,B,F;try{if(n||(n=new window.Plivo(t),(R=(A=n==null?void 0:n.client)==null?void 0:A.on)==null||R.call(A,"onCallAnswered",k=>{c(k)}),(x=(M=n==null?void 0:n.client)==null?void 0:M.on)==null||x.call(M,"onCallTerminated",(k,$)=>a(k,$)),n.client.on("onCallFailed",(k,$)=>{y(k,$)}),n.client.on("onIncomingCallCanceled",k=>{b(k)}),(U=(w=n==null?void 0:n.client)==null?void 0:w.on)==null||U.call(w,"onIncomingCall",(k,$,q)=>{u(q)}),n.client.on("onCallRemoteRinging",k=>d(k)),n.client.on("onMediaPermission",k=>T(k)),(N=(L=n==null?void 0:n.client)==null?void 0:L.on)==null||N.call(L,"onLoginFailed",k=>l(k))),!I.isRefresh){const k=JSON.parse(atob(I.token.split(".")[1]));await hne({sip_username:`${k.sub}_${k.iss}`,did_number:((B=Xe.value)==null?void 0:B.tenant_phone)??""})}await((F=n==null?void 0:n.client)==null?void 0:F.loginWithAccessToken(I.token))}catch(k){console.log("Login error: "+k)}},l=I=>{console.log("Login failed",I)},u=I=>{console.log(I);const A={phone:p(I.src)};e(ot.RINGING,A),i=I==null?void 0:I.callUUID},d=I=>{i=I.callUUID,e(ot.CALLING),o==null||o()},c=I=>{I.callUUID==i&&(o==null||o(),e(ot.CALL_START))},a=(I,A)=>{i===A.callUUID&&(e(ot.CALL_END,{message:I==null?void 0:I.reason}),i="")},p=(I,A="1")=>{let R=I.replace(/[^0-9]/g,"");return R!=null&&R.startsWith(A)?R.slice(A.toString().length):R},v=(I=3e3)=>new Promise((A,R)=>{o=null;const M=setTimeout(()=>{R("Time out error!"),o=null,r=null},I);o=()=>{A(!0),o=null,clearTimeout(M)},r=x=>{R(x),r=null,clearTimeout(M)}}),_=async()=>{var I,A;(A=(I=n==null?void 0:n.client)==null?void 0:I.answer)==null||A.call(I,i),await v(3e3)},m=()=>{var I,A;(A=(I=n==null?void 0:n.client)==null?void 0:I.reject)==null||A.call(I,i)},h=I=>{var A,R,M,x,w;(A=n==null?void 0:n.client)==null||A.mute(),I?(M=(R=n==null?void 0:n.client)==null?void 0:R.mute)==null||M.call(R):(w=(x=n==null?void 0:n.client)==null?void 0:x.unmute)==null||w.call(x)},E=async I=>{n.client.call("+"+I,{number_phone:I}),await v(5e3)},g=I=>{var A,R,M,x;I==ot.RINGING?(R=(A=n==null?void 0:n.client)==null?void 0:A.reject)==null||R.call(A,i):(I==ot.CALL_START||I==ot.CALLING)&&((x=(M=n==null?void 0:n.client)==null?void 0:M.hangup)==null||x.call(M))},y=(I,A)=>{console.log("handleCallFailed",I),r&&(r==null||r(I)),e(ot.CALL_END,{message:I}),I=="User Denied Media Access"&&alert("Microphone access is blocked. Please enable the microphone permission to make a call.")},b=I=>{e(ot.CALL_END,{reason:I.reason??""})},T=I=>{console.log("MediaPermission",I),(I==null?void 0:I.status)=="failure"&&e(ot.MEDIA_PERMISSION_FAIL)};return{plivoLogin:s,plivoCallAnswer:_,plivoCallReject:m,plivoCall:E,plivoEndCall:g,plivoCallSwishMute:h,plivoCallSwishSpeaker:I=>{var A,R,M;alert(I),(M=(R=(A=n==null?void 0:n.client)==null?void 0:A.audio)==null?void 0:R.set)==null||M.call(R,I)}}}const wne={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nne={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xne=f.defineComponent({__name:"IconMic",props:{mute:{type:Boolean,default:!1}},setup(e){return(t,n)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.withDirectives((f.openBlock(),f.createElementBlock("svg",wne,n[0]||(n[0]=[f.createStaticVNode('<path d="M9.40135 12.5C9.63354 12.9014 9.95606 13.244 10.3411 13.5M9.17071 4C9.58254 2.83481 10.6938 2 12 2C13.6569 2 15 3.34315 15 5L15 10.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6 11C6 14.3137 8.68629 17 12 17C12.4675 17 12.9225 16.9465 13.3592 16.8454M18 11C18 11.854 17.8216 12.6663 17.5 13.4017" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><line x1="12" y1="18" x2="12" y2="20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></line><line x1="10" y1="21" x2="14" y2="21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></line><line x1="2.4137" y1="2.03821" x2="19.0382" y2="19.5863" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line>',5)]),512)),[[f.vShow,e.mute]]),f.withDirectives((f.openBlock(),f.createElementBlock("svg",Nne,n[1]||(n[1]=[f.createElementVNode("path",{d:"M9 5C9 3.34315 10.3431 2 12 2C13.6569 2 15 3.34315 15 5V11C15 12.6569 13.6569 14 12 14C10.3431 14 9 12.6569 9 11V5Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M6 11C6 14.3137 8.68629 17 12 17C15.3137 17 18 14.3137 18 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("line",{x1:"12",y1:"18",x2:"12",y2:"20",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("line",{x1:"10",y1:"21",x2:"14",y2:"21",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),512)),[[f.vShow,!e.mute]])],64))}}),Pne={class:"flex flex-col items-center justify-center h-full relative bg-white",style:{"box-shadow":"0 25px 50px -12px rgba(0, 0, 0, 0.25)"}},Dne={class:"h-40 w-40 call-avatar mb-8"},kne={class:"h-40 w-40 rounded-full overflow-hidden mb-4 border-4 border-white flex-center"},Lne={class:"text-center"},Une={class:"text-2xl font-semibold"},Bne={class:"text-gray-400 mt-1"},jne={class:"flex items-center justify-center gap-8 mt-10"},Fne=["href"],Vne=Pt(f.defineComponent({__name:"Calling",props:{responsive:{default:"window"}},emits:["userCalling","endCall","error:mediaPermissionFail"],setup(e,{expose:t,emit:n}){const i=n,o=(H,j)=>{if(H==ot.RINGING)k((j==null?void 0:j.phone)??""),v.value=ot.RINGING,L();else if(H==ot.CONNECT_FAILED||H==ot.NO_ANSWER)x(),v.value=H;else if(H==ot.CALL_END){E.value=(j==null?void 0:j.message)??"";const W=(j==null?void 0:j.reason)=="ORIGINATOR_CANCEL";x({closeModal:W}),v.value=H}else H==ot.CALL_START?(v.value=H,M()):H==ot.MEDIA_PERMISSION_FAIL&&mD()},{plivoLogin:r,plivoCallAnswer:s,plivoCall:l,plivoEndCall:u,plivoCallSwishMute:d,plivoCallSwishSpeaker:c}=One(o),a=f.computed(()=>({[ot.CONNECTING]:"Connecting...",[ot.CALLING]:"Calling...",[ot.RINGING]:"Ringing...",[ot.CONNECT_FAILED]:E.value||"Connect Error",[ot.CALL_START]:"",[ot.CALL_END]:E.value||"Call Ended",[ot.NO_ANSWER]:"No Answer",[ot.CANCEL]:"",[ot.TIME_OUT]:"",[ot.BUSY]:"",[ot.MEDIA_PERMISSION_FAIL]:""})),p=f.computed(()=>a.value[v.value]??""),v=f.ref(ot.CONNECTING),_=f.ref("00:00"),m=f.ref(!1),h=f.ref(!1),E=f.ref(""),g=f.ref(""),y=f.ref(null),b=f.ref(null),T=f.ref(!1);let S=null,I=null,A=null,R="call";f.onMounted(async()=>{var H;try{if((H=Xe.value)!=null&&H.tenant_phone){const j=await L2();await r({token:j}),setTimeout(U,15*60*1e3)}}catch{tv("We’re having trouble connecting the call. Please try again in a moment")}}),f.onUnmounted(()=>{S&&clearInterval(S),x(),E.value=""});function M(){let H=0;S=setInterval(()=>{H++;const j=String(Math.floor(H/60)).padStart(2,"0"),W=String(H%60).padStart(2,"0");_.value=`${j}:${W}`},1e3)}function x(H){var j;H!=null&&H.closeModal&&(m.value=!1,(j=y.value)==null||j.close()),w(b.value,R),u(v.value),v.value=ot.CALL_END,clearInterval(S),h.value=!1,T.value=!1,_.value="00:00",S&&clearInterval(S),R=""}const w=Co((H,j)=>{i("endCall",H,j)},500),U=async()=>{try{I&&(clearTimeout(I),I=null);const H=await L2();await r({token:H,isRefresh:!0}),setTimeout(()=>U(),15*60*1e3),A=0}catch(H){console.log(H),A=A+1,A<3?setTimeout(()=>U(),60*1e3):tv("We’re having trouble connecting the call. Please try again in a moment"),console.log(H)}},L=()=>{var H;m.value=!0,h.value=!0,(H=y.value)==null||H.open()},N=async()=>{try{d(!T.value),T.value=!T.value}catch(H){alert(H)}},B=async H=>{try{v.value=ot.CONNECTING,b.value=H,L(),R="call",await l(H.phone),v.value=ot.CALLING}catch(j){x(),console.log(j),E.value=(j==null?void 0:j.message)||JSON.stringify(j),v.value=ot.CONNECT_FAILED}},F=async()=>{try{await s()}catch(H){x(),v.value=ot.CONNECT_FAILED,E.value=(H==null?void 0:H.message)||JSON.stringify(H)}},k=async H=>{var te;let j=null;try{b.value={phone:H,username:""},i("userCalling",b.value);let V={phone:Ene(H,"1"),client_id:((te=Xe.value)==null?void 0:te.tenant_id)??""};j=await $Q(V)}catch(V){console.log(V)}const W={username:(j==null?void 0:j.full_name)||"",phone:j!=null&&j.phone?"1"+(j==null?void 0:j.phone):H};b.value=W,v.value!==ot.CALL_END&&i("userCalling",b.value)},$=async()=>{mne(g.value)},q=()=>{g.value=""};return t({startCall:B,endCall:x,userRemoter:b,callStatus:v,answer:F,label:p}),(H,j)=>(f.openBlock(),f.createBlock(U2,{ref_key:"drawerVisibleRef",ref:y,width:500,"disabled-close":h.value,responsive:H.responsive,onAfterClose:q,index:1501,absolute:""},{content:f.withCtx(()=>{var W,te,V,le,K,G;return[f.createElementVNode("div",Pne,[f.createElementVNode("div",Dne,[f.createElementVNode("div",kne,[f.createVNode(nr,{class:"bg-white z-[2]",src:((W=b.value)==null?void 0:W.avatar)??"",id:((te=b.value)==null?void 0:te.id)??"",color:(V=b.value)==null?void 0:V.color,name:(le=b.value)==null?void 0:le.username,size:"xxl"},null,8,["src","id","color","name"]),v.value==f.unref(ot).RINGING||v.value==f.unref(ot).CALLING?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[j[3]||(j[3]=f.createElementVNode("span",{class:"bubble bubble-1"},null,-1)),j[4]||(j[4]=f.createElementVNode("span",{class:"bubble bubble-2"},null,-1)),j[5]||(j[5]=f.createElementVNode("span",{class:"bubble bubble-3"},null,-1))],64)):f.createCommentVNode("",!0)])]),f.createElementVNode("div",Lne,[f.createElementVNode("h2",Une,f.toDisplayString(((K=b.value)==null?void 0:K.username)||f.unref(Xi)(((G=b.value)==null?void 0:G.phone)??"")),1),f.createElementVNode("p",Bne,f.toDisplayString(v.value==f.unref(ot).CALL_START?_.value:a.value[v.value]),1)]),f.createElementVNode("div",jne,[g.value&&v.value==f.unref(ot).CALL_END?(f.openBlock(),f.createElementBlock("button",{key:0,href:g.value,download:"recording.mp3",onClick:$,class:"w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"},[f.createVNode(Ine)],8,Fne)):f.createCommentVNode("",!0),v.value==f.unref(ot).CALL_START?(f.openBlock(),f.createElementBlock("button",{key:1,onClick:j[0]||(j[0]=oe=>N()),class:"w-16 h-16 shadow-lg bg-white hover:bg-green-600 text-black rounded-full flex items-center justify-center shadow-3xl transition"},[f.createVNode(xne,{mute:T.value},null,8,["mute"])])):f.createCommentVNode("",!0),v.value==f.unref(ot).CALL_END?(f.openBlock(),f.createElementBlock("button",{key:2,onClick:j[1]||(j[1]=oe=>x({closeModal:!0})),class:"w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-3xl transition"},[f.createVNode(Mne)])):f.createCommentVNode("",!0),v.value!=f.unref(ot).CALL_END?(f.openBlock(),f.createElementBlock("button",{key:3,onClick:j[2]||(j[2]=oe=>x()),class:"shadow-3xl w-16 h-16 rounded-full bg-chat-error hover:bg-red-700 flex text-white items-center justify-center"},[f.createVNode(m2)])):f.createCommentVNode("",!0),v.value==f.unref(ot).RINGING?(f.openBlock(),f.createElementBlock("button",{key:4,onClick:F,class:"shadow-3xl w-16 h-16 bg-chat-success hover:bg-green-600 rounded-full text-white flex items-center justify-center shadow-lg transition"},[f.createVNode(vne)])):f.createCommentVNode("",!0)]),j[6]||(j[6]=f.createElementVNode("div",{class:"flex items-center justify-center gap-8 mt-10"},null,-1))])]}),_:1},8,["disabled-close","responsive"]))}}),[["__scopeId","data-v-ef8a4802"]]),qne={},Gne={width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hne(e,t){return f.openBlock(),f.createElementBlock("svg",Gne,t[0]||(t[0]=[f.createElementVNode("path",{d:"M13.9999 25.6667C20.4432 25.6667 25.6666 20.4434 25.6666 14C25.6666 7.55672 20.4432 2.33337 13.9999 2.33337C7.5566 2.33337 2.33325 7.55672 2.33325 14C2.33325 20.4434 7.5566 25.6667 13.9999 25.6667Z",stroke:"#EB5757","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M17.5 10.5L10.5 17.5",stroke:"#EB5757","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),f.createElementVNode("path",{d:"M10.5 10.5L17.5 17.5",stroke:"#EB5757","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const zne=Pt(qne,[["render",Hne]]),Yne=["onClick"],Wne={class:"cursor-pointer"},$ne=f.defineComponent({__name:"SelectBase",props:{modelValue:{},options:{},placement:{},disabled:{type:Boolean}},emits:["update:modelValue","select"],setup(e,{emit:t}){const n=e,i=t,o=f.ref(!1);f.computed(()=>{var u;return((u=n.options.find(d=>d.value===n.modelValue))==null?void 0:u.label)??""});const r=f.computed(()=>n.placement==="bottom"?"top-2 translate-y-full":"-top-4 -translate-y-full");function s(){n.disabled||(o.value=!o.value)}function l(u){i("update:modelValue",u.value),i("select",u.value),o.value=!1}return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"relative inline-block w-full",tabindex:"0",onBlur:d[0]||(d[0]=c=>o.value=!1),onClick:s},[f.withDirectives(f.createElementVNode("ul",{class:f.normalizeClass(["w-max absolute -translate-y-full left-0 z-10 mt-1 max-h-48 overflow-auto rounded-md shadow-custom bg-white shadow-lg",r.value])},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(u.options,(c,a)=>(f.openBlock(),f.createElementBlock("li",{key:a,class:"cursor-pointer text-black px-6 py-2 hover:bg-chat-haze-200 border-b border-chat-haze-200",onClick:f.withModifiers(p=>l(c),["stop"])},f.toDisplayString(c.label),9,Yne))),128))],2),[[f.vShow,o.value]]),f.createElementVNode("div",Wne,[f.renderSlot(u.$slots,"default")])],32))}}),Kne={class:"mx-auto w-full h-full max-w-[700px] flex flex-col gap-4 justify-center px-5"},Qne={class:"chat-input border border-chat-haze-200 p-2 bg-white shadow-md"},Jne={class:"flex items-center gap-2 chat-input border border-chat-haze-200 p-2 bg-white shadow-md"},Xne={class:"relative"},Zne={class:"flex items-center gap-1 px-2 py-1 rounded-lg hover:bg-gray-100"},eie={class:"text-sm text-chat-haze-700"},tie={class:"relative"},nie={class:"flex-center mt-2"},iie=f.defineComponent({__name:"Setting",setup(e){f.ref(!1);const t=f.ref(""),n=f.ref(""),i=[{value:"US",label:"+1 US",dial:1,flag:"🇺🇸"}],o=f.ref(i[0]),r=f.ref(""),s=f.ref(!1),l=()=>{r.value="",t.value=u(t.value)},u=a=>a.replace(/\D/g,""),d=(a,p)=>(p.replace("+",""),p.startsWith(a.toString())),c=async()=>{var a;try{if(!n.value){r.value="Business name is required.";return}if(!t.value||u(t.value).length>10){r.value="Phone number must contain 10 digits";return}if(d(o.value.dial,t.value)){r.value=`Phone number does not match country code ${o.value.value}`;return}s.value=!0;const p={tenant_id:(a=Xe.value)==null?void 0:a.tenant_id,phone_forward:o.value.dial+t.value,tenant_name:n.value};await lne(p),Xn(mt.REGISTER_SUCCESS)}catch(p){console.log(p),r.value=(p==null?void 0:p.message)||"Something error!"}s.value=!1};return(a,p)=>(f.openBlock(),f.createElementBlock("div",Kne,[p[7]||(p[7]=f.createElementVNode("div",{class:"mb-2"},[f.createElementVNode("p",{class:"text-3xl md:text-3xl text-chat-haze-800 font-bold text-center"}," Activate Go Chat "),f.createElementVNode("p",{class:"italic text-lg text-center"},"Connect with your customers anytime – message & manage appointments instantly.")],-1)),f.createElementVNode("div",null,[p[3]||(p[3]=f.createElementVNode("p",{class:"text-xl text-left font-semibold text-chat-haze-600 mb-2"},"Business name",-1)),f.createElementVNode("div",Qne,[f.withDirectives(f.createElementVNode("input",{class:"!outline-none h-8 px-2 w-full","onUpdate:modelValue":p[0]||(p[0]=v=>n.value=v),placeholder:"Enter business name"},null,512),[[f.vModelText,n.value]])])]),f.createElementVNode("div",null,[p[5]||(p[5]=f.createElementVNode("p",{class:"text-xl text-left font-semibold text-chat-haze-600 mb-2"},"Set up phone forward",-1)),f.createElementVNode("div",Jne,[f.createElementVNode("div",Xne,[f.createVNode($ne,{options:i,placement:"bottom"},{default:f.withCtx(()=>[f.createElementVNode("button",Zne,[f.createElementVNode("span",null,f.toDisplayString(o.value.flag),1),f.createElementVNode("span",eie,"+"+f.toDisplayString(o.value.dial),1),p[4]||(p[4]=f.createElementVNode("svg",{class:"w-4 h-4 text-chat-haze-500",fill:"none",stroke:"currentColor",viewBox:"0 0 20 20"},[f.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 7l5 5 5-5"})],-1))])]),_:1})]),f.withDirectives(f.createElementVNode("input",{class:"!outline-none",type:"tel",maxlength:10,onInput:l,"onUpdate:modelValue":p[1]||(p[1]=v=>t.value=v),placeholder:"Enter phone number"},null,544),[[f.vModelText,t.value]])])]),p[8]||(p[8]=f.createElementVNode("p",{class:"italic text-base text-chat-haze-500"},"This number will be used to receive forwarded calls and customer notifications.",-1)),f.createElementVNode("div",tie,[f.withDirectives(f.createElementVNode("p",{class:"text-chat-error absolute -top-4 left-0"}," * "+f.toDisplayString(r.value),513),[[f.vShow,r.value]])]),f.createElementVNode("div",nie,[f.createVNode(rc,{loading:s.value,type:"primary",class:"w-[230px] h-12 font-medium",onClick:p[2]||(p[2]=v=>c())},{default:f.withCtx(()=>p[6]||(p[6]=[f.createTextVNode("Complete Registration ")])),_:1},8,["loading"])])]))}}),oie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAB0CAYAAABUmhYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADKQSURBVHgBzX0JtB3FdeCt6n67/qK/aEf7LrEICYEsxI63+BgwjjHJYOItiUlyPJMZ52SxZ5w5k5zx2J7k5CQ5yXFijMB2EscL2I7MGITZwQiBQAto/VrQ+vX3995/S3fNrerX79++Xf2+BAhToPPf6666devu91Z1PwHv/ibxnx+50tnZCZmhGsip3YUZbUtqg8U3Oq5Zfrc7NTerXverHTesuFumnJSqeSAagwUdn3JA1vza0Nbd9ykp095Q8fjoc3s3O5nMVJl1C8Uzw/vh8PChSfF4FzYB786m8VLNb3MgN6V3znpPybpMyymFVbPf59W9ktvbPi+/Yua13mj1rGzL9Dquk/aVr1Id+V4lEIaa4EIEIH6RSqna8PhpJfFbza/7Y+XTIKUr8+nO8t6TTw/9Ys83RLEyprLZwviR4gvQ3z+aiN+7qL3bGEoJJQuXX3SzLKRzmaVzNnXctOIz0pGO7/vKyaULoHyQriugkEaOKRCVGngKh2pOjlcDJgrD08giA+DYES+KTNp0EFKAk03hVS0BArxyFdRQeRQcKRR+H/3Fnu+MvnJkC1Tr1dLzhx9FAJUEnH/l7VfNUBsxRG71vA2FKy+6vX3TsrsyPW3dvofsyaWkZpDwffCqHmiOyOCzLyTqVgOQIoBDcxs2Se4rcs2n930Uj7QjU8hg3xFGWACFBU1z3RsqjY08uusb5ZOje/3B4rHiswcetuEPv0IG/6oYGlt09tK5V+dWzLhGZtx8x9XLfiu7qHe2V6kHVK4h41DrtMIhS0WodZoRsjG+FQW5lnIm+pY+4UAllJJpV8iUq800+HWlhQtqff3HRx5//V6/7hWLe088Of7ikacmW+M70d5phsYCi/zKWWvyVy26c8q6ebfmVs5aoiqofaiRou6DqtdRQbQhFMLFvh5EkaYMDf0kZ1D4z4PWi+UwQ213IERYaXcrUHvRRMsAvuuAm3GhtOv4/tEX+344/NyB79Z2H3+p1XovdHsnGRpZXGH59IsL71l2d/byubcUVs1arCNSv1wzBKyjKVXoK2VDG0NEQyILcg0gqgb0Xiy6hQkmeRakqNbbTHI4XhofjPbCcbTVQB+RAkDmVvYc31d6+fBPBh/b/43qvhN7GFrviLa+EwyN0D07s3Ne4ZZL/7DjkrkfzCydvtjY0bFx5dXRmho6xVdOGZAEvDkBu861M2BI1NcmUXqyef0GQAc57Esp3PYsOJkUjGzds/Xkvz73+9WdJ16DOFoXlLEOXNhGF+Cml85c2nXn+q90377uk+metq768DhqZQUdU0BvKSa0UFqAhdpJGUKbLeih4wCiAhCaU2qqHcsCIGFeY86DDmhKcBnjNeXXfJGZ2bmgsHruR1KzOxdVS7U3/DOjpyEqQxesXUjgITNdzBtXZa9e8tn2DYs+mu4uTFfaB5Vq2qZKmidSs+pANGqlAAGiUawtNaF+ULDvis1nQzrsQ7WUMl7/C/26Ip/R6fvoW6UzNQ8K05/qieFTY9sPPXh684t/AiMjAw1QF8y3XigNDemS6/2da77SfedVXyusmXtddlr7FFWua0n2wdHZn10TuQ9TBFnK5Kbqk+8hTAFRRtsEgzPWYX34ODoWIMHPCq2sqK3Fiq8j8vTszimZpTPXpqa40/xi+Vjt9Jhmah0ukDJdCIaGa8703nPtV7puu+LzqenteS2t3si4DneEMBll0GyMSxJfrp3UNNN7VOslG++QfkDms+FiM/2262H/iHnWjMUc1h+raocisgunrWnbsOTjqd623uILfY/BBWLq28lQily69/ev+/rUD6/9A1wY1PvHMBUxVRiRFBHwIIWaSUpwmorQsTbm2sbYBEgl4JKk6cIyV0hInhvjZ6FquryFQVPPlEx+4fQr3fZ0+9gLhy8IU98Ohk7QCmuubZcu+7Xuj63/s47rV37SxYS8PlLWOhkGDzHm0L8hAWlwQv0hJyKHwf2mSECUwkhq4XyRKhLEo2WKB0+T9H0T6OHylc6rMQCU2bRIL5t1pWzPdJYmNBXgbWLsW2UoXZ/Tc+vGL8743Wv/Jr9q1mV+1RN+qRpMwmqqlLA2k0Y1aSKxjzI2/CshLhTA5jkXSnFTzQOmVuY+vE+Fkq/DCDRKtl+rKUxtRGpu91o0wxeLjOtUqmf2wwjU4NzRTWxvhaERunff/Z4v937sij9zchm3PjoOoqbrraoZ19PG88AQEapdVAAA4kEN/0uJbOtrIzbFxSZsDsRNNO1nC5jCvsBw14GbajBVIVOl48j8qtnL82vn3SZKQpV2HHsCojWON9XeKkMNDM3Mro9d+adoYmVtuKSwyiNM2CPseIWM04v0GUCqfdSMiYTJWzGeNspMB+xM96G1SeaaazP3fGw8WMJrKgiYoFJXbi4j88tnbVIp1ynvOPIExGX9vNqbZWiTNt13X/3lbtRMN+XK+kgpqIkxRtoKATYm8BVQH+VA6xSiVVMJfbmP5LBpPxuTbIIRwpQQX0+zv2jA8LH0X6kqKCBTV8zY5LrSLe44+jjE5fSc25thaNO6oWb+uWYm7kQIH5lpQh8LGlyKQ0m3pRZ0zGQ5KkCyT0sq73GrABAPopLm5nOGfRUkC5vN/DZhGMaiX63UlJvPiOzymVeLlHRKO46G5ve8mXq+DG3i2fOJjV/uvWP9Fx0TyZaCYrWILiCpEKBbEvFt12hgRIUjKRq2mUJuLm3zSDYuafGcmTLhO5DrwPBoRuQiyFk9LBuKQlrmls/aiCmOWx44+lwjUDqv9mY0NNvzWxu/1PXr6/7MzaRkTTNTlzITZMnm62wRIkCyBif5JtpsjAGIax+w6wBRRokEnMLPtH/4madVwPonfY/CRRqipjrtOZlbNn2Dt+vs9vEjA6/DeWqpPI++BnDhirkbp952+RecQlZWh0vGwQsRDTpCZHk0SSf1IW6uqBYC2IkrwK4ZdNV8u4vi4jB8bBpHx/KtNcFwAUgOTX0G0yZAzVRJaNxQU8fGIVXIpPLrF92BlzNwnv70XDSUWqt016+v/9P86tlX6BxT6KMhxG3yQAIgbu64xjrsOx9jC06optjMNUceIGqSFSSnN618sm+Zlwd3SXgDtLZE5pr2qVhRw2AJME9dJafmO0vb+rZCUHyYbKmmnStDFcyHbO+d13+14/2rPwu4RST18ZBGwcCGOCUeQNx/ciEQDCmbD6QEocRNEt+kwIj6ZGAwJzPdNly4NaJ4KUsfbgW4Cfd9D+SUrMgtm3ml25btKG7r0wfTzqlMOBlDw7ncnjuu+0rvR9Z+HhNi4Zerejda+Cw9sRFsMgxsUhte52mFsiDGtTopCqZ9qNnm95Ki4Va+OOxvU58kfwsQDeya17SWaupi8cHtyItMb9uq8mtvbMFdmhMETGJrxdAmLunFXct77t701+netnxtoKhP+YhQO2n5jUtpkrTbmkqY3EgTxDXKZtLAMjc3pXQuyoRwLVyDeORL+9ty4yRa2ISVXo9ofcBUU/91Mm4aixDpsT1nn4RKpQxvgaFBm9nW03PrFf89v3LWRtzHRMX3moUDDnkybeRmiPe3mSaRcB8gzjAgi+LBEDd/FCebWZ9sDTa8bX1s/SljbTFEs5PepcEcP7dq9mWpNHSOvdC3BeKeIYZLEt6mTb9l3Ze6brv8U+bgjN6YbjCTpx0CksNygHgES4MTDseBKNP5WAnxKFOw7yrhGjfhNh/LNYv2B4gLhm2dfK1UcxzWR7HrTbroo8elqi/TDuSvWHRbeunMJWQaK+9aamh65YxVXbdc/ue4Qd3pD5Z83NKTNhND88WkhBw4sqy10kxbZGyr8XLNpdrXal4B9kKFC3ZroFrMaeZTKvjeEP4krU/S1OZcwphfzE/rIAqZQqotM6N2vP/5+uD4cBJYp8U8MPXWNX/S9p4lH/Bw9wQRFUn+0Hb+x7ZTARDVZB4tAlmUrY7LCZoURbZO4O1RKu1nw5mbVC4gmEPqQ4tQ9qowUCvCWL1i+qWlzi5lcxxAXOAAovSjSmKEF00vbrOJ3OrZK1Wp5hS3Hf4ZQSXSEjU0vWzOJT23rvlSalZnFzJUheJmM0tJC6afubYA2PNCwRacFFVyc8xzxiQ/CQmfuRDxPhRW+HfCNQh9NgyKyMRpuQ7YOH0FrJo6x6QfA5Wi6e0ImWjFbLECvad0bbDmKZlLC1/KnvL+k7/wzhZPgaUlnVqE7tsu+0Lbtcs/5A2X9UXRasGUIFwKbRpAGQdgJ96b1T7b3CJhXjo+ZBC/Tj9TS0QtkDaxQ/VxmFvohc+v+CD8l4s/BB++aB3Myk+Fw6On4RRaSFPqJvEHtwYiAb9mH6GL+HVwZ3Z0ydFKaWz74f9HUG82q4amVs5a0/3hy77o9rZ1Q6liinuUoTai8LSAm0euWbSfTTv5GLp42penGjZGcBg2/0zn5FpE18eJrR+KKNarkHUy8PsrPgCfWnID5PBzWqZgWcccpLCCZ0/vNSY47bgxC6QsONg+m3n1o5KopSLt9I4d6n/KPzN6EmL4WFrbVYvu1M+Z+Og7Q7EK7XorgnNNpebVZgpoBApsDBcSIH1jjoPNYxM4m8AARNfiQ9zSAMQjZUq0KprVqqrBB2ZdCr8x72pDLh//qzeOCi2fehFk3Qya33pM8BRbcxJDJ9aBWjo2rjLLZy1p37Do45YuccFNXTxzbdu6+beZIySe31wEkMkpA+ixSI5wSFyAuI8CiBOeRq6CXY8uLG6+OWyeJlCi2Z48o7D4nNJy38BBUztSq8DFnRfBp5deDx3ZPOj41sPRbuO08MHhU1Dx0FRKJ4KXsqzJt6yZM0g/MqLqHhQun/cR99K5VzMwMcsC7WsXfjS/YuZi/eCQtrNc+zhClCAhwMnMnw0e7WOL/Oh1sMDi/W0amjQf3YFJiuBpv3DNJfSbXdkp8InF18HaniBF1JrpNjDtGzsFDx5+HplegoyTbs5pU4RWQVHEnelD3Mgb/YBXYeX0TcBahEZT1s2/Ds3tHf54HTzPh3CPk/tHgKgk20wn7UuR48czbL7Vh2jYzhdHfbnNFfC5KRGTTB6w60BwUTE4ArWupl0afHjO5XDb/Ksa9xXe03cljPs1uP/gE/Dk6T0mCg41NEngkmhChdEIHHYyfKl44KadAjDrTGkDTm/bktziaQv0k9EGWwtAzqQksxk2h00mEuBxGAD2SJoTXLWYy2aObUJnYzLVRmD3PUxRdL65pmsefGLhddDuFsx9D/+TjdkePrYNftD3DFSwHltwUgAMDqfTZDSJ4KrP+KLCdV694rdyl83bQJcUyUSc3oJ+alppfopmOjzRbCU4OlmoyT5DHMj1VoS0aR4PRCgx6Fxg+cyDGZWAO5B5FRsvWH/9fQRN7bRMO9y1+Aa4pHuBua5NrdPotXfkGNy37zE4MjYAbakM2MqlXLABkoWVrtXQWb+KABmaWtQ7u2Pt3NuByEFzjsLai26aeuPqz0lpDgPHCEebZIum2iAY0WwRLA/ZW5ls3odqOZ+fz2WLGvlcPFe1uZIQF21MtWbiviHcctGVcMu89eae19iq1Ka2jOnJ/fuegGfPHIAcRreOcJqwbIEOxSWcBxhulAbmn85pq3V9DBTym5belVk//2Y6xsBX+XzO6Sl0S62XvnkfSHMCbuM5wWktV7B+PMrlvoveFy3mtO2v0jHSMq9NgHg07FtwtFkafaWuPAyEqnDltMXwiSXXQt7NNO+7DSP90GE0tUdeAOQ5TMH7ClRMYKggApub4majWYizMhtsOO/0th63Y8o0IHTw9TMp+aXTrlF1Jb26OYkguBnwGRF4rkaREKwfvU4JHfYBCArhtqAA2HVKDGGBTWFS/Ll/Egl4+ZY+5i/6zeHaOMzOd5niwbKO2eYeho/NFOWVocNw74FHsTI0gMzMGkhUOBy2fkpHLpytaNbAShiXVKyN14fKZ8KhZqx+qVPnTas+7eZSQke4AHYTZ2u2wEMl9OeE5hEsz/34MRObH6Xfk5iVZBUAojmqLU8O+5TQ1OJuE9y+YD28f86axnomMB6rl2Hz/kdhx0CfYaZrCgxRenC8AaIxgs0K8RycNv1eCtxay3atn38rdHW16+5mDZ5yasqVKfMIrn6NC0T9py2QsE3OfR1HiGsSWBZGAyJluQcQtQY23IBdk5BMMAov/BwKsd/oXcEgZByLA5umL4O7Fl0LGSzrqcZ/oan9Qd9z8OOjL5lQMtuIakXC/BQ3ugZqJYBcA4gHSGZctYYF+5TouH7ZXVPmt61rwlWahzWv5htIEweFeCnMRjzJkFIJiHATzRdIF0S1yiZEXLM5M1tZEwon/Mzno98VmtpRLAzMK/TAZ5bcDAsKMxvj/GaKsv3sQbhv/+PQPz5q/Cr1vTbho7hQZidZQ5u/NTRQwel23/M9rz5eDOBdlJ/Vce3ST6Xasx1+uRpZsEhAaDKC2Q6J2TSslfZTSRSQXGCw+U1g8yiIu4akvsBw0kFQRrrwsfkb4IaZl5rrOkURjf8Gq2Pwzb1bYefgUcxHs3pXJHGNImENXND4emkkHnFpQp8Q1CkM2go3a5JhmZneszJ38ZybZAEjsqrn2wApsAdA4WdOJPoOINqPEpinRHyB1PRSbebVE45P0o4972sreABM5L661U3hvQ43zFhtynsumlO/UTzQ/+lc4HsHnoYtx18C1xFY3nMi66Uax+ejdFAMRweiubPXaj0Y86Q6cm3dN6787ey8jgVSlqGsytURzxyaBmkzR9xchpMCxE0VQJx4SQUIZVkYNYE+wcPGPMpkYbkGEPfZNm2w5dOaWbqAsLRtBnxm2U0wA6Nb7TPrpBr07Km98MChJ2CkWsRqkE5RhDVApPNRHADsNLbFDBRm5OUeVSwb5dOQWTpto9PbvUh6xeJZrN7XTP4p4oBsQCmCXFMkxBP9pAIE99G2JiDqO3lw0AoXgKiQAMOfpwShNdBJSBGj2jxWee5cuNGcQAhgqWY16PT4EHzrwGPw2sgJ7JdtbJslm1qbheFr4JaHCgcPEptzaMahya0Xq8OV8nhZ5q9c/DFZyHXrqkNIAMmQooyRFqB0QlsgRQkmGNIS7EGWYP/onEk+qVVaw2FRoeKpjY5q654H7515CXx84dWm2hNGtQ6yWx83+e6hJ+HnJ3dACjM/7WP5/LZckuIOljUAJEe/tD+PcYzf9v2arKoBmZ7RvkRmZFaffwkBJr0OzSY5EcCWRSRFblxTw5ZUjOABFDf11JpIhpPN4oRz8QBLb0kM14uwvH0mfHrhjdCT6TR9deHdaRi7x0/uhH89+BSa2pIxtXx+xWhzvmvgZruVVps+lRrItmxv21ULPyFxb62o9GugLYenJUNUQNy+cwmjwQwnMljGJJmpcDEcDh3P79NqDMWX96dw+Hr1Hmd7Kg+/uegauHL6UnM9KLwHzHyjNADf3L8V9o2cxMJ7rvmSZZ6G0UAnaQ0K4lbN5j8p04WNBr55GXQ61ZWb5XbesOw/gePmVKNClOS8uapz85ckUXyMtPSnc3Dfo8Cuxfw+tJgT2BwcfgBDmD3MOgZDH5m1Dj6+YJNhlkdSFB3xfufgL+CJk7vQ1KYhhwUGrwEtCstuLqkfTXIJ3E/S/tTPh+MMrYMozld1vyplIVtw3KAiDxDXEB688EKCBLtWORYEBRvL5+OlvhC+zaSH/XigxInG1wKW+fQdvcc5Wi3DpV1zMaq9EToywXESH1RTO39+fAd898BT5lBYIRUU3jksW9HDZoop82UMHyCY2VObSN/xusLUZdoU/eMJHm7DBHvZQUGeEpJOqAgi1KwB2KWTMocHOnRBkx1BAQZXsDG0wsLHAESPl9h8edh7BGuxvdl2uHvR9cjU+Q3YuOcIQRmvb+wkVoMeg6PlIehIFyICYyt6JJlMgOQcHBLgURg2QdUPj+nHx/QvYbh0kTbtBIibUUrg8J4H9ghtYrww8l5G6daFbm3CClgmyzlpc4dqlw9RjQ4XSYO1JGLw6620wm/gVW7g8+F5V8Ct865s4OCDbEAb9yvIzEfg6ZOvIb4pU2DgfjlkkAfRwIbTlhdJbP416T6lCV2DeRIQL+qDfa5gC6ZAW4XeIYG5xFMt8prXhKmJVr0a5DBnmz2lV4sVnEVpH8MgJOemzeYxWBYfEsxW8ACIR44x6YW4WZ7AU5taD8ZwW2xDzzL41KIbjZD5jf/CbbEtx16E7/c9b8xywclBuMfJ56R+kH5OcjFcOSBGt+QgE9g8IQ4uXTCdLCSmhGgEGQKy5YQ2AppJkRD6KOOMbCf8xqKr4ea5l+HuRQV+fOiXGP4/AwPou9rTOdDHkPmrw3lIb7McAHG/bguMuJUJCu9lmJ7rgrsXXw/LO4M9Ts3M0G++NvwGfGvvY3CiPAad6bwu+FkDRwXRMiU3la2soC2IBAZPt/CdvFyxqGVzFdgDiZAQIVAPokyMm67oGDphGTXTQVP1sYXvgXuWfwDSje2lJatnGYn/xt5HYBhzug4kWKA3E+NDXKhp57gqy3cuuQBRn6fh6KjWxaLAr8+7Cj409/JGH99UgzQWpXoF7n19K7zQf9DsoshGNYj7xxAf7pIAopaNr8m34EgZnqQkdK0eRK2ipNJjM2t04nBCmYCwLarU/zRD29DUXjd7lWFmaLDaUwX4vZUfhN9eehPuVGQMU0NsqN9QBHlIwMk2N10D91G68K7P/2zoWQp3L7nOnP8Jolr9ettA73905Hn4ydFtpr8uvFMCc+sgGd0cRhebr+d4AbsPbL08rgCICkioYNackPsBzkQ6kWATUUQNE/SuHfqqEfNEecN3QfByxzxuOd1jmPpe6MDPmqnBz+yImA+ymXfu28PGrQnFS59410+KzS10wV1Lr4GFbdMbuE4U3l8d6oPNmHOeqg7DlFTWjORpBbVsHptDsX+0v41uVCjCPmBZG3c71GSbwJQCttVUqX3mpo0TXLJFhZPqoGcY/eQPcVf/VCl47br2UZjGN5mqNfV3l73P7CkaTVXmRdDAUymAuKRSoQNIZnZ4TfvzNNZnPzpvA7xvVnCcxIOw9CnNcRK9x7m9v88ESS55OUgsPoC4limI5+4AdoEECwxqhjls2/WIT51218Yv+34QItDfSeHhNSWazYfa/ETY10Xi6RNzezHAGKuUYE3PYuOTNFM9CH4SQj+tdVn3QpMTvzp4GOupZazGuCZFAIgHF9IyF2csJVaIXw0FZaxWgutwB+W/XnwbdGfaGzGtwowziGq/c/BJw9AK+lhzsq/BUPrgsbDQCSC57srpIyDZwvDiTTi3D3ZrRAXD6bplzReUprmwP27PTW94HQiQpKYIMg4yR+d7u5FZIxhZruldBHksbGuN0Jqq/2oGXtY1z2jt7sEjMNRgqiRMDeEpRhgugHSRVOh0VDuvbRr8ETJzDQoQQFANClOUX57ZB3+166fQVzpjarV6bpsg8zVSvGxaS60gX0crutH0kTO/OYc+Q6RPsGVSSOeetrmpnilz0535KX7djyHBP7daUKum+6WxiKDN3c6hIzCKzLq8d6F5llIzMwhGhAma1nQv0kiipvbBkHnQJ0jmbT4+xM0msdF7wgRBKYTz2aU347bYJhO11hu7KHrus9VBZOaD8NjJ3cZN6G0xgNZCa1vn+Yzh9JQW/HWjboYqlBEK/TCwLhfVvKozZeOSOzIzO5a4uXTB/AogxI82UsmPAILk6C2pZZGpOl3YiRpYRPN7KWpJQZ/F0ZqqambvMSUdvD4ftMl4BfsNI1N1hYY+nMEDNdVyXoGwPWNqb55xMfzh6lsw780374bHSb6Fpb0H0NyaAoLBKU7cJE21z3pujLUdm7G5F0iYV+bTUD8xcnTooZe+6mTmd1+cntt7iTM136HPeXKEIAEwR5prCycGRUg/WldFTX1loA+jzXFYhz5VM9oxm+++AaJ9qjaJmqm70EwPaE11U81yHJfqcF6rGcMLI1gNWop7nH90yW2wauo8c5nucT59ag/89a6fwLHSkDG1uoRmM+E2H9rKVXFa8HyS0sUGq5UvDpszJQu1o2cPDfzopf/l+KXqycKai34tM6drhnmxFESl3+ZDufMOJ2pVcQo/h0TSprWMuaA2v2OVMWNmcyZ5l82IU/vPNfphIGSy1lR9nDJv8lgRW3CS6dLGVEetuVQa7lnxfrh97obGcZHwVLvAyHsIvv7qD+Dp/r2YoiAzZdRn2wjMGSwTcEnSZFs/ALubo832dhmJvrN6ZrR/5NVjW6XM53uE66Slr5pAwsmSEnPZYnGc6b5lIcF1ZTRBHwa+/8Dj8NVXvg8DldEG0rIR9vuQRV/2O8iI38OUptPNY5kwKD7Y/KfD5tXM0s9x6n3M98+5GPc439Ngpgfh6b06Csu3Dz4Bj5zaaayC9psC4hElnY8XMbhg8yiXCoYt/+QKwGlFm8dhqcYY7Y9cJaSP+7Qik24Lfs3WPGMTAaYsyIoE5GjuxZHhixSNq7qGq+3C/ei7vrbrRzBYGwWdfQZ1XR/CPPVzyFRdUdKPGYwQptqi3BBfs8eJJn1153z45OKbYWqqrYH3xIn3x4+/Av/S96SxFnl9AoGQl2tLkmWimxStImLOSEobGo0Doa9u/NUGEZz0b9Q6+ien021OKpV1vHpqPDujMD89t2uN+eWjhqaei/PnfShiAMnRG9VwHUdq81tCTdo5cNjUT9f2LDI+1ZwKbzDOpDRofoNA6TAyvhwEShA3j6GmamZ2IJPuWfEB+NCcdQ3iT0S1bxTPwlfR1G7rPwRtGCQ55HWxtsiZuhUBcQ1WCWvln22ujM9HBTWcg3838FKO/lF4KD63/wfDL7z2bw6USphB1AamXLHgI7jrnfX1hjcjDg2ZrTacfG+1MG5+6TWdmug81US/yKzLMSAyPhWCt4roFhYffBUUH3Q+a1ILkqeGAqVh1TBqvx33N/8AGZoxvjdYiTa1Oij7hz0/g+8ffh5cx8X7bsy1AESZZhNywWjFBYIHVHTd0jIHQFQpAKLMlAyuU8iCGioOn/r2U1+o7xvcFZhf6emfSHSDN9goxctbNhMKEK8QUQTC+3QBdKG0hYTUJwHqaCE27/sF/J+Xvw9nx0fMfa1R9UbtV+eH9yxHn7r0fdDm5kz0q4MmSTCpqGAjfU3PAvj0kveir84bZoYFDN1+9sZ2+F7fM+hftZ9OxfDhn7lvBLBbL+6iuBCHdLGVAymdk4ok0Z+tNk8lgZ9yUo1XSQVwlUi7qu75DWsbkXQVARBHkAdCwoIsN7Vck4HMofPDOn74zqEn4Cs7JpiahlSjoO+bg82fW/kB+Nyy98JUZKqu/ergxugYaq/esO5Nt8MnF94AF3ddZGbS/jg8TnJg7A2478CjcLR81tRqw81130LgpK2t8Ltt/5L7SZvmt6o72/JOQfBr7oEqqd9Jp18VX8NwyFRBTGRQPzl0OtWZ70wvmnalTDlSNQoMFAhFlL6lMinfBLBLOv3MJTyEpf2nDlJ2DTZSmkbtN9ilAaONgU+dD0FFCcuEtaJ5jK+C43QwdCfuvf728veafnXyPIreWP+bPf8BPz26HVI4j367VxLR+Vp4jVW06Evh2cwvXX+SD7VFz5E5s4h7ta5GH37174e273wAxqDmNMbV1JRcrmPT0jtc1xV+tWZe1sglByCZeRzZVoymSDuWReqGVgSqfj3wqXVd0A9rv8GxEe0eAp86H3mqmX8UziJT9ZiNuMf5hUtvg5m5qSY9ESYRCuT+wcPb4B9f/znmtBWMmNMA5Dyybb02nLlgK7AXNDhTeAvHUY22MR3A5vbQNWYzel/SH/7Rjq+O7zq7U3drWhVRKpXrZ8f69bEMIaWQDCnbBiuN2mgKwxEBy0Kpn+WBRzBOQUHnqUjw7xx8Cr6+4wcTPhXLg5qpOlgy+6krPojm932QFy50pjJmw3pZe3CcRPcK/eue4aNw//5fwInSoHluxSGP/nHXYeZheHOC2+ICbi4pzWxBDz8fxZWHm9smfGFSEqj1FwfLpWo5BNfEuXZipE9MSeezq+ZcKwI1sAJO2g+0bSHRPjyyo7Bt0XAIN92Ifl/FMqHeeru8J6gohe/UMwV91NTVWM5DV2LKhb+5+FpzzTPaGUS1ulr0N3t+AlveeNlEvBnHjeAbEjTEib7nnq/HhjM3n618Jp+LCwGHyYNK8zedMjHRwEMvfW3s4Z33hkNd0s+Ds8U33GxKeNUaAqgrwX5e0Ja8g2UxrfrQRXBJDz9HtVxrat6U/R449KS5998uux26Mm2mOIDJidn6asMCxX9efat5kGgKBkq+MbYeBlPBK9l+eOg5ePDINqOx4fMovDDC12DTRE5YlXAfyBp9iKcbtrNawOhA6UaDUqHPbOJgoXl1ZvwYWYqKCE7p9Mj+0oFTh9Dimt88pxICbJG2SJUHDTzi40SwSauyfNfPdukyYRX/bsaqztd3PgiDGCzpnjpyDZ8M00dFdJQcng0Ko9odg4fgfoya+8sjptLU+Jm2iHXhpo4HIwAQG8NNNDevSac86DySweb0oP2argA9pcR/5f2nD3n9Zw7Q7hE3UT8x3Cd726e3rZ23CWr14Fd+hF3TpAUh+hcsfWwLEgn9gC1U/9OmsoRmdZeuKCFDL+1aaFIYbVI98JomODyEpq8PV8fg/+IuyqMndpogKCXdmM+z1WbBsj4bHWwxg0hYHzAYfJuSf5YWvLSWKVfqd9DDyE92/OPQll3/BAxmpMlKbTC7YNqN7vT2Lv2CQPPoIUEWIL6AJP/B+wDp1+oRCJqPceLrTXLtU3VKM1ptRL/NihKAatR/tRnWlun+A1vhXtzn1Puh+cYeJ4VJcabpBVjm9hP62oTWRgdqffi9sNFztjba6mgRmSmqe0/tH3zoxf9JfqCnOT7Sav1jJ9yZ7XMKa+ZtVLoMqFRTyvgiOJIcOYoMl3zuuzgssFwP/2qmGk3F8t9YpYhMXdhgljQ5Z2hqnzv9OvzVrh/DMSwgtKUKRji5n+NE5kxUFnzoX95Xgp1xutlSNAX2kiEf06SFI4WLG9qDP9v5z8MP79oMrNk2y/U75M5mFvbckJoztVuNV1X4CwIKJm8UIC1A2B5H4NeTGo+uNVxdFKhgzrkL91OHkam6cF9A8xtuWJ+pjMDXdv4Qnkam6tKfk7DHyfdwOVOT+ulmM6VJgRFYrp2LxkKkH+aeHXlR3HNiX/8Pt/8P2yvKrQytYUc5vXNeYfXs9+gfroOGlnINSqr58oVTxJImtaUutsCLtow5zlKHPUNHYRBz1Plt06Etk4fjpX74O6wG/eTYdtCYZ8jrTblGAMT9XHgNoLUFaU18e58kwT6nJjFUTbkw+sjub40+vHOzDYybNLby9GubK+vm3ZJdOWux1z+q+LvnAaI+xSPXqImkY2jozWFxCbeZWyDjQ33TxYdx3CZ78NiLsGfsJMzMTzXMfXXwmHk4qg1Nsd4/4sJnm5/i51hwtvlFDgegtbbR6Nhh35NgGZqg73O78qK06/j+oacO3ke6RKZJeq0P1M4WT7szOuZll03fIHyd+iiwRbDNAQw6/7U+qgVcinkLtSj8zEtsFAfdUrqIgPgdGj1ljqocKw6gMDvmRCF9KNfm//nCk8yjsFyHhL62Ptxk2+IJDiuSn+oXIWHn0Ud33zfy8533E5Rj43hrrnfk8X3/XD18tk92F/QBaJ8yhBKF+4IwYaaSGiLINYGb4fA+vUcfUOJzN3yLOQfUlSnA9GwHTM1MMfukPiiizUF/WxIvGH6UKD65D+w6FxAebCnLGqiP9lk/LmzN/B9p7yIPqof7+4ae3fdPbJpIszG0eb26/+Se0ZcOP2R+9rCQkX6DqTxF4UgBxKWaPyUVTiLIfWDj6XeAeFqh2MrM8zDsB294kBJbJMQDIlugwhnLmWjT7HjVa+IegF14wutN+mmaI+31qYTSy4cfqu4+uZuhF2n2KJfMXz4x8IIrUj3ZhT2XaTUQddX8cQGb2aXfbSaN+1bal5rlpOTaNi/1szKhX/idB3c24eS4inPAIdw14RaB59YUBp2HuzPTT7s5LO/poHT0P1659+QPtn0JxsyBqsQmW9wL5nhj9OzYI9u+Xh8sDzidBfCFaroleogpCVl6jf+lJrjp/CG6QB40hNfCeZM0FsBeqwWwWxGqFdTs03XY4AjLfNyE8jUCGa8seJjPmsy4n+J25sEfLg70b9n1VTgx2s9QirVWDG3CHts9sHfoqb0P6Ld1ptpyzeoa96M2k0vNFCWuzdRQYvD6qg0xW2SZ5MdsPhwgrkXCAjuMegFaC49N0wGi/lKwueh6oTGPb16YgMxsywq/VIHhJ/duru47sY8MjflOIOMna2Z95Rf7HsckryO/cNoVwsXCvecpt/G0GiVaOBsvYXFTRKVcWa5zbUmKqoHAmcyc2ihhe/CJCxwk4MfnB8uaAJLNrbLgEIxFncm4uN3p+8M/3vG3p3/2+B/DEFRhEmaGsCZrIS1q5Rf6toretjm5VXPWOEoJ3/ONKNFOttk4ISZL7CXpx5nXKvXR1/jxGD42ZtossPgpApsACWhdsqOWiAo5ZygVPnNN+81MCmQ2BaNbXv3Wib/b+nlkZgVamFm+xskaXVdl9JmD3/aLlYqYkguQU9GO9LMNOPWTUamMayq/T+/x87G02AGsbzh+si07mwm0BitsrrC/w+6DZT0UjgRW9A86Kv2sCpra8ZHnDj2AVyoMtZbtXDQ00urHB0/oFw5klszYqFMZqNSCB4VFlPhU8ug1Xtbjiw4/OwnXuSk+FxOdBJ8z12ZhZIs5gY2HFtepC7Lha2ISDDid9rzAWMUf/N62rwxteeXbkPwuTWs7X4bquevlHUefwMqFk1sxa5POkfxKcKiMV4co4biGAdg1mvtZ2icpR00iNEecCxuA3d/ZfDEPlJKqQHR8q5wwLlxB4V3/MMDAv2/7i/7Nz3wZoPELP+fRzltDIQySkKkqJZ3c8pmbnHxGwHgtCM1EPHdM0j7abGY3vB5+pwyxBT48r+X3qbnmNVweuHF8fbBrsGJzJZ1ipDSIFEuUuec77Tnc+6urgX974S/67zPMTJqyZXszDDV4QIOpPtbY8shU1FShNdWcQxJxiaUEp8yin2lUTIMKgLgPStIqG1xg8LjQAJuLCw/15dzE8ziBazcwPCh+jRda+LI9K1XNQ2a++Bdn7nv6y5Bc3Jq0vRWGGqaOv3z0cZVyUVNnbEKfKgBNhg7U9Pt3OQNt0s2B2v4mBUac6dxM24jbyoQn+VKbVbDhBZa5uU9v4mQ2O2STmWf/7Zd/2R8w87x8Jm9vlqEhzrqp8o4jTfMr0fyqal1JZX66O5HgVHPDZivVAbQWhKSqDzWjdJxNU2zpDWVG0ia4jfGtcJqAjdyUyE5tZmu+3/8vv/zLs4HPjD668ibaW2EokMkDn5p2ZG4p+tTOvKn5+l6w5yJFdEE28wcQ10CuOeF42ifJBPKxXFPoNboQPm/SI/Q22DxtiRU7TDlPP0qUEk5HDqtAGM1qn3n/M38O0Rd5npffpO3tYChAyFRtftPSzS7sXY8+1TW7H/XgTUQ6WGqljRwpSvTJ9lbpdXrfB7u5S1pAq/Jg2IdbFYBkoYi4hOCCYabMpcEbG68M/vsL//vM5kgARKd7U+3tYqhuBn/U1GerR84+6Y1V/MzCaZc6hbR5VsZRE7lqkma1CnQm6xMuxLcgBWBnRAx5sAc0AK3zUSqA/N1CBra5qRSaWCFwDxJ3Tr7V/51n/nh4yy6dZ9bhLWolbW8nQ3XT66hVjw4eKj5/cAt0ZLtyy2etd6fmBdRQU9FfSBHsVtKdkKQ3TVLzmVQ2s/nOsDUjN7Cb+aTig7RcA4gLUysONMfgfqbIusLtbcOA0YOhH7/8tyexnFc7PqyL7R68jczU7e1mKFUor7yt7zHIpdpSnYUluKi8k8G9vWrdV2Ki/ksH2gIIDhjIBJNpEx9r689NMp9LJHxOajTI8n3MLwtpqTc0aydGB4YefuUbp/8BC+0A4+cI7rzb281Q2jTC9fL2w48UXz3+oMAgOL8ai/odWeGN1zFgb7ydEexml4otZ4St4sMZzPvb+oT3+B5sOGfSJgKv28bKiLj/JV1HuNNQKx0Jwz995d7BB7Z+dmjLa/+Cd89p1+TNtgvNUGPxvIGx/uKR08+ImpdVrjM91d3WmdZRXqUenD6DCcbqxiNZCclPvVGNaMV0LjRcG7lvFGA3zZwL9J4TvHRPON0FU12p7DvdN/zors2nN2/7YvXY0BFovc37trQLCpzM0aRDevGMVZ3XL/tUbs3cD+eWTF+s3zlYGx0PTkL5wXEgqjXU7ylgmgBRxvC8k7fwTdaCwbLlyZPBagqIAhPFQyrYkNZvkSntPbV//MW+h0rP7vvmWHAGyGZ4Lkh7JxgazhNZSHrZtEs6Ny3/RF4zdsWsJQJzVq9UA81V/Nd8lDHJd3Jm2J4go8y2vb+QIyUSYNlMdVAcwBDPkQrTEP0XSruP7y+/fOTB4pOvbS6+fvpVOL846m1p7xRD6XyRRaVWzr6sY8PCO/NrF9xWWDFjCaB/9fRPDeP/Sj8BhyJve4/vZNQ5F21VYN8j5YhOwNL1OimcFI7WoQ7+E7gRXdp9Yv/4C30/HPvlge8iU186T1Te1vZOM5TOG2Xs8plr269a+NG2DYvuyCyatgAqdfRH0ryAU1R98Co1CJ50FcKWptDT7nQCnl9SX8rP4dJ+EwgGJ8xlOq3f1BEImucpmU2Lyv6Th8aeO/ivxe0Hv1d65cT2ydb4TrRfFUPp/JFFZ9fOuz7TM3Wx05ud3XnTqnswf+uCui/1j4ebH5zRBB2vml8jVjL6Iwg2/8fNsK3CRH2r6acfNMUyppNLQfiArFeu+UK/tKt/9OzwI7v+3hsqvuEdHdk/tuPwY5Ot6Z1sv2qG0sYJIQvr5t4oc7l8Zum0azpuXPUZ4coU1Oo12Z5vl4U0QONIk46WHR8LF/rzuI6cfaUmFDkW6QYMVcZPO1nzrgJMGCU4Gdfc1DtFqlSF+nBpROBOkvJ8b/iRPf9c2Xvycb9UKhdfPPoovMVdkQvV3k0MpY0zN59dM+cKoWRd+TXZcd2qT+Yvnn2TX66OqKpfc9qy3U7azaLvxe2oXK/Uzw6qSZRE+0A9YKR8Gm2qi4677A+Xz+IGQ8rJpNvLu449MvT43m8KdOMO1qfHzvT9Eo5BuQWO74r2bmUobfGgort7dmFBYQVGxeOqXDtTWL/gDndG5xL9W6gdNyy/yy1k8vqdha2aSLugiuPFka2vP6ByTqF6amRv6bmD35P5dI+TT2VVX2l3qb//+KS4vMva/wfAYUtYHdkZRwAAAABJRU5ErkJggg==",rie={},sie={class:"mx-auto w-full h-full max-w-[700px] flex flex-col gap-4 justify-center items-center px-5"};function lie(e,t){return f.openBlock(),f.createElementBlock("div",sie,t[0]||(t[0]=[f.createElementVNode("img",{class:"w-[130px] h-auto",src:oie},null,-1),f.createElementVNode("p",{class:"font-semibold text-center text-2xl"},"Your request has been submitted successfully. Please wait for a response within 24 to 72 hours.",-1)]))}const uie=Pt(rie,[["render",lie]]),die={class:"flex flex-col items-center justify-center w-full h-full py-10 text-center"},cie=f.defineComponent({__name:"NotTenantPhone",props:{isLib:{type:Boolean}},emits:["tryAgain"],setup(e,{emit:t}){const n=()=>{i.isLib?o("tryAgain"):window.location.href="/"},i=e,o=t;return(r,s)=>(f.openBlock(),f.createElementBlock("div",die,[s[1]||(s[1]=f.createStaticVNode(`<div class="w-24 h-24 flex items-center justify-center rounded-full bg-gray-100"><svg xmlns="http://www.w3.org/2000/svg" class="w-10 h-10 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h1.5
33
33
  a2.25 2.25 0 0 0 2.25-2.25v-2.07
34
34
  c0-.516-.351-.966-.852-1.091l-4.423-1.106
@@ -38,4 +38,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
38
38
  c-.176-.414-.027-.888.326-1.153l1.293-.97
39
39
  c.39-.293.563-.795.417-1.173L6.66 3.102
40
40
  A1.125 1.125 0 0 0 5.569 2.25H3.5
41
- A1.25 1.25 0 0 0 2.25 3.5v3.25z"></path></svg></div><h2 class="mt-4 text-3xl font-semibold text-gray-700">No Tenant Phone Found</h2><p class="mt-1 text-xl text-chat-haze-500 max-w-[700px]"> There is currently no phone number configured for this tenant. </p>`,3)),f.createElementVNode("button",{class:"mt-6 px-4 py-2 rounded-xl h-14 w-[150px] bg-chat-primary text-white text-lg font-semibold hover:bg-blue-700 transition",onClick:s[0]||(s[0]=l=>n())}," Try Again ")]))}}),Pr=f.ref("tablet");function aie(e){f.onMounted(()=>{window.addEventListener("resize",n)}),f.onUnmounted(()=>{window.removeEventListener("resize",n)});const t=i=>{const o=document.getElementById("appChatMain");if(!o)return;const r=(o==null?void 0:o.offsetWidth)??0;r>=1180?Pr.value!="window"&&(i||e==null||e(),Pr.value="window"):r>=640?Pr.value!="tablet"&&(i||e==null||e(),Pr.value="tablet"):Pr.value!="mobile"&&(i||e==null||e(),yn.value==mt.HOME&&(yn.value=mt.CHAT_LIST),Pr.value="mobile")},n=Co(()=>{t()},50);return{getResponsiveObserver:t}}const fie={},pie={width:"91",height:"59",viewBox:"0 0 91 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _ie(e,t){return f.openBlock(),f.createElementBlock("svg",pie,t[0]||(t[0]=[f.createElementVNode("path",{d:"M3.74168 24.8029L26.4814 2.89892C27.4131 2.00142 28.6564 1.5 29.9501 1.5H85.0003C87.7617 1.5 90.0003 3.73858 90.0003 6.5V52.5C90.0003 55.2614 87.7617 57.5 85.0003 57.5H30.0815C28.7102 57.5 27.3991 56.9368 26.455 55.9422L3.58392 31.8462C1.69275 29.8537 1.76319 26.7087 3.74168 24.8029Z",stroke:"currentColor","stroke-width":"4"},null,-1),f.createElementVNode("path",{d:"M70.1669 42.072L49.7951 15.5H43.6836L64.0554 42.072H70.1669Z",fill:"currentColor"},null,-1),f.createElementVNode("path",{d:"M43.6837 42.072L64.0555 15.5H70.167L49.7952 42.072H43.6837Z",fill:"currentColor"},null,-1)]))}const vie=Pt(fie,[["render",_ie]]),mie=["onClick"],hie={class:"truncate font-semibold"},yie={class:"truncate"},gie=f.defineComponent({__name:"ConvercationList",props:{active:{},activeModifiers:{}},emits:f.mergeModels(["selectConversation"],["update:active"]),setup(e,{expose:t,emit:n}){const i=n,o=f.ref([]);let r=0;const s=f.ref({page:1,search:""}),l=f.useModel(e,"active"),u=f.ref(null),d=Co(async()=>{var _;if(s.value.page>=r){(_=u.value)==null||_.hideLoading();return}s.value.page=s.value.page+1,await c()},200),c=async(_,m)=>{var h,E,g;try{if(_!=null&&(s.value.search=_),(((h=s.value.search)==null?void 0:h.length)??0)<4)return o.value=[];m!=null&&m.reset&&(l.value=null,s.value.page=1);const y=await ED(s.value);m!=null&&m.reset&&(o.value=[]),o.value.push(...(y==null?void 0:y.items)??[]),s.value.page=((E=y==null?void 0:y._meta)==null?void 0:E.currentPage)||1,r=((g=y==null?void 0:y._meta)==null?void 0:g.pageCount)||1,v(),m!=null&&m.reset&&a()}catch(y){console.log(y)}},a=async()=>{var _;for(;s.value.page<r&&!((_=u.value)!=null&&_.canScroll());)s.value.page=s.value.page+1,await c()},p=_=>{l.value=_,i("selectConversation",_)},v=async()=>{s.value.search.length==10&&(l.value=o.value.find(_=>_.phone==="1"+s.value.search)??null)};return t({getUserList:c,checkActiveUserList:v}),(_,m)=>(f.openBlock(),f.createBlock(sv,{ref_key:"scrollEventRef",ref:u,class:"h-full overflow-auto flex flex-col gap-y-2",onGetDataBottom:f.unref(d),bottom:""},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,h=>{var E;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["shrink-0 w-full overflow-hidden flex items-center gap-2 hover:bg-[#EDF5FF] cursor-pointer px-6 py-2",{"bg-[#EDF5FF]":l.value&&((E=l.value)==null?void 0:E.id)==h.id}]),key:h.id,onClick:g=>p(h)},[f.createVNode(nr,{id:h.id,class:"shrink-0",src:"",color:h.color??"",name:h.username??""},null,8,["id","color","name"]),f.createElementVNode("div",null,[f.createElementVNode("p",hie,f.toDisplayString(h.username),1),f.createElementVNode("p",yie,f.toDisplayString(f.unref(Xi)(h.phone??"")),1)])],10,mie)}),128))]),_:1},8,["onGetDataBottom"]))}}),Eie={},Tie={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bie(e,t){return f.openBlock(),f.createElementBlock("svg",Tie,t[0]||(t[0]=[f.createElementVNode("path",{d:"M3 7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V20L17.6757 18.3378C17.4237 18.2118 17.2977 18.1488 17.1656 18.1044C17.0484 18.065 16.9277 18.0365 16.8052 18.0193C16.6672 18 16.5263 18 16.2446 18H6.2C5.07989 18 4.51984 18 4.09202 17.782C3.71569 17.5903 3.40973 17.2843 3.21799 16.908C3 16.4802 3 15.9201 3 14.8V7.2Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Sie=Pt(Eie,[["render",bie]]),Iie={class:"w-[480px] h-full flex flex-col"},Aie={class:"w-full flex items-center justify-between border-chat-gray-5 layout-shadow border-b px-2 sm:px-6"},Cie={class:"h-[80px] sm:h-[96px] grow"},Rie=["disabled"],Mie={class:"grow overflow-hidden relative"},Oie={class:"shrink-0 w-full px-6 border-chat-gray-5 layout-shadow border-t"},wie={key:0,class:"w-full h-[380px] sm:h-[450px] grid grid-cols-3"},Nie=["onClick"],xie={key:0},Pie={key:1},Die={class:"w-full grid grid-cols-2 gap-4 py-7"},B2=f.defineComponent({__name:"PhoneNumpad",props:f.mergeModels({disabled:{type:Boolean},hideNumpad:{type:Boolean},responsive:{}},{modelValue:{},modelModifiers:{}}),emits:f.mergeModels(["update:modelValue","change","call","back"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=e,o=n,r=f.useModel(e,"modelValue"),s=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"C",value:"Delete"},{label:"0",value:"0"},{label:"X",value:"Backspace"}],l=f.computed(()=>_(r.value??"").length<10||a.value),u=f.ref(null),d=f.ref(null),c=f.ref(),a=f.ref(!1),p=I=>{var R;if(i.disabled||((R=Xe.value)==null?void 0:R.user_type)!="tenant")return;u.value=I.value=="Backspace"?null:I.value,setTimeout(()=>{u.value=null},80);let A=_(r.value??"");I.value==="Backspace"?A=A.slice(0,-1):I.value==="Delete"?A="":A+=I.value,r.value=Pk(A),g(),o("change",A)},v=()=>{r.value=Pk(r.value??""),y()};function _(I){return I.replace(/\D+/g,"")}const m=I=>Co(async()=>{var A;try{await((A=c.value)==null?void 0:A.getUserList(_(r.value??""),{reset:!0}))}catch(R){console.log(R)}a.value=!1},I),h=m(800),E=m(800),g=()=>{a.value=!0,h()},y=()=>{a.value=!0,E()},b=()=>{var R,M,x,w,U,L;r&&((R=c.value)==null||R.checkActiveUserList());let I=_(r.value??""),A={phone:((M=d.value)==null?void 0:M.phone)||"1"+I,username:((x=d.value)==null?void 0:x.username)??"",avatar:((w=d.value)==null?void 0:w.avatar)??"",color:((U=d.value)==null?void 0:U.color)??"",is_unknown:(L=d.value)==null?void 0:L.is_unknown};I.length==10&&o("call",A)},T=()=>{r.value=""},S=I=>{r.value=Xi(I.phone??"")};return t({reset:T}),(I,A)=>{var R;return f.openBlock(),f.createElementBlock("div",Iie,[f.createElementVNode("div",Aie,[I.responsive!="window"?(f.openBlock(),f.createElementBlock("button",{key:0,class:"shrink-0 flex justify-center w-14",onClick:A[0]||(A[0]=M=>o("back"))},[f.createVNode(oc)])):f.createCommentVNode("",!0),f.createElementVNode("div",Cie,[f.withDirectives(f.createElementVNode("input",{"onUpdate:modelValue":A[1]||(A[1]=M=>r.value=M),class:"py-2 w-full h-full text-xl",placeholder:"Enter your phone number",disabled:((R=f.unref(Xe))==null?void 0:R.user_type)!="tenant",onInput:v},null,40,Rie),[[f.vModelText,r.value]])])]),f.createElementVNode("div",Mie,[f.createVNode(gie,{ref_key:"conversationListRef",ref:c,active:d.value,"onUpdate:active":A[2]||(A[2]=M=>d.value=M),onSelectConversation:S},null,8,["active"])]),f.createElementVNode("div",Oie,[I.hideNumpad?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",wie,[(f.openBlock(),f.createElementBlock(f.Fragment,null,f.renderList(s,M=>{var x;return f.createElementVNode("button",{class:f.normalizeClass(["text-3xl sm:text-[40px] flex-center rounded-lg",{"bg-chat-haze-200":!1,"opacity-[0.6] cursor-not-allowed":((x=f.unref(Xe))==null?void 0:x.user_type)!="tenant"}]),onClick:w=>p(M),key:M.value},[M.label!=="X"?(f.openBlock(),f.createElementBlock("span",xie,f.toDisplayString(M.label),1)):(f.openBlock(),f.createElementBlock("span",Pie,[f.createVNode(vie,{class:"w-12"})]))],10,Nie)}),64))])),f.createElementVNode("div",Die,[f.createVNode(rc,{class:f.normalizeClass(["rounded-full h-12 shadow-lg",{"cursor-not-allowed opacity-[0.3] pointer-events-none":l.value}]),type:"success",onClick:A[3]||(A[3]=M=>b())},{default:f.withCtx(()=>[f.createVNode(nm,{weight:2}),A[5]||(A[5]=f.createTextVNode(" Call "))]),_:1},8,["class"]),f.createVNode(rc,{class:f.normalizeClass(["rounded-full h-12 shadow-lg",{"cursor-not-allowed opacity-[0.3] pointer-events-none":!0}]),type:"primary",onClick:A[4]||(A[4]=M=>b())},{default:f.withCtx(()=>[f.createVNode(Sie),A[6]||(A[6]=f.createTextVNode(" Text "))]),_:1})])])])}}}),kie={class:"h-full flex flex-col"},Lie=f.defineComponent({__name:"PhoneNumpad",props:{disabled:{type:Boolean},hideNumpad:{type:Boolean},responsive:{}},emits:["error:noPhoneTenant","call"],setup(e,{expose:t,emit:n}){const i=n,o=f.ref(),r=f.ref(),s=()=>{var d,c;(d=r.value)==null||d.reset(),(c=o.value)==null||c.open()},l=()=>{var d,c;(d=r.value)==null||d.reset(),(c=o.value)==null||c.close()},u=d=>{i("call",d)};return t({openPhoneNumpad:s,closePhoneNumpad:l}),(d,c)=>d.responsive=="window"?(f.openBlock(),f.createBlock(B2,{key:0,onCall:u,class:"bg-white shrink-0 border-l layout-border","model-value":"","hide-numpad":d.hideNumpad,responsive:d.responsive},null,8,["hide-numpad","responsive"])):(f.openBlock(),f.createBlock(U2,{key:1,ref_key:"drawerVisibleRef",ref:o,responsive:d.responsive},{content:f.withCtx(()=>[f.createElementVNode("div",kie,[f.createVNode(B2,{ref_key:"phoneNumpadRef",ref:r,class:"bg-white grow border-l layout-border w-full",onCall:u,"hide-numpad":d.hideNumpad,responsive:d.responsive,onBack:c[0]||(c[0]=a=>{var p;return(p=o.value)==null?void 0:p.close()})},null,8,["hide-numpad","responsive"])])]),_:1},8,["responsive"]))}}),Uie={key:0,class:"w-full bg-chat-error text-white text-sm px-4 py-2 flex items-center justify-between gap-2"},Bie={key:1},jie=f.defineComponent({__name:"PageError",setup(e){const t=()=>{window.location.reload()},n=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0}),window.location.reload()}catch(i){console.log(i)}mD()};return(i,o)=>f.unref(Nl)?(f.openBlock(),f.createElementBlock("div",Uie,[f.createElementVNode("p",null,f.toDisplayString(f.unref(Nl)),1),f.unref(ev)=="prompt"?(f.openBlock(),f.createElementBlock("button",{key:0,class:"bg-white min-h-10 text-chat-haze-600 font-bold w-[250px] rounded-lg",onClick:n}," Ask Permission ")):f.unref(ev)=="denied"?(f.openBlock(),f.createElementBlock("span",Bie)):(f.openBlock(),f.createElementBlock("button",{key:2,class:"bg-white min-h-10 text-chat-haze-600 font-bold text-base w-[200px] rounded-lg",onClick:o[0]||(o[0]=r=>t())}," refresh "))])):f.createCommentVNode("",!0)}}),Fie={key:0,class:"m-auto flex-center sc-full"},Vie={key:5,class:"grow h-full overflow-hidden flex flex-col"},qie={class:"w-full grow flex overflow-hidden relative"},Gie={key:1,class:"grow relative flex flex-col mx-auto w-full h-full bg-[#F9FAFC] overflow-hidden chat-mobile pt-4"},Hie={class:"flex items-center justify-between"},zie={class:"ml-3"},Yie={class:"text-xl font-semibold text-left text-chat-haze-900"},Wie={class:"text-sm font-medium text-chat-haze-900"},$ie={key:1,class:"flex gap-2"},Kie={class:"text-chat-haze-700"},Qie={class:"font-medium text-gray-700"},Jie={key:2},Xie={class:"grow overflow-hidden"},Zie={key:2,class:"flex h-full w-full relative"},eoe={class:"bg-white grow flex flex-col h-full overflow-hidden"},toe={key:0,class:"text-[#141B34] px-6 mt-4"},noe={class:"text-xl font-semibold text-chat-haze-900 ml-3"},ioe={class:"grow overflow-hidden"},ooe=f.defineComponent({__name:"App",props:{token:{},id:{},domain:{},response:{default:"tablet"},isLib:{type:Boolean}},emits:["userCalling","endCall","close","openPhoneNumpad","error:noPhoneTenant","call"],setup(e,{expose:t,emit:n}){const i=[{id:mt.HOME,backFunc:null,backTitle:""},{id:mt.CUSTOMER_DETAIL,backFunc:()=>{Xn(mt.HOME)},backTitle:""},{id:mt.CUSTOMER_APPOINTMENT,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:mt.CUSTOMER_CHECK_IN,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Checkins"}],o=f.computed(()=>{var N,B;return[{id:mt.CHAT_LIST,backFunc:r.isLib?void 0:()=>{jN()},backTitle:"Go Chat",subTitle:((N=Xe.value)==null?void 0:N.user_type)=="tenant"?Xi(((B=Xe.value)==null?void 0:B.tenant_phone)??""):""},{id:mt.HOME,backFunc:()=>{Xn(mt.CHAT_LIST)},backTitle:"",isHidden:!0},{id:mt.CUSTOMER_DETAIL,backFunc:()=>{Xn(mt.HOME)},backTitle:""},{id:mt.CUSTOMER_APPOINTMENT,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:mt.CUSTOMER_CHECK_IN,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Checkins"}]}),r=e,s=n;let l=null;const u=N=>{if(l)return;const B=F=>{var k,$;T.value&&(N!=null&&N.conversation_id?(k=T.value)==null||k.initData({conversation_id:F==null?void 0:F.conversation_id,is_unknown:(F==null?void 0:F.is_unknown)||"0"}):($=T.value)==null||$.initData(),clearInterval(l),l=null)};l=setInterval(()=>B(N),500)},{initPage:d}=une(),{getResponsiveObserver:c}=aie(u);f.onMounted(()=>{c(!0),r.isLib&&(ate(),M())}),f.onUnmounted(()=>{});const a=f.computed(()=>p.value==="mobile"?o.value.find(N=>N.id==yn.value):i.find(N=>N.id==yn.value)),p=f.computed(()=>r.response=="mobile"?r.response:Pr.value),v=f.computed(()=>{var N,B,F,k;return(((B=(N=T.value)==null?void 0:N.listConversationsAll)==null?void 0:B.reduce(($,q)=>$+((q==null?void 0:q.unread_count)??0),0))??0)+(((k=(F=T.value)==null?void 0:F.listConversationsUnknown)==null?void 0:k.reduce(($,q)=>$+((q==null?void 0:q.unread_count)??0),0))??0)}),_=f.computed(()=>{var N,B;return((N=T.value)==null?void 0:N.listConversationsAll.find(F=>F.receiver_id==g.value))??((B=T.value)==null?void 0:B.listConversationsUnknown.find(F=>F.receiver_id==g.value))??null}),m=f.computed(()=>{var N;return((N=E.value)==null?void 0:N.callStatus)??null}),h=f.ref(),E=f.ref(null),g=f.ref(null),y=f.ref(null),b=f.ref(null),T=f.ref(null),S=f.ref(null),I=f.ref(),A=async N=>{var B,F;(g.value!=(N==null?void 0:N.receiver_id)||p.value==="mobile")&&(yn.value!=mt.HOME&&Xn(mt.HOME),g.value=N==null?void 0:N.receiver_id,await f.nextTick(),(B=T.value)==null||B.handleReadMessage(),(F=b.value)==null||F.getData(N))},R=N=>{var B,F;((B=Xe.value)==null?void 0:B.user_type)=="tenant"&&(E.value?(F=E.value)==null||F.startCall(N):s("call",N))},M=async()=>{var B,F;const N=await d({props:r,responsive:p.value});!((B=Xe.value)!=null&&B.tenant_phone)&&((F=Xe.value)==null?void 0:F.user_type)=="tenant"&&(s("error:noPhoneTenant"),Xn(mt.NOT_TENANT_PHONE)),u(N)},x=()=>{var N;(N=S.value)==null||N.open()},w=()=>{var N;(N=T.value)==null||N.handleReadMessage()},U=()=>{var N;(N=I.value)==null||N.openPhoneNumpad()},L=()=>{var N;s("close"),(N=I.value)==null||N.closePhoneNumpad()};return t({get unreadCount(){return v.value},get callStatus(){return m.value},get callLabel(){var N;return((N=E.value)==null?void 0:N.label)??""},getUserRemote:()=>{var N;return((N=E.value)==null?void 0:N.userRemoter)??null},startCall:async()=>{var N;await((N=E.value)==null?void 0:N.answer())},endCall:()=>{var N;return(N=E.value)==null?void 0:N.endCall()},openSettings:x,initData:N=>u(N)}),(N,B)=>{var F,k,$,q,H;return f.openBlock(),f.createElementBlock("div",{class:"go-chat-main max-w-full",id:"appChatMain",ref_key:"appChatRef",ref:h},[f.unref(vc)?f.unref(yn)==f.unref(mt).TENANT_ERROR?(f.openBlock(),f.createBlock(ane,{key:1,class:"mt-10"})):f.unref(yn)==f.unref(mt).REGISTER_TENANT?(f.openBlock(),f.createBlock(iie,{key:2})):f.unref(yn)==f.unref(mt).REGISTER_SUCCESS?(f.openBlock(),f.createBlock(uie,{key:3})):f.unref(yn)==f.unref(mt).NOT_TENANT_PHONE?(f.openBlock(),f.createBlock(cie,{key:4,"is-lib":r.isLib,onTryAgain:B[0]||(B[0]=j=>M())},null,8,["is-lib"])):(f.openBlock(),f.createElementBlock("div",Vie,[N.isLib?(f.openBlock(),f.createBlock(jie,{key:0,class:"shrink-0"})):f.createCommentVNode("",!0),f.createElementVNode("div",qie,[N.isLib?(f.openBlock(),f.createBlock(Vne,{key:0,ref_key:"callingRef",ref:E,onUserCalling:B[1]||(B[1]=j=>s("userCalling",j)),onEndCall:B[2]||(B[2]=j=>s("endCall")),responsive:p.value},null,8,["responsive"])):f.createCommentVNode("",!0),p.value=="mobile"?(f.openBlock(),f.createElementBlock("div",Gie,[f.createElementVNode("div",{class:f.normalizeClass(["text-[#141B34] shrink-0",p.value=="mobile"?"px-4":"px-6"])},[f.createElementVNode("div",Hie,[(F=a.value)!=null&&F.backFunc&&!((k=a.value)!=null&&k.isHidden)?(f.openBlock(),f.createElementBlock("button",{key:0,class:"flex items-center",onClick:B[3]||(B[3]=j=>a.value.backFunc())},[f.createVNode(oc),f.createElementVNode("div",zie,[f.createElementVNode("p",Yie,f.toDisplayString(a.value.backTitle??""),1),f.createElementVNode("p",Wie,f.toDisplayString(a.value.subTitle??""),1)])])):(($=f.unref(Xe))==null?void 0:$.user_type)=="tenant"?(f.openBlock(),f.createElementBlock("div",$ie,[B[11]||(B[11]=f.createTextVNode(" 🏢 ")),f.createElementVNode("div",Kie,[f.createElementVNode("div",Qie,f.toDisplayString(f.unref(Xi)(((q=f.unref(Xe))==null?void 0:q.tenant_phone)??"")??""),1)])])):(f.openBlock(),f.createElementBlock("span",Jie)),r.isLib?(f.openBlock(),f.createElementBlock("button",{key:3,class:"w-10 h-10",onClick:B[4]||(B[4]=j=>L())},[f.createVNode(zne)])):f.createCommentVNode("",!0)])],2),f.createElementVNode("div",Xie,[f.withDirectives(f.createVNode(Dk,{ref_key:"chatListRef",ref:T,class:"w-full max-w-[500px] !bg-[#F9FAFC]",responsive:p.value,onSelectReceiver:A,onOpenPhoneNumpad:B[5]||(B[5]=j=>U()),"receiver-id":g.value,"onUpdate:receiverId":B[6]||(B[6]=j=>g.value=j)},null,8,["responsive","receiver-id"]),[[f.vShow,f.unref(yn)==f.unref(mt).CHAT_LIST]]),f.withDirectives(f.createVNode(h2,{ref_key:"homeComponentRef",ref:b,"receiver-id":g.value,class:"h-full",onCall:R,onBack:B[7]||(B[7]=j=>{var W,te;return(te=(W=a.value).backFunc)==null?void 0:te.call(W)}),onInputFocus:w,conversation:_.value,responsive:p.value},null,8,["receiver-id","conversation","responsive"]),[[f.vShow,f.unref(yn)==f.unref(mt).HOME]]),f.unref(yn)==f.unref(mt).CUSTOMER_DETAIL?(f.openBlock(),f.createBlock(g2,{key:0,ref_key:"customerDetailRef",ref:y,"receiver-id":g.value,class:"w-full h-full",responsive:p.value},null,8,["receiver-id","responsive"])):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_CHECK_IN?(f.openBlock(),f.createBlock(S2,{key:1,class:"w-full h-full"})):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_APPOINTMENT?(f.openBlock(),f.createBlock(I2,{key:2,class:"w-full h-full"})):f.createCommentVNode("",!0)])])):(f.openBlock(),f.createElementBlock("div",Zie,[f.createVNode(Dk,{ref_key:"chatListRef",ref:T,class:"w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border",responsive:p.value,onSelectReceiver:A,onOpenPhoneNumpad:B[8]||(B[8]=j=>U()),"receiver-id":g.value,"onUpdate:receiverId":B[9]||(B[9]=j=>g.value=j)},null,8,["responsive","receiver-id"]),f.createElementVNode("div",eoe,[(H=a.value)!=null&&H.backFunc?(f.openBlock(),f.createElementBlock("div",toe,[f.createElementVNode("button",{class:"flex items-center",onClick:B[10]||(B[10]=j=>a.value.backFunc())},[f.createVNode(oc),f.createElementVNode("span",noe,f.toDisplayString(a.value.backTitle??""),1)])])):f.createCommentVNode("",!0),f.createElementVNode("div",ioe,[f.withDirectives(f.createVNode(h2,{ref_key:"homeComponentRef",ref:b,"receiver-id":g.value,class:"h-full",onCall:R,onInputFocus:w,responsive:p.value,conversation:_.value},null,8,["receiver-id","responsive","conversation"]),[[f.vShow,f.unref(yn)==f.unref(mt).HOME&&g.value]]),f.unref(yn)==f.unref(mt).CUSTOMER_DETAIL?(f.openBlock(),f.createBlock(g2,{key:0,ref_key:"customerDetailRef",ref:y,"receiver-id":g.value,class:"h-full",responsive:p.value},null,8,["receiver-id","responsive"])):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_CHECK_IN?(f.openBlock(),f.createBlock(S2,{key:1,class:"h-full"})):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_APPOINTMENT?(f.openBlock(),f.createBlock(I2,{key:2,class:"h-full"})):f.createCommentVNode("",!0)])])])),f.createVNode(Lie,{onCall:R,ref_key:"phoneNumpadRef",ref:I,"hide-numpad":N.isLib,responsive:p.value,class:"bg-white shrink-0 border-l layout-border"},null,8,["hide-numpad","responsive"])])])):(f.openBlock(),f.createElementBlock("div",Fie,[f.createVNode(iJ)]))],512)}}});bt.PLIVO_CALL_STATUS=ot,bt.default=ooe,Object.defineProperties(bt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
41
+ A1.25 1.25 0 0 0 2.25 3.5v3.25z"></path></svg></div><h2 class="mt-4 text-3xl font-semibold text-gray-700">No Tenant Phone Found</h2><p class="mt-1 text-xl text-chat-haze-500 max-w-[700px]"> There is currently no phone number configured for this tenant. </p>`,3)),f.createElementVNode("button",{class:"mt-6 px-4 py-2 rounded-xl h-14 w-[150px] bg-chat-primary text-white text-lg font-semibold hover:bg-blue-700 transition",onClick:s[0]||(s[0]=l=>n())}," Try Again ")]))}}),Pr=f.ref("tablet");function aie(e){f.onMounted(()=>{window.addEventListener("resize",n)}),f.onUnmounted(()=>{window.removeEventListener("resize",n)});const t=i=>{const o=document.getElementById("appChatMain");if(!o)return;const r=(o==null?void 0:o.offsetWidth)??0;r>=1180?Pr.value!="window"&&(i||e==null||e(),Pr.value="window"):r>=640?Pr.value!="tablet"&&(i||e==null||e(),Pr.value="tablet"):Pr.value!="mobile"&&(i||e==null||e(),yn.value==mt.HOME&&(yn.value=mt.CHAT_LIST),Pr.value="mobile")},n=Co(()=>{t()},50);return{getResponsiveObserver:t}}const fie={},pie={width:"91",height:"59",viewBox:"0 0 91 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _ie(e,t){return f.openBlock(),f.createElementBlock("svg",pie,t[0]||(t[0]=[f.createElementVNode("path",{d:"M3.74168 24.8029L26.4814 2.89892C27.4131 2.00142 28.6564 1.5 29.9501 1.5H85.0003C87.7617 1.5 90.0003 3.73858 90.0003 6.5V52.5C90.0003 55.2614 87.7617 57.5 85.0003 57.5H30.0815C28.7102 57.5 27.3991 56.9368 26.455 55.9422L3.58392 31.8462C1.69275 29.8537 1.76319 26.7087 3.74168 24.8029Z",stroke:"currentColor","stroke-width":"4"},null,-1),f.createElementVNode("path",{d:"M70.1669 42.072L49.7951 15.5H43.6836L64.0554 42.072H70.1669Z",fill:"currentColor"},null,-1),f.createElementVNode("path",{d:"M43.6837 42.072L64.0555 15.5H70.167L49.7952 42.072H43.6837Z",fill:"currentColor"},null,-1)]))}const vie=Pt(fie,[["render",_ie]]),mie=["onClick"],hie={class:"truncate font-semibold"},yie={class:"truncate"},gie=f.defineComponent({__name:"ConvercationList",props:{active:{},activeModifiers:{}},emits:f.mergeModels(["selectConversation"],["update:active"]),setup(e,{expose:t,emit:n}){const i=n,o=f.ref([]);let r=0;const s=f.ref({page:1,search:""}),l=f.useModel(e,"active"),u=f.ref(null),d=Co(async()=>{var _;if(s.value.page>=r){(_=u.value)==null||_.hideLoading();return}s.value.page=s.value.page+1,await c()},200),c=async(_,m)=>{var h,E,g;try{if(_!=null&&(s.value.search=_),(((h=s.value.search)==null?void 0:h.length)??0)<4)return o.value=[];m!=null&&m.reset&&(l.value=null,s.value.page=1);const y=await ED(s.value);m!=null&&m.reset&&(o.value=[]),o.value.push(...(y==null?void 0:y.items)??[]),s.value.page=((E=y==null?void 0:y._meta)==null?void 0:E.currentPage)||1,r=((g=y==null?void 0:y._meta)==null?void 0:g.pageCount)||1,v(),m!=null&&m.reset&&a()}catch(y){console.log(y)}},a=async()=>{var _;for(;s.value.page<r&&!((_=u.value)!=null&&_.canScroll());)s.value.page=s.value.page+1,await c()},p=_=>{l.value=_,i("selectConversation",_)},v=async()=>{s.value.search.length==10&&(l.value=o.value.find(_=>_.phone==="1"+s.value.search)??null)};return t({getUserList:c,checkActiveUserList:v}),(_,m)=>(f.openBlock(),f.createBlock(sv,{ref_key:"scrollEventRef",ref:u,class:"h-full overflow-auto flex flex-col gap-y-2",onGetDataBottom:f.unref(d),bottom:""},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,h=>{var E;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["shrink-0 w-full overflow-hidden flex items-center gap-2 hover:bg-[#EDF5FF] cursor-pointer px-6 py-2",{"bg-[#EDF5FF]":l.value&&((E=l.value)==null?void 0:E.id)==h.id}]),key:h.id,onClick:g=>p(h)},[f.createVNode(nr,{id:h.id,class:"shrink-0",src:"",color:h.color??"",name:h.username??""},null,8,["id","color","name"]),f.createElementVNode("div",null,[f.createElementVNode("p",hie,f.toDisplayString(h.username),1),f.createElementVNode("p",yie,f.toDisplayString(f.unref(Xi)(h.phone??"")),1)])],10,mie)}),128))]),_:1},8,["onGetDataBottom"]))}}),Eie={},Tie={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bie(e,t){return f.openBlock(),f.createElementBlock("svg",Tie,t[0]||(t[0]=[f.createElementVNode("path",{d:"M3 7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V20L17.6757 18.3378C17.4237 18.2118 17.2977 18.1488 17.1656 18.1044C17.0484 18.065 16.9277 18.0365 16.8052 18.0193C16.6672 18 16.5263 18 16.2446 18H6.2C5.07989 18 4.51984 18 4.09202 17.782C3.71569 17.5903 3.40973 17.2843 3.21799 16.908C3 16.4802 3 15.9201 3 14.8V7.2Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Sie=Pt(Eie,[["render",bie]]),Iie={class:"w-[480px] h-full flex flex-col"},Aie={class:"w-full flex items-center justify-between border-chat-gray-5 layout-shadow border-b px-2 sm:px-6"},Cie={class:"h-[80px] sm:h-[96px] grow"},Rie=["disabled"],Mie={class:"grow overflow-hidden relative"},Oie={class:"shrink-0 w-full px-6 border-chat-gray-5 layout-shadow border-t"},wie={key:0,class:"w-full h-[380px] sm:h-[450px] grid grid-cols-3"},Nie=["onClick"],xie={key:0},Pie={key:1},Die={class:"w-full grid grid-cols-2 gap-4 py-7"},B2=f.defineComponent({__name:"PhoneNumpad",props:f.mergeModels({disabled:{type:Boolean},hideNumpad:{type:Boolean},responsive:{}},{modelValue:{},modelModifiers:{}}),emits:f.mergeModels(["update:modelValue","change","call","back"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=e,o=n,r=f.useModel(e,"modelValue"),s=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"C",value:"Delete"},{label:"0",value:"0"},{label:"X",value:"Backspace"}],l=f.computed(()=>_(r.value??"").length<10||a.value),u=f.ref(null),d=f.ref(null),c=f.ref(),a=f.ref(!1),p=I=>{var R;if(i.disabled||((R=Xe.value)==null?void 0:R.user_type)!="tenant")return;u.value=I.value=="Backspace"?null:I.value,setTimeout(()=>{u.value=null},80);let A=_(r.value??"");I.value==="Backspace"?A=A.slice(0,-1):I.value==="Delete"?A="":A+=I.value,r.value=Pk(A),g(),o("change",A)},v=()=>{r.value=Pk(r.value??""),y()};function _(I){return I.replace(/\D+/g,"")}const m=I=>Co(async()=>{var A;try{await((A=c.value)==null?void 0:A.getUserList(_(r.value??""),{reset:!0}))}catch(R){console.log(R)}a.value=!1},I),h=m(800),E=m(800),g=()=>{a.value=!0,h()},y=()=>{a.value=!0,E()},b=()=>{var R,M,x,w,U,L;r&&((R=c.value)==null||R.checkActiveUserList());let I=_(r.value??""),A={phone:((M=d.value)==null?void 0:M.phone)||"1"+I,username:((x=d.value)==null?void 0:x.username)??"",avatar:((w=d.value)==null?void 0:w.avatar)??"",color:((U=d.value)==null?void 0:U.color)??"",is_unknown:(L=d.value)==null?void 0:L.is_unknown};I.length==10&&o("call",A)},T=()=>{r.value=""},S=I=>{r.value=Xi(I.phone??"")};return t({reset:T}),(I,A)=>{var R;return f.openBlock(),f.createElementBlock("div",Iie,[f.createElementVNode("div",Aie,[I.responsive!="window"?(f.openBlock(),f.createElementBlock("button",{key:0,class:"shrink-0 flex justify-center w-14",onClick:A[0]||(A[0]=M=>o("back"))},[f.createVNode(oc)])):f.createCommentVNode("",!0),f.createElementVNode("div",Cie,[f.withDirectives(f.createElementVNode("input",{"onUpdate:modelValue":A[1]||(A[1]=M=>r.value=M),class:"py-2 w-full h-full text-xl",placeholder:"Enter your phone number",disabled:((R=f.unref(Xe))==null?void 0:R.user_type)!="tenant",onInput:v},null,40,Rie),[[f.vModelText,r.value]])])]),f.createElementVNode("div",Mie,[f.createVNode(gie,{ref_key:"conversationListRef",ref:c,active:d.value,"onUpdate:active":A[2]||(A[2]=M=>d.value=M),onSelectConversation:S},null,8,["active"])]),f.createElementVNode("div",Oie,[I.hideNumpad?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",wie,[(f.openBlock(),f.createElementBlock(f.Fragment,null,f.renderList(s,M=>{var x;return f.createElementVNode("button",{class:f.normalizeClass(["text-3xl sm:text-[40px] flex-center rounded-lg",{"bg-chat-haze-200":!1,"opacity-[0.6] cursor-not-allowed":((x=f.unref(Xe))==null?void 0:x.user_type)!="tenant"}]),onClick:w=>p(M),key:M.value},[M.label!=="X"?(f.openBlock(),f.createElementBlock("span",xie,f.toDisplayString(M.label),1)):(f.openBlock(),f.createElementBlock("span",Pie,[f.createVNode(vie,{class:"w-12"})]))],10,Nie)}),64))])),f.createElementVNode("div",Die,[f.createVNode(rc,{class:f.normalizeClass(["rounded-full h-12 shadow-lg",{"cursor-not-allowed opacity-[0.3] pointer-events-none":l.value}]),type:"success",onClick:A[3]||(A[3]=M=>b())},{default:f.withCtx(()=>[f.createVNode(nm,{weight:2}),A[5]||(A[5]=f.createTextVNode(" Call "))]),_:1},8,["class"]),f.createVNode(rc,{class:f.normalizeClass(["rounded-full h-12 shadow-lg",{"cursor-not-allowed opacity-[0.3] pointer-events-none":!0}]),type:"primary",onClick:A[4]||(A[4]=M=>b())},{default:f.withCtx(()=>[f.createVNode(Sie),A[6]||(A[6]=f.createTextVNode(" Text "))]),_:1})])])])}}}),kie={class:"h-full flex flex-col"},Lie=f.defineComponent({__name:"PhoneNumpad",props:{disabled:{type:Boolean},hideNumpad:{type:Boolean},responsive:{}},emits:["error:noPhoneTenant","call"],setup(e,{expose:t,emit:n}){const i=n,o=f.ref(),r=f.ref(),s=()=>{var d,c;(d=r.value)==null||d.reset(),(c=o.value)==null||c.open()},l=()=>{var d,c;(d=r.value)==null||d.reset(),(c=o.value)==null||c.close()},u=d=>{i("call",d)};return t({openPhoneNumpad:s,closePhoneNumpad:l}),(d,c)=>d.responsive=="window"?(f.openBlock(),f.createBlock(B2,{key:0,onCall:u,class:"bg-white shrink-0 border-l layout-border","model-value":"","hide-numpad":d.hideNumpad,responsive:d.responsive},null,8,["hide-numpad","responsive"])):(f.openBlock(),f.createBlock(U2,{key:1,ref_key:"drawerVisibleRef",ref:o,responsive:d.responsive},{content:f.withCtx(()=>[f.createElementVNode("div",kie,[f.createVNode(B2,{ref_key:"phoneNumpadRef",ref:r,class:"bg-white grow border-l layout-border w-full",onCall:u,"hide-numpad":d.hideNumpad,responsive:d.responsive,onBack:c[0]||(c[0]=a=>{var p;return(p=o.value)==null?void 0:p.close()})},null,8,["hide-numpad","responsive"])])]),_:1},8,["responsive"]))}}),Uie={key:0,class:"w-full bg-chat-error text-white text-sm px-4 py-2 flex items-center justify-between gap-2"},Bie={key:1},jie=f.defineComponent({__name:"PageError",setup(e){const t=()=>{window.location.reload()},n=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0}),window.location.reload()}catch(i){console.log(i)}mD()};return(i,o)=>f.unref(Nl)?(f.openBlock(),f.createElementBlock("div",Uie,[f.createElementVNode("p",null,f.toDisplayString(f.unref(Nl)),1),f.unref(ev)=="prompt"?(f.openBlock(),f.createElementBlock("button",{key:0,class:"bg-white min-h-10 text-chat-haze-600 font-bold w-[250px] rounded-lg",onClick:n}," Ask Permission ")):f.unref(ev)=="denied"?(f.openBlock(),f.createElementBlock("span",Bie)):(f.openBlock(),f.createElementBlock("button",{key:2,class:"bg-white min-h-10 text-chat-haze-600 font-bold text-base w-[200px] rounded-lg",onClick:o[0]||(o[0]=r=>t())}," refresh "))])):f.createCommentVNode("",!0)}}),Fie={key:0,class:"m-auto flex-center sc-full"},Vie={key:5,class:"grow h-full overflow-hidden flex flex-col"},qie={class:"w-full grow flex overflow-hidden relative"},Gie={key:1,class:"grow relative flex flex-col mx-auto w-full h-full bg-[#F9FAFC] overflow-hidden chat-mobile pt-4"},Hie={class:"flex items-center justify-between"},zie={class:"ml-3"},Yie={class:"text-xl font-semibold text-left text-chat-haze-900"},Wie={class:"text-sm font-medium text-chat-haze-900"},$ie={key:1,class:"flex gap-2"},Kie={class:"text-chat-haze-700"},Qie={class:"font-medium text-gray-700"},Jie={key:2},Xie={class:"grow overflow-hidden"},Zie={key:2,class:"flex h-full w-full relative"},eoe={class:"bg-white grow flex flex-col h-full overflow-hidden"},toe={key:0,class:"text-[#141B34] px-6 mt-4"},noe={class:"text-xl font-semibold text-chat-haze-900 ml-3"},ioe={class:"grow overflow-hidden"},ooe=f.defineComponent({__name:"App",props:{token:{},id:{},domain:{},response:{default:"tablet"},isLib:{type:Boolean}},emits:["userCalling","endCall","close","openPhoneNumpad","error:noPhoneTenant","call"],setup(e,{expose:t,emit:n}){const i=[{id:mt.HOME,backFunc:null,backTitle:""},{id:mt.CUSTOMER_DETAIL,backFunc:()=>{Xn(mt.HOME)},backTitle:""},{id:mt.CUSTOMER_APPOINTMENT,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:mt.CUSTOMER_CHECK_IN,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Checkins"}],o=f.computed(()=>{var N,B;return[{id:mt.CHAT_LIST,backFunc:r.isLib?void 0:()=>{jN()},backTitle:"Go Chat",subTitle:((N=Xe.value)==null?void 0:N.user_type)=="tenant"?Xi(((B=Xe.value)==null?void 0:B.tenant_phone)??""):""},{id:mt.HOME,backFunc:()=>{Xn(mt.CHAT_LIST)},backTitle:"",isHidden:!0},{id:mt.CUSTOMER_DETAIL,backFunc:()=>{Xn(mt.HOME)},backTitle:""},{id:mt.CUSTOMER_APPOINTMENT,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:mt.CUSTOMER_CHECK_IN,backFunc:()=>{Xn(mt.CUSTOMER_DETAIL)},backTitle:"Checkins"}]}),r=e,s=n;let l=null;const u=N=>{if(l)return;const B=F=>{var k,$;T.value&&(N!=null&&N.conversation_id?(k=T.value)==null||k.initData({conversation_id:F==null?void 0:F.conversation_id,is_unknown:(F==null?void 0:F.is_unknown)||"0"}):($=T.value)==null||$.initData(),clearInterval(l),l=null)};l=setInterval(()=>B(N),500)},{initPage:d}=une(),{getResponsiveObserver:c}=aie(u);f.onMounted(()=>{c(!0),r.isLib&&(ate(),M())}),f.onUnmounted(()=>{});const a=f.computed(()=>p.value==="mobile"?o.value.find(N=>N.id==yn.value):i.find(N=>N.id==yn.value)),p=f.computed(()=>r.response=="mobile"?r.response:Pr.value),v=f.computed(()=>{var N,B,F,k;return(((B=(N=T.value)==null?void 0:N.listConversationsAll)==null?void 0:B.reduce(($,q)=>$+((q==null?void 0:q.unread_count)??0),0))??0)+(((k=(F=T.value)==null?void 0:F.listConversationsUnknown)==null?void 0:k.reduce(($,q)=>$+((q==null?void 0:q.unread_count)??0),0))??0)}),_=f.computed(()=>{var N,B;return((N=T.value)==null?void 0:N.listConversationsAll.find(F=>F.receiver_id==g.value))??((B=T.value)==null?void 0:B.listConversationsUnknown.find(F=>F.receiver_id==g.value))??null}),m=f.computed(()=>{var N;return((N=E.value)==null?void 0:N.callStatus)??null}),h=f.ref(),E=f.ref(null),g=f.ref(null),y=f.ref(null),b=f.ref(null),T=f.ref(null),S=f.ref(null),I=f.ref(),A=async N=>{var B,F;(g.value!=(N==null?void 0:N.receiver_id)||p.value==="mobile")&&(yn.value!=mt.HOME&&Xn(mt.HOME),g.value=N==null?void 0:N.receiver_id,await f.nextTick(),(B=T.value)==null||B.handleReadMessage(),(F=b.value)==null||F.getData(N))},R=N=>{var B,F;((B=Xe.value)==null?void 0:B.user_type)=="tenant"&&(E.value?(F=E.value)==null||F.startCall(N):s("call",N))},M=async()=>{var B,F;const N=await d({props:r,responsive:p.value});!((B=Xe.value)!=null&&B.tenant_phone)&&((F=Xe.value)==null?void 0:F.user_type)=="tenant"&&(s("error:noPhoneTenant"),Xn(mt.NOT_TENANT_PHONE)),u(N)},x=()=>{var N;(N=S.value)==null||N.open()},w=()=>{var N;(N=T.value)==null||N.handleReadMessage()},U=()=>{var N;(N=I.value)==null||N.openPhoneNumpad()},L=()=>{var N;s("close"),(N=I.value)==null||N.closePhoneNumpad()};return t({get unreadCount(){return v.value},get callStatus(){return m.value},get callLabel(){var N;return((N=E.value)==null?void 0:N.label)??""},getUserRemote:()=>{var N;return((N=E.value)==null?void 0:N.userRemoter)??null},startCall:async()=>{var N;await((N=E.value)==null?void 0:N.answer())},endCall:()=>{var N;return(N=E.value)==null?void 0:N.endCall()},openSettings:x,initData:N=>u(N),closePhoneNumpad:()=>{var N;return(N=I.value)==null?void 0:N.closePhoneNumpad()}}),(N,B)=>{var F,k,$,q,H;return f.openBlock(),f.createElementBlock("div",{class:"go-chat-main max-w-full",id:"appChatMain",ref_key:"appChatRef",ref:h},[f.unref(vc)?f.unref(yn)==f.unref(mt).TENANT_ERROR?(f.openBlock(),f.createBlock(ane,{key:1,class:"mt-10"})):f.unref(yn)==f.unref(mt).REGISTER_TENANT?(f.openBlock(),f.createBlock(iie,{key:2})):f.unref(yn)==f.unref(mt).REGISTER_SUCCESS?(f.openBlock(),f.createBlock(uie,{key:3})):f.unref(yn)==f.unref(mt).NOT_TENANT_PHONE?(f.openBlock(),f.createBlock(cie,{key:4,"is-lib":r.isLib,onTryAgain:B[0]||(B[0]=j=>M())},null,8,["is-lib"])):(f.openBlock(),f.createElementBlock("div",Vie,[N.isLib?(f.openBlock(),f.createBlock(jie,{key:0,class:"shrink-0"})):f.createCommentVNode("",!0),f.createElementVNode("div",qie,[N.isLib?(f.openBlock(),f.createBlock(Vne,{key:0,ref_key:"callingRef",ref:E,onUserCalling:B[1]||(B[1]=j=>s("userCalling",j)),onEndCall:B[2]||(B[2]=j=>s("endCall")),responsive:p.value},null,8,["responsive"])):f.createCommentVNode("",!0),p.value=="mobile"?(f.openBlock(),f.createElementBlock("div",Gie,[f.createElementVNode("div",{class:f.normalizeClass(["text-[#141B34] shrink-0",p.value=="mobile"?"px-4":"px-6"])},[f.createElementVNode("div",Hie,[(F=a.value)!=null&&F.backFunc&&!((k=a.value)!=null&&k.isHidden)?(f.openBlock(),f.createElementBlock("button",{key:0,class:"flex items-center",onClick:B[3]||(B[3]=j=>a.value.backFunc())},[f.createVNode(oc),f.createElementVNode("div",zie,[f.createElementVNode("p",Yie,f.toDisplayString(a.value.backTitle??""),1),f.createElementVNode("p",Wie,f.toDisplayString(a.value.subTitle??""),1)])])):(($=f.unref(Xe))==null?void 0:$.user_type)=="tenant"?(f.openBlock(),f.createElementBlock("div",$ie,[B[11]||(B[11]=f.createTextVNode(" 🏢 ")),f.createElementVNode("div",Kie,[f.createElementVNode("div",Qie,f.toDisplayString(f.unref(Xi)(((q=f.unref(Xe))==null?void 0:q.tenant_phone)??"")??""),1)])])):(f.openBlock(),f.createElementBlock("span",Jie)),r.isLib?(f.openBlock(),f.createElementBlock("button",{key:3,class:"w-10 h-10",onClick:B[4]||(B[4]=j=>L())},[f.createVNode(zne)])):f.createCommentVNode("",!0)])],2),f.createElementVNode("div",Xie,[f.withDirectives(f.createVNode(Dk,{ref_key:"chatListRef",ref:T,class:"w-full max-w-[500px] !bg-[#F9FAFC]",responsive:p.value,onSelectReceiver:A,onOpenPhoneNumpad:B[5]||(B[5]=j=>U()),"receiver-id":g.value,"onUpdate:receiverId":B[6]||(B[6]=j=>g.value=j)},null,8,["responsive","receiver-id"]),[[f.vShow,f.unref(yn)==f.unref(mt).CHAT_LIST]]),f.withDirectives(f.createVNode(h2,{ref_key:"homeComponentRef",ref:b,"receiver-id":g.value,class:"h-full",onCall:R,onBack:B[7]||(B[7]=j=>{var W,te;return(te=(W=a.value).backFunc)==null?void 0:te.call(W)}),onInputFocus:w,conversation:_.value,responsive:p.value},null,8,["receiver-id","conversation","responsive"]),[[f.vShow,f.unref(yn)==f.unref(mt).HOME]]),f.unref(yn)==f.unref(mt).CUSTOMER_DETAIL?(f.openBlock(),f.createBlock(g2,{key:0,ref_key:"customerDetailRef",ref:y,"receiver-id":g.value,class:"w-full h-full",responsive:p.value},null,8,["receiver-id","responsive"])):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_CHECK_IN?(f.openBlock(),f.createBlock(S2,{key:1,class:"w-full h-full"})):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_APPOINTMENT?(f.openBlock(),f.createBlock(I2,{key:2,class:"w-full h-full"})):f.createCommentVNode("",!0)])])):(f.openBlock(),f.createElementBlock("div",Zie,[f.createVNode(Dk,{ref_key:"chatListRef",ref:T,class:"w-[38%] max-w-[500px] min-w-[300px] xl:min-w-[450px] border-r layout-border",responsive:p.value,onSelectReceiver:A,onOpenPhoneNumpad:B[8]||(B[8]=j=>U()),"receiver-id":g.value,"onUpdate:receiverId":B[9]||(B[9]=j=>g.value=j)},null,8,["responsive","receiver-id"]),f.createElementVNode("div",eoe,[(H=a.value)!=null&&H.backFunc?(f.openBlock(),f.createElementBlock("div",toe,[f.createElementVNode("button",{class:"flex items-center",onClick:B[10]||(B[10]=j=>a.value.backFunc())},[f.createVNode(oc),f.createElementVNode("span",noe,f.toDisplayString(a.value.backTitle??""),1)])])):f.createCommentVNode("",!0),f.createElementVNode("div",ioe,[f.withDirectives(f.createVNode(h2,{ref_key:"homeComponentRef",ref:b,"receiver-id":g.value,class:"h-full",onCall:R,onInputFocus:w,responsive:p.value,conversation:_.value},null,8,["receiver-id","responsive","conversation"]),[[f.vShow,f.unref(yn)==f.unref(mt).HOME&&g.value]]),f.unref(yn)==f.unref(mt).CUSTOMER_DETAIL?(f.openBlock(),f.createBlock(g2,{key:0,ref_key:"customerDetailRef",ref:y,"receiver-id":g.value,class:"h-full",responsive:p.value},null,8,["receiver-id","responsive"])):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_CHECK_IN?(f.openBlock(),f.createBlock(S2,{key:1,class:"h-full"})):f.createCommentVNode("",!0),f.unref(yn)==f.unref(mt).CUSTOMER_APPOINTMENT?(f.openBlock(),f.createBlock(I2,{key:2,class:"h-full"})):f.createCommentVNode("",!0)])])])),f.createVNode(Lie,{onCall:R,ref_key:"phoneNumpadRef",ref:I,"hide-numpad":N.isLib,responsive:p.value,class:"bg-white shrink-0 border-l layout-border"},null,8,["hide-numpad","responsive"])])])):(f.openBlock(),f.createElementBlock("div",Fie,[f.createVNode(iJ)]))],512)}}});bt.PLIVO_CALL_STATUS=ot,bt.default=ooe,Object.defineProperties(bt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});