(function(ji,aa){typeof exports=="object"&&typeof module<"u"?aa(exports):typeof define=="function"&&define.amd?define(["exports"],aa):(ji=typeof globalThis<"u"?globalThis:ji||self,aa(ji.callus={}))})(this,function(ji){Object.defineProperty(ji,Symbol.toStringTag,{value:"Module"});var aa=Object.create,vo=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,vv=Object.getOwnPropertyNames,bv=Object.getPrototypeOf,yv=Object.prototype.hasOwnProperty,Se=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),Av=(e,n)=>{let t={};for(var i in e)vo(t,i,{get:e[i],enumerable:!0});return n||vo(t,Symbol.toStringTag,{value:"Module"}),t},wv=(e,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=vv(n),a=0,o=r.length,l;a<o;a++)l=r[a],!yv.call(e,l)&&l!==t&&vo(e,l,{get:(s=>n[s]).bind(null,l),enumerable:!(i=mv(n,l))||i.enumerable});return e},fr=(e,n,t)=>(t=e!=null?aa(bv(e)):{},wv(n||!e||!e.__esModule?vo(t,"default",{value:e,enumerable:!0}):t,e)),At=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=i()})(e,(function(){"use strict";var t=1e3,i=6e4,r=36e5,a="millisecond",o="second",l="minute",s="hour",c="day",u="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var A=["th","st","nd","rd"],M=O%100;return"["+O+(A[(M-20)%10]||A[M]||A[0])+"]"}},y=function(O,A,M){var F=String(O);return!F||F.length>=A?O:""+Array(A+1-F.length).join(M)+O},m={s:y,z:function(O){var A=-O.utcOffset(),M=Math.abs(A),F=Math.floor(M/60),D=M%60;return(A<=0?"+":"-")+y(F,2,"0")+":"+y(D,2,"0")},m:function O(A,M){if(A.date()<M.date())return-O(M,A);var F=12*(M.year()-A.year())+(M.month()-A.month()),D=A.clone().add(F,f),Q=M-D<0,ie=A.clone().add(F+(Q?-1:1),f);return+(-(F+(M-D)/(Q?D-ie:ie-D))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:p,w:u,d:c,D:d,h:s,m:l,s:o,ms:a,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},w="en",I={};I[w]=C;var T="$isDayjsObject",G=function(O){return O instanceof V||!(!O||!O[T])},$=function O(A,M,F){var D;if(!A)return w;if(typeof A=="string"){var Q=A.toLowerCase();I[Q]&&(D=Q),M&&(I[Q]=M,D=Q);var ie=A.split("-");if(!D&&ie.length>1)return O(ie[0])}else{var ce=A.name;I[ce]=A,D=ce}return!F&&D&&(w=D),D||!F&&w},B=function(O,A){if(G(O))return O.clone();var M=typeof A=="object"?A:{};return M.date=O,M.args=arguments,new V(M)},Y=m;Y.l=$,Y.i=G,Y.w=function(O,A){return B(O,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var V=(function(){function O(M){this.$L=$(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[T]=!0}var A=O.prototype;return A.parse=function(M){this.$d=(function(F){var D=F.date,Q=F.utc;if(D===null)return new Date(NaN);if(Y.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var ie=D.match(b);if(ie){var ce=ie[2]-1||0,de=(ie[7]||"0").substring(0,3);return Q?new Date(Date.UTC(ie[1],ce,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,de)):new Date(ie[1],ce,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,de)}}return new Date(D)})(M),this.init()},A.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},A.$utils=function(){return Y},A.isValid=function(){return this.$d.toString()!==g},A.isSame=function(M,F){var D=B(M);return this.startOf(F)<=D&&D<=this.endOf(F)},A.isAfter=function(M,F){return B(M)<this.startOf(F)},A.isBefore=function(M,F){return this.endOf(F)<B(M)},A.$g=function(M,F,D){return Y.u(M)?this[F]:this.set(D,M)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(M,F){var D=this,Q=!!Y.u(F)||F,ie=Y.p(M),ce=function(Bt,Ze){var J=Y.w(D.$u?Date.UTC(D.$y,Ze,Bt):new Date(D.$y,Ze,Bt),D);return Q?J:J.endOf(c)},de=function(Bt,Ze){return Y.w(D.toDate()[Bt].apply(D.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(Ze)),D)},ye=this.$W,Te=this.$M,ke=this.$D,De="set"+(this.$u?"UTC":"");switch(ie){case p:return Q?ce(1,0):ce(31,11);case f:return Q?ce(1,Te):ce(0,Te+1);case u:var Ke=this.$locale().weekStart||0,Ft=(ye<Ke?ye+7:ye)-Ke;return ce(Q?ke-Ft:ke+(6-Ft),Te);case c:case d:return de(De+"Hours",0);case s:return de(De+"Minutes",1);case l:return de(De+"Seconds",2);case o:return de(De+"Milliseconds",3);default:return this.clone()}},A.endOf=function(M){return this.startOf(M,!1)},A.$set=function(M,F){var D,Q=Y.p(M),ie="set"+(this.$u?"UTC":""),ce=(D={},D[c]=ie+"Date",D[d]=ie+"Date",D[f]=ie+"Month",D[p]=ie+"FullYear",D[s]=ie+"Hours",D[l]=ie+"Minutes",D[o]=ie+"Seconds",D[a]=ie+"Milliseconds",D)[Q],de=Q===c?this.$D+(F-this.$W):F;if(Q===f||Q===p){var ye=this.clone().set(d,1);ye.$d[ce](de),ye.init(),this.$d=ye.set(d,Math.min(this.$D,ye.daysInMonth())).$d}else ce&&this.$d[ce](de);return this.init(),this},A.set=function(M,F){return this.clone().$set(M,F)},A.get=function(M){return this[Y.p(M)]()},A.add=function(M,F){var D,Q=this;M=Number(M);var ie=Y.p(F),ce=function(Te){var ke=B(Q);return Y.w(ke.date(ke.date()+Math.round(Te*M)),Q)};if(ie===f)return this.set(f,this.$M+M);if(ie===p)return this.set(p,this.$y+M);if(ie===c)return ce(1);if(ie===u)return ce(7);var de=(D={},D[l]=i,D[s]=r,D[o]=t,D)[ie]||1,ye=this.$d.getTime()+M*de;return Y.w(ye,this)},A.subtract=function(M,F){return this.add(-1*M,F)},A.format=function(M){var F=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=M||"YYYY-MM-DDTHH:mm:ssZ",ie=Y.z(this),ce=this.$H,de=this.$m,ye=this.$M,Te=D.weekdays,ke=D.months,De=D.meridiem,Ke=function(Ze,J,se,E){return Ze&&(Ze[J]||Ze(F,Q))||se[J].slice(0,E)},Ft=function(Ze){return Y.s(ce%12||12,Ze,"0")},Bt=De||function(Ze,J,se){var E=Ze<12?"AM":"PM";return se?E.toLowerCase():E};return Q.replace(v,(function(Ze,J){return J||(function(se){switch(se){case"YY":return String(F.$y).slice(-2);case"YYYY":return Y.s(F.$y,4,"0");case"M":return ye+1;case"MM":return Y.s(ye+1,2,"0");case"MMM":return Ke(D.monthsShort,ye,ke,3);case"MMMM":return Ke(ke,ye);case"D":return F.$D;case"DD":return Y.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Ke(D.weekdaysMin,F.$W,Te,2);case"ddd":return Ke(D.weekdaysShort,F.$W,Te,3);case"dddd":return Te[F.$W];case"H":return String(ce);case"HH":return Y.s(ce,2,"0");case"h":return Ft(1);case"hh":return Ft(2);case"a":return Bt(ce,de,!0);case"A":return Bt(ce,de,!1);case"m":return String(de);case"mm":return Y.s(de,2,"0");case"s":return String(F.$s);case"ss":return Y.s(F.$s,2,"0");case"SSS":return Y.s(F.$ms,3,"0");case"Z":return ie}return null})(Ze)||ie.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(M,F,D){var Q,ie=this,ce=Y.p(F),de=B(M),ye=(de.utcOffset()-this.utcOffset())*i,Te=this-de,ke=function(){return Y.m(ie,de)};switch(ce){case p:Q=ke()/12;break;case f:Q=ke();break;case h:Q=ke()/3;break;case u:Q=(Te-ye)/6048e5;break;case c:Q=(Te-ye)/864e5;break;case s:Q=Te/r;break;case l:Q=Te/i;break;case o:Q=Te/t;break;default:Q=Te}return D?Q:Y.a(Q)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return I[this.$L]},A.locale=function(M,F){if(!M)return this.$L;var D=this.clone(),Q=$(M,F,!0);return Q&&(D.$L=Q),D},A.clone=function(){return Y.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},O})(),P=V.prototype;return B.prototype=P,[["$ms",a],["$s",o],["$m",l],["$H",s],["$W",c],["$M",f],["$y",p],["$D",d]].forEach((function(O){P[O[1]]=function(A){return this.$g(A,O[0],O[1])}})),B.extend=function(O,A){return O.$i||(O(A,V,B),O.$i=!0),B},B.locale=$,B.isDayjs=G,B.unix=function(O){return B(1e3*O)},B.en=I[w],B.Ls=I,B.p={},B}))})),_v=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_localizedFormat=i()})(e,(function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(i,r,a){var o=r.prototype,l=o.format;a.en.formats=t,o.format=function(s){s===void 0&&(s="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=(function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,d,g){var b=g&&g.toUpperCase();return d||h[g]||t[g]||h[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,C,y){return C||y.slice(1)}))}))})(s,c===void 0?{}:c);return l.call(this,u)}}}))})),Cv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_updateLocale=i()})(e,(function(){"use strict";function t(){return t=Object.assign||function(i){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])}return i},t.apply(this,arguments)}return function(i,r,a){a.updateLocale=function(o,l){var s=a.Ls[o];if(s)return(l?Object.keys(l):[]).forEach((function(c){s[c]&&l[c]&&typeof s[c]=="object"&&typeof l[c]=="object"&&!Array.isArray(s[c])?s[c]=t({},s[c],l[c]):s[c]=l[c]})),s}}}))})),Ev=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_cs=i(t.dayjs)})(e,(function(t){"use strict";function i(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var r=i(t);function a(s){return s>1&&s<5&&~~(s/10)!=1}function o(s,c,u,f){var h=s+" ";switch(u){case"s":return c||f?"pár sekund":"pár sekundami";case"m":return c?"minuta":f?"minutu":"minutou";case"mm":return c||f?h+(a(s)?"minuty":"minut"):h+"minutami";case"h":return c?"hodina":f?"hodinu":"hodinou";case"hh":return c||f?h+(a(s)?"hodiny":"hodin"):h+"hodinami";case"d":return c||f?"den":"dnem";case"dd":return c||f?h+(a(s)?"dny":"dní"):h+"dny";case"M":return c||f?"měsíc":"měsícem";case"MM":return c||f?h+(a(s)?"měsíce":"měsíců"):h+"měsíci";case"y":return c||f?"rok":"rokem";case"yy":return c||f?h+(a(s)?"roky":"let"):h+"lety"}}var l={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(s){return s+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o}};return r.default.locale(l,null,!0),l}))})),Sv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_de=i(t.dayjs)})(e,(function(t){"use strict";function i(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var r=i(t),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function o(s,c,u){var f=a[u];return Array.isArray(f)&&(f=f[c?0:1]),f.replace("%d",s)}var l={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(s){return s+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o}};return r.default.locale(l,null,!0),l}))})),Mv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_en_gb=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{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"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(o){var l=["th","st","nd","rd"],s=o%100;return"["+o+(l[(s-20)%10]||l[s]||l[0])+"]"}};return r.default.locale(a,null,!0),a}))})),Iv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_en_ca=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"en-ca",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(o){return o},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},relativeTime:{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"}};return r.default.locale(a,null,!0),a}))})),Tv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_es=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(o){return o+"º"}};return r.default.locale(a,null,!0),a}))})),kv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_fr=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(o){return""+o+(o===1?"er":"")}};return r.default.locale(a,null,!0),a}))})),Ov=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_it=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(o){return o+"º"}};return r.default.locale(a,null,!0),a}))})),xv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_ja=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o){return o+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(o){return o<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return r.default.locale(a,null,!0),a}))})),Nv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_nl=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(o){return"["+o+(o===1||o===8||o>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return r.default.locale(a,null,!0),a}))})),Rv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_pl=i(t.dayjs)})(e,(function(t){"use strict";function i(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var r=i(t);function a(h){return h%10<5&&h%10>1&&~~(h/10)%10!=1}function o(h,p,d){var g=h+" ";switch(d){case"m":return p?"minuta":"minutę";case"mm":return g+(a(h)?"minuty":"minut");case"h":return p?"godzina":"godzinę";case"hh":return g+(a(h)?"godziny":"godzin");case"MM":return g+(a(h)?"miesiące":"miesięcy");case"yy":return g+(a(h)?"lata":"lat")}}var l="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),c=/D MMMM/,u=function(h,p){return c.test(p)?l[h.month()]:s[h.month()]};u.s=s,u.f=l;var f={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:u,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(h){return h+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return r.default.locale(f,null,!0),f}))})),Lv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_ru=i(t.dayjs)})(e,(function(t){"use strict";function i(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var r=i(t),a="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),o="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),l="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),s="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),c=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function u(d,g,b){var v,C;return b==="m"?g?"минута":"минуту":d+" "+(v=+d,C={mm:g?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[b].split("_"),v%10==1&&v%100!=11?C[0]:v%10>=2&&v%10<=4&&(v%100<10||v%100>=20)?C[1]:C[2])}var f=function(d,g){return c.test(g)?a[d.month()]:o[d.month()]};f.s=o,f.f=a;var h=function(d,g){return c.test(g)?l[d.month()]:s[d.month()]};h.s=s,h.f=l;var p={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:h,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:u,mm:u,h:"час",hh:u,d:"день",dd:u,M:"месяц",MM:u,y:"год",yy:u},ordinal:function(d){return d},meridiem:function(d){return d<4?"ночи":d<12?"утра":d<17?"дня":"вечера"}};return r.default.locale(p,null,!0),p}))})),Pv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_tr=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(o){return o+"."}};return r.default.locale(a,null,!0),a}))})),Dv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_zh_cn=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,l){return l==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,l){var s=100*o+l;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return r.default.locale(a,null,!0),a}))})),Fv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_pt=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(o){return o+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return r.default.locale(a,null,!0),a}))})),Bv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_pt_br=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(o){return o+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return r.default.locale(a,null,!0),a}))})),Uv=Se(((e,n)=>{(function(t,i){typeof e=="object"&&typeof n<"u"?n.exports=i(At()):typeof define=="function"&&define.amd?define(["dayjs"],i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_nn=i(t.dayjs)})(e,(function(t){"use strict";function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(t),a={name:"nn",weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),ordinal:function(o){return o+"."},weekStart:1,relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eitt minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månadar",y:"eitt år",yy:"%d år"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"}};return r.default.locale(a,null,!0),a}))})),qi=fr(At(),1),jv=fr(_v(),1),qv=fr(Cv(),1),kO=Ev(),OO=Sv(),xO=Mv(),NO=Iv(),RO=Tv(),LO=kv(),PO=Ov(),DO=xv(),FO=Nv(),BO=Rv(),UO=Lv(),jO=Pv(),qO=Dv(),$O=Fv(),zO=Bv(),VO=Uv();qi.default.extend(jv.default),qi.default.extend(qv.default);function oa(e){const n=Object.create(null);for(const t of e.split(","))n[t]=1;return t=>t in n}var xe={},dr=[],ln=()=>{},af=()=>!1,sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Ve=Object.assign,Al=(e,n)=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)},$v=Object.prototype.hasOwnProperty,ze=(e,n)=>$v.call(e,n),ge=Array.isArray,hr=e=>pr(e)==="[object Map]",$i=e=>pr(e)==="[object Set]",of=e=>pr(e)==="[object Date]",zv=e=>pr(e)==="[object RegExp]",be=e=>typeof e=="function",We=e=>typeof e=="string",Zt=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",wl=e=>(Be(e)||be(e))&&be(e.then)&&be(e.catch),sf=Object.prototype.toString,pr=e=>sf.call(e),Vv=e=>pr(e).slice(8,-1),yo=e=>pr(e)==="[object Object]",Ao=e=>We(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zi=oa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wo=e=>{const n=Object.create(null);return(t=>n[t]||(n[t]=e(t)))},Hv=/-\w/g,dt=wo(e=>e.replace(Hv,n=>n.slice(1).toUpperCase())),Wv=/\B([A-Z])/g,Vt=wo(e=>e.replace(Wv,"-$1").toLowerCase()),la=wo(e=>e.charAt(0).toUpperCase()+e.slice(1)),ca=wo(e=>e?`on${la(e)}`:""),bt=(e,n)=>!Object.is(e,n),gr=(e,...n)=>{for(let t=0;t<e.length;t++)e[t](...n)},lf=(e,n,t,i=!1)=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,writable:i,value:t})},_o=e=>{const n=parseFloat(e);return isNaN(n)?e:n},Co=e=>{const n=We(e)?Number(e):NaN;return isNaN(n)?e:n},cf,Eo=()=>cf||(cf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Yv=oa("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function mr(e){if(ge(e)){const n={};for(let t=0;t<e.length;t++){const i=e[t],r=We(i)?Zv(i):mr(i);if(r)for(const a in r)n[a]=r[a]}return n}else if(We(e)||Be(e))return e}var Gv=/;(?![^(]*\))/g,Qv=/:([^]+)/,Kv=/\/\*[^]*?\*\//g;function Zv(e){const n={};return e.replace(Kv,"").split(Gv).forEach(t=>{if(t){const i=t.split(Qv);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function j(e){let n="";if(We(e))n=e;else if(ge(e))for(let t=0;t<e.length;t++){const i=j(e[t]);i&&(n+=i+" ")}else if(Be(e))for(const t in e)e[t]&&(n+=t+" ");return n.trim()}function Jv(e){if(!e)return null;let{class:n,style:t}=e;return n&&!We(n)&&(e.class=j(n)),t&&(e.style=mr(t)),e}var uf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xv=oa(uf),HO=oa(uf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ff(e){return!!e||e===""}function e0(e,n){if(e.length!==n.length)return!1;let t=!0;for(let i=0;t&&i<e.length;i++)t=Gn(e[i],n[i]);return t}function Gn(e,n){if(e===n)return!0;let t=of(e),i=of(n);if(t||i)return t&&i?e.getTime()===n.getTime():!1;if(t=Zt(e),i=Zt(n),t||i)return e===n;if(t=ge(e),i=ge(n),t||i)return t&&i?e0(e,n):!1;if(t=Be(e),i=Be(n),t||i){if(!t||!i||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e){const a=e.hasOwnProperty(r),o=n.hasOwnProperty(r);if(a&&!o||!a&&o||!Gn(e[r],n[r]))return!1}}return String(e)===String(n)}function So(e,n){return e.findIndex(t=>Gn(t,n))}var df=e=>!!(e&&e.__v_isRef===!0),Ae=e=>We(e)?e:e==null?"":ge(e)||Be(e)&&(e.toString===sf||!be(e.toString))?df(e)?Ae(e.value):JSON.stringify(e,hf,2):String(e),hf=(e,n)=>df(n)?hf(e,n.value):hr(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((t,[i,r],a)=>(t[_l(i,a)+"=>"]=r,t),{})}:$i(n)?{[`Set(${n.size})`]:[...n.values()].map(t=>_l(t))}:Zt(n)?_l(n):Be(n)&&!ge(n)&&!yo(n)?String(n):n,_l=(e,n="")=>{var t;return Zt(e)?`Symbol(${(t=e.description)!=null?t:n})`:e};function t0(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:(typeof e!="number"||Number.isFinite(e),String(e))}var mt,Cl=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&mt&&(mt.active?(this.parent=mt,this.index=(mt.scopes||(mt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=mt;try{return mt=this,e()}finally{mt=n}}}on(){++this._on===1&&(this.prevScope=mt,mt=this)}off(){if(this._on>0&&--this._on===0){if(mt===this)mt=this.prevScope;else{let e=mt;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let n,t;for(n=0,t=this.effects.length;n<t;n++)this.effects[n].stop();for(this.effects.length=0,n=0,t=this.cleanups.length;n<t;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,t=this.scopes.length;n<t;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}};function pf(e){return new Cl(e)}function El(){return mt}function gf(e,n=!1){mt&&mt.cleanups.push(e)}var Xe,Sl=new WeakSet,ua=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,mt&&(mt.active?mt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Sl.has(this)&&(Sl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_f(this),bf(this);const e=Xe,n=Cn;Xe=this,Cn=!0;try{return this.fn()}finally{yf(this),Xe=e,Cn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)kl(e);this.deps=this.depsTail=void 0,_f(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Sl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Tl(this)&&this.run()}get dirty(){return Tl(this)}},mf=0,fa,da;function vf(e,n=!1){if(e.flags|=8,n){e.next=da,da=e;return}e.next=fa,fa=e}function Ml(){mf++}function Il(){if(--mf>0)return;if(da){let n=da;for(da=void 0;n;){const t=n.next;n.next=void 0,n.flags&=-9,n=t}}let e;for(;fa;){let n=fa;for(fa=void 0;n;){const t=n.next;if(n.next=void 0,n.flags&=-9,n.flags&1)try{n.trigger()}catch(i){e||(e=i)}n=t}}if(e)throw e}function bf(e){for(let n=e.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function yf(e){let n,t=e.depsTail,i=t;for(;i;){const r=i.prevDep;i.version===-1?(i===t&&(t=r),kl(i),n0(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=n,e.depsTail=t}function Tl(e){for(let n=e.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&(Af(n.dep.computed)||n.dep.version!==n.version))return!0;return!!e._dirty}function Af(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ha)||(e.globalVersion=ha,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Tl(e))))return;e.flags|=2;const n=e.dep,t=Xe,i=Cn;Xe=e,Cn=!0;try{bf(e);const r=e.fn(e._value);(n.version===0||bt(r,e._value))&&(e.flags|=128,e._value=r,n.version++)}catch(r){throw n.version++,r}finally{Xe=t,Cn=i,yf(e),e.flags&=-3}}function kl(e,n=!1){const{dep:t,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i,!i&&t.computed)){t.computed.flags&=-5;for(let a=t.computed.deps;a;a=a.nextDep)kl(a,!0)}!n&&!--t.sc&&t.map&&t.map.delete(t.key)}function n0(e){const{prevDep:n,nextDep:t}=e;n&&(n.nextDep=t,e.prevDep=void 0),t&&(t.prevDep=n,e.nextDep=void 0)}function i0(e,n){e.effect instanceof ua&&(e=e.effect.fn);const t=new ua(e);n&&Ve(t,n);try{t.run()}catch(r){throw t.stop(),r}const i=t.run.bind(t);return i.effect=t,i}function r0(e){e.effect.stop()}var Cn=!0,wf=[];function Qn(){wf.push(Cn),Cn=!1}function Kn(){const e=wf.pop();Cn=e===void 0?!0:e}function _f(e){const{cleanup:n}=e;if(e.cleanup=void 0,n){const t=Xe;Xe=void 0;try{n()}finally{Xe=t}}}var ha=0,a0=class{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Mo=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Xe||!Cn||Xe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Xe)n=this.activeLink=new a0(Xe,this),Xe.deps?(n.prevDep=Xe.depsTail,Xe.depsTail.nextDep=n,Xe.depsTail=n):Xe.deps=Xe.depsTail=n,Cf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const t=n.nextDep;t.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=t),n.prevDep=Xe.depsTail,n.nextDep=void 0,Xe.depsTail.nextDep=n,Xe.depsTail=n,Xe.deps===n&&(Xe.deps=t)}return n}trigger(e){this.version++,ha++,this.notify(e)}notify(e){Ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Il()}}};function Cf(e){if(e.dep.sc++,e.sub.flags&4){const n=e.dep.computed;if(n&&!e.dep.subs){n.flags|=20;for(let i=n.deps;i;i=i.nextDep)Cf(i)}const t=e.dep.subs;t!==e&&(e.prevSub=t,t&&(t.nextSub=e)),e.dep.subs=e}}var Io=new WeakMap,Vi=Symbol(""),Ol=Symbol(""),pa=Symbol("");function It(e,n,t){if(Cn&&Xe){let i=Io.get(e);i||Io.set(e,i=new Map);let r=i.get(t);r||(i.set(t,r=new Mo),r.map=i,r.key=t),r.track()}}function Zn(e,n,t,i,r,a){const o=Io.get(e);if(!o){ha++;return}const l=s=>{s&&s.trigger()};if(Ml(),n==="clear")o.forEach(l);else{const s=ge(e),c=s&&Ao(t);if(s&&t==="length"){const u=Number(i);o.forEach((f,h)=>{(h==="length"||h===pa||!Zt(h)&&h>=u)&&l(f)})}else switch((t!==void 0||o.has(void 0))&&l(o.get(t)),c&&l(o.get(pa)),n){case"add":s?c&&l(o.get("length")):(l(o.get(Vi)),hr(e)&&l(o.get(Ol)));break;case"delete":s||(l(o.get(Vi)),hr(e)&&l(o.get(Ol)));break;case"set":hr(e)&&l(o.get(Vi));break}}Il()}function o0(e,n){const t=Io.get(e);return t&&t.get(n)}function vr(e){const n=Re(e);return n===e?n:(It(n,"iterate",pa),Ht(e)?n:n.map(Sn))}function To(e){return It(e=Re(e),"iterate",pa),e}function xn(e,n){return En(e)?br(Nn(e)?Sn(n):n):Sn(n)}var s0={__proto__:null,[Symbol.iterator](){return xl(this,Symbol.iterator,e=>xn(this,e))},concat(...e){return vr(this).concat(...e.map(n=>ge(n)?vr(n):n))},entries(){return xl(this,"entries",e=>(e[1]=xn(this,e[1]),e))},every(e,n){return Jn(this,"every",e,n,void 0,arguments)},filter(e,n){return Jn(this,"filter",e,n,t=>t.map(i=>xn(this,i)),arguments)},find(e,n){return Jn(this,"find",e,n,t=>xn(this,t),arguments)},findIndex(e,n){return Jn(this,"findIndex",e,n,void 0,arguments)},findLast(e,n){return Jn(this,"findLast",e,n,t=>xn(this,t),arguments)},findLastIndex(e,n){return Jn(this,"findLastIndex",e,n,void 0,arguments)},forEach(e,n){return Jn(this,"forEach",e,n,void 0,arguments)},includes(...e){return Nl(this,"includes",e)},indexOf(...e){return Nl(this,"indexOf",e)},join(e){return vr(this).join(e)},lastIndexOf(...e){return Nl(this,"lastIndexOf",e)},map(e,n){return Jn(this,"map",e,n,void 0,arguments)},pop(){return ga(this,"pop")},push(...e){return ga(this,"push",e)},reduce(e,...n){return Ef(this,"reduce",e,n)},reduceRight(e,...n){return Ef(this,"reduceRight",e,n)},shift(){return ga(this,"shift")},some(e,n){return Jn(this,"some",e,n,void 0,arguments)},splice(...e){return ga(this,"splice",e)},toReversed(){return vr(this).toReversed()},toSorted(e){return vr(this).toSorted(e)},toSpliced(...e){return vr(this).toSpliced(...e)},unshift(...e){return ga(this,"unshift",e)},values(){return xl(this,"values",e=>xn(this,e))}};function xl(e,n,t){const i=To(e),r=i[n]();return i!==e&&!Ht(e)&&(r._next=r.next,r.next=()=>{const a=r._next();return a.done||(a.value=t(a.value)),a}),r}var l0=Array.prototype;function Jn(e,n,t,i,r,a){const o=To(e),l=o!==e&&!Ht(e),s=o[n];if(s!==l0[n]){const f=s.apply(e,a);return l?Sn(f):f}let c=t;o!==e&&(l?c=function(f,h){return t.call(this,xn(e,f),h,e)}:t.length>2&&(c=function(f,h){return t.call(this,f,h,e)}));const u=s.call(o,c,i);return l&&r?r(u):u}function Ef(e,n,t,i){const r=To(e),a=r!==e&&!Ht(e);let o=t,l=!1;r!==e&&(a?(l=i.length===0,o=function(c,u,f){return l&&(l=!1,c=xn(e,c)),t.call(this,c,xn(e,u),f,e)}):t.length>3&&(o=function(c,u,f){return t.call(this,c,u,f,e)}));const s=r[n](o,...i);return l?xn(e,s):s}function Nl(e,n,t){const i=Re(e);It(i,"iterate",pa);const r=i[n](...t);return(r===-1||r===!1)&&ma(t[0])?(t[0]=Re(t[0]),i[n](...t)):r}function ga(e,n,t=[]){Qn(),Ml();const i=Re(e)[n].apply(e,t);return Il(),Kn(),i}var c0=oa("__proto__,__v_isRef,__isVue"),Sf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zt));function u0(e){Zt(e)||(e=String(e));const n=Re(this);return It(n,"has",e),n.hasOwnProperty(e)}var Mf=class{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,t){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return t===(i?r?Nf:xf:r?Of:kf).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(t)?e:void 0;const a=ge(e);if(!i){let l;if(a&&(l=s0[n]))return l;if(n==="hasOwnProperty")return u0}const o=Reflect.get(e,n,tt(e)?e:t);if((Zt(n)?Sf.has(n):c0(n))||(i||It(e,"get",n),r))return o;if(tt(o)){const l=a&&Ao(n)?o:o.value;return i&&Be(l)?No(l):l}return Be(o)?i?No(o):Tt(o):o}},If=class extends Mf{constructor(e=!1){super(!1,e)}set(e,n,t,i){let r=e[n];const a=ge(e)&&Ao(n);if(!this._isShallow){const s=En(r);if(!Ht(t)&&!En(t)&&(r=Re(r),t=Re(t)),!a&&tt(r)&&!tt(t))return s||(r.value=t),!0}const o=a?Number(n)<e.length:ze(e,n),l=Reflect.set(e,n,t,tt(e)?e:i);return e===Re(i)&&(o?bt(t,r)&&Zn(e,"set",n,t,r):Zn(e,"add",n,t)),l}deleteProperty(e,n){const t=ze(e,n),i=e[n],r=Reflect.deleteProperty(e,n);return r&&t&&Zn(e,"delete",n,void 0,i),r}has(e,n){const t=Reflect.has(e,n);return(!Zt(n)||!Sf.has(n))&&It(e,"has",n),t}ownKeys(e){return It(e,"iterate",ge(e)?"length":Vi),Reflect.ownKeys(e)}},Tf=class extends Mf{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}},f0=new If,d0=new Tf,h0=new If(!0),p0=new Tf(!0),Rl=e=>e,ko=e=>Reflect.getPrototypeOf(e);function g0(e,n,t){return function(...i){const r=this.__v_raw,a=Re(r),o=hr(a),l=e==="entries"||e===Symbol.iterator&&o,s=e==="keys"&&o,c=r[e](...i),u=t?Rl:n?br:Sn;return!n&&It(a,"iterate",s?Ol:Vi),Ve(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}}})}}function Oo(e){return function(...n){return e==="delete"?!1:e==="clear"?void 0:this}}function m0(e,n){const t={get(i){const r=this.__v_raw,a=Re(r),o=Re(i);e||(bt(i,o)&&It(a,"get",i),It(a,"get",o));const{has:l}=ko(a),s=n?Rl:e?br:Sn;if(l.call(a,i))return s(r.get(i));if(l.call(a,o))return s(r.get(o));r!==a&&r.get(i)},get size(){const i=this.__v_raw;return!e&&It(Re(i),"iterate",Vi),i.size},has(i){const r=this.__v_raw,a=Re(r),o=Re(i);return e||(bt(i,o)&&It(a,"has",i),It(a,"has",o)),i===o?r.has(i):r.has(i)||r.has(o)},forEach(i,r){const a=this,o=a.__v_raw,l=Re(o),s=n?Rl:e?br:Sn;return!e&&It(l,"iterate",Vi),o.forEach((c,u)=>i.call(r,s(c),s(u),a))}};return Ve(t,e?{add:Oo("add"),set:Oo("set"),delete:Oo("delete"),clear:Oo("clear")}:{add(i){const r=Re(this),a=ko(r),o=Re(i),l=!n&&!Ht(i)&&!En(i)?o:i;return a.has.call(r,l)||bt(i,l)&&a.has.call(r,i)||bt(o,l)&&a.has.call(r,o)||(r.add(l),Zn(r,"add",l,l)),this},set(i,r){!n&&!Ht(r)&&!En(r)&&(r=Re(r));const a=Re(this),{has:o,get:l}=ko(a);let s=o.call(a,i);s||(i=Re(i),s=o.call(a,i));const c=l.call(a,i);return a.set(i,r),s?bt(r,c)&&Zn(a,"set",i,r,c):Zn(a,"add",i,r),this},delete(i){const r=Re(this),{has:a,get:o}=ko(r);let l=a.call(r,i);l||(i=Re(i),l=a.call(r,i));const s=o?o.call(r,i):void 0,c=r.delete(i);return l&&Zn(r,"delete",i,void 0,s),c},clear(){const i=Re(this),r=i.size!==0,a=void 0,o=i.clear();return r&&Zn(i,"clear",void 0,void 0,a),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=g0(i,e,n)}),t}function xo(e,n){const t=m0(e,n);return(i,r,a)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(ze(t,r)&&r in i?t:i,r,a)}var v0={get:xo(!1,!1)},b0={get:xo(!1,!0)},y0={get:xo(!0,!1)},A0={get:xo(!0,!0)},kf=new WeakMap,Of=new WeakMap,xf=new WeakMap,Nf=new WeakMap;function w0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tt(e){return En(e)?e:Ro(e,!1,f0,v0,kf)}function Rf(e){return Ro(e,!1,h0,b0,Of)}function No(e){return Ro(e,!0,d0,y0,xf)}function _0(e){return Ro(e,!0,p0,A0,Nf)}function Ro(e,n,t,i,r){if(!Be(e)||e.__v_raw&&!(n&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const a=r.get(e);if(a)return a;const o=w0(Vv(e));if(o===0)return e;const l=new Proxy(e,o===2?i:t);return r.set(e,l),l}function Nn(e){return En(e)?Nn(e.__v_raw):!!(e&&e.__v_isReactive)}function En(e){return!!(e&&e.__v_isReadonly)}function Ht(e){return!!(e&&e.__v_isShallow)}function ma(e){return e?!!e.__v_raw:!1}function Re(e){const n=e&&e.__v_raw;return n?Re(n):e}function Lf(e){return!ze(e,"__v_skip")&&Object.isExtensible(e)&&lf(e,"__v_skip",!0),e}var Sn=e=>Be(e)?Tt(e):e,br=e=>Be(e)?No(e):e;function tt(e){return e?e.__v_isRef===!0:!1}function re(e){return Pf(e,!1)}function Ll(e){return Pf(e,!0)}function Pf(e,n){return tt(e)?e:new C0(e,n)}var C0=class{constructor(e,n){this.dep=new Mo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Re(e),this._value=n?e:Sn(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,t=this.__v_isShallow||Ht(e)||En(e);e=t?e:Re(e),bt(e,n)&&(this._rawValue=e,this._value=t?e:Sn(e),this.dep.trigger())}};function E0(e){e.dep&&e.dep.trigger()}function Ne(e){return tt(e)?e.value:e}function S0(e){return be(e)?e():Ne(e)}var M0={get:(e,n,t)=>n==="__v_raw"?e:Ne(Reflect.get(e,n,t)),set:(e,n,t,i)=>{const r=e[n];return tt(r)&&!tt(t)?(r.value=t,!0):Reflect.set(e,n,t,i)}};function Pl(e){return Nn(e)?e:new Proxy(e,M0)}var I0=class{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Mo,{get:t,set:i}=e(n.track.bind(n),n.trigger.bind(n));this._get=t,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Df(e){return new I0(e)}function T0(e){const n=ge(e)?new Array(e.length):{};for(const t in e)n[t]=Ff(e,t);return n}var k0=class{constructor(e,n,t){this._object=e,this._defaultValue=t,this.__v_isRef=!0,this._value=void 0,this._key=Zt(n)?n:String(n),this._raw=Re(e);let i=!0,r=e;if(!ge(e)||Zt(this._key)||!Ao(this._key))do i=!ma(r)||Ht(r);while(i&&(r=r.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=Ne(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&tt(this._raw[this._key])){const n=this._object[this._key];if(tt(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return o0(this._raw,this._key)}},O0=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function x0(e,n,t){return tt(e)?e:be(e)?new O0(e):Be(e)&&arguments.length>1?Ff(e,n,t):re(e)}function Ff(e,n,t){return new k0(e,n,t)}var N0=class{constructor(e,n,t){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Mo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ha-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=t}notify(){if(this.flags|=16,!(this.flags&8)&&Xe!==this)return vf(this,!0),!0}get value(){const e=this.dep.track();return Af(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function R0(e,n,t=!1){let i,r;return be(e)?i=e:(i=e.get,r=e.set),new N0(i,r,t)}var L0={GET:"get",HAS:"has",ITERATE:"iterate"},P0={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Lo={},Po=new WeakMap,yi=void 0;function D0(){return yi}function Bf(e,n=!1,t=yi){if(t){let i=Po.get(t);i||Po.set(t,i=[]),i.push(e)}}function F0(e,n,t=xe){const{immediate:i,deep:r,once:a,scheduler:o,augmentJob:l,call:s}=t,c=m=>r?m:Ht(m)||r===!1||r===0?Xn(m,1):Xn(m);let u,f,h,p,d=!1,g=!1;if(tt(e)?(f=()=>e.value,d=Ht(e)):Nn(e)?(f=()=>c(e),d=!0):ge(e)?(g=!0,d=e.some(m=>Nn(m)||Ht(m)),f=()=>e.map(m=>{if(tt(m))return m.value;if(Nn(m))return c(m);if(be(m))return s?s(m,2):m()})):be(e)?n?f=s?()=>s(e,2):e:f=()=>{if(h){Qn();try{h()}finally{Kn()}}const m=yi;yi=u;try{return s?s(e,3,[p]):e(p)}finally{yi=m}}:f=ln,n&&r){const m=f,w=r===!0?1/0:r;f=()=>Xn(m(),w)}const b=El(),v=()=>{u.stop(),b&&b.active&&Al(b.effects,u)};if(a&&n){const m=n;n=(...w)=>{const I=m(...w);return v(),I}}let C=g?new Array(e.length).fill(Lo):Lo;const y=m=>{if(!(!(u.flags&1)||!u.dirty&&!m))if(n){const w=u.run();if(m||r||d||(g?w.some((I,T)=>bt(I,C[T])):bt(w,C))){h&&h();const I=yi;yi=u;try{const T=[w,C===Lo?void 0:g&&C[0]===Lo?[]:C,p];C=w,s?s(n,3,T):n(...T)}finally{yi=I}}}else u.run()};return l&&l(y),u=new ua(f),u.scheduler=o?()=>o(y,!1):y,p=m=>Bf(m,!1,u),h=u.onStop=()=>{const m=Po.get(u);if(m){if(s)s(m,4);else for(const w of m)w();Po.delete(u)}},n?i?y(!0):C=u.run():o?o(y.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Xn(e,n=1/0,t){if(n<=0||!Be(e)||e.__v_skip||(t=t||new Map,(t.get(e)||0)>=n))return e;if(t.set(e,n),n--,tt(e))Xn(e.value,n,t);else if(ge(e))for(let i=0;i<e.length;i++)Xn(e[i],n,t);else if($i(e)||hr(e))e.forEach(i=>{Xn(i,n,t)});else if(yo(e)){for(const i in e)Xn(e[i],n,t);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Xn(e[i],n,t)}return e}var Uf=[];function B0(e){Uf.push(e)}function U0(){Uf.pop()}function j0(e,n){}var q0={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},$0={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function yr(e,n,t,i){try{return i?e(...i):e()}catch(r){Hi(r,n,t)}}function Jt(e,n,t,i){if(be(e)){const r=yr(e,n,t,i);return r&&wl(r)&&r.catch(a=>{Hi(a,n,t)}),r}if(ge(e)){const r=[];for(let a=0;a<e.length;a++)r.push(Jt(e[a],n,t,i));return r}}function Hi(e,n,t,i=!0){const r=n?n.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=n&&n.appContext.config||xe;if(n){let l=n.parent;const s=n.proxy,c=`https://vuejs.org/error-reference/#runtime-${t}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,s,c)===!1)return}l=l.parent}if(a){Qn(),yr(a,null,10,[e,s,c]),Kn();return}}z0(e,t,r,i,o)}function z0(e,n,t,i=!0,r=!1){if(r)throw e;console.error(e)}var Ut=[],Rn=-1,Ar=[],Ai=null,wr=0,jf=Promise.resolve(),Do=null;function _r(e){const n=Do||jf;return e?n.then(this?e.bind(this):e):n}function V0(e){let n=Rn+1,t=Ut.length;for(;n<t;){const i=n+t>>>1,r=Ut[i],a=ba(r);a<e||a===e&&r.flags&2?n=i+1:t=i}return n}function Dl(e){if(!(e.flags&1)){const n=ba(e),t=Ut[Ut.length-1];!t||!(e.flags&2)&&n>=ba(t)?Ut.push(e):Ut.splice(V0(n),0,e),e.flags|=1,qf()}}function qf(){Do||(Do=jf.then(zf))}function va(e){ge(e)?Ar.push(...e):Ai&&e.id===-1?Ai.splice(wr+1,0,e):e.flags&1||(Ar.push(e),e.flags|=1),qf()}function $f(e,n,t=Rn+1){for(;t<Ut.length;t++){const i=Ut[t];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;Ut.splice(t,1),t--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Fo(e){if(Ar.length){const n=[...new Set(Ar)].sort((t,i)=>ba(t)-ba(i));if(Ar.length=0,Ai){Ai.push(...n);return}for(Ai=n,wr=0;wr<Ai.length;wr++){const t=Ai[wr];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}Ai=null,wr=0}}var ba=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zf(e){try{for(Rn=0;Rn<Ut.length;Rn++){const n=Ut[Rn];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),yr(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Rn<Ut.length;Rn++){const n=Ut[Rn];n&&(n.flags&=-2)}Rn=-1,Ut.length=0,Fo(e),Do=null,(Ut.length||Ar.length)&&zf(e)}}var Cr,Bo=[];function Vf(e,n){var t,i;Cr=e,Cr?(Cr.enabled=!0,Bo.forEach(({event:r,args:a})=>Cr.emit(r,...a)),Bo=[]):typeof window<"u"&&window.HTMLElement&&!((i=(t=window.navigator)==null?void 0:t.userAgent)!=null&&i.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Vf(r,n)}),setTimeout(()=>{Cr||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bo=[])},3e3)):Bo=[]}var wt=null,Uo=null;function ya(e){const n=wt;return wt=e,Uo=e&&e.type.__scopeId||null,n}function H0(e){Uo=e}function W0(){Uo=null}var Y0=e=>jt;function jt(e,n=wt,t){if(!n||e._n)return e;const i=(...r)=>{i._d&&xa(-1);const a=ya(n);let o;try{o=e(...r)}finally{ya(a),i._d&&xa(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Ln(e,n){if(wt===null)return e;const t=Ra(wt),i=e.dirs||(e.dirs=[]);for(let r=0;r<n.length;r++){let[a,o,l,s=xe]=n[r];a&&(be(a)&&(a={mounted:a,updated:a}),a.deep&&Xn(o),i.push({dir:a,instance:t,value:o,oldValue:void 0,arg:l,modifiers:s}))}return e}function Pn(e,n,t,i){const r=e.dirs,a=n&&n.dirs;for(let o=0;o<r.length;o++){const l=r[o];a&&(l.oldValue=a[o].value);let s=l.dir[i];s&&(Qn(),Jt(s,t,8,[e.el,l,e,n]),Kn())}}function qt(e,n){if(Ct){let t=Ct.provides;const i=Ct.parent&&Ct.parent.provides;i===t&&(t=Ct.provides=Object.create(i)),t[e]=n}}function ve(e,n,t=!1){const i=Et();if(i||Yi){let r=Yi?Yi._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return t&&be(n)?n.call(i&&i.proxy):n}}function G0(){return!!(Et()||Yi)}var Hf=Symbol.for("v-scx"),Wf=()=>{{const e=ve(Hf);return e}};function Q0(e,n){return Aa(e,null,n)}function K0(e,n){return Aa(e,null,{flush:"post"})}function Yf(e,n){return Aa(e,null,{flush:"sync"})}function kt(e,n,t){return Aa(e,n,t)}function Aa(e,n,t=xe){const{immediate:i,deep:r,flush:a,once:o}=t,l=Ve({},t),s=n&&i||!n&&a!=="post";let c;if(Zi){if(a==="sync"){const p=Wf();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!s){const p=()=>{};return p.stop=ln,p.resume=ln,p.pause=ln,p}}const u=Ct;l.call=(p,d,g)=>Jt(p,u,d,g);let f=!1;a==="post"?l.scheduler=p=>{ht(p,u&&u.suspense)}:a!=="sync"&&(f=!0,l.scheduler=(p,d)=>{d?p():Dl(p)}),l.augmentJob=p=>{n&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=F0(e,n,l);return Zi&&(c?c.push(h):s&&h()),h}function Z0(e,n,t){const i=this.proxy,r=We(e)?e.includes(".")?Gf(i,e):()=>i[e]:e.bind(i,i);let a;be(n)?a=n:(a=n.handler,t=n);const o=Nr(this),l=Aa(r,a.bind(i),t);return o(),l}function Gf(e,n){const t=n.split(".");return()=>{let i=e;for(let r=0;r<t.length&&i;r++)i=i[t[r]];return i}}var wi=new WeakMap,Qf=Symbol("_vte"),Kf=e=>e.__isTeleport,Wi=e=>e&&(e.disabled||e.disabled===""),J0=e=>e&&(e.defer||e.defer===""),Zf=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Jf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Fl=(e,n)=>{const t=e&&e.to;return We(t)?n?n(t):null:t},X0={name:"Teleport",__isTeleport:!0,process(e,n,t,i,r,a,o,l,s,c){const{mc:u,pc:f,pbc:h,o:{insert:p,querySelector:d,createText:g,createComment:b,parentNode:v}}=c,C=Wi(n.props);let{dynamicChildren:y}=n;const m=(T,G,$)=>{T.shapeFlag&16&&u(T.children,G,$,r,a,o,l,s)},w=(T=n)=>{const G=Wi(T.props),$=T.target=Fl(T.props,d),B=Bl($,T,g,p);$&&(o!=="svg"&&Zf($)?o="svg":o!=="mathml"&&Jf($)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add($),G||(m(T,$,B),wa(T,!1)))},I=T=>{const G=()=>{wi.get(T)===G&&(wi.delete(T),Wi(T.props)&&(m(T,v(T.el)||t,T.anchor),wa(T,!0)),w(T))};wi.set(T,G),ht(G,a)};if(e==null){const T=n.el=g(""),G=n.anchor=g("");if(p(T,t,i),p(G,t,i),J0(n.props)||a&&a.pendingBranch){I(n);return}C&&(m(n,t,G),wa(n,!0)),w()}else{n.el=e.el;const T=n.anchor=e.anchor,G=wi.get(e);if(G){G.flags|=8,wi.delete(e),I(n);return}n.targetStart=e.targetStart;const $=n.target=e.target,B=n.targetAnchor=e.targetAnchor,Y=Wi(e.props),V=Y?t:$,P=Y?T:B;if(o==="svg"||Zf($)?o="svg":(o==="mathml"||Jf($))&&(o="mathml"),y?(h(e.dynamicChildren,y,V,r,a,o,l),oc(e,n,!0)):s||f(e,n,V,P,r,a,o,l,!1),C)Y?n.props&&e.props&&n.props.to!==e.props.to&&(n.props.to=e.props.to):jo(n,t,T,c,1);else if((n.props&&n.props.to)!==(e.props&&e.props.to)){const O=n.target=Fl(n.props,d);O&&jo(n,O,null,c,0)}else Y&&jo(n,$,B,c,1);wa(n,C)}},remove(e,n,t,{um:i,o:{remove:r}},a){const{shapeFlag:o,children:l,anchor:s,targetStart:c,targetAnchor:u,target:f,props:h}=e,p=a||!Wi(h),d=wi.get(e);if(d&&(d.flags|=8,wi.delete(e)),f&&(r(c),r(u)),a&&r(s),!d&&o&16)for(let g=0;g<l.length;g++){const b=l[g];i(b,n,t,p,!!b.dynamicChildren)}},move:jo,hydrate:eb};function jo(e,n,t,{o:{insert:i},m:r},a=2){a===0&&i(e.targetAnchor,n,t);const{el:o,anchor:l,shapeFlag:s,children:c,props:u}=e,f=a===2;if(f&&i(o,n,t),!wi.has(e)&&(!f||Wi(u))&&s&16)for(let h=0;h<c.length;h++)r(c[h],n,t,2);f&&i(l,n,t)}function eb(e,n,t,i,r,a,{o:{nextSibling:o,parentNode:l,querySelector:s,insert:c,createText:u}},f){function h(b,v){let C=v;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")n.targetStart=C;else if(C.data==="teleport anchor"){n.targetAnchor=C,b._lpa=n.targetAnchor&&o(n.targetAnchor);break}}C=o(C)}}function p(b,v){v.anchor=f(o(b),v,l(b),t,i,r,a)}const d=n.target=Fl(n.props,s),g=Wi(n.props);if(d){const b=d._lpa||d.firstChild;n.shapeFlag&16&&(g?(p(e,n),h(d,b),n.targetAnchor||Bl(d,n,u,c,l(e)===d?e:null)):(n.anchor=o(e),h(d,b),n.targetAnchor||Bl(d,n,u,c),f(b&&o(b),n,d,t,i,r,a))),wa(n,g)}else g&&n.shapeFlag&16&&(p(e,n),n.targetStart=e,n.targetAnchor=o(e));return n.anchor&&o(n.anchor)}var tb=X0;function wa(e,n){const t=e.ctx;if(t&&t.ut){let i,r;for(n?(i=e.el,r=e.anchor):(i=e.targetStart,r=e.targetAnchor);i&&i!==r;)i.nodeType===1&&i.setAttribute("data-v-owner",t.uid),i=i.nextSibling;t.ut()}}function Bl(e,n,t,i,r=null){const a=n.targetStart=t(""),o=n.targetAnchor=t("");return a[Qf]=o,e&&(i(a,e,r),i(o,e,r)),o}var cn=Symbol("_leaveCb"),_a=Symbol("_enterCb");function Ul(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xt(()=>{e.isMounted=!0}),Sa(()=>{e.isUnmounting=!0}),e}var un=[Function,Array],jl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:un,onEnter:un,onAfterEnter:un,onEnterCancelled:un,onBeforeLeave:un,onLeave:un,onAfterLeave:un,onLeaveCancelled:un,onBeforeAppear:un,onAppear:un,onAfterAppear:un,onAppearCancelled:un},Xf=e=>{const n=e.subTree;return n.component?Xf(n.component):n},nb={name:"BaseTransition",props:jl,setup(e,{slots:n}){const t=Et(),i=Ul();return()=>{const r=n.default&&qo(n.default(),!0),a=r&&r.length?ed(r):t.subTree?ue():void 0;if(!a)return;const o=Re(e),{mode:l}=o;if(i.isLeaving)return ql(a);const s=id(a);if(!s)return ql(a);let c=Er(s,o,i,t,f=>c=f);s.type!==ct&&ei(s,c);let u=t.subTree&&id(t.subTree);if(u&&u.type!==ct&&!Mn(u,s)&&Xf(t).type!==ct){let f=Er(u,o,i,t);if(ei(u,f),l==="out-in"&&s.type!==ct)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,t.job.flags&8||t.update(),delete f.afterLeave,u=void 0},ql(a);l==="in-out"&&s.type!==ct?f.delayLeave=(h,p,d)=>{const g=nd(i,u);g[String(u.key)]=u,h[cn]=()=>{p(),h[cn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{d(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return a}}};function ed(e){let n=e[0];if(e.length>1){for(const t of e)if(t.type!==ct){n=t;break}}return n}var td=nb;function nd(e,n){const{leavingVNodes:t}=e;let i=t.get(n.type);return i||(i=Object.create(null),t.set(n.type,i)),i}function Er(e,n,t,i,r){const{appear:a,mode:o,persisted:l=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:d,onLeaveCancelled:g,onBeforeAppear:b,onAppear:v,onAfterAppear:C,onAppearCancelled:y}=n,m=String(e.key),w=nd(t,e),I=($,B)=>{$&&Jt($,i,9,B)},T=($,B)=>{const Y=B[1];I($,B),ge($)?$.every(V=>V.length<=1)&&Y():$.length<=1&&Y()},G={mode:o,persisted:l,beforeEnter($){let B=s;if(!t.isMounted)if(a)B=b||s;else return;$[cn]&&$[cn](!0);const Y=w[m];Y&&Mn(e,Y)&&Y.el[cn]&&Y.el[cn](),I(B,[$])},enter($){if(w[m]===e)return;let B=c,Y=u,V=f;if(!t.isMounted)if(a)B=v||c,Y=C||u,V=y||f;else return;let P=!1;$[_a]=A=>{P||(P=!0,A?I(V,[$]):I(Y,[$]),G.delayedLeave&&G.delayedLeave(),$[_a]=void 0)};const O=$[_a].bind(null,!1);B?T(B,[$,O]):O()},leave($,B){const Y=String(e.key);if($[_a]&&$[_a](!0),t.isUnmounting)return B();I(h,[$]);let V=!1;$[cn]=O=>{V||(V=!0,B(),O?I(g,[$]):I(d,[$]),$[cn]=void 0,w[Y]===e&&delete w[Y])};const P=$[cn].bind(null,!1);w[Y]=e,p?T(p,[$,P]):P()},clone($){const B=Er($,n,t,i,r);return r&&r(B),B}};return G}function ql(e){if(Ca(e))return e=Dn(e),e.children=null,e}function id(e){if(!Ca(e))return Kf(e.type)&&e.children?ed(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:n,children:t}=e;if(t){if(n&16)return t[0];if(n&32&&be(t.default))return t.default()}}function ei(e,n){e.shapeFlag&6&&e.component?(e.transition=n,ei(e.component.subTree,n)):e.shapeFlag&128?(e.ssContent.transition=n.clone(e.ssContent),e.ssFallback.transition=n.clone(e.ssFallback)):e.transition=n}function qo(e,n=!1,t){let i=[],r=0;for(let a=0;a<e.length;a++){let o=e[a];const l=t==null?o.key:String(t)+String(o.key!=null?o.key:a);o.type===He?(o.patchFlag&128&&r++,i=i.concat(qo(o.children,n,l))):(n||o.type!==ct)&&i.push(l!=null?Dn(o,{key:l}):o)}if(r>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}function Ye(e,n){return be(e)?Ve({name:e.name},n,{setup:e}):e}function ib(){const e=Et();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function $l(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function rb(e){const n=Et(),t=Ll(null);if(n){const i=n.refs===xe?n.refs={}:n.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>t.value,set:r=>t.value=r})}return t}function rd(e,n){let t;return!!((t=Object.getOwnPropertyDescriptor(e,n))&&!t.configurable)}var $o=new WeakMap;function Sr(e,n,t,i,r=!1){if(ge(e)){e.forEach((g,b)=>Sr(g,n&&(ge(n)?n[b]:n),t,i,r));return}if(ti(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Sr(e,n,t,i.component.subTree);return}const a=i.shapeFlag&4?Ra(i.component):i.el,o=r?null:a,{i:l,r:s}=e,c=n&&n.r,u=l.refs===xe?l.refs={}:l.refs,f=l.setupState,h=Re(f),p=f===xe?af:g=>rd(u,g)?!1:ze(h,g),d=(g,b)=>!(b&&rd(u,b));if(c!=null&&c!==s){if(ad(n),We(c))u[c]=null,p(c)&&(f[c]=null);else if(tt(c)){const g=n;d(c,g.k)&&(c.value=null),g.k&&(u[g.k]=null)}}if(be(s))yr(s,l,12,[o,u]);else{const g=We(s),b=tt(s);if(g||b){const v=()=>{if(e.f){const C=g?p(s)?f[s]:u[s]:d(s)||!e.k?s.value:u[e.k];if(r)ge(C)&&Al(C,a);else if(ge(C))C.includes(a)||C.push(a);else if(g)u[s]=[a],p(s)&&(f[s]=u[s]);else{const y=[a];d(s,e.k)&&(s.value=y),e.k&&(u[e.k]=y)}}else g?(u[s]=o,p(s)&&(f[s]=o)):b&&(d(s,e.k)&&(s.value=o),e.k&&(u[e.k]=o))};if(o){const C=()=>{v(),$o.delete(e)};C.id=-1,$o.set(e,C),ht(C,t)}else ad(e),v()}}}function ad(e){const n=$o.get(e);n&&(n.flags|=8,$o.delete(e))}var od=!1,Mr=()=>{od||(console.error("Hydration completed but contains mismatches."),od=!0)},ab=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ob=e=>e.namespaceURI.includes("MathML"),zo=e=>{if(e.nodeType===1){if(ab(e))return"svg";if(ob(e))return"mathml"}},Ir=e=>e.nodeType===8;function sb(e){const{mt:n,p:t,o:{patchProp:i,createText:r,nextSibling:a,parentNode:o,remove:l,insert:s,createComment:c}}=e,u=(y,m)=>{if(!m.hasChildNodes()){t(null,y,m),Fo(),m._vnode=y;return}f(m.firstChild,y,null,null,null),Fo(),m._vnode=y},f=(y,m,w,I,T,G=!1)=>{G=G||!!m.dynamicChildren;const $=Ir(y)&&y.data==="[",B=()=>g(y,m,w,I,T,$),{type:Y,ref:V,shapeFlag:P,patchFlag:O}=m;let A=y.nodeType;m.el=y,O===-2&&(G=!1,m.dynamicChildren=null);let M=null;switch(Y){case ri:A!==3?m.children===""?(s(m.el=r(""),o(y),y),M=y):M=B():(y.data!==m.children&&(Mr(),y.data=m.children),M=a(y));break;case ct:C(y)?(M=a(y),v(m.el=y.content.firstChild,y,w)):A!==8||$?M=B():M=a(y);break;case Qi:if($&&(y=a(y),A=y.nodeType),A===1||A===3){M=y;const F=!m.children.length;for(let D=0;D<m.staticCount;D++)F&&(m.children+=M.nodeType===1?M.outerHTML:M.data),D===m.staticCount-1&&(m.anchor=M),M=a(M);return $?a(M):M}else B();break;case He:$?M=d(y,m,w,I,T,G):M=B();break;default:if(P&1)(A!==1||m.type.toLowerCase()!==y.tagName.toLowerCase())&&!C(y)?M=B():M=h(y,m,w,I,T,G);else if(P&6){m.slotScopeIds=T;const F=o(y);if($?M=b(y):Ir(y)&&y.data==="teleport start"?M=b(y,y.data,"teleport end"):M=a(y),n(m,F,null,w,I,zo(F),G),ti(m)&&!m.type.__asyncResolved){let D;$?(D=pe(He),D.anchor=M?M.previousSibling:F.lastChild):D=y.nodeType===3?fn(""):pe("div"),D.el=y,m.component.subTree=D}}else P&64?A!==8?M=B():M=m.type.hydrate(y,m,w,I,T,G,e,p):P&128&&(M=m.type.hydrate(y,m,w,I,zo(o(y)),T,G,e,f))}return V!=null&&Sr(V,null,I,m),M},h=(y,m,w,I,T,G)=>{G=G||!!m.dynamicChildren;const{type:$,props:B,patchFlag:Y,shapeFlag:V,dirs:P,transition:O}=m,A=$==="input"||$==="option";if(A||Y!==-1){P&&Pn(m,null,w,"created");let M=!1;if(C(y)){M=Bd(null,O)&&w&&w.vnode.props&&w.vnode.props.appear;const D=y.content.firstChild;if(M){const Q=D.getAttribute("class");Q&&(D.$cls=Q),O.beforeEnter(D)}v(D,y,w),m.el=y=D}if(V&16&&!(B&&(B.innerHTML||B.textContent))){let D=p(y.firstChild,m,y,w,I,T,G);for(D&&!Vo(y,1)&&Mr();D;){const Q=D;D=D.nextSibling,l(Q)}}else if(V&8){let D=m.children;D[0]===`
`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(D=D.slice(1));const{textContent:Q}=y;Q!==D&&Q!==D.replace(/\r\n|\r/g,`
`)&&(Vo(y,0)||Mr(),y.textContent=m.children)}if(B){if(A||!G||Y&48){const D=y.tagName.includes("-");for(const Q in B)(A&&(Q.endsWith("value")||Q==="indeterminate")||sa(Q)&&!zi(Q)||Q[0]==="."||D&&!zi(Q))&&i(y,Q,null,B[Q],void 0,w)}else if(B.onClick)i(y,"onClick",null,B.onClick,void 0,w);else if(Y&4&&Nn(B.style))for(const D in B.style)B.style[D]}let F;(F=B&&B.onVnodeBeforeMount)&&Yt(F,w,m),P&&Pn(m,null,w,"beforeMount"),((F=B&&B.onVnodeMounted)||P||M)&&zd(()=>{F&&Yt(F,w,m),M&&O.enter(y),P&&Pn(m,null,w,"mounted")},I)}return y.nextSibling},p=(y,m,w,I,T,G,$)=>{$=$||!!m.dynamicChildren;const B=m.children,Y=B.length;let V=!1;for(let P=0;P<Y;P++){const O=$?B[P]:B[P]=Wt(B[P]),A=O.type===ri;y?(A&&!$&&P+1<Y&&Wt(B[P+1]).type===ri&&(s(r(y.data.slice(O.children.length)),w,a(y)),y.data=O.children),y=f(y,O,I,T,G,$)):A&&!O.children?s(O.el=r(""),w):(V||(V=!0,Vo(w,1)||Mr()),t(null,O,w,null,I,T,zo(w),G))}return y},d=(y,m,w,I,T,G)=>{const{slotScopeIds:$}=m;$&&(T=T?T.concat($):$);const B=o(y),Y=p(a(y),m,B,w,I,T,G);return Y&&Ir(Y)&&Y.data==="]"?a(m.anchor=Y):(Mr(),s(m.anchor=c("]"),B,Y),Y)},g=(y,m,w,I,T,G)=>{if(Vo(y.parentElement,1)||Mr(),m.el=null,G){const Y=b(y);for(;;){const V=a(y);if(V&&V!==Y)l(V);else break}}const $=a(y),B=o(y);return l(y),t(null,m,B,$,w,I,zo(B),T),w&&(w.vnode.el=m.el,Xo(w,m.el)),$},b=(y,m="[",w="]")=>{let I=0;for(;y;)if(y=a(y),y&&Ir(y)&&(y.data===m&&I++,y.data===w)){if(I===0)return a(y);I--}return y},v=(y,m,w)=>{const I=m.parentNode;I&&I.replaceChild(y,m);let T=w;for(;T;)T.vnode.el===m&&(T.vnode.el=T.subTree.el=y),T=T.parent},C=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,f]}var sd="data-allow-mismatch",lb={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Vo(e,n){if(n===0||n===1)for(;e&&!e.hasAttribute(sd);)e=e.parentElement;const t=e&&e.getAttribute(sd);if(t==null)return!1;if(t==="")return!0;{const i=t.split(",");return n===0&&i.includes("children")?!0:i.includes(lb[n])}}var cb=Eo().requestIdleCallback||(e=>setTimeout(e,1)),ub=Eo().cancelIdleCallback||(e=>clearTimeout(e)),fb=(e=1e4)=>n=>{const t=cb(n,{timeout:e});return()=>ub(t)};function db(e){const{top:n,left:t,bottom:i,right:r}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(n>0&&n<a||i>0&&i<a)&&(t>0&&t<o||r>0&&r<o)}var hb=e=>(n,t)=>{const i=new IntersectionObserver(r=>{for(const a of r)if(a.isIntersecting){i.disconnect(),n();break}},e);return t(r=>{if(r instanceof Element){if(db(r))return n(),i.disconnect(),!1;i.observe(r)}}),()=>i.disconnect()},pb=e=>n=>{if(e){const t=matchMedia(e);if(t.matches)n();else return t.addEventListener("change",n,{once:!0}),()=>t.removeEventListener("change",n)}},gb=(e=[])=>(n,t)=>{We(e)&&(e=[e]);let i=!1;const r=o=>{i||(i=!0,a(),n(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{t(o=>{for(const l of e)o.removeEventListener(l,r)})};return t(o=>{for(const l of e)o.addEventListener(l,r,{once:!0})}),a};function mb(e,n){if(Ir(e)&&e.data==="["){let t=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(n(i)===!1)break}else if(Ir(i))if(i.data==="]"){if(--t===0)break}else i.data==="["&&t++;i=i.nextSibling}}else n(e)}var ti=e=>!!e.type.__asyncLoader;function vb(e){be(e)&&(e={loader:e});const{loader:n,loadingComponent:t,errorComponent:i,delay:r=200,hydrate:a,timeout:o,suspensible:l=!0,onError:s}=e;let c=null,u,f=0;const h=()=>(f++,c=null,p()),p=()=>{let d;return c||(d=c=n().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),s)return new Promise((b,v)=>{s(g,()=>b(h()),()=>v(g),f+1)});throw g}).then(g=>d!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return Ye({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(d,g,b){let v=!1;(g.bu||(g.bu=[])).push(()=>v=!0);const C=()=>{v||b()},y=a?()=>{const m=a(C,w=>mb(d,w));m&&(g.bum||(g.bum=[])).push(m)}:C;u?y():p().then(()=>!g.isUnmounted&&y())},get __asyncResolved(){return u},setup(){const d=Ct;if($l(d),u)return()=>Ho(u,d);const g=w=>{c=null,Hi(w,d,13,!i)};if(l&&d.suspense||Zi)return p().then(w=>()=>Ho(w,d)).catch(w=>(g(w),()=>i?pe(i,{error:w}):null));const b=re(!1),v=re(),C=re(!!r);let y,m;return ii(()=>{y!=null&&clearTimeout(y),m!=null&&clearTimeout(m)}),r&&(m=setTimeout(()=>{d.isUnmounted||(C.value=!1)},r)),o!=null&&(y=setTimeout(()=>{if(!d.isUnmounted&&!b.value&&!v.value){const w=new Error(`Async component timed out after ${o}ms.`);g(w),v.value=w}},o)),p().then(()=>{d.isUnmounted||(b.value=!0,d.parent&&Ca(d.parent.vnode)&&d.parent.update())}).catch(w=>{if(d.isUnmounted){c=null;return}g(w),v.value=w}),()=>{if(b.value&&u)return Ho(u,d);if(v.value&&i)return pe(i,{error:v.value});if(t&&!C.value)return Ho(t,d)}}})}function Ho(e,n){const{ref:t,props:i,children:r,ce:a}=n.vnode,o=pe(e,i,r);return o.ref=t,o.ce=a,delete n.vnode.ce,o}var Ca=e=>e.type.__isKeepAlive,bb={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:n}){const t=Et(),i=t.ctx;if(!i.renderer)return()=>{const C=n.default&&n.default();return C&&C.length===1?C[0]:C};const r=new Map,a=new Set;let o=null;const l=t.suspense,{renderer:{p:s,m:c,um:u,o:{createElement:f}}}=i,h=f("div");i.activate=(C,y,m,w,I)=>{const T=C.component;c(C,y,m,0,l),s(T.vnode,C,y,m,T,l,w,C.slotScopeIds,I),ht(()=>{T.isDeactivated=!1,T.a&&gr(T.a);const G=C.props&&C.props.onVnodeMounted;G&&Yt(G,T.parent,C)},l)},i.deactivate=C=>{const y=C.component;es(y.m),es(y.a),c(C,h,null,1,l),ht(()=>{y.da&&gr(y.da);const m=C.props&&C.props.onVnodeUnmounted;m&&Yt(m,y.parent,C),y.isDeactivated=!0},l)};function p(C){Vl(C),u(C,t,l,!0)}function d(C){r.forEach((y,m)=>{const w=dc(ti(y)?y.type.__asyncResolved||{}:y.type);w&&!C(w)&&g(m)})}function g(C){const y=r.get(C);y&&(!o||!Mn(y,o))?p(y):o&&Vl(o),r.delete(C),a.delete(C)}kt(()=>[e.include,e.exclude],([C,y])=>{C&&d(m=>Ea(C,m)),y&&d(m=>!Ea(y,m))},{flush:"post",deep:!0});let b=null;const v=()=>{b!=null&&(ts(t.subTree.type)?ht(()=>{r.set(b,Yo(t.subTree))},t.subTree.suspense):r.set(b,Yo(t.subTree)))};return Xt(v),Qo(v),Sa(()=>{r.forEach(C=>{const{subTree:y,suspense:m}=t,w=Yo(y);if(C.type===w.type&&C.key===w.key){Vl(w);const I=w.component.da;I&&ht(I,m);return}p(C)})}),()=>{if(b=null,!n.default)return o=null;const C=n.default(),y=C[0];if(C.length>1)return o=null,C;if(!ai(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let m=Yo(y);if(m.type===ct)return o=null,m;const w=m.type,I=dc(ti(m)?m.type.__asyncResolved||{}:w),{include:T,exclude:G,max:$}=e;if(T&&(!I||!Ea(T,I))||G&&I&&Ea(G,I))return m.shapeFlag&=-257,o=m,y;const B=m.key==null?w:m.key,Y=r.get(B);return m.el&&(m=Dn(m),y.shapeFlag&128&&(y.ssContent=m)),b=B,Y?(m.el=Y.el,m.component=Y.component,m.transition&&ei(m,m.transition),m.shapeFlag|=512,a.delete(B),a.add(B)):(a.add(B),$&&a.size>parseInt($,10)&&g(a.values().next().value)),m.shapeFlag|=256,o=m,ts(y.type)?y:m}}};function Ea(e,n){return ge(e)?e.some(t=>Ea(t,n)):We(e)?e.split(",").includes(n):zv(e)?(e.lastIndex=0,e.test(n)):!1}function zl(e,n){ld(e,"a",n)}function Wo(e,n){ld(e,"da",n)}function ld(e,n,t=Ct){const i=e.__wdc||(e.__wdc=()=>{let r=t;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Go(n,i,t),t){let r=t.parent;for(;r&&r.parent;)Ca(r.parent.vnode)&&yb(i,n,t,r),r=r.parent}}function yb(e,n,t,i){const r=Go(n,e,i,!0);ii(()=>{Al(i[n],r)},t)}function Vl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Yo(e){return e.shapeFlag&128?e.ssContent:e}function Go(e,n,t=Ct,i=!1){if(t){const r=t[e]||(t[e]=[]),a=n.__weh||(n.__weh=(...o)=>{Qn();const l=Nr(t),s=Jt(n,t,e,o);return l(),Kn(),s});return i?r.unshift(a):r.push(a),a}}var ni=e=>(n,t=Ct)=>{(!Zi||e==="sp")&&Go(e,(...i)=>n(...i),t)},_t=ni("bm"),Xt=ni("m"),Hl=ni("bu"),Qo=ni("u"),Sa=ni("bum"),ii=ni("um"),cd=ni("sp"),ud=ni("rtg"),fd=ni("rtc");function dd(e,n=Ct){Go("ec",e,n)}var Wl="components",Ab="directives";function he(e,n){return Yl(Wl,e,!0,n)||e}var hd=Symbol.for("v-ndc");function pd(e){return We(e)?Yl(Wl,e,!1)||e:e||hd}function Tr(e){return Yl(Ab,e)}function Yl(e,n,t=!0,i=!1){const r=wt||Ct;if(r){const a=r.type;if(e===Wl){const l=dc(a,!1);if(l&&(l===n||l===dt(n)||l===la(dt(n))))return a}const o=gd(r[e]||a[e],n)||gd(r.appContext[e],n);return!o&&i?a:o}}function gd(e,n){return e&&(e[n]||e[dt(n)]||e[la(dt(n))])}function Gl(e,n,t,i){let r;const a=t&&t[i],o=ge(e);if(o||We(e)){const l=o&&Nn(e);let s=!1,c=!1;l&&(s=!Ht(e),c=En(e),e=To(e)),r=new Array(e.length);for(let u=0,f=e.length;u<f;u++)r[u]=n(s?c?br(Sn(e[u])):Sn(e[u]):e[u],u,void 0,a&&a[u])}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=n(l+1,l,void 0,a&&a[l])}else if(Be(e))if(e[Symbol.iterator])r=Array.from(e,(l,s)=>n(l,s,void 0,a&&a[s]));else{const l=Object.keys(e);r=new Array(l.length);for(let s=0,c=l.length;s<c;s++){const u=l[s];r[s]=n(e[u],u,s,a&&a[s])}}else r=[];return t&&(t[i]=r),r}function wb(e,n){for(let t=0;t<n.length;t++){const i=n[t];if(ge(i))for(let r=0;r<i.length;r++)e[i[r].name]=i[r].fn;else i&&(e[i.name]=i.key?(...r)=>{const a=i.fn(...r);return a&&(a.key=i.key),a}:i.fn)}return e}function kr(e,n,t={},i,r){if(wt.ce||wt.parent&&ti(wt.parent)&&wt.parent.ce){const c=Object.keys(t).length>0;return n!=="default"&&(t.name=n),L(),Me(He,null,[pe("slot",t,i&&i())],c?-2:64)}let a=e[n];a&&a._c&&(a._d=!1),L();const o=a&&Ql(a(t)),l=t.key||o&&o.key,s=Me(He,{key:(l&&!Zt(l)?l:`_${n}`)+(!o&&i?"_fb":"")},o||(i?i():[]),o&&e._===1?64:-2);return!r&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function Ql(e){return e.some(n=>ai(n)?!(n.type===ct||n.type===He&&!Ql(n.children)):!0)?e:null}function _b(e,n){const t={};for(const i in e)t[n&&/[A-Z]/.test(i)?`on:${i}`:ca(i)]=e[i];return t}var Kl=e=>e?Kd(e)?Ra(e):Kl(e.parent):null,Ma=Ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kl(e.parent),$root:e=>Kl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ec(e),$forceUpdate:e=>e.f||(e.f=()=>{Dl(e.update)}),$nextTick:e=>e.n||(e.n=_r.bind(e.proxy)),$watch:e=>Z0.bind(e)}),Zl=(e,n)=>e!==xe&&!e.__isScriptSetup&&ze(e,n),Jl={get({_:e},n){if(n==="__v_skip")return!0;const{ctx:t,setupState:i,data:r,props:a,accessCache:o,type:l,appContext:s}=e;if(n[0]!=="$"){const h=o[n];if(h!==void 0)switch(h){case 1:return i[n];case 2:return r[n];case 4:return t[n];case 3:return a[n]}else{if(Zl(i,n))return o[n]=1,i[n];if(r!==xe&&ze(r,n))return o[n]=2,r[n];if(ze(a,n))return o[n]=3,a[n];if(t!==xe&&ze(t,n))return o[n]=4,t[n];Xl&&(o[n]=0)}}const c=Ma[n];let u,f;if(c)return n==="$attrs"&&It(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[n]))return u;if(t!==xe&&ze(t,n))return o[n]=4,t[n];if(f=s.config.globalProperties,ze(f,n))return f[n]},set({_:e},n,t){const{data:i,setupState:r,ctx:a}=e;return Zl(r,n)?(r[n]=t,!0):i!==xe&&ze(i,n)?(i[n]=t,!0):ze(e.props,n)||n[0]==="$"&&n.slice(1)in e?!1:(a[n]=t,!0)},has({_:{data:e,setupState:n,accessCache:t,ctx:i,appContext:r,props:a,type:o}},l){let s;return!!(t[l]||e!==xe&&l[0]!=="$"&&ze(e,l)||Zl(n,l)||ze(a,l)||ze(i,l)||ze(Ma,l)||ze(r.config.globalProperties,l)||(s=o.__cssModules)&&s[l])},defineProperty(e,n,t){return t.get!=null?e._.accessCache[n]=0:ze(t,"value")&&this.set(e,n,t.value,null),Reflect.defineProperty(e,n,t)}},Cb=Ve({},Jl,{get(e,n){if(n!==Symbol.unscopables)return Jl.get(e,n,e)},has(e,n){return n[0]!=="_"&&!Yv(n)}});function Eb(){return null}function Sb(){return null}function Mb(e){}function Ib(e){}function Tb(){return null}function kb(){}function Ob(e,n){return null}function xb(){return md("useSlots").slots}function Nb(){return md("useAttrs").attrs}function md(e){const n=Et();return n.setupContext||(n.setupContext=Xd(n))}function Ia(e){return ge(e)?e.reduce((n,t)=>(n[t]=null,n),{}):e}function Rb(e,n){const t=Ia(e);for(const i in n){if(i.startsWith("__skip"))continue;let r=t[i];r?ge(r)||be(r)?r=t[i]={type:r,default:n[i]}:r.default=n[i]:r===null&&(r=t[i]={default:n[i]}),r&&n[`__skip_${i}`]&&(r.skipFactory=!0)}return t}function Lb(e,n){return!e||!n?e||n:ge(e)&&ge(n)?e.concat(n):Ve({},Ia(e),Ia(n))}function Pb(e,n){const t={};for(const i in e)n.includes(i)||Object.defineProperty(t,i,{enumerable:!0,get:()=>e[i]});return t}function Db(e){const n=Et(),t=Zi;let i=e();Na(),t&&xr(!1);const r=()=>{Nr(n),t&&xr(!0)},a=()=>{Et()!==n&&n.scope.off(),Na(),t&&xr(!1)};return wl(i)&&(i=i.catch(o=>{throw r(),Promise.resolve().then(()=>Promise.resolve().then(a)),o})),[i,()=>{r(),Promise.resolve().then(a)}]}var Xl=!0;function Fb(e){const n=ec(e),t=e.proxy,i=e.ctx;Xl=!1,n.beforeCreate&&vd(n.beforeCreate,e,"bc");const{data:r,computed:a,methods:o,watch:l,provide:s,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:p,updated:d,activated:g,deactivated:b,beforeDestroy:v,beforeUnmount:C,destroyed:y,unmounted:m,render:w,renderTracked:I,renderTriggered:T,errorCaptured:G,serverPrefetch:$,expose:B,inheritAttrs:Y,components:V,directives:P,filters:O}=n;if(c&&Bb(c,i,null),o)for(const F in o){const D=o[F];be(D)&&(i[F]=D.bind(t))}if(r){const F=r.call(t,t);Be(F)&&(e.data=Tt(F))}if(Xl=!0,a)for(const F in a){const D=a[F],Q=ne({get:be(D)?D.bind(t,t):be(D.get)?D.get.bind(t,t):ln,set:!be(D)&&be(D.set)?D.set.bind(t):ln});Object.defineProperty(i,F,{enumerable:!0,configurable:!0,get:()=>Q.value,set:ie=>Q.value=ie})}if(l)for(const F in l)bd(l[F],i,t,F);if(s){const F=be(s)?s.call(t):s;Reflect.ownKeys(F).forEach(D=>{qt(D,F[D])})}u&&vd(u,e,"c");function M(F,D){ge(D)?D.forEach(Q=>F(Q.bind(t))):D&&F(D.bind(t))}if(M(_t,f),M(Xt,h),M(Hl,p),M(Qo,d),M(zl,g),M(Wo,b),M(dd,G),M(fd,I),M(ud,T),M(Sa,C),M(ii,m),M(cd,$),ge(B))if(B.length){const F=e.exposed||(e.exposed={});B.forEach(D=>{Object.defineProperty(F,D,{get:()=>t[D],set:Q=>t[D]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===ln&&(e.render=w),Y!=null&&(e.inheritAttrs=Y),V&&(e.components=V),P&&(e.directives=P),$&&$l(e)}function Bb(e,n,t=ln){ge(e)&&(e=tc(e));for(const i in e){const r=e[i];let a;Be(r)?"default"in r?a=ve(r.from||i,r.default,!0):a=ve(r.from||i):a=ve(r),tt(a)?Object.defineProperty(n,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):n[i]=a}}function vd(e,n,t){Jt(ge(e)?e.map(i=>i.bind(n.proxy)):e.bind(n.proxy),n,t)}function bd(e,n,t,i){let r=i.includes(".")?Gf(t,i):()=>t[i];if(We(e)){const a=n[e];be(a)&&kt(r,a)}else if(be(e))kt(r,e.bind(t));else if(Be(e))if(ge(e))e.forEach(a=>bd(a,n,t,i));else{const a=be(e.handler)?e.handler.bind(t):n[e.handler];be(a)&&kt(r,a,e)}}function ec(e){const n=e.type,{mixins:t,extends:i}=n,{mixins:r,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,l=a.get(n);let s;return l?s=l:!r.length&&!t&&!i?s=n:(s={},r.length&&r.forEach(c=>Ko(s,c,o,!0)),Ko(s,n,o)),Be(n)&&a.set(n,s),s}function Ko(e,n,t,i=!1){const{mixins:r,extends:a}=n;a&&Ko(e,a,t,!0),r&&r.forEach(o=>Ko(e,o,t,!0));for(const o in n)if(!(i&&o==="expose")){const l=Ub[o]||t&&t[o];e[o]=l?l(e[o],n[o]):n[o]}return e}var Ub={data:yd,props:Ad,emits:Ad,methods:Ta,computed:Ta,beforeCreate:$t,created:$t,beforeMount:$t,mounted:$t,beforeUpdate:$t,updated:$t,beforeDestroy:$t,beforeUnmount:$t,destroyed:$t,unmounted:$t,activated:$t,deactivated:$t,errorCaptured:$t,serverPrefetch:$t,components:Ta,directives:Ta,watch:qb,provide:yd,inject:jb};function yd(e,n){return n?e?function(){return Ve(be(e)?e.call(this,this):e,be(n)?n.call(this,this):n)}:n:e}function jb(e,n){return Ta(tc(e),tc(n))}function tc(e){if(ge(e)){const n={};for(let t=0;t<e.length;t++)n[e[t]]=e[t];return n}return e}function $t(e,n){return e?[...new Set([].concat(e,n))]:n}function Ta(e,n){return e?Ve(Object.create(null),e,n):n}function Ad(e,n){return e?ge(e)&&ge(n)?[...new Set([...e,...n])]:Ve(Object.create(null),Ia(e),Ia(n??{})):n}function qb(e,n){if(!e)return n;if(!n)return e;const t=Ve(Object.create(null),e);for(const i in n)t[i]=$t(e[i],n[i]);return t}function wd(){return{app:null,config:{isNativeTag:af,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var $b=0;function zb(e,n){return function(i,r=null){be(i)||(i=Ve({},i)),r!=null&&!Be(r)&&(r=null);const a=wd(),o=new WeakSet,l=[];let s=!1;const c=a.app={_uid:$b++,_component:i,_props:r,_container:null,_context:a,_instance:null,version:th,get config(){return a.config},set config(u){},use(u,...f){return o.has(u)||(u&&be(u.install)?(o.add(u),u.install(c,...f)):be(u)&&(o.add(u),u(c,...f))),c},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),c},component(u,f){return f?(a.components[u]=f,c):a.components[u]},directive(u,f){return f?(a.directives[u]=f,c):a.directives[u]},mount(u,f,h){if(!s){const p=c._ceVNode||pe(i,r);return p.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),f&&n?n(p,u):e(p,u,h),s=!0,c._container=u,u.__vue_app__=c,Ra(p.component)}},onUnmount(u){l.push(u)},unmount(){s&&(Jt(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return a.provides[u]=f,c},runWithContext(u){const f=Yi;Yi=c;try{return u()}finally{Yi=f}}};return c}}var Yi=null;function Vb(e,n,t=xe){const i=Et(),r=dt(n),a=Vt(n),o=_d(e,r),l=Df((s,c)=>{let u,f=xe,h;return Yf(()=>{const p=e[r];bt(u,p)&&(u=p,c())}),{get(){return s(),t.get?t.get(u):u},set(p){const d=t.set?t.set(p):p;if(!bt(d,u)&&!(f!==xe&&bt(p,f)))return;const g=i.vnode.props,b=!!(g&&(n in g||r in g||a in g)&&(`onUpdate:${n}`in g||`onUpdate:${r}`in g||`onUpdate:${a}`in g));b||(u=p,c()),i.emit(`update:${n}`,d),bt(p,f)&&(bt(p,d)&&!bt(d,h)||b&&f!==xe&&!bt(d,u))&&c(),f=p,h=d}}});return l[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?o||xe:l,done:!1}:{done:!0}}}},l}var _d=(e,n)=>n==="modelValue"||n==="model-value"?e.modelModifiers:e[`${n}Modifiers`]||e[`${dt(n)}Modifiers`]||e[`${Vt(n)}Modifiers`];function Hb(e,n,...t){if(e.isUnmounted)return;const i=e.vnode.props||xe;let r=t;const a=n.startsWith("update:"),o=a&&_d(i,n.slice(7));o&&(o.trim&&(r=t.map(u=>We(u)?u.trim():u)),o.number&&(r=t.map(_o)));let l,s=i[l=ca(n)]||i[l=ca(dt(n))];!s&&a&&(s=i[l=ca(Vt(n))]),s&&Jt(s,e,6,r);const c=i[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Jt(c,e,6,r)}}var Wb=new WeakMap;function Cd(e,n,t=!1){const i=t?Wb:n.emitsCache,r=i.get(e);if(r!==void 0)return r;const a=e.emits;let o={},l=!1;if(!be(e)){const s=c=>{const u=Cd(c,n,!0);u&&(l=!0,Ve(o,u))};!t&&n.mixins.length&&n.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!a&&!l?(Be(e)&&i.set(e,null),null):(ge(a)?a.forEach(s=>o[s]=null):Ve(o,a),Be(e)&&i.set(e,o),o)}function Zo(e,n){return!e||!sa(n)?!1:(n=n.slice(2).replace(/Once$/,""),ze(e,n[0].toLowerCase()+n.slice(1))||ze(e,Vt(n))||ze(e,n))}function Jo(e){const{type:n,vnode:t,proxy:i,withProxy:r,propsOptions:[a],slots:o,attrs:l,emit:s,render:c,renderCache:u,props:f,data:h,setupState:p,ctx:d,inheritAttrs:g}=e,b=ya(e);let v,C;try{if(t.shapeFlag&4){const m=r||i,w=m;v=Wt(c.call(w,m,u,f,p,h,d)),C=l}else{const m=n;v=Wt(m.length>1?m(f,{attrs:l,slots:o,emit:s}):m(f,null)),C=n.props?l:Gb(l)}}catch(m){Oa.length=0,Hi(m,e,1),v=pe(ct)}let y=v;if(C&&g!==!1){const m=Object.keys(C),{shapeFlag:w}=y;m.length&&w&7&&(a&&m.some(bo)&&(C=Qb(C,a)),y=Dn(y,C,!1,!0))}return t.dirs&&(y=Dn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(t.dirs):t.dirs),t.transition&&ei(y,t.transition),v=y,ya(b),v}function Yb(e,n=!0){let t;for(let i=0;i<e.length;i++){const r=e[i];if(ai(r)){if(r.type!==ct||r.children==="v-if"){if(t)return;t=r}}else return}return t}var Gb=e=>{let n;for(const t in e)(t==="class"||t==="style"||sa(t))&&((n||(n={}))[t]=e[t]);return n},Qb=(e,n)=>{const t={};for(const i in e)(!bo(i)||!(i.slice(9)in n))&&(t[i]=e[i]);return t};function Kb(e,n,t){const{props:i,children:r,component:a}=e,{props:o,children:l,patchFlag:s}=n,c=a.emitsOptions;if(n.dirs||n.transition)return!0;if(t&&s>=0){if(s&1024)return!0;if(s&16)return i?Ed(i,o,c):!!o;if(s&8){const u=n.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(Sd(o,i,h)&&!Zo(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:i===o?!1:i?o?Ed(i,o,c):!0:!!o;return!1}function Ed(e,n,t){const i=Object.keys(n);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const a=i[r];if(Sd(n,e,a)&&!Zo(t,a))return!0}return!1}function Sd(e,n,t){const i=e[t],r=n[t];return t==="style"&&Be(i)&&Be(r)?!Gn(i,r):i!==r}function Xo({vnode:e,parent:n,suspense:t},i){for(;n;){const r=n.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=i,e=r),r===e)(e=n.vnode).el=i,n=n.parent;else break}t&&t.activeBranch===e&&(t.vnode.el=i)}var Md={},Id=()=>Object.create(Md),Td=e=>Object.getPrototypeOf(e)===Md;function Zb(e,n,t,i=!1){const r={},a=Id();e.propsDefaults=Object.create(null),kd(e,n,r,a);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);t?e.props=i?r:Rf(r):e.type.props?e.props=r:e.props=a,e.attrs=a}function Jb(e,n,t,i){const{props:r,attrs:a,vnode:{patchFlag:o}}=e,l=Re(r),[s]=e.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(Zo(e.emitsOptions,h))continue;const p=n[h];if(s)if(ze(a,h))p!==a[h]&&(a[h]=p,c=!0);else{const d=dt(h);r[d]=nc(s,l,d,p,e,!1)}else p!==a[h]&&(a[h]=p,c=!0)}}}else{kd(e,n,r,a)&&(c=!0);let u;for(const f in l)(!n||!ze(n,f)&&((u=Vt(f))===f||!ze(n,u)))&&(s?t&&(t[f]!==void 0||t[u]!==void 0)&&(r[f]=nc(s,l,f,void 0,e,!0)):delete r[f]);if(a!==l)for(const f in a)(!n||!ze(n,f))&&(delete a[f],c=!0)}c&&Zn(e.attrs,"set","")}function kd(e,n,t,i){const[r,a]=e.propsOptions;let o=!1,l;if(n)for(let s in n){if(zi(s))continue;const c=n[s];let u;r&&ze(r,u=dt(s))?!a||!a.includes(u)?t[u]=c:(l||(l={}))[u]=c:Zo(e.emitsOptions,s)||(!(s in i)||c!==i[s])&&(i[s]=c,o=!0)}if(a){const s=Re(t),c=l||xe;for(let u=0;u<a.length;u++){const f=a[u];t[f]=nc(r,s,f,c[f],e,!ze(c,f))}}return o}function nc(e,n,t,i,r,a){const o=e[t];if(o!=null){const l=ze(o,"default");if(l&&i===void 0){const s=o.default;if(o.type!==Function&&!o.skipFactory&&be(s)){const{propsDefaults:c}=r;if(t in c)i=c[t];else{const u=Nr(r);i=c[t]=s.call(null,n),u()}}else i=s;r.ce&&r.ce._setProp(t,i)}o[0]&&(a&&!l?i=!1:o[1]&&(i===""||i===Vt(t))&&(i=!0))}return i}var Xb=new WeakMap;function Od(e,n,t=!1){const i=t?Xb:n.propsCache,r=i.get(e);if(r)return r;const a=e.props,o={},l=[];let s=!1;if(!be(e)){const u=f=>{s=!0;const[h,p]=Od(f,n,!0);Ve(o,h),p&&l.push(...p)};!t&&n.mixins.length&&n.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!s)return Be(e)&&i.set(e,dr),dr;if(ge(a))for(let u=0;u<a.length;u++){const f=dt(a[u]);xd(f)&&(o[f]=xe)}else if(a)for(const u in a){const f=dt(u);if(xd(f)){const h=a[u],p=o[f]=ge(h)||be(h)?{type:h}:Ve({},h),d=p.type;let g=!1,b=!0;if(ge(d))for(let v=0;v<d.length;++v){const C=d[v],y=be(C)&&C.name;if(y==="Boolean"){g=!0;break}else y==="String"&&(b=!1)}else g=be(d)&&d.name==="Boolean";p[0]=g,p[1]=b,(g||ze(p,"default"))&&l.push(f)}}const c=[o,l];return Be(e)&&i.set(e,c),c}function xd(e){return e[0]!=="$"&&!zi(e)}var ic=e=>e==="_"||e==="_ctx"||e==="$stable",rc=e=>ge(e)?e.map(Wt):[Wt(e)],e1=(e,n,t)=>{if(n._n)return n;const i=jt((...r)=>rc(n(...r)),t);return i._c=!1,i},Nd=(e,n,t)=>{const i=e._ctx;for(const r in e){if(ic(r))continue;const a=e[r];if(be(a))n[r]=e1(r,a,i);else if(a!=null){const o=rc(a);n[r]=()=>o}}},Rd=(e,n)=>{const t=rc(n);e.slots.default=()=>t},Ld=(e,n,t)=>{for(const i in n)(t||!ic(i))&&(e[i]=n[i])},t1=(e,n,t)=>{const i=e.slots=Id();if(e.vnode.shapeFlag&32){const r=n._;r?(Ld(i,n,t),t&&lf(i,"_",r,!0)):Nd(n,i)}else n&&Rd(e,n)},n1=(e,n,t)=>{const{vnode:i,slots:r}=e;let a=!0,o=xe;if(i.shapeFlag&32){const l=n._;l?t&&l===1?a=!1:Ld(r,n,t):(a=!n.$stable,Nd(n,r)),o=n}else n&&(Rd(e,n),o={default:1});if(a)for(const l in r)!ic(l)&&o[l]==null&&delete r[l]},ht=zd;function Pd(e){return Fd(e)}function Dd(e){return Fd(e,sb)}function Fd(e,n){const t=Eo();t.__VUE__=!0;const{insert:i,remove:r,patchProp:a,createElement:o,createText:l,createComment:s,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:p=ln,insertStaticContent:d}=e,g=(E,k,z,K=null,Z=null,_=null,S=void 0,N=null,U=!!k.dynamicChildren)=>{if(E===k)return;E&&!Mn(E,k)&&(K=Ke(E),de(E,Z,_,!0),E=null),k.patchFlag===-2&&(U=!1,k.dynamicChildren=null);const{type:W,ref:te,shapeFlag:x}=k;switch(W){case ri:b(E,k,z,K);break;case ct:v(E,k,z,K);break;case Qi:E==null&&C(k,z,K,S);break;case He:V(E,k,z,K,Z,_,S,N,U);break;default:x&1?w(E,k,z,K,Z,_,S,N,U):x&6?P(E,k,z,K,Z,_,S,N,U):(x&64||x&128)&&W.process(E,k,z,K,Z,_,S,N,U,Ze)}te!=null&&Z?Sr(te,E&&E.ref,_,k||E,!k):te==null&&E&&E.ref!=null&&Sr(E.ref,null,_,E,!0)},b=(E,k,z,K)=>{if(E==null)i(k.el=l(k.children),z,K);else{const Z=k.el=E.el;k.children!==E.children&&c(Z,k.children)}},v=(E,k,z,K)=>{E==null?i(k.el=s(k.children||""),z,K):k.el=E.el},C=(E,k,z,K)=>{[E.el,E.anchor]=d(E.children,k,z,K,E.el,E.anchor)},y=({el:E,anchor:k},z,K)=>{let Z;for(;E&&E!==k;)Z=h(E),i(E,z,K),E=Z;i(k,z,K)},m=({el:E,anchor:k})=>{let z;for(;E&&E!==k;)z=h(E),r(E),E=z;r(k)},w=(E,k,z,K,Z,_,S,N,U)=>{if(k.type==="svg"?S="svg":k.type==="math"&&(S="mathml"),E==null)I(k,z,K,Z,_,S,N,U);else{const W=E.el&&E.el._isVueCE?E.el:null;try{W&&W._beginPatch(),$(E,k,Z,_,S,N,U)}finally{W&&W._endPatch()}}},I=(E,k,z,K,Z,_,S,N)=>{let U,W;const{props:te,shapeFlag:x,transition:q,dirs:le}=E;if(U=E.el=o(E.type,_,te&&te.is,te),x&8?u(U,E.children):x&16&&G(E.children,U,null,K,Z,ac(E,_),S,N),le&&Pn(E,null,K,"created"),T(U,E,E.scopeId,S,K),te){for(const Ce in te)Ce!=="value"&&!zi(Ce)&&a(U,Ce,null,te[Ce],_,K);"value"in te&&a(U,"value",null,te.value,_),(W=te.onVnodeBeforeMount)&&Yt(W,K,E)}le&&Pn(E,null,K,"beforeMount");const me=Bd(Z,q);me&&q.beforeEnter(U),i(U,k,z),((W=te&&te.onVnodeMounted)||me||le)&&ht(()=>{W&&Yt(W,K,E),me&&q.enter(U),le&&Pn(E,null,K,"mounted")},Z)},T=(E,k,z,K,Z)=>{if(z&&p(E,z),K)for(let _=0;_<K.length;_++)p(E,K[_]);if(Z){let _=Z.subTree;if(k===_||ts(_.type)&&(_.ssContent===k||_.ssFallback===k)){const S=Z.vnode;T(E,S,S.scopeId,S.slotScopeIds,Z.parent)}}},G=(E,k,z,K,Z,_,S,N,U=0)=>{for(let W=U;W<E.length;W++)g(null,E[W]=N?oi(E[W]):Wt(E[W]),k,z,K,Z,_,S,N)},$=(E,k,z,K,Z,_,S)=>{const N=k.el=E.el;let{patchFlag:U,dynamicChildren:W,dirs:te}=k;U|=E.patchFlag&16;const x=E.props||xe,q=k.props||xe;let le;if(z&&Gi(z,!1),(le=q.onVnodeBeforeUpdate)&&Yt(le,z,k,E),te&&Pn(k,E,z,"beforeUpdate"),z&&Gi(z,!0),(x.innerHTML&&q.innerHTML==null||x.textContent&&q.textContent==null)&&u(N,""),W?B(E.dynamicChildren,W,N,z,K,ac(k,Z),_):S||D(E,k,N,null,z,K,ac(k,Z),_,!1),U>0){if(U&16)Y(N,x,q,z,Z);else if(U&2&&x.class!==q.class&&a(N,"class",null,q.class,Z),U&4&&a(N,"style",x.style,q.style,Z),U&8){const me=k.dynamicProps;for(let Ce=0;Ce<me.length;Ce++){const Pe=me[Ce],Fe=x[Pe],ft=q[Pe];(ft!==Fe||Pe==="value")&&a(N,Pe,Fe,ft,Z,z)}}U&1&&E.children!==k.children&&u(N,k.children)}else!S&&W==null&&Y(N,x,q,z,Z);((le=q.onVnodeUpdated)||te)&&ht(()=>{le&&Yt(le,z,k,E),te&&Pn(k,E,z,"updated")},K)},B=(E,k,z,K,Z,_,S)=>{for(let N=0;N<k.length;N++){const U=E[N],W=k[N];g(U,W,U.el&&(U.type===He||!Mn(U,W)||U.shapeFlag&198)?f(U.el):z,null,K,Z,_,S,!0)}},Y=(E,k,z,K,Z)=>{if(k!==z){if(k!==xe)for(const _ in k)!zi(_)&&!(_ in z)&&a(E,_,k[_],null,Z,K);for(const _ in z){if(zi(_))continue;const S=z[_],N=k[_];S!==N&&_!=="value"&&a(E,_,N,S,Z,K)}"value"in z&&a(E,"value",k.value,z.value,Z)}},V=(E,k,z,K,Z,_,S,N,U)=>{const W=k.el=E?E.el:l(""),te=k.anchor=E?E.anchor:l("");let{patchFlag:x,dynamicChildren:q,slotScopeIds:le}=k;le&&(N=N?N.concat(le):le),E==null?(i(W,z,K),i(te,z,K),G(k.children||[],z,te,Z,_,S,N,U)):x>0&&x&64&&q&&E.dynamicChildren&&E.dynamicChildren.length===q.length?(B(E.dynamicChildren,q,z,Z,_,S,N),(k.key!=null||Z&&k===Z.subTree)&&oc(E,k,!0)):D(E,k,z,te,Z,_,S,N,U)},P=(E,k,z,K,Z,_,S,N,U)=>{k.slotScopeIds=N,E==null?k.shapeFlag&512?Z.ctx.activate(k,z,K,S,U):O(k,z,K,Z,_,S,U):A(E,k,U)},O=(E,k,z,K,Z,_,S)=>{const N=E.component=Qd(E,K,Z);if(Ca(E)&&(N.ctx.renderer=Ze),Zd(N,!1,S),N.asyncDep){if(Z&&Z.registerDep(N,M,S),!E.el){const U=N.subTree=pe(ct);v(null,U,k,z),E.placeholder=U.el}}else M(N,E,k,z,Z,_,S)},A=(E,k,z)=>{const K=k.component=E.component;if(Kb(E,k,z))if(K.asyncDep&&!K.asyncResolved){F(K,k,z);return}else K.next=k,K.update();else k.el=E.el,K.vnode=k},M=(E,k,z,K,Z,_,S)=>{const N=()=>{if(E.isMounted){let{next:x,bu:q,u:le,parent:me,vnode:Ce}=E;{const on=Ud(E);if(on){x&&(x.el=Ce.el,F(E,x,S)),on.asyncDep.then(()=>{ht(()=>{E.isUnmounted||W()},Z)});return}}let Pe=x,Fe;Gi(E,!1),x?(x.el=Ce.el,F(E,x,S)):x=Ce,q&&gr(q),(Fe=x.props&&x.props.onVnodeBeforeUpdate)&&Yt(Fe,me,x,Ce),Gi(E,!0);const ft=Jo(E),_n=E.subTree;E.subTree=ft,g(_n,ft,f(_n.el),Ke(_n),E,Z,_),x.el=ft.el,Pe===null&&Xo(E,ft.el),le&&ht(le,Z),(Fe=x.props&&x.props.onVnodeUpdated)&&ht(()=>Yt(Fe,me,x,Ce),Z)}else{let x;const{el:q,props:le}=k,{bm:me,m:Ce,parent:Pe,root:Fe,type:ft}=E,_n=ti(k);if(Gi(E,!1),me&&gr(me),!_n&&(x=le&&le.onVnodeBeforeMount)&&Yt(x,Pe,k),Gi(E,!0),q&&se){const on=()=>{E.subTree=Jo(E),se(q,E.subTree,E,Z,null)};_n&&ft.__asyncHydrate?ft.__asyncHydrate(q,E,on):on()}else{Fe.ce&&Fe.ce._hasShadowRoot()&&Fe.ce._injectChildStyle(ft,E.parent?E.parent.type:void 0);const on=E.subTree=Jo(E);g(null,on,z,K,E,Z,_),k.el=on.el}if(Ce&&ht(Ce,Z),!_n&&(x=le&&le.onVnodeMounted)){const on=k;ht(()=>Yt(x,Pe,on),Z)}(k.shapeFlag&256||Pe&&ti(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&E.a&&ht(E.a,Z),E.isMounted=!0,k=z=K=null}};E.scope.on();const U=E.effect=new ua(N);E.scope.off();const W=E.update=U.run.bind(U),te=E.job=U.runIfDirty.bind(U);te.i=E,te.id=E.uid,U.scheduler=()=>Dl(te),Gi(E,!0),W()},F=(E,k,z)=>{k.component=E;const K=E.vnode.props;E.vnode=k,E.next=null,Jb(E,k.props,K,z),n1(E,k.children,z),Qn(),$f(E),Kn()},D=(E,k,z,K,Z,_,S,N,U=!1)=>{const W=E&&E.children,te=E?E.shapeFlag:0,x=k.children,{patchFlag:q,shapeFlag:le}=k;if(q>0){if(q&128){ie(W,x,z,K,Z,_,S,N,U);return}else if(q&256){Q(W,x,z,K,Z,_,S,N,U);return}}le&8?(te&16&&De(W,Z,_),x!==W&&u(z,x)):te&16?le&16?ie(W,x,z,K,Z,_,S,N,U):De(W,Z,_,!0):(te&8&&u(z,""),le&16&&G(x,z,K,Z,_,S,N,U))},Q=(E,k,z,K,Z,_,S,N,U)=>{E=E||dr,k=k||dr;const W=E.length,te=k.length,x=Math.min(W,te);let q;for(q=0;q<x;q++){const le=k[q]=U?oi(k[q]):Wt(k[q]);g(E[q],le,z,null,Z,_,S,N,U)}W>te?De(E,Z,_,!0,!1,x):G(k,z,K,Z,_,S,N,U,x)},ie=(E,k,z,K,Z,_,S,N,U)=>{let W=0;const te=k.length;let x=E.length-1,q=te-1;for(;W<=x&&W<=q;){const le=E[W],me=k[W]=U?oi(k[W]):Wt(k[W]);if(Mn(le,me))g(le,me,z,null,Z,_,S,N,U);else break;W++}for(;W<=x&&W<=q;){const le=E[x],me=k[q]=U?oi(k[q]):Wt(k[q]);if(Mn(le,me))g(le,me,z,null,Z,_,S,N,U);else break;x--,q--}if(W>x){if(W<=q){const le=q+1,me=le<te?k[le].el:K;for(;W<=q;)g(null,k[W]=U?oi(k[W]):Wt(k[W]),z,me,Z,_,S,N,U),W++}}else if(W>q)for(;W<=x;)de(E[W],Z,_,!0),W++;else{const le=W,me=W,Ce=new Map;for(W=me;W<=q;W++){const sn=k[W]=U?oi(k[W]):Wt(k[W]);sn.key!=null&&Ce.set(sn.key,W)}let Pe,Fe=0;const ft=q-me+1;let _n=!1,on=0;const mo=new Array(ft);for(W=0;W<ft;W++)mo[W]=0;for(W=le;W<=x;W++){const sn=E[W];if(Fe>=ft){de(sn,Z,_,!0);continue}let Yn;if(sn.key!=null)Yn=Ce.get(sn.key);else for(Pe=me;Pe<=q;Pe++)if(mo[Pe-me]===0&&Mn(sn,k[Pe])){Yn=Pe;break}Yn===void 0?de(sn,Z,_,!0):(mo[Yn-me]=W+1,Yn>=on?on=Yn:_n=!0,g(sn,k[Yn],z,null,Z,_,S,N,U),Fe++)}const fv=_n?i1(mo):dr;for(Pe=fv.length-1,W=ft-1;W>=0;W--){const sn=me+W,Yn=k[sn],dv=k[sn+1],hv=sn+1<te?dv.el||jd(dv):K;mo[W]===0?g(null,Yn,z,hv,Z,_,S,N,U):_n&&(Pe<0||W!==fv[Pe]?ce(Yn,z,hv,2):Pe--)}}},ce=(E,k,z,K,Z=null)=>{const{el:_,type:S,transition:N,children:U,shapeFlag:W}=E;if(W&6){ce(E.component.subTree,k,z,K);return}if(W&128){E.suspense.move(k,z,K);return}if(W&64){S.move(E,k,z,Ze);return}if(S===He){i(_,k,z);for(let te=0;te<U.length;te++)ce(U[te],k,z,K);i(E.anchor,k,z);return}if(S===Qi){y(E,k,z);return}if(K!==2&&W&1&&N)if(K===0)N.persisted&&!_[cn]?i(_,k,z):(N.beforeEnter(_),i(_,k,z),ht(()=>N.enter(_),Z));else{const{leave:te,delayLeave:x,afterLeave:q}=N,le=()=>{E.ctx.isUnmounted?r(_):i(_,k,z)},me=()=>{const Ce=_._isLeaving||!!_[cn];_._isLeaving&&_[cn](!0),N.persisted&&!Ce?le():te(_,()=>{le(),q&&q()})};x?x(_,le,me):me()}else i(_,k,z)},de=(E,k,z,K=!1,Z=!1)=>{const{type:_,props:S,ref:N,children:U,dynamicChildren:W,shapeFlag:te,patchFlag:x,dirs:q,cacheIndex:le,memo:me}=E;if(x===-2&&(Z=!1),N!=null&&(Qn(),Sr(N,null,z,E,!0),Kn()),le!=null&&(k.renderCache[le]=void 0),te&256){k.ctx.deactivate(E);return}const Ce=te&1&&q,Pe=!ti(E);let Fe;if(Pe&&(Fe=S&&S.onVnodeBeforeUnmount)&&Yt(Fe,k,E),te&6)ke(E.component,z,K);else{if(te&128){E.suspense.unmount(z,K);return}Ce&&Pn(E,null,k,"beforeUnmount"),te&64?E.type.remove(E,k,z,Ze,K):W&&!W.hasOnce&&(_!==He||x>0&&x&64)?De(W,k,z,!1,!0):(_===He&&x&384||!Z&&te&16)&&De(U,k,z),K&&ye(E)}const ft=me!=null&&le==null;(Pe&&(Fe=S&&S.onVnodeUnmounted)||Ce||ft)&&ht(()=>{Fe&&Yt(Fe,k,E),Ce&&Pn(E,null,k,"unmounted"),ft&&(E.el=null)},z)},ye=E=>{const{type:k,el:z,anchor:K,transition:Z}=E;if(k===He){Te(z,K);return}if(k===Qi){m(E);return}const _=()=>{r(z),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(E.shapeFlag&1&&Z&&!Z.persisted){const{leave:S,delayLeave:N}=Z,U=()=>S(z,_);N?N(E.el,_,U):U()}else _()},Te=(E,k)=>{let z;for(;E!==k;)z=h(E),r(E),E=z;r(k)},ke=(E,k,z)=>{const{bum:K,scope:Z,job:_,subTree:S,um:N,m:U,a:W}=E;es(U),es(W),K&&gr(K),Z.stop(),_&&(_.flags|=8,de(S,E,k,z)),N&&ht(N,k),ht(()=>{E.isUnmounted=!0},k)},De=(E,k,z,K=!1,Z=!1,_=0)=>{for(let S=_;S<E.length;S++)de(E[S],k,z,K,Z)},Ke=E=>{if(E.shapeFlag&6)return Ke(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const k=h(E.anchor||E.el),z=k&&k[Qf];return z?h(z):k};let Ft=!1;const Bt=(E,k,z)=>{let K;E==null?k._vnode&&(de(k._vnode,null,null,!0),K=k._vnode.component):g(k._vnode||null,E,k,null,null,null,z),k._vnode=E,Ft||(Ft=!0,$f(K),Fo(),Ft=!1)},Ze={p:g,um:de,m:ce,r:ye,mt:O,mc:G,pc:D,pbc:B,n:Ke,o:e};let J,se;return n&&([J,se]=n(Ze)),{render:Bt,hydrate:J,createApp:zb(Bt,J)}}function ac({type:e,props:n},t){return t==="svg"&&e==="foreignObject"||t==="mathml"&&e==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:t}function Gi({effect:e,job:n},t){t?(e.flags|=32,n.flags|=4):(e.flags&=-33,n.flags&=-5)}function Bd(e,n){return(!e||e&&!e.pendingBranch)&&n&&!n.persisted}function oc(e,n,t=!1){const i=e.children,r=n.children;if(ge(i)&&ge(r))for(let a=0;a<i.length;a++){const o=i[a];let l=r[a];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[a]=oi(r[a]),l.el=o.el),!t&&l.patchFlag!==-2&&oc(o,l)),l.type===ri&&(l.patchFlag===-1&&(l=r[a]=oi(l)),l.el=o.el),l.type===ct&&!l.el&&(l.el=o.el)}}function i1(e){const n=e.slice(),t=[0];let i,r,a,o,l;const s=e.length;for(i=0;i<s;i++){const c=e[i];if(c!==0){if(r=t[t.length-1],e[r]<c){n[i]=r,t.push(i);continue}for(a=0,o=t.length-1;a<o;)l=a+o>>1,e[t[l]]<c?a=l+1:o=l;c<e[t[a]]&&(a>0&&(n[i]=t[a-1]),t[a]=i)}}for(a=t.length,o=t[a-1];a-- >0;)t[a]=o,o=n[o];return t}function Ud(e){const n=e.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:Ud(n)}function es(e){if(e)for(let n=0;n<e.length;n++)e[n].flags|=8}function jd(e){if(e.placeholder)return e.placeholder;const n=e.component;return n?jd(n.subTree):null}var ts=e=>e.__isSuspense,sc=0,r1={name:"Suspense",__isSuspense:!0,process(e,n,t,i,r,a,o,l,s,c){if(e==null)a1(n,t,i,r,a,o,l,s,c);else{if(a&&a.deps>0&&!e.suspense.isInFallback){n.suspense=e.suspense,n.suspense.vnode=n,n.el=e.el;return}o1(e,n,t,i,r,o,l,s,c)}},hydrate:s1,normalize:l1};function ka(e,n){const t=e.props&&e.props[n];be(t)&&t()}function a1(e,n,t,i,r,a,o,l,s){const{p:c,o:{createElement:u}}=s,f=u("div"),h=e.suspense=qd(e,r,i,n,f,t,a,o,l,s);c(null,h.pendingBranch=e.ssContent,f,null,i,h,a,o),h.deps>0?(ka(e,"onPending"),ka(e,"onFallback"),c(null,e.ssFallback,n,t,i,null,a,o),Or(h,e.ssFallback)):h.resolve(!1,!0)}function o1(e,n,t,i,r,a,o,l,{p:s,um:c,o:{createElement:u}}){const f=n.suspense=e.suspense;f.vnode=n,n.el=e.el;const h=n.ssContent,p=n.ssFallback,{activeBranch:d,pendingBranch:g,isInFallback:b,isHydrating:v}=f;if(g)f.pendingBranch=h,Mn(g,h)?(s(g,h,f.hiddenContainer,null,r,f,a,o,l),f.deps<=0?f.resolve():b&&(v||(s(d,p,t,i,r,null,a,o,l),Or(f,p)))):(f.pendingId=sc++,v?(f.isHydrating=!1,f.activeBranch=g):c(g,r,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),b?(s(null,h,f.hiddenContainer,null,r,f,a,o,l),f.deps<=0?f.resolve():(s(d,p,t,i,r,null,a,o,l),Or(f,p))):d&&Mn(d,h)?(s(d,h,t,i,r,f,a,o,l),f.resolve(!0)):(s(null,h,f.hiddenContainer,null,r,f,a,o,l),f.deps<=0&&f.resolve()));else if(d&&Mn(d,h))s(d,h,t,i,r,f,a,o,l),Or(f,h);else if(ka(n,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=sc++,s(null,h,f.hiddenContainer,null,r,f,a,o,l),f.deps<=0)f.resolve();else{const{timeout:C,pendingId:y}=f;C>0?setTimeout(()=>{f.pendingId===y&&f.fallback(p)},C):C===0&&f.fallback(p)}}function qd(e,n,t,i,r,a,o,l,s,c,u=!1){const{p:f,m:h,um:p,n:d,o:{parentNode:g,remove:b}}=c;let v;const C=c1(e);C&&n&&n.pendingBranch&&(v=n.pendingId,n.deps++);const y=e.props?Co(e.props.timeout):void 0,m=a,w={vnode:e,parent:n,parentComponent:t,namespace:o,container:i,hiddenContainer:r,deps:0,pendingId:sc++,timeout:typeof y=="number"?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(I=!1,T=!1){const{vnode:G,activeBranch:$,pendingBranch:B,pendingId:Y,effects:V,parentComponent:P,container:O,isInFallback:A}=w;let M=!1;if(w.isHydrating)w.isHydrating=!1;else if(!I){M=$&&B.transition&&B.transition.mode==="out-in";let Q=!1;M&&($.transition.afterLeave=()=>{Y===w.pendingId&&(h(B,O,a===m&&!Q?d($):a,0),va(V),A&&G.ssFallback&&(G.ssFallback.el=null))}),$&&!w.isFallbackMountPending&&(g($.el)===O&&(a=d($),Q=!0),p($,P,w,!0),!M&&A&&G.ssFallback&&ht(()=>G.ssFallback.el=null,w)),M||h(B,O,a,0)}w.isFallbackMountPending=!1,Or(w,B),w.pendingBranch=null,w.isInFallback=!1;let F=w.parent,D=!1;for(;F;){if(F.pendingBranch){F.effects.push(...V),D=!0;break}F=F.parent}!D&&!M&&va(V),w.effects=[],C&&n&&n.pendingBranch&&v===n.pendingId&&(n.deps--,n.deps===0&&!T&&n.resolve()),ka(G,"onResolve")},fallback(I){if(!w.pendingBranch)return;const{vnode:T,activeBranch:G,parentComponent:$,container:B,namespace:Y}=w;ka(T,"onFallback");const V=d(G),P=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(f(null,I,B,V,$,null,Y,l,s),Or(w,I))},O=I.transition&&I.transition.mode==="out-in";O&&(w.isFallbackMountPending=!0,G.transition.afterLeave=P),w.isInFallback=!0,p(G,$,null,!0),O||P()},move(I,T,G){w.activeBranch&&h(w.activeBranch,I,T,G),w.container=I},next(){return w.activeBranch&&d(w.activeBranch)},registerDep(I,T,G){const $=!!w.pendingBranch;$&&w.deps++;const B=I.vnode.el;I.asyncDep.catch(Y=>{Hi(Y,I,0)}).then(Y=>{if(I.isUnmounted||w.isUnmounted||w.pendingId!==I.suspenseId)return;Na(),I.asyncResolved=!0;const{vnode:V}=I;uc(I,Y,!1),B&&(V.el=B);const P=!B&&I.subTree.el;T(I,V,g(B||I.subTree.el),B?null:d(I.subTree),w,o,G),P&&(V.placeholder=null,b(P)),Xo(I,V.el),$&&--w.deps===0&&w.resolve()})},unmount(I,T){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,t,I,T),w.pendingBranch&&p(w.pendingBranch,t,I,T)}};return w}function s1(e,n,t,i,r,a,o,l,s){const c=n.suspense=qd(n,i,t,e.parentNode,document.createElement("div"),null,r,a,o,l,!0),u=s(e,c.pendingBranch=n.ssContent,t,c,a,o);return c.deps===0&&c.resolve(!1,!0),u}function l1(e){const{shapeFlag:n,children:t}=e,i=n&32;e.ssContent=$d(i?t.default:t),e.ssFallback=i?$d(t.fallback):pe(ct)}function $d(e){let n;if(be(e)){const t=Ki&&e._c;t&&(e._d=!1,L()),e=e(),t&&(e._d=!0,n=Ot,Vd())}return ge(e)&&(e=Yb(e)),e=Wt(e),n&&!e.dynamicChildren&&(e.dynamicChildren=n.filter(t=>t!==e)),e}function zd(e,n){n&&n.pendingBranch?ge(e)?n.effects.push(...e):n.effects.push(e):va(e)}function Or(e,n){e.activeBranch=n;const{vnode:t,parentComponent:i}=e;let r=n.el;for(;!r&&n.component;)n=n.component.subTree,r=n.el;t.el=r,i&&i.subTree===t&&(i.vnode.el=r,Xo(i,r))}function c1(e){const n=e.props&&e.props.suspensible;return n!=null&&n!==!1}var He=Symbol.for("v-fgt"),ri=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Qi=Symbol.for("v-stc"),Oa=[],Ot=null;function L(e=!1){Oa.push(Ot=e?null:[])}function Vd(){Oa.pop(),Ot=Oa[Oa.length-1]||null}var Ki=1;function xa(e,n=!1){Ki+=e,e<0&&Ot&&n&&(Ot.hasOnce=!0)}function Hd(e){return e.dynamicChildren=Ki>0?Ot||dr:null,Vd(),Ki>0&&Ot&&Ot.push(e),e}function H(e,n,t,i,r,a){return Hd(X(e,n,t,i,r,a,!0))}function Me(e,n,t,i,r){return Hd(pe(e,n,t,i,r,!0))}function ai(e){return e?e.__v_isVNode===!0:!1}function Mn(e,n){return e.type===n.type&&e.key===n.key}function u1(e){}var Wd=({key:e})=>e??null,ns=({ref:e,ref_key:n,ref_for:t})=>(typeof e=="number"&&(e=""+e),e!=null?We(e)||tt(e)||be(e)?{i:wt,r:e,k:n,f:!!t}:e:null);function X(e,n=null,t=null,i=0,r=null,a=e===He?0:1,o=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:n,key:n&&Wd(n),ref:n&&ns(n),scopeId:Uo,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:wt};return l?(cc(s,t),a&128&&e.normalize(s)):t&&(s.shapeFlag|=We(t)?8:16),Ki>0&&!o&&Ot&&(s.patchFlag>0||a&6)&&s.patchFlag!==32&&Ot.push(s),s}var pe=f1;function f1(e,n=null,t=null,i=0,r=null,a=!1){if((!e||e===hd)&&(e=ct),ai(e)){const l=Dn(e,n,!0);return t&&cc(l,t),Ki>0&&!a&&Ot&&(l.shapeFlag&6?Ot[Ot.indexOf(e)]=l:Ot.push(l)),l.patchFlag=-2,l}if(b1(e)&&(e=e.__vccOpts),n){n=Yd(n);let{class:l,style:s}=n;l&&!We(l)&&(n.class=j(l)),Be(s)&&(ma(s)&&!ge(s)&&(s=Ve({},s)),n.style=mr(s))}const o=We(e)?1:ts(e)?128:Kf(e)?64:Be(e)?4:be(e)?2:0;return X(e,n,t,i,r,o,a,!0)}function Yd(e){return e?ma(e)||Td(e)?Ve({},e):e:null}function Dn(e,n,t=!1,i=!1){const{props:r,ref:a,patchFlag:o,children:l,transition:s}=e,c=n?Gd(r||{},n):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wd(c),ref:n&&n.ref?t&&a?ge(a)?a.concat(ns(n)):[a,ns(n)]:ns(n):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:n&&e.type!==He?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dn(e.ssContent),ssFallback:e.ssFallback&&Dn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&i&&ei(u,s.clone(u)),u}function fn(e=" ",n=0){return pe(ri,null,e,n)}function lc(e,n){const t=pe(Qi,null,e);return t.staticCount=n,t}function ue(e="",n=!1){return n?(L(),Me(ct,null,e)):pe(ct,null,e)}function Wt(e){return e==null||typeof e=="boolean"?pe(ct):ge(e)?pe(He,null,e.slice()):ai(e)?oi(e):pe(ri,null,String(e))}function oi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dn(e)}function cc(e,n){let t=0;const{shapeFlag:i}=e;if(n==null)n=null;else if(ge(n))t=16;else if(typeof n=="object")if(i&65){const r=n.default;r&&(r._c&&(r._d=!1),cc(e,r()),r._c&&(r._d=!0));return}else{t=32;const r=n._;!r&&!Td(n)?n._ctx=wt:r===3&&wt&&(wt.slots._===1?n._=1:(n._=2,e.patchFlag|=1024))}else be(n)?(n={default:n,_ctx:wt},t=32):(n=String(n),i&64?(t=16,n=[fn(n)]):t=8);e.children=n,e.shapeFlag|=t}function Gd(...e){const n={};for(let t=0;t<e.length;t++){const i=e[t];for(const r in i)if(r==="class")n.class!==i.class&&(n.class=j([n.class,i.class]));else if(r==="style")n.style=mr([n.style,i.style]);else if(sa(r)){const a=n[r],o=i[r];o&&a!==o&&!(ge(a)&&a.includes(o))?n[r]=a?[].concat(a,o):o:o==null&&a==null&&!bo(r)&&(n[r]=o)}else r!==""&&(n[r]=i[r])}return n}function Yt(e,n,t,i=null){Jt(e,n,7,[t,i])}var d1=wd(),h1=0;function Qd(e,n,t){const i=e.type,r=(n?n.appContext:e.appContext)||d1,a={uid:h1++,vnode:e,type:i,parent:n,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Cl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(r.provides),ids:n?n.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Od(i,r),emitsOptions:Cd(i,r),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:i.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=n?n.root:a,a.emit=Hb.bind(null,a),e.ce&&e.ce(a),a}var Ct=null,Et=()=>Ct||wt,is,xr;{const e=Eo(),n=(t,i)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(i),a=>{r.length>1?r.forEach(o=>o(a)):r[0](a)}};is=n("__VUE_INSTANCE_SETTERS__",t=>Ct=t),xr=n("__VUE_SSR_SETTERS__",t=>Zi=t)}var Nr=e=>{const n=Ct;return is(e),e.scope.on(),()=>{e.scope.off(),is(n)}},Na=()=>{Ct&&Ct.scope.off(),is(null)};function Kd(e){return e.vnode.shapeFlag&4}var Zi=!1;function Zd(e,n=!1,t=!1){n&&xr(n);const{props:i,children:r}=e.vnode,a=Kd(e);Zb(e,i,a,n),t1(e,r,t||n);const o=a?p1(e,n):void 0;return n&&xr(!1),o}function p1(e,n){const t=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Jl);const{setup:i}=t;if(i){Qn();const r=e.setupContext=i.length>1?Xd(e):null,a=Nr(e),o=yr(i,e,0,[e.props,r]),l=wl(o);if(Kn(),a(),(l||e.sp)&&!ti(e)&&$l(e),l){if(o.then(Na,Na),n)return o.then(s=>{uc(e,s,n)}).catch(s=>{Hi(s,e,0)});e.asyncDep=o}else uc(e,o,n)}else Jd(e,n)}function uc(e,n,t){be(n)?e.type.__ssrInlineRender?e.ssrRender=n:e.render=n:Be(n)&&(e.setupState=Pl(n)),Jd(e,t)}var rs,fc;function g1(e){rs=e,fc=n=>{n.render._rc&&(n.withProxy=new Proxy(n.ctx,Cb))}}var m1=()=>!rs;function Jd(e,n,t){const i=e.type;if(!e.render){if(!n&&rs&&!i.render){const r=i.template||ec(e).template;if(r){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:s}=i,c=Ve(Ve({isCustomElement:a,delimiters:l},o),s);i.render=rs(r,c)}}e.render=i.render||ln,fc&&fc(e)}{const r=Nr(e);Qn();try{Fb(e)}finally{Kn(),r()}}}var v1={get(e,n){return It(e,"get",""),e[n]}};function Xd(e){const n=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,v1),slots:e.slots,emit:e.emit,expose:n}}function Ra(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pl(Lf(e.exposed)),{get(n,t){if(t in n)return n[t];if(t in Ma)return Ma[t](e)},has(n,t){return t in n||t in Ma}})):e.proxy}function dc(e,n=!0){return be(e)?e.displayName||e.name:e.name||n&&e.__name}function b1(e){return be(e)&&"__vccOpts"in e}var ne=(e,n)=>R0(e,n,Zi);function Rr(e,n,t){try{xa(-1);const i=arguments.length;return i===2?Be(n)&&!ge(n)?ai(n)?pe(e,null,[n]):pe(e,n):pe(e,null,n):(i>3?t=Array.prototype.slice.call(arguments,2):i===3&&ai(t)&&(t=[t]),pe(e,n,t))}finally{xa(1)}}function y1(){return;function e(n,t,i){const r=n[i];if(ge(r)&&r.includes(t)||Be(r)&&t in r||n.extends&&e(n.extends,t,i)||n.mixins&&n.mixins.some(a=>e(a,t,i)))return!0}}function A1(e,n,t,i){const r=t[i];if(r&&eh(r,e))return r;const a=n();return a.memo=e.slice(),a.cacheIndex=i,t[i]=a}function eh(e,n){const t=e.memo;if(t.length!=n.length)return!1;for(let i=0;i<t.length;i++)if(bt(t[i],n[i]))return!1;return Ki>0&&Ot&&Ot.push(e),!0}var th="3.5.38",w1=ln,_1=$0,C1=Cr,E1=Vf,S1={createComponentInstance:Qd,setupComponent:Zd,renderComponentRoot:Jo,setCurrentRenderingInstance:ya,isVNode:ai,normalizeVNode:Wt,getComponentPublicInstance:Ra,ensureValidVNode:Ql,pushWarningContext:B0,popWarningContext:U0},WO=null,YO=null,GO=null,hc=void 0,nh=typeof window<"u"&&window.trustedTypes;if(nh)try{hc=nh.createPolicy("vue",{createHTML:e=>e})}catch{}var ih=hc?e=>hc.createHTML(e):e=>e,M1="http://www.w3.org/2000/svg",I1="http://www.w3.org/1998/Math/MathML",si=typeof document<"u"?document:null,rh=si&&si.createElement("template"),ah={insert:(e,n,t)=>{n.insertBefore(e,t||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,t,i)=>{const r=n==="svg"?si.createElementNS(M1,e):n==="mathml"?si.createElementNS(I1,e):t?si.createElement(e,{is:t}):si.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>si.createTextNode(e),createComment:e=>si.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>si.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,t,i,r,a){const o=t?t.previousSibling:n.lastChild;if(r&&(r===a||r.nextSibling))for(;n.insertBefore(r.cloneNode(!0),t),!(r===a||!(r=r.nextSibling)););else{rh.innerHTML=ih(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const l=rh.content;if(i==="svg"||i==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}n.insertBefore(l,t)}return[o?o.nextSibling:n.firstChild,t?t.previousSibling:n.lastChild]}},_i="transition",La="animation",Lr=Symbol("_vtc"),oh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sh=Ve({},jl,oh),T1=e=>(e.displayName="Transition",e.props=sh,e),k1=T1((e,{slots:n})=>Rr(td,ch(e),n)),Ji=(e,n=[])=>{ge(e)?e.forEach(t=>t(...n)):e&&e(...n)},lh=e=>e?ge(e)?e.some(n=>n.length>1):e.length>1:!1;function ch(e){const n={};for(const V in e)V in oh||(n[V]=e[V]);if(e.css===!1)return n;const{name:t="v",type:i,duration:r,enterFromClass:a=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:l=`${t}-enter-to`,appearFromClass:s=a,appearActiveClass:c=o,appearToClass:u=l,leaveFromClass:f=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:p=`${t}-leave-to`}=e,d=O1(r),g=d&&d[0],b=d&&d[1],{onBeforeEnter:v,onEnter:C,onEnterCancelled:y,onLeave:m,onLeaveCancelled:w,onBeforeAppear:I=v,onAppear:T=C,onAppearCancelled:G=y}=n,$=(V,P,O,A)=>{V._enterCancelled=A,Ci(V,P?u:l),Ci(V,P?c:o),O&&O()},B=(V,P)=>{V._isLeaving=!1,Ci(V,f),Ci(V,p),Ci(V,h),P&&P()},Y=V=>(P,O)=>{const A=V?T:C,M=()=>$(P,V,O);Ji(A,[P,M]),uh(()=>{Ci(P,V?s:a),Fn(P,V?u:l),lh(A)||fh(P,i,g,M)})};return Ve(n,{onBeforeEnter(V){Ji(v,[V]),Fn(V,a),Fn(V,o)},onBeforeAppear(V){Ji(I,[V]),Fn(V,s),Fn(V,c)},onEnter:Y(!1),onAppear:Y(!0),onLeave(V,P){V._isLeaving=!0;const O=()=>B(V,P);Fn(V,f),V._enterCancelled?(Fn(V,h),gc(V)):(gc(V),Fn(V,h)),uh(()=>{V._isLeaving&&(Ci(V,f),Fn(V,p),lh(m)||fh(V,i,b,O))}),Ji(m,[V,O])},onEnterCancelled(V){$(V,!1,void 0,!0),Ji(y,[V])},onAppearCancelled(V){$(V,!0,void 0,!0),Ji(G,[V])},onLeaveCancelled(V){B(V),Ji(w,[V])}})}function O1(e){if(e==null)return null;if(Be(e))return[pc(e.enter),pc(e.leave)];{const n=pc(e);return[n,n]}}function pc(e){return Co(e)}function Fn(e,n){n.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Lr]||(e[Lr]=new Set)).add(n)}function Ci(e,n){n.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const t=e[Lr];t&&(t.delete(n),t.size||(e[Lr]=void 0))}function uh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var x1=0;function fh(e,n,t,i){const r=e._endId=++x1,a=()=>{r===e._endId&&i()};if(t!=null)return setTimeout(a,t);const{type:o,timeout:l,propCount:s}=dh(e,n);if(!o)return i();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,h),a()},h=p=>{p.target===e&&++u>=s&&f()};setTimeout(()=>{u<s&&f()},l+1),e.addEventListener(c,h)}function dh(e,n){const t=window.getComputedStyle(e),i=d=>(t[d]||"").split(", "),r=i(`${_i}Delay`),a=i(`${_i}Duration`),o=hh(r,a),l=i(`${La}Delay`),s=i(`${La}Duration`),c=hh(l,s);let u=null,f=0,h=0;n===_i?o>0&&(u=_i,f=o,h=a.length):n===La?c>0&&(u=La,f=c,h=s.length):(f=Math.max(o,c),u=f>0?o>c?_i:La:null,h=u?u===_i?a.length:s.length:0);const p=u===_i&&/\b(?:transform|all)(?:,|$)/.test(i(`${_i}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:p}}function hh(e,n){for(;e.length<n.length;)e=e.concat(e);return Math.max(...n.map((t,i)=>ph(t)+ph(e[i])))}function ph(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function gc(e){return(e?e.ownerDocument:document).body.offsetHeight}function N1(e,n,t){const i=e[Lr];i&&(n=(n?[n,...i]:[...i]).join(" ")),n==null?e.removeAttribute("class"):t?e.setAttribute("class",n):e.className=n}var as=Symbol("_vod"),mc=Symbol("_vsh"),vc={name:"show",beforeMount(e,{value:n},{transition:t}){e[as]=e.style.display==="none"?"":e.style.display,t&&n?t.beforeEnter(e):Pa(e,n)},mounted(e,{value:n},{transition:t}){t&&n&&t.enter(e)},updated(e,{value:n,oldValue:t},{transition:i}){!n!=!t&&(i?n?(i.beforeEnter(e),Pa(e,!0),i.enter(e)):i.leave(e,()=>{Pa(e,!1)}):Pa(e,n))},beforeUnmount(e,{value:n}){Pa(e,n)}};function Pa(e,n){e.style.display=n?e[as]:"none",e[mc]=!n}function R1(){vc.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}var gh=Symbol("");function L1(e){const n=Et();if(!n)return;const t=n.ut=(r=e(n.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${n.uid}"]`)).forEach(a=>os(a,r))},i=()=>{const r=e(n.proxy);n.ce?os(n.ce,r):bc(n.subTree,r),t(r)};Hl(()=>{va(i)}),Xt(()=>{kt(i,ln,{flush:"post"});const r=new MutationObserver(i);r.observe(n.subTree.el.parentNode,{childList:!0}),ii(()=>r.disconnect())})}function bc(e,n){if(e.shapeFlag&128){const t=e.suspense;e=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push(()=>{bc(t.activeBranch,n)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)os(e.el,n);else if(e.type===He)e.children.forEach(t=>bc(t,n));else if(e.type===Qi){let{el:t,anchor:i}=e;for(;t&&(os(t,n),t!==i);)t=t.nextSibling}}function os(e,n){if(e.nodeType===1){const t=e.style;let i="";for(const r in n){const a=t0(n[r]);t.setProperty(`--${r}`,a),i+=`--${r}: ${a};`}t[gh]=i}}var P1=/(?:^|;)\s*display\s*:/;function D1(e,n,t){const i=e.style,r=We(t);let a=!1;if(t&&!r){if(n)if(We(n))for(const o of n.split(";")){const l=o.slice(0,o.indexOf(":")).trim();t[l]==null&&Da(i,l,"")}else for(const o in n)t[o]==null&&Da(i,o,"");for(const o in t){o==="display"&&(a=!0);const l=t[o];l!=null?B1(e,o,!We(n)&&n?n[o]:void 0,l)||Da(i,o,l):Da(i,o,"")}}else if(r){if(n!==t){const o=i[gh];o&&(t+=";"+o),i.cssText=t,a=P1.test(t)}}else n&&e.removeAttribute("style");as in e&&(e[as]=a?i.display:"",e[mc]&&(i.display="none"))}var mh=/\s*!important$/;function Da(e,n,t){if(ge(t))t.forEach(i=>Da(e,n,i));else if(t==null&&(t=""),n.startsWith("--"))e.setProperty(n,t);else{const i=F1(e,n);mh.test(t)?e.setProperty(Vt(i),t.replace(mh,""),"important"):e[i]=t}}var vh=["Webkit","Moz","ms"],yc={};function F1(e,n){const t=yc[n];if(t)return t;let i=dt(n);if(i!=="filter"&&i in e)return yc[n]=i;i=la(i);for(let r=0;r<vh.length;r++){const a=vh[r]+i;if(a in e)return yc[n]=a}return n}function B1(e,n,t,i){return e.tagName==="TEXTAREA"&&(n==="width"||n==="height")&&We(i)&&t===i}var bh="http://www.w3.org/1999/xlink";function yh(e,n,t,i,r,a=Xv(n)){i&&n.startsWith("xlink:")?t==null?e.removeAttributeNS(bh,n.slice(6,n.length)):e.setAttributeNS(bh,n,t):t==null||a&&!ff(t)?e.removeAttribute(n):e.setAttribute(n,a?"":Zt(t)?String(t):t)}function Ah(e,n,t,i,r){if(n==="innerHTML"||n==="textContent"){t!=null&&(e[n]=n==="innerHTML"?ih(t):t);return}const a=e.tagName;if(n==="value"&&a!=="PROGRESS"&&!a.includes("-")){const l=a==="OPTION"?e.getAttribute("value")||"":e.value,s=t==null?e.type==="checkbox"?"on":"":String(t);(l!==s||!("_value"in e))&&(e.value=s),t==null&&e.removeAttribute(n),e._value=t;return}let o=!1;if(t===""||t==null){const l=typeof e[n];l==="boolean"?t=ff(t):t==null&&l==="string"?(t="",o=!0):l==="number"&&(t=0,o=!0)}try{e[n]=t}catch{}o&&e.removeAttribute(r||n)}function li(e,n,t,i){e.addEventListener(n,t,i)}function U1(e,n,t,i){e.removeEventListener(n,t,i)}var wh=Symbol("_vei");function j1(e,n,t,i,r=null){const a=e[wh]||(e[wh]={}),o=a[n];if(i&&o)o.value=i;else{const[l,s]=q1(n);i?li(e,l,a[n]=V1(i,r),s):o&&(U1(e,l,o,s),a[n]=void 0)}}var _h=/(?:Once|Passive|Capture)$/;function q1(e){let n;if(_h.test(e)){n={};let t;for(;t=e.match(_h);)e=e.slice(0,e.length-t[0].length),n[t[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vt(e.slice(2)),n]}var Ac=0,$1=Promise.resolve(),z1=()=>Ac||($1.then(()=>Ac=0),Ac=Date.now());function V1(e,n){const t=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=t.attached)return;const r=t.value;if(ge(r)){const a=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{a.call(i),i._stopped=!0};const o=r.slice(),l=[i];for(let s=0;s<o.length&&!i._stopped;s++){const c=o[s];c&&Jt(c,n,5,l)}}else Jt(r,n,5,[i])};return t.value=e,t.attached=z1(),t}var Ch=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Eh=(e,n,t,i,r,a)=>{const o=r==="svg";n==="class"?N1(e,i,o):n==="style"?D1(e,t,i):sa(n)?bo(n)||j1(e,n,t,i,a):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):H1(e,n,i,o))?(Ah(e,n,i),!e.tagName.includes("-")&&(n==="value"||n==="checked"||n==="selected")&&yh(e,n,i,o,a,n!=="value")):e._isVueCE&&(W1(e,n)||e._def.__asyncLoader&&(/[A-Z]/.test(n)||!We(i)))?Ah(e,dt(n),i,a,n):(n==="true-value"?e._trueValue=i:n==="false-value"&&(e._falseValue=i),yh(e,n,i,o))};function H1(e,n,t,i){if(i)return!!(n==="innerHTML"||n==="textContent"||n in e&&Ch(n)&&be(t));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="autocorrect"||n==="sandbox"&&e.tagName==="IFRAME"||n==="form"||n==="list"&&e.tagName==="INPUT"||n==="type"&&e.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ch(n)&&We(t)?!1:n in e}function W1(e,n){const t=e._def.props;if(!t)return!1;const i=dt(n);return Array.isArray(t)?t.some(r=>dt(r)===i):Object.keys(t).some(r=>dt(r)===i)}var Sh={};function ss(e,n,t){let i=Ye(e,n);yo(i)&&(i=Ve({},i,n));class r extends Mh{constructor(o){super(i,o,t)}}return r.def=i,r}var Y1=((e,n)=>ss(e,n,Hh)),G1=typeof HTMLElement<"u"?HTMLElement:class{},Mh=class pv extends G1{constructor(n,t={},i=Cc){super(),this._def=n,this._props=t,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&i!==Cc?this._root=this.shadowRoot:n.shadowRoot!==!1?(this.attachShadow(Ve({},n.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let n=this;for(;n=n&&(n.assignedSlot||n.parentNode||n.host);)if(n instanceof pv){this._parent=n;break}this._instance||(this._resolved?this._mount(this._def):n&&n._pendingResolve?this._pendingResolve=n._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(n=this._parent){n&&(this._instance.parent=n._instance,this._inheritParentContext(n))}_inheritParentContext(n=this._parent){n&&this._app&&Object.setPrototypeOf(this._app._context.provides,n._instance.provides)}disconnectedCallback(){this._connected=!1,_r(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(n){for(const t of n)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const n=(i,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=i;let l;if(a&&!ge(a))for(const s in a){const c=a[s];(c===Number||c&&c.type===Number)&&(s in this._props&&(this._props[s]=Co(this._props[s])),(l||(l=Object.create(null)))[dt(s)]=!0)}this._numberProps=l,this._resolveProps(i),this.shadowRoot&&this._applyStyles(o),this._mount(i)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(i=>{i.configureApp=this._def.configureApp,n(this._def=i,!0)}):n(this._def)}_mount(n){this._app=this._createApp(n),this._inheritParentContext(),n.configureApp&&n.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const i in t)ze(this,i)||Object.defineProperty(this,i,{get:()=>Ne(t[i])})}_resolveProps(n){const{props:t}=n,i=ge(t)?t:Object.keys(t||{});for(const r of Object.keys(this))r[0]!=="_"&&i.includes(r)&&this._setProp(r,this[r]);for(const r of i.map(dt))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(a){this._setProp(r,a,!0,!this._patching)}})}_setAttr(n){if(n.startsWith("data-v-"))return;const t=this.hasAttribute(n);let i=t?this.getAttribute(n):Sh;const r=dt(n);t&&this._numberProps&&this._numberProps[r]&&(i=Co(i)),this._setProp(r,i,!1,!0)}_getProp(n){return this._props[n]}_setProp(n,t,i=!0,r=!1){if(t!==this._props[n]&&(this._dirty=!0,t===Sh?delete this._props[n]:(this._props[n]=t,n==="key"&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),i)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),t===!0?this.setAttribute(Vt(n),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Vt(n),t+""):t||this.removeAttribute(Vt(n)),a&&a.observe(this,{attributes:!0})}}_update(){const n=this._createVNode();this._app&&(n.appContext=this._app._context),Vh(n,this._root)}_createVNode(){const n={};this.shadowRoot||(n.onVnodeMounted=n.onVnodeUpdated=this._renderSlots.bind(this));const t=pe(this._def,Ve(n,this._props));return this._instance||(t.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const r=(a,o)=>{this.dispatchEvent(new CustomEvent(a,yo(o[0])?Ve({detail:o},o[0]):{detail:o}))};i.emit=(a,...o)=>{r(a,o),Vt(a)!==a&&r(Vt(a),o)},this._setParent()}),t}_applyStyles(n,t,i){if(!n)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const r=this._nonce,a=this.shadowRoot,o=i?this._getStyleAnchor(i)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(a);let l=null;for(let s=n.length-1;s>=0;s--){const c=document.createElement("style");r&&c.setAttribute("nonce",r),c.textContent=n[s],a.insertBefore(c,l||o),l=c,s===0&&(i||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(n){if(!n)return null;const t=this._styleAnchors.get(n);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(n),null)}_getRootStyleInsertionAnchor(n){for(let t=0;t<n.childNodes.length;t++){const i=n.childNodes[t];if(!(i instanceof HTMLStyleElement))return i}return null}_parseSlots(){const n=this._slots={};let t;for(;t=this.firstChild;){const i=t.nodeType===1&&t.getAttribute("slot")||"default";(n[i]||(n[i]=[])).push(t),this.removeChild(t)}}_renderSlots(){const n=this._getSlots(),t=this._instance.type.__scopeId;for(let i=0;i<n.length;i++){const r=n[i],a=r.getAttribute("name")||"default",o=this._slots[a],l=r.parentNode;if(o)for(const s of o){if(t&&s.nodeType===1){const c=t+"-s",u=document.createTreeWalker(s,1);s.setAttribute(c,"");let f;for(;f=u.nextNode();)f.setAttribute(c,"")}l.insertBefore(s,r)}else for(;r.firstChild;)l.insertBefore(r.firstChild,r);l.removeChild(r)}}_getSlots(){const n=[this];this._teleportTargets&&n.push(...this._teleportTargets);const t=new Set;for(const i of n){const r=i.querySelectorAll("slot");for(let a=0;a<r.length;a++)t.add(r[a])}return Array.from(t)}_injectChildStyle(n,t){this._applyStyles(n.styles,n,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(n){}};function Ih(e){const n=Et(),t=n&&n.ce;return t||null}function Q1(){const e=Ih();return e&&e.shadowRoot}function K1(e="$style"){{const n=Et();if(!n)return xe;const t=n.type.__cssModules;if(!t)return xe;const i=t[e];return i||xe}}var Th=new WeakMap,kh=new WeakMap,ls=Symbol("_moveCb"),Oh=Symbol("_enterCb"),Z1=e=>(delete e.props.mode,e),J1=Z1({name:"TransitionGroup",props:Ve({},sh,{tag:String,moveClass:String}),setup(e,{slots:n}){const t=Et(),i=Ul();let r,a;return Qo(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!ny(r[0].el,t.vnode.el,o)){r=[];return}r.forEach(X1),r.forEach(ey);const l=r.filter(ty);gc(t.vnode.el),l.forEach(s=>{const c=s.el,u=c.style;Fn(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[ls]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[ls]=null,Ci(c,o))};c.addEventListener("transitionend",f)}),r=[]}),()=>{const o=Re(e),l=ch(o);let s=o.tag||He;if(r=[],a)for(let c=0;c<a.length;c++){const u=a[c];u.el&&u.el instanceof Element&&!u.el[mc]&&(r.push(u),ei(u,Er(u,l,i,t)),Th.set(u,xh(u.el)))}a=n.default?qo(n.default()):[];for(let c=0;c<a.length;c++){const u=a[c];u.key!=null&&ei(u,Er(u,l,i,t))}return pe(s,null,a)}}});function X1(e){const n=e.el;n[ls]&&n[ls](),n[Oh]&&n[Oh]()}function ey(e){kh.set(e,xh(e.el))}function ty(e){const n=Th.get(e),t=kh.get(e),i=n.left-t.left,r=n.top-t.top;if(i||r){const a=e.el,o=a.style,l=a.getBoundingClientRect();let s=1,c=1;return a.offsetWidth&&(s=l.width/a.offsetWidth),a.offsetHeight&&(c=l.height/a.offsetHeight),(!Number.isFinite(s)||s===0)&&(s=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(s-1)<.01&&(s=1),Math.abs(c-1)<.01&&(c=1),o.transform=o.webkitTransform=`translate(${i/s}px,${r/c}px)`,o.transitionDuration="0s",e}}function xh(e){const n=e.getBoundingClientRect();return{left:n.left,top:n.top}}function ny(e,n,t){const i=e.cloneNode(),r=e[Lr];r&&r.forEach(l=>{l.split(/\s+/).forEach(s=>s&&i.classList.remove(s))}),t.split(/\s+/).forEach(l=>l&&i.classList.add(l)),i.style.display="none";const a=n.nodeType===1?n:n.parentNode;a.appendChild(i);const{hasTransform:o}=dh(i);return a.removeChild(i),o}var Ei=e=>{const n=e.props["onUpdate:modelValue"]||!1;return ge(n)?t=>gr(n,t):n};function iy(e){e.target.composing=!0}function Nh(e){const n=e.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}var dn=Symbol("_assign");function Rh(e,n,t){return n&&(e=e.trim()),t&&(e=_o(e)),e}var Fa={created(e,{modifiers:{lazy:n,trim:t,number:i}},r){e[dn]=Ei(r);const a=i||r.props&&r.props.type==="number";li(e,n?"change":"input",o=>{o.target.composing||e[dn](Rh(e.value,t,a))}),(t||a)&&li(e,"change",()=>{e.value=Rh(e.value,t,a)}),n||(li(e,"compositionstart",iy),li(e,"compositionend",Nh),li(e,"change",Nh))},mounted(e,{value:n}){e.value=n??""},beforeUpdate(e,{value:n,oldValue:t,modifiers:{lazy:i,trim:r,number:a}},o){if(e[dn]=Ei(o),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?_o(e.value):e.value,s=n??"";if(l===s)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(i&&n===t||r&&e.value.trim()===s)||(e.value=s)}},cs={deep:!0,created(e,n,t){e[dn]=Ei(t),li(e,"change",()=>{const i=e._modelValue,r=Pr(e),a=e.checked,o=e[dn];if(ge(i)){const l=So(i,r),s=l!==-1;if(a&&!s)o(i.concat(r));else if(!a&&s){const c=[...i];c.splice(l,1),o(c)}}else if($i(i)){const l=new Set(i);a?l.add(r):l.delete(r),o(l)}else o(Fh(e,a))})},mounted:Lh,beforeUpdate(e,n,t){e[dn]=Ei(t),Lh(e,n,t)}};function Lh(e,{value:n,oldValue:t},i){e._modelValue=n;let r;if(ge(n))r=So(n,i.props.value)>-1;else if($i(n))r=n.has(i.props.value);else{if(n===t)return;r=Gn(n,Fh(e,!0))}e.checked!==r&&(e.checked=r)}var wc={created(e,{value:n},t){e.checked=Gn(n,t.props.value),e[dn]=Ei(t),li(e,"change",()=>{e[dn](Pr(e))})},beforeUpdate(e,{value:n,oldValue:t},i){e[dn]=Ei(i),n!==t&&(e.checked=Gn(n,i.props.value))}},Ph={deep:!0,created(e,{value:n,modifiers:{number:t}},i){const r=$i(n);li(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>t?_o(Pr(o)):Pr(o));e[dn](e.multiple?r?new Set(a):a:a[0]),e._assigning=!0,_r(()=>{e._assigning=!1})}),e[dn]=Ei(i)},mounted(e,{value:n}){Dh(e,n)},beforeUpdate(e,n,t){e[dn]=Ei(t)},updated(e,{value:n}){e._assigning||Dh(e,n)}};function Dh(e,n){const t=e.multiple,i=ge(n);if(!(t&&!i&&!$i(n))){for(let r=0,a=e.options.length;r<a;r++){const o=e.options[r],l=Pr(o);if(t)if(i){const s=typeof l;s==="string"||s==="number"?o.selected=n.some(c=>String(c)===String(l)):o.selected=So(n,l)>-1}else o.selected=n.has(l);else if(Gn(Pr(o),n)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!t&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pr(e){return"_value"in e?e._value:e.value}function Fh(e,n){const t=n?"_trueValue":"_falseValue";return t in e?e[t]:n}var Bh={created(e,n,t){us(e,n,t,null,"created")},mounted(e,n,t){us(e,n,t,null,"mounted")},beforeUpdate(e,n,t,i){us(e,n,t,i,"beforeUpdate")},updated(e,n,t,i){us(e,n,t,i,"updated")}};function Uh(e,n){switch(e){case"SELECT":return Ph;case"TEXTAREA":return Fa;default:switch(n){case"checkbox":return cs;case"radio":return wc;default:return Fa}}}function us(e,n,t,i,r){const a=Uh(e.tagName,t.props&&t.props.type)[r];a&&a(e,n,t,i)}function ry(){Fa.getSSRProps=({value:e})=>({value:e}),wc.getSSRProps=({value:e},n)=>{if(n.props&&Gn(n.props.value,e))return{checked:!0}},cs.getSSRProps=({value:e},n)=>{if(ge(e)){if(n.props&&So(e,n.props.value)>-1)return{checked:!0}}else if($i(e)){if(n.props&&e.has(n.props.value))return{checked:!0}}else if(e)return{checked:!0}},Bh.getSSRProps=(e,n)=>{if(typeof n.type!="string")return;const t=Uh(n.type.toUpperCase(),n.props&&n.props.type);if(t.getSSRProps)return t.getSSRProps(e,n)}}var ay=["ctrl","shift","alt","meta"],oy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,n)=>ay.some(t=>e[`${t}Key`]&&!n.includes(t))},en=(e,n)=>{if(!e)return e;const t=e._withMods||(e._withMods={}),i=n.join(".");return t[i]||(t[i]=((r,...a)=>{for(let o=0;o<n.length;o++){const l=oy[n[o]];if(l&&l(r,n))return}return e(r,...a)}))},sy={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},_c=(e,n)=>{const t=e._withKeys||(e._withKeys={}),i=n.join(".");return t[i]||(t[i]=(r=>{if(!("key"in r))return;const a=Vt(r.key);if(n.some(o=>o===a||sy[o]===a))return e(r)}))},jh=Ve({patchProp:Eh},ah),Ba,qh=!1;function $h(){return Ba||(Ba=Pd(jh))}function zh(){return Ba=qh?Ba:Dd(jh),qh=!0,Ba}var Vh=((...e)=>{$h().render(...e)}),ly=((...e)=>{zh().hydrate(...e)}),Cc=((...e)=>{const n=$h().createApp(...e),{mount:t}=n;return n.mount=i=>{const r=Yh(i);if(!r)return;const a=n._component;!be(a)&&!a.render&&!a.template&&(a.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=t(r,!1,Wh(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},n}),Hh=((...e)=>{const n=zh().createApp(...e),{mount:t}=n;return n.mount=i=>{const r=Yh(i);if(r)return t(r,!0,Wh(r))},n});function Wh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yh(e){return We(e)?document.querySelector(e):e}var Gh=!1,cy=()=>{Gh||(Gh=!0,ry(),R1())},Qh=Av({BaseTransition:()=>td,BaseTransitionPropsValidators:()=>jl,Comment:()=>ct,DeprecationTypes:()=>null,EffectScope:()=>Cl,ErrorCodes:()=>q0,ErrorTypeStrings:()=>_1,Fragment:()=>He,KeepAlive:()=>bb,ReactiveEffect:()=>ua,Static:()=>Qi,Suspense:()=>r1,Teleport:()=>tb,Text:()=>ri,TrackOpTypes:()=>L0,Transition:()=>k1,TransitionGroup:()=>J1,TriggerOpTypes:()=>P0,VueElement:()=>Mh,assertNumber:()=>j0,callWithAsyncErrorHandling:()=>Jt,callWithErrorHandling:()=>yr,camelize:()=>dt,capitalize:()=>la,cloneVNode:()=>Dn,compatUtils:()=>null,compile:()=>uy,computed:()=>ne,createApp:()=>Cc,createBlock:()=>Me,createCommentVNode:()=>ue,createElementBlock:()=>H,createElementVNode:()=>X,createHydrationRenderer:()=>Dd,createPropsRestProxy:()=>Pb,createRenderer:()=>Pd,createSSRApp:()=>Hh,createSlots:()=>wb,createStaticVNode:()=>lc,createTextVNode:()=>fn,createVNode:()=>pe,customRef:()=>Df,defineAsyncComponent:()=>vb,defineComponent:()=>Ye,defineCustomElement:()=>ss,defineEmits:()=>Sb,defineExpose:()=>Mb,defineModel:()=>kb,defineOptions:()=>Ib,defineProps:()=>Eb,defineSSRCustomElement:()=>Y1,defineSlots:()=>Tb,devtools:()=>C1,effect:()=>i0,effectScope:()=>pf,getCurrentInstance:()=>Et,getCurrentScope:()=>El,getCurrentWatcher:()=>D0,getTransitionRawChildren:()=>qo,guardReactiveProps:()=>Yd,h:()=>Rr,handleError:()=>Hi,hasInjectionContext:()=>G0,hydrate:()=>ly,hydrateOnIdle:()=>fb,hydrateOnInteraction:()=>gb,hydrateOnMediaQuery:()=>pb,hydrateOnVisible:()=>hb,initCustomFormatter:()=>y1,initDirectivesForSSR:()=>cy,inject:()=>ve,isMemoSame:()=>eh,isProxy:()=>ma,isReactive:()=>Nn,isReadonly:()=>En,isRef:()=>tt,isRuntimeOnly:()=>m1,isShallow:()=>Ht,isVNode:()=>ai,markRaw:()=>Lf,mergeDefaults:()=>Rb,mergeModels:()=>Lb,mergeProps:()=>Gd,nextTick:()=>_r,nodeOps:()=>ah,normalizeClass:()=>j,normalizeProps:()=>Jv,normalizeStyle:()=>mr,onActivated:()=>zl,onBeforeMount:()=>_t,onBeforeUnmount:()=>Sa,onBeforeUpdate:()=>Hl,onDeactivated:()=>Wo,onErrorCaptured:()=>dd,onMounted:()=>Xt,onRenderTracked:()=>fd,onRenderTriggered:()=>ud,onScopeDispose:()=>gf,onServerPrefetch:()=>cd,onUnmounted:()=>ii,onUpdated:()=>Qo,onWatcherCleanup:()=>Bf,openBlock:()=>L,patchProp:()=>Eh,popScopeId:()=>W0,provide:()=>qt,proxyRefs:()=>Pl,pushScopeId:()=>H0,queuePostFlushCb:()=>va,reactive:()=>Tt,readonly:()=>No,ref:()=>re,registerRuntimeCompiler:()=>g1,render:()=>Vh,renderList:()=>Gl,renderSlot:()=>kr,resolveComponent:()=>he,resolveDirective:()=>Tr,resolveDynamicComponent:()=>pd,resolveFilter:()=>null,resolveTransitionHooks:()=>Er,setBlockTracking:()=>xa,setDevtoolsHook:()=>E1,setTransitionHooks:()=>ei,shallowReactive:()=>Rf,shallowReadonly:()=>_0,shallowRef:()=>Ll,ssrContextKey:()=>Hf,ssrUtils:()=>S1,stop:()=>r0,toDisplayString:()=>Ae,toHandlerKey:()=>ca,toHandlers:()=>_b,toRaw:()=>Re,toRef:()=>x0,toRefs:()=>T0,toValue:()=>S0,transformVNodeArgs:()=>u1,triggerRef:()=>E0,unref:()=>Ne,useAttrs:()=>Nb,useCssModule:()=>K1,useCssVars:()=>L1,useHost:()=>Ih,useId:()=>ib,useModel:()=>Vb,useSSRContext:()=>Wf,useShadowRoot:()=>Q1,useSlots:()=>xb,useTemplateRef:()=>rb,useTransitionState:()=>Ul,vModelCheckbox:()=>cs,vModelDynamic:()=>Bh,vModelRadio:()=>wc,vModelSelect:()=>Ph,vModelText:()=>Fa,vShow:()=>vc,version:()=>th,warn:()=>w1,watch:()=>kt,watchEffect:()=>Q0,watchPostEffect:()=>K0,watchSyncEffect:()=>Yf,withAsyncContext:()=>Db,withCtx:()=>jt,withDefaults:()=>Ob,withDirectives:()=>Ln,withKeys:()=>_c,withMemo:()=>A1,withModifiers:()=>en,withScopeId:()=>Y0}),uy=()=>{},St=(function(e){return e[e.Name=0]="Name",e[e.Email=1]="Email",e[e.Both=2]="Both",e[e.None=3]="None",e})({}),Si=(function(e){return e[e.BubbleLeft=0]="BubbleLeft",e[e.BubbleRight=1]="BubbleRight",e})({}),hn=(function(e){return e[e.None=0]="None",e[e.FadeIn=1]="FadeIn",e[e.SlideLeft=2]="SlideLeft",e[e.SlideRight=3]="SlideRight",e[e.SlideUp=4]="SlideUp",e})({}),pn=(function(e){return e[e.None=0]="None",e[e.Desktop=1]="Desktop",e[e.Mobile=2]="Mobile",e[e.Both=3]="Both",e})({}),Bn=Symbol("myChatService"),tn=Symbol("myWebRTCService"),Ua=Symbol("gaService"),Dr=Symbol("loadingService"),Kh=Symbol("chatFlowControlService"),Mi=Symbol("fullscreenService"),Gt=Symbol("eventBus"),Ec=Symbol("myPhoneChannel"),fy=Se((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function n(o,l,s){var c=o.length;return s=s??0,s<0?s=0:s>c&&(s=c),l="".concat(l),o.slice(s,s+l.length)==l}function t(){return typeof window>"u"?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function i(o){return o.toLowerCase().replace(/-/,"_")}function r(o){if(!o)return t();var l=o.languages,s=o.fallback;if(!o.languages)return s;var c=i(t());if(!c)return s;var u=l.filter(function(f){return i(f)===c});return u.length>0?u[0]||s:l.filter(function(f){return n(c,f)||n(f,c)})[0]||s}var a=r;e.default=a})),Sc=function(e,n){return Sc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},Sc(e,n)};function Un(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Sc(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var fs=function(){return fs=Object.assign||function(n){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},fs.apply(this,arguments)};function dy(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]]);return t}function hy(e,n,t,i){function r(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function l(u){try{c(i.next(u))}catch(f){o(f)}}function s(u){try{c(i.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):r(u.value).then(l,s)}c((i=i.apply(e,n||[])).next())})}function Zh(e,n){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(c){return function(u){return s([c,u])}}function s(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(i=1,r&&(a=c[0]&2?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,r=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){t.label=c[1];break}if(c[0]===6&&t.label<a[1]){t.label=a[1],a=c;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(c);break}a[2]&&t.ops.pop(),t.trys.pop();continue}c=n.call(e,t)}catch(u){c=[6,u],r=0}finally{i=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Fr(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function gn(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var i=t.call(e),r,a=[],o;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function In(e,n,t){if(t||arguments.length===2)for(var i=0,r=n.length,a;i<r;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}function Br(e){return this instanceof Br?(this.v=e,this):new Br(e)}function py(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t.apply(e,n||[]),r,a=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(p){return function(d){return Promise.resolve(d).then(p,f)}}function l(p,d){i[p]&&(r[p]=function(g){return new Promise(function(b,v){a.push([p,g,b,v])>1||s(p,g)})},d&&(r[p]=d(r[p])))}function s(p,d){try{c(i[p](d))}catch(g){h(a[0][3],g)}}function c(p){p.value instanceof Br?Promise.resolve(p.value.v).then(u,f):h(a[0][2],p)}function u(p){s("next",p)}function f(p){s("throw",p)}function h(p,d){p(d),a.shift(),a.length&&s(a[0][0],a[0][1])}}function gy(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Fr=="function"?Fr(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(l,s){o=e[a](o),r(l,s,o.done,o.value)})}}function r(a,o,l,s){Promise.resolve(s).then(function(c){a({value:c,done:l})},o)}}function Ue(e){return typeof e=="function"}function Mc(e){var n=function(i){Error.call(i),i.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ic=Mc(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(i,r){return r+1+") "+i.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}});function ds(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Ur=(function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,i,r,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Fr(o),s=l.next();!s.done;s=l.next())s.value.remove(this)}catch(d){n={error:d}}finally{try{s&&!s.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else o.remove(this);var c=this.initialTeardown;if(Ue(c))try{c()}catch(d){a=d instanceof Ic?d.errors:[d]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=Fr(u),h=f.next();!h.done;h=f.next()){var p=h.value;try{ep(p)}catch(d){a=a??[],d instanceof Ic?a=In(In([],gn(a)),gn(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}}if(a)throw new Ic(a)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)ep(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&ds(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&ds(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=(function(){var n=new e;return n.closed=!0,n})(),e})(),Jh=Ur.EMPTY;function Xh(e){return e instanceof Ur||e&&"closed"in e&&Ue(e.remove)&&Ue(e.add)&&Ue(e.unsubscribe)}function ep(e){Ue(e)?e():e.unsubscribe()}var Xi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hs={setTimeout:function(e,n){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var r=hs.delegate;return r?.setTimeout?r.setTimeout.apply(r,In([e,n],gn(t))):setTimeout.apply(void 0,In([e,n],gn(t)))},clearTimeout:function(e){var n=hs.delegate;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function tp(e){hs.setTimeout(function(){var n=Xi.onUnhandledError;if(n)n(e);else throw e})}function jr(){}var my=(function(){return Tc("C",void 0,void 0)})();function vy(e){return Tc("E",void 0,e)}function by(e){return Tc("N",e,void 0)}function Tc(e,n,t){return{kind:e,value:n,error:t}}var er=null;function ps(e){if(Xi.useDeprecatedSynchronousErrorHandling){var n=!er;if(n&&(er={errorThrown:!1,error:null}),e(),n){var t=er,i=t.errorThrown,r=t.error;if(er=null,i)throw r}}else e()}function yy(e){Xi.useDeprecatedSynchronousErrorHandling&&er&&(er.errorThrown=!0,er.error=e)}var kc=(function(e){Un(n,e);function n(t){var i=e.call(this)||this;return i.isStopped=!1,t?(i.destination=t,Xh(t)&&t.add(i)):i.destination=Cy,i}return n.create=function(t,i,r){return new ja(t,i,r)},n.prototype.next=function(t){this.isStopped?xc(by(t),this):this._next(t)},n.prototype.error=function(t){this.isStopped?xc(vy(t),this):(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped?xc(my,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n})(Ur),Ay=Function.prototype.bind;function Oc(e,n){return Ay.call(e,n)}var wy=(function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(i){gs(i)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(i){gs(i)}else gs(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){gs(t)}},e})(),ja=(function(e){Un(n,e);function n(t,i,r){var a=e.call(this)||this,o;if(Ue(t)||!t)o={next:t??void 0,error:i??void 0,complete:r??void 0};else{var l;a&&Xi.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&Oc(t.next,l),error:t.error&&Oc(t.error,l),complete:t.complete&&Oc(t.complete,l)}):o=t}return a.destination=new wy(o),a}return n})(kc);function gs(e){Xi.useDeprecatedSynchronousErrorHandling?yy(e):tp(e)}function _y(e){throw e}function xc(e,n){var t=Xi.onStoppedNotification;t&&hs.setTimeout(function(){return t(e,n)})}var Cy={closed:!0,next:jr,error:_y,complete:jr},Nc=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function tr(e){return e}function Ey(e){return e.length===0?tr:e.length===1?e[0]:function(t){return e.reduce(function(i,r){return r(i)},t)}}var it=(function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,i){var r=this,a=My(n)?n:new ja(n,t,i);return ps(function(){var o=r,l=o.operator,s=o.source;a.add(l?l.call(a,s):s?r._subscribe(a):r._trySubscribe(a))}),a},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var i=this;return t=np(t),new t(function(r,a){var o=new ja({next:function(l){try{n(l)}catch(s){a(s),o.unsubscribe()}},error:a,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[Nc]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return Ey(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=np(n),new n(function(i,r){var a;t.subscribe(function(o){return a=o},function(o){return r(o)},function(){return i(a)})})},e.create=function(n){return new e(n)},e})();function np(e){var n;return(n=e??Xi.Promise)!==null&&n!==void 0?n:Promise}function Sy(e){return e&&Ue(e.next)&&Ue(e.error)&&Ue(e.complete)}function My(e){return e&&e instanceof kc||Sy(e)&&Xh(e)}function Iy(e){return Ue(e?.lift)}function rt(e){return function(n){if(Iy(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Je(e,n,t,i,r){return new Ty(e,n,t,i,r)}var Ty=(function(e){Un(n,e);function n(t,i,r,a,o,l){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=l,s._next=i?function(c){try{i(c)}catch(u){t.error(u)}}:e.prototype._next,s._error=a?function(c){try{a(c)}catch(u){t.error(u)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(c){t.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,s}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},n})(kc),ky=Mc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Oe=(function(e){Un(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var i=new ip(this,this);return i.operator=t,i},n.prototype._throwIfClosed=function(){if(this.closed)throw new ky},n.prototype.next=function(t){var i=this;ps(function(){var r,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Fr(i.currentObservers),l=o.next();!l.done;l=o.next())l.value.next(t)}catch(s){r={error:s}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}}})},n.prototype.error=function(t){var i=this;ps(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var r=i.observers;r.length;)r.shift().error(t)}})},n.prototype.complete=function(){var t=this;ps(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var i=this,r=this,a=r.hasError,o=r.isStopped,l=r.observers;return a||o?Jh:(this.currentObservers=null,l.push(t),new Ur(function(){i.currentObservers=null,ds(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var i=this,r=i.hasError,a=i.thrownError,o=i.isStopped;r?t.error(a):o&&t.complete()},n.prototype.asObservable=function(){var t=new it;return t.source=this,t},n.create=function(t,i){return new ip(t,i)},n})(it),ip=(function(e){Un(n,e);function n(t,i){var r=e.call(this)||this;return r.destination=t,r.source=i,r}return n.prototype.next=function(t){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,t)},n.prototype.error=function(t){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,t)},n.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},n.prototype._subscribe=function(t){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&r!==void 0?r:Jh},n})(Oe),qr=(function(e){Un(n,e);function n(t){var i=e.call(this)||this;return i._value=t,i}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var i=e.prototype._subscribe.call(this,t);return!i.closed&&t.next(this._value),i},n.prototype.getValue=function(){var t=this,i=t.hasError,r=t.thrownError,a=t._value;if(i)throw r;return this._throwIfClosed(),a},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n})(Oe),Rc={now:function(){return(Rc.delegate||Date).now()},delegate:void 0},ci=(function(e){Un(n,e);function n(t,i,r){t===void 0&&(t=1/0),i===void 0&&(i=1/0),r===void 0&&(r=Rc);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=i,a._timestampProvider=r,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=i===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,i),a}return n.prototype.next=function(t){var i=this,r=i.isStopped,a=i._buffer,o=i._infiniteTimeWindow,l=i._timestampProvider,s=i._windowTime;r||(a.push(t),!o&&a.push(l.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},n.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),r=this,a=r._infiniteTimeWindow,o=r._buffer.slice(),l=0;l<o.length&&!t.closed;l+=a?1:2)t.next(o[l]);return this._checkFinalizedStatuses(t),i},n.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,r=t._timestampProvider,a=t._buffer,o=t._infiniteTimeWindow,l=(o?1:2)*i;if(i<1/0&&l<a.length&&a.splice(0,a.length-l),!o){for(var s=r.now(),c=0,u=1;u<a.length&&a[u]<=s;u+=2)c=u;c&&a.splice(0,c+1)}},n})(Oe),Oy=(function(e){Un(n,e);function n(t,i){return e.call(this)||this}return n.prototype.schedule=function(t,i){return i===void 0&&(i=0),this},n})(Ur),ms={setInterval:function(e,n){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var r=ms.delegate;return r?.setInterval?r.setInterval.apply(r,In([e,n],gn(t))):setInterval.apply(void 0,In([e,n],gn(t)))},clearInterval:function(e){var n=ms.delegate;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},xy=(function(e){Un(n,e);function n(t,i){var r=e.call(this,t,i)||this;return r.scheduler=t,r.work=i,r.pending=!1,r}return n.prototype.schedule=function(t,i){var r;if(i===void 0&&(i=0),this.closed)return this;this.state=t;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,i)),this.pending=!0,this.delay=i,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,i),this},n.prototype.requestAsyncId=function(t,i,r){return r===void 0&&(r=0),ms.setInterval(t.flush.bind(t,this),r)},n.prototype.recycleAsyncId=function(t,i,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return i;i!=null&&ms.clearInterval(i)},n.prototype.execute=function(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,i);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,i){var r=!1,a;try{this.work(t)}catch(o){r=!0,a=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),a},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,i=t.id,r=t.scheduler,a=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ds(a,this),i!=null&&(this.id=this.recycleAsyncId(r,i,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n})(Oy),rp=(function(){function e(n,t){t===void 0&&(t=e.now),this.schedulerActionCtor=n,this.now=t}return e.prototype.schedule=function(n,t,i){return t===void 0&&(t=0),new this.schedulerActionCtor(this,n).schedule(i,t)},e.now=Rc.now,e})(),Ny=(function(e){Un(n,e);function n(t,i){i===void 0&&(i=rp.now);var r=e.call(this,t,i)||this;return r.actions=[],r._active=!1,r}return n.prototype.flush=function(t){var i=this.actions;if(this._active){i.push(t);return}var r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=i.shift());if(this._active=!1,r){for(;t=i.shift();)t.unsubscribe();throw r}},n})(rp),$r=new Ny(xy),Ry=$r,nn=new it(function(e){return e.complete()});function ap(e){return e&&Ue(e.schedule)}function Lc(e){return e[e.length-1]}function Pc(e){return Ue(Lc(e))?e.pop():void 0}function qa(e){return ap(Lc(e))?e.pop():void 0}function Ly(e,n){return typeof Lc(e)=="number"?e.pop():n}var Dc=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function op(e){return Ue(e?.then)}function sp(e){return Ue(e[Nc])}function lp(e){return Symbol.asyncIterator&&Ue(e?.[Symbol.asyncIterator])}function cp(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Py(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var up=Py();function fp(e){return Ue(e?.[up])}function dp(e){return py(this,arguments,function(){var t,i,r,a;return Zh(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Br(t.read())];case 3:return i=o.sent(),r=i.value,a=i.done,a?[4,Br(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Br(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function hp(e){return Ue(e?.getReader)}function vt(e){if(e instanceof it)return e;if(e!=null){if(sp(e))return Dy(e);if(Dc(e))return Fy(e);if(op(e))return By(e);if(lp(e))return pp(e);if(fp(e))return Uy(e);if(hp(e))return jy(e)}throw cp(e)}function Dy(e){return new it(function(n){var t=e[Nc]();if(Ue(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Fy(e){return new it(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function By(e){return new it(function(n){e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,tp)})}function Uy(e){return new it(function(n){var t,i;try{for(var r=Fr(e),a=r.next();!a.done;a=r.next()){var o=a.value;if(n.next(o),n.closed)return}}catch(l){t={error:l}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}n.complete()})}function pp(e){return new it(function(n){qy(e,n).catch(function(t){return n.error(t)})})}function jy(e){return pp(dp(e))}function qy(e,n){var t,i,r,a;return hy(this,void 0,void 0,function(){var o,l;return Zh(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),t=gy(e),s.label=1;case 1:return[4,t.next()];case 2:if(i=s.sent(),!!i.done)return[3,4];if(o=i.value,n.next(o),n.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=s.sent(),r={error:l},[3,11];case 6:return s.trys.push([6,,9,10]),i&&!i.done&&(a=t.return)?[4,a.call(t)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}function jn(e,n,t,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var a=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(a),!r)return a}function gp(e,n){return n===void 0&&(n=0),rt(function(t,i){t.subscribe(Je(i,function(r){return jn(i,e,function(){return i.next(r)},n)},function(){return jn(i,e,function(){return i.complete()},n)},function(r){return jn(i,e,function(){return i.error(r)},n)}))})}function mp(e,n){return n===void 0&&(n=0),rt(function(t,i){i.add(e.schedule(function(){return t.subscribe(i)},n))})}function $y(e,n){return vt(e).pipe(mp(n),gp(n))}function zy(e,n){return vt(e).pipe(mp(n),gp(n))}function Vy(e,n){return new it(function(t){var i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}function Hy(e,n){return new it(function(t){var i;return jn(t,n,function(){i=e[up](),jn(t,n,function(){var r,a,o;try{r=i.next(),a=r.value,o=r.done}catch(l){t.error(l);return}o?t.complete():t.next(a)},0,!0)}),function(){return Ue(i?.return)&&i.return()}})}function vp(e,n){if(!e)throw new Error("Iterable cannot be null");return new it(function(t){jn(t,n,function(){var i=e[Symbol.asyncIterator]();jn(t,n,function(){i.next().then(function(r){r.done?t.complete():t.next(r.value)})},0,!0)})})}function Wy(e,n){return vp(dp(e),n)}function Yy(e,n){if(e!=null){if(sp(e))return $y(e,n);if(Dc(e))return Vy(e,n);if(op(e))return zy(e,n);if(lp(e))return vp(e,n);if(fp(e))return Hy(e,n);if(hp(e))return Wy(e,n)}throw cp(e)}function zt(e,n){return n?Yy(e,n):vt(e)}function at(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return zt(e,qa(e))}function ot(e,n){var t=Ue(e)?e:function(){return e},i=function(r){return r.error(t())};return new it(n?function(r){return n.schedule(i,0,r)}:i)}function Gy(e){return!!e&&(e instanceof it||Ue(e.lift)&&Ue(e.subscribe))}function bp(e){return e instanceof Date&&!isNaN(e)}var Qy=Mc(function(e){return function(t){t===void 0&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function Ky(e,n){var t=bp(e)?{first:e}:typeof e=="number"?{each:e}:e,i=t.first,r=t.each,a=t.with,o=a===void 0?Zy:a,l=t.scheduler,s=l===void 0?n??$r:l,c=t.meta,u=c===void 0?null:c;if(i==null&&r==null)throw new TypeError("No timeout provided.");return rt(function(f,h){var p,d,g=null,b=0,v=function(C){d=jn(h,s,function(){try{p.unsubscribe(),vt(o({meta:u,lastValue:g,seen:b})).subscribe(h)}catch(y){h.error(y)}},C)};p=f.subscribe(Je(h,function(C){d?.unsubscribe(),b++,h.next(g=C),r>0&&v(r)},void 0,void 0,function(){d?.closed||d?.unsubscribe(),g=null})),!b&&v(i!=null?typeof i=="number"?i:+i-s.now():r)})}function Zy(e){throw new Qy(e)}function yt(e,n){return rt(function(t,i){var r=0;t.subscribe(Je(i,function(a){i.next(e.call(n,a,r++))}))})}var Jy=Array.isArray;function Xy(e,n){return Jy(n)?e.apply(void 0,In([],gn(n))):e(n)}function yp(e){return yt(function(n){return Xy(e,n)})}var eA=Array.isArray,tA=Object.getPrototypeOf,nA=Object.prototype,iA=Object.keys;function rA(e){if(e.length===1){var n=e[0];if(eA(n))return{args:n,keys:null};if(aA(n)){var t=iA(n);return{args:t.map(function(i){return n[i]}),keys:t}}}return{args:e,keys:null}}function aA(e){return e&&typeof e=="object"&&tA(e)===nA}function oA(e,n){return e.reduce(function(t,i,r){return t[i]=n[r],t},{})}function sA(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=qa(e),i=Pc(e),r=rA(e),a=r.args,o=r.keys;if(a.length===0)return zt([],t);var l=new it(lA(a,t,o?function(s){return oA(o,s)}:tr));return i?l.pipe(yp(i)):l}function lA(e,n,t){return t===void 0&&(t=tr),function(i){Ap(n,function(){for(var r=e.length,a=new Array(r),o=r,l=r,s=function(u){Ap(n,function(){var f=zt(e[u],n),h=!1;f.subscribe(Je(i,function(p){a[u]=p,h||(h=!0,l--),l||i.next(t(a.slice()))},function(){--o||i.complete()}))},i)},c=0;c<r;c++)s(c)},i)}}function Ap(e,n,t){e?jn(t,e,n):n()}function cA(e,n,t,i,r,a,o,l){var s=[],c=0,u=0,f=!1,h=function(){f&&!s.length&&!c&&n.complete()},p=function(g){return c<i?d(g):s.push(g)},d=function(g){a&&n.next(g),c++;var b=!1;vt(t(g,u++)).subscribe(Je(n,function(v){r?.(v),a?p(v):n.next(v)},function(){b=!0},void 0,function(){if(b)try{c--;for(var v=function(){var C=s.shift();o?jn(n,o,function(){return d(C)}):d(C)};s.length&&c<i;)v();h()}catch(C){n.error(C)}}))};return e.subscribe(Je(n,p,function(){f=!0,h()})),function(){l?.()}}function zr(e,n,t){return t===void 0&&(t=1/0),Ue(n)?zr(function(i,r){return yt(function(a,o){return n(i,a,r,o)})(vt(e(i,r)))},t):(typeof n=="number"&&(t=n),rt(function(i,r){return cA(i,r,e,t)}))}function wp(e){return e===void 0&&(e=1/0),zr(tr,e)}function uA(){return wp(1)}function $a(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return uA()(zt(e,qa(e)))}var fA=["addListener","removeListener"],dA=["addEventListener","removeEventListener"],hA=["on","off"];function Vr(e,n,t,i){if(Ue(t)&&(i=t,t=void 0),i)return Vr(e,n,t).pipe(yp(i));var r=gn(mA(e)?dA.map(function(l){return function(s){return e[l](n,s,t)}}):pA(e)?fA.map(_p(e,n)):gA(e)?hA.map(_p(e,n)):[],2),a=r[0],o=r[1];if(!a&&Dc(e))return zr(function(l){return Vr(l,n,t)})(vt(e));if(!a)throw new TypeError("Invalid event target");return new it(function(l){var s=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return l.next(1<c.length?c:c[0])};return a(s),function(){return o(s)}})}function _p(e,n){return function(t){return function(i){return e[t](n,i)}}}function pA(e){return Ue(e.addListener)&&Ue(e.removeListener)}function gA(e){return Ue(e.on)&&Ue(e.off)}function mA(e){return Ue(e.addEventListener)&&Ue(e.removeEventListener)}function Fc(e,n,t){e===void 0&&(e=0),t===void 0&&(t=Ry);var i=-1;return n!=null&&(ap(n)?t=n:i=n),new it(function(r){var a=bp(e)?+e-t.now():e;a<0&&(a=0);var o=0;return t.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},a)})}function vA(e,n){return e===void 0&&(e=0),n===void 0&&(n=$r),e<0&&(e=0),Fc(e,e,n)}function Bc(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=qa(e),i=Ly(e,1/0),r=e;return r.length?r.length===1?vt(r[0]):wp(i)(zt(r,t)):nn}var bA=Array.isArray;function yA(e){return e.length===1&&bA(e[0])?e[0]:e}function Tn(e,n){return rt(function(t,i){var r=0;t.subscribe(Je(i,function(a){return e.call(n,a,r++)&&i.next(a)}))})}function AA(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Pc(e),i=yA(e);return i.length?new it(function(r){var a=i.map(function(){return[]}),o=i.map(function(){return!1});r.add(function(){a=o=null});for(var l=function(c){vt(i[c]).subscribe(Je(r,function(u){if(a[c].push(u),a.every(function(h){return h.length})){var f=a.map(function(h){return h.shift()});r.next(t?t.apply(void 0,In([],gn(f))):f),a.some(function(h,p){return!h.length&&o[p]})&&r.complete()}},function(){o[c]=!0,!a[c].length&&r.complete()}))},s=0;!r.closed&&s<i.length;s++)l(s);return function(){a=o=null}}):nn}function wA(e){return rt(function(n,t){var i=[];return n.subscribe(Je(t,function(r){return i.push(r)},function(){t.next(i),t.complete()})),vt(e).subscribe(Je(t,function(){var r=i;i=[],t.next(r)},jr)),function(){i=null}})}function mn(e){return rt(function(n,t){var i=null,r=!1,a;i=n.subscribe(Je(t,void 0,void 0,function(o){a=vt(e(o,mn(e)(n))),i?(i.unsubscribe(),i=null,a.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,a.subscribe(t))})}function _A(e,n,t,i,r){return function(a,o){var l=t,s=n,c=0;a.subscribe(Je(o,function(u){var f=c++;s=l?e(s,u,f):(l=!0,u),i&&o.next(s)},r&&(function(){l&&o.next(s),o.complete()})))}}function Cp(e,n){return Ue(n)?zr(e,n,1):zr(e,1)}function CA(e,n){return n===void 0&&(n=$r),rt(function(t,i){var r=null,a=null,o=null,l=function(){if(r){r.unsubscribe(),r=null;var c=a;a=null,i.next(c)}};function s(){var c=o+e,u=n.now();if(u<c){r=this.schedule(void 0,c-u),i.add(r);return}l()}t.subscribe(Je(i,function(c){a=c,o=n.now(),r||(r=n.schedule(s,e),i.add(r))},function(){l(),i.complete()},void 0,function(){a=r=null}))})}function kn(e){return e<=0?function(){return nn}:rt(function(n,t){var i=0;n.subscribe(Je(t,function(r){++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function EA(){return rt(function(e,n){e.subscribe(Je(n,jr))})}function SA(e){return yt(function(){return e})}function Ep(e,n){return n?function(t){return $a(n.pipe(kn(1),EA()),t.pipe(Ep(e)))}:zr(function(t,i){return vt(e(t,i)).pipe(kn(1),SA(t))})}function za(e,n){n===void 0&&(n=$r);var t=Fc(e,n);return Ep(function(){return t})}function Va(e,n){return n===void 0&&(n=tr),e=e??MA,rt(function(t,i){var r,a=!0;t.subscribe(Je(i,function(o){var l=n(o);(a||!e(r,l))&&(a=!1,r=l,i.next(o))}))})}function MA(e,n){return e===n}function IA(e){return rt(function(n,t){try{n.subscribe(t)}finally{t.add(e)}})}function TA(){return rt(function(e,n){var t,i=!1;e.subscribe(Je(n,function(r){var a=t;t=r,i&&n.next([a,r]),i=!0}))})}function Uc(e,n){return rt(_A(e,n,arguments.length>=2,!0))}function jc(e){e===void 0&&(e={});var n=e.connector,t=n===void 0?function(){return new Oe}:n,i=e.resetOnError,r=i===void 0?!0:i,a=e.resetOnComplete,o=a===void 0?!0:a,l=e.resetOnRefCountZero,s=l===void 0?!0:l;return function(c){var u,f,h,p=0,d=!1,g=!1,b=function(){f?.unsubscribe(),f=void 0},v=function(){b(),u=h=void 0,d=g=!1},C=function(){var y=u;v(),y?.unsubscribe()};return rt(function(y,m){p++,!g&&!d&&b();var w=h=h??t();m.add(function(){p--,p===0&&!g&&!d&&(f=qc(C,s))}),w.subscribe(m),!u&&p>0&&(u=new ja({next:function(I){return w.next(I)},error:function(I){g=!0,b(),f=qc(v,r,I),w.error(I)},complete:function(){d=!0,b(),f=qc(v,o),w.complete()}}),vt(y).subscribe(u))})(c)}}function qc(e,n){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];if(n===!0){e();return}if(n!==!1){var r=new ja({next:function(){r.unsubscribe(),e()}});return vt(n.apply(void 0,In([],gn(t)))).subscribe(r)}}function kA(e,n,t){var i,r,a,o,l=!1;return e&&typeof e=="object"?(i=e.bufferSize,o=i===void 0?1/0:i,r=e.windowTime,n=r===void 0?1/0:r,a=e.refCount,l=a===void 0?!1:a,t=e.scheduler):o=e??1/0,jc({connector:function(){return new ci(o,n,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}function OA(e){return rt(function(n,t){var i=!1,r=0;n.subscribe(Je(t,function(a){return(i||(i=!e(a,r++)))&&t.next(a)}))})}function $c(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=qa(e);return rt(function(i,r){(t?$a(e,i,t):$a(e,i)).subscribe(r)})}function Ee(e,n){return rt(function(t,i){var r=null,a=0,o=!1,l=function(){return o&&!r&&i.complete()};t.subscribe(Je(i,function(s){r?.unsubscribe();var c=0,u=a++;vt(e(s,u)).subscribe(r=Je(i,function(f){return i.next(n?n(s,f,u,c++):f)},function(){r=null,l()}))},function(){o=!0,l()}))})}function vs(e){return rt(function(n,t){vt(e).subscribe(Je(t,function(){return t.complete()},jr)),!t.closed&&n.subscribe(t)})}function Ii(e,n,t){var i=Ue(e)||n||t?{next:e,error:n,complete:t}:e;return i?rt(function(r,a){var o;(o=i.subscribe)===null||o===void 0||o.call(i);var l=!0;r.subscribe(Je(a,function(s){var c;(c=i.next)===null||c===void 0||c.call(i,s),a.next(s)},function(){var s;l=!1,(s=i.complete)===null||s===void 0||s.call(i),a.complete()},function(s){var c;l=!1,(c=i.error)===null||c===void 0||c.call(i,s),a.error(s)},function(){var s,c;l&&((s=i.unsubscribe)===null||s===void 0||s.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):tr}function xA(e,n){return rt(function(t,i){var r=n??{},a=r.leading,o=a===void 0?!0:a,l=r.trailing,s=l===void 0?!1:l,c=!1,u=null,f=null,h=!1,p=function(){f?.unsubscribe(),f=null,s&&(b(),h&&i.complete())},d=function(){f=null,h&&i.complete()},g=function(v){return f=vt(e(v)).subscribe(Je(i,p,d))},b=function(){if(c){c=!1;var v=u;u=null,i.next(v),!h&&g(v)}};t.subscribe(Je(i,function(v){c=!0,u=v,!(f&&!f.closed)&&(o?b():g(v))},function(){h=!0,!(s&&c&&f&&!f.closed)&&i.complete()}))})}function Sp(e,n,t){n===void 0&&(n=$r);var i=Fc(e,n);return xA(function(){return i},t)}function Mp(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Pc(e);return rt(function(i,r){for(var a=e.length,o=new Array(a),l=e.map(function(){return!1}),s=!1,c=function(f){vt(e[f]).subscribe(Je(r,function(h){o[f]=h,!s&&!l[f]&&(l[f]=!0,(s=l.every(tr))&&(l=null))},jr))},u=0;u<a;u++)c(u);i.subscribe(Je(r,function(f){if(s){var h=In([f],gn(o));r.next(t?t.apply(void 0,In([],gn(h))):h)}}))})}var zc=fr(fy(),1),ui=(function(e){return e[e.Idle=0]="Idle",e[e.Error=1]="Error",e[e.Connected=2]="Connected",e})({}),_e=(function(e){return e[e.None=0]="None",e[e.Chat=1]="Chat",e[e.Authenticate=2]="Authenticate",e[e.Intro=3]="Intro",e[e.Disabled=4]="Disabled",e[e.Call=5]="Call",e})({}),vn=(function(e){return e[e.NoError=0]="NoError",e[e.CanRetry=1]="CanRetry",e[e.NoRetry=2]="NoRetry",e[e.UnsupportedFile=3]="UnsupportedFile",e[e.FileError=4]="FileError",e})({}),Mt=(function(e){return e[e.MISSED=0]="MISSED",e[e.OLD_ENDED=1]="OLD_ENDED",e[e.PENDING_AGENT=2]="PENDING_AGENT",e[e.ACTIVE=3]="ACTIVE",e[e.BROWSE=5]="BROWSE",e[e.NOT_STARTED=17]="NOT_STARTED",e[e.ENDED_BY_AGENT=16]="ENDED_BY_AGENT",e[e.ENDED_BY_CLIENT=15]="ENDED_BY_CLIENT",e[e.ENDED_DUE_AGENT_INACTIVITY=14]="ENDED_DUE_AGENT_INACTIVITY",e[e.ENDED_DUE_CLIENT_INACTIVITY=13]="ENDED_DUE_CLIENT_INACTIVITY",e[e.ENDED_DUE_BLOCK=18]="ENDED_DUE_BLOCK",e})({}),Ti=(function(e){return e[e.Chat=0]="Chat",e[e.OfflineForm=1]="OfflineForm",e[e.Rate=2]="Rate",e[e.Auth=3]="Auth",e})({}),Qt=(function(e){return e[e.Text=0]="Text",e[e.SingleChoice=1]="SingleChoice",e[e.MultipleChoice=2]="MultipleChoice",e})({}),nr=(function(e){return e[e.Text=0]="Text",e[e.File=1]="File",e[e.Options=2]="Options",e})({}),On=(function(e){return e[e.Normal=0]="Normal",e[e.Completed=1]="Completed",e})({}),NA=Se(((e,n)=>{n.exports=t;function t(i,r){for(var a=new Array(arguments.length-1),o=0,l=2,s=!0;l<arguments.length;)a[o++]=arguments[l++];return new Promise(function(u,f){a[o]=function(p){if(s)if(s=!1,p)f(p);else{for(var d=new Array(arguments.length-1),g=0;g<d.length;)d[g++]=arguments[g];u.apply(null,d)}};try{i.apply(r||null,a)}catch(h){s&&(s=!1,f(h))}})}})),RA=Se((e=>{var n=e;n.length=function(u){var f=u.length;if(!f)return 0;for(;f>0&&u.charAt(f-1)==="=";)--f;return Math.floor(f*3/4)};for(var t=new Array(64),i=new Array(123),r=0;r<64;)i[t[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;i[45]=62,i[95]=63,n.encode=function(u,f,h){for(var p=null,d=[],g=0,b=0,v;f<h;){var C=u[f++];switch(b){case 0:d[g++]=t[C>>2],v=(C&3)<<4,b=1;break;case 1:d[g++]=t[v|C>>4],v=(C&15)<<2,b=2;break;case 2:d[g++]=t[v|C>>6],d[g++]=t[C&63],b=0;break}g>8191&&((p||(p=[])).push(String.fromCharCode.apply(String,d)),g=0)}return b&&(d[g++]=t[v],d[g++]=61,b===1&&(d[g++]=61)),p?(g&&p.push(String.fromCharCode.apply(String,d.slice(0,g))),p.join("")):String.fromCharCode.apply(String,d.slice(0,g))};var a="invalid encoding";n.decode=function(u,f,h){for(var p=h,d=0,g,b=0;b<u.length;){var v=u.charCodeAt(b++);if(v===61&&d>1)break;if((v=i[v])===void 0)throw Error(a);switch(d){case 0:g=v,d=1;break;case 1:f[h++]=g<<2|(v&48)>>4,g=v,d=2;break;case 2:f[h++]=(g&15)<<4|(v&60)>>2,g=v,d=3;break;case 3:f[h++]=(g&3)<<6|v,d=0;break}}if(d===1)throw Error(a);return h-p};var o=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,l=/[-_]/,s=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;n.test=function(u){return o.test(u)||l.test(u)&&s.test(u)}})),LA=Se(((e,n)=>{n.exports=t;function t(){this._listeners=Object.create(null)}t.prototype.on=function(r,a,o){return(this._listeners[r]||(this._listeners[r]=[])).push({fn:a,ctx:o||this}),this},t.prototype.off=function(r,a){if(r===void 0)this._listeners=Object.create(null);else if(a===void 0)this._listeners[r]=[];else{var o=this._listeners[r];if(!o)return this;for(var l=0;l<o.length;)o[l].fn===a?o.splice(l,1):++l}return this},t.prototype.emit=function(r){var a=this._listeners[r];if(a){for(var o=[],l=1;l<arguments.length;)o.push(arguments[l++]);for(l=0;l<a.length;)a[l].fn.apply(a[l++].ctx,o)}return this}})),PA=Se(((e,n)=>{n.exports=t(t);function t(l){return typeof Float32Array<"u"?(function(){var s=new Float32Array([-0]),c=new Uint8Array(s.buffer),u=c[3]===128;function f(g,b,v){s[0]=g,b[v]=c[0],b[v+1]=c[1],b[v+2]=c[2],b[v+3]=c[3]}function h(g,b,v){s[0]=g,b[v]=c[3],b[v+1]=c[2],b[v+2]=c[1],b[v+3]=c[0]}l.writeFloatLE=u?f:h,l.writeFloatBE=u?h:f;function p(g,b){return c[0]=g[b],c[1]=g[b+1],c[2]=g[b+2],c[3]=g[b+3],s[0]}function d(g,b){return c[3]=g[b],c[2]=g[b+1],c[1]=g[b+2],c[0]=g[b+3],s[0]}l.readFloatLE=u?p:d,l.readFloatBE=u?d:p})():(function(){function s(u,f,h,p){var d=f<0?1:0;if(d&&(f=-f),f===0)u(1/f>0?0:2147483648,h,p);else if(isNaN(f))u(2143289344,h,p);else if(f>34028234663852886e22)u((d<<31|2139095040)>>>0,h,p);else if(f<11754943508222875e-54)u((d<<31|Math.round(f/1401298464324817e-60))>>>0,h,p);else{var g=Math.floor(Math.log(f)/Math.LN2),b=Math.round(f*Math.pow(2,-g)*8388608)&8388607;u((d<<31|g+127<<23|b)>>>0,h,p)}}l.writeFloatLE=s.bind(null,i),l.writeFloatBE=s.bind(null,r);function c(u,f,h){var p=u(f,h),d=(p>>31)*2+1,g=p>>>23&255,b=p&8388607;return g===255?b?NaN:d*(1/0):g===0?d*1401298464324817e-60*b:d*Math.pow(2,g-150)*(b+8388608)}l.readFloatLE=c.bind(null,a),l.readFloatBE=c.bind(null,o)})(),typeof Float64Array<"u"?(function(){var s=new Float64Array([-0]),c=new Uint8Array(s.buffer),u=c[7]===128;function f(g,b,v){s[0]=g,b[v]=c[0],b[v+1]=c[1],b[v+2]=c[2],b[v+3]=c[3],b[v+4]=c[4],b[v+5]=c[5],b[v+6]=c[6],b[v+7]=c[7]}function h(g,b,v){s[0]=g,b[v]=c[7],b[v+1]=c[6],b[v+2]=c[5],b[v+3]=c[4],b[v+4]=c[3],b[v+5]=c[2],b[v+6]=c[1],b[v+7]=c[0]}l.writeDoubleLE=u?f:h,l.writeDoubleBE=u?h:f;function p(g,b){return c[0]=g[b],c[1]=g[b+1],c[2]=g[b+2],c[3]=g[b+3],c[4]=g[b+4],c[5]=g[b+5],c[6]=g[b+6],c[7]=g[b+7],s[0]}function d(g,b){return c[7]=g[b],c[6]=g[b+1],c[5]=g[b+2],c[4]=g[b+3],c[3]=g[b+4],c[2]=g[b+5],c[1]=g[b+6],c[0]=g[b+7],s[0]}l.readDoubleLE=u?p:d,l.readDoubleBE=u?d:p})():(function(){function s(u,f,h,p,d,g){var b=p<0?1:0;if(b&&(p=-p),p===0)u(0,d,g+f),u(1/p>0?0:2147483648,d,g+h);else if(isNaN(p))u(0,d,g+f),u(2146959360,d,g+h);else if(p>17976931348623157e292)u(0,d,g+f),u((b<<31|2146435072)>>>0,d,g+h);else{var v;if(p<22250738585072014e-324)v=p/5e-324,u(v>>>0,d,g+f),u((b<<31|v/4294967296)>>>0,d,g+h);else{var C=Math.floor(Math.log(p)/Math.LN2);C===1024&&(C=1023),v=p*Math.pow(2,-C),u(v*4503599627370496>>>0,d,g+f),u((b<<31|C+1023<<20|v*1048576&1048575)>>>0,d,g+h)}}}l.writeDoubleLE=s.bind(null,i,0,4),l.writeDoubleBE=s.bind(null,r,4,0);function c(u,f,h,p,d){var g=u(p,d+f),b=u(p,d+h),v=(b>>31)*2+1,C=b>>>20&2047,y=4294967296*(b&1048575)+g;return C===2047?y?NaN:v*(1/0):C===0?v*5e-324*y:v*Math.pow(2,C-1075)*(y+4503599627370496)}l.readDoubleLE=c.bind(null,a,0,4),l.readDoubleBE=c.bind(null,o,4,0)})(),l}function i(l,s,c){s[c]=l&255,s[c+1]=l>>>8&255,s[c+2]=l>>>16&255,s[c+3]=l>>>24}function r(l,s,c){s[c]=l>>>24,s[c+1]=l>>>16&255,s[c+2]=l>>>8&255,s[c+3]=l&255}function a(l,s){return(l[s]|l[s+1]<<8|l[s+2]<<16|l[s+3]<<24)>>>0}function o(l,s){return(l[s]<<24|l[s+1]<<16|l[s+2]<<8|l[s+3])>>>0}})),DA=Se((e=>{var n=e,t="�",i;try{i=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}catch{i=new TextDecoder("utf-8",{ignoreBOM:!0})}n.length=function(l){for(var s=0,c=0,u=0;u<l.length;++u)c=l.charCodeAt(u),c<128?s+=1:c<2048?s+=2:(c&64512)===55296&&(l.charCodeAt(u+1)&64512)===56320?(++u,s+=4):s+=3;return s};function r(o,l,s,c){for(var u=l;u<s;){var f=o[u++];if(f<=127)c+=String.fromCharCode(f);else if(f>=192&&f<224){var h=(f&31)<<6|o[u++]&63;c+=h>=128?String.fromCharCode(h):t}else if(f>=224&&f<240){var p=(f&15)<<12|(o[u++]&63)<<6|o[u++]&63;c+=p>=2048?String.fromCharCode(p):t}else if(f>=240){var d=(f&7)<<18|(o[u++]&63)<<12|(o[u++]&63)<<6|o[u++]&63;d<65536||d>1114111?c+=t:(d-=65536,c+=String.fromCharCode(55296+(d>>10)),c+=String.fromCharCode(56320+(d&1023)))}}return c}n.read=function(l,s,c){if(c-s<1)return"";for(var u="",f=s,h,p,d,g,b,v,C,y;f+7<c;f+=8){if(h=l[f],p=l[f+1],d=l[f+2],g=l[f+3],b=l[f+4],v=l[f+5],C=l[f+6],y=l[f+7],(h|p|d|g|b|v|C|y)&128)return r(l,f,c,u);u+=String.fromCharCode(h,p,d,g,b,v,C,y)}for(;f<c;++f){if(h=l[f],h&128)return r(l,f,c,u);u+=String.fromCharCode(h)}return u};function a(o,l,s){var c=l===0&&s===o.length?o:o.subarray?o.subarray(l,s):o.slice(l,s);return Array.isArray(c)&&(c=Uint8Array.from(c)),i.decode(c)}n.readStrict=function(l,s,c){if(c-s<1)return"";for(var u="",f=s,h,p,d,g,b,v,C,y;f+7<c;f+=8){if(h=l[f],p=l[f+1],d=l[f+2],g=l[f+3],b=l[f+4],v=l[f+5],C=l[f+6],y=l[f+7],(h|p|d|g|b|v|C|y)&128)return u+a(l,f,c);u+=String.fromCharCode(h,p,d,g,b,v,C,y)}for(;f<c;++f){if(h=l[f],h&128)return u+a(l,f,c);u+=String.fromCharCode(h)}return u},n.write=function(l,s,c){for(var u=c,f,h,p=0;p<l.length;++p)f=l.charCodeAt(p),f<128?s[c++]=f:f<2048?(s[c++]=f>>6|192,s[c++]=f&63|128):(f&64512)===55296&&((h=l.charCodeAt(p+1))&64512)===56320?(f=65536+((f&1023)<<10)+(h&1023),++p,s[c++]=f>>18|240,s[c++]=f>>12&63|128,s[c++]=f>>6&63|128,s[c++]=f&63|128):(s[c++]=f>>12|224,s[c++]=f>>6&63|128,s[c++]=f&63|128);return c-u}})),FA=Se(((e,n)=>{n.exports=t;function t(i,r,a){var o=a||8192,l=o>>>1,s=null,c=o;return function(f){if(f<1||f>l)return i(f);c+f>o&&(s=i(o),c=0);var h=r.call(s,c,c+=f);return c&7&&(c=(c|7)+1),h}}})),BA=Se(((e,n)=>{n.exports=i;var t=ir();function i(l,s){this.lo=l>>>0,this.hi=s>>>0}var r=i.zero=new i(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(s){if(s===0)return r;var c=s<0;c&&(s=-s);var u=s>>>0,f=(s-u)/4294967296>>>0;return c&&(f=~f>>>0,u=~u>>>0,++u>4294967295&&(u=0,++f>4294967295&&(f=0))),new i(u,f)},i.from=function(s){if(typeof s=="number")return i.fromNumber(s);if(t.isString(s))if(t.Long)s=t.Long.fromString(s);else return i.fromNumber(parseInt(s,10));return s.low||s.high?new i(s.low>>>0,s.high>>>0):r},i.prototype.toNumber=function(s){if(!s&&this.hi>>>31){var c=~this.lo+1>>>0,u=~this.hi>>>0;return c||(u=u+1>>>0),-(c+u*4294967296)}return this.lo+this.hi*4294967296},i.prototype.toLong=function(s){return t.Long?new t.Long(this.lo|0,this.hi|0,!!s):{low:this.lo|0,high:this.hi|0,unsigned:!!s}};var o=String.prototype.charCodeAt;i.fromHash=function(s){return s===a?r:new i((o.call(s,0)|o.call(s,1)<<8|o.call(s,2)<<16|o.call(s,3)<<24)>>>0,(o.call(s,4)|o.call(s,5)<<8|o.call(s,6)<<16|o.call(s,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var s=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^s)>>>0,this.lo=(this.lo<<1^s)>>>0,this},i.prototype.zzDecode=function(){var s=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^s)>>>0,this.hi=(this.hi>>>1^s)>>>0,this},i.prototype.length=function(){var s=this.lo,c=(this.lo>>>28|this.hi<<4)>>>0,u=this.hi>>>24;return u===0?c===0?s<16384?s<128?1:2:s<2097152?3:4:c<16384?c<128?5:6:c<2097152?7:8:u<128?9:10}})),UA=Se(((e,n)=>{(function(t,i){function r(a){return a.default||a}typeof define=="function"&&define.amd?define([],function(){var a={};return i(a),r(a)}):typeof e=="object"?(i(e),typeof n=="object"&&(n.exports=r(e))):(function(){var a={};i(a),t.Long=r(a)})()})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=null;try{i=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function r(O,A,M){this.low=O|0,this.high=A|0,this.unsigned=!!M}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0});function a(O){return(O&&O.__isLong__)===!0}function o(O){var A=Math.clz32(O&-O);return O?31-A:A}r.isLong=a;var l={},s={};function c(O,A){var M,F,D;return A?(O>>>=0,(D=0<=O&&O<256)&&(F=s[O],F)?F:(M=f(O,0,!0),D&&(s[O]=M),M)):(O|=0,(D=-128<=O&&O<128)&&(F=l[O],F)?F:(M=f(O,O<0?-1:0,!1),D&&(l[O]=M),M))}r.fromInt=c;function u(O,A){if(isNaN(O))return A?I:w;if(A){if(O<0)return I;if(O>=C)return Y}else{if(O<=-y)return V;if(O+1>=y)return B}return O<0?u(-O,A).neg():f(O%v|0,O/v|0,A)}r.fromNumber=u;function f(O,A,M){return new r(O,A,M)}r.fromBits=f;var h=Math.pow;function p(O,A,M){if(O.length===0)throw Error("empty string");if(typeof A=="number"?(M=A,A=!1):A=!!A,O==="NaN"||O==="Infinity"||O==="+Infinity"||O==="-Infinity")return A?I:w;if(M=M||10,M<2||36<M)throw RangeError("radix");var F;if((F=O.indexOf("-"))>0)throw Error("interior hyphen");if(F===0)return p(O.substring(1),A,M).neg();for(var D=u(h(M,8)),Q=w,ie=0;ie<O.length;ie+=8){var ce=Math.min(8,O.length-ie),de=parseInt(O.substring(ie,ie+ce),M);if(ce<8){var ye=u(h(M,ce));Q=Q.mul(ye).add(u(de))}else Q=Q.mul(D),Q=Q.add(u(de))}return Q.unsigned=A,Q}r.fromString=p;function d(O,A){return typeof O=="number"?u(O,A):typeof O=="string"?p(O,A):f(O.low,O.high,typeof A=="boolean"?A:O.unsigned)}r.fromValue=d;var g=65536,b=1<<24,v=g*g,C=v*v,y=C/2,m=c(b),w=c(0);r.ZERO=w;var I=c(0,!0);r.UZERO=I;var T=c(1);r.ONE=T;var G=c(1,!0);r.UONE=G;var $=c(-1);r.NEG_ONE=$;var B=f(-1,2147483647,!1);r.MAX_VALUE=B;var Y=f(-1,-1,!0);r.MAX_UNSIGNED_VALUE=Y;var V=f(0,-2147483648,!1);r.MIN_VALUE=V;var P=r.prototype;P.toInt=function(){return this.unsigned?this.low>>>0:this.low},P.toNumber=function(){return this.unsigned?(this.high>>>0)*v+(this.low>>>0):this.high*v+(this.low>>>0)},P.toString=function(A){if(A=A||10,A<2||36<A)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(V)){var M=u(A),F=this.div(M),D=F.mul(M).sub(this);return F.toString(A)+D.toInt().toString(A)}else return"-"+this.neg().toString(A);for(var Q=u(h(A,6),this.unsigned),ie=this,ce="";;){var de=ie.div(Q),ye=(ie.sub(de.mul(Q)).toInt()>>>0).toString(A);if(ie=de,ie.isZero())return ye+ce;for(;ye.length<6;)ye="0"+ye;ce=""+ye+ce}},P.getHighBits=function(){return this.high},P.getHighBitsUnsigned=function(){return this.high>>>0},P.getLowBits=function(){return this.low},P.getLowBitsUnsigned=function(){return this.low>>>0},P.getNumBitsAbs=function(){if(this.isNegative())return this.eq(V)?64:this.neg().getNumBitsAbs();for(var A=this.high!=0?this.high:this.low,M=31;M>0&&(A&1<<M)==0;M--);return this.high!=0?M+33:M+1},P.isSafeInteger=function(){var A=this.high>>21;return A?this.unsigned?!1:A===-1&&!(this.low===0&&this.high===-2097152):!0},P.isZero=function(){return this.high===0&&this.low===0},P.eqz=P.isZero,P.isNegative=function(){return!this.unsigned&&this.high<0},P.isPositive=function(){return this.unsigned||this.high>=0},P.isOdd=function(){return(this.low&1)===1},P.isEven=function(){return(this.low&1)===0},P.equals=function(A){return a(A)||(A=d(A)),this.unsigned!==A.unsigned&&this.high>>>31===1&&A.high>>>31===1?!1:this.high===A.high&&this.low===A.low},P.eq=P.equals,P.notEquals=function(A){return!this.eq(A)},P.neq=P.notEquals,P.ne=P.notEquals,P.lessThan=function(A){return this.comp(A)<0},P.lt=P.lessThan,P.lessThanOrEqual=function(A){return this.comp(A)<=0},P.lte=P.lessThanOrEqual,P.le=P.lessThanOrEqual,P.greaterThan=function(A){return this.comp(A)>0},P.gt=P.greaterThan,P.greaterThanOrEqual=function(A){return this.comp(A)>=0},P.gte=P.greaterThanOrEqual,P.ge=P.greaterThanOrEqual,P.compare=function(A){if(a(A)||(A=d(A)),this.eq(A))return 0;var M=this.isNegative(),F=A.isNegative();return M&&!F?-1:!M&&F?1:this.unsigned?A.high>>>0>this.high>>>0||A.high===this.high&&A.low>>>0>this.low>>>0?-1:1:this.sub(A).isNegative()?-1:1},P.comp=P.compare,P.negate=function(){return!this.unsigned&&this.eq(V)?V:this.not().add(T)},P.neg=P.negate,P.add=function(A){a(A)||(A=d(A));var M=this.high>>>16,F=this.high&65535,D=this.low>>>16,Q=this.low&65535,ie=A.high>>>16,ce=A.high&65535,de=A.low>>>16,ye=A.low&65535,Te=0,ke=0,De=0,Ke=0;return Ke+=Q+ye,De+=Ke>>>16,Ke&=65535,De+=D+de,ke+=De>>>16,De&=65535,ke+=F+ce,Te+=ke>>>16,ke&=65535,Te+=M+ie,Te&=65535,f(De<<16|Ke,Te<<16|ke,this.unsigned)},P.subtract=function(A){return a(A)||(A=d(A)),this.add(A.neg())},P.sub=P.subtract,P.multiply=function(A){if(this.isZero())return this;if(a(A)||(A=d(A)),i)return f(i.mul(this.low,this.high,A.low,A.high),i.get_high(),this.unsigned);if(A.isZero())return this.unsigned?I:w;if(this.eq(V))return A.isOdd()?V:w;if(A.eq(V))return this.isOdd()?V:w;if(this.isNegative())return A.isNegative()?this.neg().mul(A.neg()):this.neg().mul(A).neg();if(A.isNegative())return this.mul(A.neg()).neg();if(this.lt(m)&&A.lt(m))return u(this.toNumber()*A.toNumber(),this.unsigned);var M=this.high>>>16,F=this.high&65535,D=this.low>>>16,Q=this.low&65535,ie=A.high>>>16,ce=A.high&65535,de=A.low>>>16,ye=A.low&65535,Te=0,ke=0,De=0,Ke=0;return Ke+=Q*ye,De+=Ke>>>16,Ke&=65535,De+=D*ye,ke+=De>>>16,De&=65535,De+=Q*de,ke+=De>>>16,De&=65535,ke+=F*ye,Te+=ke>>>16,ke&=65535,ke+=D*de,Te+=ke>>>16,ke&=65535,ke+=Q*ce,Te+=ke>>>16,ke&=65535,Te+=M*ye+F*de+D*ce+Q*ie,Te&=65535,f(De<<16|Ke,Te<<16|ke,this.unsigned)},P.mul=P.multiply,P.divide=function(A){if(a(A)||(A=d(A)),A.isZero())throw Error("division by zero");if(i)return!this.unsigned&&this.high===-2147483648&&A.low===-1&&A.high===-1?this:f((this.unsigned?i.div_u:i.div_s)(this.low,this.high,A.low,A.high),i.get_high(),this.unsigned);if(this.isZero())return this.unsigned?I:w;var M,F,D;if(this.unsigned){if(A.unsigned||(A=A.toUnsigned()),A.gt(this))return I;if(A.gt(this.shru(1)))return G;D=I}else{if(this.eq(V))return A.eq(T)||A.eq($)?V:A.eq(V)?T:(M=this.shr(1).div(A).shl(1),M.eq(w)?A.isNegative()?T:$:(F=this.sub(A.mul(M)),D=M.add(F.div(A)),D));if(A.eq(V))return this.unsigned?I:w;if(this.isNegative())return A.isNegative()?this.neg().div(A.neg()):this.neg().div(A).neg();if(A.isNegative())return this.div(A.neg()).neg();D=w}for(F=this;F.gte(A);){M=Math.max(1,Math.floor(F.toNumber()/A.toNumber()));for(var Q=Math.ceil(Math.log(M)/Math.LN2),ie=Q<=48?1:h(2,Q-48),ce=u(M),de=ce.mul(A);de.isNegative()||de.gt(F);)M-=ie,ce=u(M,this.unsigned),de=ce.mul(A);ce.isZero()&&(ce=T),D=D.add(ce),F=F.sub(de)}return D},P.div=P.divide,P.modulo=function(A){return a(A)||(A=d(A)),i?f((this.unsigned?i.rem_u:i.rem_s)(this.low,this.high,A.low,A.high),i.get_high(),this.unsigned):this.sub(this.div(A).mul(A))},P.mod=P.modulo,P.rem=P.modulo,P.not=function(){return f(~this.low,~this.high,this.unsigned)},P.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},P.clz=P.countLeadingZeros,P.countTrailingZeros=function(){return this.low?o(this.low):o(this.high)+32},P.ctz=P.countTrailingZeros,P.and=function(A){return a(A)||(A=d(A)),f(this.low&A.low,this.high&A.high,this.unsigned)},P.or=function(A){return a(A)||(A=d(A)),f(this.low|A.low,this.high|A.high,this.unsigned)},P.xor=function(A){return a(A)||(A=d(A)),f(this.low^A.low,this.high^A.high,this.unsigned)},P.shiftLeft=function(A){return a(A)&&(A=A.toInt()),(A&=63)===0?this:A<32?f(this.low<<A,this.high<<A|this.low>>>32-A,this.unsigned):f(0,this.low<<A-32,this.unsigned)},P.shl=P.shiftLeft,P.shiftRight=function(A){return a(A)&&(A=A.toInt()),(A&=63)===0?this:A<32?f(this.low>>>A|this.high<<32-A,this.high>>A,this.unsigned):f(this.high>>A-32,this.high>=0?0:-1,this.unsigned)},P.shr=P.shiftRight,P.shiftRightUnsigned=function(A){return a(A)&&(A=A.toInt()),(A&=63)===0?this:A<32?f(this.low>>>A|this.high<<32-A,this.high>>>A,this.unsigned):A===32?f(this.high,0,this.unsigned):f(this.high>>>A-32,0,this.unsigned)},P.shru=P.shiftRightUnsigned,P.shr_u=P.shiftRightUnsigned,P.rotateLeft=function(A){var M;return a(A)&&(A=A.toInt()),(A&=63)===0?this:A===32?f(this.high,this.low,this.unsigned):A<32?(M=32-A,f(this.low<<A|this.high>>>M,this.high<<A|this.low>>>M,this.unsigned)):(A-=32,M=32-A,f(this.high<<A|this.low>>>M,this.low<<A|this.high>>>M,this.unsigned))},P.rotl=P.rotateLeft,P.rotateRight=function(A){var M;return a(A)&&(A=A.toInt()),(A&=63)===0?this:A===32?f(this.high,this.low,this.unsigned):A<32?(M=32-A,f(this.high<<M|this.low>>>A,this.low<<M|this.high>>>A,this.unsigned)):(A-=32,M=32-A,f(this.low<<M|this.high>>>A,this.high<<M|this.low>>>A,this.unsigned))},P.rotr=P.rotateRight,P.toSigned=function(){return this.unsigned?f(this.low,this.high,!1):this},P.toUnsigned=function(){return this.unsigned?this:f(this.low,this.high,!0)},P.toBytes=function(A){return A?this.toBytesLE():this.toBytesBE()},P.toBytesLE=function(){var A=this.high,M=this.low;return[M&255,M>>>8&255,M>>>16&255,M>>>24,A&255,A>>>8&255,A>>>16&255,A>>>24]},P.toBytesBE=function(){var A=this.high,M=this.low;return[A>>>24,A>>>16&255,A>>>8&255,A&255,M>>>24,M>>>16&255,M>>>8&255,M&255]},r.fromBytes=function(A,M,F){return F?r.fromBytesLE(A,M):r.fromBytesBE(A,M)},r.fromBytesLE=function(A,M){return new r(A[0]|A[1]<<8|A[2]<<16|A[3]<<24,A[4]|A[5]<<8|A[6]<<16|A[7]<<24,M)},r.fromBytesBE=function(A,M){return new r(A[4]<<24|A[5]<<16|A[6]<<8|A[7],A[0]<<24|A[1]<<16|A[2]<<8|A[3],M)},typeof BigInt=="function"&&(r.fromBigInt=function(A,M){return f(Number(BigInt.asIntN(32,A)),Number(BigInt.asIntN(32,A>>BigInt(32))),M)},r.fromValue=function(A,M){return typeof A=="bigint"?r.fromBigInt(A,M):d(A,M)},P.toBigInt=function(){var A=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|A}),t.default=r})})),ir=Se((e=>{var n=e;n.asPromise=NA(),n.base64=RA(),n.EventEmitter=LA(),n.float=PA(),n.utf8=DA(),n.pool=FA(),n.LongBits=BA();function t(a){return a==="__proto__"||a==="prototype"||a==="constructor"}n.isUnsafeProperty=t,n.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||e,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o},n.isString=function(o){return typeof o=="string"||o instanceof String},n.isObject=function(o){return o&&typeof o=="object"},n.isset=n.isSet=function(o,l){var s=o[l];return s!=null&&Object.hasOwnProperty.call(o,l)?typeof s!="object"||(Array.isArray(s)?s.length:Object.keys(s).length)>0:!1},n.Buffer=(function(){try{var a=n.global.Buffer;return a.prototype.utf8Write?a:null}catch{return null}})(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(o){return typeof o=="number"?n.Buffer?n._Buffer_allocUnsafe(o):new n.Array(o):n.Buffer?n._Buffer_from(o):typeof Uint8Array>"u"?o:new Uint8Array(o)},n.Array=typeof Uint8Array<"u"?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||(function(){try{var a=UA();return a&&a.isLong?a:null}catch{return null}})(),n.key2Re=/^(?:true|false|0|1)$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(o){return o?n.LongBits.from(o).toHash():n.LongBits.zeroHash},n.longFromHash=function(o,l){var s=n.LongBits.fromHash(o);return n.Long?n.Long.fromBits(s.lo,s.hi,l):s.toNumber(!!l)},n.longFromKey=function(o,l){return n.key64Re.test(o)&&!n.key32Re.test(o)?n.longFromHash(o,l):o},n.boolFromKey=function(o){return o==="true"||o==="1"};function i(a){var o=typeof arguments[arguments.length-1]=="boolean",l=o?arguments.length-1:arguments.length;o=o&&arguments[arguments.length-1];for(var s=1;s<l;++s){var c=arguments[s];if(c)for(var u=Object.keys(c),f=0;f<u.length;++f)!t(u[f])&&(a[u[f]]===void 0||!o)&&(a[u[f]]=c[u[f]])}return a}n.merge=i,n.nestingLimit=32,n.recursionLimit=100,n.makeProp=function(o,l,s){Object.prototype.hasOwnProperty.call(o,l)||Object.defineProperty(o,l,{enumerable:s===void 0?!0:s,configurable:!0,writable:!0})},n.lcFirst=function(o){return o.charAt(0).toLowerCase()+o.substring(1)};function r(a){function o(l,s){if(!(this instanceof o))return new o(l,s);Object.defineProperty(this,"message",{get:function(){return l}}),Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:new Error().stack||""}),s&&i(this,s)}return o.prototype=Object.create(Error.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return a},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),o}n.newError=r,n.ProtocolError=r("ProtocolError"),n.oneOfGetter=function(o){for(var l={},s=0;s<o.length;++s)l[o[s]]=1;return function(){for(var c=Object.keys(this),u=c.length-1;u>-1;--u)if(l[c[u]]===1&&this[c[u]]!==void 0&&this[c[u]]!==null)return c[u]}},n.oneOfSetter=function(o){return function(l){for(var s=0;s<o.length;++s)o[s]!==l&&delete this[o[s]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var a=n.Buffer;if(!a){n._Buffer_from=n._Buffer_allocUnsafe=null;return}n._Buffer_from=a.from!==Uint8Array.from&&a.from||function(l,s){return new a(l,s)},n._Buffer_allocUnsafe=a.allocUnsafe||function(l){return new a(l)}}})),Ip=Se(((e,n)=>{n.exports=u;var t=ir(),i,r=t.LongBits,a=t.base64,o=t.utf8;function l(y,m,w){this.fn=y,this.len=m,this.next=void 0,this.val=w}function s(){}function c(y){this.head=y.head,this.tail=y.tail,this.len=y.len,this.next=y.states}function u(){this.len=0,this.head=new l(s,0,0),this.tail=this.head,this.states=null}var f=function(){return t.Buffer?function(){return(u.create=function(){return new i})()}:function(){return new u}};u.create=f(),u.alloc=function(m){return new t.Array(m)},t.Array!==Array&&(u.alloc=t.pool(u.alloc,t.Array.prototype.subarray)),u.prototype._push=function(m,w,I){return this.tail=this.tail.next=new l(m,w,I),this.len+=w,this};function h(y,m,w){m[w]=y&255}function p(y,m,w){for(var I=0;I<y.length;)m[w++]=y.charCodeAt(I++)}function d(y,m,w){for(;y>127;)m[w++]=y&127|128,y>>>=7;m[w]=y}function g(y,m){this.len=y,this.next=void 0,this.val=m}g.prototype=Object.create(l.prototype),g.prototype.fn=d,u.prototype.uint32=function(m){return this.len+=(this.tail=this.tail.next=new g((m=m>>>0)<128?1:m<16384?2:m<2097152?3:m<268435456?4:5,m)).len,this},u.prototype.int32=function(m){return(m|=0)<0?this._push(b,10,r.fromNumber(m)):this.uint32(m)},u.prototype.sint32=function(m){return this.uint32((m<<1^m>>31)>>>0)};function b(y,m,w){for(var I=y.lo,T=y.hi;T;)m[w++]=I&127|128,I=(I>>>7|T<<25)>>>0,T>>>=7;for(;I>127;)m[w++]=I&127|128,I=I>>>7;m[w++]=I}u.prototype.uint64=function(m){var w=r.from(m);return this._push(b,w.length(),w)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(m){var w=r.from(m).zzEncode();return this._push(b,w.length(),w)},u.prototype.bool=function(m){return this._push(h,1,m?1:0)};function v(y,m,w){m[w]=y&255,m[w+1]=y>>>8&255,m[w+2]=y>>>16&255,m[w+3]=y>>>24}u.prototype.fixed32=function(m){return this._push(v,4,m>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(m){var w=r.from(m);return this._push(v,4,w.lo)._push(v,4,w.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(m){return this._push(t.float.writeFloatLE,4,m)},u.prototype.double=function(m){return this._push(t.float.writeDoubleLE,8,m)};var C=t.Array.prototype.set?function(m,w,I){w.set(m,I)}:function(m,w,I){for(var T=0;T<m.length;++T)w[I+T]=m[T]};u.prototype.bytes=function(m){var w=m.length>>>0;if(!w)return this._push(h,1,0);if(t.isString(m)){var I=u.alloc(w=a.length(m));a.decode(m,I,0),m=I}return this.uint32(w)._push(C,w,m)},u.prototype.raw=function(m){var w=m.length>>>0;return w?this._push(C,w,m):this},u.prototype.string=function(m){var w=o.length(m);return w?this.uint32(w)._push(w===m.length?p:o.write,w,m):this._push(h,1,0)},u.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new l(s,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(s,0,0),this.len=0),this},u.prototype.ldelim=function(){var m=this.head,w=this.tail,I=this.len;return this.reset().uint32(I),I&&(this.tail.next=m.next,this.tail=w,this.len+=I),this},u.prototype.finish=function(){return this.finishInto(this.constructor.alloc(this.len),0)},u.prototype.finishInto=function(m,w){w===void 0&&(w=0);for(var I=this.head.next,T=w;I;)I.fn(I.val,m,T),T+=I.len,I=I.next;return m},u._configure=function(y){i=y,u.create=f(),i._configure()}})),jA=Se(((e,n)=>{n.exports=r;var t=Ip();(r.prototype=Object.create(t.prototype)).constructor=r;var i=ir();function r(){t.call(this)}r._configure=function(){r.alloc=i._Buffer_allocUnsafe,r.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&i.Buffer.prototype.set.name==="set"?function(s,c,u){c.set(s,u)}:function(s,c,u){if(s.copy)s.copy(c,u,0,s.length);else for(var f=0;f<s.length;)c[u++]=s[f++]}},r.prototype.bytes=function(s){i.isString(s)&&(s=i._Buffer_from(s,"base64"));var c=s.length>>>0;return this.uint32(c),c&&this._push(r.writeBytesBuffer,c,s),this},r.prototype.raw=function(s){var c=s.length>>>0;return c?this._push(r.writeBytesBuffer,c,s):this};function a(l,s,c){for(var u=0;u<l.length;)s[c++]=l.charCodeAt(u++)}function o(l,s,c){l.length<40?i.utf8.write(l,s,c):s.utf8Write?s.utf8Write(l,c):s.write(l,c)}r.prototype.string=function(s){var c=i.Buffer.byteLength(s);return this.uint32(c),c&&this._push(c===s.length&&c<40?a:o,c,s),this},r._configure()})),Tp=Se(((e,n)=>{n.exports=l;var t=ir(),i,r=t.LongBits,a=t.utf8;function o(p,d){return RangeError("index out of range: "+p.pos+" + "+(d||1)+" > "+p.len)}function l(p){this.buf=p,this.pos=0,this.len=p.length,this.discardUnknown=l.discardUnknown}var s=typeof Uint8Array<"u"?function(d){if(d instanceof Uint8Array||Array.isArray(d))return new l(d);throw Error("illegal buffer")}:function(d){if(Array.isArray(d))return new l(d);throw Error("illegal buffer")},c=function(){return t.Buffer?function(g){return(l.create=function(v){return t.Buffer.isBuffer(v)?new i(v):s(v)})(g)}:s};l.create=c(),l.prototype._slice=t.Array.prototype.subarray||t.Array.prototype.slice,l.prototype.raw=function(d,g){return Array.isArray(this.buf)?this.buf.slice(d,g):d===g?new this.buf.constructor(0):this._slice.call(this.buf,d,g)},l.prototype.uint32=function(){var d=this.buf,g=this.pos,b=(d[g]&127)>>>0;if(d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&127)<<7)>>>0,d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&127)<<14)>>>0,d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&127)<<21)>>>0,d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&15)<<28)>>>0,d[g++]<128)return this.pos=g,b;for(var v=0;v<5;++v){if(g>=this.len)throw this.pos=g,o(this);if(d[g++]<128)return this.pos=g,b}throw this.pos=g,Error("invalid varint encoding")},l.prototype.tag=function(){var d=this.buf,g=this.pos,b=(d[g]&127)>>>0;if(d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&127)<<7)>>>0,d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&127)<<14)>>>0,d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&127)<<21)>>>0,d[g++]<128)return this.pos=g,b;if(b=(b|(d[g]&15)<<28)>>>0,d[g]<128&&(d[g]&112)===0)return this.pos=g+1,b;throw this.pos=g+1,Error("invalid tag encoding")},l.prototype.int32=function(){return this.uint32()|0},l.prototype.sint32=function(){var d=this.uint32();return d>>>1^-(d&1)|0};function u(){var p=new r(0,0),d=0;if(this.len-this.pos>4){for(;d<4;++d)if(p.lo=(p.lo|(this.buf[this.pos]&127)<<d*7)>>>0,this.buf[this.pos++]<128)return p;if(p.lo=(p.lo|(this.buf[this.pos]&127)<<28)>>>0,p.hi=(p.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return p;d=0}else{for(;d<4;++d){if(this.pos>=this.len)throw o(this);if(p.lo=(p.lo|(this.buf[this.pos]&127)<<d*7)>>>0,this.buf[this.pos++]<128)return p}throw o(this)}if(this.len-this.pos>4){for(;d<5;++d)if(p.hi=(p.hi|(this.buf[this.pos]&127)<<d*7+3)>>>0,this.buf[this.pos++]<128)return p}else for(;d<5;++d){if(this.pos>=this.len)throw o(this);if(p.hi=(p.hi|(this.buf[this.pos]&127)<<d*7+3)>>>0,this.buf[this.pos++]<128)return p}throw Error("invalid varint encoding")}l.prototype.bool=function(){for(var d=!1,g,b=0;b<10;++b){if(this.pos>=this.len)throw o(this);if(g=this.buf[this.pos++],g&127&&(d=!0),g<128)return d}throw Error("invalid varint encoding")};function f(p,d){return(p[d-4]|p[d-3]<<8|p[d-2]<<16|p[d-1]<<24)>>>0}l.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return f(this.buf,this.pos+=4)|0};function h(){if(this.pos+8>this.len)throw o(this,8);return new r(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var d=t.float.readFloatLE(this.buf,this.pos);return this.pos+=4,d},l.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var d=t.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,d},l.prototype.bytes=function(){var d=this.uint32(),g=this.pos,b=this.pos+d;if(b>this.len)throw o(this,d);return this.pos=b,this.raw(g,b)},l.prototype.string=function(){var d=this.uint32(),g=this.pos,b=this.pos+d;if(b>this.len)throw o(this,d);return this.pos=b,a.read(this.buf,g,b)},l.prototype.stringVerify=function(){var d=this.uint32(),g=this.pos,b=this.pos+d;if(b>this.len)throw o(this,d);return this.pos=b,a.readStrict(this.buf,g,b)},l.prototype.skip=function(d){if(typeof d=="number"){if(this.pos+d>this.len)throw o(this,d);this.pos+=d}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},l.recursionLimit=t.recursionLimit,l.discardUnknown=!0,l.prototype.skipType=function(p,d,g){if(d===void 0&&(d=0),d>l.recursionLimit)throw Error("max depth exceeded");if(g===0)throw Error("illegal tag: field number 0");switch(p){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var b=this.tag(),v=b>>>3;if(p=b&7,!v)throw Error("illegal tag: field number 0");if(p===4){if(g!==void 0&&v!==g)throw Error("invalid end group tag");break}this.skipType(p,d+1,v)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+p+" at offset "+this.pos)}return this},l._configure=function(p){i=p,l.create=c(),i._configure();var d=t.Long?"toLong":"toNumber";t.merge(l.prototype,{int64:function(){return u.call(this)[d](!1)},uint64:function(){return u.call(this)[d](!0)},sint64:function(){return u.call(this).zzDecode()[d](!1)},fixed64:function(){return h.call(this)[d](!0)},sfixed64:function(){return h.call(this)[d](!1)}})}})),qA=Se(((e,n)=>{n.exports=r;var t=Tp();(r.prototype=Object.create(t.prototype)).constructor=r;var i=ir();function r(a){t.call(this,a)}r._configure=function(){i.Buffer&&(r.prototype._slice=i.Buffer.prototype.slice)},r.prototype.raw=function(o,l){return o===l?i.Buffer.alloc(0):this._slice.call(this.buf,o,l)},r.prototype.string=function(){var o=this.uint32(),l=this.pos,s=this.pos+o;if(s>this.len)throw RangeError("index out of range: "+this.pos+" + "+o+" > "+this.len);return this.pos=s,this.buf.utf8Slice?this.buf.utf8Slice(l,s):this.buf.toString("utf-8",l,s)},r._configure()})),$A=Se(((e,n)=>{n.exports=i;var t=ir();(i.prototype=Object.create(t.EventEmitter.prototype)).constructor=i;function i(r,a,o){if(typeof r!="function")throw TypeError("rpcImpl must be a function");t.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!a,this.responseDelimited=!!o}i.prototype.rpcCall=function r(a,o,l,s,c){if(!s)throw TypeError("request must be specified");var u=this;if(!c)return t.asPromise(r,u,a,o,l,s);if(!u.rpcImpl){setTimeout(function(){c(Error("already ended"))},0);return}try{return u.rpcImpl(a,o[u.requestDelimited?"encodeDelimited":"encode"](s).finish(),function(h,p){if(h)return u.emit("error",h,a),c(h);if(p===null){u.end(!0);return}if(!(p instanceof l))try{p=l[u.responseDelimited?"decodeDelimited":"decode"](p)}catch(d){return u.emit("error",d,a),c(d)}return u.emit("data",p,a),c(null,p)})}catch(f){u.emit("error",f,a),setTimeout(function(){c(f)},0);return}},i.prototype.end=function(a){return this.rpcImpl&&(a||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}})),zA=Se((e=>{var n=e;n.Service=$A()})),VA=Se(((e,n)=>{n.exports=Object.create(null)})),HA=Se((e=>{e.build="minimal",e.Writer=Ip(),e.BufferWriter=jA(),e.Reader=Tp(),e.BufferReader=qA(),e.util=ir(),e.rpc=zA(),e.roots=VA(),e.configure=n;function n(){e.util._configure(),e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}n()})),WA=Se(((e,n)=>{n.exports=HA()})),Ha=fr(WA(),1),ee=Ha.Reader,je=Ha.Writer,oe=Ha.util,R=Ha.roots.default||(Ha.roots.default={}),QO=R.ErrorCodes=(()=>{const e={},n=Object.create(e);return n[e[-1]="ConferenceWithPinDoesNotExist"]=-1,n[e[-2]="ConferenceWithPinAlreadyExists"]=-2,n[e[-3]="ConferencePinAndIdDoesNotMatch"]=-3,n[e[-4]="ConferenceAccessDenied"]=-4,n[e[-5]="ConferenceIsCancelled"]=-5,n[e[-6]="ConferencePinIsReadOnly"]=-6,n[e[-7]="ConferenceInvalidPin"]=-7,n[e[-8]="CannotGeneratePin"]=-8,n[e[-9]="FwdProfileDoesNotExist"]=-9,n[e[-10]="FwdProfileOverrideExpirationRequired"]=-10,n[e[0]="Success"]=0,n[e[1]="NoSuchRequest"]=1,n[e[2]="ExceptionOccured"]=2,n[e[3]="RequestIsNotSupported"]=3,n[e[4]="ServerIsBusy"]=4,n[e[5]="BridgeNotFound"]=5,n[e[6]="CannotCleanOwnExtension"]=6,n[e[7]="SetWakeupCallResult"]=7,n[e[8]="ExtensionNotFound"]=8,n[e[9]="NoPermission"]=9,n[e[12]="WebMeetingNoEmail"]=12,n[e[13]="WebMeetingNoAccess"]=13,n[e[16]="WebMeetingInvalidOrganizer"]=16,n[e[17]="WebMeetingInvalidParameters"]=17,n[e[18]="WebMeetingInvalidParticipant"]=18,n[e[19]="WebMeetingInvalidPin"]=19,n[e[20]="WebMeetingAccessDenied"]=20,n[e[21]="WebMeetingNotFound"]=21,n[e[22]="WebMeetingCannotDeleteQM"]=22,n[e[23]="WebMeetingPinIsReadonly"]=23,n[e[24]="WebMeetingNumberToCallIsReadonly"]=24,n[e[25]="WebMeetingInvalidWmUser"]=25,n[e[30]="ExtensionEmailRequired"]=30,n[e[31]="QueueNumberRequired"]=31,n[e[32]="ChatIsDisabled"]=32,n[e[33]="PersonalContactRequired"]=33,n[e[34]="RequiredFieldIsEmpty"]=34,n[e[35]="ContactNotFound"]=35,n[e[36]="ContactIsReadonly"]=36,n[e[37]="ActionIsNotAllowed"]=37,n[e[38]="FileNotFound"]=38,n[e[39]="OwnRecordingsDenied"]=39,n[e[40]="InvalidValue"]=40,n[e[41]="InvalidMedia"]=41,n[e[42]="InvalidOperation"]=42,n[e[43]="OperationFailed"]=43,n})(),Hr=R.ActionType=(()=>{const e={},n=Object.create(e);return n[e[0]="NoUpdates"]=0,n[e[1]="FullUpdate"]=1,n[e[2]="Inserted"]=2,n[e[3]="Updated"]=3,n[e[4]="Deleted"]=4,n})(),KO=R.DnType=(()=>{const e={},n=Object.create(e);return n[e[0]="None"]=0,n[e[1]="Extension"]=1,n[e[2]="Queue"]=2,n[e[4]="RingGroup"]=4,n[e[8]="IVR"]=8,n[e[16]="Fax"]=16,n[e[32]="Conference"]=32,n[e[64]="Parking"]=64,n[e[128]="ExternalLine"]=128,n[e[256]="SpecialMenu"]=256,n[e[512]="Service"]=512,n})(),ZO=R.ContactType=(()=>{const e={},n=Object.create(e);return n[e[0]="LocalUser"]=0,n[e[1]="CompanyPhonebook"]=1,n[e[2]="PersonalPhonebook"]=2,n[e[3]="BridgeExtension"]=3,n[e[4]="ExternalContact"]=4,n})(),ki=R.ChatFileState=(()=>{const e={},n=Object.create(e);return n[e[0]="CF_Uploading"]=0,n[e[1]="CF_Available"]=1,n[e[2]="CF_Deleted"]=2,n})(),JO=R.ContactAddedByEnum=(()=>{const e={},n=Object.create(e);return n[e[0]="AB_Tcx"]=0,n[e[1]="AB_Crm"]=1,n[e[2]="AB_Office365"]=2,n})(),Vc=R.ChatMessageType=(()=>{const e={},n=Object.create(e);return n[e[0]="CMT_Normal"]=0,n[e[1]="CMT_Closed"]=1,n[e[2]="CMT_Dealt"]=2,n[e[3]="CMT_Reserved"]=3,n[e[4]="CMT_Taken"]=4,n[e[5]="CMT_Transferred"]=5,n[e[6]="CMT_Whisper"]=6,n[e[7]="CMT_Emergency"]=7,n[e[8]="CMT_License"]=8,n[e[9]="CMT_WebMeeting"]=9,n[e[10]="CMT_Blocked"]=10,n[e[11]="CMT_AutoReply"]=11,n[e[12]="CMT_ClosedByProvider"]=12,n[e[13]="CMT_PersonInDnd"]=13,n[e[14]="CMT_MessageTooLong"]=14,n[e[15]="CMT_GenericError"]=15,n[e[16]="CMT_AutoClosed"]=16,n[e[17]="CMT_ParticipantAdded"]=17,n[e[18]="CMT_ParticipantRemoved"]=18,n[e[19]="CMT_Muted"]=19,n})(),Wr=R.ChatRecipientType=(()=>{const e={},n=Object.create(e);return n[e[0]="CRT_Local"]=0,n[e[1]="CRT_3cxBridge"]=1,n[e[2]="CRT_Anonymous"]=2,n[e[3]="CRT_External"]=3,n[e[5]="CRT_System"]=5,n})(),XO=R.ChatRecipientStatus=(()=>{const e={},n=Object.create(e);return n[e[0]="CRS_Available"]=0,n[e[1]="CRS_Offline"]=1,n[e[2]="CRS_Busy"]=2,n})(),YA=R.ExternalChatCloseReason=(()=>{const e={},n=Object.create(e);return n[e[0]="ECCR_LogoutByAnonymous"]=0,n[e[1]="ECCR_LogoutByExtension"]=1,n[e[2]="ECCR_BlockedByExtension"]=2,n[e[3]="ECCR_IsHandled"]=3,n[e[4]="ECCR_NoAgentsAvailable"]=4,n[e[5]="ECCR_NotAvailable"]=5,n[e[6]="ECCR_AutoClose"]=6,n})(),ex=R.ChatDeliveryStatus=(()=>{const e={},n=Object.create(e);return n[e[0]="CDS_NotDelivered"]=0,n[e[1]="CDS_Delivered"]=1,n[e[2]="CDS_Failed"]=2,n})(),GA=R.Login=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(10).string(t.User),t.Password!=null&&Object.hasOwnProperty.call(t,"Password")&&i.uint32(18).string(t.Password),t.ClientVersion!=null&&Object.hasOwnProperty.call(t,"ClientVersion")&&i.uint32(26).string(t.ClientVersion),t.ClientInfo!=null&&Object.hasOwnProperty.call(t,"ClientInfo")&&i.uint32(34).string(t.ClientInfo),t.ProtocolVersion!=null&&Object.hasOwnProperty.call(t,"ProtocolVersion")&&i.uint32(42).string(t.ProtocolVersion),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.Login;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.User=t.string();continue;case 2:s.Password=t.string();continue;case 3:s.ClientVersion=t.string();continue;case 4:s.ClientInfo=t.string();continue;case 5:s.ProtocolVersion=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"User"))throw oe.ProtocolError("missing required 'User'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:100,LoginRequest:this})},e.prototype.typeId=100,e.prototype.typeName="LoginRequest",e})(),QA=R.LoginInfo=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.ExtensionId!=null&&Object.hasOwnProperty.call(t,"ExtensionId")&&i.uint32(8).int32(t.ExtensionId),t.IsAuthenticated!=null&&Object.hasOwnProperty.call(t,"IsAuthenticated")&&i.uint32(16).bool(t.IsAuthenticated),t.ValidationMessage!=null&&Object.hasOwnProperty.call(t,"ValidationMessage")&&i.uint32(26).string(t.ValidationMessage),t.Nonce!=null&&Object.hasOwnProperty.call(t,"Nonce")&&i.uint32(34).string(t.Nonce),t.SessionId!=null&&Object.hasOwnProperty.call(t,"SessionId")&&i.uint32(42).string(t.SessionId),t.AddpTimeout!=null&&Object.hasOwnProperty.call(t,"AddpTimeout")&&i.uint32(48).int32(t.AddpTimeout),t.ServerVersion!=null&&Object.hasOwnProperty.call(t,"ServerVersion")&&i.uint32(58).string(t.ServerVersion),t.UpdateAvailable!=null&&Object.hasOwnProperty.call(t,"UpdateAvailable")&&i.uint32(64).bool(t.UpdateAvailable),t.LicenseType!=null&&Object.hasOwnProperty.call(t,"LicenseType")&&i.uint32(72).int32(t.LicenseType),t.LicenseProduct!=null&&Object.hasOwnProperty.call(t,"LicenseProduct")&&i.uint32(82).string(t.LicenseProduct),t.PbxVersion!=null&&Object.hasOwnProperty.call(t,"PbxVersion")&&i.uint32(90).string(t.PbxVersion),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.LoginInfo;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.ExtensionId=t.int32();continue;case 2:s.IsAuthenticated=t.bool();continue;case 3:s.ValidationMessage=t.string();continue;case 4:s.Nonce=t.string();continue;case 5:s.SessionId=t.string();continue;case 6:s.AddpTimeout=t.int32();continue;case 7:s.ServerVersion=t.string();continue;case 8:s.UpdateAvailable=t.bool();continue;case 9:s.LicenseType=t.int32();continue;case 10:s.LicenseProduct=t.string();continue;case 11:s.PbxVersion=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:200,LoginResponse:this})},e.prototype.typeId=200,e.prototype.typeName="LoginResponse",e})(),KA=R.Logout=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.Logout;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}t.skipType(u&7,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:101,LogoutRequest:this})},e.prototype.typeId=101,e.prototype.typeName="LogoutRequest",e})(),ZA=R.DateTime=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Year!=null&&Object.hasOwnProperty.call(t,"Year")&&i.uint32(8).int32(t.Year),t.Month!=null&&Object.hasOwnProperty.call(t,"Month")&&i.uint32(16).int32(t.Month),t.Day!=null&&Object.hasOwnProperty.call(t,"Day")&&i.uint32(24).int32(t.Day),t.Hour!=null&&Object.hasOwnProperty.call(t,"Hour")&&i.uint32(32).int32(t.Hour),t.Minute!=null&&Object.hasOwnProperty.call(t,"Minute")&&i.uint32(40).int32(t.Minute),t.Second!=null&&Object.hasOwnProperty.call(t,"Second")&&i.uint32(48).int32(t.Second),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.DateTime;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Year=t.int32();continue;case 2:s.Month=t.int32();continue;case 3:s.Day=t.int32();continue;case 4:s.Hour=t.int32();continue;case 5:s.Minute=t.int32();continue;case 6:s.Second=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e})(),kp=R.RequestMyInfo=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestMyInfo;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}t.skipType(u&7,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:102,GetMyInfo:this})},e.prototype.typeId=102,e.prototype.typeName="GetMyInfo",e})(),tx=R.Contact=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.Id),t.FirstName!=null&&Object.hasOwnProperty.call(t,"FirstName")&&i.uint32(18).string(t.FirstName),t.LastName!=null&&Object.hasOwnProperty.call(t,"LastName")&&i.uint32(26).string(t.LastName),t.Number!=null&&Object.hasOwnProperty.call(t,"Number")&&i.uint32(34).string(t.Number),t.ExtensionNumber!=null&&Object.hasOwnProperty.call(t,"ExtensionNumber")&&i.uint32(42).string(t.ExtensionNumber),t.ContactType!=null&&Object.hasOwnProperty.call(t,"ContactType")&&i.uint32(48).int32(t.ContactType),t.Company!=null&&Object.hasOwnProperty.call(t,"Company")&&i.uint32(58).string(t.Company),t.AddressNumberOrData0!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData0")&&i.uint32(66).string(t.AddressNumberOrData0),t.AddressNumberOrData1!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData1")&&i.uint32(74).string(t.AddressNumberOrData1),t.AddressNumberOrData2!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData2")&&i.uint32(82).string(t.AddressNumberOrData2),t.AddressNumberOrData3!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData3")&&i.uint32(90).string(t.AddressNumberOrData3),t.AddressNumberOrData4!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData4")&&i.uint32(98).string(t.AddressNumberOrData4),t.AddressNumberOrData5!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData5")&&i.uint32(106).string(t.AddressNumberOrData5),t.AddressNumberOrData6!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData6")&&i.uint32(114).string(t.AddressNumberOrData6),t.AddressNumberOrData7!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData7")&&i.uint32(122).string(t.AddressNumberOrData7),t.AddressNumberOrData8!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData8")&&i.uint32(130).string(t.AddressNumberOrData8),t.AddressNumberOrData9!=null&&Object.hasOwnProperty.call(t,"AddressNumberOrData9")&&i.uint32(138).string(t.AddressNumberOrData9),i.uint32(144).int32(t.Action),t.ContactImage!=null&&Object.hasOwnProperty.call(t,"ContactImage")&&i.uint32(154).string(t.ContactImage),t.IsEditable!=null&&Object.hasOwnProperty.call(t,"IsEditable")&&i.uint32(160).bool(t.IsEditable),t.CrmContactData!=null&&Object.hasOwnProperty.call(t,"CrmContactData")&&i.uint32(178).string(t.CrmContactData),t.AddedBy!=null&&Object.hasOwnProperty.call(t,"AddedBy")&&i.uint32(184).int32(t.AddedBy),t.DnType!=null&&Object.hasOwnProperty.call(t,"DnType")&&i.uint32(192).int32(t.DnType),t.OpenLink!=null&&Object.hasOwnProperty.call(t,"OpenLink")&&i.uint32(202).string(t.OpenLink),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.Contact;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Id=t.int32();continue;case 2:s.FirstName=t.string();continue;case 3:s.LastName=t.string();continue;case 4:s.Number=t.string();continue;case 5:s.ExtensionNumber=t.string();continue;case 6:s.ContactType=t.int32();continue;case 7:s.Company=t.string();continue;case 8:s.AddressNumberOrData0=t.string();continue;case 9:s.AddressNumberOrData1=t.string();continue;case 10:s.AddressNumberOrData2=t.string();continue;case 11:s.AddressNumberOrData3=t.string();continue;case 12:s.AddressNumberOrData4=t.string();continue;case 13:s.AddressNumberOrData5=t.string();continue;case 14:s.AddressNumberOrData6=t.string();continue;case 15:s.AddressNumberOrData7=t.string();continue;case 16:s.AddressNumberOrData8=t.string();continue;case 17:s.AddressNumberOrData9=t.string();continue;case 18:s.Action=t.int32();continue;case 19:s.ContactImage=t.string();continue;case 20:s.IsEditable=t.bool();continue;case 22:s.CrmContactData=t.string();continue;case 23:s.AddedBy=t.int32();continue;case 24:s.DnType=t.int32();continue;case 25:s.OpenLink=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Id"))throw oe.ProtocolError("missing required 'Id'",{instance:s});if(!Object.hasOwnProperty.call(s,"Action"))throw oe.ProtocolError("missing required 'Action'",{instance:s});return s},e})(),bs=R.ResponseAcknowledge=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).bool(t.Success),t.ErrorCode!=null&&Object.hasOwnProperty.call(t,"ErrorCode")&&i.uint32(16).int32(t.ErrorCode),t.Message!=null&&Object.hasOwnProperty.call(t,"Message")&&i.uint32(26).string(t.Message),t.ExceptionType!=null&&Object.hasOwnProperty.call(t,"ExceptionType")&&i.uint32(34).string(t.ExceptionType),t.ExceptionMessage!=null&&Object.hasOwnProperty.call(t,"ExceptionMessage")&&i.uint32(42).string(t.ExceptionMessage),t.ErrorType!=null&&Object.hasOwnProperty.call(t,"ErrorType")&&i.uint32(48).int32(t.ErrorType),t.Parameter!=null&&Object.hasOwnProperty.call(t,"Parameter")&&i.uint32(58).string(t.Parameter),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ResponseAcknowledge;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Success=t.bool();continue;case 2:s.ErrorCode=t.int32();continue;case 3:s.Message=t.string();continue;case 4:s.ExceptionType=t.string();continue;case 5:s.ExceptionMessage=t.string();continue;case 6:s.ErrorType=t.int32();continue;case 7:s.Parameter=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Success"))throw oe.ProtocolError("missing required 'Success'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:207,Acknowledge:this})},e.prototype.typeId=207,e.prototype.typeName="Acknowledge",e})(),Op=R.ChatRecipient=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.ExtNumber!=null&&Object.hasOwnProperty.call(t,"ExtNumber")&&i.uint32(10).string(t.ExtNumber),t.Name!=null&&Object.hasOwnProperty.call(t,"Name")&&i.uint32(18).string(t.Name),t.BridgeNumber!=null&&Object.hasOwnProperty.call(t,"BridgeNumber")&&i.uint32(26).string(t.BridgeNumber),t.Email!=null&&Object.hasOwnProperty.call(t,"Email")&&i.uint32(34).string(t.Email),t.Contact!=null&&Object.hasOwnProperty.call(t,"Contact")&&R.Contact.encode(t.Contact,i.uint32(42).fork(),r+1).ldelim(),t.IdRecipient!=null&&Object.hasOwnProperty.call(t,"IdRecipient")&&i.uint32(48).int32(t.IdRecipient),t.RecipientType!=null&&Object.hasOwnProperty.call(t,"RecipientType")&&i.uint32(56).int32(t.RecipientType),t.PhoneNumber!=null&&Object.hasOwnProperty.call(t,"PhoneNumber")&&i.uint32(66).string(t.PhoneNumber),t.IpAddress!=null&&Object.hasOwnProperty.call(t,"IpAddress")&&i.uint32(74).string(t.IpAddress),t.IsModerator!=null&&Object.hasOwnProperty.call(t,"IsModerator")&&i.uint32(80).bool(t.IsModerator),t.MemberGid!=null&&Object.hasOwnProperty.call(t,"MemberGid")&&i.uint32(90).string(t.MemberGid),t.UserData!=null&&Object.hasOwnProperty.call(t,"UserData")&&i.uint32(98).string(t.UserData),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ChatRecipient;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.ExtNumber=t.string();continue;case 2:s.Name=t.string();continue;case 3:s.BridgeNumber=t.string();continue;case 4:s.Email=t.string();continue;case 5:s.Contact=R.Contact.decode(t,t.uint32(),void 0,a+1,s.Contact);continue;case 6:s.IdRecipient=t.int32();continue;case 7:s.RecipientType=t.int32();continue;case 8:s.PhoneNumber=t.string();continue;case 9:s.IpAddress=t.string();continue;case 10:s.IsModerator=t.bool();continue;case 11:s.MemberGid=t.string();continue;case 12:s.UserData=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e})(),xp=R.ChatRecipientEx=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Recipient!=null&&Object.hasOwnProperty.call(t,"Recipient")&&R.ChatRecipient.encode(t.Recipient,i.uint32(10).fork(),r+1).ldelim(),t.IsAnonymousActive!=null&&Object.hasOwnProperty.call(t,"IsAnonymousActive")&&i.uint32(16).bool(t.IsAnonymousActive),t.IsRemoved!=null&&Object.hasOwnProperty.call(t,"IsRemoved")&&i.uint32(24).bool(t.IsRemoved),t.IsWhisperer!=null&&Object.hasOwnProperty.call(t,"IsWhisperer")&&i.uint32(32).bool(t.IsWhisperer),t.CanAddUsers!=null&&Object.hasOwnProperty.call(t,"CanAddUsers")&&i.uint32(40).bool(t.CanAddUsers),t.CanBeDeleted!=null&&Object.hasOwnProperty.call(t,"CanBeDeleted")&&i.uint32(48).bool(t.CanBeDeleted),t.Staus!=null&&Object.hasOwnProperty.call(t,"Staus")&&i.uint32(56).int32(t.Staus),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ChatRecipientEx;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Recipient=R.ChatRecipient.decode(t,t.uint32(),void 0,a+1,s.Recipient);continue;case 2:s.IsAnonymousActive=t.bool();continue;case 3:s.IsRemoved=t.bool();continue;case 4:s.IsWhisperer=t.bool();continue;case 5:s.CanAddUsers=t.bool();continue;case 6:s.CanBeDeleted=t.bool();continue;case 7:s.Staus=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e})(),JA=R.ChatRecipientRef=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.IdRecipient),t.Delivery!=null&&Object.hasOwnProperty.call(t,"Delivery")&&i.uint32(16).int32(t.Delivery),t.IsRead!=null&&Object.hasOwnProperty.call(t,"IsRead")&&i.uint32(24).bool(t.IsRead),t.IsSender!=null&&Object.hasOwnProperty.call(t,"IsSender")&&i.uint32(32).bool(t.IsSender),t.MemberGid!=null&&Object.hasOwnProperty.call(t,"MemberGid")&&i.uint32(42).string(t.MemberGid),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ChatRecipientRef;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.IdRecipient=t.int32();continue;case 2:s.Delivery=t.int32();continue;case 3:s.IsRead=t.bool();continue;case 4:s.IsSender=t.bool();continue;case 5:s.MemberGid=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"IdRecipient"))throw oe.ProtocolError("missing required 'IdRecipient'",{instance:s});return s},e})(),XA=R.ChatMessage=(()=>{function e(n){if(this.Recipients=[],n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.prototype.Recipients=oe.emptyArray,e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.Id),t.SenderNumber!=null&&Object.hasOwnProperty.call(t,"SenderNumber")&&i.uint32(18).string(t.SenderNumber),t.SenderName!=null&&Object.hasOwnProperty.call(t,"SenderName")&&i.uint32(26).string(t.SenderName),t.SenderBridgeNumber!=null&&Object.hasOwnProperty.call(t,"SenderBridgeNumber")&&i.uint32(34).string(t.SenderBridgeNumber),t.Recipient!=null&&Object.hasOwnProperty.call(t,"Recipient")&&R.ChatRecipient.encode(t.Recipient,i.uint32(42).fork(),r+1).ldelim(),t.Message!=null&&Object.hasOwnProperty.call(t,"Message")&&i.uint32(50).string(t.Message),t.Time!=null&&Object.hasOwnProperty.call(t,"Time")&&R.DateTime.encode(t.Time,i.uint32(58).fork(),r+1).ldelim(),t.IsNew!=null&&Object.hasOwnProperty.call(t,"IsNew")&&i.uint32(64).bool(t.IsNew),t.Party!=null&&Object.hasOwnProperty.call(t,"Party")&&i.uint32(74).string(t.Party),t.PartyNew!=null&&Object.hasOwnProperty.call(t,"PartyNew")&&i.uint32(82).string(t.PartyNew),t.File!=null&&Object.hasOwnProperty.call(t,"File")&&R.ChatFile.encode(t.File,i.uint32(90).fork(),r+1).ldelim(),t.IsAnonymousActive!=null&&Object.hasOwnProperty.call(t,"IsAnonymousActive")&&i.uint32(96).bool(t.IsAnonymousActive),t.IdConversation!=null&&Object.hasOwnProperty.call(t,"IdConversation")&&i.uint32(104).int32(t.IdConversation),t.Recipients!=null&&t.Recipients.length)for(let a=0;a<t.Recipients.length;++a)R.ChatRecipientRef.encode(t.Recipients[a],i.uint32(114).fork(),r+1).ldelim();if(t.MessageType!=null&&Object.hasOwnProperty.call(t,"MessageType")&&i.uint32(120).int32(t.MessageType),t.MsgGid!=null&&Object.hasOwnProperty.call(t,"MsgGid")&&i.uint32(130).string(t.MsgGid),t.CnvGid!=null&&Object.hasOwnProperty.call(t,"CnvGid")&&i.uint32(138).string(t.CnvGid),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ChatMessage;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Id=t.int32();continue;case 2:s.SenderNumber=t.string();continue;case 3:s.SenderName=t.string();continue;case 4:s.SenderBridgeNumber=t.string();continue;case 5:s.Recipient=R.ChatRecipient.decode(t,t.uint32(),void 0,a+1,s.Recipient);continue;case 6:s.Message=t.string();continue;case 7:s.Time=R.DateTime.decode(t,t.uint32(),void 0,a+1,s.Time);continue;case 8:s.IsNew=t.bool();continue;case 9:s.Party=t.string();continue;case 10:s.PartyNew=t.string();continue;case 11:s.File=R.ChatFile.decode(t,t.uint32(),void 0,a+1,s.File);continue;case 12:s.IsAnonymousActive=t.bool();continue;case 13:s.IdConversation=t.int32();continue;case 14:s.Recipients&&s.Recipients.length||(s.Recipients=[]),s.Recipients.push(R.ChatRecipientRef.decode(t,t.uint32(),void 0,a+1));continue;case 15:s.MessageType=t.int32();continue;case 16:s.MsgGid=t.string();continue;case 17:s.CnvGid=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Id"))throw oe.ProtocolError("missing required 'Id'",{instance:s});return s},e})(),ys=R.ChatFile=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.FileName!=null&&Object.hasOwnProperty.call(t,"FileName")&&i.uint32(10).string(t.FileName),t.FileLink!=null&&Object.hasOwnProperty.call(t,"FileLink")&&i.uint32(18).string(t.FileLink),t.FileState!=null&&Object.hasOwnProperty.call(t,"FileState")&&i.uint32(24).int32(t.FileState),t.Progress!=null&&Object.hasOwnProperty.call(t,"Progress")&&i.uint32(37).float(t.Progress),t.HasPreview!=null&&Object.hasOwnProperty.call(t,"HasPreview")&&i.uint32(40).bool(t.HasPreview),t.FileSize!=null&&Object.hasOwnProperty.call(t,"FileSize")&&i.uint32(48).uint64(t.FileSize),t.Width!=null&&Object.hasOwnProperty.call(t,"Width")&&i.uint32(56).int32(t.Width),t.Height!=null&&Object.hasOwnProperty.call(t,"Height")&&i.uint32(64).int32(t.Height),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ChatFile;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.FileName=t.string();continue;case 2:s.FileLink=t.string();continue;case 3:s.FileState=t.int32();continue;case 4:s.Progress=t.float();continue;case 5:s.HasPreview=t.bool();continue;case 6:s.FileSize=t.uint64();continue;case 7:s.Width=t.int32();continue;case 8:s.Height=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e})(),Np=R.NotificationChatFileProgress=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.Id),t.Party!=null&&Object.hasOwnProperty.call(t,"Party")&&i.uint32(18).string(t.Party),t.File!=null&&Object.hasOwnProperty.call(t,"File")&&R.ChatFile.encode(t.File,i.uint32(26).fork(),r+1).ldelim(),t.IdConversation!=null&&Object.hasOwnProperty.call(t,"IdConversation")&&i.uint32(32).int32(t.IdConversation),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.NotificationChatFileProgress;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Id=t.int32();continue;case 2:s.Party=t.string();continue;case 3:s.File=R.ChatFile.decode(t,t.uint32(),void 0,a+1,s.File);continue;case 4:s.IdConversation=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Id"))throw oe.ProtocolError("missing required 'Id'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:232,ChatFileProgress:this})},e.prototype.typeId=232,e.prototype.typeName="ChatFileProgress",e})(),ew=R.RequestSendChatMessage=(()=>{function e(n){if(this.Recipients=[],n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.prototype.Recipients=oe.emptyArray,e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Message!=null&&Object.hasOwnProperty.call(t,"Message")&&i.uint32(10).string(t.Message),t.Recipients!=null&&t.Recipients.length)for(let a=0;a<t.Recipients.length;++a)R.ChatRecipient.encode(t.Recipients[a],i.uint32(18).fork(),r+1).ldelim();if(t.SipFrom!=null&&Object.hasOwnProperty.call(t,"SipFrom")&&i.uint32(26).string(t.SipFrom),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestSendChatMessage;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Message=t.string();continue;case 2:s.Recipients&&s.Recipients.length||(s.Recipients=[]),s.Recipients.push(R.ChatRecipient.decode(t,t.uint32(),void 0,a+1));continue;case 3:s.SipFrom=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:110,SendChatMessage:this})},e.prototype.typeId=110,e.prototype.typeName="SendChatMessage",e})(),Rp=R.RequestSendChatMessageToConversation=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.IdConversation),t.Message!=null&&Object.hasOwnProperty.call(t,"Message")&&i.uint32(18).string(t.Message),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestSendChatMessageToConversation;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.IdConversation=t.int32();continue;case 2:s.Message=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"IdConversation"))throw oe.ProtocolError("missing required 'IdConversation'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:190,SendMessageToConversation:this})},e.prototype.typeId=190,e.prototype.typeName="SendMessageToConversation",e})(),Lp=R.RequestSendChatFile=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(10).string(t.Name),t.Party!=null&&Object.hasOwnProperty.call(t,"Party")&&i.uint32(18).string(t.Party),t.IdConversation!=null&&Object.hasOwnProperty.call(t,"IdConversation")&&i.uint32(24).int32(t.IdConversation),t.IdSender!=null&&Object.hasOwnProperty.call(t,"IdSender")&&i.uint32(32).int32(t.IdSender),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestSendChatFile;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Name=t.string();continue;case 2:s.Party=t.string();continue;case 3:s.IdConversation=t.int32();continue;case 4:s.IdSender=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Name"))throw oe.ProtocolError("missing required 'Name'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:179,SendChatFile:this})},e.prototype.typeId=179,e.prototype.typeName="SendChatFile",e})(),Pp=R.RequestGetMyLastMessages=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Party!=null&&Object.hasOwnProperty.call(t,"Party")&&i.uint32(10).string(t.Party),t.Count!=null&&Object.hasOwnProperty.call(t,"Count")&&i.uint32(16).int32(t.Count),t.StartFromId!=null&&Object.hasOwnProperty.call(t,"StartFromId")&&i.uint32(24).int32(t.StartFromId),t.IdConversation!=null&&Object.hasOwnProperty.call(t,"IdConversation")&&i.uint32(32).int32(t.IdConversation),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestGetMyLastMessages;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Party=t.string();continue;case 2:s.Count=t.int32();continue;case 3:s.StartFromId=t.int32();continue;case 4:s.IdConversation=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:162,GetMyLastMessages:this})},e.prototype.typeId=162,e.prototype.typeName="GetMyLastMessages",e})(),Yr=R.ResponseMyMessages=(()=>{function e(n){if(this.Messages=[],n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.prototype.Messages=oe.emptyArray,e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Messages!=null&&t.Messages.length)for(let a=0;a<t.Messages.length;++a)R.ChatMessage.encode(t.Messages[a],i.uint32(10).fork(),r+1).ldelim();if(t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ResponseMyMessages;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;if((u>>>=3)===1){s.Messages&&s.Messages.length||(s.Messages=[]),s.Messages.push(R.ChatMessage.decode(t,t.uint32(),void 0,a+1));continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:209,MyChatMessages:this})},e.prototype.typeId=209,e.prototype.typeName="MyChatMessages",e})(),Dp=R.RequestSetChatReceived=(()=>{function e(n){if(this.Items=[],n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.prototype.Items=oe.emptyArray,e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Items!=null&&t.Items.length)for(let a=0;a<t.Items.length;++a)i.uint32(8).int32(t.Items[a]);if(t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestSetChatReceived;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:if(f===2){s.Items&&s.Items.length||(s.Items=[]);let h=t.uint32()+t.pos;for(;t.pos<h;)s.Items.push(t.int32());continue}s.Items&&s.Items.length||(s.Items=[]),s.Items.push(t.int32());continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:112,MessagesReceived:this})},e.prototype.typeId=112,e.prototype.typeName="MessagesReceived",e})(),Hc=R.ChatPartyInfo=(()=>{function e(n){if(this.Recipients=[],n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.prototype.Recipients=oe.emptyArray,e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Party!=null&&Object.hasOwnProperty.call(t,"Party")&&i.uint32(10).string(t.Party),t.Recipients!=null&&t.Recipients.length)for(let a=0;a<t.Recipients.length;++a)R.ChatRecipientEx.encode(t.Recipients[a],i.uint32(18).fork(),r+1).ldelim();if(t.IsExternal!=null&&Object.hasOwnProperty.call(t,"IsExternal")&&i.uint32(24).bool(t.IsExternal),t.IdConversation!=null&&Object.hasOwnProperty.call(t,"IdConversation")&&i.uint32(32).int32(t.IdConversation),t.IsArchived!=null&&Object.hasOwnProperty.call(t,"IsArchived")&&i.uint32(40).bool(t.IsArchived),t.PrivateName!=null&&Object.hasOwnProperty.call(t,"PrivateName")&&i.uint32(50).string(t.PrivateName),t.QueueNo!=null&&Object.hasOwnProperty.call(t,"QueueNo")&&i.uint32(58).string(t.QueueNo),t.QueueName!=null&&Object.hasOwnProperty.call(t,"QueueName")&&i.uint32(66).string(t.QueueName),t.PublicName!=null&&Object.hasOwnProperty.call(t,"PublicName")&&i.uint32(74).string(t.PublicName),t.TakenBy!=null&&Object.hasOwnProperty.call(t,"TakenBy")&&R.ChatRecipient.encode(t.TakenBy,i.uint32(82).fork(),r+1).ldelim(),t.NumberOfMessages!=null&&Object.hasOwnProperty.call(t,"NumberOfMessages")&&i.uint32(88).int32(t.NumberOfMessages),t.CloseReason!=null&&Object.hasOwnProperty.call(t,"CloseReason")&&i.uint32(96).int32(t.CloseReason),t.CnvGid!=null&&Object.hasOwnProperty.call(t,"CnvGid")&&i.uint32(106).string(t.CnvGid),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ChatPartyInfo;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Party=t.string();continue;case 2:s.Recipients&&s.Recipients.length||(s.Recipients=[]),s.Recipients.push(R.ChatRecipientEx.decode(t,t.uint32(),void 0,a+1));continue;case 3:s.IsExternal=t.bool();continue;case 4:s.IdConversation=t.int32();continue;case 5:s.IsArchived=t.bool();continue;case 6:s.PrivateName=t.string();continue;case 7:s.QueueNo=t.string();continue;case 8:s.QueueName=t.string();continue;case 9:s.PublicName=t.string();continue;case 10:s.TakenBy=R.ChatRecipient.decode(t,t.uint32(),void 0,a+1,s.TakenBy);continue;case 11:s.NumberOfMessages=t.int32();continue;case 12:s.CloseReason=t.int32();continue;case 13:s.CnvGid=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e})(),Fp=R.ResponseConversationInfo=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Conversation!=null&&Object.hasOwnProperty.call(t,"Conversation")&&R.ChatPartyInfo.encode(t.Conversation,i.uint32(10).fork(),r+1).ldelim(),t.IsNew!=null&&Object.hasOwnProperty.call(t,"IsNew")&&i.uint32(16).bool(t.IsNew),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ResponseConversationInfo;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Conversation=R.ChatPartyInfo.decode(t,t.uint32(),void 0,a+1,s.Conversation);continue;case 2:s.IsNew=t.bool();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:236,ConversationInfo:this})},e.prototype.typeId=236,e.prototype.typeName="ConversationInfo",e})(),Bp=R.NotificationChatTransferred=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(R.ChatPartyInfo.encode(t.PartyInfo,i.uint32(10).fork(),r+1).ldelim(),t.TransferredBy!=null&&Object.hasOwnProperty.call(t,"TransferredBy")&&R.ChatRecipient.encode(t.TransferredBy,i.uint32(18).fork(),r+1).ldelim(),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.NotificationChatTransferred;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.PartyInfo=R.ChatPartyInfo.decode(t,t.uint32(),void 0,a+1,s.PartyInfo);continue;case 2:s.TransferredBy=R.ChatRecipient.decode(t,t.uint32(),void 0,a+1,s.TransferredBy);continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"PartyInfo"))throw oe.ProtocolError("missing required 'PartyInfo'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:237,ChatTransferred:this})},e.prototype.typeId=237,e.prototype.typeName="ChatTransferred",e})(),tw=R.NotificationConversationRemoved=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.IdConversation),t.TakenBy!=null&&Object.hasOwnProperty.call(t,"TakenBy")&&R.ChatRecipient.encode(t.TakenBy,i.uint32(18).fork(),r+1).ldelim(),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.NotificationConversationRemoved;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.IdConversation=t.int32();continue;case 2:s.TakenBy=R.ChatRecipient.decode(t,t.uint32(),void 0,a+1,s.TakenBy);continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"IdConversation"))throw oe.ProtocolError("missing required 'IdConversation'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:235,ConversationRemoved:this})},e.prototype.typeId=235,e.prototype.typeName="ConversationRemoved",e})(),Wc=R.RequestCloseConversation=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.IdConversation!=null&&Object.hasOwnProperty.call(t,"IdConversation")&&i.uint32(8).int32(t.IdConversation),t.IsHandled!=null&&Object.hasOwnProperty.call(t,"IsHandled")&&i.uint32(16).bool(t.IsHandled),t.CloseReason!=null&&Object.hasOwnProperty.call(t,"CloseReason")&&i.uint32(24).int32(t.CloseReason),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestCloseConversation;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.IdConversation=t.int32();continue;case 2:s.IsHandled=t.bool();continue;case 3:s.CloseReason=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:198,CloseConversation:this})},e.prototype.typeId=198,e.prototype.typeName="CloseConversation",e})(),Oi=R.MyWebRTCEndpoint=(()=>{function e(n){if(this.Items=[],n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.prototype.Items=oe.emptyArray,e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.Action),t.Items!=null&&t.Items.length)for(let a=0;a<t.Items.length;++a)R.WebRTCCall.encode(t.Items[a],i.uint32(18).fork(),r+1).ldelim();if(t.isWebRTCEnpointRegistered!=null&&Object.hasOwnProperty.call(t,"isWebRTCEnpointRegistered")&&i.uint32(24).bool(t.isWebRTCEnpointRegistered),t.DeviceContact!=null&&Object.hasOwnProperty.call(t,"DeviceContact")&&i.uint32(34).string(t.DeviceContact),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.MyWebRTCEndpoint;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Action=t.int32();continue;case 2:s.Items&&s.Items.length||(s.Items=[]),s.Items.push(R.WebRTCCall.decode(t,t.uint32(),void 0,a+1));continue;case 3:s.isWebRTCEnpointRegistered=t.bool();continue;case 4:s.DeviceContact=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Action"))throw oe.ProtocolError("missing required 'Action'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:227,webRTCEndpoint:this})},e.prototype.typeId=227,e.prototype.typeName="webRTCEndpoint",e})(),ut=R.WebRTCEndpointSDPState=(()=>{const e={},n=Object.create(e);return n[e[0]="WRTCTerminate"]=0,n[e[1]="WRTCOffer"]=1,n[e[2]="WRTCAnswer"]=2,n[e[3]="WRTCConfirm"]=3,n[e[4]="WRTCRequestForOffer"]=4,n[e[5]="WRTCReject"]=5,n[e[6]="WRTCProcessingOffer"]=6,n[e[7]="WRTCPreparingOffer"]=7,n[e[8]="WRTCAnswerProvided"]=8,n[e[9]="WRTCConfirmed"]=9,n[e[10]="WRTCInitial"]=10,n})(),Gr=R.WebRTCHoldState=(()=>{const e={},n=Object.create(e);return n[e[0]="WebRTCHoldState_NOHOLD"]=0,n[e[1]="WebRTCHoldState_HELD"]=1,n[e[2]="WebRTCHoldState_HOLD"]=2,n[e[3]="WebRTCHoldState_BOTH"]=3,n})(),Yc=R.WebRTCCall=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.Action),i.uint32(16).int32(t.Id),i.uint32(24).int32(t.sdpType),t.otherPartyDisplayname!=null&&Object.hasOwnProperty.call(t,"otherPartyDisplayname")&&i.uint32(34).string(t.otherPartyDisplayname),t.otherPartyNumber!=null&&Object.hasOwnProperty.call(t,"otherPartyNumber")&&i.uint32(42).string(t.otherPartyNumber),t.transactionId!=null&&Object.hasOwnProperty.call(t,"transactionId")&&i.uint32(48).int32(t.transactionId),t.sdp!=null&&Object.hasOwnProperty.call(t,"sdp")&&i.uint32(58).string(t.sdp),t.SIPDialogID!=null&&Object.hasOwnProperty.call(t,"SIPDialogID")&&i.uint32(66).string(t.SIPDialogID),t.holdState!=null&&Object.hasOwnProperty.call(t,"holdState")&&i.uint32(72).int32(t.holdState),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.WebRTCCall;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Action=t.int32();continue;case 2:s.Id=t.int32();continue;case 3:s.sdpType=t.int32();continue;case 4:s.otherPartyDisplayname=t.string();continue;case 5:s.otherPartyNumber=t.string();continue;case 6:s.transactionId=t.int32();continue;case 7:s.sdp=t.string();continue;case 8:s.SIPDialogID=t.string();continue;case 9:s.holdState=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Action"))throw oe.ProtocolError("missing required 'Action'",{instance:s});if(!Object.hasOwnProperty.call(s,"Id"))throw oe.ProtocolError("missing required 'Id'",{instance:s});if(!Object.hasOwnProperty.call(s,"sdpType"))throw oe.ProtocolError("missing required 'sdpType'",{instance:s});return s},e})(),Gc=R.RequestWebRTCChangeSDPState=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.Id),i.uint32(16).int32(t.sdpType),t.transactionId!=null&&Object.hasOwnProperty.call(t,"transactionId")&&i.uint32(24).int32(t.transactionId),t.sdp!=null&&Object.hasOwnProperty.call(t,"sdp")&&i.uint32(34).string(t.sdp),t.destinationNumber!=null&&Object.hasOwnProperty.call(t,"destinationNumber")&&i.uint32(42).string(t.destinationNumber),t.CallerDisplayName!=null&&Object.hasOwnProperty.call(t,"CallerDisplayName")&&i.uint32(50).string(t.CallerDisplayName),t.CallerID!=null&&Object.hasOwnProperty.call(t,"CallerID")&&i.uint32(58).string(t.CallerID),t.replaceConnectionId!=null&&Object.hasOwnProperty.call(t,"replaceConnectionId")&&i.uint32(64).int32(t.replaceConnectionId),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestWebRTCChangeSDPState;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Id=t.int32();continue;case 2:s.sdpType=t.int32();continue;case 3:s.transactionId=t.int32();continue;case 4:s.sdp=t.string();continue;case 5:s.destinationNumber=t.string();continue;case 6:s.CallerDisplayName=t.string();continue;case 7:s.CallerID=t.string();continue;case 8:s.replaceConnectionId=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Id"))throw oe.ProtocolError("missing required 'Id'",{instance:s});if(!Object.hasOwnProperty.call(s,"sdpType"))throw oe.ProtocolError("missing required 'sdpType'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:164,ChangeSDPState:this})},e.prototype.typeId=164,e.prototype.typeName="ChangeSDPState",e})(),nw=R.ResponseWebRTCChangeSDPState=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).bool(t.Success),t.Message!=null&&Object.hasOwnProperty.call(t,"Message")&&i.uint32(18).string(t.Message),t.CallId!=null&&Object.hasOwnProperty.call(t,"CallId")&&i.uint32(24).int32(t.CallId),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ResponseWebRTCChangeSDPState;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Success=t.bool();continue;case 2:s.Message=t.string();continue;case 3:s.CallId=t.int32();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"Success"))throw oe.ProtocolError("missing required 'Success'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:228,ChangeSDPStateResponse:this})},e.prototype.typeId=228,e.prototype.typeName="ChangeSDPStateResponse",e})(),Up=R.RequestRegisterWebRTCEndpoint=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).bool(t.register),t.NeedsRegistration!=null&&Object.hasOwnProperty.call(t,"NeedsRegistration")&&i.uint32(16).bool(t.NeedsRegistration),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.RequestRegisterWebRTCEndpoint;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.register=t.bool();continue;case 2:s.NeedsRegistration=t.bool();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"register"))throw oe.ProtocolError("missing required 'register'",{instance:s});return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:163,registerWebRTC:this})},e.prototype.typeId=163,e.prototype.typeName="registerWebRTC",e})(),Wa=R.ChatTyping=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Party!=null&&Object.hasOwnProperty.call(t,"Party")&&i.uint32(10).string(t.Party),t.User!=null&&Object.hasOwnProperty.call(t,"User")&&i.uint32(18).string(t.User),t.IdConversation!=null&&Object.hasOwnProperty.call(t,"IdConversation")&&i.uint32(24).int32(t.IdConversation),t.IdRecipient!=null&&Object.hasOwnProperty.call(t,"IdRecipient")&&i.uint32(32).int32(t.IdRecipient),t.CnvGid!=null&&Object.hasOwnProperty.call(t,"CnvGid")&&i.uint32(42).string(t.CnvGid),t.MemberGid!=null&&Object.hasOwnProperty.call(t,"MemberGid")&&i.uint32(50).string(t.MemberGid),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.ChatTyping;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.Party=t.string();continue;case 2:s.User=t.string();continue;case 3:s.IdConversation=t.int32();continue;case 4:s.IdRecipient=t.int32();continue;case 5:s.CnvGid=t.string();continue;case 6:s.MemberGid=t.string();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:180,UserTypingChat:this})},e.prototype.typeId=180,e.prototype.typeName="UserTypingChat",e})(),Qc=R.NotificationC2CState=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(t.Connected!=null&&Object.hasOwnProperty.call(t,"Connected")&&i.uint32(8).bool(t.Connected),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.NotificationC2CState;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;if((u>>>=3)===1){s.Connected=t.bool();continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");return s},e.prototype.toGenericMessage=function(){return new R.GenericMessage({MessageId:233,C2cState:this})},e.prototype.typeId=233,e.prototype.typeName="C2cState",e})(),jp=R.GenericMessage=(()=>{function e(n){if(n)for(let t=Object.keys(n),i=0;i<t.length;++i)n[t[i]]!=null&&t[i]!=="__proto__"&&(this[t[i]]=n[t[i]])}return e.encode=function(t,i,r){if(i||(i=je.create()),r===void 0&&(r=0),r>oe.recursionLimit)throw Error("max depth exceeded");if(i.uint32(8).int32(t.MessageId),t.LoginRequest!=null&&Object.hasOwnProperty.call(t,"LoginRequest")&&R.Login.encode(t.LoginRequest,i.uint32(802).fork(),r+1).ldelim(),t.LogoutRequest!=null&&Object.hasOwnProperty.call(t,"LogoutRequest")&&R.Logout.encode(t.LogoutRequest,i.uint32(810).fork(),r+1).ldelim(),t.GetMyInfo!=null&&Object.hasOwnProperty.call(t,"GetMyInfo")&&R.RequestMyInfo.encode(t.GetMyInfo,i.uint32(818).fork(),r+1).ldelim(),t.SendChatMessage!=null&&Object.hasOwnProperty.call(t,"SendChatMessage")&&R.RequestSendChatMessage.encode(t.SendChatMessage,i.uint32(882).fork(),r+1).ldelim(),t.MessagesReceived!=null&&Object.hasOwnProperty.call(t,"MessagesReceived")&&R.RequestSetChatReceived.encode(t.MessagesReceived,i.uint32(898).fork(),r+1).ldelim(),t.GetMyLastMessages!=null&&Object.hasOwnProperty.call(t,"GetMyLastMessages")&&R.RequestGetMyLastMessages.encode(t.GetMyLastMessages,i.uint32(1298).fork(),r+1).ldelim(),t.registerWebRTC!=null&&Object.hasOwnProperty.call(t,"registerWebRTC")&&R.RequestRegisterWebRTCEndpoint.encode(t.registerWebRTC,i.uint32(1306).fork(),r+1).ldelim(),t.ChangeSDPState!=null&&Object.hasOwnProperty.call(t,"ChangeSDPState")&&R.RequestWebRTCChangeSDPState.encode(t.ChangeSDPState,i.uint32(1314).fork(),r+1).ldelim(),t.SendChatFile!=null&&Object.hasOwnProperty.call(t,"SendChatFile")&&R.RequestSendChatFile.encode(t.SendChatFile,i.uint32(1434).fork(),r+1).ldelim(),t.UserTypingChat!=null&&Object.hasOwnProperty.call(t,"UserTypingChat")&&R.ChatTyping.encode(t.UserTypingChat,i.uint32(1442).fork(),r+1).ldelim(),t.SendMessageToConversation!=null&&Object.hasOwnProperty.call(t,"SendMessageToConversation")&&R.RequestSendChatMessageToConversation.encode(t.SendMessageToConversation,i.uint32(1522).fork(),r+1).ldelim(),t.CloseConversation!=null&&Object.hasOwnProperty.call(t,"CloseConversation")&&R.RequestCloseConversation.encode(t.CloseConversation,i.uint32(1586).fork(),r+1).ldelim(),t.LoginResponse!=null&&Object.hasOwnProperty.call(t,"LoginResponse")&&R.LoginInfo.encode(t.LoginResponse,i.uint32(1602).fork(),r+1).ldelim(),t.Acknowledge!=null&&Object.hasOwnProperty.call(t,"Acknowledge")&&R.ResponseAcknowledge.encode(t.Acknowledge,i.uint32(1658).fork(),r+1).ldelim(),t.MyChatMessages!=null&&Object.hasOwnProperty.call(t,"MyChatMessages")&&R.ResponseMyMessages.encode(t.MyChatMessages,i.uint32(1674).fork(),r+1).ldelim(),t.webRTCEndpoint!=null&&Object.hasOwnProperty.call(t,"webRTCEndpoint")&&R.MyWebRTCEndpoint.encode(t.webRTCEndpoint,i.uint32(1818).fork(),r+1).ldelim(),t.ChangeSDPStateResponse!=null&&Object.hasOwnProperty.call(t,"ChangeSDPStateResponse")&&R.ResponseWebRTCChangeSDPState.encode(t.ChangeSDPStateResponse,i.uint32(1826).fork(),r+1).ldelim(),t.ChatFileProgress!=null&&Object.hasOwnProperty.call(t,"ChatFileProgress")&&R.NotificationChatFileProgress.encode(t.ChatFileProgress,i.uint32(1858).fork(),r+1).ldelim(),t.C2cState!=null&&Object.hasOwnProperty.call(t,"C2cState")&&R.NotificationC2CState.encode(t.C2cState,i.uint32(1866).fork(),r+1).ldelim(),t.ConversationRemoved!=null&&Object.hasOwnProperty.call(t,"ConversationRemoved")&&R.NotificationConversationRemoved.encode(t.ConversationRemoved,i.uint32(1882).fork(),r+1).ldelim(),t.ConversationInfo!=null&&Object.hasOwnProperty.call(t,"ConversationInfo")&&R.ResponseConversationInfo.encode(t.ConversationInfo,i.uint32(1890).fork(),r+1).ldelim(),t.ChatTransferred!=null&&Object.hasOwnProperty.call(t,"ChatTransferred")&&R.NotificationChatTransferred.encode(t.ChatTransferred,i.uint32(1898).fork(),r+1).ldelim(),t.$unknowns!=null&&Object.hasOwnProperty.call(t,"$unknowns"))for(let a=0;a<t.$unknowns.length;++a)i.raw(t.$unknowns[a]);return i},e.decode=function(t,i,r,a,o){if(t instanceof ee||(t=ee.create(t)),a===void 0&&(a=0),a>ee.recursionLimit)throw Error("max depth exceeded");let l=i===void 0?t.len:t.pos+i,s=o||new R.GenericMessage;for(;t.pos<l;){let c=t.pos,u=t.tag();if(u===r){r=void 0;break}let f=u&7;switch(u>>>=3){case 1:s.MessageId=t.int32();continue;case 100:s.LoginRequest=R.Login.decode(t,t.uint32(),void 0,a+1,s.LoginRequest);continue;case 101:s.LogoutRequest=R.Logout.decode(t,t.uint32(),void 0,a+1,s.LogoutRequest);continue;case 102:s.GetMyInfo=R.RequestMyInfo.decode(t,t.uint32(),void 0,a+1,s.GetMyInfo);continue;case 110:s.SendChatMessage=R.RequestSendChatMessage.decode(t,t.uint32(),void 0,a+1,s.SendChatMessage);continue;case 112:s.MessagesReceived=R.RequestSetChatReceived.decode(t,t.uint32(),void 0,a+1,s.MessagesReceived);continue;case 162:s.GetMyLastMessages=R.RequestGetMyLastMessages.decode(t,t.uint32(),void 0,a+1,s.GetMyLastMessages);continue;case 163:s.registerWebRTC=R.RequestRegisterWebRTCEndpoint.decode(t,t.uint32(),void 0,a+1,s.registerWebRTC);continue;case 164:s.ChangeSDPState=R.RequestWebRTCChangeSDPState.decode(t,t.uint32(),void 0,a+1,s.ChangeSDPState);continue;case 179:s.SendChatFile=R.RequestSendChatFile.decode(t,t.uint32(),void 0,a+1,s.SendChatFile);continue;case 180:s.UserTypingChat=R.ChatTyping.decode(t,t.uint32(),void 0,a+1,s.UserTypingChat);continue;case 190:s.SendMessageToConversation=R.RequestSendChatMessageToConversation.decode(t,t.uint32(),void 0,a+1,s.SendMessageToConversation);continue;case 198:s.CloseConversation=R.RequestCloseConversation.decode(t,t.uint32(),void 0,a+1,s.CloseConversation);continue;case 200:s.LoginResponse=R.LoginInfo.decode(t,t.uint32(),void 0,a+1,s.LoginResponse);continue;case 207:s.Acknowledge=R.ResponseAcknowledge.decode(t,t.uint32(),void 0,a+1,s.Acknowledge);continue;case 209:s.MyChatMessages=R.ResponseMyMessages.decode(t,t.uint32(),void 0,a+1,s.MyChatMessages);continue;case 227:s.webRTCEndpoint=R.MyWebRTCEndpoint.decode(t,t.uint32(),void 0,a+1,s.webRTCEndpoint);continue;case 228:s.ChangeSDPStateResponse=R.ResponseWebRTCChangeSDPState.decode(t,t.uint32(),void 0,a+1,s.ChangeSDPStateResponse);continue;case 232:s.ChatFileProgress=R.NotificationChatFileProgress.decode(t,t.uint32(),void 0,a+1,s.ChatFileProgress);continue;case 233:s.C2cState=R.NotificationC2CState.decode(t,t.uint32(),void 0,a+1,s.C2cState);continue;case 235:s.ConversationRemoved=R.NotificationConversationRemoved.decode(t,t.uint32(),void 0,a+1,s.ConversationRemoved);continue;case 236:s.ConversationInfo=R.ResponseConversationInfo.decode(t,t.uint32(),void 0,a+1,s.ConversationInfo);continue;case 237:s.ChatTransferred=R.NotificationChatTransferred.decode(t,t.uint32(),void 0,a+1,s.ChatTransferred);continue}t.skipType(f,a,u),t.discardUnknown||(oe.makeProp(s,"$unknowns",!1),(s.$unknowns||(s.$unknowns=[])).push(t.raw(c,t.pos)))}if(r!==void 0)throw Error("missing end group");if(!Object.hasOwnProperty.call(s,"MessageId"))throw oe.ProtocolError("missing required 'MessageId'",{instance:s});return s},e.typeMap={100:GA,101:KA,102:kp,110:ew,112:Dp,162:Pp,163:Up,164:Gc,179:Lp,180:Wa,190:Rp,198:Wc,200:QA,207:bs,209:Yr,227:Oi,228:nw,232:Np,233:Qc,235:tw,236:Fp,237:Bp},e})(),qp=class{sessionState;error;chatConversationId=-1;isOnline=new qr(!1);endpoint="";fileEndpoint="";messagesSubject$=new Oe;messages$=this.messagesSubject$.asObservable();notificationChannelEndpoint="";pbxEndpoint="";serverProvideSystemMessages=!1;supportsWebRTC=!1;webRTCEndpoint=new Oi;conversation$=new ci(1);webRTCEndpoint$=new ci(1);notify(e){this.messagesSubject$.next(e)}fileEndPoint(e){return""}get(e){return ot(()=>{const n=new Error(this.error);return n.name="Empty Session",n})}getSessionUniqueCode(){return-1}onWebRtcEndpoint(e){}sessionId="";constructor(e,n){this.sessionState=e,this.error=n}},$p=()=>new qp(ui.Idle,"Can't send request to idle session"),iw=e=>new qp(ui.Error,e);function rw(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}var As=typeof window<"u",fi=(e,n=!1)=>n?Symbol.for(e):Symbol(e),aw=(e,n,t)=>ow({l:e,k:n,s:t}),ow=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),pt=e=>typeof e=="number"&&isFinite(e),zp=e=>Zc(e)==="[object Date]",Qr=e=>Zc(e)==="[object RegExp]",ws=e=>Le(e)&&Object.keys(e).length===0,gt=Object.assign,sw=Object.create,Ge=(e=null)=>sw(e),Vp,rr=()=>Vp||(Vp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ge());function Hp(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function lw(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var cw=/^\s*javascript\s*(?::|&#0*58;?|&#x0*3a;?|&colon;?)/i,uw=/^(?:href|src|action|formaction)$/i;function Kc(e){return cw.test(e)}function fw(e){const n=/url\s*\(/gi;let t="",i=0,r;for(;(r=n.exec(e))!==null;){const a=r.index,o=n.lastIndex-1;let l=o+1,s=1,c=null;for(;l<e.length;l++){const h=e[l];if(c){h===c&&(c=null);continue}if(h==='"'||h==="'")c=h;else if(h==="(")s++;else if(h===")"&&(s--,s===0))break}if(s!==0)break;const u=e.slice(o+1,l).trim(),f=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;t+=e.slice(i,a),t+=Kc(f)?"url(about:blank)":e.slice(a,l+1),i=l+1}return t+e.slice(i)}function Wp(e,n){return uw.test(e)&&Kc(n)?"about:blank":lw(e.toLowerCase()==="style"?fw(n):n)}function dw(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(n,t,i)=>`${t}="${Wp(t,i)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(n,t,i)=>`${t}='${Wp(t,i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),e=e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi,(n,t,i)=>Kc(i)?`${t}about:blank`:n),e}var hw=Object.prototype.hasOwnProperty;function bn(e,n){return hw.call(e,n)}var st=Array.isArray,nt=e=>typeof e=="function",fe=e=>typeof e=="string",qe=e=>typeof e=="boolean",$e=e=>e!==null&&typeof e=="object",pw=e=>$e(e)&&nt(e.then)&&nt(e.catch),Yp=Object.prototype.toString,Zc=e=>Yp.call(e),Le=e=>Zc(e)==="[object Object]",gw=e=>e==null?"":st(e)||Le(e)&&e.toString===Yp?JSON.stringify(e,null,2):String(e);function Jc(e,n=""){return e.reduce((t,i,r)=>r===0?t+i:t+n+i,"")}var _s=e=>!$e(e)||st(e);function Cs(e,n){if(_s(e)||_s(n))throw new Error("Invalid value");const t=[{src:e,des:n}];for(;t.length;){const{src:i,des:r}=t.pop();Object.keys(i).forEach(a=>{a!=="__proto__"&&($e(i[a])&&!$e(r[a])&&(r[a]=Array.isArray(i[a])?[]:Ge()),_s(r[a])||_s(i[a])?r[a]=i[a]:t.push({src:i[a],des:r[a]}))})}}function mw(e,n,t){return{line:e,column:n,offset:t}}function Xc(e,n,t){const i={start:e,end:n};return t!=null&&(i.source=t),i}var we={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},nx={[we.EXPECTED_TOKEN]:"Expected token: '{0}'",[we.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[we.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[we.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[we.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[we.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[we.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[we.EMPTY_PLACEHOLDER]:"Empty placeholder",[we.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[we.INVALID_LINKED_FORMAT]:"Invalid linked format",[we.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[we.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[we.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[we.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[we.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[we.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Es(e,n,t={}){const{domain:i,messages:r,args:a}=t,o=new SyntaxError(String(e));return o.code=e,n&&(o.location=n),o.domain=i,o}function vw(e){throw e}var qn=" ",bw="\r",xt=`
`,yw="\u2028",Aw="\u2029";function ww(e){const n=e;let t=0,i=1,r=1,a=0;const o=T=>n[T]===bw&&n[T+1]===xt,l=T=>n[T]===xt,s=T=>n[T]===Aw,c=T=>n[T]===yw,u=T=>o(T)||l(T)||s(T)||c(T),f=()=>t,h=()=>i,p=()=>r,d=()=>a,g=T=>o(T)||s(T)||c(T)?xt:n[T],b=()=>g(t),v=()=>g(t+a);function C(){return a=0,u(t)&&(i++,r=0),o(t)&&t++,t++,r++,n[t]}function y(){return o(t+a)&&a++,a++,n[t+a]}function m(){t=0,i=1,r=1,a=0}function w(T=0){a=T}function I(){const T=t+a;for(;T!==t;)C();a=0}return{index:f,line:h,column:p,peekOffset:d,charAt:g,currentChar:b,currentPeek:v,next:C,peek:y,reset:m,resetPeek:w,skipToPeek:I}}var xi=void 0,_w=".",Gp="'",Cw="tokenizer";function Ew(e,n={}){const t=n.location!==!1,i=ww(e),r=()=>i.index(),a=()=>mw(i.line(),i.column(),i.index()),o=a(),l=r(),s={currentType:13,offset:l,startLoc:o,endLoc:o,lastType:13,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:u}=n;function f(_,S,N,...U){const W=c();S.column+=N,S.offset+=N,u&&u(Es(_,t?Xc(W.startLoc,S):null,{domain:Cw,args:U}))}function h(_,S,N){_.endLoc=a(),_.currentType=S;const U={type:S};return t&&(U.loc=Xc(_.startLoc,_.endLoc)),N!=null&&(U.value=N),U}const p=_=>h(_,13);function d(_,S){return _.currentChar()===S?(_.next(),S):(f(we.EXPECTED_TOKEN,a(),0,S),"")}function g(_){let S="";for(;_.currentPeek()===qn||_.currentPeek()===xt;)S+=_.currentPeek(),_.peek();return S}function b(_){const S=g(_);return _.skipToPeek(),S}function v(_){if(_===xi)return!1;const S=_.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S===95}function C(_){if(_===xi)return!1;const S=_.charCodeAt(0);return S>=48&&S<=57}function y(_,S){const{currentType:N}=S;if(N!==2)return!1;g(_);const U=v(_.currentPeek());return _.resetPeek(),U}function m(_,S){const{currentType:N}=S;if(N!==2)return!1;g(_);const U=C(_.currentPeek()==="-"?_.peek():_.currentPeek());return _.resetPeek(),U}function w(_,S){const{currentType:N}=S;if(N!==2)return!1;g(_);const U=_.currentPeek()===Gp;return _.resetPeek(),U}function I(_,S){const{currentType:N}=S;if(N!==7)return!1;g(_);const U=_.currentPeek()===".";return _.resetPeek(),U}function T(_,S){const{currentType:N}=S;if(N!==8)return!1;g(_);const U=v(_.currentPeek());return _.resetPeek(),U}function G(_,S){const{currentType:N}=S;if(!(N===7||N===11))return!1;g(_);const U=_.currentPeek()===":";return _.resetPeek(),U}function $(_,S){const{currentType:N}=S;if(N!==9)return!1;const U=()=>{const te=_.currentPeek();return te==="{"?v(_.peek()):te==="@"||te==="|"||te===":"||te==="."||te===qn||!te?!1:te===xt?(_.peek(),U()):Y(_,!1)},W=U();return _.resetPeek(),W}function B(_){g(_);const S=_.currentPeek()==="|";return _.resetPeek(),S}function Y(_,S=!0){const N=(W=!1,te="")=>{const x=_.currentPeek();return x==="{"||x==="@"||!x?W:x==="|"?!(te===qn||te===xt):x===qn?(_.peek(),N(!0,qn)):x===xt?(_.peek(),N(!0,xt)):!0},U=N();return S&&_.resetPeek(),U}function V(_,S){const N=_.currentChar();if(N!==xi)return S(N)?(_.next(),N):null}function P(_){const S=_.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36}function O(_){return V(_,P)}function A(_){const S=_.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36||S===45}function M(_){return V(_,A)}function F(_){const S=_.charCodeAt(0);return S>=48&&S<=57}function D(_){return V(_,F)}function Q(_){const S=_.charCodeAt(0);return S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102}function ie(_){return V(_,Q)}function ce(_){let S="",N="";for(;S=D(_);)N+=S;return N}function de(_){let S="";for(;;){const N=_.currentChar();if(N==="\\"){const U=_.peek();U==="{"||U==="}"||U==="@"||U==="|"||U==="\\"?(S+=N+U,_.next(),_.next()):(_.resetPeek(),S+=N,_.next())}else{if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N===qn||N===xt)if(Y(_))S+=N,_.next();else{if(B(_))break;S+=N,_.next()}else S+=N,_.next()}}return S}function ye(_){b(_);let S="",N="";for(;S=M(_);)N+=S;const U=_.currentChar();if(U&&U!=="}"&&U!==xi&&U!==qn&&U!==xt&&U!=="　"){const W=Ze(_);return f(we.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,N+W),N+W}return _.currentChar()===xi&&f(we.UNTERMINATED_CLOSING_BRACE,a(),0),N}function Te(_){b(_);let S="";return _.currentChar()==="-"?(_.next(),S+=`-${ce(_)}`):S+=ce(_),_.currentChar()===xi&&f(we.UNTERMINATED_CLOSING_BRACE,a(),0),S}function ke(_){return _!==Gp&&_!==xt}function De(_){b(_),d(_,"'");let S="",N="";for(;S=V(_,ke);)S==="\\"?N+=Ke(_):N+=S;const U=_.currentChar();return U===xt||U===xi?(f(we.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),U===xt&&(_.next(),d(_,"'")),N):(d(_,"'"),N)}function Ke(_){const S=_.currentChar();switch(S){case"\\":case"'":return _.next(),`\\${S}`;case"u":return Ft(_,S,4);case"U":return Ft(_,S,6);default:return f(we.UNKNOWN_ESCAPE_SEQUENCE,a(),0,S),""}}function Ft(_,S,N){d(_,S);let U="";for(let W=0;W<N;W++){const te=ie(_);if(!te){f(we.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${S}${U}${_.currentChar()}`);break}U+=te}return`\\${S}${U}`}function Bt(_){return _!=="{"&&_!=="}"&&_!==qn&&_!==xt}function Ze(_){b(_);let S="",N="";for(;S=V(_,Bt);)N+=S;return N}function J(_){let S="",N="";for(;S=O(_);)N+=S;return N}function se(_){const S=N=>{const U=_.currentChar();return U==="{"||U==="@"||U==="|"||U==="("||U===")"||!U||U===qn?N:(N+=U,_.next(),S(N))};return S("")}function E(_){b(_);const S=d(_,"|");return b(_),S}function k(_,S){let N=null;switch(_.currentChar()){case"{":return S.braceNest>=1&&f(we.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),_.next(),N=h(S,2,"{"),b(_),S.braceNest++,N;case"}":return S.braceNest>0&&S.currentType===2&&f(we.EMPTY_PLACEHOLDER,a(),0),_.next(),N=h(S,3,"}"),S.braceNest--,S.braceNest>0&&b(_),S.inLinked&&S.braceNest===0&&(S.inLinked=!1),N;case"@":return S.braceNest>0&&f(we.UNTERMINATED_CLOSING_BRACE,a(),0),N=z(_,S)||p(S),S.braceNest=0,N;default:{let U=!0,W=!0,te=!0;if(B(_))return S.braceNest>0&&f(we.UNTERMINATED_CLOSING_BRACE,a(),0),N=h(S,1,E(_)),S.braceNest=0,S.inLinked=!1,N;if(S.braceNest>0&&(S.currentType===4||S.currentType===5||S.currentType===6))return f(we.UNTERMINATED_CLOSING_BRACE,a(),0),S.braceNest=0,K(_,S);if(U=y(_,S))return N=h(S,4,ye(_)),b(_),N;if(W=m(_,S))return N=h(S,5,Te(_)),b(_),N;if(te=w(_,S))return N=h(S,6,De(_)),b(_),N;if(!U&&!W&&!te)return N=h(S,12,Ze(_)),f(we.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,N.value),b(_),N;break}}return N}function z(_,S){const{currentType:N}=S;let U=null;const W=_.currentChar();switch((N===7||N===8||N===11||N===9)&&(W===xt||W===qn)&&f(we.INVALID_LINKED_FORMAT,a(),0),W){case"@":return _.next(),U=h(S,7,"@"),S.inLinked=!0,U;case".":return b(_),_.next(),h(S,8,".");case":":return b(_),_.next(),h(S,9,":");default:return B(_)?(U=h(S,1,E(_)),S.braceNest=0,S.inLinked=!1,U):I(_,S)||G(_,S)?(b(_),z(_,S)):T(_,S)?(b(_),h(S,11,J(_))):$(_,S)?(b(_),W==="{"?k(_,S)||U:h(S,10,se(_))):(N===7&&f(we.INVALID_LINKED_FORMAT,a(),0),S.braceNest=0,S.inLinked=!1,K(_,S))}}function K(_,S){let N={type:13};if(S.braceNest>0)return k(_,S)||p(S);if(S.inLinked)return z(_,S)||p(S);switch(_.currentChar()){case"{":return k(_,S)||p(S);case"}":return f(we.UNBALANCED_CLOSING_BRACE,a(),0),_.next(),h(S,3,"}");case"@":return z(_,S)||p(S);default:if(B(_))return N=h(S,1,E(_)),S.braceNest=0,S.inLinked=!1,N;if(Y(_))return h(S,0,de(_));break}return N}function Z(){const{currentType:_,offset:S,startLoc:N,endLoc:U}=s;return s.lastType=_,s.lastOffset=S,s.lastStartLoc=N,s.lastEndLoc=U,s.offset=r(),s.startLoc=a(),i.currentChar()===xi?h(s,13):K(i,s)}return{nextToken:Z,currentOffset:r,currentPosition:a,context:c}}var Sw="parser",Mw=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Iw=/\\([\\@{}|])/g;function Tw(e,n){return n}function kw(e,n,t){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(n||t,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function Ow(e={}){const n=e.location!==!1,{onError:t}=e;function i(v,C,y,m,...w){const I=v.currentPosition();I.offset+=m,I.column+=m,t&&t(Es(C,n?Xc(y,I):null,{domain:Sw,args:w}))}function r(v,C,y){const m={type:v};return n&&(m.start=C,m.end=C,m.loc={start:y,end:y}),m}function a(v,C,y,m){n&&(v.end=C,v.loc&&(v.loc.end=y))}function o(v,C){const y=v.context(),m=r(3,y.offset,y.startLoc);return m.value=C.replace(Iw,Tw),a(m,v.currentOffset(),v.currentPosition()),m}function l(v,C){const{lastOffset:y,lastStartLoc:m}=v.context(),w=r(5,y,m);return w.index=parseInt(C,10),v.nextToken(),a(w,v.currentOffset(),v.currentPosition()),w}function s(v,C){const{lastOffset:y,lastStartLoc:m}=v.context(),w=r(4,y,m);return w.key=C,v.nextToken(),a(w,v.currentOffset(),v.currentPosition()),w}function c(v,C){const{lastOffset:y,lastStartLoc:m}=v.context(),w=r(9,y,m);return w.value=C.replace(Mw,kw),v.nextToken(),a(w,v.currentOffset(),v.currentPosition()),w}function u(v){const C=v.nextToken(),y=v.context(),{lastOffset:m,lastStartLoc:w}=y,I=r(8,m,w);return C.type!==11?(i(v,we.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),I.value="",a(I,m,w),{nextConsumeToken:C,node:I}):(C.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$n(C)),I.value=C.value||"",a(I,v.currentOffset(),v.currentPosition()),{node:I})}function f(v,C){const y=v.context(),m=r(7,y.offset,y.startLoc);return m.value=C,a(m,v.currentOffset(),v.currentPosition()),m}function h(v){const C=v.context(),y=r(6,C.offset,C.startLoc);let m=v.nextToken();if(m.type===8){const w=u(v);y.modifier=w.node,m=w.nextConsumeToken||v.nextToken()}switch(m.type!==9&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(m)),m=v.nextToken(),m.type===2&&(m=v.nextToken()),m.type){case 10:m.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(m)),y.key=f(v,m.value||"");break;case 4:m.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(m)),y.key=s(v,m.value||"");break;case 5:m.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(m)),y.key=l(v,m.value||"");break;case 6:m.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(m)),y.key=c(v,m.value||"");break;default:{i(v,we.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const w=v.context(),I=r(7,w.offset,w.startLoc);return I.value="",a(I,w.offset,w.startLoc),y.key=I,a(y,w.offset,w.startLoc),{nextConsumeToken:m,node:y}}}return a(y,v.currentOffset(),v.currentPosition()),{node:y}}function p(v){const C=v.context(),y=r(2,C.currentType===1?v.currentOffset():C.offset,C.currentType===1?C.endLoc:C.startLoc);y.items=[];let m=null;do{const w=m||v.nextToken();switch(m=null,w.type){case 0:w.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(w)),y.items.push(o(v,w.value||""));break;case 5:w.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(w)),y.items.push(l(v,w.value||""));break;case 4:w.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(w)),y.items.push(s(v,w.value||""));break;case 6:w.value==null&&i(v,we.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(w)),y.items.push(c(v,w.value||""));break;case 7:{const I=h(v);y.items.push(I.node),m=I.nextConsumeToken||null;break}}}while(C.currentType!==13&&C.currentType!==1);return a(y,C.currentType===1?C.lastOffset:v.currentOffset(),C.currentType===1?C.lastEndLoc:v.currentPosition()),y}function d(v,C,y,m){const w=v.context();let I=m.items.length===0;const T=r(1,C,y);T.cases=[],T.cases.push(m);do{const G=p(v);I||(I=G.items.length===0),T.cases.push(G)}while(w.currentType!==13);return I&&i(v,we.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),a(T,v.currentOffset(),v.currentPosition()),T}function g(v){const C=v.context(),{offset:y,startLoc:m}=C,w=p(v);return C.currentType===13?w:d(v,y,m,w)}function b(v){const C=Ew(v,gt({},e)),y=C.context(),m=r(0,y.offset,y.startLoc);return n&&m.loc&&(m.loc.source=v),m.body=g(C),e.onCacheKey&&(m.cacheKey=e.onCacheKey(v)),y.currentType!==13&&i(C,we.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,v[y.offset]||""),a(m,C.currentOffset(),C.currentPosition()),m}return{parse:b}}function $n(e){if(e.type===13)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function xw(e,n={}){const t={ast:e,helpers:new Set};return{context:()=>t,helper:a=>(t.helpers.add(a),a)}}function Qp(e,n){for(let t=0;t<e.length;t++)eu(e[t],n)}function eu(e,n){switch(e.type){case 1:Qp(e.cases,n),n.helper("plural");break;case 2:Qp(e.items,n);break;case 6:eu(e.key,n),n.helper("linked"),n.helper("type");break;case 5:n.helper("interpolate"),n.helper("list");break;case 4:n.helper("interpolate"),n.helper("named");break}}function Nw(e,n={}){const t=xw(e);t.helper("normalize"),e.body&&eu(e.body,t);const i=t.context();e.helpers=Array.from(i.helpers)}function Rw(e){const n=e.body;return n.type===2?Kp(n):n.cases.forEach(t=>Kp(t)),e}function Kp(e){if(e.items.length===1){const n=e.items[0];(n.type===3||n.type===9)&&(e.static=n.value,delete n.value)}else{const n=[];for(let t=0;t<e.items.length;t++){const i=e.items[t];if(!(i.type===3||i.type===9)||i.value==null)break;n.push(i.value)}if(n.length===e.items.length){e.static=Jc(n);for(let t=0;t<e.items.length;t++){const i=e.items[t];(i.type===3||i.type===9)&&delete i.value}}}}function Kr(e){switch(e.t=e.type,e.type){case 0:{const n=e;Kr(n.body),n.b=n.body,delete n.body;break}case 1:{const n=e,t=n.cases;for(let i=0;i<t.length;i++)Kr(t[i]);n.c=t,delete n.cases;break}case 2:{const n=e,t=n.items;for(let i=0;i<t.length;i++)Kr(t[i]);n.i=t,delete n.items,n.static&&(n.s=n.static,delete n.static);break}case 3:case 9:case 8:case 7:{const n=e;n.value&&(n.v=n.value,delete n.value);break}case 6:{const n=e;Kr(n.key),n.k=n.key,delete n.key,n.modifier&&(Kr(n.modifier),n.m=n.modifier,delete n.modifier);break}case 5:{const n=e;n.i=n.index,delete n.index;break}case 4:{const n=e;n.k=n.key,delete n.key;break}default:}delete e.type}function Lw(e,n){const{filename:t,breakLineCode:i,needIndent:r}=n,a=n.location!==!1,o={filename:t,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const l=()=>o;function s(g,b){o.code+=g}function c(g,b=!0){const v=b?i:"";s(r?v+"  ".repeat(g):v)}function u(g=!0){const b=++o.indentLevel;g&&c(b)}function f(g=!0){const b=--o.indentLevel;g&&c(b)}function h(){c(o.indentLevel)}return{context:l,push:s,indent:u,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function Pw(e,n){const{helper:t}=e;e.push(`${t("linked")}(`),Zr(e,n.key),n.modifier?(e.push(", "),Zr(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Dw(e,n){const{helper:t,needIndent:i}=e;e.push(`${t("normalize")}([`),e.indent(i());const r=n.items.length;for(let a=0;a<r&&(Zr(e,n.items[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}function Fw(e,n){const{helper:t,needIndent:i}=e;if(n.cases.length>1){e.push(`${t("plural")}([`),e.indent(i());const r=n.cases.length;for(let a=0;a<r&&(Zr(e,n.cases[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}}function Bw(e,n){n.body?Zr(e,n.body):e.push("null")}function Zr(e,n){const{helper:t}=e;switch(n.type){case 0:Bw(e,n);break;case 1:Fw(e,n);break;case 2:Dw(e,n);break;case 6:Pw(e,n);break;case 8:e.push(JSON.stringify(n.value),n);break;case 7:e.push(JSON.stringify(n.value),n);break;case 5:e.push(`${t("interpolate")}(${t("list")}(${n.index}))`,n);break;case 4:e.push(`${t("interpolate")}(${t("named")}(${JSON.stringify(n.key)}))`,n);break;case 9:e.push(JSON.stringify(n.value),n);break;case 3:e.push(JSON.stringify(n.value),n);break;default:}}var Uw=(e,n={})=>{const t=fe(n.mode)?n.mode:"normal",i=fe(n.filename)?n.filename:"message.intl";n.sourceMap;const r=n.breakLineCode!=null?n.breakLineCode:t==="arrow"?";":`
`,a=n.needIndent?n.needIndent:t!=="arrow",o=e.helpers||[],l=Lw(e,{filename:i,breakLineCode:r,needIndent:a});l.push(t==="normal"?"function __msg__ (ctx){":"(ctx)=> {"),l.indent(a),o.length>0&&(l.push(`const { ${Jc(o.map(u=>`${u}: _${u}`),", ")}}=ctx`),l.newline()),l.push("return "),Zr(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:s,map:c}=l.context();return{ast:e,code:s,map:c?c.toJSON():void 0}};function jw(e,n={}){const t=gt({},n),i=!!t.jit,r=!!t.minify,a=t.optimize==null?!0:t.optimize,o=Ow(t).parse(e);return i?(a&&Rw(o),r&&Kr(o),{ast:o,code:""}):(Nw(o,t),Uw(o,t))}function qw(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(rr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(rr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function zn(e){return $e(e)&&tu(e)===0&&(bn(e,"b")||bn(e,"body"))}var Zp=["b","body"];function $w(e){return Ni(e,Zp)}var Jp=["c","cases"];function zw(e){return Ni(e,Jp,[])}var Xp=["s","static"];function Vw(e){return Ni(e,Xp)}var eg=["i","items"];function Hw(e){return Ni(e,eg,[])}var tg=["t","type"];function tu(e){return Ni(e,tg)}var ng=["v","value"];function Ss(e,n){const t=Ni(e,ng);if(t!=null)return t;throw Ya(n)}var ig=["m","modifier"];function Ww(e){return Ni(e,ig)}var rg=["k","key"];function Yw(e){const n=Ni(e,rg);if(n)return n;throw Ya(6)}function Ni(e,n,t){for(let i=0;i<n.length;i++){const r=n[i];if(bn(e,r)&&e[r]!=null)return e[r]}return t}var ag=[...Zp,...Jp,...Xp,...eg,...rg,...ig,...ng,...tg];function Ya(e){return new Error(`unhandled node type: ${e}`)}function nu(e){return t=>Gw(t,e)}function Gw(e,n){const t=$w(n);if(t==null)throw Ya(0);if(tu(t)===1){const i=zw(t);return e.plural(i.reduce((r,a)=>[...r,og(e,a)],[]))}else return og(e,t)}function og(e,n){const t=Vw(n);if(t!=null)return e.type==="text"?t:e.normalize([t]);{const i=Hw(n).reduce((r,a)=>[...r,iu(e,a)],[]);return e.normalize(i)}}function iu(e,n){const t=tu(n);switch(t){case 3:return Ss(n,t);case 9:return Ss(n,t);case 4:{const i=n;if(bn(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(bn(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw Ya(t)}case 5:{const i=n;if(bn(i,"i")&&pt(i.i))return e.interpolate(e.list(i.i));if(bn(i,"index")&&pt(i.index))return e.interpolate(e.list(i.index));throw Ya(t)}case 6:{const i=n,r=Ww(i),a=Yw(i);return e.linked(iu(e,a),r?iu(e,r):void 0,e.type)}case 7:return Ss(n,t);case 8:return Ss(n,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}var Qw=e=>e,Ms=Ge();function Kw(e,n={}){let t=!1;const i=n.onError||vw;return n.onError=r=>{t=!0,i(r)},{...jw(e,n),detectError:t}}function Zw(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&fe(e)){qe(n.warnHtmlMessage)&&n.warnHtmlMessage;const t=(n.onCacheKey||Qw)(e),i=Ms[t];if(i)return i;const{ast:r,detectError:a}=Kw(e,{...n,location:!1,jit:!0}),o=nu(r);return a?o:Ms[t]=o}else{const t=e.cacheKey;if(t){const i=Ms[t];return i||(Ms[t]=nu(e))}else return nu(e)}}var Ga=null;function Jw(e){Ga=e}function Xw(e,n,t){Ga&&Ga.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:t})}var e2=t2("function:translate");function t2(e){return n=>Ga&&Ga.emit(e,n)}var Nt={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function di(e){return Es(e,null,void 0)}Nt.INVALID_ARGUMENT,Nt.INVALID_DATE_ARGUMENT,Nt.INVALID_ISO_DATE_ARGUMENT,Nt.NOT_SUPPORT_NON_STRING_MESSAGE,Nt.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Nt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Nt.NOT_SUPPORT_LOCALE_TYPE;function ru(e,n){return n.locale!=null?sg(n.locale):sg(e.locale)}var au;function sg(e){if(fe(e))return e;if(nt(e)){if(e.resolvedOnce&&au!=null)return au;if(e.constructor.name==="Function"){const n=e();if(pw(n))throw di(Nt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return au=n}else throw di(Nt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw di(Nt.NOT_SUPPORT_LOCALE_TYPE)}function n2(e,n,t){return[...new Set([t,...st(n)?n:$e(n)?Object.keys(n):fe(n)?[n]:[t]])]}function ou(e,n,t){const i=fe(t)?t:Qa,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(i);if(!a){a=[];let o=[t];for(;st(o);)o=lg(a,o,n);const l=st(n)||!Le(n)?n:n.default?n.default:null;o=fe(l)?[l]:l,st(o)&&lg(a,o,!1),r.__localeChainCache.set(i,a)}return a}function lg(e,n,t){let i=!0;for(let r=0;r<n.length&&qe(i);r++){const a=n[r];fe(a)&&(i=i2(e,n[r],t))}return i}function i2(e,n,t){let i;const r=n.split("-");do i=r2(e,r.join("-"),t),r.splice(-1,1);while(r.length&&i===!0);return i}function r2(e,n,t){let i=!1;if(!e.includes(n)&&(i=!0,n)){i=n[n.length-1]!=="!";const r=n.replace(/!/g,"");e.push(r),(st(t)||Le(t))&&t[r]&&(i=t[r])}return i}var Ri=[];Ri[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ri[1]={w:[1],".":[2],"[":[4],o:[7]},Ri[2]={w:[2],i:[3,0],0:[3,0]},Ri[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ri[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ri[5]={"'":[4,0],o:8,l:[5,0]},Ri[6]={'"':[4,0],o:8,l:[6,0]};var a2=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function o2(e){return a2.test(e)}function s2(e){const n=e.charCodeAt(0);return n===e.charCodeAt(e.length-1)&&(n===34||n===39)?e.slice(1,-1):e}function l2(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function c2(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:o2(n)?s2(n):"*"+n}function u2(e){const n=[];let t=-1,i=0,r=0,a,o,l,s,c,u,f;const h=[];h[0]=()=>{o===void 0?o=l:o+=l},h[1]=()=>{o!==void 0&&(n.push(o),o=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,i=4,h[0]();else{if(r=0,o===void 0||(o=c2(o),o===!1))return!1;h[1]()}};function p(){const d=e[t+1];if(i===5&&d==="'"||i===6&&d==='"')return t++,l="\\"+d,h[0](),!0}for(;i!==null;)if(t++,a=e[t],!(a==="\\"&&p())){if(s=l2(a),f=Ri[i],c=f[s]||f.l||8,c===8||(i=c[0],c[1]!==void 0&&(u=h[c[1]],u&&(l=a,u()===!1))))return;if(i===7)return n}}var cg=new Map;function f2(e,n){return $e(e)?e[n]:null}function d2(e,n){if(!$e(e))return null;let t=cg.get(n);if(t||(t=u2(n),t&&cg.set(n,t)),!t)return null;const i=t.length;let r=e,a=0;for(;a<i;){const o=t[a];if(ag.includes(o)&&zn(r)||!$e(r)||!bn(r,o))return null;const l=r[o];if(l===void 0||nt(r))return null;r=l,a++}return r}var hi={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},ix={[hi.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[hi.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[hi.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[hi.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[hi.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[hi.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[hi.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[hi.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[hi.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."},h2="11.4.6",rx=-1,Qa="en-US",ax="",ug=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function p2(){return{upper:(e,n)=>n==="text"&&fe(e)?e.toUpperCase():n==="vnode"&&$e(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&fe(e)?e.toLowerCase():n==="vnode"&&$e(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&fe(e)?ug(e):n==="vnode"&&$e(e)&&"__v_isVNode"in e?ug(e.children):e}}var fg;function g2(e){fg=e}var dg;function m2(e){dg=e}var hg;function v2(e){hg=e}var pg=null,gg=e=>{pg=e},b2=()=>pg,mg=null,vg=e=>{mg=e},y2=()=>mg,bg=0;function A2(e={}){const n=nt(e.onWarn)?e.onWarn:rw,t=fe(e.version)?e.version:h2,i=fe(e.locale)||nt(e.locale)?e.locale:Qa,r=nt(i)?Qa:i,a=st(e.fallbackLocale)||Le(e.fallbackLocale)||fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,o=Le(e.messages)?e.messages:su(r),l=Le(e.datetimeFormats)?e.datetimeFormats:su(r),s=Le(e.numberFormats)?e.numberFormats:su(r),c=gt(Ge(),e.modifiers,p2()),u=e.pluralRules||Ge(),f=nt(e.missing)?e.missing:null,h=qe(e.missingWarn)||Qr(e.missingWarn)?e.missingWarn:!0,p=qe(e.fallbackWarn)||Qr(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,g=!!e.unresolving,b=nt(e.postTranslation)?e.postTranslation:null,v=Le(e.processor)?e.processor:null,C=qe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,m=nt(e.messageCompiler)?e.messageCompiler:fg,w=nt(e.messageResolver)?e.messageResolver:dg||f2,I=nt(e.localeFallbacker)?e.localeFallbacker:hg||n2,T=$e(e.fallbackContext)?e.fallbackContext:void 0,G=e,$=$e(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,B=$e(G.__numberFormatters)?G.__numberFormatters:new Map,Y=$e(G.__meta)?G.__meta:{};bg++;const V={version:t,cid:bg,locale:i,fallbackLocale:a,messages:o,modifiers:c,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:d,unresolving:g,postTranslation:b,processor:v,warnHtmlMessage:C,escapeParameter:y,messageCompiler:m,messageResolver:w,localeFallbacker:I,fallbackContext:T,onWarn:n,__meta:Y};return V.datetimeFormats=l,V.numberFormats=s,V.__datetimeFormatters=$,V.__numberFormatters=B,__INTLIFY_PROD_DEVTOOLS__&&Xw(V,t,Y),V}var su=e=>({[e]:Ge()});function lu(e,n,t,i,r){const{missing:a,onWarn:o}=e;if(a!==null){const l=a(e,t,n,r);return fe(l)?l:n}else return n}function Ka(e,n,t){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,t,n)}function w2(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function _2(e,n){const t=n.indexOf(e);if(t===-1)return!1;for(let i=t+1;i<n.length;i++)if(w2(e,n[i]))return!0;return!1}var yg=typeof Intl<"u";yg&&Intl.DateTimeFormat,yg&&Intl.NumberFormat;function Ag(e,...n){const{datetimeFormats:t,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:l}=e;if(!fe(n[0])&&!zp(n[0])&&!pt(n[0]))return"";const[s,c,u,f]=cu(...n),h=qe(u.missingWarn)?u.missingWarn:e.missingWarn;qe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=ru(e,u),g=o(e,r,d);if(!fe(s)||s===""){const I=new Intl.DateTimeFormat(d.replace(/!/g,""),f);return p?I.formatToParts(c):I.format(c)}let b={},v,C=null;const y="datetime format";for(let I=0;I<g.length&&(v=g[I],b=t[v]||{},C=b[s],!Le(C));I++)lu(e,s,v,h,y);if(!Le(C)||!fe(v))return i?-1:s;let m=`${v}__${s}`;ws(f)||(m=`${m}__${JSON.stringify(f)}`);let w=l.get(m);return w||(w=new Intl.DateTimeFormat(v,gt({},C,f)),l.set(m,w)),p?w.formatToParts(c):w.format(c)}var wg=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cu(...e){const[n,t,i,r]=e,a=Ge();let o=Ge(),l;if(fe(n)){const s=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!s)throw di(Nt.INVALID_ISO_DATE_ARGUMENT);const c=s[3]?s[3].trim().startsWith("T")?`${s[1].trim()}${s[3].trim()}`:`${s[1].trim()}T${s[3].trim()}`:s[1].trim();l=new Date(c);try{l.toISOString()}catch{throw di(Nt.INVALID_ISO_DATE_ARGUMENT)}}else if(zp(n)){if(isNaN(n.getTime()))throw di(Nt.INVALID_DATE_ARGUMENT);l=n}else if(pt(n))l=n;else throw di(Nt.INVALID_ARGUMENT);return fe(t)?a.key=t:Le(t)&&Object.keys(t).forEach(s=>{wg.includes(s)?o[s]=t[s]:a[s]=t[s]}),fe(i)?a.locale=i:Le(i)&&(o=i),Le(r)&&(o=r),[a.key||"",l,a,o]}function _g(e,n,t){const i=e;for(const r in t){const a=`${n}__${r}`;i.__datetimeFormatters.has(a)&&i.__datetimeFormatters.delete(a)}}function Cg(e,...n){const{numberFormats:t,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:l}=e;if(!pt(n[0]))return"";const[s,c,u,f]=uu(...n),h=qe(u.missingWarn)?u.missingWarn:e.missingWarn;qe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,d=ru(e,u),g=o(e,r,d);if(!fe(s)||s===""){const I=new Intl.NumberFormat(d.replace(/!/g,""),f);return p?I.formatToParts(c):I.format(c)}let b={},v,C=null;const y="number format";for(let I=0;I<g.length&&(v=g[I],b=t[v]||{},C=b[s],!Le(C));I++)lu(e,s,v,h,y);if(!Le(C)||!fe(v))return i?-1:s;let m=`${v}__${s}`;ws(f)||(m=`${m}__${JSON.stringify(f)}`);let w=l.get(m);return w||(w=new Intl.NumberFormat(v,gt({},C,f)),l.set(m,w)),p?w.formatToParts(c):w.format(c)}var Eg=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function uu(...e){const[n,t,i,r]=e,a=Ge();let o=Ge();if(!pt(n))throw di(Nt.INVALID_ARGUMENT);const l=n;return fe(t)?a.key=t:Le(t)&&Object.keys(t).forEach(s=>{Eg.includes(s)?o[s]=t[s]:a[s]=t[s]}),fe(i)?a.locale=i:Le(i)&&(o=i),Le(r)&&(o=r),[a.key||"",l,a,o]}function Sg(e,n,t){const i=e;for(const r in t){const a=`${n}__${r}`;i.__numberFormatters.has(a)&&i.__numberFormatters.delete(a)}}var C2=e=>e,E2=e=>"",S2="text",M2=e=>e.length===0?"":Jc(e),I2=gw;function fu(e,n){return e=Math.abs(e),n===2?e===1?0:1:Math.min(e,2)}function T2(e){const n=pt(e.pluralIndex)?e.pluralIndex:-1;return pt(e.named?.count)?e.named.count:pt(e.named?.n)?e.named.n:n}function k2(e={}){const n=e.locale,t=T2(e),i=fe(n)&&nt(e.pluralRules?.[n])?e.pluralRules[n]:fu,r=i===fu?void 0:fu,a=v=>v[i(t,v.length,r)],o=e.list||[],l=v=>o[v],s=e.named||Ge();pt(e.pluralIndex)&&(s.count||=e.pluralIndex,s.n||=e.pluralIndex);const c=v=>s[v];function u(v,C){const y=nt(e.messages)?e.messages(v,!!C):$e(e.messages)?e.messages[v]:!1;return y||(e.parent?e.parent.message(v):E2)}const f=v=>e.modifiers?e.modifiers[v]:C2,h=nt(e.processor?.normalize)?e.processor.normalize:M2,p=nt(e.processor?.interpolate)?e.processor.interpolate:I2,d=fe(e.processor?.type)?e.processor.type:S2,b={list:l,named:c,plural:a,linked:(v,...C)=>{const[y,m]=C;let w="text",I="";C.length===1?$e(y)?(I=y.modifier||I,w=y.type||w):fe(y)&&(I=y||I):C.length===2&&(fe(y)&&(I=y||I),fe(m)&&(w=m||w));const T=u(v,!0)(b),G=T===""||T===void 0?v:T,$=w==="vnode"&&st(G)&&I?G[0]:G;return I?f(I)($,w):$},message:u,type:d,interpolate:p,normalize:h,values:gt(Ge(),o,s)};return b}var Mg=()=>"",yn=e=>nt(e);function Ig(e,...n){const{fallbackFormat:t,postTranslation:i,unresolving:r,messageCompiler:a,fallbackLocale:o,messages:l}=e,[s,c]=du(...n),u=qe(c.missingWarn)?c.missingWarn:e.missingWarn,f=qe(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=qe(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,d=fe(c.default)||qe(c.default)?qe(c.default)?a?s:()=>s:c.default:t?a?s:()=>s:null,g=t||d!=null&&(fe(d)||nt(d)),b=ru(e,c);h&&O2(c);let[v,C,y]=p?[s,b,l[b]||Ge()]:Tg(e,s,b,o,f,u),m=v,w=s;if(!p&&!(fe(m)||zn(m)||yn(m))&&g&&(m=d,w=m),!p&&(!(fe(m)||zn(m)||yn(m))||!fe(C)))return r?-1:s;let I=!1;const T=()=>{I=!0},G=yn(m)?m:kg(e,s,C,m,w,T);if(I)return m;const $=x2(e,G,k2(R2(e,C,y,c)));let B=i?i($,s):$;if(h&&fe(B)&&(B=dw(B)),__INTLIFY_PROD_DEVTOOLS__){const Y={timestamp:Date.now(),key:fe(s)?s:yn(m)?m.key:"",locale:C||(yn(m)?m.locale:""),format:fe(m)?m:yn(m)?m.source:"",message:B};Y.meta=gt({},e.__meta,b2()||{}),e2(Y)}return B}function O2(e){st(e.list)?e.list=e.list.map(n=>fe(n)?Hp(n):n):$e(e.named)&&Object.keys(e.named).forEach(n=>{fe(e.named[n])&&(e.named[n]=Hp(e.named[n]))})}function Tg(e,n,t,i,r,a){const{messages:o,onWarn:l,messageResolver:s,localeFallbacker:c}=e,u=c(e,i,t);let f=Ge(),h,p=null;const d="translate";for(let g=0;g<u.length&&(h=u[g],f=o[h]||Ge(),(p=s(f,n))===null&&(p=f[n]),!(fe(p)||zn(p)||yn(p)));g++)if(!_2(h,u)){const b=lu(e,n,h,a,d);b!==n&&(p=b)}return[p,h,f]}function kg(e,n,t,i,r,a){const{messageCompiler:o,warnHtmlMessage:l}=e;if(yn(i)){const c=i;return c.locale=c.locale||t,c.key=c.key||n,c}if(o==null){const c=(()=>i);return c.locale=t,c.key=n,c}const s=o(i,N2(e,t,r,i,l,a));return s.locale=t,s.key=n,s.source=i,s}function x2(e,n,t){return n(t)}function du(...e){const[n,t,i]=e,r=Ge();if(!fe(n)&&!pt(n)&&!yn(n)&&!zn(n))throw di(Nt.INVALID_ARGUMENT);const a=pt(n)?String(n):(yn(n),n);return pt(t)?r.plural=t:fe(t)?r.default=t:Le(t)&&!ws(t)?r.named=t:st(t)&&(r.list=t),pt(i)?r.plural=i:fe(i)?r.default=i:Le(i)&&gt(r,i),[a,r]}function N2(e,n,t,i,r,a){return{locale:n,key:t,warnHtmlMessage:r,onError:o=>{throw a&&a(o),o},onCacheKey:o=>aw(n,t,o)}}function R2(e,n,t,i){const{modifiers:r,pluralRules:a,messageResolver:o,fallbackLocale:l,fallbackWarn:s,missingWarn:c,fallbackContext:u}=e,h={locale:n,modifiers:r,pluralRules:a,messages:(p,d)=>{let g=o(t,p);if(g==null&&(u||d)){const[b,,v]=Tg(u||e,p,n,l,s,c);g=b??o(v,p)}if(fe(g)||zn(g)){let b=!1;const C=kg(e,p,n,g,p,()=>{b=!0});return b?Mg:C}else return yn(g)?g:Mg}};return e.processor&&(h.processor=e.processor),i.list&&(h.list=i.list),i.named&&(h.named=i.named),pt(i.plural)&&(h.pluralIndex=i.plural),h}qw();var L2="11.4.6";function P2(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(rr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(rr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(rr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(rr().__INTLIFY_PROD_DEVTOOLS__=!1)}var et={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Kt(e,...n){return Es(e,null,void 0)}et.UNEXPECTED_RETURN_TYPE,et.INVALID_ARGUMENT,et.MUST_BE_CALL_SETUP_TOP,et.NOT_INSTALLED,et.UNEXPECTED_ERROR,et.REQUIRED_VALUE,et.INVALID_VALUE,et.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,et.NOT_INSTALLED_WITH_PROVIDE,et.NOT_COMPATIBLE_LEGACY_VUE_I18N,et.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var hu=fi("__translateVNode"),pu=fi("__datetimeParts"),gu=fi("__numberParts"),Og=fi("__setPluralRules");fi("__intlifyMeta");var xg=fi("__injectWithOption"),Jr=fi("__dispose"),Xr={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15};Xr.FALLBACK_TO_ROOT,Xr.NOT_FOUND_PARENT_SCOPE,Xr.IGNORE_OBJ_FLATTEN,Xr.DEPRECATE_LEGACY_MODE,Xr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,Xr.DUPLICATE_USE_I18N_CALLING;function Za(e){if(!$e(e)||zn(e))return e;for(const n in e)if(bn(e,n))if(!n.includes("."))$e(e[n])&&Za(e[n]);else{const t=n.split("."),i=t.length-1;let r=e,a=!1;for(let o=0;o<i;o++){if(t[o]==="__proto__")throw new Error(`unsafe key: ${t[o]}`);if(t[o]in r||(r[t[o]]=Ge()),!$e(r[t[o]])){a=!0;break}r=r[t[o]]}if(a||(zn(r)?ag.includes(t[i])||delete e[n]:(r[t[i]]=e[n],delete e[n])),!zn(r)){const o=r[t[i]];$e(o)&&Za(o)}}return e}function mu(e,n){const{messages:t,__i18n:i,messageResolver:r,flatJson:a}=n,o=Le(t)?t:st(i)?Ge():{[e]:Ge()};if(st(i)&&i.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:s,resource:c}=l;s?(o[s]=o[s]||Ge(),Cs(c,o[s])):Cs(c,o)}else fe(l)&&Cs(JSON.parse(l),o)}),r==null&&a)for(const l in o)bn(o,l)&&Za(o[l]);return o}function Ng(e){return e.type}function Rg(e,n,t){let i=$e(n.messages)?n.messages:Ge();"__i18nGlobal"in t&&(i=mu(e.locale.value,{messages:i,__i18n:t.__i18nGlobal}));const r=Object.keys(i);if(r.length&&r.forEach(a=>{e.mergeLocaleMessage(a,i[a])}),$e(n.datetimeFormats)){const a=Object.keys(n.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,n.datetimeFormats[o])})}if($e(n.numberFormats)){const a=Object.keys(n.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,n.numberFormats[o])})}}function Lg(e){return pe(ri,null,e,0)}function Ja(){const e="currentInstance";return e in Qh?Qh[e]:Et()}var Pg="__INTLIFY_META__",Dg=()=>[],D2=()=>!1,Fg=0;function Bg(e){return((n,t,i,r)=>e(t,i,Ja()||void 0,r))}var F2=()=>{const e=Ja();let n=null;return e&&(n=Ng(e)[Pg])?{[Pg]:n}:null};function Is(e={}){const{__root:n,__injectWithOption:t}=e,i=n===void 0,r=e.flatJson,a=As?re:Ll;let o=qe(e.inheritLocale)?e.inheritLocale:!0;const l=a(n&&o?n.locale.value:fe(e.locale)?e.locale:Qa),s=a(n&&o?n.fallbackLocale.value:fe(e.fallbackLocale)||st(e.fallbackLocale)||Le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=a(mu(l.value,e)),u=a(Le(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=a(Le(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=n?n.missingWarn:qe(e.missingWarn)||Qr(e.missingWarn)?e.missingWarn:!0,p=n?n.fallbackWarn:qe(e.fallbackWarn)||Qr(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:qe(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,b=nt(e.missing)?e.missing:null,v=nt(e.missing)?Bg(e.missing):null,C=nt(e.postTranslation)?e.postTranslation:null,y=n?n.warnHtmlMessage:qe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const w=n?n.modifiers:Le(e.modifiers)?e.modifiers:{};let I=e.pluralRules||n&&n.pluralRules,T;T=(()=>{i&&vg(null);const x={version:L2,locale:l.value,fallbackLocale:s.value,messages:c.value,modifiers:w,pluralRules:I,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:p,fallbackFormat:g,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:y,escapeParameter:m,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};x.datetimeFormats=u.value,x.numberFormats=f.value,x.__datetimeFormatters=Le(T)?T.__datetimeFormatters:void 0,x.__numberFormatters=Le(T)?T.__numberFormatters:void 0;const q=A2(x);return i&&vg(q),q})(),Ka(T,l.value,s.value);function $(){return[l.value,s.value,c.value,u.value,f.value]}const B=ne({get:()=>l.value,set:x=>{T.locale=x,l.value=x}}),Y=ne({get:()=>s.value,set:x=>{T.fallbackLocale=x,s.value=x,Ka(T,l.value,x)}}),V=ne(()=>c.value),P=ne(()=>u.value),O=ne(()=>f.value);function A(){return nt(C)?C:null}function M(x){C=x,T.postTranslation=x}function F(){return b}function D(x){x!==null&&(v=Bg(x)),b=x,T.missing=v}const Q=(x,q,le,me,Ce,Pe)=>{$();let Fe;try{__INTLIFY_PROD_DEVTOOLS__&&gg(F2()),i||(T.fallbackContext=n?y2():void 0),Fe=x(T)}finally{__INTLIFY_PROD_DEVTOOLS__&&gg(null),i||(T.fallbackContext=void 0)}if(le!=="translate exists"&&pt(Fe)&&Fe===-1||le==="translate exists"&&!Fe){const[ft,_n]=q();return n&&d?me(n):Ce(ft)}else{if(Pe(Fe))return Fe;throw Kt(et.UNEXPECTED_RETURN_TYPE)}};function ie(...x){return Q(q=>Reflect.apply(Ig,null,[q,...x]),()=>du(...x),"translate",q=>Reflect.apply(q.t,q,[...x]),q=>q,q=>fe(q))}function ce(...x){const[q,le,me]=x;if(me&&!$e(me))throw Kt(et.INVALID_ARGUMENT);return ie(q,le,gt({resolvedMessage:!0},me||{}))}function de(...x){return Q(q=>Reflect.apply(Ag,null,[q,...x]),()=>cu(...x),"datetime format",q=>Reflect.apply(q.d,q,[...x]),()=>"",q=>fe(q)||st(q))}function ye(...x){return Q(q=>Reflect.apply(Cg,null,[q,...x]),()=>uu(...x),"number format",q=>Reflect.apply(q.n,q,[...x]),()=>"",q=>fe(q)||st(q))}function Te(x){return x.map(q=>fe(q)||pt(q)||qe(q)?Lg(String(q)):q)}const De={normalize:Te,interpolate:x=>x,type:"vnode"};function Ke(...x){return Q(q=>{let le;const me=q;try{me.processor=De,le=Reflect.apply(Ig,null,[me,...x])}finally{me.processor=null}return le},()=>du(...x),"translate",q=>q[hu](...x),q=>[Lg(q)],q=>st(q))}function Ft(...x){return Q(q=>Reflect.apply(Cg,null,[q,...x]),()=>uu(...x),"number format",q=>q[gu](...x),Dg,q=>fe(q)||st(q))}function Bt(...x){return Q(q=>Reflect.apply(Ag,null,[q,...x]),()=>cu(...x),"datetime format",q=>q[pu](...x),Dg,q=>fe(q)||st(q))}function Ze(x){I=x,T.pluralRules=I}function J(x,q){return Q(()=>{if(!x)return!1;const le=fe(q)?q:l.value,me=fe(q)?[le]:ou(T,s.value,le);for(let Ce=0;Ce<me.length;Ce++){const Pe=k(me[Ce]);let Fe=T.messageResolver(Pe,x);if(Fe===null&&(Fe=Pe[x]),zn(Fe)||yn(Fe)||fe(Fe))return!0}return!1},()=>[x],"translate exists",le=>Reflect.apply(le.te,le,[x,q]),D2,le=>qe(le))}function se(x){let q=null;const le=ou(T,s.value,l.value);for(let me=0;me<le.length;me++){const Ce=c.value[le[me]]||{},Pe=T.messageResolver(Ce,x);if(Pe!=null){q=Pe;break}}return q}function E(x){const q=se(x);return q??(n?n.tm(x)||{}:{})}function k(x){return c.value[x]||{}}function z(x,q){if(r){const le={[x]:q};for(const me in le)bn(le,me)&&Za(le[me]);q=le[x]}c.value[x]=q,T.messages=c.value}function K(x,q){c.value[x]=c.value[x]||{};const le={[x]:q};if(r)for(const me in le)bn(le,me)&&Za(le[me]);q=le[x],Cs(q,c.value[x]),T.messages=c.value}function Z(x){return u.value[x]||{}}function _(x,q){u.value[x]=q,T.datetimeFormats=u.value,_g(T,x,q)}function S(x,q){u.value[x]=gt(u.value[x]||{},q),T.datetimeFormats=u.value,_g(T,x,q)}function N(x){return f.value[x]||{}}function U(x,q){f.value[x]=q,T.numberFormats=f.value,Sg(T,x,q)}function W(x,q){f.value[x]=gt(f.value[x]||{},q),T.numberFormats=f.value,Sg(T,x,q)}Fg++,n&&As&&(kt(n.locale,x=>{o&&(l.value=x,T.locale=x,Ka(T,l.value,s.value))}),kt(n.fallbackLocale,x=>{o&&(s.value=x,T.fallbackLocale=x,Ka(T,l.value,s.value))}));const te={id:Fg,locale:B,fallbackLocale:Y,get inheritLocale(){return o},set inheritLocale(x){o=x,x&&n&&(l.value=n.locale.value,s.value=n.fallbackLocale.value,Ka(T,l.value,s.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:V,get modifiers(){return w},get pluralRules(){return I||{}},get isGlobal(){return i},get missingWarn(){return h},set missingWarn(x){h=x,T.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(x){p=x,T.fallbackWarn=p},get fallbackRoot(){return d},set fallbackRoot(x){d=x},get fallbackFormat(){return g},set fallbackFormat(x){g=x,T.fallbackFormat=g},get warnHtmlMessage(){return y},set warnHtmlMessage(x){y=x,T.warnHtmlMessage=x},get escapeParameter(){return m},set escapeParameter(x){m=x,T.escapeParameter=x},t:ie,getLocaleMessage:k,setLocaleMessage:z,mergeLocaleMessage:K,getPostTranslationHandler:A,setPostTranslationHandler:M,getMissingHandler:F,setMissingHandler:D,[Og]:Ze};return te.datetimeFormats=P,te.numberFormats=O,te.rt=ce,te.te=J,te.tm=E,te.d=de,te.n=ye,te.getDateTimeFormat=Z,te.setDateTimeFormat=_,te.mergeDateTimeFormat=S,te.getNumberFormat=N,te.setNumberFormat=U,te.mergeNumberFormat=W,te[xg]=t,te[hu]=Ke,te[pu]=Bt,te[gu]=Ft,te}function B2(e){const n=fe(e.locale)?e.locale:Qa,t=fe(e.fallbackLocale)||st(e.fallbackLocale)||Le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,i=nt(e.missing)?e.missing:void 0,r=qe(e.silentTranslationWarn)||Qr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=qe(e.silentFallbackWarn)||Qr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=qe(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,s=Le(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=nt(e.postTranslation)?e.postTranslation:void 0,f=fe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,p=qe(e.sync)?e.sync:!0;let d=e.messages;if(Le(e.sharedMessages)){const w=e.sharedMessages;d=Object.keys(w).reduce((I,T)=>(gt(I[T]||(I[T]={}),w[T]),I),d||{})}const{__i18n:g,__root:b,__injectWithOption:v}=e,C=e.datetimeFormats,y=e.numberFormats,m=e.flatJson;return{locale:n,fallbackLocale:t,messages:d,flatJson:m,datetimeFormats:C,numberFormats:y,missing:i,missingWarn:r,fallbackWarn:a,fallbackRoot:o,fallbackFormat:l,modifiers:s,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:p,__i18n:g,__root:b,__injectWithOption:v}}function vu(e={}){const n=Is(B2(e)),{__extender:t}=e,i={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return qe(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=qe(r)?!r:r},get silentFallbackWarn(){return qe(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=qe(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){return Reflect.apply(n.t,n,[...r])},rt(...r){return Reflect.apply(n.rt,n,[...r])},te(r,a){return n.te(r,a)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,a){n.setLocaleMessage(r,a)},mergeLocaleMessage(r,a){n.mergeLocaleMessage(r,a)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,a){n.setDateTimeFormat(r,a)},mergeDateTimeFormat(r,a){n.mergeDateTimeFormat(r,a)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,a){n.setNumberFormat(r,a)},mergeNumberFormat(r,a){n.mergeNumberFormat(r,a)}};return i.__extender=t,i}function U2(e,n,t){return{beforeCreate(){const i=Ja();if(!i)throw Kt(et.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const a=r.i18n;if(r.__i18n&&(a.__i18n=r.__i18n),a.__root=n,this===this.$root)this.$i18n=Ug(e,a);else{a.__injectWithOption=!0,a.__extender=t.__vueI18nExtend,this.$i18n=vu(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Ug(e,r);else{this.$i18n=vu({__i18n:r.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:n});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Rg(n,r,r),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),t.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const i=Ja();if(!i)throw Kt(et.UNEXPECTED_ERROR);const r=this.$i18n;r&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r?.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),t.__deleteInstance(i),delete this.$i18n)}}}function Ug(e,n){e.locale=n.locale||e.locale,e.fallbackLocale=n.fallbackLocale||e.fallbackLocale,e.missing=n.missing||e.missing,e.silentTranslationWarn=n.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=n.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=n.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=n.postTranslation||e.postTranslation,e.warnHtmlInMessage=n.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=n.escapeParameterHtml||e.escapeParameterHtml,e.sync=n.sync||e.sync,e.__composer[Og](n.pluralizationRules||e.pluralizationRules);const t=mu(e.locale,{messages:n.messages,__i18n:n.__i18n});return Object.keys(t).forEach(i=>e.mergeLocaleMessage(i,t[i])),n.datetimeFormats&&Object.keys(n.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,n.datetimeFormats[i])),n.numberFormats&&Object.keys(n.numberFormats).forEach(i=>e.mergeNumberFormat(i,n.numberFormats[i])),e}var bu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function j2({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((t,i)=>[...t,...i.type===He?i.children:[i]],[]):n.reduce((t,i)=>{const r=e[i];return r&&(t[i]=r()),t},Ge())}function jg(){return He}var qg=Ye({name:"i18n-t",props:gt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>pt(e)||!isNaN(e)}},bu),setup(e,n){const{slots:t,attrs:i}=n,r=e.i18n||Rt({useScope:e.scope,__useComponent:!0});return()=>{const a=()=>{const s=Object.keys(t).filter(f=>f[0]!=="_"),c=Ge();e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=fe(e.plural)?+e.plural:e.plural);const u=j2(n,s);return r[hu](e.keypath,u,c)},o=gt(Ge(),i),l=fe(e.tag)||$e(e.tag)?e.tag:jg();return $e(l)?Rr(l,o,{default:a}):Rr(l,o,a())}}});function q2(e){return st(e)&&!fe(e[0])}function $g(e,n,t,i){const{slots:r,attrs:a}=n;return()=>{const o=()=>{const c={part:!0};let u=Ge();e.locale&&(c.locale=e.locale),fe(e.format)?c.key=e.format:$e(e.format)&&(fe(e.format.key)&&(c.key=e.format.key),u=Object.keys(e.format).reduce((p,d)=>t.includes(d)?gt(Ge(),p,{[d]:e.format[d]}):p,Ge()));const f=i(e.value,c,u);let h=[c.key];return st(f)?h=f.map((p,d)=>{const g=r[p.type],b=g?g({[p.type]:p.value,index:d,parts:f}):[p.value];return q2(b)&&(b[0].key=`${p.type}-${d}`),b}):fe(f)&&(h=[f]),h},l=gt(Ge(),a),s=fe(e.tag)||$e(e.tag)?e.tag:jg();return $e(s)?Rr(s,l,{default:o}):Rr(s,l,o())}}var zg=Ye({name:"i18n-n",props:gt({value:{type:Number,required:!0},format:{type:[String,Object]}},bu),setup(e,n){const t=e.i18n||Rt({useScope:e.scope,__useComponent:!0});return $g(e,n,Eg,(...i)=>t[gu](...i))}});function $2(e,n){const t=e;if(e.mode==="composition")return t.__getInstance(n)||e.global;{const i=t.__getInstance(n);return i!=null?i.__composer:e.global.__composer}}function z2(e){const n=o=>{const{instance:l,value:s}=o;if(!l||!l.$)throw Kt(et.UNEXPECTED_ERROR);const c=$2(e,l.$),u=Vg(s);return[Reflect.apply(c.t,c,[...Hg(u)]),c]};return{created:(o,l)=>{const[s,c]=n(l);As&&(o.__i18nWatcher=kt(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=c,o.textContent=s},unmounted:o=>{As&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const s=o.__composer,c=Vg(l);o.textContent=Reflect.apply(s.t,s,[...Hg(c)])}},getSSRProps:o=>{const[l]=n(o);return{textContent:l}}}}function Vg(e){if(fe(e))return{path:e};if(Le(e)){if(!("path"in e))throw Kt(et.REQUIRED_VALUE,"path");return e}else throw Kt(et.INVALID_VALUE)}function Hg(e){const{path:n,locale:t,args:i,choice:r,plural:a}=e,o={},l=i||{};return fe(t)&&(o.locale=t),pt(r)&&(o.plural=r),pt(a)&&(o.plural=a),[n,l,o]}function V2(e,n,...t){const i=Le(t[0])?t[0]:{};(!qe(i.globalInstall)||i.globalInstall)&&([qg.name,"I18nT"].forEach(r=>e.component(r,qg)),[zg.name,"I18nN"].forEach(r=>e.component(r,zg)),[Gg.name,"I18nD"].forEach(r=>e.component(r,Gg))),e.directive("t",z2(n))}var H2=fi("global-vue-i18n");function W2(e={}){const n=__VUE_I18N_LEGACY_API__&&qe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,t=qe(e.globalInjection)?e.globalInjection:!0,i=new Map,[r,a]=Y2(e,n),o=fi("");function l(f){return i.get(f)||null}function s(f,h){i.set(f,h)}function c(f){i.delete(f)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,u),Le(h[0])){const g=h[0];u.__composerExtend=g.__composerExtend,u.__vueI18nExtend=g.__vueI18nExtend}let p=null;!n&&t&&(p=e_(f,u.global)),__VUE_I18N_FULL_INSTALL__&&V2(f,u,...h),__VUE_I18N_LEGACY_API__&&n&&f.mixin(U2(a,a.__composer,u));const d=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),d()}},get global(){return a},dispose(){r.stop()},__instances:i,__getInstance:l,__setInstance:s,__deleteInstance:c};return u}function Rt(e={}){const n=Ja();if(n==null)throw Kt(et.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Kt(et.NOT_INSTALLED);const t=G2(n),i=K2(t),r=Ng(n),a=Q2(e,r);if(a==="global")return Rg(i,e,r),i;if(a==="parent"){let s=Wg(t,n,e.__useComponent);return s==null&&(s=i),s}if(a==="isolated"){if(t.mode!=="composition")throw Kt(et.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const s=t,c=gt({},e);c.__root=Wg(t,n)||i;const u=Is(c);return s.__composerExtend&&(u[Jr]=s.__composerExtend(u)),El()&&gf(()=>{const f=u[Jr];f&&(f(),delete u[Jr])}),u}const o=t;let l=o.__getInstance(n);if(l==null){const s=gt({},e);"__i18n"in r&&(s.__i18n=r.__i18n),i&&(s.__root=i),l=Is(s),o.__composerExtend&&(l[Jr]=o.__composerExtend(l)),J2(o,n,l),o.__setInstance(n,l)}return l}function Y2(e,n){const t=pf(),i=__VUE_I18N_LEGACY_API__&&n?t.run(()=>vu(e)):t.run(()=>Is(e));if(i==null)throw Kt(et.UNEXPECTED_ERROR);return[t,i]}function G2(e){const n=ve(e.isCE?H2:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Kt(e.isCE?et.NOT_INSTALLED_WITH_PROVIDE:et.UNEXPECTED_ERROR);return n}function Q2(e,n){return ws(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function K2(e){return e.mode==="composition"?e.global:e.global.__composer}function Wg(e,n,t=!1){let i=null;const r=n.root;let a=Z2(n,t);for(;a!=null;){const o=e;if(e.mode==="composition")i=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(a);l!=null&&(i=l.__composer,t&&i&&!i[xg]&&(i=null))}if(i!=null||r===a)break;a=a.parent}return i}function Z2(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function J2(e,n,t){Xt(()=>{},n),ii(()=>{const i=t;e.__deleteInstance(n);const r=i[Jr];r&&(r(),delete i[Jr])},n)}var X2=["locale","fallbackLocale","availableLocales"],Yg=["t","rt","d","n","tm","te"];function e_(e,n){const t=Object.create(null);return X2.forEach(r=>{const a=Object.getOwnPropertyDescriptor(n,r);if(!a)throw Kt(et.UNEXPECTED_ERROR);const o=tt(a.value)?{get(){return a.value.value},set(l){a.value.value=l}}:{get(){return a.get&&a.get()}};Object.defineProperty(t,r,o)}),e.config.globalProperties.$i18n=t,Yg.forEach(r=>{const a=Object.getOwnPropertyDescriptor(n,r);if(!a||!a.value)throw Kt(et.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,a)}),()=>{delete e.config.globalProperties.$i18n,Yg.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}var Gg=Ye({name:"i18n-d",props:gt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bu),setup(e,n){const t=e.i18n||Rt({useScope:e.scope,__useComponent:!0});return $g(e,n,wg,(...i)=>t[pu](...i))}});if(P2(),g2(Zw),m2(d2),v2(ou),__INTLIFY_PROD_DEVTOOLS__){const e=rr();e.__INTLIFY__=!0,Jw(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var t_={Submit:"Chat",Name:"Name",Email:"Email",OfflineEnterValidEmail:"I'm sorry, that doesn't look like an email address. Can you try again?",FieldValidation:"Required field",OfflineSubmit:"Send",FieldsReplacement:"Please click Chat to initiate a chat with an agent",ChatIntro:"Could we have your contact info ?",CloseButton:"Close",PhoneText:"Phone",EnterValidPhone:"Invalid phone number",EnterValidName:"Invalid name",EnterValidEmail:"Invalid email",MaxCharactersReached:"Maximum characters reached",AuthEmailMessage:"Could we have your email?",AuthNameMessage:"Could we have your name?",GdprDefaultMessage:"I agree that my personal data to be processed and for the use of cookies in order to engage in a chat processed by COMPANY, for the purpose of Chat/Support for the time of  30 day(s) as per the GDPR.",DepartmentMessage:"Please select department"},n_={TypeYourMessage:"Type your message...",MessageNotDeliveredError:"A network related error occurred. Message not delivered.",TryAgain:" Click here to try again. ",FileError:"Unable to upload selected file.",RateComment:"Tell us your feedback",RateFeedbackRequest:"Do you want to give us more detailed feedback?",RateRequest:"Rate your conversation",UnsupportedFileError:"Selected file isn't supported.",OperatorJoined:"Agent %%OPERATOR%% joined the chat",NetworkError:"A network related error occurred."},i_={OfflineNameMessage:"Could we have your name?",OfflineEmailMessage:"Could we have your email?",CharactersLimit:"Length cannot exceed 50 characters",OfflineFormInvalidEmail:"I'm sorry, that doesn't look like an email address. Can you try again?",OfflineFormInvalidName:"I'm sorry, the provided name is not valid."},r_={Ok:"OK",TryAgain:"Try again"},a_={InviteMessage:"Hello! How can we help you today?",EndingMessage:"Your session is over. Please feel free to contact us again!",NotAllowedError:"Allow microphone access from your browser",NotFoundError:"Microphone not found",ServiceUnavailable:"Service unavailable",UnavailableMessage:"We are away, leave us a message!",OperatorName:"Support",WindowTitle:"Live Chat & Talk",CallTitle:"Call Us",EndCallTitle:"End Call",PoweredBy:"Powered by 3CX",OfflineMessagePlaceholder:"Message",OfflineMessageSent:"We'll contact you soon.",InvalidIdErrorMessage:"Invalid ID. Contact the website admin. ID must match the Click2Talk friendly name",IsTyping:"is typing...",NewMessageTitleNotification:"New Message",ChatIsDisabled:"Chat is not available at the moment.",GreetingMessage:"Hey, we're here to help!",BlockMessage:"Your session is over because your ip banned by the agent",Dialing:"Dialing",Connected:"Connected",ChatWithUs:"Chat with us",CallingStatusTitle:"Calling...",MuteMic:"Mute",UnmuteMic:"Unmute",FullScreen:"Full screen",messageQueueTillAssigned:"Your messages are queued until an agent is assigned to you. Please bear with us a little while longer",NotRespondingStatusTitle:"Not responding",DisconnectStatusTitle:"Attempting to reconnect,",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},o_={StartNew:"Start new"},s_={Bad:"Bad",Good:"Good",Neutral:"Neutral",VeryBad:"Very bad",VeryGood:"Very good",GiveFeedback:"Yes",NoFeedback:"No"},l_={Auth:t_,Chat:n_,Offline:i_,MessageBox:r_,Inputs:a_,ChatCompleted:o_,Rate:s_},c_={Submit:"Chat",Name:"Nombre",Email:"Correo electrónico",OfflineEnterValidEmail:"Lo sentimos, eso no parece una dirección de correo. ¿Puede intentarlo de nuevo?",FieldValidation:"Campo requerido",OfflineSubmit:"Enviar",FieldsReplacement:"Por favor, haga clic en 'chat' para inciciar un chat con un agente",ChatIntro:"¿Podríamos tener su información de contacto?",CloseButton:"Cerrar",PhoneText:"Teléfono",EnterValidPhone:"Número de teléfono inválido",EnterValidName:"Nombre inválido",EnterValidEmail:"Correo electrónico inválido",MaxCharactersReached:"Número máximo de caracteres alcanzado",AuthEmailMessage:"¿Podría decirnos su correo electrónico?",AuthNameMessage:"¿Podría decirnos su nombre?",GdprDefaultMessage:"Estoy de acuerdo con que mis datos personales sean procesados y para el uso de cookies con el fin de participar en el chat gestionado por la EMPRESA, con el proposito de Chatear/Soporte por un tiempo de 30 días de acuerdo con GDPR.",DepartmentMessage:"Por favor, seleccione el departamento"},u_={TypeYourMessage:"Escriba su mensaje...",MessageNotDeliveredError:"Se detectó un error relacionado con la red. Mensaje no entregado.",TryAgain:" Haga clic aquí para intentarlo de nuevo. ",FileError:"No es posible subir el archivo seleccionado.",RateComment:"Denos su opinión",RateFeedbackRequest:"¿Quiere darnos un feedback más detallado?",RateRequest:"Califique su conversación",UnsupportedFileError:"El archivo seleccionado no está soportado.",OperatorJoined:"El agente %%OPERATOR%% se unió al chat",NetworkError:"Se ha producido un error relacionado con la red."},f_={OfflineNameMessage:"¿Podemos tener su nombre?",OfflineEmailMessage:"¿Podemos tener su correo electrónico?",CharactersLimit:"La extensión no puede ser mayor de 50 caracteres",OfflineFormInvalidEmail:"Lo sentimos, eso no parece una dirección de correo. ¿Puede intentarlo de nuevo?",OfflineFormInvalidName:"Lo sentimos, el nombre proporcionado no es válido."},d_={Ok:"Aceptar",TryAgain:"Inténtelo de nuevo"},h_={InviteMessage:"¡Hola! ¿Cómo puedo ayudarle el día de hoy?",EndingMessage:"Su sesión ha terminado. ¡Por favor, no dude en contactarnos de nuevo!",NotAllowedError:"Permitir el acceso a su micrófono por parte del navegador",NotFoundError:"No se encontró un micrófono",ServiceUnavailable:"Servicio no disponible",UnavailableMessage:"Ahora estamos ausentes, ¡Déjenos un mensaje!",OperatorName:"Soporte",WindowTitle:"Live Chat & Talk",CallTitle:"Llámanos",EndCallTitle:"Finalizar llamada",PoweredBy:"Powered By 3CX",OfflineMessagePlaceholder:"Mensaje",OfflineMessageSent:"Nos pondremos en contacto pronto.",InvalidIdErrorMessage:"ID inválido. Contacte al administrador del sitio web. El ID debe ser igual al nombre amistoso de Click2Talk",IsTyping:"está escribiendo...",NewMessageTitleNotification:"Nuevo mensaje",ChatIsDisabled:"El chat no está disponible en este momento.",GreetingMessage:"Hola, ¡Estamos aquí para ayudar!",BlockMessage:"Su sesión ha terminado porque su IP ha sido bloqueada por el agente",Dialing:"Llamando",Connected:"Conectado",ChatWithUs:"Chatea con nosotros",CallingStatusTitle:"Llamando...",MuteMic:"Silenciar",UnmuteMic:"Activar Sonido",FullScreen:"Pantalla completa",messageQueueTillAssigned:"Sus mensajes se ponen en cola hasta que se le asigna un agente. Por favor, tenga un poco más de paciencia",NotRespondingStatusTitle:"Sin respuesta",DisconnectStatusTitle:"Intentando reconectar",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},p_={StartNew:"Empezar un nuevo chat"},g_={Bad:"Malo",Good:"Bueno",Neutral:"Neutral",VeryBad:"Muy malo",VeryGood:"Muy bueno",GiveFeedback:"Sí",NoFeedback:"No"},m_={Auth:c_,Chat:u_,Offline:f_,MessageBox:d_,Inputs:h_,ChatCompleted:p_,Rate:g_},v_={Submit:"Chat",Name:"Name",Email:"E-Mail-Adresse",OfflineEnterValidEmail:"Dies sieht leider nicht nach einer E-Mail-Adresse aus. Bitte überprüfen Sie die Angabe.",FieldValidation:"Pflichtfeld",OfflineSubmit:"Senden",FieldsReplacement:'Bitte klicken Sie auf "Chat", um einen Chat mit einem Agenten zu starten',ChatIntro:"Könnten Sie uns bitte Ihre Kontaktinformationen mitteilen?",CloseButton:"Schließen",PhoneText:"Telefonnummer",EnterValidPhone:"Ungültige Telefonnummer",EnterValidName:"Ungültiger Name",EnterValidEmail:"Ungültige E-Mail-Adresse",MaxCharactersReached:"Maximale Anzahl an Zeichen erreicht",AuthEmailMessage:"Könnten Sie uns bitte Ihre E-Mail-Adresse mitteilen?",AuthNameMessage:"Könnten Sie uns bitte Ihren Namen mitteilen?",GdprDefaultMessage:"Ich stimme der Verarbeitung meiner personenbezogenen Daten und der Verwendung von Cookies gemäß der DSGVO für die Dauer von 30 Tagen zu, um an einem von UNTERNEHMEN durchgeführten Chat zum Zwecke des Chats/Supports teilzunehmen.",DepartmentMessage:"Bitte eine Abteilung wählen"},b_={TypeYourMessage:"Geben Sie Ihre Nachricht ein ...",MessageNotDeliveredError:"Ein Netzwerkfehler ist aufgetreten. Nachricht nicht zugestellt.",TryAgain:" Klicken Sie hier, um es erneut zu versuchen.",FileError:"Ausgewählte Datei kann nicht hochgeladen werden.",RateComment:"Teilen Sie uns bitte Ihr Feedback mit",RateFeedbackRequest:"Möchten Sie uns detaillierteres Feedback geben?",RateRequest:"Bitte bewerten Sie Ihr Gespräch",UnsupportedFileError:"Die ausgewählte Datei wird nicht unterstützt.",OperatorJoined:"Agent %%OPERATOR%% ist dem Chat beigetreten",NetworkError:"Ein Netzwerkfehler ist aufgetreten."},y_={OfflineNameMessage:"Könnten Sie uns bitte Ihren Namen mitteilen?",OfflineEmailMessage:"Könnten Sie uns bitte Ihre E-Mail-Adresse mitteilen?",CharactersLimit:"Die maximale Länge beträgt 50 Zeichen",OfflineFormInvalidEmail:"Dies sieht leider nicht nach einer E-Mail-Adresse aus. Bitte überprüfen Sie die Angabe.",OfflineFormInvalidName:"Es tut mir leid, der angegebene Name ist ungültig."},A_={Ok:"OK",TryAgain:"Versuchen Sie es noch einmal"},w_={InviteMessage:"Hallo! Wie können wir Ihnen weiterhelfen?",EndingMessage:"Ihre Sitzung ist beendet. Sie können uns gerne jederzeit erneut kontaktieren.",NotAllowedError:"Ermöglichen Sie den Mikrofonzugriff über Ihren Browser",NotFoundError:"Mikrofon nicht gefunden",ServiceUnavailable:"Dienst nicht verfügbar",UnavailableMessage:"Aktuell ist leider kein Agent verfügbar. Bitte hinterlassen Sie uns eine Nachricht.",OperatorName:"Support",WindowTitle:"3CX Live Chat & Talk",CallTitle:"Rufen Sie uns an",EndCallTitle:"Anruf beenden",PoweredBy:"Powered by 3CX",OfflineMessagePlaceholder:"Nachricht",OfflineMessageSent:"Wir werden uns schnellstmöglich bei Ihnen melden.",InvalidIdErrorMessage:"Ungültige ID. Wenden Sie sich an den Website-Administrator. Die ID muss mit dem Click2Talk-Anzeigenamen übereinstimmen",IsTyping:"tippt ...",NewMessageTitleNotification:"Neue Nachricht",ChatIsDisabled:"Der Chat ist momentan nicht verfügbar.",GreetingMessage:"Hallo, wie können wir Ihnen weiterhelfen?",BlockMessage:"Ihre Sitzung ist beendet, da Ihre IP-Adresse vom Agenten gesperrt wurde",Dialing:"Wählt",Connected:"Verbunden",ChatWithUs:"Chatten Sie mit uns",CallingStatusTitle:"Anruf erfolgt ...",MuteMic:"Stumm",UnmuteMic:"Stumm aufh.",FullScreen:"Vollbild",messageQueueTillAssigned:"Ihre Nachrichten befinden sich in der Warteschlange, bis Ihnen ein Agent zugewiesen wird. Vielen Dank für Ihre Geduld!",NotRespondingStatusTitle:"keine Antwort",DisconnectStatusTitle:"Versuch zur Wiederverbindung",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},__={StartNew:"Neu anfangen"},C_={Bad:"Schlecht",Good:"Gut",Neutral:"Neutral",VeryBad:"Sehr schlecht",VeryGood:"Sehr gut",GiveFeedback:"Ja",NoFeedback:"Nein"},E_={Auth:v_,Chat:b_,Offline:y_,MessageBox:A_,Inputs:w_,ChatCompleted:__,Rate:C_},S_={Submit:"Chat",Name:"Nom",Email:"Courriel",OfflineEnterValidEmail:"Désolé, cela ne ressemble pas à une adresse électronique. Pouvez-vous réessayer ?",FieldValidation:"Champ obligatoire",OfflineSubmit:"Envoyer",FieldsReplacement:"Cliquez sur 'Chat' pour commencer une discussion avec un agent",ChatIntro:"Pouvons-nous avoir vos coordonnées ?",CloseButton:"Fermer",PhoneText:"Téléphone",EnterValidPhone:"Numéro de téléphone invalide",EnterValidName:"Nom invalide",EnterValidEmail:"Courriel invalide",MaxCharactersReached:"Nombre maximum de caractères atteint",AuthEmailMessage:"Pourriez-vous nous communiquer votre adresse électronique ?",AuthNameMessage:"Pourriez-vous nous communiquer votre nom ?",GdprDefaultMessage:"Je suis d'accord que mes données personnelles soient traitées et accepte l'utilisation de cookies afin de commencer un chat traité par SOCIÉTÉ, dans le but du chat/d'assistance pendant la durée de 30 jour(s) selon le RGPD.",DepartmentMessage:"Veuillez sélectionner un département"},M_={TypeYourMessage:"Écrivez votre message...",MessageNotDeliveredError:"Une erreur liée au réseau est survenue. Le message n'a pas pu être délivré.",TryAgain:" Cliquez ici pour réessayer. ",FileError:"Impossible d'uploader le fichier sélectionné.",RateComment:"Merci de nous donner votre avis",RateFeedbackRequest:"Souhaitez-vous nous faire part de commentaires plus détaillés ?",RateRequest:"Notez votre conversation",UnsupportedFileError:"Le fichier sélectionné n'est pas supporté.",OperatorJoined:"L'agent %%OPERATOR%% a rejoint le chat",NetworkError:"Une erreur liée au réseau s'est produite."},I_={OfflineNameMessage:"Pourriez-vous nous communiquer votre nom ?",OfflineEmailMessage:"Merci de nous donner votre courriel. ",CharactersLimit:"La longueur ne peut pas excéder 50 caractères",OfflineFormInvalidEmail:"Désolé, cela ne ressemble pas à une adresse électronique. Pouvez-vous réessayer ?",OfflineFormInvalidName:"Désolé, le nom fourni n'est pas valide."},T_={Ok:"OK",TryAgain:"Merci de réessayer"},k_={InviteMessage:"Bonjour, comment pouvons-nous vous aider ?",EndingMessage:"Votre session est terminée. N'hésitez pas à nous recontacter !",NotAllowedError:"Permettre l'accès au microphone depuis votre navigateur",NotFoundError:"Microphone introuvable",ServiceUnavailable:"Service indisponible",UnavailableMessage:"Nous sommes absents, laissez-nous un message !",OperatorName:"Support",WindowTitle:"Live Chat & Talk",CallTitle:"Appelez-nous",EndCallTitle:"Terminer l'appel",PoweredBy:"Powered By 3CX",OfflineMessagePlaceholder:"Message",OfflineMessageSent:"Nous vous contacterons bientôt.",InvalidIdErrorMessage:"ID invalide. Contactez l'administrateur de votre site web. L'ID doit correspondre au pseudonyme Click2Talk",IsTyping:"Est en train d'écrire...",NewMessageTitleNotification:"Nouveau message",ChatIsDisabled:"Le chat n'est pas disponible pour le moment.",GreetingMessage:"Bonjour, nous sommes là pour vous aider !",BlockMessage:"Votre chat est terminé car votre IP a été bannie par l'agent",Dialing:"Appel en cours\r",Connected:"Connecté",ChatWithUs:"Discutez avec nous",CallingStatusTitle:"En cours d'appel...",MuteMic:"Couper le son",UnmuteMic:"Rétablir le son",FullScreen:"Plein écran",messageQueueTillAssigned:"Vos messages sont mis en attente jusqu'à ce qu'un agent vous soit attribué. Veuillez patienter encore un peu.",NotRespondingStatusTitle:"Pas de réponse",DisconnectStatusTitle:"Tentative de reconnexion",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},O_={StartNew:"Commencer un nouveau chat"},x_={Bad:"Mauvais",Good:"Bon",Neutral:"Neutre",VeryBad:"Très mauvais",VeryGood:"Très bon",GiveFeedback:"Oui",NoFeedback:"Non"},N_={Auth:S_,Chat:M_,Offline:I_,MessageBox:T_,Inputs:k_,ChatCompleted:O_,Rate:x_},R_={Submit:"Chat",Name:"Nome",Email:"Email",OfflineEnterValidEmail:"Mi spiace ma questo non sembra un indirizzo mail. Puoi riprovare?",FieldValidation:"Campo obbligatorio",OfflineSubmit:"Invia",FieldsReplacement:"Clicca su 'Chat' per avviare una chat con un agente",ChatIntro:"Possiamo avere i tuoi dati di contatto?",CloseButton:"Chiuso",PhoneText:"Telefono",EnterValidPhone:"Numero di telefono non valido",EnterValidName:"Nome non valida",EnterValidEmail:"Email non valida",MaxCharactersReached:"Numero massimo di caratteri raggiunto",AuthEmailMessage:"Possiamo avere la tua email?",AuthNameMessage:"Possiamo avere il tuo nome?",GdprDefaultMessage:"Acconsento al trattamento dei miei dati personali e all'uso dei cookie per partecipare ad una chat elaborata dalla SOCIETÀ, ai fini della chat/assistenza per un periodo di 30 giorni come previsto dal GDPR.",DepartmentMessage:"Si prega di selezione il dipartimento"},L_={TypeYourMessage:"Scrivi il tuo messaggio ...",MessageNotDeliveredError:"Si è verificato un errore di rete. Messaggio non consegnato.",TryAgain:" Clicca qui per riprovare. ",FileError:"Impossibile caricare il file selezionato.",RateComment:"Dacci il tuo parere",RateFeedbackRequest:"Vuoi darci un parere più dettagliato?",RateRequest:"Valuta la tua conversazione",UnsupportedFileError:"Il file selezionato non è supportato.",OperatorJoined:"Agente %%OPERATOR%% collegato alla chat",NetworkError:"Si è verificato un errore di rete."},P_={OfflineNameMessage:"Possiamo avere il tuo nome?",OfflineEmailMessage:"Possiamo avere la tua email?",CharactersLimit:"Massimo 50 caratteri consentiti",OfflineFormInvalidEmail:"Mi spiace ma questo non sembra un indirizzo mail. Puoi riprovare?",OfflineFormInvalidName:"Il nome fornito non è valido."},D_={Ok:"OK",TryAgain:"Riprova"},F_={InviteMessage:"Ciao! Come possiamo aiutarti oggi?",EndingMessage:"La sessione è terminata. Non esitare a contattarci di nuovo!",NotAllowedError:"Consenti l'accesso al microfono dal tuo browser",NotFoundError:"Microfono non trovato",ServiceUnavailable:"Servizio non disponibile",UnavailableMessage:"Siamo assenti, lasciaci un messaggio!",OperatorName:"Supporto",WindowTitle:"Live Chat & Talk",CallTitle:"Chiamaci",EndCallTitle:"Termina chiamata",PoweredBy:"Powered By 3CX",OfflineMessagePlaceholder:"Messaggio",OfflineMessageSent:"TI contatteremo al più presto.",InvalidIdErrorMessage:"ID non valido. Contatta l'amministratore del sito web. L'ID deve corrispondere al nome Click2Talk",IsTyping:"Sta scrivendo...",NewMessageTitleNotification:"Nuovo Messaggio",ChatIsDisabled:"La Chat non è al momento disponibile.",GreetingMessage:"Ciao, siamo qui per aiutare!",BlockMessage:"La tua sessione è terminata perché il tuo ip è stato bannato dall'agente",Dialing:"In chiamata",Connected:"Connesso",ChatWithUs:"Chatta con noi",CallingStatusTitle:"In chiamata...",MuteMic:"Disattiva audio",UnmuteMic:"Attiva audio",FullScreen:"Schermo intero",messageQueueTillAssigned:"I tuoi messaggi sono stati messi in coda finché non ti verrà assegnato un agente. Ti preghiamo di pazientare ancora un pò",NotRespondingStatusTitle:"Nessuna risposta",DisconnectStatusTitle:"Tentativo di riconnessione",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},B_={StartNew:"Inizia un nuova chat"},U_={Bad:"Male",Good:"Bene",Neutral:"Neutrale",VeryBad:"Molto male",VeryGood:"Molto bene",GiveFeedback:"Si",NoFeedback:"No"},j_={Auth:R_,Chat:L_,Offline:P_,MessageBox:D_,Inputs:F_,ChatCompleted:B_,Rate:U_},q_={Submit:"Czat",Name:"Przedstaw się",Email:"Email",OfflineEnterValidEmail:"Przykro mi, to nie wygląda jak adres email. Czy możesz spróbować ponownie?",FieldValidation:"Pole wymagane",OfflineSubmit:"Wyślij",FieldsReplacement:'Kliknij "Czat", aby rozpocząć rozmowę z agentem',ChatIntro:"Czy możemy prosić o Twoje imię i adres e-mail?",CloseButton:"Zamknij",PhoneText:"Telefon",EnterValidPhone:"Nieprawidłowy numer telefonu",EnterValidName:"Nieprawidłowa nazwa",EnterValidEmail:"Nieprawidłowy email",MaxCharactersReached:"Osiągnięto maksymalną ilość znaków",AuthEmailMessage:"Czy możesz podać swój email?",AuthNameMessage:"Czy możesz podać swoje imię?",GdprDefaultMessage:"Wyrażam zgodę na przetwarzanie moich danych osobowych i na użycie ciasteczek w celu przeprowadzenia czatu procesowanego przez FIRMĘ, w celu rozmowy/obsługi, przez 30 dni, zgodnie z polityką prywatności.",DepartmentMessage:"Wybierz dział"},$_={TypeYourMessage:"Wpisz swoją wiadomość….",MessageNotDeliveredError:"Błąd sieci. Wiadomość nie dostarczona.",TryAgain:" Kliknij tutaj, aby spróbować ponownie. ",FileError:"Nie można załadować wybranego pliku.",RateComment:"Podziel się swoją opinią",RateFeedbackRequest:"Czy chesz podać nam więcej szczegółów?",RateRequest:"Oceń swoją rozmowę",UnsupportedFileError:"Wybrany plik nie jest wspierany.",OperatorJoined:"Agent %%OPERATOR%% dołączył do czatu",NetworkError:"Wystąpił błąd związany z siecią."},z_={OfflineNameMessage:"Czy możesz się przedstawić?",OfflineEmailMessage:"Czy możesz podać swój email?",CharactersLimit:"Długość nie może przekraczać 50 znaków",OfflineFormInvalidEmail:"Przykro mi, to nie wygląda jak adres email. Czy możesz spróbować ponownie?",OfflineFormInvalidName:"Przykro mi, podana nazwa jest nieprawidłowa."},V_={Ok:"OK",TryAgain:"Spróbuj ponownie"},H_={InviteMessage:"Witaj! Jak możemy Ci dziś pomóc?",EndingMessage:"Twoja sesja się zakończyła. Zapraszamy do ponownego kontaktu!",NotAllowedError:"Zezwól na dostęp do mikrofonu swojej przeglądarce",NotFoundError:"Nie znaleziono mikrofonu",ServiceUnavailable:"Usługa niedostępna",UnavailableMessage:"Nie ma nas, zostaw wiadomość!",OperatorName:"Wsparcie",WindowTitle:"Chat i rozmowa na żywo",CallTitle:"Zadzwoń do nas",EndCallTitle:"Zakończ rozmowę",PoweredBy:"Wspierane przez 3CX",OfflineMessagePlaceholder:"Wiadomość",OfflineMessageSent:"Wkrótce się z Tobą skontaktujemy.",InvalidIdErrorMessage:"Nieprawidłowe ID. Skontaktuj się z administratorem strony. ID musi odpowiadać Przyjaznej nazwie Click2Talk",IsTyping:"Pisze…",NewMessageTitleNotification:"Nowa wiadomość",ChatIsDisabled:"Czat jest w tym momencie niedostępny.",GreetingMessage:"Cześć, jesteśmy tu żeby pomóc!",BlockMessage:"Sesja zakończyła się gdyż agent zablokował Twój adres IP",Dialing:"Wybieranie",Connected:"Połączony",ChatWithUs:"Czat z nami",CallingStatusTitle:"Dzwonię...",MuteMic:"Wycisz",UnmuteMic:"Wł. dźwięk",FullScreen:"Pełny ekran",messageQueueTillAssigned:"Twoje wiadomości czekają w kolejce na przypisanie agenta. Prosimy o wyrozumiałość",NotRespondingStatusTitle:"Brak odpowiedzi",DisconnectStatusTitle:"Próba ponownego połączenia",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},W_={StartNew:"Zacznij nowy"},Y_={Bad:"Źle",Good:"Dobrze",Neutral:"Neutralnie",VeryBad:"Bardzo źle",VeryGood:"Bardzo dobrze",GiveFeedback:"Tak",NoFeedback:"Nie"},G_={Auth:q_,Chat:$_,Offline:z_,MessageBox:V_,Inputs:H_,ChatCompleted:W_,Rate:Y_},Q_={Submit:"Начать чат",Name:"Имя",Email:"E-mail",OfflineEnterValidEmail:"Это не похоже на адрес электронной почты. Можете попробовать еще раз?",FieldValidation:"Необходимое поле",OfflineSubmit:"Отправить",FieldsReplacement:"Нажмите 'Начать чат', чтобы связаться с оператором",ChatIntro:"Можно узнать ваши контакты?",CloseButton:"Закрыть",PhoneText:"Телефон",EnterValidPhone:"Неверный номер",EnterValidName:"Неверный имя",EnterValidEmail:"Неверный e-mail",MaxCharactersReached:"Достигнуто предельное количество символов",AuthEmailMessage:"Могли бы вы указать ваш e-mail?",AuthNameMessage:"Могли бы вы указать ваше имя?",GdprDefaultMessage:"Я согласен, что мои персональные данные будут обработаны, а также на использование cookies. Данные используются для чата с КОМПАНИЕЙ. Чат используется для поддержки и консультаций. Данные хранятся 30 дней в соответсвии с GDPR.",DepartmentMessage:"Выберите отдел"},K_={TypeYourMessage:"Введите сообщение...",MessageNotDeliveredError:"Ошибка сети. Сообщение не доставлено.",TryAgain:" Нажмите, чтобы попробовать снова. ",FileError:"Невозможно загрузить выбранный файл.",RateComment:"Оставьте свой отзыв",RateFeedbackRequest:"Хотите оставить подробный отзыв?",RateRequest:"Оцените диалог с оператором",UnsupportedFileError:"Выбранный файл не поддерживается.",OperatorJoined:"Оператор %%OPERATOR%% подключился к чату",NetworkError:"Произошла сетевая ошибка."},Z_={OfflineNameMessage:"Могли бы вы указать ваше имя?",OfflineEmailMessage:"Могли бы вы указать ваш e-mail?",CharactersLimit:"Длина не должна превышать 50 символов",OfflineFormInvalidEmail:"Это не похоже на адрес электронной почты. Можете попробовать еще раз?",OfflineFormInvalidName:"Вы указали некорректное имя."},J_={Ok:"OK",TryAgain:"Попробуйте снова"},X_={InviteMessage:"Здравствуйте! Мы можем вам помочь?",EndingMessage:"Сессия завершена. Свяжитесь с нами, когда будет удобно!",NotAllowedError:"Разрешите доступ браузера к микрофону",NotFoundError:"Микрофон не найден",ServiceUnavailable:"Сервис недоступен",UnavailableMessage:"Сейчас мы не на связи. Пожалуйста, оставьте сообщение!",OperatorName:"Поддержка",WindowTitle:"Live Chat & Talk",CallTitle:"Позвонить",EndCallTitle:"Завершить вызов",PoweredBy:"Заряжено 3CX",OfflineMessagePlaceholder:"Сообщение",OfflineMessageSent:"Мы свяжемся с вами в ближайшее время.",InvalidIdErrorMessage:"Неверный ID. Свяжитесь с администратором сайта. ID должен соответствовать короткому имени в параметрах Click2Talk",IsTyping:"набирает...",NewMessageTitleNotification:"Новое сообщение",ChatIsDisabled:"Чат сейчас недоступен.",GreetingMessage:"Добрый день! Готовы вам помочь!",BlockMessage:"Сессия завершена, поскольку ваш IP-адрес заблокирован оператором",Dialing:"Набор",Connected:"Соединено",ChatWithUs:"Написать",CallingStatusTitle:"Вызов...",MuteMic:"Откл. звук",UnmuteMic:"Вкл. звук",FullScreen:"На весь экран",messageQueueTillAssigned:"Ваши сообщения находятся в очереди, пока мы подбираем свободного оператора. Подождите еще немного, пожалуйста",NotRespondingStatusTitle:"Не отвечает",DisconnectStatusTitle:"Попытка повторного подключения",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},eC={StartNew:"Начать новый чат"},tC={Bad:"Плохо",Good:"Хорошо",Neutral:"Нейтрально",VeryBad:"Очень плохо",VeryGood:"Очень хорошо",GiveFeedback:"Да",NoFeedback:"Нет"},nC={Auth:Q_,Chat:K_,Offline:Z_,MessageBox:J_,Inputs:X_,ChatCompleted:eC,Rate:tC},iC={Submit:"Bate-papo",Name:"Nome",Email:"E-mail",OfflineEnterValidEmail:"Desculpe, isso não parece ser um endereço de e-mail. Você pode tentar novamente?",FieldValidation:"Campo obrigatório",OfflineSubmit:"Enviar",FieldsReplacement:"Clique em 'Chat' para iniciar um bate-papo com um agente",ChatIntro:"Você poderia informar suas informações para contato?",CloseButton:"Fechar",PhoneText:"Telefone",EnterValidPhone:"Número de telefone inválido",EnterValidName:"Nome Inválido",EnterValidEmail:"E-mail Inválido",MaxCharactersReached:"Número máximo de caracteres atingido",AuthEmailMessage:"Você pode nos informar seu e-mail?",AuthNameMessage:"Você pode nos informar seu nome?",GdprDefaultMessage:"Concordo que meus dados pessoais sejam processados ​​para uso de cookies para participar de um chat realizado pela EMPRESA, para fins de bate-papo/suporte pelo período de 30 dia(s) conforme o GDPR.",DepartmentMessage:"Por favor, selecione o departamento"},rC={TypeYourMessage:"Escreva sua mensagem...",MessageNotDeliveredError:"Ocorreu um erro relacionado à rede. Mensagem não enviada.",TryAgain:" Clique aqui para tentar novamente ",FileError:"Não foi possível carregar o arquivo selecionado.",RateComment:"Dê sua opinião",RateFeedbackRequest:"Você deseja nos dar um feedback mais detalhado?",RateRequest:"Avalie sua conversa",UnsupportedFileError:"O arquivo selecionado não é suportado.",OperatorJoined:"Agente %%OPERATOR%% entrou no chat",NetworkError:"Ocorreu um erro relacionado com a rede."},aC={OfflineNameMessage:"Podemos saber o seu nome?",OfflineEmailMessage:"Podemos saber o seu e-mail?",CharactersLimit:"O comprimento não pode exceder 50 caracteres",OfflineFormInvalidEmail:"Desculpe, isso não parece ser um endereço de e-mail. Você pode tentar novamente?",OfflineFormInvalidName:"Desculpe, o nome fornecido não é válido."},oC={Ok:"Ok",TryAgain:"Tente novamente"},sC={InviteMessage:"Olá! Como podemos te ajudar hoje?",EndingMessage:"Sua sessão terminou. Por favor, sinta-se à vontade para nos contatar novamente!",NotAllowedError:"Permitir acesso ao microfone pelo seu navegador",NotFoundError:"Microfone não encontrado",ServiceUnavailable:"Serviço indisponível",UnavailableMessage:"Estamos fora, deixe-nos uma mensagem!",OperatorName:"Suporte",WindowTitle:"Chat ao vivo",CallTitle:"Entre em contato",EndCallTitle:"Terminar a chamada",PoweredBy:"Desenvolvido pela 3CX",OfflineMessagePlaceholder:"Mensagem",OfflineMessageSent:"Entraremos em contato em breve.",InvalidIdErrorMessage:"ID inválido. Entre em contato com o administrador do site. O ID deve corresponder ao utilizado no Click2Talk",IsTyping:"Digitando...",NewMessageTitleNotification:"Nova mensagem",ChatIsDisabled:"O chat não está disponível no momento.",GreetingMessage:"Ei, estamos aqui para ajudar!",BlockMessage:"Sua sessão acabou porque seu IP foi banido pelo agente",Dialing:"Discando",Connected:"Conectado",ChatWithUs:"Converse conosco",CallingStatusTitle:"Ligando...",MuteMic:"Mudo",UnmuteMic:"Desativar Mudo",FullScreen:"Tela Cheia",messageQueueTillAssigned:"As suas mensagens são enfileiradas até que um agente lhe seja designado. Por favor, aguarde mais um pouco",NotRespondingStatusTitle:"Não está respondendo",DisconnectStatusTitle:"Tentando reconectar",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},lC={StartNew:"Começe um novo"},cC={Bad:"Ruim",Good:"Bom",Neutral:"Neutro",VeryBad:"Muito ruim",VeryGood:"Muito bom",GiveFeedback:"Sim",NoFeedback:"Não"},yu={Auth:iC,Chat:rC,Offline:aC,MessageBox:oC,Inputs:sC,ChatCompleted:lC,Rate:cC},uC={Submit:"聊天",Name:"姓名",Email:"邮箱",OfflineEnterValidEmail:"很抱歉，该地址看起来不像电子邮箱地址。您可以重试吗？",FieldValidation:"必填字段",OfflineSubmit:"发送",FieldsReplacement:'请点击 "聊天"，开始与坐席交谈',ChatIntro:"能给我们您的联系方式吗？",CloseButton:"关闭",PhoneText:"电话",EnterValidPhone:"无效的电话号码",EnterValidName:"名称无效",EnterValidEmail:"无效的邮箱",MaxCharactersReached:"已达到最大字符限制",AuthEmailMessage:"能告诉我们您的邮箱吗？",AuthNameMessage:"能告诉我们您的姓名吗？",GdprDefaultMessage:"我同意根据 GDPR 处理我的个人数据并使用 cookie 进行公司处理的聊天，以提供聊天/支持的目的，期限为 30 天。",DepartmentMessage:"请选择部门"},fC={TypeYourMessage:"输入您的消息...",MessageNotDeliveredError:"发生网络相关错误。信息未送达。",TryAgain:" 点击此处再试一次 ",FileError:"无法上传所选文件。",RateComment:"告诉我们您的反馈",RateFeedbackRequest:"您是否想给我们更详细的反馈？",RateRequest:"为您的对话评分",UnsupportedFileError:"不支持所选文件。",OperatorJoined:"坐席%%OPERATOR%% 加入聊天",NetworkError:"发生网络相关错误。"},dC={OfflineNameMessage:"能告诉我们您的名字吗？",OfflineEmailMessage:"能告诉我们您的电子邮箱吗？",CharactersLimit:"长度不能超过50个字符",OfflineFormInvalidEmail:"很抱歉，该地址看起来不像电子邮箱地址。您可以重试吗？",OfflineFormInvalidName:"抱歉，您提供的名字无效。"},hC={Ok:"OK",TryAgain:"再次尝试"},pC={InviteMessage:"您好！请问有什么可以帮到您的？",EndingMessage:"您的会话结束了。请随时与我们联系！",NotAllowedError:"允许通过浏览器访问麦克风",NotFoundError:"未发现麦克风",ServiceUnavailable:"服务不可用",UnavailableMessage:"我们不在线，给我们留言吧!",OperatorName:"支持",WindowTitle:"实时聊天和通话",CallTitle:"致电我们",EndCallTitle:"结束通话",PoweredBy:"由3CX提供支持",OfflineMessagePlaceholder:"留言信息",OfflineMessageSent:"我们会尽快与您联系。",InvalidIdErrorMessage:"无效的ID。联系网站管理员。ID必须与Click2Talk友好名称匹配",IsTyping:"正在输入...",NewMessageTitleNotification:"新消息",ChatIsDisabled:"实时聊天暂不可用。",GreetingMessage:"嘿，很高兴为您服务！",BlockMessage:"你的会话已经结束，因为你的IP被坐席禁止了",Dialing:"拨号",Connected:"已连接",ChatWithUs:"与我们聊天",CallingStatusTitle:"呼叫...",MuteMic:"静音",UnmuteMic:"取消静音",FullScreen:"全屏",messageQueueTillAssigned:"您的信息会被排在队列中，直到为您分配坐席。请再忍耐一段时间",NotRespondingStatusTitle:"未响应",DisconnectStatusTitle:"尝试重新连接",Minimize:"Minimize",MuteNotifications:"Mute chat notifications",UnmuteNotifications:"Unmute chat notifications",AddFile:"Add File"},gC={StartNew:"开始新的聊天"},mC={Bad:"差",Good:"好",Neutral:"一般",VeryBad:"非常差",VeryGood:"非常好",GiveFeedback:"是",NoFeedback:"否"},Qg={Auth:uC,Chat:fC,Offline:dC,MessageBox:hC,Inputs:pC,ChatCompleted:gC,Rate:mC},Kg={en:l_,es:m_,de:E_,fr:N_,it:j_,pl:G_,ru:nC,pt_BR:yu,pt_PT:yu,pt:yu,zh:Qg,zh_CN:Qg},rn=W2({legacy:!1,locale:"en",messages:Kg}),Au=e=>n=>n.pipe(Tn(t=>t instanceof e),yt(t=>t)),Zg=e=>{const n=new Uint8Array(e),t=jp.decode(n,n.length);return delete t.MessageId,Object.values(t)[0]};function ea(e,n){return e?n?`${e.replace(/\/+$/,"")}/${n.replace(/^\/+/,"")}`:e:n}var wu=e=>{const{t:n}=rn.global;return typeof e=="string"?e:e instanceof Error?e.name==="NotAllowedError"?n("Inputs.NotAllowedError").toString():e.name==="NotFoundError"||e.name==="OverconstrainedError"?n("Inputs.NotFoundError").toString():e.name==="NetworkError"?n("Chat.NetworkError").toString():e.name==="messageQueue"?n("Inputs.messageQueueTillAssigned").toString():e.message:n("Inputs.ServiceUnavailable").toString()},Jg=(()=>{const{t:e}=rn.global,n=window.document.title,t=e("Inputs.NewMessageTitleNotification").toString();let i;const r=()=>{window.document.title=window.document.title===t?n:t},a=()=>{clearInterval(i),window.document.title=n,window.document.onmousemove=null,i=null};return{startBlinkWithStopOnMouseMove(){i||(i=setInterval(r,1e3),window.document.onmousemove=a)},startBlink(){i||(i=setInterval(r,1e3))},stopBlink(){i&&a()}}})(),ta=window.location.protocol==="https:"||window.location.host.startsWith("localhost")||window.location.origin==="voipc://electron";function Ts(e,n){n===void 0&&(n={});var t=n.selector,i=dy(n,["selector"]);return new it(function(r){var a=new AbortController,o=a.signal,l=!0,s=i.signal;if(s)if(s.aborted)a.abort();else{var c=function(){o.aborted||a.abort()};s.addEventListener("abort",c),r.add(function(){return s.removeEventListener("abort",c)})}var u=fs(fs({},i),{signal:o}),f=function(h){l=!1,r.error(h)};return fetch(e,u).then(function(h){t?vt(t(h)).subscribe(Je(r,void 0,function(){l=!1,r.complete()},f)):(l=!1,r.next(h),r.complete())}).catch(f),function(){l&&a.abort()}})}var pi=class{constructor(e){Object.assign(this,e)}name="";image=""},Li=new pi,Xa=class{constructor(e){Object.assign(this,e)}isNew=!1;chatState;startingConv=new Hc;idConversation=-1;status=Mt.BROWSE};function Xg(){try{return localStorage.getItem("callus.loggerenabled")==="true"}catch{return!1}}function vC(e){Xg()&&console.log("Response",e)}function bC(e){Xg()&&console.log(e)}function eo(e){console.error("call-us:",e)}var _u=()=>e=>e.pipe(jc({connector:()=>new ci(1),resetOnError:!1,resetOnComplete:!1})),yC=class ra{static Merge(n,t){return t.Action===Hr.FullUpdate||t.Action===Hr.Updated?ra.MergePlainObject(n,t):t.Action||Object.assign(n,t),n}static notify(n,t){const i=Reflect.get(n,`${t.toString()}$`);i!==void 0&&i.next(Reflect.get(n,t))}static MergePlainObject(n,t){n!==void 0&&Reflect.ownKeys(t).filter(i=>i!=="Action"&&i!=="Id").forEach(i=>{const r=Reflect.get(t,i),a=Reflect.get(n,i);if(r!==void 0){if(r instanceof Array){const o=r;if(o.length===0)return;if(o[0]instanceof Object){const l=a||[],s={};l.forEach(c=>{s[c.Id]=c}),o.forEach(c=>{const u=c.Id,f=s[u];switch(c.Action){case Hr.Deleted:delete s[u];break;case Hr.FullUpdate:s[u]=c;break;case Hr.Inserted:case Hr.Updated:s[u]=f===void 0?c:ra.Merge(f,c);break}}),Reflect.set(n,i,Object.values(s))}else Reflect.set(n,i,r)}else r instanceof Object?Reflect.set(n,i,a===void 0?r:ra.Merge(a,r)):Reflect.set(n,i,r);ra.notify(n,i)}})}},AC=class{sessionId;chatConversationId;error="";isOnline=new qr(!0);notificationChannelEndpoint;pbxEndpoint;endpoint;fileEndpoint;messagesSubject$=new Oe;messages$=this.messagesSubject$.asObservable();webRTCEndpoint=new Oi;conversation$=new ci(1);webRTCEndpoint$=new ci(1);sessionState=ui.Connected;supportsWebRTC;serverProvideSystemMessages;constructor(e,n){this.sessionId=n,this.pbxEndpoint=e,this.endpoint=ea(e,"/MyPhone/MPWebService.asmx"),this.fileEndpoint=ea(e,"/MyPhone/downloadChatFile/"),this.supportsWebRTC=!0,this.webRTCEndpoint$.next(this.webRTCEndpoint),this.serverProvideSystemMessages=!0,this.chatConversationId=0}notify(e){this.messagesSubject$.next(e)}getSessionUniqueCode(){return this.chatConversationId}onWebRtcEndpoint(e){this.webRTCEndpoint=yC.Merge(this.webRTCEndpoint,e),this.webRTCEndpoint$.next(this.webRTCEndpoint)}fileEndPoint(e){return`${this.fileEndpoint}${e}?sessionId=${this.sessionId}`}get(e){const n=e,t=new Error("network error");return t.name="NetworkError",Ts(this.endpoint,{headers:{"Content-Type":"application/octet-stream",MyPhoneSession:this.sessionId},method:"POST",body:jp.encode(n.toGenericMessage()).finish()}).pipe(mn(()=>ot(()=>t)),Ee(i=>i.ok?i.arrayBuffer():ot(()=>t)),yt(i=>{const r=Zg(i);if(vC(r),r instanceof bs&&!r.Success){const a=new Error(r.Message||`Received unsuccessful ack for ${n.constructor.name}`);if(r.ErrorType===9&&(a.name="messageQueue"),console.error(r.Message),a.state=r.ErrorType,!(e instanceof Wc&&r.ErrorType===32))throw a}return r}))}};function em(e){return e.MessageType===Vc.CMT_Normal}function wC(e,n){return new Yr({Messages:e.Messages.filter(t=>{const i=t.Recipients.find(r=>r.IsSender)?.IdRecipient;return n.Recipients.find(r=>r.Recipient.IdRecipient===i)?.Recipient.RecipientType!==Wr.CRT_Anonymous})})}function _C(e,n){const t=new AC(e,n.sessionId);return t.notificationChannelEndpoint=ea(`${new URL(e).protocol==="https:"?"wss:":"ws:"}${e.replace("http:","").replace("https:","")}`,`/ws/webclient?sessionId=${encodeURIComponent(n.sessionId)}&pass=${encodeURIComponent(n.pass)}`),t}var CC=class{pbxUrl;party;AddpTimeoutMs=2e4;constructor(e,n){this.pbxUrl=e,this.party=n}tokenStorageKey(){return`call-us-token-${encodeURIComponent(this.pbxUrl)}`}activeStorageKey(){return`call-us-chat-active-${encodeURIComponent(this.pbxUrl)+encodeURIComponent(this.party)}`}isChatActive(){return!!localStorage.getItem(this.activeStorageKey())}setChatActive(){localStorage.setItem(this.activeStorageKey(),"true")}dropChatActive(){localStorage.removeItem(this.activeStorageKey())}createClick2CallSession(e){const n=localStorage.getItem(this.tokenStorageKey());let t=ea(this.pbxUrl,`/MyPhone/c2clogin?login=true&c2cid=${encodeURIComponent(this.party)}`);e.email&&(t+=`&email=${encodeURIComponent(e.email)}`),e.name&&(t+=`&displayname=${encodeURIComponent(e.name)}`),e.phone&&(t+=`&phone=${encodeURIComponent(e.phone)}`);const i=Ts(t).pipe(Ee(r=>r.ok?r.json():ot(()=>rn.global.t("Inputs.ServiceUnavailable"))));return(n?Ts(ea(this.pbxUrl,`/MyPhone/c2clogin?login=true&c2cid=${encodeURIComponent(this.party)}&token=${encodeURIComponent(n)}`)).pipe(Ee(r=>r.ok?r.json():ot(()=>rn.global.t("Inputs.ServiceUnavailable"))),mn(()=>i)):i).pipe(Ii(r=>{r.token&&localStorage.setItem(this.tokenStorageKey(),r.token)}),mn(r=>r instanceof Response&&r.status===404?ot(()=>rn.global.t("Inputs.InvalidIdErrorMessage")):ot(()=>r)),yt(r=>_C(this.pbxUrl,r)))}createNotificationChannel(e){return new it(n=>{const t=new WebSocket(e.notificationChannelEndpoint);return t.binaryType="arraybuffer",t.onmessage=i=>n.next(i.data),t.onerror=i=>n.error(i),()=>t.close()}).pipe(Ky(this.AddpTimeoutMs),Tn(n=>n!=="ADDP"),OA(n=>n!=="START"),Cp(n=>{if(n==="START"){this.setChatActive();const i=new kp,r=new Up({register:!0});return Bc(e.get(i),e.get(r)).pipe(Tn(a=>!(a instanceof bs)))}if(n==="NOT AUTH"||n==="STOP"){e.onWebRtcEndpoint(new Oi);const i=new Xa({idConversation:e.getSessionUniqueCode(),status:Mt.ENDED_BY_AGENT});return e.notify(i),ot(()=>rn.global.t("Inputs.ServiceUnavailable"))}const t=Zg(n);return bC(t),at(t)}),jc())}processMyPhoneMessages(e,n,t){return new it(i=>{let r=!1,a=!1,o,l,s=new Hc;return t.subscribe({next:c=>{if(c instanceof Qc?(n.isOnline.next(c.Connected),o=c):c instanceof Oi?(n.onWebRtcEndpoint(c),a=!0):c instanceof Bp?(s=c.PartyInfo,n.conversation$.next(c.PartyInfo)):c instanceof Fp&&(s=c.Conversation,n.conversation$.next(c.Conversation),l||(n.chatConversationId=c.Conversation.IdConversation,l=c)),(e||l)&&a&&!r){if(i.next(n),l){const u=l.Conversation;l.IsNew||n.get(new Pp({Count:10,IdConversation:u.IdConversation})).subscribe({next:f=>{f.Messages=f.Messages.reverse().filter(em),n.notify(f)},error:()=>{}}),n.notify(new Xa({startingConv:u,idConversation:u.IdConversation,isNew:l.IsNew,chatState:o,status:Mt.ACTIVE}))}r=!0}c instanceof Yr&&(c=wC(c,s),c.Messages.length>0&&n.isOnline.next(!0),c.Messages=c.Messages.filter(em)),n.notify(c)},error:c=>i.error(c),complete:()=>i.complete()})})}createMySession(e,n=!1){return this.createClick2CallSession(e).pipe(Ee(t=>this.processMyPhoneMessages(n,t,this.createNotificationChannel(t))),mn(t=>at(iw(wu(t)))))}dropSession(){return this.dropChatActive(),at(!0)}getInfo(e){return Ts(e).pipe(Ee(n=>n.ok?n.json():ot(()=>new Error(`Info endpoint returned error: ${n.status}`))),yt(n=>{const t=n.profilePicture||"";return{isAvailable:n.isAvailable,isChatEnabled:n.isChatEnabled,isQueue:n.isQueue,operator:new pi({name:n.name,image:t?new URL(t,e).href:""}),webRtcCodecs:n.webRtcCodecs}}),_u())}};function EC(){const e=new Date,n=new ZA;return n.Year=e.getUTCFullYear(),n.Month=e.getUTCMonth()+1,n.Day=e.getUTCDate(),n.Hour=e.getUTCHours(),n.Minute=e.getUTCMinutes(),n.Second=e.getUTCSeconds(),n}var SC=["So what does this thing run on...gasoline?","No! It requires something with a little more kick...plutonium!","Wait, Doc, are you telling me...that this car is nuclear?","No, no, no! The plutonium is required to generate the 1.21 jigawatts needed to power the car!"],MC=class{sessionState;error;chatConversationId=-1;isOnline=new qr(!0);endpoint="";fileEndpoint="";messagesSubject$=new Oe;messages$;notificationChannelEndpoint="";pbxEndpoint="";serverProvideSystemMessages=!1;supportsWebRTC=!1;webRTCEndpoint=new Oi;conversation$=new ci;webRTCEndpoint$=new ci(1);notify(){}fileEndPoint(e){return""}get(e){return at(new bs({Success:!0}))}getSessionUniqueCode(){return-1}onWebRtcEndpoint(e){}sessionId="";constructor(e,n){this.sessionState=e,this.error=n,this.conversation$.next(new Hc({IdConversation:10,Recipients:[new xp({Recipient:new Op({RecipientType:Wr.CRT_Anonymous,IdRecipient:1,Name:"Marty"})}),new xp({Recipient:new Op({RecipientType:Wr.CRT_Local,IdRecipient:2,Name:"Doc"})})]})),this.webRTCEndpoint$.next(new Oi);const t=zt(SC.map((i,r)=>({id:r+1,isVisitor:r%2===0,message:i}))).pipe(Cp(i=>$a(at(new Wa({IdConversation:10,IdRecipient:i.isVisitor?1:2})).pipe(Tn(r=>r.IdRecipient===2),za(3e3)),at(new Yr({Messages:[new XA({Id:i.id,IdConversation:10,Recipients:[new JA({IsSender:!0,IdRecipient:i.isVisitor?1:2})],Time:EC(),Message:i.message})]})).pipe(za(1500)))));this.messages$=$a(at(new Xa({idConversation:1,chatState:new Qc({Connected:!0}),status:Mt.ACTIVE})).pipe(za(100)),t)}},IC=()=>new MC(ui.Connected,"Can' send request to idle session"),tm="Webvisitor";function TC(e){const n=localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{}}function kC(e){return e.QueueNo&&!e.TakenBy}function nm(e,n){if(kC(e))return new pi({name:n.operatorName,image:n.operatorIcon});const t=e.Recipients.find(i=>(i.Recipient.RecipientType===Wr.CRT_Local||i.Recipient.RecipientType===Wr.CRT_3cxBridge)&&!i.IsRemoved&&!i.IsWhisperer);if(t){const i=t.Recipient.Contact?.ContactImage;return new pi({name:t.Recipient.Name,image:i?new URL(i,n.channelUrl).href:n.operatorIcon})}}function OC(e,n){return e.conversation$.pipe(yt(t=>nm(t,n)))}function xC(e,n){return e.mySession$.pipe(Ee(t=>OC(t,n)))}function NC(e,n){n.add(e.mySession$.subscribe(t=>{e.hasSession=t.sessionState===ui.Connected}))}var RC=class{channelURL;party;demo;callsOnly;mySession$;connect$=new Oe;auth;hasSession;isAvaliable;chatMessages=[];authStorageKey(){return`call-us-auth-${encodeURIComponent(this.channelURL)}`}channel;constructor(e,n,t=!1,i=!1){this.channelURL=e,this.party=n,this.demo=t,this.callsOnly=i,this.channel=new CC(e,n),this.auth=TC(this.authStorageKey()),this.hasSession=!1,this.isAvaliable=!1,this.mySession$=this.connect$.pipe(Ee(r=>(r&&!this.auth&&this.setAuthentication({name:tm}),r&&this.auth?t?at(IC()):this.channel.createMySession(this.auth,i):at($p()))),$c($p()),_u())}closeSession(){this.connect$.next(!1)}reconnect(){this.connect$.next(!0)}setAuthentication(e){this.auth=e,!this.demo&&(e?localStorage.setItem(this.authStorageKey(),JSON.stringify(e)):localStorage.removeItem(this.authStorageKey()))}injectAuthenticationName(e){const n=this.auth?.name??"";return e.replace("%NAME%",n)}lastMessage(){return this.chatMessages[this.chatMessages.length-1]}clearMessages(){this.chatMessages=[]}notificationsOfType$(e){return this.mySession$.pipe(Ee(n=>n.messages$),Au(e))}get(e){return this.mySession$.pipe(kn(1),Ee(n=>n.sessionState!==ui.Connected?(this.reconnect(),this.mySession$.pipe(Tn(t=>t!==n))):at(n)),Ee(n=>n.get(e)),kn(1))}},LC=class{onError=new Oe;onRestored=new Oe;onMinimized=new Oe;onToggleCollapsed=new Oe;onRestart=new Oe;onLoaded=new Oe;onAnimationActivatedChange=new qr(!0);onChatInitiated=new qr(!1);onChatCompleted=new Oe;onClosed=new Oe;onClosed$=this.onClosed.asObservable().pipe(vs(this.onChatCompleted));onFileUpload=new Oe;onClientChatTyping=new Oe;onEnableNotification=new Oe;onToggleSoundNotification=new Oe;onSoundNotification=new Oe;onUnattendedMessage=new Oe;onAttendChat=new Oe;onTriggerFocusInput=new Oe;onShowMessage=new Oe;onScrollToBottom=new Oe},PC=class{activeLoaders;key;constructor(){this.activeLoaders={},this.key=0}show(e="default"){this.activeLoaders[e]=!0,this.key+=1}hide(e="default"){delete this.activeLoaders[e],this.key+=1}loading(e="default"){return this.activeLoaders[e]}},im="browser",rm=(typeof zc.default=="function"?zc.default:zc.default.default)({languages:Object.keys(Kg),fallback:"en"}),am={inviteMessage:{type:String,default:void 0},endingMessage:{type:String,default:void 0},firstResponseMessage:{type:String,default:""},unavailableMessage:{type:String,default:void 0},allowCall:{type:String,default:"true"},demo:{type:String,default:"false"},enableOnmobile:{type:String,default:"true"},enable:{type:String,default:"true"},allowMinimize:{type:String,default:"true"},minimized:{type:String,default:"false"},popupWhenOnline:{type:String,default:"false"},allowSoundnotifications:{type:String,default:"true"},enableMute:{type:String,default:"false"},soundnotificationUrl:{type:String,default:""},facebookIntegrationUrl:{type:String,default:""},twitterIntegrationUrl:{type:String,default:""},emailIntegrationUrl:{type:String,default:""},minimizedStyle:{type:String,default:"bubbleright"},bubblePosition:{type:String,default:"right"},animationStyle:{type:String,default:"none"},allowVideo:{type:String,default:"true"},authentication:{type:String,default:"none"},phonesystemUrl:{type:String,default:void 0},party:{type:String,default:""},operatorIcon:{type:String,default:""},windowIcon:{type:String,default:""},buttonIcon:{type:String,default:""},buttonIconType:{type:String,default:"default"},operatorName:{type:String,default:void 0},windowTitle:{type:String,default:void 0},enablePoweredby:{type:String,default:"true"},userIcon:{type:String,default:""},callTitle:{type:String,default:void 0},forceToOpen:{type:String,default:"false"},ignoreQueueownership:{type:String,default:"false"},showOperatorActualName:{type:String,default:"false"},aknowledgeReceived:{type:String,default:"true"},gdprEnabled:{type:String,default:"false"},filesEnabled:{type:String,default:"false"},offlineEnabled:{type:String,default:"true"},gdprMessage:{type:String,default:""},messageDateformat:{type:String,default:"both"},messageUserinfoFormat:{type:String,default:"both"},chatIcon:{type:String,default:""},chatLogo:{type:String,default:""},visitorName:{type:String,default:""},visitorEmail:{type:String,default:""},authenticationMessage:{type:String,default:""},startChatButtonText:{type:String,default:void 0},offlineFinishMessage:{type:String,default:void 0},greetingVisibility:{type:String,default:"none"},greetingMessage:{type:String,default:void 0},greetingOfflineVisibility:{type:String,default:"none"},chatDelay:{type:Number,default:0},greetingOfflineMessage:{type:String,default:void 0},offlineNameMessage:{type:String,default:void 0},offlineEmailMessage:{type:String,default:void 0},offlineFormInvalidEmail:{type:String,default:void 0},offlineFormMaximumCharactersReached:{type:String,default:void 0},offlineFormInvalidName:{type:String,default:void 0},enableDirectCall:{type:String,default:"false"},enableGa:{type:String,default:"false"},assetsGuid:{type:String,default:""},lang:{type:String,default:()=>rm}},om=(e,n=!1)=>{rn.global.locale.value=e.lang===im?rm:e.lang,e.lang===im?qi.default.locale(navigator.language):qi.default.locale(e.lang);const t=e.demo==="true",i=new LC,r=new PC,a=new RC(e.phonesystemUrl,e.party,t,n),o=a.channel;let l;return t?l=at({webRtcCodecs:[],isAvailable:!0,isChatEnabled:!0,isQueue:!1,operator:new pi({name:"Support"})}):l=o.getInfo(ea(e.phonesystemUrl,`/MyPhone/c2cinfo?c2cid=${encodeURIComponent(e.party)}`)),{preloadOperations$:new Oe().asObservable(),eventBus:i,loadingService:r,myChatService:a,currentChannel:o,info$:l,i18n:rn}};function Lt(){const e=new Ur;return ii(()=>{e.unsubscribe()}),e}var DC=class{callUsElement;enableFullScreen=!1;isFullScreen=!1;componentTop;componentBottom;componentLeft;componentRight;constructor(e){Object.assign(this,e)}goFullScreen(){if(!this.enableFullScreen||this.isFullScreen)return;this.isFullScreen=!0;const e=window.document.getElementsByTagName("body");e.length>0&&e[0].style.setProperty("overflow","hidden !important");const n=window.innerHeight*.01,t=document.documentElement.clientWidth*.01;window.document.documentElement.style.setProperty("--vh",`${n}px`),window.document.documentElement.style.setProperty("--vw",`${t}px`),window.addEventListener("resize",()=>{const i=window.innerHeight*.01,r=document.documentElement.clientWidth*.01;window.document.documentElement.style.setProperty("--vh",`${i}px`),window.document.documentElement.style.setProperty("--vw",`${r}px`)})}closeFullScreen(){if(!this.enableFullScreen||!this.isFullScreen)return;this.isFullScreen=!1;const e=window.document.getElementsByTagName("body");e.length>0&&e[0].style.setProperty("overflow","auto !important"),this.callUsElement&&(this.callUsElement.style.setProperty("top",this.componentTop??""),this.callUsElement.style.setProperty("bottom",this.componentBottom??""),this.callUsElement.style.setProperty("left",this.componentLeft??""),this.callUsElement.style.setProperty("right",this.componentRight??""))}getSavedPosition(){return{componentTop:this.componentTop,componentBottom:this.componentBottom,componentLeft:this.componentLeft,componentRight:this.componentRight}}},FC=class{enableGA=!1;mode="gtag";constructor(e){this.enableGA=e}isActive(){let e=!1;return this.enableGA&&(typeof window.gtag=="function"&&(e=!0),typeof window.ga=="function"&&(this.mode="ga",e=!0)),e}dispatchEvent(e,n,t="3CX Live Chat"){this.isActive()&&(this.mode==="gtag"?window.gtag("event",e,{event_label:n,event_category:t}):this.mode==="ga"&&window.ga("send",{hitType:"event",eventAction:e,eventLabel:n,eventCategory:t}))}chatInitiatedEvent(e){const n=localStorage.getItem("wplc-ga-initiated");(!n||e===void 0||n&&e&&parseInt(n,10)!==e.getSessionUniqueCode())&&(this.dispatchEvent("chat_init","ChatInitiated"),e!==void 0&&localStorage.setItem("wplc-ga-initiated",e.getSessionUniqueCode().toString(10)))}chatInteractionEvent(){sessionStorage.getItem("wplc-ga-interacted")||(this.dispatchEvent("chat_interaction","InteractionWithChat"),sessionStorage.setItem("wplc-ga-interacted","1"))}},sm=0,ks=1,Cu=2,BC=class{constructor(){this.atomCharacters="!#$%&'*+-/=?^_`{|}~",this.index=0,this.type=0}isControl(e){return e.charCodeAt(0)<=31||e.charCodeAt(0)===127}isDigit(e){return e>="0"&&e<="9"}isLetter(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"}isLetterOrDigit(e){return this.isLetter(e)||this.isDigit(e)}isAtom(e,n){return this.isControl(e)?!1:e.charCodeAt(0)<128?this.isLetterOrDigit(e)||this.atomCharacters.indexOf(e)!==-1:n}isDomain(e,n){return e.charCodeAt(0)<128?this.isLetter(e)||e==="-"?(this.type|=ks,!0):this.isDigit(e)?(this.type|=Cu,!0):!1:n?(this.type|=ks,!0):!1}isDomainStart(e,n){return e.charCodeAt(0)<128?this.isLetter(e)?(this.type=ks,!0):this.isDigit(e)?(this.type=Cu,!0):(this.type=sm,!1):n?(this.type=ks,!0):(this.type=sm,!1)}skipAtom(e,n){const t=this,i=t.index;for(;t.index<e.length&&t.isAtom(e[t.index],n);)t.index++;return t.index>i}skipSubDomain(e,n){const t=this,i=t.index;if(!this.isDomainStart(e[t.index],n))return!1;for(t.index++;t.index<e.length&&t.isDomain(e[t.index],n);)t.index++;return t.index===e.length&&t.index-i===1?!1:t.index-i<64&&e[t.index-1]!=="-"}skipDomain(e,n,t){const i=this;if(!i.skipSubDomain(e,t))return!1;if(i.index<e.length&&e[i.index]===".")do if(i.index++,i.index===e.length||!i.skipSubDomain(e,t))return!1;while(i.index<e.length&&e[i.index]===".");else if(!n)return!1;return i.type!==Cu}skipQuoted(e,n){const t=this;let i=!1;for(t.index++;t.index<e.length;){if(this.isControl(e[t.index])||e.charCodeAt(this.index)>=128&&!n)return!1;if(e[t.index]==="\\")i=!i;else if(i)i=!1;else if(e[t.index]==='"')break;t.index++}return t.index>=e.length||e[t.index]!=='"'?!1:(t.index++,!0)}skipIPv4Literal(e){const n=this;let t=0;for(;n.index<e.length&&t<4;){const i=n.index;let r=0;for(;n.index<e.length&&this.isDigit(e[n.index]);)r=r*10+(e[n.index]-"0"),n.index++;if(n.index===i||n.index-i>3||r>255)return!1;t++,t<4&&n.index<e.length&&e[n.index]==="."&&n.index++}return t===4}isHexDigit(e){return e>="A"&&e<="F"||e>="a"&&e<="f"||e>="0"&&e<="9"}skipIPv6Literal(e){const n=this;let t=!1,i=!1,r=0;for(;n.index<e.length;){let a=n.index;for(;n.index<e.length&&n.isHexDigit(e[n.index]);)n.index++;if(n.index>=e.length)break;if(n.index>a&&e[n.index]==="."&&(i||r===6))return n.index=a,n.skipIPv4Literal(e)?i?r<=4:r===6:!1;let o=n.index-a;if(o>4)return!1;if(o>0&&(t=!1,r++),e[n.index]!==":")break;for(a=n.index;n.index<e.length&&e[n.index]===":";)n.index++;if(o=n.index-a,o>2)return!1;if(o===2){if(i)return!1;i=!0}else t=!0}return!t&&(i?r<=6:r===8)}validate(e,n=!1,t=!1){const i=this;if(!e||!e.length||e.length>254)return!1;if(e[i.index]==='"'){if(!this.skipQuoted(e,t)||i.index>=e.length)return!1}else{if(!this.skipAtom(e,t)||i.index>=e.length)return!1;for(;e[i.index]===".";)if(i.index++,i.index>=e.length||!i.skipAtom(e,t)||i.index>=e.length)return!1}if(i.index+1>=e.length||i.index>64||e[i.index++]!=="@")return!1;if(e[i.index]!=="[")return i.skipDomain(e,n,t)?i.index===e.length:!1;if(i.index++,i.index+7>=e.length)return!1;if(e.substr(i.index,5).toLowerCase()==="ipv6:"){if(i.index+=5,!i.skipIPv6Literal(e))return!1}else if(!i.skipIPv4Literal(e,this.index))return!1;return i.index>=e.length||e[i.index++]!=="]"?!1:i.index===e.length}};function UC(e,n=!1,t=!1){return new BC().validate(e,t,n)}var jC=e=>!!e&&/^(https?:\/\/)?((w{3}\.)?)facebook.com\/.*/i.test(e),qC=e=>!!e&&/^(https?:\/\/)?((w{3}\.)?)twitter.com\/.*/i.test(e),$C=e=>!!e&&/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/|\/\/)?[a-z0-9.-]+([-.]{1})[a-z0-9]{1,5}(:[0-9]{1,5})?(\/[a-zA-Z0-9-._~:/?#@!$&*=;+%()']*)?$/i.test(e),Os=e=>UC(e,!0,!0),Eu=e=>/^([^\u0000-\u007F]|[\w\d-_\s])+$/i.test(e),xs=e=>!e||!!e&&e.length<=200,ar=(e,n=50)=>!e||!!e&&e.length<=n,Su=e=>ar(e,254),zC=(e,n)=>$C(e)&&xs(e)?e:n,Pi=(e,n)=>e?n?ar(e,n)?e:e.substring(0,n):ar(e,50)?e:e.substring(0,50):"",VC=(e,n)=>Os(e)&&xs(e)?e:n,HC=(e,n)=>jC(e)&&xs(e)?e:n,WC=(e,n)=>qC(e)&&xs(e)?e:n,Mu=class{constructor(e){Object.assign(this,e)}lastWebRTCState;peerConnection;remoteStream$=new ci(1);localStream;isActive=!1;isMuted=!1;isVideoCall=!1;audio;get isVideoSend(){return!!this.video}isVideoReceived=!1;video;toneSend$=nn;isNegotiationInProgress=!1},or=new Mu({lastWebRTCState:new Yc({sdpType:ut.WRTCInitial,holdState:Gr.WebRTCHoldState_NOHOLD})}),lm="data:audio/mpeg;base64,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mtCFf///+xDECgBDOAMQoARAAK+AYbQQiAD61IBU+IIABAwJJ4C+6z6nt1df9V3/Y5q+GOxYGSfc02ppIotcSnTL6Kf8ypaqhQ8NSpRGAg232gAAeed/7+R65f6//r/6/1P95TOa31IHZqRzGf/7EMQQgEcBeQughHfAWIBi/ACIAJEEwMqqOLQ3Nhzatfn/89ZFOVmOme49BwAAAIABwAr/T/t///////1////s9NXD6z2i+4MAADYQepbrKt9AwO3+//+Q/6H2f2MDh8DcUiu7//RZ//sQxBKABNgBEaCEQAB2gGK8AIgAWBQhWAFVgXABkACQu1P3btP//9b6v9n+3////1Y24sofjceADAAAAUDLFbHf/t///+n/c30oU78y///6bY/WW0CWTeJzzRdPqKa9vRGo/uXogFf/+xDEGYBDwAEToIRNwMKAYbQAiAD7dhqlSiRURsQoQFDh1iiKtu2qy3psGPiMdB1d/////////9+7////8XQ7NCODsi3fIgIMW5aVVKfbv3MbXGfqUijZ2al/v/pez7t5N3R/1rUxxv/7EMQbgAHEAxQAAEAAq4AiPBCJuIkT9troEdupAAB3end/+vR6kK4v1//yqf/n/84sd++B75tuI/7qRZnmXff//8z6syv7gy2m6GAQhABTLattTruc//////6v6933I//05oyqgAQA//sQxCiABmlxDaCEV8hngGKugCAAAAAFgbaCSAI5ruwExMaa5/OHQUHgca/fjQxxItIXcvktX85DmIp9Hv2e7lOb2W/0Xe5b+z/T/aAAA1SAgAAYOh0ZwKEIxKMTbuMIANNcWjNDBcT/+xDEKwAHTFcfWaGAAL4E59M6EABdOgBUQInjACIuttE414QGl5HaUwAAKgAwDACxGCSYbgjpiEDRmZIQ6fDVTZwkFQmK4MKYqAbphChjGEmCQYJ4ORgIAQLljMVER3IVxe70gBxAwP/7EMQfggdkISUd4QAg3wPlNb9wRNJpughATDhwy2DML5ZA2xvfTMcBMQhpOhMhnJQFxYJRe+7X1zDO6N+//6v9X/9Vv+3/1dgxsOMyBTVyQ8JrMk9Lw+Aejzn3EnMSAD43E7MlQTCD//sQxA+CRXgfJA37YmDdhCTpv2xM4w+PMBFYKpwTIf6PvAIgCoLmMCho6Sc9fGOivGcwqqR1LhdmI4C8binm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LAMNoARAAF2AYvQACACBAAAqq4UrvoW+l7kVNVfp//P9yOt8SOQau3OQp9JiFZEVSz/3rFksKPLFBLwAABmAEMv1////xX9X//2/9X+v+r7lpQCHcAAAAcVkAjW9v//s///7EMQHgAPoARPgBEAA1y6htBCKudPb9//Zq0JU49/6P/8UpQXv1kFgtvpAAEzKcnP5ev75/L/y/8rEY5/+v/h355T9tMZnI593oqeTnGam0///1V9nd3Om42V3WGV1RWt8YAId5O5p//sgxAaABgV9EeCEV8DKruG0EIq5xyLLz0eUvP+///zy9///yP1TL89V9P9WX/7///l9P92J2BMNe5cLXegAANuGdSPz89jqI8uf9v//8v/y/r+fThIVTnGKZB/OP7if+v///+u6rTlyjIEUSRhiWZAAAc93ql8H9ctf5ary/+X/7//7IMQLgEaxdwughFfIwq8htBCK+f/zr2uRpxkTU2UQ4E6KRBA24///f/z8tmWgMzJYKTsGlmgknik+51vNSv9f3X5Zy//3/mX/m5/9fLk95y53MlKXF+p7///4NXRn5keQGoSql4eERUcMPkAAGDFGniliMc3lh3qV+tyvZ92jsQj/+xDEDoPF2AMP4ARAAFqAIcAACbjdIqcKtSNZT25j/qryBNQkKEf//////937qZAO5JFej+v//NqSk8UCFZZLbYFpoQAAbQ9ZRjXhI96U2d6G/6P1/ygUQvjiJ5wRYtGVKuhxhUaum//7EMQVAgZ0AQughEuAOwBjvACIAHu1a4seEhIuYIAEwAAECAH/hX////1f/Wp6aiWuW+IAAWdSAA/Wd5/u6+v3l//xf/Y//8jXkfsoasnRuRHGLvI8DyWft///k6eizndbOwNwwGAJ//sQxB0ARtF9DaCEV8DGACF0EIm4Gp2Ipu92jdsf33f2ev7BNPKIkSIcf4CGBgOgc6PQ1KSZeeV/32GyJUJhEoIkENaMNbtboAAAiFqcjemxPVb6f6///encoVMJ3sUl6yDf//psuVH/+xDEEoAFDAMPoIRAALgAYfQAiAAx4VNeQb2SXbtEABjnIOi591NUjRYii5bf0fq/jn1RO21+igktSwKspMM+3/stoGAFVXZZVVVFC31gAAkzV7Wiux/Sxjfdo939qu7zbrUkqgtDzP/7EMQQgEXwAw/ghEAAooAh9BCJuCZU4YS04Kdn/rb33NNhvDf2SW28JEVMGmsoGabapD06f/0P36g6xfI00U6c/f0VJ//Y0k8DhQeq2w0tt13yAADSO2CBjF0V2vzddq/239+inXpr//sQxA2DxeQDD6CEQABJgGIAAAgAeSS2XdDfM5WVfa5Gj6OeoMk3FQD////////6PR4a0fp//0z8gKkaZXaGhkZaPWACHEhOmOY+hRJd+r7v6/7/u/36u691+uyj/p+TDTlQDQsKzKn/+xDEFgAEzAMR4ARAAKqAYjwAiAB3yQADyyBSBLkrt11ae7+r3+PpWXou798jvoQ/uQ7/9PLtOuJoAIlwiFcOBgQEKlXXjr6O///3f+z///p/R//6LxUIv/////5f6/+l0dbYuQ/0///7EMQXAwOgAxfgBEAAXYBiBAAIAPVsWgWS8dW2CVySwdIAAKzvpLeWDXc/z/3///l/fa/y8Swryfn0x+v0/wFERMOyX//89511eSihXyBkBGSDMzKPwprHPE667q37GX+xdu/Z9Wqz//sQxCYARnF1DaCEV8jggCF8EIm4IPPhkmsI4sHUBQMsW1oq0qErI5cr1bUULSTALUGwWGL////////9n/p/T/91vtIkJdxZJLN4hKSx1qnVNXRc/pu/3YszFvsXbQhE49rAiBdgSND/+xDEGYBCCAMSAABAAMMAYbQQiAD33HI1sfkP+KoEswFGGPN7tdrvugQQ14GWTvudLm6RQ+hY9Tlf6F+xn/c2cvedqum/fvr/+U0LUeWLCYIsEKqqqKG2qIBBMQHVoRTYv3j37KP9nf/7EMQigAXMAxGgBEAAmoBiPBCIAN/9nrd3ddxv9bKv/utywugACAAA/f//////V6NX/6/er//98cXAtoEklArxqO9Oqni3/9nSmEv2UX2tukEeRGPUsWT6P/o9I1TEVbqI3GpHmQAA//sQxCGAQqgDEwAAQBCTgGH0AIgAnPatdl19zNFvVX9PmdjrKaFUUsYlqDyYu1iWvYgSBdVFYt26etrFhAHBQEQy6vCu7MrXDMgEC6HrS9yHor2uo7f/u+d9X13f9lrP//o7E5CKKpL/+xDELYAGnAMLoIRAAJEAInwAiADbBYxJ4AAAtIacYbttY/088VH/2I/Wb3v0UtrDjBpFQ14wCDCrCjJ9zlPd3W6W8eXICYqLGCDAAU6swBhwCAAupVSHJZ8X+///7urUz/TUYT/////7EMQqAAbcAQughE3AgoBivBCIAP7xWYr3Ua2iWeIAAKMCDEsYkVWfoqvt/t21o0JrZvzjx1Ckqeh740XRW3UTWllqov6uxDkkBGeNms4Jq2AJgBqXUMtZd/rUyKf//1JlJPJixxBA//sQxCeARqADDaCEQACwgCG0EIm4dnjl2hMHHMJ9/9VOiXBIVBIK1f////////7vr/2f/9WFGFjevmFult9RAIeLJQNpeqxlO7a/p/3+3/s7N+xn1p/Win/0WkDwnUpVZZQFRCl0IAL/+xDEIAACFAESAABAAJcAIjQQiAADSzRZzJ/chGjmer/G+uzdqavtumVuNGypGK9F9E9kNSa3rVCg8mKhgur//////////////9mi+Au31v3jIACDfN1pPiyGp0EtHZ/u9X/T/R32M//7EMQuA8ZgAw3gBEAAMwBiwAAIAN/p//p96ExxyyNyXMAAArR6kIpvnNFtKi1atv0/u8whgnxo2tgsFSePHtFjoGCwjFXMFtSq6f1wG+MAASoPe6wC2+kAAWJPIWt6PmXYl9+j93R1//sQxDeABFQDE6CEQADXgGF0EIgA+zoZEAMEkNcZvNnRcmKkGHWxZ3T288m4HDAiLBoIAGBH/////9df+939/fs/7qnav1eXE1WADAAADgMAAN7f/60X//+oTf6dLvb/X093//fVMA//+xDENIMGhAENoIRNwFgAYkgACAAgAO4O34AACFjOi/ke7Sv////v/kEXf/zn/6F3lgdmZ3+HaAQFCjnWvreKJl9cx/9FH2Dnfynro/T/9qv//Xd/t7tb/mQAHHBd5BybWb379TLf1f/7EMQ4gAOcAROghEuAb4BivACIAK+kv+r9SuL60U6dN9X/7OytiQB9RMALwCAB1MVot/9t////U711uu/e31LfV/9XNm40u4Qrq6qiO6EAAJZzs5vuMlrnPl/P+v/15f/6f6/RbKuT//sQxEWABGwBFeAEQACagGJ0EIgApdxptoH3C2lokJXH3Cn/fH6XhEFBAI1nkABwcFGAAAAal/us9Xv///////7///+jItem//8XXUeggAKUwKtTTKJfbbGeq3/Z/+hf/emu1g59Cf//+xDESgAEFAERoARAANycYbwQiXj/frdSIFL//////2+y2Oteac20M2B6+i+7MPJ/+awKgYRE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",YC=Se(((e,n)=>{var t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(i){return i.trim().split(`
`).map(r=>r.trim())},t.splitSections=function(i){return i.split(`
m=`).map((r,a)=>(a>0?"m="+r:r).trim()+`\r
`)},t.getDescription=function(i){const r=t.splitSections(i);return r&&r[0]},t.getMediaSections=function(i){const r=t.splitSections(i);return r.shift(),r},t.matchPrefix=function(i,r){return t.splitLines(i).filter(a=>a.indexOf(r)===0)},t.parseCandidate=function(i){let r;i.indexOf("a=candidate:")===0?r=i.substring(12).split(" "):r=i.substring(10).split(" ");const a={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let o=8;o<r.length;o+=2)switch(r[o]){case"raddr":a.relatedAddress=r[o+1];break;case"rport":a.relatedPort=parseInt(r[o+1],10);break;case"tcptype":a.tcpType=r[o+1];break;case"ufrag":a.ufrag=r[o+1],a.usernameFragment=r[o+1];break;default:a[r[o]]===void 0&&(a[r[o]]=r[o+1]);break}return a},t.writeCandidate=function(i){const r=[];r.push(i.foundation);const a=i.component;a==="rtp"?r.push(1):a==="rtcp"?r.push(2):r.push(a),r.push(i.protocol.toUpperCase()),r.push(i.priority),r.push(i.address||i.ip),r.push(i.port);const o=i.type;return r.push("typ"),r.push(o),o!=="host"&&i.relatedAddress&&i.relatedPort!==void 0&&(r.push("raddr"),r.push(i.relatedAddress),r.push("rport"),r.push(i.relatedPort)),i.tcpType&&i.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(i.tcpType)),(i.usernameFragment||i.ufrag)&&(r.push("ufrag"),r.push(i.usernameFragment||i.ufrag)),"candidate:"+r.join(" ")},t.parseIceOptions=function(i){return i.substring(14).split(" ")},t.parseRtpMap=function(i){let r=i.substring(9).split(" ");const a={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),a.name=r[0],a.clockRate=parseInt(r[1],10),a.channels=r.length===3?parseInt(r[2],10):1,a.numChannels=a.channels,a},t.writeRtpMap=function(i){let r=i.payloadType;i.preferredPayloadType!==void 0&&(r=i.preferredPayloadType);const a=i.channels||i.numChannels||1;return"a=rtpmap:"+r+" "+i.name+"/"+i.clockRate+(a!==1?"/"+a:"")+`\r
`},t.parseExtmap=function(i){const r=i.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},t.writeExtmap=function(i){return"a=extmap:"+(i.id||i.preferredId)+(i.direction&&i.direction!=="sendrecv"?"/"+i.direction:"")+" "+i.uri+(i.attributes?" "+i.attributes:"")+`\r
`},t.parseFmtp=function(i){const r={};let a;const o=i.substring(i.indexOf(" ")+1).split(";");for(let l=0;l<o.length;l++)a=o[l].trim().split("="),r[a[0].trim()]=a[1];return r},t.writeFmtp=function(i){let r="",a=i.payloadType;if(i.preferredPayloadType!==void 0&&(a=i.preferredPayloadType),i.parameters&&Object.keys(i.parameters).length){const o=[];Object.keys(i.parameters).forEach(l=>{i.parameters[l]!==void 0?o.push(l+"="+i.parameters[l]):o.push(l)}),r+="a=fmtp:"+a+" "+o.join(";")+`\r
`}return r},t.parseRtcpFb=function(i){const r=i.substring(i.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},t.writeRtcpFb=function(i){let r="",a=i.payloadType;return i.preferredPayloadType!==void 0&&(a=i.preferredPayloadType),i.rtcpFeedback&&i.rtcpFeedback.length&&i.rtcpFeedback.forEach(o=>{r+="a=rtcp-fb:"+a+" "+o.type+(o.parameter&&o.parameter.length?" "+o.parameter:"")+`\r
`}),r},t.parseSsrcMedia=function(i){const r=i.indexOf(" "),a={ssrc:parseInt(i.substring(7,r),10)},o=i.indexOf(":",r);return o>-1?(a.attribute=i.substring(r+1,o),a.value=i.substring(o+1)):a.attribute=i.substring(r+1),a},t.parseSsrcGroup=function(i){const r=i.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(a=>parseInt(a,10))}},t.getMid=function(i){const r=t.matchPrefix(i,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(i){const r=i.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},t.getDtlsParameters=function(i,r){return{role:"auto",fingerprints:t.matchPrefix(i+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(i,r){let a="a=setup:"+r+`\r
`;return i.fingerprints.forEach(o=>{a+="a=fingerprint:"+o.algorithm+" "+o.value+`\r
`}),a},t.parseCryptoLine=function(i){const r=i.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},t.writeCryptoLine=function(i){return"a=crypto:"+i.tag+" "+i.cryptoSuite+" "+(typeof i.keyParams=="object"?t.writeCryptoKeyParams(i.keyParams):i.keyParams)+(i.sessionParams?" "+i.sessionParams.join(" "):"")+`\r
`},t.parseCryptoKeyParams=function(i){if(i.indexOf("inline:")!==0)return null;const r=i.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(i){return i.keyMethod+":"+i.keySalt+(i.lifeTime?"|"+i.lifeTime:"")+(i.mkiValue&&i.mkiLength?"|"+i.mkiValue+":"+i.mkiLength:"")},t.getCryptoParameters=function(i,r){return t.matchPrefix(i+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(i,r){const a=t.matchPrefix(i+r,"a=ice-ufrag:")[0],o=t.matchPrefix(i+r,"a=ice-pwd:")[0];return a&&o?{usernameFragment:a.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(i){let r="a=ice-ufrag:"+i.usernameFragment+`\r
a=ice-pwd:`+i.password+`\r
`;return i.iceLite&&(r+=`a=ice-lite\r
`),r},t.parseRtpParameters=function(i){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},a=t.splitLines(i)[0].split(" ");r.profile=a[2];for(let l=3;l<a.length;l++){const s=a[l],c=t.matchPrefix(i,"a=rtpmap:"+s+" ")[0];if(c){const u=t.parseRtpMap(c),f=t.matchPrefix(i,"a=fmtp:"+s+" ");switch(u.parameters=f.length?t.parseFmtp(f[0]):{},u.rtcpFeedback=t.matchPrefix(i,"a=rtcp-fb:"+s+" ").map(t.parseRtcpFb),r.codecs.push(u),u.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(u.name.toUpperCase());break;default:break}}}t.matchPrefix(i,"a=extmap:").forEach(l=>{r.headerExtensions.push(t.parseExtmap(l))});const o=t.matchPrefix(i,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(l=>{o.forEach(s=>{l.rtcpFeedback.find(c=>c.type===s.type&&c.parameter===s.parameter)||l.rtcpFeedback.push(s)})}),r},t.writeRtpDescription=function(i,r){let a="";a+="m="+i+" ",a+=r.codecs.length>0?"9":"0",a+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",a+=r.codecs.map(l=>l.preferredPayloadType!==void 0?l.preferredPayloadType:l.payloadType).join(" ")+`\r
`,a+=`c=IN IP4 0.0.0.0\r
`,a+=`a=rtcp:9 IN IP4 0.0.0.0\r
`,r.codecs.forEach(l=>{a+=t.writeRtpMap(l),a+=t.writeFmtp(l),a+=t.writeRtcpFb(l)});let o=0;return r.codecs.forEach(l=>{l.maxptime>o&&(o=l.maxptime)}),o>0&&(a+="a=maxptime:"+o+`\r
`),r.headerExtensions&&r.headerExtensions.forEach(l=>{a+=t.writeExtmap(l)}),a},t.parseRtpEncodingParameters=function(i){const r=[],a=t.parseRtpParameters(i),o=a.fecMechanisms.indexOf("RED")!==-1,l=a.fecMechanisms.indexOf("ULPFEC")!==-1,s=t.matchPrefix(i,"a=ssrc:").map(p=>t.parseSsrcMedia(p)).filter(p=>p.attribute==="cname"),c=s.length>0&&s[0].ssrc;let u;const f=t.matchPrefix(i,"a=ssrc-group:FID").map(p=>p.substring(17).split(" ").map(d=>parseInt(d,10)));f.length>0&&f[0].length>1&&f[0][0]===c&&(u=f[0][1]),a.codecs.forEach(p=>{if(p.name.toUpperCase()==="RTX"&&p.parameters.apt){let d={ssrc:c,codecPayloadType:parseInt(p.parameters.apt,10)};c&&u&&(d.rtx={ssrc:u}),r.push(d),o&&(d=JSON.parse(JSON.stringify(d)),d.fec={ssrc:c,mechanism:l?"red+ulpfec":"red"},r.push(d))}}),r.length===0&&c&&r.push({ssrc:c});let h=t.matchPrefix(i,"b=");return h.length&&(h[0].indexOf("b=TIAS:")===0?h=parseInt(h[0].substring(7),10):h[0].indexOf("b=AS:")===0?h=parseInt(h[0].substring(5),10)*1e3*.95-2e3*8:h=void 0,r.forEach(p=>{p.maxBitrate=h})),r},t.parseRtcpParameters=function(i){const r={},a=t.matchPrefix(i,"a=ssrc:").map(l=>t.parseSsrcMedia(l)).filter(l=>l.attribute==="cname")[0];a&&(r.cname=a.value,r.ssrc=a.ssrc);const o=t.matchPrefix(i,"a=rtcp-rsize");return r.reducedSize=o.length>0,r.compound=o.length===0,r.mux=t.matchPrefix(i,"a=rtcp-mux").length>0,r},t.writeRtcpParameters=function(i){let r="";return i.reducedSize&&(r+=`a=rtcp-rsize\r
`),i.mux&&(r+=`a=rtcp-mux\r
`),i.ssrc!==void 0&&i.cname&&(r+="a=ssrc:"+i.ssrc+" cname:"+i.cname+`\r
`),r},t.parseMsid=function(i){let r;const a=t.matchPrefix(i,"a=msid:");if(a.length===1)return r=a[0].substring(7).split(" "),{stream:r[0],track:r[1]};const o=t.matchPrefix(i,"a=ssrc:").map(l=>t.parseSsrcMedia(l)).filter(l=>l.attribute==="msid");if(o.length>0)return r=o[0].value.split(" "),{stream:r[0],track:r[1]}},t.parseSctpDescription=function(i){const r=t.parseMLine(i),a=t.matchPrefix(i,"a=max-message-size:");let o;a.length>0&&(o=parseInt(a[0].substring(19),10)),isNaN(o)&&(o=65536);const l=t.matchPrefix(i,"a=sctp-port:");if(l.length>0)return{port:parseInt(l[0].substring(12),10),protocol:r.fmt,maxMessageSize:o};const s=t.matchPrefix(i,"a=sctpmap:");if(s.length>0){const c=s[0].substring(10).split(" ");return{port:parseInt(c[0],10),protocol:c[1],maxMessageSize:o}}},t.writeSctpDescription=function(i,r){let a=[];return i.protocol!=="DTLS/SCTP"?a=["m="+i.kind+" 9 "+i.protocol+" "+r.protocol+`\r
`,`c=IN IP4 0.0.0.0\r
`,"a=sctp-port:"+r.port+`\r
`]:a=["m="+i.kind+" 9 "+i.protocol+" "+r.port+`\r
`,`c=IN IP4 0.0.0.0\r
`,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
`],r.maxMessageSize!==void 0&&a.push("a=max-message-size:"+r.maxMessageSize+`\r
`),a.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(i,r,a){let o;const l=r!==void 0?r:2;return i?o=i:o=t.generateSessionId(),`v=0\r
o=`+(a||"thisisadapterortc")+" "+o+" "+l+` IN IP4 127.0.0.1\r
s=-\r
t=0 0\r
`},t.getDirection=function(i,r){const a=t.splitLines(i);for(let o=0;o<a.length;o++)switch(a[o]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return a[o].substring(2);default:}return r?t.getDirection(r):"sendrecv"},t.getKind=function(i){return t.splitLines(i)[0].split(" ")[0].substring(2)},t.isRejected=function(i){return i.split(" ",2)[1]==="0"},t.parseMLine=function(i){const r=t.splitLines(i)[0].substring(2).split(" ");return{kind:r[0],port:parseInt(r[1],10),protocol:r[2],fmt:r.slice(3).join(" ")}},t.parseOLine=function(i){const r=t.matchPrefix(i,"o=")[0].substring(2).split(" ");return{username:r[0],sessionId:r[1],sessionVersion:parseInt(r[2],10),netType:r[3],addressType:r[4],address:r[5]}},t.isValidSDP=function(i){if(typeof i!="string"||i.length===0)return!1;const r=t.splitLines(i);for(let a=0;a<r.length;a++)if(r[a].length<2||r[a].charAt(1)!=="=")return!1;return!0},typeof n=="object"&&(n.exports=t)})),Ns=YC(),GC=e=>n=>new it(t=>(e(),n.subscribe(t))),QC=(e,n)=>t=>new it(i=>{let r=0,a=[];const o=[e.subscribe(()=>{r+=1}),n.subscribe(()=>{r-=1,r===0&&(a.forEach(l=>i.next(l)),a=[])}),t.subscribe({next:l=>{r>0?a.push(l):i.next(l)},error:l=>i.error(l),complete:()=>i.complete()})];return()=>{o.forEach(l=>l.unsubscribe())}});function KC(e){const n=new RegExp("a=rtpmap:(\\d+) [a-zA-Z0-9-]+\\/\\d+"),t=e.match(n);return t&&t.length===2?t[1]:null}function ZC(e,n){const t=e.split(" "),i=t.slice(0,3);i.push(n);for(let r=3;r<t.length;r++)t[r]!==n&&i.push(t[r]);return i.join(" ")}function JC(e,n,t,i,r){const a=t!==-1?t:e.length;for(let o=n;o<a;++o)if(e[o].indexOf(i)===0&&(!r||e[o].toLowerCase().indexOf(r.toLowerCase())!==-1))return o;return null}function cm(e,n,t){return JC(e,0,-1,n,t)}function XC(e,n){const t=cm(e,"a=rtpmap",n);return t?KC(e[t]):null}function e3(e,n,t){if(!t)return e;const i=e.split(`\r
`),r=cm(i,"m=",n);if(r===null)return e;const a=XC(i,t);return a&&(i[r]=ZC(i[r],a)),e=i.join(`\r
`),e}function t3(e,n){return n?e:e.replace("sendrecv","sendonly")}function um(e){e.getAudioTracks().forEach(n=>n.stop()),e.getVideoTracks().forEach(n=>n.stop())}function Rs(e,n,t){const{peerConnection:i}=e,r=a=>{e.localStream=a,a.getTracks().forEach(o=>{o.kind==="video"?t&&o.readyState==="live"&&(e.video=i.addTrack(o,a)):n&&o.readyState==="live"&&(o.enabled=!e.isMuted,e.audio=i.addTrack(o,a))}),e.audio&&e.audio.dtmf&&(e.toneSend$=Vr(e.audio.dtmf,"tonechange").pipe(Uc((o,l)=>o+l.tone,"")))};if(e.localStream){t||e.localStream.getVideoTracks().forEach(l=>l.stop()),n||e.localStream.getAudioTracks().forEach(l=>l.stop());const a=e.localStream.getVideoTracks().some(l=>l.readyState==="live"),o=e.localStream.getAudioTracks().some(l=>l.readyState==="live");if((!t||t&&a)&&(!n||n&&o))return r(e.localStream),at(e.localStream);um(e.localStream)}return zt(navigator.mediaDevices.getUserMedia({audio:n,video:t})).pipe(mn(a=>(console.log(a),zt(navigator.mediaDevices.getUserMedia({audio:n,video:!1})))),Ii(r))}function Iu(e){function n(t){t.peerConnection&&t.peerConnection.close(),t.audio=void 0,t.isVideoReceived=!1,t.toneSend$=nn,t.video=void 0,t.remoteStream$.next(null)}return n(e),e.peerConnection=new RTCPeerConnection({}),e.peerConnection.ontrack=t=>e.remoteStream$.next(t.streams[0]),e.peerConnection}function fm(e,n){let t=!1,i=!1;return e&&(0,Ns.splitSections)(e).filter(r=>n.indexOf((0,Ns.getDirection)(r))>=0&&!(0,Ns.isRejected)(r)).map(r=>(0,Ns.getKind)(r)).forEach(r=>{r==="video"?i=!0:r==="audio"&&(t=!0)}),[t,i]}function Tu(e){return fm(e,["sendrecv","recvonly"])}function n3(e){return fm(e,["sendrecv","sendonly"])}function dm(e,n){return zt(e.setRemoteDescription(n))}function Ls(e){e&&(e.localStream&&um(e.localStream),e.peerConnection&&e.peerConnection.close(),e.isVideoCall=!1)}var i3=class{myPhoneService;mediaDevice$;lastOutgoingMedia;globalTransactionId=0;forcedEmit=new qr(!0);suspendStream=new Oe;resumeStream=new Oe;webRtcCodecs=[];setWebRtcCodecs(e){this.webRtcCodecs=e}constructor(e){this.myPhoneService=e;const n=this.myPhoneService.mySession$.pipe(Ee(t=>t.webRTCEndpoint$),$c(new Oi),QC(this.suspendStream,this.resumeStream));this.mediaDevice$=sA([n,this.forcedEmit]).pipe(Uc((t,i)=>{const r=t,[a]=i,o=a.Items.reduce((c,u)=>(c[u.Id]=u,c),{});this.lastOutgoingMedia&&o[this.lastOutgoingMedia.lastWebRTCState.Id]&&(r.push(this.lastOutgoingMedia),this.lastOutgoingMedia=void 0);const l=[];r.forEach(c=>{const u=o[c.lastWebRTCState.Id];if(!u)Ls(c);else{const{lastWebRTCState:f}=c;c.lastWebRTCState={...u},!c.isActive&&u.holdState===Gr.WebRTCHoldState_NOHOLD&&f.holdState===Gr.WebRTCHoldState_HELD&&this.hold(c,!1).subscribe(),f.sdpType===u.sdpType&&f.sdp===u.sdp||this.processState(f.sdpType,c).subscribe(),delete o[u.Id],l.push(c)}});const s=Object.values(o).filter(c=>c.sdpType===ut.WRTCOffer||c.sdpType===ut.WRTCRequestForOffer).map(c=>new Mu({lastWebRTCState:{...c}}));return l.concat(s)},[]),_u())}setLocalDescription(e,n,t){return t&&this.webRtcCodecs&&this.webRtcCodecs.length>0&&this.webRtcCodecs.slice().reverse().forEach(i=>{n.sdp&&(n.sdp=e3(n.sdp,"audio",i))}),zt(e.setLocalDescription(n)).pipe(Ee(()=>Vr(e,"icegatheringstatechange")),Tn(()=>e.iceGatheringState==="complete"),kn(1))}processState(e,n){switch(n.lastWebRTCState.sdpType){case ut.WRTCAnswerProvided:return this.processAnswerProvided(e,n);case ut.WRTCOffer:return this.processOffer(n);case ut.WRTCRequestForOffer:return this.processRequestForOffer(n);case ut.WRTCConfirmed:this.processConfirmed(n);break}return nn}processConfirmed(e){if(e.isNegotiationInProgress=!1,e.peerConnection.remoteDescription){const[n,t]=n3(e.peerConnection.remoteDescription.sdp);e.isVideoReceived=t}}processAnswerProvided(e,n){const t=n.lastWebRTCState;if(e===ut.WRTCConfirmed)return this.setConfirmed(t.Id);const[i,r]=Tu(n.lastWebRTCState.sdp);return!r&&n.video&&(n.localStream&&n.localStream.getVideoTracks().forEach(a=>a.stop()),n.video=void 0),dm(n.peerConnection,{type:"answer",sdp:t.sdp}).pipe(Ee(()=>this.setConfirmed(t.Id)))}setConfirmed(e){return this.requestChangeState({Id:e,sdpType:ut.WRTCConfirm})}processOffer(e){const[n,t]=Tu(e.lastWebRTCState.sdp);return!e.isVideoCall&&t&&window.confirm("Enable video in a call?")&&(e.isVideoCall=!0),this.processAnswer(e)}processRequestForOffer(e){return this.processAnswer(e)}getLastOutgoingMedia(){const e=this.lastOutgoingMedia;return this.lastOutgoingMedia=void 0,e}holdAll(e){return this.mediaDevice$.pipe(kn(1),yt(n=>n.filter(t=>t.lastWebRTCState.Id!==e)),Ee(n=>n.length?AA(...n.map(t=>this.hold(t,!1))):at([])))}dropCall(e){return this.requestChangeState(new Gc({Id:e,sdpType:ut.WRTCTerminate}))}makeCall(e,n){const t=new Mu({lastWebRTCState:new Yc({sdpType:ut.WRTCInitial,holdState:Gr.WebRTCHoldState_NOHOLD})});t.isActive=!0,t.isNegotiationInProgress=!0,t.isVideoCall=n;const i=Iu(t);return this.holdAll().pipe(Ee(()=>Rs(t,!0,n)),Ee(r=>zt(i.createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:n}))),Ee(r=>this.setLocalDescription(i,r,!0)),Ee(()=>i.localDescription&&i.localDescription.sdp?this.requestChangeState({Id:0,sdpType:ut.WRTCOffer,destinationNumber:e,transactionId:this.globalTransactionId++,sdp:i.localDescription.sdp},!0):ot(()=>"Local sdp missing")),Ii(r=>{t.lastWebRTCState=new Yc({Id:r.CallId,sdpType:ut.WRTCInitial}),this.lastOutgoingMedia=t}),mn(r=>(Ls(t),ot(()=>r))))}answer(e,n){return e.isNegotiationInProgress?nn:(e.isActive=!0,e.isVideoCall=n,this.holdAll(e.lastWebRTCState.Id).pipe(Ee(()=>this.processAnswer(e))))}processAnswer(e){const n=e.lastWebRTCState,t=Iu(e);e.isActive||(e.isMuted=!0),e.isNegotiationInProgress=!0;let i,r;if(n.sdpType===ut.WRTCOffer){if(!n.sdp)return ot(()=>"Offer doesn't have sdp");const[a,o]=Tu(n.sdp);r=ut.WRTCAnswer,i=Rs(e,a,o&&e.isVideoCall).pipe(Ee(()=>dm(t,{type:"offer",sdp:n.sdp})),Ee(()=>zt(t.createAnswer())),Ee(l=>this.setLocalDescription(t,l,!1)))}else if(n.sdpType===ut.WRTCRequestForOffer){r=ut.WRTCOffer;const a={offerToReceiveAudio:!0,offerToReceiveVideo:e.isVideoCall};i=Rs(e,!0,e.isVideoCall).pipe(Ee(()=>zt(t.createOffer(a))),Ee(o=>this.setLocalDescription(t,o,!0)))}else return e.isNegotiationInProgress=!1,ot(()=>`Can't answer when state ${n.sdpType}`);return i.pipe(Ee(()=>t.localDescription&&t.localDescription.sdp?this.requestChangeState({Id:n.Id,sdpType:r,transactionId:n.transactionId,sdp:t.localDescription.sdp}):ot(()=>"Local sdp missing")),mn(a=>(e.isNegotiationInProgress=!1,ot(()=>a))))}sendDtmf(e,n){e.audio&&e.audio.dtmf&&e.audio.dtmf.insertDTMF(n,100,100)}video(e){return e.isVideoCall&&(!e.isVideoReceived||!e.isVideoSend)||(e.isVideoCall=!e.isVideoCall),this.renegotiate(e,!0)}mute(e){this.setMute(e,!e.isMuted)}setMute(e,n){e.isMuted=n,e.audio&&e.audio.track&&(e.audio.track.enabled=!n)}hold(e,n){e.isActive=n;const t=e.lastWebRTCState;return!n&&t.holdState!==Gr.WebRTCHoldState_NOHOLD||n&&t.holdState!==Gr.WebRTCHoldState_HOLD?at(!0):(this.setMute(e,!n),this.renegotiate(e,n))}renegotiate(e,n){if(e.isNegotiationInProgress)return at(!0);const t=e.lastWebRTCState;e.isNegotiationInProgress=!0,this.forcedEmit.next(!0);const i=Iu(e);let r=at(!0);return n&&(r=this.holdAll(e.lastWebRTCState.Id)),r.pipe(Ee(()=>Rs(e,!0,n?e.isVideoCall:!1)),Ee(()=>zt(i.createOffer({offerToReceiveAudio:n,offerToReceiveVideo:n&&e.isVideoCall}))),Ee(a=>this.setLocalDescription(i,a,!0)),Ee(()=>i.localDescription&&i.localDescription.sdp?this.requestChangeState({Id:t.Id,sdpType:ut.WRTCOffer,transactionId:this.globalTransactionId++,sdp:t3(i.localDescription.sdp,n)}):ot(()=>"Local sdp missing")),mn(a=>(e.isNegotiationInProgress=!1,this.forcedEmit.next(!0),ot(()=>a))))}requestChangeState(e,n){const t=this.myPhoneService.get(new Gc(e));return Gy(t)?n?t.pipe(GC(()=>this.suspendStream.next()),Ee(i=>i?.Success?at(i):ot(()=>i?.Message)),IA(()=>this.resumeStream.next())):t.pipe(Ee(i=>i?.Success?at(i):ot(()=>i?.Message))):ot(()=>"Invalid channel setup")}},hm=class{isTryingCall=!1;isEstablished=!1;media=or;constructor(e){Object.assign(this,e)}};function r3(e,n){const t=e.find(i=>i.media.lastWebRTCState.Id===n.lastWebRTCState.Id);return t?t.isEstablished?!0:n.lastWebRTCState.sdpType===ut.WRTCConfirmed:!1}var a3=class{webrtcService;callControl$=new Oe;myCalls$;soundToPlay$;constructor(e){this.webrtcService=e,this.myCalls$=Bc(this.webrtcService.mediaDevice$,this.callControl$).pipe(Uc((n,t)=>{if(t==="removeTryingCall")return n.filter(a=>!a.isTryingCall);if(t==="requestTryingCall")return n.concat([new hm({isTryingCall:!0,media:or})]);const i=t.map(a=>new hm({media:a,isEstablished:r3(n,a)})),r=n.find(a=>a.isTryingCall);return r&&i.length===0&&i.push(r),i},[]),kA(1)),this.soundToPlay$=this.myCalls$.pipe(yt(n=>{if(n.length===0)return;const t=n[0];if(t.isEstablished)return;if(t.isTryingCall)return lm;const i=t.media.lastWebRTCState.sdpType;return i===ut.WRTCOffer||i===ut.WRTCProcessingOffer?lm:void 0}))}call$(e,n){return this.callControl$.next("requestTryingCall"),this.webrtcService.makeCall("",n||!1).pipe(mn(t=>(Ls(this.webrtcService.getLastOutgoingMedia()),this.callControl$.next("removeTryingCall"),t.name==="Empty Session"?nn:ot(()=>t))))}},pm=(e,n)=>{n.add(e.phoneService.soundToPlay$.subscribe(t=>{e.audioNotificationUrl.value=t})),n.add(e.remoteStream$.subscribe(t=>{e.remoteStream.value=t,e.videoOnlyRemoteStream.value=e.videoOnly(t)})),n.add(e.phoneService.myCalls$.subscribe(t=>{e.hasCall.value=t.length>0,e.hasTryingCall.value=e.hasCall.value&&t[0].isTryingCall,e.hasEstablishedCall.value=e.hasCall.value&&t[0].isEstablished,e.media=t.length?t[0].media:or,e.media.isVideoCall&&e.media.isVideoSend||e.media.isVideoReceived?e.isVideoActive.value=!0:e.isVideoActive.value=!1,e.media?(e.videoOnlyLocalStream.value=e.videoOnly(e.media.localStream),e.videoCallInProcess$.next(!0)):e.videoOnlyLocalStream.value=null})),e.addFullScreenListener()},gm=class{myChatService;demo;hasTryingCall=re(!1);isFullScreen=re(!1);hasEstablishedCall=re(!1);videoContainer;webRTCControlService;phoneService;media=or;videoOnlyLocalStream=re(null);remoteStream=re(null);videoOnlyRemoteStream=re(null);audioNotificationUrl=re(null);hasCall=re(!1);isVideoActive=re(!1);hasRecall=re(!1);hadCall=re(!1);callDrop=re(!1);remoteStream$;videoCallInProcess$=new Oe;constructor(e,n=!1){this.myChatService=e,this.demo=n,this.webRTCControlService=new i3(this.myChatService),this.phoneService=new a3(this.webRTCControlService),this.remoteStream$=this.phoneService.myCalls$.pipe(yt(t=>t.length>0?t[0].media:or),Ee(t=>t.remoteStream$))}videoOnly(e){if(!e)return null;const n=e.getVideoTracks();return n.length===0?null:new MediaStream(n)}mute(){this.webRTCControlService.mute(this.media)}call(e){return this.demo?nn:(this.hadCall.value=!0,this.callDrop.value=!1,this.hasRecall.value=!1,this.phoneService.call$("",e||!1))}dropCall(){return this.media?(this.callDrop.value=!0,this.hasRecall.value=!1,this.webRTCControlService.dropCall(this.media.lastWebRTCState.Id)):ot(()=>"No media initialized")}removeDroppedCall(){return this.hasCall.value=!1,this.hasRecall.value=!1,Ls(this.media)}clearCallMemo(){this.hadCall.value=!1}isFullscreenSupported(){const e=document;return!!(e.fullscreenEnabled||e.webkitFullscreenEnabled||e.mozFullScreenEnabled||e.msFullscreenEnabled)}addFullScreenListener(){document.addEventListener("fullscreenchange",this.onFullScreenChange),document.addEventListener("webkitfullscreenchange",this.onFullScreenChange),document.addEventListener("mozfullscreenchange",this.onFullScreenChange),document.addEventListener("MSFullscreenChange",this.onFullScreenChange),this.videoContainer&&(this.videoContainer.addEventListener("webkitbeginfullscreen",this.onFullScreenChangeON),this.videoContainer.addEventListener("webkitendfullscreen",this.onFullScreenChangeOFF))}removeFullScreenListeners(){document.removeEventListener("fullscreenchange",this.onFullScreenChange),document.removeEventListener("webkitfullscreenchange",this.onFullScreenChange),document.removeEventListener("mozfullscreenchange",this.onFullScreenChange),document.removeEventListener("MSFullscreenChange",this.onFullScreenChange),this.videoContainer&&(this.videoContainer.removeEventListener("webkitbeginfullscreen",this.onFullScreenChangeON),this.videoContainer.removeEventListener("webkitendfullscreen",this.onFullScreenChangeOFF))}isFullscreenActive(){const e=document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||null}onFullScreenChange=()=>{this.isFullScreen.value=!!this.isFullscreenActive()};onFullScreenChangeON=()=>{this.isFullScreen.value=!0};onFullScreenChangeOFF=()=>{this.isFullScreen.value=!1};goFullScreen(){if(this.isFullScreen.value)return;const e=this.videoContainer;try{e!=null&&this.isFullscreenSupported()?e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen():eo("fullscreen is not supported")}catch(n){eo(n)}}removeFullscreen(){if(this.isFullScreen.value)try{document.exitFullscreen?document.exitFullscreen().catch(e=>console.error(e)):document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}catch(e){console.log(e)}}};function o3(e){try{return JSON.parse(e)}catch{return""}}function mm(e,n){const t=[s3,bm,Am,ym,Cm,_m,wm,Q3];return[vm(n),...t.map(i=>i(e))]}function ku(e,n){const t=[l3,bm,c3,ym,Am,u3,f3,d3,h3,p3,wm,g3,_m,m3,v3,b3,y3,A3,$3,z3,w3,_3,C3,E3,x3,S3,T3,M3,I3,k3,O3,N3,P3,R3,L3,D3,F3,B3,U3,Cm,j3,q3,V3,H3,W3,Y3,G3];return[vm(n),...t.map(i=>i(e))]}var Di=(e=!1)=>{const n=[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(i=>navigator.userAgent.match(i)),t=window.innerWidth<600||window.innerHeight<600;return e?n&&t:n||t};function vm(e){return{name:"phonesystem-url",value:`${e}`}}function s3(e){return{name:"style",value:`position: fixed; right: 20px; bottom: 20px; justify-content: flex-end;
flex-direction: column; display: flex; z-index: 99999;
--call-us-form-header-background:#373737;
--call-us-main-button-background:#0596d4;
--call-us-form-width:330px;`}}function bm(e){return{name:"id",value:"wp-live-chat-by-3CX"}}function l3(e){const n=Di();let t=`${e.Styling?.UseRubik?"font-family:Rubik;":""}position:fixed;font-size:16px;line-height:17px;z-index: 99999;`;if(e.Styling?.Style){const o=o3(e.Styling?.Style);t+=`--call-us-main-accent-color:${o.mainAccent||o.callUsFormHeaderBackground||"#0596D4"};`,t+=`--call-us-main-background-color:${o.mainBackground||"#FFFFFF"};`,t+=`--call-us-plate-background-color:${o.plateBackground||"#494949"};`,t+=`--call-us-plate-font-color:${o.plateFont||"#ffffff"};`,t+=`--call-us-main-font-color:${o.mainFont||"#000000"};`,t+=`--call-us-agent-bubble-color:${o.mainFont||"#333333"}10;`}const i=window.matchMedia("(orientation: landscape)").matches,r=window.innerWidth<600||i&&window.innerHeight<600;let a="20px";return e.ChatBox?.MinimizedStyle?(n&&r&&(a="0"),e.ChatBox?.MinimizedStyle==="BubbleLeft"&&(t+=`left: ${a}; bottom: 200px;`),e.ChatBox?.MinimizedStyle==="BubbleRight"&&(t+=`right: ${a}; bottom: 200px;`),e.ChatBox?.MinimizedStyle==="BottomLeft"&&(t+=`left: ${a}; bottom: 20px;`),e.ChatBox?.MinimizedStyle==="BottomRight"&&(t+=`right: ${a}; bottom: ${a};`)):t+=`right: ${a}; bottom: ${a};`,{name:"style",value:`${t}`}}function c3(e){return e.Styling?.Minimized!=null?{name:"minimized",value:`${e.Styling?.Minimized}`}:null}function ym(e){return e.Styling?.Animation?{name:"animation-style",value:`${e.Styling.Animation.toLowerCase()}`}:null}function Am(e){return{name:"party",value:`${e.Link??""}`}}function u3(e){if(e.ChatBox?.MinimizedStyle)switch(e.ChatBox?.MinimizedStyle){case"BottomRight":case"BubbleRight":return{name:"minimized-style",value:"bubbleright"};case"BottomLeft":case"BubbleLeft":return{name:"minimized-style",value:"bubbleleft"}}return null}function f3(e){return e.Advanced?.CommunicationOptions==="VideoPhoneAndChat"?{name:"allow-call",value:"true"}:e.Advanced?.CommunicationOptions==="PhoneAndChat"?{name:"allow-call",value:"true"}:{name:"allow-call",value:"false"}}function d3(e){return{name:"allow-video",value:"false"}}function h3(e){return e.General?.AllowSoundNotifications!=null?{name:"allow-soundnotifications",value:`${e.General?.AllowSoundNotifications}`}:null}function p3(e){return{name:"enable-mute",value:`${e.General?.AllowSoundNotifications??!1}`}}function wm(e){return e.General?.EnableOnMobile!=null?{name:"enable-onmobile",value:`${e.General?.EnableOnMobile}`}:null}function g3(e){return e.General?.DisableOfflineMessages!=null?{name:"offline-enabled",value:`${!e.General?.DisableOfflineMessages}`}:null}function _m(e){return{name:"enable",value:"true"}}function m3(e){return e.Advanced?.IgnoreQueueOwnership!=null?{name:"ignore-queueownership",value:`${e.Advanced?.IgnoreQueueOwnership}`}:null}function v3(e){return e.General?.Authentication?{name:"authentication",value:`${e.General?.Authentication.toLowerCase()}`}:null}function b3(e){return e.ChatBox?.OperatorName?{name:"operator-name",value:`${e.ChatBox?.OperatorName}`}:null}function y3(e){return e.ChatBox?.ShowOperatorActualName!=null?{name:"show-operator-actual-name",value:`${e.ChatBox?.ShowOperatorActualName}`}:null}function A3(e){return{name:"aknowledge-received",value:"true"}}function w3(e){return e.General?.GdprEnabled!=null?{name:"gdpr-enabled",value:`${e.General.GdprEnabled}`}:null}function _3(e){return e.Translations?.GdprMessage?{name:"gdpr-message",value:`${e.Translations.GdprMessage}`}:null}function C3(e){return e.ChatBox?.LiveMessageUserinfoFormat?{name:"message-userinfo-format",value:`${e.ChatBox?.LiveMessageUserinfoFormat.toLowerCase()}`}:null}function E3(e){return e.ChatBox?.MessageDateformat?{name:"message-dateformat",value:`${e.ChatBox?.MessageDateformat.toLowerCase()}`}:null}function S3(e){return e.Translations?.WindowTitle?{name:"window-title",value:`${e.Translations.WindowTitle}`}:null}function M3(e){return e.ChatBox?.ButtonIconType?{name:"button-icon-type",value:`${e.ChatBox?.ButtonIconType.toLowerCase()}`}:null}function I3(e){return e.ChatBox?.ButtonIconUrl&&e.ChatBox?.ButtonIconType==="Url"?{name:"button-icon",value:`${e.ChatBox?.ButtonIconUrl}`}:null}function T3(e){return e.ChatBox?.LiveChatLanguage?{name:"lang",value:`${e.ChatBox?.LiveChatLanguage}`}:null}function k3(e){return e.Translations?.InviteMessage?{name:"invite-message",value:`${e.Translations?.InviteMessage}`}:null}function O3(e){return e.Translations?.AuthenticationMessage?{name:"authentication-message",value:`${e.Translations?.AuthenticationMessage}`}:null}function x3(e){return e.Translations?.StartChatButtonText?{name:"start-chat-button-text",value:`${e.Translations?.StartChatButtonText}`}:null}function N3(e){return e.Translations?.UnavailableMessage?{name:"unavailable-message",value:`${e.Translations.UnavailableMessage}`}:null}function R3(e){return e.Translations?.OfflineFinishMessage?{name:"offline-finish-message",value:`${e.Translations?.OfflineFinishMessage}`}:null}function L3(e){return e.Translations?.EndingMessage?{name:"ending-message",value:`${e.Translations?.EndingMessage}`}:null}function P3(e){return e.Translations?.FirstResponseMessage?{name:"first-response-message",value:`${e.Translations.FirstResponseMessage}`}:null}function D3(e){return e.Translations?.GreetingMessage?{name:"greeting-visibility",value:"both"}:{name:"greeting-visibility",value:"none"}}function F3(e){return e.Translations?.GreetingOfflineMessage?{name:"greeting-offline-visibility",value:"both"}:{name:"greeting-offline-visibility",value:"none"}}function B3(e){return e.Translations?.GreetingMessage?{name:"greeting-message",value:e.Translations?.GreetingMessage}:null}function U3(e){return e.Translations?.GreetingOfflineMessage?{name:"greeting-offline-message",value:e.Translations?.GreetingOfflineMessage}:null}function Cm(e){return e.ChatBox?.ChatDelay?{name:"chat-delay",value:`${e.ChatBox.ChatDelay}`}:null}function j3(e){return e.Translations?.OfflineNameMessage?{name:"offline-name-message",value:`${e.Translations?.OfflineNameMessage}`}:null}function q3(e){return e.Translations?.OfflineEmailMessage?{name:"offline-email-message",value:`${e.Translations?.OfflineEmailMessage}`}:null}function $3(e){return e.ChatBox?.WindowIcon?{name:"window-icon",value:`${e.ChatBox?.WindowIcon}`}:null}function z3(e){return e.ChatBox?.OperatorIcon?{name:"operator-icon",value:`${e.ChatBox?.OperatorIcon}`}:null}function V3(e){return e.Translations?.OfflineFormInvalidName?{name:"offline-form-invalid-name",value:`${e.Translations?.OfflineFormInvalidName}`}:null}function H3(e){return e.Translations?.OfflineFormMaximumCharactersReached?{name:"offline-form-maximum-characters-reached",value:`${e.Translations?.OfflineFormMaximumCharactersReached}`}:null}function W3(e){return e.Translations?.OfflineFormInvalidEmail?{name:"offline-form-invalid-email",value:`${e.Translations?.OfflineFormInvalidEmail}`}:null}function Y3(e){return{name:"enable-direct-call",value:`${e.Advanced?.EnableDirectCall??!1}`}}function G3(e){return{name:"enable-ga",value:"false"}}function Q3(e){return e.Advanced?.CallTitle?{name:"call-title",value:`${e.Advanced?.CallTitle}`}:null}var K3={created(e,n){const t=e;t.srcObject=n.value},update:(e,n)=>{const t=e;t.srcObject!==n.value&&(t.srcObject=n.value)}},to=K3,Z3={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function J3(e,n){return L(),H("svg",Z3,[...n[0]||(n[0]=[X("path",{d:"m441.9 167.3-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17"},null,-1)])])}var Em={render:J3},X3={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"};function eE(e,n){return L(),H("svg",X3,[...n[0]||(n[0]=[X("path",{d:"M20.9 17.6c-.9-.8-1.8-1.5-2.8-2.1-1-.7-1.3-.6-1.9.5l-.6.9c-.4.5-.9.4-1.4 0-2.3-1.6-4.4-3.6-6-5.9-.3-.6-.5-1-.2-1.4l1.2-.8c1-.6 1-.9.3-1.9S8 4.9 7.2 4c-.6-.7-1-.7-1.6-.1l-.9 1c-1.2.9-1.6 2.5-1 3.8 2 6.1 6.8 10.8 12.9 12.7 1 .4 2.1.2 3-.5l.6-.6.8-.7c.8-1 .8-1.3-.1-2"},null,-1)])])}var no={render:eE},tE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function nE(e,n){return L(),H("svg",tE,[...n[0]||(n[0]=[X("path",{d:"M193.94 256 296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31z"},null,-1)])])}var Sm={render:nE},iE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};function rE(e,n){return L(),H("svg",iE,[...n[0]||(n[0]=[X("path",{d:"M13.722 12.067a.5.5 0 0 1-.069.623l-.963.963a.5.5 0 0 1-.622.068l-4.172-2.657-1.703 1.702a.5.5 0 0 1-.847-.275L4.108 4.68a.5.5 0 0 1 .572-.572l7.811 1.238a.5.5 0 0 1 .275.848l-1.702 1.702zm5.588 1.586a.5.5 0 0 0 .622.068l4.172-2.657 1.703 1.702a.5.5 0 0 0 .847-.275l1.238-7.811a.5.5 0 0 0-.572-.572l-7.81 1.238a.5.5 0 0 0-.275.848l1.702 1.702-2.658 4.171a.5.5 0 0 0 .069.623zm-6.62 4.694a.5.5 0 0 0-.623-.068l-4.17 2.657-1.704-1.702a.5.5 0 0 0-.847.275L4.108 27.32a.5.5 0 0 0 .572.572l7.811-1.238a.5.5 0 0 0 .275-.848l-1.702-1.702 2.658-4.171a.5.5 0 0 0-.069-.623zm13.117.887-1.703 1.702-4.171-2.657a.5.5 0 0 0-.623.068l-.963.963a.5.5 0 0 0-.069.623l2.658 4.171-1.702 1.702a.5.5 0 0 0 .275.848l7.811 1.238a.5.5 0 0 0 .572-.572l-1.238-7.811a.5.5 0 0 0-.847-.275"},null,-1)])])}var aE={render:rE},oE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"};function sE(e,n){return L(),H("svg",oE,[...n[0]||(n[0]=[X("path",{d:"M12.5 14c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3s-3 1.3-3 3v6c0 1.7 1.3 3 3 3m5.3-3c0 3-2.5 5.1-5.3 5.1S7.2 14 7.2 11H5.5c0 3.4 2.7 6.2 6 6.7V21h2v-3.3c3.3-.5 6-3.3 6-6.7z"},null,-1)])])}var lE={render:sE},cE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"};function uE(e,n){return L(),H("svg",cE,[...n[0]||(n[0]=[X("path",{d:"M19.5 11h-1.7c0 .7-.2 1.4-.4 2.1l1.2 1.2q.9-1.5.9-3.3m-4 .2V5c0-1.7-1.3-3-3-3s-3 1.3-3 3v.2zM4.8 3 3.5 4.3l6 6v.7c0 1.7 1.3 3 3 3 .2 0 .4 0 .6-.1l1.7 1.7c-.7.3-1.5.5-2.3.5-2.8 0-5.3-2.1-5.3-5.1H5.5c0 3.4 2.7 6.2 6 6.7V21h2v-3.3c.9-.1 1.8-.5 2.5-.9l4.2 4.2 1.3-1.3z"},null,-1)])])}var fE={render:uE},dE={xmlns:"http://www.w3.org/2000/svg"};function hE(e,n){return L(),H("svg",dE,[...n[0]||(n[0]=[X("path",{d:"M2.5 7.5v5h3.333L10 16.667V3.333L5.833 7.5zM13.75 10a3.75 3.75 0 0 0-2.083-3.358v6.708A3.73 3.73 0 0 0 13.75 10m-2.083-7.308v1.717c2.408.717 4.167 2.95 4.167 5.592s-1.758 4.875-4.167 5.592v1.717c3.341-.76 5.833-3.743 5.833-7.31s-2.492-6.55-5.833-7.308"},null,-1)])])}var Mm={render:hE},pE={xmlns:"http://www.w3.org/2000/svg"};function gE(e,n){return L(),H("svg",pE,[...n[0]||(n[0]=[X("path",{d:"M13.75 10a3.75 3.75 0 0 0-2.083-3.358v1.842l2.042 2.042c.025-.167.042-.342.042-.525zm2.083 0a5.7 5.7 0 0 1-.45 2.2l1.258 1.258A7.3 7.3 0 0 0 17.5 10a7.5 7.5 0 0 0-5.833-7.308v1.717a5.84 5.84 0 0 1 4.167 5.592zM3.558 2.5 2.5 3.558 6.442 7.5H2.5v5h3.333L10 16.667v-5.608l3.542 3.542a5.8 5.8 0 0 1-1.875.983V17.3a7.5 7.5 0 0 0 3.075-1.508l1.7 1.708 1.058-1.058-7.5-7.5zM10 3.333 8.258 5.075 10 6.817z"},null,-1)])])}var Im={render:gE},mE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 39 37"};function vE(e,n){return L(),H("svg",mE,[...n[0]||(n[0]=[X("path",{d:"M14.69 18.65v17.89a.47.47 0 0 0 .47.46h6.64a.47.47 0 0 0 .47-.46V18.35h4.81a.46.46 0 0 0 .47-.42l.45-5.48a.47.47 0 0 0-.46-.51h-5.27V8.06a1.65 1.65 0 0 1 1.65-1.65h3.71a.47.47 0 0 0 .47-.47V.46a.47.47 0 0 0-.47-.46h-6.27a6.67 6.67 0 0 0-6.67 6.66v5.28h-3.32a.47.47 0 0 0-.47.47v5.48a.46.46 0 0 0 .47.46h3.32z"},null,-1)])])}var bE={render:vE},yE={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20"};function AE(e,n){return L(),H("svg",yE,[...n[0]||(n[0]=[X("path",{d:"M18.594.125.488 10.57a.94.94 0 0 0 .086 1.688L4.727 14 15.95 4.109c.215-.191.519.102.336.324l-9.41 11.465v3.145a.94.94 0 0 0 1.66.617l2.48-3.02 4.867 2.039a.94.94 0 0 0 1.289-.711l2.813-16.875a.94.94 0 0 0-1.391-.969z"},null,-1)])])}var wE={render:AE},_E={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 39 39"};function CE(e,n){return L(),H("svg",_E,[...n[0]||(n[0]=[X("path",{d:"M38.08 6.78a15.9 15.9 0 0 1-3.82 1.08c.61-.1 1.48-1.21 1.84-1.65a7 7 0 0 0 1.25-2.3.15.15 0 0 0 0-.19.22.22 0 0 0-.21 0 19 19 0 0 1-4.49 1.72.31.31 0 0 1-.31-.08 3 3 0 0 0-.39-.4 7.9 7.9 0 0 0-2.18-1.34 7.6 7.6 0 0 0-3.34-.53 8 8 0 0 0-3.17.91 8.2 8.2 0 0 0-2.56 2.08 7.8 7.8 0 0 0-1.52 3.05 8.2 8.2 0 0 0-.08 3.23c0 .18 0 .2-.16.18-6.17-.92-10.56-2-15.43-7.86-.18-.21-.28-.2-.43 0C1.26 7.42 2.14 11.8 4.41 14c.31.28 1 .87 1.31 1.13A13.5 13.5 0 0 1 2.38 14c-.18-.12-.27 0-.28.15a4.5 4.5 0 0 0 0 .89A7.91 7.91 0 0 0 7 21.3a5 5 0 0 0 1 .3 9 9 0 0 1-2.92.09c-.21 0-.29.07-.21.27 1.29 3.5 4.06 4.55 6.14 5.14.28 0 .55 0 .83.11v.05c-.69 1-3.08 2.15-4.2 2.54a14.8 14.8 0 0 1-6.35.5c-.35-.05-.42-.05-.51 0s0 .14.1.23a15 15 0 0 0 1.32.78A21.2 21.2 0 0 0 6.42 33c7.65 2.11 16.26.56 22-5.15 4.51-4.48 6.09-10.66 6.09-16.84 0-.25.29-.38.46-.51A15.3 15.3 0 0 0 38 7.41a1.2 1.2 0 0 0 .27-.6c.03-.13-.04-.1-.19-.03"},null,-1)])])}var EE={render:CE},SE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 39 39"};function ME(e,n){return L(),H("svg",SE,[...n[0]||(n[0]=[X("path",{d:"M33.25 4.27H1.89V30a2.72 2.72 0 0 0 2.72 2.72h29.78A2.72 2.72 0 0 0 37.11 30V4.27zm0 2.27v.08L20 20.78 5.85 6.62a.07.07 0 0 1 0-.06zm1.14 23.92H4.61a.45.45 0 0 1-.45-.46V8.14l.08.09L18.5 22.49a2.13 2.13 0 0 0 1.51.62 2.14 2.14 0 0 0 1.53-.67l13.3-14.16V30a.45.45 0 0 1-.45.46"},null,-1)])])}var IE={render:ME},TE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"};function kE(e,n){return L(),H("svg",TE,[...n[0]||(n[0]=[lc('<circle cx="20" cy="50" r="10"><animate attributeName="opacity" begin=".1" dur="1s" repeatCount="indefinite" values="0;1;0"></animate></circle><circle cx="50" cy="50" r="10"><animate attributeName="opacity" begin=".2" dur="1s" repeatCount="indefinite" values="0;1;0"></animate></circle><circle cx="80" cy="50" r="10"><animate attributeName="opacity" begin=".3" dur="1s" repeatCount="indefinite" values="0;1;0"></animate></circle>',3)])])}var OE={render:kE},xE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30.34 30.34"};function NE(e,n){return L(),H("svg",xE,[...n[0]||(n[0]=[X("path",{d:"M22.562 12.491s1.227-.933.293-1.866-1.842.271-1.842.271l-9.389 9.391s-2.199 2.838-3.871 1.122c-1.67-1.718 1.121-3.872 1.121-3.872l12.311-12.31s2.873-3.165 5.574-.466c2.697 2.7-.477 5.579-.477 5.579L12.449 24.173s-4.426 5.113-8.523 1.015 1.066-8.474 1.066-8.474L15.494 6.209s1.176-.982.295-1.866c-.885-.883-1.865.295-1.865.295L1.873 16.689s-4.549 4.989.531 10.068c5.08 5.082 10.072.533 10.072.533l16.563-16.565s3.314-3.655-.637-7.608-7.607-.639-7.607-.639L6.543 16.728s-3.65 2.969-.338 6.279c3.312 3.314 6.227-.39 6.227-.39z"},null,-1)])])}var Tm={render:NE},RE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function LE(e,n){return L(),H("svg",RE,[...n[0]||(n[0]=[X("path",{d:"M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12"},null,-1)])])}var PE={render:LE},DE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43.074 42.35"};function FE(e,n){return L(),H("svg",DE,[...n[0]||(n[0]=[lc('<g data-name="Layer 2" transform="translate(-11.86 -14.678)"><path d="M27.041 53.253c-1.064-1.771-2.107-3.505-3.087-5.276-.352-.636-.583-.81-1.592-.794-3.331.035-3.326.035-4.38.027l-.549-.008c-3.594-.003-5.572-1.992-5.572-5.602V20.27c0-3.607 1.983-5.591 5.588-5.591h31.993c3.523 0 5.462 1.947 5.462 5.48.005 9.007.005 12.633 0 21.64a4.892 4.892 0 0 1-5.399 5.401h-.008l-5.515-.005c-6.442-.008-4.361-.018-8.483.021a1.1 1.1 0 0 0-.505.352c-1.059 1.71-2.067 3.45-3.074 5.192l-1.169 2.007c-.084.147-.179.292-.297.473l-1.161 1.79z"></path><rect width="32.605" height="3.043" x="17.045" y="21.789" fill="currentColor" rx=".812"></rect><rect width="32.605" height="3.043" x="17.045" y="29.228" fill="currentColor" rx=".812"></rect><rect width="19.008" height="3.043" x="17.045" y="36.668" fill="currentColor" rx=".812"></rect></g>',1)])])}var Ps={render:FE},BE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"};function UE(e,n){return L(),H("svg",BE,[...n[0]||(n[0]=[X("path",{d:"M512 160h-96V64c0-35.3-28.7-64-64-64H64C28.7 0 0 28.7 0 64v160c0 35.3 28.7 64 64 64h32v52c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4l76.9-43.5V384c0 35.3 28.7 64 64 64h96l108.9 61.6c2.2 1.6 4.7 2.4 7.1 2.4 6.2 0 12-4.9 12-12v-52h32c35.3 0 64-28.7 64-64V224c0-35.3-28.7-64-64-64M64 256c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h288c17.6 0 32 14.4 32 32v160c0 17.6-14.4 32-32 32H215.6l-7.3 4.2-80.3 45.4V256zm480 128c0 17.6-14.4 32-32 32h-64v49.6l-80.2-45.4-7.3-4.2H256c-17.6 0-32-14.4-32-32v-96h128c35.3 0 64-28.7 64-64v-32h96c17.6 0 32 14.4 32 32z"},null,-1)])])}var km={render:UE},jE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function qE(e,n){return L(),H("svg",jE,[...n[0]||(n[0]=[X("path",{d:"M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64m32 352c0 17.6-14.4 32-32 32H293.3l-8.5 6.4L192 460v-76H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h384c17.6 0 32 14.4 32 32z"},null,-1)])])}var Om={render:qE},$E={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 46.9 46.9"};function zE(e,n){return L(),H("svg",$E,[...n[0]||(n[0]=[X("path",{fill:"#0596d4",d:"M23.4 46.9C10.5 46.9 0 36.4 0 23.4c0-6.2 2.5-12.1 6.8-16.5C11.2 2.5 17.2 0 23.4 0h.1c12.9 0 23.4 10.5 23.4 23.4 0 13-10.5 23.4-23.5 23.5m0-45.3c-12.1 0-21.9 9.8-21.8 21.9 0 5.8 2.3 11.3 6.4 15.4s9.6 6.4 15.4 6.4c12.1 0 21.8-9.8 21.8-21.9S35.5 1.6 23.4 1.6"},null,-1),X("circle",{cx:"23.4",cy:"23.4",r:"18.6",fill:"#eaeaea"},null,-1),X("path",{fill:"#fff",d:"M27 27.6c3.1-2 4-6.1 2-9.1s-6.1-4-9.1-2-4 6.1-2 9.1c.5.8 1.2 1.5 2 2-4.4.4-7.7 4-7.7 8.4v2.2c6.6 5.1 15.9 5.1 22.5 0V36c0-4.4-3.3-8-7.7-8.4"},null,-1)])])}var VE={render:zE},HE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function WE(e,n){return L(),H("svg",HE,[...n[0]||(n[0]=[X("path",{d:"M369.9 97.9 286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34m-22.6 22.7c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5c2.8.7 5.3 2.1 7.4 4.2zM336 480H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304c0 8.8-7.2 16-16 16"},null,-1)])])}var YE={render:WE},GE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function QE(e,n){return L(),H("svg",GE,[...n[0]||(n[0]=[X("path",{d:"m460.115 373.846-6.941-4.008c-5.546-3.202-7.564-10.177-4.661-15.886 32.971-64.838 31.167-142.731-5.415-205.954-36.504-63.356-103.118-103.876-175.8-107.701C260.952 39.963 256 34.676 256 28.321v-8.012c0-6.904 5.808-12.337 12.703-11.982 83.552 4.306 160.157 50.861 202.106 123.67 42.069 72.703 44.083 162.322 6.034 236.838-3.14 6.149-10.75 8.462-16.728 5.011"},null,-1)])])}var KE={render:QE},ZE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function JE(e,n){return L(),H("svg",ZE,[...n[0]||(n[0]=[X("path",{d:"M193.94 256 296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31z"},null,-1)])])}var XE={render:JE},eS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function tS(e,n){return L(),H("svg",eS,[...n[0]||(n[0]=[X("path",{d:"M511.1 63.1v287.1c0 35.25-28.75 63.1-64 63.1h-144l-124.9 93.68c-7.875 5.75-19.12.05-19.12-9.7V413.3h-96c-35.25 0-64-28.75-64-63.1V63.1c0-35.25 28.75-63.1 64-63.1h384c36.12 0 64.02 28.75 64.02 63.1"},null,-1)])])}var xm={render:tS},nS={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none"};function iS(e,n){return L(),H("svg",nS,[...n[0]||(n[0]=[X("path",{fill:"#fff",d:"M3.429 0H.857A.857.857 0 0 0 0 .857V3.43a.857.857 0 1 0 1.714 0V1.714H3.43a.857.857 0 1 0 0-1.714m7.714 0H8.57a.857.857 0 1 0 0 1.714h1.715V3.43a.857.857 0 1 0 1.714 0V.857A.856.856 0 0 0 11.143 0M3.429 10.286H1.714V8.57a.857.857 0 1 0-1.714 0v2.572c0 .474.383.857.857.857H3.43a.857.857 0 1 0 0-1.714m7.714-2.572a.857.857 0 0 0-.857.857v1.715H8.57a.857.857 0 1 0 0 1.714h2.572a.857.857 0 0 0 .857-.857V8.57a.856.856 0 0 0-.857-.857"},null,-1)])])}var rS={render:iS},aS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function oS(e,n){return L(),H("svg",aS,[...n[0]||(n[0]=[X("path",{d:"M300 224h136c10.7 0 16-12.9 8.4-20.5l-50.9-51L507.3 38.6c6.2-6.2 6.2-16.4 0-22.6L496 4.7c-6.2-6.2-16.4-6.2-22.6 0L359.5 118.6l-51-51C300.9 60 288 65.3 288 76v136c0 6.6 5.4 12 12 12m93.4 135.5 51-51c7.5-7.6 2.2-20.5-8.5-20.5H300c-6.6 0-12 5.4-12 12v136c0 10.7 12.9 16 20.5 8.4l51-50.9 113.9 113.9c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6zM212 288H76c-10.7 0-16 12.9-8.4 20.5l50.9 51L4.7 473.4c-6.2 6.2-6.2 16.4 0 22.6L16 507.3c6.2 6.2 16.4 6.2 22.6 0l113.9-113.9 51 51c7.6 7.5 20.5 2.2 20.5-8.5V300c0-6.6-5.4-12-12-12m-93.4-135.5-51 51C60 211.1 65.3 224 76 224h136c6.6 0 12-5.4 12-12V76c0-10.7-12.9-16-20.5-8.4l-51 50.9L38.6 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 16c-6.2 6.2-6.2 16.4 0 22.6z"},null,-1)])])}var sS={render:oS},lS={name:"ToolbarButton",components:{WplcIcon:Ps},props:{title:{type:String,default:"button"},disabled:Boolean},setup(e,n){return{onClick:i=>{i.stopPropagation(),n.emit("clicked")}}}},cS="*{box-sizing:border-box}.bubble{border-radius:var(--call-us-round-button,50%);width:var(--call-us-main-button-width,60px);height:var(--call-us-main-button-width,60px)}.bubble svg{padding:var(--call-us-standart-right-left-padding,11px)}.bubble .chevron_down_icon{width:60%}.single-button{background-color:var(--call-us-form-header-background,#373737);margin:0;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.single-button svg{fill:#fff}.single-button svg rect{fill:var(--call-us-form-header-background,#373737)}.minimized-button{background-color:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));margin:0;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.minimized-button .minimize-image{transition:transform .2s ease-in-out}.minimized-button img.minimize-image{width:30px;height:30px}.minimized-button .notification-indicator{border-radius:var(--call-us-round-button,50%);background-color:#e44f4b;border:1px solid #fff;width:13px;height:13px;position:absolute;top:2px;right:2px}.minimized-button svg{fill:var(--call-us-main-background-color,#fff)}.minimized-button svg rect{fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4))}.button{cursor:pointer;border:0;justify-content:center;align-items:center;padding:0;display:flex;position:relative}.button svg{width:80%}.button:focus{outline:none}.button:active:enabled{transition:none;transform:scale(.95)}.button .bubble{border-radius:var(--call-us-round-button,50%)}.button:disabled{opacity:.3;cursor:not-allowed;transition:opacity .1s ease-in-out}",Qe=(e,n)=>{const t=e.__vccOpts||e;for(const[i,r]of n)t[i]=r;return t},uS=["title","disabled"];function fS(e,n,t,i,r,a){return L(),H("button",{id:"wplc-chat-button","aria-label":"Live Chat & Talk",title:t.title,class:j(["button"]),disabled:t.disabled,type:"button",onMousedown:n[0]||(n[0]=en(()=>{},["prevent"])),onClick:n[1]||(n[1]=o=>e.$emit("click-inner"))},[kr(e.$slots,"default")],40,uS)}var Nm=Qe(lS,[["render",fS],["styles",[cS]]]),dS=Ye({components:{ToolBarButton:Nm,GlyphiconChevron:Em,WplcIcon:Ps,WplcIconBubble:Om,WplcIconDoubleBubble:km},props:{disabled:Boolean,collapsed:{type:Boolean,default:!0},config:{type:Object,default:()=>{}}},setup(e,n){const t=ve(Gt),i=re(!1),r=re(void 0),a=ne(()=>e.config.minimizedStyle===Si.BubbleRight||e.config.minimizedStyle===Si.BubbleLeft),o=Lt();return _t(()=>{o.add(t.onUnattendedMessage.subscribe(l=>{i.value=!l.preventBubbleIndication})),o.add(t.onAttendChat.subscribe(()=>{i.value=!1}))}),{showNotification:i,toolbarButton:r,isBubble:a}}}),hS="*{box-sizing:border-box}.bubble{border-radius:var(--call-us-round-button,50%);width:var(--call-us-main-button-width,60px);height:var(--call-us-main-button-width,60px)}.bubble svg{padding:var(--call-us-standart-right-left-padding,11px);width:80%}.bubble .chevron_down_icon{width:60%}.minimized-button{background-color:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));margin:0;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.minimized-button .minimize-image{transition:transform .2s ease-in-out}.minimized-button img.minimize-image{width:30px;height:30px}.minimized-button .notification-indicator{border-radius:var(--call-us-round-button,50%);background-color:#e44f4b;border:1px solid #fff;width:13px;height:13px;position:absolute;top:2px;right:2px}.minimized-button svg{fill:var(--call-us-main-background-color,#fff)}.minimized-button svg rect{fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4))}",pS=["src"],gS={key:5,class:j(["notification-indicator"])};function mS(e,n,t,i,r,a){const o=he("WplcIconBubble"),l=he("WplcIconDoubleBubble"),s=he("WplcIcon"),c=he("GlyphiconChevron"),u=he("ToolBarButton");return L(),Me(u,{ref:"toolbarButton",class:j([["minimized-button"],"bubble"]),disabled:e.disabled,onClickInner:n[0]||(n[0]=f=>e.$emit("clicked-button"))},{default:jt(()=>[e.isBubble?(L(),H(He,{key:0},[e.collapsed&&e.config.buttonIconType==="url"&&e.config.buttonIcon!==""?(L(),H("img",{key:0,src:e.config.buttonIcon,class:j(["minimize-image"])},null,8,pS)):e.collapsed&&e.config.buttonIconType==="bubble"?(L(),Me(o,{key:1,class:j(["minimize-image"])})):e.collapsed&&e.config.buttonIconType==="doublebubble"?(L(),Me(l,{key:2,class:j(["minimize-image"])})):e.collapsed?(L(),Me(s,{key:3,class:j(["minimize-image"])})):e.collapsed?ue("",!0):(L(),Me(c,{key:4,class:j([["minimize-image"],["chevron_down_icon"]])})),e.showNotification?(L(),H("span",gS)):ue("",!0)],64)):ue("",!0)]),_:1},8,["disabled"])}var vS=Qe(dS,[["render",mS],["styles",[hS]]]),Ou="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAANlBMVEXz9Pa5vsq2u8jN0dnV2N/o6u7FydPi5Onw8fS+ws3f4ee6v8v29/jY2+Hu7/Ly9PbJztbQ1dxJagBAAAAC60lEQVR4nO3b2ZaCMBREUQbDJOP//2wbEGVIFCHKTa+zH7uVRVmBBJQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMCpdOzvQQqaq2KmuSrOzQ02lSeRem8rpsQq/ozg72Kj4UkAxEev8awnzs7P1yiIadsfpQXjfZCHhUCzbfmeurdNz6bDRsBWRsB+k0cXxdHjpa0wkTBn3hKnjzRZyEgYk3IeEv2RKWCt1cN9EJ0zjfm7Mq/rAVgUnbLpwnK/zA2tnuQmzJHquuqJq91blJuwmAW8rHbV3q2ITFrOAt7Xz3l2UmrBMlpcHe9fOUhOqRYVhFO/cqtSEy0H6bh/tJ1uhCctqlTB/NSnG9pOt1ISXjxLq825laVFowo9GaRPrF9talJqw3n6macaZ09yi1ISG2cLyriwePwxzi1ITru4s2naxma59TC2KTRjE83FqmQ6yeDaUDS3KTRhMV96h5TTSLD4HQ4uCE9bxePUU5pYL/3mD5o9CcMKgTONc39NNLrV5iK4aNLUoOWHQ38RQtW3nsm6db92i8ISvGBtct+hvwqyzBFxE9DehrcHlQPU1YWNvcNGirwlfNThv0ZOE9eJG1OsGZy36kVBdczU9e7RvAz5b9CFhqfIwSp4XwG+OwUWLPiRUV/33Z4tbGtTvGK635CfUDfb/SO5rt20N9t8m65fLT9g3GD5abDY2qC+lvEg4NjhEvLW4tUFvEj4a7OXq3TzoW8Jpg0PEzfk8SThv8EMeJFw1+O8SHmrQg4QHG/Qg4cEGxSc83KD4hIcblJ6w3L508TXh+vtDEpLw3GwDEpKQhOdznVD2fRr9tdpRw/1HqQndIeEvkXCXUlDC+1NBndsnge/fwyVnp9PGH3p95dm1WMKza4/fI37j+UPXR/c+2X9/hjQI0uO3LsyuMioM9A8Sjy/W1iIhY7Sn2tzpUahdWyXiNDNSxcWtSlCBAAAAAAAAAAAAAAAAAAAAAAAAAAAAwCn+AEXGNosxDBhFAAAAAElFTkSuQmCC",Ds="data:image/png;base64,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",bS=Ye({components:{GlyphiconTimes:Sm},props:{greetingMessage:{type:String,default:""},operator:{type:Object,default:()=>Li}},setup(e,n){return{getAgentIcon:ne(()=>e.operator.image?e.operator.image:Ds),onGreetingClicked(){n.emit("clicked")},onGreetingClosed(){n.emit("closed")},updateNotFoundImage(t){t&&t.target&&(t.target.src=Ou)}}}}),yS="*{box-sizing:border-box}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft}@keyframes slideLeft{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight}@keyframes slideRight{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp}@keyframes slideUp{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge{animation:1s ease-in nudge}@keyframes nudge{0%{opacity:0}to{opacity:1}}@keyframes fly-in{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in{transition:all .5s;animation-name:fly-in;animation-duration:.3s}@keyframes show-with-delay{0%{opacity:0}to{opacity:1}}.show-with-delay{animation-name:show-with-delay;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.root-greetings{background:var(--call-us-main-background-color,#fff);color:var(--call-us-main-font-color,#000);width:300px;font-size:var(--call-us-font-size,14px);padding:var(--call-us-element-side-offset-medium,10px);cursor:pointer;border-radius:6px;flex-direction:row;max-width:60vw;min-height:60px;margin-bottom:15px;display:flex;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.root-greetings .operator-img-container{width:30px;margin-right:var(--call-us-element-side-offset-medium,10px);flex-direction:column;justify-content:center;display:flex}.root-greetings .operator-img-container .operator-img{width:30px;height:30px}.root-greetings .operator-img-container .operator-img.rounded-circle{border-radius:var(--call-us-round-button,50%);border:1px solid var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));padding:1px}.root-greetings .operator-img-container svg path:first-of-type{fill:var(--call-us-form-header-background,#373737)}.root-greetings .greeting-content{white-space:pre-wrap;word-break:break-word;flex-direction:column;flex-grow:1;justify-content:center;display:flex}.root-greetings .greeting-action-container{margin-left:var(--call-us-element-side-offset-small,5px);flex-direction:column;justify-content:flex-start;display:flex}.root-greetings .greeting-action-container .action-btn.close-btn{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);line-height:var(--call-us-variable-button-size,20px);text-align:right}.root-greetings .greeting-action-container .action-btn:hover:active svg{transition:all .2s;transform:scale(.9)}.root-greetings .greeting-action-container .action-btn:hover svg{transition:all .2s;transform:scale(1.1)}.root-greetings .greeting-action-container .action-btn svg{fill:var(--call-us-main-font-color,#000);width:10px;height:18px}",AS={class:j(["operator-img-container"])},wS=["src"],_S={class:j(["greeting-content"])},CS={class:j(["greeting-message"])},ES={class:j(["greeting-action-container"])};function SS(e,n,t,i,r,a){const o=he("GlyphiconTimes");return L(),H("div",{id:"greetingContainer",class:j(["root-greetings"]),onClick:n[2]||(n[2]=l=>e.onGreetingClicked())},[X("div",AS,[X("img",{src:e.getAgentIcon,alt:"avatar",class:j([["operator-img"],["rounded-circle"]]),onError:n[0]||(n[0]=l=>e.updateNotFoundImage(l))},null,40,wS)]),X("div",_S,[X("span",CS,Ae(e.greetingMessage),1)]),X("div",ES,[X("div",{id:"close_greeting_btn",class:j([["action-btn"],["close-btn"]]),onClick:n[1]||(n[1]=en(l=>e.onGreetingClosed(),["stop"]))},[pe(o)])])])}var MS=Qe(bS,[["render",SS],["styles",[yS]]]),IS=Ye({components:{MinimizedButton:vS,Greeting:MS},props:{disabled:{type:Boolean,default:!1},collapsed:{type:Boolean},config:{type:Object,default:()=>{}},panelState:{type:Number,default:_e.Chat},operator:{type:Object,default:()=>Li}},setup(e,n){const t=ve(Gt),i=ve(Ua),r=ve(Bn),a=re(!1),o=re(!0),l=re(null),s=Lt(),c=ne(()=>e.panelState===_e.Authenticate||e.panelState===_e.Chat||e.panelState===_e.Intro?r.isAvaliable?e.config.greetingVisibility:e.config.greetingOfflineVisibility:pn.None),u=ne(()=>{const w=!Di();return c.value===pn.Both||c.value===pn.Mobile&&!w||c.value===pn.Desktop&&w}),f=()=>localStorage.getItem("callus.greeting_activated")==="true",h=ne(()=>!a.value&&e.collapsed&&!e.disabled&&u.value&&!f()),p=ne(()=>{if(e.config&&o.value)switch(e.config.animationStyle){case hn.FadeIn:return["fadeIn"];case hn.SlideLeft:return["slideLeft"];case hn.SlideRight:return["slideRight"];case hn.SlideUp:return["slideUp"]}return[]}),d=ne(()=>e.config.minimizedStyle===Si.BubbleLeft?"bubble_left":e.config.minimizedStyle===Si.BubbleRight?"bubble_right":[]),g=w=>{l.value===w.target&&t.onAnimationActivatedChange.next(!1)},b=ne(()=>e.panelState===_e.Authenticate||e.panelState===_e.Chat||e.panelState===_e.Intro?r.isAvaliable?e.config.greetingMessage:e.config.greetingOfflineMessage:""),v=()=>{y(),n.emit("clicked-button")},C=w=>{localStorage&&localStorage.setItem("callus.greeting_activated",w.toString())},y=()=>{C(!0),i.chatInteractionEvent(),a.value=!0},m=()=>{C(f()&&u.value)};return _t(()=>{m(),s.add(t.onAnimationActivatedChange.pipe(Va()).subscribe(w=>{o.value=w})),s.add(t.onChatInitiated.pipe(Va()).subscribe(w=>{w&&C(!1)}))}),{animationsMinimizedBubble:p,getMinimizedStyle:d,showGreeting:h,greetingMessage:b,minimizedBubbleContainer:l,onBubbleClicked:v,onGreetingClosed:y,deactivateAnimation:g,isAnimationActivated:o,retrieveGreetingActivated:f,greetingVisibilityOnState:c,isGreetingEnabledOnDevice:u,storeGreetingActivated:C}}}),TS="*{box-sizing:border-box}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft}@keyframes slideLeft{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight}@keyframes slideRight{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp}@keyframes slideUp{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge{animation:1s ease-in nudge}@keyframes nudge{0%{opacity:0}to{opacity:1}}@keyframes fly-in{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in{transition:all .5s;animation-name:fly-in;animation-duration:.3s}@keyframes show-with-delay{0%{opacity:0}to{opacity:1}}.show-with-delay{animation-name:show-with-delay;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.bubble-root{flex-direction:column;display:flex}.bubble-root.chat_expanded{margin-top:var(--call-us-offset-top-minimized-bubble,15px)}.bubble-root.bubble_left{align-items:flex-start}.bubble-root.bubble_right{align-items:flex-end}";function kS(e,n,t,i,r,a){const o=he("Greeting"),l=he("MinimizedButton");return L(),H("div",{ref:"minimizedBubbleContainer",class:j([e.animationsMinimizedBubble,["bubble-root"],e.collapsed?"":["chat_expanded"],e.getMinimizedStyle]),onAnimationend:n[2]||(n[2]=s=>e.deactivateAnimation(s))},[e.showGreeting?(L(),Me(o,{key:0,ref:"greeting",greetingMessage:e.greetingMessage,operator:e.operator,onClicked:n[0]||(n[0]=s=>e.onBubbleClicked()),onClosed:n[1]||(n[1]=s=>e.onGreetingClosed())},null,8,["greetingMessage","operator"])):ue("",!0),pe(l,{ref:"minimizedButton",config:e.config,collapsed:e.collapsed,disabled:e.disabled,onClickedButton:e.onBubbleClicked},null,8,["config","collapsed","disabled","onClickedButton"])],34)}var Rm=Qe(IS,[["render",kS],["styles",[TS]]]),OS=Ye({props:{show:Boolean,text:String}}),xS='*{box-sizing:border-box}.loading{z-index:var(--call-us-z-index-overlay,2);background:#ffffffb3;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.loading .loader,.loading .loader:before,.loading .loader:after{border-radius:var(--call-us-round-button,50%);width:2.5em;height:2.5em;animation:1.8s ease-in-out infinite loading}.loading .loader{color:var(--call-us-form-header-background,#373737);text-indent:-9999em;font-size:6px;animation-delay:-.16s;position:relative;transform:translateZ(0)}.loading .loader:before,.loading .loader:after{content:"";position:absolute;top:0}.loading .loader:before{animation-delay:-.32s;left:-3.5em}.loading .loader:after{left:3.5em}@keyframes loading{0%,80%,to{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em}}',NS={key:0,class:j("loading")},RS={class:j("loader")};function LS(e,n,t,i,r,a){return e.show?(L(),H("div",NS,[X("div",RS,Ae(e.text),1)])):ue("",!0)}var Lm=Qe(OS,[["render",LS],["styles",[xS]]]),PS=Ye({components:{MinimizedBubble:Rm,Loading:Lm},props:{panelState:{type:Number,default:_e.Chat},allowMinimize:{type:Boolean},startMinimized:{type:Boolean},config:{type:Object,default:()=>{}},allowFullscreen:{type:Boolean,default:!1},operator:{type:Object,default:()=>Li},isCallingWindow:{type:Boolean,default:!1},chatEnabled:{type:Boolean,default:!1}},setup(e,n){const t=ve(Mi),i=ve(Gt),r=ve(Dr),a=ve(tn),o=re(null),l=re(!1),s=re(!1),c=re(!0),u=ne(()=>{let p=[];return t.isFullScreen?p=["full-screen"]:e.isCallingWindow?p=["calling-window"]:e.panelState===_e.Chat?p=["chat-form"]:e.panelState===_e.Intro?p=["intro-form"]:p=["small-form"],p}),f=()=>{e.allowMinimize&&(l.value?(i.onRestored.next(),t.enableFullScreen&&e.panelState!==_e.Intro&&t.goFullScreen()):(i.onMinimized.next(),t.closeFullScreen()))},h=Lt();return _t(()=>{l.value=document.location.hash==="#popoutchat"?!1:e.startMinimized,h.add(i.onToggleCollapsed.subscribe({next:()=>f()})),h.add(i.onMinimized.subscribe({next:()=>{l.value=!0,sessionStorage.setItem("callus.collapsed","1")}})),h.add(i.onRestored.subscribe({next:()=>{l.value=!1,sessionStorage.setItem("callus.collapsed","0")}})),h.add(i.onAnimationActivatedChange.pipe(Va()).subscribe({next:p=>{c.value=p}})),e.allowFullscreen?h.add(Vr(window.matchMedia("(orientation: landscape)"),"change").pipe($c(window.matchMedia("(orientation: landscape)")),yt(p=>({isLandscape:p.matches}))).subscribe({next:p=>{!e.isCallingWindow&&!l.value||e.allowFullscreen&&p.isLandscape&&e.isCallingWindow&&!a.isVideoActive.value?t.goFullScreen():t.closeFullScreen()}})):t.isFullScreen&&t.closeFullScreen()}),{panel:o,isAnimationActivated:c,collapsed:l,loadingService:r,hideCloseButton:s,onToggleCollapsed:f,getMinimizedStyle:ne(()=>e.config.minimizedStyle===Si.BubbleLeft?"bubble_left":(e.config.minimizedStyle===Si.BubbleRight,"bubble_right")),onClose(){s.value=!0,r.show(),n.emit("close")},isFullScreen:ne(()=>t.isFullScreen),animations:ne(()=>{if(e.config&&c.value)switch(e.config.animationStyle){case hn.FadeIn:return["fadeIn"];case hn.SlideLeft:return["slideLeft"];case hn.SlideRight:return["slideRight"];case hn.SlideUp:return["slideUp"]}return[]}),panelHeight:u,showPanel:ne(()=>!l.value||!e.allowMinimize),showBubble:ne(()=>e.allowMinimize),deactivateAnimation(p){o.value===p.target&&i.onAnimationActivatedChange.next(!1)},myWebRTCService:a}}}),DS='[data-v-c8580658]{box-sizing:border-box}.custom-scrollbar[data-v-c8580658]::-webkit-scrollbar{width:4px}.panel .panel_content .panel_body[data-v-c8580658]::-webkit-scrollbar{width:4px}.custom-scrollbar[data-v-c8580658]::-webkit-scrollbar-track{background:#f1f1f1}.panel .panel_content .panel_body[data-v-c8580658]::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar[data-v-c8580658]::-webkit-scrollbar-thumb{background:#888}.panel .panel_content .panel_body[data-v-c8580658]::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar[data-v-c8580658]::-webkit-scrollbar-thumb:hover{background:#555}.panel .panel_content .panel_body[data-v-c8580658]::-webkit-scrollbar-thumb:hover{background:#555}@keyframes fadeIn-c8580658{0%{opacity:0}to{opacity:1}}.fadeIn[data-v-c8580658]{animation-name:fadeIn-c8580658;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft[data-v-c8580658]{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft-c8580658}@keyframes slideLeft-c8580658{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight[data-v-c8580658]{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight-c8580658}@keyframes slideRight-c8580658{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp[data-v-c8580658]{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp-c8580658}@keyframes slideUp-c8580658{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge[data-v-c8580658]{animation:1s ease-in nudge-c8580658}@keyframes nudge-c8580658{0%{opacity:0}to{opacity:1}}@keyframes fly-in-c8580658{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in[data-v-c8580658]{transition:all .5s;animation-name:fly-in-c8580658;animation-duration:.3s}@keyframes show-with-delay-c8580658{0%{opacity:0}to{opacity:1}}.show-with-delay[data-v-c8580658]{animation-name:show-with-delay-c8580658;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin[data-v-c8580658]{animation:2s linear infinite spin-c8580658}@keyframes spin-c8580658{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.panel[data-v-c8580658]{flex-direction:column;flex-grow:1;justify-content:flex-end;max-height:100vh;display:flex;position:relative}.panel .limited[data-v-c8580658]{font-size:var(--call-us-font-size,14px)}.panel.full-screen[data-v-c8580658]{border-radius:0;height:calc(var(--vh,1vh) * 100)!important;width:calc(var(--vw,1vw) * 100)!important}.panel.popout-small[data-v-c8580658]{width:calc(var(--call-us-form-width) / 2);margin-left:calc(var(--call-us-form-width) / 4)}.panel .minimized[data-v-c8580658]{display:none}.panel .panel_content[data-v-c8580658]{border-radius:6px;flex-direction:column;width:100%;height:100%;display:flex;position:relative;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.panel .panel_content .panel_body[data-v-c8580658]{font-size:var(--call-us-font-size,14px);color:#000;background:var(--call-us-main-background-color,#fff);border-bottom-right-radius:inherit;border-bottom-left-radius:inherit;flex-direction:column;flex:1;max-height:100%;display:flex;position:relative;overflow-y:auto}.panel .panel_content.calling-window[data-v-c8580658],.panel .panel_content.chat-form[data-v-c8580658],.panel .panel_content.small-form[data-v-c8580658]{height:509px;min-width:var(--call-us-form-width-min,280px);max-width:var(--call-us-form-width-max,800px);width:300px;min-height:var(--call-us-form-height-min,425px)}@media screen and (orientation:landscape){.panel .panel_content.calling-window[data-v-c8580658],.panel .panel_content.chat-form[data-v-c8580658],.panel .panel_content.small-form[data-v-c8580658]{min-height:0}}.panel .panel_content.calling-window[data-v-c8580658]{height:var(--call-us-max-height-calling-window,509px);max-height:var(--call-us-max-height-calling-window,509px)!important}@media screen and (orientation:portrait) and (width<=450px){.panel .panel_content.calling-window[data-v-c8580658]{width:100vw}}.panel .panel_content.small-form[data-v-c8580658]{min-height:var(--call-us-height-small-form,410px);height:509px}@media screen and (orientation:landscape){.panel .panel_content.small-form[data-v-c8580658]{min-height:0}}.panel .panel_content.small-form-height[data-v-c8580658]{height:509px;min-height:var(--call-us-small-form-min-height,450px);max-width:var(--call-us-small-form-min-height,380px)}.panel .panel_content.intro-form[data-v-c8580658]{min-height:var(--call-us-intro-form-height-min,124px);max-height:var(--call-us-intro-form-height-min,124px);width:var(--call-us-intro-form-width,229px)}.panel .panel_content.intro-form .panel_body[data-v-c8580658]{border-radius:inherit}.panel .panel_content.intro-form[data-v-c8580658]:after{content:"";border-top:12px solid var(--call-us-main-background-color,#fff);border-left:7.5px solid #0000;border-right:7.5px solid #0000;width:0;height:0;margin:0 auto;position:absolute;top:124px;left:75%;right:0}.panel.calling-window[data-v-c8580658]{height:var(--call-us-max-height-calling-window,509px);max-height:var(--call-us-max-height-calling-window,509px)!important}.panel svg rect[data-v-c8580658]{fill:var(--call-us-form-header-background,#373737)}',FS={class:j(["panel_body"])},BS={style:{height:"100%"}};function US(e,n,t,i,r,a){const o=he("Loading"),l=he("MinimizedBubble");return L(),H("div",{ref:"panel",class:j([["panel"],e.animations,e.isFullScreen?["full-screen"]:""]),onAnimationend:n[0]||(n[0]=s=>e.deactivateAnimation(s))},[Ln(X("div",{class:j([["panel_content"],e.panelHeight,e.myWebRTCService.isVideoActive.value?["video_extend"]:""])},[kr(e.$slots,"overlay",{},void 0,!0),kr(e.$slots,"panel-top",{},void 0,!0),X("div",FS,[(L(),Me(o,{key:e.loadingService.key,show:e.loadingService.loading()&&!e.config.demo,text:"loading"},null,8,["show"])),X("div",BS,[kr(e.$slots,"panel-content",{},void 0,!0)])])],2),[[vc,e.showPanel]]),e.showBubble?(L(),Me(l,{key:0,ref:"minimizedBubble",collapsed:e.collapsed,config:e.config,operator:e.operator,panelState:e.panelState,disabled:!1,onClickedButton:e.onToggleCollapsed},null,8,["collapsed","config","operator","panelState","onClickedButton"])):ue("",!0)],34)}var xu=Qe(PS,[["render",US],["styles",[DS]],["__scopeId","data-v-c8580658"]]),jS=Ye({directives:{object:to},components:{Panel:xu,WplcIcon:Ps,GlyphiconCall:no},props:{config:{type:Object,default:()=>{}},webRtcCodecs:{type:Array,default:void 0},startMinimized:Boolean,operator:{type:Object,default:()=>Li}},setup(e,n){const t=ve(Mi),i=ve(Gt),r=ve(Ec),a=ve(Bn),o=ve(tn),{t:l}=Rt();o.webRTCControlService.setWebRtcCodecs(e.webRtcCodecs),qt(tn,o);const s=Lt(),c=ne(()=>o.hasCall.value?o.hasCall.value&&o.hasEstablishedCall.value?l("Inputs.Connected").toString():l("Inputs.Dialing").toString():"");_t(()=>{s.add(o.phoneService.myCalls$.pipe(yt(p=>p.length>0?p[0].media:or),Ee(p=>at(p!==or)),Va()).subscribe({next:p=>{p||r.dropSession().subscribe({next:()=>{a.closeSession()},error:d=>{i.onError.next(d)}})}}))});const u=(p,d=!1)=>{o.hasCall.value||n.emit("chat",d)},f=()=>{i.onChatInitiated.next(!0),ta&&(u(void 0,!0),o.call(!1).pipe(kn(1)).subscribe({error:p=>i.onError.next(p)}))},h=()=>{o.dropCall().pipe(kn(1)).subscribe({error:p=>i.onError.next(p)})};return{isWebRtcAllowed:ne(()=>ta),fullscreenService:t,ViewState:_e,myWebRTCService:o,callStateTitle:c,t:l,startChat:u,dropCall:h,makeCall:f}}}),qS="[data-v-3fff492c]{box-sizing:border-box}.intro-root[data-v-3fff492c]{color:var(--call-us-main-font-color,#000);flex-flow:column;flex-grow:1;justify-content:center;align-items:center;margin-block-end:0;display:flex}.intro-root .action_option[data-v-3fff492c]{width:100%;height:62px;font-size:var(--call-us-font-size,14px);cursor:pointer;background-color:var(--call-us-main-background-color,#fff);border-bottom:1px solid #e2dfdf;padding:18.5px 10px}.intro-root .action_option[data-v-3fff492c]:hover{background-color:var(--call-us-main-font-color,#000);color:var(--call-us-main-background-color,#fff);opacity:.8;transition:all .25s linear}.intro-root .action_option.disabled[data-v-3fff492c]{opacity:.2;cursor:default}.intro-root .action_option .option-icon[data-v-3fff492c]{vertical-align:middle;height:25px;margin-right:var(--call-us-element-side-offset-medium,10px);fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));color:#fff}.intro-root .action_option .option-icon.end-call-icon[data-v-3fff492c]{transform:var(--call-us-default-rotation-drop-call,rotate(135deg));fill:#d80027}.intro-root .action_option[data-v-3fff492c]:last-child{border:none}",$S={class:j("intro-root")},zS=["src"],VS={key:1,autoplay:""};function HS(e,n,t,i,r,a){const o=he("WplcIcon"),l=he("GlyphiconCall"),s=he("Panel"),c=Tr("object");return L(),Me(s,{config:e.config,startMinimized:e.startMinimized,allowMinimize:e.config.allowMinimize,panelState:e.ViewState.Intro,fullScreenService:e.fullscreenService,operator:e.operator},{"panel-content":jt(()=>[X("div",$S,[e.myWebRTCService.audioNotificationUrl?(L(),H("audio",{key:0,src:e.myWebRTCService.audioNotificationUrl.value||void 0,autoplay:"",loop:""},null,8,zS)):ue("",!0),e.myWebRTCService.remoteStream.value?Ln((L(),H("audio",VS,null,512)),[[c,e.myWebRTCService.remoteStream.value]]):ue("",!0),X("div",{ref:"startChatOption",class:j(["action_option",e.myWebRTCService.hasCall.value?"disabled":""]),onClick:n[0]||(n[0]=(...u)=>e.startChat&&e.startChat(...u))},[pe(o,{class:j(["option-icon"])}),fn(" "+Ae(e.t("Inputs.ChatWithUs")),1)],2),e.myWebRTCService.hasCall.value?(L(),H("div",{key:3,ref:"dropCallOption",class:j("action_option"),onClick:n[2]||(n[2]=(...u)=>e.dropCall&&e.dropCall(...u))},[pe(l,{class:j([["option-icon"],["end-call-icon"]])}),fn(" "+Ae(e.callStateTitle),1)],512)):(L(),H("div",{key:2,ref:"makeCallOption",class:j(["action_option",e.isWebRtcAllowed?"":"disabled:"]),onClick:n[1]||(n[1]=(...u)=>e.makeCall&&e.makeCall(...u))},[pe(l,{class:j(["option-icon"])}),fn(" "+Ae(e.t("Inputs.CallTitle")),1)],2))])]),_:1},8,["config","startMinimized","allowMinimize","panelState","fullScreenService","operator"])}var WS=Qe(jS,[["render",HS],["styles",[qS]],["__scopeId","data-v-3fff492c"]]);function Pm(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Fi(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Pm(Object(t),!0).forEach(function(i){YS(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pm(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function YS(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Dm(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,i)=>(n.includes(i)||(t[i]=Ne(e[i])),t),{})}function Fs(e){return typeof e=="function"}function GS(e){return Nn(e)||En(e)}function Fm(e,n,t){let i=e;const r=n.split(".");for(let a=0;a<r.length;a++){if(!i[r[a]])return t;i=i[r[a]]}return i}function Nu(e,n,t){return ne(()=>e.some(i=>Fm(n,i,{[t]:!1})[t]))}function Bm(e,n,t){return ne(()=>e.reduce((i,r)=>{const a=Fm(n,r,{[t]:!1})[t]||[];return i.concat(a)},[]))}function Um(e,n,t,i){return e.call(i,Ne(n),Ne(t),i)}function jm(e){return e.$valid!==void 0?!e.$valid:!e}function QS(e,n,t,i,r,a,o){let{$lazy:l,$rewardEarly:s}=r,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,f=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0;const p=re(!!i.value),d=re(0);return t.value=!1,{$invalid:p,$unwatch:kt([n,i].concat(c,h),()=>{if(l&&!i.value||s&&!f.value&&!t.value)return;let g;try{g=Um(e,n,u,o)}catch(b){g=Promise.reject(b)}d.value++,t.value=!!d.value,p.value=!1,Promise.resolve(g).then(b=>{d.value--,t.value=!!d.value,a.value=b,p.value=jm(b)}).catch(b=>{d.value--,t.value=!!d.value,a.value=b,p.value=!0})},{immediate:!0,deep:typeof n=="object"})}}function KS(e,n,t,i,r,a,o,l){let{$lazy:s,$rewardEarly:c}=i;return{$unwatch:()=>({}),$invalid:ne(()=>{if(s&&!t.value||c&&!l.value)return!1;let f=!0;try{const h=Um(e,n,o,a);r.value=h,f=jm(h)}catch(h){r.value=h}return f})}}function ZS(e,n,t,i,r,a,o,l,s,c,u){const f=re(!1),h=e.$params||{},p=re(null);let d,g;e.$async?{$invalid:d,$unwatch:g}=QS(e.$validator,n,f,t,i,p,r,e.$watchTargets,s,c,u):{$invalid:d,$unwatch:g}=KS(e.$validator,n,t,i,p,r,s,c);const b=e.$message;return{$message:Fs(b)?ne(()=>b(Dm({$pending:f,$invalid:d,$params:Dm(h),$model:n,$response:p,$validator:a,$propertyPath:l,$property:o}))):b||"",$params:h,$pending:f,$invalid:d,$response:p,$unwatch:g}}function JS(){const e=Ne(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),n=Object.keys(e),t={},i={},r={};let a=null;return n.forEach(o=>{const l=e[o];switch(!0){case Fs(l.$validator):t[o]=l;break;case Fs(l):t[o]={$validator:l};break;case o==="$validationGroups":a=l;break;case o.startsWith("$"):r[o]=l;break;default:i[o]=l}}),{rules:t,nestedValidators:i,config:r,validationGroups:a}}var XS="__root";function eM(e,n,t,i,r,a,o,l,s){const c=Object.keys(e),u=i.get(r,e),f=re(!1),h=re(!1),p=re(0);if(u){if(!u.$partial)return u;u.$unwatch(),f.value=u.$dirty.value}const d={$dirty:f,$path:r,$touch:()=>{f.value||(f.value=!0)},$reset:()=>{f.value&&(f.value=!1)},$commit:()=>{}};return c.length?(c.forEach(g=>{d[g]=ZS(e[g],n,d.$dirty,a,o,g,t,r,s,h,p)}),d.$externalResults=ne(()=>l.value?[].concat(l.value).map((g,b)=>({$propertyPath:r,$property:t,$validator:"$externalResults",$uid:`${r}-externalResult-${b}`,$message:g,$params:{},$response:null,$pending:!1})):[]),d.$invalid=ne(()=>{const g=c.some(b=>Ne(d[b].$invalid));return h.value=g,!!d.$externalResults.value.length||g}),d.$pending=ne(()=>c.some(g=>Ne(d[g].$pending))),d.$error=ne(()=>d.$dirty.value?d.$pending.value||d.$invalid.value:!1),d.$silentErrors=ne(()=>c.filter(g=>Ne(d[g].$invalid)).map(g=>{const b=d[g];return Tt({$propertyPath:r,$property:t,$validator:g,$uid:`${r}-${g}`,$message:b.$message,$params:b.$params,$response:b.$response,$pending:b.$pending})}).concat(d.$externalResults.value)),d.$errors=ne(()=>d.$dirty.value?d.$silentErrors.value:[]),d.$unwatch=()=>c.forEach(g=>{d[g].$unwatch()}),d.$commit=()=>{h.value=!0,p.value=Date.now()},i.set(r,e,d),d):(u&&i.set(r,e,d),d)}function tM(e,n,t,i,r,a,o){const l=Object.keys(e);return l.length?l.reduce((s,c)=>(s[c]=Ru({validations:e[c],state:n,key:c,parentKey:t,resultsCache:i,globalConfig:r,instance:a,externalResults:o}),s),{}):{}}function nM(e,n,t){const i=ne(()=>[n,t].filter(d=>d).reduce((d,g)=>d.concat(Object.values(Ne(g))),[])),r=ne({get(){return e.$dirty.value||(i.value.length?i.value.every(d=>d.$dirty):!1)},set(d){e.$dirty.value=d}}),a=ne(()=>{const d=Ne(e.$silentErrors)||[],g=i.value.filter(b=>(Ne(b).$silentErrors||[]).length).reduce((b,v)=>b.concat(...v.$silentErrors),[]);return d.concat(g)}),o=ne(()=>{const d=Ne(e.$errors)||[],g=i.value.filter(b=>(Ne(b).$errors||[]).length).reduce((b,v)=>b.concat(...v.$errors),[]);return d.concat(g)}),l=ne(()=>i.value.some(d=>d.$invalid)||Ne(e.$invalid)||!1),s=ne(()=>i.value.some(d=>Ne(d.$pending))||Ne(e.$pending)||!1),c=ne(()=>i.value.some(d=>d.$dirty)||i.value.some(d=>d.$anyDirty)||r.value),u=ne(()=>r.value?s.value||l.value:!1),f=()=>{e.$touch(),i.value.forEach(d=>{d.$touch()})},h=()=>{e.$commit(),i.value.forEach(d=>{d.$commit()})},p=()=>{e.$reset(),i.value.forEach(d=>{d.$reset()})};return i.value.length&&i.value.every(d=>d.$dirty)&&f(),{$dirty:r,$errors:o,$invalid:l,$anyDirty:c,$error:u,$pending:s,$touch:f,$reset:p,$silentErrors:a,$commit:h}}function Ru(e){let{validations:n,state:t,key:i,parentKey:r,childResults:a,resultsCache:o,globalConfig:l={},instance:s,externalResults:c}=e;const u=r?`${r}.${i}`:i,{rules:f,nestedValidators:h,config:p,validationGroups:d}=JS(n),g=Fi(Fi({},l),p),b=i?ne(()=>{const ie=Ne(t);return ie?Ne(ie[i]):void 0}):t,v=Fi({},Ne(c)||{}),C=ne(()=>{const ie=Ne(c);return i?ie?Ne(ie[i]):void 0:ie}),y=eM(f,b,i,o,u,g,s,C,t),m=tM(h,b,u,o,g,s,C),w={};d&&Object.entries(d).forEach(ie=>{let[ce,de]=ie;w[ce]={$invalid:Nu(de,m,"$invalid"),$error:Nu(de,m,"$error"),$pending:Nu(de,m,"$pending"),$errors:Bm(de,m,"$errors"),$silentErrors:Bm(de,m,"$silentErrors")}});const{$dirty:I,$errors:T,$invalid:G,$anyDirty:$,$error:B,$pending:Y,$touch:V,$reset:P,$silentErrors:O,$commit:A}=nM(y,m,a),M=i?ne({get:()=>Ne(b),set:ie=>{I.value=!0;const ce=Ne(t),de=Ne(c);de&&(de[i]=v[i]),tt(ce[i])?ce[i].value=ie:ce[i]=ie}}):null;i&&g.$autoDirty&&kt(b,()=>{I.value||V();const ie=Ne(c);ie&&(ie[i]=v[i])},{flush:"sync"});async function F(){return V(),g.$rewardEarly&&(A(),await _r()),await _r(),new Promise(ie=>{if(!Y.value)return ie(!G.value);const ce=kt(Y,()=>{ie(!G.value),ce()})})}function D(ie){return(a.value||{})[ie]}function Q(){tt(c)?c.value=v:Object.keys(v).length===0?Object.keys(c).forEach(ie=>{delete c[ie]}):Object.assign(c,v)}return Tt(Fi(Fi(Fi({},y),{},{$model:M,$dirty:I,$error:B,$errors:T,$invalid:G,$anyDirty:$,$pending:Y,$touch:V,$reset:P,$path:u||XS,$silentErrors:O,$validate:F,$commit:A},a&&{$getResultsForChild:D,$clearExternalResults:Q,$validationGroups:w}),m))}var iM=class{constructor(){this.storage=new Map}set(e,n,t){this.storage.set(e,{rules:n,result:t})}checkRulesValidity(e,n,t){const i=Object.keys(t),r=Object.keys(n);return r.length!==i.length||!r.every(a=>i.includes(a))?!1:r.every(a=>n[a].$params?Object.keys(n[a].$params).every(o=>Ne(t[a].$params[o])===Ne(n[a].$params[o])):!0)}get(e,n){const t=this.storage.get(e);if(!t)return;const{rules:i,result:r}=t,a=this.checkRulesValidity(e,n,i),o=r.$unwatch?r.$unwatch:()=>({});return a?r:{$dirty:r.$dirty,$partial:!0,$unwatch:o}}},Bs={COLLECT_ALL:!0,COLLECT_NONE:!1},qm=Symbol("vuelidate#injectChildResults"),$m=Symbol("vuelidate#removeChildResults");function rM(e){let{$scope:n,instance:t}=e;const i={},r=re([]),a=ne(()=>r.value.reduce((u,f)=>(u[f]=Ne(i[f]),u),{}));function o(u,f){let{$registerAs:h,$scope:p,$stopPropagation:d}=f;d||n===Bs.COLLECT_NONE||p===Bs.COLLECT_NONE||n!==Bs.COLLECT_ALL&&n!==p||(i[h]=u,r.value.push(h))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],o);function l(u){r.value=r.value.filter(f=>f!==u),delete i[u]}t.__vuelidateRemoveInstances=[].concat(t.__vuelidateRemoveInstances||[],l);const s=ve(qm,[]);qt(qm,t.__vuelidateInjectInstances);const c=ve($m,[]);return qt($m,t.__vuelidateRemoveInstances),{childResults:a,sendValidationResultsToParent:s,removeValidationResultsFromParent:c}}function zm(e){return new Proxy(e,{get(n,t){return typeof n[t]=="object"?zm(n[t]):ne(()=>n[t])}})}var Vm=0;function aM(e,n){var t;let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(i=e,e=void 0,n=void 0);let{$registerAs:r,$scope:a=Bs.COLLECT_ALL,$stopPropagation:o,$externalResults:l,currentVueInstance:s}=i;const c=s||((t=Et())===null||t===void 0?void 0:t.proxy),u=c?c.$options:{};r||(Vm+=1,r=`_vuelidate_${Vm}`);const f=re({}),h=new iM,{childResults:p,sendValidationResultsToParent:d,removeValidationResultsFromParent:g}=c?rM({$scope:a,instance:c}):{childResults:re({})};if(!e&&u.validations){const b=u.validations;n=re({}),_t(()=>{n.value=c,kt(()=>Fs(b)?b.call(n.value,new zm(n.value)):b,v=>{f.value=Ru({validations:v,state:n,childResults:p,resultsCache:h,globalConfig:i,instance:c,externalResults:l||c.vuelidateExternalResults})},{immediate:!0})}),i=u.validationsConfig||i}else kt(tt(e)||GS(e)?e:Tt(e||{}),b=>{f.value=Ru({validations:b,state:n,childResults:p,resultsCache:h,globalConfig:i,instance:c??{},externalResults:l})},{immediate:!0});return c&&(d.forEach(b=>b(f,{$registerAs:r,$scope:a,$stopPropagation:o})),Sa(()=>g.forEach(b=>b(r)))),ne(()=>Fi(Fi({},Ne(f.value)),p.value))}var Hm=e=>{if(e=Ne(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let n in e)return!0;return!1}return!!String(e).length};function sr(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return i=>(i=Ne(i),!Hm(i)||n.every(r=>(r.lastIndex=0,r.test(i))))}var ox={$validator:sr(/^[a-zA-Z]*$/),$message:"The value is not alphabetical",$params:{type:"alpha"}},sx={$validator:sr(/^[a-zA-Z0-9]*$/),$message:"The value must be alpha-numeric",$params:{type:"alphaNum"}},lx={$validator:sr(/^\d*(\.\d+)?$/),$message:"Value must be numeric",$params:{type:"numeric"}},cx={$validator:sr(/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i),$message:"Value is not a valid email address",$params:{type:"email"}};function oM(e){return typeof e=="string"&&(e=e.trim()),Hm(e)}var Lu={$validator:oM,$message:"Value is required",$params:{type:"required"}},ux={$validator:sr(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i),$message:"The value is not a valid URL address",$params:{type:"url"}},fx={$validator:sr(/(^[0-9]*$)|(^-[0-9]+$)/),$message:"Value is not an integer",$params:{type:"integer"}},dx={$validator:sr(/^[-]?\d*(\.\d+)?$/),$message:"Value must be decimal",$params:{type:"decimal"}};function Pt(e,n){return n.find(t=>t)??""}function Vn(e,n){return Pt(e,n)}var Us=class gv{static epochTicks=621355968e9;static ticksPerMillisecondInCSharp=1e4;static IdGenerator=(()=>{let n=-1;function t(){n=1e5}return{getNext(){return n<0&&t(),n+=1,n}}})();static convertDateToTicks(n){return(n.getTime()-n.getTimezoneOffset()*60*1e3)*this.ticksPerMillisecondInCSharp+this.epochTicks}static convertTicksToDate(n){const t=(n-this.epochTicks)/this.ticksPerMillisecondInCSharp,i=new Date(t);return new Date(i.getTime()+i.getTimezoneOffset()*60*1e3)}static isDoubleByte(n){if(typeof n<"u"&&n!=null){for(let t=0,i=n.length;t<i;t+=1)if(n.charCodeAt(t)>255)return!0}return!1}static decodeHtml(n){const t=document.createElement("textarea");return t.innerHTML=n,t.value}static escapeHtml(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}static focusElement(n){setTimeout(()=>{n&&n.focus()},200)}static blurElement(n){setTimeout(()=>{n&&n.blur()},200)}static popupCenter(n,t,i){const r=window.screenLeft!==void 0?window.screenLeft:window.screenX,a=window.screenTop!==void 0?window.screenTop:window.screenY,o=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,l=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,s=o/window.screen.availWidth,c=(o-t)/2/s+r,u=(l-i)/2/s+a;return window.open(n,"_blank",`directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes, width=${t}, height=${i}, top=${u}, left=${c}`)}static retrieveHexFromCssColorProperty(n,t,i){const r=this.retrieveCssProperty(n,t),a=gv.colorNameToHex(r);return a!==""?a.replace("#",""):i}static retrieveCssProperty(n,t){let i="";if(n.$root&&n.$root.$el&&n.$root.$el.getRootNode()instanceof ShadowRoot){const r=n.$root.$el.getRootNode();r&&(i=getComputedStyle(r.host).getPropertyValue(t))}return i}static setCssProperty(n,t,i){if(n.$root&&n.$root.$el&&n.$root.$el.getRootNode()instanceof ShadowRoot){const r=n.$root.$el.getRootNode();r&&r.host.style.setProperty(t,i)}}static colorNameToHex(n){const t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return typeof t[n.toLowerCase()]<"u"?t[n.toLowerCase()]:n}},sM="*{box-sizing:border-box}.materialCheckbox{align-items:flex-start;min-height:30px;display:flex}.materialCheckbox input{cursor:pointer}label.lc_checkbox{cursor:pointer;color:var(--call-us-main-font-color,#000);font-size:calc(var(--call-us-font-size,14px) - 3px);margin:0;padding-left:10px;display:inline-block;position:relative}",lM={name:"MaterialCheckbox",props:{value:Boolean,checkName:{type:String,default:""},checkLabel:{type:String,default:""}},data(){return{checked:this.value}},computed:{inputVal:{get(){return this.value},set(e){this.$emit("inputVal",e)}}}},cM={class:j("materialCheckbox")},uM=["id"],fM=["for"];function dM(e,n,t,i,r,a){return L(),H("div",cM,[Ln(X("input",{id:"ck"+t.checkName,"onUpdate:modelValue":n[0]||(n[0]=o=>a.inputVal=o),type:"checkbox",name:"checkboxInput",class:j(["lc_checkbox"])},null,8,uM),[[cs,a.inputVal]]),X("label",{class:j(["lc_checkbox"]),for:"ck"+t.checkName},Ae(t.checkLabel),9,fM)])}var hM=Qe(lM,[["render",dM],["styles",[sM]]]),pM='*{box-sizing:border-box}.bar{border:0;width:100%;padding:0;display:block;position:relative}.bar:before{content:"";background:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));width:0;height:2px;transition:all .3s;position:absolute;bottom:0;left:0}.materialInput,.materialPhone,.materialTextarea{flex-grow:1;margin-bottom:5px;position:relative}.materialInput label,.materialPhone label,.materialTextarea label{color:var(--call-us-main-font-color,#000);font-size:calc(var(--call-us-font-size,14px) - 3px);font-palette:dark;pointer-events:none;left:var(--call-us-element-side-offset-small,5px);font-weight:400;transition:all .3s;position:absolute;top:10px}.materialInput textarea,.materialPhone textarea,.materialTextarea textarea{resize:none;overflow-x:hidden}.materialInput textarea:focus~label,.materialInput textarea:valid~label,.materialPhone textarea:focus~label,.materialPhone textarea:valid~label,.materialTextarea textarea:focus~label,.materialTextarea textarea:valid~label{font-size:calc(var(--call-us-font-size,14px) - 1px);color:var(--call-us-main-font-color,#000);top:-30px}.materialInput input,.materialPhone input,.materialTextarea input{background:var(--call-us-main-background-color,#fff)!important}.materialInput input:focus~label,.materialInput input:valid~label,.materialInput input:disabled~label,.materialPhone input:focus~label,.materialPhone input:valid~label,.materialPhone input:disabled~label,.materialTextarea input:focus~label,.materialTextarea input:valid~label,.materialTextarea input:disabled~label{font-size:calc(var(--call-us-font-size,14px) - 1px);color:var(--call-us-main-font-color,#000);top:-4px}.materialInput.safari-input input,.materialPhone.safari-input input,.materialTextarea.safari-input input{font-size:calc(var(--call-us-font-size,14px) + 2px)}.materialInput input,.materialInput textarea,.materialPhone input,.materialPhone textarea,.materialTextarea input,.materialTextarea textarea{color:var(--call-us-main-font-color,#000);font-size:calc(var(--call-us-font-size,14px) - 1px);border:none;border-bottom:1px solid var(--call-us-main-font-color,#000);background:0 0;border-radius:0;width:100%;padding:7px 0 3px;font-family:inherit;display:block}.materialInput input:focus,.materialInput textarea:focus,.materialPhone input:focus,.materialPhone textarea:focus,.materialTextarea input:focus,.materialTextarea textarea:focus{outline:none}.materialInput input:focus~.bar:before,.materialInput textarea:focus~.bar:before,.materialPhone input:focus~.bar:before,.materialPhone textarea:focus~.bar:before,.materialTextarea input:focus~.bar:before,.materialTextarea textarea:focus~.bar:before{width:100%}',gM={name:"MaterialInput",props:{value:{type:String,default:""},placeholder:{type:String,default:""},maxLength:{type:String,default:"50"},disabled:Boolean},setup(){return{isMobileSafari:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&Di()}},computed:{inputVal:{get(){return this.value},set(e){this.$emit("inputVal",e)}}},methods:{focus(){this.$refs.input&&this.$refs.input.focus()}}},mM=["placeholder","maxlength","disabled"];function vM(e,n,t,i,r,a){return L(),H("div",{class:j(["materialInput",i.isMobileSafari?["safari-input"]:""])},[Ln(X("input",{ref:"input","onUpdate:modelValue":n[0]||(n[0]=o=>a.inputVal=o),placeholder:t.placeholder,autocomplete:"false",maxlength:t.maxLength,type:"text",disabled:t.disabled},null,8,mM),[[Fa,a.inputVal]]),n[1]||(n[1]=X("span",{class:j("bar")},null,-1))],2)}var bM=Qe(gM,[["render",vM],["styles",[pM]]]);function js(e){const n=ve(Gt),t=Lt();return{myWebRTCService:e,makeCall(i){t.add(e.call(i===!0||!1).pipe(kn(1)).subscribe({error:r=>n.onError.next(r)}))},dropCall(){t.add(e.dropCall().pipe(kn(1)).subscribe({error:i=>n.onError.next(i)}))}}}var yM=Ye({components:{GlyphiconCall:no,ExitFullScreen:sS},directives:{object:to},props:{isPopoutWindow:{type:Boolean,default:!1}},setup(){const e=ve(tn),n=re(null),t=js(e),{t:i}=Rt(),r=ne(()=>(window.innerWidth>600||window.innerHeight>600)&&e.isFullScreen.value);return Xt(()=>{e.isVideoActive.value&&n.value&&(e.videoContainer=n.value)}),{videoContainer:n,showFullScreenControllButtons:r,exitFullScreen:()=>{e.removeFullscreen()},t:i,...t}}}),AM="*{box-sizing:border-box}:-webkit-full-screen .awayVideo{width:100vw!important;max-width:100vw!important;height:100vh!important;max-height:100vh!important}.video-root{z-index:var(--call-us-z-index-video-output,5);align-items:center;height:100%;display:flex;position:relative}.video-root video{-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center}.video-root .awayVideo{width:100%;height:100%}.video-root .homeVideo{border:2px solid #fff;width:15vw;height:15vh;position:absolute;bottom:0;right:0}.video-root .awayFullVideo{width:100%;height:100%}.video-root .homeFullVideo{border:2px solid #fff;width:15vw;max-width:25%;height:15vh;max-height:25%;position:absolute;bottom:0;right:0}.video-root .fs-control-btn{margin-left:-112.5px;display:flex;position:absolute;bottom:50px;left:50%}.video-root .fs-control-btn button:hover{background-color:#000000e6}.video-root .fs-control-btn button{background-color:#0000004d;border:solid #fff;border-radius:50%;width:100px;height:100px}.video-root .fs-control-btn button svg{fill:#fff;width:38px;height:38px}.video-root .fs-control-btn button:first-child{margin-right:15px}.video-root .fs-control-btn button:first-child svg{transform:var(--call-us-default-rotation-drop-call,rotate(135deg));fill:#d80027}@media screen{.video-root .awayVideo{margin:0 auto}.video-root .homeVideo{max-width:15vw;max-height:15vh;position:absolute;bottom:0;right:5%}}@media screen and (orientation:landscape) and (height<=540px){.video-root .awayVideo,.video-root .mirrorVideo{-o-object-fit:contain;object-fit:contain;background-color:var(--call-us-plate-background-color,#494949);width:100%;height:100%;position:fixed;top:0;left:0}}.video-root .mirrorVideo{transform:scaleX(-1)}",wM={id:"videoContainer",ref:"videoContainer",class:j(["video-root"])},_M={key:2,class:j(["fs-control-btn"])},CM=["aria-label","disabled"],EM=["aria-label"];function SM(e,n,t,i,r,a){const o=he("GlyphiconCall"),l=he("ExitFullScreen"),s=Tr("object");return L(),H("div",wM,[e.myWebRTCService&&e.myWebRTCService.videoOnlyRemoteStream.value&&(e.myWebRTCService.media.isVideoReceived||!e.myWebRTCService.media.isVideoSend)?Ln((L(),H("video",{key:0,id:"wplc-remote-video",class:j(e.myWebRTCService.isFullScreen.value?"awayFullVideo":"awayVideo"),playsinline:"",autoplay:""},null,2)),[[s,e.myWebRTCService.videoOnlyRemoteStream.value]]):ue("",!0),e.myWebRTCService&&e.myWebRTCService.videoOnlyLocalStream.value&&e.myWebRTCService.media.isVideoSend?Ln((L(),H("video",{key:1,id:"wplc-home-video",class:j({mirrorVideo:!0,[e.myWebRTCService.isFullScreen.value||!e.isPopoutWindow?"homeFullVideo":"homeVideo"]:e.myWebRTCService.media.isVideoReceived,[e.myWebRTCService.isFullScreen.value||!e.isPopoutWindow?"awayFullVideo":"awayVideo"]:!e.myWebRTCService.media.isVideoReceived}),playsinline:"",autoplay:""},null,2)),[[s,e.myWebRTCService.videoOnlyLocalStream.value]]):ue("",!0),e.showFullScreenControllButtons?(L(),H("div",_M,[X("button",{id:"dropCallBtn",ref:"dropCallBtn","aria-label":e.t("Inputs.EndCallTitle"),disabled:e.myWebRTCService.hasTryingCall.value,onClick:n[0]||(n[0]=(...c)=>e.dropCall&&e.dropCall(...c))},[pe(o)],8,CM),X("button",{id:"exitFsBtn",ref:"exitFullScreenBtn","aria-label":e.t("Auth.CloseButton"),onClick:n[1]||(n[1]=(...c)=>e.exitFullScreen&&e.exitFullScreen(...c))},[pe(l)],8,EM)])):ue("",!0)],512)}var MM=Qe(yM,[["render",SM],["styles",[AM]]]),IM=Ye({components:{GlyphiconTimes:Sm,GlyphiconChevron:Em,WplcIconBubble:Om,WplcIconDoubleBubble:km,VideoOutput:MM},props:{config:{type:Object,default:()=>{}},operator:{type:Object,default:()=>Li},currentState:{type:Number,default:_e.Chat},chatOnline:{type:Boolean,default:!0},isChatUntilCall:Boolean},setup(e,n){const t=ve(Bn),i=ve(tn),r=ve(Mi),a=ve(Gt),o=re(null),{t:l}=Rt(),s=re(!1),c=re(!1),u=Ou,f=ne(()=>r.isFullScreen),h=Tt(new pi({name:e.operator.name,image:e.operator.image||e.config.operatorIcon})),p=ne(()=>e.currentState===_e.Chat&&!!t&&t.hasSession&&e.chatOnline||!0),d=Lt();_t(()=>{t&&(d.add(t.mySession$.pipe(Ee(C=>C.isOnline)).subscribe(C=>{c.value=!C})),e.config.showOperatorActualName&&t&&d.add(xC(t,e.config).pipe(Tn(()=>p.value)).subscribe(C=>{C&&Object.assign(h,C)})))});const g=ne(()=>!!t&&t.hasSession&&!s.value&&e.chatOnline);kt(()=>t.hasSession,(C,y)=>{y&&!C&&(s.value=!1)});const b=ne(()=>{let C=[];return!e.isChatUntilCall&&v.value?C=["calling-window"]:e.currentState===_e.Chat?C=["header-small"]:e.currentState===_e.Authenticate&&(C=["header-large"]),C}),v=ne(()=>i.hasCall.value||i.hasRecall.value);return{currentOperator:h,headerContainer:o,hideCloseButton:s,isOffline:c,showClose:g,panelType:b,hasCallOrRecall:v,getPropertyValue:Vn,getAgentIcon(){return h.image!==""?h.image:Ds},updateNotFoundImage(C){C&&C.target&&(C.target.src=u)},showMinimize(){return f.value&&!!e.config.allowMinimize},onToggleCollapsed(){a.onToggleCollapsed.next()},onClose(){s.value=!0,n.emit("close")},showOperatorInfo:p,isFullScreen:f,t:l,myWebRTCService:i}}}),TM="button[data-v-512d1bae]{border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;width:100%;padding:var(--call-us-element-side-offset-small,5px) 10px;font-family:inherit;font-size:var(--call-us-font-size,14px);cursor:pointer;outline:none;justify-content:center;align-items:center;display:flex}button[data-v-512d1bae]:disabled{opacity:.6;cursor:not-allowed}[data-v-512d1bae]{box-sizing:border-box}.header-root[data-v-512d1bae]{border-top-right-radius:inherit;border-top-left-radius:inherit;padding:0 var(--call-us-standart-right-left-padding,11px);flex-direction:row;justify-content:flex-start;display:flex;position:relative}.header-root.active-video[data-v-512d1bae]{flex-wrap:wrap}.header-root.active-video .video-block[data-v-512d1bae]{width:calc(100% + 20px);margin-left:-10px;margin-right:-10px}.header-root.header-small.active-video[data-v-512d1bae]{height:calc(var(--call-us-header-height,40px) + var(--call-us-video-output-height,187px));align-items:flex-start}.header-root.header-small.active-video .video-block[data-v-512d1bae]{height:var(--call-us-video-output-height,187px);align-self:flex-end}.header-root.header-small.active-video .operator-info[data-v-512d1bae]{max-width:43%}.header-root.header-small .operator-info .operator-img-container svg path[data-v-512d1bae]:first-of-type{fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4))}.header-root.header-small .operator-info .operator_name[data-v-512d1bae]{color:var(--call-us-plate-font-color,#fff)}.header-root.header-small[data-v-512d1bae]{background:var(--call-us-plate-background-color,#494949);height:var(--call-us-header-height,40px);align-items:center}.header-root.header-large.active-video[data-v-512d1bae],.header-root.calling-window.active-video[data-v-512d1bae]{height:calc(var(--call-us-max-height-calling-window,509px) - var(--call-us-big-bottom-btn-height,67px) * 2)}.header-root.header-large.active-video.full-screen[data-v-512d1bae],.header-root.calling-window.active-video.full-screen[data-v-512d1bae]{height:calc(100vh - var(--call-us-big-bottom-btn-height,67px) * 2)!important}.header-root.header-large.active-video.full-screen .video-block[data-v-512d1bae],.header-root.calling-window.active-video.full-screen .video-block[data-v-512d1bae]{height:calc(calc(100vh - var(--call-us-big-bottom-btn-height,67px) * 2) - var(--call-us-operator-info-height-video-call,45px) - var(--call-us-header-height,40px));max-height:calc(calc(100vh - var(--call-us-big-bottom-btn-height,67px) * 2) - var(--call-us-operator-info-height-video-call,45px) - var(--call-us-header-height,40px))}.header-root.header-large.active-video .video-block[data-v-512d1bae],.header-root.calling-window.active-video .video-block[data-v-512d1bae]{height:calc(calc(var(--call-us-max-height-calling-window,509px) - var(--call-us-big-bottom-btn-height,67px) * 2) - var(--call-us-operator-info-height-video-call,45px) - var(--call-us-header-height,40px));max-height:calc(calc(var(--call-us-max-height-calling-window,509px) - var(--call-us-big-bottom-btn-height,67px) * 2) - var(--call-us-operator-info-height-video-call,45px) - var(--call-us-header-height,40px));padding-top:var(--call-us-element-side-offset-small,5px);align-self:flex-end}.header-root.header-large.active-video .operator-info[data-v-512d1bae],.header-root.calling-window.active-video .operator-info[data-v-512d1bae]{height:var(--call-us-operator-info-height-video-call,45px);top:var(--call-us-header-height,40px);margin:0;left:17px}.header-root.header-large.active-video .operator-info .operator-img-container[data-v-512d1bae],.header-root.calling-window.active-video .operator-info .operator-img-container[data-v-512d1bae]{width:var(--call-us-operator-info-height-video-call,45px);height:var(--call-us-operator-info-height-video-call,45px)}.header-root.header-large.active-video .operator-info .operator-img-container .online-icon[data-v-512d1bae],.header-root.calling-window.active-video .operator-info .operator-img-container .online-icon[data-v-512d1bae]{width:8px;height:8px;bottom:5px;right:1px}.header-root.header-large.active-video .operator-info .operator_name[data-v-512d1bae],.header-root.calling-window.active-video .operator-info .operator_name[data-v-512d1bae]{margin-left:var(--call-us-element-side-offset-medium,10px);padding:0 0 15px}.header-root.header-large.active-video .operator-info[data-v-512d1bae],.header-root.calling-window.active-video .operator-info[data-v-512d1bae]{flex-direction:row}.header-root.header-large[data-v-512d1bae],.header-root.calling-window[data-v-512d1bae]{height:var(--call-us-header-height-large,163px)}.header-root.header-large .powered-by[data-v-512d1bae],.header-root.calling-window .powered-by[data-v-512d1bae]{margin-right:var(--call-us-element-side-offset-medium,10px);font-size:calc(var(--call-us-font-size,14px) - 3px);color:var(--call-us-plate-font-color,#fff)}.header-root.header-large .action_menu[data-v-512d1bae],.header-root.calling-window .action_menu[data-v-512d1bae]{margin-left:auto}.header-root.header-large .operator-info[data-v-512d1bae],.header-root.calling-window .operator-info[data-v-512d1bae]{height:var(--call-us-operator-info-height-authorization,164px);bottom:0;left:0;right:0;top:calc(var(--call-us-header-height,40px) + 65px);color:var(--call-us-main-font-color,#000);z-index:var(--call-us-z-index-operator-info-auth,1);flex-direction:column;margin:auto;position:absolute}.header-root.header-large .operator-info .operator-img-container[data-v-512d1bae],.header-root.calling-window .operator-info .operator-img-container[data-v-512d1bae]{width:var(--call-us-operator-auth-icon-width-and-height,130px);height:var(--call-us-operator-auth-icon-width-and-height,130px)}.header-root.header-large .operator-info .operator-img-container .operator-img circle[data-v-512d1bae],.header-root.calling-window .operator-info .operator-img-container .operator-img circle[data-v-512d1bae]{stroke:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4))}.header-root.header-large .operator-info .operator-img-container .online-icon[data-v-512d1bae],.header-root.calling-window .operator-info .operator-img-container .online-icon[data-v-512d1bae]{visibility:hidden;width:12px;height:12px;bottom:14px;right:12.8px}.header-root.header-large .operator-info .operator_name[data-v-512d1bae],.header-root.calling-window .operator-info .operator_name[data-v-512d1bae]{margin:0;padding-top:15px}.header-root.header-large[data-v-512d1bae]{background:var(--call-us-accent-with-gradient,linear-gradient(180deg, #22222205 0%, #2222224d 100%), var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4)))}@media screen and (orientation:landscape) and (height<=450px){.header-root.header-large[data-v-512d1bae]{height:var(--call-us-header-height,40px);flex-direction:row;justify-content:flex-start}.header-root.header-large .operator-info[data-v-512d1bae]{height:var(--call-us-operator-info-height-video-call,45px);top:var(--call-us-header-height,40px);margin:0;left:17px}.header-root.header-large .operator-info .operator-img-container[data-v-512d1bae]{width:var(--call-us-operator-info-height-video-call,45px);height:var(--call-us-operator-info-height-video-call,45px)}.header-root.header-large .operator-info .operator-img-container .online-icon[data-v-512d1bae]{width:8px;height:8px;bottom:5px;right:1px}.header-root.header-large .operator-info .operator_name[data-v-512d1bae]{margin-left:var(--call-us-element-side-offset-medium,10px);padding:0 0 15px}.header-root.header-large .operator-info[data-v-512d1bae]{bottom:0;top:calc(var(--call-us-header-height,40px) * 2.5);flex-direction:row;margin:auto}.header-root.header-large .operator-info .operator_name[data-v-512d1bae]{padding:0}}@media screen and (orientation:landscape) and (height<=280px){.header-root.header-large[data-v-512d1bae]{height:30px}}@media screen and (orientation:landscape) and (height<=350px){.header-root.header-large .operator-info[data-v-512d1bae]{display:none}}.header-root.calling-window[data-v-512d1bae]{height:var(--call-us-header-height,40px);position:static}.header-root.calling-window .operator-info[data-v-512d1bae]{z-index:var(--call-us-z-index-header-call,4);position:absolute;bottom:300px}.header-root.calling-window .operator-info .operator-img-container .online-icon[data-v-512d1bae]{visibility:visible}.header-root.calling-window .operator-info .operator_name[data-v-512d1bae]{color:#fff}@media screen and (orientation:landscape) and (height<=540px){.header-root.calling-window .operator-info[data-v-512d1bae]{height:var(--call-us-operator-info-height-video-call,45px);top:var(--call-us-header-height,40px);margin:0;left:17px}.header-root.calling-window .operator-info .operator-img-container[data-v-512d1bae]{width:var(--call-us-operator-info-height-video-call,45px);height:var(--call-us-operator-info-height-video-call,45px)}.header-root.calling-window .operator-info .operator-img-container .online-icon[data-v-512d1bae]{width:8px;height:8px;bottom:5px;right:1px}.header-root.calling-window .operator-info .operator_name[data-v-512d1bae]{margin-left:var(--call-us-element-side-offset-medium,10px);padding:0 0 15px}.header-root.calling-window .operator-info[data-v-512d1bae]{flex-direction:row}}@media screen and (orientation:landscape) and (height<=300px){.header-root.calling-window .operator-info[data-v-512d1bae]{display:none}}.header-root .header-title[data-v-512d1bae]{height:var(--call-us-header-height,40px);flex-direction:row;align-items:center;min-width:0;display:flex}.header-root .header-title .panel_head_title[data-v-512d1bae]{text-overflow:ellipsis;white-space:nowrap;font-size:var(--call-us-font-size,14px);flex-grow:1;margin:0;line-height:1.5em;overflow:hidden}.header-root .header-title .logo-icon[data-v-512d1bae]{height:var(--call-us-default-line-height,17px);padding-right:var(--call-us-element-side-offset-small,5px)}.header-root .operator-info[data-v-512d1bae]{height:var(--call-us-header-height,40px);flex-direction:row;align-items:center;min-width:0;display:flex}.header-root .operator-info div[data-v-512d1bae]:not(:first-of-type){margin-left:var(--call-us-element-side-offset-small,5px)}.header-root .operator-info .operator-img-container[data-v-512d1bae]{width:28px;min-width:28px;height:28px;position:relative}.header-root .operator-info .operator-img-container .operator-img[data-v-512d1bae]{width:100%;height:100%}.header-root .operator-info .operator-img-container .operator-img.rounded-circle[data-v-512d1bae]{border-radius:var(--call-us-round-button,50%);border:1px solid var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));padding:2px}.header-root .operator-info .operator-img-container .online-icon[data-v-512d1bae]{border-radius:var(--call-us-round-button,50%);background-color:#4cd137;border:1px solid #fff;width:7px;height:7px;position:absolute;bottom:0;right:0}.header-root .operator-info .operator-img-container .offline-icon[data-v-512d1bae]{background-color:#c23616!important}.header-root .operator-info .operator-img-container svg path[data-v-512d1bae]:first-of-type{fill:#eaeaea}.header-root .operator-info .operator_name[data-v-512d1bae]{color:var(--call-us-main-font-color,#000);max-width:80%;font-weight:600;font-size:calc(var(--call-us-font-size,14px) + 2px);white-space:nowrap;text-overflow:ellipsis;line-height:18px;overflow:hidden}.header-root .operator-info .operator_name.popout[data-v-512d1bae]{max-width:400px}.header-root .space-expander[data-v-512d1bae]{flex-grow:1}.header-root .powered-by[data-v-512d1bae]{color:var(--call-us-plate-font-color,#fff);font-size:calc(var(--call-us-font-size,14px) - 3px);-webkit-user-select:none;user-select:none;text-align:right;white-space:nowrap;height:var(--call-us-header-height,40px);z-index:var(--call-us-z-index-header-call,4);margin-right:var(--call-us-element-side-offset-medium,10px);flex-grow:1;justify-content:flex-end;align-items:center;text-decoration:none;display:flex}.header-root .powered-by a[data-v-512d1bae]{color:var(--call-us-plate-font-color,#fff)}.header-root .powered-by a[data-v-512d1bae]:link,.header-root .powered-by a[data-v-512d1bae]:visited,.header-root .powered-by a[data-v-512d1bae]:hover,.header-root .powered-by a[data-v-512d1bae]:active{text-decoration:none}.header-root .action_menu[data-v-512d1bae]{height:var(--call-us-header-height,40px);flex-direction:row;align-items:center;margin-left:auto;display:flex}.header-root .action_menu button[data-v-512d1bae]:not(:first-of-type){margin-left:var(--call-us-element-side-offset-small,5px)}.close_btn[data-v-512d1bae],.minimize_btn[data-v-512d1bae]{margin:0}.close_btn[data-v-512d1bae]:active,.minimize_btn[data-v-512d1bae]:active{transform:scale(1.2)}.close_btn[data-v-512d1bae]{z-index:var(--call-us-z-index-header-call,4);border-radius:var(--call-us-round-button,50%);background:#fff;border:none;justify-content:center;align-items:center;width:21px;height:21px;padding:0;display:flex}.close_btn svg[data-v-512d1bae]{fill:#111;width:15px;height:15px}.minimize_btn[data-v-512d1bae]{background:0 0;border:none;width:13px;height:13px;padding:0;line-height:13px}.minimize_btn svg[data-v-512d1bae]{fill:var(--call-us-plate-font-color,#fff)}",kM={key:0,class:j(["operator-info"])},OM={class:j(["operator-img-container"])},xM=["src"],NM={key:0,class:j([["online-icon"],["offline-icon"]])},RM={key:1,class:j(["online-icon"])},LM=["title"],PM={key:1,class:j(["header-title"])},DM=["src"],FM={key:2,class:j(["powered-by"])},BM=["aria-label"],UM={key:3,class:j(["video-block"])};function jM(e,n,t,i,r,a){const o=he("WplcIconBubble"),l=he("WplcIconDoubleBubble");he("GlyphiconChevron");const s=he("GlyphiconTimes"),c=he("VideoOutput");return L(),H("div",{ref:"headerContainer",class:j([["header-root"],e.panelType,e.hasCallOrRecall?["call-active"]:"",e.myWebRTCService.isVideoActive.value?["active-video"]:"",e.isFullScreen?["full-screen"]:""])},[e.showOperatorInfo?(L(),H("div",kM,[X("div",OM,[X("img",{ref:"operatorIcon",src:e.getAgentIcon(),alt:"avatar",class:j([["rounded-circle"],["operator-img"]]),onError:n[0]||(n[0]=u=>e.updateNotFoundImage(u))},null,40,xM),e.isOffline?(L(),H("span",NM)):(L(),H("span",RM))]),X("div",{class:j([["operator_name"]]),title:e.currentOperator.name},[X("span",null,Ae(e.currentOperator.name),1)],8,LM)])):(L(),H("div",PM,[e.config.windowIcon!=null&&e.config.windowIcon.replace(/\s/g,"").length>0?(L(),H("img",{key:0,ref:"windowIcon",class:j(["logo-icon"]),src:e.config.windowIcon,alt:"",onError:n[1]||(n[1]=u=>e.updateNotFoundImage(u))},null,40,DM)):e.config.buttonIconType==="bubble"?(L(),Me(o,{key:1,class:j(["logo-icon"])})):e.config.buttonIconType==="doublebubble"?(L(),Me(l,{key:2,class:j(["logo-icon"])})):ue("",!0)])),e.config.enablePoweredby?(L(),H("div",FM,[X("span",null,Ae(e.t("Inputs.PoweredBy")),1)])):ue("",!0),X("div",{class:j([["action_menu"],e.isFullScreen?["full-screen-menu"]:""])},[ue("",!0),e.showClose?(L(),H("button",{key:1,id:"close_btn",type:"button","aria-label":e.t("Auth.CloseButton"),class:j([["action_menu_btn"],["close_btn"]]),onClick:n[3]||(n[3]=u=>e.onClose())},[pe(s)],8,BM)):ue("",!0)],2),e.myWebRTCService.isVideoActive.value?(L(),H("div",UM,[pe(c,{id:"wplc_videoOutput",ref:"videoOutput"},null,512)])):ue("",!0)],2)}var Wm=Qe(IM,[["render",jM],["styles",[TM]],["__scopeId","data-v-512d1bae"]]),qM=(e,n)=>{const t=Tt({name:"",email:"",gdprAccepted:!1}),i={name:{},email:{},gdprAccepted:{}},r=c=>Os(c),a=c=>Eu(c),o=c=>ar(c),l=c=>Su(c),s=c=>c;return(e===St.Both||e===St.Name)&&(i.name={required:Lu,nameValid:a,maxCharactersReached:o}),(e===St.Both||e===St.Email)&&(i.email={required:Lu,emailValid:r,maxEmailCharactersReached:l}),n&&(i.gdprAccepted={required:Lu,checkboxSelected:s}),{state:t,v$:aM(i,t)}},$M=Ye({components:{Panel:xu,CallUsHeader:Wm,MessageSolid:xm,MaterialCheckbox:hM,MaterialInput:bM,Loading:Lm},shadow:!1,props:{startMinimized:{type:Boolean},config:{type:Object,default:()=>{}},chatEnabled:{type:Boolean,default:!1},operator:{type:Object,default:()=>Li}},setup(e,n){const t=ve(Gt),i=ve(Dr),r=ve(Mi),a=ve(Bn),o=re(null),l=re(null),s=re(null),c=re(!1),u=re(!1),f=re(!1),h=re(!1),p=re(e.config.authenticationType),d=re(null),{t:g}=Rt(),b=Lt(),{state:v,v$:C}=qM(p.value,e.config.gdprEnabled),y=ne(()=>h&&!!a.auth?.email),m=ne(()=>h&&!!a.auth?.name&&a.auth.name!=="Webvisitor"),w=B=>{v.gdprAccepted=B},I=B=>{v.name=B},T=B=>{v.email=B},G=()=>{c.value=!0,C&&(C.value.$touch(),(!C.value.$invalid||p.value===St.None)&&(h.value||(v.name||v.email?a.setAuthentication({name:v.name,email:v.email}):a.setAuthentication({name:tm})),(!e.config.gdprEnabled||!C.value.gdprAccepted.$error)&&n.emit("submit-auth")))},$=()=>{o.value instanceof HTMLElement?Us.focusElement(o.value):l.value instanceof HTMLElement&&Us.focusElement(l.value)};return _t(()=>{a.auth?(p.value=St.None,h.value=!0,v.name=a.auth.name||"",v.email=a.auth.email||""):(b.add(t.onRestored.subscribe({next:()=>$()})),u.value=!!e.config.visitorName,f.value=!!e.config.visitorEmail,v.name=e.config.visitorName||"",v.email=e.config.visitorEmail||"")}),Xt(()=>{d?.value?.addEventListener("wheel",B=>{B.preventDefault();const Y=d.value.scrollTop+-B.wheelDelta*.05;d?.value?.scrollTo({top:Y})},{passive:!1}),$()}),{nameInput:o,emailInput:l,submitButton:s,fullscreenService:r,ViewState:_e,loadingService:i,authType:p,AuthenticationType:St,showEmailProvided:y,showNameProvided:m,getPropertyValue:Vn,submit:G,isNameDisabled:u,isSubmitted:c,isEmailDisabled:f,authProvided:h,gdprChanged:w,gdprBox:d,t:g,state:v,handleInputName:I,handleInputEmail:T,v$:C}}}),zM="[data-v-910db608]{box-sizing:border-box}@keyframes fadeIn-910db608{0%{opacity:0}to{opacity:1}}.fadeIn[data-v-910db608]{animation-name:fadeIn-910db608;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft[data-v-910db608]{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft-910db608}@keyframes slideLeft-910db608{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight[data-v-910db608]{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight-910db608}@keyframes slideRight-910db608{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp[data-v-910db608]{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp-910db608}@keyframes slideUp-910db608{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge[data-v-910db608],form .error[data-v-910db608]{animation:1s ease-in nudge-910db608}@keyframes nudge-910db608{0%{opacity:0}to{opacity:1}}@keyframes fly-in-910db608{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in[data-v-910db608]{transition:all .5s;animation-name:fly-in-910db608;animation-duration:.3s}@keyframes show-with-delay-910db608{0%{opacity:0}to{opacity:1}}.show-with-delay[data-v-910db608]{animation-name:show-with-delay-910db608;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin[data-v-910db608]{animation:2s linear infinite spin-910db608}@keyframes spin-910db608{0%{transform:rotate(0)}to{transform:rotate(1turn)}}form[data-v-910db608]{position:relative}form .error[data-v-910db608]{color:red;font-size:calc(var(--call-us-font-size,14px) - 3px)}form[data-v-910db608] ::placeholder{color:#777;opacity:1}.custom-scrollbar[data-v-910db608]::-webkit-scrollbar{width:4px}.auth-root form .form_body .gdrp-box[data-v-910db608]::-webkit-scrollbar{width:4px}.custom-scrollbar[data-v-910db608]::-webkit-scrollbar-track{background:#f1f1f1}.auth-root form .form_body .gdrp-box[data-v-910db608]::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar[data-v-910db608]::-webkit-scrollbar-thumb{background:#888}.auth-root form .form_body .gdrp-box[data-v-910db608]::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar[data-v-910db608]::-webkit-scrollbar-thumb:hover{background:#555}.auth-root form .form_body .gdrp-box[data-v-910db608]::-webkit-scrollbar-thumb:hover{background:#555}.auth-root[data-v-910db608]{flex-flow:column;flex-grow:1;justify-content:center;align-items:center;height:100%;margin-block-end:0;display:flex}.auth-root button[data-v-910db608]{cursor:pointer}.auth-root form[data-v-910db608]{flex-direction:column;flex-grow:1;width:100%;margin-block-end:0;display:flex;overflow-y:auto}.auth-root form .form_body[data-v-910db608]{line-height:var(--call-us-default-line-height,17px);justify-content:var(--call-us-justify-content-auth-form,center);padding:50px var(--call-us-element-side-offset-high,20px) 20px var(--call-us-element-side-offset-high,20px);flex-direction:column;flex-grow:1;display:flex;overflow-y:auto}@media screen and (orientation:landscape) and (height<=350px){.auth-root form .form_body[data-v-910db608]{padding:10px var(--call-us-element-side-offset-high,20px) 10px var(--call-us-element-side-offset-high,20px)}}.auth-root form .form_body input[data-v-910db608]{padding:var(--call-us-element-side-offset-medium,10px) 0 5px 0}.auth-root form .form_body .chatIntroText[data-v-910db608],.auth-root form .form_body .replaceFieldsText[data-v-910db608]{color:var(--call-us-main-font-color,#000)}.auth-root form .form_body .gdrp-box[data-v-910db608]{white-space:pre-wrap;word-break:break-word;max-height:90%;padding:5px;overflow-y:auto}.auth-root form .form_body .gdpr-error[data-v-910db608]{padding-left:30px}.auth-root form .form_body .chatIntroText[data-v-910db608]{word-break:break-word}.auth-root form .form_body .chatIntroText[data-v-910db608],.auth-root form .form_body .replaceFieldsText[data-v-910db608]{margin:var(--call-us-element-side-offset-small,5px) 0 0 0;-webkit-user-select:none;user-select:none}.auth-root form .form_body .replaceFieldsText[data-v-910db608]{text-align:center;font-weight:700}.auth-root .chat-disabled-container[data-v-910db608]{color:#646464;-webkit-user-select:none;user-select:none;flex-direction:row;flex:auto;align-items:center;font-size:1em;display:flex}.auth-root[data-v-910db608] :focus{outline:none}.submit[data-v-910db608]{min-height:var(--call-us-submit-button-height,44px);border:none;justify-content:center;align-items:center;display:flex}@media screen and (orientation:landscape) and (height<=350px){.submit[data-v-910db608]{min-height:30px}}.submit svg[data-v-910db608]{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:var(--call-us-plate-font-color,#fff);margin-right:15px}.submit[data-v-910db608]:active{opacity:.9}.submit[data-v-910db608]{line-height:var(--call-us-default-line-height,17px);color:var(--call-us-plate-font-color,#fff);width:100%;height:var(--call-us-submit-button-height,44px);background:var(--call-us-plate-background-color,#494949);border-radius:0 0 6px 6px;align-self:flex-end;margin:0;transition:all .1s}",VM={slot:"panel-content",class:j("auth-root")},HM={class:j(["form_body"])},WM={key:0,class:j(["replaceFieldsText"])},YM={key:1,class:j("chatIntroText")},GM={key:2},QM={key:0},KM={key:0,class:j("error")},ZM={key:1,class:j("error")},JM={key:2,class:j("error")},XM={key:3},eI={key:0},tI={key:0,class:j("error")},nI={key:1,class:j("error")},iI={key:2,class:j("error")},rI={ref:"gdprBox",class:j(["gdrp-box"])},aI={key:0,class:j(["gdpr-error"])},oI={key:0,class:j("error")},sI=["aria-label"],lI={key:1,ref:"chatDisabledMessage",class:j(["chat-disabled-container"])};function cI(e,n,t,i,r,a){const o=he("CallUsHeader"),l=he("Loading"),s=he("MaterialInput"),c=he("MaterialCheckbox"),u=he("MessageSolid"),f=he("Panel");return L(),Me(f,{config:e.config,startMinimized:e.startMinimized,allowMinimize:e.config.allowMinimize,panelState:e.ViewState.Authenticate,fullScreenService:e.fullscreenService,operator:e.operator},{"panel-top":jt(()=>[pe(o,{currentState:e.ViewState.Authenticate,config:e.config,operator:e.operator,isFullScreen:e.fullscreenService.isFullScreen},null,8,["currentState","config","operator","isFullScreen"])]),"panel-content":jt(()=>[X("div",VM,[e.chatEnabled?(L(),H("form",{key:0,ref:"authenticateForm",novalidate:"true",onSubmit:n[0]||(n[0]=en((...h)=>e.submit&&e.submit(...h),["prevent"]))},[X("div",HM,[pe(l,{show:e.loadingService.loading(),text:"loading"},null,8,["show"]),e.authType===e.AuthenticationType.None?(L(),H("div",WM)):(L(),H("div",YM,Ae(e.getPropertyValue("ChatIntro",[e.config.authenticationMessage,e.t("Auth.ChatIntro")])),1)),e.authType===e.AuthenticationType.Both||e.authType===e.AuthenticationType.Name||e.showNameProvided?(L(),H("div",GM,[pe(s,{id:"auth_name",ref:"nameInput",value:e.state.name,onInputVal:e.handleInputName,placeholder:e.t("Auth.Name"),disabled:e.isNameDisabled||e.authProvided,name:"name"},null,8,["value","onInputVal","placeholder","disabled"]),!e.showNameProvided&&e.v$.name.$dirty&&e.isSubmitted?(L(),H("div",QM,[e.v$.name.required.$invalid?(L(),H("div",KM,Ae(e.t("Auth.FieldValidation")),1)):e.v$.name.nameValid.$invalid?(L(),H("div",ZM,Ae(e.t("Auth.EnterValidName")),1)):e.v$.name.maxCharactersReached.$invalid?(L(),H("div",JM,Ae(e.t("Auth.MaxCharactersReached")),1)):ue("",!0)])):ue("",!0)])):ue("",!0),e.authType===e.AuthenticationType.Both||e.authType===e.AuthenticationType.Email||e.showEmailProvided?(L(),H("div",XM,[pe(s,{id:"auth_email",ref:"emailInput",value:e.state.email,onInputVal:e.handleInputEmail,name:"emailInput",placeholder:e.t("Auth.Email"),"max-length":"254",disabled:e.isEmailDisabled||e.authProvided},null,8,["value","onInputVal","placeholder","disabled"]),!e.showEmailProvided&&e.v$.email.$dirty&&e.isSubmitted?(L(),H("div",eI,[e.v$.email.required.$invalid?(L(),H("div",tI,Ae(e.t("Auth.FieldValidation")),1)):e.v$.email.emailValid.$invalid?(L(),H("div",nI,Ae(e.t("Auth.EnterValidEmail")),1)):e.v$.email.maxEmailCharactersReached.$invalid?(L(),H("div",iI,Ae(e.t("Auth.MaxCharactersReached")),1)):ue("",!0)])):ue("",!0)])):ue("",!0),e.config.gdprEnabled?(L(),H(He,{key:4},[X("div",rI,[pe(c,{id:"auth_gdpr",ref:"gdprCheck",value:e.state.gdprAccepted,onInputVal:e.gdprChanged,checkName:"gdprCheck",checkLabel:e.config.gdprMessage},null,8,["value","onInputVal","checkLabel"])],512),e.isSubmitted?(L(),H("div",aI,[e.v$.gdprAccepted.$invalid?(L(),H("div",oI,Ae(e.t("Auth.FieldValidation")),1)):ue("",!0)])):ue("",!0)],64)):ue("",!0)]),X("button",{id:"submitBtn",ref:"submitButton","aria-label":e.t("Auth.Submit"),class:j("submit"),type:"submit"},[pe(u),fn(" "+Ae(e.getPropertyValue("StartButtonText",[e.config.startChatButtonText,e.t("Auth.Submit")])),1)],8,sI)],544)):(L(),H("div",lI,[X("div",null,Ae(e.t("Inputs.ChatIsDisabled")),1)],512))])]),_:1},8,["config","startMinimized","allowMinimize","panelState","fullScreenService","operator"])}var uI=Qe($M,[["render",cI],["styles",[zM]],["__scopeId","data-v-910db608"]]),io=(function(e){return e[e.try=1]="try",e[e.ok=2]="ok",e[e.restart=3]="restart",e})({}),qs=class{constructor(e){Object.assign(this,e)}chatUniqueCode;notifyServer;closedByClient;closeMessage},fI=Ye({props:{message:{type:String,default:""},button:{type:Number,default:io.ok}},setup(e,n){const{t}=Rt(),i=re(null);return Xt(()=>{i.value?.focus()}),{submitButton:i,t,submit(){n.emit("submit")}}}}),dI="*{box-sizing:border-box}* button{border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;width:100%;padding:var(--call-us-element-side-offset-small,5px) 10px;font-family:inherit;font-size:var(--call-us-font-size,14px);cursor:pointer;outline:none;justify-content:center;align-items:center;display:flex}* button:disabled{opacity:.6;cursor:not-allowed}.root-overlay{z-index:var(--call-us-z-index-overlay,6);justify-content:center;align-items:center;display:flex;position:absolute;inset:0;overflow:hidden}.root-overlay .content{background:var(--call-us-main-background-color,#fff);font-size:var(--call-us-font-size,14px);border-radius:6px;flex-direction:column;align-items:center;width:80%;display:flex;position:relative}.root-overlay .content .content-message{color:var(--call-us-main-font-color,#000);width:100%;padding:var(--call-us-standart-right-left-padding,11px);flex-direction:column;flex-grow:1;display:flex}.root-overlay .content button{font-size:var(--call-us-font-size,14px)}.root-overlay .background{z-index:-1;opacity:.5;background:#000;position:absolute;inset:0}.submit svg{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:var(--call-us-plate-font-color,#fff);margin-right:15px}.submit:active{opacity:.9}.submit{line-height:var(--call-us-default-line-height,17px);color:var(--call-us-plate-font-color,#fff);width:100%;height:var(--call-us-submit-button-height,44px);background:var(--call-us-plate-background-color,#494949);border-radius:0 0 6px 6px;align-self:flex-end;margin:0;transition:all .1s}",hI={class:j("root-overlay")},pI={class:j("content")},gI={class:j(["content-message"])},mI=["aria-label"];function vI(e,n,t,i,r,a){return L(),H("div",hI,[X("div",pI,[X("div",gI,Ae(e.message),1),X("button",{id:"submitBtn",ref:"submitButton","aria-label":e.button===1?e.t("MessageBox.TryAgain"):e.t("MessageBox.Ok"),class:j("submit"),type:"submit",onClick:n[0]||(n[0]=(...o)=>e.submit&&e.submit(...o))},Ae(e.button===1?e.t("MessageBox.TryAgain"):e.t("MessageBox.Ok")),9,mI)]),X("div",{class:j("background"),onClick:n[1]||(n[1]=(...o)=>e.submit&&e.submit(...o))})])}var bI=Qe(fI,[["render",vI],["styles",[dI]]]),yI=Se(((e,n)=>{n.exports=o,n.exports.format=l,n.exports.parse=s;var t=/\B(?=(\d{3})+(?!\d))/g,i=/(?:\.0*|(\.[^0]+)0+)$/,r={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},a=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function o(c,u){return typeof c=="string"?s(c):typeof c=="number"?l(c,u):null}function l(c,u){if(!Number.isFinite(c))return null;var f=Math.abs(c),h=u&&u.thousandsSeparator||"",p=u&&u.unitSeparator||"",d=u&&u.decimalPlaces!==void 0?u.decimalPlaces:2,g=!!(u&&u.fixedDecimals),b=u&&u.unit||"";(!b||!r[b.toLowerCase()])&&(f>=r.pb?b="PB":f>=r.tb?b="TB":f>=r.gb?b="GB":f>=r.mb?b="MB":f>=r.kb?b="KB":b="B");var v=(c/r[b.toLowerCase()]).toFixed(d);return g||(v=v.replace(i,"$1")),h&&(v=v.split(".").map(function(C,y){return y===0?C.replace(t,h):C}).join(".")),v+p+b}function s(c){if(typeof c=="number"&&!isNaN(c))return c;if(typeof c!="string")return null;var u=a.exec(c),f,h="b";return u?(f=parseFloat(u[1]),h=u[4].toLowerCase()):(f=parseInt(c,10),h="b"),isNaN(f)?null:Math.floor(r[h]*f)}})),AI=fr(yI(),1),wI="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",_I="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Pu="numeric",Du="ascii",Fu="alpha",ro="asciinumeric",ao="alphanumeric",Bu="domain",Ym="emoji",CI="scheme",EI="slashscheme",Uu="whitespace";function SI(e,n){return e in n||(n[e]=[]),n[e]}function lr(e,n,t){n[Pu]&&(n[ro]=!0,n[ao]=!0),n[Du]&&(n[ro]=!0,n[Fu]=!0),n[ro]&&(n[ao]=!0),n[Fu]&&(n[ao]=!0),n[ao]&&(n[Bu]=!0),n[Ym]&&(n[Bu]=!0);for(const i in n){const r=SI(i,t);r.indexOf(e)<0&&r.push(e)}}function MI(e,n){const t={};for(const i in n)n[i].indexOf(e)>=0&&(t[i]=!0);return t}function an(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}an.groups={},an.prototype={accepts(){return!!this.t},go(e){const n=this,t=n.j[e];if(t)return t;for(let i=0;i<n.jr.length;i++){const r=n.jr[i][0],a=n.jr[i][1];if(a&&r.test(e))return a}return n.jd},has(e,n=!1){return n?e in this.j:!!this.go(e)},ta(e,n,t,i){for(let r=0;r<e.length;r++)this.tt(e[r],n,t,i)},tr(e,n,t,i){i=i||an.groups;let r;return n&&n.j?r=n:(r=new an(n),t&&i&&lr(n,t,i)),this.jr.push([e,r]),r},ts(e,n,t,i){let r=this;const a=e.length;if(!a)return r;for(let o=0;o<a-1;o++)r=r.tt(e[o]);return r.tt(e[a-1],n,t,i)},tt(e,n,t,i){i=i||an.groups;const r=this;if(n&&n.j)return r.j[e]=n,n;const a=n;let o,l=r.go(e);return l?(o=new an,Object.assign(o.j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new an,a&&(i&&(o.t&&typeof o.t=="string"?lr(a,Object.assign(MI(o.t,i),t),i):t&&lr(a,t,i)),o.t=a),r.j[e]=o,o}};var Ie=(e,n,t,i,r)=>e.ta(n,t,i,r),lt=(e,n,t,i,r)=>e.tr(n,t,i,r),Gm=(e,n,t,i,r)=>e.ts(n,t,i,r),ae=(e,n,t,i,r)=>e.tt(n,t,i,r),gi="WORD",ju="UWORD",Qm="ASCIINUMERICAL",Km="ALPHANUMERICAL",oo="LOCALHOST",qu="TLD",$u="UTLD",$s="SCHEME",na="SLASH_SCHEME",zu="NUM",Vu="WS",Hu="NL",so="OPENBRACE",lo="CLOSEBRACE",zs="OPENBRACKET",Vs="CLOSEBRACKET",Hs="OPENPAREN",Ws="CLOSEPAREN",Ys="OPENANGLEBRACKET",Gs="CLOSEANGLEBRACKET",Qs="FULLWIDTHLEFTPAREN",Ks="FULLWIDTHRIGHTPAREN",Zs="LEFTCORNERBRACKET",Js="RIGHTCORNERBRACKET",Xs="LEFTWHITECORNERBRACKET",el="RIGHTWHITECORNERBRACKET",tl="FULLWIDTHLESSTHAN",nl="FULLWIDTHGREATERTHAN",il="AMPERSAND",rl="APOSTROPHE",al="ASTERISK",Bi="AT",ol="BACKSLASH",sl="BACKTICK",ll="CARET",cr="COLON",Wu="COMMA",cl="DOLLAR",Hn="DOT",ul="EQUALS",Yu="EXCLAMATION",An="HYPHEN",co="PERCENT",fl="PIPE",dl="PLUS",hl="POUND",uo="QUERY",Gu="QUOTE",Zm="FULLWIDTHMIDDLEDOT",Qu="SEMI",Wn="SLASH",fo="TILDE",pl="UNDERSCORE",Jm="EMOJI",gl="SYM",Xm=Object.freeze({__proto__:null,ALPHANUMERICAL:Km,AMPERSAND:il,APOSTROPHE:rl,ASCIINUMERICAL:Qm,ASTERISK:al,AT:Bi,BACKSLASH:ol,BACKTICK:sl,CARET:ll,CLOSEANGLEBRACKET:Gs,CLOSEBRACE:lo,CLOSEBRACKET:Vs,CLOSEPAREN:Ws,COLON:cr,COMMA:Wu,DOLLAR:cl,DOT:Hn,EMOJI:Jm,EQUALS:ul,EXCLAMATION:Yu,FULLWIDTHGREATERTHAN:nl,FULLWIDTHLEFTPAREN:Qs,FULLWIDTHLESSTHAN:tl,FULLWIDTHMIDDLEDOT:Zm,FULLWIDTHRIGHTPAREN:Ks,HYPHEN:An,LEFTCORNERBRACKET:Zs,LEFTWHITECORNERBRACKET:Xs,LOCALHOST:oo,NL:Hu,NUM:zu,OPENANGLEBRACKET:Ys,OPENBRACE:so,OPENBRACKET:zs,OPENPAREN:Hs,PERCENT:co,PIPE:fl,PLUS:dl,POUND:hl,QUERY:uo,QUOTE:Gu,RIGHTCORNERBRACKET:Js,RIGHTWHITECORNERBRACKET:el,SCHEME:$s,SEMI:Qu,SLASH:Wn,SLASH_SCHEME:na,SYM:gl,TILDE:fo,TLD:qu,UNDERSCORE:pl,UTLD:$u,UWORD:ju,WORD:gi,WS:Vu}),mi=/[a-z]/,ho=new RegExp("\\p{L}","u"),Ku=new RegExp("\\p{Emoji}","u"),vi=/\d/,Zu=/\s/,ev="\r",Ju=`
`,II="️",TI="‍",Xu="￼",ml=null,vl=null;function kI(e=[]){const n={};an.groups=n;const t=new an;ml==null&&(ml=nv(wI)),vl==null&&(vl=nv(_I)),ae(t,"'",rl),ae(t,"{",so),ae(t,"}",lo),ae(t,"[",zs),ae(t,"]",Vs),ae(t,"(",Hs),ae(t,")",Ws),ae(t,"<",Ys),ae(t,">",Gs),ae(t,"（",Qs),ae(t,"）",Ks),ae(t,"「",Zs),ae(t,"」",Js),ae(t,"『",Xs),ae(t,"』",el),ae(t,"＜",tl),ae(t,"＞",nl),ae(t,"&",il),ae(t,"*",al),ae(t,"@",Bi),ae(t,"`",sl),ae(t,"^",ll),ae(t,":",cr),ae(t,",",Wu),ae(t,"$",cl),ae(t,".",Hn),ae(t,"=",ul),ae(t,"!",Yu),ae(t,"-",An),ae(t,"%",co),ae(t,"|",fl),ae(t,"+",dl),ae(t,"#",hl),ae(t,"?",uo),ae(t,'"',Gu),ae(t,"/",Wn),ae(t,";",Qu),ae(t,"~",fo),ae(t,"_",pl),ae(t,"\\",ol),ae(t,"・",Zm);const i=lt(t,vi,zu,{[Pu]:!0});lt(i,vi,i);const r=lt(i,mi,Qm,{[ro]:!0}),a=lt(i,ho,Km,{[ao]:!0}),o=lt(t,mi,gi,{[Du]:!0});lt(o,vi,r),lt(o,mi,o),lt(r,vi,r),lt(r,mi,r);const l=lt(t,ho,ju,{[Fu]:!0});lt(l,mi),lt(l,vi,a),lt(l,ho,l),lt(a,vi,a),lt(a,mi),lt(a,ho,a);const s=ae(t,Ju,Hu,{[Uu]:!0}),c=ae(t,ev,Vu,{[Uu]:!0}),u=lt(t,Zu,Vu,{[Uu]:!0});ae(t,Xu,u),ae(c,Ju,s),ae(c,Xu,u),lt(c,Zu,u),ae(u,ev),ae(u,Ju),lt(u,Zu,u),ae(u,Xu,u);const f=lt(t,Ku,Jm,{[Ym]:!0});ae(f,"#"),lt(f,Ku,f),ae(f,II,f);const h=ae(f,TI);ae(h,"#"),lt(h,Ku,f);const p=[[mi,o],[vi,r]],d=[[mi,null],[ho,l],[vi,a]];for(let g=0;g<ml.length;g++)Ui(t,ml[g],qu,gi,p);for(let g=0;g<vl.length;g++)Ui(t,vl[g],$u,ju,d);lr(qu,{tld:!0,ascii:!0},n),lr($u,{utld:!0,alpha:!0},n),Ui(t,"file",$s,gi,p),Ui(t,"mailto",$s,gi,p),Ui(t,"http",na,gi,p),Ui(t,"https",na,gi,p),Ui(t,"ftp",na,gi,p),Ui(t,"ftps",na,gi,p),lr($s,{scheme:!0,ascii:!0},n),lr(na,{slashscheme:!0,ascii:!0},n),e=e.sort((g,b)=>g[0]>b[0]?1:-1);for(let g=0;g<e.length;g++){const b=e[g][0],v=e[g][1]?{[CI]:!0}:{[EI]:!0};b.indexOf("-")>=0?v[Bu]=!0:mi.test(b)?vi.test(b)?v[ro]=!0:v[Du]=!0:v[Pu]=!0,Gm(t,b,b,v)}return Gm(t,"localhost",oo,{ascii:!0}),t.jd=new an(gl),{start:t,tokens:Object.assign({groups:n},Xm)}}function tv(e,n){const t=OI(n.replace(/[A-Z]/g,l=>l.toLowerCase())),i=t.length,r=[];let a=0,o=0;for(;o<i;){let l=e,s=null,c=0,u=null,f=-1,h=-1;for(;o<i&&(s=l.go(t[o]));)l=s,l.accepts()?(f=0,h=0,u=l):f>=0&&(f+=t[o].length,h++),c+=t[o].length,a+=t[o].length,o++;a-=f,o-=h,c-=f,r.push({t:u.t,v:n.slice(a-c,a),s:a-c,e:a})}return r}function OI(e){const n=[],t=e.length;let i=0;for(;i<t;){let r=e.charCodeAt(i),a,o=r<55296||r>56319||i+1===t||(a=e.charCodeAt(i+1))<56320||a>57343?e[i]:e.slice(i,i+2);n.push(o),i+=o.length}return n}function Ui(e,n,t,i,r){let a;const o=n.length;for(let l=0;l<o-1;l++){const s=n[l];e.j[s]?a=e.j[s]:(a=new an(i),a.jr=r.slice(),e.j[s]=a),e=a}return a=new an(t),a.jr=r.slice(),e.j[n[o-1]]=a,a}function nv(e){const n=[],t=[];let i=0,r="0123456789";for(;i<e.length;){let a=0;for(;r.indexOf(e[i+a])>=0;)a++;if(a>0){n.push(t.join(""));for(let o=parseInt(e.substring(i,i+a),10);o>0;o--)t.pop();i+=a}else t.push(e[i]),i++}return n}var po={defaultProtocol:"http",events:null,format:iv,formatHref:iv,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ef(e,n=null){let t=Object.assign({},po);e&&(t=Object.assign(t,e instanceof ef?e.o:e));const i=t.ignoreTags,r=[];for(let a=0;a<i.length;a++)r.push(i[a].toUpperCase());this.o=t,n&&(this.defaultRender=n),this.ignoreTags=r}ef.prototype={o:po,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,n,t){const i=n!=null;let r=this.o[e];return r&&(typeof r=="object"?(r=t.t in r?r[t.t]:po[e],typeof r=="function"&&i&&(r=r(n,t))):typeof r=="function"&&i&&(r=r(n,t.t,t)),r)},getObj(e,n,t){let i=this.o[e];return typeof i=="function"&&n!=null&&(i=i(n,t.t,t)),i},render(e){const n=e.render(this);return(this.get("render",null,e)||this.defaultRender)(n,e.t,e)}};function iv(e){return e}function rv(e,n){this.t="token",this.v=e,this.tk=n}rv.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const n=this.toString(),t=e.get("truncate",n,this),i=e.get("format",n,this);return t&&i.length>t?i.substring(0,t)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=po.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const n=this,t=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",t,this),r=e.get("tagName",t,n),a=this.toFormattedString(e),o={},l=e.get("className",t,n),s=e.get("target",t,n),c=e.get("rel",t,n),u=e.getObj("attributes",t,n),f=e.getObj("events",t,n);return o.href=i,l&&(o.class=l),s&&(o.target=s),c&&(o.rel=c),u&&Object.assign(o,u),{tagName:r,attributes:o,content:a,eventListeners:f}}};function bl(e,n){class t extends rv{constructor(r,a){super(r,a),this.t=e}}for(const i in n)t.prototype[i]=n[i];return t.t=e,t}var xI=bl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),av=bl("text"),NI=bl("nl"),yl=bl("url",{isLink:!0,toHref(e=po.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==oo&&e[1].t===cr}}),wn=e=>new an(e);function RI({groups:e}){const n=e.domain.concat([il,al,Bi,ol,sl,ll,cl,ul,An,zu,co,fl,dl,hl,Wn,gl,fo,pl]),t=[rl,cr,Wu,Hn,Yu,co,uo,Gu,Qu,Ys,Gs,so,lo,Vs,zs,Hs,Ws,Qs,Ks,Zs,Js,Xs,el,tl,nl],i=[il,rl,al,ol,sl,ll,cl,ul,An,so,lo,co,fl,dl,hl,uo,Wn,gl,fo,pl],r=wn(),a=ae(r,fo);Ie(a,i,a),Ie(a,e.domain,a);const o=wn(),l=wn(),s=wn();Ie(r,e.domain,o),Ie(r,e.scheme,l),Ie(r,e.slashscheme,s),Ie(o,i,a),Ie(o,e.domain,o);const c=ae(o,Bi);ae(a,Bi,c),ae(l,Bi,c),ae(s,Bi,c);const u=ae(a,Hn);Ie(u,i,a),Ie(u,e.domain,a);const f=wn();Ie(c,e.domain,f),Ie(f,e.domain,f);const h=ae(f,Hn);Ie(h,e.domain,f);const p=wn(xI);Ie(h,e.tld,p),Ie(h,e.utld,p),ae(c,oo,p);const d=ae(f,An);ae(d,An,d),Ie(d,e.domain,f),Ie(p,e.domain,f),ae(p,Hn,h),ae(p,An,d);const g=ae(o,An),b=ae(o,Hn);ae(g,An,g),Ie(g,e.domain,o),Ie(b,i,a),Ie(b,e.domain,o);const v=wn(yl);Ie(b,e.tld,v),Ie(b,e.utld,v),Ie(v,e.domain,o),Ie(v,i,a),ae(v,Hn,b),ae(v,An,g),ae(v,Bi,c);const C=ae(v,cr),y=wn(yl);Ie(C,e.numeric,y);const m=wn(yl),w=wn();Ie(m,n,m),Ie(m,t,w),Ie(w,n,m),Ie(w,t,w),ae(v,Wn,m),ae(y,Wn,m);const I=ae(l,cr),T=ae(ae(ae(s,cr),Wn),Wn);Ie(l,e.domain,o),ae(l,Hn,b),ae(l,An,g),Ie(s,e.domain,o),ae(s,Hn,b),ae(s,An,g),Ie(I,e.domain,m),ae(I,Wn,m),ae(I,uo,m),Ie(T,e.domain,m),Ie(T,n,m),ae(T,Wn,m);const G=[[so,lo],[zs,Vs],[Hs,Ws],[Ys,Gs],[Qs,Ks],[Zs,Js],[Xs,el],[tl,nl]];for(let $=0;$<G.length;$++){const[B,Y]=G[$],V=ae(m,B);ae(w,B,V);const P=wn(yl);Ie(V,n,P);const O=wn();Ie(V,t,O),ae(V,Y,m),Ie(P,n,P),Ie(P,t,O),Ie(O,n,P),Ie(O,t,O),ae(P,Y,m),ae(O,Y,m)}return ae(r,oo,v),ae(r,Hu,NI),{start:r,tokens:Xm}}function LI(e,n,t){let i=t.length,r=0,a=[],o=[];for(;r<i;){let l=e,s=null,c=null,u=0,f=null,h=-1;for(;r<i&&!(s=l.go(t[r].t));)o.push(t[r++]);for(;r<i&&(c=s||l.go(t[r].t));)s=null,l=c,l.accepts()?(h=0,f=l):h>=0&&h++,r++,u++;if(h<0)r-=u,r<i&&(o.push(t[r]),r++);else{o.length>0&&(a.push(tf(av,n,o)),o=[]),r-=h,u-=h;const p=f.t,d=t.slice(r-u,r);a.push(tf(p,n,d))}}return o.length>0&&a.push(tf(av,n,o)),a}function tf(e,n,t){const i=t[0].s,r=t[t.length-1].e;return new e(n.slice(i,r),t)}var Dt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function PI(){Dt.scanner=kI(Dt.customSchemes);for(let e=0;e<Dt.tokenQueue.length;e++)Dt.tokenQueue[e][1]({scanner:Dt.scanner});Dt.parser=RI(Dt.scanner.tokens);for(let e=0;e<Dt.pluginQueue.length;e++)Dt.pluginQueue[e][1]({scanner:Dt.scanner,parser:Dt.parser});return Dt.initialized=!0,Dt}function ov(e){return Dt.initialized||PI(),LI(Dt.parser.start,e,tv(Dt.scanner.start,e))}ov.scan=tv;function DI(e,n=null,t=null){if(n&&typeof n=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${n}; must be a string`);t=n,n=null}const i=new ef(t),r=ov(e),a=[];for(let o=0;o<r.length;o++){const l=r[o];l.isLink&&(!n||l.t===n)&&i.check(l)&&a.push(l.toFormattedObject(i))}return a}var FI=["jpeg","jpg","png","gif","bmp","webp","tif","tiff","heif","doc","docx","pdf","txt","rtf","ppt","pptx","xls","xlsx"],BI=["jpeg","jpg","png","gif","bmp","webp","tiff","tif"],UI=19900,jI=e=>e&&!(e.replace(/\s/g,"").length<1);function qI(e){if(!e)return[];const n=DI(e);if(n.length===0)return[{type:"text",value:e}];const t=[];let i=0;for(const r of n)r.start>i&&t.push({type:"text",value:e.slice(i,r.start)}),t.push({type:"link",href:r.href,text:r.value}),i=r.end;return i<e.length&&t.push({type:"text",value:e.slice(i)}),t}function $I(e=0,n=0){let t=e;return typeof e!="number"&&(t=parseFloat(String(e))),Number.isNaN(t)||!Number.isFinite(t)?"?":(0,AI.default)(t,{unitSeparator:" ",decimalPlaces:0})}function zI(e){const n=e.lastIndexOf("."),t=e.substring(n+1);return FI.indexOf(t.toLowerCase())>=0}function VI(e){const n=e.lastIndexOf("."),t=e.substring(n+1);return BI.indexOf(t.toLowerCase())>=0}var nf=class{constructor(e){Object.assign(this,e)}question;id;message;messageType;time;isLocal;isNew;senderName;file;index;viewType;icon;isAutomated;renderNew;sent=!1;errorType=vn.NoError;preventSound=!1;preventBubbleIndication=!1;preventBlinkingTitle=!1;preventTabNotification=!1;getSegments(){return qI(this.message)}};function ia(e,n,t,i,r,a,o,l,s,c,u,f,h,p){const d=new nf;return d.id=e,d.isLocal=i,d.sent=r,d.icon=a,d.senderName=o,d.time=l,d.message=s.trim(),d.question=c,d.renderNew=f,d.isAutomated=h,d.viewType=n,d.file=u,d.messageType=t,d.isNew=p,d}function go(e,n,t,i=!0,r=!0){return ia(-1,nr.Text,n,!1,!0,t,"",new Date,e,void 0,void 0,r,!0,i)}function sv(e,n,t,i,r,a=!1,o=new Date){return ia(-1,nr.Text,On.Normal,!0,a,t,n,o,e,void 0,void 0,i,!1,r)}function HI(e,n,t,i,r,a,o){return ia(e,nr.Text,On.Normal,!1,!0,i,t,a,n,void 0,void 0,r,!1,o)}function lv(e,n,t,i,r=new Date){return ia(-1,nr.File,On.Normal,!0,!1,t,n,r,"",void 0,e,!0,!1,i)}function WI(e,n,t,i,r,a,o){return ia(e,nr.Text,On.Normal,!1,!0,i,t,a,"",void 0,n,r,!1,o)}function YI(e){return ia(-1,nr.Options,On.Normal,!1,!0,"","",new Date,"",e,void 0,!0,!0,!0)}var bi=class{constructor(e){Object.assign(this,e)}alias;isEnable=!0;text;propertyToSubmit;submitMethod;validate;sanitize;onAnswer;options;showOptionsBorders=!0;showSelectedLabel=!1;showHoveredLabel=!1;isCustomField=!1;htmlAnswer=!1;preventSound=!1;preventBubbleIndication=!1;preventTabNotification=!1;type;answer;setAnswer(e){this.sanitize!==void 0?this.answer=this.sanitize(e.toString()):this.answer=e}getAnswer(){return this.answer}},rf=class{constructor(e){Object.assign(this,e)}config;currentIndex=-1;questions;submitOnCompletion;submitMethod;submitted=!1;closeOnSubmission;validateCurrent(e){let n="";return this.currentIndex>=0&&this.questions[this.currentIndex].validate!==void 0&&(n=this.questions[this.currentIndex].validate(e)),n}current(){if(this.currentIndex>=0)return this.questions[this.currentIndex]}next(){let e=-1;if(this.current()?.getAnswer()!==void 0&&(this.current()?.type===Qt.MultipleChoice||this.current()?.type===Qt.SingleChoice)){const n=this.current()?.options.find(t=>t.value===this.current()?.getAnswer());n!==void 0&&(n.nextQuestionAlias!=="FINISH"?e=this.questions.findIndex(t=>t.alias===n.nextQuestionAlias):e=this.questions.length)}if(this.currentIndex>=0&&this.questions[this.currentIndex].submitMethod!==void 0&&this.questions[this.currentIndex].submitMethod(),e<0){let n=!1;for(;!n&&(this.currentIndex+=1,!(this.currentIndex>this.questions.length-1));)this.questions[this.currentIndex].isEnable&&(n=!0);if(n)return this.questions[this.currentIndex]}else if(e<this.questions.length)return this.currentIndex=e,this.questions[e];this.submitMethod!==void 0&&this.submitMethod().subscribe(()=>{this.submitted=!0})}getQuestionByAlias(e){let n;const t=this.questions.findIndex(i=>i.alias===e);return t>=0&&(n=this.questions[t]),n}addSubmissionCallback(e,n=""){if(n!==""){const t=this.questions.findIndex(i=>i.alias===n);t>=0&&(this.questions[t].submitMethod=e)}else this.submitMethod=e}getData(){const e={};return this.questions.forEach(n=>{n.propertyToSubmit!==void 0&&(e[n.propertyToSubmit]=n.getAnswer())}),e}buildFlow(e,n){this.questions=[],this.submitOnCompletion=e,this.config=n}},cv=class extends rf{constructor(e){super(e),Object.assign(this,e),this.closeOnSubmission=!1}NAME_ALIAS="NAME";EMAIL_ALIAS="EMAIL";DEPARTMENT_ALIAS="DEPARTMENT";buildFlow(e,n){super.buildFlow(e,n);const{t}=rn.global;this.questions.push(new bi({alias:this.NAME_ALIAS,type:Qt.Text,propertyToSubmit:"name",text:Pt("AuthFormNameMessage",[t("Auth.AuthNameMessage").toString()]),isEnable:n.authenticationType===St.Both||n.authenticationType===St.Name,sanitize:i=>i.replace(/([^\u0000-\u007F]|[^\w\d-_\s])/g,""),validate:i=>{let r="";return Eu(i)||(r=t("Auth.MaxCharactersReached").toString()),r}})),this.questions.push(new bi({alias:this.EMAIL_ALIAS,type:Qt.Text,propertyToSubmit:"email",text:Pt("AuthFormEmailMessage",[t("Auth.AuthEmailMessage").toString()]),isEnable:n.authenticationType===St.Both||n.authenticationType===St.Email,validate:i=>{let r="";return Os(i)?Su(i)||(r=t("Auth.MaxCharactersReached").toString()):r=t("Auth.OfflineEnterValidEmail").toString(),r}})),this.questions.push(new bi({alias:this.DEPARTMENT_ALIAS,type:Qt.SingleChoice,options:[],propertyToSubmit:"department",text:t("Auth.DepartmentMessage").toString(),isEnable:!1}))}getData(){const e={};return this.questions.forEach(n=>{n.propertyToSubmit!==void 0&&(e[n.propertyToSubmit]=n.getAnswer())}),e}},GI="data:audio/mpeg;base64,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",QI=Ye({props:{config:{type:Object,default:()=>{}}},setup(e){const n=ve(Gt),t=re(null),i=re(!e.config.allowSoundNotifications),r=re(!1),a=Lt(),o=()=>{n.onEnableNotification.subscribe(()=>{r.value=!0})},l=()=>{a.add(n.onToggleSoundNotification.subscribe({next:f=>{i.value=!f}}))},s=()=>{a.add(n.onAttendChat.subscribe({next:()=>Jg.stopBlink()}))},c=()=>{a.add(n.onUnattendedMessage.subscribe({next:f=>{r.value&&!f.preventTabNotification&&!f.preventBlinkingTitle&&Jg.startBlink()}}))},u=()=>{a.add(n.onSoundNotification.pipe(Tn(()=>!i.value&&r.value),CA(100),Ii(()=>{t.value&&(t.value.pause(),t.value.currentTime=0)}),Ee(()=>zt(t.value.play()).pipe(mn(f=>nn)))).subscribe())};return _t(()=>{o(),l(),s(),c()}),Xt(()=>{t.value&&(e.config.soundnotificationUrl!==void 0&&e.config.soundnotificationUrl!==""?t.value.src=e.config.soundnotificationUrl:t.value.src=GI,u())}),ii(()=>{t.value&&t.value.remove()}),{lcAudio:t}}}),KI={ref:"lcAudio"};function ZI(e,n,t,i,r,a){return L(),H("div",null,[X("audio",KI,null,512)])}var JI=Qe(QI,[["render",ZI]]),XI=class extends rf{constructor(e){super(e),Object.assign(this,e)}MESSAGE_ALIAS="MESSAGE";NAME_ALIAS="NAME";EMAIL_ALIAS="EMAIL";PHONE_ALIAS="PHONE";buildFlow(e,n){const{t}=rn.global;super.buildFlow(e,n),this.questions.push(new bi({alias:this.MESSAGE_ALIAS,type:Qt.Text,propertyToSubmit:"OfflineMessage",preventSound:!0,preventTabNotification:!0,text:Pt("OfflineFormTitle",[this.config.unavailableMessage,t("Inputs.UnavailableMessage").toString()]),validate:i=>{let r="";return ar(i,500)||(r=Pt("OfflineFormMaximumCharactersReached",[this.config.offlineFormMaximumCharactersReached,t("Auth.MaxCharactersReached").toString()])),r}})),this.questions.push(new bi({alias:this.NAME_ALIAS,type:Qt.Text,propertyToSubmit:"Name",text:Pt("OfflineFormNameMessage",[this.config.offlineNameMessage,t("Offline.OfflineNameMessage").toString()]),validate:i=>{let r="";return Eu(i)?ar(i)||(r=Pt("OfflineFormMaximumCharactersReached",[this.config.offlineFormMaximumCharactersReached,t("Auth.MaxCharactersReached").toString()])):r=Pt("OfflineFormInvalidName",[this.config.offlineFormInvalidName,t("Auth.EnterValidName").toString()]),r}})),this.questions.push(new bi({alias:this.EMAIL_ALIAS,type:Qt.Text,propertyToSubmit:"Email",text:Pt("OfflineFormEmailMessage",[this.config.offlineEmailMessage,t("Offline.OfflineEmailMessage").toString()]),validate:i=>{let r="";return Su(i)?Os(i)||(r=Pt("OfflineFormInvalidEmail",[this.config.offlineFormInvalidEmail,t("Auth.OfflineEnterValidEmail").toString()])):r=Pt("OfflineFormMaximumCharactersReached",[this.config.offlineFormMaximumCharactersReached,t("Auth.MaxCharactersReached").toString()]),r}}))}getData(){return super.getData()}},ur=class{constructor(e){Object.assign(this,e)}value;text;description;nextQuestionAlias;getAnswerText=()=>this.text},eT=class extends rf{constructor(e){super(e),Object.assign(this,e)}buildFlow(e,n){super.buildFlow(e,n);const{t}=rn.global,i=[new ur({value:"0",description:t("Rate.VeryBad").toString(),text:'<div class="rate_svg"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-136c-31.2 0-60.6 13.8-80.6 37.8-5.7 6.8-4.8 16.9 2 22.5s16.9 4.8 22.5-2c27.9-33.4 84.2-33.4 112.1 0 5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5-19.9-24-49.3-37.8-80.5-37.8zm-48-96c0-2.9-.9-5.6-1.7-8.2.6.1 1.1.2 1.7.2 6.9 0 13.2-4.5 15.3-11.4 2.6-8.5-2.2-17.4-10.7-19.9l-80-24c-8.4-2.5-17.4 2.3-19.9 10.7-2.6 8.5 2.2 17.4 10.7 19.9l31 9.3c-6.3 5.8-10.5 14.1-10.5 23.4 0 17.7 14.3 32 32 32s32.1-14.3 32.1-32zm171.4-63.3l-80 24c-8.5 2.5-13.3 11.5-10.7 19.9 2.1 6.9 8.4 11.4 15.3 11.4.6 0 1.1-.2 1.7-.2-.7 2.7-1.7 5.3-1.7 8.2 0 17.7 14.3 32 32 32s32-14.3 32-32c0-9.3-4.1-17.5-10.5-23.4l31-9.3c8.5-2.5 13.3-11.5 10.7-19.9-2.4-8.5-11.4-13.2-19.8-10.7z"/></svg></div>'}),new ur({value:"1",description:t("Rate.Bad").toString(),text:'<div class="rate_svg"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-152c-44.4 0-86.2 19.6-114.8 53.8-5.7 6.8-4.8 16.9 2 22.5 6.8 5.7 16.9 4.8 22.5-2 22.4-26.8 55.3-42.2 90.2-42.2s67.8 15.4 90.2 42.2c5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5C334.2 339.6 292.4 320 248 320zm-80-80c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"/></svg></div>'}),new ur({value:"2",description:t("Rate.Neutral").toString(),text:'<div class="rate_svg"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm-80-232c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm16 160H152c-8.8 0-16 7.2-16 16s7.2 16 16 16h192c8.8 0 16-7.2 16-16s-7.2-16-16-16z"/></svg></div>'}),new ur({value:"3",description:t("Rate.Good").toString(),text:'<div class="rate_svg"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm90.2-146.2C315.8 352.6 282.9 368 248 368s-67.8-15.4-90.2-42.2c-5.7-6.8-15.8-7.7-22.5-2-6.8 5.7-7.7 15.7-2 22.5C161.7 380.4 203.6 400 248 400s86.3-19.6 114.8-53.8c5.7-6.8 4.8-16.9-2-22.5-6.8-5.6-16.9-4.7-22.6 2.1zM168 240c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"/></svg></div>'}),new ur({value:"4",description:t("Rate.VeryGood").toString(),text:'<div class="rate_svg"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm123.1-151.2C340.9 330.5 296 336 248 336s-92.9-5.5-123.1-15.2c-5.3-1.7-11.1-.5-15.3 3.1-4.2 3.7-6.2 9.2-5.3 14.8 9.2 55 83.2 93.3 143.8 93.3s134.5-38.3 143.8-93.3c.9-5.5-1.1-11.1-5.3-14.8-4.3-3.7-10.2-4.9-15.5-3.1zM248 400c-35 0-77-16.3-98.5-40.3 57.5 10.8 139.6 10.8 197.1 0C325 383.7 283 400 248 400zm-80-160c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"/></svg></div>'})];i.forEach(r=>{r.getAnswerText=()=>`${r.text}<div class='rate_text'>${r.description}</div>`}),this.questions.push(new bi({alias:"RATE",type:Qt.SingleChoice,options:i,propertyToSubmit:"rate",text:Pt("RateMessage",[t("Chat.RateRequest").toString()]),showOptionsBorders:!1,showSelectedLabel:!0,showHoveredLabel:!0,htmlAnswer:!0,sanitize:r=>r.replace(/([^\u0000-\u007F]|[^\w\d-_\s])/g,""),validate:r=>{let a="";return Number.isNaN(Number(r))&&(a="Wrong answer"),a}})),this.questions.push(new bi({alias:"FEEDBACK",type:Qt.SingleChoice,options:[new ur({text:t("Rate.GiveFeedback").toString(),value:1,description:"Yes",nextQuestionAlias:"COMMENT"}),new ur({text:t("Rate.NoFeedback").toString(),value:0,description:"No",nextQuestionAlias:"FINISH"})],text:Pt("RateFeedbackRequestMessage",[t("Chat.RateFeedbackRequest").toString()])})),this.questions.push(new bi({alias:"COMMENT",propertyToSubmit:"comment",text:Pt("RateCommentsMessage",[t("Chat.RateComment").toString()]),validate:r=>{let a="";return ar(r,500)||(a=t("Auth.MaxCharactersReached").toString()),a}}))}getData(){return super.getData()}},tT=class{config;onReset=new Oe;onError=new Oe;onError$=this.onError.asObservable().pipe(vs(this.onReset));onQuestionAnswered=new Oe;onQuestionAnswered$=this.onQuestionAnswered.asObservable().pipe(vs(this.onReset));onNewQuestion=new Oe;onNewQuestion$=this.onNewQuestion.asObservable().pipe(vs(this.onReset));thinking=new Oe;thinking$=this.thinking.asObservable();chatFlowState;currentFlow;eventBus;myChatService;constructor(e,n,t,i){this.config=e,this.chatFlowState=n,this.eventBus=t,this.myChatService=i}getCurrentFlow(){return this.currentFlow&&!this.currentFlow.submitted?this.currentFlow:void 0}think(e,n){this.currentFlow.submitted||setTimeout(()=>{this.thinking.next({key:n,value:e})},500)}answer(e){let n="",t=e.value;const i=this.currentFlow.current();if(i!==void 0&&(i.sanitize!==void 0&&(t=i.sanitize(e.value.toString())),n=this.currentFlow.validateCurrent(t.toString())),this.onQuestionAnswered.next(e.key),n===""){i!==void 0&&i.setAnswer(t);const r=this.currentFlow.next();r!==void 0&&this.onNewQuestion.next(r)}else this.onError.next(n)}start(){const e=this.currentFlow.next();e!==void 0&&this.onNewQuestion.next(e)}reset(){this.setChatFlowState(Ti.Chat),this.onReset.next()}setChatFlowState(e){switch(this.chatFlowState=e,e){case Ti.OfflineForm:this.currentFlow=new XI;break;case Ti.Rate:this.currentFlow=new eT;break;case Ti.Auth:this.currentFlow=new cv;break;default:break}}onFlowNewQuestion(e){const n=go(e.text,On.Normal,this.config.operatorIcon);n.preventSound=e.preventSound,n.preventBubbleIndication=e.preventBubbleIndication,n.preventTabNotification=e.preventTabNotification,this.eventBus.onShowMessage.next(n),e.type===Qt.SingleChoice||e.type===Qt.MultipleChoice?this.eventBus.onShowMessage.next(YI(e)):this.eventBus.onTriggerFocusInput.next()}onFlowError(e){this.eventBus.onShowMessage.next(go(e,On.Normal,this.config.operatorIcon))}onFlowQuestionAnswered(e){e>=0&&(this.myChatService.chatMessages[e].sent=!0)}initFlow(e,n=!1,t=()=>at(!0),i=o=>this.onFlowNewQuestion(o),r=o=>this.onFlowQuestionAnswered(o),a=o=>this.onFlowError(o)){this.currentFlow.buildFlow(n,e),this.currentFlow.addSubmissionCallback(t,""),this.onError$.subscribe(o=>a(o)),this.onNewQuestion$.subscribe(o=>i(o)),this.onQuestionAnswered$.subscribe(o=>r(o))}},nT="data:image/png;base64,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",iT=Ye({components:{FileIcon:YE,SpinnerThird:KE,Times:XE},filters:{},props:{file:{type:ys,default:()=>{}}},setup(e){const n=(y=0,m=0)=>$I(y,m),t=ve(Bn),i=ve(Gt),r=re(""),a=re(""),o=ne(()=>!f.value),l=ne(()=>{if(e.file&&e.file.Height)return e.file.Height>e.file.Width?e.file.Height<200?e.file.Height:200:e.file.Height<120?e.file.Height:120}),s=ne(()=>l.value&&`${l.value}px`),c=ne(()=>{if(e.file&&l.value&&e.file.Width){const y=l&&l.value/e.file.Height;return`${e.file.Width*y}px`}}),u=ne(()=>{if(e.file?.FileState===ki.CF_Available)return a.value?a.value:e.file.FileLink||void 0}),f=ne(()=>VI(e.file.FileName)&&e.file.HasPreview&&!!e.file);let h;const p=ki,d=Lt(),g=(y=!1)=>{h&&(y||(a.value=e.file&&e.file.FileLink?h.fileEndPoint(e.file.FileLink):""),f.value&&(r.value=e.file&&e.file.FileLink?h.fileEndPoint(`${e.file.FileLink}.preview`):""))},b=y=>e.file&&e.file.FileState===ki.CF_Available?!0:(y.preventDefault(),!1),v=()=>{i.onScrollToBottom.next()},C=y=>{y&&y.target&&(y.target.src=Ou)};return kt(()=>e.file.HasPreview,(y,m)=>{y&&m!==y&&g(!0)}),_t(()=>{d.add(t.mySession$.pipe(Tn(y=>y.sessionState===2)).subscribe({next:y=>{h=y,g()}}))}),Xt(()=>{d.add(t.mySession$.pipe(Tn(y=>y.sessionState===2)).subscribe({next:y=>{h=y,g()}}))}),{clientChatFileState:p,ChatFileState:ki,link:u,showFileIcon:o,previewSource:r,imageLoaded:v,downloadFile:b,updateNotFoundImage:C,height:s,maxHeight:l,width:c,size:n}}}),rT="*{box-sizing:border-box}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft}@keyframes slideLeft{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight}@keyframes slideRight{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp}@keyframes slideUp{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge{animation:1s ease-in nudge}@keyframes nudge{0%{opacity:0}to{opacity:1}}@keyframes fly-in{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in{transition:all .5s;animation-name:fly-in;animation-duration:.3s}@keyframes show-with-delay{0%{opacity:0}to{opacity:1}}.show-with-delay{animation-name:show-with-delay;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.root-file .file-download-link{color:inherit;text-decoration:none}.root-file .horizontal_container{grid-column-gap:var(--call-us-element-side-offset-small,5px);grid-template-columns:17px auto;align-items:center;display:grid}.root-file .horizontal_container .horizontal_content_image{align-self:center;width:17px}.root-file .vertical_container{flex-direction:column;display:flex}.root-file .vertical_container .vertical_content_image{flex-direction:column;margin-bottom:3px;display:flex}.root-file .vertical_container .vertical_content_image img{-o-object-fit:scale-down;object-fit:scale-down;align-self:center;max-width:100%;max-height:200px}.root-file .file-info{min-width:0}.root-file .file-info .file-name{white-space:nowrap;text-overflow:ellipsis;text-align:left;align-self:end;display:block;overflow:hidden}.root-file .file-info .file-size{float:left;font-size:calc(var(--call-us-font-size,14px) - 3px);place-self:end}",aT={class:j("root-file")},oT={key:0},sT=["href","download"],lT={key:1,class:j(["vertical_content_image"])},cT=["src"],uT={key:2,class:j(["file-info"])},fT=["title"],dT={class:j(["file-size"])},hT={key:1,class:j(["horizontal_container"])},pT={key:0,class:j([["horizontal_content_image"],["spin"]])},gT={class:j(["file-info"])},mT=["title"],vT={class:j(["file-size"])};function bT(e,n,t,i,r,a){const o=he("FileIcon"),l=he("times");return L(),H("div",aT,[e.file.FileState===e.clientChatFileState.CF_Available?(L(),H("div",oT,[X("a",{ref:"downloadLink",class:j(["file-download-link"]),target:"_blank",href:e.link,download:e.file.FileName,onClick:n[2]||(n[2]=s=>e.downloadFile(s))},[X("div",{class:j([e.showFileIcon?["horizontal_container"]:["vertical_container"]])},[e.showFileIcon?(L(),Me(o,{key:0,class:j(["horizontal_content_image"])})):(L(),H("div",lT,[X("img",{ref:"downloadImage",style:mr(e.width&&e.height?{width:e.width,height:e.height,maxHeight:e.height}:{}),alt:"download image",src:e.previewSource,onLoad:n[0]||(n[0]=(...s)=>e.imageLoaded&&e.imageLoaded(...s)),onError:n[1]||(n[1]=s=>e.updateNotFoundImage(s))},null,44,cT)])),e.showFileIcon?(L(),H("div",uT,[X("span",{title:e.file.FileName,class:j(["file-name"])},Ae(e.file.FileName),9,fT),X("span",dT,Ae(e.size(e.file.FileSize)),1)])):ue("",!0)],2)],8,sT)])):ue("",!0),e.file.FileState!==e.clientChatFileState.CF_Available?(L(),H("div",hT,[e.file.FileState===e.ChatFileState.CF_Uploading?(L(),H("spinner-third",pT)):(L(),Me(l,{key:1,class:j([["horizontal_content_image"]])})),X("div",gT,[X("span",{title:e.file.FileName,class:j(["file-name"])},Ae(e.file.FileName),9,mT),X("span",vT,Ae(e.size(e.file.FileSize)),1)])])):ue("",!0)])}var yT=Qe(iT,[["render",bT],["styles",[rT]]]),AT={name:"ChatText",components:{},props:{message:{type:nf,default:()=>{}}}},wT=".msg_content{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;word-break:break-word;white-space:pre-line}.msg_content a{color:inherit}",_T={class:"msg_content"},CT=["href"];function ET(e,n,t,i,r,a){return L(),H("span",_T,[(L(!0),H(He,null,Gl(t.message.getSegments(),(o,l)=>(L(),H(He,{key:l},[o.type==="link"?(L(),H("a",{key:0,href:o.href,target:"_blank",rel:"noopener noreferrer"},Ae(o.text),9,CT)):(L(),H(He,{key:1},[fn(Ae(o.value),1)],64))],64))),128))])}var ST=Qe(AT,[["render",ET],["styles",[wT]]]),MT=Ye({components:{Loader:OE,Redo:PE,OperatorIcon:VE,ChatFile:yT,ChatText:ST},props:{message:{type:Object,default:()=>new nf},config:{type:Object,default:()=>{}}},setup(e,n){const t=()=>(0,qi.default)(e.message.time).format("LT"),i=()=>(0,qi.default)(e.message.time).format("L"),r=()=>(0,qi.default)(e.message.time).format("L LT"),{t:a}=Rt(),o=re(null),l=ne(()=>e.config.messageDateformat==="both"?r():e.config.messageDateformat==="date"?i():e.config.messageDateformat==="time"?t():""),s=(T,G=!0)=>{T&&T.target&&(T.target.src=G?Ds:nT)},c=ne(()=>e.config.messageDateformat!=="none"||e.config.messageUserinfoFormat!=="none"&&e.config.messageUserinfoFormat!=="avatar"),u=ne(()=>!e.message.isAutomated&&(e.config.messageDateformat!=="none"||e.config.messageUserinfoFormat!=="none"&&e.config.messageUserinfoFormat!=="avatar")),f=ne(()=>e.message.isLocal&&(e.config.messageUserinfoFormat==="both"||e.config.messageUserinfoFormat==="avatar")),h=ne(()=>e.message.isLocal?c.value:u.value),p=ne(()=>e.config.messageUserinfoFormat==="both"||e.config.messageUserinfoFormat==="name"),d=ne(()=>e.config.messageDateformat==="date"||e.config.messageDateformat==="time"||e.config.messageDateformat==="both"),g=ne(()=>e.message.errorType===vn.NoError&&!e.message.sent&&!e.message.file),b=ne(()=>!e.message.isLocal&&(e.config.messageUserinfoFormat==="both"||e.config.messageUserinfoFormat==="avatar")),v=ne(()=>e.message.errorType!==vn.NoError&&!e.message.sent),C=ne(()=>e.message.errorType===vn.NoRetry||e.message.errorType===vn.CanRetry),y=ne(()=>e.message.errorType===vn.UnsupportedFile),m=ne(()=>e.message.errorType===vn.FileError),w=ne(()=>e.message.errorType===vn.CanRetry&&!e.message.sent&&!e.message.file),I=T=>n.emit("resend",T);return{chatText:o,timeStampString:l,showLocalAvatar:f,showSubArea:h,isUserInfoVisible:p,isTimeStampVisible:d,showSendingIndication:g,showAwayAvatar:b,showMessageNotDeliveredError:v,showNetworkError:C,showUnsupportedFileError:y,showFileError:m,getAgentIcon:ne(()=>e.message.icon?e.message.icon:Ds),showRetrySend:w,t:a,updateNotFoundImage:s,sendAgain:I}}}),IT='*{box-sizing:border-box}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft}@keyframes slideLeft{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight}@keyframes slideRight{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp}@keyframes slideUp{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge{animation:1s ease-in nudge}@keyframes nudge{0%{opacity:0}to{opacity:1}}@keyframes fly-in{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in,.msg-root .msg_bubble{transition:all .5s;animation-name:fly-in;animation-duration:.3s}@keyframes show-with-delay{0%{opacity:0}to{opacity:1}}.show-with-delay{animation-name:show-with-delay;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.msg-root{flex-direction:column;display:flex}.msg-root .msg_bubble_client{justify-content:flex-start}.msg-root .msg_bubble_agent{justify-content:flex-end}.msg-root .msg_bubble{flex-direction:row;display:flex;margin:5px 0 1px!important}.msg-root .msg_bubble .avatar_container{min-width:27px;max-width:27px;height:27px}.msg-root .msg_bubble .avatar_container svg path:first-of-type{fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4))}.msg-root .msg_bubble .avatar_container .avatar_img{border-radius:var(--call-us-round-button,50%);border:1px solid var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));min-width:28px;max-width:28px;height:28px;padding:2px}.msg-root .msg_bubble .msg_container{min-width:131px;padding:var(--call-us-standart-right-left-padding,11px);line-height:1.4;font-size:var(--call-us-font-size,14px);word-wrap:break-word;word-break:break-word;color:var(--call-us-plate-font-color,#fff);border-radius:6px;flex-direction:column;align-self:flex-end;margin-top:auto;margin-bottom:auto;display:inline-flex;position:relative}.msg-root .msg_bubble .msg_container .msg_sub_area{text-overflow:ellipsis;margin-top:var(--call-us-element-side-offset-small,5px);font-size:calc(var(--call-us-font-size,14px) - 3px);flex-direction:row;justify-content:space-between;display:flex}.msg-root .msg_bubble .msg_container .msg_sub_area .msg_sender_name{text-overflow:ellipsis;white-space:nowrap;float:left;max-width:60%;margin-right:var(--call-us-element-side-offset-small,5px);overflow:hidden}.msg-root .msg_bubble .msg_container .msg_sub_area .msg_timestamp{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.msg-root .msg_bubble .msg_container .sending_indication{flex-direction:row;justify-content:flex-end;display:inline-flex;position:absolute;bottom:0;right:2px}.msg-root .msg_bubble .msg_container .sending_indication .sending_icon{width:1em;height:1em;fill:var(--call-us-form-header-background,#373737);margin:0 0 0 var(--call-us-element-side-offset-small,5px);display:inline-block}.msg-root .msg_bubble .msg_client{background-color:var(--call-us-plate-background-color,#494949);color:var(--call-us-plate-font-color,#fff);margin-left:10px}.msg-root .msg_bubble .msg_client.new_msg:before{content:"";border-top:8px solid #0000;border-right:8px solid var(--call-us-plate-background-color,#494949);border-bottom:8px solid #0000;width:0;height:0;position:absolute;top:8px;left:-7px}.msg-root .msg_bubble .msg_agent{background:var(--call-us-agent-bubble-color,#33333310);color:var(--call-us-main-font-color,#000);margin-right:10px}.msg-root .msg_bubble .msg_agent.new_msg:after{content:"";border-top:8px solid #0000;border-left:8px solid var(--call-us-agent-bubble-color,#33333310);border-bottom:8px solid #0000;width:0;height:0;position:absolute;top:8px;right:-8px}.msg-root .error-message{color:red;font-size:calc(var(--call-us-font-size,14px) - 3px);margin-bottom:10px}.msg-root .error-message .error-message-retry{cursor:pointer}',TT={class:j([["msg-root"]])},kT={key:0,class:j(["avatar_container"])},OT=["src"],xT={key:2,class:j(["msg_sub_area"])},NT={key:0,class:j([["msg_sender_name"]])},RT={key:1,class:j([["msg_timestamp"]])},LT={key:3,class:j([["sending_indication"]])},PT={key:1,class:j(["avatar_container"])},DT=["src"],FT={key:0,class:j(["error-message"])},BT={key:0},UT={key:1},jT={key:2},qT={key:3};function $T(e,n,t,i,r,a){const o=he("OperatorIcon"),l=he("ChatFile"),s=he("ChatText"),c=he("loader"),u=he("Redo");return L(),H("div",TT,[X("div",{class:j([["msg_bubble"],e.message.isLocal?["msg_bubble_client"]:["msg_bubble_agent"]])},[e.showLocalAvatar?(L(),H("div",kT,[e.message.icon?(L(),H("img",{key:0,alt:"avatar",src:e.message.icon,class:j(["avatar_img"]),onError:n[0]||(n[0]=f=>e.updateNotFoundImage(f,!1))},null,40,OT)):(L(),Me(o,{key:1}))])):ue("",!0),X("div",{ref:"chatText",class:j([["msg_container"],e.message.renderNew?["new_msg"]:"",e.message.isLocal?["msg_client"]:["msg_agent"]])},[e.message.file?(L(),Me(l,{key:0,file:e.message.file},null,8,["file"])):(L(),Me(s,{key:1,message:e.message},null,8,["message"])),e.showSubArea?(L(),H("div",xT,[e.isUserInfoVisible?(L(),H("div",NT,Ae(e.message.senderName),1)):ue("",!0),e.isTimeStampVisible?(L(),H("span",RT,Ae(e.timeStampString),1)):ue("",!0)])):ue("",!0),e.showSendingIndication?(L(),H("div",LT,[pe(c,{class:j([["sending_icon"]])})])):ue("",!0)],2),e.showAwayAvatar&&e.message.renderNew?(L(),H("div",PT,[X("img",{alt:"avatar",src:e.getAgentIcon,class:j(["avatar_img"]),onError:n[1]||(n[1]=f=>e.updateNotFoundImage(f))},null,40,DT)])):ue("",!0)],2),e.showMessageNotDeliveredError?(L(),H("div",FT,[e.showNetworkError?(L(),H("span",BT,Ae(e.t("Chat.MessageNotDeliveredError")),1)):e.showUnsupportedFileError?(L(),H("span",UT,Ae(e.t("Chat.UnsupportedFileError")),1)):e.showFileError?(L(),H("span",jT,Ae(e.t("Chat.FileError")),1)):ue("",!0),e.showRetrySend?(L(),H("span",qT,[fn(Ae(e.t("ChatryAgain"))+" ",1),X("span",{class:j(["error-message-retry"]),onClick:n[2]||(n[2]=f=>e.sendAgain(e.message.index))},[pe(u,{style:{height:"12px",fill:"red"}})])])):ue("",!0)])):ue("",!0)])}var zT=Qe(MT,[["render",$T],["styles",[IT]]]),VT=Ye({props:{config:{type:Object,default:()=>{}}},setup(e){const n=ve(Bn),t=ve(Kh);let i;const{t:r}=Rt(),a=Lt(),o=re(!1),l=re(""),s=()=>{a.add(t.thinking$.pipe(Ii(()=>{o.value=!0}),za(1e3),Ii(u=>{o.value=!1,t.answer(u)})).subscribe())},c=()=>{a.add(n.mySession$.pipe(Ee(u=>u.messages$.pipe(TA(),yt(([f,h])=>f instanceof Wa&&h instanceof Yr&&h.Messages.some(p=>p.Recipients.find(d=>d.IsSender)?.IdRecipient===f.IdRecipient)?(o.value=!1,nn):h),Au(Wa),Mp(u.conversation$),yt(f=>({typing:f,time:new Date})),Sp(1e3),Ii(f=>{if(i=f.time,e.config.showOperatorActualName){const[h,p]=f.typing;l.value=p.Recipients.find(d=>d.Recipient.IdRecipient===h.IdRecipient)?.Recipient.Name||e.config.operatorName}else l.value=e.config.operatorName;o.value=!0}),za(2e3)))).subscribe(()=>{const u=i.getTime()-new Date().getTime();o.value=Math.abs(u)<2e3}))};return _t(()=>{s(),c()}),{isTypingVisible:o,operatorName:l,t:r}}}),HT="*{box-sizing:border-box}.typing-indicator-root{text-align:right;width:80%;right:var(--call-us-standart-right-left-padding,11px);font-size:calc(var(--call-us-font-size,14px) - 3px);white-space:nowrap;max-width:80%;color:var(--call-us-main-font-color,#000);flex-direction:row;justify-content:flex-end;display:flex}.typing-indicator-root .typing_indicator_name{text-overflow:ellipsis;white-space:nowrap;flex-grow:1;overflow:hidden}.typing-indicator-root .typing_indicator_name span{margin-right:3px}",WT={key:0,class:j(["typing-indicator-root"])},YT={class:j(["typing_indicator_name"])},GT=["title"];function QT(e,n,t,i,r,a){return e.isTypingVisible?(L(),H("div",WT,[X("div",YT,[X("span",{title:e.operatorName},Ae(e.operatorName),9,GT)]),X("span",{ref:"typingIndicator"},Ae(e.t("Inputs.IsTyping")),513)])):ue("",!0)}var KT=Qe(VT,[["render",QT],["styles",[HT]]]),ZT={PaperClip:Tm,SoundActive:Mm,SoundInactive:Im},JT={name:"ActionButton",components:{SoundActive:Mm,SoundInactive:Im},props:{title:{type:String,default:""},componentKey:{type:String,default:""},disabled:Boolean},setup(e){return{components:ZT}}},XT="*{box-sizing:border-box}.action-button{margin-right:var(--call-us-element-side-offset-small,5px);cursor:pointer;width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));vertical-align:top;border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;background:0 0;padding:0}.action-button a{width:100%;height:100%}.action-button svg,.action-button svg path{width:20px;height:20px}",ek=["title","aria-label","disabled"];function tk(e,n,t,i,r,a){return L(),H("button",{class:j(["action-button"]),title:t.title,"aria-label":t.title,disabled:t.disabled,type:"button",onClick:n[0]||(n[0]=en(()=>{},["prevent","stop"]))},[(L(),Me(pd(i.components[t.componentKey]))),kr(e.$slots,"default")],8,ek)}var nk=Qe(JT,[["render",tk],["styles",[XT]]]),ik=Ye({directives:{object:to},components:{GlyphiconCall:no},props:{allowVideo:{type:Boolean,default:!1},allowCall:{type:Boolean,default:!1},isFullScreen:{type:Boolean,default:!1},isChatUntilCall:{type:Boolean,default:!1},chatOnline:{type:Boolean,default:!0},showCallControls:Boolean},setup(e){const n=ve(tn),t=js(n),{t:i}=Rt(),r=ne(()=>{let a=[];return!e.isChatUntilCall&&(n.hasCall.value||n.hasRecall.value)?a=["big-buttons"]:e.isChatUntilCall&&n.hasCall.value&&(a=["no-buttons"]),a});return{isWebRtcAllowed:ta,t:i,isVideoActive:ne(()=>n.isVideoActive.value),isFullScreenSupported:ne(()=>n.isFullscreenSupported()),isCallWindow:r,makeVideoCall(){t.makeCall(!0)},toggleMute(){n.mute()},videoOutputClick(){n.goFullScreen()},...t}}}),rk="*{box-sizing:border-box}button{border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;width:100%;padding:var(--call-us-element-side-offset-small,5px) 10px;font-family:inherit;font-size:var(--call-us-font-size,14px);cursor:pointer;outline:none;justify-content:center;align-items:center;display:flex}button:disabled{opacity:.6;cursor:not-allowed}.root-cc{height:var(--call-us-call-controls-btn-height,46.01px);flex-direction:row;display:flex}.root-cc.big-buttons{background:var(--call-us-plate-background-color,#494949);height:var(--call-us-big-bottom-btn-height,67px)}.root-cc.big-buttons .call-us{font-size:calc(var(--call-us-font-size,14px) + 6px)}.root-cc.big-buttons .call-us svg{width:var(--call-us-drop-size,28px)!important;height:var(--call-us-drop-size,28px)!important}.root-cc .call-us,.root-cc .call-us-drop{color:#fff;outline:none;justify-content:center;align-items:center;width:100%;height:100%;margin:0;display:flex}.root-cc .call-us:active,.root-cc .call-us-drop:active{transform:translateY(2px)}.root-cc .call-us .call-icon,.root-cc .call-us .drop-icon,.root-cc .call-us-drop .call-icon,.root-cc .call-us-drop .drop-icon{margin-right:var(--call-us-element-side-offset-medium,10px);fill:#fff;width:16px;height:16px}.root-cc .call-us{background:#18ab00}.root-cc .call-us-drop{font-size:calc(var(--call-us-font-size,14px) + 6px);background:#d80027}.root-cc .call-us-drop svg{transform:var(--call-us-default-rotation-drop-call,rotate(135deg));width:var(--call-us-drop-size,28px)!important;height:var(--call-us-drop-size,28px)!important}",ak=["src"],ok={key:1,autoplay:""},sk=["aria-label","disabled"],lk=["aria-label","disabled"];function ck(e,n,t,i,r,a){const o=he("GlyphiconCall"),l=Tr("object");return e.showCallControls?(L(),H("div",{key:0,ref:"phoneControlsContainer",class:j([["root-cc"],e.isFullScreen?["full-screen-controls"]:"",e.isCallWindow])},[e.myWebRTCService.audioNotificationUrl.value?(L(),H("audio",{key:0,src:e.myWebRTCService.audioNotificationUrl.value,autoplay:"",loop:""},null,8,ak)):ue("",!0),e.myWebRTCService.remoteStream.value?Ln((L(),H("audio",ok,null,512)),[[l,e.myWebRTCService.remoteStream.value]]):ue("",!0),e.myWebRTCService.hasCall.value?(L(),H("button",{key:3,id:"callUsDropCallBtn",type:"button","aria-label":e.t("Inputs.EndCallTitle"),class:j([["call-us-drop"]]),disabled:e.myWebRTCService.hasTryingCall.value,onClick:n[1]||(n[1]=(...s)=>e.dropCall&&e.dropCall(...s))},[pe(o,{class:j(["drop-icon"])}),fn(" "+Ae(e.t("Inputs.EndCallTitle")),1)],8,lk)):(L(),H(He,{key:2},[e.allowCall?(L(),H("button",{key:0,id:"callUsCallBtn",type:"button","aria-label":e.t("Inputs.CallTitle"),class:j([["call-us"],e.myWebRTCService.hasRecall.value?["recall-window"]:""]),disabled:!e.isWebRtcAllowed,onClick:n[0]||(n[0]=()=>e.makeCall())},[pe(o,{class:j(["call-icon"])}),fn(" "+Ae(e.t("Inputs.CallTitle")),1)],10,sk)):ue("",!0)],64))],2)):ue("",!0)}var uk=Qe(ik,[["render",ck],["styles",[rk]]]),fk=Ye({components:{ActionButton:nk,FacebookIcon:bE,PaperPlane:wE,TwitterIcon:EE,EmailIcon:IE,PaperClip:Tm,MessageSolid:xm,CallControls:uk},props:{config:{type:Object,default:()=>{}},isChatActive:Boolean,chatEnabled:{type:Boolean,default:!1},chatOnline:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isFullScreen:{type:Boolean,default:!1},currentState:{type:Number,default:_e.Chat},isChatUntilCall:Boolean,isCall:{type:Boolean,default:!1},allowCall:{type:Boolean,default:!1}},setup(e,n){const t=ve(Gt),i=ve(Ua),r=ve(Bn),a=ve(tn),o=re(null),l=re(null),s=re(e.config.allowSoundNotifications),c=re(""),{t:u}=Rt(),f=ne(()=>a&&(e.allowCall||e.config.allowVideo||a.hasCall.value)&&(e.chatEnabled?r.hasSession:!0)&&!e.isChatUntilCall),h=ne(()=>UI),p=Lt(),d=()=>{setTimeout(()=>{o.value&&Us.blurElement(o.value)},200)},g=()=>{setTimeout(()=>{o.value&&Us.focusElement(o.value)},200)},b=()=>{p.add(t.onMinimized.subscribe({next:()=>{d()}}))},v=()=>{const B=Bc(t.onRestored,t.onTriggerFocusInput);p.add(B.subscribe({next:()=>{i.chatInteractionEvent(),g()}}))},C=B=>{c.value=B.target.value,t.onClientChatTyping.next()},y=B=>{n.emit("input-focus-change",B),B&&t.onAttendChat.next()},m=()=>{l.value?.click()},w=()=>{const B=l.value;B&&t.onFileUpload.next(B.files)},I=()=>{c.value&&(n.emit("send-message",c.value),c.value="")},T=()=>{t.onRestart.next()},G=()=>{s.value=!s.value,t.onToggleSoundNotification.next(s.value)},$=ne(()=>c.value.length>0);return _t(()=>{b(),v()}),{myMessage:c,chatInput:o,fileInput:l,soundFlag:s,t:u,maxChatMessageSize:h,isSendButtonEnabled:$,isMobileSafari:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&Di(),showCallControls:f,fireTyping:C,onInputFocusChange:y,filePickerToggle:m,fileSelection:w,sendMessage:I,onStartNewChat:T,onToggleSound:G,focusInput:g,blurInput:d}}}),dk='[data-v-1a820332]{box-sizing:border-box}.bar[data-v-1a820332]{border:0;width:100%;padding:0;display:block;position:relative}.bar[data-v-1a820332]:before{content:"";background:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));width:0;height:2px;transition:all .3s;position:absolute;bottom:0;left:0}.materialInput[data-v-1a820332],.materialPhone[data-v-1a820332],.materialTextarea[data-v-1a820332]{flex-grow:1;margin-bottom:5px;position:relative}.materialInput label[data-v-1a820332],.materialPhone label[data-v-1a820332],.materialTextarea label[data-v-1a820332]{color:var(--call-us-main-font-color,#000);font-size:calc(var(--call-us-font-size,14px) - 3px);font-palette:dark;pointer-events:none;left:var(--call-us-element-side-offset-small,5px);font-weight:400;transition:all .3s;position:absolute;top:10px}.materialInput textarea[data-v-1a820332],.materialPhone textarea[data-v-1a820332],.materialTextarea textarea[data-v-1a820332]{resize:none;overflow-x:hidden}.materialInput textarea:focus~label[data-v-1a820332],.materialInput textarea:valid~label[data-v-1a820332],.materialPhone textarea:focus~label[data-v-1a820332],.materialPhone textarea:valid~label[data-v-1a820332],.materialTextarea textarea:focus~label[data-v-1a820332],.materialTextarea textarea:valid~label[data-v-1a820332]{font-size:calc(var(--call-us-font-size,14px) - 1px);color:var(--call-us-main-font-color,#000);top:-30px}.materialInput input[data-v-1a820332],.materialPhone input[data-v-1a820332],.materialTextarea input[data-v-1a820332]{background:var(--call-us-main-background-color,#fff)!important}.materialInput input:focus~label[data-v-1a820332],.materialInput input:valid~label[data-v-1a820332],.materialInput input:disabled~label[data-v-1a820332],.materialPhone input:focus~label[data-v-1a820332],.materialPhone input:valid~label[data-v-1a820332],.materialPhone input:disabled~label[data-v-1a820332],.materialTextarea input:focus~label[data-v-1a820332],.materialTextarea input:valid~label[data-v-1a820332],.materialTextarea input:disabled~label[data-v-1a820332]{font-size:calc(var(--call-us-font-size,14px) - 1px);color:var(--call-us-main-font-color,#000);top:-4px}.materialInput.safari-input input[data-v-1a820332],.materialPhone.safari-input input[data-v-1a820332],.materialTextarea.safari-input input[data-v-1a820332]{font-size:calc(var(--call-us-font-size,14px) + 2px)}.materialInput input[data-v-1a820332],.materialInput textarea[data-v-1a820332],.materialPhone input[data-v-1a820332],.materialPhone textarea[data-v-1a820332],.materialTextarea input[data-v-1a820332],.materialTextarea textarea[data-v-1a820332]{color:var(--call-us-main-font-color,#000);font-size:calc(var(--call-us-font-size,14px) - 1px);border:none;border-bottom:1px solid var(--call-us-main-font-color,#000);background:0 0;border-radius:0;width:100%;padding:7px 0 3px;font-family:inherit;display:block}.materialInput input[data-v-1a820332]:focus,.materialInput textarea[data-v-1a820332]:focus,.materialPhone input[data-v-1a820332]:focus,.materialPhone textarea[data-v-1a820332]:focus,.materialTextarea input[data-v-1a820332]:focus,.materialTextarea textarea[data-v-1a820332]:focus{outline:none}.materialInput input:focus~.bar[data-v-1a820332]:before,.materialInput textarea:focus~.bar[data-v-1a820332]:before,.materialPhone input:focus~.bar[data-v-1a820332]:before,.materialPhone textarea:focus~.bar[data-v-1a820332]:before,.materialTextarea input:focus~.bar[data-v-1a820332]:before,.materialTextarea textarea:focus~.bar[data-v-1a820332]:before{width:100%}.custom-scrollbar[data-v-1a820332]::-webkit-scrollbar{width:4px}.footer-root .chat-message-input-form .chat-message-input[data-v-1a820332]::-webkit-scrollbar{width:4px}.custom-scrollbar[data-v-1a820332]::-webkit-scrollbar-track{background:#f1f1f1}.footer-root .chat-message-input-form .chat-message-input[data-v-1a820332]::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar[data-v-1a820332]::-webkit-scrollbar-thumb{background:#888}.footer-root .chat-message-input-form .chat-message-input[data-v-1a820332]::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar[data-v-1a820332]::-webkit-scrollbar-thumb:hover{background:#555}.footer-root .chat-message-input-form .chat-message-input[data-v-1a820332]::-webkit-scrollbar-thumb:hover{background:#555}.footer-root[data-v-1a820332]{background:var(--call-us-main-background-color,#fff);min-height:calc(var(--call-us-chat-input-height,47px) + var(--call-us-call-controls-btn-height,46.01px));border-top:0!important;border-radius:0 0 15px 15px!important}.footer-root.call[data-v-1a820332]{min-height:calc(var(--call-us-chat-input-height,47px) + var(--call-us-big-bottom-btn-height,67px))}.footer-root.chat-call[data-v-1a820332],.footer-root.calls-disabled[data-v-1a820332]{min-height:var(--call-us-chat-input-height,47px)}.footer-root[data-v-1a820332]{margin-top:auto}.footer-root .chat-inputs[data-v-1a820332]{padding:0 var(--call-us-standart-right-left-padding,11px) var(--call-us-standart-right-left-padding,11px) var(--call-us-standart-right-left-padding,11px);height:var(--call-us-chat-input-height,47px);flex-direction:row;align-items:center;display:flex}.footer-root .chat-message-input-form[data-v-1a820332]{width:100%}.footer-root.chat-disabled[data-v-1a820332]{min-height:unset;margin-top:auto;padding:0!important}.footer-root .chat-message-input-form[data-v-1a820332]{flex-direction:row;margin:0;display:flex}.footer-root .chat-message-input-form .chat-message-input[data-v-1a820332]:disabled{cursor:not-allowed}.footer-root .chat-message-input-form .chat-message-input.safari-input[data-v-1a820332]{font-size:calc(var(--call-us-font-size,14px) + 2px)}.footer-root .chat-message-input-form .chat-message-input[data-v-1a820332]{height:var(--call-us-msg-m-input-height,32px);box-sizing:border-box;outline:none}.footer-root .chat-message-input-form .send-trigger[data-v-1a820332]{cursor:pointer;border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;width:20px;height:20px;margin-top:10px;margin-left:10px}.footer-root .chat-message-input-form .send-trigger.send_enable[data-v-1a820332]{cursor:pointer}.footer-root .chat-message-input-form .send-trigger.send_enable svg[data-v-1a820332]{fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4))!important}.footer-root .chat-message-input-form .send-trigger.send_disable[data-v-1a820332]{cursor:not-allowed;fill:#eee}.footer-root .banner[data-v-1a820332]{padding-top:var(--call-us-element-side-offset-small,5px);flex-direction:row;align-items:center;height:25px;margin-top:-2px;display:flex;position:relative}.footer-root .banner .chat-action-buttons[data-v-1a820332]{color:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));flex-direction:row;display:flex}.footer-root .banner .chat-action-buttons .action-button[data-v-1a820332]{margin-right:var(--call-us-element-side-offset-small,5px);cursor:pointer;width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px)}.footer-root .banner .chat-action-buttons .action-button svg[data-v-1a820332]{fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));vertical-align:top}.start-new[data-v-1a820332]{line-height:var(--call-us-default-line-height,17px);color:var(--call-us-plate-font-color,#fff);background:var(--call-us-plate-background-color,#494949);border:none;border-radius:0 0 6px 6px;justify-content:center;align-self:flex-end;align-items:center;width:100%;height:44px;display:flex}.start-new svg[data-v-1a820332]{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:var(--call-us-plate-font-color,#fff);margin-right:15px}.start-new[data-v-1a820332]:active{opacity:.9}.start-new[data-v-1a820332]{transition:all .1s}button.send-trigger[data-v-1a820332]{cursor:pointer;width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);background:0 0;margin-top:10px;margin-left:10px;padding:0}button.send-trigger.send_enable svg[data-v-1a820332]{fill:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4))}button.send-trigger.send_disable svg[data-v-1a820332]{fill:#eee;width:100%}',hk={key:0,class:j(["chat-inputs"])},pk={class:j(["banner"])},gk={class:j(["chat-action-buttons"])},mk=["href"],vk=["href"],bk=["href"],yk={class:j("materialInput")},Ak=["disabled","value","placeholder","maxLength"],wk=["aria-label","disabled"],_k=["aria-label"];function Ck(e,n,t,i,r,a){const o=he("ActionButton"),l=he("FacebookIcon"),s=he("TwitterIcon"),c=he("EmailIcon"),u=he("PaperPlane"),f=he("CallControls"),h=he("MessageSolid");return L(),H("div",{class:j([["footer-root"],e.isChatActive?"":["chat-disabled"],e.isCall?["call"]:"",e.isChatUntilCall?["chat-call"]:"",e.showCallControls?"":["calls-disabled"]])},[e.isChatActive?(L(),H("div",hk,[e.chatEnabled?(L(),H(He,{key:0},[X("div",pk,[X("div",gk,[e.config.filesEnabled&&e.chatOnline?(L(),H("input",{key:0,id:"avatar",ref:"fileInput",type:"file",style:{display:"none"},name:"file-picker",accept:"image/jpeg,image/pjpeg,image/png,image/gif,image/bmp,image/x-windows-bmp,image/tiff,image/x-tiff,application/msword,application/pdf,text/plain,application/rtf,application/x-rtf,application/mspowerpoint,application/powerpoint,application/vnd.ms-powerpoint,application/x-mspowerpoint,application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel",onChange:n[0]||(n[0]=en((...p)=>e.fileSelection&&e.fileSelection(...p),["prevent"]))},null,544)):ue("",!0),e.config.filesEnabled&&e.chatOnline?(L(),Me(o,{key:1,componentKey:"PaperClip",disabled:!e.enableTyping,title:e.t("Inputs.AddFile"),onClick:en(e.filePickerToggle,["prevent"])},null,8,["disabled","title","onClick"])):ue("",!0),e.config.enableMute&&e.chatEnabled?(L(),Me(o,{key:2,componentKey:e.soundFlag?"SoundActive":"SoundInactive",title:e.soundFlag?e.t("Inputs.MuteNotifications"):e.t("Inputs.UnmuteNotifications"),onClick:e.onToggleSound},null,8,["componentKey","title","onClick"])):ue("",!0),e.config.facebookIntegrationUrl?(L(),Me(o,{key:3,title:"facebook integration"},{default:jt(()=>[X("a",{target:"_blank",href:e.config.facebookIntegrationUrl},[pe(l)],8,mk)]),_:1})):ue("",!0),e.config.twitterIntegrationUrl?(L(),Me(o,{key:4,title:"twitter integration"},{default:jt(()=>[X("a",{target:"_blank",href:e.config.twitterIntegrationUrl},[pe(s)],8,vk)]),_:1})):ue("",!0),e.config.emailIntegrationUrl?(L(),Me(o,{key:5,title:"email integration"},{default:jt(()=>[X("a",{href:"mailto:"+e.config.emailIntegrationUrl},[pe(c)],8,bk)]),_:1})):ue("",!0)])]),X("form",{class:j(["chat-message-input-form"]),autocomplete:"off",autocorrect:"off",spellcheck:"false",onSubmit:n[7]||(n[7]=en(p=>e.sendMessage(),["prevent"]))},[X("div",yk,[X("textarea",{ref:"chatInput",class:j([["chat-message-input"],e.isMobileSafari?["safari-input"]:""]),disabled:!e.enableTyping,value:e.myMessage,placeholder:e.t("Chat.TypeYourMessage"),maxLength:e.maxChatMessageSize,name:"chatInput",autocomplete:"off",spellcheck:"false",onInput:n[1]||(n[1]=p=>e.fireTyping(p)),onFocus:n[2]||(n[2]=p=>e.onInputFocusChange(!0)),onBlur:n[3]||(n[3]=p=>e.onInputFocusChange(!1)),onKeydown:[n[4]||(n[4]=_c(en((...p)=>e.sendMessage&&e.sendMessage(...p),["exact","prevent"]),["enter"])),n[5]||(n[5]=_c(en(p=>e.myMessage+=`
`,["shift","exact","prevent"]),["enter"]))]},null,42,Ak)]),X("button",{id:"sendBtn","aria-label":e.t("Auth.OfflineSubmit"),class:j([["send-trigger"],e.isSendButtonEnabled?["send_enable"]:["send_disable"]]),disabled:!e.enableTyping,onMousedown:n[6]||(n[6]=en(p=>e.sendMessage(),["prevent"]))},[pe(u)],42,wk)],32)],64)):ue("",!0)])):ue("",!0),pe(f,{allowCall:e.allowCall,allowVideo:e.config.allowVideo,isFullScreen:e.isFullScreen,isChatUntilCall:e.isChatUntilCall,chatOnline:e.chatOnline,showCallControls:e.showCallControls},null,8,["allowCall","allowVideo","isFullScreen","isChatUntilCall","chatOnline","showCallControls"]),!e.isChatActive&&!e.showCallControls?(L(),H("button",{key:1,id:"startNewBtn",ref:"startNewBtn","aria-label":e.t("ChatCompleted.StartNew"),class:j(["start-new"]),type:"button",onClick:n[8]||(n[8]=p=>e.onStartNewChat())},[pe(h),fn(" "+Ae(e.t("ChatCompleted.StartNew")),1)],8,_k)):ue("",!0)],2)}var Ek=Qe(fk,[["render",Ck],["styles",[dk]],["__scopeId","data-v-1a820332"]]),Sk=[Mt.MISSED,Mt.ENDED_DUE_AGENT_INACTIVITY,Mt.ENDED_DUE_CLIENT_INACTIVITY,Mt.ENDED_BY_CLIENT,Mt.ENDED_BY_AGENT,Mt.ENDED_DUE_BLOCK];function Mk(e,n){const t=e.Recipient.Contact?.ContactImage;if(t)return new URL(t,n).href}var Ik=Ye({components:{Notifier:JI,ChatMsg:zT,ChatFooter:Ek,TypingIndicator:KT},props:{config:{type:Object,default:()=>{}},operator:{type:Object,default:()=>Li},chatEnabled:{type:Boolean,default:!1},chatOnline:{type:Boolean,default:!0},isChatUntilCall:{type:Boolean,default:!1},allowCall:{type:Boolean,default:!1}},setup(e,n){const t=ve(Bn),i=ve(Gt),r=ve(Dr),a=ve(Ua),o=ve(tn),l=ve(Mi),{t:s}=Rt(),c=new tT(e.config,Ti.Chat,i,t),u=re(null),f=re(!1),h=Lt();let p=!1,d=!1,g=!0,b=-1,v="",C=[];const y=new Oe,m=ne(()=>o.isVideoActive.value),w=ne(()=>{let J=!0;const se=c.getCurrentFlow();if(se!==void 0){const E=se.current();E!==void 0&&(J=E.type!==Qt.MultipleChoice&&E.type!==Qt.SingleChoice)}return J});qt(Kh,c);const I=J=>{f.value=J},T=()=>{setTimeout(()=>{const J=u.value;J&&(J.scrollTop=J.scrollHeight)})},G=ne(()=>{let J;const se=c.getCurrentFlow();return se!==void 0&&c.chatFlowState!==Ti.Chat?se.closeOnSubmission?J=!se?.submitted:J=!0:e.chatOnline?J=t.hasSession:J=!1,J}),$=J=>{const se=t.chatMessages.push(J);return J.isNew&&!J.isLocal&&!J.preventSound&&!f.value&&(i.onSoundNotification.next(),!e.isChatUntilCall&&o.hasCall.value&&n.emit("add-unread-message")),J.isNew&&!J.isLocal&&(!J.preventBubbleIndication||!J.preventTabNotification)&&!f.value&&i.onUnattendedMessage.next(J),T(),se},B=J=>{if(g&&J.isLocal){let se=Vn("FirstResponse",[e.config.firstResponseMessage]);se&&(se=t.injectAuthenticationName(se),t.chatMessages.filter(E=>!E.isAutomated&&!E.isLocal).length<=0?(g=!1,$(go(se,On.Normal,e.operator.image))):g=!1)}},Y=J=>J===40?vn.NoRetry:vn.CanRetry,V=(J,se)=>{t.get(new Rp({Message:J,IdConversation:b})).subscribe({next:()=>{i.onTriggerFocusInput.next(),t.chatMessages[se].sent=!0,B(t.chatMessages[se])},error:E=>{i.onError.next(E),t.chatMessages[se].errorType=Y(E.state),T()}})},P=(J="",se=-1)=>{if(jI(J))if(J.length<=19900){i.onChatInitiated.next(!0);const E=t.lastMessage(),k=E?.isLocal;let z;if(se<0&&(z=sv(J,v,e.config.userIcon,!k||E.senderName!==v,!0),se=$(z)-1),t.chatMessages[se].index=se,e.chatOnline&&c.chatFlowState===Ti.Chat)se===1&&p&&(J=`Offline Message:
Name: ${t.auth?.name??""}
Email: ${t.auth?.email??""}
Content: ${J}`),V(J,se);else{const K=c.getCurrentFlow();K&&K.current()===void 0&&K instanceof cv&&z!==void 0&&C.push(z),c.think(J,se)}}else i.onError.next("Chat message too large"),eo("Chat message too large")},O=J=>{P(t.chatMessages[J].message,J)},A=J=>{const se=J.filter(E=>E.IsNew).map(E=>E.Id);se.length>0&&t.get(new Dp({Items:se})).subscribe()},M=J=>{J=t.injectAuthenticationName(J);const se=go(J,On.Completed,"",!0,!1);se.preventBubbleIndication=!0,se.preventBlinkingTitle=!0,$(se)},F=(J,se)=>{setTimeout(()=>{let E="";J?E=t.injectAuthenticationName(Vn("ChatWelcomeMessage",[e.config.inviteMessage])):E=t.injectAuthenticationName(Vn("UnavailableMessage",[e.config.unavailableMessage]));const k=go(E,On.Normal,se?.image||e.operator.image,!1);k.preventSound=!0,$(k)})},D=J=>{(d&&t.lastMessage()?.messageType!==On.Completed||!d||J.closedByClient)&&M(J.closeMessage||Vn("ChatEndMessage",[e.config.endingMessage,s("Inputs.EndingMessage").toString()])),i.onChatCompleted.next()},Q=J=>{if(!J)return;const se=new ys;se.FileSize=J[0].size,se.FileState=ki.CF_Uploading,se.FileName=J[0].name;const E=$(lv(se,v,e.config.userIcon,!0))-1,k=new Lp({IdConversation:b,Name:J[0].name});zI(J[0].name)?t.get(k).pipe(mn(z=>(t.chatMessages[E].errorType=vn.FileError,se.FileState=ki.CF_Deleted,t.chatMessages[E].file=se,T(),ot(()=>z)))).subscribe(z=>{se.FileLink=z.File.FileLink,se.FileState=ki.CF_Available,t.chatMessages[E].file=se,t.chatMessages[E].sent=!0}):(t.chatMessages[E].errorType=vn.UnsupportedFile,se.FileState=ki.CF_Deleted,t.chatMessages[E].file=se,T())},ie=()=>{h.add(i.onShowMessage.subscribe({next:J=>{$(J)}}))},ce=()=>{h.add(y.pipe(wA(i.onAttendChat)).subscribe({next:J=>{J.forEach(se=>{A(se)})}}))},de=()=>{h.add(i.onScrollToBottom.subscribe({next:()=>T()}))},ye=()=>{h.add(t.notificationsOfType$(Xa).subscribe({next:J=>{if(Sk.includes(J.status)){let se="";switch(d&&(se=t.lastMessage()?.message??""),J.status){case Mt.ENDED_DUE_BLOCK:se=s("Inputs.BlockMessage").toString();break;case Mt.ENDED_DUE_AGENT_INACTIVITY:case Mt.ENDED_DUE_CLIENT_INACTIVITY:se=Vn("InactivityMessage",["Chat session closed due to inactivity."]);break;case Mt.ENDED_BY_CLIENT:case Mt.ENDED_BY_AGENT:se=Vn("ChatEndMessage",[e.config.endingMessage,s("Inputs.EndingMessage").toString()]);break;case Mt.MISSED:se=Vn("ChatNoAnswerMessage",[e.config.endingMessage,s("Inputs.EndingMessage").toString()]);break}i.onClosed.next(new qs({notifyServer:!1,closedByClient:!1,chatUniqueCode:b,closeMessage:se}))}else J.status===Mt.ACTIVE&&(J.chatState&&(p=J.isNew&&!J.chatState.Connected,F(J.chatState.Connected,nm(J.startingConv,e.config))),b=J.idConversation)}}))},Te=()=>{h.add(t.mySession$.subscribe({next:J=>{!t.hasSession&&J.sessionState===ui.Error?i.onClosed.next(new qs({notifyServer:!1,closedByClient:!1,chatUniqueCode:b})):t.hasSession?(r.hide(),i.onEnableNotification.next(),i.onTriggerFocusInput.next(),d=J.serverProvideSystemMessages,b=J.getSessionUniqueCode(),C.length>0&&(C.forEach(se=>{V(se.message,se.index)}),C=[]),a.chatInitiatedEvent(J)):e.chatEnabled||r.hide()}}))},ke=()=>{const J=t.mySession$.pipe(Ee(se=>se.messages$.pipe(Au(Yr),Mp(se.conversation$))));h.add(J.subscribe({next:([se,E])=>{se.Messages.forEach(k=>{if(k.IdConversation===E.IdConversation){if(k.MessageType===Vc.CMT_Closed||k.MessageType===Vc.CMT_Dealt)M(Pt("ChatEndMessage",[e.config.endingMessage,s("Inputs.EndingMessage").toString()]));else{let z,K;k.File&&(K=new ys(k.File));const Z=t.lastMessage(),_=Z?.isLocal,S=!!Z?.file,N=k.Recipients.find(Ce=>Ce.IsSender)?.IdRecipient,U=E.Recipients.find(Ce=>Ce.Recipient.IdRecipient===N),W=U?.Recipient.RecipientType===Wr.CRT_Anonymous;let te;W?te=U?.Recipient.Name||e.config.visitorName:te=e.config.showOperatorActualName&&U?.Recipient.Name||e.config.operatorName;const x=new Date(k.Time.Year,k.Time.Month-1,k.Time.Day,k.Time.Hour,k.Time.Minute,k.Time.Second),q=x.getTimezoneOffset(),le=W!==_||Z?.senderName!==te||!!k.File||S||Z?.isAutomated&&!0;let me=k.Message;if(W)if(K)z=lv(K,te,e.config.userIcon,k.IsNew,new Date(x.getTime()-q*60*1e3));else{const Ce=me.match(/Offline Message:.*Content: (.*)/s);Ce?.length===2&&([,me]=Ce),z=sv(me,te,e.config.userIcon,le,k.IsNew,!k.IsNew,new Date(x.getTime()-q*60*1e3))}else{const Ce=U&&Mk(U,e.config.channelUrl??"")||e.config.operatorIcon;K?z=WI(k.Id,K,te,Ce,le,new Date(x.getTime()-q*60*1e3),k.IsNew):z=HI(k.Id,me,te,Ce,le,new Date(x.getTime()-q*60*1e3),k.IsNew)}$(z)}e.config.acknowledgeReceived&&(y.next(se.Messages),f.value&&i.onAttendChat.next())}})}}))},De=()=>{h.add(t.notificationsOfType$(Np).subscribe({next:J=>{const se=t.chatMessages.findIndex(E=>E.id===J.Id);se>-1&&(t.chatMessages[se].file=new ys(J.File))}}))},Ke=()=>{h.add(i.onClientChatTyping.pipe(Tn(()=>c.chatFlowState===Ti.Chat),Sp(2e3),Ee(()=>{const J=new Wa({IdConversation:b});return t.get(J)})).subscribe({error:J=>{i.onError.next(J)}}))},Ft=()=>{h.add(i.onClosed$.subscribe({next:J=>{o.hasCall.value&&o.removeDroppedCall(),D(J)}}))},Bt=()=>{h.add(i.onFileUpload.subscribe({next:J=>Q(J)}))},Ze=()=>{h.add(Vr(document,"resize").subscribe(()=>{Di()&&T()}))};return _t(()=>{Ze(),r.show(),t.clearMessages(),v=t.auth?.name??"",h.add(i.onRestored.subscribe(()=>T())),ie(),ce(),de(),ye(),Te(),ke(),De(),Ke(),Ft(),Bt(),v=t.auth?.name||e.config.visitorName}),Xt(()=>{e.chatOnline||i.onEnableNotification.next()}),{myWebRTCService:o,isInputFocused:f,enableTyping:w,isVideoActive:m,chatHistory:u,myChatService:t,ChatViewMessageType:nr,chatFlowControlService:c,isChatActive:G,isFullScreen:ne(()=>l.isFullScreen),onResendMessage:O,onInputFocusChange:I,sendMessage:P,automatedFirstResponseHandle:B,addChatMessage:$,t:s}}}),Tk='.bar[data-v-24df579f]{border:0;width:100%;padding:0;display:block;position:relative}.bar[data-v-24df579f]:before{content:"";background:var(--call-us-main-accent-color,var(--call-us-form-header-background,#0596d4));width:0;height:2px;transition:all .3s;position:absolute;bottom:0;left:0}.materialInput[data-v-24df579f],.materialPhone[data-v-24df579f],.materialTextarea[data-v-24df579f]{flex-grow:1;margin-bottom:5px;position:relative}.materialInput label[data-v-24df579f],.materialPhone label[data-v-24df579f],.materialTextarea label[data-v-24df579f]{color:var(--call-us-main-font-color,#000);font-size:calc(var(--call-us-font-size,14px) - 3px);font-palette:dark;pointer-events:none;left:var(--call-us-element-side-offset-small,5px);font-weight:400;transition:all .3s;position:absolute;top:10px}.materialInput textarea[data-v-24df579f],.materialPhone textarea[data-v-24df579f],.materialTextarea textarea[data-v-24df579f]{resize:none;overflow-x:hidden}.materialInput textarea:focus~label[data-v-24df579f],.materialInput textarea:valid~label[data-v-24df579f],.materialPhone textarea:focus~label[data-v-24df579f],.materialPhone textarea:valid~label[data-v-24df579f],.materialTextarea textarea:focus~label[data-v-24df579f],.materialTextarea textarea:valid~label[data-v-24df579f]{font-size:calc(var(--call-us-font-size,14px) - 1px);color:var(--call-us-main-font-color,#000);top:-30px}.materialInput input[data-v-24df579f],.materialPhone input[data-v-24df579f],.materialTextarea input[data-v-24df579f]{background:var(--call-us-main-background-color,#fff)!important}.materialInput input:focus~label[data-v-24df579f],.materialInput input:valid~label[data-v-24df579f],.materialInput input:disabled~label[data-v-24df579f],.materialPhone input:focus~label[data-v-24df579f],.materialPhone input:valid~label[data-v-24df579f],.materialPhone input:disabled~label[data-v-24df579f],.materialTextarea input:focus~label[data-v-24df579f],.materialTextarea input:valid~label[data-v-24df579f],.materialTextarea input:disabled~label[data-v-24df579f]{font-size:calc(var(--call-us-font-size,14px) - 1px);color:var(--call-us-main-font-color,#000);top:-4px}.materialInput.safari-input input[data-v-24df579f],.materialPhone.safari-input input[data-v-24df579f],.materialTextarea.safari-input input[data-v-24df579f]{font-size:calc(var(--call-us-font-size,14px) + 2px)}.materialInput input[data-v-24df579f],.materialInput textarea[data-v-24df579f],.materialPhone input[data-v-24df579f],.materialPhone textarea[data-v-24df579f],.materialTextarea input[data-v-24df579f],.materialTextarea textarea[data-v-24df579f]{color:var(--call-us-main-font-color,#000);font-size:calc(var(--call-us-font-size,14px) - 1px);border:none;border-bottom:1px solid var(--call-us-main-font-color,#000);background:0 0;border-radius:0;width:100%;padding:7px 0 3px;font-family:inherit;display:block}.materialInput input[data-v-24df579f]:focus,.materialInput textarea[data-v-24df579f]:focus,.materialPhone input[data-v-24df579f]:focus,.materialPhone textarea[data-v-24df579f]:focus,.materialTextarea input[data-v-24df579f]:focus,.materialTextarea textarea[data-v-24df579f]:focus{outline:none}.materialInput input:focus~.bar[data-v-24df579f]:before,.materialInput textarea:focus~.bar[data-v-24df579f]:before,.materialPhone input:focus~.bar[data-v-24df579f]:before,.materialPhone textarea:focus~.bar[data-v-24df579f]:before,.materialTextarea input:focus~.bar[data-v-24df579f]:before,.materialTextarea textarea:focus~.bar[data-v-24df579f]:before{width:100%}.custom-scrollbar[data-v-24df579f]::-webkit-scrollbar{width:4px}.chat-root .chat-container[data-v-24df579f]::-webkit-scrollbar{width:4px}.custom-scrollbar[data-v-24df579f]::-webkit-scrollbar-track{background:#f1f1f1}.chat-root .chat-container[data-v-24df579f]::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar[data-v-24df579f]::-webkit-scrollbar-thumb{background:#888}.chat-root .chat-container[data-v-24df579f]::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar[data-v-24df579f]::-webkit-scrollbar-thumb:hover{background:#555}.chat-root .chat-container[data-v-24df579f]::-webkit-scrollbar-thumb:hover{background:#555}[data-v-24df579f]{box-sizing:border-box}.chat-root[data-v-24df579f]{flex-direction:column;flex-grow:1;height:100%;display:flex;position:relative}.chat-root .chat-container[data-v-24df579f]{flex:auto;block-size:1px;overflow-y:auto;padding:var(--call-us-element-side-offset-small,5px) var(--call-us-standart-right-left-padding,11px) 0!important}.chat-root .chat-container .indicator-container[data-v-24df579f]{height:var(--call-us-font-size,14px);line-height:var(--call-us-font-size,14px);justify-content:flex-end;display:flex}.chat-root .chat-container>div:last-of-type div[data-v-24df579f]{margin:0!important}.chat-root .chat-disabled-container[data-v-24df579f]{text-align:center;color:#646464;z-index:2;-webkit-user-select:none;user-select:none;flex-direction:row;flex:auto;justify-content:center;align-items:center;font-size:1em;display:flex;padding:var(--call-us-standart-right-left-padding,11px) var(--call-us-standart-right-left-padding,11px) 0!important}',kk=".rate_svg svg[data-v-24df579f]{height:20px}.rate_text[data-v-24df579f]{margin-left:10px}",Ok={class:j(["chat-root"])},xk={class:j(["indicator-container"])},Nk={key:1,ref:"chatDisabledMessage",class:j(["chat-disabled-container"])};function Rk(e,n,t,i,r,a){const o=he("notifier"),l=he("ChatMsg"),s=he("TypingIndicator"),c=he("ChatFooter");return L(),H("div",Ok,[pe(o,{config:e.config},null,8,["config"]),e.chatEnabled?(L(),H("div",{key:0,ref:"chatHistory",class:j([["chat-container"],e.isChatActive?"":["disabled"],e.myWebRTCService.hasCall.value&&!e.isChatUntilCall?["call"]:"",e.isVideoActive?["video"]:"",e.isFullScreen?["full-screen"]:""])},[(L(!0),H(He,null,Gl(e.myChatService.chatMessages,(u,f)=>(L(),H(He,null,[u.viewType===e.ChatViewMessageType.Text||u.viewType===e.ChatViewMessageType.File?(L(),Me(l,{key:u.index,config:e.config,message:u,onResend:h=>e.onResendMessage(f)},null,8,["config","message","onResend"])):ue("",!0)],64))),256)),X("div",xk,[pe(s,{style:{width:"100%",display:"flex","justify-content":"flex-end"},config:e.config},null,8,["config"])])],2)):(L(),H("div",Nk,[X("div",null,Ae(e.t("Inputs.ChatIsDisabled")),1)],512)),pe(c,{ref:"chatFooter",config:e.config,allowCall:e.allowCall,chatOnline:e.chatOnline,isChatActive:e.isChatActive,chatEnabled:e.chatEnabled,enableTyping:e.enableTyping,isChatUntilCall:e.isChatUntilCall,isCall:e.myWebRTCService.hasCall.value,onInputFocusChange:e.onInputFocusChange,onSendMessage:e.sendMessage},null,8,["config","allowCall","chatOnline","isChatActive","chatEnabled","enableTyping","isChatUntilCall","isCall","onInputFocusChange","onSendMessage"])])}var Lk=Qe(Ik,[["render",Rk],["styles",[Tk,kk]],["__scopeId","data-v-24df579f"]]),Pk=Ye({name:"ActionButton",components:{GlyphiconMic:lE,GlyphiconMicoff:fE},props:{title:{type:String,default:""},disabled:Boolean,muted:{type:Boolean,dafault:!1},isFsSupported:Boolean,isMinimizedWindow:{type:Boolean,default:!1}},setup(){const{t:e}=Rt();return{t:e}}}),Dk="*{box-sizing:border-box}* button{border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;width:100%;padding:var(--call-us-element-side-offset-small,5px) 10px;font-family:inherit;font-size:var(--call-us-font-size,14px);cursor:pointer;outline:none;justify-content:center;align-items:center;display:flex}* button:disabled{opacity:.6;cursor:not-allowed}.mute-button,.unmute-button{border-radius:var(--call-us-round-button,50%);width:var(--call-us-calling-window-btn-size,23px);height:var(--call-us-calling-window-btn-size,23px);background:linear-gradient(#424242 0%,#131313 100%);margin:0;padding:4px 2.7px 3px}.mute-button:active,.unmute-button:active{transform:scale(.95)}.mute-button .icon,.unmute-button .icon{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:#fff}.mute-button .icon g rect,.unmute-button .icon g rect{fill:linear-gradient(180deg, #424242 0%, #131313 100%)}.cw-panel-button{color:#fff;height:var(--call-us-big-bottom-btn-height,67px);background:0 0;border:1px solid #4f4f4f;flex-direction:row;justify-content:center;align-items:center;width:100%;margin:0;display:flex}.cw-panel-button:hover{opacity:.8}.cw-panel-button:active{transform:scale(.95)}.cw-panel-button span{margin-left:var(--call-us-element-side-offset-medium,10px)}.cw-panel-button .icon{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:#fff}.cw-panel-button .icon g rect{fill:linear-gradient(180deg, #424242 0%, #131313 100%)}.cw-panel-button.with-fs{flex-direction:column}.cw-panel-button.with-fs span,.cw-panel-button.with-fs svg{margin:0}.cw-unmute{background:#3c3c3c}",Fk=["aria-label","disabled"],Bk={key:0},Uk=["aria-label","disabled"],jk={key:0};function qk(e,n,t,i,r,a){const o=he("GlyphiconMic"),l=he("GlyphiconMicoff");return L(),H("div",null,[e.muted?(L(),H("button",{key:1,id:"callUsUnmuteBtn",ref:"unmuteBtn",type:"button","aria-label":e.t("Inputs.UnmuteMic"),class:j([e.isMinimizedWindow?["unmute-button"]:[["cw-panel-button"],["cw-unmute"]],e.isFsSupported?["with-fs"]:""]),disabled:e.disabled,onClick:n[1]||(n[1]=en(s=>e.$emit("click"),["prevent","stop"]))},[pe(l,{class:j(["icon"])}),e.isMinimizedWindow?ue("",!0):(L(),H("span",jk,Ae(e.t("Inputs.UnmuteMic")),1))],10,Uk)):(L(),H("button",{key:0,id:"callUsMuteBtn",ref:"muteBtn","aria-label":e.t("Inputs.MuteMic"),type:"button",class:j([e.isMinimizedWindow?["mute-button"]:["cw-panel-button"],e.isFsSupported?["with-fs"]:""]),disabled:e.disabled,onClick:n[0]||(n[0]=en(s=>e.$emit("click"),["prevent","stop"]))},[pe(o,{class:j(["icon"])}),e.isMinimizedWindow?ue("",!0):(L(),H("span",Bk,Ae(e.t("Inputs.MuteMic")),1))],10,Fk))])}var $k=Qe(Pk,[["render",qk],["styles",[Dk]]]),zk=Ye({components:{WplcIcon:Ps,GlyphiconCall:no,GlyphiconFullscreen:aE,InVideoFullScreen:rS,MuteButton:$k},directives:{object:to},props:{isChatUntilCall:{type:Boolean,default:!1},unreadMessages:{type:Number,default:0},allowCall:{type:Boolean,default:!1}},setup(e,n){const t=ve(tn),i=Lt(),r=ve(Mi),a=js(t),o=re(!1),l=re(""),s=ne(()=>t.isVideoActive.value&&t.isFullscreenSupported()),c=ve(Dr),{t:u}=Rt();let f;return Xt(()=>{r.enableFullScreen&&!e.isChatUntilCall&&window.matchMedia("(orientation: landscape)").matches?r.goFullScreen():r.isFullScreen&&r.closeFullScreen(),i.add(t.phoneService.myCalls$.pipe(Ee(g=>{const b=new Date().getTime();return g.length===0&&!t.callDrop.value&&!o.value?(t.hasRecall.value=!0,f=window.setTimeout(()=>{n.emit("toggle",!1),t.hasRecall.value=!1,t.callDrop.value=!1},5e3),at(u("Inputs.NotRespondingStatusTitle"))):g.length>0&&g[0].isEstablished?(o.value=!0,vA(1e3).pipe(yt(()=>new Date().getTime()-b),yt(v=>{const C=Math.floor(v/1e3),y=Math.floor(C/60);return`${y}:${(C-y*60).toString().padStart(2,"0")}`}))):g.length>0&&!g[0].isEstablished?(clearTimeout(f),at(u("Inputs.CallingStatusTitle"))):(g.length===0&&(t.callDrop.value||o.value)&&n.emit("toggle",!1),nn)})).subscribe({next:g=>{l.value=g}}))}),ii(()=>{r.enableFullScreen&&!e.isChatUntilCall&&r.goFullScreen()}),{isWebRtcAllowed:ta,toggleChatTillCall:g=>{n.emit("toggle",g),r.enableFullScreen&&(g||window.matchMedia("(orientation: landscape)").matches?r.goFullScreen():r.closeFullScreen())},videoOutputClick:()=>{t.goFullScreen()},loadingService:c,isFullScreenSupported:s,timeString:l,toggleMute:()=>{t.mute()},t:u,...a}}}),Vk="*{box-sizing:border-box}* button{border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;width:100%;padding:var(--call-us-element-side-offset-small,5px) 10px;font-family:inherit;font-size:var(--call-us-font-size,14px);cursor:pointer;outline:none;justify-content:center;align-items:center;display:flex}* button:disabled{opacity:.6;cursor:not-allowed}.calling-window-root .full-window,.calling-window-root .minimized{color:#fff;background:linear-gradient(#424242 0%,#131313 100%);display:flex}.calling-window-root .full-window{height:calc(100% - var(--call-us-big-bottom-btn-height,67px))}.calling-window-root .full-window.loading-services{height:100%}.calling-window-root .full-window{z-index:var(--call-us-z-index-calling-window,3);border-top-left-radius:6px;border-top-right-radius:6px;flex-direction:column;justify-content:flex-end;width:100%;position:absolute;top:0}.calling-window-root .full-window .call-status{text-align:center;margin-bottom:calc(var(--call-us-form-header-height,123px) - 15px)}@media screen and (orientation:landscape) and (height<=540px){.calling-window-root .full-window .call-status{top:calc(var(--call-us-header-height,40px) + 25px);font-size:var(--call-us-font-size,14px);font-weight:400;position:absolute;left:72px}}@media screen and (orientation:landscape) and (height<=300px){.calling-window-root .full-window .call-status{display:none}}.calling-window-root .full-window .video-call-status{top:calc(var(--call-us-header-height,40px) + 25px);font-size:var(--call-us-font-size,14px);font-weight:400;position:absolute;left:72px}.calling-window-root .full-window .button-panel{flex-direction:row;display:flex}.calling-window-root .full-window .button-panel.with-fs button{flex-direction:column}.calling-window-root .full-window .button-panel.with-fs button span,.calling-window-root .full-window .button-panel.with-fs button svg{margin:0}.calling-window-root .minimized{padding:0 var(--call-us-standart-right-left-padding,11px) 0 var(--call-us-standart-right-left-padding,11px);height:var(--call-us-minimized-calling-window-height,47px);flex-flow:row;align-items:center;position:relative}.calling-window-root .minimized .call-status{cursor:pointer;flex:1;justify-content:center;align-items:center;height:100%;display:flex}.cw-panel-button{color:#fff;height:var(--call-us-big-bottom-btn-height,67px);background:0 0;border:1px solid #4f4f4f;flex-direction:row;justify-content:center;align-items:center;width:100%;margin:0;display:flex}.cw-panel-button:hover{opacity:.8}.cw-panel-button:active{transform:scale(.95)}.cw-panel-button span{margin-left:var(--call-us-element-side-offset-medium,10px)}.cw-panel-button .icon{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:#fff}.cw-panel-button .icon g rect{fill:linear-gradient(180deg, #424242 0%, #131313 100%)}.cw-panel-button .open-chat-img-container{position:relative}.cw-panel-button .open-chat-img-container .unread-badge{font-size:calc(var(--call-us-font-size,14px) - 6px);background:#d80027;border-radius:40%;width:12px;height:10px;position:absolute;top:-5px;right:-5px}.round-call-control-btn{border-radius:var(--call-us-round-button,50%);width:var(--call-us-calling-window-btn-size,23px);height:var(--call-us-calling-window-btn-size,23px);margin:0}.round-call-control-btn:active{transform:scale(.95)}.round-call-control-btn svg{width:var(--call-us-variable-button-size,20px);height:var(--call-us-variable-button-size,20px);fill:#fff}.round-call-control-btn.call-us{background-color:#18ab00;padding:2.7px 1.7px}.round-call-control-btn.call-us-drop{background:#d80027;padding:5px 2.7px 3px}.round-call-control-btn.call-us-drop svg{transform:var(--call-us-default-rotation-drop-call,rotate(135deg))}.cw-full-screen{width:24px;height:24px;right:10px;top:calc(10px - var(--call-us-video-output-height,187px));z-index:99999;background:#434343cc;border-radius:5px;padding:0;position:absolute}.cw-full-screen .rect{width:8px;height:8px}",Hk={class:j(["calling-window-root"])},Wk=["src"],Yk={key:1,autoplay:""},Gk=["aria-label"],Qk={class:j(["open-chat-img-container"])},Kk={key:0,class:j(["unread-badge"])},Zk=["aria-label"],Jk={key:3,ref:"minimizedWindow",class:j(["minimized"])},Xk=["aria-label","disabled"],eO=["aria-label","disabled"],tO=["aria-label"];function nO(e,n,t,i,r,a){const o=he("WplcIcon"),l=he("MuteButton"),s=he("GlyphiconFullscreen"),c=he("GlyphiconCall"),u=he("InVideoFullScreen"),f=Tr("object");return L(),H("div",Hk,[e.myWebRTCService.audioNotificationUrl.value?(L(),H("audio",{key:0,src:e.myWebRTCService.audioNotificationUrl.value,autoplay:"",loop:""},null,8,Wk)):ue("",!0),e.myWebRTCService.remoteStream.value?Ln((L(),H("audio",Yk,null,512)),[[f,e.myWebRTCService.remoteStream.value]]):ue("",!0),e.isChatUntilCall?(L(),H("div",Jk,[pe(l,{id:"callUsMuteBtn",muted:e.myWebRTCService.media.isMuted,isMinimizedWindow:!0,class:"cw",disabled:e.myWebRTCService.hasTryingCall.value,onClick:e.toggleMute},null,8,["muted","disabled","onClick"]),X("div",{class:j(["call-status"]),onClick:n[2]||(n[2]=h=>e.toggleChatTillCall(!1))},Ae(e.timeString),1),e.allowCall&&!e.myWebRTCService.hasCall.value?(L(),H("button",{key:0,id:"callBtn","aria-label":e.t("Inputs.CallTitle"),class:j([["round-call-control-btn"],["call-us"]]),type:"button",disabled:!e.isWebRtcAllowed,onClick:n[3]||(n[3]=()=>e.makeCall())},[pe(c,{class:j(["call-icon"])})],8,Xk)):(L(),H("button",{key:1,id:"dropBtn","aria-label":e.t("Inputs.EndCallTitle"),class:j([["round-call-control-btn"],["call-us-drop"]]),type:"button",disabled:e.myWebRTCService.hasTryingCall.value,onClick:n[4]||(n[4]=(...h)=>e.dropCall&&e.dropCall(...h))},[pe(c,{class:j(["drop-icon"])})],8,eO)),e.isFullScreenSupported?(L(),H("button",{key:2,id:"fsBtnMinimized","aria-label":e.t("Inputs.FullScreen"),type:"button",class:j(["cw-full-screen"]),onClick:n[5]||(n[5]=h=>e.videoOutputClick())},[pe(u)],8,tO)):ue("",!0)],512)):(L(),H("div",{key:2,ref:"fullWindow",class:j([["full-window"],e.loadingService.loading()||e.myWebRTCService.hasRecall.value&&!e.allowCall?["loading-services"]:""])},[X("div",{ref:"status",class:j(e.myWebRTCService.isVideoActive.value?["video-call-status"]:["call-status"])},Ae(e.timeString),3),X("div",{class:j([["button-panel"],e.isFullScreenSupported?["with-fs"]:""])},[X("button",{id:"openChatBtn",type:"button","aria-label":e.t("Auth.Submit"),class:j([["cw-panel-button"],["open-chat"]]),onClick:n[0]||(n[0]=h=>e.toggleChatTillCall(!0))},[X("div",Qk,[pe(o,{class:j(["icon"])}),e.unreadMessages>0?(L(),H("span",Kk,Ae(e.unreadMessages<100?e.unreadMessages:"99"),1)):ue("",!0)]),X("span",null,Ae(e.t("Auth.Submit")),1)],8,Gk),pe(l,{id:"callUsMuteBtn",muted:e.myWebRTCService.media.isMuted,style:{width:"100%"},isMinimizedWindow:!1,class:"cw",disabled:e.myWebRTCService.hasTryingCall.value,isFsSupported:e.isFullScreenSupported,onClick:e.toggleMute},null,8,["muted","disabled","isFsSupported","onClick"]),e.isFullScreenSupported?(L(),H("button",{key:0,id:"fsBtn",type:"button","aria-label":e.t("Inputs.FullScreen"),class:j(["cw-panel-button"]),onClick:n[1]||(n[1]=h=>e.videoOutputClick())},[pe(s,{class:j(["icon"])}),X("span",null,Ae(e.t("Inputs.FullScreen")),1)],8,Zk)):ue("",!0)],2)],2))])}var iO=Qe(zk,[["render",nO],["styles",[Vk]]]),rO=Ye({components:{Panel:xu,CallUsHeader:Wm,OverlayMessage:bI,Chat:Lk,CallingWindow:iO},props:{chatEnabled:Boolean,chatOnline:Boolean,startMinimized:Boolean,enableAuthForm:Boolean,config:{type:Object,default:()=>{}},isQueue:{type:Boolean,default:!1},operator:{type:Object,default:()=>Li}},setup(e){const n=ve(Mi),t=ve(Bn),i=ve(Gt),r=ve(Ec),a=ve(Dr),o=ve(Ua),l=ve(tn),s=Rt();e.chatOnline&&(r.isChatActive()||e.enableAuthForm)&&(a.show(),t.reconnect());const c=re(""),u=re(io.try),f=re(!1),h=re(!1),p=re(!1),d=re(""),g=re(!1);let b=-1;const v=re(0),C=re(!1),y=re(0),m=ne(()=>!e.chatEnabled||f.value),w=ne(()=>t.chatMessages.filter(A=>A.isLocal).length>0||l.hadCall.value),I=_e.Chat,T=Lt(),G=()=>{g.value=!0,i.onAttendChat.next(),i.onClosed.next(new qs({notifyServer:!0,closedByClient:!0,chatUniqueCode:b}))},$=()=>{y.value+=1},B=()=>{T.add(t.mySession$.pipe(kn(1),Ee(A=>A.sessionState===ui.Connected&&w.value?(l.clearCallMemo(),l.callDrop.value=!0,l.hasRecall.value=!1,A.get(new Wc({IdConversation:A.chatConversationId,CloseReason:YA.ECCR_LogoutByAnonymous}))):nn)).subscribe({error:A=>{G(),i.onError.next(A)},complete:()=>{G()}}))},Y=()=>{if(c.value="",u.value===io.restart){d.value=Vn("ChatEndMessage",[e.config.endingMessage,s.t("Inputs.EndingMessage").toString()]);const A=t.auth?.name??"";d.value=d.value.replace("%NAME%",A),i.onClosed.next(new qs({notifyServer:!1,closedByClient:!1,chatUniqueCode:b}))}},V=()=>{v.value++},P=A=>{C.value=A,A&&(y.value=0)},O=()=>{const A=t.mySession$.pipe(Ii(M=>{M.sessionState===ui.Error&&(M.error===s.t("Inputs.ServiceUnavailable")?f.value=!0:c.value=M.error??"",u.value=io.restart,eo(c.value),a.hide())}));e.isQueue&&!e.config.ignoreQueueownership?(h.value=!1,p.value=!1,T.add(A.pipe(Ee(M=>M.conversation$),yt(M=>!M.QueueNo||M.TakenBy),Va()).subscribe({next:M=>{M?(h.value=e.config.allowCall,p.value=e.config.allowVideo):(h.value=!1,p.value=!1)}}))):T.add(A.subscribe({next:()=>{h.value=e.config.allowCall,p.value=e.config.allowVideo}}))};return _t(()=>{T.add(i.onLoaded.subscribe({next:A=>{V(),A&&(t.reconnect(),O())}})),O(),T.add(i.onClosed.subscribe({next:()=>{r.dropSession().subscribe({next:()=>{a.hide(),t.closeSession(),o?.dispatchEvent("chat_complete","ChatCompleted")},error:A=>{a.hide(),i.onError.next(A)}})}})),T.add(i.onError.subscribe({next:A=>{c.value=wu(A),u.value=io.ok,eo(c.value),a.hide()}})),T.add(t.notificationsOfType$(Xa).subscribe({next:A=>{A.idConversation!==b&&(b=A.idConversation)}}))}),{myChatService:t,fullscreenService:n,currentState:I,notificationMessage:c,notificationButtonType:u,allowCall:h,allowVideo:p,ViewState:_e,chatComponentKey:v,isChatOpenTillCall:C,isCallingWindow:ne(()=>l.hasCall.value||l.hasRecall.value),unreadMessages:y,chatDisabled:m,onClose:B,onErrorFormSubmit:Y,setupChatServiceSubscriptions:O,toggleChatTillCall:P,addUnreadMessage:$}}}),aO="[data-v-46b75349]{box-sizing:border-box}.phone-toolbar[data-v-46b75349]{padding-left:var(--call-us-element-side-offset-medium,10px);padding-right:var(--call-us-element-side-offset-medium,10px);background:var(--call-us-dialer-background,white);border-bottom:thin solid var(--call-us-border-color,darkgray);flex-grow:1;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.phone-toolbar[data-v-46b75349] .call-us-toolbar{flex-direction:row;justify-content:center;display:flex}.phone-toolbar[data-v-46b75349] .call-us-toolbar button{border-radius:var(--call-us-round-button,50%);background-color:#0000;width:31px;height:31px}.root[data-v-46b75349]{font-size:var(--call-us-font-size,14px)}.chat[data-v-46b75349]{transition:height .2s ease-in-out;overflow-y:hidden}";function oO(e,n,t,i,r,a){const o=he("OverlayMessage"),l=he("CallUsHeader"),s=he("CallingWindow"),c=he("Chat"),u=he("Panel");return L(),Me(u,{ref:"panelComponent",auth:e.myChatService.auth,allowMinimize:e.config.allowMinimize,startMinimized:e.startMinimized,config:e.config,operator:e.operator,panelState:e.currentState,allowFullscreen:!0,isCallingWindow:e.isCallingWindow&&!e.isChatOpenTillCall,onClose:n[2]||(n[2]=f=>e.onClose())},{overlay:jt(()=>[e.notificationMessage?(L(),Me(o,{key:0,ref:"overlayMessageComponent",message:e.notificationMessage,button:e.notificationButtonType,onSubmit:n[0]||(n[0]=f=>e.onErrorFormSubmit())},null,8,["message","button"])):ue("",!0)]),"panel-top":jt(()=>[pe(l,{currentState:e.currentState,config:e.config,allowVideo:e.allowVideo,allowCall:e.allowCall,operator:e.operator,isFullScreen:e.fullscreenService.isFullScreen,chatOnline:e.chatOnline,isChatUntilCall:e.isChatOpenTillCall,onClose:n[1]||(n[1]=f=>e.onClose())},null,8,["currentState","config","allowVideo","allowCall","operator","isFullScreen","chatOnline","isChatUntilCall"]),e.isCallingWindow?(L(),Me(s,{key:0,ref:"callingWindow",allowCall:e.allowCall,isChatUntilCall:e.isChatOpenTillCall,config:e.config,unreadMessages:e.unreadMessages,onToggle:e.toggleChatTillCall},null,8,["allowCall","isChatUntilCall","config","unreadMessages","onToggle"])):ue("",!0)]),"panel-content":jt(()=>[e.currentState===e.ViewState.Chat?(L(),Me(c,{slot:"panel-content",key:e.chatComponentKey,ref:"chatComponent",class:j("chat"),chatOnline:e.chatOnline,chatEnabled:!e.chatDisabled,config:e.config,operator:e.operator,isChatUntilCall:e.isChatOpenTillCall,allowCall:e.allowCall,onAddUnreadMessage:e.addUnreadMessage},null,8,["chatOnline","chatEnabled","config","operator","isChatUntilCall","allowCall","onAddUnreadMessage"])):ue("",!0)]),_:1},8,["auth","allowMinimize","startMinimized","config","operator","panelState","isCallingWindow"])}var sO=Qe(rO,[["render",oO],["styles",[aO]],["__scopeId","data-v-46b75349"]]);function lO(e,n,t){return e?!1:n!==St.None||t}var cO={components:{IntroForm:WS,AuthenticateForm:uI,MainForm:sO,MinimizedBubble:Rm},props:am,setup(e){const n=re(null),t=re(_e.None),i=re(St.None),r=re(!1),a=re(!1),o=re(!1),l=re(!0),s=re(!1),c=re([]),u=re(!1),f=Lt(),{i18n:h,...p}=om(e,!1),{t:d}=h.global,g=Tt(new pi),b=re(!1),v=re(!0),C=Tt(p.eventBus),y=Tt(p.loadingService),m=Tt(p.myChatService),w=m.channel,I=Tt(new DC),T=Tt(new FC(e.enableGa==="true"));qt(Mi,I),qt(Ua,T),qt(Ec,w),qt(Bn,m),qt(Gt,C),qt(Dr,y);const G=()=>{let F;switch(e.authentication?.toLowerCase()){case"name":F=St.Name;break;case"both":F=St.Both;break;case"email":F=St.Email;break;default:F=St.None;break}return F},$=(()=>{const F=ta&&e.allowCall==="true",D=e.allowVideo==="true",Q=e.phonesystemUrl,ie=e.minimizedStyle.toLowerCase()==="bubbleleft"?Si.BubbleLeft:Si.BubbleRight;let ce;switch(e.animationStyle.toLowerCase()){case"slidefromside":ce=hn.SlideLeft;break;case"fadein":ce=hn.FadeIn;break;case"slideup":ce=hn.SlideUp;break;default:ce=hn.None}let de;switch(e.greetingVisibility.toLowerCase()){case"desktop":de=pn.Desktop;break;case"mobile":de=pn.Mobile;break;case"both":de=pn.Both;break;default:de=pn.None}let ye;switch(e.greetingOfflineVisibility.toLowerCase()){case"desktop":ye=pn.Desktop;break;case"mobile":ye=pn.Mobile;break;case"both":ye=pn.Both;break;default:ye=pn.None}const Te=Pi(e.operatorName??"");return{enablePoweredby:e.enablePoweredby==="true",animationStyle:ce,minimizedStyle:ie,windowTitle:Pi(e.windowTitle??d("Inputs.WindowTitle")),allowSoundNotifications:e.allowSoundnotifications==="true",enableMute:e.enableMute==="true",facebookIntegrationUrl:HC(e.facebookIntegrationUrl,""),twitterIntegrationUrl:WC(e.twitterIntegrationUrl,""),emailIntegrationUrl:VC(e.emailIntegrationUrl,""),operatorName:Te===""?d("Inputs.OperatorName").toString():Te,operatorIcon:e.operatorIcon||"",userIcon:e.userIcon||"",allowCall:F,allowVideo:D,allowMinimize:e.allowMinimize==="true",inviteMessage:Pi(e.inviteMessage??d("Inputs.InviteMessage"),250),endingMessage:Pi(e.endingMessage??d("Inputs.EndingMessage"),250),unavailableMessage:Pi(e.unavailableMessage??d("Inputs.UnavailableMessage"),250),firstResponseMessage:Pi(e.firstResponseMessage,250),party:e.party,channelUrl:Q,windowIcon:e.windowIcon||"",buttonIcon:zC(e.buttonIcon,""),buttonIconType:e.buttonIconType?.toLowerCase()||"default",enableOnmobile:e.enableOnmobile==="false",enable:e.enable==="true",ignoreQueueownership:e.ignoreQueueownership==="true",showOperatorActualName:e.showOperatorActualName==="true",authenticationType:G(),acknowledgeReceived:e.aknowledgeReceived==="true",gdprEnabled:e.gdprEnabled==="true",filesEnabled:e.filesEnabled==="true",gdprMessage:e.gdprMessage&&e.gdprMessage.trim()!==""?e.gdprMessage.trim():d("Auth.GdprDefaultMessage").toString(),chatIcon:e.chatIcon,chatLogo:e.chatLogo,demo:e.demo==="true",messageDateformat:e.messageDateformat?.toLowerCase(),messageUserinfoFormat:e.messageUserinfoFormat?.toLowerCase(),soundnotificationUrl:e.soundnotificationUrl,visitorEmail:e.visitorEmail,visitorName:e.visitorName,authenticationMessage:Pi(e.authenticationMessage,250),startChatButtonText:e.startChatButtonText??d("Auth.Submit"),offlineNameMessage:e.offlineNameMessage??d("Offline.OfflineNameMessage"),offlineEmailMessage:e.offlineEmailMessage??d("Offline.OfflineEmailMessage"),offlineFinishMessage:e.offlineFinishMessage??d("Inputs.OfflineMessageSent"),greetingVisibility:de,greetingMessage:e.greetingMessage??d("Inputs.GreetingMessage"),greetingOfflineVisibility:ye,greetingOfflineMessage:e.greetingOfflineMessage??d("Inputs.GreetingMessage"),offlineFormInvalidEmail:e.offlineFormInvalidEmail??d("Offline.OfflineFormInvalidEmail"),offlineFormMaximumCharactersReached:e.offlineFormMaximumCharactersReached??d("Auth.MaxCharactersReached"),offlineFormInvalidName:e.offlineFormInvalidName??d("Offline.OfflineFormInvalidName"),enableDirectCall:e.enableDirectCall==="true"}})(),B=new gm(p.myChatService,$.demo);qt(tn,B),B.webRTCControlService.setWebRtcCodecs(c.value);const Y=ne(()=>{let F="NONE";return t.value===_e.Chat||!v.value&&t.value===_e.Authenticate?F="CHAT":t.value===_e.Authenticate&&(v.value||e.allowCall==="false")&&(F="AUTH"),t.value===_e.Intro&&e.allowCall==="true"?F="INTRO":t.value===_e.Disabled&&(F="DISABLED"),F}),V=F=>{let D=!0;return e.forceToOpen==="true"?D=!1:r.value||(e.popupWhenOnline==="true"?F&&(D=!1):D=Di(!0)),D},P=()=>{f.add(p.info$.subscribe({next:F=>{if(t.value=_e.Authenticate,l.value=!0,p.loadingService.hide(),m.isAvaliable=F.isAvailable,s.value=F.isQueue,c.value=F.webRtcCodecs,o.value=F.isChatEnabled===void 0?!0:F.isChatEnabled,r.value=V(F.isAvailable),a.value=r.value,$.showOperatorActualName&&!F.isQueue?Object.assign(g,new pi({name:F.operator.name||$.operatorName,image:F.operator.image||$.operatorIcon})):Object.assign(g,new pi({name:$.operatorName,image:$.operatorIcon})),!F.isChatEnabled&&!$.enableDirectCall)t.value=_e.Authenticate,l.value=!1;else if(!F.isChatEnabled&&$.enableDirectCall)t.value=_e.Intro,l.value=!1;else if(p.currentChannel.isChatActive()){t.value=_e.Chat,l.value=!0;const D=sessionStorage.getItem("callus.collapsed");a.value=!!D&&D==="1"}else $.enableDirectCall?(t.value=_e.Intro,l.value=!0):(t.value=_e.Authenticate,l.value=!0);I.enableFullScreen&&t.value!==_e.Intro&&!r.value&&I.goFullScreen(),p.eventBus.onLoaded.next(p.currentChannel.isChatActive())},error:F=>{t.value=_e.Disabled}}))},O=()=>{setTimeout(()=>{b.value=!0},e.chatDelay)},A=(F=!1)=>{lO(p.myChatService.auth,i.value,$.gdprEnabled)&&v.value&&!F?t.value=_e.Authenticate:t.value=_e.Chat,I.enableFullScreen&&I.goFullScreen(),r.value=!1,a.value=!1},M=()=>{p.eventBus.onChatInitiated.next(!0),t.value=_e.Chat,a.value=!1};return _t(()=>{if(NC(m,f),pm(B,f),f.add(p.preloadOperations$.subscribe({next:D=>{if(D){const Q=localStorage.getItem("chatInfoGuid");Q&&e.assetsGuid!==Q&&localStorage.removeItem("chatInfo"),localStorage.setItem("chatInfoGuid",e.assetsGuid)}}})),O(),p.loadingService.show(),I.enableFullScreen=Di(!0),u.value=e.enableOnmobile==="false"&&e.forceToOpen==="false"||e.enable==="false",u.value)return;i.value=G();const F=e.minimized==="false"?"none":e.minimized==="true"?"both":e.minimized;e.forceToOpen==="true"?r.value=!1:r.value=F==="both"||F==="mobile",f.add(p.eventBus.onRestart.subscribe({next:()=>{r.value=!1,p.loadingService.show(),P()}})),f.add(p.eventBus.onRestored.subscribe({next:()=>{t.value===_e.Authenticate&&$.enableDirectCall&&(t.value=_e.Intro)}})),P()}),Wo(()=>{m.closeSession(),f.unsubscribe(),B.removeFullScreenListeners(),u.value=!0}),zl(()=>{u.value=!1}),{root:n,chatForm:Y,delayElapsed:b,currentChannel:w,isHidden:u,authWindowMinimized:r,config:$,operator:g,isChatEnabled:o,chatOnline:l,mainWindowMinimized:a,enableAuthForm:v,viewState:t,isQueue:s,webRtcCodecs:c,onStartChat:A,authenticateFormSubmit:M,loadChannelInfo:P,authenticationType:i,eventBus:C}}},uO="*{box-sizing:border-box}* button{border:1px var(--call-us-plate-bg-with-gradient,linear-gradient(180deg, var(--call-us-plate-background-color,#494949) 0%, #282828 100%)) solid;width:100%;padding:var(--call-us-element-side-offset-small,5px) 10px;font-family:inherit;font-size:var(--call-us-font-size,14px);cursor:pointer;outline:none;justify-content:center;align-items:center;display:flex}* button:disabled{opacity:.6;cursor:not-allowed}",fO={key:0,id:"callus-container",ref:"root"};function dO(e,n,t,i,r,a){const o=he("IntroForm"),l=he("AuthenticateForm"),s=he("MainForm"),c=he("MinimizedBubble");return i.delayElapsed&&!i.isHidden?(L(),H("div",fO,[i.chatForm==="INTRO"?(L(),Me(o,{key:0,startMinimized:i.authWindowMinimized,config:i.config,webRtcCodecs:i.webRtcCodecs,operator:i.operator,onChat:i.onStartChat},null,8,["startMinimized","config","webRtcCodecs","operator","onChat"])):i.chatForm==="AUTH"?(L(),Me(l,{key:1,startMinimized:i.authWindowMinimized,config:i.config,chatEnabled:i.isChatEnabled,operator:i.operator,onSubmitAuth:i.authenticateFormSubmit},null,8,["startMinimized","config","chatEnabled","operator","onSubmitAuth"])):i.chatForm==="CHAT"?(L(),Me(s,{key:2,chatEnabled:i.isChatEnabled,chatOnline:i.chatOnline,isQueue:i.isQueue,startMinimized:i.mainWindowMinimized,operator:i.operator,config:i.config,enableAuthForm:i.enableAuthForm},null,8,["chatEnabled","chatOnline","isQueue","startMinimized","operator","config","enableAuthForm"])):i.chatForm==="DISABLED"?(L(),Me(c,{key:3,collapsed:!0,config:i.config,operator:i.operator,paneltate:i.viewState,disabled:!0},null,8,["config","operator","paneltate"])):ue("",!0)],512)):ue("",!0)}var hO=Qe(cO,[["render",dO],["styles",[uO]]]),pO=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.getAttribute("phonesystem-url");this.getAttribute("auto");const n=this.getAttribute("party");n&&e&&this.init(n,e)}async init(e,n){const t=new URL(`/MyPhone/config/${e}`,n);return fetch(t.href).then(i=>{if(!i.ok)throw new Error("Information request failed");return i.json()}).then(i=>{const r=i.Advanced?.CommunicationOptions==="PhoneOnly",a=r?mm(i,t.href):ku(i,t.href),o=document.createElement(r?"call-us-phone":"call-us");if(i.Styling?.UseRubik){const l=document.createElement("style");l.setAttribute("type","text/css"),l.appendChild(document.createTextNode("@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap');")),document.head.appendChild(l)}o.setAttribute("lang",i.ChatBox?.LiveChatLanguage??"browser"),Array.from(this.attributes).filter(l=>l&&l.name&&l.value).forEach(l=>{o.setAttribute(l.name,l.value)}),a.filter(l=>l).forEach(l=>{const s=this.getAttribute(l.name);o.setAttribute(l.name,s||l.value)}),this.shadowRoot?.appendChild(o),this.addEventListener("keydown",l=>{l.stopPropagation()})}).catch(i=>{const r=document.createElement("call-us");r.setAttribute("lang","browser"),ku({},t.href).filter(a=>a).forEach(a=>{const o=this.getAttribute(a.name);r.setAttribute(a.name,o||a.value)}),this.shadowRoot?.appendChild(r)})}},gO=Ye({directives:{object:to},components:{GlyphiconCall:no,ToolbarButton:Nm},props:{disabled:Boolean,allowCall:Boolean,callTitle:{type:String,default:""}},setup(){return{isWebRtcAllowed:ta,...js(ve(tn))}}}),mO="*{box-sizing:border-box}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft}@keyframes slideLeft{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight}@keyframes slideRight{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp}@keyframes slideUp{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge{animation:1s ease-in nudge}@keyframes nudge{0%{opacity:0}to{opacity:1}}@keyframes fly-in{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in{transition:all .5s;animation-name:fly-in;animation-duration:.3s}@keyframes show-with-delay{0%{opacity:0}to{opacity:1}}.show-with-delay{animation-name:show-with-delay;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.root-cb .single-button{background-color:var(--call-us-form-header-background,#373737);margin:0;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.root-cb .single-button svg{fill:#fff}.root-cb .single-button svg rect{fill:var(--call-us-form-header-background,#373737)}.root-cb .bubble{border-radius:var(--call-us-round-button,50%);width:var(--call-us-main-button-width,60px);height:var(--call-us-main-button-width,60px)}.root-cb .bubble svg{padding:var(--call-us-element-side-offset-medium,10px)}.root-cb .button-end-call svg{transform:var(--call-us-default-rotation-drop-call,rotate(135deg))}",vO={key:0,class:j([["root-cb"]])},bO=["src"],yO={key:1,autoplay:""};function AO(e,n,t,i,r,a){const o=he("GlyphiconCall"),l=he("ToolbarButton"),s=Tr("object");return e.myWebRTCService?(L(),H("div",vO,[e.myWebRTCService.audioNotificationUrl.value?(L(),H("audio",{key:0,src:e.myWebRTCService.audioNotificationUrl.value,autoplay:"",loop:""},null,8,bO)):ue("",!0),e.myWebRTCService.remoteStream.value?Ln((L(),H("audio",yO,null,512)),[[s,e.myWebRTCService.remoteStream.value]]):ue("",!0),e.myWebRTCService.hasCall.value?(L(),Me(l,{key:3,ref:"singleButton",class:j([["single-button"],"bubble",["button-end-call"]]),onClick:e.dropCall},{default:jt(()=>[pe(o)]),_:1},8,["onClick"])):(L(),Me(l,{key:2,disabled:!e.isWebRtcAllowed||e.disabled,class:j([["single-button"],"bubble"]),title:e.callTitle,onClick:e.makeCall},{default:jt(()=>[pe(o)]),_:1},8,["disabled","title","onClick"]))])):ue("",!0)}var wO=Qe(gO,[["render",AO],["styles",[mO]]]),_O=Ye({components:{CallButton:wO},props:am,setup(e){const n=re(_e.None),t=re(!1),i=re(!1),r=e.demo==="true",a=om(e,!0),o=Tt(a.eventBus),l=new gm(a.myChatService,r),{t:s}=rn.global,c=Lt();qt(tn,l),qt(Gt,o);const u=ne(()=>{switch(e.animationStyle.toLowerCase()){case"slideleft":return["slideLeft"];case"slideright":return["slideRight"];case"fadein":return["fadeIn"];case"slideup":return["slideUp"]}return[]}),f=ne(()=>Di()&&e.enableOnmobile==="false"||e.enable==="false"),h=ne(()=>n.value===_e.Disabled),p=g=>!g.isAvailable,d=ne(()=>n.value!==_e.Disabled?Pt("CallTitle",[Pi(e.callTitle??s("Inputs.CallTitle"),250),s("Inputs.CallTitle").toString()]):"");return _t(()=>{pm(l,c),setTimeout(()=>{t.value=!0},e.chatDelay),!f.value&&(c.add(o.onError.subscribe({next:g=>alert(wu(g))})),c.add(a.info$.subscribe({next:g=>{p(g)&&(n.value=_e.Disabled),l.webRTCControlService.setWebRtcCodecs(g.webRtcCodecs)},error:g=>{console.log(g),n.value=_e.Disabled}})))}),Wo(()=>{c.unsubscribe(),i.value=!0}),{delayElapsed:t,eventBus:o,animationsCallUs:u,isHidden:f,callTitleHover:d,viewState:n,isDisabled:h,invisible:i}}}),CO="*{box-sizing:border-box}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn;animation-duration:1s;animation-delay:.5s;animation-fill-mode:both}.slideLeft{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideLeft}@keyframes slideLeft{0%{transform:translate(130%)}to{transform:translate(0)}}.slideRight{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideRight}@keyframes slideRight{0%{transform:translate(-130%)}to{transform:translate(0)}}.slideUp{animation:1s cubic-bezier(.25,.46,.45,.94) .5s both slideUp}@keyframes slideUp{0%{transform:translateY(130%)}to{transform:translateY(0)}}.nudge{animation:1s ease-in nudge}@keyframes nudge{0%{opacity:0}to{opacity:1}}@keyframes fly-in{0%{opacity:0;transform:scale(.85)translateY(10%)}to{opacity:1;transform:scale(1)translateY(0)}}.fly-in{transition:all .5s;animation-name:fly-in;animation-duration:.3s}@keyframes show-with-delay{0%{opacity:0}to{opacity:1}}.show-with-delay{animation-name:show-with-delay;animation-duration:0s;animation-delay:3s;animation-fill-mode:both}.spin{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.root-phone{display:inline-block}.root-phone .call-us-toolbar{flex-direction:row;justify-content:center;display:flex}.root-phone .call-us-toolbar button{width:var(--call-us-main-button-width,60px);height:var(--call-us-main-button-width,60px);background-color:var(--call-us-form-header-background,#373737);border-radius:var(--call-us-round-button,50%)}.root-phone button{box-shadow:0 4px 8px #0003,0 6px 20px #00000030}",EO={key:0,id:"callus-phone-container"};function SO(e,n,t,i,r,a){const o=he("CallButton");return e.delayElapsed&&!e.invisible?(L(),H("div",EO,[X("div",{class:j([e.animationsCallUs,e.isHidden?"":["root-phone"]])},[e.isHidden?ue("",!0):(L(),Me(o,{key:0,allowCall:!0,callTitle:e.callTitleHover,disabled:e.isDisabled},null,8,["callTitle","disabled"]))],2)])):ue("",!0)}var MO=Qe(_O,[["render",SO],["styles",[CO]]]);function uv(e){e.use(rn)}window.customElements.define("call-us-selector",pO);var IO=ss(hO,{configureApp:uv});window.customElements.define("call-us",IO);var TO=ss(MO,{configureApp:uv});window.customElements.define("call-us-phone",TO),ji.generateCallUsProperties=mm,ji.generateLiveChatProperties=ku});