import{c as Pe}from"./dayjs.min.1703796278973.js";var fe={},Xe={get exports(){return fe},set exports(Y){fe=Y}};/** @license * eventsource.js * Available under MIT License (MIT) * https://github.com/Yaffle/EventSource/ */(function(Y,Re){(function(m){var O=m.setTimeout,j=m.clearTimeout,w=m.XMLHttpRequest,de=m.XDomainRequest,ue=m.ActiveXObject,z=m.EventSource,N=m.document,be=m.Promise,K=m.fetch,ce=m.Response,Z=m.TextDecoder,le=m.TextEncoder,k=m.AbortController;if(typeof window<"u"&&typeof N<"u"&&!("readyState"in N)&&N.body==null&&(N.readyState="loading",window.addEventListener("load",function(e){N.readyState="complete"},!1)),w==null&&ue!=null&&(w=function(){return new ue("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(e){function r(){}return r.prototype=e,new r}),Date.now||(Date.now=function(){return new Date().getTime()}),k==null){var Ae=K;K=function(e,r){var n=r.signal;return Ae(e,{headers:r.headers,credentials:r.credentials,cache:r.cache}).then(function(t){var i=t.body.getReader();return n._reader=i,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return i}}}})},k=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function ve(){this.bitsNeeded=0,this.codePoint=0}ve.prototype.decode=function(e){function r(d,u,o){if(o===1)return d>=128>>u&&d<=2048>>u&&d<=57344>>u&&d<=65536>>u&&d<>6>15?3:u>31?2:1;if(d===6*2)return u>15?3:2;if(d===6*3)return 3;throw new Error}for(var t=65533,i="",a=this.bitsNeeded,s=this.codePoint,c=0;c191||!r(s<<6|f&63,a-6,n(a,s)))&&(a=0,s=t,i+=String.fromCharCode(s)),a===0?(f>=0&&f<=127?(a=0,s=f):f>=192&&f<=223?(a=6*1,s=f&31):f>=224&&f<=239?(a=6*2,s=f&15):f>=240&&f<=247?(a=6*3,s=f&7):(a=0,s=t),a!==0&&!r(s,a,n(a,s))&&(a=0,s=t)):(a-=6,s=s<<6|f&63),a===0&&(s<=65535?i+=String.fromCharCode(s):(i+=String.fromCharCode(55296+(s-65535-1>>10)),i+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=s,i};var xe=function(){try{return new Z().decode(new le().encode("test"),{stream:!0})==="test"}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1};(Z==null||le==null||!xe())&&(Z=ve);var _=function(){};function L(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=_}L.prototype.open=function(e,r){this._abort(!0);var n=this,t=this._xhr,i=1,a=0;this._abort=function(o){n._sendTimeout!==0&&(j(n._sendTimeout),n._sendTimeout=0),(i===1||i===2||i===3)&&(i=4,t.onload=_,t.onerror=_,t.onabort=_,t.onprogress=_,t.onreadystatechange=_,t.abort(),a!==0&&(j(a),a=0),o||(n.readyState=4,n.onabort(null),n.onreadystatechange())),i=0};var s=function(){if(i===1){var o=0,l="",A=void 0;if("contentType"in t)o=200,l="OK",A=t.contentType;else try{o=t.status,l=t.statusText,A=t.getResponseHeader("Content-Type")}catch{o=0,l="",A=void 0}o!==0&&(i=2,n.readyState=2,n.status=o,n.statusText=l,n._contentType=A,n.onreadystatechange())}},c=function(){if(s(),i===2||i===3){i=3;var o="";try{o=t.responseText}catch{}n.readyState=3,n.responseText=o,n.onprogress()}},f=function(o,l){if((l==null||l.preventDefault==null)&&(l={preventDefault:_}),c(),i===1||i===2||i===3){if(i=4,a!==0&&(j(a),a=0),n.readyState=4,o==="load")n.onload(l);else if(o==="error")n.onerror(l);else if(o==="abort")n.onabort(l);else throw new TypeError;n.onreadystatechange()}},d=function(o){t!=null&&(t.readyState===4?(!("onload"in t)||!("onerror"in t)||!("onabort"in t))&&f(t.responseText===""?"error":"load",o):t.readyState===3?"onprogress"in t||c():t.readyState===2&&s())},u=function(){a=O(function(){u()},500),t.readyState===3&&c()};"onload"in t&&(t.onload=function(o){f("load",o)}),"onerror"in t&&(t.onerror=function(o){f("error",o)}),"onabort"in t&&(t.onabort=function(o){f("abort",o)}),"onprogress"in t&&(t.onprogress=c),"onreadystatechange"in t&&(t.onreadystatechange=function(o){d(o)}),("contentType"in t||!("ontimeout"in w.prototype))&&(r+=(r.indexOf("?")===-1?"?":"&")+"padding=true"),t.open(e,r,!0),"readyState"in t&&(a=O(function(){u()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(e){return this._contentType},L.prototype.setRequestHeader=function(e,r){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,r)},L.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){if((!("ontimeout"in w.prototype)||!("sendAsBinary"in w.prototype)&&!("mozAnon"in w.prototype))&&N!=null&&N.readyState!=null&&N.readyState!=="complete"){var e=this;e._sendTimeout=O(function(){e._sendTimeout=0,e.send()},4);return}var r=this._xhr;"withCredentials"in r&&(r.withCredentials=this.withCredentials);try{r.send(void 0)}catch(n){throw n}};function he(e){return e.replace(/[A-Z]/g,function(r){return String.fromCharCode(r.charCodeAt(0)+32)})}function pe(e){for(var r=Object.create(null),n=e.split(`\r `),t=0;t"u"?typeof window<"u"?window:typeof self<"u"?self:Pe:globalThis)})(Xe,fe);export{fe as e};