vue-wiguet-chatweb 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +3 -3
- package/dist/vue-wiguet-chatweb.umd.cjs +2 -2
- package/package.json +6 -2
- package/src/components/Chat.vue +288 -144
- package/src/components/DangerIcon.vue +12 -0
- package/src/components/IconClose.vue +5 -5
- package/src/components/IconSend.vue +8 -6
- package/src/components/IconUser.vue +5 -5
- package/src/components/IconWidget.vue +45 -45
- package/src/components/Loader.vue +31 -0
- package/src/components/MessageList.vue +210 -0
- package/src/components/Widget.vue +71 -35
- package/src/components/ChatMessage.vue +0 -104
package/README.md
CHANGED
package/dist/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.bubble[data-v-
|
1
|
+
.bubble[data-v-78b91e28]{--r: 25px;--t: 30px;max-width:50%;min-width:250px;padding:calc(2*var(--r)/3);-webkit-mask:radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) var(--_d) 100%/calc(100% - var(--r)) var(--t) no-repeat,conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) calc(var(--r)/-2) calc(var(--r)/-2) padding-box,radial-gradient(50% 50%,#000 98%,#0000 101%) 0 0/var(--r) var(--r) space padding-box;color:#fff}.left[data-v-78b91e28]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:var(--t);background-color:#fcd7ae;color:#4d4d4d;place-self:start}.bubble>.content-left[data-v-78b91e28]{margin-right:10px;margin-bottom:1px}.right[data-v-78b91e28]{--_d: 100%;border-right:var(--t) solid #0000;margin-left:var(--t);background-color:#fdeedb;color:#4d4d4d;place-self:end}.bubble>.content-right[data-v-78b91e28]{margin-bottom:1px;margin-right:10px}.message[data-v-78b91e28]{text-align:initial;word-break:break-all;margin-bottom:10px}.detail-message[data-v-78b91e28]{font-size:10px;color:gray;display:flex;justify-content:space-between}.chat-message[data-v-78b91e28]{max-width:250px;min-width:90%;display:flex;flex-direction:column;justify-content:center}.header-widget[data-v-bacccd51]{height:10%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #CCCCCC;margin-bottom:10px}.jl2-input-chat[data-v-bacccd51]{padding-left:10px;height:40px;width:95%}.jl2-input-chat[data-v-bacccd51]:focus-visible{outline:none}.jl-inputgroup-chat[data-v-bacccd51]{width:100%;border:1px solid;border-color:#f28b0c;background:var(--surface-a);color:var(--surface-500);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:13px;display:flex;justify-content:space-around;align-items:center}.jl-inputgroup-chat>input[data-v-bacccd51]{border:none;background:none}.jl-inputgroup-chat>input[data-v-bacccd51]:hover{outline:none}.form-message[data-v-bacccd51]{display:flex;justify-content:space-between}.form-message button[data-v-bacccd51],.jl-inputgroup-chat>button[data-v-bacccd51]{border:none!important;background:none}.form-message button[data-v-bacccd51],.jl-inputgroup-chat>button[data-v-bacccd51]:focus{box-shadow:none}.form-message button[data-v-bacccd51],.jl-inputgroup-chat>button[data-v-bacccd51]:active{box-shadow:none}.widget[data-v-bacccd51]{margin:auto;height:100%;display:flex;width:100%;flex-direction:column;justify-content:space-evenly}.messages-container[data-v-bacccd51]{height:80%;overflow-y:scroll;border-left:1px solid var(--fge-gray-lines-color);border-right:1px solid var(--fge-gray-lines-color);scrollbar-color:red transparent;scrollbar-width:thin;scrollbar-color:#F28B0C transparent;scrollbar-track-color:transparent;scrollbar-face-color:#F28B0C;scrollbar-thumb-color:#F28B0C}.messages-container[data-v-bacccd51]::-webkit-scrollbar{width:8px}.messages-container[data-v-bacccd51]::-webkit-scrollbar-track{background-color:transparent}.messages-container[data-v-bacccd51]::-webkit-scrollbar-thumb{background-color:#f28b0c;border-radius:8px}.input-message[data-v-bacccd51]{border-left:1px solid var(--fge-gray-lines-color);border-right:1px solid var(--fge-gray-lines-color)}.message-send[data-v-bacccd51]{border-top:1px solid var(--fge-gray-lines-color);padding-top:20px;width:90%;margin:auto}.bubble[data-v-bacccd51]{--r: 25px;--t: 30px;max-width:50%;min-width:250px;padding:calc(2*var(--r)/3);-webkit-mask:radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) var(--_d) 100%/calc(100% - var(--r)) var(--t) no-repeat,conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) calc(var(--r)/-2) calc(var(--r)/-2) padding-box,radial-gradient(50% 50%,#000 98%,#0000 101%) 0 0/var(--r) var(--r) space padding-box;color:#fff}.left[data-v-bacccd51]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:var(--t);background-color:#fcd7ae;color:#4d4d4d;place-self:start}.bubble>.content-left[data-v-bacccd51]{margin-right:10px;margin-bottom:1px}.right[data-v-bacccd51]{--_d: 100%;border-right:var(--t) solid #0000;margin-left:var(--t);background-color:#fdeedb;color:#4d4d4d;place-self:end}.bubble>.content-right[data-v-bacccd51]{margin-bottom:1px;margin-right:10px}.message[data-v-bacccd51]{text-align:initial;word-break:break-all;margin-bottom:10px}.detail-message[data-v-bacccd51]{font-size:10px;color:gray}.chat-message[data-v-bacccd51]{max-width:250px;min-width:90%;display:flex;flex-direction:column;justify-content:center}#chat-circle[data-v-bacccd51]{margin:auto;position:fixed;bottom:50px;right:50px;color:#fff;cursor:pointer}.title-chat[data-v-bacccd51]{font-size:1.1vw;font-weight:700;color:#4d4d4d}.chat-box[data-v-bacccd51]{display:flex;justify-content:center;align-items:center;border:2px solid #d9d9d9;border-radius:25px;padding:5px 15px 30px;background:#ffffff;position:fixed;right:30px;bottom:50px;width:450px;height:70vh;max-width:85vw;max-height:80vh;box-shadow:0 5px 35px 9px #ccc}.pointer[data-v-bacccd51]{cursor:pointer}.header-widget[data-v-d206ec1e]{height:10%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #CCCCCC;margin-bottom:10px}.jl2-input-chat[data-v-d206ec1e]{padding-left:10px;height:40px;width:95%}.jl2-input-chat[data-v-d206ec1e]:focus-visible{outline:none}.jl-inputgroup-chat[data-v-d206ec1e]{width:100%;border:1px solid;border-color:#f28b0c;background:var(--surface-a);color:var(--surface-500);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:13px;display:flex;justify-content:space-around;align-items:center}.jl-inputgroup-chat>input[data-v-d206ec1e]{border:none;background:none}.jl-inputgroup-chat>input[data-v-d206ec1e]:hover{outline:none}.form-message[data-v-d206ec1e]{display:flex;justify-content:space-between}.form-message button[data-v-d206ec1e],.jl-inputgroup-chat>button[data-v-d206ec1e]{border:none!important;background:none}.form-message button[data-v-d206ec1e],.jl-inputgroup-chat>button[data-v-d206ec1e]:focus{box-shadow:none}.form-message button[data-v-d206ec1e],.jl-inputgroup-chat>button[data-v-d206ec1e]:active{box-shadow:none}.widget[data-v-d206ec1e]{margin:auto;height:100%;display:flex;width:100%;flex-direction:column;justify-content:space-evenly}.messages-container[data-v-d206ec1e]{height:80%;overflow-y:scroll;border-left:1px solid var(--fge-gray-lines-color);border-right:1px solid var(--fge-gray-lines-color);scrollbar-color:red transparent;scrollbar-width:thin;scrollbar-color:#F28B0C transparent;scrollbar-track-color:transparent;scrollbar-face-color:#F28B0C;scrollbar-thumb-color:#F28B0C}.messages-container[data-v-d206ec1e]::-webkit-scrollbar{width:8px}.messages-container[data-v-d206ec1e]::-webkit-scrollbar-track{background-color:transparent}.messages-container[data-v-d206ec1e]::-webkit-scrollbar-thumb{background-color:#f28b0c;border-radius:8px}.input-message[data-v-d206ec1e]{border-left:1px solid var(--fge-gray-lines-color);border-right:1px solid var(--fge-gray-lines-color)}.message-send[data-v-d206ec1e]{border-top:1px solid var(--fge-gray-lines-color);padding-top:20px;width:90%;margin:auto}.bubble[data-v-d206ec1e]{--r: 25px;--t: 30px;max-width:50%;min-width:250px;padding:calc(2*var(--r)/3);-webkit-mask:radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) var(--_d) 100%/calc(100% - var(--r)) var(--t) no-repeat,conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) calc(var(--r)/-2) calc(var(--r)/-2) padding-box,radial-gradient(50% 50%,#000 98%,#0000 101%) 0 0/var(--r) var(--r) space padding-box;color:#fff}.left[data-v-d206ec1e]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:var(--t);background-color:#fcd7ae;color:#4d4d4d;place-self:start}.bubble>.content-left[data-v-d206ec1e]{margin-right:10px;margin-bottom:1px}.right[data-v-d206ec1e]{--_d: 100%;border-right:var(--t) solid #0000;margin-left:var(--t);background-color:#fdeedb;color:#4d4d4d;place-self:end}.bubble>.content-right[data-v-d206ec1e]{margin-bottom:1px;margin-right:10px}.message[data-v-d206ec1e]{text-align:initial;word-break:break-all;margin-bottom:10px}.detail-message[data-v-d206ec1e]{font-size:10px;color:gray}.chat-message[data-v-d206ec1e]{max-width:250px;min-width:90%;display:flex;flex-direction:column;justify-content:center}#chat-circle[data-v-d206ec1e]{margin:auto;position:fixed;bottom:50px;right:50px;color:#fff;cursor:pointer}.title-chat[data-v-d206ec1e]{font-size:1.1vw;font-weight:700;color:#4d4d4d}.chat-box[data-v-d206ec1e]{display:flex;justify-content:center;align-items:center;border:2px solid #d9d9d9;border-radius:25px;padding:5px 15px 30px;background:#ffffff;position:fixed;right:30px;bottom:50px;width:450px;height:70vh;max-width:85vw;max-height:80vh;box-shadow:0 5px 35px 9px #ccc}.pointer[data-v-d206ec1e]{cursor:pointer}
|
@@ -2560,7 +2560,7 @@ const Te = (e, t) => {
|
|
2560
2560
|
for (const [n, r] of t)
|
2561
2561
|
s[n] = r;
|
2562
2562
|
return s;
|
2563
|
-
}, Tl = /* @__PURE__ */ Te(Cl, [["__scopeId", "data-v-
|
2563
|
+
}, Tl = /* @__PURE__ */ Te(Cl, [["__scopeId", "data-v-78b91e28"]]);
|
2564
2564
|
var Ml = Object.defineProperty, El = (e, t, s) => t in e ? Ml(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Rl = (e, t, s) => (El(e, typeof t != "symbol" ? t + "" : t, s), s);
|
2565
2565
|
const Be = {
|
2566
2566
|
// LINEFEED byte (octet 10)
|
@@ -4935,7 +4935,7 @@ P.formToJSON = (e) => sr(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
4935
4935
|
P.HttpStatusCode = wu;
|
4936
4936
|
P.default = P;
|
4937
4937
|
const Su = P, xs = async function(e) {
|
4938
|
-
const t = e, s = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL :
|
4938
|
+
const t = e, s = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : {}.VITE_BACKEND_URL, n = {
|
4939
4939
|
method: t.method,
|
4940
4940
|
url: `${s}${t.url}`,
|
4941
4941
|
headers: {
|
@@ -5144,7 +5144,7 @@ const Wu = /* @__PURE__ */ Te(Yu, [["render", Iu]]), Hu = {
|
|
5144
5144
|
]));
|
5145
5145
|
}
|
5146
5146
|
});
|
5147
|
-
const $u = /* @__PURE__ */ Te(Bu, [["__scopeId", "data-v-
|
5147
|
+
const $u = /* @__PURE__ */ Te(Bu, [["__scopeId", "data-v-d206ec1e"]]), ju = {
|
5148
5148
|
install(e, t) {
|
5149
5149
|
window.VITE_BACKEND_URL = t.VITE_BACKEND_URL, window.VITE_BROKER_URL = t.VITE_BROKER_URL, window.VITE_USERNAME = t.VITE_USERNAME, window.VITE_PASSWORD = t.VITE_PASSWORD;
|
5150
5150
|
}
|
@@ -7,8 +7,8 @@ var Es;function m(){return Es.apply(null,arguments)}function er(e){Es=e}function
|
|
7
7
|
[`+i+"] ";for(a in arguments[0])D(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];n.push(r)}Ns(e+`
|
8
8
|
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
9
9
|
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Rs={};function xs(e,t){m.deprecationHandler!=null&&m.deprecationHandler(e,t),Rs[e]||(Ns(t),Rs[e]=!0)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;function ee(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function sr(e){var t,s;for(s in e)D(e,s)&&(t=e[s],ee(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ht(e,t){var s=pe({},e),n;for(n in t)D(t,n)&&(be(e[n])&&be(t[n])?(s[n]={},pe(s[n],e[n]),pe(s[n],t[n])):t[n]!=null?s[n]=t[n]:delete s[n]);for(n in e)D(e,n)&&!D(t,n)&&be(e[n])&&(s[n]=pe({},s[n]));return s}function Bt(e){e!=null&&this.set(e)}var Vt;Object.keys?Vt=Object.keys:Vt=function(e){var t,s=[];for(t in e)D(e,t)&&s.push(t);return s};var nr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function rr(e,t,s){var n=this._calendar[e]||this._calendar.sameElse;return ee(n)?n.call(t,s):n}function te(e,t,s){var n=""+Math.abs(e),r=t-n.length,i=e>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var $t=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,et=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,jt={},Te={};function y(e,t,s,n){var r=n;typeof n=="string"&&(r=function(){return this[n]()}),e&&(Te[e]=r),t&&(Te[t[0]]=function(){return te(r.apply(this,arguments),t[1],t[2])}),s&&(Te[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ir(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ar(e){var t=e.match($t),s,n;for(s=0,n=t.length;s<n;s++)Te[t[s]]?t[s]=Te[t[s]]:t[s]=ir(t[s]);return function(r){var i="",a;for(a=0;a<n;a++)i+=ee(t[a])?t[a].call(r,e):t[a];return i}}function tt(e,t){return e.isValid()?(t=As(t,e.localeData()),jt[t]=jt[t]||ar(t),jt[t](e)):e.localeData().invalidDate()}function As(e,t){var s=5;function n(r){return t.longDateFormat(r)||r}for(et.lastIndex=0;s>=0&&et.test(e);)e=e.replace(et,n),et.lastIndex=0,s-=1;return e}var or={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"};function lr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match($t).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var cr="Invalid date";function ur(){return this._invalidDate}var dr="%d",hr=/\d{1,2}/;function fr(e){return this._ordinal.replace("%d",e)}var mr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function _r(e,t,s,n){var r=this._relativeTime[s];return ee(r)?r(e,t,s,n):r.replace(/%d/i,e)}function pr(e,t){var s=this._relativeTime[e>0?"future":"past"];return ee(s)?s(t):s.replace(/%s/i,t)}var Ie={};function L(e,t){var s=e.toLowerCase();Ie[s]=Ie[s+"s"]=Ie[t]=e}function j(e){return typeof e=="string"?Ie[e]||Ie[e.toLowerCase()]:void 0}function Gt(e){var t={},s,n;for(n in e)D(e,n)&&(s=j(n),s&&(t[s]=e[n]));return t}var Ps={};function U(e,t){Ps[e]=t}function yr(e){var t=[],s;for(s in e)D(e,s)&&t.push({unit:s,priority:Ps[s]});return t.sort(function(n,r){return n.priority-r.priority}),t}function st(e){return e%4===0&&e%100!==0||e%400===0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=G(t)),s}function Ee(e,t){return function(s){return s!=null?(Ys(this,e,s),m.updateOffset(this,t),this):nt(this,e)}}function nt(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ys(e,t,s){e.isValid()&&!isNaN(s)&&(t==="FullYear"&&st(e.year())&&e.month()===1&&e.date()===29?(s=b(s),e._d["set"+(e._isUTC?"UTC":"")+t](s,e.month(),ut(s,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](s))}function gr(e){return e=j(e),ee(this[e])?this[e]():this}function wr(e,t){if(typeof e=="object"){e=Gt(e);var s=yr(e),n,r=s.length;for(n=0;n<r;n++)this[s[n].unit](e[s[n].unit])}else if(e=j(e),ee(this[e]))return this[e](t);return this}var Fs=/\d/,B=/\d\d/,Ls=/\d{3}/,zt=/\d{4}/,rt=/[+-]?\d{6}/,v=/\d\d?/,Us=/\d\d\d\d?/,Is=/\d\d\d\d\d\d?/,it=/\d{1,3}/,qt=/\d{1,4}/,at=/[+-]?\d{1,6}/,Me=/\d+/,ot=/[+-]?\d+/,Sr=/Z|[+-]\d\d:?\d\d/gi,lt=/Z|[+-]\d\d(?::?\d\d)?/gi,br=/[+-]?\d+(\.\d{1,3})?/,We=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ct;ct={};function _(e,t,s){ct[e]=ee(t)?t:function(n,r){return n&&s?s:t}}function kr(e,t){return D(ct,e)?ct[e](t._strict,t._locale):new RegExp(Or(e))}function Or(e){return V(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,n,r,i){return s||n||r||i}))}function V(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Zt={};function E(e,t){var s,n=t,r;for(typeof e=="string"&&(e=[e]),ie(t)&&(n=function(i,a){a[t]=b(i)}),r=e.length,s=0;s<r;s++)Zt[e[s]]=n}function He(e,t){E(e,function(s,n,r,i){r._w=r._w||{},t(s,r._w,r,i)})}function Dr(e,t,s){t!=null&&D(Zt,e)&&Zt[e](t,s._a,s,e)}var I=0,ae=1,se=2,A=3,K=4,oe=5,ke=6,Cr=7,Tr=8;function Er(e,t){return(e%t+t)%t}var x;Array.prototype.indexOf?x=Array.prototype.indexOf:x=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ut(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Er(t,12);return e+=(t-s)/12,s===1?st(e)?29:28:31-s%7%2}y("M",["MM",2],"Mo",function(){return this.month()+1}),y("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),y("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),U("month",8),_("M",v),_("MM",v,B),_("MMM",function(e,t){return t.monthsShortRegex(e)}),_("MMMM",function(e,t){return t.monthsRegex(e)}),E(["M","MM"],function(e,t){t[ae]=b(e)-1}),E(["MMM","MMMM"],function(e,t,s,n){var r=s._locale.monthsParse(e,n,s._strict);r!=null?t[ae]=r:S(s).invalidMonth=e});var Mr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ws="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Hs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vr=We,Nr=We;function Rr(e,t){return e?Z(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Hs).test(t)?"format":"standalone"][e.month()]:Z(this._months)?this._months:this._months.standalone}function xr(e,t){return e?Z(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Hs.test(t)?"format":"standalone"][e.month()]:Z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ar(e,t,s){var n,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=X([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return s?t==="MMM"?(r=x.call(this._shortMonthsParse,a),r!==-1?r:null):(r=x.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=x.call(this._shortMonthsParse,a),r!==-1?r:(r=x.call(this._longMonthsParse,a),r!==-1?r:null)):(r=x.call(this._longMonthsParse,a),r!==-1?r:(r=x.call(this._shortMonthsParse,a),r!==-1?r:null))}function Pr(e,t,s){var n,r,i;if(this._monthsParseExact)return Ar.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=X([2e3,n]),s&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!s&&!this._monthsParse[n]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(s&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!s&&this._monthsParse[n].test(e))return n}}function Bs(e,t){var s;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!ie(t))return e}return s=Math.min(e.date(),ut(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,s),e}function Vs(e){return e!=null?(Bs(this,e),m.updateOffset(this,!0),this):nt(this,"Month")}function Yr(){return ut(this.year(),this.month())}function Fr(e){return this._monthsParseExact?(D(this,"_monthsRegex")||$s.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(D(this,"_monthsShortRegex")||(this._monthsShortRegex=vr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Lr(e){return this._monthsParseExact?(D(this,"_monthsRegex")||$s.call(this),e?this._monthsStrictRegex:this._monthsRegex):(D(this,"_monthsRegex")||(this._monthsRegex=Nr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $s(){function e(a,o){return o.length-a.length}var t=[],s=[],n=[],r,i;for(r=0;r<12;r++)i=X([2e3,r]),t.push(this.monthsShort(i,"")),s.push(this.months(i,"")),n.push(this.months(i,"")),n.push(this.monthsShort(i,""));for(t.sort(e),s.sort(e),n.sort(e),r=0;r<12;r++)t[r]=V(t[r]),s[r]=V(s[r]);for(r=0;r<24;r++)n[r]=V(n[r]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}y("Y",0,0,function(){var e=this.year();return e<=9999?te(e,4):"+"+e}),y(0,["YY",2],0,function(){return this.year()%100}),y(0,["YYYY",4],0,"year"),y(0,["YYYYY",5],0,"year"),y(0,["YYYYYY",6,!0],0,"year"),L("year","y"),U("year",1),_("Y",ot),_("YY",v,B),_("YYYY",qt,zt),_("YYYYY",at,rt),_("YYYYYY",at,rt),E(["YYYYY","YYYYYY"],I),E("YYYY",function(e,t){t[I]=e.length===2?m.parseTwoDigitYear(e):b(e)}),E("YY",function(e,t){t[I]=m.parseTwoDigitYear(e)}),E("Y",function(e,t){t[I]=parseInt(e,10)});function Be(e){return st(e)?366:365}m.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var js=Ee("FullYear",!0);function Ur(){return st(this.year())}function Ir(e,t,s,n,r,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,s,n,r,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,s,n,r,i,a),o}function Ve(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function dt(e,t,s){var n=7+t-s,r=(7+Ve(e,0,n).getUTCDay()-t)%7;return-r+n-1}function Gs(e,t,s,n,r){var i=(7+s-n)%7,a=dt(e,n,r),o=1+7*(t-1)+i+a,u,l;return o<=0?(u=e-1,l=Be(u)+o):o>Be(e)?(u=e+1,l=o-Be(e)):(u=e,l=o),{year:u,dayOfYear:l}}function $e(e,t,s){var n=dt(e.year(),t,s),r=Math.floor((e.dayOfYear()-n-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+le(a,t,s)):r>le(e.year(),t,s)?(i=r-le(e.year(),t,s),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function le(e,t,s){var n=dt(e,t,s),r=dt(e+1,t,s);return(Be(e)-n+r)/7}y("w",["ww",2],"wo","week"),y("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),U("week",5),U("isoWeek",5),_("w",v),_("ww",v,B),_("W",v),_("WW",v,B),He(["w","ww","W","WW"],function(e,t,s,n){t[n.substr(0,1)]=b(e)});function Wr(e){return $e(e,this._week.dow,this._week.doy).week}var Hr={dow:0,doy:6};function Br(){return this._week.dow}function Vr(){return this._week.doy}function $r(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function jr(e){var t=$e(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}y("d",0,"do","day"),y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),y("e",0,0,"weekday"),y("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),_("d",v),_("e",v),_("E",v),_("dd",function(e,t){return t.weekdaysMinRegex(e)}),_("ddd",function(e,t){return t.weekdaysShortRegex(e)}),_("dddd",function(e,t){return t.weekdaysRegex(e)}),He(["dd","ddd","dddd"],function(e,t,s,n){var r=s._locale.weekdaysParse(e,n,s._strict);r!=null?t.d=r:S(s).invalidWeekday=e}),He(["d","e","E"],function(e,t,s,n){t[n]=b(e)});function Gr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function zr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jr=We,Kr=We,Qr=We;function Xr(e,t){var s=Z(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Jt(s,this._week.dow):e?s[e.day()]:s}function ei(e){return e===!0?Jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ti(e){return e===!0?Jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function si(e,t,s){var n,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=X([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return s?t==="dddd"?(r=x.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=x.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=x.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=x.call(this._weekdaysParse,a),r!==-1||(r=x.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=x.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=x.call(this._shortWeekdaysParse,a),r!==-1||(r=x.call(this._weekdaysParse,a),r!==-1)?r:(r=x.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=x.call(this._minWeekdaysParse,a),r!==-1||(r=x.call(this._weekdaysParse,a),r!==-1)?r:(r=x.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function ni(e,t,s){var n,r,i;if(this._weekdaysParseExact)return si.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=X([2e3,1]).day(n),s&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(s&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(s&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!s&&this._weekdaysParse[n].test(e))return n}}function ri(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Gr(e,this.localeData()),this.add(e-t,"d")):t}function ii(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function ai(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=zr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function oi(e){return this._weekdaysParseExact?(D(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(D(this,"_weekdaysRegex")||(this._weekdaysRegex=Jr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function li(e){return this._weekdaysParseExact?(D(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(D(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ci(e){return this._weekdaysParseExact?(D(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(D(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(f,g){return g.length-f.length}var t=[],s=[],n=[],r=[],i,a,o,u,l;for(i=0;i<7;i++)a=X([2e3,1]).day(i),o=V(this.weekdaysMin(a,"")),u=V(this.weekdaysShort(a,"")),l=V(this.weekdays(a,"")),t.push(o),s.push(u),n.push(l),r.push(o),r.push(u),r.push(l);t.sort(e),s.sort(e),n.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qt(){return this.hours()%12||12}function ui(){return this.hours()||24}y("H",["HH",2],0,"hour"),y("h",["hh",2],0,Qt),y("k",["kk",2],0,ui),y("hmm",0,0,function(){return""+Qt.apply(this)+te(this.minutes(),2)}),y("hmmss",0,0,function(){return""+Qt.apply(this)+te(this.minutes(),2)+te(this.seconds(),2)}),y("Hmm",0,0,function(){return""+this.hours()+te(this.minutes(),2)}),y("Hmmss",0,0,function(){return""+this.hours()+te(this.minutes(),2)+te(this.seconds(),2)});function qs(e,t){y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qs("a",!0),qs("A",!1),L("hour","h"),U("hour",13);function Zs(e,t){return t._meridiemParse}_("a",Zs),_("A",Zs),_("H",v),_("h",v),_("k",v),_("HH",v,B),_("hh",v,B),_("kk",v,B),_("hmm",Us),_("hmmss",Is),_("Hmm",Us),_("Hmmss",Is),E(["H","HH"],A),E(["k","kk"],function(e,t,s){var n=b(e);t[A]=n===24?0:n}),E(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),E(["h","hh"],function(e,t,s){t[A]=b(e),S(s).bigHour=!0}),E("hmm",function(e,t,s){var n=e.length-2;t[A]=b(e.substr(0,n)),t[K]=b(e.substr(n)),S(s).bigHour=!0}),E("hmmss",function(e,t,s){var n=e.length-4,r=e.length-2;t[A]=b(e.substr(0,n)),t[K]=b(e.substr(n,2)),t[oe]=b(e.substr(r)),S(s).bigHour=!0}),E("Hmm",function(e,t,s){var n=e.length-2;t[A]=b(e.substr(0,n)),t[K]=b(e.substr(n))}),E("Hmmss",function(e,t,s){var n=e.length-4,r=e.length-2;t[A]=b(e.substr(0,n)),t[K]=b(e.substr(n,2)),t[oe]=b(e.substr(r))});function di(e){return(e+"").toLowerCase().charAt(0)==="p"}var hi=/[ap]\.?m?\.?/i,fi=Ee("Hours",!0);function mi(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Js={calendar:nr,longDateFormat:or,invalidDate:cr,ordinal:dr,dayOfMonthOrdinalParse:hr,relativeTime:mr,months:Mr,monthsShort:Ws,week:Hr,weekdays:qr,weekdaysMin:Zr,weekdaysShort:zs,meridiemParse:hi},R={},je={},Ge;function _i(e,t){var s,n=Math.min(e.length,t.length);for(s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}function Ks(e){return e&&e.toLowerCase().replace("_","-")}function pi(e){for(var t=0,s,n,r,i;t<e.length;){for(i=Ks(e[t]).split("-"),s=i.length,n=Ks(e[t+1]),n=n?n.split("-"):null;s>0;){if(r=ht(i.slice(0,s).join("-")),r)return r;if(n&&n.length>=s&&_i(i,n)>=s-1)break;s--}t++}return Ge}function yi(e){return e.match("^[^/\\\\]*$")!=null}function ht(e){var t=null,s;if(R[e]===void 0&&typeof module<"u"&&module&&module.exports&&yi(e))try{t=Ge._abbr,s=require,s("./locale/"+e),ye(t)}catch{R[e]=null}return R[e]}function ye(e,t){var s;return e&&(H(t)?s=ce(e):s=Xt(e,t),s?Ge=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ge._abbr}function Xt(e,t){if(t!==null){var s,n=Js;if(t.abbr=e,R[e]!=null)xs("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=R[e]._config;else if(t.parentLocale!=null)if(R[t.parentLocale]!=null)n=R[t.parentLocale]._config;else if(s=ht(t.parentLocale),s!=null)n=s._config;else return je[t.parentLocale]||(je[t.parentLocale]=[]),je[t.parentLocale].push({name:e,config:t}),null;return R[e]=new Bt(Ht(n,t)),je[e]&&je[e].forEach(function(r){Xt(r.name,r.config)}),ye(e),R[e]}else return delete R[e],null}function gi(e,t){if(t!=null){var s,n,r=Js;R[e]!=null&&R[e].parentLocale!=null?R[e].set(Ht(R[e]._config,t)):(n=ht(e),n!=null&&(r=n._config),t=Ht(r,t),n==null&&(t.abbr=e),s=new Bt(t),s.parentLocale=R[e],R[e]=s),ye(e)}else R[e]!=null&&(R[e].parentLocale!=null?(R[e]=R[e].parentLocale,e===ye()&&ye(e)):R[e]!=null&&delete R[e]);return R[e]}function ce(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ge;if(!Z(e)){if(t=ht(e),t)return t;e=[e]}return pi(e)}function wi(){return Vt(R)}function es(e){var t,s=e._a;return s&&S(e).overflow===-2&&(t=s[ae]<0||s[ae]>11?ae:s[se]<1||s[se]>ut(s[I],s[ae])?se:s[A]<0||s[A]>24||s[A]===24&&(s[K]!==0||s[oe]!==0||s[ke]!==0)?A:s[K]<0||s[K]>59?K:s[oe]<0||s[oe]>59?oe:s[ke]<0||s[ke]>999?ke:-1,S(e)._overflowDayOfYear&&(t<I||t>se)&&(t=se),S(e)._overflowWeeks&&t===-1&&(t=Cr),S(e)._overflowWeekday&&t===-1&&(t=Tr),S(e).overflow=t),e}var Si=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ki=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ts=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Oi=/^\/?Date\((-?\d+)/i,Di=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ci={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Qs(e){var t,s,n=e._i,r=Si.exec(n)||bi.exec(n),i,a,o,u,l=ft.length,f=ts.length;if(r){for(S(e).iso=!0,t=0,s=l;t<s;t++)if(ft[t][1].exec(r[1])){a=ft[t][0],i=ft[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,s=f;t<s;t++)if(ts[t][1].exec(r[3])){o=(r[2]||" ")+ts[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(r[4])if(ki.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(u||""),ns(e)}else e._isValid=!1}function Ti(e,t,s,n,r,i){var a=[Ei(e),Ws.indexOf(t),parseInt(s,10),parseInt(n,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function Ei(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Mi(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vi(e,t,s){if(e){var n=zs.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(n!==r)return S(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Ni(e,t,s){if(e)return Ci[e];if(t)return 0;var n=parseInt(s,10),r=n%100,i=(n-r)/100;return i*60+r}function Xs(e){var t=Di.exec(Mi(e._i)),s;if(t){if(s=Ti(t[4],t[3],t[2],t[5],t[6],t[7]),!vi(t[1],s,e))return;e._a=s,e._tzm=Ni(t[8],t[9],t[10]),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),S(e).rfc2822=!0}else e._isValid=!1}function Ri(e){var t=Oi.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Qs(e),e._isValid===!1)delete e._isValid;else return;if(Xs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:m.createFromInputFallback(e)}m.createFromInputFallback=$("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ve(e,t,s){return e??t??s}function xi(e){var t=new Date(m.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ss(e){var t,s,n=[],r,i,a;if(!e._d){for(r=xi(e),e._w&&e._a[se]==null&&e._a[ae]==null&&Ai(e),e._dayOfYear!=null&&(a=ve(e._a[I],r[I]),(e._dayOfYear>Be(a)||e._dayOfYear===0)&&(S(e)._overflowDayOfYear=!0),s=Ve(a,0,e._dayOfYear),e._a[ae]=s.getUTCMonth(),e._a[se]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=r[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[A]===24&&e._a[K]===0&&e._a[oe]===0&&e._a[ke]===0&&(e._nextDay=!0,e._a[A]=0),e._d=(e._useUTC?Ve:Ir).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[A]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(S(e).weekdayMismatch=!0)}}function Ai(e){var t,s,n,r,i,a,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,s=ve(t.GG,e._a[I],$e(N(),1,4).year),n=ve(t.W,1),r=ve(t.E,1),(r<1||r>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=$e(N(),i,a),s=ve(t.gg,e._a[I],l.year),n=ve(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(u=!0)):r=i),n<1||n>le(s,i,a)?S(e)._overflowWeeks=!0:u!=null?S(e)._overflowWeekday=!0:(o=Gs(s,n,r,i,a),e._a[I]=o.year,e._dayOfYear=o.dayOfYear)}m.ISO_8601=function(){},m.RFC_2822=function(){};function ns(e){if(e._f===m.ISO_8601){Qs(e);return}if(e._f===m.RFC_2822){Xs(e);return}e._a=[],S(e).empty=!0;var t=""+e._i,s,n,r,i,a,o=t.length,u=0,l,f;for(r=As(e._f,e._locale).match($t)||[],f=r.length,s=0;s<f;s++)i=r[s],n=(t.match(kr(i,e))||[])[0],n&&(a=t.substr(0,t.indexOf(n)),a.length>0&&S(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),u+=n.length),Te[i]?(n?S(e).empty=!1:S(e).unusedTokens.push(i),Dr(i,n,e)):e._strict&&!n&&S(e).unusedTokens.push(i);S(e).charsLeftOver=o-u,t.length>0&&S(e).unusedInput.push(t),e._a[A]<=12&&S(e).bigHour===!0&&e._a[A]>0&&(S(e).bigHour=void 0),S(e).parsedDateParts=e._a.slice(0),S(e).meridiem=e._meridiem,e._a[A]=Pi(e._locale,e._a[A],e._meridiem),l=S(e).era,l!==null&&(e._a[I]=e._locale.erasConvertYear(l,e._a[I])),ss(e),es(e)}function Pi(e,t,s){var n;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(n=e.isPM(s),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function Yi(e){var t,s,n,r,i,a,o=!1,u=e._f.length;if(u===0){S(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)i=0,a=!1,t=Wt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],ns(t),Ut(t)&&(a=!0),i+=S(t).charsLeftOver,i+=S(t).unusedTokens.length*10,S(t).score=i,o?i<n&&(n=i,s=t):(n==null||i<n||a)&&(n=i,s=t,a&&(o=!0));pe(e,s||t)}function Fi(e){if(!e._d){var t=Gt(e._i),s=t.day===void 0?t.date:t.day;e._a=Ms([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),ss(e)}}function Li(e){var t=new Ue(es(en(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function en(e){var t=e._i,s=e._f;return e._locale=e._locale||ce(e._l),t===null||s===void 0&&t===""?Xe({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),J(t)?new Ue(es(t)):(Le(t)?e._d=t:Z(s)?Yi(e):s?ns(e):Ui(e),Ut(e)||(e._d=null),e))}function Ui(e){var t=e._i;H(t)?e._d=new Date(m.now()):Le(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ri(e):Z(t)?(e._a=Ms(t.slice(0),function(s){return parseInt(s,10)}),ss(e)):be(t)?Fi(e):ie(t)?e._d=new Date(t):m.createFromInputFallback(e)}function tn(e,t,s,n,r){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(s===!0||s===!1)&&(n=s,s=void 0),(be(e)&&Ft(e)||Z(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=s,i._i=e,i._f=t,i._strict=n,Li(i)}function N(e,t,s,n){return tn(e,t,s,n,!1)}var Ii=$("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Xe()}),Wi=$("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Xe()});function sn(e,t){var s,n;if(t.length===1&&Z(t[0])&&(t=t[0]),!t.length)return N();for(s=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](s))&&(s=t[n]);return s}function Hi(){var e=[].slice.call(arguments,0);return sn("isBefore",e)}function Bi(){var e=[].slice.call(arguments,0);return sn("isAfter",e)}var Vi=function(){return Date.now?Date.now():+new Date},ze=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $i(e){var t,s=!1,n,r=ze.length;for(t in e)if(D(e,t)&&!(x.call(ze,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<r;++n)if(e[ze[n]]){if(s)return!1;parseFloat(e[ze[n]])!==b(e[ze[n]])&&(s=!0)}return!0}function ji(){return this._isValid}function Gi(){return Q(NaN)}function mt(e){var t=Gt(e),s=t.year||0,n=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,f=t.millisecond||0;this._isValid=$i(t),this._milliseconds=+f+l*1e3+u*6e4+o*1e3*60*60,this._days=+a+i*7,this._months=+r+n*3+s*12,this._data={},this._locale=ce(),this._bubble()}function _t(e){return e instanceof mt}function rs(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function zi(e,t,s){var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,a;for(a=0;a<n;a++)(s&&e[a]!==t[a]||!s&&b(e[a])!==b(t[a]))&&i++;return i+r}function nn(e,t){y(e,0,0,function(){var s=this.utcOffset(),n="+";return s<0&&(s=-s,n="-"),n+te(~~(s/60),2)+t+te(~~s%60,2)})}nn("Z",":"),nn("ZZ",""),_("Z",lt),_("ZZ",lt),E(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=is(lt,e)});var qi=/([\+\-]|\d\d)/gi;function is(e,t){var s=(t||"").match(e),n,r,i;return s===null?null:(n=s[s.length-1]||[],r=(n+"").match(qi)||["-",0,0],i=+(r[1]*60)+b(r[2]),i===0?0:r[0]==="+"?i:-i)}function as(e,t){var s,n;return t._isUTC?(s=t.clone(),n=(J(e)||Le(e)?e.valueOf():N(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),m.updateOffset(s,!1),s):N(e).local()}function os(e){return-Math.round(e._d.getTimezoneOffset())}m.updateOffset=function(){};function Zi(e,t,s){var n=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=is(lt,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(r=os(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?ln(this,Q(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:os(this)}function Ji(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ki(e){return this.utcOffset(0,e)}function Qi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(os(this),"m")),this}function Xi(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=is(Sr,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ea(e){return this.isValid()?(e=e?N(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ta(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sa(){if(!H(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Wt(e,this),e=en(e),e._a?(t=e._isUTC?X(e._a):N(e._a),this._isDSTShifted=this.isValid()&&zi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function na(){return this.isValid()?!this._isUTC:!1}function ra(){return this.isValid()?this._isUTC:!1}function rn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ia=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,aa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Q(e,t){var s=e,n=null,r,i,a;return _t(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:ie(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(n=ia.exec(e))?(r=n[1]==="-"?-1:1,s={y:0,d:b(n[se])*r,h:b(n[A])*r,m:b(n[K])*r,s:b(n[oe])*r,ms:b(rs(n[ke]*1e3))*r}):(n=aa.exec(e))?(r=n[1]==="-"?-1:1,s={y:Oe(n[2],r),M:Oe(n[3],r),w:Oe(n[4],r),d:Oe(n[5],r),h:Oe(n[6],r),m:Oe(n[7],r),s:Oe(n[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(a=oa(N(s.from),N(s.to)),s={},s.ms=a.milliseconds,s.M=a.months),i=new mt(s),_t(e)&&D(e,"_locale")&&(i._locale=e._locale),_t(e)&&D(e,"_isValid")&&(i._isValid=e._isValid),i}Q.fn=mt.prototype,Q.invalid=Gi;function Oe(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function an(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function oa(e,t){var s;return e.isValid()&&t.isValid()?(t=as(t,e),e.isBefore(t)?s=an(e,t):(s=an(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function on(e,t){return function(s,n){var r,i;return n!==null&&!isNaN(+n)&&(xs(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=n,n=i),r=Q(s,n),ln(this,r,e),this}}function ln(e,t,s,n){var r=t._milliseconds,i=rs(t._days),a=rs(t._months);e.isValid()&&(n=n??!0,a&&Bs(e,nt(e,"Month")+a*s),i&&Ys(e,"Date",nt(e,"Date")+i*s),r&&e._d.setTime(e._d.valueOf()+r*s),n&&m.updateOffset(e,i||a))}var la=on(1,"add"),ca=on(-1,"subtract");function cn(e){return typeof e=="string"||e instanceof String}function ua(e){return J(e)||Le(e)||cn(e)||ie(e)||ha(e)||da(e)||e===null||e===void 0}function da(e){var t=be(e)&&!Ft(e),s=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,a=n.length;for(r=0;r<a;r+=1)i=n[r],s=s||D(e,i);return t&&s}function ha(e){var t=Z(e),s=!1;return t&&(s=e.filter(function(n){return!ie(n)&&cn(e)}).length===0),t&&s}function fa(e){var t=be(e)&&!Ft(e),s=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<n.length;r+=1)i=n[r],s=s||D(e,i);return t&&s}function ma(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function _a(e,t){arguments.length===1&&(arguments[0]?ua(arguments[0])?(e=arguments[0],t=void 0):fa(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||N(),n=as(s,this).startOf("day"),r=m.calendarFormat(this,n)||"sameElse",i=t&&(ee(t[r])?t[r].call(this,s):t[r]);return this.format(i||this.localeData().calendar(r,this,N(s)))}function pa(){return new Ue(this)}function ya(e,t){var s=J(e)?e:N(e);return this.isValid()&&s.isValid()?(t=j(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function ga(e,t){var s=J(e)?e:N(e);return this.isValid()&&s.isValid()?(t=j(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function wa(e,t,s,n){var r=J(e)?e:N(e),i=J(t)?t:N(t);return this.isValid()&&r.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(r,s):!this.isBefore(r,s))&&(n[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function Sa(e,t){var s=J(e)?e:N(e),n;return this.isValid()&&s.isValid()?(t=j(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function ba(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ka(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Oa(e,t,s){var n,r,i;if(!this.isValid())return NaN;if(n=as(e,this),!n.isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=j(t),t){case"year":i=pt(this,n)/12;break;case"month":i=pt(this,n);break;case"quarter":i=pt(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return s?i:G(i)}function pt(e,t){if(e.date()<t.date())return-pt(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(s,"months"),r,i;return t-n<0?(r=e.clone().add(s-1,"months"),i=(t-n)/(n-r)):(r=e.clone().add(s+1,"months"),i=(t-n)/(r-n)),-(s+i)||0}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Da(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ca(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?tt(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ee(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",tt(s,"Z")):tt(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ta(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,n,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(s+n+r+i)}function Ea(e){e||(e=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var t=tt(this,e);return this.localeData().postformat(t)}function Ma(e,t){return this.isValid()&&(J(e)&&e.isValid()||N(e).isValid())?Q({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function va(e){return this.from(N(),e)}function Na(e,t){return this.isValid()&&(J(e)&&e.isValid()||N(e).isValid())?Q({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ra(e){return this.to(N(),e)}function un(e){var t;return e===void 0?this._locale._abbr:(t=ce(e),t!=null&&(this._locale=t),this)}var dn=$("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function hn(){return this._locale}var yt=1e3,Ne=60*yt,gt=60*Ne,fn=(365*400+97)*24*gt;function Re(e,t){return(e%t+t)%t}function mn(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-fn:new Date(e,t,s).valueOf()}function _n(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-fn:Date.UTC(e,t,s)}function xa(e){var t,s;if(e=j(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?_n:mn,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Re(t+(this._isUTC?0:this.utcOffset()*Ne),gt);break;case"minute":t=this._d.valueOf(),t-=Re(t,Ne);break;case"second":t=this._d.valueOf(),t-=Re(t,yt);break}return this._d.setTime(t),m.updateOffset(this,!0),this}function Aa(e){var t,s;if(e=j(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?_n:mn,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=gt-Re(t+(this._isUTC?0:this.utcOffset()*Ne),gt)-1;break;case"minute":t=this._d.valueOf(),t+=Ne-Re(t,Ne)-1;break;case"second":t=this._d.valueOf(),t+=yt-Re(t,yt)-1;break}return this._d.setTime(t),m.updateOffset(this,!0),this}function Pa(){return this._d.valueOf()-(this._offset||0)*6e4}function Ya(){return Math.floor(this.valueOf()/1e3)}function Fa(){return new Date(this.valueOf())}function La(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ua(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ia(){return this.isValid()?this.toISOString():null}function Wa(){return Ut(this)}function Ha(){return pe({},S(this))}function Ba(){return S(this).overflow}function Va(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}y("N",0,0,"eraAbbr"),y("NN",0,0,"eraAbbr"),y("NNN",0,0,"eraAbbr"),y("NNNN",0,0,"eraName"),y("NNNNN",0,0,"eraNarrow"),y("y",["y",1],"yo","eraYear"),y("y",["yy",2],0,"eraYear"),y("y",["yyy",3],0,"eraYear"),y("y",["yyyy",4],0,"eraYear"),_("N",ls),_("NN",ls),_("NNN",ls),_("NNNN",eo),_("NNNNN",to),E(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,n){var r=s._locale.erasParse(e,n,s._strict);r?S(s).era=r:S(s).invalidEra=e}),_("y",Me),_("yy",Me),_("yyy",Me),_("yyyy",Me),_("yo",so),E(["y","yy","yyy","yyyy"],I),E(["yo"],function(e,t,s,n){var r;s._locale._eraYearOrdinalRegex&&(r=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[I]=s._locale.eraYearOrdinalParse(e,r):t[I]=parseInt(e,10)});function $a(e,t){var s,n,r,i=this._eras||ce("en")._eras;for(s=0,n=i.length;s<n;++s){switch(typeof i[s].since){case"string":r=m(i[s].since).startOf("day"),i[s].since=r.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":r=m(i[s].until).startOf("day").valueOf(),i[s].until=r.valueOf();break}}return i}function ja(e,t,s){var n,r,i=this.eras(),a,o,u;for(e=e.toUpperCase(),n=0,r=i.length;n<r;++n)if(a=i[n].name.toUpperCase(),o=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[n];break;case"NNNN":if(a===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([a,o,u].indexOf(e)>=0)return i[n]}function Ga(e,t){var s=e.since<=e.until?1:-1;return t===void 0?m(e.since).year():m(e.since).year()+(t-e.offset)*s}function za(){var e,t,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return n[e].name;return""}function qa(){var e,t,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return n[e].narrow;return""}function Za(){var e,t,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return n[e].abbr;return""}function Ja(){var e,t,s,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-m(r[e].since).year())*s+r[e].offset;return this.year()}function Ka(e){return D(this,"_erasNameRegex")||cs.call(this),e?this._erasNameRegex:this._erasRegex}function Qa(e){return D(this,"_erasAbbrRegex")||cs.call(this),e?this._erasAbbrRegex:this._erasRegex}function Xa(e){return D(this,"_erasNarrowRegex")||cs.call(this),e?this._erasNarrowRegex:this._erasRegex}function ls(e,t){return t.erasAbbrRegex(e)}function eo(e,t){return t.erasNameRegex(e)}function to(e,t){return t.erasNarrowRegex(e)}function so(e,t){return t._eraYearOrdinalRegex||Me}function cs(){var e=[],t=[],s=[],n=[],r,i,a=this.eras();for(r=0,i=a.length;r<i;++r)t.push(V(a[r].name)),e.push(V(a[r].abbr)),s.push(V(a[r].narrow)),n.push(V(a[r].name)),n.push(V(a[r].abbr)),n.push(V(a[r].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}y(0,["gg",2],0,function(){return this.weekYear()%100}),y(0,["GG",2],0,function(){return this.isoWeekYear()%100});function wt(e,t){y(0,[e,e.length],0,t)}wt("gggg","weekYear"),wt("ggggg","weekYear"),wt("GGGG","isoWeekYear"),wt("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),_("G",ot),_("g",ot),_("GG",v,B),_("gg",v,B),_("GGGG",qt,zt),_("gggg",qt,zt),_("GGGGG",at,rt),_("ggggg",at,rt),He(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,n){t[n.substr(0,2)]=b(e)}),He(["gg","GG"],function(e,t,s,n){t[n]=m.parseTwoDigitYear(e)});function no(e){return pn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ro(e){return pn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function io(){return le(this.year(),1,4)}function ao(){return le(this.isoWeekYear(),1,4)}function oo(){var e=this.localeData()._week;return le(this.year(),e.dow,e.doy)}function lo(){var e=this.localeData()._week;return le(this.weekYear(),e.dow,e.doy)}function pn(e,t,s,n,r){var i;return e==null?$e(this,n,r).year:(i=le(e,n,r),t>i&&(t=i),co.call(this,e,t,s,n,r))}function co(e,t,s,n,r){var i=Gs(e,t,s,n,r),a=Ve(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}y("Q",0,"Qo","quarter"),L("quarter","Q"),U("quarter",7),_("Q",Fs),E("Q",function(e,t){t[ae]=(b(e)-1)*3});function uo(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}y("D",["DD",2],"Do","date"),L("date","D"),U("date",9),_("D",v),_("DD",v,B),_("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),E(["D","DD"],se),E("Do",function(e,t){t[se]=b(e.match(v)[0])});var yn=Ee("Date",!0);y("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),U("dayOfYear",4),_("DDD",it),_("DDDD",Ls),E(["DDD","DDDD"],function(e,t,s){s._dayOfYear=b(e)});function ho(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}y("m",["mm",2],0,"minute"),L("minute","m"),U("minute",14),_("m",v),_("mm",v,B),E(["m","mm"],K);var fo=Ee("Minutes",!1);y("s",["ss",2],0,"second"),L("second","s"),U("second",15),_("s",v),_("ss",v,B),E(["s","ss"],oe);var mo=Ee("Seconds",!1);y("S",0,0,function(){return~~(this.millisecond()/100)}),y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),y(0,["SSS",3],0,"millisecond"),y(0,["SSSS",4],0,function(){return this.millisecond()*10}),y(0,["SSSSS",5],0,function(){return this.millisecond()*100}),y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),L("millisecond","ms"),U("millisecond",16),_("S",it,Fs),_("SS",it,B),_("SSS",it,Ls);var ge,gn;for(ge="SSSS";ge.length<=9;ge+="S")_(ge,Me);function _o(e,t){t[ke]=b(("0."+e)*1e3)}for(ge="S";ge.length<=9;ge+="S")E(ge,_o);gn=Ee("Milliseconds",!1),y("z",0,0,"zoneAbbr"),y("zz",0,0,"zoneName");function po(){return this._isUTC?"UTC":""}function yo(){return this._isUTC?"Coordinated Universal Time":""}var d=Ue.prototype;d.add=la,d.calendar=_a,d.clone=pa,d.diff=Oa,d.endOf=Aa,d.format=Ea,d.from=Ma,d.fromNow=va,d.to=Na,d.toNow=Ra,d.get=gr,d.invalidAt=Ba,d.isAfter=ya,d.isBefore=ga,d.isBetween=wa,d.isSame=Sa,d.isSameOrAfter=ba,d.isSameOrBefore=ka,d.isValid=Wa,d.lang=dn,d.locale=un,d.localeData=hn,d.max=Wi,d.min=Ii,d.parsingFlags=Ha,d.set=wr,d.startOf=xa,d.subtract=ca,d.toArray=La,d.toObject=Ua,d.toDate=Fa,d.toISOString=Ca,d.inspect=Ta,typeof Symbol<"u"&&Symbol.for!=null&&(d[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),d.toJSON=Ia,d.toString=Da,d.unix=Ya,d.valueOf=Pa,d.creationData=Va,d.eraName=za,d.eraNarrow=qa,d.eraAbbr=Za,d.eraYear=Ja,d.year=js,d.isLeapYear=Ur,d.weekYear=no,d.isoWeekYear=ro,d.quarter=d.quarters=uo,d.month=Vs,d.daysInMonth=Yr,d.week=d.weeks=$r,d.isoWeek=d.isoWeeks=jr,d.weeksInYear=oo,d.weeksInWeekYear=lo,d.isoWeeksInYear=io,d.isoWeeksInISOWeekYear=ao,d.date=yn,d.day=d.days=ri,d.weekday=ii,d.isoWeekday=ai,d.dayOfYear=ho,d.hour=d.hours=fi,d.minute=d.minutes=fo,d.second=d.seconds=mo,d.millisecond=d.milliseconds=gn,d.utcOffset=Zi,d.utc=Ki,d.local=Qi,d.parseZone=Xi,d.hasAlignedHourOffset=ea,d.isDST=ta,d.isLocal=na,d.isUtcOffset=ra,d.isUtc=rn,d.isUTC=rn,d.zoneAbbr=po,d.zoneName=yo,d.dates=$("dates accessor is deprecated. Use date instead.",yn),d.months=$("months accessor is deprecated. Use month instead",Vs),d.years=$("years accessor is deprecated. Use year instead",js),d.zone=$("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ji),d.isDSTShifted=$("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sa);function go(e){return N(e*1e3)}function wo(){return N.apply(null,arguments).parseZone()}function wn(e){return e}var C=Bt.prototype;C.calendar=rr,C.longDateFormat=lr,C.invalidDate=ur,C.ordinal=fr,C.preparse=wn,C.postformat=wn,C.relativeTime=_r,C.pastFuture=pr,C.set=sr,C.eras=$a,C.erasParse=ja,C.erasConvertYear=Ga,C.erasAbbrRegex=Qa,C.erasNameRegex=Ka,C.erasNarrowRegex=Xa,C.months=Rr,C.monthsShort=xr,C.monthsParse=Pr,C.monthsRegex=Lr,C.monthsShortRegex=Fr,C.week=Wr,C.firstDayOfYear=Vr,C.firstDayOfWeek=Br,C.weekdays=Xr,C.weekdaysMin=ti,C.weekdaysShort=ei,C.weekdaysParse=ni,C.weekdaysRegex=oi,C.weekdaysShortRegex=li,C.weekdaysMinRegex=ci,C.isPM=di,C.meridiem=mi;function St(e,t,s,n){var r=ce(),i=X().set(n,t);return r[s](i,e)}function Sn(e,t,s){if(ie(e)&&(t=e,e=void 0),e=e||"",t!=null)return St(e,t,s,"month");var n,r=[];for(n=0;n<12;n++)r[n]=St(e,n,s,"month");return r}function us(e,t,s,n){typeof e=="boolean"?(ie(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,ie(t)&&(s=t,t=void 0),t=t||"");var r=ce(),i=e?r._week.dow:0,a,o=[];if(s!=null)return St(t,(s+i)%7,n,"day");for(a=0;a<7;a++)o[a]=St(t,(a+i)%7,n,"day");return o}function So(e,t){return Sn(e,t,"months")}function bo(e,t){return Sn(e,t,"monthsShort")}function ko(e,t,s){return us(e,t,s,"weekdays")}function Oo(e,t,s){return us(e,t,s,"weekdaysShort")}function Do(e,t,s){return us(e,t,s,"weekdaysMin")}ye("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=b(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),m.lang=$("moment.lang is deprecated. Use moment.locale instead.",ye),m.langData=$("moment.langData is deprecated. Use moment.localeData instead.",ce);var ue=Math.abs;function Co(){var e=this._data;return this._milliseconds=ue(this._milliseconds),this._days=ue(this._days),this._months=ue(this._months),e.milliseconds=ue(e.milliseconds),e.seconds=ue(e.seconds),e.minutes=ue(e.minutes),e.hours=ue(e.hours),e.months=ue(e.months),e.years=ue(e.years),this}function bn(e,t,s,n){var r=Q(t,s);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function To(e,t){return bn(this,e,t,1)}function Eo(e,t){return bn(this,e,t,-1)}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function Mo(){var e=this._milliseconds,t=this._days,s=this._months,n=this._data,r,i,a,o,u;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=kn(ds(s)+t)*864e5,t=0,s=0),n.milliseconds=e%1e3,r=G(e/1e3),n.seconds=r%60,i=G(r/60),n.minutes=i%60,a=G(i/60),n.hours=a%24,t+=G(a/24),u=G(On(t)),s+=u,t-=kn(ds(u)),o=G(s/12),s%=12,n.days=t,n.months=s,n.years=o,this}function On(e){return e*4800/146097}function ds(e){return e*146097/4800}function vo(e){if(!this.isValid())return NaN;var t,s,n=this._milliseconds;if(e=j(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,s=this._months+On(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(ds(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function No(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+b(this._months/12)*31536e6:NaN}function de(e){return function(){return this.as(e)}}var Ro=de("ms"),xo=de("s"),Ao=de("m"),Po=de("h"),Yo=de("d"),Fo=de("w"),Lo=de("M"),Uo=de("Q"),Io=de("y");function Wo(){return Q(this)}function Ho(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function De(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bo=De("milliseconds"),Vo=De("seconds"),$o=De("minutes"),jo=De("hours"),Go=De("days"),zo=De("months"),qo=De("years");function Zo(){return G(this.days()/7)}var he=Math.round,xe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jo(e,t,s,n,r){return r.relativeTime(t||1,!!s,e,n)}function Ko(e,t,s,n){var r=Q(e).abs(),i=he(r.as("s")),a=he(r.as("m")),o=he(r.as("h")),u=he(r.as("d")),l=he(r.as("M")),f=he(r.as("w")),g=he(r.as("y")),T=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||a<=1&&["m"]||a<s.m&&["mm",a]||o<=1&&["h"]||o<s.h&&["hh",o]||u<=1&&["d"]||u<s.d&&["dd",u];return s.w!=null&&(T=T||f<=1&&["w"]||f<s.w&&["ww",f]),T=T||l<=1&&["M"]||l<s.M&&["MM",l]||g<=1&&["y"]||["yy",g],T[2]=t,T[3]=+e>0,T[4]=n,Jo.apply(null,T)}function Qo(e){return e===void 0?he:typeof e=="function"?(he=e,!0):!1}function Xo(e,t){return xe[e]===void 0?!1:t===void 0?xe[e]:(xe[e]=t,e==="s"&&(xe.ss=t-1),!0)}function el(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,n=xe,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(n=Object.assign({},xe,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),r=this.localeData(),i=Ko(this,!s,n,r),s&&(i=r.pastFuture(+this,i)),r.postformat(i)}var hs=Math.abs;function Ae(e){return(e>0)-(e<0)||+e}function bt(){if(!this.isValid())return this.localeData().invalidDate();var e=hs(this._milliseconds)/1e3,t=hs(this._days),s=hs(this._months),n,r,i,a,o=this.asSeconds(),u,l,f,g;return o?(n=G(e/60),r=G(n/60),e%=60,n%=60,i=G(s/12),s%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=Ae(this._months)!==Ae(o)?"-":"",f=Ae(this._days)!==Ae(o)?"-":"",g=Ae(this._milliseconds)!==Ae(o)?"-":"",u+"P"+(i?l+i+"Y":"")+(s?l+s+"M":"")+(t?f+t+"D":"")+(r||n||e?"T":"")+(r?g+r+"H":"")+(n?g+n+"M":"")+(e?g+a+"S":"")):"P0D"}var k=mt.prototype;k.isValid=ji,k.abs=Co,k.add=To,k.subtract=Eo,k.as=vo,k.asMilliseconds=Ro,k.asSeconds=xo,k.asMinutes=Ao,k.asHours=Po,k.asDays=Yo,k.asWeeks=Fo,k.asMonths=Lo,k.asQuarters=Uo,k.asYears=Io,k.valueOf=No,k._bubble=Mo,k.clone=Wo,k.get=Ho,k.milliseconds=Bo,k.seconds=Vo,k.minutes=$o,k.hours=jo,k.days=Go,k.weeks=Zo,k.months=zo,k.years=qo,k.humanize=el,k.toISOString=bt,k.toString=bt,k.toJSON=bt,k.locale=un,k.localeData=hn,k.toIsoString=$("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bt),k.lang=dn,y("X",0,0,"unix"),y("x",0,0,"valueOf"),_("x",ot),_("X",br),E("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),E("x",function(e,t,s){s._d=new Date(b(e))});//! moment.js
|
10
|
-
m.version="2.29.4",er(N),m.fn=d,m.min=Hi,m.max=Bi,m.now=Vi,m.utc=X,m.unix=go,m.months=So,m.isDate=Le,m.locale=ye,m.invalid=Xe,m.duration=Q,m.isMoment=J,m.weekdays=ko,m.parseZone=wo,m.localeData=ce,m.isDuration=_t,m.monthsShort=bo,m.weekdaysMin=Do,m.defineLocale=Xt,m.updateLocale=gi,m.locales=wi,m.weekdaysShort=Oo,m.normalizeUnits=j,m.relativeTimeRounding=Qo,m.relativeTimeThreshold=Xo,m.calendarFormat=ma,m.prototype=d,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const tl=e=>m(e).format("hh:mm a").toLowerCase(),sl=e=>e.toLowerCase().split(" ").map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" "),nl={class:"chat-message"},rl={class:"message"},il={class:"detail-message flex justify-content-between"},al={key:0,class:"mr-5"},ol={key:1,class:"mr-5"},ll=h.defineComponent({__name:"ChatMessage",props:{message:{type:Object,required:!0}},setup(e){const t=e,s=h.computed(()=>t.message.messages.responseOrigin);return(n,r)=>{var i;return h.openBlock(),h.createElementBlock("div",nl,[h.createElementVNode("div",{class:h.normalizeClass(["bubble",s.value?"left":"right"])},[h.createElementVNode("div",{class:h.normalizeClass(s.value?"content-left":"content-right")},[h.createElementVNode("div",rl,h.toDisplayString(e.message.messages.dataMessage),1),h.createElementVNode("div",il,[(i=e.message.messages.user)!=null&&i.nombreCompleto?(h.openBlock(),h.createElementBlock("span",al,h.toDisplayString(h.unref(sl)(e.message.messages.user.nombreCompleto)),1)):(h.openBlock(),h.createElementBlock("span",ol)),h.createElementVNode("span",null,h.toDisplayString(h.unref(tl)(e.message.messages.createdAt)),1)])],2)],2)])}}}),gu="",Ce=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},cl=Ce(ll,[["__scopeId","data-v-
|
10
|
+
m.version="2.29.4",er(N),m.fn=d,m.min=Hi,m.max=Bi,m.now=Vi,m.utc=X,m.unix=go,m.months=So,m.isDate=Le,m.locale=ye,m.invalid=Xe,m.duration=Q,m.isMoment=J,m.weekdays=ko,m.parseZone=wo,m.localeData=ce,m.isDuration=_t,m.monthsShort=bo,m.weekdaysMin=Do,m.defineLocale=Xt,m.updateLocale=gi,m.locales=wi,m.weekdaysShort=Oo,m.normalizeUnits=j,m.relativeTimeRounding=Qo,m.relativeTimeThreshold=Xo,m.calendarFormat=ma,m.prototype=d,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const tl=e=>m(e).format("hh:mm a").toLowerCase(),sl=e=>e.toLowerCase().split(" ").map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" "),nl={class:"chat-message"},rl={class:"message"},il={class:"detail-message flex justify-content-between"},al={key:0,class:"mr-5"},ol={key:1,class:"mr-5"},ll=h.defineComponent({__name:"ChatMessage",props:{message:{type:Object,required:!0}},setup(e){const t=e,s=h.computed(()=>t.message.messages.responseOrigin);return(n,r)=>{var i;return h.openBlock(),h.createElementBlock("div",nl,[h.createElementVNode("div",{class:h.normalizeClass(["bubble",s.value?"left":"right"])},[h.createElementVNode("div",{class:h.normalizeClass(s.value?"content-left":"content-right")},[h.createElementVNode("div",rl,h.toDisplayString(e.message.messages.dataMessage),1),h.createElementVNode("div",il,[(i=e.message.messages.user)!=null&&i.nombreCompleto?(h.openBlock(),h.createElementBlock("span",al,h.toDisplayString(h.unref(sl)(e.message.messages.user.nombreCompleto)),1)):(h.openBlock(),h.createElementBlock("span",ol)),h.createElementVNode("span",null,h.toDisplayString(h.unref(tl)(e.message.messages.createdAt)),1)])],2)],2)])}}}),gu="",Ce=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},cl=Ce(ll,[["__scopeId","data-v-78b91e28"]]);var ul=Object.defineProperty,dl=(e,t,s)=>t in e?ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,hl=(e,t,s)=>(dl(e,typeof t!="symbol"?t+"":t,s),s);const qe={LF:`
|
11
11
|
`,NULL:"\0"};class we{constructor(t){const{command:s,headers:n,body:r,binaryBody:i,escapeHeaderValues:a,skipContentLengthHeader:o}=t;this.command=s,this.headers=Object.assign({},n||{}),i?(this._binaryBody=i,this.isBinaryBody=!0):(this._body=r||"",this.isBinaryBody=!1),this.escapeHeaderValues=a||!1,this.skipContentLengthHeader=o||!1}get body(){return!this._body&&this.isBinaryBody&&(this._body=new TextDecoder().decode(this._binaryBody)),this._body||""}get binaryBody(){return!this._binaryBody&&!this.isBinaryBody&&(this._binaryBody=new TextEncoder().encode(this._body)),this._binaryBody}static fromRawFrame(t,s){const n={},r=i=>i.replace(/^\s+|\s+$/g,"");for(const i of t.headers.reverse()){i.indexOf(":");const a=r(i[0]);let o=r(i[1]);s&&t.command!=="CONNECT"&&t.command!=="CONNECTED"&&(o=we.hdrValueUnEscape(o)),n[a]=o}return new we({command:t.command,headers:n,binaryBody:t.binaryBody,escapeHeaderValues:s})}toString(){return this.serializeCmdAndHeaders()}serialize(){const t=this.serializeCmdAndHeaders();return this.isBinaryBody?we.toUnit8Array(t,this._binaryBody).buffer:t+this._body+qe.NULL}serializeCmdAndHeaders(){const t=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(const s of Object.keys(this.headers||{})){const n=this.headers[s];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?t.push(`${s}:${we.hdrValueEscape(`${n}`)}`):t.push(`${s}:${n}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&t.push(`content-length:${this.bodyLength()}`),t.join(qe.LF)+qe.LF+qe.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){const t=this.binaryBody;return t?t.length:0}static sizeOfUTF8(t){return t?new TextEncoder().encode(t).length:0}static toUnit8Array(t,s){const n=new TextEncoder().encode(t),r=new Uint8Array([0]),i=new Uint8Array(n.length+s.length+r.length);return i.set(n),i.set(s,n.length),i.set(r,n.length+s.length),i}static marshall(t){return new we(t).serialize()}static hdrValueEscape(t){return t.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(t){return t.replace(/\\r/g,"\r").replace(/\\n/g,`
|
12
12
|
`).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const Dn=0,kt=10,Ot=13,fl=58;class ml{constructor(t,s){this.onFrame=t,this.onIncomingPing=s,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(t,s=!1){let n;if(typeof t=="string"?n=this._encoder.encode(t):n=new Uint8Array(t),s&&n[n.length-1]!==0){const r=new Uint8Array(n.length+1);r.set(n,0),r[n.length]=0,n=r}for(let r=0;r<n.length;r++){const i=n[r];this._onByte(i)}}_collectFrame(t){if(t!==Dn&&t!==Ot){if(t===kt){this.onIncomingPing();return}this._onByte=this._collectCommand,this._reinjectByte(t)}}_collectCommand(t){if(t!==Ot){if(t===kt){this._results.command=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaders;return}this._consumeByte(t)}}_collectHeaders(t){if(t!==Ot){if(t===kt){this._setupCollectBody();return}this._onByte=this._collectHeaderKey,this._reinjectByte(t)}}_reinjectByte(t){this._onByte(t)}_collectHeaderKey(t){if(t===fl){this._headerKey=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaderValue;return}this._consumeByte(t)}_collectHeaderValue(t){if(t!==Ot){if(t===kt){this._results.headers.push([this._headerKey,this._consumeTokenAsUTF8()]),this._headerKey=void 0,this._onByte=this._collectHeaders;return}this._consumeByte(t)}}_setupCollectBody(){const t=this._results.headers.filter(s=>s[0]==="content-length")[0];t?(this._bodyBytesRemaining=parseInt(t[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(t){if(t===Dn){this._retrievedBody();return}this._consumeByte(t)}_collectBodyFixedSize(t){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(t)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(t){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",t)}this._initState()}_consumeByte(t){this._token.push(t)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const t=new Uint8Array(this._token);return this._token=[],t}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}var fe;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"})(fe=fe||(fe={}));var z;(function(e){e[e.ACTIVE=0]="ACTIVE",e[e.DEACTIVATING=1]="DEACTIVATING",e[e.INACTIVE=2]="INACTIVE"})(z=z||(z={}));class W{constructor(t){this.versions=t}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(t=>`v${t.replace(".","")}.stomp`)}}W.V1_0="1.0",W.V1_1="1.1",W.V1_2="1.2",W.default=new W([W.V1_2,W.V1_1,W.V1_0]);function _l(e,t){e.terminate=function(){const s=()=>{};this.onerror=s,this.onmessage=s,this.onopen=s;const n=new Date,r=Math.random().toString().substring(2,8),i=this.onclose;this.onclose=a=>{const o=new Date().getTime()-n.getTime();t(`Discarded socket (#${r}) closed after ${o}ms, with code/reason: ${a.code}/${a.reason}`)},this.close(),i==null||i.call(e,{code:4001,reason:`Quick discarding socket (#${r}) without waiting for the shutdown sequence.`,wasClean:!1})}}class pl{constructor(t,s,n){this._client=t,this._webSocket=s,this._connected=!1,this._serverFrameHandlers={CONNECTED:r=>{this.debug(`connected to server ${r.headers.server}`),this._connected=!0,this._connectedVersion=r.headers.version,this._connectedVersion===W.V1_2&&(this._escapeHeaderValues=!0),this._setupHeartbeat(r.headers),this.onConnect(r)},MESSAGE:r=>{const i=r.headers.subscription,a=this._subscriptions[i]||this.onUnhandledMessage,o=r,u=this,l=this._connectedVersion===W.V1_2?o.headers.ack:o.headers["message-id"];o.ack=(f={})=>u.ack(l,i,f),o.nack=(f={})=>u.nack(l,i,f),a(o)},RECEIPT:r=>{const i=this._receiptWatchers[r.headers["receipt-id"]];i?(i(r),delete this._receiptWatchers[r.headers["receipt-id"]]):this.onUnhandledReceipt(r)},ERROR:r=>{this.onStompError(r)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=n.debug,this.stompVersions=n.stompVersions,this.connectHeaders=n.connectHeaders,this.disconnectHeaders=n.disconnectHeaders,this.heartbeatIncoming=n.heartbeatIncoming,this.heartbeatOutgoing=n.heartbeatOutgoing,this.splitLargeFrames=n.splitLargeFrames,this.maxWebSocketChunkSize=n.maxWebSocketChunkSize,this.forceBinaryWSFrames=n.forceBinaryWSFrames,this.logRawCommunication=n.logRawCommunication,this.appendMissingNULLonIncoming=n.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=n.discardWebsocketOnCommFailure,this.onConnect=n.onConnect,this.onDisconnect=n.onDisconnect,this.onStompError=n.onStompError,this.onWebSocketClose=n.onWebSocketClose,this.onWebSocketError=n.onWebSocketError,this.onUnhandledMessage=n.onUnhandledMessage,this.onUnhandledReceipt=n.onUnhandledReceipt,this.onUnhandledFrame=n.onUnhandledFrame}get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}start(){const t=new ml(s=>{const n=we.fromRawFrame(s,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${n}`),(this._serverFrameHandlers[n.command]||this.onUnhandledFrame)(n)},()=>{this.debug("<<< PONG")});this._webSocket.onmessage=s=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const n=s.data instanceof ArrayBuffer?new TextDecoder().decode(s.data):s.data;this.debug(`<<< ${n}`)}t.parseChunk(s.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=s=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(s)},this._webSocket.onerror=s=>{this.onWebSocketError(s)},this._webSocket.onopen=()=>{const s=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),s["accept-version"]=this.stompVersions.supportedVersions(),s["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:s})}}_setupHeartbeat(t){if(t.version!==W.V1_1&&t.version!==W.V1_2||!t["heart-beat"])return;const[s,n]=t["heart-beat"].split(",").map(r=>parseInt(r,10));if(this.heartbeatOutgoing!==0&&n!==0){const r=Math.max(this.heartbeatOutgoing,n);this.debug(`send PING every ${r}ms`),this._pinger=setInterval(()=>{this._webSocket.readyState===fe.OPEN&&(this._webSocket.send(qe.LF),this.debug(">>> PING"))},r)}if(this.heartbeatIncoming!==0&&s!==0){const r=Math.max(this.heartbeatIncoming,s);this.debug(`check PONG every ${r}ms`),this._ponger=setInterval(()=>{const i=Date.now()-this._lastServerActivityTS;i>r*2&&(this.debug(`did not receive server activity for the last ${i}ms`),this._closeOrDiscardWebsocket())},r)}}_closeOrDiscardWebsocket(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}forceDisconnect(){this._webSocket&&(this._webSocket.readyState===fe.CONNECTING||this._webSocket.readyState===fe.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&_l(this._webSocket,t=>this.debug(t)),this._webSocket.terminate()}_transmit(t){const{command:s,headers:n,body:r,binaryBody:i,skipContentLengthHeader:a}=t,o=new we({command:s,headers:n,body:r,binaryBody:i,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:a});let u=o.serialize();if(this.logRawCommunication?this.debug(`>>> ${u}`):this.debug(`>>> ${o}`),this.forceBinaryWSFrames&&typeof u=="string"&&(u=new TextEncoder().encode(u)),typeof u!="string"||!this.splitLargeFrames)this._webSocket.send(u);else{let l=u;for(;l.length>0;){const f=l.substring(0,this.maxWebSocketChunkSize);l=l.substring(this.maxWebSocketChunkSize),this._webSocket.send(f),this.debug(`chunk sent = ${f.length}, remaining = ${l.length}`)}}}dispose(){if(this.connected)try{const t=Object.assign({},this.disconnectHeaders);t.receipt||(t.receipt=`close-${this._counter++}`),this.watchForReceipt(t.receipt,s=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(s)}),this._transmit({command:"DISCONNECT",headers:t})}catch(t){this.debug(`Ignoring error during disconnect ${t}`)}else(this._webSocket.readyState===fe.CONNECTING||this._webSocket.readyState===fe.OPEN)&&this._closeWebsocket()}_cleanUp(){this._connected=!1,this._pinger&&(clearInterval(this._pinger),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}publish(t){const{destination:s,headers:n,body:r,binaryBody:i,skipContentLengthHeader:a}=t,o=Object.assign({destination:s},n);this._transmit({command:"SEND",headers:o,body:r,binaryBody:i,skipContentLengthHeader:a})}watchForReceipt(t,s){this._receiptWatchers[t]=s}subscribe(t,s,n={}){n=Object.assign({},n),n.id||(n.id=`sub-${this._counter++}`),n.destination=t,this._subscriptions[n.id]=s,this._transmit({command:"SUBSCRIBE",headers:n});const r=this;return{id:n.id,unsubscribe(i){return r.unsubscribe(n.id,i)}}}unsubscribe(t,s={}){s=Object.assign({},s),delete this._subscriptions[t],s.id=t,this._transmit({command:"UNSUBSCRIBE",headers:s})}begin(t){const s=t||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:s}});const n=this;return{id:s,commit(){n.commit(s)},abort(){n.abort(s)}}}commit(t){this._transmit({command:"COMMIT",headers:{transaction:t}})}abort(t){this._transmit({command:"ABORT",headers:{transaction:t}})}ack(t,s,n={}){n=Object.assign({},n),this._connectedVersion===W.V1_2?n.id=t:n["message-id"]=t,n.subscription=s,this._transmit({command:"ACK",headers:n})}nack(t,s,n={}){return n=Object.assign({},n),this._connectedVersion===W.V1_2?n.id=t:n["message-id"]=t,n.subscription=s,this._transmit({command:"NACK",headers:n})}}class yl{constructor(t={}){this.stompVersions=W.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this.heartbeatIncoming=1e4,this.heartbeatOutgoing=1e4,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8*1024,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=z.INACTIVE;const s=()=>{};this.debug=s,this.beforeConnect=s,this.onConnect=s,this.onDisconnect=s,this.onUnhandledMessage=s,this.onUnhandledReceipt=s,this.onUnhandledFrame=s,this.onStompError=s,this.onWebSocketClose=s,this.onWebSocketError=s,this.logRawCommunication=!1,this.onChangeState=s,this.connectHeaders={},this._disconnectHeaders={},this.configure(t)}get webSocket(){var t;return(t=this._stompHandler)==null?void 0:t._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(t){this._disconnectHeaders=t,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}get connected(){return!!this._stompHandler&&this._stompHandler.connected}get connectedVersion(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}get active(){return this.state===z.ACTIVE}_changeState(t){this.state=t,this.onChangeState(t)}configure(t){Object.assign(this,t)}activate(){const t=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(z.ACTIVE),this._connect()};this.state===z.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{t()})):t()}async _connect(){if(await this.beforeConnect(),this._stompHandler){this.debug("There is already a stompHandler, skipping the call to connect");return}if(!this.active){this.debug("Client has been marked inactive, will not attempt to connect");return}this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(()=>{this.connected||(this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`),this.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket...");const t=this._createWebSocket();this._stompHandler=new pl(this,t,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatOutgoing:this.heartbeatOutgoing,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:s=>{if(this._connectionWatcher&&(clearTimeout(this._connectionWatcher),this._connectionWatcher=void 0),!this.active){this.debug("STOMP got connected while deactivate was issued, will disconnect now"),this._disposeStompHandler();return}this.onConnect(s)},onDisconnect:s=>{this.onDisconnect(s)},onStompError:s=>{this.onStompError(s)},onWebSocketClose:s=>{this._stompHandler=void 0,this.state===z.DEACTIVATING&&this._changeState(z.INACTIVE),this.onWebSocketClose(s),this.active&&this._schedule_reconnect()},onWebSocketError:s=>{this.onWebSocketError(s)},onUnhandledMessage:s=>{this.onUnhandledMessage(s)},onUnhandledReceipt:s=>{this.onUnhandledReceipt(s)},onUnhandledFrame:s=>{this.onUnhandledFrame(s)}}),this._stompHandler.start()}_createWebSocket(){let t;if(this.webSocketFactory)t=this.webSocketFactory();else if(this.brokerURL)t=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return t.binaryType="arraybuffer",t}_schedule_reconnect(){this.reconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`),this._reconnector=setTimeout(()=>{this._connect()},this.reconnectDelay))}async deactivate(t={}){var s;const n=t.force||!1,r=this.active;let i;if(this.state===z.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(z.DEACTIVATING),this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==fe.CLOSED){const a=this._stompHandler.onWebSocketClose;i=new Promise((o,u)=>{this._stompHandler.onWebSocketClose=l=>{a(l),o()}})}else return this._changeState(z.INACTIVE),Promise.resolve();return n?(s=this._stompHandler)==null||s.discardWebsocket():r&&this._disposeStompHandler(),i}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(t){this._checkConnection(),this._stompHandler.publish(t)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(t,s){this._checkConnection(),this._stompHandler.watchForReceipt(t,s)}subscribe(t,s,n={}){return this._checkConnection(),this._stompHandler.subscribe(t,s,n)}unsubscribe(t,s={}){this._checkConnection(),this._stompHandler.unsubscribe(t,s)}begin(t){return this._checkConnection(),this._stompHandler.begin(t)}commit(t){this._checkConnection(),this._stompHandler.commit(t)}abort(t){this._checkConnection(),this._stompHandler.abort(t)}ack(t,s,n={}){this._checkConnection(),this._stompHandler.ack(t,s,n)}nack(t,s,n={}){this._checkConnection(),this._stompHandler.nack(t,s,n)}}class gl{constructor(t,s){hl(this,"client"),this.virtualHost=t,this.queue=s,this.client=new yl({brokerURL:window.VITE_BROKER_URL?window.VITE_BROKER_URL:"ws://192.168.20.107:15674/ws",connectHeaders:{login:window.VITE_USERNAME?window.VITE_USERNAME:"admin",passcode:window.VITE_PASSWORD?window.VITE_PASSWORD:"password",host:this.virtualHost}})}async connect(){return new Promise((t,s)=>{this.client.onConnect=()=>{t()},this.client.activate()})}async disconnectClient(){this.client.onDisconnect=()=>{},this.client.deactivate(),this.client.unsubscribe("")}async subscribe(t){await this.connect(),this.client.subscribe(`/queue/${this.queue}`,s=>{const n=JSON.parse(s.body);t(n)})}async publish(t){this.client.publish({destination:`/queue/${this.queue}`,body:JSON.stringify({data:t})})}}const wl={},Sl={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bl=[h.createElementVNode("path",{d:"M16 31C24.2843 31 31 24.2843 31 16C31 7.71573 24.2843 1 16 1C7.71573 1 1 7.71573 1 16C1 24.2843 7.71573 31 16 31Z",stroke:"#B3B3B3","stroke-miterlimit":"10"},null,-1),h.createElementVNode("path",{d:"M19.78 22.3L15.98 16.63H15.9601L12.2001 22.3H11.0701L15.37 15.8899L11.25 9.69995H12.38L15.98 15.08H16L19.67 9.69995H20.8L16.55 15.82L20.92 22.3H19.77H19.78Z",fill:"#B3B3B3"},null,-1)];function kl(e,t){return h.openBlock(),h.createElementBlock("svg",Sl,bl)}const Ol=Ce(wl,[["render",kl]]),Dl={},Cl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tl=[h.createElementVNode("path",{d:"M11.9301 23.25C5.65005 23.25 0.550049 18.14 0.550049 11.87C0.550049 5.6 5.66005 0.48999 11.9301 0.48999C18.2001 0.48999 23.3101 5.6 23.3101 11.87C23.3101 18.14 18.2001 23.25 11.9301 23.25ZM11.9301 1.10999C6.00005 1.10999 1.17004 5.94 1.17004 11.87C1.17004 17.8 6.00005 22.63 11.9301 22.63C17.8601 22.63 22.6899 17.8 22.6899 11.87C22.6899 5.94 17.8601 1.10999 11.9301 1.10999Z",fill:"#F28B0C"},null,-1),h.createElementVNode("path",{d:"M8.68994 17.0601C8.63994 17.0601 8.58004 17.0501 8.54004 17.0201C8.44004 16.9701 8.38 16.8601 8.38 16.7501V6.99007C8.38 6.88007 8.44004 6.78005 8.54004 6.72005C8.64004 6.66005 8.74998 6.67005 8.84998 6.72005L17.1899 11.6001C17.2799 11.6601 17.34 11.7601 17.34 11.8701C17.34 11.9801 17.2799 12.0801 17.1899 12.1401L8.84998 17.0201C8.84998 17.0201 8.74994 17.0601 8.68994 17.0601ZM9 7.5301V16.21L16.42 11.8701L9 7.5301Z",fill:"#F28B0C"},null,-1)];function El(e,t){return h.openBlock(),h.createElementBlock("svg",Cl,Tl)}const Ml=Ce(Dl,[["render",El]]),vl={},Nl={width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rl=[h.createElementVNode("path",{d:"M21.04 40.9399C32.0857 40.9399 41.04 31.9856 41.04 20.9399C41.04 9.89419 32.0857 0.939941 21.04 0.939941C9.99428 0.939941 1.03998 9.89419 1.03998 20.9399C1.03998 31.9856 9.99428 40.9399 21.04 40.9399Z",stroke:"#F28B0C","stroke-width":"1.5","stroke-miterlimit":"10"},null,-1),h.createElementVNode("path",{d:"M22.87 20.36C24.92 19.57 26.38 17.5801 26.38 15.2601C26.38 12.2401 23.93 9.79004 20.91 9.79004C17.89 9.79004 15.44 12.2401 15.44 15.2601C15.44 17.6301 16.95 19.6401 19.06 20.4001C16.15 21.2601 14.02 23.9501 14.02 27.1301V31.7701C14.02 31.9401 14.16 32.08 14.33 32.08H27.76C27.93 32.08 28.07 31.9401 28.07 31.7701V27.1301C28.07 23.8901 25.86 21.16 22.87 20.36Z",fill:"#F28B0C"},null,-1)];function xl(e,t){return h.openBlock(),h.createElementBlock("svg",Nl,Rl)}const Al=Ce(vl,[["render",xl]]);function Cn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Pl}=Object.prototype,{getPrototypeOf:fs}=Object,Dt=(e=>t=>{const s=Pl.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),ne=e=>(e=e.toLowerCase(),t=>Dt(t)===e),Ct=e=>t=>typeof t===e,{isArray:Pe}=Array,Ze=Ct("undefined");function Yl(e){return e!==null&&!Ze(e)&&e.constructor!==null&&!Ze(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tn=ne("ArrayBuffer");function Fl(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tn(e.buffer),t}const Ll=Ct("string"),q=Ct("function"),En=Ct("number"),Tt=e=>e!==null&&typeof e=="object",Ul=e=>e===!0||e===!1,Et=e=>{if(Dt(e)!=="object")return!1;const t=fs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Il=ne("Date"),Wl=ne("File"),Hl=ne("Blob"),Bl=ne("FileList"),Vl=e=>Tt(e)&&q(e.pipe),$l=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=Dt(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},jl=ne("URLSearchParams"),Gl=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Je(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),Pe(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const i=s?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}function Mn(e,t){t=t.toLowerCase();const s=Object.keys(e);let n=s.length,r;for(;n-- >0;)if(r=s[n],t===r.toLowerCase())return r;return null}const vn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Nn=e=>!Ze(e)&&e!==vn;function ms(){const{caseless:e}=Nn(this)&&this||{},t={},s=(n,r)=>{const i=e&&Mn(t,r)||r;Et(t[i])&&Et(n)?t[i]=ms(t[i],n):Et(n)?t[i]=ms({},n):Pe(n)?t[i]=n.slice():t[i]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&Je(arguments[n],s);return t}const zl=(e,t,s,{allOwnKeys:n}={})=>(Je(t,(r,i)=>{s&&q(r)?e[i]=Cn(r,s):e[i]=r},{allOwnKeys:n}),e),ql=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zl=(e,t,s,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},Jl=(e,t,s,n)=>{let r,i,a;const o={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=s!==!1&&fs(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},Kl=(e,t,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=t.length;const n=e.indexOf(t,s);return n!==-1&&n===s},Ql=e=>{if(!e)return null;if(Pe(e))return e;let t=e.length;if(!En(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},Xl=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fs(Uint8Array)),ec=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},tc=(e,t)=>{let s;const n=[];for(;(s=e.exec(t))!==null;)n.push(s);return n},sc=ne("HTMLFormElement"),nc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,n,r){return n.toUpperCase()+r}),Rn=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),rc=ne("RegExp"),xn=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),n={};Je(s,(r,i)=>{t(r,i,e)!==!1&&(n[i]=r)}),Object.defineProperties(e,n)},ic=e=>{xn(e,(t,s)=>{if(q(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const n=e[s];if(q(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},ac=(e,t)=>{const s={},n=r=>{r.forEach(i=>{s[i]=!0})};return Pe(e)?n(e):n(String(e).split(t)),s},oc=()=>{},lc=(e,t)=>(e=+e,Number.isFinite(e)?e:t),_s="abcdefghijklmnopqrstuvwxyz",An="0123456789",Pn={DIGIT:An,ALPHA:_s,ALPHA_DIGIT:_s+_s.toUpperCase()+An},cc=(e=16,t=Pn.ALPHA_DIGIT)=>{let s="";const{length:n}=t;for(;e--;)s+=t[Math.random()*n|0];return s};function uc(e){return!!(e&&q(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dc=e=>{const t=new Array(10),s=(n,r)=>{if(Tt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;const i=Pe(n)?[]:{};return Je(n,(a,o)=>{const u=s(a,r+1);!Ze(u)&&(i[o]=u)}),t[r]=void 0,i}}return n};return s(e,0)},hc=ne("AsyncFunction"),c={isArray:Pe,isArrayBuffer:Tn,isBuffer:Yl,isFormData:$l,isArrayBufferView:Fl,isString:Ll,isNumber:En,isBoolean:Ul,isObject:Tt,isPlainObject:Et,isUndefined:Ze,isDate:Il,isFile:Wl,isBlob:Hl,isRegExp:rc,isFunction:q,isStream:Vl,isURLSearchParams:jl,isTypedArray:Xl,isFileList:Bl,forEach:Je,merge:ms,extend:zl,trim:Gl,stripBOM:ql,inherits:Zl,toFlatObject:Jl,kindOf:Dt,kindOfTest:ne,endsWith:Kl,toArray:Ql,forEachEntry:ec,matchAll:tc,isHTMLForm:sc,hasOwnProperty:Rn,hasOwnProp:Rn,reduceDescriptors:xn,freezeMethods:ic,toObjectSet:ac,toCamelCase:nc,noop:oc,toFiniteNumber:lc,findKey:Mn,global:vn,isContextDefined:Nn,ALPHABET:Pn,generateString:cc,isSpecCompliantForm:uc,toJSONObject:dc,isAsyncFn:hc,isThenable:e=>e&&(Tt(e)||q(e))&&q(e.then)&&q(e.catch)};function O(e,t,s,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),n&&(this.request=n),r&&(this.response=r)}c.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yn=O.prototype,Fn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Fn[e]={value:e}}),Object.defineProperties(O,Fn),Object.defineProperty(Yn,"isAxiosError",{value:!0}),O.from=(e,t,s,n,r,i)=>{const a=Object.create(Yn);return c.toFlatObject(e,a,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),O.call(a,e.message,t,s,n,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const fc=null;function ps(e){return c.isPlainObject(e)||c.isArray(e)}function Ln(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Un(e,t,s){return e?e.concat(t).map(function(r,i){return r=Ln(r),!s&&i?"["+r+"]":r}).join(s?".":""):t}function mc(e){return c.isArray(e)&&!e.some(ps)}const _c=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Mt(e,t,s){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,s=c.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,Y){return!c.isUndefined(Y[w])});const n=s.metaTokens,r=s.visitor||f,i=s.dots,a=s.indexes,u=(s.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(!u&&c.isBlob(p))throw new O("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,w,Y){let F=p;if(p&&!Y&&typeof p=="object"){if(c.endsWith(w,"{}"))w=n?w:w.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&mc(p)||(c.isFileList(p)||c.endsWith(w,"[]"))&&(F=c.toArray(p)))return w=Ln(w),F.forEach(function(Yt,yu){!(c.isUndefined(Yt)||Yt===null)&&t.append(a===!0?Un([w],yu,i):a===null?w:w+"[]",l(Yt))}),!1}return ps(p)?!0:(t.append(Un(Y,w,i),l(p)),!1)}const g=[],T=Object.assign(_c,{defaultVisitor:f,convertValue:l,isVisitable:ps});function M(p,w){if(!c.isUndefined(p)){if(g.indexOf(p)!==-1)throw Error("Circular reference detected in "+w.join("."));g.push(p),c.forEach(p,function(F,Fe){(!(c.isUndefined(F)||F===null)&&r.call(t,F,c.isString(Fe)?Fe.trim():Fe,w,T))===!0&&M(F,w?w.concat(Fe):[Fe])}),g.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return M(e),t}function In(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ys(e,t){this._pairs=[],e&&Mt(e,this,t)}const Wn=ys.prototype;Wn.append=function(t,s){this._pairs.push([t,s])},Wn.toString=function(t){const s=t?function(n){return t.call(this,n,In)}:In;return this._pairs.map(function(r){return s(r[0])+"="+s(r[1])},"").join("&")};function pc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hn(e,t,s){if(!t)return e;const n=s&&s.encode||pc,r=s&&s.serialize;let i;if(r?i=r(t,s):i=c.isURLSearchParams(t)?t.toString():new ys(t,s).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class yc{constructor(){this.handlers=[]}use(t,s,n){return this.handlers.push({fulfilled:t,rejected:s,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Bn=yc,Vn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gc=typeof URLSearchParams<"u"?URLSearchParams:ys,wc=typeof FormData<"u"?FormData:null,Sc=typeof Blob<"u"?Blob:null,bc=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),kc=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),re={isBrowser:!0,classes:{URLSearchParams:gc,FormData:wc,Blob:Sc},isStandardBrowserEnv:bc,isStandardBrowserWebWorkerEnv:kc,protocols:["http","https","file","blob","url","data"]};function Oc(e,t){return Mt(e,new re.classes.URLSearchParams,Object.assign({visitor:function(s,n,r,i){return re.isNode&&c.isBuffer(s)?(this.append(n,s.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Dc(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cc(e){const t={},s=Object.keys(e);let n;const r=s.length;let i;for(n=0;n<r;n++)i=s[n],t[i]=e[i];return t}function $n(e){function t(s,n,r,i){let a=s[i++];const o=Number.isFinite(+a),u=i>=s.length;return a=!a&&c.isArray(r)?r.length:a,u?(c.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!c.isObject(r[a]))&&(r[a]=[]),t(s,n,r[a],i)&&c.isArray(r[a])&&(r[a]=Cc(r[a])),!o)}if(c.isFormData(e)&&c.isFunction(e.entries)){const s={};return c.forEachEntry(e,(n,r)=>{t(Dc(n),r,s,0)}),s}return null}const Tc={"Content-Type":void 0};function Ec(e,t,s){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(e)}const vt={transitional:Vn,adapter:["xhr","http"],transformRequest:[function(t,s){const n=s.getContentType()||"",r=n.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return r&&r?JSON.stringify($n(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Oc(t,this.formSerializer).toString();if((o=c.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Mt(o?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||r?(s.setContentType("application/json",!1),Ec(t)):t}],transformResponse:[function(t){const s=this.transitional||vt.transitional,n=s&&s.forcedJSONParsing,r=this.responseType==="json";if(t&&c.isString(t)&&(n&&!this.responseType||r)){const a=!(s&&s.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?O.from(o,O.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(t){vt.headers[t]={}}),c.forEach(["post","put","patch"],function(t){vt.headers[t]=c.merge(Tc)});const gs=vt,Mc=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vc=e=>{const t={};let s,n,r;return e&&e.split(`
|
13
13
|
`).forEach(function(a){r=a.indexOf(":"),s=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!s||t[s]&&Mc[s])&&(s==="set-cookie"?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t},jn=Symbol("internals");function Ke(e){return e&&String(e).trim().toLowerCase()}function Nt(e){return e===!1||e==null?e:c.isArray(e)?e.map(Nt):String(e)}function Nc(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(e);)t[n[1]]=n[2];return t}const Rc=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ws(e,t,s,n,r){if(c.isFunction(n))return n.call(this,t,s);if(r&&(t=s),!!c.isString(t)){if(c.isString(n))return t.indexOf(n)!==-1;if(c.isRegExp(n))return n.test(t)}}function xc(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function Ac(e,t){const s=c.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+s,{value:function(r,i,a){return this[n].call(this,t,r,i,a)},configurable:!0})})}class Rt{constructor(t){t&&this.set(t)}set(t,s,n){const r=this;function i(o,u,l){const f=Ke(u);if(!f)throw new Error("header name must be a non-empty string");const g=c.findKey(r,f);(!g||r[g]===void 0||l===!0||l===void 0&&r[g]!==!1)&&(r[g||u]=Nt(o))}const a=(o,u)=>c.forEach(o,(l,f)=>i(l,f,u));return c.isPlainObject(t)||t instanceof this.constructor?a(t,s):c.isString(t)&&(t=t.trim())&&!Rc(t)?a(vc(t),s):t!=null&&i(s,t,n),this}get(t,s){if(t=Ke(t),t){const n=c.findKey(this,t);if(n){const r=this[n];if(!s)return r;if(s===!0)return Nc(r);if(c.isFunction(s))return s.call(this,r,n);if(c.isRegExp(s))return s.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=Ke(t),t){const n=c.findKey(this,t);return!!(n&&this[n]!==void 0&&(!s||ws(this,this[n],n,s)))}return!1}delete(t,s){const n=this;let r=!1;function i(a){if(a=Ke(a),a){const o=c.findKey(n,a);o&&(!s||ws(n,n[o],o,s))&&(delete n[o],r=!0)}}return c.isArray(t)?t.forEach(i):i(t),r}clear(t){const s=Object.keys(this);let n=s.length,r=!1;for(;n--;){const i=s[n];(!t||ws(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const s=this,n={};return c.forEach(this,(r,i)=>{const a=c.findKey(n,i);if(a){s[a]=Nt(r),delete s[i];return}const o=t?xc(i):String(i).trim();o!==i&&delete s[i],s[o]=Nt(r),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return c.forEach(this,(n,r)=>{n!=null&&n!==!1&&(s[r]=t&&c.isArray(n)?n.join(", "):n)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).join(`
|
14
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){const n=new this(t);return s.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[jn]=this[jn]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=Ke(a);n[o]||(Ac(r,a),n[o]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}}Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.freezeMethods(Rt.prototype),c.freezeMethods(Rt);const me=Rt;function Ss(e,t){const s=this||gs,n=t||s,r=me.from(n.headers);let i=n.data;return c.forEach(e,function(o){i=o.call(s,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Gn(e){return!!(e&&e.__CANCEL__)}function Qe(e,t,s){O.call(this,e??"canceled",O.ERR_CANCELED,t,s),this.name="CanceledError"}c.inherits(Qe,O,{__CANCEL__:!0});function Pc(e,t,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(new O("Request failed with status code "+s.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const Yc=re.isStandardBrowserEnv?function(){return{write:function(s,n,r,i,a,o){const u=[];u.push(s+"="+encodeURIComponent(n)),c.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),c.isString(i)&&u.push("path="+i),c.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(s){const n=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Fc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lc(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function zn(e,t){return e&&!Fc(t)?Lc(e,t):t}const Uc=re.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let n;function r(i){let a=i;return t&&(s.setAttribute("href",a),a=s.href),s.setAttribute("href",a),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return n=r(window.location.href),function(a){const o=c.isString(a)?r(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function Ic(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wc(e,t){e=e||10;const s=new Array(e),n=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),f=n[i];a||(a=l),s[r]=u,n[r]=l;let g=i,T=0;for(;g!==r;)T+=s[g++],g=g%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-a<t)return;const M=f&&l-f;return M?Math.round(T*1e3/M):void 0}}function qn(e,t){let s=0;const n=Wc(50,250);return r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-s,u=n(o),l=i<=a;s=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:u||void 0,estimated:u&&a&&l?(a-i)/u:void 0,event:r};f[t?"download":"upload"]=!0,e(f)}}const xt={http:fc,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(s,n){let r=e.data;const i=me.from(e.headers).normalize(),a=e.responseType;let o;function u(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}c.isFormData(r)&&(re.isStandardBrowserEnv||re.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const M=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(M+":"+p))}const f=zn(e.baseURL,e.url);l.open(e.method.toUpperCase(),Hn(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function g(){if(!l)return;const M=me.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:M,config:e,request:l};Pc(function(F){s(F),u()},function(F){n(F),u()},w),l=null}if("onloadend"in l?l.onloadend=g:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(g)},l.onabort=function(){l&&(n(new O("Request aborted",O.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new O("Network Error",O.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Vn;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),n(new O(p,w.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,e,l)),l=null},re.isStandardBrowserEnv){const M=(e.withCredentials||Uc(f))&&e.xsrfCookieName&&Yc.read(e.xsrfCookieName);M&&i.set(e.xsrfHeaderName,M)}r===void 0&&i.setContentType(null),"setRequestHeader"in l&&c.forEach(i.toJSON(),function(p,w){l.setRequestHeader(w,p)}),c.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",qn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",qn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=M=>{l&&(n(!M||M.type?new Qe(null,e,l):M),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const T=Ic(f);if(T&&re.protocols.indexOf(T)===-1){n(new O("Unsupported protocol "+T+":",O.ERR_BAD_REQUEST,e));return}l.send(r||null)})}};c.forEach(xt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hc={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let s,n;for(let r=0;r<t&&(s=e[r],!(n=c.isString(s)?xt[s.toLowerCase()]:s));r++);if(!n)throw n===!1?new O(`Adapter ${s} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(c.hasOwnProp(xt,s)?`Adapter '${s}' is not available in the build`:`Unknown adapter '${s}'`);if(!c.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:xt};function bs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qe(null,e)}function Zn(e){return bs(e),e.headers=me.from(e.headers),e.data=Ss.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hc.getAdapter(e.adapter||gs.adapter)(e).then(function(n){return bs(e),n.data=Ss.call(e,e.transformResponse,n),n.headers=me.from(n.headers),n},function(n){return Gn(n)||(bs(e),n&&n.response&&(n.response.data=Ss.call(e,e.transformResponse,n.response),n.response.headers=me.from(n.response.headers))),Promise.reject(n)})}const Jn=e=>e instanceof me?e.toJSON():e;function Ye(e,t){t=t||{};const s={};function n(l,f,g){return c.isPlainObject(l)&&c.isPlainObject(f)?c.merge.call({caseless:g},l,f):c.isPlainObject(f)?c.merge({},f):c.isArray(f)?f.slice():f}function r(l,f,g){if(c.isUndefined(f)){if(!c.isUndefined(l))return n(void 0,l,g)}else return n(l,f,g)}function i(l,f){if(!c.isUndefined(f))return n(void 0,f)}function a(l,f){if(c.isUndefined(f)){if(!c.isUndefined(l))return n(void 0,l)}else return n(void 0,f)}function o(l,f,g){if(g in t)return n(l,f);if(g in e)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(l,f)=>r(Jn(l),Jn(f),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(f){const g=u[f]||r,T=g(e[f],t[f],f);c.isUndefined(T)&&g!==o||(s[f]=T)}),s}const Kn="1.4.0",ks={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ks[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qn={};ks.transitional=function(t,s,n){function r(i,a){return"[Axios v"+Kn+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(t===!1)throw new O(r(a," has been removed"+(s?" in "+s:"")),O.ERR_DEPRECATED);return s&&!Qn[a]&&(Qn[a]=!0,console.warn(r(a," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(i,a,o):!0}};function Bc(e,t,s){if(typeof e!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const i=n[r],a=t[i];if(a){const o=e[i],u=o===void 0||a(o,i,e);if(u!==!0)throw new O("option "+i+" must be "+u,O.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new O("Unknown option "+i,O.ERR_BAD_OPTION)}}const Os={assertOptions:Bc,validators:ks},Se=Os.validators;class At{constructor(t){this.defaults=t,this.interceptors={request:new Bn,response:new Bn}}request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Ye(this.defaults,s);const{transitional:n,paramsSerializer:r,headers:i}=s;n!==void 0&&Os.assertOptions(n,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1),r!=null&&(c.isFunction(r)?s.paramsSerializer={serialize:r}:Os.assertOptions(r,{encode:Se.function,serialize:Se.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let a;a=i&&c.merge(i.common,i[s.method]),a&&c.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),s.headers=me.concat(a,i);const o=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(s)===!1||(u=u&&w.synchronous,o.unshift(w.fulfilled,w.rejected))});const l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});let f,g=0,T;if(!u){const p=[Zn.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,l),T=p.length,f=Promise.resolve(s);g<T;)f=f.then(p[g++],p[g++]);return f}T=o.length;let M=s;for(g=0;g<T;){const p=o[g++],w=o[g++];try{M=p(M)}catch(Y){w.call(this,Y);break}}try{f=Zn.call(this,M)}catch(p){return Promise.reject(p)}for(g=0,T=l.length;g<T;)f=f.then(l[g++],l[g++]);return f}getUri(t){t=Ye(this.defaults,t);const s=zn(t.baseURL,t.url);return Hn(s,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){At.prototype[t]=function(s,n){return this.request(Ye(n||{},{method:t,url:s,data:(n||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function s(n){return function(i,a,o){return this.request(Ye(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}At.prototype[t]=s(),At.prototype[t+"Form"]=s(!0)});const Pt=At;class Ds{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(i){s=i});const n=this;this.promise.then(r=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,o){n.reason||(n.reason=new Qe(i,a,o),s(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}static source(){let t;return{token:new Ds(function(r){t=r}),cancel:t}}}const Vc=Ds;function $c(e){return function(s){return e.apply(null,s)}}function jc(e){return c.isObject(e)&&e.isAxiosError===!0}const Cs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cs).forEach(([e,t])=>{Cs[t]=e});const Gc=Cs;function Xn(e){const t=new Pt(e),s=Cn(Pt.prototype.request,t);return c.extend(s,Pt.prototype,t,{allOwnKeys:!0}),c.extend(s,t,null,{allOwnKeys:!0}),s.create=function(r){return Xn(Ye(e,r))},s}const P=Xn(gs);P.Axios=Pt,P.CanceledError=Qe,P.CancelToken=Vc,P.isCancel=Gn,P.VERSION=Kn,P.toFormData=Mt,P.AxiosError=O,P.Cancel=P.CanceledError,P.all=function(t){return Promise.all(t)},P.spread=$c,P.isAxiosError=jc,P.mergeConfig=Ye,P.AxiosHeaders=me,P.formToJSON=e=>$n(c.isHTMLForm(e)?new FormData(e):e),P.HttpStatusCode=Gc,P.default=P;const zc=P,Ts=async function(e){const t=e,s=window.VITE_BACKEND_URL?window.VITE_BACKEND_URL:"https://chatadmin-gw.dev.mp.gob.bo",n={method:t.method,url:`${s}${t.url}`,headers:{Authorization:`Bearer ${e.token}`,"Content-Type":"application/json; charset=utf-8",...t.headers},data:t.data};return await zc(n).then(async function(r){return await r.data}).catch(async function(r){console.error(r);const i=await r.response.data;if(i.statusCode==401&&i.message=="Unauthorized")localStorage.clear();else throw i})},qc=async(e={})=>{const t={url:"/webchat/messages-by-app-and-phone",method:"POST",data:e.data,token:e.token};return await Ts(t).then(s=>s.response).catch(s=>{console.error(s)})},Zc=async(e={})=>{const t={url:"/webchat/send-messages-by-app-and-phone",method:"POST",data:e.data,token:e.token};return await Ts(t).then(s=>{}).catch(s=>{console.error(s)})},Jc=async(e={})=>{const t={url:"/chat/sync-virtual-host",method:"POST",data:e.data,token:e.token};return await Ts(t).then(s=>s.response).catch(s=>{console.error(s)})},Kc={class:"widget"},Qc={class:"header-widget"},Xc={class:"title-chat"},eu={class:"input-message w-full"},tu=["onSubmit"],su={class:"form-message"},nu={type:"submit"},ru={class:"jl-inputgroup-chat"},iu={type:"submit",class:"pointer"},au=h.defineComponent({__name:"Chat",props:{titlePrincipal:{type:String,default:"Comunicación en linea para consultas"},toggleChat:{type:Function,required:!0},tokenAuth:{type:String,required:!0},phoneUser:{type:String,required:!0}},setup(e){const t=e,s=h.ref("webchat"),n=h.ref(null),r=h.ref(null),i=h.ref([]),a=h.ref({virtualhost:""}),o=p=>p.startsWith("591")&&p.length===11?p.substring(3):p,u=h.ref(null),l=()=>{u.value&&(u.value.scrollTop=u.value.scrollHeight)},f=async p=>{p.preventDefault();const{virtualhost:w}=a.value;await Zc({token:t.tokenAuth,data:{virtualHost:w,queue:`widget_chat_${sessionStorage.getItem("tabBrowser")}`,device:"00000000",phone:o(t.phoneUser),app:s.value,message:r.value,widget:!0}}),r.value=null,l()},g=async p=>{p.resetConnection&&M(),T();const Y=await qc({token:t.tokenAuth,data:{phone:t.phoneUser,app:s.value,device:null}});Y&&(i.value=Y)},T=(p="webchat")=>{const{virtualhost:w}=a.value;if(!sessionStorage.getItem("tabBrowser")){let F=Date.now();sessionStorage.setItem("tabBrowser",`${F}`)}n.value=new gl(`${w}`,`widget_chat_${sessionStorage.getItem("tabBrowser")}`),n.value.connect(),n.value.subscribe(async()=>{await g({resetConnection:!1});const F=document.getElementById("messages-container");F.scrollTop=F.scrollHeight})},M=()=>{var p;(p=n.value)==null||p.disconnectClient()};return h.onMounted(async()=>{await g({resetConnection:!1});const p=`widget_chat_${t.phoneUser}`;a.value=await Jc({token:t.tokenAuth,data:{virtualHost:p}}),T(),l()}),(p,w)=>(h.openBlock(),h.createElementBlock("div",Kc,[h.createElementVNode("div",Qc,[h.createElementVNode("h4",Xc,h.toDisplayString(e.titlePrincipal),1),h.createVNode(Ol,{class:"pointer",onClick:w[0]||(w[0]=Y=>e.toggleChat())})]),h.createElementVNode("div",{class:"messages-container",id:"messages-container",ref_key:"messagesContainer",ref:u},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(Y,F)=>(h.openBlock(),h.createBlock(cl,{class:"message",key:F,message:Y},null,8,["message"]))),128))],512),h.createElementVNode("div",eu,[h.createElementVNode("form",{class:"message-send",onSubmit:h.withModifiers(f,["prevent"])},[h.createElementVNode("div",su,[h.createElementVNode("button",nu,[h.createVNode(Al)]),h.createElementVNode("div",ru,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":w[1]||(w[1]=Y=>r.value=Y),class:"jl2-input-chat",required:""},null,512),[[h.vModelText,r.value]]),h.createElementVNode("button",iu,[h.createVNode(Ml)])])])],40,tu)])]))}}),Mu="",ou=Ce(au,[["__scopeId","data-v-bacccd51"]]),lu={},cu={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uu=[h.createStaticVNode('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="#F28B0C" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="#F28B0C"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="#F28B0C"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="#F28B0C"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="#F28B0C"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>',2)];function du(e,t){return h.openBlock(),h.createElementBlock("svg",cu,uu)}const hu=Ce(lu,[["render",du]]),fu={key:0,class:"chat-box"},mu=h.defineComponent({__name:"Widget",props:{tokenAuth:{type:String,required:!0},phoneUser:{type:String,required:!0},titlePrincipal:{type:String}},setup(e){const t=h.ref(!1),s=()=>{t.value=!t.value};return(n,r)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",null,[h.createElementVNode("div",{id:"chat-circle",onClick:s},[h.createVNode(hu)]),t.value?(h.openBlock(),h.createElementBlock("div",fu,[h.createVNode(ou,{titlePrincipal:e.titlePrincipal,toggleChat:s,tokenAuth:e.tokenAuth,phoneUser:e.phoneUser},null,8,["titlePrincipal","tokenAuth","phoneUser"])])):h.createCommentVNode("",!0)])]))}}),Nu="",_u=Ce(mu,[["__scopeId","data-v-37207494"]]),pu={install(e,t){window.VITE_BACKEND_URL=t.VITE_BACKEND_URL,window.VITE_BROKER_URL=t.VITE_BROKER_URL,window.VITE_USERNAME=t.VITE_USERNAME,window.VITE_PASSWORD=t.VITE_PASSWORD}};_e.Widget=_u,_e.default=pu,Object.defineProperties(_e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
14
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){const n=new this(t);return s.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[jn]=this[jn]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=Ke(a);n[o]||(Ac(r,a),n[o]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}}Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.freezeMethods(Rt.prototype),c.freezeMethods(Rt);const me=Rt;function Ss(e,t){const s=this||gs,n=t||s,r=me.from(n.headers);let i=n.data;return c.forEach(e,function(o){i=o.call(s,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Gn(e){return!!(e&&e.__CANCEL__)}function Qe(e,t,s){O.call(this,e??"canceled",O.ERR_CANCELED,t,s),this.name="CanceledError"}c.inherits(Qe,O,{__CANCEL__:!0});function Pc(e,t,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(new O("Request failed with status code "+s.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const Yc=re.isStandardBrowserEnv?function(){return{write:function(s,n,r,i,a,o){const u=[];u.push(s+"="+encodeURIComponent(n)),c.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),c.isString(i)&&u.push("path="+i),c.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(s){const n=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Fc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lc(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function zn(e,t){return e&&!Fc(t)?Lc(e,t):t}const Uc=re.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let n;function r(i){let a=i;return t&&(s.setAttribute("href",a),a=s.href),s.setAttribute("href",a),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return n=r(window.location.href),function(a){const o=c.isString(a)?r(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function Ic(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wc(e,t){e=e||10;const s=new Array(e),n=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),f=n[i];a||(a=l),s[r]=u,n[r]=l;let g=i,T=0;for(;g!==r;)T+=s[g++],g=g%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-a<t)return;const M=f&&l-f;return M?Math.round(T*1e3/M):void 0}}function qn(e,t){let s=0;const n=Wc(50,250);return r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-s,u=n(o),l=i<=a;s=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:u||void 0,estimated:u&&a&&l?(a-i)/u:void 0,event:r};f[t?"download":"upload"]=!0,e(f)}}const xt={http:fc,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(s,n){let r=e.data;const i=me.from(e.headers).normalize(),a=e.responseType;let o;function u(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}c.isFormData(r)&&(re.isStandardBrowserEnv||re.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const M=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(M+":"+p))}const f=zn(e.baseURL,e.url);l.open(e.method.toUpperCase(),Hn(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function g(){if(!l)return;const M=me.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:M,config:e,request:l};Pc(function(F){s(F),u()},function(F){n(F),u()},w),l=null}if("onloadend"in l?l.onloadend=g:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(g)},l.onabort=function(){l&&(n(new O("Request aborted",O.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new O("Network Error",O.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Vn;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),n(new O(p,w.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,e,l)),l=null},re.isStandardBrowserEnv){const M=(e.withCredentials||Uc(f))&&e.xsrfCookieName&&Yc.read(e.xsrfCookieName);M&&i.set(e.xsrfHeaderName,M)}r===void 0&&i.setContentType(null),"setRequestHeader"in l&&c.forEach(i.toJSON(),function(p,w){l.setRequestHeader(w,p)}),c.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",qn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",qn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=M=>{l&&(n(!M||M.type?new Qe(null,e,l):M),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const T=Ic(f);if(T&&re.protocols.indexOf(T)===-1){n(new O("Unsupported protocol "+T+":",O.ERR_BAD_REQUEST,e));return}l.send(r||null)})}};c.forEach(xt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hc={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let s,n;for(let r=0;r<t&&(s=e[r],!(n=c.isString(s)?xt[s.toLowerCase()]:s));r++);if(!n)throw n===!1?new O(`Adapter ${s} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(c.hasOwnProp(xt,s)?`Adapter '${s}' is not available in the build`:`Unknown adapter '${s}'`);if(!c.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:xt};function bs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qe(null,e)}function Zn(e){return bs(e),e.headers=me.from(e.headers),e.data=Ss.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hc.getAdapter(e.adapter||gs.adapter)(e).then(function(n){return bs(e),n.data=Ss.call(e,e.transformResponse,n),n.headers=me.from(n.headers),n},function(n){return Gn(n)||(bs(e),n&&n.response&&(n.response.data=Ss.call(e,e.transformResponse,n.response),n.response.headers=me.from(n.response.headers))),Promise.reject(n)})}const Jn=e=>e instanceof me?e.toJSON():e;function Ye(e,t){t=t||{};const s={};function n(l,f,g){return c.isPlainObject(l)&&c.isPlainObject(f)?c.merge.call({caseless:g},l,f):c.isPlainObject(f)?c.merge({},f):c.isArray(f)?f.slice():f}function r(l,f,g){if(c.isUndefined(f)){if(!c.isUndefined(l))return n(void 0,l,g)}else return n(l,f,g)}function i(l,f){if(!c.isUndefined(f))return n(void 0,f)}function a(l,f){if(c.isUndefined(f)){if(!c.isUndefined(l))return n(void 0,l)}else return n(void 0,f)}function o(l,f,g){if(g in t)return n(l,f);if(g in e)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(l,f)=>r(Jn(l),Jn(f),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(f){const g=u[f]||r,T=g(e[f],t[f],f);c.isUndefined(T)&&g!==o||(s[f]=T)}),s}const Kn="1.4.0",ks={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ks[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qn={};ks.transitional=function(t,s,n){function r(i,a){return"[Axios v"+Kn+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(t===!1)throw new O(r(a," has been removed"+(s?" in "+s:"")),O.ERR_DEPRECATED);return s&&!Qn[a]&&(Qn[a]=!0,console.warn(r(a," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(i,a,o):!0}};function Bc(e,t,s){if(typeof e!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const i=n[r],a=t[i];if(a){const o=e[i],u=o===void 0||a(o,i,e);if(u!==!0)throw new O("option "+i+" must be "+u,O.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new O("Unknown option "+i,O.ERR_BAD_OPTION)}}const Os={assertOptions:Bc,validators:ks},Se=Os.validators;class At{constructor(t){this.defaults=t,this.interceptors={request:new Bn,response:new Bn}}request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Ye(this.defaults,s);const{transitional:n,paramsSerializer:r,headers:i}=s;n!==void 0&&Os.assertOptions(n,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1),r!=null&&(c.isFunction(r)?s.paramsSerializer={serialize:r}:Os.assertOptions(r,{encode:Se.function,serialize:Se.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let a;a=i&&c.merge(i.common,i[s.method]),a&&c.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),s.headers=me.concat(a,i);const o=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(s)===!1||(u=u&&w.synchronous,o.unshift(w.fulfilled,w.rejected))});const l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});let f,g=0,T;if(!u){const p=[Zn.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,l),T=p.length,f=Promise.resolve(s);g<T;)f=f.then(p[g++],p[g++]);return f}T=o.length;let M=s;for(g=0;g<T;){const p=o[g++],w=o[g++];try{M=p(M)}catch(Y){w.call(this,Y);break}}try{f=Zn.call(this,M)}catch(p){return Promise.reject(p)}for(g=0,T=l.length;g<T;)f=f.then(l[g++],l[g++]);return f}getUri(t){t=Ye(this.defaults,t);const s=zn(t.baseURL,t.url);return Hn(s,t.params,t.paramsSerializer)}}c.forEach(["delete","get","head","options"],function(t){At.prototype[t]=function(s,n){return this.request(Ye(n||{},{method:t,url:s,data:(n||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function s(n){return function(i,a,o){return this.request(Ye(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}At.prototype[t]=s(),At.prototype[t+"Form"]=s(!0)});const Pt=At;class Ds{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(i){s=i});const n=this;this.promise.then(r=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,o){n.reason||(n.reason=new Qe(i,a,o),s(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}static source(){let t;return{token:new Ds(function(r){t=r}),cancel:t}}}const Vc=Ds;function $c(e){return function(s){return e.apply(null,s)}}function jc(e){return c.isObject(e)&&e.isAxiosError===!0}const Cs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cs).forEach(([e,t])=>{Cs[t]=e});const Gc=Cs;function Xn(e){const t=new Pt(e),s=Cn(Pt.prototype.request,t);return c.extend(s,Pt.prototype,t,{allOwnKeys:!0}),c.extend(s,t,null,{allOwnKeys:!0}),s.create=function(r){return Xn(Ye(e,r))},s}const P=Xn(gs);P.Axios=Pt,P.CanceledError=Qe,P.CancelToken=Vc,P.isCancel=Gn,P.VERSION=Kn,P.toFormData=Mt,P.AxiosError=O,P.Cancel=P.CanceledError,P.all=function(t){return Promise.all(t)},P.spread=$c,P.isAxiosError=jc,P.mergeConfig=Ye,P.AxiosHeaders=me,P.formToJSON=e=>$n(c.isHTMLForm(e)?new FormData(e):e),P.HttpStatusCode=Gc,P.default=P;const zc=P,Ts=async function(e){const t=e,s=window.VITE_BACKEND_URL?window.VITE_BACKEND_URL:{}.VITE_BACKEND_URL,n={method:t.method,url:`${s}${t.url}`,headers:{Authorization:`Bearer ${e.token}`,"Content-Type":"application/json; charset=utf-8",...t.headers},data:t.data};return await zc(n).then(async function(r){return await r.data}).catch(async function(r){console.error(r);const i=await r.response.data;if(i.statusCode==401&&i.message=="Unauthorized")localStorage.clear();else throw i})},qc=async(e={})=>{const t={url:"/webchat/messages-by-app-and-phone",method:"POST",data:e.data,token:e.token};return await Ts(t).then(s=>s.response).catch(s=>{console.error(s)})},Zc=async(e={})=>{const t={url:"/webchat/send-messages-by-app-and-phone",method:"POST",data:e.data,token:e.token};return await Ts(t).then(s=>{}).catch(s=>{console.error(s)})},Jc=async(e={})=>{const t={url:"/chat/sync-virtual-host",method:"POST",data:e.data,token:e.token};return await Ts(t).then(s=>s.response).catch(s=>{console.error(s)})},Kc={class:"widget"},Qc={class:"header-widget"},Xc={class:"title-chat"},eu={class:"input-message w-full"},tu=["onSubmit"],su={class:"form-message"},nu={type:"submit"},ru={class:"jl-inputgroup-chat"},iu={type:"submit",class:"pointer"},au=h.defineComponent({__name:"Chat",props:{titlePrincipal:{type:String,default:"Comunicación en linea para consultas"},toggleChat:{type:Function,required:!0},tokenAuth:{type:String,required:!0},phoneUser:{type:String,required:!0}},setup(e){const t=e,s=h.ref("webchat"),n=h.ref(null),r=h.ref(null),i=h.ref([]),a=h.ref({virtualhost:""}),o=p=>p.startsWith("591")&&p.length===11?p.substring(3):p,u=h.ref(null),l=()=>{u.value&&(u.value.scrollTop=u.value.scrollHeight)},f=async p=>{p.preventDefault();const{virtualhost:w}=a.value;await Zc({token:t.tokenAuth,data:{virtualHost:w,queue:`widget_chat_${sessionStorage.getItem("tabBrowser")}`,device:"00000000",phone:o(t.phoneUser),app:s.value,message:r.value,widget:!0}}),r.value=null,l()},g=async p=>{p.resetConnection&&M(),T();const Y=await qc({token:t.tokenAuth,data:{phone:t.phoneUser,app:s.value,device:null}});Y&&(i.value=Y)},T=(p="webchat")=>{const{virtualhost:w}=a.value;if(!sessionStorage.getItem("tabBrowser")){let F=Date.now();sessionStorage.setItem("tabBrowser",`${F}`)}n.value=new gl(`${w}`,`widget_chat_${sessionStorage.getItem("tabBrowser")}`),n.value.connect(),n.value.subscribe(async()=>{await g({resetConnection:!1});const F=document.getElementById("messages-container");F.scrollTop=F.scrollHeight})},M=()=>{var p;(p=n.value)==null||p.disconnectClient()};return h.onMounted(async()=>{await g({resetConnection:!1});const p=`widget_chat_${t.phoneUser}`;a.value=await Jc({token:t.tokenAuth,data:{virtualHost:p}}),T(),l()}),(p,w)=>(h.openBlock(),h.createElementBlock("div",Kc,[h.createElementVNode("div",Qc,[h.createElementVNode("h4",Xc,h.toDisplayString(e.titlePrincipal),1),h.createVNode(Ol,{class:"pointer",onClick:w[0]||(w[0]=Y=>e.toggleChat())})]),h.createElementVNode("div",{class:"messages-container",id:"messages-container",ref_key:"messagesContainer",ref:u},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(Y,F)=>(h.openBlock(),h.createBlock(cl,{class:"message",key:F,message:Y},null,8,["message"]))),128))],512),h.createElementVNode("div",eu,[h.createElementVNode("form",{class:"message-send",onSubmit:h.withModifiers(f,["prevent"])},[h.createElementVNode("div",su,[h.createElementVNode("button",nu,[h.createVNode(Al)]),h.createElementVNode("div",ru,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":w[1]||(w[1]=Y=>r.value=Y),class:"jl2-input-chat",required:""},null,512),[[h.vModelText,r.value]]),h.createElementVNode("button",iu,[h.createVNode(Ml)])])])],40,tu)])]))}}),Mu="",ou=Ce(au,[["__scopeId","data-v-bacccd51"]]),lu={},cu={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uu=[h.createStaticVNode('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="#F28B0C" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="#F28B0C"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="#F28B0C"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="#F28B0C"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="#F28B0C"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>',2)];function du(e,t){return h.openBlock(),h.createElementBlock("svg",cu,uu)}const hu=Ce(lu,[["render",du]]),fu={key:0,class:"chat-box"},mu=h.defineComponent({__name:"Widget",props:{tokenAuth:{type:String,required:!0},phoneUser:{type:String,required:!0},titlePrincipal:{type:String}},setup(e){const t=h.ref(!1),s=()=>{t.value=!t.value};return(n,r)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",null,[h.createElementVNode("div",{id:"chat-circle",onClick:s},[h.createVNode(hu)]),t.value?(h.openBlock(),h.createElementBlock("div",fu,[h.createVNode(ou,{titlePrincipal:e.titlePrincipal,toggleChat:s,tokenAuth:e.tokenAuth,phoneUser:e.phoneUser},null,8,["titlePrincipal","tokenAuth","phoneUser"])])):h.createCommentVNode("",!0)])]))}}),Nu="",_u=Ce(mu,[["__scopeId","data-v-d206ec1e"]]),pu={install(e,t){window.VITE_BACKEND_URL=t.VITE_BACKEND_URL,window.VITE_BROKER_URL=t.VITE_BROKER_URL,window.VITE_USERNAME=t.VITE_USERNAME,window.VITE_PASSWORD=t.VITE_PASSWORD}};_e.Widget=_u,_e.default=pu,Object.defineProperties(_e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vue-wiguet-chatweb",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.10",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -30,15 +30,19 @@
|
|
30
30
|
"preview": "vite preview"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
+
"@vueuse/core": "^10.9.0",
|
33
34
|
"axios": "^1.4.0",
|
34
|
-
"
|
35
|
+
"luxon": "^3.4.4",
|
35
36
|
"socket.io-client": "^4.7.2",
|
37
|
+
"uuid": "^9.0.1",
|
36
38
|
"vite-plugin-dts": "^3.4.0",
|
37
39
|
"vue": "^3.3.4",
|
38
40
|
"vue-rabbit-frontend": "^0.0.15"
|
39
41
|
},
|
40
42
|
"devDependencies": {
|
43
|
+
"@types/luxon": "^3.4.2",
|
41
44
|
"@types/node": "^20.4.6",
|
45
|
+
"@types/uuid": "^9.0.8",
|
42
46
|
"@vitejs/plugin-vue": "^4.2.3",
|
43
47
|
"typescript": "^5.0.2",
|
44
48
|
"vite": "^4.4.5",
|