@phonghq/go-chat 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/go-chat.umd.js
CHANGED
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
]`)}throw new Nn("Unexpected characters",$t-Te.length)}function Kt(){$t++,Ie=Qi.charAt($t)}function oj(){Kt(),Ie==="\\"&&Kt()}function Gl(){return qe===Sn&&(Te==="["||Te==="{")||qe===To||qe===vr||qe===mr}function rj(){return qe===To||qe===vr||qe===mr}function St(){nt+=Te,qe=hr,Te="",sj(),qe===ZC&&(Te=Q5(Te),St()),qe===Uc&&(qe=hr,Te="",St())}function nR(){Te===","&&(Te="",qe=hr,St())}function sj(){if(ej[Ie]){qe=Sn,Te=Ie,Kt();return}lj()}function lj(){if(Wi(Ie)||Ie==="-"){if(qe=vr,Ie==="-"){if(Te+=Ie,Kt(),!Wi(Ie))throw new Nn("Invalid number, digit expected",$t)}else Ie==="0"&&(Te+=Ie,Kt());for(;Wi(Ie);)Te+=Ie,Kt();if(Ie==="."){if(Te+=Ie,Kt(),!Wi(Ie))throw new Nn("Invalid number, digit expected",$t);for(;Wi(Ie);)Te+=Ie,Kt()}if(Ie==="e"||Ie==="E"){if(Te+=Ie,Kt(),(Ie==="+"||Ie==="-")&&(Te+=Ie,Kt()),!Wi(Ie))throw new Nn("Invalid number, digit expected",$t);for(;Wi(Ie);)Te+=Ie,Kt()}return}uj()}function uj(){Ie==="\\"&&Qi.charAt($t+1)==='"'?(Kt(),iR(oj)):iR(Kt)}function iR(e){if(J5(Ie)){var n=XC(Ie),t=JC(Ie)?JC:X5;for(Te+='"',qe=To,e();Ie!==""&&!t(Ie);)if(Ie==="\\"){e();var i=tj[Ie];if(i!==void 0)Te+="\\"+Ie,e();else if(Ie==="u"){Te+="\\u",e();for(var o=0;o<4;o++){if(!$5(Ie))throw new Nn("Invalid unicode character",$t-Te.length);Te+=Ie,e()}}else if(Ie==="'")Te+="'",e();else throw new Nn('Invalid escape character "\\'+Ie+'"',$t)}else eR[Ie]?(Te+=eR[Ie],e()):Ie==='"'?(Te+='\\"',e()):(Te+=Ie,e());if(XC(Ie)!==n)throw new Nn("End of string expected",$t-Te.length);Te+='"',e();return}dj()}function dj(){if(QC(Ie)){for(qe=mr;QC(Ie)||Wi(Ie)||Ie==="$";)Te+=Ie,Kt();return}cj()}function cj(){if(Fl(Ie)||Lc(Ie)){for(qe=ZC;Fl(Ie)||Lc(Ie);)Te+=Ie,Kt();return}_j()}function _j(){if(Ie==="/"&&Qi[$t+1]==="*"){for(qe=Uc;Ie!==""&&(Ie!=="*"||Ie==="*"&&Qi[$t+1]!=="/");)Te+=Ie,Kt();Ie==="*"&&Qi[$t+1]==="/"&&(Te+=Ie,Kt(),Te+=Ie,Kt());return}if(Ie==="/"&&Qi[$t+1]==="/"){for(qe=Uc;Ie!==""&&Ie!==`
|
|
13
13
|
`;)Te+=Ie,Kt();return}fj()}function fj(){for(qe=hr;Ie!=="";)Te+=Ie,Kt();throw new Nn('Syntax error in part "'+Te+'"',$t-Te.length)}function cs(){if(qe===Sn&&Te==="{"){if(St(),qe===Sn&&Te==="}"){St();return}for(;;){if((qe===mr||qe===vr)&&(qe=To,Te='"'.concat(Te,'"')),qe!==To)throw new Nn("Object key expected",$t-Te.length);if(St(),qe===Sn&&Te===":")St();else if(Gl())nt=ar(nt,":");else throw new Nn("Colon expected",$t-Te.length);if(cs(),qe===Sn&&Te===","){if(St(),qe===Sn&&Te==="}"){nt=ql(nt,",");break}if(Te===""){nt=ql(nt,",");break}}else if(rj())nt=ar(nt,",");else break}qe===Sn&&Te==="}"?St():nt=ar(nt,"}");return}pj()}function pj(){if(qe===Sn&&Te==="["){if(St(),qe===Sn&&Te==="]"){St();return}for(;;)if(cs(),qe===Sn&&Te===","){if(St(),qe===Sn&&Te==="]"){nt=ql(nt,",");break}if(Te===""){nt=ql(nt,",");break}}else if(Gl())nt=ar(nt,",");else break;qe===Sn&&Te==="]"?St():nt=ar(nt,"]");return}aj()}function aj(){if(qe===To){for(St();qe===Sn&&Te==="+";)if(Te="",St(),qe===To){var e=nt.lastIndexOf('"');nt=nt.substring(0,e)+Te.substring(1),Te="",St()}return}vj()}function vj(){if(qe===vr){St();return}mj()}function mj(){if(qe===mr){if(nj[Te]){St();return}if(tR[Te]){Te=tR[Te],St();return}var e=Te,n=nt.length;if(Te="",St(),qe===Sn&&Te==="("){Te="",St(),cs(),qe===Sn&&Te===")"&&(Te="",St(),qe===Sn&&Te===";"&&(Te="",St()));return}for(nt=Z5(nt,'"'.concat(e),n);qe===mr||qe===vr;)St();nt+='"';return}hj()}function hj(){throw Te===""?new Nn("Unexpected end of json string",$t-Te.length):new Nn("Value expected",$t-Te.length)}let _s,Hl;const oR=()=>window.self!==window.top,yj=e=>{try{JSON.parse(e)}catch{return!1}return!0};class gj{constructor(n){this.Context={API_KEY:"",API_SECRET_KEY:"",G_CLIENTID:"",API_VERSION:wc.V1,USER_AGENT:"",initialize:function(t){const i=[];if(t.API_KEY.length||i.push("API_KEY"),t.API_SECRET_KEY.length||i.push("API_SECRET_KEY"),t.API_SECRET_KEY.length||i.push("G_CLIENTID"),i.length)throw new L5(`Cannot initialize GAP Library. Missing values for: ${i.join(", ")}`);this.API_KEY=t.API_KEY,this.API_SECRET_KEY=t.API_SECRET_KEY,this.G_CLIENTID=t.G_CLIENTID,this.API_VERSION=t.API_VERSION},throwIfUninitialized:function(){throw new Error("Function not implemented.")}},n&&(this._logger=n),window.GapMiniApp=this}detectPlatform(){if(oR())return Tn.WEB;const n=t=>t.test(window.navigator.userAgent);if(n(/GapAndroid/))return Tn.ANDROID;if(n(/GapIOS/))return Tn.IOS;if(n(/GapWindow/))return Tn.WINDOW;if(n(/Android/i))return Tn.ANDROID;if(n(/iOS|iPad|iPhone|iPod|Macintosh/i))return Tn.IOS;if(n(/EdgGapWindow/i))return Tn.WINDOW}setPlatformExecutor(n,t){switch(n){case Tn.WINDOW:window.MiniAppBridge=new Vl(new j5,t);break;case Tn.ANDROID:window.MiniAppBridge=new Vl(new F5,t);break;case Tn.IOS:window.MiniAppBridge=new Vl(new z5,t);break;case Tn.WEB:if(!oR())throw new D5("Platform not supported yet");_s&&clearInterval(_s);const i=()=>{if(window&&window.addEventListener){Hl&&window.removeEventListener("message",Hl),Hl=o=>{var r,s,u,l,d,c;if(((r=o.data)===null||r===void 0?void 0:r.type)==="execSuccessCallback"){let _=(s=o==null?void 0:o.data)===null||s===void 0?void 0:s.data;yj(_)||(_=JSON.stringify(_)),this.getBridge().execSuccessCallback((u=o.data)===null||u===void 0?void 0:u.id,_)}((l=o.data)===null||l===void 0?void 0:l.type)==="execErrorCallback"&&this.getBridge().execErrorCallback((d=o.data)===null||d===void 0?void 0:d.id,(c=o.data)===null||c===void 0?void 0:c.message)},window.addEventListener("message",Hl),_s&&clearInterval(_s);return}_s=setInterval(i,500)};i(),window.MiniAppBridge=new Vl(new G5,t);break;default:throw new k5("Missing platform data")}return n}getBridge(){return We()}navigateTo(n){return new Promise((t,i)=>{We().navigateToMiniApp(n).then(o=>{t(o)}).catch(o=>{i(this.tryParseJson(o))})})}closeApp(){return new Promise((n,t)=>{We().closeMiniApp().then(i=>{n(i)}).catch(i=>{t(this.tryParseJson(i))})})}getAppId(){throw new Error("Method not implemented.")}getLoginStatus(){return new Promise((n,t)=>{We().getAccessToken().then(i=>{n(i==="true")}).catch(i=>{t(this.tryParseJson(i))})})}getAccessToken(){return new Promise((n,t)=>{We().getAccessToken().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}getAppVersion(){return We().getAppVersion()}getSystemInfo(){return new Promise((n,t)=>{We().getSystemInfo().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}getBusinessInfo(){return new Promise((n,t)=>{We().getBusinessInfo().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}getBusinessConfig(){return new Promise((n,t)=>{We().getBusinessConfig().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}doPayment(n){var t;return(t=this._logger)===null||t===void 0||t.info(JSON.stringify(n)),new Promise((i,o)=>{We().doPayment(n).then(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),i(this.tryParseJson(r))}).catch(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),o(this.tryParseJson(r))})})}doAdjust(n){var t;return(t=this._logger)===null||t===void 0||t.info(JSON.stringify(n)),new Promise((i,o)=>{We().doAdjust(n).then(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),i(this.tryParseJson(r))}).catch(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),o(this.tryParseJson(r))})})}doVoid(n){var t;return(t=this._logger)===null||t===void 0||t.info(JSON.stringify(n)),new Promise((i,o)=>{We().doVoid(n).then(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),i(this.tryParseJson(r))}).catch(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),o(this.tryParseJson(r))})})}doRefund(n){var t;return(t=this._logger)===null||t===void 0||t.info(JSON.stringify(n)),new Promise((i,o)=>{We().doRefund(n).then(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),i(this.tryParseJson(r))}).catch(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),o(this.tryParseJson(r))})})}doBatchClose(){return new Promise((n,t)=>{We().doBatchClose().then(i=>{var o;(o=this._logger)===null||o===void 0||o.info(JSON.stringify(i)),n(this.tryParseJson(i))}).catch(i=>{var o;(o=this._logger)===null||o===void 0||o.info(JSON.stringify(i)),t(this.tryParseJson(i))})})}doRetrieve(n){var t;return(t=this._logger)===null||t===void 0||t.info(JSON.stringify(n)),new Promise((i,o)=>{We().doRetrieve(n).then(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),i(this.tryParseJson(r))}).catch(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),o(this.tryParseJson(r))})})}doPaymentPopup(n){var t;return(t=this._logger)===null||t===void 0||t.info(JSON.stringify(n)),new Promise((i,o)=>{We().doPaymentPopup(n).then(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),i(this.tryParseJson(r))}).catch(r=>{var s;(s=this._logger)===null||s===void 0||s.info(JSON.stringify(r)),o(this.tryParseJson(r))})})}scanQr(){return new Promise((n,t)=>{We().scanQr().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}getNetworkStatus(){return new Promise((n,t)=>{We().getNetworkStatus().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}scanNetworkDevice(n){return new Promise((t,i)=>{We().scanNetworkDevice(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}pingNetworkDevice(n){return new Promise((t,i)=>{We().pingNetworkDevice(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}scanUsbDevice(){return new Promise((n,t)=>{We().scanUsbDevice().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}getBluetoothStatus(){return new Promise((n,t)=>{We().getBluetoothStatus().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}scanBluetoothDevice(n){return new Promise((t,i)=>{We().scanBluetoothDevice(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}printEscPos(n){return new Promise((t,i)=>{We().printEscPos(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}getStorageItem(n){return new Promise((t,i)=>{We().getStorageItem(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}setStorageItem(n){return new Promise((t,i)=>{We().setStorageItem(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}pairClover(n){return new Promise((t,i)=>{We().pairClover(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}getAuthTokenClover(n){return new Promise((t,i)=>{We().getAuthTokenClover(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}checkConnectionClover(n){return new Promise((t,i)=>{We().checkConnectionClover(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}setLoginToken(n){return new Promise((t,i)=>{We().setLoginToken(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}logout(){return new Promise((n,t)=>{We().logout().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}paymentRequest(n){return new Promise((t,i)=>{We().paymentRequest(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}gapHttpRequest(n){return new Promise((t,i)=>{We().gapHttpRequest(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}getCardData(n){return new Promise((t,i)=>{We().getCardData(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}scanComPort(){return new Promise((n,t)=>{We().scanComPort().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}connectComPort(n){return new Promise((t,i)=>{We().connectComPort(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}checkConnectionComPort(n){return new Promise((t,i)=>{We().checkConnectionComPort(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}sendRequestComPort(n){return new Promise((t,i)=>{We().sendRequestComPort(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}disconnectComPort(n){return new Promise((t,i)=>{We().disconnectComPort(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}logMiniApp(n){return new Promise((t,i)=>{We().logMiniApp(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}deviceRequest(n){return new Promise((t,i)=>{We().deviceRequest(n).then(o=>{t(this.tryParseJson(o))}).catch(o=>{i(this.tryParseJson(o))})})}reInitializeWebview(){return new Promise((n,t)=>{We().reInitializeWebview().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}checkKeyboardVisible(){return new Promise((n,t)=>{We().checkKeyboardVisible().then(i=>{n(this.tryParseJson(i))}).catch(i=>{t(this.tryParseJson(i))})})}tryParseJson(n){try{return n=ij(n),JSON.parse(n)}catch{return n}}}var rR;(function(e){e.LOCATION="location",e.CONTACT="contact",e.MICROPHONE="microphone",e.CAMERA="camera",e.MEDIA_LIBRARY="media_library",e.SEND_MESSAGE="send_message"})(rR||(rR={}));var sR;(function(e){e.ALLOWED="ALLOWED",e.DENIED="DENIED",e.PERMISSION_NOT_AVAILABLE="PERMISSION_NOT_AVAILABLE"})(sR||(sR={}));var lR;(function(e){e.POWER_OFF="1",e.POWER_ON="2",e.PAIRING_SUCCESS="3",e.WAITING_PAYMENT="4",e.PAYMENT_SUCCESS="5",e.PAYMENT_FAIL="6"})(lR||(lR={}));var uR;(function(e){e.SET_PROXY="set_proxy",e.SCAN_WIFI="scan_wifi",e.CONNECT_WIFI="connect_wifi",e.DISCONNECT_WIFI="disconnect_wifi",e.FORGET_NETWORK="forget_network",e.TURN_ON_WIFI="turn_on_wifi",e.TURN_OFF_WIFI="turn_off_wifi",e.SET_DHCP="set_dhcp",e.SET_STATIC_IP="set_static_ip",e.SET_METERED_CONNECTION="set_metered_connection",e.SET_BRIGHTNESS="set_brightness",e.SET_VOLUME="set_volume",e.WIFI_STATE="wifi_state",e.NETWORK_TYPE="network_type"})(uR||(uR={}));var dR={exports:{}};(function(e){(function(n,t){e.exports?e.exports=t():n.log=t()})(In,function(){var n=function(){},t="undefined",i=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],r={},s=null;function u(v,m){var g=v[m];if(typeof g.bind=="function")return g.bind(v);try{return Function.prototype.bind.call(g,v)}catch{return function(){return Function.prototype.apply.apply(g,[v,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(v){return v==="debug"&&(v="log"),typeof console===t?!1:v==="trace"&&i?l:console[v]!==void 0?u(console,v):console.log!==void 0?u(console,"log"):n}function c(){for(var v=this.getLevel(),m=0;m<o.length;m++){var g=o[m];this[g]=m<v?n:this.methodFactory(g,v,this.name)}if(this.log=this.debug,typeof console===t&&v<this.levels.SILENT)return"No console available for logging"}function _(v){return function(){typeof console!==t&&(c.call(this),this[v].apply(this,arguments))}}function f(v,m,g){return d(v)||_.apply(this,arguments)}function p(v,m){var g=this,E,y,T,A="loglevel";typeof v=="string"?A+=":"+v:typeof v=="symbol"&&(A=void 0);function S(I){var C=(o[I]||"silent").toUpperCase();if(!(typeof window===t||!A)){try{window.localStorage[A]=C;return}catch{}try{window.document.cookie=encodeURIComponent(A)+"="+C+";"}catch{}}}function N(){var I;if(!(typeof window===t||!A)){try{I=window.localStorage[A]}catch{}if(typeof I===t)try{var C=window.document.cookie,O=encodeURIComponent(A),x=C.indexOf(O+"=");x!==-1&&(I=/^([^;]+)/.exec(C.slice(x+O.length+1))[1])}catch{}return g.levels[I]===void 0&&(I=void 0),I}}function R(){if(!(typeof window===t||!A)){try{window.localStorage.removeItem(A)}catch{}try{window.document.cookie=encodeURIComponent(A)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function L(I){var C=I;if(typeof C=="string"&&g.levels[C.toUpperCase()]!==void 0&&(C=g.levels[C.toUpperCase()]),typeof C=="number"&&C>=0&&C<=g.levels.SILENT)return C;throw new TypeError("log.setLevel() called with invalid level: "+I)}g.name=v,g.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},g.methodFactory=m||f,g.getLevel=function(){return T??y??E},g.setLevel=function(I,C){return T=L(I),C!==!1&&S(T),c.call(g)},g.setDefaultLevel=function(I){y=L(I),N()||g.setLevel(I,!1)},g.resetLevel=function(){T=null,R(),c.call(g)},g.enableAll=function(I){g.setLevel(g.levels.TRACE,I)},g.disableAll=function(I){g.setLevel(g.levels.SILENT,I)},g.rebuild=function(){if(s!==g&&(E=L(s.getLevel())),c.call(g),s===g)for(var I in r)r[I].rebuild()},E=L(s?s.getLevel():"WARN");var j=N();j!=null&&(T=L(j)),c.call(g)}s=new p,s.getLogger=function(m){if(typeof m!="symbol"&&typeof m!="string"||m==="")throw new TypeError("You must supply a name when creating a logger.");var g=r[m];return g||(g=r[m]=new p(m,s.methodFactory)),g};var a=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=a),s},s.getLoggers=function(){return r},s.default=s,s})})(dR);var Ej=dR.exports;let cR=Oi(Ej);cR.setLevel("trace");const fs=Ft.create({timeout:2e4,headers:{"Content-Type":"application/json"}}),Tj=(e,n,t)=>{fs.defaults.headers.common.Authorization=`Bearer ${e}`,fs.defaults.baseURL=n,fs.defaults.headers.common["G-ClientID"]=t||""};fs.interceptors.response.use(e=>{var t,i,o;console.log(e);const n=e==null?void 0:e.data;return(n==null?void 0:n.status)=="OK"&&((t=n==null?void 0:n.result)==null?void 0:t.status)=="OK"&&((i=n==null?void 0:n.result)!=null&&i.data)?Promise.resolve((o=n==null?void 0:n.result)==null?void 0:o.data):Promise.reject((n==null?void 0:n.message)??"Error")},async e=>{var n;return Promise.reject(((n=e.response)==null?void 0:n.data)||e)}),new KC.BaseApi(be.V1);const di=function(){let e;function n(){return new gj(cR)}return{getInstance:function(){return e||(e=n()),e},getAccessToken:async function(){let t="",i="",o="";try{let r;if(di.getInstance().detectPlatform()&&(r=di.getInstance().detectPlatform()),r){di.getInstance().setPlatformExecutor(r);const s=await di.getInstance().getAccessToken();s&&typeof s.token<"u"&&s.token!=""&&(t=s.domain,i=s.gClientId,o=s.token)}}catch(r){console.error(r)}return{domain:t,gClient:i,token:o}}}}(),Sj=e=>new Promise(async(n,t)=>{let i=!1;try{let{domain:o,gClient:r,token:s}=await di.getAccessToken();if(o=e.domain||o||"",r=e.id||r||"",s=e.token||s||"",!o||!r||!s){n({status:i,tenant_error:!0});return}Tj(s,o,r),await Aj({tenant_id:r}),i=!0,Ij(r,s,o),localStorage.setItem("chat_id",r),localStorage.setItem("chat_accessToken",s),localStorage.setItem("chat_domain",o),n({status:i})}catch(o){n({status:i,tenant_error:!0}),console.error(o)}}),rt=h.ref(null),bj=h.ref(null);let yr={id:"",token:"",domain:""};const Ij=(e,n,t)=>{yr={id:e,token:n,domain:t}},Aj=async e=>{const n=await bn.post("/api/v1/message/tenant/login",e);return localStorage.setItem("chat_token",n==null?void 0:n.token),localStorage.setItem("refresh_token",n==null?void 0:n.refresh_token),yr.id=e.tenant_id,yr.token=n==null?void 0:n.token,rt.value=n,n},Cj=async e=>{const n=await bn.get("/api/v1/message/tenant/gci-link",{params:e});return localStorage.setItem("chat_token",n==null?void 0:n.token),localStorage.setItem("refresh_token",n==null?void 0:n.refresh_token),yr.id=e.tenant_id,yr.token=n==null?void 0:n.token,bj.value=n,n},Rj=async()=>{const e=await bn.get("/api/v1/message/user/me");return localStorage.setItem("chat_user",JSON.stringify(e)),rt.value=e,e},_R=async()=>{var e,n;yr={id:"",token:"",domain:""},rt.value=null,localStorage.removeItem("chat_accessToken"),localStorage.removeItem("chat_domain"),localStorage.removeItem("chat_id");try{(e=di==null?void 0:di.getInstance())!=null&&e.getBridge()?(n=di==null?void 0:di.getInstance())==null||n.closeApp():window.location.href="/login"}catch{}},Mj=async e=>await bn.get("/api/v1/message/message/get-message",{params:e}),Nj=async e=>await bn.get(`/api/v1/message/message/get-user?receiver_id=${e}`),Oj=async e=>{if(e)return bn.post(`/api/v1/message/message/mark-as-read?conversation_id=${e}`)},xj=async e=>await bn.post("/api/v1/message/message/send-message",e,{headers:{"Content-Type":"multipart/form-data"}}),Pj=async e=>await bn.get("/api/v1/message/message/unread-count",{params:e}),wj=async e=>await bn.post("/api/v1/general/storage/upload",e,{headers:{"Content-Type":"multipart/form-data"}});var fR={exports:{}};(function(e,n){(function(t,i){e.exports=i()})(In,function(){return function(t,i,o){t=t||{};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 u(d,c,_,f){return r.fromToBase(d,c,_,f)}o.en.relativeTime=s,r.fromToBase=function(d,c,_,f,p){for(var a,v,m,g=_.$locale().relativeTime||s,E=t.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=E.length,T=0;T<y;T+=1){var A=E[T];A.d&&(a=f?o(d).diff(_,A.d,!0):_.diff(d,A.d,!0));var S=(t.rounding||Math.round)(Math.abs(a));if(m=a>0,S<=A.r||!A.r){S<=1&&T>0&&(A=E[T-1]);var N=g[A.l];p&&(S=p(""+S)),v=typeof N=="string"?N.replace("%d",S):N(S,c,A.l,m);break}}if(c)return v;var R=m?g.future:g.past;return typeof R=="function"?R(v):R.replace("%s",v)},r.to=function(d,c){return u(d,c,this,!0)},r.from=function(d,c){return u(d,c,this)};var l=function(d){return d.$u?o.utc():o()};r.toNow=function(d){return this.to(l(this),d)},r.fromNow=function(d){return this.from(l(this),d)}}})})(fR);var Dj=fR.exports;const kj=Oi(Dj);var pR={exports:{}};(function(e,n){(function(t,i){e.exports=i()})(In,function(){return function(t,i,o){o.updateLocale=function(r,s){var u=o.Ls[r];if(u)return(s?Object.keys(s):[]).forEach(function(l){u[l]=s[l]}),u}}})})(pR);var Lj=pR.exports;const Uj=Oi(Lj);var aR={exports:{}};(function(e,n){(function(t,i){e.exports=i()})(In,function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,s,u){var l=s.prototype;u.utc=function(v){var m={date:v,utc:!0,args:arguments};return new s(m)},l.utc=function(v){var m=u(this.toDate(),{locale:this.$L,utc:!0});return v?m.add(this.utcOffset(),t):m},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var d=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),d.call(this,v)};var c=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else c.call(this)};var _=l.utcOffset;l.utcOffset=function(v,m){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?_.call(this):this.$offset;if(typeof v=="string"&&(v=function(A){A===void 0&&(A="");var S=A.match(i);if(!S)return null;var N=(""+S[0]).match(o)||["-",0,0],R=N[0],L=60*+N[1]+ +N[2];return L===0?0:R==="+"?L:-L}(v),v===null))return this;var E=Math.abs(v)<=16?60*v:v,y=this;if(m)return y.$offset=E,y.$u=v===0,y;if(v!==0){var T=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(E+T,t)).$offset=E,y.$x.$localOffset=T}else y=this.utc();return y};var f=l.format;l.format=function(v){var m=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,m)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var p=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var a=l.diff;l.diff=function(v,m,g){if(v&&this.$u===v.$u)return a.call(this,v,m,g);var E=this.local(),y=u(v).local();return a.call(E,y,m,g)}}})})(aR);var Bj=aR.exports;const jj=Oi(Bj);var vR={exports:{}};(function(e,n){(function(t,i){e.exports=i()})(In,function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(o,r,s){var u,l=function(f,p,a){a===void 0&&(a={});var v=new Date(f),m=function(g,E){E===void 0&&(E={});var y=E.timeZoneName||"short",T=g+"|"+y,A=i[T];return A||(A=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:y}),i[T]=A),A}(p,a);return m.formatToParts(v)},d=function(f,p){for(var a=l(f,p),v=[],m=0;m<a.length;m+=1){var g=a[m],E=g.type,y=g.value,T=t[E];T>=0&&(v[T]=parseInt(y,10))}var A=v[3],S=A===24?0:A,N=v[0]+"-"+v[1]+"-"+v[2]+" "+S+":"+v[4]+":"+v[5]+":000",R=+f;return(s.utc(N).valueOf()-(R-=R%1e3))/6e4},c=r.prototype;c.tz=function(f,p){f===void 0&&(f=u);var a,v=this.utcOffset(),m=this.toDate(),g=m.toLocaleString("en-US",{timeZone:f}),E=Math.round((m-new Date(g))/1e3/60),y=15*-Math.round(m.getTimezoneOffset()/15)-E;if(!Number(y))a=this.utcOffset(0,p);else if(a=s(g,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(y,!0),p){var T=a.utcOffset();a=a.add(v-T,"minute")}return a.$x.$timezone=f,a},c.offsetName=function(f){var p=this.$x.$timezone||s.tz.guess(),a=l(this.valueOf(),p,{timeZoneName:f}).find(function(v){return v.type.toLowerCase()==="timezonename"});return a&&a.value};var _=c.startOf;c.startOf=function(f,p){if(!this.$x||!this.$x.$timezone)return _.call(this,f,p);var a=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return _.call(a,f,p).tz(this.$x.$timezone,!0)},s.tz=function(f,p,a){var v=a&&p,m=a||p||u,g=d(+s(),m);if(typeof f!="string")return s(f).tz(m);var E=function(S,N,R){var L=S-60*N*1e3,j=d(L,R);if(N===j)return[L,N];var I=d(L-=60*(j-N)*1e3,R);return j===I?[L,j]:[S-60*Math.min(j,I)*1e3,Math.max(j,I)]}(s.utc(f,v).valueOf(),g,m),y=E[0],T=E[1],A=s(y).utcOffset(T);return A.$x.$timezone=m,A},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(f){u=f}}})})(vR);var Vj=vR.exports;const Fj=Oi(Vj),gr={DATE_FORMAT:"YYYY-MM-DD",DATE_FORMAT_FULL:"YYYY-MM-DD HH:mm:ss",TIME_12_FORMAT:"hh:mm A"},zl="Africa/Freetown",qj={},Gj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"};function Hj(e,n){return h.openBlock(),h.createElementBlock("svg",Gj,n[0]||(n[0]=[h.createElementVNode("circle",{cx:"12",cy:"12",r:"12",fill:"#1DA1F2"},null,-1),h.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 zj=It(qj,[["render",Hj]]),Yj={class:"h-full flex flex-col chat-box-white pt-6"},$j={class:"shrink-0 w-full px-6 flex gap-2 mb-6"},Kj={class:"h-[45px] w-[45px] rounded-full flex-center bg-[#C7DEFF]"},Wj={class:"grow relative overflow-hidden"},Qj={class:"absolute sc-full flex-center bg-black/10"},Jj=["onClick"],Xj={class:"grow ml-3 overflow-hidden"},Zj={class:"flex justify-between items-center gap-4"},eV={class:"truncate"},tV={class:"flex items-center"},nV={class:"font-semibold"},iV={key:1,class:"ml-2 bg-[#E60000] text-white text-xs font-bold px-2 py-[1px] flex-center rounded-full"},oV={class:"text-sm text-right text-chat-gray-4 w-[130px]"},mR=h.defineComponent({__name:"ChatList",props:h.mergeModels({responsive:{}},{receiverId:{},receiverIdModifiers:{}}),emits:h.mergeModels(["selectReceiver"],["update:receiverId"]),setup(e,{expose:n,emit:t}){Vt.extend(Uj),Vt.extend(kj),Vt.extend(jj),Vt.extend(Fj),Vt.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=t,{digibotData:r,digibotId:s}=EN(),u=h.useModel(e,"receiverId");h.ref(!1);const l=h.ref(""),d=h.ref(null),c=h.ref([]),_=h.ref({page:1,search:""});let f=0;const p=h.ref(!1);h.onMounted(()=>{v()}),h.onUnmounted(()=>{});const a=()=>{var j,I;lo.forEach(C=>{var O;wu(C+((O=rt.value)==null?void 0:O.id)),zs("chat-list-"+C)}),((j=rt.value)==null?void 0:j.user_type)=="tenant"&&(qr(Ko+((I=rt.value)==null?void 0:I.id)),zs("chat-list-"+Ko))},v=async()=>{var j,I;try{rt.value&&(await Ap(),lo.forEach(C=>{var O,x;qr(C+((O=rt.value)==null?void 0:O.id)),Du("chat-list-"+C,C+((x=rt.value)==null?void 0:x.id),m)}),qr(Ko+((j=rt.value)==null?void 0:j.id)),Du("chat-list-"+Ko,Ko+((I=rt.value)==null?void 0:I.id),m))}catch(C){console.error(C)}},m=(j,I)=>{var C,O,x,P;if(g(),j===lo[0]+((C=rt.value)==null?void 0:C.id)){const U=c.value.findIndex(B=>B.id===I.id),H=c.value.findIndex(B=>B.id===s);U!=-1&&c.value.splice(U,1),H>-1?c.value.splice(1,0,I):c.value.unshift(I)}if(j===lo[1]+((O=rt.value)==null?void 0:O.id)){const U=c.value.findIndex(H=>H.id===I.id);U!=-1&&(c.value[U].unread_count=0)}if(j===lo[2]+((x=rt.value)==null?void 0:x.id)&&c.value.unshift(I==null?void 0:I.conversations),j===Ko+((P=rt.value)==null?void 0:P.id)){const U=c.value.findIndex(H=>H.receiver_id==Number(I==null?void 0:I.customer_id));U!=-1&&(c.value[U].status=I.is_online?1:0)}},g=Ur(()=>{E(void 0,{hideLoading:!0,reset:!0})},5e3),E=async(j,I)=>{var C,O;try{I!=null&&I.hideLoading||(p.value=!0),_.value={..._.value,...j??{}};const x=await $O(_.value);I!=null&&I.reset&&(c.value=[],c.value.push(r),await h.nextTick()),c.value.push(...(x==null?void 0:x.items)??[]),T(),_.value.page=((C=x==null?void 0:x._meta)==null?void 0:C.currentPage)||1,f=((O=x==null?void 0:x._meta)==null?void 0:O.pageCount)||1,I!=null&&I.reset&&y()}catch(x){console.error(x)}finally{p.value=!1}},y=async()=>{var j;for(;_.value.page<f&&!((j=d.value)!=null&&j.canScroll());){let I=_.value.page+1;await E({page:I})}},T=()=>{var I,C;const j=(I=c.value)==null?void 0:I.some(O=>O.receiver_id===u.value&&u.value);i.responsive=="tablet"&&!j&&(C=c.value)!=null&&C.length&&o("selectReceiver",c.value[0])},A=j=>{E({search:j},{reset:!0})},S=Ur(async()=>{var I,C;if(_.value.page>=f){(I=d.value)==null||I.hideLoading();return}let j=_.value.page+1;await E({page:j}),(C=d.value)==null||C.hideLoading()},200),N=j=>{o("selectReceiver",j)},R=()=>{const j=c.value.findIndex(I=>I.receiver_id==u.value);j>-1&&c.value[j].unread_count&&(Oj(c.value[j].id),c.value[j].unread_count=0)},L=j=>j&&Vt(j).isValid()?Vt.tz(j,zl).local().fromNow():j??"";return E({},{reset:!0}),n({handleReadMessage:R,listConversations:c}),(j,I)=>(h.openBlock(),h.createElementBlock("div",Yj,[h.createElementVNode("div",$j,[h.createVNode(aN,{class:"h-[45px] grow",responsive:j.responsive,modelValue:l.value,"onUpdate:modelValue":I[0]||(I[0]=C=>l.value=C),onSearch:A},null,8,["responsive","modelValue"]),h.createElementVNode("button",Kj,[h.createVNode(Lf,{class:"text-[#004AB3]"})])]),h.createElementVNode("div",Wj,[h.withDirectives(h.createElementVNode("div",Qj,[h.createVNode(Sp)],512),[[h.vShow,p.value]]),h.createVNode(bp,{ref_key:"scrollEventRef",ref:d,class:"h-full overflow-auto",onGetDataBottom:h.unref(S),bottom:""},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(c.value,C=>(h.openBlock(),h.createElementBlock("div",{class:"",key:C.id,onClick:O=>N(C)},[h.createElementVNode("div",{class:h.normalizeClass(["w-full overflow-hidden flex items-center hover:bg-[#EDF5FF] cursor-pointer px-6 py-2",{"bg-[#EDF5FF]":u.value==C.receiver_id&&j.responsive=="tablet"}])},[h.createVNode(zo,{id:C.id,class:"shrink-0",src:C.avatar??"",color:C.color,name:C.username??""},null,8,["id","src","color","name"]),h.createElementVNode("div",Xj,[h.createElementVNode("div",Zj,[h.createElementVNode("div",eV,[h.createElementVNode("div",tV,[h.createElementVNode("p",nV,h.toDisplayString(C.username),1),C.id==h.unref(s)?(h.openBlock(),h.createBlock(zj,{key:0,class:"ml-2"})):h.createCommentVNode("",!0),C.unread_count?(h.openBlock(),h.createElementBlock("span",iV,h.toDisplayString(C.unread_count),1)):h.createCommentVNode("",!0)]),h.createElementVNode("p",{class:h.normalizeClass(["text-sm truncate",{"font-semibold":C.unread_count,"text-chat-gray-3":!C.unread_count}])},h.toDisplayString(C.last_message??"No messages"),3)]),h.createElementVNode("span",oV,h.toDisplayString(L(C.last_message_time??"")),1)])])],2)],8,Jj))),128))]),_:1},8,["onGetDataBottom"])])]))}}),rV={},sV={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lV(e,n){return h.openBlock(),h.createElementBlock("svg",sV,n[0]||(n[0]=[h.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 uV=It(rV,[["render",lV]]);var Ke=(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))(Ke||{});const Ht=h.ref(Ke.HOME),Un=e=>{Ht.value=e},So=h.ref(null),Bn=h.ref(null),dV=async e=>await fs.get(`/v1/pos/customer/site/history?phone=${e}`),cV=async e=>await bn.get("/api/v1/message/customer/info",{params:e});function hR(e,n="created_at"){let t=[];if(e!=null&&e.length){let i=Vt(e[0][n]).format("YYYY"),o=[];for(let r=0;r<e.length;r++){o.push(e[r]);let s=e[r+1]?Vt(e[r+1][n]).format("YYYY"):i;s!=i&&(t.push({year:i,items:[...o]}),i=s,o=[])}t.push({year:i,items:[...o]})}return t}const _V={class:"px-8 pb-4 border-b border-chat-gray-5"},fV={class:"flex items-center"},pV={class:"flex-1 ml-3"},aV={class:"flex justify-between items-center"},vV={class:"flex items-center"},mV={class:"font-semibold"},hV=h.defineComponent({__name:"HomeHeader",props:{data:{}},emits:["call"],setup(e,{emit:n}){const t=e,i=n,o=()=>{var r,s;((r=t.data)==null?void 0:r.id)!=xs.toString()&&((s=rt.value)==null?void 0:s.user_type)=="tenant"&&(So.value=t.data,Un(Ke.CUSTOMER_DETAIL))};return(r,s)=>{var u,l,d,c,_,f,p;return h.openBlock(),h.createElementBlock("div",_V,[h.createElementVNode("div",fV,[h.createVNode(zo,{class:h.normalizeClass({"cursor-pointer":((u=h.unref(rt))==null?void 0:u.user_type)=="tenant"}),src:((l=r.data)==null?void 0:l.avatar)??"",id:((d=r.data)==null?void 0:d.id)??"",color:(c=r.data)==null?void 0:c.color,name:(_=r.data)==null?void 0:_.username,onClick:o},null,8,["class","src","id","color","name"]),h.createElementVNode("div",pV,[h.createElementVNode("div",aV,[h.createElementVNode("div",{class:h.normalizeClass({"cursor-pointer":((f=h.unref(rt))==null?void 0:f.user_type)=="tenant"}),onClick:o},[h.createElementVNode("div",vV,[h.createElementVNode("p",mV,h.toDisplayString(((p=r.data)==null?void 0:p.username)??"n/a"),1)]),s[1]||(s[1]=h.createElementVNode("p",{class:"text-sm text-chat-gray-3 truncate"},"Last Visit: 04/05/2023",-1))],2),h.createElementVNode("button",{class:"flex-center text-[#0051E6] bg-chat-haze-200 w-9 h-9 rounded-lg",onClick:s[0]||(s[0]=a=>i("call"))},[h.createVNode(uV)])])])])])}}}),yR="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",yV={class:"flex flex-col items-center justify-center text-center"},gV={class:"flex items-center gap-1"},EV={class:"text-2xl font-semibold"},gR=h.defineComponent({__name:"NewCustomer",props:{data:{}},setup(e){return(n,t)=>{var i,o,r,s,u;return h.openBlock(),h.createElementBlock("div",yV,[h.createVNode(zo,{class:"mb-4",src:((i=n.data)==null?void 0:i.avatar)??"",id:((o=n.data)==null?void 0:o.id)??"",color:(r=n.data)==null?void 0:r.color,name:(s=n.data)==null?void 0:s.username,size:"xxl"},null,8,["src","id","color","name"]),h.createElementVNode("div",gV,[h.createElementVNode("h2",EV,h.toDisplayString(((u=n.data)==null?void 0:u.username)??"n/a"),1),t[0]||(t[0]=h.createElementVNode("img",{src:yR},null,-1))]),t[1]||(t[1]=h.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))])}}}),TV={},SV={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bV(e,n){return h.openBlock(),h.createElementBlock("svg",SV,n[0]||(n[0]=[h.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:"#333333"},null,-1)]))}const IV=It(TV,[["render",bV]]),ER="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",TR={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"},SR="u",Yl="n",$l="v",ps="r",AV={[Yl]:["grinning face","grinning"],[SR]:"1f600",[ps]:"1f600"},Kl="neutral",CV=[Kl,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],RV={placeholder:"Search emoji",skinTone:"Skin tone"},MV=["light","dark","auto"];var NV={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"}]},bR=[{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 OV=(e,n)=>n.some(t=>e instanceof t);let IR,AR;function xV(){return IR||(IR=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function PV(){return AR||(AR=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const CR=new WeakMap,Bc=new WeakMap,RR=new WeakMap,jc=new WeakMap,Vc=new WeakMap;function wV(e){const n=new Promise((t,i)=>{const o=()=>{e.removeEventListener("success",r),e.removeEventListener("error",s)},r=()=>{t(Ji(e.result)),o()},s=()=>{i(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",s)});return n.then(t=>{t instanceof IDBCursor&&CR.set(t,e)}).catch(()=>{}),Vc.set(n,e),n}function DV(e){if(Bc.has(e))return;const n=new Promise((t,i)=>{const o=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",s),e.removeEventListener("abort",s)},r=()=>{t(),o()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",r),e.addEventListener("error",s),e.addEventListener("abort",s)});Bc.set(e,n)}let Fc={get(e,n,t){if(e instanceof IDBTransaction){if(n==="done")return Bc.get(e);if(n==="objectStoreNames")return e.objectStoreNames||RR.get(e);if(n==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Ji(e[n])},set(e,n,t){return e[n]=t,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function kV(e){Fc=e(Fc)}function LV(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(n,...t){const i=e.call(qc(this),n,...t);return RR.set(i,n.sort?n.sort():[n]),Ji(i)}:PV().includes(e)?function(...n){return e.apply(qc(this),n),Ji(CR.get(this))}:function(...n){return Ji(e.apply(qc(this),n))}}function UV(e){return typeof e=="function"?LV(e):(e instanceof IDBTransaction&&DV(e),OV(e,xV())?new Proxy(e,Fc):e)}function Ji(e){if(e instanceof IDBRequest)return wV(e);if(jc.has(e))return jc.get(e);const n=UV(e);return n!==e&&(jc.set(e,n),Vc.set(n,e)),n}const qc=e=>Vc.get(e);function Gc(e,n,{blocked:t,upgrade:i,blocking:o,terminated:r}={}){const s=indexedDB.open(e,n),u=Ji(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Ji(s.result),l.oldVersion,l.newVersion,Ji(s.transaction),l)}),t&&s.addEventListener("blocked",l=>t(l.oldVersion,l.newVersion,l)),u.then(l=>{r&&l.addEventListener("close",()=>r()),o&&l.addEventListener("versionchange",d=>o(d.oldVersion,d.newVersion,d))}).catch(()=>{}),u}const BV=["get","getKey","getAll","getAllKeys","count"],jV=["put","add","delete","clear"],Hc=new Map;function MR(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(Hc.get(n))return Hc.get(n);const t=n.replace(/FromIndex$/,""),i=n!==t,o=jV.includes(t);if(!(t in(i?IDBIndex:IDBObjectStore).prototype)||!(o||BV.includes(t)))return;const r=async function(s,...u){const l=this.transaction(s,o?"readwrite":"readonly");let d=l.store;return i&&(d=d.index(u.shift())),(await Promise.all([d[t](...u),o&&l.done]))[0]};return Hc.set(n,r),r}kV(e=>({...e,get:(n,t,i)=>MR(n,t)||e.get(n,t,i),has:(n,t)=>!!MR(n,t)||e.has(n,t)}));const zc="EMJ",Er="emojis",Yc=3;async function VV(){(await Gc(zc,Yc,{upgrade(n,t){n.objectStoreNames.contains(Er)||n.createObjectStore(Er,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}VV();const FV={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function qV(){return await(await Gc(zc,Yc)).transaction(Er,"readonly").objectStore(Er).getAll()}function GV(){const e=h.reactive({search:"",emoji:AV,activeGroup:"",skinTone:Kl,options:FV,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...NV}},get disabled(){let _=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(_=["recent",..._]),_},get groups(){return bR.filter(_=>!this.disabled.includes(_.key))},get orderedGroupKeys(){const _=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...bR.map(f=>f.key)];return[...new Set(_)].filter(f=>!this.disabled.includes(f))}});function n(){e.options.displayRecent&&i()}async function t(){var _;let f=await qV();return Array.isArray(f)&&f.length?f=JSON.parse(((_=f[0])==null?void 0:_.value)||""):f=[],f}function i(){t().then(_=>{e.recent=_,d()})}const o=_=>{e.search=_},r=_=>{e.emoji=_},s=_=>{e.activeGroup=_},u=(_=Kl)=>{e.skinTone=_},l=_=>{e.options=Object.assign({},e.options,_),n()};async function d(){(await Gc(zc,Yc)).transaction(Er,"readwrite").objectStore(Er).put({id:0,value:JSON.stringify(e.recent)})}const c=_=>{if(e.options.displayRecent!==!0)return;const f=e.recent.findIndex(a=>a.u===_.u);if(f>0&&e.recent.splice(f,1),f===0)return;const p={u:_.u,n:h.toRaw(_.n)};e.recent=[p,...e.recent],e.recent.length>24&&(e.recent.length=24),d()};return{state:h.readonly(e),updateSearch:o,updateEmoji:r,updateActiveGroup:s,updateSkinTone:u,updateOptions:l,updateSelect:c}}var jn="top",ni="bottom",ii="right",Vn="left",$c="auto",as=[jn,ni,ii,Vn],Tr="start",vs="end",HV="clippingParents",NR="viewport",ms="popper",zV="reference",OR=as.reduce(function(e,n){return e.concat([n+"-"+Tr,n+"-"+vs])},[]),xR=[].concat(as,[$c]).reduce(function(e,n){return e.concat([n,n+"-"+Tr,n+"-"+vs])},[]),YV="beforeRead",$V="read",KV="afterRead",WV="beforeMain",QV="main",JV="afterMain",XV="beforeWrite",ZV="write",e9="afterWrite",t9=[YV,$V,KV,WV,QV,JV,XV,ZV,e9];function bi(e){return e?(e.nodeName||"").toLowerCase():null}function ci(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function Sr(e){var n=ci(e).Element;return e instanceof n||e instanceof Element}function oi(e){var n=ci(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function PR(e){if(typeof ShadowRoot>"u")return!1;var n=ci(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}function n9(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},o=n.attributes[t]||{},r=n.elements[t];!oi(r)||!bi(r)||(Object.assign(r.style,i),Object.keys(o).forEach(function(s){var u=o[s];u===!1?r.removeAttribute(s):r.setAttribute(s,u===!0?"":u)}))})}function i9(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(i){var o=n.elements[i],r=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]),u=s.reduce(function(l,d){return l[d]="",l},{});!oi(o)||!bi(o)||(Object.assign(o.style,u),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}}var o9={name:"applyStyles",enabled:!0,phase:"write",fn:n9,effect:i9,requires:["computeStyles"]};function Ii(e){return e.split("-")[0]}var bo=Math.max,Wl=Math.min,br=Math.round;function Ir(e,n){n===void 0&&(n=!1);var t=e.getBoundingClientRect(),i=1,o=1;if(oi(e)&&n){var r=e.offsetHeight,s=e.offsetWidth;s>0&&(i=br(t.width)/s||1),r>0&&(o=br(t.height)/r||1)}return{width:t.width/i,height:t.height/o,top:t.top/o,right:t.right/i,bottom:t.bottom/o,left:t.left/i,x:t.left/i,y:t.top/o}}function Kc(e){var n=Ir(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}function wR(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&PR(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ai(e){return ci(e).getComputedStyle(e)}function r9(e){return["table","td","th"].indexOf(bi(e))>=0}function Xi(e){return((Sr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ql(e){return bi(e)==="html"?e:e.assignedSlot||e.parentNode||(PR(e)?e.host:null)||Xi(e)}function DR(e){return!oi(e)||Ai(e).position==="fixed"?null:e.offsetParent}function s9(e){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&oi(e)){var i=Ai(e);if(i.position==="fixed")return null}for(var o=Ql(e);oi(o)&&["html","body"].indexOf(bi(o))<0;){var r=Ai(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||n&&r.willChange==="filter"||n&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function hs(e){for(var n=ci(e),t=DR(e);t&&r9(t)&&Ai(t).position==="static";)t=DR(t);return t&&(bi(t)==="html"||bi(t)==="body"&&Ai(t).position==="static")?n:t||s9(e)||n}function Wc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ys(e,n,t){return bo(e,Wl(n,t))}function l9(e,n,t){var i=ys(e,n,t);return i>t?t:i}function kR(){return{top:0,right:0,bottom:0,left:0}}function LR(e){return Object.assign({},kR(),e)}function UR(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}var u9=function(n,t){return n=typeof n=="function"?n(Object.assign({},t.rects,{placement:t.placement})):n,LR(typeof n!="number"?n:UR(n,as))};function d9(e){var n,t=e.state,i=e.name,o=e.options,r=t.elements.arrow,s=t.modifiersData.popperOffsets,u=Ii(t.placement),l=Wc(u),d=[Vn,ii].indexOf(u)>=0,c=d?"height":"width";if(!(!r||!s)){var _=u9(o.padding,t),f=Kc(r),p=l==="y"?jn:Vn,a=l==="y"?ni:ii,v=t.rects.reference[c]+t.rects.reference[l]-s[l]-t.rects.popper[c],m=s[l]-t.rects.reference[l],g=hs(r),E=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,y=v/2-m/2,T=_[p],A=E-f[c]-_[a],S=E/2-f[c]/2+y,N=ys(T,S,A),R=l;t.modifiersData[i]=(n={},n[R]=N,n.centerOffset=N-S,n)}}function c9(e){var n=e.state,t=e.options,i=t.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||wR(n.elements.popper,o)&&(n.elements.arrow=o))}var _9={name:"arrow",enabled:!0,phase:"main",fn:d9,effect:c9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ar(e){return e.split("-")[1]}var f9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p9(e){var n=e.x,t=e.y,i=window,o=i.devicePixelRatio||1;return{x:br(n*o)/o||0,y:br(t*o)/o||0}}function BR(e){var n,t=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,_=e.isFixed,f=c===!0?p9(s):typeof c=="function"?c(s):s,p=f.x,a=p===void 0?0:p,v=f.y,m=v===void 0?0:v,g=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),y=Vn,T=jn,A=window;if(d){var S=hs(t),N="clientHeight",R="clientWidth";if(S===ci(t)&&(S=Xi(t),Ai(S).position!=="static"&&u==="absolute"&&(N="scrollHeight",R="scrollWidth")),S=S,o===jn||(o===Vn||o===ii)&&r===vs){T=ni;var L=_&&A.visualViewport?A.visualViewport.height:S[N];m-=L-i.height,m*=l?1:-1}if(o===Vn||(o===jn||o===ni)&&r===vs){y=ii;var j=_&&A.visualViewport?A.visualViewport.width:S[R];a-=j-i.width,a*=l?1:-1}}var I=Object.assign({position:u},d&&f9);if(l){var C;return Object.assign({},I,(C={},C[T]=E?"0":"",C[y]=g?"0":"",C.transform=(A.devicePixelRatio||1)<=1?"translate("+a+"px, "+m+"px)":"translate3d("+a+"px, "+m+"px, 0)",C))}return Object.assign({},I,(n={},n[T]=E?m+"px":"",n[y]=g?a+"px":"",n.transform="",n))}function a9(e){var n=e.state,t=e.options,i=t.gpuAcceleration,o=i===void 0?!0:i,r=t.adaptive,s=r===void 0?!0:r,u=t.roundOffsets,l=u===void 0?!0:u,d={placement:Ii(n.placement),variation:Ar(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,BR(Object.assign({},d,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:s,roundOffsets:l})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,BR(Object.assign({},d,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var v9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a9,data:{}},Jl={passive:!0};function m9(e){var n=e.state,t=e.instance,i=e.options,o=i.scroll,r=o===void 0?!0:o,s=i.resize,u=s===void 0?!0:s,l=ci(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",t.update,Jl)}),u&&l.addEventListener("resize",t.update,Jl),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",t.update,Jl)}),u&&l.removeEventListener("resize",t.update,Jl)}}var h9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:m9,data:{}},y9={left:"right",right:"left",bottom:"top",top:"bottom"};function Xl(e){return e.replace(/left|right|bottom|top/g,function(n){return y9[n]})}var g9={start:"end",end:"start"};function jR(e){return e.replace(/start|end/g,function(n){return g9[n]})}function Qc(e){var n=ci(e),t=n.pageXOffset,i=n.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Jc(e){return Ir(Xi(e)).left+Qc(e).scrollLeft}function E9(e){var n=ci(e),t=Xi(e),i=n.visualViewport,o=t.clientWidth,r=t.clientHeight,s=0,u=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,u=i.offsetTop)),{width:o,height:r,x:s+Jc(e),y:u}}function T9(e){var n,t=Xi(e),i=Qc(e),o=(n=e.ownerDocument)==null?void 0:n.body,r=bo(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=bo(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-i.scrollLeft+Jc(e),l=-i.scrollTop;return Ai(o||t).direction==="rtl"&&(u+=bo(t.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:u,y:l}}function Xc(e){var n=Ai(e),t=n.overflow,i=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+i)}function VR(e){return["html","body","#document"].indexOf(bi(e))>=0?e.ownerDocument.body:oi(e)&&Xc(e)?e:VR(Ql(e))}function gs(e,n){var t;n===void 0&&(n=[]);var i=VR(e),o=i===((t=e.ownerDocument)==null?void 0:t.body),r=ci(i),s=o?[r].concat(r.visualViewport||[],Xc(i)?i:[]):i,u=n.concat(s);return o?u:u.concat(gs(Ql(s)))}function Zc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function S9(e){var n=Ir(e);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function FR(e,n){return n===NR?Zc(E9(e)):Sr(n)?S9(n):Zc(T9(Xi(e)))}function b9(e){var n=gs(Ql(e)),t=["absolute","fixed"].indexOf(Ai(e).position)>=0,i=t&&oi(e)?hs(e):e;return Sr(i)?n.filter(function(o){return Sr(o)&&wR(o,i)&&bi(o)!=="body"&&(t?Ai(o).position!=="static":!0)}):[]}function I9(e,n,t){var i=n==="clippingParents"?b9(e):[].concat(n),o=[].concat(i,[t]),r=o[0],s=o.reduce(function(u,l){var d=FR(e,l);return u.top=bo(d.top,u.top),u.right=Wl(d.right,u.right),u.bottom=Wl(d.bottom,u.bottom),u.left=bo(d.left,u.left),u},FR(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 qR(e){var n=e.reference,t=e.element,i=e.placement,o=i?Ii(i):null,r=i?Ar(i):null,s=n.x+n.width/2-t.width/2,u=n.y+n.height/2-t.height/2,l;switch(o){case jn:l={x:s,y:n.y-t.height};break;case ni:l={x:s,y:n.y+n.height};break;case ii:l={x:n.x+n.width,y:u};break;case Vn:l={x:n.x-t.width,y:u};break;default:l={x:n.x,y:n.y}}var d=o?Wc(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case Tr:l[d]=l[d]-(n[c]/2-t[c]/2);break;case vs:l[d]=l[d]+(n[c]/2-t[c]/2);break}}return l}function Es(e,n){n===void 0&&(n={});var t=n,i=t.placement,o=i===void 0?e.placement:i,r=t.boundary,s=r===void 0?HV:r,u=t.rootBoundary,l=u===void 0?NR:u,d=t.elementContext,c=d===void 0?ms:d,_=t.altBoundary,f=_===void 0?!1:_,p=t.padding,a=p===void 0?0:p,v=LR(typeof a!="number"?a:UR(a,as)),m=c===ms?zV:ms,g=e.rects.popper,E=e.elements[f?m:c],y=I9(Sr(E)?E:E.contextElement||Xi(e.elements.popper),s,l),T=Ir(e.elements.reference),A=qR({reference:T,element:g,strategy:"absolute",placement:o}),S=Zc(Object.assign({},g,A)),N=c===ms?S:T,R={top:y.top-N.top+v.top,bottom:N.bottom-y.bottom+v.bottom,left:y.left-N.left+v.left,right:N.right-y.right+v.right},L=e.modifiersData.offset;if(c===ms&&L){var j=L[o];Object.keys(R).forEach(function(I){var C=[ii,ni].indexOf(I)>=0?1:-1,O=[jn,ni].indexOf(I)>=0?"y":"x";R[I]+=j[O]*C})}return R}function A9(e,n){n===void 0&&(n={});var t=n,i=t.placement,o=t.boundary,r=t.rootBoundary,s=t.padding,u=t.flipVariations,l=t.allowedAutoPlacements,d=l===void 0?xR:l,c=Ar(i),_=c?u?OR:OR.filter(function(a){return Ar(a)===c}):as,f=_.filter(function(a){return d.indexOf(a)>=0});f.length===0&&(f=_);var p=f.reduce(function(a,v){return a[v]=Es(e,{placement:v,boundary:o,rootBoundary:r,padding:s})[Ii(v)],a},{});return Object.keys(p).sort(function(a,v){return p[a]-p[v]})}function C9(e){if(Ii(e)===$c)return[];var n=Xl(e);return[jR(e),n,jR(n)]}function R9(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var o=t.mainAxis,r=o===void 0?!0:o,s=t.altAxis,u=s===void 0?!0:s,l=t.fallbackPlacements,d=t.padding,c=t.boundary,_=t.rootBoundary,f=t.altBoundary,p=t.flipVariations,a=p===void 0?!0:p,v=t.allowedAutoPlacements,m=n.options.placement,g=Ii(m),E=g===m,y=l||(E||!a?[Xl(m)]:C9(m)),T=[m].concat(y).reduce(function(Y,K){return Y.concat(Ii(K)===$c?A9(n,{placement:K,boundary:c,rootBoundary:_,padding:d,flipVariations:a,allowedAutoPlacements:v}):K)},[]),A=n.rects.reference,S=n.rects.popper,N=new Map,R=!0,L=T[0],j=0;j<T.length;j++){var I=T[j],C=Ii(I),O=Ar(I)===Tr,x=[jn,ni].indexOf(C)>=0,P=x?"width":"height",U=Es(n,{placement:I,boundary:c,rootBoundary:_,altBoundary:f,padding:d}),H=x?O?ii:Vn:O?ni:jn;A[P]>S[P]&&(H=Xl(H));var B=Xl(H),w=[];if(r&&w.push(U[C]<=0),u&&w.push(U[H]<=0,U[B]<=0),w.every(function(Y){return Y})){L=I,R=!1;break}N.set(I,w)}if(R)for(var V=a?3:1,q=function(K){var X=T.find(function(Q){var Z=N.get(Q);if(Z)return Z.slice(0,K).every(function(b){return b})});if(X)return L=X,"break"},F=V;F>0;F--){var $=q(F);if($==="break")break}n.placement!==L&&(n.modifiersData[i]._skip=!0,n.placement=L,n.reset=!0)}}var M9={name:"flip",enabled:!0,phase:"main",fn:R9,requiresIfExists:["offset"],data:{_skip:!1}};function GR(e,n,t){return t===void 0&&(t={x:0,y:0}),{top:e.top-n.height-t.y,right:e.right-n.width+t.x,bottom:e.bottom-n.height+t.y,left:e.left-n.width-t.x}}function HR(e){return[jn,ii,ni,Vn].some(function(n){return e[n]>=0})}function N9(e){var n=e.state,t=e.name,i=n.rects.reference,o=n.rects.popper,r=n.modifiersData.preventOverflow,s=Es(n,{elementContext:"reference"}),u=Es(n,{altBoundary:!0}),l=GR(s,i),d=GR(u,o,r),c=HR(l),_=HR(d);n.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:_},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":_})}var O9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N9};function x9(e,n,t){var i=Ii(e),o=[Vn,jn].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},n,{placement:e})):t,s=r[0],u=r[1];return s=s||0,u=(u||0)*o,[Vn,ii].indexOf(i)>=0?{x:u,y:s}:{x:s,y:u}}function P9(e){var n=e.state,t=e.options,i=e.name,o=t.offset,r=o===void 0?[0,0]:o,s=xR.reduce(function(c,_){return c[_]=x9(_,n.rects,r),c},{}),u=s[n.placement],l=u.x,d=u.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=l,n.modifiersData.popperOffsets.y+=d),n.modifiersData[i]=s}var w9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:P9};function D9(e){var n=e.state,t=e.name;n.modifiersData[t]=qR({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var k9={name:"popperOffsets",enabled:!0,phase:"read",fn:D9,data:{}};function L9(e){return e==="x"?"y":"x"}function U9(e){var n=e.state,t=e.options,i=e.name,o=t.mainAxis,r=o===void 0?!0:o,s=t.altAxis,u=s===void 0?!1:s,l=t.boundary,d=t.rootBoundary,c=t.altBoundary,_=t.padding,f=t.tether,p=f===void 0?!0:f,a=t.tetherOffset,v=a===void 0?0:a,m=Es(n,{boundary:l,rootBoundary:d,padding:_,altBoundary:c}),g=Ii(n.placement),E=Ar(n.placement),y=!E,T=Wc(g),A=L9(T),S=n.modifiersData.popperOffsets,N=n.rects.reference,R=n.rects.popper,L=typeof v=="function"?v(Object.assign({},n.rects,{placement:n.placement})):v,j=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),I=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,C={x:0,y:0};if(S){if(r){var O,x=T==="y"?jn:Vn,P=T==="y"?ni:ii,U=T==="y"?"height":"width",H=S[T],B=H+m[x],w=H-m[P],V=p?-R[U]/2:0,q=E===Tr?N[U]:R[U],F=E===Tr?-R[U]:-N[U],$=n.elements.arrow,Y=p&&$?Kc($):{width:0,height:0},K=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:kR(),X=K[x],Q=K[P],Z=ys(0,N[U],Y[U]),b=y?N[U]/2-V-Z-X-j.mainAxis:q-Z-X-j.mainAxis,M=y?-N[U]/2+V+Z+Q+j.mainAxis:F+Z+Q+j.mainAxis,k=n.elements.arrow&&hs(n.elements.arrow),z=k?T==="y"?k.clientTop||0:k.clientLeft||0:0,W=(O=I==null?void 0:I[T])!=null?O:0,J=H+b-W-z,ee=H+M-W,oe=ys(p?Wl(B,J):B,H,p?bo(w,ee):w);S[T]=oe,C[T]=oe-H}if(u){var te,ie=T==="x"?jn:Vn,se=T==="x"?ni:ii,fe=S[A],pe=A==="y"?"height":"width",ve=fe+m[ie],de=fe-m[se],ae=[jn,Vn].indexOf(g)!==-1,ge=(te=I==null?void 0:I[A])!=null?te:0,Ae=ae?ve:fe-N[pe]-R[pe]-ge+j.altAxis,Ce=ae?fe+N[pe]+R[pe]-ge-j.altAxis:de,Re=p&&ae?l9(Ae,fe,Ce):ys(p?Ae:ve,fe,p?Ce:de);S[A]=Re,C[A]=Re-fe}n.modifiersData[i]=C}}var B9={name:"preventOverflow",enabled:!0,phase:"main",fn:U9,requiresIfExists:["offset"]};function j9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function V9(e){return e===ci(e)||!oi(e)?Qc(e):j9(e)}function F9(e){var n=e.getBoundingClientRect(),t=br(n.width)/e.offsetWidth||1,i=br(n.height)/e.offsetHeight||1;return t!==1||i!==1}function q9(e,n,t){t===void 0&&(t=!1);var i=oi(n),o=oi(n)&&F9(n),r=Xi(n),s=Ir(e,o),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((bi(n)!=="body"||Xc(r))&&(u=V9(n)),oi(n)?(l=Ir(n,!0),l.x+=n.clientLeft,l.y+=n.clientTop):r&&(l.x=Jc(r))),{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function G9(e){var n=new Map,t=new Set,i=[];e.forEach(function(r){n.set(r.name,r)});function o(r){t.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(u){if(!t.has(u)){var l=n.get(u);l&&o(l)}}),i.push(r)}return e.forEach(function(r){t.has(r.name)||o(r)}),i}function H9(e){var n=G9(e);return t9.reduce(function(t,i){return t.concat(n.filter(function(o){return o.phase===i}))},[])}function z9(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}function Y9(e){var n=e.reduce(function(t,i){var o=t[i.name];return t[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,t},{});return Object.keys(n).map(function(t){return n[t]})}var zR={placement:"bottom",modifiers:[],strategy:"absolute"};function YR(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function $9(e){e===void 0&&(e={});var n=e,t=n.defaultModifiers,i=t===void 0?[]:t,o=n.defaultOptions,r=o===void 0?zR:o;return function(u,l,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},zR,r),modifiersData:{},elements:{reference:u,popper:l},attributes:{},styles:{}},_=[],f=!1,p={state:c,setOptions:function(g){var E=typeof g=="function"?g(c.options):g;v(),c.options=Object.assign({},r,c.options,E),c.scrollParents={reference:Sr(u)?gs(u):u.contextElement?gs(u.contextElement):[],popper:gs(l)};var y=H9(Y9([].concat(i,c.options.modifiers)));return c.orderedModifiers=y.filter(function(T){return T.enabled}),a(),p.update()},forceUpdate:function(){if(!f){var g=c.elements,E=g.reference,y=g.popper;if(YR(E,y)){c.rects={reference:q9(E,hs(y),c.options.strategy==="fixed"),popper:Kc(y)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var T=0;T<c.orderedModifiers.length;T++){if(c.reset===!0){c.reset=!1,T=-1;continue}var A=c.orderedModifiers[T],S=A.fn,N=A.options,R=N===void 0?{}:N,L=A.name;typeof S=="function"&&(c=S({state:c,options:R,name:L,instance:p})||c)}}}},update:z9(function(){return new Promise(function(m){p.forceUpdate(),m(c)})}),destroy:function(){v(),f=!0}};if(!YR(u,l))return p;p.setOptions(d).then(function(m){!f&&d.onFirstUpdate&&d.onFirstUpdate(m)});function a(){c.orderedModifiers.forEach(function(m){var g=m.name,E=m.options,y=E===void 0?{}:E,T=m.effect;if(typeof T=="function"){var A=T({state:c,name:g,instance:p,options:y}),S=function(){};_.push(A||S)}})}function v(){_.forEach(function(m){return m()}),_=[]}return p}}var K9=[h9,k9,v9,o9,w9,M9,B9,_9,O9],W9=$9({defaultModifiers:K9}),$R="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function Zl(e){return e.split("-").map(n=>parseInt(n,16)).map(n=>String.fromCodePoint(n)).join("")}function Q9(e,n,t,i=[]){const o={};return Object.keys(e).forEach(r=>{if(i.includes(r))return;const s=[];e[r].forEach(u=>{var l;if(u[Yl][0].includes(n.toLocaleLowerCase())){let d=u[SR];if(t!==Kl&&Array.isArray(u[$l])){const c=((l=u[$l])==null?void 0:l.findIndex(_=>_.includes(t)))||-1;c!==-1&&u[$l]&&(d=u[$l][c])}return s.push({...u,[ps]:d})}}),s.length&&(o[r]=s)}),o}function KR(){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 WR(e){return e.replace(/^_*(.)|_+(.)/g,(n,t,i)=>t?t.toUpperCase():" "+i.toUpperCase())}var Ts=(e,n)=>{const t=e.__vccOpts||e;for(const[i,o]of n)t[i]=o;return t};const J9=h.defineComponent({name:"Body",emits:{select:e=>!0},setup(){const{state:e,updateEmoji:n,updateSelect:t}=h.inject("store"),i=h.ref(null),o=h.computed(()=>Q9(e.emojis,e.search,e.skinTone,e.options.disabledGroups)),r=h.getCurrentInstance(),s=h.computed(()=>!e.options.hideGroupNames),u=h.computed(()=>!e.options.disableStickyGroupNames),l=h.toRaw(e.options.groupNames),d=e.orderedGroupKeys;e.options.additionalGroups&&Object.keys(e.options.additionalGroups).map(a=>{e.options.groupNames[a]?l[a]=e.options.groupNames[a]:l[a]=WR(a)});const c=KR()?"is-mac":"";function _(a){n(a)}function f(a){t(a),r==null||r.emit("select",{...a,t:e.skinTone,i:Zl(a.r)})}function p(a,v){var m;const g=(m=a==null?void 0:a.target)==null?void 0:m.closest("button");g&&(g.innerHTML=`<span>${Zl(v)}</span>`)}return h.watch(()=>e.activeGroup,()=>{var a;const v=(a=i.value)==null?void 0:a.querySelector("#"+e.activeGroup);v&&(v.parentNode.scrollTop=v.offsetTop-v.parentNode.offsetTop)}),{emojis:o,bodyInner:i,EMOJI_REMOTE_SRC:ER,GROUP_NAMES:TR,handleClick:f,handleError:p,handleMouseEnter:_,native:e.options.native,unicodeToEmoji:Zl,EMOJI_RESULT_KEY:ps,EMOJI_NAME_KEY:Yl,hasGroupNames:s,isSticky:u,platform:c,groupNames:l,orderedKeys:d}}}),X9={class:"v3-body"},Z9=["id"],eF={class:"v3-emojis"},tF=["onMouseenter","onClick"],nF={key:0},iF=["src","alt","onError"],oF={key:1,class:"v3-no-result"};function rF(e,n,t,i,o,r){return h.openBlock(),h.createElementBlock("div",X9,[h.createElementVNode("div",{ref:"bodyInner",class:h.normalizeClass([e.platform,"v3-body-inner"])},[e.orderedKeys.length?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(e.orderedKeys,s=>(h.openBlock(),h.createElementBlock("div",{id:s,key:s,class:"v3-group"},[e.hasGroupNames?h.withDirectives((h.openBlock(),h.createElementBlock("h5",{key:0,class:h.normalizeClass(e.isSticky?"v3-sticky":"")},h.toDisplayString(e.groupNames[s]),3)),[[h.vShow,e.emojis[s]]]):h.createCommentVNode("",!0),h.withDirectives(h.createElementVNode("div",eF,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.emojis[s],u=>(h.openBlock(),h.createElementBlock("button",{key:u.r,type:"button",onMouseenter:l=>e.handleMouseEnter(u),onClick:l=>e.handleClick(u)},[e.native?(h.openBlock(),h.createElementBlock("span",nF,h.toDisplayString(e.unicodeToEmoji(u.r)),1)):(h.openBlock(),h.createElementBlock("img",{key:1,src:e.EMOJI_REMOTE_SRC+`/${u.r}.png`,alt:u.n[0],onError:l=>e.handleError(l,u.r)},null,40,iF))],40,tF))),128))],512),[[h.vShow,e.emojis[s]]])],8,Z9))),128)):(h.openBlock(),h.createElementBlock("span",oF," No emoji has been found! "))],2)])}var sF=Ts(J9,[["render",rF]]),lF="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",uF="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",dF="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",cF="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",_F="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",fF="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",pF="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",aF="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const vF=h.defineComponent({name:"Header",setup(e){const{state:n,updateSearch:t,updateActiveGroup:i}=h.inject("store"),o=h.computed(()=>!n.options.hideSearch),r=h.computed(()=>!n.options.hideGroupIcons),s=JSON.parse(JSON.stringify(n.orderedGroupKeys)),u=h.computed(()=>n.options.staticTexts.placeholder||""),l=h.computed({get:()=>n.search,set:_=>t(_)}),d=[...n.groups,...Object.keys(n.options.additionalGroups).map(_=>({key:_,title:n.options.groupNames[_]?n.options.groupNames[_]:WR(_)}))],c=[];return s.forEach(_=>{const f=d.findIndex(p=>p.key===_);f!==-1&&(c.push(d[f]),d.splice(f,1))}),{orderedGroups:c,orderedKeys:s,searchValue:l,updateActiveGroup:i,hasSearch:o,hasGroupIcons:r,placeholder:u,icons:{smileys_people:$R,animals_nature:lF,food_drink:uF,activities:dF,travel_places:cF,objects:_F,symbols:fF,flags:pF,...n.options.groupIcons,recent:aF}}}}),mF={key:0,class:"v3-header"},hF={key:0,class:"v3-groups"},yF=["onClick"],gF=["title"],EF=["src"],TF={key:1,class:"v3-spacing"},SF={key:2,class:"v3-search"},bF=["placeholder"];function IF(e,n,t,i,o,r){return e.hasGroupIcons||e.hasSearch?(h.openBlock(),h.createElementBlock("div",mF,[e.hasGroupIcons?(h.openBlock(),h.createElementBlock("div",hF,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orderedGroups,s=>(h.openBlock(),h.createElementBlock("button",{key:s.key,type:"button",class:h.normalizeClass(["v3-group",{"v3-is-hidden":!e.icons[s.key]}]),onClick:u=>e.updateActiveGroup(s.key)},[h.createElementVNode("span",{title:s.title,class:"v3-icon"},[h.createElementVNode("img",{src:e.icons[s.key],alt:""},null,8,EF)],8,gF)],10,yF))),128))])):h.createCommentVNode("",!0),e.hasGroupIcons&&e.hasSearch?(h.openBlock(),h.createElementBlock("div",TF)):h.createCommentVNode("",!0),e.hasSearch?(h.openBlock(),h.createElementBlock("div",SF,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=s=>e.searchValue=s),type:"text",placeholder:e.placeholder},null,8,bF),[[h.vModelText,e.searchValue]])])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)}var AF=Ts(vF,[["render",IF]]);const CF=h.defineComponent({name:"Header",setup(){const{state:e,updateSkinTone:n}=h.inject("store"),t=h.ref(!1),i=h.ref(!1),o=h.computed(()=>e.skinTone),r=h.computed(()=>e.options.staticTexts.skinTone||"Skin tone"),s=h.computed(()=>!e.options.disableSkinTones),u=KR()?"is-mac":"",l=h.computed(()=>({...e.emoji,src:ER+"/"+e.emoji[ps]+".png"}));function d(f=!0){t.value=f}function c(){t.value=!t.value}function _(f){n(f),d(!1)}return h.watch(()=>e.emoji,()=>{i.value=!1}),{emoji:l,SKIN_TONES:CV,updateSkinToneState:d,skinTone:t,stateSkinTone:o,selectSkinTone:_,toggleSkinToneState:c,EMOJI_RESULT_KEY:ps,EMOJI_NAME_KEY:Yl,skinToneText:r,hasSkinTones:s,native:e.options.native,unicodeToEmoji:Zl,platform:u,hasError:i}}}),RF={class:"v3-foot-left"},MF={key:0},NF=["alt","src"],OF={class:"v3-text"},xF={class:"v3-text"},PF=["onClick"];function wF(e,n,t,i,o,r){return h.openBlock(),h.createElementBlock("div",{class:"v3-footer",onMouseleave:n[2]||(n[2]=s=>e.updateSkinToneState(!1))},[h.createElementVNode("div",RF,[h.createElementVNode("span",{class:h.normalizeClass([e.platform,"v3-icon"])},[e.native||e.hasError?(h.openBlock(),h.createElementBlock("span",MF,h.toDisplayString(e.unicodeToEmoji(e.emoji.r)),1)):(h.openBlock(),h.createElementBlock("img",{key:1,alt:e.unicodeToEmoji(e.emoji.r),src:e.emoji.src,onError:n[0]||(n[0]=s=>e.hasError=!0)},null,40,NF))],2),h.createElementVNode("span",OF," :"+h.toDisplayString(e.emoji[e.EMOJI_NAME_KEY][1]||e.emoji[e.EMOJI_NAME_KEY][0])+": ",1)]),e.hasSkinTones?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createElementVNode("button",{type:"button",class:"v3-tone",onClick:n[1]||(n[1]=(...s)=>e.toggleSkinToneState&&e.toggleSkinToneState(...s))},[h.createElementVNode("span",xF,h.toDisplayString(e.skinToneText),1),h.createElementVNode("span",{class:h.normalizeClass(`v3-icon v3-tone-${e.stateSkinTone}`)},null,2)]),h.createElementVNode("div",{class:h.normalizeClass([e.skinTone?"v3-is-open":"","v3-skin-tones"])},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.SKIN_TONES,s=>(h.openBlock(),h.createElementBlock("button",{key:s,type:"button",class:h.normalizeClass(["v3-skin-tone-"+s,"v3-skin-tone"]),onClick:u=>e.selectSkinTone(s)},null,10,PF))),128))],2)],64)):h.createCommentVNode("",!0)],32)}var DF=Ts(CF,[["render",wF]]);const kF=h.defineComponent({name:"PickerRoot",components:{Header:AF,Body:sF,Footer:DF},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:n}){const t=h.ref(),i=h.ref(),o=h.ref(),r=h.ref(!1),s=h.ref(e.text),u=e.type==="input"||e.type==="textarea";let l=-1;const{state:d}=h.inject("store"),c=h.computed(()=>d.options.colorTheme);function _(m){if(u){const g=d.options.mode;g==="prepend"?s.value=m.i+s.value:g==="insert"&&l!==-1?(s.value=`${s.value.slice(0,l)}${m.i}${s.value.slice(l)}`,l+=m.i.length):s.value+=m.i,n("update:text",s.value)}n("select",m)}function f(){var m;t.value&&(l=((m=t.value)==null?void 0:m.selectionEnd)||-1)}function p(m){var g;!((g=m.target)!=null&&g.closest(".v3-input-picker-wrap"))&&r.value&&(r.value=!1)}function a(){if(i.value&&o.value&&u){let m=d.options.offset;typeof m!="number"&&(m=6),W9(i.value,o.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,m]}}]}),document.body.addEventListener("click",p)}}function v(m){s.value=m.target.value||"",n("update:text",s.value)}return h.onMounted(()=>{a()}),h.onBeforeUnmount(()=>{document.body.removeEventListener("click",p)}),{face:$R,open:r,onSelect:_,input:s,elem:t,updateCursor:f,button:i,picker:o,isInputType:u,onChangeText:v,colorTheme:c}}}),LF={key:0,class:"v3-input-emoji-picker"},UF={class:"v3-input-picker-root"},BF=["value"],jF=["value"],VF=["src"];function FF(e,n,t,i,o,r){const s=h.resolveComponent("Header"),u=h.resolveComponent("Body"),l=h.resolveComponent("Footer");return e.isInputType?(h.openBlock(),h.createElementBlock("div",LF,[h.createElementVNode("div",UF,[e.type==="input"?(h.openBlock(),h.createElementBlock("input",{key:0,ref:"elem",value:e.input,type:"text",class:"v3-emoji-picker-input",onInput:n[0]||(n[0]=(...d)=>e.onChangeText&&e.onChangeText(...d)),onBlur:n[1]||(n[1]=(...d)=>e.updateCursor&&e.updateCursor(...d))},null,40,BF)):(h.openBlock(),h.createElementBlock("textarea",{key:1,ref:"elem",value:e.input,class:"v3-emoji-picker-textarea",onInput:n[2]||(n[2]=(...d)=>e.onChangeText&&e.onChangeText(...d)),onBlur:n[3]||(n[3]=(...d)=>e.updateCursor&&e.updateCursor(...d))},null,40,jF)),h.createElementVNode("div",{class:h.normalizeClass(["v3-input-picker-wrap",e.open?"v3-picker-is-open":""])},[h.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:n[4]||(n[4]=d=>e.open=!e.open)},[h.createElementVNode("img",{src:e.face,alt:""},null,8,VF)],512),h.createElementVNode("div",{ref:"picker",class:h.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[h.createVNode(s),h.createVNode(u,{onSelect:e.onSelect},null,8,["onSelect"]),h.createVNode(l)],2)],2)])])):(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[h.createVNode(s),h.createVNode(u,{onSelect:e.onSelect},null,8,["onSelect"]),h.createVNode(l)],2))}var qF=Ts(kF,[["render",FF]]);const GF=h.defineComponent({name:"Picker",components:{PickerRoot:qF},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:n}){const t=h.ref(e.text);function i(r){t.value=r||"",n("update:text",t.value)}const o=GV();return o.updateOptions({native:e.native,hideSearch:e.hideSearch,hideGroupIcons:e.hideGroupIcons,hideGroupNames:e.hideGroupNames,staticTexts:{...RV,...e.staticTexts},disableStickyGroupNames:e.disableStickyGroupNames,disabledGroups:e.disabledGroups,groupNames:{...TR,...e.groupNames},disableSkinTones:e.disableSkinTones,displayRecent:e.displayRecent,additionalGroups:e.additionalGroups,mode:e.mode,offset:e.offset,groupOrder:e.groupOrder,groupIcons:e.groupIcons,colorTheme:MV.includes(e.theme)?e.theme:"light"}),h.provide("store",o),{type:e.pickerType,input:t,onChangeText:i}}});function HF(e,n,t,i,o,r){const s=h.resolveComponent("picker-root");return h.openBlock(),h.createBlock(s,{type:e.type,text:e.input,onSelect:n[0]||(n[0]=u=>e.$emit("select",u)),"onUpdate:text":e.onChangeText},null,8,["type","text","onUpdate:text"])}var QR=Ts(GF,[["render",HF]]);function Ss(e,n){const t=typeof e=="string"&&!n?`${e}Context`:n,i=Symbol(t);return[s=>{const u=h.inject(i,s);if(u||u===null)return u;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=>(h.provide(i,s),s)]}function Cr(){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 JR(e,n,t){const i=t.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&i.addEventListener(e,n,{once:!0}),i.dispatchEvent(o)}function e_(e){return e?e.flatMap(n=>n.type===h.Fragment?e_(n.children):[n]):[]}const[XR,ZY]=Ss("ConfigProvider");function zF(e,n){var t;const i=h.shallowRef();return h.watchEffect(()=>{i.value=e()},{...n,flush:(t=void 0)!=null?t:"sync"}),h.readonly(i)}function ZR(e){return h.getCurrentScope()?(h.onScopeDispose(e),!0):!1}function YF(e){let n=!1,t;const i=h.effectScope(!0);return(...o)=>(n||(t=i.run(()=>e(...o)),n=!0),t)}function $F(e){let n=0,t,i;const o=()=>{n-=1,i&&n<=0&&(i.stop(),t=void 0,i=void 0)};return(...r)=>(n+=1,i||(i=h.effectScope(!0),t=i.run(()=>e(...r))),ZR(o),t)}function KF(e){if(!h.isRef(e))return h.reactive(e);const n=new Proxy({},{get(t,i,o){return h.unref(Reflect.get(e.value,i,o))},set(t,i,o){return h.isRef(e.value[i])&&!h.isRef(o)?e.value[i].value=o:e.value[i]=o,!0},deleteProperty(t,i){return Reflect.deleteProperty(e.value,i)},has(t,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return h.reactive(n)}function WF(e){return KF(h.computed(e))}function QF(e,...n){const t=n.flat(),i=t[0];return WF(()=>Object.fromEntries(typeof i=="function"?Object.entries(h.toRefs(e)).filter(([o,r])=>!i(h.toValue(r),o)):Object.entries(h.toRefs(e)).filter(o=>!t.includes(o[0]))))}const Zi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const JF=e=>typeof e<"u",XF=Object.prototype.toString,ZF=e=>XF.call(e)==="[object Object]",eM=e8();function e8(){var e,n;return Zi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function t8(e){return h.getCurrentInstance()}function t_(e){return Array.isArray(e)?e:[e]}function n8(e,n){t8()&&h.onBeforeUnmount(e,n)}function i8(e,n,t){return h.watch(e,n,{...t,immediate:!0})}const n_=Zi?window:void 0;function bs(e){var n;const t=h.toValue(e);return(n=t==null?void 0:t.$el)!=null?n:t}function i_(...e){const n=[],t=()=>{n.forEach(u=>u()),n.length=0},i=(u,l,d,c)=>(u.addEventListener(l,d,c),()=>u.removeEventListener(l,d,c)),o=h.computed(()=>{const u=t_(h.toValue(e[0])).filter(l=>l!=null);return u.every(l=>typeof l!="string")?u:void 0}),r=i8(()=>{var u,l;return[(l=(u=o.value)==null?void 0:u.map(d=>bs(d)))!=null?l:[n_].filter(d=>d!=null),t_(h.toValue(o.value?e[1]:e[0])),t_(h.unref(o.value?e[2]:e[1])),h.toValue(o.value?e[3]:e[2])]},([u,l,d,c])=>{if(t(),!(u!=null&&u.length)||!(l!=null&&l.length)||!(d!=null&&d.length))return;const _=ZF(c)?{...c}:c;n.push(...u.flatMap(f=>l.flatMap(p=>d.map(a=>i(f,p,a,_)))))},{flush:"post"}),s=()=>{r(),t()};return ZR(t),s}function o8(){const e=h.shallowRef(!1),n=h.getCurrentInstance();return n&&h.onMounted(()=>{e.value=!0},n),e}function r8(e){return typeof e=="function"?e:typeof e=="string"?n=>n.key===e:Array.isArray(e)?n=>e.includes(n.key):()=>!0}function s8(...e){let n,t,i={};e.length===3?(n=e[0],t=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(n=!0,t=e[0],i=e[1]):(n=e[0],t=e[1]):(n=!0,t=e[0]);const{target:o=n_,eventName:r="keydown",passive:s=!1,dedupe:u=!1}=i,l=r8(n);return i_(o,r,c=>{c.repeat&&h.toValue(u)||l(c)&&t(c)},s)}function l8(e){return JSON.parse(JSON.stringify(e))}function tM(e,n,t,i={}){var o,r,s;const{clone:u=!1,passive:l=!1,eventName:d,deep:c=!1,defaultValue:_,shouldEmit:f}=i,p=h.getCurrentInstance(),a=t||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(r=p==null?void 0:p.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let v=d;v=v||`update:${n.toString()}`;const m=y=>u?typeof u=="function"?u(y):l8(y):y,g=()=>JF(e[n])?m(e[n]):_,E=y=>{f?f(y)&&a(v,y):a(v,y)};if(l){const y=g(),T=h.ref(y);let A=!1;return h.watch(()=>e[n],S=>{A||(A=!0,T.value=m(S),h.nextTick(()=>A=!1))}),h.watch(T,S=>{!A&&(S!==e[n]||c)&&E(S)},{deep:c}),T}else return h.computed({get(){return g()},set(y){E(y)}})}function o_(e){if(e===null||typeof e!="object")return!1;const n=Object.getPrototypeOf(e);return n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function r_(e,n,t=".",i){if(!o_(n))return r_(e,{},t,i);const o=Object.assign({},n);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const s=e[r];s!=null&&(i&&i(o,r,s,t)||(Array.isArray(s)&&Array.isArray(o[r])?o[r]=[...s,...o[r]]:o_(s)&&o_(o[r])?o[r]=r_(s,o[r],(t?`${t}.`:"")+r.toString(),i):o[r]=s))}return o}function u8(e){return(...n)=>n.reduce((t,i)=>r_(t,i,"",e),{})}const d8=u8(),c8=$F(()=>{const e=h.ref(new Map),n=h.ref(),t=h.computed(()=>{for(const s of e.value.values())if(s)return!0;return!1}),i=XR({scrollBody:h.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=n.value??"",eM&&(o==null||o()),n.value=void 0};return h.watch(t,(s,u)=>{var _;if(!Zi)return;if(!s){u&&r();return}n.value===void 0&&(n.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,d={padding:l,margin:0},c=(_=i.scrollBody)!=null&&_.value?typeof i.scrollBody.value=="object"?d8({padding:i.scrollBody.value.padding===!0?l:i.scrollBody.value.padding,margin:i.scrollBody.value.margin===!0?l:i.scrollBody.value.margin},d):d:{padding:0,margin:0};l>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",`${l}px`),document.body.style.overflow="hidden"),eM&&(o=i_(document,"touchmove",f=>f8(f),{passive:!1})),h.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function _8(e){const n=Math.random().toString(36).substring(2,7),t=c8();t.value.set(n,e);const i=h.computed({get:()=>t.value.get(n)??!1,set:o=>t.value.set(n,o)});return n8(()=>{t.value.delete(n)}),i}function nM(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(t instanceof Element)||t.tagName==="BODY"?!1:nM(t)}}function f8(e){const n=e||window.event,t=n.target;return t instanceof Element&&nM(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.cancelable&&n.preventDefault(),!1)}function p8(e){const n=h.getCurrentInstance(),t=n==null?void 0:n.type.emits,i={};return t!=null&&t.length||console.warn(`No emitted event found. Please check component: ${n==null?void 0:n.type.__name}`),t==null||t.forEach(o=>{i[h.toHandlerKey(h.camelize(o))]=(...r)=>e(o,...r)}),i}let s_=0;function a8(){h.watchEffect(e=>{if(!Zi)return;const n=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",n[0]??iM()),document.body.insertAdjacentElement("beforeend",n[1]??iM()),s_++,e(()=>{s_===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(t=>t.remove()),s_--})})}function iM(){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 _i(){const e=h.getCurrentInstance(),n=h.ref(),t=h.computed(()=>{var s,u;return["#text","#comment"].includes((s=n.value)==null?void 0:s.$el.nodeName)?(u=n.value)==null?void 0:u.$el.nextElementSibling:bs(n)}),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){n.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:n,currentElement:t}}function oM(e){const n=h.getCurrentInstance(),t=Object.keys((n==null?void 0:n.type.props)??{}).reduce((o,r)=>{const s=(n==null?void 0:n.type.props[r]).default;return s!==void 0&&(o[r]=s),o},{}),i=h.toRef(e);return h.computed(()=>{const o={},r=(n==null?void 0:n.vnode.props)??{};return Object.keys(r).forEach(s=>{o[h.camelize(s)]=r[s]}),Object.keys({...t,...o}).reduce((s,u)=>(i.value[u]!==void 0&&(s[u]=i.value[u]),s),{})})}function Rr(e,n){const t=oM(e),i=n?p8(n):{};return h.computed(()=>({...t.value,...i}))}var v8=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Mr=new WeakMap,eu=new WeakMap,tu={},l_=0,rM=function(e){return e&&(e.host||rM(e.parentNode))},m8=function(e,n){return n.map(function(t){if(e.contains(t))return t;var i=rM(t);return i&&e.contains(i)?i:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},h8=function(e,n,t,i){var o=m8(n,Array.isArray(e)?e:[e]);tu[t]||(tu[t]=new WeakMap);var r=tu[t],s=[],u=new Set,l=new Set(o),d=function(_){!_||u.has(_)||(u.add(_),d(_.parentNode))};o.forEach(d);var c=function(_){!_||l.has(_)||Array.prototype.forEach.call(_.children,function(f){if(u.has(f))c(f);else try{var p=f.getAttribute(i),a=p!==null&&p!=="false",v=(Mr.get(f)||0)+1,m=(r.get(f)||0)+1;Mr.set(f,v),r.set(f,m),s.push(f),v===1&&a&&eu.set(f,!0),m===1&&f.setAttribute(t,"true"),a||f.setAttribute(i,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return c(n),u.clear(),l_++,function(){s.forEach(function(_){var f=Mr.get(_)-1,p=r.get(_)-1;Mr.set(_,f),r.set(_,p),f||(eu.has(_)||_.removeAttribute(i),eu.delete(_)),p||_.removeAttribute(t)}),l_--,l_||(Mr=new WeakMap,Mr=new WeakMap,eu=new WeakMap,tu={})}},y8=function(e,n,t){t===void 0&&(t="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=v8(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),h8(i,o,t,"aria-hidden")):function(){return null}};function g8(e){let n;h.watch(()=>bs(e),t=>{t?n=y8(t):n&&n()}),h.onUnmounted(()=>{n&&n()})}let E8=0;function u_(e,n="reka"){var i;if("useId"in Os)return`${n}-${(i=Os.useId)==null?void 0:i.call(Os)}`;const t=XR({useId:void 0});return t.useId?`${n}-${t.useId()}`:`${n}-${++E8}`}function T8(e){const n=h.ref(),t=h.computed(()=>{var o;return((o=n.value)==null?void 0:o.width)??0}),i=h.computed(()=>{var o;return((o=n.value)==null?void 0:o.height)??0});return h.onMounted(()=>{const o=bs(e);if(o){n.value={width:o.offsetWidth,height:o.offsetHeight};const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let l,d;if("borderBoxSize"in u){const c=u.borderBoxSize,_=Array.isArray(c)?c[0]:c;l=_.inlineSize,d=_.blockSize}else l=o.offsetWidth,d=o.offsetHeight;n.value={width:l,height:d}});return r.observe(o,{box:"border-box"}),()=>r.unobserve(o)}else n.value=void 0}),{width:t,height:i}}function S8(e,n){const t=h.ref(e);function i(r){return n[t.value][r]??t.value}return{state:t,dispatch:r=>{t.value=i(r)}}}function b8(e,n){var m;const t=h.ref({}),i=h.ref("none"),o=h.ref(e),r=e.value?"mounted":"unmounted";let s;const u=((m=n.value)==null?void 0:m.ownerDocument.defaultView)??n_,{state:l,dispatch:d}=S8(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=g=>{var E;if(Zi){const y=new CustomEvent(g,{bubbles:!1,cancelable:!1});(E=n.value)==null||E.dispatchEvent(y)}};h.watch(e,async(g,E)=>{var T;const y=E!==g;if(await h.nextTick(),y){const A=i.value,S=nu(n.value);g?(d("MOUNT"),c("enter"),S==="none"&&c("after-enter")):S==="none"||S==="undefined"||((T=t.value)==null?void 0:T.display)==="none"?(d("UNMOUNT"),c("leave"),c("after-leave")):E&&A!==S?(d("ANIMATION_OUT"),c("leave")):(d("UNMOUNT"),c("after-leave"))}},{immediate:!0});const _=g=>{const E=nu(n.value),y=E.includes(CSS.escape(g.animationName)),T=l.value==="mounted"?"enter":"leave";if(g.target===n.value&&y&&(c(`after-${T}`),d("ANIMATION_END"),!o.value)){const A=n.value.style.animationFillMode;n.value.style.animationFillMode="forwards",s=u==null?void 0:u.setTimeout(()=>{var S;((S=n.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(n.value.style.animationFillMode=A)})}g.target===n.value&&E==="none"&&d("ANIMATION_END")},f=g=>{g.target===n.value&&(i.value=nu(n.value))},p=h.watch(n,(g,E)=>{g?(t.value=getComputedStyle(g),g.addEventListener("animationstart",f),g.addEventListener("animationcancel",_),g.addEventListener("animationend",_)):(d("ANIMATION_END"),s!==void 0&&(u==null||u.clearTimeout(s)),E==null||E.removeEventListener("animationstart",f),E==null||E.removeEventListener("animationcancel",_),E==null||E.removeEventListener("animationend",_))},{immediate:!0}),a=h.watch(l,()=>{const g=nu(n.value);i.value=l.value==="mounted"?g:"none"});return h.onUnmounted(()=>{p(),a()}),{isPresent:h.computed(()=>["mounted","unmountSuspended"].includes(l.value))}}function nu(e){return e&&getComputedStyle(e).animationName||"none"}var sM=h.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:n,expose:t}){var d;const{present:i,forceMount:o}=h.toRefs(e),r=h.ref(),{isPresent:s}=b8(i,r);t({present:s});let u=n.default({present:s.value});u=e_(u||[]);const l=h.getCurrentInstance();if(u&&(u==null?void 0:u.length)>1){const c=(d=l==null?void 0:l.parent)!=null&&d.type.name?`<${l.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(_=>` - ${_}`).join(`
|
|
14
14
|
`)].join(`
|
|
15
|
-
`))}return()=>o.value||i.value||s.value?h.h(n.default({present:s.value})[0],{ref:c=>{const _=bs(c);return typeof(_==null?void 0:_.hasAttribute)>"u"||(_!=null&&_.hasAttribute("data-reka-popper-content-wrapper")?r.value=_.firstElementChild:r.value=_),_}}):null}});const I8=h.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:n,slots:t}){return()=>{var l;if(!t.default)return null;const i=e_(t.default()),o=i.findIndex(d=>d.type!==h.Comment);if(o===-1)return i;const r=i[o];(l=r.props)==null||delete l.ref;const s=r.props?h.mergeProps(n,r.props):n,u=h.cloneVNode({...r,props:{}},s);return i.length===1?u:(i[o]=u,i)}}}),A8=["area","img","input"],Ui=h.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:n,slots:t}){const i=e.asChild?"template":e.as;return typeof i=="string"&&A8.includes(i)?()=>h.h(i,n):i!=="template"?()=>h.h(e.as,n,{default:t.default}):()=>h.h(I8,n,{default:t.default})}}),[lM,C8]=Ss("CollapsibleRoot");var R8=h.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:n,emit:t}){const i=e,r=tM(i,"open",t,{defaultValue:i.defaultOpen,passive:i.open===void 0}),{disabled:s,unmountOnHide:u}=h.toRefs(i);return C8({contentId:"",disabled:s,open:r,unmountOnHide:u,onOpenToggle:()=>{s.value||(r.value=!r.value)}}),n({open:r}),_i(),(l,d)=>(h.openBlock(),h.createBlock(h.unref(Ui),{as:l.as,"as-child":i.asChild,"data-state":h.unref(r)?"open":"closed","data-disabled":h.unref(s)?"":void 0},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default",{open:h.unref(r)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),M8=R8,N8=h.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:n}){const t=e,i=n,o=lM();o.contentId||(o.contentId=u_(void 0,"reka-collapsible-content"));const r=h.ref(),{forwardRef:s,currentElement:u}=_i(),l=h.ref(0),d=h.ref(0),c=h.computed(()=>o.open.value),_=h.ref(c.value),f=h.ref();h.watch(()=>{var a;return[c.value,(a=r.value)==null?void 0:a.present]},async()=>{await h.nextTick();const a=u.value;if(!a)return;f.value=f.value||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";const v=a.getBoundingClientRect();d.value=v.height,l.value=v.width,_.value||(a.style.transitionDuration=f.value.transitionDuration,a.style.animationName=f.value.animationName)},{immediate:!0});const p=h.computed(()=>_.value&&o.open.value);return h.onMounted(()=>{requestAnimationFrame(()=>{_.value=!1})}),i_(u,"beforematch",a=>{requestAnimationFrame(()=>{o.onOpenToggle(),i("contentFound")})}),(a,v)=>(h.openBlock(),h.createBlock(h.unref(sM),{ref_key:"presentRef",ref:r,present:a.forceMount||h.unref(o).open.value,"force-mount":!0},{default:h.withCtx(({present:m})=>{var g;return[h.createVNode(h.unref(Ui),h.mergeProps(a.$attrs,{id:h.unref(o).contentId,ref:h.unref(s),"as-child":t.asChild,as:a.as,hidden:m?void 0:h.unref(o).unmountOnHide.value?"":"until-found","data-state":p.value?void 0:h.unref(o).open.value?"open":"closed","data-disabled":(g=h.unref(o).disabled)!=null&&g.value?"":void 0,style:{"--reka-collapsible-content-height":`${d.value}px`,"--reka-collapsible-content-width":`${l.value}px`}}),{default:h.withCtx(()=>[!h.unref(o).unmountOnHide.value||m?h.renderSlot(a.$slots,"default",{key:0}):h.createCommentVNode("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]}),_:3},8,["present"]))}}),O8=N8,x8=h.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const n=e;_i();const t=lM();return(i,o)=>{var r,s;return h.openBlock(),h.createBlock(h.unref(Ui),{type:i.as==="button"?"button":void 0,as:i.as,"as-child":n.asChild,"aria-controls":h.unref(t).contentId,"aria-expanded":h.unref(t).open.value,"data-state":h.unref(t).open.value?"open":"closed","data-disabled":(r=h.unref(t).disabled)!=null&&r.value?"":void 0,disabled:(s=h.unref(t).disabled)==null?void 0:s.value,onClick:h.unref(t).onOpenToggle},{default:h.withCtx(()=>[h.renderSlot(i.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}}),P8=x8;const w8="dismissableLayer.pointerDownOutside",D8="dismissableLayer.focusOutside";function uM(e,n){const t=n.closest("[data-dismissable-layer]"),i=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(t&&(i===t||o.indexOf(i)<o.indexOf(t)))}function k8(e,n,t=!0){var s;const i=((s=n==null?void 0:n.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=h.ref(!1),r=h.ref(()=>{});return h.watchEffect(u=>{if(!Zi||!h.toValue(t))return;const l=async c=>{const _=c.target;if(!(!(n!=null&&n.value)||!_)){if(uM(n.value,_)){o.value=!1;return}if(c.target&&!o.value){let p=function(){JR(w8,e,f)};const f={originalEvent:c};c.pointerType==="touch"?(i.removeEventListener("click",r.value),r.value=p,i.addEventListener("click",r.value,{once:!0})):p()}else i.removeEventListener("click",r.value);o.value=!1}},d=window.setTimeout(()=>{i.addEventListener("pointerdown",l)},0);u(()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",l),i.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{h.toValue(t)&&(o.value=!0)}}}function L8(e,n,t=!0){var r;const i=((r=n==null?void 0:n.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=h.ref(!1);return h.watchEffect(s=>{if(!Zi||!h.toValue(t))return;const u=async l=>{if(!(n!=null&&n.value))return;await h.nextTick(),await h.nextTick();const d=l.target;!n.value||!d||uM(n.value,d)||l.target&&!o.value&&JR(D8,e,{originalEvent:l})};i.addEventListener("focusin",u),s(()=>i.removeEventListener("focusin",u))}),{onFocusCapture:()=>{h.toValue(t)&&(o.value=!0)},onBlurCapture:()=>{h.toValue(t)&&(o.value=!1)}}}const Bi=h.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var U8=h.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:n}){const t=e,i=n,{forwardRef:o,currentElement:r}=_i(),s=h.computed(()=>{var a;return((a=r.value)==null?void 0:a.ownerDocument)??globalThis.document}),u=h.computed(()=>Bi.layersRoot),l=h.computed(()=>r.value?Array.from(u.value).indexOf(r.value):-1),d=h.computed(()=>Bi.layersWithOutsidePointerEventsDisabled.size>0),c=h.computed(()=>{const a=Array.from(u.value),[v]=[...Bi.layersWithOutsidePointerEventsDisabled].slice(-1),m=a.indexOf(v);return l.value>=m}),_=k8(async a=>{const v=[...Bi.branches].some(m=>m==null?void 0:m.contains(a.target));!c.value||v||(i("pointerDownOutside",a),i("interactOutside",a),await h.nextTick(),a.defaultPrevented||i("dismiss"))},r),f=L8(a=>{[...Bi.branches].some(m=>m==null?void 0:m.contains(a.target))||(i("focusOutside",a),i("interactOutside",a),a.defaultPrevented||i("dismiss"))},r);s8("Escape",a=>{l.value===u.value.size-1&&(i("escapeKeyDown",a),a.defaultPrevented||i("dismiss"))});let p;return h.watchEffect(a=>{r.value&&(t.disableOutsidePointerEvents&&(Bi.layersWithOutsidePointerEventsDisabled.size===0&&(p=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),Bi.layersWithOutsidePointerEventsDisabled.add(r.value)),u.value.add(r.value),a(()=>{t.disableOutsidePointerEvents&&Bi.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=p)}))}),h.watchEffect(a=>{a(()=>{r.value&&(u.value.delete(r.value),Bi.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(a,v)=>(h.openBlock(),h.createBlock(h.unref(Ui),{ref:h.unref(o),"as-child":a.asChild,as:a.as,"data-dismissable-layer":"",style:h.normalizeStyle({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:h.unref(f).onFocusCapture,onBlurCapture:h.unref(f).onBlurCapture,onPointerdownCapture:h.unref(_).onPointerDownCapture},{default:h.withCtx(()=>[h.renderSlot(a.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),B8=U8;const j8=YF(()=>h.ref([]));function V8(){const e=j8();return{add(n){const t=e.value[0];n!==t&&(t==null||t.pause()),e.value=dM(e.value,n),e.value.unshift(n)},remove(n){var t;e.value=dM(e.value,n),(t=e.value[0])==null||t.resume()}}}function dM(e,n){const t=[...e],i=t.indexOf(n);return i!==-1&&t.splice(i,1),t}function F8(e){return e.filter(n=>n.tagName!=="A")}const d_="focusScope.autoFocusOnMount",c_="focusScope.autoFocusOnUnmount",cM={bubbles:!1,cancelable:!0};function q8(e,{select:n=!1}={}){const t=Cr();for(const i of e)if(eo(i,{select:n}),Cr()!==t)return!0}function G8(e){const n=_M(e),t=fM(n,e),i=fM(n.reverse(),e);return[t,i]}function _M(e){const n=[],t=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(;t.nextNode();)n.push(t.currentNode);return n}function fM(e,n){for(const t of e)if(!H8(t,{upTo:n}))return t}function H8(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function z8(e){return e instanceof HTMLInputElement&&"select"in e}function eo(e,{select:n=!1}={}){if(e&&e.focus){const t=Cr();e.focus({preventScroll:!0}),e!==t&&z8(e)&&n&&e.select()}}var Y8=h.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:n}){const t=e,i=n,{currentRef:o,currentElement:r}=_i(),s=h.ref(null),u=V8(),l=h.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});h.watchEffect(c=>{if(!Zi)return;const _=r.value;if(!t.trapped)return;function f(m){if(l.paused||!_)return;const g=m.target;_.contains(g)?s.value=g:eo(s.value,{select:!0})}function p(m){if(l.paused||!_)return;const g=m.relatedTarget;g!==null&&(_.contains(g)||eo(s.value,{select:!0}))}function a(m){_.contains(s.value)||eo(_)}document.addEventListener("focusin",f),document.addEventListener("focusout",p);const v=new MutationObserver(a);_&&v.observe(_,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",p),v.disconnect()})}),h.watchEffect(async c=>{const _=r.value;if(await h.nextTick(),!_)return;u.add(l);const f=Cr();if(!_.contains(f)){const a=new CustomEvent(d_,cM);_.addEventListener(d_,v=>i("mountAutoFocus",v)),_.dispatchEvent(a),a.defaultPrevented||(q8(F8(_M(_)),{select:!0}),Cr()===f&&eo(_))}c(()=>{_.removeEventListener(d_,m=>i("mountAutoFocus",m));const a=new CustomEvent(c_,cM),v=m=>{i("unmountAutoFocus",m)};_.addEventListener(c_,v),_.dispatchEvent(a),setTimeout(()=>{a.defaultPrevented||eo(f??document.body,{select:!0}),_.removeEventListener(c_,v),u.remove(l)},0)})});function d(c){if(!t.loop&&!t.trapped||l.paused)return;const _=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,f=Cr();if(_&&f){const p=c.currentTarget,[a,v]=G8(p);a&&v?!c.shiftKey&&f===v?(c.preventDefault(),t.loop&&eo(a,{select:!0})):c.shiftKey&&f===a&&(c.preventDefault(),t.loop&&eo(v,{select:!0})):f===p&&c.preventDefault()}}return(c,_)=>(h.openBlock(),h.createBlock(h.unref(Ui),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:h.withCtx(()=>[h.renderSlot(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),$8=Y8,K8=h.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 n=o8();return(t,i)=>h.unref(n)||t.forceMount?(h.openBlock(),h.createBlock(h.Teleport,{key:0,to:t.to,disabled:t.disabled,defer:t.defer},[h.renderSlot(t.$slots,"default")],8,["to","disabled","defer"])):h.createCommentVNode("v-if",!0)}}),W8=K8;const[pM,Q8]=Ss("PopperRoot");var J8=h.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(e){const n=h.ref();return Q8({anchor:n,onAnchorChange:t=>n.value=t}),(t,i)=>h.renderSlot(t.$slots,"default")}}),X8=J8,Z8=h.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const n=e,{forwardRef:t,currentElement:i}=_i(),o=pM();return h.watchPostEffect(()=>{o.onAnchorChange(n.reference??i.value)}),(r,s)=>(h.openBlock(),h.createBlock(h.unref(Ui),{ref:h.unref(t),as:r.as,"as-child":r.asChild},{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),eq=Z8;function tq(e){return e!==null}function nq(e){return{name:"transformOrigin",options:e,fn(n){var m,g,E;const{placement:t,rects:i,middlewareData:o}=n,s=((m=o.arrow)==null?void 0:m.centerOffset)!==0,u=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,c]=__(t),_={start:"0%",center:"50%",end:"100%"}[c],f=(((g=o.arrow)==null?void 0:g.x)??0)+u/2,p=(((E=o.arrow)==null?void 0:E.y)??0)+l/2;let a="",v="";return d==="bottom"?(a=s?_:`${f}px`,v=`${-l}px`):d==="top"?(a=s?_:`${f}px`,v=`${i.floating.height+l}px`):d==="right"?(a=`${-l}px`,v=s?_:`${p}px`):d==="left"&&(a=`${i.floating.width+l}px`,v=s?_:`${p}px`),{data:{x:a,y:v}}}}}function __(e){const[n,t="center"]=e.split("-");return[n,t]}const iq=["top","right","bottom","left"],to=Math.min,Yn=Math.max,iu=Math.round,ou=Math.floor,Ci=e=>({x:e,y:e}),oq={left:"right",right:"left",bottom:"top",top:"bottom"},rq={start:"end",end:"start"};function f_(e,n,t){return Yn(e,to(n,t))}function ji(e,n){return typeof e=="function"?e(n):e}function Vi(e){return e.split("-")[0]}function Nr(e){return e.split("-")[1]}function p_(e){return e==="x"?"y":"x"}function a_(e){return e==="y"?"height":"width"}const sq=new Set(["top","bottom"]);function Ri(e){return sq.has(Vi(e))?"y":"x"}function v_(e){return p_(Ri(e))}function lq(e,n,t){t===void 0&&(t=!1);const i=Nr(e),o=v_(e),r=a_(o);let s=o==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(s=ru(s)),[s,ru(s)]}function uq(e){const n=ru(e);return[m_(e),n,m_(n)]}function m_(e){return e.replace(/start|end/g,n=>rq[n])}const aM=["left","right"],vM=["right","left"],dq=["top","bottom"],cq=["bottom","top"];function _q(e,n,t){switch(e){case"top":case"bottom":return t?n?vM:aM:n?aM:vM;case"left":case"right":return n?dq:cq;default:return[]}}function fq(e,n,t,i){const o=Nr(e);let r=_q(Vi(e),t==="start",i);return o&&(r=r.map(s=>s+"-"+o),n&&(r=r.concat(r.map(m_)))),r}function ru(e){return e.replace(/left|right|bottom|top/g,n=>oq[n])}function pq(e){return{top:0,right:0,bottom:0,left:0,...e}}function mM(e){return typeof e!="number"?pq(e):{top:e,right:e,bottom:e,left:e}}function su(e){const{x:n,y:t,width:i,height:o}=e;return{width:i,height:o,top:t,left:n,right:n+i,bottom:t+o,x:n,y:t}}function hM(e,n,t){let{reference:i,floating:o}=e;const r=Ri(n),s=v_(n),u=a_(s),l=Vi(n),d=r==="y",c=i.x+i.width/2-o.width/2,_=i.y+i.height/2-o.height/2,f=i[u]/2-o[u]/2;let p;switch(l){case"top":p={x:c,y:i.y-o.height};break;case"bottom":p={x:c,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:_};break;case"left":p={x:i.x-o.width,y:_};break;default:p={x:i.x,y:i.y}}switch(Nr(n)){case"start":p[s]-=f*(t&&d?-1:1);break;case"end":p[s]+=f*(t&&d?-1:1);break}return p}const aq=async(e,n,t)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=t,u=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(n));let d=await s.getElementRects({reference:e,floating:n,strategy:o}),{x:c,y:_}=hM(d,i,l),f=i,p={},a=0;for(let v=0;v<u.length;v++){const{name:m,fn:g}=u[v],{x:E,y,data:T,reset:A}=await g({x:c,y:_,initialPlacement:i,placement:f,strategy:o,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:n}});c=E??c,_=y??_,p={...p,[m]:{...p[m],...T}},A&&a<=50&&(a++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(d=A.rects===!0?await s.getElementRects({reference:e,floating:n,strategy:o}):A.rects),{x:c,y:_}=hM(d,f,l)),v=-1)}return{x:c,y:_,placement:f,strategy:o,middlewareData:p}};async function Is(e,n){var t;n===void 0&&(n={});const{x:i,y:o,platform:r,rects:s,elements:u,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:_="floating",altBoundary:f=!1,padding:p=0}=ji(n,e),a=mM(p),m=u[f?_==="floating"?"reference":"floating":_],g=su(await r.getClippingRect({element:(t=await(r.isElement==null?void 0:r.isElement(m)))==null||t?m:m.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(u.floating)),boundary:d,rootBoundary:c,strategy:l})),E=_==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(u.floating)),T=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},A=su(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:y,strategy:l}):E);return{top:(g.top-A.top+a.top)/T.y,bottom:(A.bottom-g.bottom+a.bottom)/T.y,left:(g.left-A.left+a.left)/T.x,right:(A.right-g.right+a.right)/T.x}}const vq=e=>({name:"arrow",options:e,async fn(n){const{x:t,y:i,placement:o,rects:r,platform:s,elements:u,middlewareData:l}=n,{element:d,padding:c=0}=ji(e,n)||{};if(d==null)return{};const _=mM(c),f={x:t,y:i},p=v_(o),a=a_(p),v=await s.getDimensions(d),m=p==="y",g=m?"top":"left",E=m?"bottom":"right",y=m?"clientHeight":"clientWidth",T=r.reference[a]+r.reference[p]-f[p]-r.floating[a],A=f[p]-r.reference[p],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let N=S?S[y]:0;(!N||!await(s.isElement==null?void 0:s.isElement(S)))&&(N=u.floating[y]||r.floating[a]);const R=T/2-A/2,L=N/2-v[a]/2-1,j=to(_[g],L),I=to(_[E],L),C=j,O=N-v[a]-I,x=N/2-v[a]/2+R,P=f_(C,x,O),U=!l.arrow&&Nr(o)!=null&&x!==P&&r.reference[a]/2-(x<C?j:I)-v[a]/2<0,H=U?x<C?x-C:x-O:0;return{[p]:f[p]+H,data:{[p]:P,centerOffset:x-P-H,...U&&{alignmentOffset:H}},reset:U}}}),mq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var t,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:u,platform:l,elements:d}=n,{mainAxis:c=!0,crossAxis:_=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:a="none",flipAlignment:v=!0,...m}=ji(e,n);if((t=r.arrow)!=null&&t.alignmentOffset)return{};const g=Vi(o),E=Ri(u),y=Vi(u)===u,T=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=f||(y||!v?[ru(u)]:uq(u)),S=a!=="none";!f&&S&&A.push(...fq(u,v,a,T));const N=[u,...A],R=await Is(n,m),L=[];let j=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&L.push(R[g]),_){const x=lq(o,s,T);L.push(R[x[0]],R[x[1]])}if(j=[...j,{placement:o,overflows:L}],!L.every(x=>x<=0)){var I,C;const x=(((I=r.flip)==null?void 0:I.index)||0)+1,P=N[x];if(P&&(!(_==="alignment"?E!==Ri(P):!1)||j.every(B=>Ri(B.placement)===E?B.overflows[0]>0:!0)))return{data:{index:x,overflows:j},reset:{placement:P}};let U=(C=j.filter(H=>H.overflows[0]<=0).sort((H,B)=>H.overflows[1]-B.overflows[1])[0])==null?void 0:C.placement;if(!U)switch(p){case"bestFit":{var O;const H=(O=j.filter(B=>{if(S){const w=Ri(B.placement);return w===E||w==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(w=>w>0).reduce((w,V)=>w+V,0)]).sort((B,w)=>B[1]-w[1])[0])==null?void 0:O[0];H&&(U=H);break}case"initialPlacement":U=u;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function yM(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function gM(e){return iq.some(n=>e[n]>=0)}const hq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:t}=n,{strategy:i="referenceHidden",...o}=ji(e,n);switch(i){case"referenceHidden":{const r=await Is(n,{...o,elementContext:"reference"}),s=yM(r,t.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:gM(s)}}}case"escaped":{const r=await Is(n,{...o,altBoundary:!0}),s=yM(r,t.floating);return{data:{escapedOffsets:s,escaped:gM(s)}}}default:return{}}}}},EM=new Set(["left","top"]);async function yq(e,n){const{placement:t,platform:i,elements:o}=e,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=Vi(t),u=Nr(t),l=Ri(t)==="y",d=EM.has(s)?-1:1,c=r&&l?-1:1,_=ji(n,e);let{mainAxis:f,crossAxis:p,alignmentAxis:a}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return u&&typeof a=="number"&&(p=u==="end"?a*-1:a),l?{x:p*c,y:f*d}:{x:f*d,y:p*c}}const gq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,i;const{x:o,y:r,placement:s,middlewareData:u}=n,l=await yq(n,e);return s===((t=u.offset)==null?void 0:t.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Eq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:t,y:i,placement:o}=n,{mainAxis:r=!0,crossAxis:s=!1,limiter:u={fn:m=>{let{x:g,y:E}=m;return{x:g,y:E}}},...l}=ji(e,n),d={x:t,y:i},c=await Is(n,l),_=Ri(Vi(o)),f=p_(_);let p=d[f],a=d[_];if(r){const m=f==="y"?"top":"left",g=f==="y"?"bottom":"right",E=p+c[m],y=p-c[g];p=f_(E,p,y)}if(s){const m=_==="y"?"top":"left",g=_==="y"?"bottom":"right",E=a+c[m],y=a-c[g];a=f_(E,a,y)}const v=u.fn({...n,[f]:p,[_]:a});return{...v,data:{x:v.x-t,y:v.y-i,enabled:{[f]:r,[_]:s}}}}}},Tq=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:t,y:i,placement:o,rects:r,middlewareData:s}=n,{offset:u=0,mainAxis:l=!0,crossAxis:d=!0}=ji(e,n),c={x:t,y:i},_=Ri(o),f=p_(_);let p=c[f],a=c[_];const v=ji(u,n),m=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=f==="y"?"height":"width",T=r.reference[f]-r.floating[y]+m.mainAxis,A=r.reference[f]+r.reference[y]-m.mainAxis;p<T?p=T:p>A&&(p=A)}if(d){var g,E;const y=f==="y"?"width":"height",T=EM.has(Vi(o)),A=r.reference[_]-r.floating[y]+(T&&((g=s.offset)==null?void 0:g[_])||0)+(T?0:m.crossAxis),S=r.reference[_]+r.reference[y]+(T?0:((E=s.offset)==null?void 0:E[_])||0)-(T?m.crossAxis:0);a<A?a=A:a>S&&(a=S)}return{[f]:p,[_]:a}}}},Sq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var t,i;const{placement:o,rects:r,platform:s,elements:u}=n,{apply:l=()=>{},...d}=ji(e,n),c=await Is(n,d),_=Vi(o),f=Nr(o),p=Ri(o)==="y",{width:a,height:v}=r.floating;let m,g;_==="top"||_==="bottom"?(m=_,g=f===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(g=_,m=f==="end"?"top":"bottom");const E=v-c.top-c.bottom,y=a-c.left-c.right,T=to(v-c[m],E),A=to(a-c[g],y),S=!n.middlewareData.shift;let N=T,R=A;if((t=n.middlewareData.shift)!=null&&t.enabled.x&&(R=y),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(N=E),S&&!f){const j=Yn(c.left,0),I=Yn(c.right,0),C=Yn(c.top,0),O=Yn(c.bottom,0);p?R=a-2*(j!==0||I!==0?j+I:Yn(c.left,c.right)):N=v-2*(C!==0||O!==0?C+O:Yn(c.top,c.bottom))}await l({...n,availableWidth:R,availableHeight:N});const L=await s.getDimensions(u.floating);return a!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}};function lu(){return typeof window<"u"}function Io(e){return h_(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Mi(e){var n;return(n=(h_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function h_(e){return lu()?e instanceof Node||e instanceof $n(e).Node:!1}function fi(e){return lu()?e instanceof Element||e instanceof $n(e).Element:!1}function Ni(e){return lu()?e instanceof HTMLElement||e instanceof $n(e).HTMLElement:!1}function TM(e){return!lu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}const bq=new Set(["inline","contents"]);function As(e){const{overflow:n,overflowX:t,overflowY:i,display:o}=pi(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+t)&&!bq.has(o)}const Iq=new Set(["table","td","th"]);function Aq(e){return Iq.has(Io(e))}const Cq=[":popover-open",":modal"];function uu(e){return Cq.some(n=>{try{return e.matches(n)}catch{return!1}})}const Rq=["transform","translate","scale","rotate","perspective"],Mq=["transform","translate","scale","rotate","perspective","filter"],Nq=["paint","layout","strict","content"];function y_(e){const n=g_(),t=fi(e)?pi(e):e;return Rq.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!n&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!n&&(t.filter?t.filter!=="none":!1)||Mq.some(i=>(t.willChange||"").includes(i))||Nq.some(i=>(t.contain||"").includes(i))}function Oq(e){let n=no(e);for(;Ni(n)&&!Or(n);){if(y_(n))return n;if(uu(n))return null;n=no(n)}return null}function g_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xq=new Set(["html","body","#document"]);function Or(e){return xq.has(Io(e))}function pi(e){return $n(e).getComputedStyle(e)}function du(e){return fi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function no(e){if(Io(e)==="html")return e;const n=e.assignedSlot||e.parentNode||TM(e)&&e.host||Mi(e);return TM(n)?n.host:n}function SM(e){const n=no(e);return Or(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ni(n)&&As(n)?n:SM(n)}function Cs(e,n,t){var i;n===void 0&&(n=[]),t===void 0&&(t=!0);const o=SM(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),s=$n(o);if(r){const u=E_(s);return n.concat(s,s.visualViewport||[],As(o)?o:[],u&&t?Cs(u):[])}return n.concat(o,Cs(o,[],t))}function E_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bM(e){const n=pi(e);let t=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=Ni(e),r=o?e.offsetWidth:t,s=o?e.offsetHeight:i,u=iu(t)!==r||iu(i)!==s;return u&&(t=r,i=s),{width:t,height:i,$:u}}function T_(e){return fi(e)?e:e.contextElement}function xr(e){const n=T_(e);if(!Ni(n))return Ci(1);const t=n.getBoundingClientRect(),{width:i,height:o,$:r}=bM(n);let s=(r?iu(t.width):t.width)/i,u=(r?iu(t.height):t.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Pq=Ci(0);function IM(e){const n=$n(e);return!g_()||!n.visualViewport?Pq:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function wq(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==$n(e)?!1:n}function Ao(e,n,t,i){n===void 0&&(n=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),r=T_(e);let s=Ci(1);n&&(i?fi(i)&&(s=xr(i)):s=xr(e));const u=wq(r,t,i)?IM(r):Ci(0);let l=(o.left+u.x)/s.x,d=(o.top+u.y)/s.y,c=o.width/s.x,_=o.height/s.y;if(r){const f=$n(r),p=i&&fi(i)?$n(i):i;let a=f,v=E_(a);for(;v&&i&&p!==a;){const m=xr(v),g=v.getBoundingClientRect(),E=pi(v),y=g.left+(v.clientLeft+parseFloat(E.paddingLeft))*m.x,T=g.top+(v.clientTop+parseFloat(E.paddingTop))*m.y;l*=m.x,d*=m.y,c*=m.x,_*=m.y,l+=y,d+=T,a=$n(v),v=E_(a)}}return su({width:c,height:_,x:l,y:d})}function S_(e,n){const t=du(e).scrollLeft;return n?n.left+t:Ao(Mi(e)).left+t}function AM(e,n,t){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=i.left+n.scrollLeft-(t?0:S_(e,i)),r=i.top+n.scrollTop;return{x:o,y:r}}function Dq(e){let{elements:n,rect:t,offsetParent:i,strategy:o}=e;const r=o==="fixed",s=Mi(i),u=n?uu(n.floating):!1;if(i===s||u&&r)return t;let l={scrollLeft:0,scrollTop:0},d=Ci(1);const c=Ci(0),_=Ni(i);if((_||!_&&!r)&&((Io(i)!=="body"||As(s))&&(l=du(i)),Ni(i))){const p=Ao(i);d=xr(i),c.x=p.x+i.clientLeft,c.y=p.y+i.clientTop}const f=s&&!_&&!r?AM(s,l,!0):Ci(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-l.scrollLeft*d.x+c.x+f.x,y:t.y*d.y-l.scrollTop*d.y+c.y+f.y}}function kq(e){return Array.from(e.getClientRects())}function Lq(e){const n=Mi(e),t=du(e),i=e.ownerDocument.body,o=Yn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=Yn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let s=-t.scrollLeft+S_(e);const u=-t.scrollTop;return pi(i).direction==="rtl"&&(s+=Yn(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:u}}function Uq(e,n){const t=$n(e),i=Mi(e),o=t.visualViewport;let r=i.clientWidth,s=i.clientHeight,u=0,l=0;if(o){r=o.width,s=o.height;const d=g_();(!d||d&&n==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:u,y:l}}const Bq=new Set(["absolute","fixed"]);function jq(e,n){const t=Ao(e,!0,n==="fixed"),i=t.top+e.clientTop,o=t.left+e.clientLeft,r=Ni(e)?xr(e):Ci(1),s=e.clientWidth*r.x,u=e.clientHeight*r.y,l=o*r.x,d=i*r.y;return{width:s,height:u,x:l,y:d}}function CM(e,n,t){let i;if(n==="viewport")i=Uq(e,t);else if(n==="document")i=Lq(Mi(e));else if(fi(n))i=jq(n,t);else{const o=IM(e);i={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return su(i)}function RM(e,n){const t=no(e);return t===n||!fi(t)||Or(t)?!1:pi(t).position==="fixed"||RM(t,n)}function Vq(e,n){const t=n.get(e);if(t)return t;let i=Cs(e,[],!1).filter(u=>fi(u)&&Io(u)!=="body"),o=null;const r=pi(e).position==="fixed";let s=r?no(e):e;for(;fi(s)&&!Or(s);){const u=pi(s),l=y_(s);!l&&u.position==="fixed"&&(o=null),(r?!l&&!o:!l&&u.position==="static"&&!!o&&Bq.has(o.position)||As(s)&&!l&&RM(e,s))?i=i.filter(c=>c!==s):o=u,s=no(s)}return n.set(e,i),i}function Fq(e){let{element:n,boundary:t,rootBoundary:i,strategy:o}=e;const s=[...t==="clippingAncestors"?uu(n)?[]:Vq(n,this._c):[].concat(t),i],u=s[0],l=s.reduce((d,c)=>{const _=CM(n,c,o);return d.top=Yn(_.top,d.top),d.right=to(_.right,d.right),d.bottom=to(_.bottom,d.bottom),d.left=Yn(_.left,d.left),d},CM(n,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qq(e){const{width:n,height:t}=bM(e);return{width:n,height:t}}function Gq(e,n,t){const i=Ni(n),o=Mi(n),r=t==="fixed",s=Ao(e,!0,r,n);let u={scrollLeft:0,scrollTop:0};const l=Ci(0);function d(){l.x=S_(o)}if(i||!i&&!r)if((Io(n)!=="body"||As(o))&&(u=du(n)),i){const p=Ao(n,!0,r,n);l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}else o&&d();r&&!i&&o&&d();const c=o&&!i&&!r?AM(o,u):Ci(0),_=s.left+u.scrollLeft-l.x-c.x,f=s.top+u.scrollTop-l.y-c.y;return{x:_,y:f,width:s.width,height:s.height}}function b_(e){return pi(e).position==="static"}function MM(e,n){if(!Ni(e)||pi(e).position==="fixed")return null;if(n)return n(e);let t=e.offsetParent;return Mi(e)===t&&(t=t.ownerDocument.body),t}function NM(e,n){const t=$n(e);if(uu(e))return t;if(!Ni(e)){let o=no(e);for(;o&&!Or(o);){if(fi(o)&&!b_(o))return o;o=no(o)}return t}let i=MM(e,n);for(;i&&Aq(i)&&b_(i);)i=MM(i,n);return i&&Or(i)&&b_(i)&&!y_(i)?t:i||Oq(e)||t}const Hq=async function(e){const n=this.getOffsetParent||NM,t=this.getDimensions,i=await t(e.floating);return{reference:Gq(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zq(e){return pi(e).direction==="rtl"}const Yq={convertOffsetParentRelativeRectToViewportRelativeRect:Dq,getDocumentElement:Mi,getClippingRect:Fq,getOffsetParent:NM,getElementRects:Hq,getClientRects:kq,getDimensions:qq,getScale:xr,isElement:fi,isRTL:zq};function OM(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function $q(e,n){let t=null,i;const o=Mi(e);function r(){var u;clearTimeout(i),(u=t)==null||u.disconnect(),t=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),r();const d=e.getBoundingClientRect(),{left:c,top:_,width:f,height:p}=d;if(u||n(),!f||!p)return;const a=ou(_),v=ou(o.clientWidth-(c+f)),m=ou(o.clientHeight-(_+p)),g=ou(c),y={rootMargin:-a+"px "+-v+"px "+-m+"px "+-g+"px",threshold:Yn(0,to(1,l))||1};let T=!0;function A(S){const N=S[0].intersectionRatio;if(N!==l){if(!T)return s();N?s(!1,N):i=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!OM(d,e.getBoundingClientRect())&&s(),T=!1}try{t=new IntersectionObserver(A,{...y,root:o.ownerDocument})}catch{t=new IntersectionObserver(A,y)}t.observe(e)}return s(!0),r}function Kq(e,n,t,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=T_(e),c=o||r?[...d?Cs(d):[],...Cs(n)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",t,{passive:!0}),r&&g.addEventListener("resize",t)});const _=d&&u?$q(d,t):null;let f=-1,p=null;s&&(p=new ResizeObserver(g=>{let[E]=g;E&&E.target===d&&p&&(p.unobserve(n),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(n)})),t()}),d&&!l&&p.observe(d),p.observe(n));let a,v=l?Ao(e):null;l&&m();function m(){const g=Ao(e);v&&!OM(v,g)&&t(),v=g,a=requestAnimationFrame(m)}return t(),()=>{var g;c.forEach(E=>{o&&E.removeEventListener("scroll",t),r&&E.removeEventListener("resize",t)}),_==null||_(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(a)}}const Wq=gq,Qq=Eq,xM=mq,Jq=Sq,Xq=hq,Zq=vq,eG=Tq,tG=(e,n,t)=>{const i=new Map,o={platform:Yq,...t},r={...o.platform,_c:i};return aq(e,n,{...o,platform:r})};function nG(e){return e!=null&&typeof e=="object"&&"$el"in e}function I_(e){if(nG(e)){const n=e.$el;return h_(n)&&Io(n)==="#comment"?null:n}return e}function Pr(e){return typeof e=="function"?e():h.unref(e)}function iG(e){return{name:"arrow",options:e,fn(n){const t=I_(Pr(e.element));return t==null?{}:Zq({element:t,padding:e.padding}).fn(n)}}}function PM(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wM(e,n){const t=PM(e);return Math.round(n*t)/t}function oG(e,n,t){t===void 0&&(t={});const i=t.whileElementsMounted,o=h.computed(()=>{var N;return(N=Pr(t.open))!=null?N:!0}),r=h.computed(()=>Pr(t.middleware)),s=h.computed(()=>{var N;return(N=Pr(t.placement))!=null?N:"bottom"}),u=h.computed(()=>{var N;return(N=Pr(t.strategy))!=null?N:"absolute"}),l=h.computed(()=>{var N;return(N=Pr(t.transform))!=null?N:!0}),d=h.computed(()=>I_(e.value)),c=h.computed(()=>I_(n.value)),_=h.ref(0),f=h.ref(0),p=h.ref(u.value),a=h.ref(s.value),v=h.shallowRef({}),m=h.ref(!1),g=h.computed(()=>{const N={position:p.value,left:"0",top:"0"};if(!c.value)return N;const R=wM(c.value,_.value),L=wM(c.value,f.value);return l.value?{...N,transform:"translate("+R+"px, "+L+"px)",...PM(c.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:R+"px",top:L+"px"}});let E;function y(){if(d.value==null||c.value==null)return;const N=o.value;tG(d.value,c.value,{middleware:r.value,placement:s.value,strategy:u.value}).then(R=>{_.value=R.x,f.value=R.y,p.value=R.strategy,a.value=R.placement,v.value=R.middlewareData,m.value=N!==!1})}function T(){typeof E=="function"&&(E(),E=void 0)}function A(){if(T(),i===void 0){y();return}if(d.value!=null&&c.value!=null){E=i(d.value,c.value,y);return}}function S(){o.value||(m.value=!1)}return h.watch([r,s,u,o],y,{flush:"sync"}),h.watch([d,c],A,{flush:"sync"}),h.watch(o,S,{flush:"sync"}),h.getCurrentScope()&&h.onScopeDispose(T),{x:h.shallowReadonly(_),y:h.shallowReadonly(f),strategy:h.shallowReadonly(p),placement:h.shallowReadonly(a),middlewareData:h.shallowReadonly(v),isPositioned:h.shallowReadonly(m),floatingStyles:g,update:y}}const rG={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},[e$,sG]=Ss("PopperContent");var lG=h.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:h.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}},{...rG}),emits:["placed"],setup(e,{emit:n}){const t=e,i=n,o=pM(),{forwardRef:r,currentElement:s}=_i(),u=h.ref(),l=h.ref(),{width:d,height:c}=T8(l),_=h.computed(()=>t.side+(t.align!=="center"?`-${t.align}`:"")),f=h.computed(()=>typeof t.collisionPadding=="number"?t.collisionPadding:{top:0,right:0,bottom:0,left:0,...t.collisionPadding}),p=h.computed(()=>Array.isArray(t.collisionBoundary)?t.collisionBoundary:[t.collisionBoundary]),a=h.computed(()=>({padding:f.value,boundary:p.value.filter(tq),altBoundary:p.value.length>0})),v=h.computed(()=>({mainAxis:t.sideFlip,crossAxis:t.alignFlip})),m=zF(()=>[Wq({mainAxis:t.sideOffset+c.value,alignmentAxis:t.alignOffset}),t.prioritizePosition&&t.avoidCollisions&&xM({...a.value,...v.value}),t.avoidCollisions&&Qq({mainAxis:!0,crossAxis:!!t.prioritizePosition,limiter:t.sticky==="partial"?eG():void 0,...a.value}),!t.prioritizePosition&&t.avoidCollisions&&xM({...a.value,...v.value}),Jq({...a.value,apply:({elements:O,rects:x,availableWidth:P,availableHeight:U})=>{const{width:H,height:B}=x.reference,w=O.floating.style;w.setProperty("--reka-popper-available-width",`${P}px`),w.setProperty("--reka-popper-available-height",`${U}px`),w.setProperty("--reka-popper-anchor-width",`${H}px`),w.setProperty("--reka-popper-anchor-height",`${B}px`)}}),l.value&&iG({element:l.value,padding:t.arrowPadding}),nq({arrowWidth:d.value,arrowHeight:c.value}),t.hideWhenDetached&&Xq({strategy:"referenceHidden",...a.value})]),g=h.computed(()=>t.reference??o.anchor.value),{floatingStyles:E,placement:y,isPositioned:T,middlewareData:A,update:S}=oG(g,u,{strategy:t.positionStrategy,placement:_,whileElementsMounted:(...O)=>Kq(...O,{layoutShift:!t.disableUpdateOnLayoutShift,animationFrame:t.updatePositionStrategy==="always"}),middleware:m}),N=h.computed(()=>__(y.value)[0]),R=h.computed(()=>__(y.value)[1]);h.watchPostEffect(()=>{T.value&&i("placed")});const L=h.computed(()=>{var O;return((O=A.value.arrow)==null?void 0:O.centerOffset)!==0}),j=h.ref("");h.watchEffect(()=>{s.value&&(j.value=window.getComputedStyle(s.value).zIndex)});const I=h.computed(()=>{var O;return((O=A.value.arrow)==null?void 0:O.x)??0}),C=h.computed(()=>{var O;return((O=A.value.arrow)==null?void 0:O.y)??0});return sG({placedSide:N,onArrowChange:O=>l.value=O,arrowX:I,arrowY:C,shouldHideArrow:L}),(O,x)=>{var P,U,H;return h.openBlock(),h.createElementBlock("div",{ref_key:"floatingRef",ref:u,"data-reka-popper-content-wrapper":"",style:h.normalizeStyle({...h.unref(E),transform:h.unref(T)?h.unref(E).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j.value,"--reka-popper-transform-origin":[(P=h.unref(A).transformOrigin)==null?void 0:P.x,(U=h.unref(A).transformOrigin)==null?void 0:U.y].join(" "),...((H=h.unref(A).hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[h.createVNode(h.unref(Ui),h.mergeProps({ref:h.unref(r)},O.$attrs,{"as-child":t.asChild,as:O.as,"data-side":N.value,"data-align":R.value,style:{animation:h.unref(T)?void 0:"none"}}),{default:h.withCtx(()=>[h.renderSlot(O.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),uG=lG;const[Rs,dG]=Ss("PopoverRoot");var cG=h.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:n}){const t=e,i=n,{modal:o}=h.toRefs(t),r=tM(t,"open",i,{defaultValue:t.defaultOpen,passive:t.open===void 0}),s=h.ref(),u=h.ref(!1);return dG({contentId:"",triggerId:"",modal:o,open:r,onOpenChange:l=>{r.value=l},onOpenToggle:()=>{r.value=!r.value},triggerElement:s,hasCustomAnchor:u}),(l,d)=>(h.openBlock(),h.createBlock(h.unref(X8),null,{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default",{open:h.unref(r),close:()=>r.value=!1})]),_:3}))}}),_G=cG,fG=h.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:n}){const t=e,i=n,o=oM(QF(t,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=_i(),s=Rs();return a8(),(u,l)=>(h.openBlock(),h.createBlock(h.unref($8),{"as-child":"",loop:"",trapped:u.trapFocus,onMountAutoFocus:l[5]||(l[5]=d=>i("openAutoFocus",d)),onUnmountAutoFocus:l[6]||(l[6]=d=>i("closeAutoFocus",d))},{default:h.withCtx(()=>[h.createVNode(h.unref(B8),{"as-child":"","disable-outside-pointer-events":u.disableOutsidePointerEvents,onPointerDownOutside:l[0]||(l[0]=d=>i("pointerDownOutside",d)),onInteractOutside:l[1]||(l[1]=d=>i("interactOutside",d)),onEscapeKeyDown:l[2]||(l[2]=d=>i("escapeKeyDown",d)),onFocusOutside:l[3]||(l[3]=d=>i("focusOutside",d)),onDismiss:l[4]||(l[4]=d=>h.unref(s).onOpenChange(!1))},{default:h.withCtx(()=>[h.createVNode(h.unref(uG),h.mergeProps(h.unref(o),{id:h.unref(s).contentId,ref:h.unref(r),"data-state":h.unref(s).open.value?"open":"closed","aria-labelledby":h.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:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),DM=fG,pG=h.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:n}){const t=e,i=n,o=Rs(),r=h.ref(!1);_8(!0);const s=Rr(t,i),{forwardRef:u,currentElement:l}=_i();return g8(l),(d,c)=>(h.openBlock(),h.createBlock(DM,h.mergeProps(h.unref(s),{ref:h.unref(u),"trap-focus":h.unref(o).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=h.withModifiers(_=>{var f;i("closeAutoFocus",_),r.value||(f=h.unref(o).triggerElement.value)==null||f.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=_=>{i("pointerDownOutside",_);const f=_.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,a=f.button===2||p;r.value=a}),onFocusOutside:c[2]||(c[2]=h.withModifiers(()=>{},["prevent"]))}),{default:h.withCtx(()=>[h.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),aG=pG,vG=h.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:n}){const t=e,i=n,o=Rs(),r=h.ref(!1),s=h.ref(!1),u=Rr(t,i);return(l,d)=>(h.openBlock(),h.createBlock(DM,h.mergeProps(h.unref(u),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{var _;i("closeAutoFocus",c),c.defaultPrevented||(r.value||(_=h.unref(o).triggerElement.value)==null||_.focus(),c.preventDefault()),r.value=!1,s.value=!1}),onInteractOutside:d[1]||(d[1]=async c=>{var p;i("interactOutside",c),c.defaultPrevented||(r.value=!0,c.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const _=c.target;((p=h.unref(o).triggerElement.value)==null?void 0:p.contains(_))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.value&&c.preventDefault()})}),{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default")]),_:3},16))}}),mG=vG,hG=h.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:n}){const t=e,i=n,o=Rs(),r=Rr(t,i),{forwardRef:s}=_i();return o.contentId||(o.contentId=u_(void 0,"reka-popover-content")),(u,l)=>(h.openBlock(),h.createBlock(h.unref(sM),{present:u.forceMount||h.unref(o).open.value},{default:h.withCtx(()=>[h.unref(o).modal.value?(h.openBlock(),h.createBlock(aG,h.mergeProps({key:0},h.unref(r),{ref:h.unref(s)}),{default:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},16)):(h.openBlock(),h.createBlock(mG,h.mergeProps({key:1},h.unref(r),{ref:h.unref(s)}),{default:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),yG=hG,gG=h.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 n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(W8),h.normalizeProps(h.guardReactiveProps(n)),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),EG=gG,TG=h.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const n=e,t=Rs(),{forwardRef:i,currentElement:o}=_i();return t.triggerId||(t.triggerId=u_(void 0,"reka-popover-trigger")),h.onMounted(()=>{t.triggerElement.value=o.value}),(r,s)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(t).hasCustomAnchor.value?h.unref(Ui):h.unref(eq)),{"as-child":""},{default:h.withCtx(()=>[h.createVNode(h.unref(Ui),{id:h.unref(t).triggerId,ref:h.unref(i),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":h.unref(t).open.value,"aria-controls":h.unref(t).contentId,"data-state":h.unref(t).open.value?"open":"closed",as:r.as,"as-child":n.asChild,onClick:h.unref(t).onOpenToggle},{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),SG=TG;const bG=h.defineComponent({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:n}){const o=Rr(e,n);return(r,s)=>(h.openBlock(),h.createBlock(h.unref(_G),h.normalizeProps(h.guardReactiveProps(h.unref(o))),{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},16))}});function IG(e){if(!h.isRef(e))return h.reactive(e);const n=new Proxy({},{get(t,i,o){return h.unref(Reflect.get(e.value,i,o))},set(t,i,o){return h.isRef(e.value[i])&&!h.isRef(o)?e.value[i].value=o:e.value[i]=o,!0},deleteProperty(t,i){return Reflect.deleteProperty(e.value,i)},has(t,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return h.reactive(n)}function AG(e){return IG(h.computed(e))}function CG(e,...n){const t=n.flat(),i=t[0];return AG(()=>Object.fromEntries(typeof i=="function"?Object.entries(h.toRefs(e)).filter(([o,r])=>!i(h.toValue(r),o)):Object.entries(h.toRefs(e)).filter(o=>!t.includes(o[0]))))}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function kM(e){var n,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(t=kM(e[n]))&&(i&&(i+=" "),i+=t)}else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function RG(){for(var e,n,t=0,i="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=kM(e))&&(i&&(i+=" "),i+=n);return i}const A_="-",MG=e=>{const n=OG(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const u=s.split(A_);return u[0]===""&&u.length!==1&&u.shift(),LM(u,n)||NG(s)},getConflictingClassGroupIds:(s,u)=>{const l=t[s]||[];return u&&i[s]?[...l,...i[s]]:l}}},LM=(e,n)=>{var s;if(e.length===0)return n.classGroupId;const t=e[0],i=n.nextPart.get(t),o=i?LM(e.slice(1),i):void 0;if(o)return o;if(n.validators.length===0)return;const r=e.join(A_);return(s=n.validators.find(({validator:u})=>u(r)))==null?void 0:s.classGroupId},UM=/^\[(.+)\]$/,NG=e=>{if(UM.test(e)){const n=UM.exec(e)[1],t=n==null?void 0:n.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}},OG=e=>{const{theme:n,classGroups:t}=e,i={nextPart:new Map,validators:[]};for(const o in t)C_(t[o],i,o,n);return i},C_=(e,n,t,i)=>{e.forEach(o=>{if(typeof o=="string"){const r=o===""?n:BM(n,o);r.classGroupId=t;return}if(typeof o=="function"){if(xG(o)){C_(o(i),n,t,i);return}n.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([r,s])=>{C_(s,BM(n,r),t,i)})})},BM=(e,n)=>{let t=e;return n.split(A_).forEach(i=>{t.nextPart.has(i)||t.nextPart.set(i,{nextPart:new Map,validators:[]}),t=t.nextPart.get(i)}),t},xG=e=>e.isThemeGetter,PG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,i=new Map;const o=(r,s)=>{t.set(r,s),n++,n>e&&(n=0,i=t,t=new Map)};return{get(r){let s=t.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return o(r,s),s},set(r,s){t.has(r)?t.set(r,s):o(r,s)}}},R_="!",M_=":",wG=M_.length,DG=e=>{const{prefix:n,experimentalParseClassName:t}=e;let i=o=>{const r=[];let s=0,u=0,l=0,d;for(let a=0;a<o.length;a++){let v=o[a];if(s===0&&u===0){if(v===M_){r.push(o.slice(l,a)),l=a+wG;continue}if(v==="/"){d=a;continue}}v==="["?s++:v==="]"?s--:v==="("?u++:v===")"&&u--}const c=r.length===0?o:o.substring(l),_=kG(c),f=_!==c,p=d&&d>l?d-l:void 0;return{modifiers:r,hasImportantModifier:f,baseClassName:_,maybePostfixModifierPosition:p}};if(n){const o=n+M_,r=i;i=s=>s.startsWith(o)?r(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(t){const o=i;i=r=>t({className:r,parseClassName:o})}return i},kG=e=>e.endsWith(R_)?e.substring(0,e.length-1):e.startsWith(R_)?e.substring(1):e,LG=e=>{const n=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]==="["||n[s]?(o.push(...r.sort(),s),r=[]):r.push(s)}),o.push(...r.sort()),o}},UG=e=>({cache:PG(e.cacheSize),parseClassName:DG(e),sortModifiers:LG(e),...MG(e)}),BG=/\s+/,jG=(e,n)=>{const{parseClassName:t,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r}=n,s=[],u=e.trim().split(BG);let l="";for(let d=u.length-1;d>=0;d-=1){const c=u[d],{isExternal:_,modifiers:f,hasImportantModifier:p,baseClassName:a,maybePostfixModifierPosition:v}=t(c);if(_){l=c+(l.length>0?" "+l:l);continue}let m=!!v,g=i(m?a.substring(0,v):a);if(!g){if(!m){l=c+(l.length>0?" "+l:l);continue}if(g=i(a),!g){l=c+(l.length>0?" "+l:l);continue}m=!1}const E=r(f).join(":"),y=p?E+R_:E,T=y+g;if(s.includes(T))continue;s.push(T);const A=o(g,m);for(let S=0;S<A.length;++S){const N=A[S];s.push(y+N)}l=c+(l.length>0?" "+l:l)}return l};function VG(){let e=0,n,t,i="";for(;e<arguments.length;)(n=arguments[e++])&&(t=jM(n))&&(i&&(i+=" "),i+=t);return i}const jM=e=>{if(typeof e=="string")return e;let n,t="";for(let i=0;i<e.length;i++)e[i]&&(n=jM(e[i]))&&(t&&(t+=" "),t+=n);return t};function FG(e,...n){let t,i,o,r=s;function s(l){const d=n.reduce((c,_)=>_(c),e());return t=UG(d),i=t.cache.get,o=t.cache.set,r=u,u(l)}function u(l){const d=i(l);if(d)return d;const c=jG(l,t);return o(l,c),c}return function(){return r(VG.apply(null,arguments))}}const Jt=e=>{const n=t=>t[e]||[];return n.isThemeGetter=!0,n},VM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,FM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qG=/^\d+\/\d+$/,GG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HG=/\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$/,zG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wr=e=>qG.test(e),Je=e=>!!e&&!Number.isNaN(Number(e)),io=e=>!!e&&Number.isInteger(Number(e)),N_=e=>e.endsWith("%")&&Je(e.slice(0,-1)),Fi=e=>GG.test(e),KG=()=>!0,WG=e=>HG.test(e)&&!zG.test(e),qM=()=>!1,QG=e=>YG.test(e),JG=e=>$G.test(e),XG=e=>!Oe(e)&&!xe(e),ZG=e=>Dr(e,$M,qM),Oe=e=>VM.test(e),Co=e=>Dr(e,KM,WG),O_=e=>Dr(e,o7,Je),GM=e=>Dr(e,zM,qM),e7=e=>Dr(e,YM,JG),cu=e=>Dr(e,WM,QG),xe=e=>FM.test(e),Ms=e=>kr(e,KM),t7=e=>kr(e,r7),HM=e=>kr(e,zM),n7=e=>kr(e,$M),i7=e=>kr(e,YM),_u=e=>kr(e,WM,!0),Dr=(e,n,t)=>{const i=VM.exec(e);return i?i[1]?n(i[1]):t(i[2]):!1},kr=(e,n,t=!1)=>{const i=FM.exec(e);return i?i[1]?n(i[1]):t:!1},zM=e=>e==="position"||e==="percentage",YM=e=>e==="image"||e==="url",$M=e=>e==="length"||e==="size"||e==="bg-size",KM=e=>e==="length",o7=e=>e==="number",r7=e=>e==="family-name",WM=e=>e==="shadow",s7=FG(()=>{const e=Jt("color"),n=Jt("font"),t=Jt("text"),i=Jt("font-weight"),o=Jt("tracking"),r=Jt("leading"),s=Jt("breakpoint"),u=Jt("container"),l=Jt("spacing"),d=Jt("radius"),c=Jt("shadow"),_=Jt("inset-shadow"),f=Jt("text-shadow"),p=Jt("drop-shadow"),a=Jt("blur"),v=Jt("perspective"),m=Jt("aspect"),g=Jt("ease"),E=Jt("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),xe,Oe],S=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],R=()=>[xe,Oe,l],L=()=>[wr,"full","auto",...R()],j=()=>[io,"none","subgrid",xe,Oe],I=()=>["auto",{span:["full",io,xe,Oe]},io,xe,Oe],C=()=>[io,"auto",xe,Oe],O=()=>["auto","min","max","fr",xe,Oe],x=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...R()],H=()=>[wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],B=()=>[e,xe,Oe],w=()=>[...T(),HM,GM,{position:[xe,Oe]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",n7,ZG,{size:[xe,Oe]}],F=()=>[N_,Ms,Co],$=()=>["","none","full",d,xe,Oe],Y=()=>["",Je,Ms,Co],K=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[Je,N_,HM,GM],Z=()=>["","none",a,xe,Oe],b=()=>["none",Je,xe,Oe],M=()=>["none",Je,xe,Oe],k=()=>[Je,xe,Oe],z=()=>[wr,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fi],breakpoint:[Fi],color:[KG],container:[Fi],"drop-shadow":[Fi],ease:["in","out","in-out"],font:[XG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fi],shadow:[Fi],spacing:["px",Je],text:[Fi],"text-shadow":[Fi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wr,Oe,xe,m]}],container:["container"],columns:[{columns:[Je,Oe,xe,u]}],"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:A()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[io,"auto",xe,Oe]}],basis:[{basis:[wr,"full","auto",u,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Je,wr,"auto","initial","none",Oe]}],grow:[{grow:["",Je,xe,Oe]}],shrink:[{shrink:["",Je,xe,Oe]}],order:[{order:[io,"first","last","none",xe,Oe]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...x(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...x()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":x()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[u,"screen",...H()]}],"min-w":[{"min-w":[u,"screen","none",...H()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",t,Ms,Co]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,xe,O_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",N_,Oe]}],"font-family":[{font:[t7,Oe,n]}],"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,xe,Oe]}],"line-clamp":[{"line-clamp":[Je,"none",xe,O_]}],leading:[{leading:[r,...R()]}],"list-image":[{"list-image":["none",xe,Oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,Oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[Je,"from-font","auto",xe,Co]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Je,"auto",xe,Oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,Oe]}],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",xe,Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},io,xe,Oe],radial:["",xe,Oe],conic:[io,xe,Oe]},i7,e7]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Je,xe,Oe]}],"outline-w":[{outline:["",Je,Ms,Co]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",c,_u,cu]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",_,_u,cu]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Je,Co]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",f,_u,cu]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Je,xe,Oe]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"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":[Je]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[xe,Oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[Je]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,Oe]}],filter:[{filter:["","none",xe,Oe]}],blur:[{blur:Z()}],brightness:[{brightness:[Je,xe,Oe]}],contrast:[{contrast:[Je,xe,Oe]}],"drop-shadow":[{"drop-shadow":["","none",p,_u,cu]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Je,xe,Oe]}],"hue-rotate":[{"hue-rotate":[Je,xe,Oe]}],invert:[{invert:["",Je,xe,Oe]}],saturate:[{saturate:[Je,xe,Oe]}],sepia:[{sepia:["",Je,xe,Oe]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,Oe]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[Je,xe,Oe]}],"backdrop-contrast":[{"backdrop-contrast":[Je,xe,Oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Je,xe,Oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Je,xe,Oe]}],"backdrop-invert":[{"backdrop-invert":["",Je,xe,Oe]}],"backdrop-opacity":[{"backdrop-opacity":[Je,xe,Oe]}],"backdrop-saturate":[{"backdrop-saturate":[Je,xe,Oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Je,xe,Oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,Oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Je,"initial",xe,Oe]}],ease:[{ease:["linear","initial",g,xe,Oe]}],delay:[{delay:[Je,xe,Oe]}],animate:[{animate:["none",E,xe,Oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,xe,Oe]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:b()}],"rotate-x":[{"rotate-x":b()}],"rotate-y":[{"rotate-y":b()}],"rotate-z":[{"rotate-z":b()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:k()}],"skew-x":[{"skew-x":k()}],"skew-y":[{"skew-y":k()}],transform:[{transform:[xe,Oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",xe,Oe]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",xe,Oe]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Je,Ms,Co,O_]}],stroke:[{stroke:["none",...B()]}],"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 l7(...e){return s7(RG(e))}const u7=h.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:n}){const t=e,i=n,o=CG(t,"class"),r=Rr(o,i);return(s,u)=>(h.openBlock(),h.createBlock(h.unref(EG),null,{default:h.withCtx(()=>[h.createVNode(h.unref(yG),h.mergeProps({...h.unref(r),...s.$attrs},{class:h.unref(l7)("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",t.class)}),{default:h.withCtx(()=>[h.renderSlot(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),d7=h.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(SG),h.normalizeProps(h.guardReactiveProps(n)),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),c7=h.defineComponent({__name:"PopoverBase",props:h.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 n=e;let t=null;const i=h.useModel(e,"open");function o(l,d){if(!n.disabled){if(t&&(clearTimeout(t),t=null),d===0){r(l);return}t=setTimeout(()=>{r(l),t=null},d)}}const r=l=>{i.value=l};function s(){n.trigger=="hover"&&o(!0,n.delay)}const u=()=>{n.trigger=="hover"&&o(!1,n.delay)};return(l,d)=>(h.openBlock(),h.createBlock(h.unref(bG),{open:i.value,"onUpdate:open":d[0]||(d[0]=c=>i.value=c)},{default:h.withCtx(()=>[h.createVNode(h.unref(d7),{class:h.normalizeClass(n.triggerClass),onMouseenter:s,onMouseleave:u},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default")]),_:3},8,["class"]),l.disabled?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(h.unref(u7),{key:0,side:l.side,align:l.align,onMouseenter:s,onMouseleave:u},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"content")]),_:3},8,["side","align"]))]),_:3},8,["open"]))}}),_7={class:"flex gap-2"},f7={class:"w-full relative grow"},p7={class:"flex gap-2 absolute right-0 bottom-0"},a7={class:"shrink-0 cursor-pointer relative"},v7={class:"h-11 w-11 rounded-full flex-center bg-[#002E6B]"},m7=h.defineComponent({__name:"InputChat",props:h.mergeModels({data:{}},{modelValue:{},modelModifiers:{}}),emits:h.mergeModels(["sendMessage"],["update:modelValue"]),setup(e,{emit:n}){const t=e,i=n,o=h.useModel(e,"modelValue");let r=1;const s=h.ref(null);h.ref([]);const u=h.ref(null),l=h.ref(!1),d=async p=>{var y,T,A;const a=Date.now();let v="",m=[];if(p=="message"){if(!o.value)return;v=o.value,o.value=""}else if(p=="file"){const S=c();if(!S)return;const N=URL.createObjectURL(S);m=[{file_name:String(a),file_path:N,file_local:S}]}o.value="",r++;const g=((y=t.data)==null?void 0:y.id.toString())+"-"+r;console.log(Vt().tz(zl).format(gr.DATE_FORMAT_FULL));const E={conversation_id:135,created_at:Vt().tz(zl).format(gr.DATE_FORMAT_FULL),id:g,message:v,receiver_id:((T=t.data)==null?void 0:T.id)||0,sender_id:(A=rt.value)==null?void 0:A.id,status:"read",attachments:m};i("sendMessage",E)},c=()=>!s.value||!s.value.files||s.value.files.length===0?null:s.value.files[0],_=()=>{d("file")},f=p=>{var a,v,m;o.value=(o.value??"")+(((a=p==null?void 0:p.i)==null?void 0:a.replace("undefined",""))??""),l.value=!1,(m=(v=u.value)==null?void 0:v.focus)==null||m.call(v)};return(p,a)=>(h.openBlock(),h.createElementBlock("div",_7,[h.createElementVNode("div",f7,[h.withDirectives(h.createElementVNode("input",{class:"w-full chat-input h-11 px-4 border border-chat-haze-200",ref_key:"chatInputRef",ref:u,placeholder:"Send Message",onKeydown:a[0]||(a[0]=h.withKeys(v=>d("message"),["enter"])),"onUpdate:modelValue":a[1]||(a[1]=v=>o.value=v)},null,544),[[h.vModelText,o.value]]),h.createElementVNode("div",p7,[h.createVNode(c7,{open:l.value,"onUpdate:open":a[3]||(a[3]=v=>l.value=v),align:"end",side:"top"},{content:h.withCtx(()=>[h.createVNode(h.unref(QR),{class:"!w-[300px]",native:!0,offset:2,"hide-search":"",onSelect:f})]),default:h.withCtx(()=>[h.createElementVNode("button",{onClick:a[2]||(a[2]=h.withModifiers(v=>l.value=!l.value,["stop"])),class:""}," 😊 ")]),_:1},8,["open"]),h.createVNode(h.unref(QR),{class:"opacity-0 pointer-events-none absolute",native:!0,offset:2,"hide-search":"",onSelect:f}),h.createElementVNode("button",{class:"h-11 w-10",onClick:a[4]||(a[4]=v=>d("message"))},[h.createVNode(IV)])])]),h.createElementVNode("label",a7,[h.createElementVNode("input",{type:"file",class:"hidden",ref_key:"refInputImage",ref:s,accept:".png, .jpeg, .jpg",onChange:_},null,544),h.createElementVNode("div",v7,[h.createVNode(Lf,{class:"text-white"})])])]))}}),On={Sending:"sending",Sent:"sent",Read:"read",Failed:"failed",Uploading:"uploading",Uploaded:"uploaded"},h7={class:"relative overflow-hidden"},y7={key:0,class:"shrink-0 h-[500px]"},g7={class:"chat-padding-page"},E7=["innerHTML"],T7={key:1},S7=["src","onLoad"],b7=["innerHTML"],I7={key:1},A7=["src","onLoad"],C7=h.defineComponent({__name:"ChatMessage",props:{data:{},message:{},responsive:{},showNewCustomer:{type:Boolean}},emits:["scrollTop"],setup(e,{expose:n,emit:t}){const i=e,o=t,r=h.ref(null),s=()=>{h.nextTick(()=>{const p=document.getElementById("content-chat");p&&(p.scrollTop=p.scrollHeight)})},u=p=>p===0?!0:i.message[p-1].sender_id!==i.message[p].sender_id,l=p=>{var a;return((a=i.message)==null?void 0:a.length)==p+1?!0:i.message[p+1].sender_id!==i.message[p].sender_id},d=()=>{o("scrollTop")},c=()=>{var p;(p=r.value)==null||p.hideLoading()},_=()=>{var p;(p=r.value)==null||p.fixedScroll()},f=p=>{switch(p.state){case On.Sending:return"Sending...";case On.Uploading:return"Uploading...";case On.Sent:return"";case On.Read:return"Seen";case On.Failed:return p.error||"Message failed";default:return""}};return n({scrollBottom:s,hideScrollEvent:c,fixedScroll:_}),(p,a)=>(h.openBlock(),h.createElementBlock("div",h7,[h.createVNode(bp,{class:"bg-white h-full flex flex-col overflow-auto",id:"content-chat",top:"",ref_key:"scrollEventRef",ref:r,onGetDataTop:d},{default:h.withCtx(()=>[p.showNewCustomer?(h.openBlock(),h.createElementBlock("div",y7,[h.createVNode(gR,{class:"h-full",data:p.data},null,8,["data"])])):h.createCommentVNode("",!0),h.createElementVNode("div",g7,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(p.message,(v,m)=>{var g,E,y,T,A,S,N;return h.openBlock(),h.createElementBlock(h.Fragment,{key:v.id},[v.sender_id!==((g=h.unref(rt))==null?void 0:g.id)?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["flex items-end gap-2 mt-2",{"mt-4":u(m)}])},[v.state!=h.unref(On).Sending?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[u(m)?(h.openBlock(),h.createBlock(zo,{key:0,class:h.normalizeClass(["shrink-0",p.responsive=="mobile"?"translate-y-[-2px]":""]),src:((E=p.data)==null?void 0:E.avatar)??"",color:(y=p.data)==null?void 0:y.color,name:(T=p.data)==null?void 0:T.username,size:p.responsive=="mobile"?"sm":"md"},null,8,["src","color","name","size","class"])):(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["shrink-0",p.responsive=="mobile"?"w-8":"w-12"])},null,2)),h.createElementVNode("div",{class:h.normalizeClass(["bg-[#E4E4E4D4] text-left text-chat-haze-600 px-3 py-2 rounded-2xl max-w-xs w-max",{"rounded-tl-none":!u(m),"rounded-bl-none":!l(m)}])},[v.message?(h.openBlock(),h.createElementBlock("div",{key:0,innerHTML:v.message,style:{wordBreak:"break-word"}},null,8,E7)):v.attachments.length?(h.openBlock(),h.createElementBlock("div",T7,[h.createElementVNode("img",{src:(A=v.attachments[0])==null?void 0:A.file_path,alt:"avatar",onLoad:()=>{m==p.message.length-1&&s()}},null,40,S7)])):h.createCommentVNode("",!0)],2)],64)):h.createCommentVNode("",!0)],2)):(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["flex flex-col items-end justify-end mt-2 pl-[60px]",{"mt-4":u(m)}])},[h.createElementVNode("div",{class:h.normalizeClass(["bg-[#D0DFEC] text-[#266699] px-3 py-2 rounded-2xl max-w-xs",{"rounded-tr-none":!u(m),"rounded-br-none":!l(m)}])},[v.message?(h.openBlock(),h.createElementBlock("div",{key:0,innerHTML:v.message,style:{wordBreak:"break-word"}},null,8,b7)):(S=v==null?void 0:v.attachments)!=null&&S.length?(h.openBlock(),h.createElementBlock("div",I7,[h.createElementVNode("img",{src:(N=v.attachments[0])==null?void 0:N.file_path,alt:"avatar",onLoad:()=>{m==p.message.length-1&&s()}},null,40,A7)])):h.createCommentVNode("",!0)],2),m==p.message.length-1&&f(v)||v.state==h.unref(On).Failed?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(["text-chat-haze-200 text-xs mt-1",{"!text-chat-error":v.state==h.unref(On).Failed}])},h.toDisplayString(f(v)),3)):h.createCommentVNode("",!0)],2))],64)}),128))])]),_:1},512)]))}}),R7={class:"h-full flex flex-col overflow-hidden"},M7={key:2,class:"grow"},QM=h.defineComponent({__name:"Home",props:{receiverId:{},responsive:{}},emits:["call"],setup(e,{expose:n,emit:t}){const i=e,o=t;let r=1,s=1,u="";const l=h.ref(!1),d=h.shallowRef(null),c=h.ref([]),_=h.ref(null);h.onMounted(()=>{}),h.onUnmounted(()=>{p()}),h.ref(!1);const f=async()=>{var R;try{await Ap(),u=Cp+((R=d.value)==null?void 0:R.conversation_id),qr(u),Du("chat-home",u,a)}catch(L){console.error(L)}},p=async()=>{var L;const R=Cp+((L=d.value)==null?void 0:L.conversation_id);wu(R),zs("chat-home")},a=(R,L)=>{var j,I,C,O,x;(j=d.value)!=null&&j.id&&((I=L==null?void 0:L.sender_id)==null?void 0:I.toString())==((O=(C=d.value)==null?void 0:C.id)==null?void 0:O.toString());{const P=c.value.findIndex(U=>U.id===(L==null?void 0:L.id));P<0?c.value.push(L):c.value[P]=L,(x=_.value)==null||x.scrollBottom()}},v=async()=>{var R,L;try{const j=i.receiverId,I={page:r,receiver_id:i.receiverId};let C=await Mj(I);C.items=C.items.reverse(),r=((R=C._meta)==null?void 0:R.currentPage)||1,s=((L=C._meta)==null?void 0:L.pageCount)||1,j==i.receiverId&&c.value.unshift(...C.items)}catch(j){console.error(j)}},m=async()=>{var R,L,j;if(r>=s){(R=_.value)==null||R.hideScrollEvent();return}r=r+1,await v(),(L=_.value)==null||L.hideScrollEvent(),(j=_.value)==null||j.fixedScroll()},g=async R=>{const L=i.receiverId;R&&(d.value=R);const j=await Nj(i.receiverId)??null;L==i.receiverId&&(d.value=j,await f())},E=async R=>{var L;try{l.value=!0,c.value=[],await Promise.allSettled([v(),g(R)]),await h.nextTick(),(L=_.value)==null||L.scrollBottom()}catch(j){console.error(j)}finally{l.value=!1}},y=(R,L)=>{const j=c.value.findIndex(I=>I.id==R);if(j>-1){const I=c.value[j];c.value[j]={...I,...L},console.log({...I,...L})}},T=async R=>{var L,j,I,C,O,x;try{c.value.push({...R,state:On.Sending}),Hs(u,{...R,state:On.Sending});let P=[];(L=R==null?void 0:R.attachments)!=null&&L.length&&(y(R.id,{state:On.Uploading}),P=await A(R==null?void 0:R.attachments[0].file_local)),y(R.id,{state:On.Sending}),(j=_.value)==null||j.scrollBottom();const U=new FormData;U.append("message",R.message??""),U.append("receiver_id",((I=d.value)==null?void 0:I.id)??""),P.length&&U.append("url",((C=P[0])==null?void 0:C.url)??""),await xj(U),Hs(u,{...R,state:On.Sent,attachments:P?[{file_name:((O=R.attachments[0])==null?void 0:O.file_name)??"",file_path:((x=P[0])==null?void 0:x.url)??""}]:[]}),y(R.id,{state:On.Sent}),S(!1,(R==null?void 0:R.message)??"")}catch(P){y(R.id,{state:On.Failed,error:typeof(P==null?void 0:P.message)=="string"?P.message:""}),console.log(P.message)}},A=async R=>{if(R==null||R==null)return[];if(R.size>1*1024*1024)throw new Error("File size exceeds limit");const L=new FormData;return L.append("file",R),await wj(L)},S=async(R,L)=>{var x,P,U,H,B,w,V,q,F,$,Y,K,X,Q,Z,b;const j=await Pj({conversation_id:((x=d.value)==null?void 0:x.conversation_id)??0,receiver_id:Number((P=d.value)==null?void 0:P.id)}),I=Vt().tz(zl).format(gr.DATE_FORMAT_FULL),C={id:((U=d.value)==null?void 0:U.conversation_id)??0,receiver_id:Number(((H=rt.value)==null?void 0:H.id)??0),username:((B=rt.value)==null?void 0:B.username)??"",customer_phone:((w=rt.value)==null?void 0:w.phone)??"",avatar:((V=rt.value)==null?void 0:V.avatar)??"",last_message:L,last_message_time:I,created_at:I,updated_at:I,unread_count:((j==null?void 0:j.unread_count)??0)+1,status:1,color:((q=rt.value)==null?void 0:q.color)??""};Hs(`${lo[0]+Number((F=d.value)==null?void 0:F.id)}`,JSON.stringify(C));const O={id:(($=d.value)==null?void 0:$.conversation_id)??0,receiver_id:Number(((Y=rt.value)==null?void 0:Y.id)??0),username:((K=d.value)==null?void 0:K.username)??"",customer_phone:((X=d.value)==null?void 0:X.phone)??"",avatar:((Q=d.value)==null?void 0:Q.avatar)??"",last_message:L,last_message_time:I,created_at:I,updated_at:I,unread_count:0,status:1,color:(Z=d.value)==null?void 0:Z.color};Hs(`${lo[0]+Number((b=rt.value)==null?void 0:b.id)}`,JSON.stringify(O))},N=()=>{d.value&&o("call",d.value)};return n({getData:E}),(R,L)=>{var j;return h.openBlock(),h.createElementBlock("div",R7,[h.createVNode(hV,{class:"shrink-0",data:d.value,onCall:N},null,8,["data"]),(j=c.value)!=null&&j.length?(h.openBlock(),h.createBlock(C7,{key:0,ref_key:"chatMessageRef",ref:_,onScrollTop:m,data:d.value,message:c.value,class:"grow",responsive:R.responsive,"show-new-customer":h.unref(r)>=h.unref(s)},null,8,["data","message","responsive","show-new-customer"])):l.value?(h.openBlock(),h.createElementBlock("span",M7)):(h.openBlock(),h.createBlock(gR,{key:1,data:d.value,class:"grow"},null,8,["data"])),h.createVNode(m7,{data:d.value,onSendMessage:T,class:"p-6"},null,8,["data"])])}}}),N7={},O7={width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x7(e,n){return h.openBlock(),h.createElementBlock("svg",O7,n[0]||(n[0]=[h.createElementVNode("path",{d:"M6.00003 17.9998H30",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 JM=It(N7,[["render",x7]]),P7={},w7={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D7(e,n){return h.openBlock(),h.createElementBlock("svg",w7,n[0]||(n[0]=[h.createElementVNode("path",{d:"M6.00003 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const XM=It(P7,[["render",D7]]),k7={class:"w-full"},L7={class:"text-chat-haze-500 font-semibold"},U7={class:"bg-white rounded-xl border border-chat-haze-100 mt-1 p-4 space-y-4"},B7=["onClick"],j7={class:"flex items-center gap-1 grow text-chat-haze-900"},V7={key:0,class:"flex items-center text-chat-haze-300"},F7={class:"ml-1"},q7={class:"border-chat-haze-100 mx-6"},x_=h.defineComponent({__name:"SubInformation",props:{information:{default:[]},title:{default:""}},setup(e){return(n,t)=>(h.openBlock(),h.createElementBlock("div",k7,[h.createElementVNode("h2",L7,h.toDisplayString(n.title),1),h.createElementVNode("div",U7,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.information,(i,o)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:o},[h.createElementVNode("div",{class:h.normalizeClass(["flex items-center gap-1",{"cursor-pointer":i.click}]),onClick:r=>{var s;return(s=i.click)==null?void 0:s.call(i)}},[h.createElementVNode("div",j7,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(i.icon))),h.createElementVNode("span",null,h.toDisplayString(i.label),1)]),i.value?(h.openBlock(),h.createElementBlock("div",V7,[h.createTextVNode(h.toDisplayString(i.value)+" ",1),h.createElementVNode("span",F7,[h.createVNode(XM)])])):h.createCommentVNode("",!0)],10,B7),h.withDirectives(h.createElementVNode("hr",q7,null,512),[[h.vShow,o<n.information.length-1]])],64))),128))])]))}}),G7={},H7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z7(e,n){return h.openBlock(),h.createElementBlock("svg",H7,n[0]||(n[0]=[h.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),h.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 Y7=It(G7,[["render",z7]]),$7={},K7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W7(e,n){return h.openBlock(),h.createElementBlock("svg",K7,n[0]||(n[0]=[h.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":"1.25","stroke-linecap":"round"},null,-1)]))}const Q7=It($7,[["render",W7]]),J7={},X7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z7(e,n){return h.openBlock(),h.createElementBlock("svg",X7,n[0]||(n[0]=[h.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),h.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 eH=It(J7,[["render",Z7]]),tH={},nH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iH(e,n){return h.openBlock(),h.createElementBlock("svg",nH,n[0]||(n[0]=[h.createElementVNode("path",{d:"M16 2V6M8 2V6",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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),h.createElementVNode("path",{d:"M3 10H21",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 oH=It(tH,[["render",iH]]),rH={},sH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lH(e,n){return h.openBlock(),h.createElementBlock("svg",sH,n[0]||(n[0]=[h.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 uH=It(rH,[["render",lH]]),dH={},cH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _H(e,n){return h.openBlock(),h.createElementBlock("svg",cH,n[0]||(n[0]=[h.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),h.createElementVNode("path",{d:"M15 9.5H7M10 14.5H7",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const fH=It(dH,[["render",_H]]),pH={},aH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vH(e,n){return h.openBlock(),h.createElementBlock("svg",aH,n[0]||(n[0]=[h.createElementVNode("path",{d:"M17 17L21 21",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 mH=It(pH,[["render",vH]]),hH={},yH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gH(e,n){return h.openBlock(),h.createElementBlock("svg",yH,n[0]||(n[0]=[h.createElementVNode("path",{d:"M3 21L8 16",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 EH=It(hH,[["render",gH]]),TH=(e,n=1)=>{let t=(""+e||"").replace(/[^\d*]/g,"");return t.length>10&&(t=t.substring(t.length-10)),t.length==10?(n==4&&(t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"*** $3")),n==3&&(t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"($3)")),n==2?t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"***-***-$3"):t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"(***) ***-$3"),t):""},SH={class:"chat-padding-page overflow-auto"},bH={class:"flex flex-col items-center mx-auto"},IH={class:"flex items-center gap-1 mt-3"},AH={class:"text-lg font-semibold text-gray-800"},CH={class:"w-full flex items-center justify-center gap-1"},RH={class:"text-lg font-semibold text-chat-haze-900"},MH=["src"],NH={class:"text-chat-haze-400"},OH={class:"w-full py-6"},ZM=h.defineComponent({__name:"CustomerDetail",props:{receiverId:{},responsive:{}},setup(e){const n=h.computed(()=>{var s,u,l;return[{label:"Points",value:((s=Bn.value)==null?void 0:s.lifetime_point)??0},{label:"Total Visit",value:((u=Bn.value)==null?void 0:u.visit_count)??0},{label:"Spent",value:((l=Bn.value)==null?void 0:l.total_money)??0}]}),t=h.computed(()=>{var s;return[{icon:Y7,label:""},{icon:Q7,label:TH(((s=So.value)==null?void 0:s.phone)??"",2)}]}),i=h.computed(()=>{var s,u,l,d,c,_,f,p,a,v;return[{icon:eH,label:"Check In",value:(s=Bn.value)!=null&&s.visit_count?((u=Bn.value)==null?void 0:u.visit_count)+(((l=Bn.value)==null?void 0:l.visit_count)>1?" times":" time"):"",click:(d=Bn.value)!=null&&d.visit_count?()=>{Un(Ke.CUSTOMER_CHECK_IN)}:null},{icon:fH,label:"Orders",value:((_=(c=Bn.value)==null?void 0:c.order)==null?void 0:_.length)??""},{icon:oH,label:"Appointments",value:((p=(f=Bn.value)==null?void 0:f.appointment)==null?void 0:p.length)??"",click:(v=(a=Bn.value)==null?void 0:a.appointment)!=null&&v.length?()=>{Un(Ke.CUSTOMER_APPOINTMENT)}:null}]}),o=[{icon:mH,label:"Search in the conversation"},{icon:EH,label:"Pin Message"},{icon:uH,label:"Add Groups"}];return(async()=>{var s,u;Bn.value=null,Bn.value=await dV(((u=(s=So.value)==null?void 0:s.phone)==null?void 0:u.slice(1))??"")})(),(s,u)=>{var l,d,c,_;return h.openBlock(),h.createElementBlock("div",SH,[h.createElementVNode("div",bH,[h.createVNode(zo,{src:((l=h.unref(So))==null?void 0:l.avatar)??"",color:((d=h.unref(So))==null?void 0:d.color)??"",name:((c=h.unref(So))==null?void 0:c.username)??"",size:"xl"},null,8,["src","color","name"]),h.createElementVNode("div",IH,[h.createElementVNode("h2",AH,h.toDisplayString(((_=h.unref(So))==null?void 0:_.username)??"n/a"),1),u[0]||(u[0]=h.createElementVNode("img",{src:yR},null,-1))])]),h.createElementVNode("div",{class:h.normalizeClass(["mt-5 text-center mx-auto",{"flex justify-between w-max":s.responsive=="tablet","grid grid-cols-3 w-full":s.responsive=="mobile"}])},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(f,p)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["border-l border-chat-haze-100 first:border-none",{"w-full":s.responsive=="mobile","w-[130px]":s.responsive=="tablet"}]),key:p},[h.createElementVNode("div",CH,[h.createElementVNode("p",RH,h.toDisplayString(f.value),1),f.icon?(h.openBlock(),h.createElementBlock("img",{key:0,src:f.icon},null,8,MH)):h.createCommentVNode("",!0)]),h.createElementVNode("p",NH,h.toDisplayString(f.label),1)],2))),128))],2),h.createElementVNode("div",OH,[h.createVNode(x_,{class:"mb-6",information:t.value,title:"Information"},null,8,["information"]),h.createVNode(x_,{class:"mb-6",information:i.value,title:"History"},null,8,["information"]),h.createVNode(x_,{class:"",information:o,title:"Other Action"})])])}}}),xH={},PH={class:"bg-white border border-chat-haze-200 rounded-lg p-4"};function wH(e,n){return h.openBlock(),h.createElementBlock("div",PH,[h.renderSlot(e.$slots,"header"),n[0]||(n[0]=h.createElementVNode("div",{class:"border-t border-dashed border-chat-haze-200 my-2"},null,-1)),h.renderSlot(e.$slots,"content")])}const eN=It(xH,[["render",wH]]);var tN=(e=>(e.Orange="#F2994A",e.Blue_Teal="#F2994A",e))(tN||{});const DH=h.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:n}){const o=Rr(e,n);return(r,s)=>(h.openBlock(),h.createBlock(h.unref(M8),h.normalizeProps(h.guardReactiveProps(h.unref(o))),{default:h.withCtx(({open:u})=>[h.renderSlot(r.$slots,"default",{open:u})]),_:3},16))}}),kH=h.defineComponent({__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(O8),h.mergeProps(n,{class:"overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"}),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),LH=h.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(P8),h.normalizeProps(h.guardReactiveProps(n)),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),UH=h.defineComponent({__name:"CollapseBase",props:{open:{type:Boolean},openModifiers:{}},emits:["update:open"],setup(e){const n=h.useModel(e,"open");return(t,i)=>(h.openBlock(),h.createBlock(h.unref(DH),{open:n.value,"onUpdate:open":i[0]||(i[0]=o=>n.value=o)},{default:h.withCtx(()=>[h.createVNode(h.unref(LH),null,{default:h.withCtx(()=>[h.renderSlot(t.$slots,"trigger")]),_:3}),h.createVNode(h.unref(kH),null,{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["open"]))}}),BH={class:"flex items-center text-chat-haze-400 mb-3"},jH={class:"font-semibold text-lg"},nN=h.defineComponent({__name:"CollapseCheckIn",props:{title:{}},setup(e){const n=h.ref(!0);return(t,i)=>(h.openBlock(),h.createBlock(UH,{class:"relative",open:n.value,"onUpdate:open":i[0]||(i[0]=o=>n.value=o)},{trigger:h.withCtx(()=>[i[1]||(i[1]=h.createElementVNode("div",{class:"w-2 h-2 bg-chat-haze-400 rounded-full absolute left-[-20px] top-2"},null,-1)),h.createElementVNode("div",BH,[h.createElementVNode("span",jH,h.toDisplayString(t.title),1),h.createVNode(XM,{class:h.normalizeClass(n.value?"rotate-90":"rotate-0")},null,8,["class"])])]),default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},8,["open"]))}}),VH={class:"chat-padding-page"},FH={class:"relative pl-4 h-max"},qH={class:"flex justify-between items-center"},GH={class:"text-chat-haze-600 font-bold"},HH={class:"flex justify-between items-center"},zH={class:"text-chat-haze-400 font-normal"},iN=h.defineComponent({__name:"CustomerCheckIn",setup(e){const n=h.computed(()=>{var t;return hR(((t=Bn.value)==null?void 0:t.checkin)??[])});return h.ref(!0),h.ref(!0),(t,i)=>(h.openBlock(),h.createElementBlock("div",VH,[i[1]||(i[1]=h.createElementVNode("p",{class:"font-semibold mb-4"},"Total Point: 666",-1)),h.createElementVNode("div",FH,[i[0]||(i[0]=h.createElementVNode("div",{class:"absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2"},null,-1)),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(o,r)=>(h.openBlock(),h.createBlock(nN,{class:"relative",title:o.year,key:r},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.items,s=>(h.openBlock(),h.createElementBlock("div",{class:"flex flex-col gap-y-3",key:s.id},[h.createVNode(eN,null,{header:h.withCtx(()=>[h.createElementVNode("div",qH,[h.createElementVNode("p",GH,"ID: "+h.toDisplayString(s.id),1),h.createElementVNode("p",{class:"font-bold",style:h.normalizeStyle({color:h.unref(tN).Orange})},h.toDisplayString(s.status),5)])]),content:h.withCtx(()=>[h.createElementVNode("div",HH,[h.createElementVNode("p",zH,h.toDisplayString(h.unref(Vt)(s.created_at).format(h.unref(gr).DATE_FORMAT)),1),h.withDirectives(h.createElementVNode("p",{class:"text-chat-success"},"+"+h.toDisplayString(s.point_bonus)+" points",513),[[h.vShow,s.point_bonus>0]]),h.withDirectives(h.createElementVNode("p",{class:""},"+"+h.toDisplayString(s.point_bonus)+" points",513),[[h.vShow,!s.point_bonus]])])]),_:2},1024)]))),128))]),_:2},1032,["title"]))),128))])]))}}),YH={},$H={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KH(e,n){return h.openBlock(),h.createElementBlock("svg",$H,n[0]||(n[0]=[h.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 WH=It(YH,[["render",KH]]);var Lr=(e=>(e.Confirmed="confirmed",e.Scheduled="scheduled",e.Canceled="canceled",e.Done="done",e.Reminder="reminder",e.Waiting="wait_list",e))(Lr||{});const QH={class:"chat-padding-page"},JH={class:"flex justify-between items-center mb-5"},XH={class:"flex text-chat-haze-300 border border-chat-haze-300 rounded-[99px] px-2"},ZH={class:"relative pl-4 h-max"},ez={class:"flex flex-col gap-y-3"},tz={class:"flex justify-between items-center"},nz={class:"text-lg text-chat-haze-600 font-bold"},iz={class:"translate-y-[-4px]"},oz={class:"flex justify-between items-end"},rz={class:"text-chat-haze-400"},sz={class:"text-chat-haze-400"},lz={class:"text-chat-haze-409 font-medium"},uz={class:"text-chat-haze-409 font-medium"},oN=h.defineComponent({__name:"CustomerAppointment",setup(e){const n=h.computed(()=>{var i;return hR(((i=Bn.value)==null?void 0:i.appointment)??[],"start_time")}),t=i=>{switch(i){case Lr.Confirmed:return"background-color: #E3FFF1; color: #06C270";case Lr.Scheduled:return"background-color: #FFF0FF; color: #6600CC";case Lr.Canceled:return"background-color: #FFE4DC; color: #F15220";case Lr.Done:return"background-color: #E5F0FF; color: #0063F7";case Lr.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)=>(h.openBlock(),h.createElementBlock("div",QH,[h.createElementVNode("div",JH,[o[1]||(o[1]=h.createElementVNode("p",{class:"text-chat-haze-900 font-semibold"},"All Appointment",-1)),h.createElementVNode("button",XH,[o[0]||(o[0]=h.createElementVNode("span",{class:"font-medium"},"Filter",-1)),h.createVNode(WH)])]),h.createElementVNode("div",ZH,[o[2]||(o[2]=h.createElementVNode("div",{class:"absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2"},null,-1)),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(r,s)=>(h.openBlock(),h.createBlock(nN,{class:"relative",title:r.year,key:s},{default:h.withCtx(()=>[h.createElementVNode("div",ez,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.items,u=>(h.openBlock(),h.createBlock(eN,{key:u.id},{header:h.withCtx(()=>[h.createElementVNode("div",tz,[h.createElementVNode("p",nz,"ID: "+h.toDisplayString(u.id),1),h.createElementVNode("div",iz,[h.createElementVNode("div",{class:"w-max rounded-[6px] text-14px px-[10px] py-[5px] mt-2",style:h.normalizeStyle(t(u.status))},h.toDisplayString(u.status),5)])]),h.createElementVNode("div",oz,[h.createElementVNode("p",rz,h.toDisplayString(h.unref(Vt)(u.start_time).format(h.unref(gr).DATE_FORMAT)),1),h.createElementVNode("p",sz," start time: "+h.toDisplayString(h.unref(Vt)(u.start_time).format(h.unref(gr).TIME_12_FORMAT)),1)])]),content:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(u.services,(l,d)=>(h.openBlock(),h.createElementBlock("div",{class:"flex justify-between items-center",key:d},[h.createElementVNode("p",lz,h.toDisplayString(l.employee_name),1),h.createElementVNode("p",uz,h.toDisplayString(l.name),1)]))),128))]),_:2},1024))),128))])]),_:2},1032,["title"]))),128))])]))}}),rN=e=>{try{return JSON.parse(e)}catch{return e}};let Kn=null,P_=[],dz="";const w_="wss://web-socket-test.dev01.dtsmart.dev/web-stream";function cz(){return new Promise((e,n)=>{if(Kn&&Kn.readyState===1){console.log("WebSocket đã kết nối, bỏ qua connect."),e("Connected");return}const t=setTimeout(()=>{var i;(i=Kn==null?void 0:Kn.close)==null||i.call(Kn),n(new Error("WebSocket connection timeout"))},5e3);Kn=new WebSocket(w_),Kn.binaryType="arraybuffer",Kn.onopen=i=>{clearTimeout(t),e("Connected")},Kn.onmessage=i=>{const o=rN(i.data);P_.forEach(r=>{r.callBack(o)})},Kn.onclose=i=>{console.log("Disconnected:",i.reason)},Kn.onerror=i=>{console.error("Socket error:",i),n(i)}})}const _z=async()=>{var n;const e="https://web-socket.dev01.dtsmart.dev/ws/connect";try{const t=await fetch(e,{method:"POST",body:JSON.stringify({clientId:(n=rt.value)==null?void 0:n.tenant_id}),headers:{"Content-Type":"application/json",Authorization:"Bearer -Qixt-ZztiBA5Dxl-EIWG7f2TDhK-ZCj"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.json();return dz=i==null?void 0:i.wsUrl,i}catch(t){console.error(t.message)}},fz=e=>{const n=P_.findIndex(t=>t.key===e);n>-1&&P_.splice(n,1)};class pz{constructor(n,t){pu(this,"socket",null);pu(this,"dataCallbacks",null);pu(this,"server");this.server=n,this.dataCallbacks=t}async init(){return new Promise((n,t)=>{this.server||t(new Error("Missing uuid!")),this.socket=new WebSocket(w_+"?call_uuid="+this.server),console.log(w_+"?call_uuid="+this.server),this.socket.binaryType="arraybuffer";const i=setTimeout(()=>{t(new Error("⏰ WebSocket connection timeout"))},5e3);this.socket.onopen=()=>{clearTimeout(i),n()},this.socket.onmessage=o=>{var s;const r=rN(o.data);console.log(r),(s=this.dataCallbacks)==null||s.call(this,r)},this.socket.onclose=o=>{},this.socket.onerror=o=>{clearTimeout(i),t(new Error("WebSocket connection error"))}})}send(n){var t;try{const i=typeof n=="string"?n:JSON.stringify(n);(t=this.socket)==null||t.send(i)}catch(i){console.error("Send error:",i)}}sendDefault(n){var t;try{(t=this.socket)==null||t.send(n)}catch(i){console.error("Send error:",i)}}disconnect(){this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.readyState===WebSocket.OPEN&&(this.socket.close(1e3,"Manual disconnect"),console.log("🔌 WebSocket closed manually")),this.socket=null),this.dataCallbacks=null}}const D_=h.ref(!1);function az(){const e="notifyIdAppointment",n=async r=>{try{if(D_.value=!1,(await Sj(r.props)).tenant_error){const u=await i()}await t(r.props,r.response)}catch(s){console.log(s)}finally{D_.value=!0}},t=async(r,s)=>{var u,l;await Rj(),await _z(),cz(),wu(Rp+((u=rt.value)==null?void 0:u.id)),qr(Rp+((l=rt.value)==null?void 0:l.id)),s=="mobile"?Un(Ke.CHAT_LIST):Un(Ke.HOME)},i=async()=>{try{const r=window.location.search,s=new URLSearchParams(r),u=s.get("tenant_id")||"",l=s.get("phone")||"",d=s.get("message")||"",c=s.get("customer_name")||"",_=s.get("business_name")||"";return!u||!l||!d||!c||!_?{client_error:!0}:(await Cj({tenant_id:u,phone:l,message:d,customer_name:c,business_name:_}),o(),{})}catch(r){return console.log(r),{client_error:!0}}finally{}},o=()=>{const r=new URL(window.location.href);r.search="",window.history.replaceState({},document.title,r)};return{NOTIFY_ID_APPOINTMENT_NAME:e,initPage:n}}const vz={class:"m-auto w-max"},mz={class:"flex gap-4"},hz=h.defineComponent({__name:"Error",setup(e){const n=()=>window.location.reload();return(t,i)=>(h.openBlock(),h.createElementBlock("div",vz,[i[2]||(i[2]=h.createElementVNode("h1",{class:"font-bold text-chat-haze-900 text-center mb-2",style:{"font-size":"56px"}}," 404 ",-1)),i[3]||(i[3]=h.createElementVNode("p",{class:"text-chat-haze-500 text-center mb-8",style:{"font-size":"20px"}}," Page not found. ",-1)),h.createElementVNode("div",mz,[h.createElementVNode("button",{onClick:i[0]||(i[0]=o=>n()),class:"px-6 py-2 bg-[#004AB3] text-white rounded-lg"}," Try Again "),h.createElementVNode("button",{onClick:i[1]||(i[1]=o=>h.unref(_R)()),class:"px-6 py-2 bg-[#004AB3] text-white rounded-lg"}," Logout ")])]))}}),yz={},gz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ez(e,n){return h.openBlock(),h.createElementBlock("svg",gz,n[0]||(n[0]=[h.createElementVNode("path",{d:"M3 6.5C3 14.5081 9.49187 21 17.5 21C18.166 21 18.8216 20.9551 19.4637 20.8682C20.3747 20.7448 21 19.9292 21 19.01V16.4415C21 15.5807 20.4491 14.8164 19.6325 14.5442L16.4841 13.4947C15.6836 13.2279 14.8252 13.699 14.6206 14.5177C14.3475 15.6102 12.987 15.987 12.1907 15.1907L8.80926 11.8093C8.01301 11.013 8.38984 9.65254 9.48229 9.37943C10.301 9.17476 10.7721 8.31644 10.5053 7.51586L9.45585 4.36754C9.18362 3.55086 8.41934 3 7.55848 3H4.99004C4.0708 3 3.25518 3.62533 3.13185 4.53627C3.0449 5.17845 3 5.83398 3 6.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M21 3L15.5 8.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M15 5V8.5V8.5C15 8.77614 15.2239 9 15.5 9V9H19",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Tz=It(yz,[["render",Ez]]),fu="https://web-socket-test.dev01.dtsmart.dev",Sz=async e=>{const n=fu+"/ws/answer";try{const t=await fetch(n,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.json();console.log(i)}catch(t){console.error(t.message)}},bz=async e=>{const n=fu+"/ws/call",t=await fetch(n,{method:"POST",body:JSON.stringify({from:"18668259612",to:(e==null?void 0:e.phone)||""}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);return await t.json()},Iz=async e=>{const n=fu+"/ws/end-call",t=await fetch(n,{method:"POST",body:JSON.stringify({call_uuid:e}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.json();console.log(i)},Az=async e=>{const n=fu+"/ws/download-record",t=await fetch(n,{method:"POST",body:JSON.stringify({url:e}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.blob(),o=window.URL.createObjectURL(i),r=document.createElement("a");r.href=o,r.download="recording.mp3",r.click(),r.remove()},sN=[{type:"audio_chunk",size_bytes:160,hex_preview:"36 25 39 bb c0 41 48 bc c3 32 27 3f c7 f6 ee aa 9f ae b3 9e",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"3f d9 ac b3 3d 3b b9 a8 ac b4 b3 ac af bc ae 9e 9b a5 ac a9",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"b1 a3 b3 a9 a8 a8 ae a3 a7 a6 a6 a8 a7 ab a9 ad af ae aa a6 ab",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"b3 b1 b2 b0 ae ae b0 b2 b3 b1 b1 b0 b0 af af ae ae ae ad ac ac",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad",samples_count:160}];function Cz(){function e(w){return new(window.AudioContext||window.webkitAudioContext)({sampleRate:n})}const n=8e3,t=160,i=h.ref("");let o=e(),r=e(),s=[],u=0,l,d,c=!1,_=null;const f=h.ref(null);let p=null,a;function v(w){const q=new Uint8Array(w.length);for(let F=0;F<w.length;F++){let $=w[F];$=Math.max(-1,Math.min(1,$));let Y=$<0?-$*8191:$*8191,K=$<0?128:0,X=7;for(let b=16384;!(Y&b)&&X>0;b>>=1)X--;let Q=Y>>X+3&15,Z=~(K|X<<4|Q)&255;q[F]=Z}return q}function m(w){w=~w;let q=w&128,F=w>>4&7,Y=((w&15)<<4)+8<<F+3;return Y-=132,Y<0&&(Y=0),q?-Y:Y}function g(w){const V=new Float32Array(w.length);for(let q=0;q<w.length;q++)V[q]=m(w[q])/32768;return V}function E(w){const q=new Float32Array(w.length*6);for(let F=0;F<q.length;F++)q[F]=w[Math.floor(F/6)]||0;return q}const y=async w=>{var q;f.value=w,i.value="";const V=await bz(w);i.value=(q=V==null?void 0:V.call)==null?void 0:q.requestUuid},T=async()=>{var w,V,q,F;(w=l==null?void 0:l.disconnect)==null||w.call(l),(V=d==null?void 0:d.disconnect)==null||V.call(d,l),C(),p==null||p.disconnect(),(F=(q=a==null?void 0:a.getAudioTracks)==null?void 0:q.call(a))==null||F.forEach($=>$==null?void 0:$.stop()),i&&await Iz(i.value)},A=async()=>{try{r||(r=e()),r.state==="suspended"&&await r.resume(),a=await navigator.mediaDevices.getUserMedia({audio:!0}),d=r.createMediaStreamSource(a),l=r.createScriptProcessor(256,1,1),l.onaudioprocess=w=>{const V=w.inputBuffer.getChannelData(0);for(let q=0;q<V.length;q+=t){const F=V.slice(q,q+t),$=v(F)}},d.connect(l),l.connect(r.destination)}catch(w){console.log(w)}},S=async w=>{},N=async()=>{},R=async w=>{},L=w=>{const V=new Uint8Array(w),q=g(V);s.push(q),s.length>3&&s.shift()};async function j(){try{const w=s.shift();if(w){const V=E(w),q=o.createBuffer(1,w.length,n);q.getChannelData(0).set(w);const F=o.createBufferSource();F.buffer=q,F.connect(o.destination),u<o.currentTime+t/n&&(u=o.currentTime+t/n),F.start(u),u+=q.duration}}catch(w){console.log(w)}}const I=()=>{if(c){for(;s.length>0&&u<o.currentTime+.1;)j();_=requestAnimationFrame(I)}};function C(){c=!1,_!==null&&(cancelAnimationFrame(_),_=null),s.length=0}const O=async w=>{L(w)},x=async w=>{O(w)};return{call:y,end:T,handleOfferResponse:R,handleOffer:S,sendOfferOk:N,handleMedia:O,userRemoter:f,testPlay:()=>{for(let w=0;w<sN.length;w++)L(sN[w]);c||(c=!0,I())},handleCallAnswer:w=>{var V;i.value=((V=w==null?void 0:w.data)==null?void 0:V.call_uuid)??""},callAnswer:async w=>{var V;if(w&&w!=i.value)throw new Error("This call isn’t yours");await Sz({call_uuid:i.value,clientId:((V=rt.value)==null?void 0:V.tenant_id)??""})},startPeerConnection:A,startIncomingCall:async w=>{try{if(w&&w!=i.value)throw new Error("This call isn’t yours");if(p=new pz(w,x),await(p==null?void 0:p.init()),c)return;c=!0,o||(o=e()),o.state==="suspended"&&await o.resume(),u=o.currentTime,I()}catch(V){throw T(),new Error(V)}},uuid:i}}const Rz={},Mz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nz(e,n){return h.openBlock(),h.createElementBlock("svg",Mz,n[0]||(n[0]=[h.createElementVNode("path",{d:"M3 6.5C3 14.5081 9.49187 21 17.5 21C18.166 21 18.8216 20.9551 19.4637 20.8682C20.3747 20.7448 21 19.9292 21 19.01V16.4415C21 15.5807 20.4491 14.8164 19.6325 14.5442L16.4841 13.4947C15.6836 13.2279 14.8252 13.699 14.6206 14.5177C14.3475 15.6102 12.987 15.987 12.1907 15.1907L8.80926 11.8093C8.01301 11.013 8.38984 9.65254 9.48229 9.37943C10.301 9.17476 10.7721 8.31644 10.5053 7.51586L9.45585 4.36754C9.18362 3.55086 8.41934 3 7.55848 3H4.99004C4.0708 3 3.25518 3.62533 3.13185 4.53627C3.0449 5.17845 3 5.83398 3 6.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M15 3L21 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M21 3L15 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Oz=It(Rz,[["render",Nz]]),xz={class:"relative w-full h-full"},Pz={class:"edit-scrollbar grow overflow-auto w-full min-w-full drawer-content"},wz=It(h.defineComponent({__name:"DrawerBaseCustom",props:{showTitle:{type:Boolean,default:!0},position:{default:"right"},width:{default:550},responsive:{},disabledClose:{type:Boolean}},emits:["update:modelValue","afterClose"],setup(e,{expose:n,emit:t}){const i=e,o=t,r=h.ref(!1),s=h.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}}),u=()=>{r.value=!0},l=async()=>{await o("afterClose"),r.value=!1};return n({close:l,open:u}),(d,c)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["absolute top-0 bottom-0 right-0 left-0 z-[1500] drawer",r.value?"opacity-1":"pointer-events-none opacity-0 delay-300"])},[d.disabledClose?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",{key:0,class:"absolute w-full h-full z-[1500]",onClick:l,onTouchstart:h.withModifiers(l,["prevent"])},null,32)),h.createElementVNode("div",xz,[h.createElementVNode("div",{class:"duration-300 ease-out absolute top-0 bg-white flex flex-col drawer-box",style:h.normalizeStyle(s.value)},[h.createElementVNode("div",Pz,[h.renderSlot(d.$slots,"content",{},()=>[c[0]||(c[0]=h.createElementVNode("div",{class:"flex p-4 content"},[h.createElementVNode("p")],-1))],!0)])],4)])],2))}}),[["__scopeId","data-v-ca098128"]]),Dz=(e,n)=>{let t=e.replace(/\D/g,"");return t!=null&&t.startsWith(n)?t.slice(n.length):t},kz={},Lz={width:"32",height:"32",viewBox:"0 0 24 24",id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg"};function Uz(e,n){return h.openBlock(),h.createElementBlock("svg",Lz,n[0]||(n[0]=[h.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 Bz=It(kz,[["render",Uz],["__scopeId","data-v-e06799fb"]]),jz={},Vz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fz(e,n){return h.openBlock(),h.createElementBlock("svg",Vz,n[0]||(n[0]=[h.createElementVNode("g",{id:"Menu / Close_MD"},[h.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 qz=It(jz,[["render",Fz]]),it={CONNECTING:"Connecting...",CALLING:"calling",RINGING:"ringing",CONNECT_FAILED:"failed",CALL_START:"in-progress",CALL_END:"completed",NO_ANSWER:"no-answer"};function Gz(e){var n={debug:"ALL",permOnClick:!0,deviceParams:{micEnabled:!0,audioConstraints:{audio:!0,video:!1}}},t=null;let i="",o=null,r=null;const s=async y=>{var T,A,S,N,R,L,j,I;try{t||(t=new window.Plivo(n)),(A=(T=t==null?void 0:t.client)==null?void 0:T.on)==null||A.call(T,"onCallAnswered",O=>{d(O)}),(N=(S=t==null?void 0:t.client)==null?void 0:S.on)==null||N.call(S,"onCallTerminated",(O,x)=>c(O,x)),t.client.on("onCallFailed",(O,x)=>{E(O,x)}),t.client.on("onCalling",O=>console.log("onCallFailed",O)),(L=(R=t==null?void 0:t.client)==null?void 0:R.on)==null||L.call(R,"onIncomingCall",(O,x,P)=>{u(P)}),t.client.on("onCallRemoteRinging",O=>l(O)),await((j=t==null?void 0:t.client)==null?void 0:j.login("webcall003079673454891827","123456abcA!"));const C=document.getElementById("go-chat-remote-audio");C&&((I=t==null?void 0:t.client)==null||I.setAudioElement(C)),console.log("Registered with token")}catch(C){console.log("Login error: "+C)}},u=y=>{const T={phone:_(y.src)};console.log(y),e(it.RINGING,T),i=y==null?void 0:y.callUUID},l=y=>{i=y.callUUID,e(it.CALLING),o==null||o()},d=y=>{y.callUUID==i&&(o==null||o(),e(it.CALL_START))},c=(y,T)=>{i===T.callUUID&&(e(it.CALL_END,{message:y==null?void 0:y.reason}),i="")},_=(y,T="1")=>{let A=y.replace(/[^0-9]/g,"");return A!=null&&A.startsWith(T)?A.slice(T.toString().length):A},f=(y=3e3)=>new Promise((T,A)=>{o=null;const S=setTimeout(()=>{A("Time out error!"),o=null,r=null},y);o=()=>{T(!0),o=null,clearTimeout(S)},r=N=>{A(N),r=null,clearTimeout(S)}}),p=async()=>{var y,T;(T=(y=t==null?void 0:t.client)==null?void 0:y.answer)==null||T.call(y,i),await f(3e3)},a=()=>{var y,T;(T=(y=t==null?void 0:t.client)==null?void 0:y.reject)==null||T.call(y,i)},v=y=>{var T,A,S,N,R;(T=t==null?void 0:t.client)==null||T.mute(),y?(S=(A=t==null?void 0:t.client)==null?void 0:A.mute)==null||S.call(A):(R=(N=t==null?void 0:t.client)==null?void 0:N.unmute)==null||R.call(N)},m=async y=>{t.client.call("+"+y,{number_phone:y}),await f(5e3)},g=y=>{var T,A,S,N;y==it.RINGING?(A=(T=t==null?void 0:t.client)==null?void 0:T.reject)==null||A.call(T,i):(y==it.CALL_START||y==it.CALLING)&&((N=(S=t==null?void 0:t.client)==null?void 0:S.hangup)==null||N.call(S))},E=(y,T)=>{r&&(r==null||r(y)),e(it.CALL_END,{message:y})};return{plivoLogin:s,plivoCallAnswer:p,plivoCallReject:a,plivoCall:m,plivoEndCall:g,plivoCallSwishMute:v}}const Hz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yz=h.defineComponent({__name:"IconMic",props:{mute:{type:Boolean,default:!1}},setup(e){return(n,t)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.withDirectives((h.openBlock(),h.createElementBlock("svg",Hz,t[0]||(t[0]=[h.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)),[[h.vShow,e.mute]]),h.withDirectives((h.openBlock(),h.createElementBlock("svg",zz,t[1]||(t[1]=[h.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),h.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),h.createElementVNode("line",{x1:"12",y1:"18",x2:"12",y2:"20",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.createElementVNode("line",{x1:"10",y1:"21",x2:"14",y2:"21",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),512)),[[h.vShow,!e.mute]])],64))}}),$z={class:"flex flex-col items-center justify-center h-full bg-chat-haze-300 text-white relative"},Kz={class:"h-40 w-40 rounded-full overflow-hidden mb-4 border-4 border-gray-700 flex-center"},Wz={class:"text-center"},Qz={class:"text-2xl font-semibold"},Jz={class:"text-gray-400 mt-1"},Xz={class:"flex items-center justify-center gap-8 mt-10"},Zz=["href"],eY={class:"absolute bottom-6 text-gray-500 text-sm"},lN=h.defineComponent({__name:"Calling",props:{responsive:{}},emits:["userCalling"],setup(e,{expose:n,emit:t}){const{call:i,end:o,handleMedia:r,startIncomingCall:s,handleCallAnswer:u,callAnswer:l,uuid:d,startPeerConnection:c}=Cz(),_=(Y,K)=>{Y==it.RINGING?(q((K==null?void 0:K.phone)??""),T.value=it.RINGING,H()):Y==it.CONNECT_FAILED||Y==it.NO_ANSWER?(U(),T.value=Y):Y==it.CALL_END?(R.value=(K==null?void 0:K.message)??"",U(),T.value=Y):Y==it.CALL_START&&(T.value=Y,P())},{plivoLogin:f,plivoCallAnswer:p,plivoCall:a,plivoEndCall:v,plivoCallSwishMute:m}=Gz(_),g=t,E=h.computed(()=>({[it.CONNECTING]:"Connecting...",[it.CALLING]:"Calling...",[it.RINGING]:"Ringing...",[it.CONNECT_FAILED]:R.value||"Connect Error",[it.CALL_START]:"",[it.CALL_END]:R.value||"Call Ended",[it.NO_ANSWER]:"No Answer"})),y=h.computed(()=>E.value[T.value]??""),T=h.ref(it.CONNECTING),A=h.ref("00:00"),S=h.ref(!1),N=h.ref(!1),R=h.ref(""),L=h.ref(""),j=h.ref(null),I=h.ref(null),C=h.ref(!1);let O=null,x="call";h.onMounted(async()=>{await f("")}),h.onUnmounted(()=>{fz("call-message"),O&&clearInterval(O),R.value=""});function P(){let Y=0;O=setInterval(()=>{Y++;const K=String(Math.floor(Y/60)).padStart(2,"0"),X=String(Y%60).padStart(2,"0");A.value=`${K}:${X}`},1e3)}function U(Y){var K;v(T.value),T.value=it.CALL_END,d.value,clearInterval(O),N.value=!1,Y!=null&&Y.closeModal&&(S.value=!1,(K=j.value)==null||K.close()),C.value=!1,A.value="00:00",O&&clearInterval(O)}const H=()=>{var Y;S.value=!0,N.value=!0,(Y=j.value)==null||Y.open()},B=()=>{m(!C.value),C.value=!C.value},w=async Y=>{try{T.value=it.CONNECTING,I.value=Y,H(),x="call",await a(Y.phone),T.value=it.CALLING}catch(K){U(),console.log(K),R.value=(K==null?void 0:K.message)||JSON.stringify(K),T.value=it.CONNECT_FAILED}},V=async()=>{try{await p()}catch(Y){U(),T.value=it.CONNECT_FAILED,R.value=(Y==null?void 0:Y.message)||JSON.stringify(Y)}},q=async Y=>{var Q;let K=null;try{I.value=null;let Z={phone:Dz(Y,"1"),client_id:((Q=rt.value)==null?void 0:Q.tenant_id)??""};K=await cV(Z)}catch(Z){console.log(Z)}const X={username:(K==null?void 0:K.full_name)||"Unknown Name",phone:"1"+(K==null?void 0:K.phone)};I.value=X,g("userCalling",I.value)},F=async()=>{Az(L.value)},$=()=>{L.value=""};return n({startCall:w,endCall:U,userRemoter:I,callStatus:T,answer:V,label:y}),(Y,K)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(wz,{ref_key:"drawerVisibleRef",ref:j,width:500,"disabled-close":N.value,responsive:Y.responsive,onAfterClose:$},{content:h.withCtx(()=>{var X,Q,Z,b,M;return[h.createElementVNode("div",$z,[h.createElementVNode("div",Kz,[h.createVNode(zo,{class:"",src:((X=I.value)==null?void 0:X.avatar)??"",id:((Q=I.value)==null?void 0:Q.id)??"",color:(Z=I.value)==null?void 0:Z.color,name:(b=I.value)==null?void 0:b.username,size:"xxl"},null,8,["src","id","color","name"])]),h.createElementVNode("div",Wz,[h.createElementVNode("h2",Qz,h.toDisplayString((M=I.value)==null?void 0:M.username),1),h.createElementVNode("p",Jz,h.toDisplayString(E.value[T.value]),1)]),h.createElementVNode("div",Xz,[T.value==h.unref(it).RINGING?(h.openBlock(),h.createElementBlock("button",{key:0,onClick:V,class:"w-16 h-16 bg-[#22C55E] hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(Tz)])):h.createCommentVNode("",!0),L.value&&T.value==h.unref(it).CALL_END?(h.openBlock(),h.createElementBlock("button",{key:1,href:L.value,download:"recording.mp3",onClick:F,class:"w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(Bz)],8,Zz)):h.createCommentVNode("",!0),T.value==h.unref(it).CALL_START?(h.openBlock(),h.createElementBlock("button",{key:2,onClick:K[0]||(K[0]=k=>B()),class:"w-16 h-16 bg-white hover:bg-green-600 text-black rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(Yz,{mute:C.value},null,8,["mute"])])):h.createCommentVNode("",!0),T.value==h.unref(it).CALL_END?(h.openBlock(),h.createElementBlock("button",{key:3,onClick:K[1]||(K[1]=k=>U({closeModal:!0})),class:"w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(qz)])):h.createCommentVNode("",!0),T.value!=h.unref(it).CALL_END?(h.openBlock(),h.createElementBlock("button",{key:4,onClick:K[2]||(K[2]=k=>U()),class:"w-16 h-16 rounded-full bg-[#EF4444] hover:bg-red-700 flex items-center justify-center"},[h.createVNode(Oz)])):h.createCommentVNode("",!0)]),h.createElementVNode("p",eY,"Duration: "+h.toDisplayString(A.value),1)])]}),_:1},8,["disabled-close","responsive"]),K[3]||(K[3]=h.createElementVNode("audio",{id:"go-chat-remote-audio",autoplay:""},null,-1))],64))}}),tY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAInSURBVHgBzVVNTttQEJ55xgltF303qDlBc4T0BGELqBJZNAh1kWRREGKBs0ARdNGyqCLoIpFayJYj+AjpCXBv4G5owPEbZmJhQf6I5SDxSc9+42fPN5558z2AZwY+9UKz1XaMyWmljB5fHfh722Uf0hA0W7+KaskuIZlVNh2YL8weEPaiqN8YJXxE8PVn94CIXAAKeMnj+R804JMygTEQPHxXKdBolCYFDiK+52+K/I3mufvl01pjjODeuQE46ds3rlsuB5ACzVbXsSxTY5dVIqjvbq1/Twgkz5aVv2Kzs1NZK0MGHJ1edBChdG3frEiQSh5akCvKPQzNCWTEAEki169u85tiDwmYocDXYP/zRg8yYr8iPiggjDdITAD4ji8+LAzIqcG3CQHnTHM1UhV1pnvkYJGchGAajs8urmTMa0/CTAIBpbRHsTRrcaeyvpLGnoThH3CX/uVQHFgctInwX0KAKNIAGhYEVgQHFPkJAT8QQx/+OC9ARhyetQuiSQTUSwhyubAjzWHbqgoZYcNy7CNSntwSsTs6/V1DVN9EjybJ7lNw2239ZpBnwYQaZ6Sxu7XhPiKISc5dltsDiFe88Jbq9/Ih54RlWVXACbWKN4gznD5Q0jGC2FHXUYqYiEqcwctru19/HS7zn9GmpJEDGNMrqaGcHf851aMyP/XI5A6VHrrkIYV3RiObF1MbjZk9Zljl4Zso+rC3/dGDReOYt60UD14y7gClAO8fcj4wXgAAAABJRU5ErkJggg==",nY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFASURBVHgBtZXPUYNAFMa/h+N4lJMz5iLpICWQCkKswBasINCBR49WoOlASsAKWMc/XPEYNfvcBRQQQ9A8fzMM7Czsj33sfgD/DG29I0g9YN8F2O12vissxwq/EgQPPrA3A1FgBvUwjATECfRr9F3YFpxmCzCH2AWiENfHUVcgMfgnjHMsRxe1IMg8M8UUcuTg1diUK3fK9tqHLGZBHJzZi0qACcTRXkPgnEAahw5rAZELaZi8WrCB9PKoOIa2f6JXIEG5TOfZrZmTD1li3Iym5QxY30Maxos9VSXiHOJo1RA4CvIkDcHqCnZ7i/IW1wKTGeY7RJCC+Su223EdPIVm0y2wC40k7QoKiUlWaCuaoQitFraMSecZYgVNd0WpbTWaXdjE/Jn73mwofTs5rs4KvJ7+ZfDtBI8T89OXD0JJPgAwJmyx5BPTjwAAAABJRU5ErkJggg==",iY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKdSURBVHgBtVVNbtpAFH7jMZh0xRHICaAnKJyg2SaoIiyaCHWRsGgiVphFhaAbsqgQYWFQBcmu9ASlJwg3CL2BuwnFMDN9D0zq2KFYIfmkke3n9/83AC8MFpax/qWXgggr07sQ02KpkB+HkQtloNq0EpwbPwBUHEVsJMXvItNdM5+3N8lqEAKcx8jzhBDaayFYBg1BbGaYYWQ3GiDvUeEhet4pFfbHdJSCCxTMmZYV39qA6z3mHSorWjTqNCiKHSd6upUBv/crenGZ+y5j7GTJsx6694NC3nGMtAYyoRhLYgfsKVA25r3iF8R6NDiXOSp+rX090OT811yq0TQ2H3mLz1ae6rphYW7T/1QoGz0cKUcVzz5kR/BohFcop1BOpVDVfT2U0gaT6CRPhhYRUJ6RKY2nIqUc+r1YBzdtmVX0xh89pWksxZgqu1126qaI+htG58dZE54I16Ehnfpl/0RjkCT6oshCqO/4SH1uX5VhS7g6EkKp7r2BUiHbofTgMbcxQrKkg3SVjrIdoj1YFbVWz8TClvGYH9/vV56q3JvqwC5aGRFCZEqFd0MIgXqzdwicWX7lhMCgLRmUzbmeg7DggG0K9mNNsmaSWVyC+g3PgICBavNremFCLVouHATQIMY/0Z3hgx6wiINCTynZg+ldrRF6Pz8+GHj/RWLOYDYzLF1n9H/03wgY094Qk3e51Vr9vVcz44Yx+EYHB+m2fomFdeEuvzE2R3JjBKggjjtpAe+OQvpwPhd5onPOLeS0aq3rt1JOFtcn/h/jYkxsNCCl+kltWm/3b3Dlp7D1bKVY8ezooOFh261ia+I2LeM2vUXeITmBGyEwO4EU0WWCzF1UPqa+vos4u5jzhp+Ppp+uTwlwQcNEvNOYE+B7cfwFWxpSlELLvWMAAAAASUVORK5CYII=",oY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFOSURBVHgB3ZTRTcMwEIb/SyqxQ0HImYAyAekEhElgg5YNkgkKE+AN6AaUCYgEFa+8VqI5bJeWNHaCA36BX0pk3/nuOzvnAH9d5L0yexUgvjdjXo0hk9InLIKvCDP1Fuahg5lvmB8ge05V2WnNkm5soQA0mNi2eOIR6QGwq9/KaxfdAPNh4/bz1r7sSXRkaHSRqSg+RxQJMI9U5Z3BNS1AUYlq/QisF5DH0gZcLB/UdIQwmuNuONaD2hGRQDjtCv0CcHWNUGIubIA8ypXj9xCdQx5Ot1P7V5EtpyDy6vHvkrsBBvKSq664RK/kVaFO4appbrkHcY7+unEZWwDvAoHUtoMf3Ico7QHAGXrn5xOXeeBcTHDtoASj+PTrBhB7XqYULi7cEvvBqv14dQo5zM2jx/adEf4A3XIbzVWyxPS2TN52fj3WNqZEgW4bMf9MH0h7ZyKP51Q2AAAAAElFTkSuQmCC",rY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHPSURBVHgB7VVNTsJQEJ7XWohxU0/g8wRyhHICdasxoQsXxIVuJCFu2BBi3bgxxLooiQGWhBPIEeAGvQF1o5HaN84jFCotqDT+LPwWbd/MdL7pe9NvAH4Tlt08vbxtna3ql1CWORlje0yB3VX945h5Q8Vx9I2RVkDGdshtkEmnqH7iy4g5JCcypcEwGATBqFcumu5CAuummWMaPNBLOgB6MLlTpYkESASRVBQLru/j/sXJYT9GUKs7XFWzlBxABIFZLh71ru5a43Xp+CCfRBD1y+JAYx35xU/ay3bFND0ZMz0DFTIG3fgrVSCTS5sQoosCurAAUX+Jqg6oMEmwPsoWYsHUEdeW3RpCSlCeoWW3nXAd6SK2RRcXUoLOyxUCNsP12swBOiJwi/YV0gCRKyp4MYKJl06dQRrg3Po9AbXj+YKO+SzCzgqhwDfjn+APEdA/4FGP6ZAeugjYYxKBNHJICVJYDgq6MQKSLimxeq1+b8CKqNpOTso2AvZjBJmM35Dar6qqU5XS+0XIwjTIdlDqWaD0Qnts4Ew0ndOc8miqufTsfZBbp8nGp0PKh3wpaeDMKmlz2i6DqSxHn7clRXBZ9nFzyGIQB8+0C+Gg+TG8AfnSxY/CrDxpAAAAAElFTkSuQmCC",sY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAE0SURBVHgB7ZUxTsMwFIb/F6haBiBILDCFE8DcqZwAIw4ANyjdEJfgCnABGnGCHKE3SLoACyhILC3FDzuSq7SYCIWH2qHfEP+x4/yJn+UfWChnz12ox8va44agahCaFQgntccN5O1VaQQ0OqCga+5CMN/5Z9N50fKkB3wOEB9k1QYqDUGtvpnRQR2Ib6HHPWOUu665JWrd1H65hekC1OzPeE6VeorMF6SQgBDhfn9oZekP9BGk0PrYyZIBRRAjCJ1ad+LheudwcyOABM0GRe14zmB3i95GE4jw+s7bTk8N2lcvudnXEIF56KTMmlSwMlgqA8ohBvkOOy1owJnHYC2BGOPBd4N4LzPXBH/FZkIpeGaLzKPTH9PrdyRF4JT9vI/ZbCiObzIth6jEFtTW7yPxRea/8wVMu1qdJpPWlgAAAABJRU5ErkJggg==",lY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOASURBVHgBvVVNTttQEJ7xX0pZNDeoOUHDCWpuQHcFVIEXUKEuEhbQoi5iFggRKgGLChEqBVQRVlW5QcwJSk+Ae4N0AyTx8+uM7RccExRUqR3Jij2Z975533wzD+AfG44K2Px8WrIM6UjEF4Box04JbZTRRRj1zteX3eCvALYOvjqGoVelBCd1BYgQpO9F8pfSHfxeV658fDd3+WiAnaPmLm1QkbQpSHlyY3X3PNdtDyZwZgNEjq5jlT5tRPRWF2c2RgLU6mcN4mAhAti/NTtefuNhtn146hEAAcnjtaU590GAnaMzokR69Gy8fzvnKb/XaBTHwydl8pdoRZFPJUTXz/KvQBC1vdXF1yv3AGpUTDDxR37zrYOGreuFVkIDMM/ttC6BEJ2pLEitfrpHW5aFEOR/47NP6yNZuMucZzdnM4xCg/zAi1YXZyfpmRICJ4iOIgE3srGm2eW1ga7rVeXTVJacVQRyoEhZv8qIbX15JiD/Pr06n758e678K1QvYuCE/SzvPoCmmdNxhNB8GDDDTvxRADmLoiiO7fWuJ7J+ixSXnBydPgAV5iX9XHJmOYAgSUBz8gA6aHY2JnsKiHuGGvMOgJSBcE+ODEgq8Cm4zHQpPzchsP6pye4nFe8XAMo43oARFgp0dV22qKBXtaOmTy6SKZRYEFGI7qj18QmiCH7RIntYAGdIqiHlSDfWtISApXxjdiaHZZ9aMRL4uw9AEKxvmxsqG8XfiRpuQdfhGcs1bjTAmM6YqpylyishSr8PEGIv/hjrWhUVuH3YnB7vWVcmNR/rXUqcBG4wli3K9tNegfx6q1ZvXilJsulgOQkreJ7kk9pOvdmiDO1rOnrhFriJWjKh5IKKNk9ZvaLf71xYCEnrOjaYKhLAPIfxOp5bDEgxwRo1ZIYiLqbgJrPHw7GqYTzhRTbxOGVZHTqVbGsaliEBtJWCuOupw7nQNp+eZxm/8/hW+2p3xeROlftSRhUeeHS4Yy5i0p1AfumkoTY/IunYeB39f8KDTg3K7N3QB2CjUVvh4Jg7xH5fqO5UxhJdX5o75ncWAsUmbNLa/CwbeuHczXe+weQGj2ZNK3hcC/5fgHQ7Zvc8HeELMZ10f3xYmq3k93rwytys012MuKuuTKQ6SEAl4yClirvWD0MxMAwfBaCMr0ZNE9M8r+KRAkyF5Gb7iSH6aw/cxf/N/gA3c81+EARp1gAAAABJRU5ErkJggg==",uY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMESURBVHgBvVVNTxNhEH5mi5SAhz2RgBjbeNSEkhivLVfiYds/QDhzKPyCll9AORoTiX8AS+Ld9Wa8CAfPXVTaxFONH8hH93Vmdtv9KpaY6CR72Nn3nXme+XgW+MdGE084n0uAVYFFyzAoBLeoD99/A5y30S56f5fA+VQBTTUAUwk9XviI2fyUwhAuzGAb7aWjmyeodXcZ7ZYGNOYFcNFipP0kgF4BGDAIi0EwM6ImDhZ2MNFqvX1Uu4ZL04LTsXETc06beqd2uo8/Mqj1Goy4yc8O2neaUQBOZM3U+XiJv9lcEmZ16SbqL0mIGhyxhYPF7WwCaSZZ77PBuRRkXgPaYKmzlKoCLd/5ajIJsyarzgDYf9cVlxVxye3qpXjwAEJAWy69XFzhZxWGipBGUz5VksumxqBcY+ixRihlWoyfbFLcHyJSay9I8/eUSa17L/LzIOhQsF/He8TAOCECN4noqhB+95AxPzjrD4pJP09cgL0SS4AypL6ZpZny4oeTRoUQRPKOsiAPllmOEhDJOPYzMaQUgMvf6zxJhZFfl1Dn3x27ySQDEACYwiQztKFTRPkOqj2XHcMtlinamHQ9YGD8EyDUmXEsDPHk+BzMhOh4lM35yvU6JLuCr1EC0JEmSG+uvPM0dJ7Nr2+u3V7XtTFkb67NlU+eLtW1VGnTyVOGrryGJZKJkFzToj/N4OBHh8VO5tw+fHuG778MlAHbo/vTqD//xn3IgSWCGfnVSOxYnzQWKy3im1ztBtsq1DFjx7ZXbevJHFqvfqBUvAV7luB+uIjj9sKS9TlOR99lIRHfZDPY0YBWvsHedaR6slwMyB51LlF+mEfKCspetExB+iMtihLIphp/T2VaBC9e1sczOO5cJd7tWSuZQoRuJJTRvyF5qr20Fa56wqQcQwaF+RwO352h/9NHxuRuSsvG/3CG0huzyoNprb8kkF54Xwap4MxeAKbMGptAUBh/BeGoDVlIcOlBKrgbyHM2+PUMEmxUUR2GUub+BHtCLH4+Het4X/Mv/m/2GwzhUiYSevSbAAAAAElFTkSuQmCC",dY={class:"bg-white rounded-t-3xl shadow-lg pb-2 flex grid grid-cols-4 h-[80px]"},cY=["disabled","onClick"],_Y=["src"],fY=["src"],pY=h.defineComponent({__name:"Footer",setup(e){const n=[{icon:tY,iconActive:nY,title:"Chat",value:Ke.CHAT_LIST,click:()=>{Ht.value!=Ke.CHAT_LIST&&Un(Ke.CHAT_LIST)}},{icon:iY,iconActive:oY,title:"Review",value:Ke.TENANT_ERROR,disabled:!0},{icon:rY,iconActive:sY,title:"Booking",value:Ke.TENANT_ERROR,disabled:!0},{icon:lY,iconActive:uY,title:"Go Admin",value:Ke.TENANT_ERROR,disabled:!0}];return(t,i)=>(h.openBlock(),h.createElementBlock("div",dY,[(h.openBlock(),h.createElementBlock(h.Fragment,null,h.renderList(n,o=>h.createElementVNode("button",{class:h.normalizeClass(["flex flex-col justify-center items-center text-blue-600",{"opacity-[0.6]":o.disabled}]),key:o.value,disabled:o.disabled,onClick:r=>{var s;return(s=o.click)==null?void 0:s.call(o)}},[h.withDirectives(h.createElementVNode("img",{src:o.icon},null,8,_Y),[[h.vShow,h.unref(Ht)!=o.value]]),h.withDirectives(h.createElementVNode("img",{src:o.iconActive},null,8,fY),[[h.vShow,h.unref(Ht)==o.value]]),h.createElementVNode("span",{class:h.normalizeClass(["text-sm text-chat-haze-400 font-medium mt-1",{"text-chat-primary":h.unref(Ht)==o.value}])},h.toDisplayString(o.title),3)],10,cY)),64))]))}}),aY={key:0,class:"m-auto flex-center sc-full"},vY={key:2,class:"relative flex flex-col mx-auto w-full max-w-[350px] h-full bg-[#F9FAFC] overflow-hidden chat-mobile pt-4"},mY={key:0,class:"text-[#141B34] px-6 shrink-0"},hY={class:"text-xl font-semibold text-chat-haze-900 ml-3"},yY={class:"grow overflow-hidden"},gY={key:3,class:"flex gap-4 h-full relative"},EY={class:"chat-box-white grow flex flex-col h-full pt-6 overflow-hidden"},TY={key:0,class:"text-[#141B34] px-6"},SY={class:"text-xl font-semibold text-chat-haze-900 ml-3"},bY={class:"grow overflow-hidden"},IY=h.defineComponent({__name:"App",props:{token:{},id:{},domain:{},response:{default:"tablet"},isLib:{type:Boolean}},emits:["userCalling"],setup(e,{expose:n,emit:t}){const i=[{id:Ke.HOME,backFunc:null,backTitle:""},{id:Ke.CUSTOMER_DETAIL,backFunc:()=>{Un(Ke.HOME)},backTitle:""},{id:Ke.CUSTOMER_APPOINTMENT,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:Ke.CUSTOMER_CHECK_IN,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Checkins"}],o=h.computed(()=>[{id:Ke.CHAT_LIST,backFunc:r.isLib?void 0:()=>{_R()},backTitle:"ChatBiz"},{id:Ke.HOME,backFunc:()=>{Un(Ke.CHAT_LIST)},backTitle:""},{id:Ke.CUSTOMER_DETAIL,backFunc:()=>{Un(Ke.HOME)},backTitle:""},{id:Ke.CUSTOMER_APPOINTMENT,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:Ke.CUSTOMER_CHECK_IN,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Checkins"}]),r=e,s=t,{initPage:u}=az();h.onMounted(()=>{S(),window.addEventListener("resize",S)}),h.onUnmounted(()=>{window.removeEventListener("resize",S)});const l=h.computed(()=>d.value==="mobile"?o.value.find(N=>N.id==Ht.value):i.find(N=>N.id==Ht.value)),d=h.computed(()=>r.response=="mobile"?r.response:p.value),c=h.computed(()=>{var N;return((N=y.value)==null?void 0:N.listConversations)??[]}),_=h.computed(()=>{var N;return((N=c.value)==null?void 0:N.reduce((R,L)=>R+((L==null?void 0:L.unread_count)??0),0))??0}),f=h.computed(()=>{var N;return((N=v.value)==null?void 0:N.callStatus)??null}),p=h.ref("tablet"),a=h.ref(),v=h.ref(null),m=h.ref(null),g=h.ref(null),E=h.ref(null),y=h.ref(null),T=async N=>{var R,L;(m.value!=(N==null?void 0:N.receiver_id)||d.value==="mobile")&&(Ht.value!=Ke.HOME&&Un(Ke.HOME),m.value=N==null?void 0:N.receiver_id,await h.nextTick(),(R=y.value)==null||R.handleReadMessage(),(L=E.value)==null||L.getData(N))},A=N=>{var R;(R=v.value)==null||R.startCall(N)},S=Ur(()=>{var R;if(!a.value)return;(((R=a.value)==null?void 0:R.offsetWidth)??0)>=640?p.value!="tablet"&&(p.value="tablet"):p.value!="mobile"&&(Ht.value==Ke.HOME&&(Ht.value=Ke.CHAT_LIST),p.value="mobile")},50);return u({props:r,response:r.response}),n({unreadCount:_,callStatus:f,getUserRemote:()=>{var N;return((N=v.value)==null?void 0:N.userRemoter)??null},startCall:async()=>{var N;await((N=v.value)==null?void 0:N.answer())},endCall:()=>{var N;return(N=v.value)==null?void 0:N.endCall()}}),(N,R)=>{var L,j;return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["go-chat-main max-w-full",{"p-8":!N.isLib}]),id:"appChatMain",ref_key:"appChatRef",ref:a},[h.unref(D_)?h.unref(Ht)==h.unref(Ke).TENANT_ERROR?(h.openBlock(),h.createBlock(hz,{key:1})):d.value=="mobile"?(h.openBlock(),h.createElementBlock("div",vY,[h.createVNode(lN,{ref_key:"callingRef",ref:v,onUserCalling:R[0]||(R[0]=I=>s("userCalling",I)),responsive:d.value},null,8,["responsive"]),(L=l.value)!=null&&L.backFunc?(h.openBlock(),h.createElementBlock("div",mY,[h.createElementVNode("button",{class:"flex items-center",onClick:R[1]||(R[1]=I=>l.value.backFunc())},[h.createVNode(JM),h.createElementVNode("span",hY,h.toDisplayString(l.value.backTitle??""),1)])])):h.createCommentVNode("",!0),h.createElementVNode("div",yY,[h.withDirectives(h.createVNode(mR,{ref_key:"chatListRef",ref:y,class:"w-full max-w-[500px] !bg-[#F9FAFC]",responsive:d.value,onSelectReceiver:T,"receiver-id":m.value,"onUpdate:receiverId":R[2]||(R[2]=I=>m.value=I)},null,8,["responsive","receiver-id"]),[[h.vShow,h.unref(Ht)==h.unref(Ke).CHAT_LIST]]),h.withDirectives(h.createVNode(QM,{ref_key:"homeComponentRef",ref:E,"receiver-id":m.value,class:"h-full pt-4",onCall:A,responsive:d.value},null,8,["receiver-id","responsive"]),[[h.vShow,h.unref(Ht)==h.unref(Ke).HOME]]),h.unref(Ht)==h.unref(Ke).CUSTOMER_DETAIL?(h.openBlock(),h.createBlock(ZM,{key:0,ref_key:"customerDetailRef",ref:g,"receiver-id":m.value,class:"h-full",responsive:d.value},null,8,["receiver-id","responsive"])):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_CHECK_IN?(h.openBlock(),h.createBlock(iN,{key:1,class:"h-full"})):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_APPOINTMENT?(h.openBlock(),h.createBlock(oN,{key:2,class:"h-full"})):h.createCommentVNode("",!0)]),h.unref(Ht)!=h.unref(Ke).HOME?(h.openBlock(),h.createBlock(pY,{key:1,class:"shrink-0"})):h.createCommentVNode("",!0)])):(h.openBlock(),h.createElementBlock("div",gY,[h.createVNode(mR,{ref_key:"chatListRef",ref:y,class:"w-[38%] max-w-[500px] min-w-[450px]",responsive:d.value,onSelectReceiver:T,"receiver-id":m.value,"onUpdate:receiverId":R[3]||(R[3]=I=>m.value=I)},null,8,["responsive","receiver-id"]),h.createElementVNode("div",EY,[(j=l.value)!=null&&j.backFunc?(h.openBlock(),h.createElementBlock("div",TY,[h.createElementVNode("button",{class:"flex items-center",onClick:R[4]||(R[4]=I=>l.value.backFunc())},[h.createVNode(JM),h.createElementVNode("span",SY,h.toDisplayString(l.value.backTitle??""),1)])])):h.createCommentVNode("",!0),h.createElementVNode("div",bY,[h.withDirectives(h.createVNode(QM,{ref_key:"homeComponentRef",ref:E,"receiver-id":m.value,class:"h-full",onCall:A,responsive:d.value},null,8,["receiver-id","responsive"]),[[h.vShow,h.unref(Ht)==h.unref(Ke).HOME]]),h.unref(Ht)==h.unref(Ke).CUSTOMER_DETAIL?(h.openBlock(),h.createBlock(ZM,{key:0,ref_key:"customerDetailRef",ref:g,"receiver-id":m.value,class:"h-full",responsive:d.value},null,8,["receiver-id","responsive"])):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_CHECK_IN?(h.openBlock(),h.createBlock(iN,{key:1,class:"h-full"})):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_APPOINTMENT?(h.openBlock(),h.createBlock(oN,{key:2,class:"h-full"})):h.createCommentVNode("",!0)]),h.createVNode(lN,{ref_key:"callingRef",ref:v,responsive:d.value,onUserCalling:R[5]||(R[5]=I=>s("userCalling",I))},null,8,["responsive"])])])):(h.openBlock(),h.createElementBlock("div",aY,[h.createVNode(Sp)]))],2)}}});xn.PLIVO_CALL_STATUS=it,xn.default=IY,Object.defineProperties(xn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
15
|
+
`))}return()=>o.value||i.value||s.value?h.h(n.default({present:s.value})[0],{ref:c=>{const _=bs(c);return typeof(_==null?void 0:_.hasAttribute)>"u"||(_!=null&&_.hasAttribute("data-reka-popper-content-wrapper")?r.value=_.firstElementChild:r.value=_),_}}):null}});const I8=h.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:n,slots:t}){return()=>{var l;if(!t.default)return null;const i=e_(t.default()),o=i.findIndex(d=>d.type!==h.Comment);if(o===-1)return i;const r=i[o];(l=r.props)==null||delete l.ref;const s=r.props?h.mergeProps(n,r.props):n,u=h.cloneVNode({...r,props:{}},s);return i.length===1?u:(i[o]=u,i)}}}),A8=["area","img","input"],Ui=h.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:n,slots:t}){const i=e.asChild?"template":e.as;return typeof i=="string"&&A8.includes(i)?()=>h.h(i,n):i!=="template"?()=>h.h(e.as,n,{default:t.default}):()=>h.h(I8,n,{default:t.default})}}),[lM,C8]=Ss("CollapsibleRoot");var R8=h.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:n,emit:t}){const i=e,r=tM(i,"open",t,{defaultValue:i.defaultOpen,passive:i.open===void 0}),{disabled:s,unmountOnHide:u}=h.toRefs(i);return C8({contentId:"",disabled:s,open:r,unmountOnHide:u,onOpenToggle:()=>{s.value||(r.value=!r.value)}}),n({open:r}),_i(),(l,d)=>(h.openBlock(),h.createBlock(h.unref(Ui),{as:l.as,"as-child":i.asChild,"data-state":h.unref(r)?"open":"closed","data-disabled":h.unref(s)?"":void 0},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default",{open:h.unref(r)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),M8=R8,N8=h.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:n}){const t=e,i=n,o=lM();o.contentId||(o.contentId=u_(void 0,"reka-collapsible-content"));const r=h.ref(),{forwardRef:s,currentElement:u}=_i(),l=h.ref(0),d=h.ref(0),c=h.computed(()=>o.open.value),_=h.ref(c.value),f=h.ref();h.watch(()=>{var a;return[c.value,(a=r.value)==null?void 0:a.present]},async()=>{await h.nextTick();const a=u.value;if(!a)return;f.value=f.value||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";const v=a.getBoundingClientRect();d.value=v.height,l.value=v.width,_.value||(a.style.transitionDuration=f.value.transitionDuration,a.style.animationName=f.value.animationName)},{immediate:!0});const p=h.computed(()=>_.value&&o.open.value);return h.onMounted(()=>{requestAnimationFrame(()=>{_.value=!1})}),i_(u,"beforematch",a=>{requestAnimationFrame(()=>{o.onOpenToggle(),i("contentFound")})}),(a,v)=>(h.openBlock(),h.createBlock(h.unref(sM),{ref_key:"presentRef",ref:r,present:a.forceMount||h.unref(o).open.value,"force-mount":!0},{default:h.withCtx(({present:m})=>{var g;return[h.createVNode(h.unref(Ui),h.mergeProps(a.$attrs,{id:h.unref(o).contentId,ref:h.unref(s),"as-child":t.asChild,as:a.as,hidden:m?void 0:h.unref(o).unmountOnHide.value?"":"until-found","data-state":p.value?void 0:h.unref(o).open.value?"open":"closed","data-disabled":(g=h.unref(o).disabled)!=null&&g.value?"":void 0,style:{"--reka-collapsible-content-height":`${d.value}px`,"--reka-collapsible-content-width":`${l.value}px`}}),{default:h.withCtx(()=>[!h.unref(o).unmountOnHide.value||m?h.renderSlot(a.$slots,"default",{key:0}):h.createCommentVNode("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]}),_:3},8,["present"]))}}),O8=N8,x8=h.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const n=e;_i();const t=lM();return(i,o)=>{var r,s;return h.openBlock(),h.createBlock(h.unref(Ui),{type:i.as==="button"?"button":void 0,as:i.as,"as-child":n.asChild,"aria-controls":h.unref(t).contentId,"aria-expanded":h.unref(t).open.value,"data-state":h.unref(t).open.value?"open":"closed","data-disabled":(r=h.unref(t).disabled)!=null&&r.value?"":void 0,disabled:(s=h.unref(t).disabled)==null?void 0:s.value,onClick:h.unref(t).onOpenToggle},{default:h.withCtx(()=>[h.renderSlot(i.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}}),P8=x8;const w8="dismissableLayer.pointerDownOutside",D8="dismissableLayer.focusOutside";function uM(e,n){const t=n.closest("[data-dismissable-layer]"),i=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(t&&(i===t||o.indexOf(i)<o.indexOf(t)))}function k8(e,n,t=!0){var s;const i=((s=n==null?void 0:n.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=h.ref(!1),r=h.ref(()=>{});return h.watchEffect(u=>{if(!Zi||!h.toValue(t))return;const l=async c=>{const _=c.target;if(!(!(n!=null&&n.value)||!_)){if(uM(n.value,_)){o.value=!1;return}if(c.target&&!o.value){let p=function(){JR(w8,e,f)};const f={originalEvent:c};c.pointerType==="touch"?(i.removeEventListener("click",r.value),r.value=p,i.addEventListener("click",r.value,{once:!0})):p()}else i.removeEventListener("click",r.value);o.value=!1}},d=window.setTimeout(()=>{i.addEventListener("pointerdown",l)},0);u(()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",l),i.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{h.toValue(t)&&(o.value=!0)}}}function L8(e,n,t=!0){var r;const i=((r=n==null?void 0:n.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=h.ref(!1);return h.watchEffect(s=>{if(!Zi||!h.toValue(t))return;const u=async l=>{if(!(n!=null&&n.value))return;await h.nextTick(),await h.nextTick();const d=l.target;!n.value||!d||uM(n.value,d)||l.target&&!o.value&&JR(D8,e,{originalEvent:l})};i.addEventListener("focusin",u),s(()=>i.removeEventListener("focusin",u))}),{onFocusCapture:()=>{h.toValue(t)&&(o.value=!0)},onBlurCapture:()=>{h.toValue(t)&&(o.value=!1)}}}const Bi=h.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var U8=h.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:n}){const t=e,i=n,{forwardRef:o,currentElement:r}=_i(),s=h.computed(()=>{var a;return((a=r.value)==null?void 0:a.ownerDocument)??globalThis.document}),u=h.computed(()=>Bi.layersRoot),l=h.computed(()=>r.value?Array.from(u.value).indexOf(r.value):-1),d=h.computed(()=>Bi.layersWithOutsidePointerEventsDisabled.size>0),c=h.computed(()=>{const a=Array.from(u.value),[v]=[...Bi.layersWithOutsidePointerEventsDisabled].slice(-1),m=a.indexOf(v);return l.value>=m}),_=k8(async a=>{const v=[...Bi.branches].some(m=>m==null?void 0:m.contains(a.target));!c.value||v||(i("pointerDownOutside",a),i("interactOutside",a),await h.nextTick(),a.defaultPrevented||i("dismiss"))},r),f=L8(a=>{[...Bi.branches].some(m=>m==null?void 0:m.contains(a.target))||(i("focusOutside",a),i("interactOutside",a),a.defaultPrevented||i("dismiss"))},r);s8("Escape",a=>{l.value===u.value.size-1&&(i("escapeKeyDown",a),a.defaultPrevented||i("dismiss"))});let p;return h.watchEffect(a=>{r.value&&(t.disableOutsidePointerEvents&&(Bi.layersWithOutsidePointerEventsDisabled.size===0&&(p=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),Bi.layersWithOutsidePointerEventsDisabled.add(r.value)),u.value.add(r.value),a(()=>{t.disableOutsidePointerEvents&&Bi.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=p)}))}),h.watchEffect(a=>{a(()=>{r.value&&(u.value.delete(r.value),Bi.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(a,v)=>(h.openBlock(),h.createBlock(h.unref(Ui),{ref:h.unref(o),"as-child":a.asChild,as:a.as,"data-dismissable-layer":"",style:h.normalizeStyle({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:h.unref(f).onFocusCapture,onBlurCapture:h.unref(f).onBlurCapture,onPointerdownCapture:h.unref(_).onPointerDownCapture},{default:h.withCtx(()=>[h.renderSlot(a.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),B8=U8;const j8=YF(()=>h.ref([]));function V8(){const e=j8();return{add(n){const t=e.value[0];n!==t&&(t==null||t.pause()),e.value=dM(e.value,n),e.value.unshift(n)},remove(n){var t;e.value=dM(e.value,n),(t=e.value[0])==null||t.resume()}}}function dM(e,n){const t=[...e],i=t.indexOf(n);return i!==-1&&t.splice(i,1),t}function F8(e){return e.filter(n=>n.tagName!=="A")}const d_="focusScope.autoFocusOnMount",c_="focusScope.autoFocusOnUnmount",cM={bubbles:!1,cancelable:!0};function q8(e,{select:n=!1}={}){const t=Cr();for(const i of e)if(eo(i,{select:n}),Cr()!==t)return!0}function G8(e){const n=_M(e),t=fM(n,e),i=fM(n.reverse(),e);return[t,i]}function _M(e){const n=[],t=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(;t.nextNode();)n.push(t.currentNode);return n}function fM(e,n){for(const t of e)if(!H8(t,{upTo:n}))return t}function H8(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function z8(e){return e instanceof HTMLInputElement&&"select"in e}function eo(e,{select:n=!1}={}){if(e&&e.focus){const t=Cr();e.focus({preventScroll:!0}),e!==t&&z8(e)&&n&&e.select()}}var Y8=h.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:n}){const t=e,i=n,{currentRef:o,currentElement:r}=_i(),s=h.ref(null),u=V8(),l=h.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});h.watchEffect(c=>{if(!Zi)return;const _=r.value;if(!t.trapped)return;function f(m){if(l.paused||!_)return;const g=m.target;_.contains(g)?s.value=g:eo(s.value,{select:!0})}function p(m){if(l.paused||!_)return;const g=m.relatedTarget;g!==null&&(_.contains(g)||eo(s.value,{select:!0}))}function a(m){_.contains(s.value)||eo(_)}document.addEventListener("focusin",f),document.addEventListener("focusout",p);const v=new MutationObserver(a);_&&v.observe(_,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",p),v.disconnect()})}),h.watchEffect(async c=>{const _=r.value;if(await h.nextTick(),!_)return;u.add(l);const f=Cr();if(!_.contains(f)){const a=new CustomEvent(d_,cM);_.addEventListener(d_,v=>i("mountAutoFocus",v)),_.dispatchEvent(a),a.defaultPrevented||(q8(F8(_M(_)),{select:!0}),Cr()===f&&eo(_))}c(()=>{_.removeEventListener(d_,m=>i("mountAutoFocus",m));const a=new CustomEvent(c_,cM),v=m=>{i("unmountAutoFocus",m)};_.addEventListener(c_,v),_.dispatchEvent(a),setTimeout(()=>{a.defaultPrevented||eo(f??document.body,{select:!0}),_.removeEventListener(c_,v),u.remove(l)},0)})});function d(c){if(!t.loop&&!t.trapped||l.paused)return;const _=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,f=Cr();if(_&&f){const p=c.currentTarget,[a,v]=G8(p);a&&v?!c.shiftKey&&f===v?(c.preventDefault(),t.loop&&eo(a,{select:!0})):c.shiftKey&&f===a&&(c.preventDefault(),t.loop&&eo(v,{select:!0})):f===p&&c.preventDefault()}}return(c,_)=>(h.openBlock(),h.createBlock(h.unref(Ui),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:h.withCtx(()=>[h.renderSlot(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),$8=Y8,K8=h.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 n=o8();return(t,i)=>h.unref(n)||t.forceMount?(h.openBlock(),h.createBlock(h.Teleport,{key:0,to:t.to,disabled:t.disabled,defer:t.defer},[h.renderSlot(t.$slots,"default")],8,["to","disabled","defer"])):h.createCommentVNode("v-if",!0)}}),W8=K8;const[pM,Q8]=Ss("PopperRoot");var J8=h.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(e){const n=h.ref();return Q8({anchor:n,onAnchorChange:t=>n.value=t}),(t,i)=>h.renderSlot(t.$slots,"default")}}),X8=J8,Z8=h.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const n=e,{forwardRef:t,currentElement:i}=_i(),o=pM();return h.watchPostEffect(()=>{o.onAnchorChange(n.reference??i.value)}),(r,s)=>(h.openBlock(),h.createBlock(h.unref(Ui),{ref:h.unref(t),as:r.as,"as-child":r.asChild},{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),eq=Z8;function tq(e){return e!==null}function nq(e){return{name:"transformOrigin",options:e,fn(n){var m,g,E;const{placement:t,rects:i,middlewareData:o}=n,s=((m=o.arrow)==null?void 0:m.centerOffset)!==0,u=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,c]=__(t),_={start:"0%",center:"50%",end:"100%"}[c],f=(((g=o.arrow)==null?void 0:g.x)??0)+u/2,p=(((E=o.arrow)==null?void 0:E.y)??0)+l/2;let a="",v="";return d==="bottom"?(a=s?_:`${f}px`,v=`${-l}px`):d==="top"?(a=s?_:`${f}px`,v=`${i.floating.height+l}px`):d==="right"?(a=`${-l}px`,v=s?_:`${p}px`):d==="left"&&(a=`${i.floating.width+l}px`,v=s?_:`${p}px`),{data:{x:a,y:v}}}}}function __(e){const[n,t="center"]=e.split("-");return[n,t]}const iq=["top","right","bottom","left"],to=Math.min,Yn=Math.max,iu=Math.round,ou=Math.floor,Ci=e=>({x:e,y:e}),oq={left:"right",right:"left",bottom:"top",top:"bottom"},rq={start:"end",end:"start"};function f_(e,n,t){return Yn(e,to(n,t))}function ji(e,n){return typeof e=="function"?e(n):e}function Vi(e){return e.split("-")[0]}function Nr(e){return e.split("-")[1]}function p_(e){return e==="x"?"y":"x"}function a_(e){return e==="y"?"height":"width"}const sq=new Set(["top","bottom"]);function Ri(e){return sq.has(Vi(e))?"y":"x"}function v_(e){return p_(Ri(e))}function lq(e,n,t){t===void 0&&(t=!1);const i=Nr(e),o=v_(e),r=a_(o);let s=o==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(s=ru(s)),[s,ru(s)]}function uq(e){const n=ru(e);return[m_(e),n,m_(n)]}function m_(e){return e.replace(/start|end/g,n=>rq[n])}const aM=["left","right"],vM=["right","left"],dq=["top","bottom"],cq=["bottom","top"];function _q(e,n,t){switch(e){case"top":case"bottom":return t?n?vM:aM:n?aM:vM;case"left":case"right":return n?dq:cq;default:return[]}}function fq(e,n,t,i){const o=Nr(e);let r=_q(Vi(e),t==="start",i);return o&&(r=r.map(s=>s+"-"+o),n&&(r=r.concat(r.map(m_)))),r}function ru(e){return e.replace(/left|right|bottom|top/g,n=>oq[n])}function pq(e){return{top:0,right:0,bottom:0,left:0,...e}}function mM(e){return typeof e!="number"?pq(e):{top:e,right:e,bottom:e,left:e}}function su(e){const{x:n,y:t,width:i,height:o}=e;return{width:i,height:o,top:t,left:n,right:n+i,bottom:t+o,x:n,y:t}}function hM(e,n,t){let{reference:i,floating:o}=e;const r=Ri(n),s=v_(n),u=a_(s),l=Vi(n),d=r==="y",c=i.x+i.width/2-o.width/2,_=i.y+i.height/2-o.height/2,f=i[u]/2-o[u]/2;let p;switch(l){case"top":p={x:c,y:i.y-o.height};break;case"bottom":p={x:c,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:_};break;case"left":p={x:i.x-o.width,y:_};break;default:p={x:i.x,y:i.y}}switch(Nr(n)){case"start":p[s]-=f*(t&&d?-1:1);break;case"end":p[s]+=f*(t&&d?-1:1);break}return p}const aq=async(e,n,t)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=t,u=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(n));let d=await s.getElementRects({reference:e,floating:n,strategy:o}),{x:c,y:_}=hM(d,i,l),f=i,p={},a=0;for(let v=0;v<u.length;v++){const{name:m,fn:g}=u[v],{x:E,y,data:T,reset:A}=await g({x:c,y:_,initialPlacement:i,placement:f,strategy:o,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:n}});c=E??c,_=y??_,p={...p,[m]:{...p[m],...T}},A&&a<=50&&(a++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(d=A.rects===!0?await s.getElementRects({reference:e,floating:n,strategy:o}):A.rects),{x:c,y:_}=hM(d,f,l)),v=-1)}return{x:c,y:_,placement:f,strategy:o,middlewareData:p}};async function Is(e,n){var t;n===void 0&&(n={});const{x:i,y:o,platform:r,rects:s,elements:u,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:_="floating",altBoundary:f=!1,padding:p=0}=ji(n,e),a=mM(p),m=u[f?_==="floating"?"reference":"floating":_],g=su(await r.getClippingRect({element:(t=await(r.isElement==null?void 0:r.isElement(m)))==null||t?m:m.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(u.floating)),boundary:d,rootBoundary:c,strategy:l})),E=_==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(u.floating)),T=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},A=su(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:y,strategy:l}):E);return{top:(g.top-A.top+a.top)/T.y,bottom:(A.bottom-g.bottom+a.bottom)/T.y,left:(g.left-A.left+a.left)/T.x,right:(A.right-g.right+a.right)/T.x}}const vq=e=>({name:"arrow",options:e,async fn(n){const{x:t,y:i,placement:o,rects:r,platform:s,elements:u,middlewareData:l}=n,{element:d,padding:c=0}=ji(e,n)||{};if(d==null)return{};const _=mM(c),f={x:t,y:i},p=v_(o),a=a_(p),v=await s.getDimensions(d),m=p==="y",g=m?"top":"left",E=m?"bottom":"right",y=m?"clientHeight":"clientWidth",T=r.reference[a]+r.reference[p]-f[p]-r.floating[a],A=f[p]-r.reference[p],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let N=S?S[y]:0;(!N||!await(s.isElement==null?void 0:s.isElement(S)))&&(N=u.floating[y]||r.floating[a]);const R=T/2-A/2,L=N/2-v[a]/2-1,j=to(_[g],L),I=to(_[E],L),C=j,O=N-v[a]-I,x=N/2-v[a]/2+R,P=f_(C,x,O),U=!l.arrow&&Nr(o)!=null&&x!==P&&r.reference[a]/2-(x<C?j:I)-v[a]/2<0,H=U?x<C?x-C:x-O:0;return{[p]:f[p]+H,data:{[p]:P,centerOffset:x-P-H,...U&&{alignmentOffset:H}},reset:U}}}),mq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var t,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:u,platform:l,elements:d}=n,{mainAxis:c=!0,crossAxis:_=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:a="none",flipAlignment:v=!0,...m}=ji(e,n);if((t=r.arrow)!=null&&t.alignmentOffset)return{};const g=Vi(o),E=Ri(u),y=Vi(u)===u,T=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=f||(y||!v?[ru(u)]:uq(u)),S=a!=="none";!f&&S&&A.push(...fq(u,v,a,T));const N=[u,...A],R=await Is(n,m),L=[];let j=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&L.push(R[g]),_){const x=lq(o,s,T);L.push(R[x[0]],R[x[1]])}if(j=[...j,{placement:o,overflows:L}],!L.every(x=>x<=0)){var I,C;const x=(((I=r.flip)==null?void 0:I.index)||0)+1,P=N[x];if(P&&(!(_==="alignment"?E!==Ri(P):!1)||j.every(B=>Ri(B.placement)===E?B.overflows[0]>0:!0)))return{data:{index:x,overflows:j},reset:{placement:P}};let U=(C=j.filter(H=>H.overflows[0]<=0).sort((H,B)=>H.overflows[1]-B.overflows[1])[0])==null?void 0:C.placement;if(!U)switch(p){case"bestFit":{var O;const H=(O=j.filter(B=>{if(S){const w=Ri(B.placement);return w===E||w==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(w=>w>0).reduce((w,V)=>w+V,0)]).sort((B,w)=>B[1]-w[1])[0])==null?void 0:O[0];H&&(U=H);break}case"initialPlacement":U=u;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function yM(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function gM(e){return iq.some(n=>e[n]>=0)}const hq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:t}=n,{strategy:i="referenceHidden",...o}=ji(e,n);switch(i){case"referenceHidden":{const r=await Is(n,{...o,elementContext:"reference"}),s=yM(r,t.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:gM(s)}}}case"escaped":{const r=await Is(n,{...o,altBoundary:!0}),s=yM(r,t.floating);return{data:{escapedOffsets:s,escaped:gM(s)}}}default:return{}}}}},EM=new Set(["left","top"]);async function yq(e,n){const{placement:t,platform:i,elements:o}=e,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=Vi(t),u=Nr(t),l=Ri(t)==="y",d=EM.has(s)?-1:1,c=r&&l?-1:1,_=ji(n,e);let{mainAxis:f,crossAxis:p,alignmentAxis:a}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return u&&typeof a=="number"&&(p=u==="end"?a*-1:a),l?{x:p*c,y:f*d}:{x:f*d,y:p*c}}const gq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,i;const{x:o,y:r,placement:s,middlewareData:u}=n,l=await yq(n,e);return s===((t=u.offset)==null?void 0:t.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Eq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:t,y:i,placement:o}=n,{mainAxis:r=!0,crossAxis:s=!1,limiter:u={fn:m=>{let{x:g,y:E}=m;return{x:g,y:E}}},...l}=ji(e,n),d={x:t,y:i},c=await Is(n,l),_=Ri(Vi(o)),f=p_(_);let p=d[f],a=d[_];if(r){const m=f==="y"?"top":"left",g=f==="y"?"bottom":"right",E=p+c[m],y=p-c[g];p=f_(E,p,y)}if(s){const m=_==="y"?"top":"left",g=_==="y"?"bottom":"right",E=a+c[m],y=a-c[g];a=f_(E,a,y)}const v=u.fn({...n,[f]:p,[_]:a});return{...v,data:{x:v.x-t,y:v.y-i,enabled:{[f]:r,[_]:s}}}}}},Tq=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:t,y:i,placement:o,rects:r,middlewareData:s}=n,{offset:u=0,mainAxis:l=!0,crossAxis:d=!0}=ji(e,n),c={x:t,y:i},_=Ri(o),f=p_(_);let p=c[f],a=c[_];const v=ji(u,n),m=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=f==="y"?"height":"width",T=r.reference[f]-r.floating[y]+m.mainAxis,A=r.reference[f]+r.reference[y]-m.mainAxis;p<T?p=T:p>A&&(p=A)}if(d){var g,E;const y=f==="y"?"width":"height",T=EM.has(Vi(o)),A=r.reference[_]-r.floating[y]+(T&&((g=s.offset)==null?void 0:g[_])||0)+(T?0:m.crossAxis),S=r.reference[_]+r.reference[y]+(T?0:((E=s.offset)==null?void 0:E[_])||0)-(T?m.crossAxis:0);a<A?a=A:a>S&&(a=S)}return{[f]:p,[_]:a}}}},Sq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var t,i;const{placement:o,rects:r,platform:s,elements:u}=n,{apply:l=()=>{},...d}=ji(e,n),c=await Is(n,d),_=Vi(o),f=Nr(o),p=Ri(o)==="y",{width:a,height:v}=r.floating;let m,g;_==="top"||_==="bottom"?(m=_,g=f===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(g=_,m=f==="end"?"top":"bottom");const E=v-c.top-c.bottom,y=a-c.left-c.right,T=to(v-c[m],E),A=to(a-c[g],y),S=!n.middlewareData.shift;let N=T,R=A;if((t=n.middlewareData.shift)!=null&&t.enabled.x&&(R=y),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(N=E),S&&!f){const j=Yn(c.left,0),I=Yn(c.right,0),C=Yn(c.top,0),O=Yn(c.bottom,0);p?R=a-2*(j!==0||I!==0?j+I:Yn(c.left,c.right)):N=v-2*(C!==0||O!==0?C+O:Yn(c.top,c.bottom))}await l({...n,availableWidth:R,availableHeight:N});const L=await s.getDimensions(u.floating);return a!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}};function lu(){return typeof window<"u"}function Io(e){return h_(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Mi(e){var n;return(n=(h_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function h_(e){return lu()?e instanceof Node||e instanceof $n(e).Node:!1}function fi(e){return lu()?e instanceof Element||e instanceof $n(e).Element:!1}function Ni(e){return lu()?e instanceof HTMLElement||e instanceof $n(e).HTMLElement:!1}function TM(e){return!lu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}const bq=new Set(["inline","contents"]);function As(e){const{overflow:n,overflowX:t,overflowY:i,display:o}=pi(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+t)&&!bq.has(o)}const Iq=new Set(["table","td","th"]);function Aq(e){return Iq.has(Io(e))}const Cq=[":popover-open",":modal"];function uu(e){return Cq.some(n=>{try{return e.matches(n)}catch{return!1}})}const Rq=["transform","translate","scale","rotate","perspective"],Mq=["transform","translate","scale","rotate","perspective","filter"],Nq=["paint","layout","strict","content"];function y_(e){const n=g_(),t=fi(e)?pi(e):e;return Rq.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!n&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!n&&(t.filter?t.filter!=="none":!1)||Mq.some(i=>(t.willChange||"").includes(i))||Nq.some(i=>(t.contain||"").includes(i))}function Oq(e){let n=no(e);for(;Ni(n)&&!Or(n);){if(y_(n))return n;if(uu(n))return null;n=no(n)}return null}function g_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xq=new Set(["html","body","#document"]);function Or(e){return xq.has(Io(e))}function pi(e){return $n(e).getComputedStyle(e)}function du(e){return fi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function no(e){if(Io(e)==="html")return e;const n=e.assignedSlot||e.parentNode||TM(e)&&e.host||Mi(e);return TM(n)?n.host:n}function SM(e){const n=no(e);return Or(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ni(n)&&As(n)?n:SM(n)}function Cs(e,n,t){var i;n===void 0&&(n=[]),t===void 0&&(t=!0);const o=SM(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),s=$n(o);if(r){const u=E_(s);return n.concat(s,s.visualViewport||[],As(o)?o:[],u&&t?Cs(u):[])}return n.concat(o,Cs(o,[],t))}function E_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bM(e){const n=pi(e);let t=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=Ni(e),r=o?e.offsetWidth:t,s=o?e.offsetHeight:i,u=iu(t)!==r||iu(i)!==s;return u&&(t=r,i=s),{width:t,height:i,$:u}}function T_(e){return fi(e)?e:e.contextElement}function xr(e){const n=T_(e);if(!Ni(n))return Ci(1);const t=n.getBoundingClientRect(),{width:i,height:o,$:r}=bM(n);let s=(r?iu(t.width):t.width)/i,u=(r?iu(t.height):t.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Pq=Ci(0);function IM(e){const n=$n(e);return!g_()||!n.visualViewport?Pq:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function wq(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==$n(e)?!1:n}function Ao(e,n,t,i){n===void 0&&(n=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),r=T_(e);let s=Ci(1);n&&(i?fi(i)&&(s=xr(i)):s=xr(e));const u=wq(r,t,i)?IM(r):Ci(0);let l=(o.left+u.x)/s.x,d=(o.top+u.y)/s.y,c=o.width/s.x,_=o.height/s.y;if(r){const f=$n(r),p=i&&fi(i)?$n(i):i;let a=f,v=E_(a);for(;v&&i&&p!==a;){const m=xr(v),g=v.getBoundingClientRect(),E=pi(v),y=g.left+(v.clientLeft+parseFloat(E.paddingLeft))*m.x,T=g.top+(v.clientTop+parseFloat(E.paddingTop))*m.y;l*=m.x,d*=m.y,c*=m.x,_*=m.y,l+=y,d+=T,a=$n(v),v=E_(a)}}return su({width:c,height:_,x:l,y:d})}function S_(e,n){const t=du(e).scrollLeft;return n?n.left+t:Ao(Mi(e)).left+t}function AM(e,n,t){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=i.left+n.scrollLeft-(t?0:S_(e,i)),r=i.top+n.scrollTop;return{x:o,y:r}}function Dq(e){let{elements:n,rect:t,offsetParent:i,strategy:o}=e;const r=o==="fixed",s=Mi(i),u=n?uu(n.floating):!1;if(i===s||u&&r)return t;let l={scrollLeft:0,scrollTop:0},d=Ci(1);const c=Ci(0),_=Ni(i);if((_||!_&&!r)&&((Io(i)!=="body"||As(s))&&(l=du(i)),Ni(i))){const p=Ao(i);d=xr(i),c.x=p.x+i.clientLeft,c.y=p.y+i.clientTop}const f=s&&!_&&!r?AM(s,l,!0):Ci(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-l.scrollLeft*d.x+c.x+f.x,y:t.y*d.y-l.scrollTop*d.y+c.y+f.y}}function kq(e){return Array.from(e.getClientRects())}function Lq(e){const n=Mi(e),t=du(e),i=e.ownerDocument.body,o=Yn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=Yn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let s=-t.scrollLeft+S_(e);const u=-t.scrollTop;return pi(i).direction==="rtl"&&(s+=Yn(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:u}}function Uq(e,n){const t=$n(e),i=Mi(e),o=t.visualViewport;let r=i.clientWidth,s=i.clientHeight,u=0,l=0;if(o){r=o.width,s=o.height;const d=g_();(!d||d&&n==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:u,y:l}}const Bq=new Set(["absolute","fixed"]);function jq(e,n){const t=Ao(e,!0,n==="fixed"),i=t.top+e.clientTop,o=t.left+e.clientLeft,r=Ni(e)?xr(e):Ci(1),s=e.clientWidth*r.x,u=e.clientHeight*r.y,l=o*r.x,d=i*r.y;return{width:s,height:u,x:l,y:d}}function CM(e,n,t){let i;if(n==="viewport")i=Uq(e,t);else if(n==="document")i=Lq(Mi(e));else if(fi(n))i=jq(n,t);else{const o=IM(e);i={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return su(i)}function RM(e,n){const t=no(e);return t===n||!fi(t)||Or(t)?!1:pi(t).position==="fixed"||RM(t,n)}function Vq(e,n){const t=n.get(e);if(t)return t;let i=Cs(e,[],!1).filter(u=>fi(u)&&Io(u)!=="body"),o=null;const r=pi(e).position==="fixed";let s=r?no(e):e;for(;fi(s)&&!Or(s);){const u=pi(s),l=y_(s);!l&&u.position==="fixed"&&(o=null),(r?!l&&!o:!l&&u.position==="static"&&!!o&&Bq.has(o.position)||As(s)&&!l&&RM(e,s))?i=i.filter(c=>c!==s):o=u,s=no(s)}return n.set(e,i),i}function Fq(e){let{element:n,boundary:t,rootBoundary:i,strategy:o}=e;const s=[...t==="clippingAncestors"?uu(n)?[]:Vq(n,this._c):[].concat(t),i],u=s[0],l=s.reduce((d,c)=>{const _=CM(n,c,o);return d.top=Yn(_.top,d.top),d.right=to(_.right,d.right),d.bottom=to(_.bottom,d.bottom),d.left=Yn(_.left,d.left),d},CM(n,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qq(e){const{width:n,height:t}=bM(e);return{width:n,height:t}}function Gq(e,n,t){const i=Ni(n),o=Mi(n),r=t==="fixed",s=Ao(e,!0,r,n);let u={scrollLeft:0,scrollTop:0};const l=Ci(0);function d(){l.x=S_(o)}if(i||!i&&!r)if((Io(n)!=="body"||As(o))&&(u=du(n)),i){const p=Ao(n,!0,r,n);l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}else o&&d();r&&!i&&o&&d();const c=o&&!i&&!r?AM(o,u):Ci(0),_=s.left+u.scrollLeft-l.x-c.x,f=s.top+u.scrollTop-l.y-c.y;return{x:_,y:f,width:s.width,height:s.height}}function b_(e){return pi(e).position==="static"}function MM(e,n){if(!Ni(e)||pi(e).position==="fixed")return null;if(n)return n(e);let t=e.offsetParent;return Mi(e)===t&&(t=t.ownerDocument.body),t}function NM(e,n){const t=$n(e);if(uu(e))return t;if(!Ni(e)){let o=no(e);for(;o&&!Or(o);){if(fi(o)&&!b_(o))return o;o=no(o)}return t}let i=MM(e,n);for(;i&&Aq(i)&&b_(i);)i=MM(i,n);return i&&Or(i)&&b_(i)&&!y_(i)?t:i||Oq(e)||t}const Hq=async function(e){const n=this.getOffsetParent||NM,t=this.getDimensions,i=await t(e.floating);return{reference:Gq(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zq(e){return pi(e).direction==="rtl"}const Yq={convertOffsetParentRelativeRectToViewportRelativeRect:Dq,getDocumentElement:Mi,getClippingRect:Fq,getOffsetParent:NM,getElementRects:Hq,getClientRects:kq,getDimensions:qq,getScale:xr,isElement:fi,isRTL:zq};function OM(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function $q(e,n){let t=null,i;const o=Mi(e);function r(){var u;clearTimeout(i),(u=t)==null||u.disconnect(),t=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),r();const d=e.getBoundingClientRect(),{left:c,top:_,width:f,height:p}=d;if(u||n(),!f||!p)return;const a=ou(_),v=ou(o.clientWidth-(c+f)),m=ou(o.clientHeight-(_+p)),g=ou(c),y={rootMargin:-a+"px "+-v+"px "+-m+"px "+-g+"px",threshold:Yn(0,to(1,l))||1};let T=!0;function A(S){const N=S[0].intersectionRatio;if(N!==l){if(!T)return s();N?s(!1,N):i=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!OM(d,e.getBoundingClientRect())&&s(),T=!1}try{t=new IntersectionObserver(A,{...y,root:o.ownerDocument})}catch{t=new IntersectionObserver(A,y)}t.observe(e)}return s(!0),r}function Kq(e,n,t,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=T_(e),c=o||r?[...d?Cs(d):[],...Cs(n)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",t,{passive:!0}),r&&g.addEventListener("resize",t)});const _=d&&u?$q(d,t):null;let f=-1,p=null;s&&(p=new ResizeObserver(g=>{let[E]=g;E&&E.target===d&&p&&(p.unobserve(n),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(n)})),t()}),d&&!l&&p.observe(d),p.observe(n));let a,v=l?Ao(e):null;l&&m();function m(){const g=Ao(e);v&&!OM(v,g)&&t(),v=g,a=requestAnimationFrame(m)}return t(),()=>{var g;c.forEach(E=>{o&&E.removeEventListener("scroll",t),r&&E.removeEventListener("resize",t)}),_==null||_(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(a)}}const Wq=gq,Qq=Eq,xM=mq,Jq=Sq,Xq=hq,Zq=vq,eG=Tq,tG=(e,n,t)=>{const i=new Map,o={platform:Yq,...t},r={...o.platform,_c:i};return aq(e,n,{...o,platform:r})};function nG(e){return e!=null&&typeof e=="object"&&"$el"in e}function I_(e){if(nG(e)){const n=e.$el;return h_(n)&&Io(n)==="#comment"?null:n}return e}function Pr(e){return typeof e=="function"?e():h.unref(e)}function iG(e){return{name:"arrow",options:e,fn(n){const t=I_(Pr(e.element));return t==null?{}:Zq({element:t,padding:e.padding}).fn(n)}}}function PM(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wM(e,n){const t=PM(e);return Math.round(n*t)/t}function oG(e,n,t){t===void 0&&(t={});const i=t.whileElementsMounted,o=h.computed(()=>{var N;return(N=Pr(t.open))!=null?N:!0}),r=h.computed(()=>Pr(t.middleware)),s=h.computed(()=>{var N;return(N=Pr(t.placement))!=null?N:"bottom"}),u=h.computed(()=>{var N;return(N=Pr(t.strategy))!=null?N:"absolute"}),l=h.computed(()=>{var N;return(N=Pr(t.transform))!=null?N:!0}),d=h.computed(()=>I_(e.value)),c=h.computed(()=>I_(n.value)),_=h.ref(0),f=h.ref(0),p=h.ref(u.value),a=h.ref(s.value),v=h.shallowRef({}),m=h.ref(!1),g=h.computed(()=>{const N={position:p.value,left:"0",top:"0"};if(!c.value)return N;const R=wM(c.value,_.value),L=wM(c.value,f.value);return l.value?{...N,transform:"translate("+R+"px, "+L+"px)",...PM(c.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:R+"px",top:L+"px"}});let E;function y(){if(d.value==null||c.value==null)return;const N=o.value;tG(d.value,c.value,{middleware:r.value,placement:s.value,strategy:u.value}).then(R=>{_.value=R.x,f.value=R.y,p.value=R.strategy,a.value=R.placement,v.value=R.middlewareData,m.value=N!==!1})}function T(){typeof E=="function"&&(E(),E=void 0)}function A(){if(T(),i===void 0){y();return}if(d.value!=null&&c.value!=null){E=i(d.value,c.value,y);return}}function S(){o.value||(m.value=!1)}return h.watch([r,s,u,o],y,{flush:"sync"}),h.watch([d,c],A,{flush:"sync"}),h.watch(o,S,{flush:"sync"}),h.getCurrentScope()&&h.onScopeDispose(T),{x:h.shallowReadonly(_),y:h.shallowReadonly(f),strategy:h.shallowReadonly(p),placement:h.shallowReadonly(a),middlewareData:h.shallowReadonly(v),isPositioned:h.shallowReadonly(m),floatingStyles:g,update:y}}const rG={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},[e$,sG]=Ss("PopperContent");var lG=h.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:h.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}},{...rG}),emits:["placed"],setup(e,{emit:n}){const t=e,i=n,o=pM(),{forwardRef:r,currentElement:s}=_i(),u=h.ref(),l=h.ref(),{width:d,height:c}=T8(l),_=h.computed(()=>t.side+(t.align!=="center"?`-${t.align}`:"")),f=h.computed(()=>typeof t.collisionPadding=="number"?t.collisionPadding:{top:0,right:0,bottom:0,left:0,...t.collisionPadding}),p=h.computed(()=>Array.isArray(t.collisionBoundary)?t.collisionBoundary:[t.collisionBoundary]),a=h.computed(()=>({padding:f.value,boundary:p.value.filter(tq),altBoundary:p.value.length>0})),v=h.computed(()=>({mainAxis:t.sideFlip,crossAxis:t.alignFlip})),m=zF(()=>[Wq({mainAxis:t.sideOffset+c.value,alignmentAxis:t.alignOffset}),t.prioritizePosition&&t.avoidCollisions&&xM({...a.value,...v.value}),t.avoidCollisions&&Qq({mainAxis:!0,crossAxis:!!t.prioritizePosition,limiter:t.sticky==="partial"?eG():void 0,...a.value}),!t.prioritizePosition&&t.avoidCollisions&&xM({...a.value,...v.value}),Jq({...a.value,apply:({elements:O,rects:x,availableWidth:P,availableHeight:U})=>{const{width:H,height:B}=x.reference,w=O.floating.style;w.setProperty("--reka-popper-available-width",`${P}px`),w.setProperty("--reka-popper-available-height",`${U}px`),w.setProperty("--reka-popper-anchor-width",`${H}px`),w.setProperty("--reka-popper-anchor-height",`${B}px`)}}),l.value&&iG({element:l.value,padding:t.arrowPadding}),nq({arrowWidth:d.value,arrowHeight:c.value}),t.hideWhenDetached&&Xq({strategy:"referenceHidden",...a.value})]),g=h.computed(()=>t.reference??o.anchor.value),{floatingStyles:E,placement:y,isPositioned:T,middlewareData:A,update:S}=oG(g,u,{strategy:t.positionStrategy,placement:_,whileElementsMounted:(...O)=>Kq(...O,{layoutShift:!t.disableUpdateOnLayoutShift,animationFrame:t.updatePositionStrategy==="always"}),middleware:m}),N=h.computed(()=>__(y.value)[0]),R=h.computed(()=>__(y.value)[1]);h.watchPostEffect(()=>{T.value&&i("placed")});const L=h.computed(()=>{var O;return((O=A.value.arrow)==null?void 0:O.centerOffset)!==0}),j=h.ref("");h.watchEffect(()=>{s.value&&(j.value=window.getComputedStyle(s.value).zIndex)});const I=h.computed(()=>{var O;return((O=A.value.arrow)==null?void 0:O.x)??0}),C=h.computed(()=>{var O;return((O=A.value.arrow)==null?void 0:O.y)??0});return sG({placedSide:N,onArrowChange:O=>l.value=O,arrowX:I,arrowY:C,shouldHideArrow:L}),(O,x)=>{var P,U,H;return h.openBlock(),h.createElementBlock("div",{ref_key:"floatingRef",ref:u,"data-reka-popper-content-wrapper":"",style:h.normalizeStyle({...h.unref(E),transform:h.unref(T)?h.unref(E).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j.value,"--reka-popper-transform-origin":[(P=h.unref(A).transformOrigin)==null?void 0:P.x,(U=h.unref(A).transformOrigin)==null?void 0:U.y].join(" "),...((H=h.unref(A).hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[h.createVNode(h.unref(Ui),h.mergeProps({ref:h.unref(r)},O.$attrs,{"as-child":t.asChild,as:O.as,"data-side":N.value,"data-align":R.value,style:{animation:h.unref(T)?void 0:"none"}}),{default:h.withCtx(()=>[h.renderSlot(O.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),uG=lG;const[Rs,dG]=Ss("PopoverRoot");var cG=h.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:n}){const t=e,i=n,{modal:o}=h.toRefs(t),r=tM(t,"open",i,{defaultValue:t.defaultOpen,passive:t.open===void 0}),s=h.ref(),u=h.ref(!1);return dG({contentId:"",triggerId:"",modal:o,open:r,onOpenChange:l=>{r.value=l},onOpenToggle:()=>{r.value=!r.value},triggerElement:s,hasCustomAnchor:u}),(l,d)=>(h.openBlock(),h.createBlock(h.unref(X8),null,{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default",{open:h.unref(r),close:()=>r.value=!1})]),_:3}))}}),_G=cG,fG=h.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:n}){const t=e,i=n,o=oM(QF(t,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=_i(),s=Rs();return a8(),(u,l)=>(h.openBlock(),h.createBlock(h.unref($8),{"as-child":"",loop:"",trapped:u.trapFocus,onMountAutoFocus:l[5]||(l[5]=d=>i("openAutoFocus",d)),onUnmountAutoFocus:l[6]||(l[6]=d=>i("closeAutoFocus",d))},{default:h.withCtx(()=>[h.createVNode(h.unref(B8),{"as-child":"","disable-outside-pointer-events":u.disableOutsidePointerEvents,onPointerDownOutside:l[0]||(l[0]=d=>i("pointerDownOutside",d)),onInteractOutside:l[1]||(l[1]=d=>i("interactOutside",d)),onEscapeKeyDown:l[2]||(l[2]=d=>i("escapeKeyDown",d)),onFocusOutside:l[3]||(l[3]=d=>i("focusOutside",d)),onDismiss:l[4]||(l[4]=d=>h.unref(s).onOpenChange(!1))},{default:h.withCtx(()=>[h.createVNode(h.unref(uG),h.mergeProps(h.unref(o),{id:h.unref(s).contentId,ref:h.unref(r),"data-state":h.unref(s).open.value?"open":"closed","aria-labelledby":h.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:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),DM=fG,pG=h.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:n}){const t=e,i=n,o=Rs(),r=h.ref(!1);_8(!0);const s=Rr(t,i),{forwardRef:u,currentElement:l}=_i();return g8(l),(d,c)=>(h.openBlock(),h.createBlock(DM,h.mergeProps(h.unref(s),{ref:h.unref(u),"trap-focus":h.unref(o).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=h.withModifiers(_=>{var f;i("closeAutoFocus",_),r.value||(f=h.unref(o).triggerElement.value)==null||f.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=_=>{i("pointerDownOutside",_);const f=_.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,a=f.button===2||p;r.value=a}),onFocusOutside:c[2]||(c[2]=h.withModifiers(()=>{},["prevent"]))}),{default:h.withCtx(()=>[h.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),aG=pG,vG=h.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:n}){const t=e,i=n,o=Rs(),r=h.ref(!1),s=h.ref(!1),u=Rr(t,i);return(l,d)=>(h.openBlock(),h.createBlock(DM,h.mergeProps(h.unref(u),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{var _;i("closeAutoFocus",c),c.defaultPrevented||(r.value||(_=h.unref(o).triggerElement.value)==null||_.focus(),c.preventDefault()),r.value=!1,s.value=!1}),onInteractOutside:d[1]||(d[1]=async c=>{var p;i("interactOutside",c),c.defaultPrevented||(r.value=!0,c.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const _=c.target;((p=h.unref(o).triggerElement.value)==null?void 0:p.contains(_))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.value&&c.preventDefault()})}),{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default")]),_:3},16))}}),mG=vG,hG=h.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:n}){const t=e,i=n,o=Rs(),r=Rr(t,i),{forwardRef:s}=_i();return o.contentId||(o.contentId=u_(void 0,"reka-popover-content")),(u,l)=>(h.openBlock(),h.createBlock(h.unref(sM),{present:u.forceMount||h.unref(o).open.value},{default:h.withCtx(()=>[h.unref(o).modal.value?(h.openBlock(),h.createBlock(aG,h.mergeProps({key:0},h.unref(r),{ref:h.unref(s)}),{default:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},16)):(h.openBlock(),h.createBlock(mG,h.mergeProps({key:1},h.unref(r),{ref:h.unref(s)}),{default:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),yG=hG,gG=h.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 n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(W8),h.normalizeProps(h.guardReactiveProps(n)),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),EG=gG,TG=h.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const n=e,t=Rs(),{forwardRef:i,currentElement:o}=_i();return t.triggerId||(t.triggerId=u_(void 0,"reka-popover-trigger")),h.onMounted(()=>{t.triggerElement.value=o.value}),(r,s)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(t).hasCustomAnchor.value?h.unref(Ui):h.unref(eq)),{"as-child":""},{default:h.withCtx(()=>[h.createVNode(h.unref(Ui),{id:h.unref(t).triggerId,ref:h.unref(i),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":h.unref(t).open.value,"aria-controls":h.unref(t).contentId,"data-state":h.unref(t).open.value?"open":"closed",as:r.as,"as-child":n.asChild,onClick:h.unref(t).onOpenToggle},{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),SG=TG;const bG=h.defineComponent({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:n}){const o=Rr(e,n);return(r,s)=>(h.openBlock(),h.createBlock(h.unref(_G),h.normalizeProps(h.guardReactiveProps(h.unref(o))),{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},16))}});function IG(e){if(!h.isRef(e))return h.reactive(e);const n=new Proxy({},{get(t,i,o){return h.unref(Reflect.get(e.value,i,o))},set(t,i,o){return h.isRef(e.value[i])&&!h.isRef(o)?e.value[i].value=o:e.value[i]=o,!0},deleteProperty(t,i){return Reflect.deleteProperty(e.value,i)},has(t,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return h.reactive(n)}function AG(e){return IG(h.computed(e))}function CG(e,...n){const t=n.flat(),i=t[0];return AG(()=>Object.fromEntries(typeof i=="function"?Object.entries(h.toRefs(e)).filter(([o,r])=>!i(h.toValue(r),o)):Object.entries(h.toRefs(e)).filter(o=>!t.includes(o[0]))))}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function kM(e){var n,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(t=kM(e[n]))&&(i&&(i+=" "),i+=t)}else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function RG(){for(var e,n,t=0,i="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=kM(e))&&(i&&(i+=" "),i+=n);return i}const A_="-",MG=e=>{const n=OG(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const u=s.split(A_);return u[0]===""&&u.length!==1&&u.shift(),LM(u,n)||NG(s)},getConflictingClassGroupIds:(s,u)=>{const l=t[s]||[];return u&&i[s]?[...l,...i[s]]:l}}},LM=(e,n)=>{var s;if(e.length===0)return n.classGroupId;const t=e[0],i=n.nextPart.get(t),o=i?LM(e.slice(1),i):void 0;if(o)return o;if(n.validators.length===0)return;const r=e.join(A_);return(s=n.validators.find(({validator:u})=>u(r)))==null?void 0:s.classGroupId},UM=/^\[(.+)\]$/,NG=e=>{if(UM.test(e)){const n=UM.exec(e)[1],t=n==null?void 0:n.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}},OG=e=>{const{theme:n,classGroups:t}=e,i={nextPart:new Map,validators:[]};for(const o in t)C_(t[o],i,o,n);return i},C_=(e,n,t,i)=>{e.forEach(o=>{if(typeof o=="string"){const r=o===""?n:BM(n,o);r.classGroupId=t;return}if(typeof o=="function"){if(xG(o)){C_(o(i),n,t,i);return}n.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([r,s])=>{C_(s,BM(n,r),t,i)})})},BM=(e,n)=>{let t=e;return n.split(A_).forEach(i=>{t.nextPart.has(i)||t.nextPart.set(i,{nextPart:new Map,validators:[]}),t=t.nextPart.get(i)}),t},xG=e=>e.isThemeGetter,PG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,i=new Map;const o=(r,s)=>{t.set(r,s),n++,n>e&&(n=0,i=t,t=new Map)};return{get(r){let s=t.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return o(r,s),s},set(r,s){t.has(r)?t.set(r,s):o(r,s)}}},R_="!",M_=":",wG=M_.length,DG=e=>{const{prefix:n,experimentalParseClassName:t}=e;let i=o=>{const r=[];let s=0,u=0,l=0,d;for(let a=0;a<o.length;a++){let v=o[a];if(s===0&&u===0){if(v===M_){r.push(o.slice(l,a)),l=a+wG;continue}if(v==="/"){d=a;continue}}v==="["?s++:v==="]"?s--:v==="("?u++:v===")"&&u--}const c=r.length===0?o:o.substring(l),_=kG(c),f=_!==c,p=d&&d>l?d-l:void 0;return{modifiers:r,hasImportantModifier:f,baseClassName:_,maybePostfixModifierPosition:p}};if(n){const o=n+M_,r=i;i=s=>s.startsWith(o)?r(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(t){const o=i;i=r=>t({className:r,parseClassName:o})}return i},kG=e=>e.endsWith(R_)?e.substring(0,e.length-1):e.startsWith(R_)?e.substring(1):e,LG=e=>{const n=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]==="["||n[s]?(o.push(...r.sort(),s),r=[]):r.push(s)}),o.push(...r.sort()),o}},UG=e=>({cache:PG(e.cacheSize),parseClassName:DG(e),sortModifiers:LG(e),...MG(e)}),BG=/\s+/,jG=(e,n)=>{const{parseClassName:t,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r}=n,s=[],u=e.trim().split(BG);let l="";for(let d=u.length-1;d>=0;d-=1){const c=u[d],{isExternal:_,modifiers:f,hasImportantModifier:p,baseClassName:a,maybePostfixModifierPosition:v}=t(c);if(_){l=c+(l.length>0?" "+l:l);continue}let m=!!v,g=i(m?a.substring(0,v):a);if(!g){if(!m){l=c+(l.length>0?" "+l:l);continue}if(g=i(a),!g){l=c+(l.length>0?" "+l:l);continue}m=!1}const E=r(f).join(":"),y=p?E+R_:E,T=y+g;if(s.includes(T))continue;s.push(T);const A=o(g,m);for(let S=0;S<A.length;++S){const N=A[S];s.push(y+N)}l=c+(l.length>0?" "+l:l)}return l};function VG(){let e=0,n,t,i="";for(;e<arguments.length;)(n=arguments[e++])&&(t=jM(n))&&(i&&(i+=" "),i+=t);return i}const jM=e=>{if(typeof e=="string")return e;let n,t="";for(let i=0;i<e.length;i++)e[i]&&(n=jM(e[i]))&&(t&&(t+=" "),t+=n);return t};function FG(e,...n){let t,i,o,r=s;function s(l){const d=n.reduce((c,_)=>_(c),e());return t=UG(d),i=t.cache.get,o=t.cache.set,r=u,u(l)}function u(l){const d=i(l);if(d)return d;const c=jG(l,t);return o(l,c),c}return function(){return r(VG.apply(null,arguments))}}const Jt=e=>{const n=t=>t[e]||[];return n.isThemeGetter=!0,n},VM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,FM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qG=/^\d+\/\d+$/,GG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HG=/\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$/,zG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wr=e=>qG.test(e),Je=e=>!!e&&!Number.isNaN(Number(e)),io=e=>!!e&&Number.isInteger(Number(e)),N_=e=>e.endsWith("%")&&Je(e.slice(0,-1)),Fi=e=>GG.test(e),KG=()=>!0,WG=e=>HG.test(e)&&!zG.test(e),qM=()=>!1,QG=e=>YG.test(e),JG=e=>$G.test(e),XG=e=>!Oe(e)&&!xe(e),ZG=e=>Dr(e,$M,qM),Oe=e=>VM.test(e),Co=e=>Dr(e,KM,WG),O_=e=>Dr(e,o7,Je),GM=e=>Dr(e,zM,qM),e7=e=>Dr(e,YM,JG),cu=e=>Dr(e,WM,QG),xe=e=>FM.test(e),Ms=e=>kr(e,KM),t7=e=>kr(e,r7),HM=e=>kr(e,zM),n7=e=>kr(e,$M),i7=e=>kr(e,YM),_u=e=>kr(e,WM,!0),Dr=(e,n,t)=>{const i=VM.exec(e);return i?i[1]?n(i[1]):t(i[2]):!1},kr=(e,n,t=!1)=>{const i=FM.exec(e);return i?i[1]?n(i[1]):t:!1},zM=e=>e==="position"||e==="percentage",YM=e=>e==="image"||e==="url",$M=e=>e==="length"||e==="size"||e==="bg-size",KM=e=>e==="length",o7=e=>e==="number",r7=e=>e==="family-name",WM=e=>e==="shadow",s7=FG(()=>{const e=Jt("color"),n=Jt("font"),t=Jt("text"),i=Jt("font-weight"),o=Jt("tracking"),r=Jt("leading"),s=Jt("breakpoint"),u=Jt("container"),l=Jt("spacing"),d=Jt("radius"),c=Jt("shadow"),_=Jt("inset-shadow"),f=Jt("text-shadow"),p=Jt("drop-shadow"),a=Jt("blur"),v=Jt("perspective"),m=Jt("aspect"),g=Jt("ease"),E=Jt("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),xe,Oe],S=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],R=()=>[xe,Oe,l],L=()=>[wr,"full","auto",...R()],j=()=>[io,"none","subgrid",xe,Oe],I=()=>["auto",{span:["full",io,xe,Oe]},io,xe,Oe],C=()=>[io,"auto",xe,Oe],O=()=>["auto","min","max","fr",xe,Oe],x=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...R()],H=()=>[wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],B=()=>[e,xe,Oe],w=()=>[...T(),HM,GM,{position:[xe,Oe]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",n7,ZG,{size:[xe,Oe]}],F=()=>[N_,Ms,Co],$=()=>["","none","full",d,xe,Oe],Y=()=>["",Je,Ms,Co],K=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[Je,N_,HM,GM],Z=()=>["","none",a,xe,Oe],b=()=>["none",Je,xe,Oe],M=()=>["none",Je,xe,Oe],k=()=>[Je,xe,Oe],z=()=>[wr,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fi],breakpoint:[Fi],color:[KG],container:[Fi],"drop-shadow":[Fi],ease:["in","out","in-out"],font:[XG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fi],shadow:[Fi],spacing:["px",Je],text:[Fi],"text-shadow":[Fi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wr,Oe,xe,m]}],container:["container"],columns:[{columns:[Je,Oe,xe,u]}],"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:A()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[io,"auto",xe,Oe]}],basis:[{basis:[wr,"full","auto",u,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Je,wr,"auto","initial","none",Oe]}],grow:[{grow:["",Je,xe,Oe]}],shrink:[{shrink:["",Je,xe,Oe]}],order:[{order:[io,"first","last","none",xe,Oe]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...x(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...x()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":x()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[u,"screen",...H()]}],"min-w":[{"min-w":[u,"screen","none",...H()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",t,Ms,Co]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,xe,O_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",N_,Oe]}],"font-family":[{font:[t7,Oe,n]}],"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,xe,Oe]}],"line-clamp":[{"line-clamp":[Je,"none",xe,O_]}],leading:[{leading:[r,...R()]}],"list-image":[{"list-image":["none",xe,Oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,Oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[Je,"from-font","auto",xe,Co]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Je,"auto",xe,Oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,Oe]}],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",xe,Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},io,xe,Oe],radial:["",xe,Oe],conic:[io,xe,Oe]},i7,e7]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Je,xe,Oe]}],"outline-w":[{outline:["",Je,Ms,Co]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",c,_u,cu]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",_,_u,cu]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Je,Co]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",f,_u,cu]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Je,xe,Oe]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"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":[Je]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[xe,Oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[Je]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,Oe]}],filter:[{filter:["","none",xe,Oe]}],blur:[{blur:Z()}],brightness:[{brightness:[Je,xe,Oe]}],contrast:[{contrast:[Je,xe,Oe]}],"drop-shadow":[{"drop-shadow":["","none",p,_u,cu]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Je,xe,Oe]}],"hue-rotate":[{"hue-rotate":[Je,xe,Oe]}],invert:[{invert:["",Je,xe,Oe]}],saturate:[{saturate:[Je,xe,Oe]}],sepia:[{sepia:["",Je,xe,Oe]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,Oe]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[Je,xe,Oe]}],"backdrop-contrast":[{"backdrop-contrast":[Je,xe,Oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Je,xe,Oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Je,xe,Oe]}],"backdrop-invert":[{"backdrop-invert":["",Je,xe,Oe]}],"backdrop-opacity":[{"backdrop-opacity":[Je,xe,Oe]}],"backdrop-saturate":[{"backdrop-saturate":[Je,xe,Oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Je,xe,Oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,Oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Je,"initial",xe,Oe]}],ease:[{ease:["linear","initial",g,xe,Oe]}],delay:[{delay:[Je,xe,Oe]}],animate:[{animate:["none",E,xe,Oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,xe,Oe]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:b()}],"rotate-x":[{"rotate-x":b()}],"rotate-y":[{"rotate-y":b()}],"rotate-z":[{"rotate-z":b()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:k()}],"skew-x":[{"skew-x":k()}],"skew-y":[{"skew-y":k()}],transform:[{transform:[xe,Oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",xe,Oe]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",xe,Oe]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Je,Ms,Co,O_]}],stroke:[{stroke:["none",...B()]}],"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 l7(...e){return s7(RG(e))}const u7=h.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:n}){const t=e,i=n,o=CG(t,"class"),r=Rr(o,i);return(s,u)=>(h.openBlock(),h.createBlock(h.unref(EG),null,{default:h.withCtx(()=>[h.createVNode(h.unref(yG),h.mergeProps({...h.unref(r),...s.$attrs},{class:h.unref(l7)("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",t.class)}),{default:h.withCtx(()=>[h.renderSlot(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),d7=h.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(SG),h.normalizeProps(h.guardReactiveProps(n)),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),c7=h.defineComponent({__name:"PopoverBase",props:h.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 n=e;let t=null;const i=h.useModel(e,"open");function o(l,d){if(!n.disabled){if(t&&(clearTimeout(t),t=null),d===0){r(l);return}t=setTimeout(()=>{r(l),t=null},d)}}const r=l=>{i.value=l};function s(){n.trigger=="hover"&&o(!0,n.delay)}const u=()=>{n.trigger=="hover"&&o(!1,n.delay)};return(l,d)=>(h.openBlock(),h.createBlock(h.unref(bG),{open:i.value,"onUpdate:open":d[0]||(d[0]=c=>i.value=c)},{default:h.withCtx(()=>[h.createVNode(h.unref(d7),{class:h.normalizeClass(n.triggerClass),onMouseenter:s,onMouseleave:u},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default")]),_:3},8,["class"]),l.disabled?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(h.unref(u7),{key:0,side:l.side,align:l.align,onMouseenter:s,onMouseleave:u},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"content")]),_:3},8,["side","align"]))]),_:3},8,["open"]))}}),_7={class:"flex gap-2"},f7={class:"w-full relative grow"},p7={class:"flex gap-2 absolute right-0 bottom-0"},a7={class:"shrink-0 cursor-pointer relative"},v7={class:"h-11 w-11 rounded-full flex-center bg-[#002E6B]"},m7=h.defineComponent({__name:"InputChat",props:h.mergeModels({data:{}},{modelValue:{},modelModifiers:{}}),emits:h.mergeModels(["sendMessage"],["update:modelValue"]),setup(e,{emit:n}){const t=e,i=n,o=h.useModel(e,"modelValue");let r=1;const s=h.ref(null);h.ref([]);const u=h.ref(null),l=h.ref(!1),d=async p=>{var y,T,A;const a=Date.now();let v="",m=[];if(p=="message"){if(!o.value)return;v=o.value,o.value=""}else if(p=="file"){const S=c();if(!S)return;const N=URL.createObjectURL(S);m=[{file_name:String(a),file_path:N,file_local:S}]}o.value="",r++;const g=((y=t.data)==null?void 0:y.id.toString())+"-"+r;console.log(Vt().tz(zl).format(gr.DATE_FORMAT_FULL));const E={conversation_id:135,created_at:Vt().tz(zl).format(gr.DATE_FORMAT_FULL),id:g,message:v,receiver_id:((T=t.data)==null?void 0:T.id)||0,sender_id:(A=rt.value)==null?void 0:A.id,status:"read",attachments:m};i("sendMessage",E)},c=()=>!s.value||!s.value.files||s.value.files.length===0?null:s.value.files[0],_=()=>{d("file")},f=p=>{var a,v,m;o.value=(o.value??"")+(((a=p==null?void 0:p.i)==null?void 0:a.replace("undefined",""))??""),l.value=!1,(m=(v=u.value)==null?void 0:v.focus)==null||m.call(v)};return(p,a)=>(h.openBlock(),h.createElementBlock("div",_7,[h.createElementVNode("div",f7,[h.withDirectives(h.createElementVNode("input",{class:"w-full chat-input h-11 px-4 border border-chat-haze-200",ref_key:"chatInputRef",ref:u,placeholder:"Send Message",onKeydown:a[0]||(a[0]=h.withKeys(v=>d("message"),["enter"])),"onUpdate:modelValue":a[1]||(a[1]=v=>o.value=v)},null,544),[[h.vModelText,o.value]]),h.createElementVNode("div",p7,[h.createVNode(c7,{open:l.value,"onUpdate:open":a[3]||(a[3]=v=>l.value=v),align:"end",side:"top"},{content:h.withCtx(()=>[h.createVNode(h.unref(QR),{class:"!w-[300px]",native:!0,offset:2,"hide-search":"",onSelect:f})]),default:h.withCtx(()=>[h.createElementVNode("button",{onClick:a[2]||(a[2]=h.withModifiers(v=>l.value=!l.value,["stop"])),class:""}," 😊 ")]),_:1},8,["open"]),h.createVNode(h.unref(QR),{class:"opacity-0 pointer-events-none absolute",native:!0,offset:2,"hide-search":"",onSelect:f}),h.createElementVNode("button",{class:"h-11 w-10",onClick:a[4]||(a[4]=v=>d("message"))},[h.createVNode(IV)])])]),h.createElementVNode("label",a7,[h.createElementVNode("input",{type:"file",class:"hidden",ref_key:"refInputImage",ref:s,accept:".png, .jpeg, .jpg",onChange:_},null,544),h.createElementVNode("div",v7,[h.createVNode(Lf,{class:"text-white"})])])]))}}),On={Sending:"sending",Sent:"sent",Read:"read",Failed:"failed",Uploading:"uploading",Uploaded:"uploaded"},h7={class:"relative overflow-hidden"},y7={key:0,class:"shrink-0 h-[500px]"},g7={class:"chat-padding-page"},E7=["innerHTML"],T7={key:1},S7=["src","onLoad"],b7=["innerHTML"],I7={key:1},A7=["src","onLoad"],C7=h.defineComponent({__name:"ChatMessage",props:{data:{},message:{},responsive:{},showNewCustomer:{type:Boolean}},emits:["scrollTop"],setup(e,{expose:n,emit:t}){const i=e,o=t,r=h.ref(null),s=()=>{h.nextTick(()=>{const p=document.getElementById("content-chat");p&&(p.scrollTop=p.scrollHeight)})},u=p=>p===0?!0:i.message[p-1].sender_id!==i.message[p].sender_id,l=p=>{var a;return((a=i.message)==null?void 0:a.length)==p+1?!0:i.message[p+1].sender_id!==i.message[p].sender_id},d=()=>{o("scrollTop")},c=()=>{var p;(p=r.value)==null||p.hideLoading()},_=()=>{var p;(p=r.value)==null||p.fixedScroll()},f=p=>{switch(p.state){case On.Sending:return"Sending...";case On.Uploading:return"Uploading...";case On.Sent:return"";case On.Read:return"Seen";case On.Failed:return p.error||"Message failed";default:return""}};return n({scrollBottom:s,hideScrollEvent:c,fixedScroll:_}),(p,a)=>(h.openBlock(),h.createElementBlock("div",h7,[h.createVNode(bp,{class:"bg-white h-full flex flex-col overflow-auto",id:"content-chat",top:"",ref_key:"scrollEventRef",ref:r,onGetDataTop:d},{default:h.withCtx(()=>[p.showNewCustomer?(h.openBlock(),h.createElementBlock("div",y7,[h.createVNode(gR,{class:"h-full",data:p.data},null,8,["data"])])):h.createCommentVNode("",!0),h.createElementVNode("div",g7,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(p.message,(v,m)=>{var g,E,y,T,A,S,N;return h.openBlock(),h.createElementBlock(h.Fragment,{key:v.id},[v.sender_id!==((g=h.unref(rt))==null?void 0:g.id)?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["flex items-end gap-2 mt-2",{"mt-4":u(m)}])},[v.state!=h.unref(On).Sending?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[u(m)?(h.openBlock(),h.createBlock(zo,{key:0,class:h.normalizeClass(["shrink-0",p.responsive=="mobile"?"translate-y-[-2px]":""]),src:((E=p.data)==null?void 0:E.avatar)??"",color:(y=p.data)==null?void 0:y.color,name:(T=p.data)==null?void 0:T.username,size:p.responsive=="mobile"?"sm":"md"},null,8,["src","color","name","size","class"])):(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["shrink-0",p.responsive=="mobile"?"w-8":"w-12"])},null,2)),h.createElementVNode("div",{class:h.normalizeClass(["bg-[#E4E4E4D4] text-left text-chat-haze-600 px-3 py-2 rounded-2xl max-w-xs w-max",{"rounded-tl-none":!u(m),"rounded-bl-none":!l(m)}])},[v.message?(h.openBlock(),h.createElementBlock("div",{key:0,innerHTML:v.message,style:{wordBreak:"break-word"}},null,8,E7)):v.attachments.length?(h.openBlock(),h.createElementBlock("div",T7,[h.createElementVNode("img",{src:(A=v.attachments[0])==null?void 0:A.file_path,alt:"avatar",onLoad:()=>{m==p.message.length-1&&s()}},null,40,S7)])):h.createCommentVNode("",!0)],2)],64)):h.createCommentVNode("",!0)],2)):(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["flex flex-col items-end justify-end mt-2 pl-[60px]",{"mt-4":u(m)}])},[h.createElementVNode("div",{class:h.normalizeClass(["bg-[#D0DFEC] text-[#266699] px-3 py-2 rounded-2xl max-w-xs",{"rounded-tr-none":!u(m),"rounded-br-none":!l(m)}])},[v.message?(h.openBlock(),h.createElementBlock("div",{key:0,innerHTML:v.message,style:{wordBreak:"break-word"}},null,8,b7)):(S=v==null?void 0:v.attachments)!=null&&S.length?(h.openBlock(),h.createElementBlock("div",I7,[h.createElementVNode("img",{src:(N=v.attachments[0])==null?void 0:N.file_path,alt:"avatar",onLoad:()=>{m==p.message.length-1&&s()}},null,40,A7)])):h.createCommentVNode("",!0)],2),m==p.message.length-1&&f(v)||v.state==h.unref(On).Failed?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(["text-chat-haze-200 text-xs mt-1",{"!text-chat-error":v.state==h.unref(On).Failed}])},h.toDisplayString(f(v)),3)):h.createCommentVNode("",!0)],2))],64)}),128))])]),_:1},512)]))}}),R7={class:"h-full flex flex-col overflow-hidden"},M7={key:2,class:"grow"},QM=h.defineComponent({__name:"Home",props:{receiverId:{},responsive:{}},emits:["call"],setup(e,{expose:n,emit:t}){const i=e,o=t;let r=1,s=1,u="";const l=h.ref(!1),d=h.shallowRef(null),c=h.ref([]),_=h.ref(null);h.onMounted(()=>{}),h.onUnmounted(()=>{p()}),h.ref(!1);const f=async()=>{var R;try{await Ap(),u=Cp+((R=d.value)==null?void 0:R.conversation_id),qr(u),Du("chat-home",u,a)}catch(L){console.error(L)}},p=async()=>{var L;const R=Cp+((L=d.value)==null?void 0:L.conversation_id);wu(R),zs("chat-home")},a=(R,L)=>{var j,I,C,O,x;(j=d.value)!=null&&j.id&&((I=L==null?void 0:L.sender_id)==null?void 0:I.toString())==((O=(C=d.value)==null?void 0:C.id)==null?void 0:O.toString());{const P=c.value.findIndex(U=>U.id===(L==null?void 0:L.id));P<0?c.value.push(L):c.value[P]=L,(x=_.value)==null||x.scrollBottom()}},v=async()=>{var R,L;try{const j=i.receiverId,I={page:r,receiver_id:i.receiverId};let C=await Mj(I);C.items=C.items.reverse(),r=((R=C._meta)==null?void 0:R.currentPage)||1,s=((L=C._meta)==null?void 0:L.pageCount)||1,j==i.receiverId&&c.value.unshift(...C.items)}catch(j){console.error(j)}},m=async()=>{var R,L,j;if(r>=s){(R=_.value)==null||R.hideScrollEvent();return}r=r+1,await v(),(L=_.value)==null||L.hideScrollEvent(),(j=_.value)==null||j.fixedScroll()},g=async R=>{const L=i.receiverId;R&&(d.value=R);const j=await Nj(i.receiverId)??null;L==i.receiverId&&(d.value=j,await f())},E=async R=>{var L;try{l.value=!0,c.value=[],await Promise.allSettled([v(),g(R)]),await h.nextTick(),(L=_.value)==null||L.scrollBottom()}catch(j){console.error(j)}finally{l.value=!1}},y=(R,L)=>{const j=c.value.findIndex(I=>I.id==R);if(j>-1){const I=c.value[j];c.value[j]={...I,...L},console.log({...I,...L})}},T=async R=>{var L,j,I,C,O,x;try{c.value.push({...R,state:On.Sending}),Hs(u,{...R,state:On.Sending});let P=[];(L=R==null?void 0:R.attachments)!=null&&L.length&&(y(R.id,{state:On.Uploading}),P=await A(R==null?void 0:R.attachments[0].file_local)),y(R.id,{state:On.Sending}),(j=_.value)==null||j.scrollBottom();const U=new FormData;U.append("message",R.message??""),U.append("receiver_id",((I=d.value)==null?void 0:I.id)??""),P.length&&U.append("url",((C=P[0])==null?void 0:C.url)??""),await xj(U),Hs(u,{...R,state:On.Sent,attachments:P?[{file_name:((O=R.attachments[0])==null?void 0:O.file_name)??"",file_path:((x=P[0])==null?void 0:x.url)??""}]:[]}),y(R.id,{state:On.Sent}),S(!1,(R==null?void 0:R.message)??"")}catch(P){y(R.id,{state:On.Failed,error:typeof(P==null?void 0:P.message)=="string"?P.message:""}),console.log(P.message)}},A=async R=>{if(R==null||R==null)return[];if(R.size>1*1024*1024)throw new Error("File size exceeds limit");const L=new FormData;return L.append("file",R),await wj(L)},S=async(R,L)=>{var x,P,U,H,B,w,V,q,F,$,Y,K,X,Q,Z,b;const j=await Pj({conversation_id:((x=d.value)==null?void 0:x.conversation_id)??0,receiver_id:Number((P=d.value)==null?void 0:P.id)}),I=Vt().tz(zl).format(gr.DATE_FORMAT_FULL),C={id:((U=d.value)==null?void 0:U.conversation_id)??0,receiver_id:Number(((H=rt.value)==null?void 0:H.id)??0),username:((B=rt.value)==null?void 0:B.username)??"",customer_phone:((w=rt.value)==null?void 0:w.phone)??"",avatar:((V=rt.value)==null?void 0:V.avatar)??"",last_message:L,last_message_time:I,created_at:I,updated_at:I,unread_count:((j==null?void 0:j.unread_count)??0)+1,status:1,color:((q=rt.value)==null?void 0:q.color)??""};Hs(`${lo[0]+Number((F=d.value)==null?void 0:F.id)}`,JSON.stringify(C));const O={id:(($=d.value)==null?void 0:$.conversation_id)??0,receiver_id:Number(((Y=rt.value)==null?void 0:Y.id)??0),username:((K=d.value)==null?void 0:K.username)??"",customer_phone:((X=d.value)==null?void 0:X.phone)??"",avatar:((Q=d.value)==null?void 0:Q.avatar)??"",last_message:L,last_message_time:I,created_at:I,updated_at:I,unread_count:0,status:1,color:(Z=d.value)==null?void 0:Z.color};Hs(`${lo[0]+Number((b=rt.value)==null?void 0:b.id)}`,JSON.stringify(O))},N=()=>{d.value&&o("call",d.value)};return n({getData:E}),(R,L)=>{var j;return h.openBlock(),h.createElementBlock("div",R7,[h.createVNode(hV,{class:"shrink-0",data:d.value,onCall:N},null,8,["data"]),(j=c.value)!=null&&j.length?(h.openBlock(),h.createBlock(C7,{key:0,ref_key:"chatMessageRef",ref:_,onScrollTop:m,data:d.value,message:c.value,class:"grow",responsive:R.responsive,"show-new-customer":h.unref(r)>=h.unref(s)},null,8,["data","message","responsive","show-new-customer"])):l.value?(h.openBlock(),h.createElementBlock("span",M7)):(h.openBlock(),h.createBlock(gR,{key:1,data:d.value,class:"grow"},null,8,["data"])),h.createVNode(m7,{data:d.value,onSendMessage:T,class:"p-6"},null,8,["data"])])}}}),N7={},O7={width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x7(e,n){return h.openBlock(),h.createElementBlock("svg",O7,n[0]||(n[0]=[h.createElementVNode("path",{d:"M6.00003 17.9998H30",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 JM=It(N7,[["render",x7]]),P7={},w7={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D7(e,n){return h.openBlock(),h.createElementBlock("svg",w7,n[0]||(n[0]=[h.createElementVNode("path",{d:"M6.00003 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const XM=It(P7,[["render",D7]]),k7={class:"w-full"},L7={class:"text-chat-haze-500 font-semibold"},U7={class:"bg-white rounded-xl border border-chat-haze-100 mt-1 p-4 space-y-4"},B7=["onClick"],j7={class:"flex items-center gap-1 grow text-chat-haze-900"},V7={key:0,class:"flex items-center text-chat-haze-300"},F7={class:"ml-1"},q7={class:"border-chat-haze-100 mx-6"},x_=h.defineComponent({__name:"SubInformation",props:{information:{default:[]},title:{default:""}},setup(e){return(n,t)=>(h.openBlock(),h.createElementBlock("div",k7,[h.createElementVNode("h2",L7,h.toDisplayString(n.title),1),h.createElementVNode("div",U7,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.information,(i,o)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:o},[h.createElementVNode("div",{class:h.normalizeClass(["flex items-center gap-1",{"cursor-pointer":i.click}]),onClick:r=>{var s;return(s=i.click)==null?void 0:s.call(i)}},[h.createElementVNode("div",j7,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(i.icon))),h.createElementVNode("span",null,h.toDisplayString(i.label),1)]),i.value?(h.openBlock(),h.createElementBlock("div",V7,[h.createTextVNode(h.toDisplayString(i.value)+" ",1),h.createElementVNode("span",F7,[h.createVNode(XM)])])):h.createCommentVNode("",!0)],10,B7),h.withDirectives(h.createElementVNode("hr",q7,null,512),[[h.vShow,o<n.information.length-1]])],64))),128))])]))}}),G7={},H7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z7(e,n){return h.openBlock(),h.createElementBlock("svg",H7,n[0]||(n[0]=[h.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),h.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 Y7=It(G7,[["render",z7]]),$7={},K7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W7(e,n){return h.openBlock(),h.createElementBlock("svg",K7,n[0]||(n[0]=[h.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":"1.25","stroke-linecap":"round"},null,-1)]))}const Q7=It($7,[["render",W7]]),J7={},X7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z7(e,n){return h.openBlock(),h.createElementBlock("svg",X7,n[0]||(n[0]=[h.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),h.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 eH=It(J7,[["render",Z7]]),tH={},nH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iH(e,n){return h.openBlock(),h.createElementBlock("svg",nH,n[0]||(n[0]=[h.createElementVNode("path",{d:"M16 2V6M8 2V6",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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),h.createElementVNode("path",{d:"M3 10H21",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 oH=It(tH,[["render",iH]]),rH={},sH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lH(e,n){return h.openBlock(),h.createElementBlock("svg",sH,n[0]||(n[0]=[h.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 uH=It(rH,[["render",lH]]),dH={},cH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _H(e,n){return h.openBlock(),h.createElementBlock("svg",cH,n[0]||(n[0]=[h.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),h.createElementVNode("path",{d:"M15 9.5H7M10 14.5H7",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const fH=It(dH,[["render",_H]]),pH={},aH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vH(e,n){return h.openBlock(),h.createElementBlock("svg",aH,n[0]||(n[0]=[h.createElementVNode("path",{d:"M17 17L21 21",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 mH=It(pH,[["render",vH]]),hH={},yH={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gH(e,n){return h.openBlock(),h.createElementBlock("svg",yH,n[0]||(n[0]=[h.createElementVNode("path",{d:"M3 21L8 16",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.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 EH=It(hH,[["render",gH]]),TH=(e,n=1)=>{let t=(""+e||"").replace(/[^\d*]/g,"");return t.length>10&&(t=t.substring(t.length-10)),t.length==10?(n==4&&(t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"*** $3")),n==3&&(t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"($3)")),n==2?t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"***-***-$3"):t=(t||"").replace(/(\d{3})(\d{3})(\d{4})/,"(***) ***-$3"),t):""},SH={class:"chat-padding-page overflow-auto"},bH={class:"flex flex-col items-center mx-auto"},IH={class:"flex items-center gap-1 mt-3"},AH={class:"text-lg font-semibold text-gray-800"},CH={class:"w-full flex items-center justify-center gap-1"},RH={class:"text-lg font-semibold text-chat-haze-900"},MH=["src"],NH={class:"text-chat-haze-400"},OH={class:"w-full py-6"},ZM=h.defineComponent({__name:"CustomerDetail",props:{receiverId:{},responsive:{}},setup(e){const n=h.computed(()=>{var s,u,l;return[{label:"Points",value:((s=Bn.value)==null?void 0:s.lifetime_point)??0},{label:"Total Visit",value:((u=Bn.value)==null?void 0:u.visit_count)??0},{label:"Spent",value:((l=Bn.value)==null?void 0:l.total_money)??0}]}),t=h.computed(()=>{var s;return[{icon:Y7,label:""},{icon:Q7,label:TH(((s=So.value)==null?void 0:s.phone)??"",2)}]}),i=h.computed(()=>{var s,u,l,d,c,_,f,p,a,v;return[{icon:eH,label:"Check In",value:(s=Bn.value)!=null&&s.visit_count?((u=Bn.value)==null?void 0:u.visit_count)+(((l=Bn.value)==null?void 0:l.visit_count)>1?" times":" time"):"",click:(d=Bn.value)!=null&&d.visit_count?()=>{Un(Ke.CUSTOMER_CHECK_IN)}:null},{icon:fH,label:"Orders",value:((_=(c=Bn.value)==null?void 0:c.order)==null?void 0:_.length)??""},{icon:oH,label:"Appointments",value:((p=(f=Bn.value)==null?void 0:f.appointment)==null?void 0:p.length)??"",click:(v=(a=Bn.value)==null?void 0:a.appointment)!=null&&v.length?()=>{Un(Ke.CUSTOMER_APPOINTMENT)}:null}]}),o=[{icon:mH,label:"Search in the conversation"},{icon:EH,label:"Pin Message"},{icon:uH,label:"Add Groups"}];return(async()=>{var s,u;Bn.value=null,Bn.value=await dV(((u=(s=So.value)==null?void 0:s.phone)==null?void 0:u.slice(1))??"")})(),(s,u)=>{var l,d,c,_;return h.openBlock(),h.createElementBlock("div",SH,[h.createElementVNode("div",bH,[h.createVNode(zo,{src:((l=h.unref(So))==null?void 0:l.avatar)??"",color:((d=h.unref(So))==null?void 0:d.color)??"",name:((c=h.unref(So))==null?void 0:c.username)??"",size:"xl"},null,8,["src","color","name"]),h.createElementVNode("div",IH,[h.createElementVNode("h2",AH,h.toDisplayString(((_=h.unref(So))==null?void 0:_.username)??"n/a"),1),u[0]||(u[0]=h.createElementVNode("img",{src:yR},null,-1))])]),h.createElementVNode("div",{class:h.normalizeClass(["mt-5 text-center mx-auto",{"flex justify-between w-max":s.responsive=="tablet","grid grid-cols-3 w-full":s.responsive=="mobile"}])},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(f,p)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["border-l border-chat-haze-100 first:border-none",{"w-full":s.responsive=="mobile","w-[130px]":s.responsive=="tablet"}]),key:p},[h.createElementVNode("div",CH,[h.createElementVNode("p",RH,h.toDisplayString(f.value),1),f.icon?(h.openBlock(),h.createElementBlock("img",{key:0,src:f.icon},null,8,MH)):h.createCommentVNode("",!0)]),h.createElementVNode("p",NH,h.toDisplayString(f.label),1)],2))),128))],2),h.createElementVNode("div",OH,[h.createVNode(x_,{class:"mb-6",information:t.value,title:"Information"},null,8,["information"]),h.createVNode(x_,{class:"mb-6",information:i.value,title:"History"},null,8,["information"]),h.createVNode(x_,{class:"",information:o,title:"Other Action"})])])}}}),xH={},PH={class:"bg-white border border-chat-haze-200 rounded-lg p-4"};function wH(e,n){return h.openBlock(),h.createElementBlock("div",PH,[h.renderSlot(e.$slots,"header"),n[0]||(n[0]=h.createElementVNode("div",{class:"border-t border-dashed border-chat-haze-200 my-2"},null,-1)),h.renderSlot(e.$slots,"content")])}const eN=It(xH,[["render",wH]]);var tN=(e=>(e.Orange="#F2994A",e.Blue_Teal="#F2994A",e))(tN||{});const DH=h.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:n}){const o=Rr(e,n);return(r,s)=>(h.openBlock(),h.createBlock(h.unref(M8),h.normalizeProps(h.guardReactiveProps(h.unref(o))),{default:h.withCtx(({open:u})=>[h.renderSlot(r.$slots,"default",{open:u})]),_:3},16))}}),kH=h.defineComponent({__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(O8),h.mergeProps(n,{class:"overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"}),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),LH=h.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(t,i)=>(h.openBlock(),h.createBlock(h.unref(P8),h.normalizeProps(h.guardReactiveProps(n)),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},16))}}),UH=h.defineComponent({__name:"CollapseBase",props:{open:{type:Boolean},openModifiers:{}},emits:["update:open"],setup(e){const n=h.useModel(e,"open");return(t,i)=>(h.openBlock(),h.createBlock(h.unref(DH),{open:n.value,"onUpdate:open":i[0]||(i[0]=o=>n.value=o)},{default:h.withCtx(()=>[h.createVNode(h.unref(LH),null,{default:h.withCtx(()=>[h.renderSlot(t.$slots,"trigger")]),_:3}),h.createVNode(h.unref(kH),null,{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["open"]))}}),BH={class:"flex items-center text-chat-haze-400 mb-3"},jH={class:"font-semibold text-lg"},nN=h.defineComponent({__name:"CollapseCheckIn",props:{title:{}},setup(e){const n=h.ref(!0);return(t,i)=>(h.openBlock(),h.createBlock(UH,{class:"relative",open:n.value,"onUpdate:open":i[0]||(i[0]=o=>n.value=o)},{trigger:h.withCtx(()=>[i[1]||(i[1]=h.createElementVNode("div",{class:"w-2 h-2 bg-chat-haze-400 rounded-full absolute left-[-20px] top-2"},null,-1)),h.createElementVNode("div",BH,[h.createElementVNode("span",jH,h.toDisplayString(t.title),1),h.createVNode(XM,{class:h.normalizeClass(n.value?"rotate-90":"rotate-0")},null,8,["class"])])]),default:h.withCtx(()=>[h.renderSlot(t.$slots,"default")]),_:3},8,["open"]))}}),VH={class:"chat-padding-page"},FH={class:"relative pl-4 h-max"},qH={class:"flex justify-between items-center"},GH={class:"text-chat-haze-600 font-bold"},HH={class:"flex justify-between items-center"},zH={class:"text-chat-haze-400 font-normal"},iN=h.defineComponent({__name:"CustomerCheckIn",setup(e){const n=h.computed(()=>{var t;return hR(((t=Bn.value)==null?void 0:t.checkin)??[])});return h.ref(!0),h.ref(!0),(t,i)=>(h.openBlock(),h.createElementBlock("div",VH,[i[1]||(i[1]=h.createElementVNode("p",{class:"font-semibold mb-4"},"Total Point: 666",-1)),h.createElementVNode("div",FH,[i[0]||(i[0]=h.createElementVNode("div",{class:"absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2"},null,-1)),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(o,r)=>(h.openBlock(),h.createBlock(nN,{class:"relative",title:o.year,key:r},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.items,s=>(h.openBlock(),h.createElementBlock("div",{class:"flex flex-col gap-y-3",key:s.id},[h.createVNode(eN,null,{header:h.withCtx(()=>[h.createElementVNode("div",qH,[h.createElementVNode("p",GH,"ID: "+h.toDisplayString(s.id),1),h.createElementVNode("p",{class:"font-bold",style:h.normalizeStyle({color:h.unref(tN).Orange})},h.toDisplayString(s.status),5)])]),content:h.withCtx(()=>[h.createElementVNode("div",HH,[h.createElementVNode("p",zH,h.toDisplayString(h.unref(Vt)(s.created_at).format(h.unref(gr).DATE_FORMAT)),1),h.withDirectives(h.createElementVNode("p",{class:"text-chat-success"},"+"+h.toDisplayString(s.point_bonus)+" points",513),[[h.vShow,s.point_bonus>0]]),h.withDirectives(h.createElementVNode("p",{class:""},"+"+h.toDisplayString(s.point_bonus)+" points",513),[[h.vShow,!s.point_bonus]])])]),_:2},1024)]))),128))]),_:2},1032,["title"]))),128))])]))}}),YH={},$H={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KH(e,n){return h.openBlock(),h.createElementBlock("svg",$H,n[0]||(n[0]=[h.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 WH=It(YH,[["render",KH]]);var Lr=(e=>(e.Confirmed="confirmed",e.Scheduled="scheduled",e.Canceled="canceled",e.Done="done",e.Reminder="reminder",e.Waiting="wait_list",e))(Lr||{});const QH={class:"chat-padding-page"},JH={class:"flex justify-between items-center mb-5"},XH={class:"flex text-chat-haze-300 border border-chat-haze-300 rounded-[99px] px-2"},ZH={class:"relative pl-4 h-max"},ez={class:"flex flex-col gap-y-3"},tz={class:"flex justify-between items-center"},nz={class:"text-lg text-chat-haze-600 font-bold"},iz={class:"translate-y-[-4px]"},oz={class:"flex justify-between items-end"},rz={class:"text-chat-haze-400"},sz={class:"text-chat-haze-400"},lz={class:"text-chat-haze-409 font-medium"},uz={class:"text-chat-haze-409 font-medium"},oN=h.defineComponent({__name:"CustomerAppointment",setup(e){const n=h.computed(()=>{var i;return hR(((i=Bn.value)==null?void 0:i.appointment)??[],"start_time")}),t=i=>{switch(i){case Lr.Confirmed:return"background-color: #E3FFF1; color: #06C270";case Lr.Scheduled:return"background-color: #FFF0FF; color: #6600CC";case Lr.Canceled:return"background-color: #FFE4DC; color: #F15220";case Lr.Done:return"background-color: #E5F0FF; color: #0063F7";case Lr.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)=>(h.openBlock(),h.createElementBlock("div",QH,[h.createElementVNode("div",JH,[o[1]||(o[1]=h.createElementVNode("p",{class:"text-chat-haze-900 font-semibold"},"All Appointment",-1)),h.createElementVNode("button",XH,[o[0]||(o[0]=h.createElementVNode("span",{class:"font-medium"},"Filter",-1)),h.createVNode(WH)])]),h.createElementVNode("div",ZH,[o[2]||(o[2]=h.createElementVNode("div",{class:"absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2"},null,-1)),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(r,s)=>(h.openBlock(),h.createBlock(nN,{class:"relative",title:r.year,key:s},{default:h.withCtx(()=>[h.createElementVNode("div",ez,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.items,u=>(h.openBlock(),h.createBlock(eN,{key:u.id},{header:h.withCtx(()=>[h.createElementVNode("div",tz,[h.createElementVNode("p",nz,"ID: "+h.toDisplayString(u.id),1),h.createElementVNode("div",iz,[h.createElementVNode("div",{class:"w-max rounded-[6px] text-14px px-[10px] py-[5px] mt-2",style:h.normalizeStyle(t(u.status))},h.toDisplayString(u.status),5)])]),h.createElementVNode("div",oz,[h.createElementVNode("p",rz,h.toDisplayString(h.unref(Vt)(u.start_time).format(h.unref(gr).DATE_FORMAT)),1),h.createElementVNode("p",sz," start time: "+h.toDisplayString(h.unref(Vt)(u.start_time).format(h.unref(gr).TIME_12_FORMAT)),1)])]),content:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(u.services,(l,d)=>(h.openBlock(),h.createElementBlock("div",{class:"flex justify-between items-center",key:d},[h.createElementVNode("p",lz,h.toDisplayString(l.employee_name),1),h.createElementVNode("p",uz,h.toDisplayString(l.name),1)]))),128))]),_:2},1024))),128))])]),_:2},1032,["title"]))),128))])]))}}),rN=e=>{try{return JSON.parse(e)}catch{return e}};let Kn=null,P_=[],dz="";const w_="wss://web-socket-test.dev01.dtsmart.dev/web-stream";function cz(){return new Promise((e,n)=>{if(Kn&&Kn.readyState===1){console.log("WebSocket đã kết nối, bỏ qua connect."),e("Connected");return}const t=setTimeout(()=>{var i;(i=Kn==null?void 0:Kn.close)==null||i.call(Kn),n(new Error("WebSocket connection timeout"))},5e3);Kn=new WebSocket(w_),Kn.binaryType="arraybuffer",Kn.onopen=i=>{clearTimeout(t),e("Connected")},Kn.onmessage=i=>{const o=rN(i.data);P_.forEach(r=>{r.callBack(o)})},Kn.onclose=i=>{console.log("Disconnected:",i.reason)},Kn.onerror=i=>{console.error("Socket error:",i),n(i)}})}const _z=async()=>{var n;const e="https://web-socket.dev01.dtsmart.dev/ws/connect";try{const t=await fetch(e,{method:"POST",body:JSON.stringify({clientId:(n=rt.value)==null?void 0:n.tenant_id}),headers:{"Content-Type":"application/json",Authorization:"Bearer -Qixt-ZztiBA5Dxl-EIWG7f2TDhK-ZCj"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.json();return dz=i==null?void 0:i.wsUrl,i}catch(t){console.error(t.message)}},fz=e=>{const n=P_.findIndex(t=>t.key===e);n>-1&&P_.splice(n,1)};class pz{constructor(n,t){pu(this,"socket",null);pu(this,"dataCallbacks",null);pu(this,"server");this.server=n,this.dataCallbacks=t}async init(){return new Promise((n,t)=>{this.server||t(new Error("Missing uuid!")),this.socket=new WebSocket(w_+"?call_uuid="+this.server),console.log(w_+"?call_uuid="+this.server),this.socket.binaryType="arraybuffer";const i=setTimeout(()=>{t(new Error("⏰ WebSocket connection timeout"))},5e3);this.socket.onopen=()=>{clearTimeout(i),n()},this.socket.onmessage=o=>{var s;const r=rN(o.data);console.log(r),(s=this.dataCallbacks)==null||s.call(this,r)},this.socket.onclose=o=>{},this.socket.onerror=o=>{clearTimeout(i),t(new Error("WebSocket connection error"))}})}send(n){var t;try{const i=typeof n=="string"?n:JSON.stringify(n);(t=this.socket)==null||t.send(i)}catch(i){console.error("Send error:",i)}}sendDefault(n){var t;try{(t=this.socket)==null||t.send(n)}catch(i){console.error("Send error:",i)}}disconnect(){this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.readyState===WebSocket.OPEN&&(this.socket.close(1e3,"Manual disconnect"),console.log("🔌 WebSocket closed manually")),this.socket=null),this.dataCallbacks=null}}const D_=h.ref(!1);function az(){const e="notifyIdAppointment",n=async r=>{try{if(D_.value=!1,(await Sj(r.props)).tenant_error){const u=await i()}await t(r.props,r.response)}catch(s){console.log(s)}finally{D_.value=!0}},t=async(r,s)=>{var u,l;await Rj(),await _z(),cz(),wu(Rp+((u=rt.value)==null?void 0:u.id)),qr(Rp+((l=rt.value)==null?void 0:l.id)),s=="mobile"?Un(Ke.CHAT_LIST):Un(Ke.HOME)},i=async()=>{try{const r=window.location.search,s=new URLSearchParams(r),u=s.get("tenant_id")||"",l=s.get("phone")||"",d=s.get("message")||"",c=s.get("customer_name")||"",_=s.get("business_name")||"";return!u||!l||!d||!c||!_?{client_error:!0}:(await Cj({tenant_id:u,phone:l,message:d,customer_name:c,business_name:_}),o(),{})}catch(r){return console.log(r),{client_error:!0}}finally{}},o=()=>{const r=new URL(window.location.href);r.search="",window.history.replaceState({},document.title,r)};return{NOTIFY_ID_APPOINTMENT_NAME:e,initPage:n}}const vz={class:"m-auto w-max"},mz={class:"flex gap-4"},hz=h.defineComponent({__name:"Error",setup(e){const n=()=>window.location.reload();return(t,i)=>(h.openBlock(),h.createElementBlock("div",vz,[i[2]||(i[2]=h.createElementVNode("h1",{class:"font-bold text-chat-haze-900 text-center mb-2",style:{"font-size":"56px"}}," 404 ",-1)),i[3]||(i[3]=h.createElementVNode("p",{class:"text-chat-haze-500 text-center mb-8",style:{"font-size":"20px"}}," Page not found. ",-1)),h.createElementVNode("div",mz,[h.createElementVNode("button",{onClick:i[0]||(i[0]=o=>n()),class:"px-6 py-2 bg-[#004AB3] text-white rounded-lg"}," Try Again "),h.createElementVNode("button",{onClick:i[1]||(i[1]=o=>h.unref(_R)()),class:"px-6 py-2 bg-[#004AB3] text-white rounded-lg"}," Logout ")])]))}}),yz={},gz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ez(e,n){return h.openBlock(),h.createElementBlock("svg",gz,n[0]||(n[0]=[h.createElementVNode("path",{d:"M3 6.5C3 14.5081 9.49187 21 17.5 21C18.166 21 18.8216 20.9551 19.4637 20.8682C20.3747 20.7448 21 19.9292 21 19.01V16.4415C21 15.5807 20.4491 14.8164 19.6325 14.5442L16.4841 13.4947C15.6836 13.2279 14.8252 13.699 14.6206 14.5177C14.3475 15.6102 12.987 15.987 12.1907 15.1907L8.80926 11.8093C8.01301 11.013 8.38984 9.65254 9.48229 9.37943C10.301 9.17476 10.7721 8.31644 10.5053 7.51586L9.45585 4.36754C9.18362 3.55086 8.41934 3 7.55848 3H4.99004C4.0708 3 3.25518 3.62533 3.13185 4.53627C3.0449 5.17845 3 5.83398 3 6.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M21 3L15.5 8.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M15 5V8.5V8.5C15 8.77614 15.2239 9 15.5 9V9H19",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Tz=It(yz,[["render",Ez]]),fu="https://web-socket-test.dev01.dtsmart.dev",Sz=async e=>{const n=fu+"/ws/answer";try{const t=await fetch(n,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.json();console.log(i)}catch(t){console.error(t.message)}},bz=async e=>{const n=fu+"/ws/call",t=await fetch(n,{method:"POST",body:JSON.stringify({from:"18668259612",to:(e==null?void 0:e.phone)||""}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);return await t.json()},Iz=async e=>{const n=fu+"/ws/end-call",t=await fetch(n,{method:"POST",body:JSON.stringify({call_uuid:e}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.json();console.log(i)},Az=async e=>{const n=fu+"/ws/download-record",t=await fetch(n,{method:"POST",body:JSON.stringify({url:e}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Response status: ${t.status}`);const i=await t.blob(),o=window.URL.createObjectURL(i),r=document.createElement("a");r.href=o,r.download="recording.mp3",r.click(),r.remove()},sN=[{type:"audio_chunk",size_bytes:160,hex_preview:"36 25 39 bb c0 41 48 bc c3 32 27 3f c7 f6 ee aa 9f ae b3 9e",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"3f d9 ac b3 3d 3b b9 a8 ac b4 b3 ac af bc ae 9e 9b a5 ac a9",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"b1 a3 b3 a9 a8 a8 ae a3 a7 a6 a6 a8 a7 ab a9 ad af ae aa a6 ab",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"b3 b1 b2 b0 ae ae b0 b2 b3 b1 b1 b0 b0 af af ae ae ae ad ac ac",samples_count:160},{type:"audio_chunk",size_bytes:160,hex_preview:"ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad ad",samples_count:160}];function Cz(){function e(w){return new(window.AudioContext||window.webkitAudioContext)({sampleRate:n})}const n=8e3,t=160,i=h.ref("");let o=e(),r=e(),s=[],u=0,l,d,c=!1,_=null;const f=h.ref(null);let p=null,a;function v(w){const q=new Uint8Array(w.length);for(let F=0;F<w.length;F++){let $=w[F];$=Math.max(-1,Math.min(1,$));let Y=$<0?-$*8191:$*8191,K=$<0?128:0,X=7;for(let b=16384;!(Y&b)&&X>0;b>>=1)X--;let Q=Y>>X+3&15,Z=~(K|X<<4|Q)&255;q[F]=Z}return q}function m(w){w=~w;let q=w&128,F=w>>4&7,Y=((w&15)<<4)+8<<F+3;return Y-=132,Y<0&&(Y=0),q?-Y:Y}function g(w){const V=new Float32Array(w.length);for(let q=0;q<w.length;q++)V[q]=m(w[q])/32768;return V}function E(w){const q=new Float32Array(w.length*6);for(let F=0;F<q.length;F++)q[F]=w[Math.floor(F/6)]||0;return q}const y=async w=>{var q;f.value=w,i.value="";const V=await bz(w);i.value=(q=V==null?void 0:V.call)==null?void 0:q.requestUuid},T=async()=>{var w,V,q,F;(w=l==null?void 0:l.disconnect)==null||w.call(l),(V=d==null?void 0:d.disconnect)==null||V.call(d,l),C(),p==null||p.disconnect(),(F=(q=a==null?void 0:a.getAudioTracks)==null?void 0:q.call(a))==null||F.forEach($=>$==null?void 0:$.stop()),i&&await Iz(i.value)},A=async()=>{try{r||(r=e()),r.state==="suspended"&&await r.resume(),a=await navigator.mediaDevices.getUserMedia({audio:!0}),d=r.createMediaStreamSource(a),l=r.createScriptProcessor(256,1,1),l.onaudioprocess=w=>{const V=w.inputBuffer.getChannelData(0);for(let q=0;q<V.length;q+=t){const F=V.slice(q,q+t),$=v(F)}},d.connect(l),l.connect(r.destination)}catch(w){console.log(w)}},S=async w=>{},N=async()=>{},R=async w=>{},L=w=>{const V=new Uint8Array(w),q=g(V);s.push(q),s.length>3&&s.shift()};async function j(){try{const w=s.shift();if(w){const V=E(w),q=o.createBuffer(1,w.length,n);q.getChannelData(0).set(w);const F=o.createBufferSource();F.buffer=q,F.connect(o.destination),u<o.currentTime+t/n&&(u=o.currentTime+t/n),F.start(u),u+=q.duration}}catch(w){console.log(w)}}const I=()=>{if(c){for(;s.length>0&&u<o.currentTime+.1;)j();_=requestAnimationFrame(I)}};function C(){c=!1,_!==null&&(cancelAnimationFrame(_),_=null),s.length=0}const O=async w=>{L(w)},x=async w=>{O(w)};return{call:y,end:T,handleOfferResponse:R,handleOffer:S,sendOfferOk:N,handleMedia:O,userRemoter:f,testPlay:()=>{for(let w=0;w<sN.length;w++)L(sN[w]);c||(c=!0,I())},handleCallAnswer:w=>{var V;i.value=((V=w==null?void 0:w.data)==null?void 0:V.call_uuid)??""},callAnswer:async w=>{var V;if(w&&w!=i.value)throw new Error("This call isn’t yours");await Sz({call_uuid:i.value,clientId:((V=rt.value)==null?void 0:V.tenant_id)??""})},startPeerConnection:A,startIncomingCall:async w=>{try{if(w&&w!=i.value)throw new Error("This call isn’t yours");if(p=new pz(w,x),await(p==null?void 0:p.init()),c)return;c=!0,o||(o=e()),o.state==="suspended"&&await o.resume(),u=o.currentTime,I()}catch(V){throw T(),new Error(V)}},uuid:i}}const Rz={},Mz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nz(e,n){return h.openBlock(),h.createElementBlock("svg",Mz,n[0]||(n[0]=[h.createElementVNode("path",{d:"M3 6.5C3 14.5081 9.49187 21 17.5 21C18.166 21 18.8216 20.9551 19.4637 20.8682C20.3747 20.7448 21 19.9292 21 19.01V16.4415C21 15.5807 20.4491 14.8164 19.6325 14.5442L16.4841 13.4947C15.6836 13.2279 14.8252 13.699 14.6206 14.5177C14.3475 15.6102 12.987 15.987 12.1907 15.1907L8.80926 11.8093C8.01301 11.013 8.38984 9.65254 9.48229 9.37943C10.301 9.17476 10.7721 8.31644 10.5053 7.51586L9.45585 4.36754C9.18362 3.55086 8.41934 3 7.55848 3H4.99004C4.0708 3 3.25518 3.62533 3.13185 4.53627C3.0449 5.17845 3 5.83398 3 6.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M15 3L21 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.createElementVNode("path",{d:"M21 3L15 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Oz=It(Rz,[["render",Nz]]),xz={class:"relative w-full h-full"},Pz={class:"edit-scrollbar grow overflow-auto w-full min-w-full drawer-content"},wz=It(h.defineComponent({__name:"DrawerBaseCustom",props:{showTitle:{type:Boolean,default:!0},position:{default:"right"},width:{default:550},responsive:{},disabledClose:{type:Boolean}},emits:["update:modelValue","afterClose"],setup(e,{expose:n,emit:t}){const i=e,o=t,r=h.ref(!1),s=h.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}}),u=()=>{r.value=!0},l=async()=>{await o("afterClose"),r.value=!1};return n({close:l,open:u}),(d,c)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["absolute top-0 bottom-0 right-0 left-0 z-[1500] drawer",r.value?"opacity-1":"pointer-events-none opacity-0 delay-300"])},[d.disabledClose?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",{key:0,class:"absolute w-full h-full z-[1500]",onClick:l,onTouchstart:h.withModifiers(l,["prevent"])},null,32)),h.createElementVNode("div",xz,[h.createElementVNode("div",{class:"duration-300 ease-out absolute top-0 bg-white flex flex-col drawer-box",style:h.normalizeStyle(s.value)},[h.createElementVNode("div",Pz,[h.renderSlot(d.$slots,"content",{},()=>[c[0]||(c[0]=h.createElementVNode("div",{class:"flex p-4 content"},[h.createElementVNode("p")],-1))],!0)])],4)])],2))}}),[["__scopeId","data-v-ca098128"]]),Dz=(e,n)=>{let t=e.replace(/\D/g,"");return t!=null&&t.startsWith(n)?t.slice(n.length):t},kz={},Lz={width:"32",height:"32",viewBox:"0 0 24 24",id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg"};function Uz(e,n){return h.openBlock(),h.createElementBlock("svg",Lz,n[0]||(n[0]=[h.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 Bz=It(kz,[["render",Uz],["__scopeId","data-v-e06799fb"]]),jz={},Vz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fz(e,n){return h.openBlock(),h.createElementBlock("svg",Vz,n[0]||(n[0]=[h.createElementVNode("g",{id:"Menu / Close_MD"},[h.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 qz=It(jz,[["render",Fz]]),it={CONNECTING:"Connecting...",CALLING:"calling",RINGING:"ringing",CONNECT_FAILED:"failed",CALL_START:"in-progress",CALL_END:"completed",NO_ANSWER:"no-answer"};function Gz(e){var n={debug:"ALL",permOnClick:!0,deviceParams:{micEnabled:!0,audioConstraints:{audio:!0,video:!1}}},t=null;let i="",o=null,r=null;const s=async y=>{var T,A,S,N,R,L,j,I;try{t||(t=new window.Plivo(n)),(A=(T=t==null?void 0:t.client)==null?void 0:T.on)==null||A.call(T,"onCallAnswered",O=>{d(O)}),(N=(S=t==null?void 0:t.client)==null?void 0:S.on)==null||N.call(S,"onCallTerminated",(O,x)=>c(O,x)),t.client.on("onCallFailed",(O,x)=>{E(O,x)}),t.client.on("onCalling",O=>console.log("onCallFailed",O)),(L=(R=t==null?void 0:t.client)==null?void 0:R.on)==null||L.call(R,"onIncomingCall",(O,x,P)=>{u(P)}),t.client.on("onCallRemoteRinging",O=>l(O)),await((j=t==null?void 0:t.client)==null?void 0:j.login("webcall003079673454891827","123456abcA!"));const C=document.getElementById("go-chat-remote-audio");C&&((I=t==null?void 0:t.client)==null||I.setAudioElement(C)),console.log("Registered with token")}catch(C){console.log("Login error: "+C)}},u=y=>{const T={phone:_(y.src)};console.log(y),e(it.RINGING,T),i=y==null?void 0:y.callUUID},l=y=>{i=y.callUUID,e(it.CALLING),o==null||o()},d=y=>{y.callUUID==i&&(o==null||o(),e(it.CALL_START))},c=(y,T)=>{i===T.callUUID&&(e(it.CALL_END,{message:y==null?void 0:y.reason}),i="")},_=(y,T="1")=>{let A=y.replace(/[^0-9]/g,"");return A!=null&&A.startsWith(T)?A.slice(T.toString().length):A},f=(y=3e3)=>new Promise((T,A)=>{o=null;const S=setTimeout(()=>{A("Time out error!"),o=null,r=null},y);o=()=>{T(!0),o=null,clearTimeout(S)},r=N=>{A(N),r=null,clearTimeout(S)}}),p=async()=>{var y,T;(T=(y=t==null?void 0:t.client)==null?void 0:y.answer)==null||T.call(y,i),await f(3e3)},a=()=>{var y,T;(T=(y=t==null?void 0:t.client)==null?void 0:y.reject)==null||T.call(y,i)},v=y=>{var T,A,S,N,R;(T=t==null?void 0:t.client)==null||T.mute(),y?(S=(A=t==null?void 0:t.client)==null?void 0:A.mute)==null||S.call(A):(R=(N=t==null?void 0:t.client)==null?void 0:N.unmute)==null||R.call(N)},m=async y=>{t.client.call("+"+y,{number_phone:y}),await f(5e3)},g=y=>{var T,A,S,N;y==it.RINGING?(A=(T=t==null?void 0:t.client)==null?void 0:T.reject)==null||A.call(T,i):(y==it.CALL_START||y==it.CALLING)&&((N=(S=t==null?void 0:t.client)==null?void 0:S.hangup)==null||N.call(S))},E=(y,T)=>{r&&(r==null||r(y)),e(it.CALL_END,{message:y})};return{plivoLogin:s,plivoCallAnswer:p,plivoCallReject:a,plivoCall:m,plivoEndCall:g,plivoCallSwishMute:v}}const Hz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zz={width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yz=h.defineComponent({__name:"IconMic",props:{mute:{type:Boolean,default:!1}},setup(e){return(n,t)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.withDirectives((h.openBlock(),h.createElementBlock("svg",Hz,t[0]||(t[0]=[h.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)),[[h.vShow,e.mute]]),h.withDirectives((h.openBlock(),h.createElementBlock("svg",zz,t[1]||(t[1]=[h.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),h.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),h.createElementVNode("line",{x1:"12",y1:"18",x2:"12",y2:"20",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),h.createElementVNode("line",{x1:"10",y1:"21",x2:"14",y2:"21",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),512)),[[h.vShow,!e.mute]])],64))}}),$z={class:"flex flex-col items-center justify-center h-full bg-chat-haze-300 text-white relative"},Kz={class:"h-40 w-40 rounded-full overflow-hidden mb-4 border-4 border-gray-700 flex-center"},Wz={class:"text-center"},Qz={class:"text-2xl font-semibold"},Jz={class:"text-gray-400 mt-1"},Xz={class:"flex items-center justify-center gap-8 mt-10"},Zz=["href"],eY={class:"absolute bottom-6 text-gray-500 text-sm"},lN=h.defineComponent({__name:"Calling",props:{responsive:{}},emits:["userCalling"],setup(e,{expose:n,emit:t}){const{call:i,end:o,handleMedia:r,startIncomingCall:s,handleCallAnswer:u,callAnswer:l,uuid:d,startPeerConnection:c}=Cz(),_=(Y,K)=>{Y==it.RINGING?(q((K==null?void 0:K.phone)??""),T.value=it.RINGING,H()):Y==it.CONNECT_FAILED||Y==it.NO_ANSWER?(U(),T.value=Y):Y==it.CALL_END?(R.value=(K==null?void 0:K.message)??"",U(),T.value=Y):Y==it.CALL_START&&(T.value=Y,P())},{plivoLogin:f,plivoCallAnswer:p,plivoCall:a,plivoEndCall:v,plivoCallSwishMute:m}=Gz(_),g=t,E=h.computed(()=>({[it.CONNECTING]:"Connecting...",[it.CALLING]:"Calling...",[it.RINGING]:"Ringing...",[it.CONNECT_FAILED]:R.value||"Connect Error",[it.CALL_START]:"",[it.CALL_END]:R.value||"Call Ended",[it.NO_ANSWER]:"No Answer"})),y=h.computed(()=>E.value[T.value]??""),T=h.ref(it.CONNECTING),A=h.ref("00:00"),S=h.ref(!1),N=h.ref(!1),R=h.ref(""),L=h.ref(""),j=h.ref(null),I=h.ref(null),C=h.ref(!1);let O=null,x="call";h.onMounted(async()=>{await f("")}),h.onUnmounted(()=>{fz("call-message"),O&&clearInterval(O),R.value=""});function P(){let Y=0;O=setInterval(()=>{Y++;const K=String(Math.floor(Y/60)).padStart(2,"0"),X=String(Y%60).padStart(2,"0");A.value=`${K}:${X}`},1e3)}function U(Y){var K;v(T.value),T.value=it.CALL_END,d.value,clearInterval(O),N.value=!1,Y!=null&&Y.closeModal&&(S.value=!1,(K=j.value)==null||K.close()),C.value=!1,A.value="00:00",O&&clearInterval(O)}const H=()=>{var Y;S.value=!0,N.value=!0,(Y=j.value)==null||Y.open()},B=()=>{m(!C.value),C.value=!C.value},w=async Y=>{try{T.value=it.CONNECTING,I.value=Y,H(),x="call",await a(Y.phone),T.value=it.CALLING}catch(K){U(),console.log(K),R.value=(K==null?void 0:K.message)||JSON.stringify(K),T.value=it.CONNECT_FAILED}},V=async()=>{try{await p()}catch(Y){U(),T.value=it.CONNECT_FAILED,R.value=(Y==null?void 0:Y.message)||JSON.stringify(Y)}},q=async Y=>{var Q;let K=null;try{I.value=null;let Z={phone:Dz(Y,"1"),client_id:((Q=rt.value)==null?void 0:Q.tenant_id)??""};K=await cV(Z)}catch(Z){console.log(Z)}const X={username:(K==null?void 0:K.full_name)||"Unknown Name",phone:"1"+(K==null?void 0:K.phone)};I.value=X,g("userCalling",I.value)},F=async()=>{Az(L.value)},$=()=>{L.value=""};return n({startCall:w,endCall:U,userRemoter:I,callStatus:T,answer:V,label:y}),(Y,K)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(wz,{ref_key:"drawerVisibleRef",ref:j,width:500,"disabled-close":N.value,responsive:Y.responsive,onAfterClose:$},{content:h.withCtx(()=>{var X,Q,Z,b,M;return[h.createElementVNode("div",$z,[h.createElementVNode("div",Kz,[h.createVNode(zo,{class:"",src:((X=I.value)==null?void 0:X.avatar)??"",id:((Q=I.value)==null?void 0:Q.id)??"",color:(Z=I.value)==null?void 0:Z.color,name:(b=I.value)==null?void 0:b.username,size:"xxl"},null,8,["src","id","color","name"])]),h.createElementVNode("div",Wz,[h.createElementVNode("h2",Qz,h.toDisplayString((M=I.value)==null?void 0:M.username),1),h.createElementVNode("p",Jz,h.toDisplayString(E.value[T.value]),1)]),h.createElementVNode("div",Xz,[T.value==h.unref(it).RINGING?(h.openBlock(),h.createElementBlock("button",{key:0,onClick:V,class:"w-16 h-16 bg-[#22C55E] hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(Tz)])):h.createCommentVNode("",!0),L.value&&T.value==h.unref(it).CALL_END?(h.openBlock(),h.createElementBlock("button",{key:1,href:L.value,download:"recording.mp3",onClick:F,class:"w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(Bz)],8,Zz)):h.createCommentVNode("",!0),T.value==h.unref(it).CALL_START?(h.openBlock(),h.createElementBlock("button",{key:2,onClick:K[0]||(K[0]=k=>B()),class:"w-16 h-16 bg-white hover:bg-green-600 text-black rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(Yz,{mute:C.value},null,8,["mute"])])):h.createCommentVNode("",!0),T.value==h.unref(it).CALL_END?(h.openBlock(),h.createElementBlock("button",{key:3,onClick:K[1]||(K[1]=k=>U({closeModal:!0})),class:"w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"},[h.createVNode(qz)])):h.createCommentVNode("",!0),T.value!=h.unref(it).CALL_END?(h.openBlock(),h.createElementBlock("button",{key:4,onClick:K[2]||(K[2]=k=>U()),class:"w-16 h-16 rounded-full bg-[#EF4444] hover:bg-red-700 flex items-center justify-center"},[h.createVNode(Oz)])):h.createCommentVNode("",!0)]),h.createElementVNode("p",eY,"Duration: "+h.toDisplayString(A.value),1)])]}),_:1},8,["disabled-close","responsive"]),K[3]||(K[3]=h.createElementVNode("audio",{id:"go-chat-remote-audio",autoplay:""},null,-1))],64))}}),tY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAInSURBVHgBzVVNTttQEJ55xgltF303qDlBc4T0BGELqBJZNAh1kWRREGKBs0ARdNGyqCLoIpFayJYj+AjpCXBv4G5owPEbZmJhQf6I5SDxSc9+42fPN5558z2AZwY+9UKz1XaMyWmljB5fHfh722Uf0hA0W7+KaskuIZlVNh2YL8weEPaiqN8YJXxE8PVn94CIXAAKeMnj+R804JMygTEQPHxXKdBolCYFDiK+52+K/I3mufvl01pjjODeuQE46ds3rlsuB5ACzVbXsSxTY5dVIqjvbq1/Twgkz5aVv2Kzs1NZK0MGHJ1edBChdG3frEiQSh5akCvKPQzNCWTEAEki169u85tiDwmYocDXYP/zRg8yYr8iPiggjDdITAD4ji8+LAzIqcG3CQHnTHM1UhV1pnvkYJGchGAajs8urmTMa0/CTAIBpbRHsTRrcaeyvpLGnoThH3CX/uVQHFgctInwX0KAKNIAGhYEVgQHFPkJAT8QQx/+OC9ARhyetQuiSQTUSwhyubAjzWHbqgoZYcNy7CNSntwSsTs6/V1DVN9EjybJ7lNw2239ZpBnwYQaZ6Sxu7XhPiKISc5dltsDiFe88Jbq9/Ih54RlWVXACbWKN4gznD5Q0jGC2FHXUYqYiEqcwctru19/HS7zn9GmpJEDGNMrqaGcHf851aMyP/XI5A6VHrrkIYV3RiObF1MbjZk9Zljl4Zso+rC3/dGDReOYt60UD14y7gClAO8fcj4wXgAAAABJRU5ErkJggg==",nY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFASURBVHgBtZXPUYNAFMa/h+N4lJMz5iLpICWQCkKswBasINCBR49WoOlASsAKWMc/XPEYNfvcBRQQQ9A8fzMM7Czsj33sfgD/DG29I0g9YN8F2O12vissxwq/EgQPPrA3A1FgBvUwjATECfRr9F3YFpxmCzCH2AWiENfHUVcgMfgnjHMsRxe1IMg8M8UUcuTg1diUK3fK9tqHLGZBHJzZi0qACcTRXkPgnEAahw5rAZELaZi8WrCB9PKoOIa2f6JXIEG5TOfZrZmTD1li3Iym5QxY30Maxos9VSXiHOJo1RA4CvIkDcHqCnZ7i/IW1wKTGeY7RJCC+Su223EdPIVm0y2wC40k7QoKiUlWaCuaoQitFraMSecZYgVNd0WpbTWaXdjE/Jn73mwofTs5rs4KvJ7+ZfDtBI8T89OXD0JJPgAwJmyx5BPTjwAAAABJRU5ErkJggg==",iY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKdSURBVHgBtVVNbtpAFH7jMZh0xRHICaAnKJyg2SaoIiyaCHWRsGgiVphFhaAbsqgQYWFQBcmu9ASlJwg3CL2BuwnFMDN9D0zq2KFYIfmkke3n9/83AC8MFpax/qWXgggr07sQ02KpkB+HkQtloNq0EpwbPwBUHEVsJMXvItNdM5+3N8lqEAKcx8jzhBDaayFYBg1BbGaYYWQ3GiDvUeEhet4pFfbHdJSCCxTMmZYV39qA6z3mHSorWjTqNCiKHSd6upUBv/crenGZ+y5j7GTJsx6694NC3nGMtAYyoRhLYgfsKVA25r3iF8R6NDiXOSp+rX090OT811yq0TQ2H3mLz1ae6rphYW7T/1QoGz0cKUcVzz5kR/BohFcop1BOpVDVfT2U0gaT6CRPhhYRUJ6RKY2nIqUc+r1YBzdtmVX0xh89pWksxZgqu1126qaI+htG58dZE54I16Ehnfpl/0RjkCT6oshCqO/4SH1uX5VhS7g6EkKp7r2BUiHbofTgMbcxQrKkg3SVjrIdoj1YFbVWz8TClvGYH9/vV56q3JvqwC5aGRFCZEqFd0MIgXqzdwicWX7lhMCgLRmUzbmeg7DggG0K9mNNsmaSWVyC+g3PgICBavNremFCLVouHATQIMY/0Z3hgx6wiINCTynZg+ldrRF6Pz8+GHj/RWLOYDYzLF1n9H/03wgY094Qk3e51Vr9vVcz44Yx+EYHB+m2fomFdeEuvzE2R3JjBKggjjtpAe+OQvpwPhd5onPOLeS0aq3rt1JOFtcn/h/jYkxsNCCl+kltWm/3b3Dlp7D1bKVY8ezooOFh261ia+I2LeM2vUXeITmBGyEwO4EU0WWCzF1UPqa+vos4u5jzhp+Ppp+uTwlwQcNEvNOYE+B7cfwFWxpSlELLvWMAAAAASUVORK5CYII=",oY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFOSURBVHgB3ZTRTcMwEIb/SyqxQ0HImYAyAekEhElgg5YNkgkKE+AN6AaUCYgEFa+8VqI5bJeWNHaCA36BX0pk3/nuOzvnAH9d5L0yexUgvjdjXo0hk9InLIKvCDP1Fuahg5lvmB8ge05V2WnNkm5soQA0mNi2eOIR6QGwq9/KaxfdAPNh4/bz1r7sSXRkaHSRqSg+RxQJMI9U5Z3BNS1AUYlq/QisF5DH0gZcLB/UdIQwmuNuONaD2hGRQDjtCv0CcHWNUGIubIA8ypXj9xCdQx5Ot1P7V5EtpyDy6vHvkrsBBvKSq664RK/kVaFO4appbrkHcY7+unEZWwDvAoHUtoMf3Ico7QHAGXrn5xOXeeBcTHDtoASj+PTrBhB7XqYULi7cEvvBqv14dQo5zM2jx/adEf4A3XIbzVWyxPS2TN52fj3WNqZEgW4bMf9MH0h7ZyKP51Q2AAAAAElFTkSuQmCC",rY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHPSURBVHgB7VVNTsJQEJ7XWohxU0/g8wRyhHICdasxoQsXxIVuJCFu2BBi3bgxxLooiQGWhBPIEeAGvQF1o5HaN84jFCotqDT+LPwWbd/MdL7pe9NvAH4Tlt08vbxtna3ql1CWORlje0yB3VX945h5Q8Vx9I2RVkDGdshtkEmnqH7iy4g5JCcypcEwGATBqFcumu5CAuummWMaPNBLOgB6MLlTpYkESASRVBQLru/j/sXJYT9GUKs7XFWzlBxABIFZLh71ru5a43Xp+CCfRBD1y+JAYx35xU/ay3bFND0ZMz0DFTIG3fgrVSCTS5sQoosCurAAUX+Jqg6oMEmwPsoWYsHUEdeW3RpCSlCeoWW3nXAd6SK2RRcXUoLOyxUCNsP12swBOiJwi/YV0gCRKyp4MYKJl06dQRrg3Po9AbXj+YKO+SzCzgqhwDfjn+APEdA/4FGP6ZAeugjYYxKBNHJICVJYDgq6MQKSLimxeq1+b8CKqNpOTso2AvZjBJmM35Dar6qqU5XS+0XIwjTIdlDqWaD0Qnts4Ew0ndOc8miqufTsfZBbp8nGp0PKh3wpaeDMKmlz2i6DqSxHn7clRXBZ9nFzyGIQB8+0C+Gg+TG8AfnSxY/CrDxpAAAAAElFTkSuQmCC",sY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAE0SURBVHgB7ZUxTsMwFIb/F6haBiBILDCFE8DcqZwAIw4ANyjdEJfgCnABGnGCHKE3SLoACyhILC3FDzuSq7SYCIWH2qHfEP+x4/yJn+UfWChnz12ox8va44agahCaFQgntccN5O1VaQQ0OqCga+5CMN/5Z9N50fKkB3wOEB9k1QYqDUGtvpnRQR2Ib6HHPWOUu665JWrd1H65hekC1OzPeE6VeorMF6SQgBDhfn9oZekP9BGk0PrYyZIBRRAjCJ1ad+LheudwcyOABM0GRe14zmB3i95GE4jw+s7bTk8N2lcvudnXEIF56KTMmlSwMlgqA8ohBvkOOy1owJnHYC2BGOPBd4N4LzPXBH/FZkIpeGaLzKPTH9PrdyRF4JT9vI/ZbCiObzIth6jEFtTW7yPxRea/8wVMu1qdJpPWlgAAAABJRU5ErkJggg==",lY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOASURBVHgBvVVNTttQEJ7xX0pZNDeoOUHDCWpuQHcFVIEXUKEuEhbQoi5iFggRKgGLChEqBVQRVlW5QcwJSk+Ae4N0AyTx8+uM7RccExRUqR3Jij2Z975533wzD+AfG44K2Px8WrIM6UjEF4Box04JbZTRRRj1zteX3eCvALYOvjqGoVelBCd1BYgQpO9F8pfSHfxeV658fDd3+WiAnaPmLm1QkbQpSHlyY3X3PNdtDyZwZgNEjq5jlT5tRPRWF2c2RgLU6mcN4mAhAti/NTtefuNhtn146hEAAcnjtaU590GAnaMzokR69Gy8fzvnKb/XaBTHwydl8pdoRZFPJUTXz/KvQBC1vdXF1yv3AGpUTDDxR37zrYOGreuFVkIDMM/ttC6BEJ2pLEitfrpHW5aFEOR/47NP6yNZuMucZzdnM4xCg/zAi1YXZyfpmRICJ4iOIgE3srGm2eW1ga7rVeXTVJacVQRyoEhZv8qIbX15JiD/Pr06n758e678K1QvYuCE/SzvPoCmmdNxhNB8GDDDTvxRADmLoiiO7fWuJ7J+ixSXnBydPgAV5iX9XHJmOYAgSUBz8gA6aHY2JnsKiHuGGvMOgJSBcE+ODEgq8Cm4zHQpPzchsP6pye4nFe8XAMo43oARFgp0dV22qKBXtaOmTy6SKZRYEFGI7qj18QmiCH7RIntYAGdIqiHlSDfWtISApXxjdiaHZZ9aMRL4uw9AEKxvmxsqG8XfiRpuQdfhGcs1bjTAmM6YqpylyishSr8PEGIv/hjrWhUVuH3YnB7vWVcmNR/rXUqcBG4wli3K9tNegfx6q1ZvXilJsulgOQkreJ7kk9pOvdmiDO1rOnrhFriJWjKh5IKKNk9ZvaLf71xYCEnrOjaYKhLAPIfxOp5bDEgxwRo1ZIYiLqbgJrPHw7GqYTzhRTbxOGVZHTqVbGsaliEBtJWCuOupw7nQNp+eZxm/8/hW+2p3xeROlftSRhUeeHS4Yy5i0p1AfumkoTY/IunYeB39f8KDTg3K7N3QB2CjUVvh4Jg7xH5fqO5UxhJdX5o75ncWAsUmbNLa/CwbeuHczXe+weQGj2ZNK3hcC/5fgHQ7Zvc8HeELMZ10f3xYmq3k93rwytys012MuKuuTKQ6SEAl4yClirvWD0MxMAwfBaCMr0ZNE9M8r+KRAkyF5Gb7iSH6aw/cxf/N/gA3c81+EARp1gAAAABJRU5ErkJggg==",uY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMESURBVHgBvVVNTxNhEH5mi5SAhz2RgBjbeNSEkhivLVfiYds/QDhzKPyCll9AORoTiX8AS+Ld9Wa8CAfPXVTaxFONH8hH93Vmdtv9KpaY6CR72Nn3nXme+XgW+MdGE084n0uAVYFFyzAoBLeoD99/A5y30S56f5fA+VQBTTUAUwk9XviI2fyUwhAuzGAb7aWjmyeodXcZ7ZYGNOYFcNFipP0kgF4BGDAIi0EwM6ImDhZ2MNFqvX1Uu4ZL04LTsXETc06beqd2uo8/Mqj1Goy4yc8O2neaUQBOZM3U+XiJv9lcEmZ16SbqL0mIGhyxhYPF7WwCaSZZ77PBuRRkXgPaYKmzlKoCLd/5ajIJsyarzgDYf9cVlxVxye3qpXjwAEJAWy69XFzhZxWGipBGUz5VksumxqBcY+ixRihlWoyfbFLcHyJSay9I8/eUSa17L/LzIOhQsF/He8TAOCECN4noqhB+95AxPzjrD4pJP09cgL0SS4AypL6ZpZny4oeTRoUQRPKOsiAPllmOEhDJOPYzMaQUgMvf6zxJhZFfl1Dn3x27ySQDEACYwiQztKFTRPkOqj2XHcMtlinamHQ9YGD8EyDUmXEsDPHk+BzMhOh4lM35yvU6JLuCr1EC0JEmSG+uvPM0dJ7Nr2+u3V7XtTFkb67NlU+eLtW1VGnTyVOGrryGJZKJkFzToj/N4OBHh8VO5tw+fHuG778MlAHbo/vTqD//xn3IgSWCGfnVSOxYnzQWKy3im1ztBtsq1DFjx7ZXbevJHFqvfqBUvAV7luB+uIjj9sKS9TlOR99lIRHfZDPY0YBWvsHedaR6slwMyB51LlF+mEfKCspetExB+iMtihLIphp/T2VaBC9e1sczOO5cJd7tWSuZQoRuJJTRvyF5qr20Fa56wqQcQwaF+RwO352h/9NHxuRuSsvG/3CG0huzyoNprb8kkF54Xwap4MxeAKbMGptAUBh/BeGoDVlIcOlBKrgbyHM2+PUMEmxUUR2GUub+BHtCLH4+Het4X/Mv/m/2GwzhUiYSevSbAAAAAElFTkSuQmCC",dY={class:"bg-white rounded-t-3xl shadow-lg pb-2 flex grid grid-cols-4 h-[80px]"},cY=["disabled","onClick"],_Y=["src"],fY=["src"],pY=h.defineComponent({__name:"Footer",setup(e){const n=[{icon:tY,iconActive:nY,title:"Chat",value:Ke.CHAT_LIST,click:()=>{Ht.value!=Ke.CHAT_LIST&&Un(Ke.CHAT_LIST)}},{icon:iY,iconActive:oY,title:"Review",value:Ke.TENANT_ERROR,disabled:!0},{icon:rY,iconActive:sY,title:"Booking",value:Ke.TENANT_ERROR,disabled:!0},{icon:lY,iconActive:uY,title:"Go Admin",value:Ke.TENANT_ERROR,disabled:!0}];return(t,i)=>(h.openBlock(),h.createElementBlock("div",dY,[(h.openBlock(),h.createElementBlock(h.Fragment,null,h.renderList(n,o=>h.createElementVNode("button",{class:h.normalizeClass(["flex flex-col justify-center items-center text-blue-600",{"opacity-[0.6]":o.disabled}]),key:o.value,disabled:o.disabled,onClick:r=>{var s;return(s=o.click)==null?void 0:s.call(o)}},[h.withDirectives(h.createElementVNode("img",{src:o.icon},null,8,_Y),[[h.vShow,h.unref(Ht)!=o.value]]),h.withDirectives(h.createElementVNode("img",{src:o.iconActive},null,8,fY),[[h.vShow,h.unref(Ht)==o.value]]),h.createElementVNode("span",{class:h.normalizeClass(["text-sm text-chat-haze-400 font-medium mt-1",{"text-chat-primary":h.unref(Ht)==o.value}])},h.toDisplayString(o.title),3)],10,cY)),64))]))}}),aY={key:0,class:"m-auto flex-center sc-full"},vY={key:2,class:"relative flex flex-col mx-auto w-full max-w-[350px] h-full bg-[#F9FAFC] overflow-hidden chat-mobile pt-4"},mY={key:0,class:"text-[#141B34] px-6 shrink-0"},hY={class:"text-xl font-semibold text-chat-haze-900 ml-3"},yY={class:"grow overflow-hidden"},gY={key:3,class:"flex gap-4 h-full relative"},EY={class:"chat-box-white grow flex flex-col h-full pt-6 overflow-hidden"},TY={key:0,class:"text-[#141B34] px-6"},SY={class:"text-xl font-semibold text-chat-haze-900 ml-3"},bY={class:"grow overflow-hidden"},IY=h.defineComponent({__name:"App",props:{token:{},id:{},domain:{},response:{default:"tablet"},isLib:{type:Boolean}},emits:["userCalling"],setup(e,{expose:n,emit:t}){const i=[{id:Ke.HOME,backFunc:null,backTitle:""},{id:Ke.CUSTOMER_DETAIL,backFunc:()=>{Un(Ke.HOME)},backTitle:""},{id:Ke.CUSTOMER_APPOINTMENT,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:Ke.CUSTOMER_CHECK_IN,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Checkins"}],o=h.computed(()=>[{id:Ke.CHAT_LIST,backFunc:r.isLib?void 0:()=>{_R()},backTitle:"ChatBiz"},{id:Ke.HOME,backFunc:()=>{Un(Ke.CHAT_LIST)},backTitle:""},{id:Ke.CUSTOMER_DETAIL,backFunc:()=>{Un(Ke.HOME)},backTitle:""},{id:Ke.CUSTOMER_APPOINTMENT,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Appointments"},{id:Ke.CUSTOMER_CHECK_IN,backFunc:()=>{Un(Ke.CUSTOMER_DETAIL)},backTitle:"Checkins"}]),r=e,s=t,{initPage:u}=az();h.onMounted(()=>{S(),window.addEventListener("resize",S)}),h.onUnmounted(()=>{window.removeEventListener("resize",S)});const l=h.computed(()=>d.value==="mobile"?o.value.find(N=>N.id==Ht.value):i.find(N=>N.id==Ht.value)),d=h.computed(()=>r.response=="mobile"?r.response:p.value),c=h.computed(()=>{var N;return((N=y.value)==null?void 0:N.listConversations)??[]}),_=h.computed(()=>{var N;return((N=c.value)==null?void 0:N.reduce((R,L)=>R+((L==null?void 0:L.unread_count)??0),0))??0}),f=h.computed(()=>{var N;return((N=v.value)==null?void 0:N.callStatus)??null}),p=h.ref("tablet"),a=h.ref(),v=h.ref(null),m=h.ref(null),g=h.ref(null),E=h.ref(null),y=h.ref(null),T=async N=>{var R,L;(m.value!=(N==null?void 0:N.receiver_id)||d.value==="mobile")&&(Ht.value!=Ke.HOME&&Un(Ke.HOME),m.value=N==null?void 0:N.receiver_id,await h.nextTick(),(R=y.value)==null||R.handleReadMessage(),(L=E.value)==null||L.getData(N))},A=N=>{var R;(R=v.value)==null||R.startCall(N)},S=Ur(()=>{var R;if(!a.value)return;(((R=a.value)==null?void 0:R.offsetWidth)??0)>=640?p.value!="tablet"&&(p.value="tablet"):p.value!="mobile"&&(Ht.value==Ke.HOME&&(Ht.value=Ke.CHAT_LIST),p.value="mobile")},50);return u({props:r,response:r.response}),n({get unreadCount(){return _.value},get callStatus(){return f.value},getUserRemote:()=>{var N;return((N=v.value)==null?void 0:N.userRemoter)??null},startCall:async()=>{var N;await((N=v.value)==null?void 0:N.answer())},endCall:()=>{var N;return(N=v.value)==null?void 0:N.endCall()}}),(N,R)=>{var L,j;return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["go-chat-main max-w-full",{"p-8":!N.isLib}]),id:"appChatMain",ref_key:"appChatRef",ref:a},[h.unref(D_)?h.unref(Ht)==h.unref(Ke).TENANT_ERROR?(h.openBlock(),h.createBlock(hz,{key:1})):d.value=="mobile"?(h.openBlock(),h.createElementBlock("div",vY,[h.createVNode(lN,{ref_key:"callingRef",ref:v,onUserCalling:R[0]||(R[0]=I=>s("userCalling",I)),responsive:d.value},null,8,["responsive"]),(L=l.value)!=null&&L.backFunc?(h.openBlock(),h.createElementBlock("div",mY,[h.createElementVNode("button",{class:"flex items-center",onClick:R[1]||(R[1]=I=>l.value.backFunc())},[h.createVNode(JM),h.createElementVNode("span",hY,h.toDisplayString(l.value.backTitle??""),1)])])):h.createCommentVNode("",!0),h.createElementVNode("div",yY,[h.withDirectives(h.createVNode(mR,{ref_key:"chatListRef",ref:y,class:"w-full max-w-[500px] !bg-[#F9FAFC]",responsive:d.value,onSelectReceiver:T,"receiver-id":m.value,"onUpdate:receiverId":R[2]||(R[2]=I=>m.value=I)},null,8,["responsive","receiver-id"]),[[h.vShow,h.unref(Ht)==h.unref(Ke).CHAT_LIST]]),h.withDirectives(h.createVNode(QM,{ref_key:"homeComponentRef",ref:E,"receiver-id":m.value,class:"h-full pt-4",onCall:A,responsive:d.value},null,8,["receiver-id","responsive"]),[[h.vShow,h.unref(Ht)==h.unref(Ke).HOME]]),h.unref(Ht)==h.unref(Ke).CUSTOMER_DETAIL?(h.openBlock(),h.createBlock(ZM,{key:0,ref_key:"customerDetailRef",ref:g,"receiver-id":m.value,class:"h-full",responsive:d.value},null,8,["receiver-id","responsive"])):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_CHECK_IN?(h.openBlock(),h.createBlock(iN,{key:1,class:"h-full"})):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_APPOINTMENT?(h.openBlock(),h.createBlock(oN,{key:2,class:"h-full"})):h.createCommentVNode("",!0)]),h.unref(Ht)!=h.unref(Ke).HOME?(h.openBlock(),h.createBlock(pY,{key:1,class:"shrink-0"})):h.createCommentVNode("",!0)])):(h.openBlock(),h.createElementBlock("div",gY,[h.createVNode(mR,{ref_key:"chatListRef",ref:y,class:"w-[38%] max-w-[500px] min-w-[450px]",responsive:d.value,onSelectReceiver:T,"receiver-id":m.value,"onUpdate:receiverId":R[3]||(R[3]=I=>m.value=I)},null,8,["responsive","receiver-id"]),h.createElementVNode("div",EY,[(j=l.value)!=null&&j.backFunc?(h.openBlock(),h.createElementBlock("div",TY,[h.createElementVNode("button",{class:"flex items-center",onClick:R[4]||(R[4]=I=>l.value.backFunc())},[h.createVNode(JM),h.createElementVNode("span",SY,h.toDisplayString(l.value.backTitle??""),1)])])):h.createCommentVNode("",!0),h.createElementVNode("div",bY,[h.withDirectives(h.createVNode(QM,{ref_key:"homeComponentRef",ref:E,"receiver-id":m.value,class:"h-full",onCall:A,responsive:d.value},null,8,["receiver-id","responsive"]),[[h.vShow,h.unref(Ht)==h.unref(Ke).HOME]]),h.unref(Ht)==h.unref(Ke).CUSTOMER_DETAIL?(h.openBlock(),h.createBlock(ZM,{key:0,ref_key:"customerDetailRef",ref:g,"receiver-id":m.value,class:"h-full",responsive:d.value},null,8,["receiver-id","responsive"])):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_CHECK_IN?(h.openBlock(),h.createBlock(iN,{key:1,class:"h-full"})):h.createCommentVNode("",!0),h.unref(Ht)==h.unref(Ke).CUSTOMER_APPOINTMENT?(h.openBlock(),h.createBlock(oN,{key:2,class:"h-full"})):h.createCommentVNode("",!0)]),h.createVNode(lN,{ref_key:"callingRef",ref:v,responsive:d.value,onUserCalling:R[5]||(R[5]=I=>s("userCalling",I))},null,8,["responsive"])])])):(h.openBlock(),h.createElementBlock("div",aY,[h.createVNode(Sp)]))],2)}}});xn.PLIVO_CALL_STATUS=it,xn.default=IY,Object.defineProperties(xn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|