ots/frontend/app.js

2 lines
969 KiB
JavaScript
Raw Normal View History

/*! For license information please see app.js.LICENSE.txt */
(()=>{var t={9669:(t,e,r)=>{t.exports=r(1609)},5448:(t,e,r)=>{"use strict";var o=r(4867),n=r(6026),i=r(4372),a=r(5327),l=r(4097),s=r(4109),c=r(7985),d=r(5061);t.exports=function(t){return new Promise((function(e,r){var p=t.data,u=t.headers,m=t.responseType;o.isFormData(p)&&delete u["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.Authorization="Basic "+btoa(b+":"+h)}var g=l(t.baseURL,t.url);function v(){if(f){var o="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:t,request:f};n(e,r,i),f=null}}if(f.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(r(d("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(d("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(d(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},o.isStandardBrowserEnv()){var x=(t.withCredentials||c(g))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;x&&(u[t.xsrfHeaderName]=x)}"setRequestHeader"in f&&o.forEach(u,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete u[e]:f.setRequestHeader(e,t)})),o.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),m&&"json"!==m&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),r(t),f=null)})),p||(p=null),f.send(p)}))}},1609:(t,e,r)=>{"use strict";var o=r(4867),n=r(1849),i=r(321),a=r(7185);function l(t){var e=new i(t),r=n(i.prototype.request,e);return o.extend(r,i.prototype,e),o.extend(r,e),r}var s=l(r(5655));s.Axios=i,s.create=function(t){return l(a(s.defaults,t))},s.Cancel=r(5263),s.CancelToken=r(4972),s.isCancel=r(6502),s.all=function(t){return Promise.all(t)},s.spread=r(8713),s.isAxiosError=r(6268),t.exports=s,t.exports.default=s},5263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,r)=>{"use strict";var o=r(5263);function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new o(t),e(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n((function(e){t=e})),cancel:t}},t.exports=n},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{"use strict";var o=r(4867),n=r(5327),i=r(782),a=r(3572),l=r(7185),s=r(4875),c=s.validators;function d(t){this.defaults=t,this.interceptors={request:new i,response:new i}}d.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=l(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&s.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var n,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(i