chunk-WR32EHFC.js 781 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // node_modules/@arcgis/core/core/byteSizeEstimations.js
  2. function n(n2) {
  3. return 32 + n2.length;
  4. }
  5. function t() {
  6. return 16;
  7. }
  8. function r(r2) {
  9. if (!r2)
  10. return 0;
  11. let e2 = 32;
  12. for (const o2 in r2)
  13. if (r2.hasOwnProperty(o2)) {
  14. const c = r2[o2];
  15. switch (typeof c) {
  16. case "string":
  17. e2 += n(c);
  18. break;
  19. case "number":
  20. e2 += t();
  21. break;
  22. case "boolean":
  23. e2 += 4;
  24. }
  25. }
  26. return e2;
  27. }
  28. function e(n2, t2) {
  29. return 32 + n2.length * t2;
  30. }
  31. var o;
  32. !function(n2) {
  33. n2[n2.KILOBYTES = 1024] = "KILOBYTES", n2[n2.MEGABYTES = 1048576] = "MEGABYTES", n2[n2.GIGABYTES = 1073741824] = "GIGABYTES";
  34. }(o || (o = {}));
  35. export {
  36. r,
  37. e,
  38. o
  39. };
  40. //# sourceMappingURL=chunk-WR32EHFC.js.map