vue-wiguet-chatweb 0.0.21 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .bubble[data-v-55fd4dd9]{--r: 25px;--t: 30px;width:100%;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;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;height:100%}.left[data-v-55fd4dd9]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:0;background-color:#fcd7ae;color:#4d4d4d}.bubble>.content-left[data-v-55fd4dd9]{margin-right:10px;margin-bottom:1px}.right[data-v-55fd4dd9]{--_d: 100%;border-right:var(--t) solid #0000;margin-right:0;background-color:#fdeedb;color:#4d4d4d}.bubble>.content-right[data-v-55fd4dd9]{margin-bottom:1px;margin-right:10px}.message-text[data-v-55fd4dd9]{margin-bottom:10px;overflow-wrap:break-word}.detail-message[data-v-55fd4dd9]{font-size:10px;color:gray;display:flex;justify-content:space-between}.chat-message[data-v-55fd4dd9]{display:flex;flex-direction:column;justify-content:center}.message[data-v-55fd4dd9]{width:100%;display:flex}.message-left[data-v-55fd4dd9]{justify-content:start}.message-right[data-v-55fd4dd9]{justify-content:end}.target[data-v-55fd4dd9]{padding:.5rem 0;width:100%}.btn-danger[data-v-55fd4dd9]{background-color:transparent;border:0;border-radius:50%;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.btn-danger[data-v-55fd4dd9] svg[data-v-55fd4dd9]{width:24px;height:24px}.btn-danger[data-v-55fd4dd9][data-v-55fd4dd9]:hover{background-color:#ff00003a}.btn-container-widget[data-v-55fd4dd9]{display:flex;align-items:center;position:absolute;left:-40px;top:50%;transform:translateY(-50%)}.message-container[data-v-55fd4dd9]{min-width:80%;max-width:80%;position:relative;margin-bottom:.5rem}.messages-container-list[data-v-55fd4dd9]{width:100%}.spinner_ajPY[data-v-d9a6b2b7]{fill:#fe6d00;transform-origin:center;animation:spinner_AtaB-d9a6b2b7 .75s infinite linear}@keyframes spinner_AtaB-d9a6b2b7{to{transform:rotate(360deg)}}.btn-primary[data-v-659d93d4]{padding:10px 12px}.btn-primary[data-v-659d93d4][data-v-659d93d4]:hover{background-color:#f28b0c1a}.btn-close[data-v-659d93d4]{padding:0;background-color:transparent;border:none;display:flex;align-items:center;border-radius:50%}.btn-close[data-v-659d93d4][data-v-659d93d4]:hover{background-color:#cacaca88}.messages-container[data-v-659d93d4]{position:relative}.loader[data-v-659d93d4]{position:absolute;top:18px;z-index:5;left:50%;transform:translate(-50%,-50%)}.header-widget{height:10%;display:flex;justify-content:space-between;align-items:center}.jl2-input-chat{height:20px;width:95%;border:none;resize:none;border-top-left-radius:16px;border-bottom-left-radius:16px;margin-left:8px;margin-top:8px;margin-bottom:8px;overflow:hidden}.jl2-input-chat:focus-visible{outline:none}.jl-inputgroup-chat{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{border:none;background:none}.jl-inputgroup-chat>input:hover{outline:none}.form-message{display:flex;justify-content:space-between}.form-message button,.jl-inputgroup-chat>button{border:none!important;background:none}.form-message button,.jl-inputgroup-chat>button:focus{box-shadow:none}.form-message button,.jl-inputgroup-chat>button:active{box-shadow:none}.widget{margin:auto;height:100%;display:flex;width:100%;flex-direction:column;justify-content:space-evenly}.messages-container{height:80%;overflow-y:scroll;border:1px solid lightgray;border-radius:.5rem;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::-webkit-scrollbar{width:8px}.messages-container::-webkit-scrollbar-track{background-color:transparent}.messages-container::-webkit-scrollbar-thumb{background-color:#f28b0c;border-radius:8px}.input-message{border-left:1px solid var(--fge-gray-lines-color);border-right:1px solid var(--fge-gray-lines-color)}.message-send{border-top:1px solid var(--fge-gray-lines-color);padding-top:20px;width:90%;margin:auto}.bubble{--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{--_d: 0%;border-left:var(--t) solid #0000;margin-right:var(--t);background-color:#fcd7ae;color:#4d4d4d;place-self:start}.bubble>.content-left{margin-right:10px;margin-bottom:1px}.right{--_d: 100%;border-right:var(--t) solid #0000;margin-left:var(--t);background-color:#fdeedb;color:#4d4d4d;place-self:end}.bubble>.content-right{margin-bottom:1px;margin-right:10px}.message{text-align:initial;word-break:break-all;margin-bottom:10px}.detail-message{font-size:10px;color:gray}.chat-message{max-width:250px;min-width:90%;display:flex;flex-direction:column;justify-content:center}#chat-circle{margin:auto;position:fixed;bottom:50px;right:50px;color:#fff;cursor:pointer}.title-chat{font-size:1.1vw;font-weight:700;color:#4d4d4d}.chat-box{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{cursor:pointer}.widget-container[data-v-e10a4b97]{position:relative}.new-message-badge[data-v-e10a4b97]{position:absolute;background-color:red;width:30px;height:30px;display:flex;font-family:Roboto,sans-serif;align-items:center;font-weight:500;justify-content:center;border-radius:50%;right:-2px;top:-4px;z-index:2}
1
+ .bubble[data-v-a9fc4a05]{--r: 25px;--t: 30px;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;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;height:100%}.left[data-v-a9fc4a05]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:0;background-color:#fcd7ae;color:#4d4d4d}.bubble>.content-left[data-v-a9fc4a05]{margin-right:10px;margin-bottom:1px}.right[data-v-a9fc4a05]{--_d: 100%;border-right:var(--t) solid #0000;margin-right:0;background-color:#fdeedb;color:#4d4d4d}.bubble>.content-right[data-v-a9fc4a05]{margin-bottom:1px;margin-right:10px}.message-text[data-v-a9fc4a05]{margin-bottom:10px;overflow-wrap:break-word}.detail-message[data-v-a9fc4a05]{font-size:10px;color:gray;display:flex;justify-content:space-between}.chat-message[data-v-a9fc4a05]{display:flex;flex-direction:column;justify-content:center}.message[data-v-a9fc4a05]{width:100%;display:flex}.message-left[data-v-a9fc4a05]{justify-content:start}.message-right[data-v-a9fc4a05]{justify-content:end}.target[data-v-a9fc4a05]{padding:.5rem 0;width:100%}.btn-danger[data-v-a9fc4a05]{background-color:transparent;border:0;border-radius:50%;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.btn-danger[data-v-a9fc4a05] svg[data-v-a9fc4a05]{width:24px;height:24px}.btn-danger[data-v-a9fc4a05][data-v-a9fc4a05]:hover{background-color:#ff00003a}.btn-container-widget[data-v-a9fc4a05]{display:flex;align-items:center;position:absolute;left:-40px;top:50%;transform:translateY(-50%)}.message-container[data-v-a9fc4a05]{min-width:80%;max-width:80%;position:relative;margin-bottom:.5rem}.messages-container-list[data-v-a9fc4a05]{width:100%}.spinner_ajPY[data-v-d9a6b2b7]{fill:#fe6d00;transform-origin:center;animation:spinner_AtaB-d9a6b2b7 .75s infinite linear}@keyframes spinner_AtaB-d9a6b2b7{to{transform:rotate(360deg)}}.btn-primary[data-v-ae1bd995]{padding:10px 12px}.btn-primary[data-v-ae1bd995][data-v-ae1bd995]:hover{background-color:#f28b0c1a}.btn-close[data-v-ae1bd995]{padding:0;background-color:transparent;border:none;display:flex;align-items:center;border-radius:50%}.btn-close[data-v-ae1bd995][data-v-ae1bd995]:hover{background-color:#cacaca88}.messages-container[data-v-ae1bd995]{position:relative}.loader[data-v-ae1bd995]{position:absolute;top:18px;z-index:5;left:50%;transform:translate(-50%,-50%)}.header-widget{height:5%;display:flex;justify-content:space-between;align-items:center}.jl2-input-chat{height:20px;width:95%;border:none;resize:none;border-top-left-radius:16px;border-bottom-left-radius:16px;margin-left:8px;margin-top:8px;margin-bottom:8px;overflow:hidden}.jl2-input-chat:focus-visible{outline:none}.jl-inputgroup-chat{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{border:none;background:none}.jl-inputgroup-chat>input:hover{outline:none}.form-message{display:flex;justify-content:space-between}.form-message button,.jl-inputgroup-chat>button{border:none!important;background:none}.form-message button,.jl-inputgroup-chat>button:focus{box-shadow:none}.form-message button,.jl-inputgroup-chat>button:active{box-shadow:none}.widget{margin:auto;height:100%;display:flex;width:100%;flex-direction:column;justify-content:space-evenly}.messages-container{height:80%;overflow-y:scroll;border:1px solid lightgray;border-radius:.5rem;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::-webkit-scrollbar{width:8px}.messages-container::-webkit-scrollbar-track{background-color:transparent}.messages-container::-webkit-scrollbar-thumb{background-color:#f28b0c;border-radius:8px}.input-message{border-left:1px solid var(--fge-gray-lines-color);border-right:1px solid var(--fge-gray-lines-color)}.message-send{padding-top:20px;width:90%;margin:auto}#chat-circle{margin:auto;position:fixed;bottom:50px;right:50px;color:#fff;cursor:pointer}.title-chat{font-size:1rem;font-weight:700;color:var(--chat-text-color);margin:0}.chat-box{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{cursor:pointer}.widget-container[data-v-bd22968f]{position:relative}.new-message-badge[data-v-bd22968f]{position:absolute;background-color:red;width:30px;height:30px;display:flex;font-family:Roboto,sans-serif;align-items:center;font-weight:500;justify-content:center;border-radius:50%;right:-2px;top:-4px;z-index:2}
@@ -8009,7 +8009,7 @@ const nu = /* @__PURE__ */ me(Kc, [["render", tu]]), su = { class: "messages-con
8009
8009
  ], 64));
8010
8010
  }
8011
8011
  });
8012
- const fu = /* @__PURE__ */ me(hu, [["__scopeId", "data-v-55fd4dd9"]]);
8012
+ const fu = /* @__PURE__ */ me(hu, [["__scopeId", "data-v-a9fc4a05"]]);
8013
8013
  const mu = {}, Ur = (t) => (Zr("data-v-d9a6b2b7"), t = t(), jr(), t), yu = {
8014
8014
  viewBox: "0 0 24 24",
8015
8015
  xmlns: "http://www.w3.org/2000/svg",
@@ -8170,7 +8170,7 @@ const Tu = { class: "widget" }, Ou = { class: "header-widget" }, _u = { class: "
8170
8170
  }, p = (C = "webchat") => {
8171
8171
  const { virtualhost: T } = a.value;
8172
8172
  if (!sessionStorage.getItem("tabBrowser")) {
8173
- let R = Date.now();
8173
+ let R = c.value;
8174
8174
  sessionStorage.setItem("tabBrowser", `${R}`);
8175
8175
  }
8176
8176
  s.value = new ui(
@@ -8247,7 +8247,7 @@ const Tu = { class: "widget" }, Ou = { class: "header-widget" }, _u = { class: "
8247
8247
  ]));
8248
8248
  }
8249
8249
  });
8250
- const Fu = /* @__PURE__ */ me(Au, [["__scopeId", "data-v-659d93d4"]]), Ru = {}, Vu = {
8250
+ const Fu = /* @__PURE__ */ me(Au, [["__scopeId", "data-v-ae1bd995"]]), Ru = {}, Vu = {
8251
8251
  width: "87",
8252
8252
  height: "87",
8253
8253
  viewBox: "0 0 87 87",
@@ -8286,6 +8286,7 @@ const $u = /* @__PURE__ */ me(Ru, [["render", Uu]]), Hu = {
8286
8286
  }, [
8287
8287
  Gt(v("div", {
8288
8288
  id: "chat-circle",
8289
+ role: "button",
8289
8290
  onClick: r,
8290
8291
  class: "widget-container"
8291
8292
  }, [
@@ -8313,7 +8314,7 @@ const $u = /* @__PURE__ */ me(Ru, [["render", Uu]]), Hu = {
8313
8314
  ], 2));
8314
8315
  }
8315
8316
  });
8316
- const qu = /* @__PURE__ */ me(Pu, [["__scopeId", "data-v-e10a4b97"]]), Zu = {
8317
+ const qu = /* @__PURE__ */ me(Pu, [["__scopeId", "data-v-bd22968f"]]), Zu = {
8317
8318
  install(t, e) {
8318
8319
  window.VITE_BACKEND_URL = e.VITE_BACKEND_URL, window.VITE_BROKER_URL = e.VITE_BROKER_URL, window.VITE_USERNAME = e.VITE_USERNAME, window.VITE_PASSWORD = e.VITE_PASSWORD;
8319
8320
  }
@@ -1,5 +1,5 @@
1
- (function(se,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(se=typeof globalThis<"u"?globalThis:se||self,u(se["vue-wiguet-chatweb"]={},se.Vue))})(this,function(se,u){"use strict";let je;const _r=new Uint8Array(16);function Or(){if(!je&&(je=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!je))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return je(_r)}const V=[];for(let t=0;t<256;++t)V.push((t+256).toString(16).slice(1));function Cr(t,e=0){return V[t[e+0]]+V[t[e+1]]+V[t[e+2]]+V[t[e+3]]+"-"+V[t[e+4]]+V[t[e+5]]+"-"+V[t[e+6]]+V[t[e+7]]+"-"+V[t[e+8]]+V[t[e+9]]+"-"+V[t[e+10]]+V[t[e+11]]+V[t[e+12]]+V[t[e+13]]+V[t[e+14]]+V[t[e+15]]}const hn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nr(t,e,n){if(hn.randomUUID&&!e&&!t)return hn.randomUUID();t=t||{};const s=t.random||(t.rng||Or)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){n=n||0;for(let r=0;r<16;++r)e[n+r]=s[r];return e}return Cr(s)}var Ir=Object.defineProperty,vr=(t,e,n)=>e in t?Ir(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xr=(t,e,n)=>(vr(t,typeof e!="symbol"?e+"":e,n),n);const Ae={LF:`
1
+ (function(se,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(se=typeof globalThis<"u"?globalThis:se||self,u(se["vue-wiguet-chatweb"]={},se.Vue))})(this,function(se,u){"use strict";let je;const _r=new Uint8Array(16);function Or(){if(!je&&(je=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!je))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return je(_r)}const V=[];for(let t=0;t<256;++t)V.push((t+256).toString(16).slice(1));function Cr(t,e=0){return V[t[e+0]]+V[t[e+1]]+V[t[e+2]]+V[t[e+3]]+"-"+V[t[e+4]]+V[t[e+5]]+"-"+V[t[e+6]]+V[t[e+7]]+"-"+V[t[e+8]]+V[t[e+9]]+"-"+V[t[e+10]]+V[t[e+11]]+V[t[e+12]]+V[t[e+13]]+V[t[e+14]]+V[t[e+15]]}const hn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nr(t,e,n){if(hn.randomUUID&&!e&&!t)return hn.randomUUID();t=t||{};const s=t.random||(t.rng||Or)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){n=n||0;for(let r=0;r<16;++r)e[n+r]=s[r];return e}return Cr(s)}var vr=Object.defineProperty,Ir=(t,e,n)=>e in t?vr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xr=(t,e,n)=>(Ir(t,typeof e!="symbol"?e+"":e,n),n);const Ae={LF:`
2
2
  `,NULL:"\0"};class re{constructor(e){const{command:n,headers:s,body:r,binaryBody:i,escapeHeaderValues:o,skipContentLengthHeader:a}=e;this.command=n,this.headers=Object.assign({},s||{}),i?(this._binaryBody=i,this.isBinaryBody=!0):(this._body=r||"",this.isBinaryBody=!1),this.escapeHeaderValues=o||!1,this.skipContentLengthHeader=a||!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(e,n){const s={},r=i=>i.replace(/^\s+|\s+$/g,"");for(const i of e.headers.reverse()){i.indexOf(":");const o=r(i[0]);let a=r(i[1]);n&&e.command!=="CONNECT"&&e.command!=="CONNECTED"&&(a=re.hdrValueUnEscape(a)),s[o]=a}return new re({command:e.command,headers:s,binaryBody:e.binaryBody,escapeHeaderValues:n})}toString(){return this.serializeCmdAndHeaders()}serialize(){const e=this.serializeCmdAndHeaders();return this.isBinaryBody?re.toUnit8Array(e,this._binaryBody).buffer:e+this._body+Ae.NULL}serializeCmdAndHeaders(){const e=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(const n of Object.keys(this.headers||{})){const s=this.headers[n];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?e.push(`${n}:${re.hdrValueEscape(`${s}`)}`):e.push(`${n}:${s}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&e.push(`content-length:${this.bodyLength()}`),e.join(Ae.LF)+Ae.LF+Ae.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){const e=this.binaryBody;return e?e.length:0}static sizeOfUTF8(e){return e?new TextEncoder().encode(e).length:0}static toUnit8Array(e,n){const s=new TextEncoder().encode(e),r=new Uint8Array([0]),i=new Uint8Array(s.length+n.length+r.length);return i.set(s),i.set(n,s.length),i.set(r,s.length+n.length),i}static marshall(e){return new re(e).serialize()}static hdrValueEscape(e){return e.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(e){return e.replace(/\\r/g,"\r").replace(/\\n/g,`
3
- `).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const fn=0,Ge=10,Ye=13,Dr=58;class Mr{constructor(e,n){this.onFrame=e,this.onIncomingPing=n,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(e,n=!1){let s;if(typeof e=="string"?s=this._encoder.encode(e):s=new Uint8Array(e),n&&s[s.length-1]!==0){const r=new Uint8Array(s.length+1);r.set(s,0),r[s.length]=0,s=r}for(let r=0;r<s.length;r++){const i=s[r];this._onByte(i)}}_collectFrame(e){if(e!==fn&&e!==Ye){if(e===Ge){this.onIncomingPing();return}this._onByte=this._collectCommand,this._reinjectByte(e)}}_collectCommand(e){if(e!==Ye){if(e===Ge){this._results.command=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaders;return}this._consumeByte(e)}}_collectHeaders(e){if(e!==Ye){if(e===Ge){this._setupCollectBody();return}this._onByte=this._collectHeaderKey,this._reinjectByte(e)}}_reinjectByte(e){this._onByte(e)}_collectHeaderKey(e){if(e===Dr){this._headerKey=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaderValue;return}this._consumeByte(e)}_collectHeaderValue(e){if(e!==Ye){if(e===Ge){this._results.headers.push([this._headerKey,this._consumeTokenAsUTF8()]),this._headerKey=void 0,this._onByte=this._collectHeaders;return}this._consumeByte(e)}}_setupCollectBody(){const e=this._results.headers.filter(n=>n[0]==="content-length")[0];e?(this._bodyBytesRemaining=parseInt(e[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(e){if(e===fn){this._retrievedBody();return}this._consumeByte(e)}_collectBodyFixedSize(e){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(e)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(e){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",e)}this._initState()}_consumeByte(e){this._token.push(e)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const e=new Uint8Array(this._token);return this._token=[],e}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}var X;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSING=2]="CLOSING",t[t.CLOSED=3]="CLOSED"})(X=X||(X={}));var H;(function(t){t[t.ACTIVE=0]="ACTIVE",t[t.DEACTIVATING=1]="DEACTIVATING",t[t.INACTIVE=2]="INACTIVE"})(H=H||(H={}));class W{constructor(e){this.versions=e}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(e=>`v${e.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 Ar(t,e){t.terminate=function(){const n=()=>{};this.onerror=n,this.onmessage=n,this.onopen=n;const s=new Date,r=Math.random().toString().substring(2,8),i=this.onclose;this.onclose=o=>{const a=new Date().getTime()-s.getTime();e(`Discarded socket (#${r}) closed after ${a}ms, with code/reason: ${o.code}/${o.reason}`)},this.close(),i==null||i.call(t,{code:4001,reason:`Quick discarding socket (#${r}) without waiting for the shutdown sequence.`,wasClean:!1})}}class Vr{constructor(e,n,s){this._client=e,this._webSocket=n,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,o=this._subscriptions[i]||this.onUnhandledMessage,a=r,c=this,l=this._connectedVersion===W.V1_2?a.headers.ack:a.headers["message-id"];a.ack=(d={})=>c.ack(l,i,d),a.nack=(d={})=>c.nack(l,i,d),o(a)},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=s.debug,this.stompVersions=s.stompVersions,this.connectHeaders=s.connectHeaders,this.disconnectHeaders=s.disconnectHeaders,this.heartbeatIncoming=s.heartbeatIncoming,this.heartbeatOutgoing=s.heartbeatOutgoing,this.splitLargeFrames=s.splitLargeFrames,this.maxWebSocketChunkSize=s.maxWebSocketChunkSize,this.forceBinaryWSFrames=s.forceBinaryWSFrames,this.logRawCommunication=s.logRawCommunication,this.appendMissingNULLonIncoming=s.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=s.discardWebsocketOnCommFailure,this.onConnect=s.onConnect,this.onDisconnect=s.onDisconnect,this.onStompError=s.onStompError,this.onWebSocketClose=s.onWebSocketClose,this.onWebSocketError=s.onWebSocketError,this.onUnhandledMessage=s.onUnhandledMessage,this.onUnhandledReceipt=s.onUnhandledReceipt,this.onUnhandledFrame=s.onUnhandledFrame}get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}start(){const e=new Mr(n=>{const s=re.fromRawFrame(n,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${s}`),(this._serverFrameHandlers[s.command]||this.onUnhandledFrame)(s)},()=>{this.debug("<<< PONG")});this._webSocket.onmessage=n=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const s=n.data instanceof ArrayBuffer?new TextDecoder().decode(n.data):n.data;this.debug(`<<< ${s}`)}e.parseChunk(n.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=n=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(n)},this._webSocket.onerror=n=>{this.onWebSocketError(n)},this._webSocket.onopen=()=>{const n=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),n["accept-version"]=this.stompVersions.supportedVersions(),n["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:n})}}_setupHeartbeat(e){if(e.version!==W.V1_1&&e.version!==W.V1_2||!e["heart-beat"])return;const[n,s]=e["heart-beat"].split(",").map(r=>parseInt(r,10));if(this.heartbeatOutgoing!==0&&s!==0){const r=Math.max(this.heartbeatOutgoing,s);this.debug(`send PING every ${r}ms`),this._pinger=setInterval(()=>{this._webSocket.readyState===X.OPEN&&(this._webSocket.send(Ae.LF),this.debug(">>> PING"))},r)}if(this.heartbeatIncoming!==0&&n!==0){const r=Math.max(this.heartbeatIncoming,n);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===X.CONNECTING||this._webSocket.readyState===X.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&Ar(this._webSocket,e=>this.debug(e)),this._webSocket.terminate()}_transmit(e){const{command:n,headers:s,body:r,binaryBody:i,skipContentLengthHeader:o}=e,a=new re({command:n,headers:s,body:r,binaryBody:i,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:o});let c=a.serialize();if(this.logRawCommunication?this.debug(`>>> ${c}`):this.debug(`>>> ${a}`),this.forceBinaryWSFrames&&typeof c=="string"&&(c=new TextEncoder().encode(c)),typeof c!="string"||!this.splitLargeFrames)this._webSocket.send(c);else{let l=c;for(;l.length>0;){const d=l.substring(0,this.maxWebSocketChunkSize);l=l.substring(this.maxWebSocketChunkSize),this._webSocket.send(d),this.debug(`chunk sent = ${d.length}, remaining = ${l.length}`)}}}dispose(){if(this.connected)try{const e=Object.assign({},this.disconnectHeaders);e.receipt||(e.receipt=`close-${this._counter++}`),this.watchForReceipt(e.receipt,n=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(n)}),this._transmit({command:"DISCONNECT",headers:e})}catch(e){this.debug(`Ignoring error during disconnect ${e}`)}else(this._webSocket.readyState===X.CONNECTING||this._webSocket.readyState===X.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(e){const{destination:n,headers:s,body:r,binaryBody:i,skipContentLengthHeader:o}=e,a=Object.assign({destination:n},s);this._transmit({command:"SEND",headers:a,body:r,binaryBody:i,skipContentLengthHeader:o})}watchForReceipt(e,n){this._receiptWatchers[e]=n}subscribe(e,n,s={}){s=Object.assign({},s),s.id||(s.id=`sub-${this._counter++}`),s.destination=e,this._subscriptions[s.id]=n,this._transmit({command:"SUBSCRIBE",headers:s});const r=this;return{id:s.id,unsubscribe(i){return r.unsubscribe(s.id,i)}}}unsubscribe(e,n={}){n=Object.assign({},n),delete this._subscriptions[e],n.id=e,this._transmit({command:"UNSUBSCRIBE",headers:n})}begin(e){const n=e||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:n}});const s=this;return{id:n,commit(){s.commit(n)},abort(){s.abort(n)}}}commit(e){this._transmit({command:"COMMIT",headers:{transaction:e}})}abort(e){this._transmit({command:"ABORT",headers:{transaction:e}})}ack(e,n,s={}){s=Object.assign({},s),this._connectedVersion===W.V1_2?s.id=e:s["message-id"]=e,s.subscription=n,this._transmit({command:"ACK",headers:s})}nack(e,n,s={}){return s=Object.assign({},s),this._connectedVersion===W.V1_2?s.id=e:s["message-id"]=e,s.subscription=n,this._transmit({command:"NACK",headers:s})}}class Fr{constructor(e={}){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=H.INACTIVE;const n=()=>{};this.debug=n,this.beforeConnect=n,this.onConnect=n,this.onDisconnect=n,this.onUnhandledMessage=n,this.onUnhandledReceipt=n,this.onUnhandledFrame=n,this.onStompError=n,this.onWebSocketClose=n,this.onWebSocketError=n,this.logRawCommunication=!1,this.onChangeState=n,this.connectHeaders={},this._disconnectHeaders={},this.configure(e)}get webSocket(){var e;return(e=this._stompHandler)==null?void 0:e._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(e){this._disconnectHeaders=e,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===H.ACTIVE}_changeState(e){this.state=e,this.onChangeState(e)}configure(e){Object.assign(this,e)}activate(){const e=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(H.ACTIVE),this._connect()};this.state===H.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{e()})):e()}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 e=this._createWebSocket();this._stompHandler=new Vr(this,e,{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:n=>{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(n)},onDisconnect:n=>{this.onDisconnect(n)},onStompError:n=>{this.onStompError(n)},onWebSocketClose:n=>{this._stompHandler=void 0,this.state===H.DEACTIVATING&&this._changeState(H.INACTIVE),this.onWebSocketClose(n),this.active&&this._schedule_reconnect()},onWebSocketError:n=>{this.onWebSocketError(n)},onUnhandledMessage:n=>{this.onUnhandledMessage(n)},onUnhandledReceipt:n=>{this.onUnhandledReceipt(n)},onUnhandledFrame:n=>{this.onUnhandledFrame(n)}}),this._stompHandler.start()}_createWebSocket(){let e;if(this.webSocketFactory)e=this.webSocketFactory();else if(this.brokerURL)e=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return e.binaryType="arraybuffer",e}_schedule_reconnect(){this.reconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`),this._reconnector=setTimeout(()=>{this._connect()},this.reconnectDelay))}async deactivate(e={}){var n;const s=e.force||!1,r=this.active;let i;if(this.state===H.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(H.DEACTIVATING),this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==X.CLOSED){const o=this._stompHandler.onWebSocketClose;i=new Promise((a,c)=>{this._stompHandler.onWebSocketClose=l=>{o(l),a()}})}else return this._changeState(H.INACTIVE),Promise.resolve();return s?(n=this._stompHandler)==null||n.discardWebsocket():r&&this._disposeStompHandler(),i}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(e){this._checkConnection(),this._stompHandler.publish(e)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(e,n){this._checkConnection(),this._stompHandler.watchForReceipt(e,n)}subscribe(e,n,s={}){return this._checkConnection(),this._stompHandler.subscribe(e,n,s)}unsubscribe(e,n={}){this._checkConnection(),this._stompHandler.unsubscribe(e,n)}begin(e){return this._checkConnection(),this._stompHandler.begin(e)}commit(e){this._checkConnection(),this._stompHandler.commit(e)}abort(e){this._checkConnection(),this._stompHandler.abort(e)}ack(e,n,s={}){this._checkConnection(),this._stompHandler.ack(e,n,s)}nack(e,n,s={}){this._checkConnection(),this._stompHandler.nack(e,n,s)}}class Rr{constructor(e,n){xr(this,"client"),this.virtualHost=e,this.queue=n,this.client=new Fr({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((e,n)=>{this.client.onConnect=()=>{e()},this.client.activate()})}async disconnectClient(){this.client.onDisconnect=()=>{},this.client.deactivate(),this.client.unsubscribe("")}async subscribe(e){await this.connect(),this.client.subscribe(`/queue/${this.queue}`,n=>{const s=JSON.parse(n.body);e(s)})}async publish(e){this.client.publish({destination:`/queue/${this.queue}`,body:JSON.stringify({data:e})})}}const ie=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Lr={},Wr={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Br=[u.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),u.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 Ur(t,e){return u.openBlock(),u.createElementBlock("svg",Wr,Br)}const $r=ie(Lr,[["render",Ur]]),Hr={},Pr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},zr=[u.createElementVNode("path",{fill:"#F28B0C",d:"M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"},null,-1)];function qr(t,e){return u.openBlock(),u.createElementBlock("svg",Pr,zr)}const Zr=ie(Hr,[["render",qr]]);function mn(t,e){return function(){return t.apply(e,arguments)}}const{toString:jr}=Object.prototype,{getPrototypeOf:Nt}=Object,Je=(t=>e=>{const n=jr.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),K=t=>(t=t.toLowerCase(),e=>Je(e)===t),Ke=t=>e=>typeof e===t,{isArray:Se}=Array,Ve=Ke("undefined");function Gr(t){return t!==null&&!Ve(t)&&t.constructor!==null&&!Ve(t.constructor)&&P(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const yn=K("ArrayBuffer");function Yr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&yn(t.buffer),e}const Jr=Ke("string"),P=Ke("function"),pn=Ke("number"),Qe=t=>t!==null&&typeof t=="object",Kr=t=>t===!0||t===!1,Xe=t=>{if(Je(t)!=="object")return!1;const e=Nt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Qr=K("Date"),Xr=K("File"),ei=K("Blob"),ti=K("FileList"),ni=t=>Qe(t)&&P(t.pipe),si=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||P(t.append)&&((e=Je(t))==="formdata"||e==="object"&&P(t.toString)&&t.toString()==="[object FormData]"))},ri=K("URLSearchParams"),ii=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fe(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),Se(t))for(s=0,r=t.length;s<r;s++)e.call(null,t[s],s,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(s=0;s<o;s++)a=i[s],e.call(null,t[a],a,t)}}function gn(t,e){e=e.toLowerCase();const n=Object.keys(t);let s=n.length,r;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}const wn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Sn=t=>!Ve(t)&&t!==wn;function It(){const{caseless:t}=Sn(this)&&this||{},e={},n=(s,r)=>{const i=t&&gn(e,r)||r;Xe(e[i])&&Xe(s)?e[i]=It(e[i],s):Xe(s)?e[i]=It({},s):Se(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&Fe(arguments[s],n);return e}const oi=(t,e,n,{allOwnKeys:s}={})=>(Fe(e,(r,i)=>{n&&P(r)?t[i]=mn(r,n):t[i]=r},{allOwnKeys:s}),t),ai=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ci=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},li=(t,e,n,s)=>{let r,i,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],(!s||s(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Nt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ui=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},di=t=>{if(!t)return null;if(Se(t))return t;let e=t.length;if(!pn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},hi=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Nt(Uint8Array)),fi=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(t,i[0],i[1])}},mi=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},yi=K("HTMLFormElement"),pi=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),bn=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),gi=K("RegExp"),kn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};Fe(n,(r,i)=>{e(r,i,t)!==!1&&(s[i]=r)}),Object.defineProperties(t,s)},wi=t=>{kn(t,(e,n)=>{if(P(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(P(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Si=(t,e)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Se(t)?s(t):s(String(t).split(e)),n},bi=()=>{},ki=(t,e)=>(t=+t,Number.isFinite(t)?t:e),vt="abcdefghijklmnopqrstuvwxyz",Tn="0123456789",En={DIGIT:Tn,ALPHA:vt,ALPHA_DIGIT:vt+vt.toUpperCase()+Tn},Ti=(t=16,e=En.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function Ei(t){return!!(t&&P(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const _i=t=>{const e=new Array(10),n=(s,r)=>{if(Qe(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Se(s)?[]:{};return Fe(s,(o,a)=>{const c=n(o,r+1);!Ve(c)&&(i[a]=c)}),e[r]=void 0,i}}return s};return n(t,0)},Oi=K("AsyncFunction"),h={isArray:Se,isArrayBuffer:yn,isBuffer:Gr,isFormData:si,isArrayBufferView:Yr,isString:Jr,isNumber:pn,isBoolean:Kr,isObject:Qe,isPlainObject:Xe,isUndefined:Ve,isDate:Qr,isFile:Xr,isBlob:ei,isRegExp:gi,isFunction:P,isStream:ni,isURLSearchParams:ri,isTypedArray:hi,isFileList:ti,forEach:Fe,merge:It,extend:oi,trim:ii,stripBOM:ai,inherits:ci,toFlatObject:li,kindOf:Je,kindOfTest:K,endsWith:ui,toArray:di,forEachEntry:fi,matchAll:mi,isHTMLForm:yi,hasOwnProperty:bn,hasOwnProp:bn,reduceDescriptors:kn,freezeMethods:wi,toObjectSet:Si,toCamelCase:pi,noop:bi,toFiniteNumber:ki,findKey:gn,global:wn,isContextDefined:Sn,ALPHABET:En,generateString:Ti,isSpecCompliantForm:Ei,toJSONObject:_i,isAsyncFn:Oi,isThenable:t=>t&&(Qe(t)||P(t))&&P(t.then)&&P(t.catch)};function k(t,e,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}h.inherits(k,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:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _n=k.prototype,On={};["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(t=>{On[t]={value:t}}),Object.defineProperties(k,On),Object.defineProperty(_n,"isAxiosError",{value:!0}),k.from=(t,e,n,s,r,i)=>{const o=Object.create(_n);return h.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),k.call(o,t.message,e,n,s,r),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Ci=null;function xt(t){return h.isPlainObject(t)||h.isArray(t)}function Cn(t){return h.endsWith(t,"[]")?t.slice(0,-2):t}function Nn(t,e,n){return t?t.concat(e).map(function(r,i){return r=Cn(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function Ni(t){return h.isArray(t)&&!t.some(xt)}const Ii=h.toFlatObject(h,{},null,function(e){return/^is[A-Z]/.test(e)});function et(t,e,n){if(!h.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,C){return!h.isUndefined(C[g])});const s=n.metaTokens,r=n.visitor||d,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(e);if(!h.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(h.isDate(m))return m.toISOString();if(!c&&h.isBlob(m))throw new k("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(m)||h.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,C){let I=m;if(m&&!C&&typeof m=="object"){if(h.endsWith(g,"{}"))g=s?g:g.slice(0,-2),m=JSON.stringify(m);else if(h.isArray(m)&&Ni(m)||(h.isFileList(m)||h.endsWith(g,"[]"))&&(I=h.toArray(m)))return g=Cn(g),I.forEach(function(ne,N){!(h.isUndefined(ne)||ne===null)&&e.append(o===!0?Nn([g],N,i):o===null?g:g+"[]",l(ne))}),!1}return xt(m)?!0:(e.append(Nn(C,g,i),l(m)),!1)}const f=[],b=Object.assign(Ii,{defaultVisitor:d,convertValue:l,isVisitable:xt});function y(m,g){if(!h.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),h.forEach(m,function(I,v){(!(h.isUndefined(I)||I===null)&&r.call(e,I,h.isString(v)?v.trim():v,g,b))===!0&&y(I,g?g.concat(v):[v])}),f.pop()}}if(!h.isObject(t))throw new TypeError("data must be an object");return y(t),e}function In(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Dt(t,e){this._pairs=[],t&&et(t,this,e)}const vn=Dt.prototype;vn.append=function(e,n){this._pairs.push([e,n])},vn.toString=function(e){const n=e?function(s){return e.call(this,s,In)}:In;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function vi(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xn(t,e,n){if(!e)return t;const s=n&&n.encode||vi,r=n&&n.serialize;let i;if(r?i=r(e,n):i=h.isURLSearchParams(e)?e.toString():new Dt(e,n).toString(s),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class xi{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){h.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Dn=xi,Mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Di=typeof URLSearchParams<"u"?URLSearchParams:Dt,Mi=typeof FormData<"u"?FormData:null,Ai=typeof Blob<"u"?Blob:null,Vi=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Fi=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Q={isBrowser:!0,classes:{URLSearchParams:Di,FormData:Mi,Blob:Ai},isStandardBrowserEnv:Vi,isStandardBrowserWebWorkerEnv:Fi,protocols:["http","https","file","blob","url","data"]};function Ri(t,e){return et(t,new Q.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Q.isNode&&h.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Li(t){return h.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Wi(t){const e={},n=Object.keys(t);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],e[i]=t[i];return e}function An(t){function e(n,s,r,i){let o=n[i++];const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&h.isArray(r)?r.length:o,c?(h.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!h.isObject(r[o]))&&(r[o]=[]),e(n,s,r[o],i)&&h.isArray(r[o])&&(r[o]=Wi(r[o])),!a)}if(h.isFormData(t)&&h.isFunction(t.entries)){const n={};return h.forEachEntry(t,(s,r)=>{e(Li(s),r,n,0)}),n}return null}const Bi={"Content-Type":void 0};function Ui(t,e,n){if(h.isString(t))try{return(e||JSON.parse)(t),h.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const tt={transitional:Mn,adapter:["xhr","http"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=h.isObject(e);if(i&&h.isHTMLForm(e)&&(e=new FormData(e)),h.isFormData(e))return r&&r?JSON.stringify(An(e)):e;if(h.isArrayBuffer(e)||h.isBuffer(e)||h.isStream(e)||h.isFile(e)||h.isBlob(e))return e;if(h.isArrayBufferView(e))return e.buffer;if(h.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ri(e,this.formSerializer).toString();if((a=h.isFileList(e))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return et(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Ui(e)):e}],transformResponse:[function(e){const n=this.transitional||tt.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&h.isString(e)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?k.from(a,k.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};h.forEach(["delete","get","head"],function(e){tt.headers[e]={}}),h.forEach(["post","put","patch"],function(e){tt.headers[e]=h.merge(Bi)});const Mt=tt,$i=h.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"]),Hi=t=>{const e={};let n,s,r;return t&&t.split(`
3
+ `).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const fn=0,Ge=10,Ye=13,Dr=58;class Mr{constructor(e,n){this.onFrame=e,this.onIncomingPing=n,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(e,n=!1){let s;if(typeof e=="string"?s=this._encoder.encode(e):s=new Uint8Array(e),n&&s[s.length-1]!==0){const r=new Uint8Array(s.length+1);r.set(s,0),r[s.length]=0,s=r}for(let r=0;r<s.length;r++){const i=s[r];this._onByte(i)}}_collectFrame(e){if(e!==fn&&e!==Ye){if(e===Ge){this.onIncomingPing();return}this._onByte=this._collectCommand,this._reinjectByte(e)}}_collectCommand(e){if(e!==Ye){if(e===Ge){this._results.command=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaders;return}this._consumeByte(e)}}_collectHeaders(e){if(e!==Ye){if(e===Ge){this._setupCollectBody();return}this._onByte=this._collectHeaderKey,this._reinjectByte(e)}}_reinjectByte(e){this._onByte(e)}_collectHeaderKey(e){if(e===Dr){this._headerKey=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaderValue;return}this._consumeByte(e)}_collectHeaderValue(e){if(e!==Ye){if(e===Ge){this._results.headers.push([this._headerKey,this._consumeTokenAsUTF8()]),this._headerKey=void 0,this._onByte=this._collectHeaders;return}this._consumeByte(e)}}_setupCollectBody(){const e=this._results.headers.filter(n=>n[0]==="content-length")[0];e?(this._bodyBytesRemaining=parseInt(e[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(e){if(e===fn){this._retrievedBody();return}this._consumeByte(e)}_collectBodyFixedSize(e){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(e)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(e){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",e)}this._initState()}_consumeByte(e){this._token.push(e)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const e=new Uint8Array(this._token);return this._token=[],e}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}var X;(function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSING=2]="CLOSING",t[t.CLOSED=3]="CLOSED"})(X=X||(X={}));var H;(function(t){t[t.ACTIVE=0]="ACTIVE",t[t.DEACTIVATING=1]="DEACTIVATING",t[t.INACTIVE=2]="INACTIVE"})(H=H||(H={}));class W{constructor(e){this.versions=e}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(e=>`v${e.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 Ar(t,e){t.terminate=function(){const n=()=>{};this.onerror=n,this.onmessage=n,this.onopen=n;const s=new Date,r=Math.random().toString().substring(2,8),i=this.onclose;this.onclose=o=>{const a=new Date().getTime()-s.getTime();e(`Discarded socket (#${r}) closed after ${a}ms, with code/reason: ${o.code}/${o.reason}`)},this.close(),i==null||i.call(t,{code:4001,reason:`Quick discarding socket (#${r}) without waiting for the shutdown sequence.`,wasClean:!1})}}class Vr{constructor(e,n,s){this._client=e,this._webSocket=n,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,o=this._subscriptions[i]||this.onUnhandledMessage,a=r,c=this,l=this._connectedVersion===W.V1_2?a.headers.ack:a.headers["message-id"];a.ack=(d={})=>c.ack(l,i,d),a.nack=(d={})=>c.nack(l,i,d),o(a)},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=s.debug,this.stompVersions=s.stompVersions,this.connectHeaders=s.connectHeaders,this.disconnectHeaders=s.disconnectHeaders,this.heartbeatIncoming=s.heartbeatIncoming,this.heartbeatOutgoing=s.heartbeatOutgoing,this.splitLargeFrames=s.splitLargeFrames,this.maxWebSocketChunkSize=s.maxWebSocketChunkSize,this.forceBinaryWSFrames=s.forceBinaryWSFrames,this.logRawCommunication=s.logRawCommunication,this.appendMissingNULLonIncoming=s.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=s.discardWebsocketOnCommFailure,this.onConnect=s.onConnect,this.onDisconnect=s.onDisconnect,this.onStompError=s.onStompError,this.onWebSocketClose=s.onWebSocketClose,this.onWebSocketError=s.onWebSocketError,this.onUnhandledMessage=s.onUnhandledMessage,this.onUnhandledReceipt=s.onUnhandledReceipt,this.onUnhandledFrame=s.onUnhandledFrame}get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}start(){const e=new Mr(n=>{const s=re.fromRawFrame(n,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${s}`),(this._serverFrameHandlers[s.command]||this.onUnhandledFrame)(s)},()=>{this.debug("<<< PONG")});this._webSocket.onmessage=n=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const s=n.data instanceof ArrayBuffer?new TextDecoder().decode(n.data):n.data;this.debug(`<<< ${s}`)}e.parseChunk(n.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=n=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(n)},this._webSocket.onerror=n=>{this.onWebSocketError(n)},this._webSocket.onopen=()=>{const n=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),n["accept-version"]=this.stompVersions.supportedVersions(),n["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:n})}}_setupHeartbeat(e){if(e.version!==W.V1_1&&e.version!==W.V1_2||!e["heart-beat"])return;const[n,s]=e["heart-beat"].split(",").map(r=>parseInt(r,10));if(this.heartbeatOutgoing!==0&&s!==0){const r=Math.max(this.heartbeatOutgoing,s);this.debug(`send PING every ${r}ms`),this._pinger=setInterval(()=>{this._webSocket.readyState===X.OPEN&&(this._webSocket.send(Ae.LF),this.debug(">>> PING"))},r)}if(this.heartbeatIncoming!==0&&n!==0){const r=Math.max(this.heartbeatIncoming,n);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===X.CONNECTING||this._webSocket.readyState===X.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&Ar(this._webSocket,e=>this.debug(e)),this._webSocket.terminate()}_transmit(e){const{command:n,headers:s,body:r,binaryBody:i,skipContentLengthHeader:o}=e,a=new re({command:n,headers:s,body:r,binaryBody:i,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:o});let c=a.serialize();if(this.logRawCommunication?this.debug(`>>> ${c}`):this.debug(`>>> ${a}`),this.forceBinaryWSFrames&&typeof c=="string"&&(c=new TextEncoder().encode(c)),typeof c!="string"||!this.splitLargeFrames)this._webSocket.send(c);else{let l=c;for(;l.length>0;){const d=l.substring(0,this.maxWebSocketChunkSize);l=l.substring(this.maxWebSocketChunkSize),this._webSocket.send(d),this.debug(`chunk sent = ${d.length}, remaining = ${l.length}`)}}}dispose(){if(this.connected)try{const e=Object.assign({},this.disconnectHeaders);e.receipt||(e.receipt=`close-${this._counter++}`),this.watchForReceipt(e.receipt,n=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(n)}),this._transmit({command:"DISCONNECT",headers:e})}catch(e){this.debug(`Ignoring error during disconnect ${e}`)}else(this._webSocket.readyState===X.CONNECTING||this._webSocket.readyState===X.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(e){const{destination:n,headers:s,body:r,binaryBody:i,skipContentLengthHeader:o}=e,a=Object.assign({destination:n},s);this._transmit({command:"SEND",headers:a,body:r,binaryBody:i,skipContentLengthHeader:o})}watchForReceipt(e,n){this._receiptWatchers[e]=n}subscribe(e,n,s={}){s=Object.assign({},s),s.id||(s.id=`sub-${this._counter++}`),s.destination=e,this._subscriptions[s.id]=n,this._transmit({command:"SUBSCRIBE",headers:s});const r=this;return{id:s.id,unsubscribe(i){return r.unsubscribe(s.id,i)}}}unsubscribe(e,n={}){n=Object.assign({},n),delete this._subscriptions[e],n.id=e,this._transmit({command:"UNSUBSCRIBE",headers:n})}begin(e){const n=e||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:n}});const s=this;return{id:n,commit(){s.commit(n)},abort(){s.abort(n)}}}commit(e){this._transmit({command:"COMMIT",headers:{transaction:e}})}abort(e){this._transmit({command:"ABORT",headers:{transaction:e}})}ack(e,n,s={}){s=Object.assign({},s),this._connectedVersion===W.V1_2?s.id=e:s["message-id"]=e,s.subscription=n,this._transmit({command:"ACK",headers:s})}nack(e,n,s={}){return s=Object.assign({},s),this._connectedVersion===W.V1_2?s.id=e:s["message-id"]=e,s.subscription=n,this._transmit({command:"NACK",headers:s})}}class Fr{constructor(e={}){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=H.INACTIVE;const n=()=>{};this.debug=n,this.beforeConnect=n,this.onConnect=n,this.onDisconnect=n,this.onUnhandledMessage=n,this.onUnhandledReceipt=n,this.onUnhandledFrame=n,this.onStompError=n,this.onWebSocketClose=n,this.onWebSocketError=n,this.logRawCommunication=!1,this.onChangeState=n,this.connectHeaders={},this._disconnectHeaders={},this.configure(e)}get webSocket(){var e;return(e=this._stompHandler)==null?void 0:e._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(e){this._disconnectHeaders=e,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===H.ACTIVE}_changeState(e){this.state=e,this.onChangeState(e)}configure(e){Object.assign(this,e)}activate(){const e=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(H.ACTIVE),this._connect()};this.state===H.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{e()})):e()}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 e=this._createWebSocket();this._stompHandler=new Vr(this,e,{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:n=>{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(n)},onDisconnect:n=>{this.onDisconnect(n)},onStompError:n=>{this.onStompError(n)},onWebSocketClose:n=>{this._stompHandler=void 0,this.state===H.DEACTIVATING&&this._changeState(H.INACTIVE),this.onWebSocketClose(n),this.active&&this._schedule_reconnect()},onWebSocketError:n=>{this.onWebSocketError(n)},onUnhandledMessage:n=>{this.onUnhandledMessage(n)},onUnhandledReceipt:n=>{this.onUnhandledReceipt(n)},onUnhandledFrame:n=>{this.onUnhandledFrame(n)}}),this._stompHandler.start()}_createWebSocket(){let e;if(this.webSocketFactory)e=this.webSocketFactory();else if(this.brokerURL)e=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return e.binaryType="arraybuffer",e}_schedule_reconnect(){this.reconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`),this._reconnector=setTimeout(()=>{this._connect()},this.reconnectDelay))}async deactivate(e={}){var n;const s=e.force||!1,r=this.active;let i;if(this.state===H.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(H.DEACTIVATING),this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==X.CLOSED){const o=this._stompHandler.onWebSocketClose;i=new Promise((a,c)=>{this._stompHandler.onWebSocketClose=l=>{o(l),a()}})}else return this._changeState(H.INACTIVE),Promise.resolve();return s?(n=this._stompHandler)==null||n.discardWebsocket():r&&this._disposeStompHandler(),i}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(e){this._checkConnection(),this._stompHandler.publish(e)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(e,n){this._checkConnection(),this._stompHandler.watchForReceipt(e,n)}subscribe(e,n,s={}){return this._checkConnection(),this._stompHandler.subscribe(e,n,s)}unsubscribe(e,n={}){this._checkConnection(),this._stompHandler.unsubscribe(e,n)}begin(e){return this._checkConnection(),this._stompHandler.begin(e)}commit(e){this._checkConnection(),this._stompHandler.commit(e)}abort(e){this._checkConnection(),this._stompHandler.abort(e)}ack(e,n,s={}){this._checkConnection(),this._stompHandler.ack(e,n,s)}nack(e,n,s={}){this._checkConnection(),this._stompHandler.nack(e,n,s)}}class Rr{constructor(e,n){xr(this,"client"),this.virtualHost=e,this.queue=n,this.client=new Fr({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((e,n)=>{this.client.onConnect=()=>{e()},this.client.activate()})}async disconnectClient(){this.client.onDisconnect=()=>{},this.client.deactivate(),this.client.unsubscribe("")}async subscribe(e){await this.connect(),this.client.subscribe(`/queue/${this.queue}`,n=>{const s=JSON.parse(n.body);e(s)})}async publish(e){this.client.publish({destination:`/queue/${this.queue}`,body:JSON.stringify({data:e})})}}const ie=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Lr={},Wr={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Br=[u.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),u.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 Ur(t,e){return u.openBlock(),u.createElementBlock("svg",Wr,Br)}const $r=ie(Lr,[["render",Ur]]),Hr={},Pr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},zr=[u.createElementVNode("path",{fill:"#F28B0C",d:"M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"},null,-1)];function qr(t,e){return u.openBlock(),u.createElementBlock("svg",Pr,zr)}const Zr=ie(Hr,[["render",qr]]);function mn(t,e){return function(){return t.apply(e,arguments)}}const{toString:jr}=Object.prototype,{getPrototypeOf:Nt}=Object,Je=(t=>e=>{const n=jr.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),K=t=>(t=t.toLowerCase(),e=>Je(e)===t),Ke=t=>e=>typeof e===t,{isArray:Se}=Array,Ve=Ke("undefined");function Gr(t){return t!==null&&!Ve(t)&&t.constructor!==null&&!Ve(t.constructor)&&P(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const yn=K("ArrayBuffer");function Yr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&yn(t.buffer),e}const Jr=Ke("string"),P=Ke("function"),pn=Ke("number"),Qe=t=>t!==null&&typeof t=="object",Kr=t=>t===!0||t===!1,Xe=t=>{if(Je(t)!=="object")return!1;const e=Nt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Qr=K("Date"),Xr=K("File"),ei=K("Blob"),ti=K("FileList"),ni=t=>Qe(t)&&P(t.pipe),si=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||P(t.append)&&((e=Je(t))==="formdata"||e==="object"&&P(t.toString)&&t.toString()==="[object FormData]"))},ri=K("URLSearchParams"),ii=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fe(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),Se(t))for(s=0,r=t.length;s<r;s++)e.call(null,t[s],s,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(s=0;s<o;s++)a=i[s],e.call(null,t[a],a,t)}}function gn(t,e){e=e.toLowerCase();const n=Object.keys(t);let s=n.length,r;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}const wn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Sn=t=>!Ve(t)&&t!==wn;function vt(){const{caseless:t}=Sn(this)&&this||{},e={},n=(s,r)=>{const i=t&&gn(e,r)||r;Xe(e[i])&&Xe(s)?e[i]=vt(e[i],s):Xe(s)?e[i]=vt({},s):Se(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&Fe(arguments[s],n);return e}const oi=(t,e,n,{allOwnKeys:s}={})=>(Fe(e,(r,i)=>{n&&P(r)?t[i]=mn(r,n):t[i]=r},{allOwnKeys:s}),t),ai=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ci=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},li=(t,e,n,s)=>{let r,i,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],(!s||s(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Nt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ui=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},di=t=>{if(!t)return null;if(Se(t))return t;let e=t.length;if(!pn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},hi=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Nt(Uint8Array)),fi=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(t,i[0],i[1])}},mi=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},yi=K("HTMLFormElement"),pi=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),bn=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),gi=K("RegExp"),kn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};Fe(n,(r,i)=>{e(r,i,t)!==!1&&(s[i]=r)}),Object.defineProperties(t,s)},wi=t=>{kn(t,(e,n)=>{if(P(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(P(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Si=(t,e)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Se(t)?s(t):s(String(t).split(e)),n},bi=()=>{},ki=(t,e)=>(t=+t,Number.isFinite(t)?t:e),It="abcdefghijklmnopqrstuvwxyz",Tn="0123456789",En={DIGIT:Tn,ALPHA:It,ALPHA_DIGIT:It+It.toUpperCase()+Tn},Ti=(t=16,e=En.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function Ei(t){return!!(t&&P(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const _i=t=>{const e=new Array(10),n=(s,r)=>{if(Qe(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Se(s)?[]:{};return Fe(s,(o,a)=>{const c=n(o,r+1);!Ve(c)&&(i[a]=c)}),e[r]=void 0,i}}return s};return n(t,0)},Oi=K("AsyncFunction"),h={isArray:Se,isArrayBuffer:yn,isBuffer:Gr,isFormData:si,isArrayBufferView:Yr,isString:Jr,isNumber:pn,isBoolean:Kr,isObject:Qe,isPlainObject:Xe,isUndefined:Ve,isDate:Qr,isFile:Xr,isBlob:ei,isRegExp:gi,isFunction:P,isStream:ni,isURLSearchParams:ri,isTypedArray:hi,isFileList:ti,forEach:Fe,merge:vt,extend:oi,trim:ii,stripBOM:ai,inherits:ci,toFlatObject:li,kindOf:Je,kindOfTest:K,endsWith:ui,toArray:di,forEachEntry:fi,matchAll:mi,isHTMLForm:yi,hasOwnProperty:bn,hasOwnProp:bn,reduceDescriptors:kn,freezeMethods:wi,toObjectSet:Si,toCamelCase:pi,noop:bi,toFiniteNumber:ki,findKey:gn,global:wn,isContextDefined:Sn,ALPHABET:En,generateString:Ti,isSpecCompliantForm:Ei,toJSONObject:_i,isAsyncFn:Oi,isThenable:t=>t&&(Qe(t)||P(t))&&P(t.then)&&P(t.catch)};function k(t,e,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}h.inherits(k,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:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _n=k.prototype,On={};["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(t=>{On[t]={value:t}}),Object.defineProperties(k,On),Object.defineProperty(_n,"isAxiosError",{value:!0}),k.from=(t,e,n,s,r,i)=>{const o=Object.create(_n);return h.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),k.call(o,t.message,e,n,s,r),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Ci=null;function xt(t){return h.isPlainObject(t)||h.isArray(t)}function Cn(t){return h.endsWith(t,"[]")?t.slice(0,-2):t}function Nn(t,e,n){return t?t.concat(e).map(function(r,i){return r=Cn(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function Ni(t){return h.isArray(t)&&!t.some(xt)}const vi=h.toFlatObject(h,{},null,function(e){return/^is[A-Z]/.test(e)});function et(t,e,n){if(!h.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,C){return!h.isUndefined(C[g])});const s=n.metaTokens,r=n.visitor||d,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(e);if(!h.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(h.isDate(m))return m.toISOString();if(!c&&h.isBlob(m))throw new k("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(m)||h.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,C){let v=m;if(m&&!C&&typeof m=="object"){if(h.endsWith(g,"{}"))g=s?g:g.slice(0,-2),m=JSON.stringify(m);else if(h.isArray(m)&&Ni(m)||(h.isFileList(m)||h.endsWith(g,"[]"))&&(v=h.toArray(m)))return g=Cn(g),v.forEach(function(ne,N){!(h.isUndefined(ne)||ne===null)&&e.append(o===!0?Nn([g],N,i):o===null?g:g+"[]",l(ne))}),!1}return xt(m)?!0:(e.append(Nn(C,g,i),l(m)),!1)}const f=[],b=Object.assign(vi,{defaultVisitor:d,convertValue:l,isVisitable:xt});function y(m,g){if(!h.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),h.forEach(m,function(v,I){(!(h.isUndefined(v)||v===null)&&r.call(e,v,h.isString(I)?I.trim():I,g,b))===!0&&y(v,g?g.concat(I):[I])}),f.pop()}}if(!h.isObject(t))throw new TypeError("data must be an object");return y(t),e}function vn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Dt(t,e){this._pairs=[],t&&et(t,this,e)}const In=Dt.prototype;In.append=function(e,n){this._pairs.push([e,n])},In.toString=function(e){const n=e?function(s){return e.call(this,s,vn)}:vn;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Ii(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xn(t,e,n){if(!e)return t;const s=n&&n.encode||Ii,r=n&&n.serialize;let i;if(r?i=r(e,n):i=h.isURLSearchParams(e)?e.toString():new Dt(e,n).toString(s),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class xi{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){h.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Dn=xi,Mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Di=typeof URLSearchParams<"u"?URLSearchParams:Dt,Mi=typeof FormData<"u"?FormData:null,Ai=typeof Blob<"u"?Blob:null,Vi=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Fi=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Q={isBrowser:!0,classes:{URLSearchParams:Di,FormData:Mi,Blob:Ai},isStandardBrowserEnv:Vi,isStandardBrowserWebWorkerEnv:Fi,protocols:["http","https","file","blob","url","data"]};function Ri(t,e){return et(t,new Q.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Q.isNode&&h.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Li(t){return h.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Wi(t){const e={},n=Object.keys(t);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],e[i]=t[i];return e}function An(t){function e(n,s,r,i){let o=n[i++];const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&h.isArray(r)?r.length:o,c?(h.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!h.isObject(r[o]))&&(r[o]=[]),e(n,s,r[o],i)&&h.isArray(r[o])&&(r[o]=Wi(r[o])),!a)}if(h.isFormData(t)&&h.isFunction(t.entries)){const n={};return h.forEachEntry(t,(s,r)=>{e(Li(s),r,n,0)}),n}return null}const Bi={"Content-Type":void 0};function Ui(t,e,n){if(h.isString(t))try{return(e||JSON.parse)(t),h.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const tt={transitional:Mn,adapter:["xhr","http"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=h.isObject(e);if(i&&h.isHTMLForm(e)&&(e=new FormData(e)),h.isFormData(e))return r&&r?JSON.stringify(An(e)):e;if(h.isArrayBuffer(e)||h.isBuffer(e)||h.isStream(e)||h.isFile(e)||h.isBlob(e))return e;if(h.isArrayBufferView(e))return e.buffer;if(h.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ri(e,this.formSerializer).toString();if((a=h.isFileList(e))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return et(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Ui(e)):e}],transformResponse:[function(e){const n=this.transitional||tt.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&h.isString(e)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?k.from(a,k.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};h.forEach(["delete","get","head"],function(e){tt.headers[e]={}}),h.forEach(["post","put","patch"],function(e){tt.headers[e]=h.merge(Bi)});const Mt=tt,$i=h.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"]),Hi=t=>{const e={};let n,s,r;return t&&t.split(`
4
4
  `).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||e[n]&&$i[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e},Vn=Symbol("internals");function Re(t){return t&&String(t).trim().toLowerCase()}function nt(t){return t===!1||t==null?t:h.isArray(t)?t.map(nt):String(t)}function Pi(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const zi=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function At(t,e,n,s,r){if(h.isFunction(s))return s.call(this,e,n);if(r&&(e=n),!!h.isString(e)){if(h.isString(s))return e.indexOf(s)!==-1;if(h.isRegExp(s))return s.test(e)}}function qi(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function Zi(t,e){const n=h.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{value:function(r,i,o){return this[s].call(this,e,r,i,o)},configurable:!0})})}class st{constructor(e){e&&this.set(e)}set(e,n,s){const r=this;function i(a,c,l){const d=Re(c);if(!d)throw new Error("header name must be a non-empty string");const f=h.findKey(r,d);(!f||r[f]===void 0||l===!0||l===void 0&&r[f]!==!1)&&(r[f||c]=nt(a))}const o=(a,c)=>h.forEach(a,(l,d)=>i(l,d,c));return h.isPlainObject(e)||e instanceof this.constructor?o(e,n):h.isString(e)&&(e=e.trim())&&!zi(e)?o(Hi(e),n):e!=null&&i(n,e,s),this}get(e,n){if(e=Re(e),e){const s=h.findKey(this,e);if(s){const r=this[s];if(!n)return r;if(n===!0)return Pi(r);if(h.isFunction(n))return n.call(this,r,s);if(h.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Re(e),e){const s=h.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||At(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let r=!1;function i(o){if(o=Re(o),o){const a=h.findKey(s,o);a&&(!n||At(s,s[a],a,n))&&(delete s[a],r=!0)}}return h.isArray(e)?e.forEach(i):i(e),r}clear(e){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!e||At(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const n=this,s={};return h.forEach(this,(r,i)=>{const o=h.findKey(s,i);if(o){n[o]=nt(r),delete n[i];return}const a=e?qi(i):String(i).trim();a!==i&&delete n[i],n[a]=nt(r),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return h.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=e&&h.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
5
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[Vn]=this[Vn]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Re(o);s[a]||(Zi(r,o),s[a]=!0)}return h.isArray(e)?e.forEach(i):i(e),this}}st.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.freezeMethods(st.prototype),h.freezeMethods(st);const ee=st;function Vt(t,e){const n=this||Mt,s=e||n,r=ee.from(s.headers);let i=s.data;return h.forEach(t,function(a){i=a.call(n,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function Fn(t){return!!(t&&t.__CANCEL__)}function Le(t,e,n){k.call(this,t??"canceled",k.ERR_CANCELED,e,n),this.name="CanceledError"}h.inherits(Le,k,{__CANCEL__:!0});function ji(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new k("Request failed with status code "+n.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Gi=Q.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,a){const c=[];c.push(n+"="+encodeURIComponent(s)),h.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),h.isString(i)&&c.push("path="+i),h.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Yi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ji(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Rn(t,e){return t&&!Yi(e)?Ji(t,e):e}const Ki=Q.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const a=h.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Qi(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Xi(t,e){t=t||10;const n=new Array(t),s=new Array(t);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=s[i];o||(o=l),n[r]=c,s[r]=l;let f=i,b=0;for(;f!==r;)b+=n[f++],f=f%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),l-o<e)return;const y=d&&l-d;return y?Math.round(b*1e3/y):void 0}}function Ln(t,e){let n=0;const s=Xi(50,250);return r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a),l=i<=o;n=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:r};d[e?"download":"upload"]=!0,t(d)}}const rt={http:Ci,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,s){let r=t.data;const i=ee.from(t.headers).normalize(),o=t.responseType;let a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}h.isFormData(r)&&(Q.isStandardBrowserEnv||Q.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+m))}const d=Rn(t.baseURL,t.url);l.open(t.method.toUpperCase(),xn(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function f(){if(!l)return;const y=ee.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),g={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:t,request:l};ji(function(I){n(I),c()},function(I){s(I),c()},g),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(s(new k("Request aborted",k.ECONNABORTED,t,l)),l=null)},l.onerror=function(){s(new k("Network Error",k.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let m=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const g=t.transitional||Mn;t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),s(new k(m,g.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,t,l)),l=null},Q.isStandardBrowserEnv){const y=(t.withCredentials||Ki(d))&&t.xsrfCookieName&&Gi.read(t.xsrfCookieName);y&&i.set(t.xsrfHeaderName,y)}r===void 0&&i.setContentType(null),"setRequestHeader"in l&&h.forEach(i.toJSON(),function(m,g){l.setRequestHeader(g,m)}),h.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",Ln(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ln(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=y=>{l&&(s(!y||y.type?new Le(null,t,l):y),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const b=Qi(d);if(b&&Q.protocols.indexOf(b)===-1){s(new k("Unsupported protocol "+b+":",k.ERR_BAD_REQUEST,t));return}l.send(r||null)})}};h.forEach(rt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const eo={getAdapter:t=>{t=h.isArray(t)?t:[t];const{length:e}=t;let n,s;for(let r=0;r<e&&(n=t[r],!(s=h.isString(n)?rt[n.toLowerCase()]:n));r++);if(!s)throw s===!1?new k(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(h.hasOwnProp(rt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!h.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:rt};function Ft(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Le(null,t)}function Wn(t){return Ft(t),t.headers=ee.from(t.headers),t.data=Vt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),eo.getAdapter(t.adapter||Mt.adapter)(t).then(function(s){return Ft(t),s.data=Vt.call(t,t.transformResponse,s),s.headers=ee.from(s.headers),s},function(s){return Fn(s)||(Ft(t),s&&s.response&&(s.response.data=Vt.call(t,t.transformResponse,s.response),s.response.headers=ee.from(s.response.headers))),Promise.reject(s)})}const Bn=t=>t instanceof ee?t.toJSON():t;function be(t,e){e=e||{};const n={};function s(l,d,f){return h.isPlainObject(l)&&h.isPlainObject(d)?h.merge.call({caseless:f},l,d):h.isPlainObject(d)?h.merge({},d):h.isArray(d)?d.slice():d}function r(l,d,f){if(h.isUndefined(d)){if(!h.isUndefined(l))return s(void 0,l,f)}else return s(l,d,f)}function i(l,d){if(!h.isUndefined(d))return s(void 0,d)}function o(l,d){if(h.isUndefined(d)){if(!h.isUndefined(l))return s(void 0,l)}else return s(void 0,d)}function a(l,d,f){if(f in e)return s(l,d);if(f in t)return s(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,d)=>r(Bn(l),Bn(d),!0)};return h.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=c[d]||r,b=f(t[d],e[d],d);h.isUndefined(b)&&f!==a||(n[d]=b)}),n}const Un="1.4.0",Rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Rt[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const $n={};Rt.transitional=function(e,n,s){function r(i,o){return"[Axios v"+Un+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(e===!1)throw new k(r(o," has been removed"+(n?" in "+n:"")),k.ERR_DEPRECATED);return n&&!$n[o]&&($n[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};function to(t,e,n){if(typeof t!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let r=s.length;for(;r-- >0;){const i=s[r],o=e[i];if(o){const a=t[i],c=a===void 0||o(a,i,t);if(c!==!0)throw new k("option "+i+" must be "+c,k.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new k("Unknown option "+i,k.ERR_BAD_OPTION)}}const Lt={assertOptions:to,validators:Rt},oe=Lt.validators;class it{constructor(e){this.defaults=e,this.interceptors={request:new Dn,response:new Dn}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=be(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Lt.assertOptions(s,{silentJSONParsing:oe.transitional(oe.boolean),forcedJSONParsing:oe.transitional(oe.boolean),clarifyTimeoutError:oe.transitional(oe.boolean)},!1),r!=null&&(h.isFunction(r)?n.paramsSerializer={serialize:r}:Lt.assertOptions(r,{encode:oe.function,serialize:oe.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&h.merge(i.common,i[n.method]),o&&h.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ee.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let d,f=0,b;if(!c){const m=[Wn.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),b=m.length,d=Promise.resolve(n);f<b;)d=d.then(m[f++],m[f++]);return d}b=a.length;let y=n;for(f=0;f<b;){const m=a[f++],g=a[f++];try{y=m(y)}catch(C){g.call(this,C);break}}try{d=Wn.call(this,y)}catch(m){return Promise.reject(m)}for(f=0,b=l.length;f<b;)d=d.then(l[f++],l[f++]);return d}getUri(e){e=be(this.defaults,e);const n=Rn(e.baseURL,e.url);return xn(n,e.params,e.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(e){it.prototype[e]=function(n,s){return this.request(be(s||{},{method:e,url:n,data:(s||{}).data}))}}),h.forEach(["post","put","patch"],function(e){function n(s){return function(i,o,a){return this.request(be(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}it.prototype[e]=n(),it.prototype[e+"Form"]=n(!0)});const ot=it;class Wt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},e(function(i,o,a){s.reason||(s.reason=new Le(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Wt(function(r){e=r}),cancel:e}}}const no=Wt;function so(t){return function(n){return t.apply(null,n)}}function ro(t){return h.isObject(t)&&t.isAxiosError===!0}const Bt={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(Bt).forEach(([t,e])=>{Bt[e]=t});const io=Bt;function Hn(t){const e=new ot(t),n=mn(ot.prototype.request,e);return h.extend(n,ot.prototype,e,{allOwnKeys:!0}),h.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Hn(be(t,r))},n}const A=Hn(Mt);A.Axios=ot,A.CanceledError=Le,A.CancelToken=no,A.isCancel=Fn,A.VERSION=Un,A.toFormData=et,A.AxiosError=k,A.Cancel=A.CanceledError,A.all=function(e){return Promise.all(e)},A.spread=so,A.isAxiosError=ro,A.mergeConfig=be,A.AxiosHeaders=ee,A.formToJSON=t=>An(h.isHTMLForm(t)?new FormData(t):t),A.HttpStatusCode=io,A.default=A;const oo=A,at=async function(t){const e=t,n=window.VITE_BACKEND_URL?window.VITE_BACKEND_URL:"https://chatadmin-gw.dev.mp.gob.bo",s={method:e.method,url:`${n}${e.url}`,headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json; charset=utf-8",...e.headers},data:e.data};return await oo(s).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})};async function ao(t){const e={url:"/v1/message/list-messages",method:"post",data:t.body,token:t.token},n=await at(e).catch(r=>(console.error(r),null)),s=n==null?void 0:n.response;return s!=null&&s.data?{data:s.data,pagination:s.pagination}:{data:[],pagination:{total:0,limit:0,size:0}}}async function co(t,e){var r;const s=await at({url:"/v1/message/send-message",method:"POST",data:t,token:e}).catch(i=>(console.error(i),null));return(r=s==null?void 0:s.response)==null?void 0:r.data}async function Pn(t){var s;const n=await at({url:"/v1/app-chats/web-chat",method:"get",token:t}).catch(r=>(console.error(r),null));return(s=n==null?void 0:n.response)==null?void 0:s.data}async function zn(t,e){var i;const n={esCliente:!0,totalNoVistos:0,totalNoVistosCliente:0},s={url:`/v1/app-chats/update-vistos/${t}`,method:"PATCH",data:n,token:e},r=await at(s).catch(o=>(console.error(o),null));return(i=r==null?void 0:r.response)==null?void 0:i.data}function lo(t){return u.getCurrentScope()?(u.onScopeDispose(t),!0):!1}function qn(t){return typeof t=="function"?t():u.unref(t)}const uo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ho=t=>t!=null,Ut=()=>{};function $t(t){var e;const n=qn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const fo=uo?window:void 0;function mo(){const t=u.ref(!1),e=u.getCurrentInstance();return e&&u.onMounted(()=>{t.value=!0},e),t}function yo(t){const e=mo();return u.computed(()=>(e.value,!!t()))}function po(t,e,n={}){const{root:s,rootMargin:r="0px",threshold:i=.1,window:o=fo,immediate:a=!0}=n,c=yo(()=>o&&"IntersectionObserver"in o),l=u.computed(()=>{const m=qn(t);return(Array.isArray(m)?m:[m]).map($t).filter(ho)});let d=Ut;const f=u.ref(a),b=c.value?u.watch(()=>[l.value,$t(s),f.value],([m,g])=>{if(d(),!f.value||!m.length)return;const C=new IntersectionObserver(e,{root:$t(g),rootMargin:r,threshold:i});m.forEach(I=>I&&C.observe(I)),d=()=>{C.disconnect(),d=Ut}},{immediate:a,flush:"post"}):Ut,y=()=>{d(),b(),f.value=!1};return lo(y),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:y}}class fe extends Error{}class go extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class wo extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class So extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ke extends fe{}class Zn extends fe{constructor(e){super(`Invalid unit ${e}`)}}class F extends fe{}class ae extends fe{constructor(){super("Zone is an abstract class")}}const p="numeric",j="short",$="long",ct={year:p,month:p,day:p},jn={year:p,month:j,day:p},bo={year:p,month:j,day:p,weekday:j},Gn={year:p,month:$,day:p},Yn={year:p,month:$,day:p,weekday:$},Jn={hour:p,minute:p},Kn={hour:p,minute:p,second:p},Qn={hour:p,minute:p,second:p,timeZoneName:j},Xn={hour:p,minute:p,second:p,timeZoneName:$},es={hour:p,minute:p,hourCycle:"h23"},ts={hour:p,minute:p,second:p,hourCycle:"h23"},ns={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:j},ss={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:$},rs={year:p,month:p,day:p,hour:p,minute:p},is={year:p,month:p,day:p,hour:p,minute:p,second:p},os={year:p,month:j,day:p,hour:p,minute:p},as={year:p,month:j,day:p,hour:p,minute:p,second:p},ko={year:p,month:j,day:p,weekday:j,hour:p,minute:p},cs={year:p,month:$,day:p,hour:p,minute:p,timeZoneName:j},ls={year:p,month:$,day:p,hour:p,minute:p,second:p,timeZoneName:j},us={year:p,month:$,day:p,weekday:$,hour:p,minute:p,timeZoneName:$},ds={year:p,month:$,day:p,weekday:$,hour:p,minute:p,second:p,timeZoneName:$};class We{get type(){throw new ae}get name(){throw new ae}get ianaName(){return this.name}get isUniversal(){throw new ae}offsetName(e,n){throw new ae}formatOffset(e,n){throw new ae}offset(e){throw new ae}equals(e){throw new ae}get isValid(){throw new ae}}let Ht=null;class lt extends We{static get instance(){return Ht===null&&(Ht=new lt),Ht}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Rs(e,n,s)}formatOffset(e,n){return He(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ut={};function To(t){return ut[t]||(ut[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ut[t]}const Eo={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function _o(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,o,a,c,l,d]=s;return[o,r,i,a,c,l,d]}function Oo(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:o}=n[r],a=Eo[i];i==="era"?s[a]=o:w(a)||(s[a]=parseInt(o,10))}return s}let dt={};class te extends We{static create(e){return dt[e]||(dt[e]=new te(e)),dt[e]}static resetCache(){dt={},ut={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=te.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Rs(e,n,s,this.name)}formatOffset(e,n){return He(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const s=To(this.name);let[r,i,o,a,c,l,d]=s.formatToParts?Oo(s,n):_o(s,n);a==="BC"&&(r=-Math.abs(r)+1);const b=pt({year:r,month:i,day:o,hour:c===24?0:c,minute:l,second:d,millisecond:0});let y=+n;const m=y%1e3;return y-=m>=0?m:1e3+m,(b-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let hs={};function Co(t,e={}){const n=JSON.stringify([t,e]);let s=hs[n];return s||(s=new Intl.ListFormat(t,e),hs[n]=s),s}let Pt={};function zt(t,e={}){const n=JSON.stringify([t,e]);let s=Pt[n];return s||(s=new Intl.DateTimeFormat(t,e),Pt[n]=s),s}let qt={};function No(t,e={}){const n=JSON.stringify([t,e]);let s=qt[n];return s||(s=new Intl.NumberFormat(t,e),qt[n]=s),s}let Zt={};function Io(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=Zt[r];return i||(i=new Intl.RelativeTimeFormat(t,e),Zt[r]=i),i}let Be=null;function vo(){return Be||(Be=new Intl.DateTimeFormat().resolvedOptions().locale,Be)}let fs={};function xo(t){let e=fs[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,fs[t]=e}return e}function Do(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let s,r;try{s=zt(t).resolvedOptions(),r=t}catch{const c=t.substring(0,n);s=zt(c).resolvedOptions(),r=c}const{numberingSystem:i,calendar:o}=s;return[r,i,o]}}function Mo(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Ao(t){const e=[];for(let n=1;n<=12;n++){const s=S.utc(2009,n,1);e.push(t(s))}return e}function Vo(t){const e=[];for(let n=1;n<=7;n++){const s=S.utc(2016,11,13+n);e.push(t(s))}return e}function ht(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function Fo(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Ro{constructor(e,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:i,...o}=s;if(!n||Object.keys(o).length>0){const a={useGrouping:!1,...s};s.padTo>0&&(a.minimumIntegerDigits=s.padTo),this.inf=No(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):en(e,3);return M(n,this.padTo)}}}class Lo{constructor(e,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&te.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=zt(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Wo{constructor(e,n,s){this.opts={style:"long",...s},!n&&Ms()&&(this.rtf=Io(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):aa(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Bo={firstDay:1,minimalDays:4,weekend:[6,7]};class O{static fromOpts(e){return O.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,s,r,i=!1){const o=e||x.defaultLocale,a=o||(i?"en-US":vo()),c=n||x.defaultNumberingSystem,l=s||x.defaultOutputCalendar,d=Qt(r)||x.defaultWeekSettings;return new O(a,c,l,d,o)}static resetCache(){Be=null,Pt={},qt={},Zt={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return O.create(e,n,s,r)}constructor(e,n,s,r,i){const[o,a,c]=Do(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=s||c||null,this.weekSettings=r,this.intl=Mo(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Fo(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:O.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Qt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return ht(this,e,Bs,()=>{const s=n?{month:e,day:"numeric"}:{month:e},r=n?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=Ao(i=>this.extract(i,s,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return ht(this,e,Hs,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=Vo(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return ht(this,void 0,()=>Ps,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ht(this,e,zs,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,n,s){const r=this.dtFormatter(e,n),i=r.formatToParts(),o=i.find(a=>a.type.toLowerCase()===s);return o?o.value:null}numberFormatter(e={}){return new Ro(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Lo(e,this.intl,n)}relFormatter(e={}){return new Wo(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Co(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:As()?xo(this.locale):Bo}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let jt=null;class B extends We{static get utcInstance(){return jt===null&&(jt=new B(0)),jt}static instance(e){return e===0?B.utcInstance:new B(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new B(gt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${He(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${He(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return He(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Uo extends We{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ce(t,e){if(w(t)||t===null)return e;if(t instanceof We)return t;if(Zo(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?lt.instance:n==="utc"||n==="gmt"?B.utcInstance:B.parseSpecifier(n)||te.create(t)}else return le(t)?B.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Uo(t)}const Gt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ms={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},$o=Gt.hanidec.replace(/[\[|\]]/g,"").split("");function Ho(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(t[n].search(Gt.hanidec)!==-1)e+=$o.indexOf(t[n]);else for(const r in ms){const[i,o]=ms[r];s>=i&&s<=o&&(e+=s-i)}}return parseInt(e,10)}else return e}let Te={};function Po(){Te={}}function G({numberingSystem:t},e=""){const n=t||"latn";return Te[n]||(Te[n]={}),Te[n][e]||(Te[n][e]=new RegExp(`${Gt[n]}${e}`)),Te[n][e]}let ys=()=>Date.now(),ps="system",gs=null,ws=null,Ss=null,bs=60,ks,Ts=null;class x{static get now(){return ys}static set now(e){ys=e}static set defaultZone(e){ps=e}static get defaultZone(){return ce(ps,lt.instance)}static get defaultLocale(){return gs}static set defaultLocale(e){gs=e}static get defaultNumberingSystem(){return ws}static set defaultNumberingSystem(e){ws=e}static get defaultOutputCalendar(){return Ss}static set defaultOutputCalendar(e){Ss=e}static get defaultWeekSettings(){return Ts}static set defaultWeekSettings(e){Ts=Qt(e)}static get twoDigitCutoffYear(){return bs}static set twoDigitCutoffYear(e){bs=e%100}static get throwOnInvalid(){return ks}static set throwOnInvalid(e){ks=e}static resetCaches(){O.resetCache(),te.resetCache(),S.resetCache(),Po()}}class Y{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Es=[0,31,59,90,120,151,181,212,243,273,304,334],_s=[0,31,60,91,121,152,182,213,244,274,305,335];function z(t,e){return new Y("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Yt(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function Os(t,e,n){return n+(Ue(t)?_s:Es)[e-1]}function Cs(t,e){const n=Ue(t)?_s:Es,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function Jt(t,e){return(t-e+7)%7+1}function ft(t,e=4,n=1){const{year:s,month:r,day:i}=t,o=Os(s,r,i),a=Jt(Yt(s,r,i),n);let c=Math.floor((o-a+14-e)/7),l;return c<1?(l=s-1,c=$e(l,e,n)):c>$e(s,e,n)?(l=s+1,c=1):l=s,{weekYear:l,weekNumber:c,weekday:a,...St(t)}}function Ns(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,o=Jt(Yt(s,1,e),n),a=_e(s);let c=r*7+i-o-7+e,l;c<1?(l=s-1,c+=_e(l)):c>a?(l=s+1,c-=_e(s)):l=s;const{month:d,day:f}=Cs(l,c);return{year:l,month:d,day:f,...St(t)}}function Kt(t){const{year:e,month:n,day:s}=t,r=Os(e,n,s);return{year:e,ordinal:r,...St(t)}}function Is(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Cs(e,n);return{year:e,month:s,day:r,...St(t)}}function vs(t,e){if(!w(t.localWeekday)||!w(t.localWeekNumber)||!w(t.localWeekYear)){if(!w(t.weekday)||!w(t.weekNumber)||!w(t.weekYear))throw new ke("Cannot mix locale-based week fields with ISO-based week fields");return w(t.localWeekday)||(t.weekday=t.localWeekday),w(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),w(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function zo(t,e=4,n=1){const s=mt(t.weekYear),r=q(t.weekNumber,1,$e(t.weekYear,e,n)),i=q(t.weekday,1,7);return s?r?i?!1:z("weekday",t.weekday):z("week",t.weekNumber):z("weekYear",t.weekYear)}function qo(t){const e=mt(t.year),n=q(t.ordinal,1,_e(t.year));return e?n?!1:z("ordinal",t.ordinal):z("year",t.year)}function xs(t){const e=mt(t.year),n=q(t.month,1,12),s=q(t.day,1,yt(t.year,t.month));return e?n?s?!1:z("day",t.day):z("month",t.month):z("year",t.year)}function Ds(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=q(e,0,23)||e===24&&n===0&&s===0&&r===0,o=q(n,0,59),a=q(s,0,59),c=q(r,0,999);return i?o?a?c?!1:z("millisecond",r):z("second",s):z("minute",n):z("hour",e)}function w(t){return typeof t>"u"}function le(t){return typeof t=="number"}function mt(t){return typeof t=="number"&&t%1===0}function Zo(t){return typeof t=="string"}function jo(t){return Object.prototype.toString.call(t)==="[object Date]"}function Ms(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function As(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Go(t){return Array.isArray(t)?t:[t]}function Vs(t,e,n){if(t.length!==0)return t.reduce((s,r)=>{const i=[e(r),r];return s&&n(s[0],i[0])===s[0]?s:i},null)[1]}function Yo(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function Ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qt(t){if(t==null)return null;if(typeof t!="object")throw new F("Week settings must be an object");if(!q(t.firstDay,1,7)||!q(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!q(e,1,7)))throw new F("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function q(t,e,n){return mt(t)&&t>=e&&t<=n}function Jo(t,e){return t-e*Math.floor(t/e)}function M(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function ue(t){if(!(w(t)||t===null||t===""))return parseInt(t,10)}function me(t){if(!(w(t)||t===null||t===""))return parseFloat(t)}function Xt(t){if(!(w(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function en(t,e,n=!1){const s=10**e;return(n?Math.trunc:Math.round)(t*s)/s}function Ue(t){return t%4===0&&(t%100!==0||t%400===0)}function _e(t){return Ue(t)?366:365}function yt(t,e){const n=Jo(e-1,12)+1,s=t+(e-n)/12;return n===2?Ue(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function pt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Fs(t,e,n){return-Jt(Yt(t,1,e),n)+e-1}function $e(t,e=4,n=1){const s=Fs(t,e,n),r=Fs(t+1,e,n);return(_e(t)-s+r)/7}function tn(t){return t>99?t:t>x.twoDigitCutoffYear?1900+t:2e3+t}function Rs(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function gt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function Ls(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new F(`Invalid unit value ${t}`);return e}function wt(t,e){const n={};for(const s in t)if(Ee(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=Ls(r)}return n}function He(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${M(n,2)}:${M(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${M(n,2)}${M(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function St(t){return Yo(t,["hour","minute","second","millisecond"])}const Ko=["January","February","March","April","May","June","July","August","September","October","November","December"],Ws=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qo=["J","F","M","A","M","J","J","A","S","O","N","D"];function Bs(t){switch(t){case"narrow":return[...Qo];case"short":return[...Ws];case"long":return[...Ko];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Us=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$s=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Xo=["M","T","W","T","F","S","S"];function Hs(t){switch(t){case"narrow":return[...Xo];case"short":return[...$s];case"long":return[...Us];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ps=["AM","PM"],ea=["Before Christ","Anno Domini"],ta=["BC","AD"],na=["B","A"];function zs(t){switch(t){case"narrow":return[...na];case"short":return[...ta];case"long":return[...ea];default:return null}}function sa(t){return Ps[t.hour<12?0:1]}function ra(t,e){return Hs(e)[t.weekday-1]}function ia(t,e){return Bs(e)[t.month-1]}function oa(t,e){return zs(e)[t.year<0?0:1]}function aa(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${r[t][0]}`;case-1:return f?"yesterday":`last ${r[t][0]}`;case 0:return f?"today":`this ${r[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,l=r[t],d=s?c?l[1]:l[2]||l[1]:c?r[t][0]:t;return o?`${a} ${d} ago`:`in ${a} ${d}`}function qs(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const ca={D:ct,DD:jn,DDD:Gn,DDDD:Yn,t:Jn,tt:Kn,ttt:Qn,tttt:Xn,T:es,TT:ts,TTT:ns,TTTT:ss,f:rs,ff:os,fff:cs,ffff:us,F:is,FF:as,FFF:ls,FFFF:ds};class R{static create(e,n={}){return new R(e,n)}static parseFormat(e){let n=null,s="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),n=null,s="",r=!r):r||a===n?s+=a:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=a,n=a)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return ca[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return M(e,n);const s={...this.opts};return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(y,m)=>this.loc.extract(e,y,m),o=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",a=()=>s?sa(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(y,m)=>s?ia(e,y):i(m?{month:y}:{month:y,day:"numeric"},"month"),l=(y,m)=>s?ra(e,y):i(m?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),d=y=>{const m=R.macroTokenToFormatOpts(y);return m?this.formatWithSystemDefault(e,m):y},f=y=>s?oa(e,y):i({era:y},"era"),b=y=>{switch(y){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(y)}};return qs(R.parseFormat(n),b)}formatDurationFromString(e,n){const s=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=c=>l=>{const d=s(l);return d?this.num(c.get(d),l.length):l},i=R.parseFormat(n),o=i.reduce((c,{literal:l,val:d})=>l?c:c.concat(d),[]),a=e.shiftTo(...o.map(s).filter(c=>c));return qs(i,r(a))}}const Zs=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Oe(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function Ce(...t){return e=>t.reduce(([n,s,r],i)=>{const[o,a,c]=i(e,r);return[{...n,...o},a||s,c]},[{},null,1]).slice(0,2)}function Ne(t,...e){if(t==null)return[null,null];for(const[n,s]of e){const r=n.exec(t);if(r)return s(r)}return[null,null]}function js(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=ue(e[n+r]);return[s,null,n+r]}}const Gs=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,la=`(?:${Gs.source}?(?:\\[(${Zs.source})\\])?)?`,nn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ys=RegExp(`${nn.source}${la}`),sn=RegExp(`(?:T${Ys.source})?`),ua=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,da=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ha=/(\d{4})-?(\d{3})/,fa=js("weekYear","weekNumber","weekDay"),ma=js("year","ordinal"),ya=/(\d{4})-(\d\d)-(\d\d)/,Js=RegExp(`${nn.source} ?(?:${Gs.source}|(${Zs.source}))?`),pa=RegExp(`(?: ${Js.source})?`);function Ie(t,e,n){const s=t[e];return w(s)?n:ue(s)}function ga(t,e){return[{year:Ie(t,e),month:Ie(t,e+1,1),day:Ie(t,e+2,1)},null,e+3]}function ve(t,e){return[{hours:Ie(t,e,0),minutes:Ie(t,e+1,0),seconds:Ie(t,e+2,0),milliseconds:Xt(t[e+3])},null,e+4]}function Pe(t,e){const n=!t[e]&&!t[e+1],s=gt(t[e+1],t[e+2]),r=n?null:B.instance(s);return[{},r,e+3]}function ze(t,e){const n=t[e]?te.create(t[e]):null;return[{},n,e+1]}const wa=RegExp(`^T?${nn.source}$`),Sa=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ba(t){const[e,n,s,r,i,o,a,c,l]=t,d=e[0]==="-",f=c&&c[0]==="-",b=(y,m=!1)=>y!==void 0&&(m||y&&d)?-y:y;return[{years:b(me(n)),months:b(me(s)),weeks:b(me(r)),days:b(me(i)),hours:b(me(o)),minutes:b(me(a)),seconds:b(me(c),c==="-0"),milliseconds:b(Xt(l),f)}]}const ka={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 rn(t,e,n,s,r,i,o){const a={year:e.length===2?tn(ue(e)):ue(e),month:Ws.indexOf(n)+1,day:ue(s),hour:ue(r),minute:ue(i)};return o&&(a.second=ue(o)),t&&(a.weekday=t.length>3?Us.indexOf(t)+1:$s.indexOf(t)+1),a}const Ta=/^(?:(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\d)(\d\d)))$/;function Ea(t){const[,e,n,s,r,i,o,a,c,l,d,f]=t,b=rn(e,r,s,n,i,o,a);let y;return c?y=ka[c]:l?y=0:y=gt(d,f),[b,new B(y)]}function _a(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Oa=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ca=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Na=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ks(t){const[,e,n,s,r,i,o,a]=t;return[rn(e,r,s,n,i,o,a),B.utcInstance]}function Ia(t){const[,e,n,s,r,i,o,a]=t;return[rn(e,a,n,s,r,i,o),B.utcInstance]}const va=Oe(ua,sn),xa=Oe(da,sn),Da=Oe(ha,sn),Ma=Oe(Ys),Qs=Ce(ga,ve,Pe,ze),Aa=Ce(fa,ve,Pe,ze),Va=Ce(ma,ve,Pe,ze),Fa=Ce(ve,Pe,ze);function Ra(t){return Ne(t,[va,Qs],[xa,Aa],[Da,Va],[Ma,Fa])}function La(t){return Ne(_a(t),[Ta,Ea])}function Wa(t){return Ne(t,[Oa,Ks],[Ca,Ks],[Na,Ia])}function Ba(t){return Ne(t,[Sa,ba])}const Ua=Ce(ve);function $a(t){return Ne(t,[wa,Ua])}const Ha=Oe(ya,pa),Pa=Oe(Js),za=Ce(ve,Pe,ze);function qa(t){return Ne(t,[Ha,Qs],[Pa,za])}const Xs="Invalid Duration",er={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Za={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...er},Z=146097/400,xe=146097/4800,ja={years:{quarters:4,months:12,weeks:Z/7,days:Z,hours:Z*24,minutes:Z*24*60,seconds:Z*24*60*60,milliseconds:Z*24*60*60*1e3},quarters:{months:3,weeks:Z/28,days:Z/4,hours:Z*24/4,minutes:Z*24*60/4,seconds:Z*24*60*60/4,milliseconds:Z*24*60*60*1e3/4},months:{weeks:xe/7,days:xe,hours:xe*24,minutes:xe*24*60,seconds:xe*24*60*60,milliseconds:xe*24*60*60*1e3},...er},ye=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ga=ye.slice(0).reverse();function de(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new T(s)}function tr(t,e){let n=e.milliseconds??0;for(const s of Ga.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function nr(t,e){const n=tr(t,e)<0?-1:1;ye.reduceRight((s,r)=>{if(w(e[r]))return s;if(s){const i=e[s]*n,o=t[r][s],a=Math.floor(i/o);e[r]+=a*n,e[s]-=a*o*n}return r},null),ye.reduce((s,r)=>{if(w(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function Ya(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class T{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?ja:Za;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||O.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return T.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new F(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new T({values:wt(e,T.normalizeUnit),loc:O.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(le(e))return T.fromMillis(e);if(T.isDuration(e))return e;if(typeof e=="object")return T.fromObject(e);throw new F(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=Ba(e);return s?T.fromObject(s,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=$a(e);return s?T.fromObject(s,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new F("need to specify a reason the Duration is invalid");const s=e instanceof Y?e:new Y(e,n);if(x.throwOnInvalid)throw new So(s);return new T({invalid:s})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Zn(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?R.create(this.loc,s).formatDurationFromString(this,e):Xs}toHuman(e={}){if(!this.isValid)return Xs;const n=ye.map(s=>{const r=this.values[s];return w(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(r)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=en(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},S.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?tr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e),s={};for(const r of ye)(Ee(n.values,r)||Ee(this.values,r))&&(s[r]=n.get(r)+this.get(r));return de(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=Ls(e(this.values[s],s));return de(this,{values:n},!0)}get(e){return this[T.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...wt(e,T.normalizeUnit)};return de(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:s};return de(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return nr(this.matrix,e),de(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Ya(this.normalize().shiftToAll().toObject());return de(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>T.normalizeUnit(o));const n={},s={},r=this.toObject();let i;for(const o of ye)if(e.indexOf(o)>=0){i=o;let a=0;for(const l in s)a+=this.matrix[l][o]*s[l],s[l]=0;le(r[o])&&(a+=r[o]);const c=Math.trunc(a);n[o]=c,s[o]=(a*1e3-c*1e3)/1e3}else le(r[o])&&(s[o]=r[o]);for(const o in s)s[o]!==0&&(n[i]+=o===i?s[o]:s[o]/this.matrix[i][o]);return nr(this.matrix,n),de(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return de(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of ye)if(!n(this.values[s],e.values[s]))return!1;return!0}}const De="Invalid Interval";function Ja(t,e){return!t||!t.isValid?D.invalid("missing or invalid start"):!e||!e.isValid?D.invalid("missing or invalid end"):e<t?D.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class D{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new F("need to specify a reason the Interval is invalid");const s=e instanceof Y?e:new Y(e,n);if(x.throwOnInvalid)throw new wo(s);return new D({invalid:s})}static fromDateTimes(e,n){const s=Ze(e),r=Ze(n),i=Ja(s,r);return i??new D({start:s,end:r})}static after(e,n){const s=T.fromDurationLike(n),r=Ze(e);return D.fromDateTimes(r,r.plus(s))}static before(e,n){const s=T.fromDurationLike(n),r=Ze(e);return D.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,o;try{i=S.fromISO(s,n),o=i.isValid}catch{o=!1}let a,c;try{a=S.fromISO(r,n),c=a.isValid}catch{c=!1}if(o&&c)return D.fromDateTimes(i,a);if(o){const l=T.fromISO(r,n);if(l.isValid)return D.after(i,l)}else if(c){const l=T.fromISO(s,n);if(l.isValid)return D.before(a,l)}}return D.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const s=this.start.startOf(e,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(e,n),Math.floor(r.diff(s,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?D.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Ze).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),s=[];let{s:r}=this,i=0;for(;r<this.e;){const o=n[i]||this.e,a=+o>+this.e?this.e:o;s.push(D.fromDateTimes(r,a)),r=a,i+=1}return s}splitBy(e){const n=T.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,i;const o=[];for(;s<this.e;){const a=this.start.plus(n.mapUnits(c=>c*r));i=+a>+this.e?this.e:a,o.push(D.fromDateTimes(s,i)),s=i,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return n>=s?null:D.fromDateTimes(n,s)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return D.fromDateTimes(n,s)}static merge(e){const[n,s]=e.sort((r,i)=>r.s-i.s).reduce(([r,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[r,i.union(o)]:[r.concat([i]),o]:[r,o],[[],null]);return s&&n.push(s),n}static xor(e){let n=null,s=0;const r=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((c,l)=>c.time-l.time);for(const c of a)s+=c.type==="s"?1:-1,s===1?n=c.time:(n&&+n!=+c.time&&r.push(D.fromDateTimes(n,c.time)),n=null);return D.merge(r)}difference(...e){return D.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:De}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ct,n={}){return this.isValid?R.create(this.s.loc.clone(n),e).formatInterval(this):De}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:De}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:De}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:De}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:De}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):T.invalid(this.invalidReason)}mapEndpoints(e){return D.fromDateTimes(e(this.s),e(this.e))}}class bt{static hasDST(e=x.defaultZone){const n=S.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return te.isValidZone(e)}static normalizeZone(e){return ce(e,x.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||O.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||O.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||O.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||O.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||O.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||O.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||O.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return O.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return O.create(n,null,"gregory").eras(e)}static features(){return{relative:Ms(),localeWeek:As()}}}function sr(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(T.fromMillis(s).as("days"))}function Ka(t,e,n){const s=[["years",(c,l)=>l.year-c.year],["quarters",(c,l)=>l.quarter-c.quarter+(l.year-c.year)*4],["months",(c,l)=>l.month-c.month+(l.year-c.year)*12],["weeks",(c,l)=>{const d=sr(c,l);return(d-d%7)/7}],["days",sr]],r={},i=t;let o,a;for(const[c,l]of s)n.indexOf(c)>=0&&(o=c,r[c]=l(t,e),a=i.plus(r),a>e?(r[c]--,t=i.plus(r),t>e&&(a=t,r[c]--,t=i.plus(r))):t=a);return[t,r,a,o]}function Qa(t,e,n,s){let[r,i,o,a]=Ka(t,e,n);const c=e-r,l=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);l.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+c/(o-r)));const d=T.fromObject(i,s);return l.length>0?T.fromMillis(c,s).shiftTo(...l).plus(d):d}const Xa="missing Intl.DateTimeFormat.formatToParts support";function E(t,e=n=>n){return{regex:t,deser:([n])=>e(Ho(n))}}const rr=`[ ${String.fromCharCode(160)}]`,ir=new RegExp(rr,"g");function ec(t){return t.replace(/\./g,"\\.?").replace(ir,rr)}function or(t){return t.replace(/\./g,"").replace(ir," ").toLowerCase()}function J(t,e){return t===null?null:{regex:RegExp(t.map(ec).join("|")),deser:([n])=>t.findIndex(s=>or(n)===or(s))+e}}function ar(t,e){return{regex:t,deser:([,n,s])=>gt(n,s),groups:e}}function kt(t){return{regex:t,deser:([e])=>e}}function tc(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function nc(t,e){const n=G(e),s=G(e,"{2}"),r=G(e,"{3}"),i=G(e,"{4}"),o=G(e,"{6}"),a=G(e,"{1,2}"),c=G(e,"{1,3}"),l=G(e,"{1,6}"),d=G(e,"{1,9}"),f=G(e,"{2,4}"),b=G(e,"{4,6}"),y=C=>({regex:RegExp(tc(C.val)),deser:([I])=>I,literal:!0}),g=(C=>{if(t.literal)return y(C);switch(C.val){case"G":return J(e.eras("short"),0);case"GG":return J(e.eras("long"),0);case"y":return E(l);case"yy":return E(f,tn);case"yyyy":return E(i);case"yyyyy":return E(b);case"yyyyyy":return E(o);case"M":return E(a);case"MM":return E(s);case"MMM":return J(e.months("short",!0),1);case"MMMM":return J(e.months("long",!0),1);case"L":return E(a);case"LL":return E(s);case"LLL":return J(e.months("short",!1),1);case"LLLL":return J(e.months("long",!1),1);case"d":return E(a);case"dd":return E(s);case"o":return E(c);case"ooo":return E(r);case"HH":return E(s);case"H":return E(a);case"hh":return E(s);case"h":return E(a);case"mm":return E(s);case"m":return E(a);case"q":return E(a);case"qq":return E(s);case"s":return E(a);case"ss":return E(s);case"S":return E(c);case"SSS":return E(r);case"u":return kt(d);case"uu":return kt(a);case"uuu":return E(n);case"a":return J(e.meridiems(),0);case"kkkk":return E(i);case"kk":return E(f,tn);case"W":return E(a);case"WW":return E(s);case"E":case"c":return E(n);case"EEE":return J(e.weekdays("short",!1),1);case"EEEE":return J(e.weekdays("long",!1),1);case"ccc":return J(e.weekdays("short",!0),1);case"cccc":return J(e.weekdays("long",!0),1);case"Z":case"ZZ":return ar(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return ar(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return kt(/[a-z_+-/]{1,256}?/i);case" ":return kt(/[^\S\n\r]/);default:return y(C)}})(t)||{invalidReason:Xa};return g.token=t,g}const sc={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function rc(t,e,n){const{type:s,value:r}=t;if(s==="literal"){const c=/^\s+$/.test(r);return{literal:!c,val:c?" ":r}}const i=e[s];let o=s;s==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let a=sc[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function ic(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function oc(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const o in n)if(Ee(n,o)){const a=n[o],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(s.slice(i,i+c))),i+=c}return[s,r]}else return[s,{}]}function ac(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return w(t.z)||(n=te.create(t.z)),w(t.Z)||(n||(n=new B(t.Z)),s=t.Z),w(t.q)||(t.M=(t.q-1)*3+1),w(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),w(t.u)||(t.S=Xt(t.u)),[Object.keys(t).reduce((i,o)=>{const a=e(o);return a&&(i[a]=t[o]),i},{}),n,s]}let on=null;function cc(){return on||(on=S.fromMillis(1555555555555)),on}function lc(t,e){if(t.literal)return t;const n=R.macroTokenToFormatOpts(t.val),s=dr(n,e);return s==null||s.includes(void 0)?t:s}function cr(t,e){return Array.prototype.concat(...t.map(n=>lc(n,e)))}class lr{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=cr(R.parseFormat(n),e),this.units=this.tokens.map(s=>nc(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=ic(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,s]=oc(e,this.regex,this.handlers),[r,i,o]=s?ac(s):[null,null,void 0];if(Ee(s,"a")&&Ee(s,"H"))throw new ke("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:s,result:r,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ur(t,e,n){return new lr(t,n).explainFromTokens(e)}function uc(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:o}=ur(t,e,n);return[s,r,i,o]}function dr(t,e){if(!t)return null;const s=R.create(e,t).dtFormatter(cc()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(o=>rc(o,t,i))}const an="Invalid DateTime",hr=864e13;function qe(t){return new Y("unsupported zone",`the zone "${t.name}" is not supported`)}function cn(t){return t.weekData===null&&(t.weekData=ft(t.c)),t.weekData}function ln(t){return t.localWeekData===null&&(t.localWeekData=ft(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function pe(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new S({...n,...e,old:n})}function fr(t,e,n){let s=t-e*60*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=(r-e)*60*1e3;const i=n.offset(s);return r===i?[s,r]:[t-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Tt(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Et(t,e,n){return fr(pt(t),e,n)}function mr(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:s,month:r,day:Math.min(t.c.day,yt(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=T.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=pt(i);let[c,l]=fr(a,n,t.zone);return o!==0&&(c+=o,l=t.zone.offset(c)),{ts:c,o:l}}function Me(t,e,n,s,r,i){const{setZone:o,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const c=e||a,l=S.fromObject(t,{...n,zone:c,specificOffset:i});return o?l:l.setZone(a)}else return S.invalid(new Y("unparsable",`the input "${r}" can't be parsed as ${s}`))}function _t(t,e,n=!0){return t.isValid?R.create(O.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function un(t,e){const n=t.c.year>9999||t.c.year<0;let s="";return n&&t.c.year>=0&&(s+="+"),s+=M(t.c.year,n?6:4),e?(s+="-",s+=M(t.c.month),s+="-",s+=M(t.c.day)):(s+=M(t.c.month),s+=M(t.c.day)),s}function yr(t,e,n,s,r,i){let o=M(t.c.hour);return e?(o+=":",o+=M(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=M(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=M(t.c.second),(t.c.millisecond!==0||!s)&&(o+=".",o+=M(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=M(Math.trunc(-t.o/60)),o+=":",o+=M(Math.trunc(-t.o%60))):(o+="+",o+=M(Math.trunc(t.o/60)),o+=":",o+=M(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const pr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},hc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},gr=["year","month","day","hour","minute","second","millisecond"],fc=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mc=["year","ordinal","hour","minute","second","millisecond"];function yc(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Zn(t);return e}function wr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return yc(t)}}function pc(t){return Ct[t]||(Ot===void 0&&(Ot=x.now()),Ct[t]=t.offset(Ot)),Ct[t]}function Sr(t,e){const n=ce(e.zone,x.defaultZone);if(!n.isValid)return S.invalid(qe(n));const s=O.fromObject(e);let r,i;if(w(t.year))r=x.now();else{for(const c of gr)w(t[c])&&(t[c]=pr[c]);const o=xs(t)||Ds(t);if(o)return S.invalid(o);const a=pc(n);[r,i]=Et(t,a,n)}return new S({ts:r,zone:n,loc:s,o:i})}function br(t,e,n){const s=w(n.round)?!0:n.round,r=(o,a)=>(o=en(o,s||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,a)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return r(i(n.unit),n.unit);for(const o of n.units){const a=i(o);if(Math.abs(a)>=1)return r(a,o)}return r(t>e?-0:0,n.units[n.units.length-1])}function kr(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Ot,Ct={};class S{constructor(e){const n=e.zone||x.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new Y("invalid input"):null)||(n.isValid?null:qe(n));this.ts=w(e.ts)?x.now():e.ts;let r=null,i=null;if(!s)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,i]=[e.old.c,e.old.o];else{const a=le(e.o)&&!e.old?e.o:n.offset(this.ts);r=Tt(this.ts,a),s=Number.isNaN(r.year)?new Y("invalid input"):null,r=s?null:r,i=s?null:a}this._zone=n,this.loc=e.loc||O.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[e,n]=kr(arguments),[s,r,i,o,a,c,l]=n;return Sr({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:l},e)}static utc(){const[e,n]=kr(arguments),[s,r,i,o,a,c,l]=n;return e.zone=B.utcInstance,Sr({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:l},e)}static fromJSDate(e,n={}){const s=jo(e)?e.valueOf():NaN;if(Number.isNaN(s))return S.invalid("invalid input");const r=ce(n.zone,x.defaultZone);return r.isValid?new S({ts:s,zone:r,loc:O.fromObject(n)}):S.invalid(qe(r))}static fromMillis(e,n={}){if(le(e))return e<-hr||e>hr?S.invalid("Timestamp out of range"):new S({ts:e,zone:ce(n.zone,x.defaultZone),loc:O.fromObject(n)});throw new F(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(le(e))return new S({ts:e*1e3,zone:ce(n.zone,x.defaultZone),loc:O.fromObject(n)});throw new F("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=ce(n.zone,x.defaultZone);if(!s.isValid)return S.invalid(qe(s));const r=O.fromObject(n),i=wt(e,wr),{minDaysInFirstWeek:o,startOfWeek:a}=vs(i,r),c=x.now(),l=w(n.specificOffset)?s.offset(c):n.specificOffset,d=!w(i.ordinal),f=!w(i.year),b=!w(i.month)||!w(i.day),y=f||b,m=i.weekYear||i.weekNumber;if((y||d)&&m)throw new ke("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&d)throw new ke("Can't mix ordinal dates with month/day");const g=m||i.weekday&&!y;let C,I,v=Tt(c,l);g?(C=fc,I=dc,v=ft(v,o,a)):d?(C=mc,I=hc,v=Kt(v)):(C=gr,I=pr);let ne=!1;for(const we of C){const dn=i[we];w(dn)?ne?i[we]=I[we]:i[we]=v[we]:ne=!0}const N=g?zo(i,o,a):d?qo(i):xs(i),_=N||Ds(i);if(_)return S.invalid(_);const U=g?Ns(i,o,a):d?Is(i):i,[L,ge]=Et(U,l,s),he=new S({ts:L,zone:s,o:ge,loc:r});return i.weekday&&y&&e.weekday!==he.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${he.toISO()}`):he.isValid?he:S.invalid(he.invalid)}static fromISO(e,n={}){const[s,r]=Ra(e);return Me(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=La(e);return Me(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=Wa(e);return Me(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(w(e)||w(n))throw new F("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,o=O.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,c,l,d]=uc(o,e,n);return d?S.invalid(d):Me(a,c,s,`format ${n}`,e,l)}static fromString(e,n,s={}){return S.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=qa(e);return Me(s,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new F("need to specify a reason the DateTime is invalid");const s=e instanceof Y?e:new Y(e,n);if(x.throwOnInvalid)throw new go(s);return new S({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=dr(e,O.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return cr(R.parseFormat(e),O.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Ot=void 0,Ct={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cn(this).weekYear:NaN}get weekNumber(){return this.isValid?cn(this).weekNumber:NaN}get weekday(){return this.isValid?cn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ln(this).weekday:NaN}get localWeekNumber(){return this.isValid?ln(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ln(this).weekYear:NaN}get ordinal(){return this.isValid?Kt(this.c).ordinal:NaN}get monthShort(){return this.isValid?bt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?bt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?bt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?bt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,s=pt(this.c),r=this.zone.offset(s-e),i=this.zone.offset(s+e),o=this.zone.offset(s-r*n),a=this.zone.offset(s-i*n);if(o===a)return[this];const c=s-o*n,l=s-a*n,d=Tt(c,o),f=Tt(l,a);return d.hour===f.hour&&d.minute===f.minute&&d.second===f.second&&d.millisecond===f.millisecond?[pe(this,{ts:c}),pe(this,{ts:l})]:[this]}get isInLeapYear(){return Ue(this.year)}get daysInMonth(){return yt(this.year,this.month)}get daysInYear(){return this.isValid?_e(this.year):NaN}get weeksInWeekYear(){return this.isValid?$e(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?$e(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=R.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(B.instance(e),n)}toLocal(){return this.setZone(x.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=ce(e,x.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||s){const i=e.offset(this.ts),o=this.toObject();[r]=Et(o,i,e)}return pe(this,{ts:r,zone:e})}else return S.invalid(qe(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return pe(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=wt(e,wr),{minDaysInFirstWeek:s,startOfWeek:r}=vs(n,this.loc),i=!w(n.weekYear)||!w(n.weekNumber)||!w(n.weekday),o=!w(n.ordinal),a=!w(n.year),c=!w(n.month)||!w(n.day),l=a||c,d=n.weekYear||n.weekNumber;if((l||o)&&d)throw new ke("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new ke("Can't mix ordinal dates with month/day");let f;i?f=Ns({...ft(this.c,s,r),...n},s,r):w(n.ordinal)?(f={...this.toObject(),...n},w(n.day)&&(f.day=Math.min(yt(f.year,f.month),f.day))):f=Is({...Kt(this.c),...n});const[b,y]=Et(f,this.o,this.zone);return pe(this,{ts:b,o:y})}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return pe(this,mr(this,n))}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e).negate();return pe(this,mr(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=T.normalizeUnit(e);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(s.weekNumber=this.weekNumber-1),s.weekday=i}else s.weekday=1;if(r==="quarters"){const i=Math.ceil(this.month/3);s.month=(i-1)*3+1}return this.set(s)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?R.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):an}toLocaleString(e=ct,n={}){return this.isValid?R.create(this.loc.clone(n),e).formatDateTime(this):an}toLocaleParts(e={}){return this.isValid?R.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=un(this,o);return a+="T",a+=yr(this,o,n,s,r,i),a}toISODate({format:e="extended"}={}){return this.isValid?un(this,e==="extended"):null}toISOWeekDate(){return _t(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+yr(this,o==="extended",n,e,s,i):null}toRFC2822(){return _t(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return _t(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?un(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(s&&(r+=" "),n?r+="z":e&&(r+="ZZ")),_t(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():an}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",s={}){if(!this.isValid||!e.isValid)return T.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=Go(n).map(T.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,c=o?e:this,l=Qa(a,c,i,r);return o?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(S.now(),e,n)}until(e){return this.isValid?D.fromDateTimes(this,e):this}hasSame(e,n,s){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,s)<=r&&r<=i.endOf(n,s)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||S.fromObject({},{zone:this.zone}),s=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),br(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?br(e.base||S.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(S.isDateTime))throw new F("min requires all arguments be DateTimes");return Vs(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(S.isDateTime))throw new F("max requires all arguments be DateTimes");return Vs(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,o=O.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return ur(o,e,n)}static fromStringExplain(e,n,s={}){return S.fromFormatExplain(e,n,s)}static buildFormatParser(e,n={}){const{locale:s=null,numberingSystem:r=null}=n,i=O.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new lr(i,e)}static fromFormatParser(e,n,s={}){if(w(e)||w(n))throw new F("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,o=O.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!o.equals(n.locale))throw new F(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:a,zone:c,specificOffset:l,invalidReason:d}=n.explainFromTokens(e);return d?S.invalid(d):Me(a,c,s,`format ${n.format}`,e,l)}static get DATE_SHORT(){return ct}static get DATE_MED(){return jn}static get DATE_MED_WITH_WEEKDAY(){return bo}static get DATE_FULL(){return Gn}static get DATE_HUGE(){return Yn}static get TIME_SIMPLE(){return Jn}static get TIME_WITH_SECONDS(){return Kn}static get TIME_WITH_SHORT_OFFSET(){return Qn}static get TIME_WITH_LONG_OFFSET(){return Xn}static get TIME_24_SIMPLE(){return es}static get TIME_24_WITH_SECONDS(){return ts}static get TIME_24_WITH_SHORT_OFFSET(){return ns}static get TIME_24_WITH_LONG_OFFSET(){return ss}static get DATETIME_SHORT(){return rs}static get DATETIME_SHORT_WITH_SECONDS(){return is}static get DATETIME_MED(){return os}static get DATETIME_MED_WITH_SECONDS(){return as}static get DATETIME_MED_WITH_WEEKDAY(){return ko}static get DATETIME_FULL(){return cs}static get DATETIME_FULL_WITH_SECONDS(){return ls}static get DATETIME_HUGE(){return us}static get DATETIME_HUGE_WITH_SECONDS(){return ds}}function Ze(t){if(S.isDateTime(t))return t;if(t&&t.valueOf&&le(t.valueOf()))return S.fromJSDate(t);if(t&&typeof t=="object")return S.fromObject(t);throw new F(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const gc={},wc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Sc=[u.createElementVNode("path",{fill:"rgb(248 113 113)",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},null,-1)];function bc(t,e){return u.openBlock(),u.createElementBlock("svg",wc,Sc)}const kc=ie(gc,[["render",bc]]),Tc={class:"messages-container-list"},Ec={class:"message-container"},_c={key:0,class:"btn-container-widget"},Oc=["onClick"],Cc={class:"chat-message"},Nc={class:"message-text"},Ic={class:"detail-message flex justify-content-between"},vc={key:0,class:"mr-5"},xc={key:1,class:"mr-5"},Dc=u.defineComponent({__name:"MessageList",props:{messages:{type:Array,default:()=>[]},canLoadMoreMessages:{type:Boolean,default:!1}},emits:["loadMore","retry"],setup(t,{emit:e}){const n=t,s=u.ref(),{pause:r,resume:i}=po(s,([{isIntersecting:o}])=>{o&&e("loadMore")});return u.onBeforeMount(()=>{n.canLoadMoreMessages||r()}),u.watch(()=>n.canLoadMoreMessages,o=>{if(o){i();return}r()}),(o,a)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{ref_key:"target",ref:s,class:"target"},null,512),u.createElementVNode("div",Tc,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.messages,c=>{var l,d;return u.openBlock(),u.createElementBlock("div",{key:c.id,class:u.normalizeClass(["message",c.esCliente?"message-right":"message-left"])},[u.createElementVNode("div",Ec,[c.error&&c.esCliente?(u.openBlock(),u.createElementBlock("div",_c,[u.createElementVNode("button",{text:"",rounded:"",class:"btn-danger",icon:"fa-solid fa-circle-exclamation","aria-label":"Cancel",onClick:f=>e("retry",c)},[u.createVNode(kc)],8,Oc)])):u.createCommentVNode("",!0),u.createElementVNode("div",Cc,[u.createElementVNode("div",{class:u.normalizeClass(["bubble",c.esCliente?"right":"left"])},[u.createElementVNode("div",{class:u.normalizeClass(c.esCliente?"content-right":"content-left")},[u.createElementVNode("div",Nc,u.toDisplayString(c.message),1),u.createElementVNode("div",Ic,[(l=c.sender)!=null&&l.nombreCompleto?(u.openBlock(),u.createElementBlock("span",vc,u.toDisplayString(c.esCliente?(d=c.sender)==null?void 0:d.nombreCompleto:"ECOSISTEMA JL"),1)):(u.openBlock(),u.createElementBlock("span",xc)),u.createElementVNode("span",null,u.toDisplayString(u.unref(S).fromISO(c.createdAt).toFormat("dd-MM-yyyy HH:mm")),1)])],2)],2)])])],2)}),128))])],64))}}),gl="",Mc=ie(Dc,[["__scopeId","data-v-55fd4dd9"]]),wl="",Ac={},Tr=t=>(u.pushScopeId("data-v-d9a6b2b7"),t=t(),u.popScopeId(),t),Vc={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{width:"28px",height:"28px"}},Fc=[Tr(()=>u.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,-1)),Tr(()=>u.createElementVNode("path",{d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",class:"spinner_ajPY"},null,-1))];function Rc(t,e){return u.openBlock(),u.createElementBlock("svg",Vc,Fc)}const Lc=ie(Ac,[["render",Rc],["__scopeId","data-v-d9a6b2b7"]]);function Wc(t,e,n){for(let s=t.length-1;s>=0;s--)if(t[s][e]===n)return s;return-1}var Er=(t=>(t.NEW_MESSAGE="new_message",t))(Er||{});const Bc={class:"widget"},Uc={class:"header-widget"},$c={class:"title-chat"},Hc={key:0,class:"loader"},Pc={class:"w-full"},zc=["onSubmit"],qc={class:"form-message"},Zc={class:"jl-inputgroup-chat"},jc=["onKeyup"],Gc={type:"submit",class:"pointer btn-primary"},Yc=14,Jc=u.defineComponent({__name:"Chat",props:{titlePrincipal:{type:String,default:"Comunicación en linea para consultas"},toggleChat:{type:Function,required:!0},tokenAuth:{type:String,required:!0},user:{type:Object,required:!0},visible:{type:Boolean,required:!0}},emits:["show-toast","show-confirm","new-message","clear-new-messages","not-viewed-total"],setup(t,{emit:e}){const n=t,s=u.ref(null),r=u.ref(""),i=u.ref(0),o=u.ref({data:[],canLoadMoreMessages:!1}),a=u.ref({virtualhost:""}),c=u.ref(""),l=u.ref(!1),d=u.ref(null);u.watch(()=>n.visible,async N=>{if(!N||(e("clear-new-messages"),C(),i.value>0&&zn(c.value,n.tokenAuth),a.value&&c.value))return;const _=await Pn(n.tokenAuth);_&&(a.value=_.virtualHost,c.value=_.appChat.id,g())}),u.onMounted(async()=>{if(a.value&&c.value)return;const N=await Pn(n.tokenAuth);N&&(a.value=N.virtualHost,c.value=N.appChat.id,e("not-viewed-total",N.appChat.totalNoVistosCliente),i.value=N.appChat.totalNoVistosCliente,y(),g())});const f=async N=>{var L;if(((L=r.value)==null?void 0:L.length)>300){e("show-toast",{severity:"warn",summary:"Error",detail:"El mensaje no puede superar los 300 caracteres",life:5e3});return}if(!r.value.trim()){e("show-toast",{severity:"warn",summary:"Error",detail:"Por favor ingrese un mensaje",life:5e3});return}const _={id:Nr(),message:r.value,visto:!0,multimedia:!1,esCliente:!0,appChatId:c.value,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sender:{nombreCompleto:n.user.nombreCompleto,ci:n.user.ci,msPersonaId:n.user.msPersonaId}},U=o.value.data.push(_)-1;b(r.value,c.value).then(ge=>{ge?o.value.data[U]=ge:(o.value.data[U].error={error:!0,id:_.id},e("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3}))}),r.value="",C(),v.value&&(v.value.style.height="20px")},b=async(N,_)=>co({esCliente:!0,message:N,appChatId:_},n.tokenAuth),y=async()=>{var L,ge,he;const N=(L=o.value.data[0])==null?void 0:L.id,_={lastMessagesId:N,appChatId:c.value,limit:10};l.value=!0;const U=await ao({body:_,token:n.tokenAuth});l.value=!1,o.value.data.unshift(...U.data.sort((we,dn)=>-dn.createdAt.localeCompare(we.createdAt))),o.value.canLoadMoreMessages=U.pagination.total>U.pagination.size,N&&((ge=d.value)!=null&&ge.scrollHeight)&&I((he=d.value)==null?void 0:he.scrollHeight),N||C()},m=async N=>{e("show-confirm",async()=>{var U;if(!((U=N.error)!=null&&U.id))return;const _=await b(N.message,c.value);if(!_)e("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});else{const L=Wc(o.value.data,"id",N.error.id);o.value.data[L]={..._,error:void 0}}C()})},g=(N="webchat")=>{const{virtualhost:_}=a.value;if(!sessionStorage.getItem("tabBrowser")){let L=Date.now();sessionStorage.setItem("tabBrowser",`${L}`)}s.value=new Rr(`${_}`,`widget_chat_${sessionStorage.getItem("tabBrowser")}`),s.value.connect(),s.value.subscribe(async L=>{L.event&&L.event===Er.NEW_MESSAGE&&!L.message.esCliente&&(o.value.data.push(L.message),n.visible===!0&&zn(c.value,n.tokenAuth),n.visible===!1&&(i.value=i.value+1,e("new-message")),C())})},C=()=>{u.nextTick(()=>{d.value&&(d.value.scrollTop=d.value.scrollHeight)})},I=N=>{u.nextTick(()=>{const _=d.value;_&&(_.scrollTop=_.scrollHeight-N)})},v=u.ref();function ne(){v.value&&(v.value.style.height=v.value.scrollHeight-Yc+"px",v.value.scrollHeight!==v.value.clientHeight&&(v.value.style.height=v.value.scrollHeight+"px"))}return(N,_)=>(u.openBlock(),u.createElementBlock("div",Bc,[u.createElementVNode("div",Uc,[u.createElementVNode("h4",$c,u.toDisplayString(t.titlePrincipal),1),u.createElementVNode("button",{onClick:_[0]||(_[0]=()=>t.toggleChat()),class:"btn-close"},[u.createVNode($r,{class:"pointer"})])]),u.createElementVNode("div",{class:"messages-container",ref_key:"messageContainerRef",ref:d},[l.value?(u.openBlock(),u.createElementBlock("div",Hc,[u.createVNode(Lc)])):u.createCommentVNode("",!0),u.createVNode(Mc,{messages:o.value.data,canLoadMoreMessages:o.value.canLoadMoreMessages,onLoadMore:y,onRetry:m},null,8,["messages","canLoadMoreMessages"])],512),u.createElementVNode("div",Pc,[u.createElementVNode("form",{class:"message-send",onSubmit:u.withModifiers(f,["prevent"])},[u.createElementVNode("div",qc,[u.createElementVNode("div",Zc,[u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":_[1]||(_[1]=U=>r.value=U),class:"jl2-input-chat",required:"",ref_key:"textAreaRef",ref:v,onInput:_[2]||(_[2]=()=>ne()),onKeydown:_[3]||(_[3]=u.withKeys(u.withModifiers(()=>{},["prevent"]),["enter"])),onKeyup:u.withKeys(u.withModifiers(f,["prevent"]),["enter"])},null,40,jc),[[u.vModelText,r.value]]),u.createElementVNode("button",Gc,[u.createVNode(Zr,{style:{width:"20px",height:"20px"}})])])])],40,zc)])]))}}),kl="",Kc=ie(Jc,[["__scopeId","data-v-659d93d4"]]),Qc={},Xc={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"},el=[u.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 tl(t,e){return u.openBlock(),u.createElementBlock("svg",Xc,el)}const nl=ie(Qc,[["render",tl]]),sl={key:0,class:"new-message-badge"},rl={class:"chat-box"},il=u.defineComponent({__name:"Widget",props:{tokenAuth:{type:String,required:!0},titlePrincipal:{type:String},user:{type:Object,required:!0},isDarkMode:{type:Boolean,default:!1}},emits:["show-toast","show-confirm"],setup(t,{emit:e}){const n=u.ref(!1),s=u.ref(0),r=()=>{n.value=!n.value};return(i,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["widget-css-reset widget-container",t.isDarkMode?"chat-dark-mode":""])},[u.withDirectives(u.createElementVNode("div",{id:"chat-circle",onClick:r,class:"widget-container"},[s.value?(u.openBlock(),u.createElementBlock("div",sl,u.toDisplayString(s.value>9?"9+":s.value),1)):u.createCommentVNode("",!0),u.createVNode(nl)],512),[[u.vShow,!n.value]]),u.withDirectives(u.createElementVNode("div",rl,[u.createVNode(Kc,{visible:n.value,titlePrincipal:t.titlePrincipal,toggleChat:r,tokenAuth:t.tokenAuth,user:t.user,onShowToast:o[0]||(o[0]=a=>e("show-toast",a)),onShowConfirm:o[1]||(o[1]=a=>e("show-confirm",a)),onClearNewMessages:o[2]||(o[2]=a=>s.value=0),onNewMessage:o[3]||(o[3]=()=>s.value++),onNotViewedTotal:o[4]||(o[4]=a=>s.value=a)},null,8,["visible","titlePrincipal","tokenAuth","user"])],512),[[u.vShow,n.value]])],2))}}),El="",_l="",ol=ie(il,[["__scopeId","data-v-e10a4b97"]]),al={install(t,e){window.VITE_BACKEND_URL=e.VITE_BACKEND_URL,window.VITE_BROKER_URL=e.VITE_BROKER_URL,window.VITE_USERNAME=e.VITE_USERNAME,window.VITE_PASSWORD=e.VITE_PASSWORD}};se.Widget=ol,se.default=al,Object.defineProperties(se,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[Vn]=this[Vn]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Re(o);s[a]||(Zi(r,o),s[a]=!0)}return h.isArray(e)?e.forEach(i):i(e),this}}st.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.freezeMethods(st.prototype),h.freezeMethods(st);const ee=st;function Vt(t,e){const n=this||Mt,s=e||n,r=ee.from(s.headers);let i=s.data;return h.forEach(t,function(a){i=a.call(n,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function Fn(t){return!!(t&&t.__CANCEL__)}function Le(t,e,n){k.call(this,t??"canceled",k.ERR_CANCELED,e,n),this.name="CanceledError"}h.inherits(Le,k,{__CANCEL__:!0});function ji(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new k("Request failed with status code "+n.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Gi=Q.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,a){const c=[];c.push(n+"="+encodeURIComponent(s)),h.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),h.isString(i)&&c.push("path="+i),h.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Yi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ji(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Rn(t,e){return t&&!Yi(e)?Ji(t,e):e}const Ki=Q.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const a=h.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Qi(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Xi(t,e){t=t||10;const n=new Array(t),s=new Array(t);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=s[i];o||(o=l),n[r]=c,s[r]=l;let f=i,b=0;for(;f!==r;)b+=n[f++],f=f%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),l-o<e)return;const y=d&&l-d;return y?Math.round(b*1e3/y):void 0}}function Ln(t,e){let n=0;const s=Xi(50,250);return r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a),l=i<=o;n=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:r};d[e?"download":"upload"]=!0,t(d)}}const rt={http:Ci,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,s){let r=t.data;const i=ee.from(t.headers).normalize(),o=t.responseType;let a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}h.isFormData(r)&&(Q.isStandardBrowserEnv||Q.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+m))}const d=Rn(t.baseURL,t.url);l.open(t.method.toUpperCase(),xn(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function f(){if(!l)return;const y=ee.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),g={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:t,request:l};ji(function(v){n(v),c()},function(v){s(v),c()},g),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(s(new k("Request aborted",k.ECONNABORTED,t,l)),l=null)},l.onerror=function(){s(new k("Network Error",k.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let m=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const g=t.transitional||Mn;t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),s(new k(m,g.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,t,l)),l=null},Q.isStandardBrowserEnv){const y=(t.withCredentials||Ki(d))&&t.xsrfCookieName&&Gi.read(t.xsrfCookieName);y&&i.set(t.xsrfHeaderName,y)}r===void 0&&i.setContentType(null),"setRequestHeader"in l&&h.forEach(i.toJSON(),function(m,g){l.setRequestHeader(g,m)}),h.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",Ln(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ln(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=y=>{l&&(s(!y||y.type?new Le(null,t,l):y),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const b=Qi(d);if(b&&Q.protocols.indexOf(b)===-1){s(new k("Unsupported protocol "+b+":",k.ERR_BAD_REQUEST,t));return}l.send(r||null)})}};h.forEach(rt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const eo={getAdapter:t=>{t=h.isArray(t)?t:[t];const{length:e}=t;let n,s;for(let r=0;r<e&&(n=t[r],!(s=h.isString(n)?rt[n.toLowerCase()]:n));r++);if(!s)throw s===!1?new k(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(h.hasOwnProp(rt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!h.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:rt};function Ft(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Le(null,t)}function Wn(t){return Ft(t),t.headers=ee.from(t.headers),t.data=Vt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),eo.getAdapter(t.adapter||Mt.adapter)(t).then(function(s){return Ft(t),s.data=Vt.call(t,t.transformResponse,s),s.headers=ee.from(s.headers),s},function(s){return Fn(s)||(Ft(t),s&&s.response&&(s.response.data=Vt.call(t,t.transformResponse,s.response),s.response.headers=ee.from(s.response.headers))),Promise.reject(s)})}const Bn=t=>t instanceof ee?t.toJSON():t;function be(t,e){e=e||{};const n={};function s(l,d,f){return h.isPlainObject(l)&&h.isPlainObject(d)?h.merge.call({caseless:f},l,d):h.isPlainObject(d)?h.merge({},d):h.isArray(d)?d.slice():d}function r(l,d,f){if(h.isUndefined(d)){if(!h.isUndefined(l))return s(void 0,l,f)}else return s(l,d,f)}function i(l,d){if(!h.isUndefined(d))return s(void 0,d)}function o(l,d){if(h.isUndefined(d)){if(!h.isUndefined(l))return s(void 0,l)}else return s(void 0,d)}function a(l,d,f){if(f in e)return s(l,d);if(f in t)return s(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,d)=>r(Bn(l),Bn(d),!0)};return h.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=c[d]||r,b=f(t[d],e[d],d);h.isUndefined(b)&&f!==a||(n[d]=b)}),n}const Un="1.4.0",Rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Rt[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const $n={};Rt.transitional=function(e,n,s){function r(i,o){return"[Axios v"+Un+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(e===!1)throw new k(r(o," has been removed"+(n?" in "+n:"")),k.ERR_DEPRECATED);return n&&!$n[o]&&($n[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};function to(t,e,n){if(typeof t!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let r=s.length;for(;r-- >0;){const i=s[r],o=e[i];if(o){const a=t[i],c=a===void 0||o(a,i,t);if(c!==!0)throw new k("option "+i+" must be "+c,k.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new k("Unknown option "+i,k.ERR_BAD_OPTION)}}const Lt={assertOptions:to,validators:Rt},oe=Lt.validators;class it{constructor(e){this.defaults=e,this.interceptors={request:new Dn,response:new Dn}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=be(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Lt.assertOptions(s,{silentJSONParsing:oe.transitional(oe.boolean),forcedJSONParsing:oe.transitional(oe.boolean),clarifyTimeoutError:oe.transitional(oe.boolean)},!1),r!=null&&(h.isFunction(r)?n.paramsSerializer={serialize:r}:Lt.assertOptions(r,{encode:oe.function,serialize:oe.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&h.merge(i.common,i[n.method]),o&&h.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ee.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let d,f=0,b;if(!c){const m=[Wn.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),b=m.length,d=Promise.resolve(n);f<b;)d=d.then(m[f++],m[f++]);return d}b=a.length;let y=n;for(f=0;f<b;){const m=a[f++],g=a[f++];try{y=m(y)}catch(C){g.call(this,C);break}}try{d=Wn.call(this,y)}catch(m){return Promise.reject(m)}for(f=0,b=l.length;f<b;)d=d.then(l[f++],l[f++]);return d}getUri(e){e=be(this.defaults,e);const n=Rn(e.baseURL,e.url);return xn(n,e.params,e.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(e){it.prototype[e]=function(n,s){return this.request(be(s||{},{method:e,url:n,data:(s||{}).data}))}}),h.forEach(["post","put","patch"],function(e){function n(s){return function(i,o,a){return this.request(be(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}it.prototype[e]=n(),it.prototype[e+"Form"]=n(!0)});const ot=it;class Wt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},e(function(i,o,a){s.reason||(s.reason=new Le(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Wt(function(r){e=r}),cancel:e}}}const no=Wt;function so(t){return function(n){return t.apply(null,n)}}function ro(t){return h.isObject(t)&&t.isAxiosError===!0}const Bt={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(Bt).forEach(([t,e])=>{Bt[e]=t});const io=Bt;function Hn(t){const e=new ot(t),n=mn(ot.prototype.request,e);return h.extend(n,ot.prototype,e,{allOwnKeys:!0}),h.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Hn(be(t,r))},n}const A=Hn(Mt);A.Axios=ot,A.CanceledError=Le,A.CancelToken=no,A.isCancel=Fn,A.VERSION=Un,A.toFormData=et,A.AxiosError=k,A.Cancel=A.CanceledError,A.all=function(e){return Promise.all(e)},A.spread=so,A.isAxiosError=ro,A.mergeConfig=be,A.AxiosHeaders=ee,A.formToJSON=t=>An(h.isHTMLForm(t)?new FormData(t):t),A.HttpStatusCode=io,A.default=A;const oo=A,at=async function(t){const e=t,n=window.VITE_BACKEND_URL?window.VITE_BACKEND_URL:"https://chatadmin-gw.dev.mp.gob.bo",s={method:e.method,url:`${n}${e.url}`,headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json; charset=utf-8",...e.headers},data:e.data};return await oo(s).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})};async function ao(t){const e={url:"/v1/message/list-messages",method:"post",data:t.body,token:t.token},n=await at(e).catch(r=>(console.error(r),null)),s=n==null?void 0:n.response;return s!=null&&s.data?{data:s.data,pagination:s.pagination}:{data:[],pagination:{total:0,limit:0,size:0}}}async function co(t,e){var r;const s=await at({url:"/v1/message/send-message",method:"POST",data:t,token:e}).catch(i=>(console.error(i),null));return(r=s==null?void 0:s.response)==null?void 0:r.data}async function Pn(t){var s;const n=await at({url:"/v1/app-chats/web-chat",method:"get",token:t}).catch(r=>(console.error(r),null));return(s=n==null?void 0:n.response)==null?void 0:s.data}async function zn(t,e){var i;const n={esCliente:!0,totalNoVistos:0,totalNoVistosCliente:0},s={url:`/v1/app-chats/update-vistos/${t}`,method:"PATCH",data:n,token:e},r=await at(s).catch(o=>(console.error(o),null));return(i=r==null?void 0:r.response)==null?void 0:i.data}function lo(t){return u.getCurrentScope()?(u.onScopeDispose(t),!0):!1}function qn(t){return typeof t=="function"?t():u.unref(t)}const uo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ho=t=>t!=null,Ut=()=>{};function $t(t){var e;const n=qn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const fo=uo?window:void 0;function mo(){const t=u.ref(!1),e=u.getCurrentInstance();return e&&u.onMounted(()=>{t.value=!0},e),t}function yo(t){const e=mo();return u.computed(()=>(e.value,!!t()))}function po(t,e,n={}){const{root:s,rootMargin:r="0px",threshold:i=.1,window:o=fo,immediate:a=!0}=n,c=yo(()=>o&&"IntersectionObserver"in o),l=u.computed(()=>{const m=qn(t);return(Array.isArray(m)?m:[m]).map($t).filter(ho)});let d=Ut;const f=u.ref(a),b=c.value?u.watch(()=>[l.value,$t(s),f.value],([m,g])=>{if(d(),!f.value||!m.length)return;const C=new IntersectionObserver(e,{root:$t(g),rootMargin:r,threshold:i});m.forEach(v=>v&&C.observe(v)),d=()=>{C.disconnect(),d=Ut}},{immediate:a,flush:"post"}):Ut,y=()=>{d(),b(),f.value=!1};return lo(y),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:y}}class fe extends Error{}class go extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class wo extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class So extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ke extends fe{}class Zn extends fe{constructor(e){super(`Invalid unit ${e}`)}}class F extends fe{}class ae extends fe{constructor(){super("Zone is an abstract class")}}const p="numeric",j="short",$="long",ct={year:p,month:p,day:p},jn={year:p,month:j,day:p},bo={year:p,month:j,day:p,weekday:j},Gn={year:p,month:$,day:p},Yn={year:p,month:$,day:p,weekday:$},Jn={hour:p,minute:p},Kn={hour:p,minute:p,second:p},Qn={hour:p,minute:p,second:p,timeZoneName:j},Xn={hour:p,minute:p,second:p,timeZoneName:$},es={hour:p,minute:p,hourCycle:"h23"},ts={hour:p,minute:p,second:p,hourCycle:"h23"},ns={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:j},ss={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:$},rs={year:p,month:p,day:p,hour:p,minute:p},is={year:p,month:p,day:p,hour:p,minute:p,second:p},os={year:p,month:j,day:p,hour:p,minute:p},as={year:p,month:j,day:p,hour:p,minute:p,second:p},ko={year:p,month:j,day:p,weekday:j,hour:p,minute:p},cs={year:p,month:$,day:p,hour:p,minute:p,timeZoneName:j},ls={year:p,month:$,day:p,hour:p,minute:p,second:p,timeZoneName:j},us={year:p,month:$,day:p,weekday:$,hour:p,minute:p,timeZoneName:$},ds={year:p,month:$,day:p,weekday:$,hour:p,minute:p,second:p,timeZoneName:$};class We{get type(){throw new ae}get name(){throw new ae}get ianaName(){return this.name}get isUniversal(){throw new ae}offsetName(e,n){throw new ae}formatOffset(e,n){throw new ae}offset(e){throw new ae}equals(e){throw new ae}get isValid(){throw new ae}}let Ht=null;class lt extends We{static get instance(){return Ht===null&&(Ht=new lt),Ht}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Rs(e,n,s)}formatOffset(e,n){return He(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ut={};function To(t){return ut[t]||(ut[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ut[t]}const Eo={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function _o(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,o,a,c,l,d]=s;return[o,r,i,a,c,l,d]}function Oo(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:o}=n[r],a=Eo[i];i==="era"?s[a]=o:w(a)||(s[a]=parseInt(o,10))}return s}let dt={};class te extends We{static create(e){return dt[e]||(dt[e]=new te(e)),dt[e]}static resetCache(){dt={},ut={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=te.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Rs(e,n,s,this.name)}formatOffset(e,n){return He(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const s=To(this.name);let[r,i,o,a,c,l,d]=s.formatToParts?Oo(s,n):_o(s,n);a==="BC"&&(r=-Math.abs(r)+1);const b=pt({year:r,month:i,day:o,hour:c===24?0:c,minute:l,second:d,millisecond:0});let y=+n;const m=y%1e3;return y-=m>=0?m:1e3+m,(b-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let hs={};function Co(t,e={}){const n=JSON.stringify([t,e]);let s=hs[n];return s||(s=new Intl.ListFormat(t,e),hs[n]=s),s}let Pt={};function zt(t,e={}){const n=JSON.stringify([t,e]);let s=Pt[n];return s||(s=new Intl.DateTimeFormat(t,e),Pt[n]=s),s}let qt={};function No(t,e={}){const n=JSON.stringify([t,e]);let s=qt[n];return s||(s=new Intl.NumberFormat(t,e),qt[n]=s),s}let Zt={};function vo(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=Zt[r];return i||(i=new Intl.RelativeTimeFormat(t,e),Zt[r]=i),i}let Be=null;function Io(){return Be||(Be=new Intl.DateTimeFormat().resolvedOptions().locale,Be)}let fs={};function xo(t){let e=fs[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,fs[t]=e}return e}function Do(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let s,r;try{s=zt(t).resolvedOptions(),r=t}catch{const c=t.substring(0,n);s=zt(c).resolvedOptions(),r=c}const{numberingSystem:i,calendar:o}=s;return[r,i,o]}}function Mo(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Ao(t){const e=[];for(let n=1;n<=12;n++){const s=S.utc(2009,n,1);e.push(t(s))}return e}function Vo(t){const e=[];for(let n=1;n<=7;n++){const s=S.utc(2016,11,13+n);e.push(t(s))}return e}function ht(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function Fo(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Ro{constructor(e,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:i,...o}=s;if(!n||Object.keys(o).length>0){const a={useGrouping:!1,...s};s.padTo>0&&(a.minimumIntegerDigits=s.padTo),this.inf=No(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):en(e,3);return M(n,this.padTo)}}}class Lo{constructor(e,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&te.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=zt(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Wo{constructor(e,n,s){this.opts={style:"long",...s},!n&&Ms()&&(this.rtf=vo(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):aa(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Bo={firstDay:1,minimalDays:4,weekend:[6,7]};class O{static fromOpts(e){return O.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,s,r,i=!1){const o=e||x.defaultLocale,a=o||(i?"en-US":Io()),c=n||x.defaultNumberingSystem,l=s||x.defaultOutputCalendar,d=Qt(r)||x.defaultWeekSettings;return new O(a,c,l,d,o)}static resetCache(){Be=null,Pt={},qt={},Zt={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return O.create(e,n,s,r)}constructor(e,n,s,r,i){const[o,a,c]=Do(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=s||c||null,this.weekSettings=r,this.intl=Mo(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Fo(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:O.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Qt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return ht(this,e,Bs,()=>{const s=n?{month:e,day:"numeric"}:{month:e},r=n?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=Ao(i=>this.extract(i,s,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return ht(this,e,Hs,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=Vo(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return ht(this,void 0,()=>Ps,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ht(this,e,zs,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,n,s){const r=this.dtFormatter(e,n),i=r.formatToParts(),o=i.find(a=>a.type.toLowerCase()===s);return o?o.value:null}numberFormatter(e={}){return new Ro(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Lo(e,this.intl,n)}relFormatter(e={}){return new Wo(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Co(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:As()?xo(this.locale):Bo}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let jt=null;class B extends We{static get utcInstance(){return jt===null&&(jt=new B(0)),jt}static instance(e){return e===0?B.utcInstance:new B(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new B(gt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${He(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${He(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return He(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Uo extends We{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ce(t,e){if(w(t)||t===null)return e;if(t instanceof We)return t;if(Zo(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?lt.instance:n==="utc"||n==="gmt"?B.utcInstance:B.parseSpecifier(n)||te.create(t)}else return le(t)?B.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Uo(t)}const Gt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ms={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},$o=Gt.hanidec.replace(/[\[|\]]/g,"").split("");function Ho(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(t[n].search(Gt.hanidec)!==-1)e+=$o.indexOf(t[n]);else for(const r in ms){const[i,o]=ms[r];s>=i&&s<=o&&(e+=s-i)}}return parseInt(e,10)}else return e}let Te={};function Po(){Te={}}function G({numberingSystem:t},e=""){const n=t||"latn";return Te[n]||(Te[n]={}),Te[n][e]||(Te[n][e]=new RegExp(`${Gt[n]}${e}`)),Te[n][e]}let ys=()=>Date.now(),ps="system",gs=null,ws=null,Ss=null,bs=60,ks,Ts=null;class x{static get now(){return ys}static set now(e){ys=e}static set defaultZone(e){ps=e}static get defaultZone(){return ce(ps,lt.instance)}static get defaultLocale(){return gs}static set defaultLocale(e){gs=e}static get defaultNumberingSystem(){return ws}static set defaultNumberingSystem(e){ws=e}static get defaultOutputCalendar(){return Ss}static set defaultOutputCalendar(e){Ss=e}static get defaultWeekSettings(){return Ts}static set defaultWeekSettings(e){Ts=Qt(e)}static get twoDigitCutoffYear(){return bs}static set twoDigitCutoffYear(e){bs=e%100}static get throwOnInvalid(){return ks}static set throwOnInvalid(e){ks=e}static resetCaches(){O.resetCache(),te.resetCache(),S.resetCache(),Po()}}class Y{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Es=[0,31,59,90,120,151,181,212,243,273,304,334],_s=[0,31,60,91,121,152,182,213,244,274,305,335];function z(t,e){return new Y("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Yt(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function Os(t,e,n){return n+(Ue(t)?_s:Es)[e-1]}function Cs(t,e){const n=Ue(t)?_s:Es,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function Jt(t,e){return(t-e+7)%7+1}function ft(t,e=4,n=1){const{year:s,month:r,day:i}=t,o=Os(s,r,i),a=Jt(Yt(s,r,i),n);let c=Math.floor((o-a+14-e)/7),l;return c<1?(l=s-1,c=$e(l,e,n)):c>$e(s,e,n)?(l=s+1,c=1):l=s,{weekYear:l,weekNumber:c,weekday:a,...St(t)}}function Ns(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,o=Jt(Yt(s,1,e),n),a=_e(s);let c=r*7+i-o-7+e,l;c<1?(l=s-1,c+=_e(l)):c>a?(l=s+1,c-=_e(s)):l=s;const{month:d,day:f}=Cs(l,c);return{year:l,month:d,day:f,...St(t)}}function Kt(t){const{year:e,month:n,day:s}=t,r=Os(e,n,s);return{year:e,ordinal:r,...St(t)}}function vs(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Cs(e,n);return{year:e,month:s,day:r,...St(t)}}function Is(t,e){if(!w(t.localWeekday)||!w(t.localWeekNumber)||!w(t.localWeekYear)){if(!w(t.weekday)||!w(t.weekNumber)||!w(t.weekYear))throw new ke("Cannot mix locale-based week fields with ISO-based week fields");return w(t.localWeekday)||(t.weekday=t.localWeekday),w(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),w(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function zo(t,e=4,n=1){const s=mt(t.weekYear),r=q(t.weekNumber,1,$e(t.weekYear,e,n)),i=q(t.weekday,1,7);return s?r?i?!1:z("weekday",t.weekday):z("week",t.weekNumber):z("weekYear",t.weekYear)}function qo(t){const e=mt(t.year),n=q(t.ordinal,1,_e(t.year));return e?n?!1:z("ordinal",t.ordinal):z("year",t.year)}function xs(t){const e=mt(t.year),n=q(t.month,1,12),s=q(t.day,1,yt(t.year,t.month));return e?n?s?!1:z("day",t.day):z("month",t.month):z("year",t.year)}function Ds(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=q(e,0,23)||e===24&&n===0&&s===0&&r===0,o=q(n,0,59),a=q(s,0,59),c=q(r,0,999);return i?o?a?c?!1:z("millisecond",r):z("second",s):z("minute",n):z("hour",e)}function w(t){return typeof t>"u"}function le(t){return typeof t=="number"}function mt(t){return typeof t=="number"&&t%1===0}function Zo(t){return typeof t=="string"}function jo(t){return Object.prototype.toString.call(t)==="[object Date]"}function Ms(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function As(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Go(t){return Array.isArray(t)?t:[t]}function Vs(t,e,n){if(t.length!==0)return t.reduce((s,r)=>{const i=[e(r),r];return s&&n(s[0],i[0])===s[0]?s:i},null)[1]}function Yo(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function Ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qt(t){if(t==null)return null;if(typeof t!="object")throw new F("Week settings must be an object");if(!q(t.firstDay,1,7)||!q(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!q(e,1,7)))throw new F("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function q(t,e,n){return mt(t)&&t>=e&&t<=n}function Jo(t,e){return t-e*Math.floor(t/e)}function M(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function ue(t){if(!(w(t)||t===null||t===""))return parseInt(t,10)}function me(t){if(!(w(t)||t===null||t===""))return parseFloat(t)}function Xt(t){if(!(w(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function en(t,e,n=!1){const s=10**e;return(n?Math.trunc:Math.round)(t*s)/s}function Ue(t){return t%4===0&&(t%100!==0||t%400===0)}function _e(t){return Ue(t)?366:365}function yt(t,e){const n=Jo(e-1,12)+1,s=t+(e-n)/12;return n===2?Ue(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function pt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Fs(t,e,n){return-Jt(Yt(t,1,e),n)+e-1}function $e(t,e=4,n=1){const s=Fs(t,e,n),r=Fs(t+1,e,n);return(_e(t)-s+r)/7}function tn(t){return t>99?t:t>x.twoDigitCutoffYear?1900+t:2e3+t}function Rs(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function gt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function Ls(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new F(`Invalid unit value ${t}`);return e}function wt(t,e){const n={};for(const s in t)if(Ee(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=Ls(r)}return n}function He(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${M(n,2)}:${M(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${M(n,2)}${M(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function St(t){return Yo(t,["hour","minute","second","millisecond"])}const Ko=["January","February","March","April","May","June","July","August","September","October","November","December"],Ws=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qo=["J","F","M","A","M","J","J","A","S","O","N","D"];function Bs(t){switch(t){case"narrow":return[...Qo];case"short":return[...Ws];case"long":return[...Ko];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Us=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$s=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Xo=["M","T","W","T","F","S","S"];function Hs(t){switch(t){case"narrow":return[...Xo];case"short":return[...$s];case"long":return[...Us];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ps=["AM","PM"],ea=["Before Christ","Anno Domini"],ta=["BC","AD"],na=["B","A"];function zs(t){switch(t){case"narrow":return[...na];case"short":return[...ta];case"long":return[...ea];default:return null}}function sa(t){return Ps[t.hour<12?0:1]}function ra(t,e){return Hs(e)[t.weekday-1]}function ia(t,e){return Bs(e)[t.month-1]}function oa(t,e){return zs(e)[t.year<0?0:1]}function aa(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${r[t][0]}`;case-1:return f?"yesterday":`last ${r[t][0]}`;case 0:return f?"today":`this ${r[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,l=r[t],d=s?c?l[1]:l[2]||l[1]:c?r[t][0]:t;return o?`${a} ${d} ago`:`in ${a} ${d}`}function qs(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const ca={D:ct,DD:jn,DDD:Gn,DDDD:Yn,t:Jn,tt:Kn,ttt:Qn,tttt:Xn,T:es,TT:ts,TTT:ns,TTTT:ss,f:rs,ff:os,fff:cs,ffff:us,F:is,FF:as,FFF:ls,FFFF:ds};class R{static create(e,n={}){return new R(e,n)}static parseFormat(e){let n=null,s="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),n=null,s="",r=!r):r||a===n?s+=a:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=a,n=a)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return ca[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return M(e,n);const s={...this.opts};return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(y,m)=>this.loc.extract(e,y,m),o=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",a=()=>s?sa(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(y,m)=>s?ia(e,y):i(m?{month:y}:{month:y,day:"numeric"},"month"),l=(y,m)=>s?ra(e,y):i(m?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),d=y=>{const m=R.macroTokenToFormatOpts(y);return m?this.formatWithSystemDefault(e,m):y},f=y=>s?oa(e,y):i({era:y},"era"),b=y=>{switch(y){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(y)}};return qs(R.parseFormat(n),b)}formatDurationFromString(e,n){const s=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=c=>l=>{const d=s(l);return d?this.num(c.get(d),l.length):l},i=R.parseFormat(n),o=i.reduce((c,{literal:l,val:d})=>l?c:c.concat(d),[]),a=e.shiftTo(...o.map(s).filter(c=>c));return qs(i,r(a))}}const Zs=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Oe(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function Ce(...t){return e=>t.reduce(([n,s,r],i)=>{const[o,a,c]=i(e,r);return[{...n,...o},a||s,c]},[{},null,1]).slice(0,2)}function Ne(t,...e){if(t==null)return[null,null];for(const[n,s]of e){const r=n.exec(t);if(r)return s(r)}return[null,null]}function js(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=ue(e[n+r]);return[s,null,n+r]}}const Gs=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,la=`(?:${Gs.source}?(?:\\[(${Zs.source})\\])?)?`,nn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ys=RegExp(`${nn.source}${la}`),sn=RegExp(`(?:T${Ys.source})?`),ua=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,da=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ha=/(\d{4})-?(\d{3})/,fa=js("weekYear","weekNumber","weekDay"),ma=js("year","ordinal"),ya=/(\d{4})-(\d\d)-(\d\d)/,Js=RegExp(`${nn.source} ?(?:${Gs.source}|(${Zs.source}))?`),pa=RegExp(`(?: ${Js.source})?`);function ve(t,e,n){const s=t[e];return w(s)?n:ue(s)}function ga(t,e){return[{year:ve(t,e),month:ve(t,e+1,1),day:ve(t,e+2,1)},null,e+3]}function Ie(t,e){return[{hours:ve(t,e,0),minutes:ve(t,e+1,0),seconds:ve(t,e+2,0),milliseconds:Xt(t[e+3])},null,e+4]}function Pe(t,e){const n=!t[e]&&!t[e+1],s=gt(t[e+1],t[e+2]),r=n?null:B.instance(s);return[{},r,e+3]}function ze(t,e){const n=t[e]?te.create(t[e]):null;return[{},n,e+1]}const wa=RegExp(`^T?${nn.source}$`),Sa=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ba(t){const[e,n,s,r,i,o,a,c,l]=t,d=e[0]==="-",f=c&&c[0]==="-",b=(y,m=!1)=>y!==void 0&&(m||y&&d)?-y:y;return[{years:b(me(n)),months:b(me(s)),weeks:b(me(r)),days:b(me(i)),hours:b(me(o)),minutes:b(me(a)),seconds:b(me(c),c==="-0"),milliseconds:b(Xt(l),f)}]}const ka={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 rn(t,e,n,s,r,i,o){const a={year:e.length===2?tn(ue(e)):ue(e),month:Ws.indexOf(n)+1,day:ue(s),hour:ue(r),minute:ue(i)};return o&&(a.second=ue(o)),t&&(a.weekday=t.length>3?Us.indexOf(t)+1:$s.indexOf(t)+1),a}const Ta=/^(?:(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\d)(\d\d)))$/;function Ea(t){const[,e,n,s,r,i,o,a,c,l,d,f]=t,b=rn(e,r,s,n,i,o,a);let y;return c?y=ka[c]:l?y=0:y=gt(d,f),[b,new B(y)]}function _a(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Oa=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ca=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Na=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ks(t){const[,e,n,s,r,i,o,a]=t;return[rn(e,r,s,n,i,o,a),B.utcInstance]}function va(t){const[,e,n,s,r,i,o,a]=t;return[rn(e,a,n,s,r,i,o),B.utcInstance]}const Ia=Oe(ua,sn),xa=Oe(da,sn),Da=Oe(ha,sn),Ma=Oe(Ys),Qs=Ce(ga,Ie,Pe,ze),Aa=Ce(fa,Ie,Pe,ze),Va=Ce(ma,Ie,Pe,ze),Fa=Ce(Ie,Pe,ze);function Ra(t){return Ne(t,[Ia,Qs],[xa,Aa],[Da,Va],[Ma,Fa])}function La(t){return Ne(_a(t),[Ta,Ea])}function Wa(t){return Ne(t,[Oa,Ks],[Ca,Ks],[Na,va])}function Ba(t){return Ne(t,[Sa,ba])}const Ua=Ce(Ie);function $a(t){return Ne(t,[wa,Ua])}const Ha=Oe(ya,pa),Pa=Oe(Js),za=Ce(Ie,Pe,ze);function qa(t){return Ne(t,[Ha,Qs],[Pa,za])}const Xs="Invalid Duration",er={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Za={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...er},Z=146097/400,xe=146097/4800,ja={years:{quarters:4,months:12,weeks:Z/7,days:Z,hours:Z*24,minutes:Z*24*60,seconds:Z*24*60*60,milliseconds:Z*24*60*60*1e3},quarters:{months:3,weeks:Z/28,days:Z/4,hours:Z*24/4,minutes:Z*24*60/4,seconds:Z*24*60*60/4,milliseconds:Z*24*60*60*1e3/4},months:{weeks:xe/7,days:xe,hours:xe*24,minutes:xe*24*60,seconds:xe*24*60*60,milliseconds:xe*24*60*60*1e3},...er},ye=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ga=ye.slice(0).reverse();function de(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new T(s)}function tr(t,e){let n=e.milliseconds??0;for(const s of Ga.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function nr(t,e){const n=tr(t,e)<0?-1:1;ye.reduceRight((s,r)=>{if(w(e[r]))return s;if(s){const i=e[s]*n,o=t[r][s],a=Math.floor(i/o);e[r]+=a*n,e[s]-=a*o*n}return r},null),ye.reduce((s,r)=>{if(w(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function Ya(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class T{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?ja:Za;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||O.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return T.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new F(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new T({values:wt(e,T.normalizeUnit),loc:O.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(le(e))return T.fromMillis(e);if(T.isDuration(e))return e;if(typeof e=="object")return T.fromObject(e);throw new F(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=Ba(e);return s?T.fromObject(s,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=$a(e);return s?T.fromObject(s,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new F("need to specify a reason the Duration is invalid");const s=e instanceof Y?e:new Y(e,n);if(x.throwOnInvalid)throw new So(s);return new T({invalid:s})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Zn(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?R.create(this.loc,s).formatDurationFromString(this,e):Xs}toHuman(e={}){if(!this.isValid)return Xs;const n=ye.map(s=>{const r=this.values[s];return w(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(r)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=en(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},S.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?tr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e),s={};for(const r of ye)(Ee(n.values,r)||Ee(this.values,r))&&(s[r]=n.get(r)+this.get(r));return de(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=Ls(e(this.values[s],s));return de(this,{values:n},!0)}get(e){return this[T.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...wt(e,T.normalizeUnit)};return de(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:s};return de(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return nr(this.matrix,e),de(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Ya(this.normalize().shiftToAll().toObject());return de(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>T.normalizeUnit(o));const n={},s={},r=this.toObject();let i;for(const o of ye)if(e.indexOf(o)>=0){i=o;let a=0;for(const l in s)a+=this.matrix[l][o]*s[l],s[l]=0;le(r[o])&&(a+=r[o]);const c=Math.trunc(a);n[o]=c,s[o]=(a*1e3-c*1e3)/1e3}else le(r[o])&&(s[o]=r[o]);for(const o in s)s[o]!==0&&(n[i]+=o===i?s[o]:s[o]/this.matrix[i][o]);return nr(this.matrix,n),de(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return de(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of ye)if(!n(this.values[s],e.values[s]))return!1;return!0}}const De="Invalid Interval";function Ja(t,e){return!t||!t.isValid?D.invalid("missing or invalid start"):!e||!e.isValid?D.invalid("missing or invalid end"):e<t?D.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class D{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new F("need to specify a reason the Interval is invalid");const s=e instanceof Y?e:new Y(e,n);if(x.throwOnInvalid)throw new wo(s);return new D({invalid:s})}static fromDateTimes(e,n){const s=Ze(e),r=Ze(n),i=Ja(s,r);return i??new D({start:s,end:r})}static after(e,n){const s=T.fromDurationLike(n),r=Ze(e);return D.fromDateTimes(r,r.plus(s))}static before(e,n){const s=T.fromDurationLike(n),r=Ze(e);return D.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,o;try{i=S.fromISO(s,n),o=i.isValid}catch{o=!1}let a,c;try{a=S.fromISO(r,n),c=a.isValid}catch{c=!1}if(o&&c)return D.fromDateTimes(i,a);if(o){const l=T.fromISO(r,n);if(l.isValid)return D.after(i,l)}else if(c){const l=T.fromISO(s,n);if(l.isValid)return D.before(a,l)}}return D.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const s=this.start.startOf(e,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(e,n),Math.floor(r.diff(s,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?D.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Ze).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),s=[];let{s:r}=this,i=0;for(;r<this.e;){const o=n[i]||this.e,a=+o>+this.e?this.e:o;s.push(D.fromDateTimes(r,a)),r=a,i+=1}return s}splitBy(e){const n=T.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,i;const o=[];for(;s<this.e;){const a=this.start.plus(n.mapUnits(c=>c*r));i=+a>+this.e?this.e:a,o.push(D.fromDateTimes(s,i)),s=i,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return n>=s?null:D.fromDateTimes(n,s)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return D.fromDateTimes(n,s)}static merge(e){const[n,s]=e.sort((r,i)=>r.s-i.s).reduce(([r,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[r,i.union(o)]:[r.concat([i]),o]:[r,o],[[],null]);return s&&n.push(s),n}static xor(e){let n=null,s=0;const r=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((c,l)=>c.time-l.time);for(const c of a)s+=c.type==="s"?1:-1,s===1?n=c.time:(n&&+n!=+c.time&&r.push(D.fromDateTimes(n,c.time)),n=null);return D.merge(r)}difference(...e){return D.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:De}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ct,n={}){return this.isValid?R.create(this.s.loc.clone(n),e).formatInterval(this):De}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:De}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:De}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:De}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:De}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):T.invalid(this.invalidReason)}mapEndpoints(e){return D.fromDateTimes(e(this.s),e(this.e))}}class bt{static hasDST(e=x.defaultZone){const n=S.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return te.isValidZone(e)}static normalizeZone(e){return ce(e,x.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||O.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||O.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||O.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||O.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||O.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||O.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||O.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return O.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return O.create(n,null,"gregory").eras(e)}static features(){return{relative:Ms(),localeWeek:As()}}}function sr(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(T.fromMillis(s).as("days"))}function Ka(t,e,n){const s=[["years",(c,l)=>l.year-c.year],["quarters",(c,l)=>l.quarter-c.quarter+(l.year-c.year)*4],["months",(c,l)=>l.month-c.month+(l.year-c.year)*12],["weeks",(c,l)=>{const d=sr(c,l);return(d-d%7)/7}],["days",sr]],r={},i=t;let o,a;for(const[c,l]of s)n.indexOf(c)>=0&&(o=c,r[c]=l(t,e),a=i.plus(r),a>e?(r[c]--,t=i.plus(r),t>e&&(a=t,r[c]--,t=i.plus(r))):t=a);return[t,r,a,o]}function Qa(t,e,n,s){let[r,i,o,a]=Ka(t,e,n);const c=e-r,l=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);l.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+c/(o-r)));const d=T.fromObject(i,s);return l.length>0?T.fromMillis(c,s).shiftTo(...l).plus(d):d}const Xa="missing Intl.DateTimeFormat.formatToParts support";function E(t,e=n=>n){return{regex:t,deser:([n])=>e(Ho(n))}}const rr=`[ ${String.fromCharCode(160)}]`,ir=new RegExp(rr,"g");function ec(t){return t.replace(/\./g,"\\.?").replace(ir,rr)}function or(t){return t.replace(/\./g,"").replace(ir," ").toLowerCase()}function J(t,e){return t===null?null:{regex:RegExp(t.map(ec).join("|")),deser:([n])=>t.findIndex(s=>or(n)===or(s))+e}}function ar(t,e){return{regex:t,deser:([,n,s])=>gt(n,s),groups:e}}function kt(t){return{regex:t,deser:([e])=>e}}function tc(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function nc(t,e){const n=G(e),s=G(e,"{2}"),r=G(e,"{3}"),i=G(e,"{4}"),o=G(e,"{6}"),a=G(e,"{1,2}"),c=G(e,"{1,3}"),l=G(e,"{1,6}"),d=G(e,"{1,9}"),f=G(e,"{2,4}"),b=G(e,"{4,6}"),y=C=>({regex:RegExp(tc(C.val)),deser:([v])=>v,literal:!0}),g=(C=>{if(t.literal)return y(C);switch(C.val){case"G":return J(e.eras("short"),0);case"GG":return J(e.eras("long"),0);case"y":return E(l);case"yy":return E(f,tn);case"yyyy":return E(i);case"yyyyy":return E(b);case"yyyyyy":return E(o);case"M":return E(a);case"MM":return E(s);case"MMM":return J(e.months("short",!0),1);case"MMMM":return J(e.months("long",!0),1);case"L":return E(a);case"LL":return E(s);case"LLL":return J(e.months("short",!1),1);case"LLLL":return J(e.months("long",!1),1);case"d":return E(a);case"dd":return E(s);case"o":return E(c);case"ooo":return E(r);case"HH":return E(s);case"H":return E(a);case"hh":return E(s);case"h":return E(a);case"mm":return E(s);case"m":return E(a);case"q":return E(a);case"qq":return E(s);case"s":return E(a);case"ss":return E(s);case"S":return E(c);case"SSS":return E(r);case"u":return kt(d);case"uu":return kt(a);case"uuu":return E(n);case"a":return J(e.meridiems(),0);case"kkkk":return E(i);case"kk":return E(f,tn);case"W":return E(a);case"WW":return E(s);case"E":case"c":return E(n);case"EEE":return J(e.weekdays("short",!1),1);case"EEEE":return J(e.weekdays("long",!1),1);case"ccc":return J(e.weekdays("short",!0),1);case"cccc":return J(e.weekdays("long",!0),1);case"Z":case"ZZ":return ar(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return ar(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return kt(/[a-z_+-/]{1,256}?/i);case" ":return kt(/[^\S\n\r]/);default:return y(C)}})(t)||{invalidReason:Xa};return g.token=t,g}const sc={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function rc(t,e,n){const{type:s,value:r}=t;if(s==="literal"){const c=/^\s+$/.test(r);return{literal:!c,val:c?" ":r}}const i=e[s];let o=s;s==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let a=sc[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function ic(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function oc(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const o in n)if(Ee(n,o)){const a=n[o],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(s.slice(i,i+c))),i+=c}return[s,r]}else return[s,{}]}function ac(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return w(t.z)||(n=te.create(t.z)),w(t.Z)||(n||(n=new B(t.Z)),s=t.Z),w(t.q)||(t.M=(t.q-1)*3+1),w(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),w(t.u)||(t.S=Xt(t.u)),[Object.keys(t).reduce((i,o)=>{const a=e(o);return a&&(i[a]=t[o]),i},{}),n,s]}let on=null;function cc(){return on||(on=S.fromMillis(1555555555555)),on}function lc(t,e){if(t.literal)return t;const n=R.macroTokenToFormatOpts(t.val),s=dr(n,e);return s==null||s.includes(void 0)?t:s}function cr(t,e){return Array.prototype.concat(...t.map(n=>lc(n,e)))}class lr{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=cr(R.parseFormat(n),e),this.units=this.tokens.map(s=>nc(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=ic(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,s]=oc(e,this.regex,this.handlers),[r,i,o]=s?ac(s):[null,null,void 0];if(Ee(s,"a")&&Ee(s,"H"))throw new ke("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:s,result:r,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ur(t,e,n){return new lr(t,n).explainFromTokens(e)}function uc(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:o}=ur(t,e,n);return[s,r,i,o]}function dr(t,e){if(!t)return null;const s=R.create(e,t).dtFormatter(cc()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(o=>rc(o,t,i))}const an="Invalid DateTime",hr=864e13;function qe(t){return new Y("unsupported zone",`the zone "${t.name}" is not supported`)}function cn(t){return t.weekData===null&&(t.weekData=ft(t.c)),t.weekData}function ln(t){return t.localWeekData===null&&(t.localWeekData=ft(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function pe(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new S({...n,...e,old:n})}function fr(t,e,n){let s=t-e*60*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=(r-e)*60*1e3;const i=n.offset(s);return r===i?[s,r]:[t-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Tt(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Et(t,e,n){return fr(pt(t),e,n)}function mr(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:s,month:r,day:Math.min(t.c.day,yt(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=T.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=pt(i);let[c,l]=fr(a,n,t.zone);return o!==0&&(c+=o,l=t.zone.offset(c)),{ts:c,o:l}}function Me(t,e,n,s,r,i){const{setZone:o,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const c=e||a,l=S.fromObject(t,{...n,zone:c,specificOffset:i});return o?l:l.setZone(a)}else return S.invalid(new Y("unparsable",`the input "${r}" can't be parsed as ${s}`))}function _t(t,e,n=!0){return t.isValid?R.create(O.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function un(t,e){const n=t.c.year>9999||t.c.year<0;let s="";return n&&t.c.year>=0&&(s+="+"),s+=M(t.c.year,n?6:4),e?(s+="-",s+=M(t.c.month),s+="-",s+=M(t.c.day)):(s+=M(t.c.month),s+=M(t.c.day)),s}function yr(t,e,n,s,r,i){let o=M(t.c.hour);return e?(o+=":",o+=M(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=M(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=M(t.c.second),(t.c.millisecond!==0||!s)&&(o+=".",o+=M(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=M(Math.trunc(-t.o/60)),o+=":",o+=M(Math.trunc(-t.o%60))):(o+="+",o+=M(Math.trunc(t.o/60)),o+=":",o+=M(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const pr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},hc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},gr=["year","month","day","hour","minute","second","millisecond"],fc=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mc=["year","ordinal","hour","minute","second","millisecond"];function yc(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Zn(t);return e}function wr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return yc(t)}}function pc(t){return Ct[t]||(Ot===void 0&&(Ot=x.now()),Ct[t]=t.offset(Ot)),Ct[t]}function Sr(t,e){const n=ce(e.zone,x.defaultZone);if(!n.isValid)return S.invalid(qe(n));const s=O.fromObject(e);let r,i;if(w(t.year))r=x.now();else{for(const c of gr)w(t[c])&&(t[c]=pr[c]);const o=xs(t)||Ds(t);if(o)return S.invalid(o);const a=pc(n);[r,i]=Et(t,a,n)}return new S({ts:r,zone:n,loc:s,o:i})}function br(t,e,n){const s=w(n.round)?!0:n.round,r=(o,a)=>(o=en(o,s||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,a)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return r(i(n.unit),n.unit);for(const o of n.units){const a=i(o);if(Math.abs(a)>=1)return r(a,o)}return r(t>e?-0:0,n.units[n.units.length-1])}function kr(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Ot,Ct={};class S{constructor(e){const n=e.zone||x.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new Y("invalid input"):null)||(n.isValid?null:qe(n));this.ts=w(e.ts)?x.now():e.ts;let r=null,i=null;if(!s)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,i]=[e.old.c,e.old.o];else{const a=le(e.o)&&!e.old?e.o:n.offset(this.ts);r=Tt(this.ts,a),s=Number.isNaN(r.year)?new Y("invalid input"):null,r=s?null:r,i=s?null:a}this._zone=n,this.loc=e.loc||O.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[e,n]=kr(arguments),[s,r,i,o,a,c,l]=n;return Sr({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:l},e)}static utc(){const[e,n]=kr(arguments),[s,r,i,o,a,c,l]=n;return e.zone=B.utcInstance,Sr({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:l},e)}static fromJSDate(e,n={}){const s=jo(e)?e.valueOf():NaN;if(Number.isNaN(s))return S.invalid("invalid input");const r=ce(n.zone,x.defaultZone);return r.isValid?new S({ts:s,zone:r,loc:O.fromObject(n)}):S.invalid(qe(r))}static fromMillis(e,n={}){if(le(e))return e<-hr||e>hr?S.invalid("Timestamp out of range"):new S({ts:e,zone:ce(n.zone,x.defaultZone),loc:O.fromObject(n)});throw new F(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(le(e))return new S({ts:e*1e3,zone:ce(n.zone,x.defaultZone),loc:O.fromObject(n)});throw new F("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=ce(n.zone,x.defaultZone);if(!s.isValid)return S.invalid(qe(s));const r=O.fromObject(n),i=wt(e,wr),{minDaysInFirstWeek:o,startOfWeek:a}=Is(i,r),c=x.now(),l=w(n.specificOffset)?s.offset(c):n.specificOffset,d=!w(i.ordinal),f=!w(i.year),b=!w(i.month)||!w(i.day),y=f||b,m=i.weekYear||i.weekNumber;if((y||d)&&m)throw new ke("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&d)throw new ke("Can't mix ordinal dates with month/day");const g=m||i.weekday&&!y;let C,v,I=Tt(c,l);g?(C=fc,v=dc,I=ft(I,o,a)):d?(C=mc,v=hc,I=Kt(I)):(C=gr,v=pr);let ne=!1;for(const we of C){const dn=i[we];w(dn)?ne?i[we]=v[we]:i[we]=I[we]:ne=!0}const N=g?zo(i,o,a):d?qo(i):xs(i),_=N||Ds(i);if(_)return S.invalid(_);const U=g?Ns(i,o,a):d?vs(i):i,[L,ge]=Et(U,l,s),he=new S({ts:L,zone:s,o:ge,loc:r});return i.weekday&&y&&e.weekday!==he.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${he.toISO()}`):he.isValid?he:S.invalid(he.invalid)}static fromISO(e,n={}){const[s,r]=Ra(e);return Me(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=La(e);return Me(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=Wa(e);return Me(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(w(e)||w(n))throw new F("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,o=O.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,c,l,d]=uc(o,e,n);return d?S.invalid(d):Me(a,c,s,`format ${n}`,e,l)}static fromString(e,n,s={}){return S.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=qa(e);return Me(s,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new F("need to specify a reason the DateTime is invalid");const s=e instanceof Y?e:new Y(e,n);if(x.throwOnInvalid)throw new go(s);return new S({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=dr(e,O.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return cr(R.parseFormat(e),O.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Ot=void 0,Ct={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cn(this).weekYear:NaN}get weekNumber(){return this.isValid?cn(this).weekNumber:NaN}get weekday(){return this.isValid?cn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ln(this).weekday:NaN}get localWeekNumber(){return this.isValid?ln(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ln(this).weekYear:NaN}get ordinal(){return this.isValid?Kt(this.c).ordinal:NaN}get monthShort(){return this.isValid?bt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?bt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?bt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?bt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,s=pt(this.c),r=this.zone.offset(s-e),i=this.zone.offset(s+e),o=this.zone.offset(s-r*n),a=this.zone.offset(s-i*n);if(o===a)return[this];const c=s-o*n,l=s-a*n,d=Tt(c,o),f=Tt(l,a);return d.hour===f.hour&&d.minute===f.minute&&d.second===f.second&&d.millisecond===f.millisecond?[pe(this,{ts:c}),pe(this,{ts:l})]:[this]}get isInLeapYear(){return Ue(this.year)}get daysInMonth(){return yt(this.year,this.month)}get daysInYear(){return this.isValid?_e(this.year):NaN}get weeksInWeekYear(){return this.isValid?$e(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?$e(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=R.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(B.instance(e),n)}toLocal(){return this.setZone(x.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=ce(e,x.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||s){const i=e.offset(this.ts),o=this.toObject();[r]=Et(o,i,e)}return pe(this,{ts:r,zone:e})}else return S.invalid(qe(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return pe(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=wt(e,wr),{minDaysInFirstWeek:s,startOfWeek:r}=Is(n,this.loc),i=!w(n.weekYear)||!w(n.weekNumber)||!w(n.weekday),o=!w(n.ordinal),a=!w(n.year),c=!w(n.month)||!w(n.day),l=a||c,d=n.weekYear||n.weekNumber;if((l||o)&&d)throw new ke("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new ke("Can't mix ordinal dates with month/day");let f;i?f=Ns({...ft(this.c,s,r),...n},s,r):w(n.ordinal)?(f={...this.toObject(),...n},w(n.day)&&(f.day=Math.min(yt(f.year,f.month),f.day))):f=vs({...Kt(this.c),...n});const[b,y]=Et(f,this.o,this.zone);return pe(this,{ts:b,o:y})}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return pe(this,mr(this,n))}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e).negate();return pe(this,mr(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=T.normalizeUnit(e);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(s.weekNumber=this.weekNumber-1),s.weekday=i}else s.weekday=1;if(r==="quarters"){const i=Math.ceil(this.month/3);s.month=(i-1)*3+1}return this.set(s)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?R.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):an}toLocaleString(e=ct,n={}){return this.isValid?R.create(this.loc.clone(n),e).formatDateTime(this):an}toLocaleParts(e={}){return this.isValid?R.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=un(this,o);return a+="T",a+=yr(this,o,n,s,r,i),a}toISODate({format:e="extended"}={}){return this.isValid?un(this,e==="extended"):null}toISOWeekDate(){return _t(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+yr(this,o==="extended",n,e,s,i):null}toRFC2822(){return _t(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return _t(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?un(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(s&&(r+=" "),n?r+="z":e&&(r+="ZZ")),_t(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():an}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",s={}){if(!this.isValid||!e.isValid)return T.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=Go(n).map(T.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,c=o?e:this,l=Qa(a,c,i,r);return o?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(S.now(),e,n)}until(e){return this.isValid?D.fromDateTimes(this,e):this}hasSame(e,n,s){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,s)<=r&&r<=i.endOf(n,s)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||S.fromObject({},{zone:this.zone}),s=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),br(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?br(e.base||S.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(S.isDateTime))throw new F("min requires all arguments be DateTimes");return Vs(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(S.isDateTime))throw new F("max requires all arguments be DateTimes");return Vs(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,o=O.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return ur(o,e,n)}static fromStringExplain(e,n,s={}){return S.fromFormatExplain(e,n,s)}static buildFormatParser(e,n={}){const{locale:s=null,numberingSystem:r=null}=n,i=O.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new lr(i,e)}static fromFormatParser(e,n,s={}){if(w(e)||w(n))throw new F("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,o=O.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!o.equals(n.locale))throw new F(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:a,zone:c,specificOffset:l,invalidReason:d}=n.explainFromTokens(e);return d?S.invalid(d):Me(a,c,s,`format ${n.format}`,e,l)}static get DATE_SHORT(){return ct}static get DATE_MED(){return jn}static get DATE_MED_WITH_WEEKDAY(){return bo}static get DATE_FULL(){return Gn}static get DATE_HUGE(){return Yn}static get TIME_SIMPLE(){return Jn}static get TIME_WITH_SECONDS(){return Kn}static get TIME_WITH_SHORT_OFFSET(){return Qn}static get TIME_WITH_LONG_OFFSET(){return Xn}static get TIME_24_SIMPLE(){return es}static get TIME_24_WITH_SECONDS(){return ts}static get TIME_24_WITH_SHORT_OFFSET(){return ns}static get TIME_24_WITH_LONG_OFFSET(){return ss}static get DATETIME_SHORT(){return rs}static get DATETIME_SHORT_WITH_SECONDS(){return is}static get DATETIME_MED(){return os}static get DATETIME_MED_WITH_SECONDS(){return as}static get DATETIME_MED_WITH_WEEKDAY(){return ko}static get DATETIME_FULL(){return cs}static get DATETIME_FULL_WITH_SECONDS(){return ls}static get DATETIME_HUGE(){return us}static get DATETIME_HUGE_WITH_SECONDS(){return ds}}function Ze(t){if(S.isDateTime(t))return t;if(t&&t.valueOf&&le(t.valueOf()))return S.fromJSDate(t);if(t&&typeof t=="object")return S.fromObject(t);throw new F(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const gc={},wc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Sc=[u.createElementVNode("path",{fill:"rgb(248 113 113)",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},null,-1)];function bc(t,e){return u.openBlock(),u.createElementBlock("svg",wc,Sc)}const kc=ie(gc,[["render",bc]]),Tc={class:"messages-container-list"},Ec={class:"message-container"},_c={key:0,class:"btn-container-widget"},Oc=["onClick"],Cc={class:"chat-message"},Nc={class:"message-text"},vc={class:"detail-message flex justify-content-between"},Ic={key:0,class:"mr-5"},xc={key:1,class:"mr-5"},Dc=u.defineComponent({__name:"MessageList",props:{messages:{type:Array,default:()=>[]},canLoadMoreMessages:{type:Boolean,default:!1}},emits:["loadMore","retry"],setup(t,{emit:e}){const n=t,s=u.ref(),{pause:r,resume:i}=po(s,([{isIntersecting:o}])=>{o&&e("loadMore")});return u.onBeforeMount(()=>{n.canLoadMoreMessages||r()}),u.watch(()=>n.canLoadMoreMessages,o=>{if(o){i();return}r()}),(o,a)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{ref_key:"target",ref:s,class:"target"},null,512),u.createElementVNode("div",Tc,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.messages,c=>{var l,d;return u.openBlock(),u.createElementBlock("div",{key:c.id,class:u.normalizeClass(["message",c.esCliente?"message-right":"message-left"])},[u.createElementVNode("div",Ec,[c.error&&c.esCliente?(u.openBlock(),u.createElementBlock("div",_c,[u.createElementVNode("button",{text:"",rounded:"",class:"btn-danger",icon:"fa-solid fa-circle-exclamation","aria-label":"Cancel",onClick:f=>e("retry",c)},[u.createVNode(kc)],8,Oc)])):u.createCommentVNode("",!0),u.createElementVNode("div",Cc,[u.createElementVNode("div",{class:u.normalizeClass(["bubble",c.esCliente?"right":"left"])},[u.createElementVNode("div",{class:u.normalizeClass(c.esCliente?"content-right":"content-left")},[u.createElementVNode("div",Nc,u.toDisplayString(c.message),1),u.createElementVNode("div",vc,[(l=c.sender)!=null&&l.nombreCompleto?(u.openBlock(),u.createElementBlock("span",Ic,u.toDisplayString(c.esCliente?(d=c.sender)==null?void 0:d.nombreCompleto:"ECOSISTEMA JL"),1)):(u.openBlock(),u.createElementBlock("span",xc)),u.createElementVNode("span",null,u.toDisplayString(u.unref(S).fromISO(c.createdAt).toFormat("dd-MM-yyyy HH:mm")),1)])],2)],2)])])],2)}),128))])],64))}}),gl="",Mc=ie(Dc,[["__scopeId","data-v-a9fc4a05"]]),wl="",Ac={},Tr=t=>(u.pushScopeId("data-v-d9a6b2b7"),t=t(),u.popScopeId(),t),Vc={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{width:"28px",height:"28px"}},Fc=[Tr(()=>u.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,-1)),Tr(()=>u.createElementVNode("path",{d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",class:"spinner_ajPY"},null,-1))];function Rc(t,e){return u.openBlock(),u.createElementBlock("svg",Vc,Fc)}const Lc=ie(Ac,[["render",Rc],["__scopeId","data-v-d9a6b2b7"]]);function Wc(t,e,n){for(let s=t.length-1;s>=0;s--)if(t[s][e]===n)return s;return-1}var Er=(t=>(t.NEW_MESSAGE="new_message",t))(Er||{});const Bc={class:"widget"},Uc={class:"header-widget"},$c={class:"title-chat"},Hc={key:0,class:"loader"},Pc={class:"w-full"},zc=["onSubmit"],qc={class:"form-message"},Zc={class:"jl-inputgroup-chat"},jc=["onKeyup"],Gc={type:"submit",class:"pointer btn-primary"},Yc=14,Jc=u.defineComponent({__name:"Chat",props:{titlePrincipal:{type:String,default:"Comunicación en linea para consultas"},toggleChat:{type:Function,required:!0},tokenAuth:{type:String,required:!0},user:{type:Object,required:!0},visible:{type:Boolean,required:!0}},emits:["show-toast","show-confirm","new-message","clear-new-messages","not-viewed-total"],setup(t,{emit:e}){const n=t,s=u.ref(null),r=u.ref(""),i=u.ref(0),o=u.ref({data:[],canLoadMoreMessages:!1}),a=u.ref({virtualhost:""}),c=u.ref(""),l=u.ref(!1),d=u.ref(null);u.watch(()=>n.visible,async N=>{if(!N||(e("clear-new-messages"),C(),i.value>0&&zn(c.value,n.tokenAuth),a.value&&c.value))return;const _=await Pn(n.tokenAuth);_&&(a.value=_.virtualHost,c.value=_.appChat.id,g())}),u.onMounted(async()=>{if(a.value&&c.value)return;const N=await Pn(n.tokenAuth);N&&(a.value=N.virtualHost,c.value=N.appChat.id,e("not-viewed-total",N.appChat.totalNoVistosCliente),i.value=N.appChat.totalNoVistosCliente,y(),g())});const f=async N=>{var L;if(((L=r.value)==null?void 0:L.length)>300){e("show-toast",{severity:"warn",summary:"Error",detail:"El mensaje no puede superar los 300 caracteres",life:5e3});return}if(!r.value.trim()){e("show-toast",{severity:"warn",summary:"Error",detail:"Por favor ingrese un mensaje",life:5e3});return}const _={id:Nr(),message:r.value,visto:!0,multimedia:!1,esCliente:!0,appChatId:c.value,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sender:{nombreCompleto:n.user.nombreCompleto,ci:n.user.ci,msPersonaId:n.user.msPersonaId}},U=o.value.data.push(_)-1;b(r.value,c.value).then(ge=>{ge?o.value.data[U]=ge:(o.value.data[U].error={error:!0,id:_.id},e("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3}))}),r.value="",C(),I.value&&(I.value.style.height="20px")},b=async(N,_)=>co({esCliente:!0,message:N,appChatId:_},n.tokenAuth),y=async()=>{var L,ge,he;const N=(L=o.value.data[0])==null?void 0:L.id,_={lastMessagesId:N,appChatId:c.value,limit:10};l.value=!0;const U=await ao({body:_,token:n.tokenAuth});l.value=!1,o.value.data.unshift(...U.data.sort((we,dn)=>-dn.createdAt.localeCompare(we.createdAt))),o.value.canLoadMoreMessages=U.pagination.total>U.pagination.size,N&&((ge=d.value)!=null&&ge.scrollHeight)&&v((he=d.value)==null?void 0:he.scrollHeight),N||C()},m=async N=>{e("show-confirm",async()=>{var U;if(!((U=N.error)!=null&&U.id))return;const _=await b(N.message,c.value);if(!_)e("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});else{const L=Wc(o.value.data,"id",N.error.id);o.value.data[L]={..._,error:void 0}}C()})},g=(N="webchat")=>{const{virtualhost:_}=a.value;if(!sessionStorage.getItem("tabBrowser")){let L=c.value;sessionStorage.setItem("tabBrowser",`${L}`)}s.value=new Rr(`${_}`,`widget_chat_${sessionStorage.getItem("tabBrowser")}`),s.value.connect(),s.value.subscribe(async L=>{L.event&&L.event===Er.NEW_MESSAGE&&!L.message.esCliente&&(o.value.data.push(L.message),n.visible===!0&&zn(c.value,n.tokenAuth),n.visible===!1&&(i.value=i.value+1,e("new-message")),C())})},C=()=>{u.nextTick(()=>{d.value&&(d.value.scrollTop=d.value.scrollHeight)})},v=N=>{u.nextTick(()=>{const _=d.value;_&&(_.scrollTop=_.scrollHeight-N)})},I=u.ref();function ne(){I.value&&(I.value.style.height=I.value.scrollHeight-Yc+"px",I.value.scrollHeight!==I.value.clientHeight&&(I.value.style.height=I.value.scrollHeight+"px"))}return(N,_)=>(u.openBlock(),u.createElementBlock("div",Bc,[u.createElementVNode("div",Uc,[u.createElementVNode("h4",$c,u.toDisplayString(t.titlePrincipal),1),u.createElementVNode("button",{onClick:_[0]||(_[0]=()=>t.toggleChat()),class:"btn-close"},[u.createVNode($r,{class:"pointer"})])]),u.createElementVNode("div",{class:"messages-container",ref_key:"messageContainerRef",ref:d},[l.value?(u.openBlock(),u.createElementBlock("div",Hc,[u.createVNode(Lc)])):u.createCommentVNode("",!0),u.createVNode(Mc,{messages:o.value.data,canLoadMoreMessages:o.value.canLoadMoreMessages,onLoadMore:y,onRetry:m},null,8,["messages","canLoadMoreMessages"])],512),u.createElementVNode("div",Pc,[u.createElementVNode("form",{class:"message-send",onSubmit:u.withModifiers(f,["prevent"])},[u.createElementVNode("div",qc,[u.createElementVNode("div",Zc,[u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":_[1]||(_[1]=U=>r.value=U),class:"jl2-input-chat",required:"",ref_key:"textAreaRef",ref:I,onInput:_[2]||(_[2]=()=>ne()),onKeydown:_[3]||(_[3]=u.withKeys(u.withModifiers(()=>{},["prevent"]),["enter"])),onKeyup:u.withKeys(u.withModifiers(f,["prevent"]),["enter"])},null,40,jc),[[u.vModelText,r.value]]),u.createElementVNode("button",Gc,[u.createVNode(Zr,{style:{width:"20px",height:"20px"}})])])])],40,zc)])]))}}),kl="",Kc=ie(Jc,[["__scopeId","data-v-ae1bd995"]]),Qc={},Xc={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"},el=[u.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 tl(t,e){return u.openBlock(),u.createElementBlock("svg",Xc,el)}const nl=ie(Qc,[["render",tl]]),sl={key:0,class:"new-message-badge"},rl={class:"chat-box"},il=u.defineComponent({__name:"Widget",props:{tokenAuth:{type:String,required:!0},titlePrincipal:{type:String},user:{type:Object,required:!0},isDarkMode:{type:Boolean,default:!1}},emits:["show-toast","show-confirm"],setup(t,{emit:e}){const n=u.ref(!1),s=u.ref(0),r=()=>{n.value=!n.value};return(i,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["widget-css-reset widget-container",t.isDarkMode?"chat-dark-mode":""])},[u.withDirectives(u.createElementVNode("div",{id:"chat-circle",role:"button",onClick:r,class:"widget-container"},[s.value?(u.openBlock(),u.createElementBlock("div",sl,u.toDisplayString(s.value>9?"9+":s.value),1)):u.createCommentVNode("",!0),u.createVNode(nl)],512),[[u.vShow,!n.value]]),u.withDirectives(u.createElementVNode("div",rl,[u.createVNode(Kc,{visible:n.value,titlePrincipal:t.titlePrincipal,toggleChat:r,tokenAuth:t.tokenAuth,user:t.user,onShowToast:o[0]||(o[0]=a=>e("show-toast",a)),onShowConfirm:o[1]||(o[1]=a=>e("show-confirm",a)),onClearNewMessages:o[2]||(o[2]=a=>s.value=0),onNewMessage:o[3]||(o[3]=()=>s.value++),onNotViewedTotal:o[4]||(o[4]=a=>s.value=a)},null,8,["visible","titlePrincipal","tokenAuth","user"])],512),[[u.vShow,n.value]])],2))}}),El="",_l="",ol=ie(il,[["__scopeId","data-v-bd22968f"]]),al={install(t,e){window.VITE_BACKEND_URL=e.VITE_BACKEND_URL,window.VITE_BROKER_URL=e.VITE_BROKER_URL,window.VITE_USERNAME=e.VITE_USERNAME,window.VITE_PASSWORD=e.VITE_PASSWORD}};se.Widget=ol,se.default=al,Object.defineProperties(se,{__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.21",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -278,7 +278,7 @@ const connectMsRabbit = (app: any = "webchat") => {
278
278
  const { virtualhost } = virtualHost.value;
279
279
  let data = sessionStorage.getItem("tabBrowser");
280
280
  if (!data) {
281
- let tab = Date.now();
281
+ let tab = appChatId.value;
282
282
  sessionStorage.setItem("tabBrowser", `${tab}`);
283
283
  }
284
284
  rabbitMQServiceListen.value = new RabbitMQService(
@@ -22,6 +22,7 @@
22
22
  </template>
23
23
 
24
24
  <script setup lang="ts">
25
+ // TODO: parece que no se usa
25
26
  import {computed } from 'vue';
26
27
  import { formatTimeAPDate,textCapitalize } from '../resources/functions.helpers'
27
28
  const props = defineProps({
@@ -80,7 +81,7 @@ const self = computed(() => {
80
81
  margin-right: 10px;
81
82
  }
82
83
 
83
- .message{
84
+ .message {
84
85
  text-align: initial;
85
86
  word-break: break-all;
86
87
  margin-bottom: 10px;
@@ -93,8 +94,6 @@ const self = computed(() => {
93
94
  }
94
95
 
95
96
  .chat-message {
96
- max-width: 250px;
97
- min-width: 90%;
98
97
  display: flex;
99
98
  flex-direction: column;
100
99
  justify-content: center;
@@ -108,7 +108,6 @@ watch(
108
108
  --t: 30px;
109
109
  /* the size of the tail */
110
110
 
111
- width: 100%;
112
111
  padding: calc(2 * var(--r) / 3);
113
112
  -webkit-mask: radial-gradient(var(--t) at var(--_d) 0, #0000 98%, #000 102%)
114
113
  var(--_d) 100% / calc(100% - var(--r)) var(--t) no-repeat,
@@ -5,6 +5,7 @@
5
5
  >
6
6
  <div
7
7
  id="chat-circle"
8
+ role="button"
8
9
  @click="toggleChat"
9
10
  class="widget-container"
10
11
  v-show="!isChatBoxVisible"
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3
- }