3 lines
12 KiB
JavaScript
3 lines
12 KiB
JavaScript
import{h as j,j as T}from"./chunk-U3SD26FK.min.js";import{a as P,d as ie}from"./chunk-OSRY5VT3.min.js";var X=P((Xe,Q)=>{var b=1e3,y=b*60,v=y*60,I=v*24,he=I*7,Ce=I*365.25;Q.exports=function(e,o){o=o||{};var t=typeof e;if(t==="string"&&e.length>0)return xe(e);if(t==="number"&&isFinite(e))return o.long?Fe(e):we(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xe(e){if(e=String(e),!(e.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var t=parseFloat(o[1]),n=(o[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*Ce;case"weeks":case"week":case"w":return t*he;case"days":case"day":case"d":return t*I;case"hours":case"hour":case"hrs":case"hr":case"h":return t*v;case"minutes":case"minute":case"mins":case"min":case"m":return t*y;case"seconds":case"second":case"secs":case"sec":case"s":return t*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function we(e){var o=Math.abs(e);return o>=I?Math.round(e/I)+"d":o>=v?Math.round(e/v)+"h":o>=y?Math.round(e/y)+"m":o>=b?Math.round(e/b)+"s":e+"ms"}function Fe(e){var o=Math.abs(e);return o>=I?O(e,o,I,"day"):o>=v?O(e,o,v,"hour"):o>=y?O(e,o,y,"minute"):o>=b?O(e,o,b,"second"):e+" ms"}function O(e,o,t,n){var r=o>=t*1.5;return Math.round(e/t)+" "+n+(r?"s":"")}});var ee=P((Ye,Y)=>{function Ie(e){t.debug=t,t.default=t,t.coerce=g,t.disable=s,t.enable=r,t.enabled=a,t.humanize=X(),t.destroy=h,Object.keys(e).forEach(i=>{t[i]=e[i]}),t.names=[],t.skips=[],t.formatters={};function o(i){let c=0;for(let u=0;u<i.length;u++)c=(c<<5)-c+i.charCodeAt(u),c|=0;return t.colors[Math.abs(c)%t.colors.length]}t.selectColor=o;function t(i){let c,u=null,w,E;function p(...l){if(!p.enabled)return;let x=p,F=Number(new Date),C=F-(c||F);x.diff=C,x.prev=c,x.curr=F,c=F,l[0]=t.coerce(l[0]),typeof l[0]!="string"&&l.unshift("%O");let m=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,(M,re)=>{if(M==="%%")return"%";m++;let H=t.formatters[re];if(typeof H=="function"){let ne=l[m];M=H.call(x,ne),l.splice(m,1),m--}return M}),t.formatArgs.call(x,l),(x.log||t.log).apply(x,l)}return p.namespace=i,p.useColors=t.useColors(),p.color=t.selectColor(i),p.extend=n,p.destroy=t.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(w!==t.namespaces&&(w=t.namespaces,E=t.enabled(i)),E),set:l=>{u=l}}),typeof t.init=="function"&&t.init(p),p}function n(i,c){let u=t(this.namespace+(typeof c>"u"?":":c)+i);return u.log=this.log,u}function r(i){t.save(i),t.namespaces=i,t.names=[],t.skips=[];let c,u=(typeof i=="string"?i:"").split(/[\s,]+/),w=u.length;for(c=0;c<w;c++)u[c]&&(i=u[c].replace(/\*/g,".*?"),i[0]==="-"?t.skips.push(new RegExp("^"+i.slice(1)+"$")):t.names.push(new RegExp("^"+i+"$")))}function s(){let i=[...t.names.map(f),...t.skips.map(f).map(c=>"-"+c)].join(",");return t.enable(""),i}function a(i){if(i[i.length-1]==="*")return!0;let c,u;for(c=0,u=t.skips.length;c<u;c++)if(t.skips[c].test(i))return!1;for(c=0,u=t.names.length;c<u;c++)if(t.names[c].test(i))return!0;return!1}function f(i){return i.toString().substring(2,i.toString().length-2).replace(/\.\*\?$/,"*")}function g(i){return i instanceof Error?i.stack||i.message:i}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Y.exports=Ie});var te=P((d,A)=>{d.formatArgs=be;d.save=ye;d.load=ve;d.useColors=Se;d.storage=Ee();d.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();d.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33C
|
|||
|
|
//# sourceMappingURL=chunk-BD4P4Z7J.min.js.map
|