first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

112
node_modules/marky/dist/marky.js generated vendored Normal file
View File

@@ -0,0 +1,112 @@
var marky = (function (exports) {
'use strict';
/* global performance */
var perf = typeof performance !== 'undefined' && performance;
var now = perf && perf.now
? function () { return perf.now(); }
: function () { return Date.now(); }
function throwIfEmpty (name) {
if (!name) {
throw new Error('name must be non-empty')
}
}
// simple binary sort insertion
function insertSorted (arr, item) {
var low = 0;
var high = arr.length;
var mid;
while (low < high) {
mid = (low + high) >>> 1; // like (num / 2) but faster
if (arr[mid].startTime < item.startTime) {
low = mid + 1;
} else {
high = mid;
}
}
arr.splice(low, 0, item);
}
exports.mark = void 0;
exports.stop = void 0;
exports.getEntries = void 0;
exports.clear = void 0;
if (
perf &&
perf.mark &&
perf.measure &&
perf.getEntriesByName &&
perf.getEntriesByType &&
perf.clearMarks &&
perf.clearMeasures &&
// In Node, we want to detect that this perf/correctness fix [1] is available, which
// landed in Node 16.15.0, 17.6.0, and 18.0.0. However, it's not observable, and
// we don't want to rely on fragile version checks.
// So we can rely on this observable change [2] to add clearResourceTimings, which
// landed a bit later (18.2.0), but is close enough for our purposes.
// [1]: https://github.com/nodejs/node/pull/42032
// [2]: https://github.com/nodejs/node/pull/42725
(true )
) {
exports.mark = function (name) {
throwIfEmpty(name);
perf.mark(("start " + name));
};
exports.stop = function (name) {
throwIfEmpty(name);
perf.mark(("end " + name));
var measure = perf.measure(name, ("start " + name), ("end " + name));
if (measure) {
// return value from performance.measure not supported in all browsers
// https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure#browser_compatibility
return measure
}
var entries = perf.getEntriesByName(name);
return entries[entries.length - 1]
};
exports.getEntries = function () { return perf.getEntriesByType('measure'); };
exports.clear = function () {
perf.clearMarks();
perf.clearMeasures();
};
} else {
var marks = {};
var entries = [];
exports.mark = function (name) {
throwIfEmpty(name);
var startTime = now();
marks['$' + name] = startTime;
};
exports.stop = function (name) {
throwIfEmpty(name);
var endTime = now();
var startTime = marks['$' + name];
if (!startTime) {
throw new Error(("no known mark: " + name))
}
var entry = {
startTime: startTime,
name: name,
duration: endTime - startTime,
entryType: 'measure'
};
// per the spec this should be at least 150:
// https://www.w3.org/TR/resource-timing-1/#extensions-performance-interface
// we just have no limit, per Chrome and Edge's de-facto behavior
insertSorted(entries, entry);
return entry
};
exports.getEntries = function () { return entries; };
exports.clear = function () {
marks = {};
entries = [];
};
}
return exports;
})({});

1
node_modules/marky/dist/marky.min.js generated vendored Normal file
View File

@@ -0,0 +1 @@
var marky=function(r){"use strict";var e="undefined"!=typeof performance&&performance,n=e&&e.now?function(){return e.now()}:function(){return Date.now()};function t(r){if(!r)throw new Error("name must be non-empty")}if(r.mark=void 0,r.stop=void 0,r.getEntries=void 0,r.clear=void 0,e&&e.mark&&e.measure&&e.getEntriesByName&&e.getEntriesByType&&e.clearMarks&&e.clearMeasures)r.mark=function(r){t(r),e.mark("start "+r)},r.stop=function(r){t(r),e.mark("end "+r);var n=e.measure(r,"start "+r,"end "+r);if(n)return n;var a=e.getEntriesByName(r);return a[a.length-1]},r.getEntries=function(){return e.getEntriesByType("measure")},r.clear=function(){e.clearMarks(),e.clearMeasures()};else{var a={},i=[];r.mark=function(r){t(r);var e=n();a["$"+r]=e},r.stop=function(r){t(r);var e=n(),o=a["$"+r];if(!o)throw new Error("no known mark: "+r);var u={startTime:o,name:r,duration:e-o,entryType:"measure"};return function(r,e){for(var n,t=0,a=r.length;t<a;)r[n=t+a>>>1].startTime<e.startTime?t=n+1:a=n;r.splice(t,0,e)}(i,u),u},r.getEntries=function(){return i},r.clear=function(){a={},i=[]}}return r}({});