@jieyin/editor-sdk-test 1.1.149 → 1.1.150
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/dist/editor-sdk.es.js +3537 -3532
- package/dist/renderWorker.js +39 -40
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -299,23 +299,17 @@ class l0 {
|
|
|
299
299
|
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function sr() {
|
|
303
|
-
const r = ["des", "n (fu", "info", "bind", "inclu", "10563gmqCpx", "/file", "wser", "now", "fileT", "conso", "7206795QPcpeo", "11lJUeKG", "file_", "excep", "isBro", "setIt", "4XClCRU", "4960028HsuhGY", "aUrl", "fetch", "481947EVGHlx", "1726685osJUWP", "oken", "47643620mDMeaC", "data", "pathn", "oken=", '"retu', "es_in", "re_ti", "okenR", "hasPa", "6EYSlad", "1383678zaLuKM", "trace", "addPa", "3184PKDSSv", "isBlo", "warn", "token"];
|
|
304
|
-
return sr = function() {
|
|
305
|
-
return r;
|
|
306
|
-
}, sr();
|
|
307
|
-
}
|
|
308
302
|
const t0 = Cr;
|
|
309
303
|
(function(r, h) {
|
|
310
304
|
const t = Cr, e = r();
|
|
311
305
|
for (; ; )
|
|
312
306
|
try {
|
|
313
|
-
if (-parseInt(t(
|
|
307
|
+
if (-parseInt(t(465)) / 1 * (-parseInt(t(470)) / 2) + -parseInt(t(457)) / 3 + -parseInt(t(450)) / 4 * (-parseInt(t(461)) / 5) + -parseInt(t(466)) / 6 + -parseInt(t(458)) / 7 + -parseInt(t(468)) / 8 * (parseInt(t(456)) / 9) + parseInt(t(473)) / 10 === h) break;
|
|
314
308
|
e.push(e.shift());
|
|
315
309
|
} catch {
|
|
316
310
|
e.push(e.shift());
|
|
317
311
|
}
|
|
318
|
-
})(sr,
|
|
312
|
+
})(sr, -82207 * -10 + -15569 * -61 + -874504);
|
|
319
313
|
const E0 = /* @__PURE__ */ (function() {
|
|
320
314
|
let r = !0;
|
|
321
315
|
return function(h, t) {
|
|
@@ -332,46 +326,55 @@ const E0 = /* @__PURE__ */ (function() {
|
|
|
332
326
|
const r = Cr;
|
|
333
327
|
let h;
|
|
334
328
|
try {
|
|
335
|
-
h = Function("
|
|
329
|
+
h = Function("return (function() " + ("{}.co" + r(459) + 'ctor("return this")( )') + ");")();
|
|
336
330
|
} catch {
|
|
337
331
|
h = window;
|
|
338
332
|
}
|
|
339
|
-
const t = h
|
|
340
|
-
for (let u =
|
|
333
|
+
const t = h.console = h.console || {}, e = ["log", "warn", "info", "error", "exception", r(447), "trace"];
|
|
334
|
+
for (let u = 0; u < e.length; u++) {
|
|
341
335
|
const p = E0.constructor.prototype.bind(E0), m = e[u], B = t[m] || p;
|
|
342
|
-
p.__proto__ = E0
|
|
336
|
+
p.__proto__ = E0[r(453)](E0), p[r(454) + r(462)] = B.toString[r(453)](B), t[m] = p;
|
|
343
337
|
}
|
|
344
338
|
});
|
|
345
339
|
Ve();
|
|
346
|
-
const pr = "
|
|
340
|
+
const pr = t0(463) + "token", Br = "file_" + t0(471) + "_expire_time", Je = (1206 * 6 + -8063 + -1 * -887) * (6827 * -1 + 5 * 1586 + -103);
|
|
347
341
|
function hr() {
|
|
348
342
|
return h0.getItem(pr);
|
|
349
343
|
}
|
|
350
344
|
function rt(r = Je) {
|
|
345
|
+
const h = t0;
|
|
351
346
|
if (!hr()) return !0;
|
|
352
|
-
const
|
|
353
|
-
if (!
|
|
354
|
-
const
|
|
355
|
-
return Date
|
|
347
|
+
const e = h0.getItem(Br);
|
|
348
|
+
if (!e) return !1;
|
|
349
|
+
const u = Number(e);
|
|
350
|
+
return Date[h(460)]() + r > u;
|
|
356
351
|
}
|
|
357
352
|
function et(r, h) {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
const e = Date[t(519)]() + h * 1e3;
|
|
353
|
+
if (h0[t0(446) + "em"](pr, r), typeof h == "number" && h > 0) {
|
|
354
|
+
const e = Date.now() + h * 1e3;
|
|
361
355
|
h0.setItem(Br, String(e));
|
|
362
356
|
}
|
|
363
357
|
}
|
|
364
358
|
function tt() {
|
|
365
|
-
h0
|
|
359
|
+
h0["remov" + t0(469)](pr), h0.removeItem(Br);
|
|
366
360
|
}
|
|
367
361
|
async function Pr(r) {
|
|
368
|
-
const h =
|
|
369
|
-
return
|
|
362
|
+
const h = await r(), t = h?.data?.data;
|
|
363
|
+
return h?.data?.code === 200 && t?.["file_token"] ? (et(t.file_token, t.expires_in), t.file_token) : null;
|
|
370
364
|
}
|
|
371
365
|
let xt = null;
|
|
366
|
+
function sr() {
|
|
367
|
+
const r = ["eItem", "2TfMjhv", "token", "addPa", "60974330XHJOyR", "ePara", "inclu", "setIt", "table", "ram", "oken", "116OtoCRk", "des", "remov", "bind", "toStr", "fetch", "11970RYOvGE", "5252370hkJnPb", "10545199MyiOWt", "nstru", "now", "130010oEnepY", "ing", "file_", "fileT", "272378pxgiTo", "7769262SnSkBF", "FileT", "10072CqzCKJ"];
|
|
368
|
+
return sr = function() {
|
|
369
|
+
return r;
|
|
370
|
+
}, sr();
|
|
371
|
+
}
|
|
372
372
|
function zr() {
|
|
373
373
|
return cr.isBrowser() ? xt : null;
|
|
374
374
|
}
|
|
375
|
+
function Cr(r, h) {
|
|
376
|
+
return r = r - (-6204 + -1 * -6649), sr()[r];
|
|
377
|
+
}
|
|
375
378
|
async function De() {
|
|
376
379
|
const r = t0;
|
|
377
380
|
if (!cr.isBrowser()) return hr();
|
|
@@ -379,35 +382,32 @@ async function De() {
|
|
|
379
382
|
if (h && !rt()) return h;
|
|
380
383
|
try {
|
|
381
384
|
const t = await zr();
|
|
382
|
-
if (h && t?.[r(
|
|
383
|
-
const e = await Pr(t
|
|
385
|
+
if (h && t?.[r(455) + "FileTokenRefresh"]) {
|
|
386
|
+
const e = await Pr(t.fetchFileTokenRefresh);
|
|
384
387
|
if (e) return e;
|
|
385
388
|
}
|
|
386
389
|
} catch {
|
|
387
390
|
}
|
|
388
391
|
try {
|
|
389
392
|
const t = zr();
|
|
390
|
-
return t?.["
|
|
393
|
+
return t?.["fetch" + r(467) + "oken"] ? await Pr(t[r(455) + r(467) + r(449)]) : null;
|
|
391
394
|
} catch {
|
|
392
395
|
return null;
|
|
393
396
|
}
|
|
394
397
|
}
|
|
395
398
|
function ge(r) {
|
|
396
399
|
const h = t0;
|
|
397
|
-
if (!r || l0
|
|
400
|
+
if (!r || l0.isDataUrl(r) || l0.isBlobUrl(r)) return !1;
|
|
398
401
|
const t = l0.parse(r);
|
|
399
|
-
return t ? t[h(
|
|
402
|
+
return t ? t.pathname[h(445) + h(451)]("/files/") && !l0.hasParam(r, h(464) + "oken") : r.includes("/files/") && !r[h(445) + "des"]("fileToken=");
|
|
400
403
|
}
|
|
401
404
|
function be(r, h) {
|
|
402
405
|
const t = t0;
|
|
403
|
-
return !h || !ge(r) ? r : l0[t(
|
|
404
|
-
}
|
|
405
|
-
function Cr(r, h) {
|
|
406
|
-
return r = r - (1534 + -1 * 2929 + 1878), sr()[r];
|
|
406
|
+
return !h || !ge(r) ? r : l0[t(472) + t(448)](r, "fileToken", h);
|
|
407
407
|
}
|
|
408
408
|
function nt(r) {
|
|
409
409
|
const h = t0;
|
|
410
|
-
return l0
|
|
410
|
+
return l0[h(452) + h(474) + "m"](r, "fileT" + h(449));
|
|
411
411
|
}
|
|
412
412
|
async function at(r) {
|
|
413
413
|
if (!ge(r)) return r;
|
|
@@ -415,13 +415,12 @@ async function at(r) {
|
|
|
415
415
|
return be(r, h);
|
|
416
416
|
}
|
|
417
417
|
async function me(r, h) {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
if (p.status !== -3642 + 13 * 311) return p;
|
|
418
|
+
if (!cr.isBrowser()) return fetch(r, h);
|
|
419
|
+
const t = nt(r), e = await at(t), u = await fetch(e, h);
|
|
420
|
+
if (u.status !== 64 + -2016 * 3 + 6385 * 1) return u;
|
|
422
421
|
tt();
|
|
423
|
-
const
|
|
424
|
-
return fetch(
|
|
422
|
+
const p = await De(), m = be(t, p);
|
|
423
|
+
return fetch(m, h);
|
|
425
424
|
}
|
|
426
425
|
const _e = (r, h) => {
|
|
427
426
|
if (!r) return r;
|
|
@@ -5564,7 +5563,7 @@ function gx() {
|
|
|
5564
5563
|
};
|
|
5565
5564
|
}
|
|
5566
5565
|
function bx(r) {
|
|
5567
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5566
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.150`;
|
|
5568
5567
|
}
|
|
5569
5568
|
function mx(r, h) {
|
|
5570
5569
|
const t = bx(r);
|