/home/techb158/balavpn.abdallabala.com/node_modules/@prisma/fetch-engine/dist
NameSizeModeActions
BinaryType.d.ts1600666editdlrm
BinaryType.js10870666editdlrm
chmodPlusX.d.ts560666editdlrm
chmodPlusX.js10870666editdlrm
chunk-2BCLJS3M.js809920666editdlrm
chunk-4LX3XBNY.js61430666editdlrm
chunk-AH6QHEOA.js34830666editdlrm
chunk-CWGQAQ3T.js20090666editdlrm
chunk-FQ2BOR66.js876780666editdlrm
chunk-KDPLGCY6.js482100666editdlrm
chunk-KJ74H3SQ.js809910666editdlrm
chunk-MX3HXAU2.js18880666editdlrm
chunk-PXQVM7NP.js53160666editdlrm
chunk-QLWYUM7O.js2874140666editdlrm
chunk-QSTZGX47.js31460666editdlrm
chunk-RGVHWUUH.js889560666editdlrm
chunk-VTJS2JJN.js1844310666editdlrm
chunk-X37PZICB.js12190666editdlrm
cleanupCache.d.ts650666editdlrm
cleanupCache.js12770666editdlrm
download.d.ts10830666editdlrm
download.js20270666editdlrm
downloadZip.d.ts2520666editdlrm
downloadZip.js13920666editdlrm
env.d.ts4990666editdlrm
env.js13520666editdlrm
getHash.d.ts680666editdlrm
getHash.js10720666editdlrm
getProxyAgent.d.ts2180666editdlrm
getProxyAgent.js11020666editdlrm
index.d.ts1840666editdlrm
index.js25250666editdlrm
log.d.ts860666editdlrm
log.js10580666editdlrm
multipart-parser-47FFAP42.js110060666editdlrm
utils.d.ts5660666editdlrm
utils.js13200666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js (6143B)
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var chunk_4LX3XBNY_exports = {}; __export(chunk_4LX3XBNY_exports, { getBar: () => getBar }); module.exports = __toCommonJS(chunk_4LX3XBNY_exports); var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); var require_node_progress = (0, import_chunk_AH6QHEOA.__commonJS)({ "../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/lib/node-progress.js"(exports, module2) { "use strict"; exports = module2.exports = ProgressBar; function ProgressBar(fmt, options) { this.stream = options.stream || process.stderr; if (typeof options == "number") { var total = options; options = {}; options.total = total; } else { options = options || {}; if ("string" != typeof fmt) throw new Error("format required"); if ("number" != typeof options.total) throw new Error("total required"); } this.fmt = fmt; this.curr = options.curr || 0; this.total = options.total; this.width = options.width || this.total; this.clear = options.clear; this.chars = { complete: options.complete || "=", incomplete: options.incomplete || "-", head: options.head || (options.complete || "=") }; this.renderThrottle = options.renderThrottle !== 0 ? options.renderThrottle || 16 : 0; this.lastRender = -Infinity; this.callback = options.callback || function() { }; this.tokens = {}; this.lastDraw = ""; } ProgressBar.prototype.tick = function(len, tokens) { if (len !== 0) len = len || 1; if ("object" == typeof len) tokens = len, len = 1; if (tokens) this.tokens = tokens; if (0 == this.curr) this.start = /* @__PURE__ */ new Date(); this.curr += len; this.render(); if (this.curr >= this.total) { this.render(void 0, true); this.complete = true; this.terminate(); this.callback(this); return; } }; ProgressBar.prototype.render = function(tokens, force) { force = force !== void 0 ? force : false; if (tokens) this.tokens = tokens; if (!this.stream.isTTY) return; var now = Date.now(); var delta = now - this.lastRender; if (!force && delta < this.renderThrottle) { return; } else { this.lastRender = now; } var ratio = this.curr / this.total; ratio = Math.min(Math.max(ratio, 0), 1); var percent = Math.floor(ratio * 100); var incomplete, complete, completeLength; var elapsed = /* @__PURE__ */ new Date() - this.start; var eta = percent == 100 ? 0 : elapsed * (this.total / this.curr - 1); var rate = this.curr / (elapsed / 1e3); var str = this.fmt.replace(":current", this.curr).replace(":total", this.total).replace(":elapsed", isNaN(elapsed) ? "0.0" : (elapsed / 1e3).toFixed(1)).replace(":eta", isNaN(eta) || !isFinite(eta) ? "0.0" : (eta / 1e3).toFixed(1)).replace(":percent", percent.toFixed(0) + "%").replace(":rate", Math.round(rate)); var availableSpace = Math.max(0, this.stream.columns - str.replace(":bar", "").length); if (availableSpace && process.platform === "win32") { availableSpace = availableSpace - 1; } var width = Math.min(this.width, availableSpace); completeLength = Math.round(width * ratio); complete = Array(Math.max(0, completeLength + 1)).join(this.chars.complete); incomplete = Array(Math.max(0, width - completeLength + 1)).join(this.chars.incomplete); if (completeLength > 0) complete = complete.slice(0, -1) + this.chars.head; str = str.replace(":bar", complete + incomplete); if (this.tokens) for (var key in this.tokens) str = str.replace(":" + key, this.tokens[key]); if (this.lastDraw !== str) { this.stream.cursorTo(0); this.stream.write(str); this.stream.clearLine(1); this.lastDraw = str; } }; ProgressBar.prototype.update = function(ratio, tokens) { var goal = Math.floor(ratio * this.total); var delta = goal - this.curr; this.tick(delta, tokens); }; ProgressBar.prototype.interrupt = function(message) { this.stream.clearLine(); this.stream.cursorTo(0); this.stream.write(message); this.stream.write("\n"); this.stream.write(this.lastDraw); }; ProgressBar.prototype.terminate = function() { if (this.clear) { if (this.stream.clearLine) { this.stream.clearLine(); this.stream.cursorTo(0); } } else { this.stream.write("\n"); } }; } }); var require_progress = (0, import_chunk_AH6QHEOA.__commonJS)({ "../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/index.js"(exports, module2) { "use strict"; module2.exports = require_node_progress(); } }); var import_progress = (0, import_chunk_AH6QHEOA.__toESM)(require_progress()); function getBar(text) { return new import_progress.default(`> ${text} [:bar] :percent`, { stream: process.stdout, width: 20, complete: "=", incomplete: " ", total: 100, head: "", clear: true }); } /*! Bundled license information: progress/lib/node-progress.js: (*! * node-progress * Copyright(c) 2011 TJ Holowaychuk * MIT Licensed *) */