@fileverse-dev/dsheet 4.0.2-c → 4.0.2-d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { E as a, S as n } from "./crypto-constants-DSOiEk_l.js";
1
+ import { E as a, S as n } from "./crypto-constants-ZTlAYRUf.js";
2
2
  const E = a, d = n, f = [
3
3
  {
4
4
  id: "0",
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as R, c as _, E as C, S as a, p as s } from "./constants-CFEsdk0L.js";
1
+ import { a as R, c as _, E as C, S as a, p as s } from "./constants-CRFfbkoQ.js";
2
2
  export {
3
3
  R as COLLAB_PRESENCE_COLORS,
4
4
  _ as ENS_PRESENCE_COLOR,
@@ -1,18 +1,18 @@
1
- var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyNames, b = Object.getPrototypeOf, x = Object.prototype.hasOwnProperty, d = (n, e) => function() {
2
- return e || (0, n[h(n)[0]])((e = { exports: {} }).exports, e), e.exports;
3
- }, C = (n, e, i, r) => {
1
+ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyNames, b = Object.getPrototypeOf, x = Object.prototype.hasOwnProperty, m = (n, e) => function() {
2
+ return e || (0, n[f(n)[0]])((e = { exports: {} }).exports, e), e.exports;
3
+ }, A = (n, e, i, r) => {
4
4
  if (e && typeof e == "object" || typeof e == "function")
5
- for (let t of h(e))
5
+ for (let t of f(e))
6
6
  !x.call(n, t) && t !== i && u(n, t, { get: () => e[t], enumerable: !(r = y(e, t)) || r.enumerable });
7
7
  return n;
8
- }, A = (n, e, i) => (i = n != null ? g(b(n)) : {}, C(
8
+ }, E = (n, e, i) => (i = n != null ? g(b(n)) : {}, A(
9
9
  // If the importer is in node compatibility mode or this is not an ESM
10
10
  // file that has been converted to a CommonJS file using a Babel-
11
11
  // compatible transform (i.e. "__esModule" has not been set), then set
12
12
  // "default" to the CommonJS "module.exports" for node compatibility.
13
13
  u(i, "default", { value: n, enumerable: !0 }),
14
14
  n
15
- )), O = d({
15
+ )), C = m({
16
16
  "node_modules/jwt-decode/lib/atob.js"(n, e) {
17
17
  var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
18
18
  function r(a) {
@@ -24,22 +24,22 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
24
24
  if (o.length % 4 == 1)
25
25
  throw new r("'atob' failed: The string to be decoded is not correctly encoded.");
26
26
  for (
27
- var s = 0, p, m, f = 0, c = "";
27
+ var s = 0, p, d, h = 0, c = "";
28
28
  // get next character
29
- m = o.charAt(f++);
29
+ d = o.charAt(h++);
30
30
  // character found in table? initialize bit storage and add its ascii value;
31
- ~m && (p = s % 4 ? p * 64 + m : m, // and if not first of each 4 characters,
31
+ ~d && (p = s % 4 ? p * 64 + d : d, // and if not first of each 4 characters,
32
32
  // convert the first 8 bits to one ascii character
33
33
  s++ % 4) ? c += String.fromCharCode(255 & p >> (-2 * s & 6)) : 0
34
34
  )
35
- m = i.indexOf(m);
35
+ d = i.indexOf(d);
36
36
  return c;
37
37
  }
38
38
  e.exports = typeof window < "u" && window.atob && window.atob.bind(window) || t;
39
39
  }
40
- }), v = d({
40
+ }), v = m({
41
41
  "node_modules/jwt-decode/lib/base64_url_decode.js"(n, e) {
42
- var i = O();
42
+ var i = C();
43
43
  function r(t) {
44
44
  return decodeURIComponent(i(t).replace(/(.)/g, function(a, o) {
45
45
  var s = o.charCodeAt(0).toString(16).toUpperCase();
@@ -67,7 +67,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
67
67
  }
68
68
  };
69
69
  }
70
- }), E = d({
70
+ }), O = m({
71
71
  "node_modules/jwt-decode/lib/index.js"(n, e) {
72
72
  var i = v();
73
73
  function r(t) {
@@ -85,9 +85,9 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
85
85
  }
86
86
  }, e.exports.InvalidTokenError = r;
87
87
  }
88
- }), k = d({
88
+ }), S = m({
89
89
  "node_modules/jwt-check-expiration/src/index.js"(n, e) {
90
- var i = E(), r = (t) => {
90
+ var i = O(), r = (t) => {
91
91
  if (typeof t != "string" || !t) throw new Error("Invalid token provided");
92
92
  let a = !1;
93
93
  const { exp: o } = i(t);
@@ -95,7 +95,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
95
95
  };
96
96
  e.exports.isJwtExpired = r;
97
97
  }
98
- }), W = {
98
+ }), M = {
99
99
  INVALID_API_KEY: "INVALID_API_KEY",
100
100
  RATE_LIMIT: "RATE_LIMIT",
101
101
  DEFAULT: "DEFAULT",
@@ -114,7 +114,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
114
114
  Neynar: "Neynar",
115
115
  Defillama: "Defillama",
116
116
  DuneSim: "DuneSim"
117
- }, S = {
117
+ }, k = {
118
118
  API_KEY: l.Etherscan,
119
119
  LOGO: "https://raw.githubusercontent.com/ethereum/ethereum-org/master/dist/favicon.ico",
120
120
  BRAND_COLOR: "#F6F7F8",
@@ -473,7 +473,7 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
473
473
  argumentString: '"gas"',
474
474
  description: "returns current gas price metrics for the Gnosis Chain."
475
475
  }]
476
- }, L = {
476
+ }, T = {
477
477
  API_KEY: l.Etherscan,
478
478
  LOGO: "https://etherscan.io/images/favicon3.ico",
479
479
  BRAND_COLOR: "#F6F7F8",
@@ -538,7 +538,7 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
538
538
  description: "returns the token transaction history for the address vitalik.eth on the Gnosis blockchain between January 1, 2024 and January 5, 2024."
539
539
  }
540
540
  ]
541
- }, T = {
541
+ }, L = {
542
542
  n: "PNL",
543
543
  t: 20,
544
544
  d: "Subtract each element from A column from B column and return the total sum.",
@@ -570,9 +570,9 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
570
570
  argumentString: '"{100, 200, 150}", "{250, 300, 200}"',
571
571
  description: "returns the total profit or loss by subtracting the costs {100, 200, 150} from the revenues {250, 300, 200}."
572
572
  }]
573
- }, w = {
573
+ }, I = {
574
574
  API_KEY: l.Safe,
575
- LOGO: "https://safe-transaction-mainnet.safe.global/static/safe/favicon.png",
575
+ LOGO: "https://safe.global/favicon.ico",
576
576
  BRAND_COLOR: "#ebf9f3",
577
577
  BRAND_SECONDARY_COLOR: "#00B460",
578
578
  n: "SAFE",
@@ -613,16 +613,19 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
613
613
  repeat: "n"
614
614
  }
615
615
  ],
616
- examples: [{
617
- title: "SAFE",
618
- argumentString: '"0xe9A6378d8FD4983C2999DB0735f258397E8C2253", "txns", "gnosis", 10, 0',
619
- description: "returns the last 10 transactions for the specified Safe address on the Gnosis chain."
620
- }, {
621
- title: "SAFE",
622
- argumentString: '"0x1234567890abcdef1234567890abcdef12345678", "txns", "ethereum"',
623
- description: "returns the last 100 transactions for the specified Safe address on the Ethereum chain."
624
- }]
625
- }, I = {
616
+ examples: [
617
+ {
618
+ title: "SAFE",
619
+ argumentString: '"0xe9A6378d8FD4983C2999DB0735f258397E8C2253", "txns", "gnosis", 10, 0',
620
+ description: "returns the last 10 transactions for the specified Safe address on the Gnosis chain."
621
+ },
622
+ {
623
+ title: "SAFE",
624
+ argumentString: '"0x1234567890abcdef1234567890abcdef12345678", "txns", "ethereum"',
625
+ description: "returns the last 100 transactions for the specified Safe address on the Ethereum chain."
626
+ }
627
+ ]
628
+ }, w = {
626
629
  LOGO: "https://cdn.prod.website-files.com/65f94dfd53db8b337c808067/68485baa72714ae58f350ce2_bs-logo.png",
627
630
  BRAND_COLOR: "#f8f8fd",
628
631
  BRAND_SECONDARY_COLOR: "#5353D3",
@@ -866,7 +869,7 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
866
869
  argumentString: '"proposals", "aave"',
867
870
  description: "returns proposals for the Aave organization from Tally."
868
871
  }]
869
- }, Y = {
872
+ }, U = {
870
873
  API_KEY: l.DuneSim,
871
874
  LOGO: "https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://docs.sim.dune.com&size=32",
872
875
  BRAND_COLOR: "#fef7f5",
@@ -924,7 +927,7 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
924
927
  description: "returns the latest 10 wallet activities for the address vitalik.eth on the Ethereum chain."
925
928
  }
926
929
  ]
927
- }, U = {
930
+ }, Y = {
928
931
  n: "PRICE",
929
932
  t: 20,
930
933
  d: "Query prices of crypto assets",
@@ -1011,7 +1014,7 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
1011
1014
  description: "returns the latest balance for the address vitalik.eth on the Base chain."
1012
1015
  }
1013
1016
  ]
1014
- }, Q = {
1017
+ }, W = {
1015
1018
  n: "YIELD",
1016
1019
  t: 20,
1017
1020
  d: "Query yields",
@@ -1041,7 +1044,7 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
1041
1044
  argumentString: '"all"',
1042
1045
  description: "returns yield data for all categories."
1043
1046
  }]
1044
- }, M = {
1047
+ }, Q = {
1045
1048
  LOGO: "https://avatars.githubusercontent.com/u/159135534?s=200&v=4",
1046
1049
  n: "CIRCLES",
1047
1050
  t: 20,
@@ -1084,79 +1087,79 @@ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d",
1084
1087
  argumentString: '"transactions", "0xe9A6378d8FD4983C2999DB0735f258397E8C2253", 5',
1085
1088
  description: "returns the last 5 transactions for the specified Circles address."
1086
1089
  }]
1087
- }, j = [
1088
- S,
1090
+ }, V = [
1091
+ k,
1089
1092
  D,
1090
1093
  R,
1091
1094
  _,
1092
1095
  q,
1093
1096
  N,
1094
- L,
1095
1097
  T,
1096
- w,
1098
+ L,
1097
1099
  I,
1100
+ w,
1098
1101
  B,
1099
1102
  F,
1100
1103
  P,
1101
1104
  G,
1102
- Y,
1103
1105
  U,
1106
+ Y,
1104
1107
  K,
1105
- Q,
1106
- M,
1108
+ W,
1109
+ Q
1107
1110
  // GNOSISPAY_metadata,
1108
- {
1109
- LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/ploymarket.png",
1110
- n: "POLYMARKET",
1111
+ /*{
1112
+ LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/ploymarket.png',
1113
+ n: 'POLYMARKET',
1111
1114
  t: 20,
1112
- d: "Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)",
1113
- a: "Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)",
1115
+ d: 'Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)',
1116
+ a: 'Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)',
1114
1117
  p: []
1115
1118
  },
1116
1119
  {
1117
- LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/privacy.png",
1118
- n: "PRIVACYPOOL",
1120
+ LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/privacy.png',
1121
+ n: 'PRIVACYPOOL',
1119
1122
  t: 20,
1120
- d: "Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)",
1121
- a: "Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)",
1123
+ d: 'Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)',
1124
+ a: 'Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)',
1122
1125
  p: []
1123
1126
  },
1124
1127
  {
1125
- LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/rotki.png",
1126
- n: "ROTKI",
1128
+ LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/rotki.png',
1129
+ n: 'ROTKI',
1127
1130
  t: 20,
1128
- d: "Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)",
1129
- a: "Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)",
1131
+ d: 'Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)',
1132
+ a: 'Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)',
1130
1133
  p: []
1131
1134
  },
1132
1135
  {
1133
- LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/meerkat.png",
1134
- n: "MEERKAT",
1136
+ LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/meerkat.png',
1137
+ n: 'MEERKAT',
1135
1138
  t: 20,
1136
- d: "Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)",
1137
- a: "Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)",
1139
+ d: 'Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)',
1140
+ a: 'Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)',
1138
1141
  p: []
1139
1142
  },
1140
1143
  {
1141
- LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/artemis.png",
1142
- n: "ARTEMIS",
1144
+ LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/artemis.png',
1145
+ n: 'ARTEMIS',
1143
1146
  t: 20,
1144
- d: "Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)",
1145
- a: "Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)",
1147
+ d: 'Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)',
1148
+ a: 'Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)',
1146
1149
  p: []
1147
1150
  },
1148
1151
  {
1149
- LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/MYANIMELIST.png",
1150
- n: "MYANIMELIST",
1152
+ LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/MYANIMELIST.png',
1153
+ n: 'MYANIMELIST',
1151
1154
  t: 20,
1152
- d: "Kawaiii, comming soon. Hello Keith! (Comming soon)",
1153
- a: "Kawaiii, comming soon. Hello Keith! (Comming soon)",
1155
+ d: 'Kawaiii, comming soon. Hello Keith! (Comming soon)',
1156
+ a: 'Kawaiii, comming soon. Hello Keith! (Comming soon)',
1154
1157
  p: []
1155
- }
1158
+ }*/
1156
1159
  ];
1157
- A(k());
1160
+ E(S());
1158
1161
  export {
1159
- W as E,
1160
- j as F,
1162
+ M as E,
1163
+ V as F,
1161
1164
  l as S
1162
1165
  };
@@ -4,7 +4,7 @@ var Xe = (e, t, n) => rc(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import h, { isPlainObject as Hi } from "lodash";
5
5
  import Ce from "dayjs";
6
6
  import * as Jr from "@fileverse-dev/formulajs";
7
- import { F as ac } from "./crypto-constants-DSOiEk_l.js";
7
+ import { F as ac } from "./crypto-constants-ZTlAYRUf.js";
8
8
  var oc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function As(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
package/dist/formula.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FLVURL as r } from "@fileverse-dev/formulajs";
2
- import { e as t, f } from "./executeStringFunction-BgeO46PB.js";
2
+ import { e as t, f } from "./executeStringFunction-CsLQk-dm.js";
3
3
  export {
4
4
  r as FLVURL,
5
5
  t as executeStringFunction,