@shardus/monitor-client
Advanced tools
Comparing version 2.5.2 to 2.5.3
@@ -0,0 +0,0 @@ module.exports = { |
{ | ||
"editor.formatOnSave": true | ||
} |
{ | ||
"name": "@shardus/monitor-client", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "entry.js", |
@@ -39,5 +39,9 @@ const INTERVAL = 10_000 | ||
const drawPieChart = (data, labels, tooltips) => { | ||
let chartStatus = Chart.getChart("app-versions-chart"); // <canvas> id | ||
if (chartStatus != undefined) { | ||
chartStatus.destroy(); | ||
} | ||
const canvas = document.getElementById("app-versions-chart"); | ||
const ctx = canvas.getContext("2d"); | ||
console.log(tooltips) | ||
@@ -44,0 +48,0 @@ new Chart(ctx, { |
var request = axios.default | ||
const url = new URL(window.location.href) | ||
const protocol = window.location.protocol | ||
const server = `http://` + window.location.host | ||
const server = `${protocol}//` + window.location.host | ||
@@ -12,7 +13,7 @@ console.log('server', server) | ||
function redirectToSignIn () { | ||
function redirectToSignIn() { | ||
location.href = 'signin' | ||
} | ||
async function requestWithToken (url) { | ||
async function requestWithToken(url) { | ||
console.log('requesting with token', url) | ||
@@ -29,3 +30,3 @@ let token = loadToken() | ||
function loadToken (G) { | ||
function loadToken(G) { | ||
let token = localStorage.getItem('token') | ||
@@ -37,3 +38,3 @@ if (G) G.token = token | ||
async function checkAuthRequirement () { | ||
async function checkAuthRequirement() { | ||
console.log('Checking auth requirement...') | ||
@@ -40,0 +41,0 @@ let token = localStorage.getItem('token') |
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).axios={})}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t){return function(){return e.apply(t,arguments)}}var s,a=Object.prototype.toString,u=Object.getPrototypeOf,c=(s=Object.create(null),function(e){var t=a.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())}),f=function(e){return e=e.toLowerCase(),function(t){return c(t)===e}},l=function(e){return function(r){return t(r)===e}},d=Array.isArray,h=l("undefined");var p=f("ArrayBuffer");var m=l("string"),v=l("function"),y=l("number"),b=function(e){return null!==e&&"object"===t(e)},g=function(e){if("object"!==c(e))return!1;var t=u(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},E=f("Date"),w=f("File"),O=f("Blob"),R=f("FileList"),S=f("URLSearchParams");function A(e,r){var n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i.allOwnKeys,a=void 0!==s&&s;if(null!=e)if("object"!==t(e)&&(e=[e]),d(e))for(n=0,o=e.length;n<o;n++)r.call(null,e[n],n,e);else{var u,c=a?Object.getOwnPropertyNames(e):Object.keys(e),f=c.length;for(n=0;n<f;n++)u=c[n],r.call(null,e[u],u,e)}}var j,T=(j="undefined"!=typeof Uint8Array&&u(Uint8Array),function(e){return j&&e instanceof j}),x=f("HTMLFormElement"),C=function(e){var t=Object.prototype.hasOwnProperty;return function(e,r){return t.call(e,r)}}(),N=f("RegExp"),P=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};A(r,(function(r,o){!1!==t(r,o,e)&&(n[o]=r)})),Object.defineProperties(e,n)},_={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||a.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer)},isString:m,isNumber:y,isBoolean:function(e){return!0===e||!1===e},isObject:b,isPlainObject:g,isUndefined:h,isDate:E,isFile:w,isBlob:O,isRegExp:N,isFunction:v,isStream:function(e){return b(e)&&v(e.pipe)},isURLSearchParams:S,isTypedArray:T,isFileList:R,forEach:A,merge:function e(){for(var t={},r=function(r,n){g(t[n])&&g(r)?t[n]=e(t[n],r):g(r)?t[n]=e({},r):d(r)?t[n]=r.slice():t[n]=r},n=0,o=arguments.length;n<o;n++)arguments[n]&&A(arguments[n],r);return t},extend:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.allOwnKeys;return A(t,(function(t,n){r&&v(t)?e[n]=i(t,r):e[n]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,s,a={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:f,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(d(e))return e;var t=e.length;if(!y(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:x,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:P,freezeMethods:function(e){P(e,(function(t,r){var n=e[r];v(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return d(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t}};function B(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}_.inherits(B,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var D=B.prototype,F={};["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((function(e){F[e]={value:e}})),Object.defineProperties(B,F),Object.defineProperty(D,"isAxiosError",{value:!0}),B.from=function(e,t,r,n,o,i){var s=Object.create(D);return _.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),B.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var U="object"==("undefined"==typeof self?"undefined":t(self))?self.FormData:window.FormData;function k(e){return _.isPlainObject(e)||_.isArray(e)}function L(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function q(e,t,r){return e?e.concat(t).map((function(e,t){return e=L(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var M=_.toFlatObject(_,{},null,(function(e){return/^is[A-Z]/.test(e)}));function z(e,r,n){if(!_.isObject(e))throw new TypeError("target must be an object");r=r||new(U||FormData);var o,i=(n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_.isUndefined(t[e])}))).metaTokens,s=n.visitor||l,a=n.dots,u=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((o=r)&&_.isFunction(o.append)&&"FormData"===o[Symbol.toStringTag]&&o[Symbol.iterator]);if(!_.isFunction(s))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(_.isDate(e))return e.toISOString();if(!c&&_.isBlob(e))throw new B("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(e)||_.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){var s=e;if(e&&!o&&"object"===t(e))if(_.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(_.isArray(e)&&function(e){return _.isArray(e)&&!e.some(k)}(e)||_.isFileList(e)||_.endsWith(n,"[]")&&(s=_.toArray(e)))return n=L(n),s.forEach((function(e,t){!_.isUndefined(e)&&r.append(!0===u?q([n],t,a):null===u?n:n+"[]",f(e))})),!1;return!!k(e)||(r.append(q(o,n,a),f(e)),!1)}var d=[],h=Object.assign(M,{defaultVisitor:l,convertValue:f,isVisitable:k});if(!_.isObject(e))throw new TypeError("data must be an object");return function e(t,n){if(!_.isUndefined(t)){if(-1!==d.indexOf(t))throw Error("Circular reference detected in "+n.join("."));d.push(t),_.forEach(t,(function(t,o){!0===(!_.isUndefined(t)&&s.call(r,t,_.isString(o)?o.trim():o,n,h))&&e(t,n?n.concat(o):[o])})),d.pop()}}(e),r}function I(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function J(e,t){this._pairs=[],e&&z(e,this,t)}var H=J.prototype;function V(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W(e,t,r){if(!t)return e;var n=e.indexOf("#");-1!==n&&(e=e.slice(0,n));var o=r&&r.encode||V,i=_.isURLSearchParams(t)?t.toString():new J(t,r).toString(o);return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}H.append=function(e,t){this._pairs.push([e,t])},H.toString=function(e){var t=e?function(t){return e.call(this,t,I)}:I;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var K,X=function(){function e(){r(this,e),this.handlers=[]}return o(e,[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){_.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q="undefined"!=typeof URLSearchParams?URLSearchParams:J,G=FormData,Y=("undefined"==typeof navigator||"ReactNative"!==(K=navigator.product)&&"NativeScript"!==K&&"NS"!==K)&&"undefined"!=typeof window&&"undefined"!=typeof document,Z={isBrowser:!0,classes:{URLSearchParams:Q,FormData:G,Blob:Blob},isStandardBrowserEnv:Y,protocols:["http","https","file","blob","url","data"]};function ee(e){function t(e,r,n,o){var i=e[o++],s=Number.isFinite(+i),a=o>=e.length;return i=!i&&_.isArray(n)?n.length:i,a?(_.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s):(n[i]&&_.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&_.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i])),!s)}if(_.isFormData(e)&&_.isFunction(e.entries)){var r={};return _.forEachEntry(e,(function(e,n){t(function(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),n,r,0)})),r}return null}var te=Z.isStandardBrowserEnv?{write:function(e,t,r,n,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),_.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),_.isString(n)&&s.push("path="+n),_.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function re(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ne=Z.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=_.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function oe(e,t,r){B.call(this,null==e?"canceled":e,B.ERR_CANCELED,t,r),this.name="CanceledError"}_.inherits(oe,B,{__CANCEL__:!0});var ie=_.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"]),se=Symbol("internals"),ae=Symbol("defaults");function ue(e){return e&&String(e).trim().toLowerCase()}function ce(e){return!1===e||null==e?e:String(e)}function fe(e,t,r,n){return _.isFunction(n)?n.call(this,t,r):_.isString(t)?_.isString(n)?-1!==t.indexOf(n):_.isRegExp(n)?n.test(t):void 0:void 0}function le(e,t){t=t.toLowerCase();for(var r,n=Object.keys(e),o=n.length;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}function de(e,t){e&&this.set(e),this[ae]=t||null}function he(e,t){var r=0,n=function(e,t){e=e||10;var r,n=new Array(e),o=new Array(e),i=0,s=0;return t=void 0!==t?t:1e3,function(a){var u=Date.now(),c=o[s];r||(r=u),n[i]=a,o[i]=u;for(var f=s,l=0;f!==i;)l+=n[f++],f%=e;if((i=(i+1)%e)===s&&(s=(s+1)%e),!(u-r<t)){var d=c&&u-c;return d?Math.round(1e3*l/d):void 0}}}(50,250);return function(o){var i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,u=n(a);r=i;var c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0};c[t?"download":"upload"]=!0,e(c)}}function pe(e){return new Promise((function(t,r){var n,o=e.data,i=de.from(e.headers).normalize(),s=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}_.isFormData(o)&&Z.isStandardBrowserEnv&&i.setContentType(!1);var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(c+":"+f))}var l=re(e.baseURL,e.url);function d(){if(u){var n=de.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new B("Request failed with status code "+r.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),a()}),(function(e){r(e),a()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}}if(u.open(e.method.toUpperCase(),W(l,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(r(new B("Request aborted",B.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new B("Network Error",B.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||$;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new B(t,n.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,u)),u=null},Z.isStandardBrowserEnv){var h=(e.withCredentials||ne(l))&&e.xsrfCookieName&&te.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}void 0===o&&i.setContentType(null),"setRequestHeader"in u&&_.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),_.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",he(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",he(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=function(t){u&&(r(!t||t.type?new oe(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));var p,m=(p=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l))&&p[1]||"";m&&-1===Z.protocols.indexOf(m)?r(new B("Unsupported protocol "+m+":",B.ERR_BAD_REQUEST,e)):u.send(o||null)}))}Object.assign(de.prototype,{set:function(e,t,r){var n=this;function o(e,t,r){var o=ue(t);if(!o)throw new Error("header name must be a non-empty string");var i=le(n,o);(!i||!0===r||!1!==n[i]&&!1!==r)&&(e=_.isArray(e)?e.map(ce):ce(e),n[i||t]=e)}return _.isPlainObject(e)?_.forEach(e,(function(e,r){o(e,r,t)})):o(t,e,r),this},get:function(e,t){if(e=ue(e)){var r=le(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if(_.isFunction(t))return t.call(this,n,r);if(_.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}},has:function(e,t){if(e=ue(e)){var r=le(this,e);return!(!r||t&&!fe(0,this[r],r,t))}return!1},delete:function(e,t){var r=this,n=!1;function o(e){if(e=ue(e)){var o=le(r,e);!o||t&&!fe(0,r[o],o,t)||(delete r[o],n=!0)}}return _.isArray(e)?e.forEach(o):o(e),n},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){var t=this,r={};return _.forEach(this,(function(n,o){var i=le(r,o);if(i)return t[i]=ce(n),void delete t[o];var s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();s!==o&&delete t[o],t[s]=ce(n),r[s]=!0})),this},toJSON:function(){var e=Object.create(null);return _.forEach(Object.assign({},this[ae]||null,this),(function(t,r){null!=t&&!1!==t&&(e[r]=_.isArray(t)?t.join(", "):t)})),e}}),Object.assign(de,{from:function(e){return _.isString(e)?new this((i={},(t=e)&&t.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||i[r]&&ie[r]||("set-cookie"===r?i[r]?i[r].push(n):i[r]=[n]:i[r]=i[r]?i[r]+", "+n:n)})),i)):e instanceof this?e:new this(e);var t,r,n,o,i},accessor:function(e){var t=(this[se]=this[se]={accessors:{}}).accessors,r=this.prototype;function n(e){var n=ue(e);t[n]||(!function(e,t){var r=_.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return _.isArray(e)?e.forEach(n):n(e),this}}),de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),_.freezeMethods(de.prototype),_.freezeMethods(de);var me={http:pe,xhr:pe},ve=function(e){if(_.isString(e)){var t=me[e];if(!e)throw Error(_.hasOwnProp(e)?"Adapter '".concat(e,"' is not available in the build"):"Can not resolve adapter '".concat(e,"'"));return t}if(!_.isFunction(e))throw new TypeError("adapter is not a function");return e},ye={"Content-Type":"application/x-www-form-urlencoded"};var be,ge={transitional:$,adapter:("undefined"!=typeof XMLHttpRequest?be=ve("xhr"):"undefined"!=typeof process&&"process"===_.kindOf(process)&&(be=ve("http")),be),transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=_.isObject(e);if(i&&_.isHTMLForm(e)&&(e=new FormData(e)),_.isFormData(e))return o&&o?JSON.stringify(ee(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return z(e,new Z.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Z.isNode&&_.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=_.isFileList(e))||n.indexOf("multipart/form-data")>-1){var s=this.env&&this.env.FormData;return z(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ge.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&_.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw B.from(e,B.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Z.classes.FormData,Blob:Z.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};function Ee(e,t){var r=this||ge,n=t||r,o=de.from(n.headers),i=n.data;return _.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function we(e){return!(!e||!e.__CANCEL__)}function Oe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oe}function Re(e){return Oe(e),e.headers=de.from(e.headers),e.data=Ee.call(e,e.transformRequest),(e.adapter||ge.adapter)(e).then((function(t){return Oe(e),t.data=Ee.call(e,e.transformResponse,t),t.headers=de.from(t.headers),t}),(function(t){return we(t)||(Oe(e),t&&t.response&&(t.response.data=Ee.call(e,e.transformResponse,t.response),t.response.headers=de.from(t.response.headers))),Promise.reject(t)}))}function Se(e,t){t=t||{};var r={};function n(e,t){return _.isPlainObject(e)&&_.isPlainObject(t)?_.merge(e,t):_.isPlainObject(t)?_.merge({},t):_.isArray(t)?t.slice():t}function o(r){return _.isUndefined(t[r])?_.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!_.isUndefined(t[e]))return n(void 0,t[e])}function s(r){return _.isUndefined(t[r])?_.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function a(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return _.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,n=t(e);_.isUndefined(n)&&t!==a||(r[e]=n)})),r}_.forEach(["delete","get","head"],(function(e){ge.headers[e]={}})),_.forEach(["post","put","patch"],(function(e){ge.headers[e]=_.merge(ye)}));var Ae="1.1.0",je={};["object","boolean","number","function","string","symbol"].forEach((function(e,r){je[e]=function(n){return t(n)===e||"a"+(r<1?"n ":" ")+e}}));var Te={};je.transitional=function(e,t,r){function n(e,t){return"[Axios v1.1.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new B(n(o," has been removed"+(t?" in "+t:"")),B.ERR_DEPRECATED);return t&&!Te[o]&&(Te[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var xe={assertOptions:function(e,r,n){if("object"!==t(e))throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var s=o[i],a=r[s];if(a){var u=e[s],c=void 0===u||a(u,s,e);if(!0!==c)throw new B("option "+s+" must be "+c,B.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new B("Unknown option "+s,B.ERR_BAD_OPTION)}},validators:je},Ce=xe.validators,Ne=function(){function e(t){r(this,e),this.defaults=t,this.interceptors={request:new X,response:new X}}return o(e,[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=(t=Se(this.defaults,t)).transitional;void 0!==r&&xe.assertOptions(r,{silentJSONParsing:Ce.transitional(Ce.boolean),forcedJSONParsing:Ce.transitional(Ce.boolean),clarifyTimeoutError:Ce.transitional(Ce.boolean)},!1),t.method=(t.method||this.defaults.method||"get").toLowerCase();var n=t.headers&&_.merge(t.headers.common,t.headers[t.method]);n&&_.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new de(t.headers,n);var o=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var s,a=[];this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)}));var u,c=0;if(!i){var f=[Re.bind(this),void 0];for(f.unshift.apply(f,o),f.push.apply(f,a),u=f.length,s=Promise.resolve(t);c<u;)s=s.then(f[c++],f[c++]);return s}u=o.length;var l=t;for(c=0;c<u;){var d=o[c++],h=o[c++];try{l=d(l)}catch(e){h.call(this,e);break}}try{s=Re.call(this,l)}catch(e){return Promise.reject(e)}for(c=0,u=a.length;c<u;)s=s.then(a[c++],a[c++]);return s}},{key:"getUri",value:function(e){return W(re((e=Se(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();_.forEach(["delete","get","head","options"],(function(e){Ne.prototype[e]=function(t,r){return this.request(Se(r||{},{method:e,url:t,data:(r||{}).data}))}})),_.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Se(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ne.prototype[e]=t(),Ne.prototype[e+"Form"]=t(!0)}));var Pe=function(){function e(t){if(r(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var o=this;this.promise.then((function(e){if(o._listeners){for(var t=o._listeners.length;t-- >0;)o._listeners[t](e);o._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){o.subscribe(e),t=e})).then(e);return r.cancel=function(){o.unsubscribe(t)},r},t((function(e,t,r){o.reason||(o.reason=new oe(e,t,r),n(o.reason))}))}return o(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var _e=function e(t){var r=new Ne(t),n=i(Ne.prototype.request,r);return _.extend(n,Ne.prototype,r,{allOwnKeys:!0}),_.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Se(t,r))},n}(ge);_e.Axios=Ne,_e.CanceledError=oe,_e.CancelToken=Pe,_e.isCancel=we,_e.VERSION=Ae,_e.toFormData=z,_e.AxiosError=B,_e.Cancel=_e.CanceledError,_e.all=function(e){return Promise.all(e)},_e.spread=function(e){return function(t){return e.apply(null,t)}},_e.isAxiosError=function(e){return _.isObject(e)&&!0===e.isAxiosError},_e.formToJSON=function(e){return ee(_.isHTMLForm(e)?new FormData(e):e)},e.Axios=Ne,e.AxiosError=B,e.AxiosHeaders=de,e.CanceledError=oe,e.default=_e,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=axios.min.js.map |
@@ -0,0 +0,0 @@ const socket = io() |
@@ -0,0 +0,0 @@ new Vue({ |
@@ -0,0 +0,0 @@ ;(function main () { |
@@ -0,0 +0,0 @@ let connection |
@@ -0,0 +0,0 @@ const INTERVAL = 10_000 |
@@ -0,0 +0,0 @@ new Vue({ |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).popmotion={})}(this,(function(t){"use strict";function e(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}const n=(t,e,n)=>Math.min(Math.max(n,t),e),r=.001;function o({duration:t=800,bounce:e=.25,velocity:o=0,mass:a=1}){let i,c,u=1-e;u=n(.05,1,u),t=n(.01,10,t/1e3),u<1?(i=e=>{const n=e*u,a=n*t,i=n-o,c=s(e,u),l=Math.exp(-a);return r-i/c*l},c=e=>{const n=e*u*t,a=n*o+o,c=Math.pow(u,2)*Math.pow(e,2)*t,l=Math.exp(-n),p=s(Math.pow(e,2),u);return(-i(e)+r>0?-1:1)*((a-c)*l)/p}):(i=e=>Math.exp(-e*t)*((e-o)*t+1)-.001,c=e=>Math.exp(-e*t)*(t*t*(o-e)));const l=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,c,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*a;return{stiffness:e,damping:2*u*Math.sqrt(a*e),duration:t}}}function s(t,e){return t*Math.sqrt(1-e*e)}const a=["duration","bounce"],i=["stiffness","damping","mass"];function c(t,e){return e.some((e=>void 0!==t[e]))}function u(t){var{from:n=0,to:r=1,restSpeed:u=2,restDelta:p}=t,f=e(t,["from","to","restSpeed","restDelta"]);const m={done:!1,value:n};let{stiffness:d,damping:h,mass:g,velocity:y,duration:b,isResolvedFromDuration:M}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!c(t,i)&&c(t,a)){const n=o(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(f),v=l,O=l;function x(){const t=y?-y/1e3:0,e=r-n,o=h/(2*Math.sqrt(d*g)),a=Math.sqrt(d/g)/1e3;if(null!=p||(p=Math.abs(r-n)<=1?.01:.4),o<1){const n=s(a,o);v=s=>{const i=Math.exp(-o*a*s);return r-i*((t+o*a*e)/n*Math.sin(n*s)+e*Math.cos(n*s))},O=r=>{const s=Math.exp(-o*a*r);return o*a*s*(Math.sin(n*r)*(t+o*a*e)/n+e*Math.cos(n*r))-s*(Math.cos(n*r)*(t+o*a*e)-n*e*Math.sin(n*r))}}else if(1===o)v=n=>r-Math.exp(-a*n)*(e+(t+a*e)*n);else{const n=a*Math.sqrt(o*o-1);v=s=>{const i=Math.exp(-o*a*s),c=Math.min(n*s,300);return r-i*((t+o*a*e)*Math.sinh(c)+n*e*Math.cosh(c))/n}}}return x(),{next:t=>{const e=v(t);if(M)m.done=t>=b;else{const n=1e3*O(t),o=Math.abs(n)<=u,s=Math.abs(r-e)<=p;m.done=o&&s}return m.value=m.done?r:e,m},flipTarget:()=>{y=-y,[n,r]=[r,n],x()}}}u.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const l=t=>0,p=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},f=(t,e,n)=>-n*t+n*e+t,m=(t,e)=>n=>Math.max(Math.min(n,e),t),d=t=>t%1?Number(t.toFixed(5)):t,h=/(-)?([\d]*\.?[\d])+/g,g=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,y=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function b(t){return"string"==typeof t}const M={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},v=Object.assign(Object.assign({},M),{transform:m(0,1)});Object.assign(Object.assign({},M),{default:1});const O=(x="%",{test:t=>b(t)&&t.endsWith(x)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${x}`});var x;Object.assign(Object.assign({},O),{parse:t=>O.parse(t)/100,transform:t=>O.transform(100*t)});const w=(t,e)=>n=>Boolean(b(n)&&y.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),j=(t,e,n)=>r=>{if(!b(r))return r;const[o,s,a,i]=r.match(h);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==i?parseFloat(i):1}},I={test:w("hsl","hue"),parse:j("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+O.transform(d(e))+", "+O.transform(d(n))+", "+d(v.transform(r))+")"},A=m(0,255),D=Object.assign(Object.assign({},M),{transform:t=>Math.round(A(t))}),P={test:w("rgb","red"),parse:j("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+D.transform(t)+", "+D.transform(e)+", "+D.transform(n)+", "+d(v.transform(r))+")"};const S={test:w("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:P.transform},T=t=>P.test(t)||S.test(t)||I.test(t),F=t=>P.test(t)?P.parse(t):I.test(t)?I.parse(t):S.parse(t),R=t=>b(t)?t:t.hasOwnProperty("red")?P.transform(t):I.transform(t),C="${c}",k="${n}";function q(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const r=t.match(g);r&&(n=r.length,t=t.replace(g,C),e.push(...r.map(F)));const o=t.match(h);return o&&(t=t.replace(h,k),e.push(...o.map(M.parse))),{values:e,numColors:n,tokenised:t}}function N(t){return q(t).values}function $(t){const{values:e,numColors:n,tokenised:r}=q(t),o=e.length;return t=>{let e=r;for(let r=0;r<o;r++)e=e.replace(r<n?C:k,r<n?R(t[r]):d(t[r]));return e}}const B=t=>"number"==typeof t?0:t;const E={test:function(t){var e,n,r,o;return isNaN(t)&&b(t)&&(null!==(n=null===(e=t.match(h))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(g))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:N,createTransformer:$,getAnimatableNone:function(t){const e=N(t);return $(t)(e.map(B))}},U=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},z=[S,P,I],G=t=>z.find((e=>e.test(t))),H=(t,e)=>{const n=G(t),r=G(e);if(n.transform,r.transform,!n||!r||n.transform!==r.transform)return n=>`${n>0?e:t}`;const o=n.parse(t),s=r.parse(e),a=Object.assign({},o),i=n===I?f:U;return t=>{for(const e in a)"alpha"!==e&&(a[e]=i(o[e],s[e],t));return a.alpha=f(o.alpha,s.alpha,t),n.transform(a)}},L={x:0,y:0,z:0},W=t=>"number"==typeof t,_=(t,e)=>n=>e(t(n)),V=(...t)=>t.reduce(_);function J(t,e){return W(t)?n=>f(t,e,n):T(t)?H(t,e):Y(t,e)}const K=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>J(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},Q=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=J(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function X(t){const e=E.parse(t),n=e.length;let r=0,o=0,s=0;for(let t=0;t<n;t++)r||"number"==typeof e[t]?r++:void 0!==e[t].hue?s++:o++;return{parsed:e,numNumbers:r,numRGB:o,numHSL:s}}const Y=(t,e)=>{const n=E.createTransformer(e),r=X(t),o=X(e);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?V(K(r.parsed,o.parsed),n):n=>`${n>0?e:t}`},Z=(t,e)=>n=>f(t,e,n);function tt(t,e,n){const r=[],o=n||("number"==typeof(s=t[0])?Z:"string"==typeof s?T(s)?H:Y:Array.isArray(s)?K:"object"==typeof s?Q:void 0);var s;const a=t.length-1;for(let n=0;n<a;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=V(t,s)}r.push(s)}return r}function et(t,e,{clamp:r=!0,ease:o,mixer:s}={}){const a=t.length;e.length,!o||!Array.isArray(o)||o.length,t[0]>t[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const i=tt(e,o,s),c=2===a?function([t,e],[n]){return r=>n(p(t,e,r))}(t,i):function(t,e){const n=t.length,r=n-1;return o=>{let s=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(s=r-1,a=!0),!a){let e=1;for(;e<n&&!(t[e]>o||e===r);e++);s=e-1}const i=p(t[s],t[s+1],o);return e[s](i)}}(t,i);return r?e=>c(n(t[0],t[a-1],e)):c}const nt=t=>e=>1-t(1-e),rt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ot=t=>e=>Math.pow(e,t),st=t=>e=>e*e*((t+1)*e-t),at=t=>{const e=st(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))},it=t=>t,ct=ot(2),ut=nt(ct),lt=rt(ct),pt=t=>1-Math.sin(Math.acos(t)),ft=nt(pt),mt=rt(ft),dt=st(1.525),ht=nt(dt),gt=rt(dt),yt=at(1.525),bt=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},Mt=nt(bt);function vt(t,e){return t.map((()=>e||lt)).splice(0,t.length-1)}function Ot({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const s={done:!1,value:t},a=Array.isArray(e)?e:[t,e],i=function(t,e){return t.map((t=>t*e))}(r&&r.length===a.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(a),o);function c(){return et(i,a,{ease:Array.isArray(n)?n:vt(a,n)})}let u=c();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{a.reverse(),u=c()}}}function xt({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:s}){const a={done:!1,value:e};let i=n*t;const c=e+i,u=void 0===s?c:s(c);return u!==c&&(i=u-e),{next:t=>{const e=-i*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?u:u+e,a},flipTarget:()=>{}}}const wt={keyframes:Ot,spring:u,decay:xt};const jt=1/60*1e3,It="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),At="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(It())),jt);let Dt=!0,Pt=!1,St=!1;const Tt={delta:0,timestamp:0},Ft=["read","update","preRender","render","postRender"],Rt=Ft.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1;const s=new WeakSet,a={schedule:(t,a=!1,i=!1)=>{const c=i&&o,u=c?e:n;return a&&s.add(t),-1===u.indexOf(t)&&(u.push(t),c&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:i=>{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(i),s.has(r)&&(a.schedule(r),t())}o=!1}};return a}((()=>Pt=!0)),t)),{}),Ct=Ft.reduce(((t,e)=>{const n=Rt[e];return t[e]=(t,e=!1,r=!1)=>(Pt||$t(),n.schedule(t,e,r)),t}),{}),kt=Ft.reduce(((t,e)=>(t[e]=Rt[e].cancel,t)),{});Ft.reduce(((t,e)=>(t[e]=()=>Rt[e].process(Tt),t)),{});const qt=t=>Rt[t].process(Tt),Nt=t=>{Pt=!1,Tt.delta=Dt?jt:Math.max(Math.min(t-Tt.timestamp,40),1),Tt.timestamp=t,St=!0,Ft.forEach(qt),St=!1,Pt&&(Dt=!1,At(Nt))},$t=()=>{Pt=!0,Dt=!0,St||At(Nt)},Bt=()=>Tt;function Et(t,e,n=0){return t-e-n}const Ut=t=>{const e=({delta:e})=>t(e);return{start:()=>Ct.update(e,!0),stop:()=>kt.update(e)}};function zt(t){var n,r,{from:o,autoplay:s=!0,driver:a=Ut,elapsed:i=0,repeat:c=0,repeatType:l="loop",repeatDelay:p=0,onPlay:f,onStop:m,onComplete:d,onRepeat:h,onUpdate:g}=t,y=e(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let b,M,v,{to:O}=y,x=0,w=y.duration,j=!1,I=!0;const A=function(t){if(Array.isArray(t.to))return Ot;if(wt[t.type])return wt[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Ot:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?u:Ot}(y);(null===(r=(n=A).needsInterpolation)||void 0===r?void 0:r.call(n,o,O))&&(v=et([0,100],[o,O],{clamp:!1}),o=0,O=100);const D=A(Object.assign(Object.assign({},y),{from:o,to:O}));function P(){x++,"reverse"===l?(I=x%2==0,i=function(t,e,n=0,r=!0){return r?Et(e+-t,e,n):e-(t-e)+n}(i,w,p,I)):(i=Et(i,w,p),"mirror"===l&&D.flipTarget()),j=!1,h&&h()}function S(t){if(I||(t=-t),i+=t,!j){const t=D.next(Math.max(0,i));M=t.value,v&&(M=v(M)),j=I?t.done:i<=0}null==g||g(M),j&&(0===x&&(null!=w||(w=i)),x<c?function(t,e,n,r){return r?t>=e+n:t<=-n}(i,w,p,I)&&P():(b.stop(),d&&d()))}return s&&(null==f||f(),b=a(S),b.start()),{stop:()=>{null==m||m(),b.stop()}}}function Gt(t,e){return e?t*(1e3/e):0}const Ht=t=>180*t/Math.PI,Lt=t=>t,Wt=(t=Lt)=>(e,n,r)=>{const o=n-r,s=-(0-e+1)*(0-t(Math.abs(o)));return o<=0?n+s:n-s},_t=Wt(),Vt=Wt(Math.sqrt),Jt=t=>t*Math.PI/180,Kt=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),Qt=t=>Kt(t)&&t.hasOwnProperty("z"),Xt=(t,e)=>Math.abs(t-e);const Yt=(t,e=2)=>(e=Math.pow(10,e),Math.round(t*e)/e),Zt=(t,e,n,r=0)=>Yt(t+n*(e-t)/Math.max(r,n));const te=(t,e)=>1-3*e+3*t,ee=(t,e)=>3*e-6*t,ne=t=>3*t,re=(t,e,n)=>((te(e,n)*t+ee(e,n))*t+ne(e))*t,oe=(t,e,n)=>3*te(e,n)*t*t+2*ee(e,n)*t+ne(e);const se=.1;t.angle=(t,e=L)=>Ht(Math.atan2(e.y-t.y,e.x-t.x)),t.animate=zt,t.anticipate=yt,t.applyOffset=(t,e)=>{let n=!0;return void 0===e&&(e=t,n=!1),r=>n?r-t+e:(t=r,n=!0,e)},t.attract=_t,t.attractExpo=Vt,t.backIn=dt,t.backInOut=gt,t.backOut=ht,t.bounceIn=Mt,t.bounceInOut=t=>t<.5?.5*(1-bt(1-2*t)):.5*bt(2*t-1)+.5,t.bounceOut=bt,t.circIn=pt,t.circInOut=mt,t.circOut=ft,t.clamp=n,t.createAnticipate=at,t.createAttractor=Wt,t.createBackIn=st,t.createExpoIn=ot,t.cubicBezier=function(t,e,n,r){if(t===e&&n===r)return it;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=re(e*se,t,n);function s(e){let r=0,s=1;for(;10!==s&&o[s]<=e;++s)r+=se;--s;const a=r+(e-o[s])/(o[s+1]-o[s])*se,i=oe(a,t,n);return i>=.001?function(t,e,n,r){for(let o=0;o<8;++o){const o=oe(e,n,r);if(0===o)return e;e-=(re(e,n,r)-t)/o}return e}(e,a,t,n):0===i?a:function(t,e,n,r,o){let s,a,i=0;do{a=e+(n-e)/2,s=re(a,r,o)-t,s>0?n=a:e=a}while(Math.abs(s)>1e-7&&++i<10);return a}(e,r,r+se,t,n)}return t=>0===t||1===t?t:re(s(t),e,r)},t.decay=xt,t.degreesToRadians=Jt,t.distance=function(t,e){if(W(t)&&W(e))return Xt(t,e);if(Kt(t)&&Kt(e)){const n=Xt(t.x,e.x),r=Xt(t.y,e.y),o=Qt(t)&&Qt(e)?Xt(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}},t.easeIn=ct,t.easeInOut=lt,t.easeOut=ut,t.inertia=function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:s=750,bounceStiffness:a=500,bounceDamping:i=10,restDelta:c=1,modifyTarget:u,driver:l,onUpdate:p,onComplete:f,onStop:m}){let d;function h(t){return void 0!==n&&t<n||void 0!==r&&t>r}function g(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){null==d||d.stop(),d=zt(Object.assign(Object.assign({},t),{driver:l,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:f,onStop:m}))}function b(t){y(Object.assign({type:"spring",stiffness:a,damping:i,restDelta:c},t))}if(h(t))b({from:t,velocity:e,to:g(t)});else{let r=o*e+t;void 0!==u&&(r=u(r));const a=g(r),i=a===n?-1:1;let l,p;const f=t=>{l=p,p=t,e=Gt(t-l,Bt().delta),(1===i&&t>a||-1===i&&t<a)&&b({from:t,to:a,velocity:e})};y({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:c,modifyTarget:u,onUpdate:h(r)?f:void 0})}return{stop:()=>null==d?void 0:d.stop()}},t.interpolate=et,t.isPoint=Kt,t.isPoint3D=Qt,t.keyframes=Ot,t.linear=it,t.mirrorEasing=rt,t.mix=f,t.mixColor=H,t.mixComplex=Y,t.pipe=V,t.pointFromVector=(t,e,n)=>(e=Jt(e),{x:n*Math.cos(e)+t.x,y:n*Math.sin(e)+t.y}),t.progress=p,t.radiansToDegrees=Ht,t.reverseEasing=nt,t.smooth=(t=50)=>{let e=0,n=0;return r=>{const o=Bt().timestamp,s=o!==n?o-n:0,a=s?Zt(e,r,s,t):e;return n=o,e=a,a}},t.smoothFrame=Zt,t.snap=t=>{if("number"==typeof t)return e=>Math.round(e/t)*t;{let e=0;const n=t.length;return r=>{let o=Math.abs(t[0]-r);for(e=1;e<n;e++){const s=t[e],a=Math.abs(s-r);if(0===a)return s;if(a>o)return t[e-1];if(e===n-1)return s;o=a}}}},t.spring=u,t.steps=(t,e="end")=>r=>{const o=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,s="end"===e?Math.floor(o):Math.ceil(o);return n(0,1,s/t)},t.toDecimal=Yt,t.velocityPerFrame=function(t,e){return t/(1e3/e)},t.velocityPerSecond=Gt,t.wrap=(t,e,n)=>{const r=e-t;return((n-t)%r+r)%r+t},Object.defineProperty(t,"__esModule",{value:!0})})); |
@@ -0,0 +0,0 @@ var request = axios.default |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ # @shardus/monitor-client |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13393819
44
5090