/home/techb158/balavpn.abdallabala.com/.next/standalone/node_modules/next/dist/lib
NameSizeModeActions
framework/-0777rm
fs/-0777rm
helpers/-0777rm
metadata/-0777rm
typescript/-0777rm
batcher.js21660666editdlrm
build-custom-route.js11830666editdlrm
client-and-server-references.js12930666editdlrm
coalesced-function.js10880666editdlrm
compile-error.js2920666editdlrm
constants.js147100666editdlrm
create-client-router-filter.js24870666editdlrm
default-transpiled-packages.json100666editdlrm
detached-promise.js8910666editdlrm
detect-typo.js15210666editdlrm
download-swc.js72130666editdlrm
error-telemetry-utils.js14450666editdlrm
fallback.js33190666editdlrm
fatal-error.js2840666editdlrm
file-exists.js14230666editdlrm
find-config.js34640666editdlrm
find-pages-dir.js15600666editdlrm
find-root.js45970666editdlrm
format-dynamic-import-path.js7840666editdlrm
format-server-error.js26880666editdlrm
generate-interception-routes-rewrites.js32870666editdlrm
get-network-host.js14230666editdlrm
get-project-dir.js19040666editdlrm
has-necessary-dependencies.js16380666editdlrm
install-dependencies.js13560666editdlrm
interop-default.js3250666editdlrm
is-api-route.js3730666editdlrm
is-app-page-route.js3340666editdlrm
is-app-route-route.js3390666editdlrm
is-edge-runtime.js4450666editdlrm
is-error.js23890666editdlrm
is-internal-component.js8810666editdlrm
is-serializable-props.js46940666editdlrm
known-edge-safe-packages.json180666editdlrm
load-custom-routes.js228710666editdlrm
multi-file-writer.js25730666editdlrm
needs-experimental-react.js4840666editdlrm
non-nullable.js3340666editdlrm
normalize-path.js5490666editdlrm
oxford-comma-list.js4510666editdlrm
page-types.js4310666editdlrm
patch-incorrect-lockfile.js70360666editdlrm
pick.js3680666editdlrm
picocolors.js53750666editdlrm
pretty-bytes.js30560666editdlrm
realpath.js5720666editdlrm
recursive-delete.js26420666editdlrm
recursive-readdir.js54640666editdlrm
redirect-status.js12850666editdlrm
resolve-from.js21440666editdlrm
route-pattern-normalizer.js45020666editdlrm
scheduler.js18630666editdlrm
semver-noop.js4710666editdlrm
server-external-packages.json12810666editdlrm
static-env.js26660666editdlrm
try-to-parse-path.js25420666editdlrm
turbopack-warning.js87770666editdlrm
url.js19820666editdlrm
verify-partytown-setup.js49180666editdlrm
verify-typescript-setup.js77500666editdlrm
wait.js4380666editdlrm
with-promise-cache.js5940666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/.next/standalone/node_modules/next/dist/lib/pretty-bytes.js (3056B)
/* MIT License Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return prettyBytes; } }); const UNITS = [ 'B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' ]; /* Formats the given number using `Number#toLocaleString`. - If locale is a string, the value is expected to be a locale-key (for example: `de`). - If locale is true, the system default locale is used for translation. - If no value for locale is specified, the number is returned unmodified. */ const toLocaleString = (number, locale)=>{ let result = number; if (typeof locale === 'string') { result = number.toLocaleString(locale); } else if (locale === true) { result = number.toLocaleString(); } return result; }; function prettyBytes(number, options) { if (!Number.isFinite(number)) { throw Object.defineProperty(new TypeError(`Expected a finite number, got ${typeof number}: ${number}`), "__NEXT_ERROR_CODE", { value: "E572", enumerable: false, configurable: true }); } options = Object.assign({}, options); if (options.signed && number === 0) { return ' 0 B'; } const isNegative = number < 0; const prefix = isNegative ? '-' : options.signed ? '+' : ''; if (isNegative) { number = -number; } if (number < 1) { const numberString = toLocaleString(number, options.locale); return prefix + numberString + ' B'; } const exponent = Math.min(Math.floor(Math.log10(number) / 3), UNITS.length - 1); number = Number((number / Math.pow(1000, exponent)).toPrecision(3)); const numberString = toLocaleString(number, options.locale); const unit = UNITS[exponent]; return prefix + numberString + ' ' + unit; } //# sourceMappingURL=pretty-bytes.js.map