@qaecy/cue-sdk 0.0.11 → 0.0.13
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.
- package/{cue-BY7UdQjW.js → cue-wp0EyOko.js} +52 -52
- package/index.js +1 -1
- package/node.js +2 -2
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getApps as Lt, initializeApp as
|
|
2
|
-
import { ref as w, getDownloadURL as k, getMetadata as M, getBlob as
|
|
1
|
+
import { getApps as Lt, initializeApp as jt } from "firebase/app";
|
|
2
|
+
import { ref as w, getDownloadURL as k, getMetadata as M, getBlob as xt, updateMetadata as qt, uploadBytesResumable as et, uploadBytes as z, StringFormat as Nt, uploadString as kt, listAll as $, getStorage as P, connectStorageEmulator as Bt } from "firebase/storage";
|
|
3
3
|
import { Writer as Ft, DataFactory as U } from "n3";
|
|
4
4
|
import { getFirestore as Ht, connectFirestoreEmulator as zt, collection as st, getDocs as Gt, query as Wt, where as Kt, limit as Qt, doc as it, getDoc as Vt, setDoc as Xt, serverTimestamp as Yt, increment as Jt } from "firebase/firestore";
|
|
5
5
|
import { getAuth as Zt, connectAuthEmulator as te, onIdTokenChanged as ee, getIdTokenResult as G, signInWithEmailAndPassword as se, GoogleAuthProvider as W, OAuthProvider as K, signInWithPopup as ie, signInWithRedirect as ne, getRedirectResult as ae, signInWithCustomToken as oe, signOut as re, onAuthStateChanged as ce, fetchSignInMethodsForEmail as le, linkWithPopup as ue, unlink as pe, reauthenticateWithCredential as nt, EmailAuthProvider as B, updatePassword as he, linkWithCredential as de, verifyBeforeUpdateEmail as fe, sendEmailVerification as me } from "firebase/auth";
|
|
6
6
|
import { v5 as ye } from "uuid";
|
|
7
7
|
import "spark-md5";
|
|
8
|
-
import { getFunctions as
|
|
8
|
+
import { getFunctions as vt, connectFunctionsEmulator as bt, httpsCallable as j } from "firebase/functions";
|
|
9
9
|
class V {
|
|
10
10
|
queryEndpoint;
|
|
11
11
|
updateEndpoint;
|
|
@@ -86,7 +86,7 @@ class F extends Error {
|
|
|
86
86
|
super(`QLever is locked (rebuild in progress): ${t}`), this.name = "QLeverLockedError";
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
class
|
|
89
|
+
class x {
|
|
90
90
|
queryEndpoint;
|
|
91
91
|
updateEndpoint;
|
|
92
92
|
dataEndpoint;
|
|
@@ -113,7 +113,7 @@ class P {
|
|
|
113
113
|
* 423 means qlever accessor has an ongoing rebuild; we should wait and retry.
|
|
114
114
|
*/
|
|
115
115
|
static async _retryOnLocked(t) {
|
|
116
|
-
const e =
|
|
116
|
+
const e = x.LOCKED_MAX_RETRIES, s = x.LOCKED_BASE_DELAY_MS;
|
|
117
117
|
let i;
|
|
118
118
|
for (let n = 0; n <= e; n++)
|
|
119
119
|
try {
|
|
@@ -131,7 +131,7 @@ class P {
|
|
|
131
131
|
constructor(t) {
|
|
132
132
|
this.queryEndpoint = t.queryEndpoint, this.updateEndpoint = t.updateEndpoint, this.dataEndpoint = this.updateEndpoint.replace(/\/update$/, "/data"), this.baseHeaders = Object.fromEntries(
|
|
133
133
|
Object.entries(t.originalHeaders || {}).filter(
|
|
134
|
-
([e]) =>
|
|
134
|
+
([e]) => x.RELEVANT_HEADER_KEYS.includes(e)
|
|
135
135
|
)
|
|
136
136
|
), this.baseHeaders["x-user-roles"] = "admin";
|
|
137
137
|
}
|
|
@@ -173,7 +173,7 @@ class P {
|
|
|
173
173
|
})).text();
|
|
174
174
|
}
|
|
175
175
|
async update(t) {
|
|
176
|
-
return
|
|
176
|
+
return x._retryOnLocked(async () => {
|
|
177
177
|
const e = await fetch(this.updateEndpoint, {
|
|
178
178
|
headers: {
|
|
179
179
|
...this.baseHeaders,
|
|
@@ -205,7 +205,7 @@ class P {
|
|
|
205
205
|
}
|
|
206
206
|
async _postToDataEndpoint(t, e) {
|
|
207
207
|
const s = await this._quadsToNQuads(t), i = await ge(Buffer.from(s, "utf-8"));
|
|
208
|
-
await
|
|
208
|
+
await x._retryOnLocked(async () => {
|
|
209
209
|
const n = await fetch(e, {
|
|
210
210
|
method: "POST",
|
|
211
211
|
headers: {
|
|
@@ -247,7 +247,7 @@ class _e {
|
|
|
247
247
|
constructor(t) {
|
|
248
248
|
switch (this.options = t, this.options.graphType) {
|
|
249
249
|
case "qlever":
|
|
250
|
-
this._db = new
|
|
250
|
+
this._db = new x(this.options);
|
|
251
251
|
break;
|
|
252
252
|
case "fuseki":
|
|
253
253
|
this._db = new V(this.options);
|
|
@@ -356,7 +356,7 @@ class Ee {
|
|
|
356
356
|
async getFile(t, e) {
|
|
357
357
|
const s = w(this._bucket(t), e);
|
|
358
358
|
try {
|
|
359
|
-
return await
|
|
359
|
+
return await xt(s);
|
|
360
360
|
} catch (i) {
|
|
361
361
|
if (i?.code === "storage/object-not-found") return;
|
|
362
362
|
throw i;
|
|
@@ -446,7 +446,7 @@ class Ee {
|
|
|
446
446
|
await z(n, s, i ? { customMetadata: i } : void 0);
|
|
447
447
|
}
|
|
448
448
|
/** Upload a string or base64-encoded value. */
|
|
449
|
-
async uploadString(t, e, s, i =
|
|
449
|
+
async uploadString(t, e, s, i = Nt.RAW, n) {
|
|
450
450
|
const a = w(this._bucket(t), e);
|
|
451
451
|
await kt(a, s, i, n ? { customMetadata: n } : void 0);
|
|
452
452
|
}
|
|
@@ -574,7 +574,7 @@ const at = {
|
|
|
574
574
|
þ: "th",
|
|
575
575
|
Þ: "Th"
|
|
576
576
|
};
|
|
577
|
-
function
|
|
577
|
+
function b(l, t = !1) {
|
|
578
578
|
const e = "daca0510-72b5-48ba-9091-b918ca18136b";
|
|
579
579
|
return l = we(l, t), ye(l, e);
|
|
580
580
|
}
|
|
@@ -585,7 +585,7 @@ function we(l, t = !1) {
|
|
|
585
585
|
return t && e !== l && console.info(`${l} -> ${e}`), e;
|
|
586
586
|
}
|
|
587
587
|
function Ie(l, t = "") {
|
|
588
|
-
return
|
|
588
|
+
return b(`${t}${l}`);
|
|
589
589
|
}
|
|
590
590
|
class I {
|
|
591
591
|
_value;
|
|
@@ -631,14 +631,14 @@ function X(l, t) {
|
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
633
|
async function Y(l, t, e, s) {
|
|
634
|
-
const i =
|
|
634
|
+
const i = b(l);
|
|
635
635
|
let n;
|
|
636
636
|
if (s) {
|
|
637
637
|
const c = await s.get(i);
|
|
638
|
-
c !== void 0 && (e(c, !0), n =
|
|
638
|
+
c !== void 0 && (e(c, !0), n = b(JSON.stringify(c)));
|
|
639
639
|
}
|
|
640
640
|
const a = await t();
|
|
641
|
-
return e(a, !1), s &&
|
|
641
|
+
return e(a, !1), s && b(JSON.stringify(a)) !== n && s.set(i, a).catch(
|
|
642
642
|
(r) => console.error("[staleWhileRevalidate] Cache write failed:", r)
|
|
643
643
|
), a;
|
|
644
644
|
}
|
|
@@ -646,7 +646,7 @@ const H = {
|
|
|
646
646
|
apiKey: "AIzaSyAiW42QBx9HS4Khu88pCW7MV66IhBAQul0",
|
|
647
647
|
appId: "1:151132927589:web:d2ffdb377dfadfd23ab88c",
|
|
648
648
|
measurementId: "G-YT4PK6HGZD"
|
|
649
|
-
}, ot = "qaecy-mvp-406413", Ce = "734737865998", Dt = "europe-west6", rt = "projects", Te = "spaces_chats_eu_west6", Ae = "spaces_raw_eu_west6", Se = "spaces_processed_eu_west6", Re = "spaces_logs_eu_west6",
|
|
649
|
+
}, ot = "qaecy-mvp-406413", Ce = "734737865998", Dt = "europe-west6", rt = "projects", Te = "spaces_chats_eu_west6", Ae = "spaces_raw_eu_west6", Se = "spaces_processed_eu_west6", Re = "spaces_logs_eu_west6", Pe = "cue_public_eu_west6", ct = "db_persistence_eu_west6", xe = "/data-views/admin/consumption", ve = "/data-views/admin/profile/organizations", lt = "/data-views/admin/profile/api-keys", ut = "/commands/admin/profile/api-keys", be = "/commands/admin/profile/terms", De = (l) => `/data-views/admin/organizations/${l}/members`, Ue = "/commands/admin/project", Oe = "/assistant/search", Ut = "/triplestore/query", Me = "/triplestore/update", Ot = "/qlever-server/qlever/query", $e = "/qlever-server/qlever/update", pt = "/commands/file-system-structure/batch", ht = "microsoft.com", dt = "superadmin", J = "https://cue.qaecy.com/r/";
|
|
650
650
|
class ft {
|
|
651
651
|
_auth;
|
|
652
652
|
_endpoints;
|
|
@@ -850,9 +850,9 @@ class mt {
|
|
|
850
850
|
* The user must be authenticated before calling this.
|
|
851
851
|
*/
|
|
852
852
|
async sparql(t, e, s) {
|
|
853
|
-
|
|
854
|
-
const i = s === "
|
|
855
|
-
console.log(`Executing SPARQL query against ${i} for project ${e} with graph type ${s
|
|
853
|
+
s || (s = (await this.projects.getProject(e))?.projectSettings?.graph?.type ?? "qlever");
|
|
854
|
+
const i = s === "fuseki" ? Ut : Ot;
|
|
855
|
+
console.log(`Executing SPARQL query against ${i} for project ${e} with graph type ${s}`);
|
|
856
856
|
const n = new URLSearchParams();
|
|
857
857
|
n.append("query", t);
|
|
858
858
|
const a = await this._auth.authenticatedFetch(
|
|
@@ -876,7 +876,7 @@ class mt {
|
|
|
876
876
|
}
|
|
877
877
|
async getConsumption(t) {
|
|
878
878
|
const e = await this._auth.authenticatedFetch(
|
|
879
|
-
`${this._gatewayUrl}${
|
|
879
|
+
`${this._gatewayUrl}${xe}`,
|
|
880
880
|
{
|
|
881
881
|
headers: {
|
|
882
882
|
"Content-Type": "application/json",
|
|
@@ -894,9 +894,9 @@ class mt {
|
|
|
894
894
|
}
|
|
895
895
|
class yt {
|
|
896
896
|
constructor(t, e, s = !1, i) {
|
|
897
|
-
if (this._auth = t, this._db = Ht(e), this._functions =
|
|
897
|
+
if (this._auth = t, this._db = Ht(e), this._functions = vt(e, Dt), this._gatewayUrl = i?.gatewayUrl ?? "", s) {
|
|
898
898
|
const n = i?.firestoreEmulatorHost ?? "localhost", a = i?.firestoreEmulatorPort ?? 8080;
|
|
899
|
-
zt(this._db, n, a),
|
|
899
|
+
zt(this._db, n, a), bt(this._functions, "localhost", 5001);
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
_auth;
|
|
@@ -954,20 +954,20 @@ class yt {
|
|
|
954
954
|
* Invite a user to a project by email. Returns the invited user's uid and display name.
|
|
955
955
|
*/
|
|
956
956
|
async inviteUserToProject(t, e, s) {
|
|
957
|
-
return (await
|
|
957
|
+
return (await j(this._functions, "inviteUserToProject")({ email: t, spaceId: e, role: s })).data;
|
|
958
958
|
}
|
|
959
959
|
/** Change an existing member's role on a project. */
|
|
960
960
|
async changeUserRoleOnProject(t, e, s) {
|
|
961
|
-
await
|
|
961
|
+
await j(this._functions, "changeUserRoleOnProject")({ uid: t, spaceId: e, role: s });
|
|
962
962
|
}
|
|
963
963
|
/** Remove a member from a project. */
|
|
964
964
|
async removeUserFromProject(t, e) {
|
|
965
|
-
await
|
|
965
|
+
await j(this._functions, "removeUserFromProject")({ uid: t, spaceId: e });
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
class gt {
|
|
969
969
|
constructor(t, e, s, i) {
|
|
970
|
-
this._auth = t, this._gatewayUrl = i, this._functions =
|
|
970
|
+
this._auth = t, this._gatewayUrl = i, this._functions = vt(e, Dt), s && bt(this._functions, "localhost", 5001);
|
|
971
971
|
}
|
|
972
972
|
_auth;
|
|
973
973
|
_gatewayUrl;
|
|
@@ -1061,7 +1061,7 @@ class gt {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
/** Returns organizations the current user is a member of. */
|
|
1063
1063
|
async listOrganizations() {
|
|
1064
|
-
return this._fetch(
|
|
1064
|
+
return this._fetch(ve);
|
|
1065
1065
|
}
|
|
1066
1066
|
/** Returns all members of the given organisation. Caller must be an org admin or superadmin. */
|
|
1067
1067
|
async getOrgMembers(t) {
|
|
@@ -1077,11 +1077,11 @@ class gt {
|
|
|
1077
1077
|
* Uses the `getUserInfo` Firebase callable function.
|
|
1078
1078
|
*/
|
|
1079
1079
|
async getUserInfo(t) {
|
|
1080
|
-
return (await
|
|
1080
|
+
return (await j(this._functions, "getUserInfo")({ uids: t })).data;
|
|
1081
1081
|
}
|
|
1082
1082
|
/** Record that the current user has accepted the terms of service. Sets a `terms` custom claim on the token. */
|
|
1083
1083
|
async acceptTerms(t) {
|
|
1084
|
-
await this._fetch(
|
|
1084
|
+
await this._fetch(be, {
|
|
1085
1085
|
method: "POST",
|
|
1086
1086
|
headers: { "Content-Type": "application/json" },
|
|
1087
1087
|
body: JSON.stringify({ version: t })
|
|
@@ -1202,7 +1202,7 @@ class It {
|
|
|
1202
1202
|
// ── Internal helpers ───────────────────────────────────────────────────────
|
|
1203
1203
|
async _get(t, e) {
|
|
1204
1204
|
try {
|
|
1205
|
-
const i = await (await
|
|
1205
|
+
const i = await (await xt(w(this._storage, `${t}/${e}.json.gz`))).arrayBuffer(), n = new DecompressionStream("gzip"), a = n.writable.getWriter(), c = n.readable.getReader();
|
|
1206
1206
|
a.write(new Uint8Array(i)), a.close();
|
|
1207
1207
|
const r = [];
|
|
1208
1208
|
let u = await c.read();
|
|
@@ -1214,7 +1214,7 @@ class It {
|
|
|
1214
1214
|
m.set(g, h), h += g.length;
|
|
1215
1215
|
return JSON.parse(new TextDecoder().decode(m));
|
|
1216
1216
|
} catch (s) {
|
|
1217
|
-
if (
|
|
1217
|
+
if (je(s)) return;
|
|
1218
1218
|
throw s;
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
@@ -1236,7 +1236,7 @@ class It {
|
|
|
1236
1236
|
);
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function je(l) {
|
|
1240
1240
|
return typeof l == "object" && l !== null && "code" in l && l.code === "storage/object-not-found";
|
|
1241
1241
|
}
|
|
1242
1242
|
const S = {
|
|
@@ -1370,7 +1370,7 @@ GROUP BY ?iri ?parent`;
|
|
|
1370
1370
|
});
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
|
-
const
|
|
1373
|
+
const Ne = "https://qlever.dev/api/osm-planet";
|
|
1374
1374
|
class ke {
|
|
1375
1375
|
constructor(t, e, s = J, i, n) {
|
|
1376
1376
|
this._api = t, this._projectId = e, this._queryCache = i, this._graphType = n, this.baseURL = `${s}${e}/`, this.entityInfoMap = this._entityInfoMapComputed, this.entityGraph = this._entityGraph.asReadonly(), this._entityOSMMap.subscribe(() => this._checkPendingOSMFetches()), this._fetchEntityGraph().catch(
|
|
@@ -1695,7 +1695,7 @@ GROUP BY ?e1Cat ?e2Cat`;
|
|
|
1695
1695
|
const s = e.map((c) => `<${c}>`).join(" "), i = `PREFIX geo: <${Q.geo}>
|
|
1696
1696
|
SELECT * WHERE {
|
|
1697
1697
|
VALUES ?s { ${s} }
|
|
1698
|
-
SERVICE <${
|
|
1698
|
+
SERVICE <${Ne}> {
|
|
1699
1699
|
?s geo:hasGeometry/geo:asWKT ?wkt
|
|
1700
1700
|
}
|
|
1701
1701
|
}`, n = await this._api.sparql(i, this._projectId, this._graphType), a = { ...this._osmWKTMap.get() };
|
|
@@ -2935,7 +2935,7 @@ Ke("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
|
|
|
2935
2935
|
const { namedNode: Qe, literal: ps } = U;
|
|
2936
2936
|
Qe("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
|
|
2937
2937
|
function Tt(l, t, e, s, i, n, a, c = !1, r = !1) {
|
|
2938
|
-
const u = We(l), p =
|
|
2938
|
+
const u = We(l), p = b(s), m = `${t}/${p}${u}`;
|
|
2939
2939
|
a === void 0 && (a = He[u]?.mime ?? "application/octet-stream");
|
|
2940
2940
|
const h = Ie(l, i);
|
|
2941
2941
|
return {
|
|
@@ -2971,20 +2971,20 @@ async function At(l) {
|
|
|
2971
2971
|
const { readFile: t } = await O();
|
|
2972
2972
|
return t(l);
|
|
2973
2973
|
}
|
|
2974
|
-
let D = null, q = null,
|
|
2974
|
+
let D = null, q = null, N = null;
|
|
2975
2975
|
function hs(l) {
|
|
2976
|
-
|
|
2976
|
+
N = l, q = null, D = null;
|
|
2977
2977
|
}
|
|
2978
2978
|
async function Ve() {
|
|
2979
2979
|
if (typeof window < "u") {
|
|
2980
|
-
if (!
|
|
2980
|
+
if (!N)
|
|
2981
2981
|
throw new Error(
|
|
2982
2982
|
"WASM scanner is not configured for browser use. Call configureScanWasm(baseUrl) during app initialisation."
|
|
2983
2983
|
);
|
|
2984
|
-
const l = await fetch(`${
|
|
2984
|
+
const l = await fetch(`${N}/dir_scanner_wasm_bg.wasm`);
|
|
2985
2985
|
if (!l.ok)
|
|
2986
2986
|
throw new Error(`Failed to fetch WASM binary: ${l.status} ${l.statusText}`);
|
|
2987
|
-
const t = new Uint8Array(await l.arrayBuffer()), s = await import(`${
|
|
2987
|
+
const t = new Uint8Array(await l.arrayBuffer()), s = await import(`${N}/dir_scanner_wasm.mjs`);
|
|
2988
2988
|
await s.default({ module_or_path: t }), D = s.scan;
|
|
2989
2989
|
} else {
|
|
2990
2990
|
const { readFile: l } = await O(), { join: t } = await import(
|
|
@@ -2997,7 +2997,7 @@ async function Ve() {
|
|
|
2997
2997
|
await a.default({ module_or_path: i }), D = a.scan;
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
|
-
const Xe = "
|
|
3000
|
+
const Xe = "qlever", L = 1e3, Z = "cue:pending:";
|
|
3001
3001
|
async function tt(l) {
|
|
3002
3002
|
const { tmpdir: t } = await import(
|
|
3003
3003
|
/* webpackIgnore: true */
|
|
@@ -3123,8 +3123,8 @@ class Je {
|
|
|
3123
3123
|
d += E.units;
|
|
3124
3124
|
const _ = h[u], R = _?.[E.ext] ?? 1;
|
|
3125
3125
|
n && _ && !(E.ext in _) && console.info(` Unknown format: .${E.ext} (using default rate of 1 credit/unit)`);
|
|
3126
|
-
const
|
|
3127
|
-
T +=
|
|
3126
|
+
const v = E.units * R;
|
|
3127
|
+
T += v, E.credits = Math.round(v);
|
|
3128
3128
|
}
|
|
3129
3129
|
const A = g[u] ?? u;
|
|
3130
3130
|
return {
|
|
@@ -3156,7 +3156,7 @@ class Je {
|
|
|
3156
3156
|
let y = f.syncCount, C = f.syncSize, d = 0, T = !1;
|
|
3157
3157
|
const A = f.localNotOnRemote ?? [];
|
|
3158
3158
|
if (A.length > 0) {
|
|
3159
|
-
const R = (await this.scanCost(A)).reduce((
|
|
3159
|
+
const R = (await this.scanCost(A)).reduce((v, $t) => v + $t.units, 0);
|
|
3160
3160
|
if (R > g)
|
|
3161
3161
|
throw new Error(
|
|
3162
3162
|
`Insufficient units: ${R} units required but only ${g} available.`
|
|
@@ -3173,10 +3173,10 @@ class Je {
|
|
|
3173
3173
|
i
|
|
3174
3174
|
);
|
|
3175
3175
|
if (!R.blob_name) throw new Error(`blob_name missing for ${_.relativePath}`);
|
|
3176
|
-
const
|
|
3176
|
+
const v = _.data ?? new Uint8Array(await At(_.fullPath));
|
|
3177
3177
|
await this._blob.uploadRaw(
|
|
3178
3178
|
R.blob_name,
|
|
3179
|
-
|
|
3179
|
+
v,
|
|
3180
3180
|
R
|
|
3181
3181
|
), await this._queueFileLocation({
|
|
3182
3182
|
relativePath: _.relativePath,
|
|
@@ -3466,7 +3466,7 @@ WHERE {
|
|
|
3466
3466
|
n({ percent: a, syncCount: t, totalCount: e, syncSize: s, totalSize: i });
|
|
3467
3467
|
}
|
|
3468
3468
|
}
|
|
3469
|
-
const
|
|
3469
|
+
const Pt = {
|
|
3470
3470
|
production: {
|
|
3471
3471
|
gatewayUrl: "https://accessors-api-gateway-ueyeemwf2a-oa.a.run.app",
|
|
3472
3472
|
tokenUrl: "https://accessors-api-gateway-ueyeemwf2a-oa.a.run.app/token",
|
|
@@ -3501,7 +3501,7 @@ class Mt {
|
|
|
3501
3501
|
"Using default SDK app settings. Contact QAECY for your own configuration for any production code."
|
|
3502
3502
|
);
|
|
3503
3503
|
const s = t.apiKey ?? H.apiKey, i = t.appId ?? H.appId, n = t.measurementId ?? H.measurementId, a = t.environment ?? "production";
|
|
3504
|
-
this._endpoints = { ...
|
|
3504
|
+
this._endpoints = { ...Pt[a], ...t.endpoints }, this._isEmulator = a === "emulator", this._app = Lt().find((r) => r.name === "[DEFAULT]") ?? jt({
|
|
3505
3505
|
apiKey: s,
|
|
3506
3506
|
appId: i,
|
|
3507
3507
|
measurementId: n,
|
|
@@ -3514,7 +3514,7 @@ class Mt {
|
|
|
3514
3514
|
this._isEmulator,
|
|
3515
3515
|
this._endpoints.gatewayUrl
|
|
3516
3516
|
), this.privileges = new wt(this.auth.isSuperAdmin);
|
|
3517
|
-
const c =
|
|
3517
|
+
const c = P(this._app, ct);
|
|
3518
3518
|
this._isEmulator && Bt(c, this._endpoints.storageEmulatorHost, this._endpoints.storageEmulatorPort), this.cache = new It(c);
|
|
3519
3519
|
}
|
|
3520
3520
|
/**
|
|
@@ -3534,7 +3534,7 @@ class Mt {
|
|
|
3534
3534
|
* });
|
|
3535
3535
|
*/
|
|
3536
3536
|
static fromApp(t, e = {}) {
|
|
3537
|
-
const s = e.environment ?? "production", i = { ...
|
|
3537
|
+
const s = e.environment ?? "production", i = { ...Pt[s], ...e.endpoints }, n = new ft(t, !1, i), a = new yt(n, t, !1, i), c = P(t, Ae), r = P(t, Se), u = P(t, Pe), p = P(t, Re), m = P(t, Te), h = P(t, ct), g = new Ee({
|
|
3538
3538
|
storageRaw: c,
|
|
3539
3539
|
storageProcessed: r,
|
|
3540
3540
|
storagePublic: u,
|
|
@@ -3609,6 +3609,6 @@ export {
|
|
|
3609
3609
|
ct as q,
|
|
3610
3610
|
Se as r,
|
|
3611
3611
|
Y as s,
|
|
3612
|
-
|
|
3612
|
+
Pe as t,
|
|
3613
3613
|
Ee as u
|
|
3614
3614
|
};
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, a as u, b as C, c, d as i, e as t, f as o, g as r, h as l, i as n, j as P, k as j, l as m, R as h, m as R, n as S, s as f } from "./cue-
|
|
1
|
+
import { C as s, a as u, b as C, c, d as i, e as t, f as o, g as r, h as l, i as n, j as P, k as j, l as m, R as h, m as R, n as S, s as f } from "./cue-wp0EyOko.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Cue,
|
|
4
4
|
u as CueApi,
|
package/node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as _, B as E, o as l, p as S, q as m, r as P, t as d, l as U, u as B, a as R } from "./cue-
|
|
2
|
-
import { b as y, c as I, d as L, e as O, f as x, g as D, h as H, i as N, j as W, k as v, R as k, m as q, n as G, s as Q } from "./cue-
|
|
1
|
+
import { C as _, B as E, o as l, p as S, q as m, r as P, t as d, l as U, u as B, a as R } from "./cue-wp0EyOko.js";
|
|
2
|
+
import { b as y, c as I, d as L, e as O, f as x, g as D, h as H, i as N, j as W, k as v, R as k, m as q, n as G, s as Q } from "./cue-wp0EyOko.js";
|
|
3
3
|
import { getStorage as s, connectStorageEmulator as o } from "firebase/storage";
|
|
4
4
|
import "firebase/firestore";
|
|
5
5
|
class w extends _ {
|