@glodon-aiot/bot-client-ui 3.26.0-alpha.4 → 3.26.0-alpha.8
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/es/index.mjs +458 -455
- package/dist/lib/index.js +46 -46
- package/package.json +2 -2
package/dist/es/index.mjs
CHANGED
|
@@ -145,7 +145,7 @@ var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {}, react = {
|
|
|
145
145
|
* This source code is licensed under the MIT license found in the
|
|
146
146
|
* LICENSE file in the root directory of this source tree.
|
|
147
147
|
*/
|
|
148
|
-
var l$r = Symbol.for("react.element"), n$y = Symbol.for("react.portal"), p$u = Symbol.for("react.fragment"), q$
|
|
148
|
+
var l$r = Symbol.for("react.element"), n$y = Symbol.for("react.portal"), p$u = Symbol.for("react.fragment"), q$a = Symbol.for("react.strict_mode"), r$r = Symbol.for("react.profiler"), t$r = Symbol.for("react.provider"), u$C = Symbol.for("react.context"), v$n = Symbol.for("react.forward_ref"), w$i = Symbol.for("react.suspense"), x$i = Symbol.for("react.memo"), y$i = Symbol.for("react.lazy"), z$6 = Symbol.iterator;
|
|
149
149
|
function A$h(et) {
|
|
150
150
|
return et === null || typeof et != "object" ? null : (et = z$6 && et[z$6] || et["@@iterator"], typeof et == "function" ? et : null);
|
|
151
151
|
}
|
|
@@ -160,27 +160,27 @@ var B$a = {
|
|
|
160
160
|
enqueueSetState: function() {
|
|
161
161
|
}
|
|
162
162
|
}, C$c = Object.assign, D$b = {};
|
|
163
|
-
function E$
|
|
163
|
+
function E$o(et, tt, it) {
|
|
164
164
|
this.props = et, this.context = tt, this.refs = D$b, this.updater = it || B$a;
|
|
165
165
|
}
|
|
166
|
-
E$
|
|
167
|
-
E$
|
|
166
|
+
E$o.prototype.isReactComponent = {};
|
|
167
|
+
E$o.prototype.setState = function(et, tt) {
|
|
168
168
|
if (typeof et != "object" && typeof et != "function" && et != null)
|
|
169
169
|
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
170
170
|
this.updater.enqueueSetState(this, et, tt, "setState");
|
|
171
171
|
};
|
|
172
|
-
E$
|
|
172
|
+
E$o.prototype.forceUpdate = function(et) {
|
|
173
173
|
this.updater.enqueueForceUpdate(this, et, "forceUpdate");
|
|
174
174
|
};
|
|
175
175
|
function F$8() {
|
|
176
176
|
}
|
|
177
|
-
F$8.prototype = E$
|
|
177
|
+
F$8.prototype = E$o.prototype;
|
|
178
178
|
function G$5(et, tt, it) {
|
|
179
179
|
this.props = et, this.context = tt, this.refs = D$b, this.updater = it || B$a;
|
|
180
180
|
}
|
|
181
181
|
var H$6 = G$5.prototype = new F$8();
|
|
182
182
|
H$6.constructor = G$5;
|
|
183
|
-
C$c(H$6, E$
|
|
183
|
+
C$c(H$6, E$o.prototype);
|
|
184
184
|
H$6.isPureReactComponent = !0;
|
|
185
185
|
var I$h = Array.isArray, J$5 = Object.prototype.hasOwnProperty, K$8 = {
|
|
186
186
|
current: null
|
|
@@ -237,7 +237,7 @@ function escape$2(et) {
|
|
|
237
237
|
return tt[it];
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
var P$
|
|
240
|
+
var P$b = /\/+/g;
|
|
241
241
|
function Q$5(et, tt) {
|
|
242
242
|
return typeof et == "object" && et !== null && et.key != null ? escape$2("" + et.key) : tt.toString(36);
|
|
243
243
|
}
|
|
@@ -261,9 +261,9 @@ function R$c(et, tt, it, dt, ft) {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
if (Nt)
|
|
264
|
-
return Nt = et, ft = ft(Nt), et = dt === "" ? "." + Q$5(Nt, 0) : dt, I$h(ft) ? (it = "", et != null && (it = et.replace(P$
|
|
264
|
+
return Nt = et, ft = ft(Nt), et = dt === "" ? "." + Q$5(Nt, 0) : dt, I$h(ft) ? (it = "", et != null && (it = et.replace(P$b, "$&/") + "/"), R$c(ft, tt, it, "", function(Dt) {
|
|
265
265
|
return Dt;
|
|
266
|
-
})) : ft != null && (O$5(ft) && (ft = N$b(ft, it + (!ft.key || Nt && Nt.key === ft.key ? "" : ("" + ft.key).replace(P$
|
|
266
|
+
})) : ft != null && (O$5(ft) && (ft = N$b(ft, it + (!ft.key || Nt && Nt.key === ft.key ? "" : ("" + ft.key).replace(P$b, "$&/") + "/") + et)), tt.push(ft)), 1;
|
|
267
267
|
if (Nt = 0, dt = dt === "" ? "." : dt + ":", I$h(et))
|
|
268
268
|
for (var It = 0; It < et.length; It++) {
|
|
269
269
|
bt = et[It];
|
|
@@ -277,7 +277,7 @@ function R$c(et, tt, it, dt, ft) {
|
|
|
277
277
|
throw tt = String(et), Error("Objects are not valid as a React child (found: " + (tt === "[object Object]" ? "object with keys {" + Object.keys(et).join(", ") + "}" : tt) + "). If you meant to render a collection of children, use an array instead.");
|
|
278
278
|
return Nt;
|
|
279
279
|
}
|
|
280
|
-
function S$
|
|
280
|
+
function S$h(et, tt, it) {
|
|
281
281
|
if (et == null)
|
|
282
282
|
return et;
|
|
283
283
|
var dt = [], ft = 0;
|
|
@@ -285,7 +285,7 @@ function S$i(et, tt, it) {
|
|
|
285
285
|
return tt.call(it, bt, ft++);
|
|
286
286
|
}), dt;
|
|
287
287
|
}
|
|
288
|
-
function T$
|
|
288
|
+
function T$b(et) {
|
|
289
289
|
if (et._status === -1) {
|
|
290
290
|
var tt = et._result;
|
|
291
291
|
tt = tt(), tt.then(function(it) {
|
|
@@ -311,20 +311,20 @@ function X$5() {
|
|
|
311
311
|
throw Error("act(...) is not supported in production builds of React.");
|
|
312
312
|
}
|
|
313
313
|
react_production_min.Children = {
|
|
314
|
-
map: S$
|
|
314
|
+
map: S$h,
|
|
315
315
|
forEach: function(et, tt, it) {
|
|
316
|
-
S$
|
|
316
|
+
S$h(et, function() {
|
|
317
317
|
tt.apply(this, arguments);
|
|
318
318
|
}, it);
|
|
319
319
|
},
|
|
320
320
|
count: function(et) {
|
|
321
321
|
var tt = 0;
|
|
322
|
-
return S$
|
|
322
|
+
return S$h(et, function() {
|
|
323
323
|
tt++;
|
|
324
324
|
}), tt;
|
|
325
325
|
},
|
|
326
326
|
toArray: function(et) {
|
|
327
|
-
return S$
|
|
327
|
+
return S$h(et, function(tt) {
|
|
328
328
|
return tt;
|
|
329
329
|
}) || [];
|
|
330
330
|
},
|
|
@@ -334,11 +334,11 @@ react_production_min.Children = {
|
|
|
334
334
|
return et;
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
|
-
react_production_min.Component = E$
|
|
337
|
+
react_production_min.Component = E$o;
|
|
338
338
|
react_production_min.Fragment = p$u;
|
|
339
339
|
react_production_min.Profiler = r$r;
|
|
340
340
|
react_production_min.PureComponent = G$5;
|
|
341
|
-
react_production_min.StrictMode = q$
|
|
341
|
+
react_production_min.StrictMode = q$a;
|
|
342
342
|
react_production_min.Suspense = w$i;
|
|
343
343
|
react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$5;
|
|
344
344
|
react_production_min.act = X$5;
|
|
@@ -409,12 +409,12 @@ react_production_min.lazy = function(et) {
|
|
|
409
409
|
_status: -1,
|
|
410
410
|
_result: et
|
|
411
411
|
},
|
|
412
|
-
_init: T$
|
|
412
|
+
_init: T$b
|
|
413
413
|
};
|
|
414
414
|
};
|
|
415
415
|
react_production_min.memo = function(et, tt) {
|
|
416
416
|
return {
|
|
417
|
-
$$typeof: x$
|
|
417
|
+
$$typeof: x$i,
|
|
418
418
|
type: et,
|
|
419
419
|
compare: tt === void 0 ? null : tt
|
|
420
420
|
};
|
|
@@ -489,17 +489,17 @@ const mD = /* @__PURE__ */ getDefaultExportFromCjs(reactExports), React$4 = /* @
|
|
|
489
489
|
* This source code is licensed under the MIT license found in the
|
|
490
490
|
* LICENSE file in the root directory of this source tree.
|
|
491
491
|
*/
|
|
492
|
-
var f$v = reactExports, k$m = Symbol.for("react.element"), l$q = Symbol.for("react.fragment"), m$
|
|
492
|
+
var f$v = reactExports, k$m = Symbol.for("react.element"), l$q = Symbol.for("react.fragment"), m$u = Object.prototype.hasOwnProperty, n$x = f$v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$t = {
|
|
493
493
|
key: !0,
|
|
494
494
|
ref: !0,
|
|
495
495
|
__self: !0,
|
|
496
496
|
__source: !0
|
|
497
497
|
};
|
|
498
|
-
function q$
|
|
498
|
+
function q$9(et, tt, it) {
|
|
499
499
|
var dt, ft = {}, bt = null, Nt = null;
|
|
500
500
|
it !== void 0 && (bt = "" + it), tt.key !== void 0 && (bt = "" + tt.key), tt.ref !== void 0 && (Nt = tt.ref);
|
|
501
501
|
for (dt in tt)
|
|
502
|
-
m$
|
|
502
|
+
m$u.call(tt, dt) && !p$t.hasOwnProperty(dt) && (ft[dt] = tt[dt]);
|
|
503
503
|
if (et && et.defaultProps)
|
|
504
504
|
for (dt in tt = et.defaultProps, tt)
|
|
505
505
|
ft[dt] === void 0 && (ft[dt] = tt[dt]);
|
|
@@ -513,8 +513,8 @@ function q$8(et, tt, it) {
|
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
reactJsxRuntime_production_min.Fragment = l$q;
|
|
516
|
-
reactJsxRuntime_production_min.jsx = q$
|
|
517
|
-
reactJsxRuntime_production_min.jsxs = q$
|
|
516
|
+
reactJsxRuntime_production_min.jsx = q$9;
|
|
517
|
+
reactJsxRuntime_production_min.jsxs = q$9;
|
|
518
518
|
jsxRuntime.exports = reactJsxRuntime_production_min;
|
|
519
519
|
var jsxRuntimeExports = jsxRuntime.exports;
|
|
520
520
|
function listCacheClear$2() {
|
|
@@ -3560,7 +3560,7 @@ function Uf(et) {
|
|
|
3560
3560
|
current: et
|
|
3561
3561
|
};
|
|
3562
3562
|
}
|
|
3563
|
-
function E$
|
|
3563
|
+
function E$n(et) {
|
|
3564
3564
|
0 > Tf || (et.current = Sf[Tf], Sf[Tf] = null, Tf--);
|
|
3565
3565
|
}
|
|
3566
3566
|
function G$4(et, tt) {
|
|
@@ -3583,7 +3583,7 @@ function Zf(et) {
|
|
|
3583
3583
|
return et = et.childContextTypes, et != null;
|
|
3584
3584
|
}
|
|
3585
3585
|
function $f() {
|
|
3586
|
-
E$
|
|
3586
|
+
E$n(Wf), E$n(H$5);
|
|
3587
3587
|
}
|
|
3588
3588
|
function ag(et, tt, it) {
|
|
3589
3589
|
if (H$5.current !== Vf)
|
|
@@ -3607,7 +3607,7 @@ function dg(et, tt, it) {
|
|
|
3607
3607
|
var dt = et.stateNode;
|
|
3608
3608
|
if (!dt)
|
|
3609
3609
|
throw Error(p$s(169));
|
|
3610
|
-
it ? (et = bg(et, tt, Xf), dt.__reactInternalMemoizedMergedChildContext = et, E$
|
|
3610
|
+
it ? (et = bg(et, tt, Xf), dt.__reactInternalMemoizedMergedChildContext = et, E$n(Wf), E$n(H$5), G$4(H$5, et)) : E$n(Wf), G$4(Wf, it);
|
|
3611
3611
|
}
|
|
3612
3612
|
var eg = null, fg$1 = !1, gg = !1;
|
|
3613
3613
|
function hg(et) {
|
|
@@ -4003,7 +4003,7 @@ function $g$1() {
|
|
|
4003
4003
|
}
|
|
4004
4004
|
function ah(et) {
|
|
4005
4005
|
var tt = Wg.current;
|
|
4006
|
-
E$
|
|
4006
|
+
E$n(Wg), et._currentValue = tt;
|
|
4007
4007
|
}
|
|
4008
4008
|
function bh(et, tt, it) {
|
|
4009
4009
|
for (; et !== null; ) {
|
|
@@ -4226,10 +4226,10 @@ function yh(et, tt) {
|
|
|
4226
4226
|
default:
|
|
4227
4227
|
et = et === 8 ? tt.parentNode : tt, tt = et.namespaceURI || null, et = et.tagName, tt = lb(tt, et);
|
|
4228
4228
|
}
|
|
4229
|
-
E$
|
|
4229
|
+
E$n(uh), G$4(uh, tt);
|
|
4230
4230
|
}
|
|
4231
4231
|
function zh() {
|
|
4232
|
-
E$
|
|
4232
|
+
E$n(uh), E$n(vh), E$n(wh);
|
|
4233
4233
|
}
|
|
4234
4234
|
function Ah(et) {
|
|
4235
4235
|
xh(wh.current);
|
|
@@ -4237,7 +4237,7 @@ function Ah(et) {
|
|
|
4237
4237
|
tt !== it && (G$4(vh, et), G$4(uh, it));
|
|
4238
4238
|
}
|
|
4239
4239
|
function Bh(et) {
|
|
4240
|
-
vh.current === et && (E$
|
|
4240
|
+
vh.current === et && (E$n(uh), E$n(vh));
|
|
4241
4241
|
}
|
|
4242
4242
|
var L$e = Uf(0);
|
|
4243
4243
|
function Ch(et) {
|
|
@@ -4271,7 +4271,7 @@ function Eh() {
|
|
|
4271
4271
|
Dh.length = 0;
|
|
4272
4272
|
}
|
|
4273
4273
|
var Fh = ua$1.ReactCurrentDispatcher, Gh = ua$1.ReactCurrentBatchConfig, Hh = 0, M$b = null, N$a = null, O$4 = null, Ih = !1, Jh = !1, Kh = 0, Lh = 0;
|
|
4274
|
-
function P$
|
|
4274
|
+
function P$a() {
|
|
4275
4275
|
throw Error(p$s(321));
|
|
4276
4276
|
}
|
|
4277
4277
|
function Mh(et, tt) {
|
|
@@ -4598,22 +4598,22 @@ function Bi$1(et, tt, it) {
|
|
|
4598
4598
|
}
|
|
4599
4599
|
var Rh = {
|
|
4600
4600
|
readContext: eh,
|
|
4601
|
-
useCallback: P$
|
|
4602
|
-
useContext: P$
|
|
4603
|
-
useEffect: P$
|
|
4604
|
-
useImperativeHandle: P$
|
|
4605
|
-
useInsertionEffect: P$
|
|
4606
|
-
useLayoutEffect: P$
|
|
4607
|
-
useMemo: P$
|
|
4608
|
-
useReducer: P$
|
|
4609
|
-
useRef: P$
|
|
4610
|
-
useState: P$
|
|
4611
|
-
useDebugValue: P$
|
|
4612
|
-
useDeferredValue: P$
|
|
4613
|
-
useTransition: P$
|
|
4614
|
-
useMutableSource: P$
|
|
4615
|
-
useSyncExternalStore: P$
|
|
4616
|
-
useId: P$
|
|
4601
|
+
useCallback: P$a,
|
|
4602
|
+
useContext: P$a,
|
|
4603
|
+
useEffect: P$a,
|
|
4604
|
+
useImperativeHandle: P$a,
|
|
4605
|
+
useInsertionEffect: P$a,
|
|
4606
|
+
useLayoutEffect: P$a,
|
|
4607
|
+
useMemo: P$a,
|
|
4608
|
+
useReducer: P$a,
|
|
4609
|
+
useRef: P$a,
|
|
4610
|
+
useState: P$a,
|
|
4611
|
+
useDebugValue: P$a,
|
|
4612
|
+
useDeferredValue: P$a,
|
|
4613
|
+
useTransition: P$a,
|
|
4614
|
+
useMutableSource: P$a,
|
|
4615
|
+
useSyncExternalStore: P$a,
|
|
4616
|
+
useId: P$a,
|
|
4617
4617
|
unstable_isNewReconciler: !1
|
|
4618
4618
|
}, Oh = {
|
|
4619
4619
|
readContext: eh,
|
|
@@ -5309,7 +5309,7 @@ function Dj$1(et, tt) {
|
|
|
5309
5309
|
dt === null ? tt || et.tail === null ? et.tail = null : et.tail.sibling = null : dt.sibling = null;
|
|
5310
5310
|
}
|
|
5311
5311
|
}
|
|
5312
|
-
function S$
|
|
5312
|
+
function S$g(et) {
|
|
5313
5313
|
var tt = et.alternate !== null && et.alternate.child === et.child, it = 0, dt = 0;
|
|
5314
5314
|
if (tt)
|
|
5315
5315
|
for (var ft = et.child; ft !== null; )
|
|
@@ -5332,11 +5332,11 @@ function Ej(et, tt, it) {
|
|
|
5332
5332
|
case 12:
|
|
5333
5333
|
case 9:
|
|
5334
5334
|
case 14:
|
|
5335
|
-
return S$
|
|
5335
|
+
return S$g(tt), null;
|
|
5336
5336
|
case 1:
|
|
5337
|
-
return Zf(tt.type) && $f(), S$
|
|
5337
|
+
return Zf(tt.type) && $f(), S$g(tt), null;
|
|
5338
5338
|
case 3:
|
|
5339
|
-
return dt = tt.stateNode, zh(), E$
|
|
5339
|
+
return dt = tt.stateNode, zh(), E$n(Wf), E$n(H$5), Eh(), dt.pendingContext && (dt.context = dt.pendingContext, dt.pendingContext = null), (et === null || et.child === null) && (Gg$1(tt) ? tt.flags |= 4 : et === null || et.memoizedState.isDehydrated && !(tt.flags & 256) || (tt.flags |= 1024, zg !== null && (Fj(zg), zg = null))), Aj(et, tt), S$g(tt), null;
|
|
5340
5340
|
case 5:
|
|
5341
5341
|
Bh(tt);
|
|
5342
5342
|
var ft = xh(wh.current);
|
|
@@ -5346,7 +5346,7 @@ function Ej(et, tt, it) {
|
|
|
5346
5346
|
if (!dt) {
|
|
5347
5347
|
if (tt.stateNode === null)
|
|
5348
5348
|
throw Error(p$s(166));
|
|
5349
|
-
return S$
|
|
5349
|
+
return S$g(tt), null;
|
|
5350
5350
|
}
|
|
5351
5351
|
if (et = xh(uh.current), Gg$1(tt)) {
|
|
5352
5352
|
dt = tt.stateNode, it = tt.type;
|
|
@@ -5497,7 +5497,7 @@ function Ej(et, tt, it) {
|
|
|
5497
5497
|
}
|
|
5498
5498
|
tt.ref !== null && (tt.flags |= 512, tt.flags |= 2097152);
|
|
5499
5499
|
}
|
|
5500
|
-
return S$
|
|
5500
|
+
return S$g(tt), null;
|
|
5501
5501
|
case 6:
|
|
5502
5502
|
if (et && tt.stateNode != null)
|
|
5503
5503
|
Cj(et, tt, et.memoizedProps, dt);
|
|
@@ -5517,9 +5517,9 @@ function Ej(et, tt, it) {
|
|
|
5517
5517
|
} else
|
|
5518
5518
|
dt = (it.nodeType === 9 ? it : it.ownerDocument).createTextNode(dt), dt[Of] = tt, tt.stateNode = dt;
|
|
5519
5519
|
}
|
|
5520
|
-
return S$
|
|
5520
|
+
return S$g(tt), null;
|
|
5521
5521
|
case 13:
|
|
5522
|
-
if (E$
|
|
5522
|
+
if (E$n(L$e), dt = tt.memoizedState, et === null || et.memoizedState !== null && et.memoizedState.dehydrated !== null) {
|
|
5523
5523
|
if (I$g && yg !== null && tt.mode & 1 && !(tt.flags & 128))
|
|
5524
5524
|
Hg$1(), Ig(), tt.flags |= 98560, bt = !1;
|
|
5525
5525
|
else if (bt = Gg$1(tt), dt !== null && dt.dehydrated !== null) {
|
|
@@ -5531,27 +5531,27 @@ function Ej(et, tt, it) {
|
|
|
5531
5531
|
bt[Of] = tt;
|
|
5532
5532
|
} else
|
|
5533
5533
|
Ig(), !(tt.flags & 128) && (tt.memoizedState = null), tt.flags |= 4;
|
|
5534
|
-
S$
|
|
5534
|
+
S$g(tt), bt = !1;
|
|
5535
5535
|
} else
|
|
5536
5536
|
zg !== null && (Fj(zg), zg = null), bt = !0;
|
|
5537
5537
|
if (!bt)
|
|
5538
5538
|
return tt.flags & 65536 ? tt : null;
|
|
5539
5539
|
}
|
|
5540
|
-
return tt.flags & 128 ? (tt.lanes = it, tt) : (dt = dt !== null, dt !== (et !== null && et.memoizedState !== null) && dt && (tt.child.flags |= 8192, tt.mode & 1 && (et === null || L$e.current & 1 ? T$
|
|
5540
|
+
return tt.flags & 128 ? (tt.lanes = it, tt) : (dt = dt !== null, dt !== (et !== null && et.memoizedState !== null) && dt && (tt.child.flags |= 8192, tt.mode & 1 && (et === null || L$e.current & 1 ? T$a === 0 && (T$a = 3) : tj$1())), tt.updateQueue !== null && (tt.flags |= 4), S$g(tt), null);
|
|
5541
5541
|
case 4:
|
|
5542
|
-
return zh(), Aj(et, tt), et === null && sf(tt.stateNode.containerInfo), S$
|
|
5542
|
+
return zh(), Aj(et, tt), et === null && sf(tt.stateNode.containerInfo), S$g(tt), null;
|
|
5543
5543
|
case 10:
|
|
5544
|
-
return ah(tt.type._context), S$
|
|
5544
|
+
return ah(tt.type._context), S$g(tt), null;
|
|
5545
5545
|
case 17:
|
|
5546
|
-
return Zf(tt.type) && $f(), S$
|
|
5546
|
+
return Zf(tt.type) && $f(), S$g(tt), null;
|
|
5547
5547
|
case 19:
|
|
5548
|
-
if (E$
|
|
5549
|
-
return S$
|
|
5548
|
+
if (E$n(L$e), bt = tt.memoizedState, bt === null)
|
|
5549
|
+
return S$g(tt), null;
|
|
5550
5550
|
if (dt = (tt.flags & 128) !== 0, Nt = bt.rendering, Nt === null)
|
|
5551
5551
|
if (dt)
|
|
5552
5552
|
Dj$1(bt, !1);
|
|
5553
5553
|
else {
|
|
5554
|
-
if (T$
|
|
5554
|
+
if (T$a !== 0 || et !== null && et.flags & 128)
|
|
5555
5555
|
for (et = tt.child; et !== null; ) {
|
|
5556
5556
|
if (Nt = Ch(et), Nt !== null) {
|
|
5557
5557
|
for (tt.flags |= 128, Dj$1(bt, !1), dt = Nt.updateQueue, dt !== null && (tt.updateQueue = dt, tt.flags |= 4), tt.subtreeFlags = 0, dt = it, it = tt.child; it !== null; )
|
|
@@ -5569,15 +5569,15 @@ function Ej(et, tt, it) {
|
|
|
5569
5569
|
if (!dt)
|
|
5570
5570
|
if (et = Ch(Nt), et !== null) {
|
|
5571
5571
|
if (tt.flags |= 128, dt = !0, it = et.updateQueue, it !== null && (tt.updateQueue = it, tt.flags |= 4), Dj$1(bt, !0), bt.tail === null && bt.tailMode === "hidden" && !Nt.alternate && !I$g)
|
|
5572
|
-
return S$
|
|
5572
|
+
return S$g(tt), null;
|
|
5573
5573
|
} else
|
|
5574
5574
|
2 * B$9() - bt.renderingStartTime > Gj && it !== 1073741824 && (tt.flags |= 128, dt = !0, Dj$1(bt, !1), tt.lanes = 4194304);
|
|
5575
5575
|
bt.isBackwards ? (Nt.sibling = tt.child, tt.child = Nt) : (it = bt.last, it !== null ? it.sibling = Nt : tt.child = Nt, bt.last = Nt);
|
|
5576
5576
|
}
|
|
5577
|
-
return bt.tail !== null ? (tt = bt.tail, bt.rendering = tt, bt.tail = tt.sibling, bt.renderingStartTime = B$9(), tt.sibling = null, it = L$e.current, G$4(L$e, dt ? it & 1 | 2 : it & 1), tt) : (S$
|
|
5577
|
+
return bt.tail !== null ? (tt = bt.tail, bt.rendering = tt, bt.tail = tt.sibling, bt.renderingStartTime = B$9(), tt.sibling = null, it = L$e.current, G$4(L$e, dt ? it & 1 | 2 : it & 1), tt) : (S$g(tt), null);
|
|
5578
5578
|
case 22:
|
|
5579
5579
|
case 23:
|
|
5580
|
-
return Hj(), dt = tt.memoizedState !== null, et !== null && et.memoizedState !== null !== dt && (tt.flags |= 8192), dt && tt.mode & 1 ? fj & 1073741824 && (S$
|
|
5580
|
+
return Hj(), dt = tt.memoizedState !== null, et !== null && et.memoizedState !== null !== dt && (tt.flags |= 8192), dt && tt.mode & 1 ? fj & 1073741824 && (S$g(tt), tt.subtreeFlags & 6 && (tt.flags |= 8192)) : S$g(tt), null;
|
|
5581
5581
|
case 24:
|
|
5582
5582
|
return null;
|
|
5583
5583
|
case 25:
|
|
@@ -5590,18 +5590,18 @@ function Ij(et, tt) {
|
|
|
5590
5590
|
case 1:
|
|
5591
5591
|
return Zf(tt.type) && $f(), et = tt.flags, et & 65536 ? (tt.flags = et & -65537 | 128, tt) : null;
|
|
5592
5592
|
case 3:
|
|
5593
|
-
return zh(), E$
|
|
5593
|
+
return zh(), E$n(Wf), E$n(H$5), Eh(), et = tt.flags, et & 65536 && !(et & 128) ? (tt.flags = et & -65537 | 128, tt) : null;
|
|
5594
5594
|
case 5:
|
|
5595
5595
|
return Bh(tt), null;
|
|
5596
5596
|
case 13:
|
|
5597
|
-
if (E$
|
|
5597
|
+
if (E$n(L$e), et = tt.memoizedState, et !== null && et.dehydrated !== null) {
|
|
5598
5598
|
if (tt.alternate === null)
|
|
5599
5599
|
throw Error(p$s(340));
|
|
5600
5600
|
Ig();
|
|
5601
5601
|
}
|
|
5602
5602
|
return et = tt.flags, et & 65536 ? (tt.flags = et & -65537 | 128, tt) : null;
|
|
5603
5603
|
case 19:
|
|
5604
|
-
return E$
|
|
5604
|
+
return E$n(L$e), null;
|
|
5605
5605
|
case 4:
|
|
5606
5606
|
return zh(), null;
|
|
5607
5607
|
case 10:
|
|
@@ -6307,7 +6307,7 @@ function jk(et) {
|
|
|
6307
6307
|
V$4 = tt.return;
|
|
6308
6308
|
}
|
|
6309
6309
|
}
|
|
6310
|
-
var lk = Math.ceil, mk = ua$1.ReactCurrentDispatcher, nk = ua$1.ReactCurrentOwner, ok$2 = ua$1.ReactCurrentBatchConfig, K$7 = 0, Q$4 = null, Y$4 = null, Z$3 = 0, fj = 0, ej$1 = Uf(0), T$
|
|
6310
|
+
var lk = Math.ceil, mk = ua$1.ReactCurrentDispatcher, nk = ua$1.ReactCurrentOwner, ok$2 = ua$1.ReactCurrentBatchConfig, K$7 = 0, Q$4 = null, Y$4 = null, Z$3 = 0, fj = 0, ej$1 = Uf(0), T$a = 0, pk = null, rh = 0, qk = 0, rk = 0, sk = null, tk = null, fk = 0, Gj = 1 / 0, uk = null, Oi$1 = !1, Pi$1 = null, Ri$1 = null, vk = !1, wk = null, xk = 0, yk = 0, zk = null, Ak = -1, Bk = 0;
|
|
6311
6311
|
function R$b() {
|
|
6312
6312
|
return K$7 & 6 ? B$9() : Ak !== -1 ? Ak : Ak = B$9();
|
|
6313
6313
|
}
|
|
@@ -6317,7 +6317,7 @@ function yi$1(et) {
|
|
|
6317
6317
|
function gi$1(et, tt, it, dt) {
|
|
6318
6318
|
if (50 < yk)
|
|
6319
6319
|
throw yk = 0, zk = null, Error(p$s(185));
|
|
6320
|
-
Ac$1(et, it, dt), (!(K$7 & 2) || et !== Q$4) && (et === Q$4 && (!(K$7 & 2) && (qk |= it), T$
|
|
6320
|
+
Ac$1(et, it, dt), (!(K$7 & 2) || et !== Q$4) && (et === Q$4 && (!(K$7 & 2) && (qk |= it), T$a === 4 && Ck(et, Z$3)), Dk(et, dt), it === 1 && K$7 === 0 && !(tt.mode & 1) && (Gj = B$9() + 500, fg$1 && jg()));
|
|
6321
6321
|
}
|
|
6322
6322
|
function Dk(et, tt) {
|
|
6323
6323
|
var it = et.callbackNode;
|
|
@@ -6377,7 +6377,7 @@ function Gk(et, tt) {
|
|
|
6377
6377
|
Mk(et, It);
|
|
6378
6378
|
}
|
|
6379
6379
|
while (1);
|
|
6380
|
-
$g$1(), mk.current = bt, K$7 = ft, Y$4 !== null ? tt = 0 : (Q$4 = null, Z$3 = 0, tt = T$
|
|
6380
|
+
$g$1(), mk.current = bt, K$7 = ft, Y$4 !== null ? tt = 0 : (Q$4 = null, Z$3 = 0, tt = T$a);
|
|
6381
6381
|
}
|
|
6382
6382
|
if (tt !== 0) {
|
|
6383
6383
|
if (tt === 2 && (ft = xc$1(et), ft !== 0 && (dt = ft, tt = Nk(et, ft))), tt === 1)
|
|
@@ -6514,7 +6514,7 @@ function Rk(et) {
|
|
|
6514
6514
|
}
|
|
6515
6515
|
}
|
|
6516
6516
|
function Hj() {
|
|
6517
|
-
fj = ej$1.current, E$
|
|
6517
|
+
fj = ej$1.current, E$n(ej$1);
|
|
6518
6518
|
}
|
|
6519
6519
|
function Kk(et, tt) {
|
|
6520
6520
|
et.finishedWork = null, et.finishedLanes = 0;
|
|
@@ -6527,7 +6527,7 @@ function Kk(et, tt) {
|
|
|
6527
6527
|
dt = dt.type.childContextTypes, dt != null && $f();
|
|
6528
6528
|
break;
|
|
6529
6529
|
case 3:
|
|
6530
|
-
zh(), E$
|
|
6530
|
+
zh(), E$n(Wf), E$n(H$5), Eh();
|
|
6531
6531
|
break;
|
|
6532
6532
|
case 5:
|
|
6533
6533
|
Bh(dt);
|
|
@@ -6536,10 +6536,10 @@ function Kk(et, tt) {
|
|
|
6536
6536
|
zh();
|
|
6537
6537
|
break;
|
|
6538
6538
|
case 13:
|
|
6539
|
-
E$
|
|
6539
|
+
E$n(L$e);
|
|
6540
6540
|
break;
|
|
6541
6541
|
case 19:
|
|
6542
|
-
E$
|
|
6542
|
+
E$n(L$e);
|
|
6543
6543
|
break;
|
|
6544
6544
|
case 10:
|
|
6545
6545
|
ah(dt.type._context);
|
|
@@ -6550,7 +6550,7 @@ function Kk(et, tt) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
it = it.return;
|
|
6552
6552
|
}
|
|
6553
|
-
if (Q$4 = et, Y$4 = et = Pg$1(et.current, null), Z$3 = fj = tt, T$
|
|
6553
|
+
if (Q$4 = et, Y$4 = et = Pg$1(et.current, null), Z$3 = fj = tt, T$a = 0, pk = null, rk = qk = rh = 0, tk = sk = null, fh !== null) {
|
|
6554
6554
|
for (tt = 0; tt < fh.length; tt++)
|
|
6555
6555
|
if (it = fh[tt], dt = it.interleaved, dt !== null) {
|
|
6556
6556
|
it.interleaved = null;
|
|
@@ -6577,7 +6577,7 @@ function Mk(et, tt) {
|
|
|
6577
6577
|
Ih = !1;
|
|
6578
6578
|
}
|
|
6579
6579
|
if (Hh = 0, O$4 = N$a = M$b = null, Jh = !1, Kh = 0, nk.current = null, it === null || it.return === null) {
|
|
6580
|
-
T$
|
|
6580
|
+
T$a = 1, pk = tt, Y$4 = null;
|
|
6581
6581
|
break;
|
|
6582
6582
|
}
|
|
6583
6583
|
e: {
|
|
@@ -6612,7 +6612,7 @@ function Mk(et, tt) {
|
|
|
6612
6612
|
break e;
|
|
6613
6613
|
}
|
|
6614
6614
|
}
|
|
6615
|
-
bt = $t = Ji$1($t, It), T$
|
|
6615
|
+
bt = $t = Ji$1($t, It), T$a !== 4 && (T$a = 2), sk === null ? sk = [bt] : sk.push(bt), bt = Nt;
|
|
6616
6616
|
do {
|
|
6617
6617
|
switch (bt.tag) {
|
|
6618
6618
|
case 3:
|
|
@@ -6646,7 +6646,7 @@ function Jk() {
|
|
|
6646
6646
|
return mk.current = Rh, et === null ? Rh : et;
|
|
6647
6647
|
}
|
|
6648
6648
|
function tj$1() {
|
|
6649
|
-
(T$
|
|
6649
|
+
(T$a === 0 || T$a === 3 || T$a === 2) && (T$a = 4), Q$4 === null || !(rh & 268435455) && !(qk & 268435455) || Ck(Q$4, Z$3);
|
|
6650
6650
|
}
|
|
6651
6651
|
function Ik(et, tt) {
|
|
6652
6652
|
var it = K$7;
|
|
@@ -6663,7 +6663,7 @@ function Ik(et, tt) {
|
|
|
6663
6663
|
while (1);
|
|
6664
6664
|
if ($g$1(), K$7 = it, mk.current = dt, Y$4 !== null)
|
|
6665
6665
|
throw Error(p$s(261));
|
|
6666
|
-
return Q$4 = null, Z$3 = 0, T$
|
|
6666
|
+
return Q$4 = null, Z$3 = 0, T$a;
|
|
6667
6667
|
}
|
|
6668
6668
|
function Tk() {
|
|
6669
6669
|
for (; Y$4 !== null; )
|
|
@@ -6689,7 +6689,7 @@ function Sk(et) {
|
|
|
6689
6689
|
if (et !== null)
|
|
6690
6690
|
et.flags |= 32768, et.subtreeFlags = 0, et.deletions = null;
|
|
6691
6691
|
else {
|
|
6692
|
-
T$
|
|
6692
|
+
T$a = 6, Y$4 = null;
|
|
6693
6693
|
return;
|
|
6694
6694
|
}
|
|
6695
6695
|
} else if (it = Ej(it, tt, fj), it !== null) {
|
|
@@ -6702,7 +6702,7 @@ function Sk(et) {
|
|
|
6702
6702
|
}
|
|
6703
6703
|
Y$4 = tt = et;
|
|
6704
6704
|
} while (tt !== null);
|
|
6705
|
-
T$
|
|
6705
|
+
T$a === 0 && (T$a = 5);
|
|
6706
6706
|
}
|
|
6707
6707
|
function Pk(et, tt, it) {
|
|
6708
6708
|
var dt = C$b, ft = ok$2.transition;
|
|
@@ -6894,7 +6894,7 @@ function W$4(et, tt, it) {
|
|
|
6894
6894
|
}
|
|
6895
6895
|
function Ti$1(et, tt, it) {
|
|
6896
6896
|
var dt = et.pingCache;
|
|
6897
|
-
dt !== null && dt.delete(tt), tt = R$b(), et.pingedLanes |= et.suspendedLanes & it, Q$4 === et && (Z$3 & it) === it && (T$
|
|
6897
|
+
dt !== null && dt.delete(tt), tt = R$b(), et.pingedLanes |= et.suspendedLanes & it, Q$4 === et && (Z$3 & it) === it && (T$a === 4 || T$a === 3 && (Z$3 & 130023424) === Z$3 && 500 > B$9() - fk ? Kk(et, 0) : rk |= it), Dk(et, tt);
|
|
6898
6898
|
}
|
|
6899
6899
|
function Yk(et, tt) {
|
|
6900
6900
|
tt === 0 && (et.mode & 1 ? (tt = sc$1, sc$1 <<= 1, !(sc$1 & 130023424) && (sc$1 = 4194304)) : tt = 1);
|
|
@@ -9330,7 +9330,7 @@ var reactIs = { exports: {} }, reactIs_production_min = {};
|
|
|
9330
9330
|
* This source code is licensed under the MIT license found in the
|
|
9331
9331
|
* LICENSE file in the root directory of this source tree.
|
|
9332
9332
|
*/
|
|
9333
|
-
var b$m = Symbol.for("react.element"), c$x = Symbol.for("react.portal"), d$q = Symbol.for("react.fragment"), e$l = Symbol.for("react.strict_mode"), f$u = Symbol.for("react.profiler"), g$p = Symbol.for("react.provider"), h$
|
|
9333
|
+
var b$m = Symbol.for("react.element"), c$x = Symbol.for("react.portal"), d$q = Symbol.for("react.fragment"), e$l = Symbol.for("react.strict_mode"), f$u = Symbol.for("react.profiler"), g$p = Symbol.for("react.provider"), h$m = Symbol.for("react.context"), k$l = Symbol.for("react.server_context"), l$p = Symbol.for("react.forward_ref"), m$t = Symbol.for("react.suspense"), n$w = Symbol.for("react.suspense_list"), p$r = Symbol.for("react.memo"), q$8 = Symbol.for("react.lazy"), t$q = Symbol.for("react.offscreen"), u$B;
|
|
9334
9334
|
u$B = Symbol.for("react.module.reference");
|
|
9335
9335
|
function v$l(et) {
|
|
9336
9336
|
if (typeof et == "object" && et !== null) {
|
|
@@ -9341,15 +9341,15 @@ function v$l(et) {
|
|
|
9341
9341
|
case d$q:
|
|
9342
9342
|
case f$u:
|
|
9343
9343
|
case e$l:
|
|
9344
|
-
case m$
|
|
9344
|
+
case m$t:
|
|
9345
9345
|
case n$w:
|
|
9346
9346
|
return et;
|
|
9347
9347
|
default:
|
|
9348
9348
|
switch (et = et && et.$$typeof, et) {
|
|
9349
9349
|
case k$l:
|
|
9350
|
-
case h$
|
|
9350
|
+
case h$m:
|
|
9351
9351
|
case l$p:
|
|
9352
|
-
case q$
|
|
9352
|
+
case q$8:
|
|
9353
9353
|
case p$r:
|
|
9354
9354
|
case g$p:
|
|
9355
9355
|
return et;
|
|
@@ -9362,17 +9362,17 @@ function v$l(et) {
|
|
|
9362
9362
|
}
|
|
9363
9363
|
}
|
|
9364
9364
|
}
|
|
9365
|
-
reactIs_production_min.ContextConsumer = h$
|
|
9365
|
+
reactIs_production_min.ContextConsumer = h$m;
|
|
9366
9366
|
reactIs_production_min.ContextProvider = g$p;
|
|
9367
9367
|
reactIs_production_min.Element = b$m;
|
|
9368
9368
|
reactIs_production_min.ForwardRef = l$p;
|
|
9369
9369
|
reactIs_production_min.Fragment = d$q;
|
|
9370
|
-
reactIs_production_min.Lazy = q$
|
|
9370
|
+
reactIs_production_min.Lazy = q$8;
|
|
9371
9371
|
reactIs_production_min.Memo = p$r;
|
|
9372
9372
|
reactIs_production_min.Portal = c$x;
|
|
9373
9373
|
reactIs_production_min.Profiler = f$u;
|
|
9374
9374
|
reactIs_production_min.StrictMode = e$l;
|
|
9375
|
-
reactIs_production_min.Suspense = m$
|
|
9375
|
+
reactIs_production_min.Suspense = m$t;
|
|
9376
9376
|
reactIs_production_min.SuspenseList = n$w;
|
|
9377
9377
|
reactIs_production_min.isAsyncMode = function() {
|
|
9378
9378
|
return !1;
|
|
@@ -9381,7 +9381,7 @@ reactIs_production_min.isConcurrentMode = function() {
|
|
|
9381
9381
|
return !1;
|
|
9382
9382
|
};
|
|
9383
9383
|
reactIs_production_min.isContextConsumer = function(et) {
|
|
9384
|
-
return v$l(et) === h$
|
|
9384
|
+
return v$l(et) === h$m;
|
|
9385
9385
|
};
|
|
9386
9386
|
reactIs_production_min.isContextProvider = function(et) {
|
|
9387
9387
|
return v$l(et) === g$p;
|
|
@@ -9396,7 +9396,7 @@ reactIs_production_min.isFragment = function(et) {
|
|
|
9396
9396
|
return v$l(et) === d$q;
|
|
9397
9397
|
};
|
|
9398
9398
|
reactIs_production_min.isLazy = function(et) {
|
|
9399
|
-
return v$l(et) === q$
|
|
9399
|
+
return v$l(et) === q$8;
|
|
9400
9400
|
};
|
|
9401
9401
|
reactIs_production_min.isMemo = function(et) {
|
|
9402
9402
|
return v$l(et) === p$r;
|
|
@@ -9411,13 +9411,13 @@ reactIs_production_min.isStrictMode = function(et) {
|
|
|
9411
9411
|
return v$l(et) === e$l;
|
|
9412
9412
|
};
|
|
9413
9413
|
reactIs_production_min.isSuspense = function(et) {
|
|
9414
|
-
return v$l(et) === m$
|
|
9414
|
+
return v$l(et) === m$t;
|
|
9415
9415
|
};
|
|
9416
9416
|
reactIs_production_min.isSuspenseList = function(et) {
|
|
9417
9417
|
return v$l(et) === n$w;
|
|
9418
9418
|
};
|
|
9419
9419
|
reactIs_production_min.isValidElementType = function(et) {
|
|
9420
|
-
return typeof et == "string" || typeof et == "function" || et === d$q || et === f$u || et === e$l || et === m$
|
|
9420
|
+
return typeof et == "string" || typeof et == "function" || et === d$q || et === f$u || et === e$l || et === m$t || et === n$w || et === t$q || typeof et == "object" && et !== null && (et.$$typeof === q$8 || et.$$typeof === p$r || et.$$typeof === g$p || et.$$typeof === h$m || et.$$typeof === l$p || et.$$typeof === u$B || et.getModuleId !== void 0);
|
|
9421
9421
|
};
|
|
9422
9422
|
reactIs_production_min.typeOf = v$l;
|
|
9423
9423
|
reactIs.exports = reactIs_production_min;
|
|
@@ -31667,7 +31667,7 @@ axios$2.exports = axios$1;
|
|
|
31667
31667
|
axios$2.exports.default = axios$1;
|
|
31668
31668
|
var axiosExports = axios$2.exports, axios = axiosExports;
|
|
31669
31669
|
const TI = /* @__PURE__ */ getDefaultExportFromCjs(axios);
|
|
31670
|
-
var x$
|
|
31670
|
+
var x$h = Object.defineProperty, l$o = Object.getOwnPropertySymbols, g$o = Object.prototype.hasOwnProperty, y$h = Object.prototype.propertyIsEnumerable, u$A = (et, tt, it) => tt in et ? x$h(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, c$w = (et, tt) => {
|
|
31671
31671
|
for (var it in tt || (tt = {}))
|
|
31672
31672
|
g$o.call(tt, it) && u$A(et, it, tt[it]);
|
|
31673
31673
|
if (l$o)
|
|
@@ -31806,7 +31806,7 @@ let R$a = class {
|
|
|
31806
31806
|
handleAppError(tt, it) {
|
|
31807
31807
|
var dt;
|
|
31808
31808
|
if (tt.code < 200 || tt.code >= 300)
|
|
31809
|
-
throw (dt = this.errorHandler) != null && dt.onAppStatusError ? this.errorHandler.onAppStatusError(tt.code, E$
|
|
31809
|
+
throw (dt = this.errorHandler) != null && dt.onAppStatusError ? this.errorHandler.onAppStatusError(tt.code, E$m(tt.code, tt.message), it) : console.error("未处理应用错误:", tt), {
|
|
31810
31810
|
isAxiosError: !1,
|
|
31811
31811
|
message: tt.message
|
|
31812
31812
|
};
|
|
@@ -31818,7 +31818,7 @@ let R$a = class {
|
|
|
31818
31818
|
return tt.response ? (it = this.errorHandler) != null && it.onHttpStatusError && (console.log("HTTP 错误", this.errorHandler), this.errorHandler.onHttpStatusError(tt.response.status, "", tt.response)) : tt.request ? (console.log(tt.request), (dt = this.errorHandler) != null && dt.onNetworkError && this.errorHandler.onNetworkError()) : console.error("axios request config error:", tt), new Error(tt.message);
|
|
31819
31819
|
}
|
|
31820
31820
|
};
|
|
31821
|
-
const f$t = (et) => et >= 10002 && et <= 10012, E$
|
|
31821
|
+
const f$t = (et) => et >= 10002 && et <= 10012, E$m = (et, tt) => f$t(et) ? "数据操作错误" : tt || "未知接口错误";
|
|
31822
31822
|
/*! For license information please see minio.esm.js.LICENSE.txt */
|
|
31823
31823
|
var __webpack_modules__ = { 20: (et, tt, it) => {
|
|
31824
31824
|
var dt = it(2861).Buffer, ft = it(7108), bt = it(6737), Nt = it(6698), It = it(5359), $t = it(4847), Dt = it(2951);
|
|
@@ -60251,7 +60251,7 @@ const Minio = minio__WEBPACK_IMPORTED_MODULE_0___default(), { initMinio, putObje
|
|
|
60251
60251
|
__webpack_exports__.D4;
|
|
60252
60252
|
__webpack_exports__.TS;
|
|
60253
60253
|
__webpack_exports__.IS;
|
|
60254
|
-
var __webpack_exports__initMinio = __webpack_exports__.rJ, __webpack_exports__putObjectBuffer = __webpack_exports__.vo, t$o = /* @__PURE__ */ ((et) => (et[et.None = 0] = "None", et[et.SourceFile = 1] = "SourceFile", et[et.WebLink = 2] = "WebLink", et))(t$o || {}), a$r = /* @__PURE__ */ ((et) => (et.Unprotected = "不受著作权保护", et.ProtectAuthorize = "受著作权保护,已获得授权", et.ProtectUnauthorize = "受著作权保护,未获得授权", et))(a$r || {}), n$t = /* @__PURE__ */ ((et) => (et[et.Robot = 1] = "Robot", et[et.User = 2] = "User", et[et.System = 3] = "System", et))(n$t || {}), P$
|
|
60254
|
+
var __webpack_exports__initMinio = __webpack_exports__.rJ, __webpack_exports__putObjectBuffer = __webpack_exports__.vo, t$o = /* @__PURE__ */ ((et) => (et[et.None = 0] = "None", et[et.SourceFile = 1] = "SourceFile", et[et.WebLink = 2] = "WebLink", et))(t$o || {}), a$r = /* @__PURE__ */ ((et) => (et.Unprotected = "不受著作权保护", et.ProtectAuthorize = "受著作权保护,已获得授权", et.ProtectUnauthorize = "受著作权保护,未获得授权", et))(a$r || {}), n$t = /* @__PURE__ */ ((et) => (et[et.Robot = 1] = "Robot", et[et.User = 2] = "User", et[et.System = 3] = "System", et))(n$t || {}), P$9 = /* @__PURE__ */ ((et) => (et.Start = "start", et.End = "end", et))(P$9 || {}), b$l = /* @__PURE__ */ ((et) => (et[et.Processing = 1] = "Processing", et[et.Success = 2] = "Success", et[et.Failed = 3] = "Failed", et))(b$l || {}), v$k = /* @__PURE__ */ ((et) => (et.AECPILOT = "aecpilot", et))(v$k || {});
|
|
60255
60255
|
const byteToHex = [];
|
|
60256
60256
|
for (let et = 0; et < 256; ++et)
|
|
60257
60257
|
byteToHex.push((et + 256).toString(16).slice(1));
|
|
@@ -60607,7 +60607,7 @@ var dayjs_min = { exports: {} };
|
|
|
60607
60607
|
});
|
|
60608
60608
|
})(dayjs_min);
|
|
60609
60609
|
var dayjs_minExports = dayjs_min.exports;
|
|
60610
|
-
const iN = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports), T$
|
|
60610
|
+
const iN = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports), T$9 = 128, _$a = 20;
|
|
60611
60611
|
var b$k = (et, tt, it) => new Promise((dt, ft) => {
|
|
60612
60612
|
var bt = ($t) => {
|
|
60613
60613
|
try {
|
|
@@ -60635,7 +60635,7 @@ function w$h(et, tt) {
|
|
|
60635
60635
|
function g$n(et) {
|
|
60636
60636
|
let tt, it, dt, ft = !1, bt;
|
|
60637
60637
|
return function(Nt) {
|
|
60638
|
-
tt === void 0 ? (tt = Nt, it = 0, dt = -1, bt = !1) : tt = h$
|
|
60638
|
+
tt === void 0 ? (tt = Nt, it = 0, dt = -1, bt = !1) : tt = h$l(tt, Nt);
|
|
60639
60639
|
const It = tt.length;
|
|
60640
60640
|
let $t = 0;
|
|
60641
60641
|
for (; it < It; ) {
|
|
@@ -60688,7 +60688,7 @@ function k$k(et, tt, it) {
|
|
|
60688
60688
|
}
|
|
60689
60689
|
};
|
|
60690
60690
|
}
|
|
60691
|
-
function h$
|
|
60691
|
+
function h$l(et, tt) {
|
|
60692
60692
|
const it = new Uint8Array(et.length + tt.length);
|
|
60693
60693
|
return it.set(et), it.set(tt, et.length), it;
|
|
60694
60694
|
}
|
|
@@ -60700,14 +60700,14 @@ function y$g() {
|
|
|
60700
60700
|
retry: void 0
|
|
60701
60701
|
};
|
|
60702
60702
|
}
|
|
60703
|
-
var W$3 = Object.defineProperty, j$8 = Object.defineProperties, k$j = Object.getOwnPropertyDescriptors, v$j = Object.getOwnPropertySymbols, A$f = Object.prototype.hasOwnProperty, R$9 = Object.prototype.propertyIsEnumerable, I$f = (et, tt, it) => tt in et ? W$3(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, E$
|
|
60703
|
+
var W$3 = Object.defineProperty, j$8 = Object.defineProperties, k$j = Object.getOwnPropertyDescriptors, v$j = Object.getOwnPropertySymbols, A$f = Object.prototype.hasOwnProperty, R$9 = Object.prototype.propertyIsEnumerable, I$f = (et, tt, it) => tt in et ? W$3(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, E$l = (et, tt) => {
|
|
60704
60704
|
for (var it in tt || (tt = {}))
|
|
60705
60705
|
A$f.call(tt, it) && I$f(et, it, tt[it]);
|
|
60706
60706
|
if (v$j)
|
|
60707
60707
|
for (var it of v$j(tt))
|
|
60708
60708
|
R$9.call(tt, it) && I$f(et, it, tt[it]);
|
|
60709
60709
|
return et;
|
|
60710
|
-
}, $$9 = (et, tt) => j$8(et, k$j(tt)), q$
|
|
60710
|
+
}, $$9 = (et, tt) => j$8(et, k$j(tt)), q$7 = (et, tt) => {
|
|
60711
60711
|
var it = {};
|
|
60712
60712
|
for (var dt in et)
|
|
60713
60713
|
A$f.call(et, dt) && tt.indexOf(dt) < 0 && (it[dt] = et[dt]);
|
|
@@ -60742,7 +60742,7 @@ function X$3(et, tt) {
|
|
|
60742
60742
|
onerror: $t,
|
|
60743
60743
|
openWhenHidden: Dt,
|
|
60744
60744
|
fetch: jt
|
|
60745
|
-
} = it, Ot = q$
|
|
60745
|
+
} = it, Ot = q$7(it, [
|
|
60746
60746
|
"signal",
|
|
60747
60747
|
"headers",
|
|
60748
60748
|
"onopen",
|
|
@@ -60753,7 +60753,7 @@ function X$3(et, tt) {
|
|
|
60753
60753
|
"fetch"
|
|
60754
60754
|
]);
|
|
60755
60755
|
return new Promise((Xt, qt) => {
|
|
60756
|
-
const Kt = E$
|
|
60756
|
+
const Kt = E$l({}, ft);
|
|
60757
60757
|
Kt.accept || (Kt.accept = g$m);
|
|
60758
60758
|
let tr;
|
|
60759
60759
|
function nr() {
|
|
@@ -60773,7 +60773,7 @@ function X$3(et, tt) {
|
|
|
60773
60773
|
var gr;
|
|
60774
60774
|
tr = new AbortController();
|
|
60775
60775
|
try {
|
|
60776
|
-
const mr = yield ur(et, $$9(E$
|
|
60776
|
+
const mr = yield ur(et, $$9(E$l({}, Ot), {
|
|
60777
60777
|
headers: Kt,
|
|
60778
60778
|
signal: tr.signal
|
|
60779
60779
|
}));
|
|
@@ -61791,14 +61791,14 @@ ieee754.write = function(et, tt, it, dt, ft, bt) {
|
|
|
61791
61791
|
throw new Error("BigInt not supported");
|
|
61792
61792
|
}
|
|
61793
61793
|
})(buffer);
|
|
61794
|
-
var v$i = Object.defineProperty, S$
|
|
61794
|
+
var v$i = Object.defineProperty, S$f = Object.defineProperties, w$g = Object.getOwnPropertyDescriptors, g$l = Object.getOwnPropertySymbols, A$e = Object.prototype.hasOwnProperty, R$8 = Object.prototype.propertyIsEnumerable, f$s = (et, tt, it) => tt in et ? v$i(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, y$f = (et, tt) => {
|
|
61795
61795
|
for (var it in tt || (tt = {}))
|
|
61796
61796
|
A$e.call(tt, it) && f$s(et, it, tt[it]);
|
|
61797
61797
|
if (g$l)
|
|
61798
61798
|
for (var it of g$l(tt))
|
|
61799
61799
|
R$8.call(tt, it) && f$s(et, it, tt[it]);
|
|
61800
61800
|
return et;
|
|
61801
|
-
}, $$8 = (et, tt) => S$
|
|
61801
|
+
}, $$8 = (et, tt) => S$f(et, w$g(tt)), s$p = (et, tt, it) => new Promise((dt, ft) => {
|
|
61802
61802
|
var bt = ($t) => {
|
|
61803
61803
|
try {
|
|
61804
61804
|
It(it.next($t));
|
|
@@ -61815,7 +61815,7 @@ var v$i = Object.defineProperty, S$g = Object.defineProperties, w$g = Object.get
|
|
|
61815
61815
|
It((it = it.apply(et, tt)).next());
|
|
61816
61816
|
});
|
|
61817
61817
|
window.Buffer = buffer.Buffer;
|
|
61818
|
-
let x$
|
|
61818
|
+
let x$g = class extends R$a {
|
|
61819
61819
|
constructor(tt, it, dt) {
|
|
61820
61820
|
super(tt != null ? tt : TI.create(), dt), this.axiosInstance = tt, this.getToken = it;
|
|
61821
61821
|
}
|
|
@@ -62078,7 +62078,7 @@ let x$h = class extends R$a {
|
|
|
62078
62078
|
}
|
|
62079
62079
|
listPrompt(tt, it) {
|
|
62080
62080
|
return s$p(this, null, function* () {
|
|
62081
|
-
return it != null && it.title && it.title.length > T$
|
|
62081
|
+
return it != null && it.title && it.title.length > T$9 ? [] : this.get(`/data/v1/application/${tt}/prompts`, it);
|
|
62082
62082
|
});
|
|
62083
62083
|
}
|
|
62084
62084
|
getPrompt(tt, it) {
|
|
@@ -62671,7 +62671,7 @@ var p$q = /* @__PURE__ */ ((et) => (et[et.minio = 0] = "minio", et[et.pvc = 1] =
|
|
|
62671
62671
|
}, It = ($t) => $t.done ? dt($t.value) : Promise.resolve($t.value).then(bt, Nt);
|
|
62672
62672
|
It((it = it.apply(et, tt)).next());
|
|
62673
62673
|
});
|
|
62674
|
-
let E$
|
|
62674
|
+
let E$k = class extends R$a {
|
|
62675
62675
|
constructor(tt, it) {
|
|
62676
62676
|
super(tt != null ? tt : TI.create(), it);
|
|
62677
62677
|
}
|
|
@@ -62791,14 +62791,14 @@ let E$j = class extends R$a {
|
|
|
62791
62791
|
return d$p(dt, !0);
|
|
62792
62792
|
} catch (dt) {
|
|
62793
62793
|
const ft = dt.response;
|
|
62794
|
-
if ((ft == null ? void 0 : ft.status) === 404 || ((it = ft == null ? void 0 : ft.data) == null ? void 0 : it.code) === h$
|
|
62794
|
+
if ((ft == null ? void 0 : ft.status) === 404 || ((it = ft == null ? void 0 : ft.data) == null ? void 0 : it.code) === h$k)
|
|
62795
62795
|
return;
|
|
62796
62796
|
throw new Error("平台文件服务请求失败");
|
|
62797
62797
|
}
|
|
62798
62798
|
});
|
|
62799
62799
|
}
|
|
62800
62800
|
};
|
|
62801
|
-
const h$
|
|
62801
|
+
const h$k = 11012;
|
|
62802
62802
|
function v$h(et) {
|
|
62803
62803
|
return et === 0 || et >= 200 && et < 300;
|
|
62804
62804
|
}
|
|
@@ -62807,7 +62807,7 @@ function d$p(et, tt = !1) {
|
|
|
62807
62807
|
const dt = et.data;
|
|
62808
62808
|
if (!dt || typeof dt.code != "number")
|
|
62809
62809
|
throw new Error("平台文件服务请求失败");
|
|
62810
|
-
if (dt.code === h$
|
|
62810
|
+
if (dt.code === h$k) {
|
|
62811
62811
|
if (tt)
|
|
62812
62812
|
return;
|
|
62813
62813
|
throw new Error("文件不存在");
|
|
@@ -72258,10 +72258,10 @@ class Style {
|
|
|
72258
72258
|
return this.size >= 2;
|
|
72259
72259
|
}
|
|
72260
72260
|
}
|
|
72261
|
-
var D$8 = 0, Dc$1 = 1, T$
|
|
72261
|
+
var D$8 = 0, Dc$1 = 1, T$8 = 2, Tc$1 = 3, S$e = 4, Sc$1 = 5, SS = 6, SSc = 7, styles = [new Style(D$8, 0, !1), new Style(Dc$1, 0, !0), new Style(T$8, 1, !1), new Style(Tc$1, 1, !0), new Style(S$e, 2, !1), new Style(Sc$1, 2, !0), new Style(SS, 3, !1), new Style(SSc, 3, !0)], sup = [S$e, Sc$1, S$e, Sc$1, SS, SSc, SS, SSc], sub = [Sc$1, Sc$1, Sc$1, Sc$1, SSc, SSc, SSc, SSc], fracNum = [T$8, Tc$1, S$e, Sc$1, SS, SSc, SS, SSc], fracDen = [Tc$1, Tc$1, Sc$1, Sc$1, SSc, SSc, SSc, SSc], cramp = [Dc$1, Dc$1, Tc$1, Tc$1, Sc$1, Sc$1, SSc, SSc], text$1 = [D$8, Dc$1, T$8, Tc$1, T$8, Tc$1, T$8, Tc$1], Style$1 = {
|
|
72262
72262
|
DISPLAY: styles[D$8],
|
|
72263
|
-
TEXT: styles[T$
|
|
72264
|
-
SCRIPT: styles[S$
|
|
72263
|
+
TEXT: styles[T$8],
|
|
72264
|
+
SCRIPT: styles[S$e],
|
|
72265
72265
|
SCRIPTSCRIPT: styles[SS]
|
|
72266
72266
|
}, scriptData = [{
|
|
72267
72267
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
@@ -84931,7 +84931,7 @@ function createAdjustMap$1(et) {
|
|
|
84931
84931
|
tt.set(it.toLowerCase(), it);
|
|
84932
84932
|
return tt;
|
|
84933
84933
|
}
|
|
84934
|
-
const svgCaseSensitiveTagNames = ["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "solidColor", "textArea", "textPath"], h$
|
|
84934
|
+
const svgCaseSensitiveTagNames = ["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "solidColor", "textArea", "textPath"], h$j = createH(html$3, "div"), s$n = createH(svg, "g", svgCaseSensitiveTagNames), webNamespaces = {
|
|
84935
84935
|
html: "http://www.w3.org/1999/xhtml",
|
|
84936
84936
|
mathml: "http://www.w3.org/1998/Math/MathML",
|
|
84937
84937
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -85009,7 +85009,7 @@ function comment$1(et) {
|
|
|
85009
85009
|
};
|
|
85010
85010
|
}
|
|
85011
85011
|
function element(et, tt) {
|
|
85012
|
-
const it = et.namespaceURI, dt = it === webNamespaces.svg ? s$n : h$
|
|
85012
|
+
const it = et.namespaceURI, dt = it === webNamespaces.svg ? s$n : h$j, ft = it === webNamespaces.html ? et.tagName.toLowerCase() : et.tagName, bt = (
|
|
85013
85013
|
// @ts-expect-error: DOM types are wrong, content can exist.
|
|
85014
85014
|
it === webNamespaces.html && ft === "template" ? et.content : et
|
|
85015
85015
|
), Nt = et.getAttributeNames(), It = {};
|
|
@@ -120359,7 +120359,7 @@ function clearImageViewer() {
|
|
|
120359
120359
|
}
|
|
120360
120360
|
const Multi = attachPropertiesToComponent(MultiImageViewer, {
|
|
120361
120361
|
show: showMultiImageViewer
|
|
120362
|
-
}), x$
|
|
120362
|
+
}), x$f = attachPropertiesToComponent(ImageViewer, {
|
|
120363
120363
|
Multi,
|
|
120364
120364
|
show: showImageViewer,
|
|
120365
120365
|
clear: clearImageViewer
|
|
@@ -121207,13 +121207,13 @@ var a$q = Object.defineProperty, e$j = Object.getOwnPropertySymbols, n$r = Objec
|
|
|
121207
121207
|
s$m.call(tt, it) && i$o(et, it, tt[it]);
|
|
121208
121208
|
return et;
|
|
121209
121209
|
};
|
|
121210
|
-
const m$
|
|
121210
|
+
const m$s = (et) => /* @__PURE__ */ jsxRuntimeExports.jsx("video", r$o({
|
|
121211
121211
|
style: {
|
|
121212
121212
|
maxWidth: "100%",
|
|
121213
121213
|
width: 560,
|
|
121214
121214
|
height: 315
|
|
121215
121215
|
}
|
|
121216
|
-
}, et)), c$v = m$
|
|
121216
|
+
}, et)), c$v = m$s;
|
|
121217
121217
|
function c$u(et) {
|
|
121218
121218
|
const tt = et.split(/(```[\s\S]*?```|`[^`]*?`|<code>[\s\S]*?<\/code>)/);
|
|
121219
121219
|
let it = "";
|
|
@@ -121247,7 +121247,7 @@ var w$f = Object.defineProperty, k$f = Object.defineProperties, I$e = Object.get
|
|
|
121247
121247
|
M$a.call(tt, it) && d$o(et, it, tt[it]);
|
|
121248
121248
|
return et;
|
|
121249
121249
|
}, a$p = (et, tt) => k$f(et, I$e(tt));
|
|
121250
|
-
const E$
|
|
121250
|
+
const E$j = (et) => {
|
|
121251
121251
|
const [tt, it] = reactExports.useState(!1), [dt, ft] = reactExports.useState();
|
|
121252
121252
|
return reactExports.useEffect(() => {
|
|
121253
121253
|
et.src && ft(p$n(et.src));
|
|
@@ -121263,7 +121263,7 @@ const E$i = (et) => {
|
|
|
121263
121263
|
onClick: () => {
|
|
121264
121264
|
it(!0);
|
|
121265
121265
|
}
|
|
121266
|
-
}, et)), /* @__PURE__ */ jsxRuntimeExports.jsx(x$
|
|
121266
|
+
}, et)), /* @__PURE__ */ jsxRuntimeExports.jsx(x$f, {
|
|
121267
121267
|
image: (et == null ? void 0 : et.src) || "",
|
|
121268
121268
|
visible: tt,
|
|
121269
121269
|
onClose: () => {
|
|
@@ -121289,7 +121289,7 @@ const E$i = (et) => {
|
|
|
121289
121289
|
console.log(et), console.warn("图片加载失败");
|
|
121290
121290
|
}
|
|
121291
121291
|
}));
|
|
121292
|
-
}, B$7 = E$
|
|
121292
|
+
}, B$7 = E$j;
|
|
121293
121293
|
function ownKeys$1(et, tt) {
|
|
121294
121294
|
var it = Object.keys(et);
|
|
121295
121295
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -123616,7 +123616,7 @@ ctx.Prism = {
|
|
|
123616
123616
|
manual: !0,
|
|
123617
123617
|
disableWorkerMessageHandler: !0
|
|
123618
123618
|
};
|
|
123619
|
-
var h$
|
|
123619
|
+
var h$i = hastscript, decode$3 = parseEntities_1, Prism = prismCoreExports, markup = markup_1, css = css_1, clike = clike_1, js$1 = javascript_1;
|
|
123620
123620
|
restore();
|
|
123621
123621
|
var own = {}.hasOwnProperty;
|
|
123622
123622
|
function Refractor() {
|
|
@@ -123686,7 +123686,7 @@ function stringify(et, tt, it) {
|
|
|
123686
123686
|
attributes: {},
|
|
123687
123687
|
language: tt,
|
|
123688
123688
|
parent: it
|
|
123689
|
-
}, et.alias && (dt.classes = dt.classes.concat(et.alias)), refract.hooks.run("wrap", dt), h$
|
|
123689
|
+
}, et.alias && (dt.classes = dt.classes.concat(et.alias)), refract.hooks.run("wrap", dt), h$i(dt.tag + "." + dt.classes.join("."), attributes(dt.attributes), dt.content));
|
|
123690
123690
|
}
|
|
123691
123691
|
function stringifyAll(et, tt) {
|
|
123692
123692
|
for (var it = [], dt = et.length, ft = -1, bt; ++ft < dt; )
|
|
@@ -141857,14 +141857,14 @@ const d$n = (et) => l$n(void 0, [et], function* ({
|
|
|
141857
141857
|
})
|
|
141858
141858
|
});
|
|
141859
141859
|
};
|
|
141860
|
-
var x$
|
|
141860
|
+
var x$e = Object.defineProperty, f$q = Object.defineProperties, h$h = Object.getOwnPropertyDescriptors, t$n = Object.getOwnPropertySymbols, g$k = Object.prototype.hasOwnProperty, p$m = Object.prototype.propertyIsEnumerable, w$e = (et, tt, it) => tt in et ? x$e(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, d$m = (et, tt) => {
|
|
141861
141861
|
for (var it in tt || (tt = {}))
|
|
141862
141862
|
g$k.call(tt, it) && w$e(et, it, tt[it]);
|
|
141863
141863
|
if (t$n)
|
|
141864
141864
|
for (var it of t$n(tt))
|
|
141865
141865
|
p$m.call(tt, it) && w$e(et, it, tt[it]);
|
|
141866
141866
|
return et;
|
|
141867
|
-
}, m$
|
|
141867
|
+
}, m$r = (et, tt) => f$q(et, h$h(tt)), u$y = (et, tt) => {
|
|
141868
141868
|
var it = {};
|
|
141869
141869
|
for (var dt in et)
|
|
141870
141870
|
g$k.call(et, dt) && tt.indexOf(dt) < 0 && (it[dt] = et[dt]);
|
|
@@ -141899,7 +141899,7 @@ const L$c = (et) => {
|
|
|
141899
141899
|
text: String(bt)
|
|
141900
141900
|
})
|
|
141901
141901
|
})]
|
|
141902
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(b$j, m$
|
|
141902
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(b$j, m$r(d$m({
|
|
141903
141903
|
className: "markdown-code-context",
|
|
141904
141904
|
language: $t
|
|
141905
141905
|
}, Nt), {
|
|
@@ -141908,33 +141908,33 @@ const L$c = (et) => {
|
|
|
141908
141908
|
PreTag: "div",
|
|
141909
141909
|
children: String(bt).replace(/\n$/, "")
|
|
141910
141910
|
}))]
|
|
141911
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("code", m$
|
|
141911
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("code", m$r(d$m({
|
|
141912
141912
|
className: ft
|
|
141913
141913
|
}, Nt), {
|
|
141914
141914
|
children: bt
|
|
141915
141915
|
}));
|
|
141916
141916
|
}, y$d = L$c;
|
|
141917
|
-
var j$7 = Object.defineProperty, v$f = Object.defineProperties, A$d = Object.getOwnPropertyDescriptors, w$d = Object.getOwnPropertySymbols, f$p = Object.prototype.hasOwnProperty, m$
|
|
141917
|
+
var j$7 = Object.defineProperty, v$f = Object.defineProperties, A$d = Object.getOwnPropertyDescriptors, w$d = Object.getOwnPropertySymbols, f$p = Object.prototype.hasOwnProperty, m$q = Object.prototype.propertyIsEnumerable, d$l = (et, tt, it) => tt in et ? j$7(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, c$t = (et, tt) => {
|
|
141918
141918
|
for (var it in tt || (tt = {}))
|
|
141919
141919
|
f$p.call(tt, it) && d$l(et, it, tt[it]);
|
|
141920
141920
|
if (w$d)
|
|
141921
141921
|
for (var it of w$d(tt))
|
|
141922
|
-
m$
|
|
141922
|
+
m$q.call(tt, it) && d$l(et, it, tt[it]);
|
|
141923
141923
|
return et;
|
|
141924
|
-
}, u$x = (et, tt) => v$f(et, A$d(tt)), x$
|
|
141924
|
+
}, u$x = (et, tt) => v$f(et, A$d(tt)), x$d = (et, tt) => {
|
|
141925
141925
|
var it = {};
|
|
141926
141926
|
for (var dt in et)
|
|
141927
141927
|
f$p.call(et, dt) && tt.indexOf(dt) < 0 && (it[dt] = et[dt]);
|
|
141928
141928
|
if (et != null && w$d)
|
|
141929
141929
|
for (var dt of w$d(et))
|
|
141930
|
-
tt.indexOf(dt) < 0 && m$
|
|
141930
|
+
tt.indexOf(dt) < 0 && m$q.call(et, dt) && (it[dt] = et[dt]);
|
|
141931
141931
|
return it;
|
|
141932
141932
|
};
|
|
141933
141933
|
const p$l = (et) => {
|
|
141934
141934
|
var tt, it;
|
|
141935
141935
|
const dt = et, {
|
|
141936
141936
|
node: ft
|
|
141937
|
-
} = dt, bt = x$
|
|
141937
|
+
} = dt, bt = x$d(dt, [
|
|
141938
141938
|
"node"
|
|
141939
141939
|
]);
|
|
141940
141940
|
if (ft.tagName === "a" && ((tt = ft.children) == null ? void 0 : tt.length) > 0) {
|
|
@@ -141954,20 +141954,20 @@ const p$l = (et) => {
|
|
|
141954
141954
|
}
|
|
141955
141955
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", c$t({}, bt));
|
|
141956
141956
|
}, M$9 = p$l;
|
|
141957
|
-
var c$s = Object.defineProperty, C$a = Object.defineProperties, T$
|
|
141957
|
+
var c$s = Object.defineProperty, C$a = Object.defineProperties, T$7 = Object.getOwnPropertyDescriptors, m$p = Object.getOwnPropertySymbols, u$w = Object.prototype.hasOwnProperty, h$g = Object.prototype.propertyIsEnumerable, g$j = (et, tt, it) => tt in et ? c$s(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, d$k = (et, tt) => {
|
|
141958
141958
|
for (var it in tt || (tt = {}))
|
|
141959
141959
|
u$w.call(tt, it) && g$j(et, it, tt[it]);
|
|
141960
|
-
if (m$
|
|
141961
|
-
for (var it of m$
|
|
141962
|
-
h$
|
|
141960
|
+
if (m$p)
|
|
141961
|
+
for (var it of m$p(tt))
|
|
141962
|
+
h$g.call(tt, it) && g$j(et, it, tt[it]);
|
|
141963
141963
|
return et;
|
|
141964
|
-
}, n$q = (et, tt) => C$a(et, T$
|
|
141964
|
+
}, n$q = (et, tt) => C$a(et, T$7(tt)), s$l = (et, tt) => {
|
|
141965
141965
|
var it = {};
|
|
141966
141966
|
for (var dt in et)
|
|
141967
141967
|
u$w.call(et, dt) && tt.indexOf(dt) < 0 && (it[dt] = et[dt]);
|
|
141968
|
-
if (et != null && m$
|
|
141969
|
-
for (var dt of m$
|
|
141970
|
-
tt.indexOf(dt) < 0 && h$
|
|
141968
|
+
if (et != null && m$p)
|
|
141969
|
+
for (var dt of m$p(et))
|
|
141970
|
+
tt.indexOf(dt) < 0 && h$g.call(et, dt) && (it[dt] = et[dt]);
|
|
141971
141971
|
return it;
|
|
141972
141972
|
};
|
|
141973
141973
|
function K$4(et) {
|
|
@@ -148452,7 +148452,7 @@ const r$m = (et) => {
|
|
|
148452
148452
|
return "unknown";
|
|
148453
148453
|
const tt = et.toLowerCase();
|
|
148454
148454
|
return ["svg", "png", "gif", "jpg", "jpeg", "tiff", "tif", "bmp"].includes(tt) ? "image" : tt === "mp4" ? "video" : tt === "mp3" ? "audio" : tt === "pdf" ? "pdf" : tt === "markdown" || tt === "md" ? "markdown" : tt === "json" ? "json" : tt === "jsonl" || tt === "josnl" ? "jsonl" : tt === "csv" ? "csv" : tt === "tsv" ? "tsv" : tt === "html" || tt === "htm" ? "html" : tt === "xml" ? "xml" : ["doc", "docx", "ppt", "pptx", "xls", "xlsx", "wps", "odt", "rtf", "ods", "pps", "ppsx", "odp", "key"].includes(tt) ? "office" : ["js", "jsx", "ts", "tsx", "py", "java", "cpp", "c", "cc", "cxx", "h", "hpp", "hxx", "css", "less", "scss", "sass", "vue", "go", "rs", "rb", "php", "swift", "kt", "scala", "sh", "bash", "zsh", "fish", "ps1", "bat", "cmd", "yml", "yaml", "toml", "ini", "conf", "config", "json", "xml", "sql", "r", "m", "mm", "pl", "pm", "lua", "dart", "elm", "clj", "cljs", "ex", "exs", "erl", "hrl", "hs", "ml", "mli", "fs", "fsx", "vb", "cs", "d", "nim", "zig", "v", "odin"].includes(tt) ? "code" : tt === "txt" ? "text" : tt === "zip" ? "zip" : tt === "tex" || tt === "latex" ? "text" : "unknown";
|
|
148455
|
-
}, _$9 = 5242880, I$d = 2097152, S$
|
|
148455
|
+
}, _$9 = 5242880, I$d = 2097152, S$d = 2097152, o$m = 5242880, t$m = 5242880, E$i = 2097152, s$k = 2097152, n$p = 2097152, A$c = 2097152, c$r = 104857600, M$8 = 104857600, X$2 = 1e4, Z$2 = 1e4, L$b = 5e3, e$i = 1e3, N$8 = 5242880, P$8 = 3e4, F$7 = ["text", "json", "csv", "tsv", "markdown", "html", "xml", "jsonl", "image", "pdf", "code"];
|
|
148456
148456
|
var u$v = (et, tt, it) => new Promise((dt, ft) => {
|
|
148457
148457
|
var bt = ($t) => {
|
|
148458
148458
|
try {
|
|
@@ -148469,12 +148469,12 @@ var u$v = (et, tt, it) => new Promise((dt, ft) => {
|
|
|
148469
148469
|
}, It = ($t) => $t.done ? dt($t.value) : Promise.resolve($t.value).then(bt, Nt);
|
|
148470
148470
|
It((it = it.apply(et, tt)).next());
|
|
148471
148471
|
});
|
|
148472
|
-
const m$
|
|
148472
|
+
const m$o = (et) => {
|
|
148473
148473
|
if (et === 0)
|
|
148474
148474
|
return "0 B";
|
|
148475
148475
|
const tt = 1024, it = ["B", "KB", "MB", "GB"], dt = Math.floor(Math.log(et) / Math.log(tt));
|
|
148476
148476
|
return Math.round(et / Math.pow(tt, dt) * 100) / 100 + " " + it[dt];
|
|
148477
|
-
}, S$
|
|
148477
|
+
}, S$c = (et) => u$v(void 0, null, function* () {
|
|
148478
148478
|
let tt = !1, it = 0;
|
|
148479
148479
|
try {
|
|
148480
148480
|
const dt = yield fetch(et, {
|
|
@@ -148498,7 +148498,7 @@ const m$n = (et) => {
|
|
|
148498
148498
|
fileSize: 0
|
|
148499
148499
|
};
|
|
148500
148500
|
}
|
|
148501
|
-
}), x$
|
|
148501
|
+
}), x$c = (et) => u$v(void 0, null, function* () {
|
|
148502
148502
|
try {
|
|
148503
148503
|
const tt = (yield fetch(et, {
|
|
148504
148504
|
method: "HEAD"
|
|
@@ -151999,7 +151999,7 @@ var U$5 = (et, tt, it) => new Promise((dt, ft) => {
|
|
|
151999
151999
|
}, It = ($t) => $t.done ? dt($t.value) : Promise.resolve($t.value).then(bt, Nt);
|
|
152000
152000
|
It((it = it.apply(et, tt)).next());
|
|
152001
152001
|
});
|
|
152002
|
-
const S$
|
|
152002
|
+
const S$b = {
|
|
152003
152003
|
filenameEncoding: "utf-8"
|
|
152004
152004
|
}, Q$3 = (et) => {
|
|
152005
152005
|
const [tt, it] = reactExports.useState([]), [dt, ft] = reactExports.useState(!0), [bt, Nt] = reactExports.useState(null), [It, $t] = reactExports.useState(null), [Dt, jt] = reactExports.useState(null);
|
|
@@ -152019,11 +152019,11 @@ const S$c = {
|
|
|
152019
152019
|
const {
|
|
152020
152020
|
supportsRange: qt,
|
|
152021
152021
|
fileSize: Kt
|
|
152022
|
-
} = yield S$
|
|
152022
|
+
} = yield S$c(et);
|
|
152023
152023
|
if (qt) {
|
|
152024
152024
|
const tr = new HttpRangeReader(et);
|
|
152025
|
-
Xt = new ZipReader(tr, S$
|
|
152026
|
-
const nr = (yield Promise.race([Xt.getEntries(), new Promise((sr, lr) => setTimeout(() => lr(new Error("读取 ZIP 目录结构超时")), P$
|
|
152025
|
+
Xt = new ZipReader(tr, S$b);
|
|
152026
|
+
const nr = (yield Promise.race([Xt.getEntries(), new Promise((sr, lr) => setTimeout(() => lr(new Error("读取 ZIP 目录结构超时")), P$8))])).filter((sr) => !sr.directory).map((sr) => ({
|
|
152027
152027
|
name: sr.filename,
|
|
152028
152028
|
size: sr.uncompressedSize || 0,
|
|
152029
152029
|
isDirectory: !1
|
|
@@ -152036,7 +152036,7 @@ const S$c = {
|
|
|
152036
152036
|
if (!tr.ok)
|
|
152037
152037
|
throw new Error(`HTTP error! status: ${tr.status}`);
|
|
152038
152038
|
const nr = yield tr.blob(), sr = new BlobReader(nr);
|
|
152039
|
-
Xt = new ZipReader(sr, S$
|
|
152039
|
+
Xt = new ZipReader(sr, S$b);
|
|
152040
152040
|
const lr = (yield Xt.getEntries()).filter((ar) => !ar.directory).map((ar) => ({
|
|
152041
152041
|
name: ar.filename,
|
|
152042
152042
|
size: ar.uncompressedSize || 0,
|
|
@@ -152054,14 +152054,14 @@ const S$c = {
|
|
|
152054
152054
|
const Kt = qt.message || qt.toString() || "加载 ZIP 文件失败";
|
|
152055
152055
|
if (Kt.includes("Range") || Kt.includes("range") || Kt.includes("HTTP Range not supported") || Kt.includes("超时"))
|
|
152056
152056
|
try {
|
|
152057
|
-
const tr = yield x$
|
|
152057
|
+
const tr = yield x$c(et);
|
|
152058
152058
|
if (tr > c$r)
|
|
152059
152059
|
throw new Error(`文件过大(${Math.round(tr / 1024 / 1024)}MB),无法通过 Range 请求加载,且文件过大无法下载整个文件预览。请下载后查看。`);
|
|
152060
152060
|
const nr = yield fetch(et);
|
|
152061
152061
|
if (!nr.ok)
|
|
152062
152062
|
throw new Error(`HTTP error! status: ${nr.status}`);
|
|
152063
152063
|
const sr = yield nr.blob(), lr = new BlobReader(sr);
|
|
152064
|
-
Xt = new ZipReader(lr, S$
|
|
152064
|
+
Xt = new ZipReader(lr, S$b);
|
|
152065
152065
|
const ar = (yield Xt.getEntries()).filter((ur) => !ur.directory).map((ur) => ({
|
|
152066
152066
|
name: ur.filename,
|
|
152067
152067
|
size: ur.uncompressedSize || 0,
|
|
@@ -152089,13 +152089,13 @@ const S$c = {
|
|
|
152089
152089
|
let qt = null, Kt;
|
|
152090
152090
|
try {
|
|
152091
152091
|
const ar = new HttpRangeReader(et);
|
|
152092
|
-
qt = new ZipReader(ar, S$
|
|
152092
|
+
qt = new ZipReader(ar, S$b), Kt = (yield qt.getEntries()).find((ur) => ur.filename === Xt);
|
|
152093
152093
|
} catch (ar) {
|
|
152094
152094
|
const ur = yield fetch(et);
|
|
152095
152095
|
if (!ur.ok)
|
|
152096
152096
|
throw new Error(`HTTP error! status: ${ur.status}`);
|
|
152097
152097
|
const dr = yield ur.blob(), pr = new BlobReader(dr);
|
|
152098
|
-
qt = new ZipReader(pr, S$
|
|
152098
|
+
qt = new ZipReader(pr, S$b), Kt = (yield qt.getEntries()).find((gr) => gr.filename === Xt);
|
|
152099
152099
|
}
|
|
152100
152100
|
if (!Kt)
|
|
152101
152101
|
throw new Error("文件不存在");
|
|
@@ -152127,7 +152127,7 @@ const S$c = {
|
|
|
152127
152127
|
handleFileClick: Ot,
|
|
152128
152128
|
setSelectedZipFile: $t
|
|
152129
152129
|
};
|
|
152130
|
-
}, m$
|
|
152130
|
+
}, m$n = ({
|
|
152131
152131
|
url: et,
|
|
152132
152132
|
fileName: tt
|
|
152133
152133
|
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(Button$2, {
|
|
@@ -152166,7 +152166,7 @@ const S$c = {
|
|
|
152166
152166
|
marginBottom: 16,
|
|
152167
152167
|
flexShrink: 0
|
|
152168
152168
|
},
|
|
152169
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152169
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152170
152170
|
url: it,
|
|
152171
152171
|
fileName: dt
|
|
152172
152172
|
})
|
|
@@ -152189,13 +152189,13 @@ const S$c = {
|
|
|
152189
152189
|
if (!(et != null && et.content))
|
|
152190
152190
|
return null;
|
|
152191
152191
|
const ft = tt || new Blob([et.content]).size;
|
|
152192
|
-
if (ft > S$
|
|
152192
|
+
if (ft > S$d)
|
|
152193
152193
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(K$5, {
|
|
152194
152194
|
message: "JSON文件过大",
|
|
152195
152195
|
description: `文件大小 ${Math.round(ft / 1024 / 1024)}MB,无法预览。请下载后查看。`,
|
|
152196
152196
|
type: "warning",
|
|
152197
152197
|
showIcon: !0,
|
|
152198
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152198
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152199
152199
|
url: it,
|
|
152200
152200
|
fileName: dt
|
|
152201
152201
|
})
|
|
@@ -152211,7 +152211,7 @@ const S$c = {
|
|
|
152211
152211
|
message: "JSON解析失败",
|
|
152212
152212
|
description: "文件内容不是有效的JSON格式",
|
|
152213
152213
|
type: "error",
|
|
152214
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152214
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152215
152215
|
url: it,
|
|
152216
152216
|
fileName: dt
|
|
152217
152217
|
})
|
|
@@ -152232,7 +152232,7 @@ const S$c = {
|
|
|
152232
152232
|
description: `文件大小 ${Math.round(ft / 1024 / 1024)}MB,无法预览。请下载后查看。`,
|
|
152233
152233
|
type: "warning",
|
|
152234
152234
|
showIcon: !0,
|
|
152235
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152235
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152236
152236
|
url: it,
|
|
152237
152237
|
fileName: dt
|
|
152238
152238
|
})
|
|
@@ -152270,7 +152270,7 @@ const S$c = {
|
|
|
152270
152270
|
marginBottom: 16,
|
|
152271
152271
|
flexShrink: 0
|
|
152272
152272
|
},
|
|
152273
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152273
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152274
152274
|
url: it,
|
|
152275
152275
|
fileName: dt
|
|
152276
152276
|
})
|
|
@@ -152297,7 +152297,7 @@ const S$c = {
|
|
|
152297
152297
|
message: "CSV解析失败",
|
|
152298
152298
|
description: "文件内容不是有效的CSV格式",
|
|
152299
152299
|
type: "error",
|
|
152300
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152300
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152301
152301
|
url: it,
|
|
152302
152302
|
fileName: dt
|
|
152303
152303
|
})
|
|
@@ -152318,7 +152318,7 @@ const S$c = {
|
|
|
152318
152318
|
description: `文件大小 ${Math.round(ft / 1024 / 1024)}MB,无法预览。请下载后查看。`,
|
|
152319
152319
|
type: "warning",
|
|
152320
152320
|
showIcon: !0,
|
|
152321
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152321
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152322
152322
|
url: it,
|
|
152323
152323
|
fileName: dt
|
|
152324
152324
|
})
|
|
@@ -152356,7 +152356,7 @@ const S$c = {
|
|
|
152356
152356
|
marginBottom: 16,
|
|
152357
152357
|
flexShrink: 0
|
|
152358
152358
|
},
|
|
152359
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152359
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152360
152360
|
url: it,
|
|
152361
152361
|
fileName: dt
|
|
152362
152362
|
})
|
|
@@ -152383,13 +152383,13 @@ const S$c = {
|
|
|
152383
152383
|
message: "TSV解析失败",
|
|
152384
152384
|
description: "文件内容不是有效的TSV格式",
|
|
152385
152385
|
type: "error",
|
|
152386
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152386
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152387
152387
|
url: it,
|
|
152388
152388
|
fileName: dt
|
|
152389
152389
|
})
|
|
152390
152390
|
});
|
|
152391
152391
|
}
|
|
152392
|
-
}, q$
|
|
152392
|
+
}, q$6 = ({
|
|
152393
152393
|
fileContent: et,
|
|
152394
152394
|
fileSize: tt,
|
|
152395
152395
|
url: it,
|
|
@@ -152398,13 +152398,13 @@ const S$c = {
|
|
|
152398
152398
|
if (!(et != null && et.content))
|
|
152399
152399
|
return null;
|
|
152400
152400
|
const ft = tt || new Blob([et.content]).size;
|
|
152401
|
-
if (ft > E$
|
|
152401
|
+
if (ft > E$i)
|
|
152402
152402
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(K$5, {
|
|
152403
152403
|
message: "JSONL文件过大",
|
|
152404
152404
|
description: `文件大小 ${Math.round(ft / 1024 / 1024)}MB,无法预览。请下载后查看。`,
|
|
152405
152405
|
type: "warning",
|
|
152406
152406
|
showIcon: !0,
|
|
152407
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152407
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152408
152408
|
url: it,
|
|
152409
152409
|
fileName: dt
|
|
152410
152410
|
})
|
|
@@ -152429,7 +152429,7 @@ const S$c = {
|
|
|
152429
152429
|
marginBottom: 16,
|
|
152430
152430
|
flexShrink: 0
|
|
152431
152431
|
},
|
|
152432
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152432
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152433
152433
|
url: it,
|
|
152434
152434
|
fileName: dt
|
|
152435
152435
|
})
|
|
@@ -152460,7 +152460,7 @@ const S$c = {
|
|
|
152460
152460
|
message: "JSONL解析失败",
|
|
152461
152461
|
description: "文件内容解析出错",
|
|
152462
152462
|
type: "error",
|
|
152463
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152463
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152464
152464
|
url: it,
|
|
152465
152465
|
fileName: dt
|
|
152466
152466
|
})
|
|
@@ -152480,7 +152480,7 @@ const S$c = {
|
|
|
152480
152480
|
description: `文件大小 ${Math.round(ft / 1024 / 1024)}MB,无法预览。请下载后查看。`,
|
|
152481
152481
|
type: "warning",
|
|
152482
152482
|
showIcon: !0,
|
|
152483
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152483
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152484
152484
|
url: it,
|
|
152485
152485
|
fileName: dt
|
|
152486
152486
|
})
|
|
@@ -152516,7 +152516,7 @@ const S$c = {
|
|
|
152516
152516
|
description: `文件大小 ${Math.round(ft / 1024 / 1024)}MB,无法预览。请下载后查看。`,
|
|
152517
152517
|
type: "warning",
|
|
152518
152518
|
showIcon: !0,
|
|
152519
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152519
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152520
152520
|
url: it,
|
|
152521
152521
|
fileName: dt
|
|
152522
152522
|
})
|
|
@@ -152560,7 +152560,7 @@ const S$c = {
|
|
|
152560
152560
|
marginBottom: 16,
|
|
152561
152561
|
flexShrink: 0
|
|
152562
152562
|
},
|
|
152563
|
-
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$
|
|
152563
|
+
action: /* @__PURE__ */ jsxRuntimeExports.jsx(m$n, {
|
|
152564
152564
|
url: it,
|
|
152565
152565
|
fileName: dt
|
|
152566
152566
|
})
|
|
@@ -152735,7 +152735,7 @@ const S$c = {
|
|
|
152735
152735
|
dataIndex: "size",
|
|
152736
152736
|
key: "size",
|
|
152737
152737
|
width: 80,
|
|
152738
|
-
render: (It) => m$
|
|
152738
|
+
render: (It) => m$o(It)
|
|
152739
152739
|
}]
|
|
152740
152740
|
})
|
|
152741
152741
|
})]
|
|
@@ -166242,7 +166242,7 @@ var r$k, o$l = t$j(reactExports), n$m = function() {
|
|
|
166242
166242
|
onClickItem: dr,
|
|
166243
166243
|
onClickTitle: ur,
|
|
166244
166244
|
onToggleSubItems: lr
|
|
166245
|
-
}) : pr(dr, o$l.createElement(o$l.Fragment, null, gr(o$l.createElement(a$n, null), o$l.createElement(i$n, null)), mr(ur))), sr && tr && o$l.createElement(m$
|
|
166245
|
+
}) : pr(dr, o$l.createElement(o$l.Fragment, null, gr(o$l.createElement(a$n, null), o$l.createElement(i$n, null)), mr(ur))), sr && tr && o$l.createElement(m$m, {
|
|
166246
166246
|
bookmarks: tt.items,
|
|
166247
166247
|
depth: it + 1,
|
|
166248
166248
|
doc: dt,
|
|
@@ -166252,7 +166252,7 @@ var r$k, o$l = t$j(reactExports), n$m = function() {
|
|
|
166252
166252
|
renderBookmarkItem: $t,
|
|
166253
166253
|
store: Dt
|
|
166254
166254
|
}));
|
|
166255
|
-
}, m$
|
|
166255
|
+
}, m$m = function(et) {
|
|
166256
166256
|
var tt = et.bookmarks, it = et.depth, dt = it === void 0 ? 0 : it, ft = et.doc, bt = et.isBookmarkExpanded, Nt = et.isRoot, It = et.pathFromRoot, $t = et.renderBookmarkItem, Dt = et.store;
|
|
166257
166257
|
return o$l.createElement("ul", {
|
|
166258
166258
|
className: "rpv-bookmark__list",
|
|
@@ -166343,7 +166343,7 @@ var l$m = function(et) {
|
|
|
166343
166343
|
}
|
|
166344
166344
|
}, []), o$l.createElement("div", {
|
|
166345
166345
|
ref: Nt
|
|
166346
|
-
}, o$l.createElement(m$
|
|
166346
|
+
}, o$l.createElement(m$m, {
|
|
166347
166347
|
bookmarks: tt,
|
|
166348
166348
|
depth: 0,
|
|
166349
166349
|
doc: it,
|
|
@@ -167247,7 +167247,7 @@ var n$l = t$i(reactExports), r$j = function() {
|
|
|
167247
167247
|
})({
|
|
167248
167248
|
onClick: $t ? It : Nt
|
|
167249
167249
|
});
|
|
167250
|
-
}, S$
|
|
167250
|
+
}, S$a = function(et) {
|
|
167251
167251
|
var tt = et.onClick, it = n$l.useContext(e$f.LocalizationContext).l10n, dt = it && it.fullScreen ? it.fullScreen.enterFullScreen : "Full screen";
|
|
167252
167252
|
return n$l.createElement(e$f.MenuItem, {
|
|
167253
167253
|
icon: n$l.createElement(l$l, null),
|
|
@@ -167268,7 +167268,7 @@ var n$l = t$i(reactExports), r$j = function() {
|
|
|
167268
167268
|
testId: "full-screen__exit-button",
|
|
167269
167269
|
onClick: tt
|
|
167270
167270
|
}, n$l.createElement(r$j, null)));
|
|
167271
|
-
}, m$
|
|
167271
|
+
}, m$l = function(et) {
|
|
167272
167272
|
var tt = et.children, it = et.getFullScreenTarget, dt = et.store, ft = f$n(it, dt), bt = ft.enterFullScreen, Nt = ft.exitFullScreen, It = ft.isFullScreen;
|
|
167273
167273
|
return It && (tt || function($t) {
|
|
167274
167274
|
return n$l.createElement(d$j, {
|
|
@@ -167277,7 +167277,7 @@ var n$l = t$i(reactExports), r$j = function() {
|
|
|
167277
167277
|
})({
|
|
167278
167278
|
onClick: It ? Nt : bt
|
|
167279
167279
|
});
|
|
167280
|
-
}, E$
|
|
167280
|
+
}, E$h = function(et) {
|
|
167281
167281
|
var tt = et.store, it = et.onEnterFullScreen, dt = et.onExitFullScreen, ft = n$l.useState(tt.get("fullScreenMode")), bt = ft[0], Nt = ft[1], It = n$l.useCallback(function($t) {
|
|
167282
167282
|
Nt($t);
|
|
167283
167283
|
}, []);
|
|
@@ -167338,7 +167338,7 @@ fullScreen_min.ExitFullScreenIcon = r$j, fullScreen_min.FullScreenIcon = l$l, fu
|
|
|
167338
167338
|
store: dt
|
|
167339
167339
|
}));
|
|
167340
167340
|
}, bt = function() {
|
|
167341
|
-
return n$l.createElement(m$
|
|
167341
|
+
return n$l.createElement(m$l, {
|
|
167342
167342
|
getFullScreenTarget: tt,
|
|
167343
167343
|
store: dt
|
|
167344
167344
|
}, et == null ? void 0 : et.renderExitFullScreenButton);
|
|
@@ -167356,7 +167356,7 @@ fullScreen_min.ExitFullScreenIcon = r$j, fullScreen_min.FullScreenIcon = l$l, fu
|
|
|
167356
167356
|
containerRef: Nt.containerRef,
|
|
167357
167357
|
getFullScreenTarget: tt,
|
|
167358
167358
|
store: dt
|
|
167359
|
-
}), n$l.createElement(E$
|
|
167359
|
+
}), n$l.createElement(E$h, {
|
|
167360
167360
|
store: dt,
|
|
167361
167361
|
onEnterFullScreen: it.onEnterFullScreen,
|
|
167362
167362
|
onExitFullScreen: it.onExitFullScreen
|
|
@@ -167372,7 +167372,7 @@ fullScreen_min.ExitFullScreenIcon = r$j, fullScreen_min.FullScreenIcon = l$l, fu
|
|
|
167372
167372
|
},
|
|
167373
167373
|
EnterFullScreenMenuItem: function(Nt) {
|
|
167374
167374
|
return n$l.createElement(ft, null, function(It) {
|
|
167375
|
-
return n$l.createElement(S$
|
|
167375
|
+
return n$l.createElement(S$a, {
|
|
167376
167376
|
onClick: function() {
|
|
167377
167377
|
It.onClick(), Nt.onClick();
|
|
167378
167378
|
}
|
|
@@ -167831,7 +167831,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167831
167831
|
}, f$l = {
|
|
167832
167832
|
left: 0,
|
|
167833
167833
|
top: 8
|
|
167834
|
-
}, m$
|
|
167834
|
+
}, m$k = function(et) {
|
|
167835
167835
|
var tt = et.isDisabled, it = et.onClick, dt = n$i.useContext(e$c.LocalizationContext).l10n, ft = dt && dt.pageNavigation ? dt.pageNavigation.goToFirstPage : "First page";
|
|
167836
167836
|
return n$i.createElement(e$c.Tooltip, {
|
|
167837
167837
|
ariaControlsSuffix: "page-navigation-first",
|
|
@@ -167850,7 +167850,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167850
167850
|
}, p$i = function(et) {
|
|
167851
167851
|
var tt = et.children, it = et.store;
|
|
167852
167852
|
return (tt || function(dt) {
|
|
167853
|
-
return n$i.createElement(m$
|
|
167853
|
+
return n$i.createElement(m$k, {
|
|
167854
167854
|
isDisabled: dt.isDisabled,
|
|
167855
167855
|
onClick: dt.onClick
|
|
167856
167856
|
});
|
|
@@ -167872,7 +167872,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167872
167872
|
}, d$h = {
|
|
167873
167873
|
left: 0,
|
|
167874
167874
|
top: 8
|
|
167875
|
-
}, P$
|
|
167875
|
+
}, P$7 = function(et) {
|
|
167876
167876
|
var tt = et.isDisabled, it = et.onClick, dt = n$i.useContext(e$c.LocalizationContext).l10n, ft = dt && dt.pageNavigation ? dt.pageNavigation.goToLastPage : "Last page";
|
|
167877
167877
|
return n$i.createElement(e$c.Tooltip, {
|
|
167878
167878
|
ariaControlsSuffix: "page-navigation-last",
|
|
@@ -167891,7 +167891,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167891
167891
|
}, b$h = function(et) {
|
|
167892
167892
|
var tt = et.children, it = et.store, dt = i$j(it).currentPage, ft = u$q(it).numberOfPages;
|
|
167893
167893
|
return (tt || function(bt) {
|
|
167894
|
-
return n$i.createElement(P$
|
|
167894
|
+
return n$i.createElement(P$7, {
|
|
167895
167895
|
isDisabled: bt.isDisabled,
|
|
167896
167896
|
onClick: bt.onClick
|
|
167897
167897
|
});
|
|
@@ -167902,7 +167902,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167902
167902
|
bt && bt(ft - 1);
|
|
167903
167903
|
}
|
|
167904
167904
|
});
|
|
167905
|
-
}, E$
|
|
167905
|
+
}, E$g = function(et) {
|
|
167906
167906
|
var tt = et.isDisabled, it = et.onClick, dt = n$i.useContext(e$c.LocalizationContext).l10n, ft = dt && dt.pageNavigation ? dt.pageNavigation.goToLastPage : "Last page";
|
|
167907
167907
|
return n$i.createElement(e$c.MenuItem, {
|
|
167908
167908
|
icon: n$i.createElement(a$j, null),
|
|
@@ -167943,7 +167943,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167943
167943
|
dt && dt();
|
|
167944
167944
|
}
|
|
167945
167945
|
});
|
|
167946
|
-
}, T$
|
|
167946
|
+
}, T$6 = function(et) {
|
|
167947
167947
|
var tt = et.isDisabled, it = et.onClick, dt = n$i.useContext(e$c.LocalizationContext).l10n, ft = dt && dt.pageNavigation ? dt.pageNavigation.goToNextPage : "Next page";
|
|
167948
167948
|
return n$i.createElement(e$c.MenuItem, {
|
|
167949
167949
|
icon: n$i.createElement(r$g, null),
|
|
@@ -167951,7 +167951,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167951
167951
|
testId: "page-navigation__next-menu",
|
|
167952
167952
|
onClick: it
|
|
167953
167953
|
}, ft);
|
|
167954
|
-
}, x$
|
|
167954
|
+
}, x$b = function() {
|
|
167955
167955
|
return n$i.createElement(e$c.Icon, {
|
|
167956
167956
|
size: 16
|
|
167957
167957
|
}, n$i.createElement("path", {
|
|
@@ -167971,7 +167971,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167971
167971
|
isDisabled: tt,
|
|
167972
167972
|
testId: "page-navigation__previous-button",
|
|
167973
167973
|
onClick: it
|
|
167974
|
-
}, n$i.createElement(x$
|
|
167974
|
+
}, n$i.createElement(x$b, null)),
|
|
167975
167975
|
content: function() {
|
|
167976
167976
|
return ft;
|
|
167977
167977
|
},
|
|
@@ -167994,12 +167994,12 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
167994
167994
|
}, I$c = function(et) {
|
|
167995
167995
|
var tt = et.isDisabled, it = et.onClick, dt = n$i.useContext(e$c.LocalizationContext).l10n, ft = dt && dt.pageNavigation ? dt.pageNavigation.goToPreviousPage : "Previous page";
|
|
167996
167996
|
return n$i.createElement(e$c.MenuItem, {
|
|
167997
|
-
icon: n$i.createElement(x$
|
|
167997
|
+
icon: n$i.createElement(x$b, null),
|
|
167998
167998
|
isDisabled: tt,
|
|
167999
167999
|
testId: "page-navigation__previous-menu",
|
|
168000
168000
|
onClick: it
|
|
168001
168001
|
}, ft);
|
|
168002
|
-
}, h$
|
|
168002
|
+
}, h$f = function(et) {
|
|
168003
168003
|
var tt = et.children, it = et.store, dt = u$q(it).numberOfPages;
|
|
168004
168004
|
return tt ? tt({
|
|
168005
168005
|
numberOfPages: dt
|
|
@@ -168046,7 +168046,7 @@ var n$i = t$f(reactExports), a$j = function() {
|
|
|
168046
168046
|
};
|
|
168047
168047
|
}, [tt.current]), n$i.createElement(n$i.Fragment, null);
|
|
168048
168048
|
};
|
|
168049
|
-
pageNavigation_min.DownArrowIcon = a$j, pageNavigation_min.NextIcon = r$g, pageNavigation_min.PreviousIcon = x$
|
|
168049
|
+
pageNavigation_min.DownArrowIcon = a$j, pageNavigation_min.NextIcon = r$g, pageNavigation_min.PreviousIcon = x$b, pageNavigation_min.UpArrowIcon = g$h, pageNavigation_min.pageNavigationPlugin = function(et) {
|
|
168050
168050
|
var tt = n$i.useMemo(function() {
|
|
168051
168051
|
return Object.assign({}, {
|
|
168052
168052
|
enableShortcuts: !0
|
|
@@ -168118,7 +168118,7 @@ pageNavigation_min.DownArrowIcon = a$j, pageNavigation_min.NextIcon = r$g, pageN
|
|
|
168118
168118
|
GoToFirstPage: dt,
|
|
168119
168119
|
GoToFirstPageButton: function() {
|
|
168120
168120
|
return n$i.createElement(dt, null, function(It) {
|
|
168121
|
-
return n$i.createElement(m$
|
|
168121
|
+
return n$i.createElement(m$k, o$h({}, It));
|
|
168122
168122
|
});
|
|
168123
168123
|
},
|
|
168124
168124
|
GoToFirstPageMenuItem: function(It) {
|
|
@@ -168134,12 +168134,12 @@ pageNavigation_min.DownArrowIcon = a$j, pageNavigation_min.NextIcon = r$g, pageN
|
|
|
168134
168134
|
GoToLastPage: ft,
|
|
168135
168135
|
GoToLastPageButton: function() {
|
|
168136
168136
|
return n$i.createElement(ft, null, function(It) {
|
|
168137
|
-
return n$i.createElement(P$
|
|
168137
|
+
return n$i.createElement(P$7, o$h({}, It));
|
|
168138
168138
|
});
|
|
168139
168139
|
},
|
|
168140
168140
|
GoToLastPageMenuItem: function(It) {
|
|
168141
168141
|
return n$i.createElement(ft, null, function($t) {
|
|
168142
|
-
return n$i.createElement(E$
|
|
168142
|
+
return n$i.createElement(E$g, {
|
|
168143
168143
|
isDisabled: $t.isDisabled,
|
|
168144
168144
|
onClick: function() {
|
|
168145
168145
|
$t.onClick(), It.onClick();
|
|
@@ -168155,7 +168155,7 @@ pageNavigation_min.DownArrowIcon = a$j, pageNavigation_min.NextIcon = r$g, pageN
|
|
|
168155
168155
|
},
|
|
168156
168156
|
GoToNextPageMenuItem: function(It) {
|
|
168157
168157
|
return n$i.createElement(bt, null, function($t) {
|
|
168158
|
-
return n$i.createElement(T$
|
|
168158
|
+
return n$i.createElement(T$6, {
|
|
168159
168159
|
isDisabled: $t.isDisabled,
|
|
168160
168160
|
onClick: function() {
|
|
168161
168161
|
$t.onClick(), It.onClick();
|
|
@@ -168180,7 +168180,7 @@ pageNavigation_min.DownArrowIcon = a$j, pageNavigation_min.NextIcon = r$g, pageN
|
|
|
168180
168180
|
});
|
|
168181
168181
|
},
|
|
168182
168182
|
NumberOfPages: function(It) {
|
|
168183
|
-
return n$i.createElement(h$
|
|
168183
|
+
return n$i.createElement(h$f, o$h({}, It, {
|
|
168184
168184
|
store: it
|
|
168185
168185
|
}));
|
|
168186
168186
|
}
|
|
@@ -168283,7 +168283,7 @@ var l$h = function(et) {
|
|
|
168283
168283
|
},
|
|
168284
168284
|
isOpened: !0
|
|
168285
168285
|
});
|
|
168286
|
-
}, m$
|
|
168286
|
+
}, m$j = function(et) {
|
|
168287
168287
|
var tt = et.numLoadedPages, it = et.numPages, dt = et.onCancel, ft = a$i.useContext(e$b.LocalizationContext).l10n, bt = a$i.useContext(e$b.ThemeContext).direction === e$b.TextDirection.RightToLeft, Nt = Math.floor(100 * tt / it);
|
|
168288
168288
|
return a$i.createElement("div", {
|
|
168289
168289
|
className: "rpv-print__progress"
|
|
@@ -168414,7 +168414,7 @@ var l$h = function(et) {
|
|
|
168414
168414
|
}, []), a$i.createElement(a$i.Fragment, null, Dt === o$g.CheckingPermission && a$i.createElement(p$h, {
|
|
168415
168415
|
doc: tt,
|
|
168416
168416
|
store: It
|
|
168417
|
-
}), Dt === o$g.Preparing && (ft ? ft(Xt, tr, nr) : a$i.createElement(m$
|
|
168417
|
+
}), Dt === o$g.Preparing && (ft ? ft(Xt, tr, nr) : a$i.createElement(m$j, {
|
|
168418
168418
|
numLoadedPages: Xt,
|
|
168419
168419
|
numPages: tr,
|
|
168420
168420
|
onCancel: nr
|
|
@@ -168432,14 +168432,14 @@ var l$h = function(et) {
|
|
|
168432
168432
|
lr <= tr && (qt(lr), lr === tr && jt(o$g.Ready));
|
|
168433
168433
|
}
|
|
168434
168434
|
}));
|
|
168435
|
-
}, h$
|
|
168435
|
+
}, h$e = function(et) {
|
|
168436
168436
|
var tt = et.onClick, it = a$i.useContext(e$b.LocalizationContext).l10n, dt = it && it.print ? it.print.print : "Print";
|
|
168437
168437
|
return a$i.createElement(e$b.MenuItem, {
|
|
168438
168438
|
icon: a$i.createElement(i$i, null),
|
|
168439
168439
|
testId: "print__menu",
|
|
168440
168440
|
onClick: tt
|
|
168441
168441
|
}, dt);
|
|
168442
|
-
}, E$
|
|
168442
|
+
}, E$f = function(et) {
|
|
168443
168443
|
var tt = et.containerRef, it = et.store, dt = function(ft) {
|
|
168444
168444
|
if (!ft.shiftKey && !ft.altKey && ft.key === "p" && (e$b.isMac() ? ft.metaKey : ft.ctrlKey)) {
|
|
168445
168445
|
var bt = tt.current;
|
|
@@ -168514,7 +168514,7 @@ print_min.PrintIcon = i$i, print_min.getAllPagesNumbers = function(et) {
|
|
|
168514
168514
|
},
|
|
168515
168515
|
renderViewer: function(ft) {
|
|
168516
168516
|
var bt = ft.slot, Nt = {
|
|
168517
|
-
children: a$i.createElement(a$i.Fragment, null, tt.enableShortcuts && a$i.createElement(E$
|
|
168517
|
+
children: a$i.createElement(a$i.Fragment, null, tt.enableShortcuts && a$i.createElement(E$f, {
|
|
168518
168518
|
containerRef: ft.containerRef,
|
|
168519
168519
|
store: it
|
|
168520
168520
|
}), a$i.createElement(v$c, {
|
|
@@ -168537,7 +168537,7 @@ print_min.PrintIcon = i$i, print_min.getAllPagesNumbers = function(et) {
|
|
|
168537
168537
|
},
|
|
168538
168538
|
PrintMenuItem: function(ft) {
|
|
168539
168539
|
return a$i.createElement(dt, null, function(bt) {
|
|
168540
|
-
return a$i.createElement(h$
|
|
168540
|
+
return a$i.createElement(h$e, {
|
|
168541
168541
|
onClick: function() {
|
|
168542
168542
|
bt.onClick(), ft.onClick();
|
|
168543
168543
|
}
|
|
@@ -168715,7 +168715,7 @@ var r$e = t$d(reactExports), n$g = function() {
|
|
|
168715
168715
|
},
|
|
168716
168716
|
offset: s$e
|
|
168717
168717
|
});
|
|
168718
|
-
}, m$
|
|
168718
|
+
}, m$i = function(et) {
|
|
168719
168719
|
var tt = et.children, it = et.store, dt = function(Nt) {
|
|
168720
168720
|
var It = r$e.useState(Nt.get("doc")), $t = It[0], Dt = It[1], jt = function(Ot) {
|
|
168721
168721
|
Dt(Ot);
|
|
@@ -168761,7 +168761,7 @@ properties_min.InfoIcon = n$g, properties_min.propertiesPlugin = function() {
|
|
|
168761
168761
|
fileName: ""
|
|
168762
168762
|
});
|
|
168763
168763
|
}, []), tt = function(it) {
|
|
168764
|
-
return r$e.createElement(m$
|
|
168764
|
+
return r$e.createElement(m$i, o$f({}, it, {
|
|
168765
168765
|
store: et
|
|
168766
168766
|
}));
|
|
168767
168767
|
};
|
|
@@ -168774,7 +168774,7 @@ properties_min.InfoIcon = n$g, properties_min.propertiesPlugin = function() {
|
|
|
168774
168774
|
},
|
|
168775
168775
|
ShowProperties: tt,
|
|
168776
168776
|
ShowPropertiesButton: function() {
|
|
168777
|
-
return r$e.createElement(m$
|
|
168777
|
+
return r$e.createElement(m$i, {
|
|
168778
168778
|
store: et
|
|
168779
168779
|
});
|
|
168780
168780
|
},
|
|
@@ -169075,7 +169075,7 @@ var t$b = o$d(reactExports), l$e = function() {
|
|
|
169075
169075
|
label: bt,
|
|
169076
169076
|
onClick: dt
|
|
169077
169077
|
});
|
|
169078
|
-
}, m$
|
|
169078
|
+
}, m$h = {
|
|
169079
169079
|
left: 0,
|
|
169080
169080
|
top: 8
|
|
169081
169081
|
}, M$7 = function(et) {
|
|
@@ -169111,7 +169111,7 @@ var t$b = o$d(reactExports), l$e = function() {
|
|
|
169111
169111
|
content: function() {
|
|
169112
169112
|
return Nt.label;
|
|
169113
169113
|
},
|
|
169114
|
-
offset: m$
|
|
169114
|
+
offset: m$h
|
|
169115
169115
|
});
|
|
169116
169116
|
});
|
|
169117
169117
|
}, f$i = function(et) {
|
|
@@ -169136,7 +169136,7 @@ var t$b = o$d(reactExports), l$e = function() {
|
|
|
169136
169136
|
}, []), {
|
|
169137
169137
|
viewMode: it
|
|
169138
169138
|
};
|
|
169139
|
-
}, S$
|
|
169139
|
+
}, S$9 = function(et) {
|
|
169140
169140
|
var tt = et.children, it = et.mode, dt = et.store, ft = w$c(dt).viewMode, bt = f$i(dt).scrollMode === it, Nt = (it === e$8.ScrollMode.Horizontal || it === e$8.ScrollMode.Wrapped) && ft !== e$8.ViewMode.SinglePage;
|
|
169141
169141
|
return (tt || function(It) {
|
|
169142
169142
|
return t$b.createElement(M$7, {
|
|
@@ -169181,7 +169181,7 @@ var t$b = o$d(reactExports), l$e = function() {
|
|
|
169181
169181
|
onClick: Nt.onClick
|
|
169182
169182
|
}, Nt.label);
|
|
169183
169183
|
});
|
|
169184
|
-
}, h$
|
|
169184
|
+
}, h$d = function(et, tt) {
|
|
169185
169185
|
et.get("switchViewMode")(tt);
|
|
169186
169186
|
var it = et.get("scrollMode");
|
|
169187
169187
|
it !== e$8.ScrollMode.Horizontal && it !== e$8.ScrollMode.Wrapped || tt === e$8.ViewMode.SinglePage || et.get("switchScrollMode")(e$8.ScrollMode.Vertical);
|
|
@@ -169253,7 +169253,7 @@ var t$b = o$d(reactExports), l$e = function() {
|
|
|
169253
169253
|
isSelected: Nt,
|
|
169254
169254
|
mode: it,
|
|
169255
169255
|
onClick: function() {
|
|
169256
|
-
h$
|
|
169256
|
+
h$d(dt, it);
|
|
169257
169257
|
}
|
|
169258
169258
|
});
|
|
169259
169259
|
}, C$7 = function(et) {
|
|
@@ -169293,7 +169293,7 @@ scrollMode_min.DualPageCoverViewModeIcon = l$e, scrollMode_min.DualPageViewModeI
|
|
|
169293
169293
|
}
|
|
169294
169294
|
});
|
|
169295
169295
|
}, []), tt = function(dt) {
|
|
169296
|
-
return t$b.createElement(S$
|
|
169296
|
+
return t$b.createElement(S$9, i$f({}, dt, {
|
|
169297
169297
|
store: et
|
|
169298
169298
|
}));
|
|
169299
169299
|
}, it = function(dt) {
|
|
@@ -169312,7 +169312,7 @@ scrollMode_min.DualPageCoverViewModeIcon = l$e, scrollMode_min.DualPageViewModeI
|
|
|
169312
169312
|
a$f(et, dt);
|
|
169313
169313
|
},
|
|
169314
169314
|
switchViewMode: function(dt) {
|
|
169315
|
-
h$
|
|
169315
|
+
h$d(et, dt);
|
|
169316
169316
|
},
|
|
169317
169317
|
SwitchScrollMode: tt,
|
|
169318
169318
|
SwitchScrollModeButton: function(dt) {
|
|
@@ -169456,7 +169456,7 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169456
169456
|
}, l$d = function(et) {
|
|
169457
169457
|
var tt = et.parentNode;
|
|
169458
169458
|
tt && tt.removeChild(et);
|
|
169459
|
-
}, h$
|
|
169459
|
+
}, h$c = function(et) {
|
|
169460
169460
|
var tt = et.parentNode;
|
|
169461
169461
|
if (tt) {
|
|
169462
169462
|
var it = document.createRange();
|
|
@@ -169524,7 +169524,7 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169524
169524
|
var Or = document.createElement("span");
|
|
169525
169525
|
jr.surroundContents(Or);
|
|
169526
169526
|
var zr = Or.getBoundingClientRect(), Lr = $r.getBoundingClientRect(), Fr = Lr.height, Qr = Lr.width, Vr = 100 * (zr.left - Lr.left) / Qr, no = 100 * (zr.top - Lr.top) / Fr, Jr = 100 * zr.height / Fr, Hr = 100 * zr.width / Qr;
|
|
169527
|
-
return h$
|
|
169527
|
+
return h$c(Or), {
|
|
169528
169528
|
keyword: Rr,
|
|
169529
169529
|
keywordStr: _r,
|
|
169530
169530
|
numPages: tt,
|
|
@@ -169641,7 +169641,7 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169641
169641
|
matchCase: tt || !1,
|
|
169642
169642
|
wholeWords: it || !1
|
|
169643
169643
|
}) : (tt !== void 0 && (et.matchCase = tt), it !== void 0 && (et.wholeWords = it), p$e(et));
|
|
169644
|
-
}, m$
|
|
169644
|
+
}, m$g = function(et) {
|
|
169645
169645
|
var tt, it = et.get("initialKeyword"), dt = r$b.useMemo(function() {
|
|
169646
169646
|
if (it && it.length === 1) {
|
|
169647
169647
|
var zt = g$e(it[0]);
|
|
@@ -169773,7 +169773,7 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169773
169773
|
}
|
|
169774
169774
|
};
|
|
169775
169775
|
}, v$a = function(et) {
|
|
169776
|
-
var tt = et.children, it = et.store, dt = m$
|
|
169776
|
+
var tt = et.children, it = et.store, dt = m$g(it), ft = r$b.useState(!1), bt = ft[0], Nt = ft[1], It = function($t) {
|
|
169777
169777
|
return Nt(!0);
|
|
169778
169778
|
};
|
|
169779
169779
|
return r$b.useEffect(function() {
|
|
@@ -169783,7 +169783,7 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169783
169783
|
}, []), tt(c$f(c$f({}, dt), {
|
|
169784
169784
|
isDocumentLoaded: bt
|
|
169785
169785
|
}));
|
|
169786
|
-
}, x$
|
|
169786
|
+
}, x$a = function(et) {
|
|
169787
169787
|
var tt = et.containerRef, it = et.store, dt = r$b.useRef(!1), ft = function() {
|
|
169788
169788
|
dt.current = !0;
|
|
169789
169789
|
}, bt = function() {
|
|
@@ -169802,8 +169802,8 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169802
169802
|
}, y$b = {
|
|
169803
169803
|
left: 0,
|
|
169804
169804
|
top: 8
|
|
169805
|
-
}, E$
|
|
169806
|
-
var tt = et.store, it = et.onToggle, dt = r$b.useContext(e$7.LocalizationContext).l10n, ft = r$b.useContext(e$7.ThemeContext).direction, bt = r$b.useState(!1), Nt = bt[0], It = bt[1], $t = r$b.useState(!1), Dt = $t[0], jt = $t[1], Ot = ft === e$7.TextDirection.RightToLeft, Xt = m$
|
|
169805
|
+
}, E$e = function(et) {
|
|
169806
|
+
var tt = et.store, it = et.onToggle, dt = r$b.useContext(e$7.LocalizationContext).l10n, ft = r$b.useContext(e$7.ThemeContext).direction, bt = r$b.useState(!1), Nt = bt[0], It = bt[1], $t = r$b.useState(!1), Dt = $t[0], jt = $t[1], Ot = ft === e$7.TextDirection.RightToLeft, Xt = m$g(tt), qt = Xt.clearKeyword, Kt = Xt.changeMatchCase, tr = Xt.changeWholeWords, nr = Xt.currentMatch, sr = Xt.jumpToNextMatch, lr = Xt.jumpToPreviousMatch, ar = Xt.keyword, ur = Xt.matchCase, dr = Xt.numberOfMatches, pr = Xt.wholeWords, gr = Xt.search, mr = Xt.setKeyword, hr = function(er) {
|
|
169807
169807
|
It(!0), gr().then(function(rr) {
|
|
169808
169808
|
It(!1), jt(!0), er && er();
|
|
169809
169809
|
});
|
|
@@ -169939,7 +169939,7 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169939
169939
|
offset: b$f
|
|
169940
169940
|
});
|
|
169941
169941
|
});
|
|
169942
|
-
}, S$
|
|
169942
|
+
}, S$8 = {
|
|
169943
169943
|
left: 0,
|
|
169944
169944
|
top: 8
|
|
169945
169945
|
}, C$6 = function(et) {
|
|
@@ -169959,16 +169959,16 @@ var r$b = t$a(reactExports), n$d = function() {
|
|
|
169959
169959
|
});
|
|
169960
169960
|
},
|
|
169961
169961
|
content: function(Nt) {
|
|
169962
|
-
return r$b.createElement(E$
|
|
169962
|
+
return r$b.createElement(E$e, {
|
|
169963
169963
|
store: dt,
|
|
169964
169964
|
onToggle: Nt
|
|
169965
169965
|
});
|
|
169966
169966
|
},
|
|
169967
|
-
offset: S$
|
|
169967
|
+
offset: S$8,
|
|
169968
169968
|
closeOnClickOutside: !1,
|
|
169969
169969
|
closeOnEscape: !0
|
|
169970
169970
|
});
|
|
169971
|
-
}, P$
|
|
169971
|
+
}, P$6 = function(et) {
|
|
169972
169972
|
return Array.isArray(et) ? et.map(function(tt) {
|
|
169973
169973
|
return g$e(tt);
|
|
169974
169974
|
}) : [g$e(et)];
|
|
@@ -169983,14 +169983,14 @@ search_min.NextIcon = n$d, search_min.PreviousIcon = o$c, search_min.SearchIcon
|
|
|
169983
169983
|
}, []), it = r$b.useMemo(function() {
|
|
169984
169984
|
return e$7.createStore({
|
|
169985
169985
|
initialKeyword: et && et.keyword ? Array.isArray(et.keyword) ? et.keyword : [et.keyword] : [],
|
|
169986
|
-
keyword: et && et.keyword ? P$
|
|
169986
|
+
keyword: et && et.keyword ? P$6(et.keyword) : [u$l],
|
|
169987
169987
|
matchPosition: {
|
|
169988
169988
|
matchIndex: -1,
|
|
169989
169989
|
pageIndex: -1
|
|
169990
169990
|
},
|
|
169991
169991
|
renderStatus: /* @__PURE__ */ new Map()
|
|
169992
169992
|
});
|
|
169993
|
-
}, []), dt = m$
|
|
169993
|
+
}, []), dt = m$g(it), ft = dt.clearKeyword, bt = dt.jumpToMatch, Nt = dt.jumpToNextMatch, It = dt.jumpToPreviousMatch, $t = dt.searchFor, Dt = dt.setKeywords, jt = dt.setTargetPages, Ot = function(Xt) {
|
|
169994
169994
|
return r$b.createElement(C$6, c$f({
|
|
169995
169995
|
enableShortcuts: tt.enableShortcuts
|
|
169996
169996
|
}, Xt, {
|
|
@@ -169999,7 +169999,7 @@ search_min.NextIcon = n$d, search_min.PreviousIcon = o$c, search_min.SearchIcon
|
|
|
169999
169999
|
};
|
|
170000
170000
|
return {
|
|
170001
170001
|
install: function(Xt) {
|
|
170002
|
-
var qt = et && et.keyword ? Array.isArray(et.keyword) ? et.keyword : [et.keyword] : [], Kt = et && et.keyword ? P$
|
|
170002
|
+
var qt = et && et.keyword ? Array.isArray(et.keyword) ? et.keyword : [et.keyword] : [], Kt = et && et.keyword ? P$6(et.keyword) : [u$l];
|
|
170003
170003
|
it.update("initialKeyword", qt), it.update("jumpToDestination", Xt.jumpToDestination), it.update("jumpToPage", Xt.jumpToPage), it.update("keyword", Kt);
|
|
170004
170004
|
},
|
|
170005
170005
|
renderPageLayer: function(Xt) {
|
|
@@ -170014,7 +170014,7 @@ search_min.NextIcon = n$d, search_min.PreviousIcon = o$c, search_min.SearchIcon
|
|
|
170014
170014
|
},
|
|
170015
170015
|
renderViewer: function(Xt) {
|
|
170016
170016
|
var qt = Xt.slot;
|
|
170017
|
-
return qt.subSlot && (qt.subSlot.children = r$b.createElement(r$b.Fragment, null, tt.enableShortcuts && r$b.createElement(x$
|
|
170017
|
+
return qt.subSlot && (qt.subSlot.children = r$b.createElement(r$b.Fragment, null, tt.enableShortcuts && r$b.createElement(x$a, {
|
|
170018
170018
|
containerRef: Xt.containerRef,
|
|
170019
170019
|
store: it
|
|
170020
170020
|
}), qt.subSlot.children)), qt;
|
|
@@ -170251,15 +170251,15 @@ var n$b = t$8(reactExports), o$a = function() {
|
|
|
170251
170251
|
bt.removeEventListener("wheel", ft);
|
|
170252
170252
|
};
|
|
170253
170253
|
}, []), n$b.createElement(n$b.Fragment, null);
|
|
170254
|
-
}, m$
|
|
170255
|
-
return m$
|
|
170254
|
+
}, m$f = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.3, 1.5, 1.7, 1.9, 2.1, 2.4, 2.7, 3, 3.3, 3.7, 4.1, 4.6, 5.1, 5.7, 6.3, 7, 7.7, 8.5, 9.4, 10], f$g = function(et) {
|
|
170255
|
+
return m$f.find(function(tt) {
|
|
170256
170256
|
return tt > et;
|
|
170257
170257
|
}) || et;
|
|
170258
170258
|
}, v$9 = function(et) {
|
|
170259
|
-
var tt = m$
|
|
170259
|
+
var tt = m$f.findIndex(function(it) {
|
|
170260
170260
|
return it >= et;
|
|
170261
170261
|
});
|
|
170262
|
-
return tt === -1 || tt === 0 ? et : m$
|
|
170262
|
+
return tt === -1 || tt === 0 ? et : m$f[tt - 1];
|
|
170263
170263
|
}, p$d = function(et) {
|
|
170264
170264
|
var tt = et.containerRef, it = et.store, dt = function(ft) {
|
|
170265
170265
|
if (!ft.shiftKey && !ft.altKey && (e$5.isMac() ? ft.metaKey : ft.ctrlKey)) {
|
|
@@ -170292,7 +170292,7 @@ var n$b = t$8(reactExports), o$a = function() {
|
|
|
170292
170292
|
document.removeEventListener("keydown", dt);
|
|
170293
170293
|
};
|
|
170294
170294
|
}, [tt.current]), n$b.createElement(n$b.Fragment, null);
|
|
170295
|
-
}, z$3 = [0.5, 0.75, 1, 1.25, 1.5, 2, 3, 4], E$
|
|
170295
|
+
}, z$3 = [0.5, 0.75, 1, 1.25, 1.5, 2, 3, 4], E$d = {
|
|
170296
170296
|
left: 0,
|
|
170297
170297
|
top: 8
|
|
170298
170298
|
}, d$c = function(et) {
|
|
@@ -170348,7 +170348,7 @@ var n$b = t$8(reactExports), o$a = function() {
|
|
|
170348
170348
|
}, "".concat(Math.round(100 * Dt), "%"));
|
|
170349
170349
|
}));
|
|
170350
170350
|
},
|
|
170351
|
-
offset: E$
|
|
170351
|
+
offset: E$d,
|
|
170352
170352
|
closeOnClickOutside: !0,
|
|
170353
170353
|
closeOnEscape: !0
|
|
170354
170354
|
});
|
|
@@ -170370,7 +170370,7 @@ var n$b = t$8(reactExports), o$a = function() {
|
|
|
170370
170370
|
}, C$5 = {
|
|
170371
170371
|
left: 0,
|
|
170372
170372
|
top: 8
|
|
170373
|
-
}, h$
|
|
170373
|
+
}, h$b = function(et) {
|
|
170374
170374
|
var tt = et.enableShortcuts, it = et.onClick, dt = n$b.useContext(e$5.LocalizationContext).l10n, ft = dt && dt.zoom ? dt.zoom.zoomIn : "Zoom in", bt = tt ? e$5.isMac() ? "Meta+=" : "Ctrl+=" : "";
|
|
170375
170375
|
return n$b.createElement(e$5.Tooltip, {
|
|
170376
170376
|
ariaControlsSuffix: "zoom-in",
|
|
@@ -170388,7 +170388,7 @@ var n$b = t$8(reactExports), o$a = function() {
|
|
|
170388
170388
|
});
|
|
170389
170389
|
}, b$e = function(et) {
|
|
170390
170390
|
var tt = et.children, it = et.enableShortcuts, dt = et.store, ft = a$c(dt).scale;
|
|
170391
|
-
return (tt || h$
|
|
170391
|
+
return (tt || h$b)({
|
|
170392
170392
|
enableShortcuts: it,
|
|
170393
170393
|
onClick: function() {
|
|
170394
170394
|
var bt = dt.get("zoom");
|
|
@@ -170402,7 +170402,7 @@ var n$b = t$8(reactExports), o$a = function() {
|
|
|
170402
170402
|
testId: "zoom__in-menu",
|
|
170403
170403
|
onClick: tt
|
|
170404
170404
|
}, dt);
|
|
170405
|
-
}, S$
|
|
170405
|
+
}, S$7 = {
|
|
170406
170406
|
left: 0,
|
|
170407
170407
|
top: 8
|
|
170408
170408
|
}, M$6 = function(et) {
|
|
@@ -170419,7 +170419,7 @@ var n$b = t$8(reactExports), o$a = function() {
|
|
|
170419
170419
|
content: function() {
|
|
170420
170420
|
return ft;
|
|
170421
170421
|
},
|
|
170422
|
-
offset: S$
|
|
170422
|
+
offset: S$7
|
|
170423
170423
|
});
|
|
170424
170424
|
}, I$b = function(et) {
|
|
170425
170425
|
var tt = et.children, it = et.enableShortcuts, dt = et.store, ft = a$c(dt).scale;
|
|
@@ -170496,7 +170496,7 @@ zoom_min.ZoomInIcon = o$a, zoom_min.ZoomOutIcon = r$9, zoom_min.zoomPlugin = fun
|
|
|
170496
170496
|
ZoomIn: dt,
|
|
170497
170497
|
ZoomInButton: function() {
|
|
170498
170498
|
return n$b.createElement(dt, null, function(Nt) {
|
|
170499
|
-
return n$b.createElement(h$
|
|
170499
|
+
return n$b.createElement(h$b, c$d({}, Nt));
|
|
170500
170500
|
});
|
|
170501
170501
|
},
|
|
170502
170502
|
ZoomInMenuItem: function(Nt) {
|
|
@@ -170541,7 +170541,7 @@ zoom_min.ZoomInIcon = o$a, zoom_min.ZoomOutIcon = r$9, zoom_min.zoomPlugin = fun
|
|
|
170541
170541
|
* @copyright 2019-2023 Nguyen Huu Phuoc <me@phuoc.ng>
|
|
170542
170542
|
*/
|
|
170543
170543
|
lib.exports = zoom_min;
|
|
170544
|
-
var libExports$2 = lib.exports, e$4 = libExports$h, t$7 = libExports$d, r$8 = reactExports, n$a = libExports$c, o$9 = libExports$b, a$b = libExports$a, l$a = libExports$9, i$b = libExports$8, c$c = libExports$7, m$
|
|
170544
|
+
var libExports$2 = lib.exports, e$4 = libExports$h, t$7 = libExports$d, r$8 = reactExports, n$a = libExports$c, o$9 = libExports$b, a$b = libExports$a, l$a = libExports$9, i$b = libExports$8, c$c = libExports$7, m$e = libExports$6, u$i = libExports$5, s$a = libExports$4, d$b = libExports$3, p$c = libExports$2;
|
|
170545
170545
|
function v$8(et) {
|
|
170546
170546
|
var tt = /* @__PURE__ */ Object.create(null);
|
|
170547
170547
|
return et && Object.keys(et).forEach(function(it) {
|
|
@@ -170556,7 +170556,7 @@ function v$8(et) {
|
|
|
170556
170556
|
}
|
|
170557
170557
|
}), tt.default = et, Object.freeze(tt);
|
|
170558
170558
|
}
|
|
170559
|
-
var _$8 = v$8(r$8), E$
|
|
170559
|
+
var _$8 = v$8(r$8), E$c = function() {
|
|
170560
170560
|
return _$8.createElement(e$4.Icon, {
|
|
170561
170561
|
size: 16
|
|
170562
170562
|
}, _$8.createElement("path", {
|
|
@@ -170569,7 +170569,7 @@ var _$8 = v$8(r$8), E$b = function() {
|
|
|
170569
170569
|
}, g$c = {
|
|
170570
170570
|
left: 0,
|
|
170571
170571
|
top: 8
|
|
170572
|
-
}, P$
|
|
170572
|
+
}, P$5 = function(et) {
|
|
170573
170573
|
var tt = et.toolbarSlot, it = _$8.useContext(e$4.LocalizationContext).l10n, dt = _$8.useContext(e$4.ThemeContext).direction === e$4.TextDirection.RightToLeft ? e$4.Position.BottomLeft : e$4.Position.BottomRight, ft = tt.DownloadMenuItem, bt = tt.EnterFullScreenMenuItem, Nt = tt.GoToFirstPageMenuItem, It = tt.GoToLastPageMenuItem, $t = tt.GoToNextPageMenuItem, Dt = tt.GoToPreviousPageMenuItem, jt = tt.OpenMenuItem, Ot = tt.PrintMenuItem, Xt = tt.RotateBackwardMenuItem, qt = tt.RotateForwardMenuItem, Kt = tt.ShowPropertiesMenuItem, tr = tt.SwitchScrollModeMenuItem, nr = tt.SwitchSelectionModeMenuItem, sr = tt.SwitchViewModeMenuItem, lr = tt.SwitchThemeMenuItem;
|
|
170574
170574
|
return _$8.createElement(e$4.Popover, {
|
|
170575
170575
|
ariaControlsSuffix: "toolbar-more-actions",
|
|
@@ -170585,7 +170585,7 @@ var _$8 = v$8(r$8), E$b = function() {
|
|
|
170585
170585
|
isSelected: ur,
|
|
170586
170586
|
testId: "toolbar__more-actions-popover-target",
|
|
170587
170587
|
onClick: ar
|
|
170588
|
-
}, _$8.createElement(E$
|
|
170588
|
+
}, _$8.createElement(E$c, null)),
|
|
170589
170589
|
content: function() {
|
|
170590
170590
|
return dr;
|
|
170591
170591
|
},
|
|
@@ -170679,7 +170679,7 @@ var _$8 = v$8(r$8), E$b = function() {
|
|
|
170679
170679
|
Object.prototype.hasOwnProperty.call(tt, ft) && (et[ft] = tt[ft]);
|
|
170680
170680
|
return et;
|
|
170681
170681
|
}, M$5.apply(this, arguments);
|
|
170682
|
-
}, h$
|
|
170682
|
+
}, h$a = function(et) {
|
|
170683
170683
|
return function(tt) {
|
|
170684
170684
|
var it = _$8.useMemo(function() {
|
|
170685
170685
|
return et(tt);
|
|
@@ -170742,7 +170742,7 @@ var _$8 = v$8(r$8), E$b = function() {
|
|
|
170742
170742
|
className: "rpv-toolbar__item"
|
|
170743
170743
|
}, _$8.createElement(Ot, null))), _$8.createElement("div", {
|
|
170744
170744
|
className: "rpv-toolbar__item"
|
|
170745
|
-
}, _$8.createElement(P$
|
|
170745
|
+
}, _$8.createElement(P$5, {
|
|
170746
170746
|
toolbarSlot: it
|
|
170747
170747
|
}))));
|
|
170748
170748
|
};
|
|
@@ -170753,14 +170753,14 @@ var _$8 = v$8(r$8), E$b = function() {
|
|
|
170753
170753
|
return _$8.createElement(_$8.Fragment, null, "/ ", _$8.createElement(tt, null));
|
|
170754
170754
|
}
|
|
170755
170755
|
});
|
|
170756
|
-
}, S$
|
|
170757
|
-
return h$
|
|
170756
|
+
}, S$6 = function(et) {
|
|
170757
|
+
return h$a(f$f)(et);
|
|
170758
170758
|
}, I$a = function(et) {
|
|
170759
170759
|
var tt = et.children, it = et.slot;
|
|
170760
|
-
return (tt || S$
|
|
170760
|
+
return (tt || S$6)(it);
|
|
170761
170761
|
};
|
|
170762
|
-
toolbar_min.MoreActionsPopover = P$
|
|
170763
|
-
var tt = n$a.fullScreenPlugin(et ? et.fullScreenPlugin : {}), it = o$9.getFilePlugin(et ? et.getFilePlugin : {}), dt = a$b.openPlugin(et ? et.openPlugin : {}), ft = l$a.pageNavigationPlugin(et ? et.pageNavigationPlugin : {}), bt = i$b.printPlugin(et ? et.printPlugin : {}), Nt = c$c.propertiesPlugin(), It = m$
|
|
170762
|
+
toolbar_min.MoreActionsPopover = P$5, toolbar_min.MoreIcon = E$c, toolbar_min.toolbarPlugin = function(et) {
|
|
170763
|
+
var tt = n$a.fullScreenPlugin(et ? et.fullScreenPlugin : {}), it = o$9.getFilePlugin(et ? et.getFilePlugin : {}), dt = a$b.openPlugin(et ? et.openPlugin : {}), ft = l$a.pageNavigationPlugin(et ? et.pageNavigationPlugin : {}), bt = i$b.printPlugin(et ? et.printPlugin : {}), Nt = c$c.propertiesPlugin(), It = m$e.rotatePlugin(), $t = u$i.scrollModePlugin(), Dt = s$a.searchPlugin(et ? et.searchPlugin : {}), jt = t$7.selectionModePlugin(et ? et.selectionModePlugin : {}), Ot = d$b.themePlugin(), Xt = p$c.zoomPlugin(et ? et.zoomPlugin : {}), qt = [tt, it, dt, ft, bt, Nt, It, $t, Dt, jt, Ot, Xt], Kt = _$8.useCallback(function(tr) {
|
|
170764
170764
|
var nr = tt.EnterFullScreen, sr = tt.EnterFullScreenMenuItem, lr = it.Download, ar = it.DownloadMenuItem, ur = dt.Open, dr = dt.OpenMenuItem, pr = ft.CurrentPageInput, gr = ft.CurrentPageLabel, mr = ft.GoToFirstPage, hr = ft.GoToFirstPageMenuItem, vr = ft.GoToLastPage, zt = ft.GoToLastPageMenuItem, or = ft.GoToNextPage, ir = ft.GoToNextPageMenuItem, er = ft.GoToPreviousPage, rr = ft.GoToPreviousPageMenuItem, cr = ft.NumberOfPages, fr = bt.Print, yr = bt.PrintMenuItem, Mr = Nt.ShowProperties, xr = Nt.ShowPropertiesMenuItem, Nr = It.Rotate, Cr = It.RotateBackwardMenuItem, Ar = It.RotateForwardMenuItem, wr = $t.SwitchScrollMode, Tr = $t.SwitchScrollModeMenuItem, Er = $t.SwitchViewMode, kr = $t.SwitchViewModeMenuItem, Sr = Dt.Search, _r = Dt.ShowSearchPopover, Rr = jt.SwitchSelectionMode, $r = jt.SwitchSelectionModeMenuItem, Br = Ot.SwitchTheme, Wr = Ot.SwitchThemeMenuItem, jr = Xt.CurrentScale, Gr = Xt.Zoom, Zr = Xt.ZoomIn, Yr = Xt.ZoomInMenuItem, qr = Xt.ZoomOut, Or = Xt.ZoomOutMenuItem;
|
|
170765
170765
|
return _$8.createElement(I$a, M$5({}, tr, {
|
|
170766
170766
|
slot: {
|
|
@@ -170868,7 +170868,7 @@ toolbar_min.MoreActionsPopover = P$4, toolbar_min.MoreIcon = E$b, toolbar_min.to
|
|
|
170868
170868
|
sr.onViewerStateChange && (nr = sr.onViewerStateChange(nr));
|
|
170869
170869
|
}), nr;
|
|
170870
170870
|
},
|
|
170871
|
-
renderDefaultToolbar: h$
|
|
170871
|
+
renderDefaultToolbar: h$a,
|
|
170872
170872
|
Toolbar: Kt
|
|
170873
170873
|
};
|
|
170874
170874
|
};
|
|
@@ -170937,7 +170937,7 @@ var u$h = l$9(t$6), c$b = function() {
|
|
|
170937
170937
|
}, f$e = {
|
|
170938
170938
|
left: -8,
|
|
170939
170939
|
top: 0
|
|
170940
|
-
}, m$
|
|
170940
|
+
}, m$d = function(et) {
|
|
170941
170941
|
var tt = et.attachmentTabContent, it = et.bookmarkTabContent, dt = et.store, ft = et.thumbnailTabContent, bt = et.tabs, Nt = u$h.useRef(), It = u$h.useContext(e$3.LocalizationContext).l10n, $t = u$h.useState(dt.get("isCurrentTabOpened") || !1), Dt = $t[0], jt = $t[1], Ot = u$h.useState(Math.max(dt.get("currentTab") || 0, 0)), Xt = Ot[0], qt = Ot[1], Kt = u$h.useContext(e$3.ThemeContext).direction === e$3.TextDirection.RightToLeft, tr = [{
|
|
170942
170942
|
content: ft,
|
|
170943
170943
|
icon: u$h.createElement(d$a, null),
|
|
@@ -171077,7 +171077,7 @@ defaultLayout_min.BookmarkIcon = c$b, defaultLayout_min.FileIcon = s$9, defaultL
|
|
|
171077
171077
|
"rpv-default-layout__main": !0,
|
|
171078
171078
|
"rpv-default-layout__main--rtl": Xt.themeContext.direction === e$3.TextDirection.RightToLeft
|
|
171079
171079
|
})
|
|
171080
|
-
}, u$h.createElement(m$
|
|
171080
|
+
}, u$h.createElement(m$d, {
|
|
171081
171081
|
attachmentTabContent: u$h.createElement(Nt, null),
|
|
171082
171082
|
bookmarkTabContent: u$h.createElement(It, null),
|
|
171083
171083
|
store: tt,
|
|
@@ -171237,7 +171237,7 @@ const attachment = {
|
|
|
171237
171237
|
zoomDocument: "缩放文件",
|
|
171238
171238
|
zoomIn: "缩小",
|
|
171239
171239
|
zoomOut: "放大"
|
|
171240
|
-
}, T$
|
|
171240
|
+
}, T$5 = {
|
|
171241
171241
|
attachment,
|
|
171242
171242
|
bookmark,
|
|
171243
171243
|
core,
|
|
@@ -171259,14 +171259,14 @@ const attachment = {
|
|
|
171259
171259
|
toolbar,
|
|
171260
171260
|
zoom
|
|
171261
171261
|
}, index = "";
|
|
171262
|
-
var d$9 = Object.defineProperty, f$d = Object.defineProperties, h$
|
|
171262
|
+
var d$9 = Object.defineProperty, f$d = Object.defineProperties, h$9 = Object.getOwnPropertyDescriptors, m$c = Object.getOwnPropertySymbols, g$b = Object.prototype.hasOwnProperty, P$4 = Object.prototype.propertyIsEnumerable, c$a = (et, tt, it) => tt in et ? d$9(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, n$8 = (et, tt) => {
|
|
171263
171263
|
for (var it in tt || (tt = {}))
|
|
171264
171264
|
g$b.call(tt, it) && c$a(et, it, tt[it]);
|
|
171265
|
-
if (m$
|
|
171266
|
-
for (var it of m$
|
|
171267
|
-
P$
|
|
171265
|
+
if (m$c)
|
|
171266
|
+
for (var it of m$c(tt))
|
|
171267
|
+
P$4.call(tt, it) && c$a(et, it, tt[it]);
|
|
171268
171268
|
return et;
|
|
171269
|
-
}, l$8 = (et, tt) => f$d(et, h$
|
|
171269
|
+
}, l$8 = (et, tt) => f$d(et, h$9(tt));
|
|
171270
171270
|
const D$6 = (et) => {
|
|
171271
171271
|
const {
|
|
171272
171272
|
fileUrl: tt,
|
|
@@ -171297,7 +171297,7 @@ const D$6 = (et) => {
|
|
|
171297
171297
|
workerUrl: "https://aiot-acceleration.glodon.com/glodon/libs/pdfjs-dist/3.11.174/pdf.worker.min.js",
|
|
171298
171298
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(libExports$h.Viewer, {
|
|
171299
171299
|
defaultScale: libExports$h.SpecialZoomLevel.PageWidth,
|
|
171300
|
-
localization: T$
|
|
171300
|
+
localization: T$5,
|
|
171301
171301
|
fileUrl: tt,
|
|
171302
171302
|
plugins: [ft],
|
|
171303
171303
|
initialPage: it ? it - 1 : 0,
|
|
@@ -171310,7 +171310,7 @@ const D$6 = (et) => {
|
|
|
171310
171310
|
})
|
|
171311
171311
|
});
|
|
171312
171312
|
}, U$3 = D$6;
|
|
171313
|
-
var x$
|
|
171313
|
+
var x$9 = (et, tt, it) => new Promise((dt, ft) => {
|
|
171314
171314
|
var bt = ($t) => {
|
|
171315
171315
|
try {
|
|
171316
171316
|
It(it.next($t));
|
|
@@ -171381,7 +171381,7 @@ const Le = (et) => {
|
|
|
171381
171381
|
dr(!1);
|
|
171382
171382
|
return;
|
|
171383
171383
|
}
|
|
171384
|
-
dr(!0), gr(null), x$
|
|
171384
|
+
dr(!0), gr(null), x$9(void 0, null, function* () {
|
|
171385
171385
|
try {
|
|
171386
171386
|
if (Dt.startsWith("blob:") || Dt.startsWith("data:")) {
|
|
171387
171387
|
const Rr = yield fetch(Dt);
|
|
@@ -171425,7 +171425,7 @@ const Le = (et) => {
|
|
|
171425
171425
|
}
|
|
171426
171426
|
});
|
|
171427
171427
|
}, [Dt, Ot, It]);
|
|
171428
|
-
const Mr = reactExports.useCallback(() => x$
|
|
171428
|
+
const Mr = reactExports.useCallback(() => x$9(void 0, null, function* () {
|
|
171429
171429
|
var Ar;
|
|
171430
171430
|
if (!(mr != null && mr.content)) {
|
|
171431
171431
|
k$g.warning("暂无可复制的内容");
|
|
@@ -171444,7 +171444,7 @@ const Le = (et) => {
|
|
|
171444
171444
|
} finally {
|
|
171445
171445
|
ir(!1);
|
|
171446
171446
|
}
|
|
171447
|
-
}), [mr]), xr = reactExports.useCallback(() => x$
|
|
171447
|
+
}), [mr]), xr = reactExports.useCallback(() => x$9(void 0, null, function* () {
|
|
171448
171448
|
var Ar;
|
|
171449
171449
|
if (!Dt) {
|
|
171450
171450
|
k$g.warning("暂无可复制的地址");
|
|
@@ -171461,7 +171461,7 @@ const Le = (et) => {
|
|
|
171461
171461
|
} catch (wr) {
|
|
171462
171462
|
k$g.error((wr == null ? void 0 : wr.message) || "复制失败,请手动复制");
|
|
171463
171463
|
}
|
|
171464
|
-
}), [Dt]), Nr = reactExports.useCallback((Ar) => x$
|
|
171464
|
+
}), [Dt]), Nr = reactExports.useCallback((Ar) => x$9(void 0, [Ar], function* ({
|
|
171465
171465
|
key: wr
|
|
171466
171466
|
}) {
|
|
171467
171467
|
wr === "copy-content" && (yield Mr()), wr === "copy-url" && (yield xr());
|
|
@@ -171518,7 +171518,7 @@ const Le = (et) => {
|
|
|
171518
171518
|
fileName: it
|
|
171519
171519
|
});
|
|
171520
171520
|
case "jsonl":
|
|
171521
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(q$
|
|
171521
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(q$6, {
|
|
171522
171522
|
fileContent: mr,
|
|
171523
171523
|
fileSize: vr,
|
|
171524
171524
|
url: Dt,
|
|
@@ -171672,7 +171672,7 @@ const Le = (et) => {
|
|
|
171672
171672
|
return reactExports.useEffect(() => {
|
|
171673
171673
|
let It = !1;
|
|
171674
171674
|
const $t = it.current;
|
|
171675
|
-
return $t && ($t.innerHTML = ""), ft(!0), Nt(null), x$
|
|
171675
|
+
return $t && ($t.innerHTML = ""), ft(!0), Nt(null), x$9(void 0, null, function* () {
|
|
171676
171676
|
try {
|
|
171677
171677
|
const Dt = yield fetch(et);
|
|
171678
171678
|
if (!Dt.ok)
|
|
@@ -171737,7 +171737,7 @@ const Le = (et) => {
|
|
|
171737
171737
|
try {
|
|
171738
171738
|
if (typeof document != "undefined") {
|
|
171739
171739
|
var et = document.createElement("style");
|
|
171740
|
-
et.appendChild(document.createTextNode('.document-viewer{width:100%;height:100%;min-height:200px;display:flex;flex-direction:column;overflow:hidden;position:relative;gap:8px}.document-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid #f0f0f0;background:#fafafa;border-radius:4px;flex-shrink:0}.document-viewer-toolbar-meta{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.document-viewer-toolbar-name{font-weight:500;color:#1f1f1f;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-viewer-toolbar-size{font-size:12px;color:#666;flex-shrink:0}.document-viewer-body{flex:1;min-height:0;display:flex}.document-viewer-loading{display:flex;justify-content:center;align-items:center;min-height:200px;flex:1}.document-viewer-text,.document-viewer-json,.document-viewer-xml{padding:16px;background:#f5f5f5;border-radius:4px;overflow:auto;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;flex:1;min-height:0}.document-viewer-json{background:#f9f9f9}.document-viewer-xml{background:#fff8e1}.document-viewer-jsonl{padding:16px;overflow:auto;flex:1;min-height:0;width:100%;display:flex;flex-direction:column}.document-viewer-jsonl-item{margin-bottom:16px;padding:12px;background:#f9f9f9;border-radius:4px;border-left:3px solid #1890ff;width:100%;box-sizing:border-box;max-width:100%}.document-viewer-jsonl-item:last-child{margin-bottom:0}.document-viewer-jsonl-item pre{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;width:100%;max-width:100%;box-sizing:border-box}.document-viewer-code{border-radius:4px;overflow:auto;max-height:100%;height:100%;display:flex;flex-direction:column;width:100%}.document-viewer-code pre{margin:0!important;padding:16px!important;background:#f5f5f5!important;overflow:visible;width:100%;box-sizing:border-box}.document-viewer-code>div{overflow:auto;max-height:100%;width:100%}.document-viewer-image{display:flex;justify-content:center;align-items:center;padding:16px;min-height:200px;overflow:hidden;flex:1;min-height:0}.document-viewer-image .ant-image{max-width:100%;max-height:100%;width:100%;height:100%}.document-viewer-image .ant-image img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.document-viewer-video{display:flex;justify-content:center;align-items:center;padding:16px;min-height:200px;overflow:hidden;flex:1;min-height:0}.document-viewer-video video{max-width:100%;max-height:100%}.document-viewer-audio{padding:16px;display:flex;justify-content:center;align-items:center;min-height:100px;overflow:hidden;flex:1;min-height:0}.document-viewer-pdf,.document-viewer-office,.document-viewer-unknown,.document-viewer-zip{width:100%;height:100%;min-height:0;position:relative;flex:1;display:flex;flex-direction:column}.document-viewer-zip{display:flex;flex-direction:column;padding:16px;background:#fff;overflow:hidden}.document-viewer-zip .ant-table{font-size:12px}.document-viewer-zip .ant-table .ant-table-tbody>tr:hover>td{background-color:#f5f5f5}.document-viewer-zip .ant-table .ant-table-tbody>tr.ant-table-row-selected>td{background-color:#e6f7ff}.document-viewer-iframe{width:100%;height:100%;min-height:0;border:none;border-radius:4px;flex:1}.document-viewer-docx{overflow:hidden;background:#f5f5f5}.document-viewer-docx-content{width:100%;height:100%;overflow:auto;padding:16px;box-sizing:border-box;background:#f5f5f5}.document-viewer-docx-content>section{margin:0 auto 16px;box-shadow:0 2px 8px #00000014}.document-viewer-fallback{margin-top:16px}.document-viewer-alert-full{width:100%;align-self:flex-start}@media (max-width: 768px){.document-viewer-pdf,.document-viewer-office,.document-viewer-unknown,.document-viewer-iframe{min-height:0}}.markdown{word-break:break-all}.markdown :last-child{margin-bottom:0}.markdown div,.markdown hr,.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6,.markdown p,.markdown table,.markdown code,.markdown img,.markdown address,.markdown blockquote,.markdown dir,.markdown menu,.markdown pre,.markdown ul,.markdown ol,.markdown li,.markdown dl{margin-bottom:12px;line-height:150%;white-space:pre-wrap}.markdown div:last-child,.markdown hr:last-child,.markdown h1:last-child,.markdown h2:last-child,.markdown h3:last-child,.markdown h4:last-child,.markdown h5:last-child,.markdown h6:last-child,.markdown p:last-child,.markdown table:last-child,.markdown code:last-child,.markdown img:last-child,.markdown address:last-child,.markdown blockquote:last-child,.markdown dir:last-child,.markdown menu:last-child,.markdown pre:last-child,.markdown ul:last-child,.markdown ol:last-child,.markdown li:last-child,.markdown dl:last-child{margin-bottom:0}.markdown ul,.markdown ol{padding-inline-start:20px}.markdown ul{list-style-type:disc}.markdown ol{list-style-type:decimal}.markdown ul,.markdown li{white-space:normal;margin-bottom:8px}.markdown table{display:block;border-collapse:collapse;border-radius:4px;max-width:100%;overflow:auto;width:max-content}.markdown td,.markdown th{border:1px solid #e8e9eb;padding:6px 13px;text-align:left}.markdown tr{color:#151b26;background-color:#fff}.markdown th{background-color:#f9f2ff;color:#000}.markdown tr:hover td{background-color:#fff}.markdown p code{background:#f9f2ff;border-radius:4px;padding:4px;display:inline;font-size:12px;color:#070c14}.markdown .markdown-code-title{margin:0;padding:0 16px;height:36px;border-radius:8px 8px 0 0;background:#f9f2ff;display:flex;align-items:center;justify-content:space-between;line-height:21px;font-weight:500;color:#070c14}.markdown .markdown-code-context{padding:16px;background:rgba(249,242,255,.3)!important;margin:0!important;border-radius:0 0 8px 8px}.markdown .markdown-code-context code{margin:0;font-size:85%;background:none;font-size:14px}.markdown .markdown-code-context code>span{flex-wrap:wrap}.markdown p{white-space:pre-line}.markdown pre code.hljs{display:block;overflow-x:auto;padding:1em}.markdown p{line-height:150%;height:auto!important}.markdown img{max-width:100%}.markdown a,.markdown a:hover{color:#0f64ff}.markdown code.hljs{padding:3px 5px}.markdown .hljs{background:rgba(249,242,255,.3);color:#000}.markdown .hljs-comment{color:#697070}.markdown .hljs-tag,.markdown .hljs-punctuation{color:#000a}.markdown .hljs-tag .hljs-name,.markdown .hljs-tag .hljs-attr{color:#000}.markdown .hljs-keyword,.markdown .hljs-attribute,.markdown .hljs-selector-tag,.markdown .hljs-meta .hljs-keyword,.markdown .hljs-doctag,.markdown .hljs-name{font-weight:700}.markdown .hljs-type,.markdown .hljs-string,.markdown .hljs-number,.markdown .hljs-selector-id,.markdown .hljs-selector-class,.markdown .hljs-quote,.markdown .hljs-template-tag,.markdown .hljs-deletion{color:#800}.markdown .hljs-title,.markdown .hljs-section{color:#800;font-weight:700}.markdown .hljs-regexp,.markdown .hljs-symbol,.markdown .hljs-variable,.markdown .hljs-template-variable,.markdown .hljs-link,.markdown .hljs-selector-attr,.markdown .hljs-operator,.markdown .hljs-selector-pseudo{color:#ab5656}.markdown .hljs-literal{color:#695}.markdown .hljs-built_in,.markdown .hljs-bullet,.markdown .hljs-code,.markdown .hljs-addition{color:#397300}.markdown .hljs-meta{color:#1f7199}.markdown .hljs-meta .hljs-string{color:#38a}.markdown .hljs-emphasis{font-style:italic}.markdown .hljs-strong{font-weight:700}.markdown .ant-image{margin-bottom:6px!important}.markdown .ant-image .ant-image-img{margin-bottom:0!important}.g-icon-btn{height:28px;width:28px;line-height:28px;background-color:#222836;color:#b8c1d0;cursor:pointer;text-align:center;padding:0;border:none;font-size:16px;display:block}.g-icon-btn:hover{color:#fff;background:linear-gradient(180deg,#4e5b73 0%,#222836 100%);border-image:linear-gradient(180deg,#4e5b73 0%,#222836 100%),linear-gradient(180deg,#ffffff 16.67%,#d2d2d2 49.48%,#000000 73.44%,#e4e4e4 92.71%)}.g-icon-btn:disabled{color:#68707e;cursor:not-allowed;background:linear-gradient(180deg,#0a111d 0%,#222836 100%)}.storybook-button{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1}.storybook-button--primary{color:#fff;background-color:#027bf4}.storybook-button--secondary{color:#333;background-color:transparent;box-shadow:#00000026 0 0 0 1px inset}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}.copy-btn{font-size:16px;cursor:pointer}.copy-btn:hover{color:#b452ff}.g-mouse-tip{display:inline-flex;justify-content:center;align-items:center;gap:4px;box-shadow:0 1px 10px #0000000d,0 4px 5px #00000014,0 2px 4px -1px #0000001f;border-radius:4px;background:#000;position:fixed;z-index:2000;padding:8px 12px}.g-mouse-tip-content{font-size:12px;font-style:normal;font-weight:400;color:#fff}.g-expandable-pannel-wrap{inset:0;z-index:999}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar{position:absolute;right:0;top:0;background-color:#222836;z-index:9999}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.collapsed{position:absolute;top:0;right:0;z-index:9;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.expaned{padding:0}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.expaned .g-icon-btn{background-color:#0000}.g-expandable-pannel-wrap .g-expandable-pannel{width:100%;height:100%;border:.5px solid #313A4D}.g-expandable-pannel-wrap .g-expandable-pannel-header{position:absolute;right:0;top:0;z-index:9;padding-right:28px;height:28px;display:flex;flex-direction:row-reverse}.g-expandable-pannel-wrap .g-expandable-pannel-body{opacity:.85;width:100%;height:100%}.g-expandable-pannel-wrap .g-expandable-pannel-body .icon{width:16px;height:16px}.g-expandable-pannel-wrap .g-expandable-pannel.full{width:100%!important;height:100%!important;inset:0 55px;z-index:9}.g-expandable-pannel-wrap .g-expandable-pannel.hidden{inset:0 -20000px}.g-expandable-pannel-wrap .g-expandable-pannel.hidden+.bar-btn{position:absolute;right:0!important;background:rgba(58,63,76,.5);border-radius:20px 0 0 20px}.g-expandable-pannel-wrap .g-expandable-pannel.normal{height:250px;overflow:hidden;padding:0}.g-expandable-pannel-wrap .g-expandable-pannel.full+.bar-btn{top:0;right:55px;z-index:99}.g-expandable-pannel-wrap .g-expandable-pannel.full~.cover{display:block;position:absolute;width:100vw;height:100vh;top:0;left:0;background:#00000066}.g-expandable-pannel-wrap .g-expandable-pannel.hiddern~.cover{display:none}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel{width:134px;background:#ffffff;border:1px solid #ececec;box-shadow:2px 2px 6px #c0c0c040;border-radius:4px;padding:6px 12px}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel .item-row{width:100%;display:flex;height:32px;align-items:center}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel .item-row img{width:16px;height:16px;margin:0 8px}.g-expandable-pannel-wrap .g-expandable-pannel .status{display:block}.g-expandable-pannel-wrap .g-expandable-pannel .status.success:before{display:inline-block;content:"";width:12px;height:12px;background-color:#52c41a}.g-expandable-pannel-wrap .g-expandable-pannel .status.error:before{display:inline-block;content:"";width:12px;height:12px;background-color:#ff4d4f}.g-expandable-pannel-wrap .g-expandable-pannel .pass-confirm-wrap{position:absolute}.pass-map{background:transparent}.pass-map .pass-area{position:absolute;background:rgba(255,77,79,.21);border:1px solid #00000000;z-index:1}.pass-map .pass-area-circle{border-radius:50%}.pass-map .pass-area__active{background:rgba(255,77,79,.25);border:1px solid #ff4d4f}.image-map{position:relative;width:100%;height:100%;overflow:hidden;user-select:none;display:flex;justify-content:center}.image-map .image-map-pannel{width:100%;height:100%;user-select:none;display:flex;justify-content:center;align-items:center}.image-map .image-map-toolbar{position:absolute;width:auto;height:auto;bottom:12px;z-index:99;display:flex;align-items:center;gap:12px;background-color:#393939;padding:10px;border-radius:6px}.image-map .image-map-toolbar .zoom-controller{display:flex;height:100%;align-items:center;gap:12px;color:#fff}.image-map .image-map-toolbar .zoom-controller .g-icon-btn,.image-map .image-map-toolbar .zoom-controller .g-icon-btn button{background-color:unset;font-size:16px;border:.5px solid #6f6f6f;border-radius:2px;font-size:14px}.image-map .image-map-toolbar .zoom-controller .g-icon-btn .anticon,.image-map .image-map-toolbar .zoom-controller .g-icon-btn button .anticon{font-size:14px}.image-map .image-map-toolbar .zoom-controller.vertical{flex-direction:column}.image-map .image-map-toolbar .zoom-controller.vertical .g-icon-btn{background-color:red;margin-top:6px;border:none}.image-map .image-map-toolbar .zoom-controller.vertical .g-icon-btn .anticon{font-size:16px}.image-map .image-map-toolbar .zoom-controller.horizontal{flex-direction:row}.image-map .image-map-toolbar .line{width:1px;height:12px;border:.5px solid #e0e0e0}.image-map .image-map-toolbar .moveable-controller{background-color:unset;height:100%;border:.5px solid #6f6f6f;border-radius:2px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn{position:relative;border:none;border-radius:2px;background-color:unset;padding:0;display:flex;height:100%}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .btn-change{display:flex;align-items:center;color:#fff;gap:10px;height:100%;margin-inline-end:unset;padding:4px 8px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .btn-change svg{font-size:16px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .anticon{font-size:24px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn.active{color:#fff}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn:hover{background:linear-gradient(180deg,#4e5b73 0%,#222836 100%)}.image-map .image-map-toolbar .editing-controller{display:flex;gap:12px;align-items:center;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left}.image-map .image-map-toolbar .editing-controller .ant-btn-default{border:.5px solid #6f6f6f;border-radius:2px;background-color:unset;color:#fff;padding:4px 8px}.image-map .image-map-toolbar .editing-controller .ant-btn-default:hover{background:linear-gradient(180deg,#4e5b73 0%,#222836 100%)}.image-map .image-map-toolbar .editing-controller .ant-btn-primary{border-radius:2px;background-color:#0532a6;border:.5px solid #6f6f6f;color:#fff;padding:4px 8px}.image-map .image-map-toolbar .editing-controller .ant-btn-primary:hover{background:#0949d2}.image-map .image-map-toolbar .editing-controller .ant-btn-primary .save-detail{display:flex;align-items:center;color:#fff;gap:10px;height:100%}.image-map .image-map-toolbar .editing-controller .ant-btn-primary .save-detail svg{font-size:16px}.track-map{z-index:10;position:relative}.track-map .point{cursor:pointer}.track-map .bottom-action{position:fixed;left:50%;bottom:10px;transform:translate(-50%);z-index:1000;display:flex;justify-content:center;align-items:flex-end;padding-bottom:12px}.track-map .bottom-action .bottom-pannel{background:white;height:48px;background:rgba(255,255,255,.9);border:1px solid #f8f8f8;box-shadow:2px 2px 4px #c0c0c040;border-radius:4px;padding:0 12px}:where(.css-ed5zg0)[class^=ant-popconfirm],:where(.css-ed5zg0)[class*=" ant-popconfirm"]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:14px;box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"]:after{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm],:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm],:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"],:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]:after{box-sizing:border-box}:where(.css-ed5zg0).ant-popconfirm{z-index:1060}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-inner-content{color:#000000e0}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message{position:relative;margin-bottom:8px;color:#000000e0;font-size:14px;display:flex;flex-wrap:nowrap;align-items:start}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message>.ant-popconfirm-message-icon .anticon{color:#faad14;font-size:14px;flex:none;line-height:1;padding-top:4px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message-title{flex:auto;margin-inline-start:8px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message-title-only{font-weight:600}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-description{position:relative;margin-inline-start:22px;margin-bottom:8px;color:#000000e0;font-size:14px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-buttons{text-align:end}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-buttons button{margin-inline-start:8px}:where(.css-ed5zg0)[class^=ant-popover],:where(.css-ed5zg0)[class*=" ant-popover"]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:14px;box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover]:before,:where(.css-ed5zg0)[class*=" ant-popover"]:before,:where(.css-ed5zg0)[class^=ant-popover]:after,:where(.css-ed5zg0)[class*=" ant-popover"]:after{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover],:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover],:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"],:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover]:before,:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover]:before,:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"]:before,:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]:before,:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover]:after,:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover]:after,:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"]:after,:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]:after{box-sizing:border-box}:where(.css-ed5zg0).ant-popover{box-sizing:border-box;margin:0;padding:0;color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";position:absolute;top:0;left:0;z-index:1030;font-weight:400;white-space:normal;text-align:start;cursor:auto;user-select:text;--antd-arrow-background-color: #ffffff}:where(.css-ed5zg0).ant-popover-rtl{direction:rtl}:where(.css-ed5zg0).ant-popover-hidden{display:none}:where(.css-ed5zg0).ant-popover .ant-popover-content{position:relative}:where(.css-ed5zg0).ant-popover .ant-popover-inner{background-color:#fff;background-clip:padding-box;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:12px}:where(.css-ed5zg0).ant-popover .ant-popover-title{min-width:177px;margin-bottom:8px;color:#000000e0;font-weight:600}:where(.css-ed5zg0).ant-popover .ant-popover-inner-content{color:#000000e0;padding:0}:where(.css-ed5zg0).ant-popover .ant-popover-arrow{position:absolute;z-index:1;display:block;pointer-events:none;width:16px;height:16px;overflow:hidden;border:0}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:before{position:absolute;bottom:0;inset-inline-start:0;width:16px;height:8px;background:var(--antd-arrow-background-color);clip-path:polygon(1.65685425px 100%,50% 1.65685425px,14.34314575px 100%,1.65685425px 100%);clip-path:path("M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z");content:""}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:after{content:"";position:absolute;width:8.97056275px;height:8.97056275px;bottom:0;inset-inline:0;margin:auto;border-radius:0 0 2px;transform:translateY(50%) rotate(-135deg);box-shadow:2px 2px 5px #0000000d;z-index:0;background:transparent}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:before{background:var(--antd-arrow-background-color)}:where(.css-ed5zg0).ant-popover-placement-top .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-topLeft .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-topRight .ant-popover-arrow{bottom:0;transform:translateY(100%) rotate(180deg)}:where(.css-ed5zg0).ant-popover-placement-top .ant-popover-arrow{left:50%;transform:translate(-50%) translateY(100%) rotate(180deg)}:where(.css-ed5zg0).ant-popover-placement-topLeft .ant-popover-arrow{left:12px}:where(.css-ed5zg0).ant-popover-placement-topRight .ant-popover-arrow{right:12px}:where(.css-ed5zg0).ant-popover-placement-bottom .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-bottomLeft .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-bottomRight .ant-popover-arrow{top:0;transform:translateY(-100%)}:where(.css-ed5zg0).ant-popover-placement-bottom .ant-popover-arrow{left:50%;transform:translate(-50%) translateY(-100%)}:where(.css-ed5zg0).ant-popover-placement-bottomLeft .ant-popover-arrow{left:12px}:where(.css-ed5zg0).ant-popover-placement-bottomRight .ant-popover-arrow{right:12px}:where(.css-ed5zg0).ant-popover-placement-left .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-leftTop .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-leftBottom .ant-popover-arrow{right:0;transform:translate(100%) rotate(90deg)}:where(.css-ed5zg0).ant-popover-placement-left .ant-popover-arrow{top:50%;transform:translateY(-50%) translate(100%) rotate(90deg)}:where(.css-ed5zg0).ant-popover-placement-leftTop .ant-popover-arrow{top:12px}:where(.css-ed5zg0).ant-popover-placement-leftBottom .ant-popover-arrow{bottom:12px}:where(.css-ed5zg0).ant-popover-placement-right .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-rightTop .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-rightBottom .ant-popover-arrow{left:0;transform:translate(-100%) rotate(-90deg)}:where(.css-ed5zg0).ant-popover-placement-right .ant-popover-arrow{top:50%;transform:translateY(-50%) translate(-100%) rotate(-90deg)}:where(.css-ed5zg0).ant-popover-placement-rightTop .ant-popover-arrow{top:12px}:where(.css-ed5zg0).ant-popover-placement-rightBottom .ant-popover-arrow{bottom:12px}:where(.css-ed5zg0).ant-popover-pure{position:relative;max-width:none;margin:16px;display:inline-block}:where(.css-ed5zg0).ant-popover-pure .ant-popover-content{display:inline-block}:where(.css-ed5zg0).ant-popover.ant-popover-blue{--antd-arrow-background-color: #1677ff}:where(.css-ed5zg0).ant-popover.ant-popover-blue .ant-popover-inner{background-color:#1677ff}:where(.css-ed5zg0).ant-popover.ant-popover-blue .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-purple{--antd-arrow-background-color: #722ed1}:where(.css-ed5zg0).ant-popover.ant-popover-purple .ant-popover-inner{background-color:#722ed1}:where(.css-ed5zg0).ant-popover.ant-popover-purple .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-cyan{--antd-arrow-background-color: #13c2c2}:where(.css-ed5zg0).ant-popover.ant-popover-cyan .ant-popover-inner{background-color:#13c2c2}:where(.css-ed5zg0).ant-popover.ant-popover-cyan .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-green{--antd-arrow-background-color: #52c41a}:where(.css-ed5zg0).ant-popover.ant-popover-green .ant-popover-inner{background-color:#52c41a}:where(.css-ed5zg0).ant-popover.ant-popover-green .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-magenta{--antd-arrow-background-color: #eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-magenta .ant-popover-inner{background-color:#eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-magenta .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-pink{--antd-arrow-background-color: #eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-pink .ant-popover-inner{background-color:#eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-pink .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-red{--antd-arrow-background-color: #f5222d}:where(.css-ed5zg0).ant-popover.ant-popover-red .ant-popover-inner{background-color:#f5222d}:where(.css-ed5zg0).ant-popover.ant-popover-red .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-orange{--antd-arrow-background-color: #fa8c16}:where(.css-ed5zg0).ant-popover.ant-popover-orange .ant-popover-inner{background-color:#fa8c16}:where(.css-ed5zg0).ant-popover.ant-popover-orange .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-yellow{--antd-arrow-background-color: #fadb14}:where(.css-ed5zg0).ant-popover.ant-popover-yellow .ant-popover-inner{background-color:#fadb14}:where(.css-ed5zg0).ant-popover.ant-popover-yellow .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-volcano{--antd-arrow-background-color: #fa541c}:where(.css-ed5zg0).ant-popover.ant-popover-volcano .ant-popover-inner{background-color:#fa541c}:where(.css-ed5zg0).ant-popover.ant-popover-volcano .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue{--antd-arrow-background-color: #2f54eb}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue .ant-popover-inner{background-color:#2f54eb}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-lime{--antd-arrow-background-color: #a0d911}:where(.css-ed5zg0).ant-popover.ant-popover-lime .ant-popover-inner{background-color:#a0d911}:where(.css-ed5zg0).ant-popover.ant-popover-lime .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-gold{--antd-arrow-background-color: #faad14}:where(.css-ed5zg0).ant-popover.ant-popover-gold .ant-popover-inner{background-color:#faad14}:where(.css-ed5zg0).ant-popover.ant-popover-gold .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-zoom-big-enter,:where(.css-ed5zg0).ant-zoom-big-appear{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}:where(.css-ed5zg0).ant-zoom-big-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}:where(.css-ed5zg0).ant-zoom-big-enter.ant-zoom-big-enter-active,:where(.css-ed5zg0).ant-zoom-big-appear.ant-zoom-big-appear-active{animation-name:css-ed5zg0-antZoomBigIn;animation-play-state:running}:where(.css-ed5zg0).ant-zoom-big-leave.ant-zoom-big-leave-active{animation-name:css-ed5zg0-antZoomBigOut;animation-play-state:running;pointer-events:none}:where(.css-ed5zg0).ant-zoom-big-enter,:where(.css-ed5zg0).ant-zoom-big-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}:where(.css-ed5zg0).ant-zoom-big-enter-prepare,:where(.css-ed5zg0).ant-zoom-big-appear-prepare{transform:none}:where(.css-ed5zg0).ant-zoom-big-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.track-map .tooltip-container{pointer-events:none!important}.track-map .tooltip-container>*{pointer-events:initial}.g-expandable-pannel-wrap.collapsed .tooltip-container{display:none}.g-rc-tooltip{position:absolute!important}.g-rc-tooltip .g-rc-tooltip-arrow{height:10px}:root{--rpv-drop__area-background-color: #fff;--rpv-drop__area-body-border-color: rgba(0, 0, 0, .3);--rpv-drop__area-body-color: #000}.rpv-core__viewer--dark{--rpv-drop__area-background-color: #191919;--rpv-drop__area-body-border-color: #fff;--rpv-drop__area-body-color: #fff}.rpv-drop__area{background-color:var(--rpv-drop__area-background-color);inset:0;position:absolute;padding:.5rem;z-index:9999}.rpv-drop__area-body{border:2px dashed var(--rpv-drop__area-body-border-color);color:var(--rpv-drop__area-body-color);font-size:1.5rem;align-items:center;display:flex;justify-content:center;height:100%}.rpv-drop__area-body--rtl{direction:rtl}:root{--rpv-full-screen__overlay-background-color: #fff}.rpv-core__viewer--dark{--rpv-full-screen__overlay-background-color: #1a1a1a}.rpv-full-screen__exit-button{bottom:0;padding:.5rem;position:fixed;z-index:2}.rpv-full-screen__exit-button--ltr{right:0}.rpv-full-screen__exit-button--rtl{left:0}.rpv-full-screen__overlay{position:fixed;top:0;left:0;height:100%;width:100%;align-items:center;display:flex;justify-content:center;background-color:var(--rpv-full-screen__overlay-background-color);z-index:1}.rpv-page-navigation__current-page-input{margin:0 .25rem;text-align:right;width:3rem}:root{--rpv-print__progress-body-background-color: #fff;--rpv-print__progress-body-border-color: rgba(0, 0, 0, .3);--rpv-print__progress-body-color: #000}.rpv-core__viewer--dark{--rpv-print__progress-body-background-color: #363636;--rpv-print__progress-body-border-color: transparent;--rpv-print__progress-body-color: #fff}.rpv-print__permission-body{padding:1rem}.rpv-print__permission-footer{display:flex;justify-content:center;padding:0 1rem 1rem 0}.rpv-print__progress{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:9999}.rpv-print__progress-body{background-color:var(--rpv-print__progress-body-background-color);border:1px solid var(--rpv-print__progress-body-border-color);border-radius:.25rem;color:var(--rpv-print__progress-body-color);padding:1.5rem;text-align:center;width:15rem}.rpv-print__progress-body--rtl{direction:rtl}.rpv-print__progress-bar{margin-bottom:1rem}.rpv-print__progress-message{margin-bottom:.5rem}.rpv-print__zone{display:none}@media print{@page{margin:0}.rpv-print__html-printing{height:100%}.rpv-print__body-printing{height:100%;margin:0}.rpv-print__body-printing *{display:none}.rpv-print__zone{display:block;height:100%}.rpv-print__page{align-items:center;display:flex;flex-direction:column;justify-content:center;height:100%;width:100%;page-break-after:always;page-break-inside:avoid}.rpv-print__page img{display:block;max-height:100%;max-width:100%}}.rpv-properties__loader{text-align:center}.rpv-properties__modal{min-height:20rem;padding:.5rem 0}.rpv-properties__modal-section{padding:0 .5rem}.rpv-properties__modal-footer{display:flex;justify-content:center;margin-top:.5rem}.rpv-properties__item{align-items:flex-start;display:flex;margin:.5rem 0}.rpv-properties__item--rtl{direction:rtl}.rpv-properties__item-label{padding-right:.5rem;width:25%}.rpv-properties__item-value{flex:1}.rpv-search__highlights{left:0;position:absolute;top:0;height:100%;width:100%}.rpv-search__highlight{background-color:var(--rpv-search__highlight-background-color);border-radius:.25rem;position:absolute;z-index:1}.rpv-search__highlight--current{background-color:var(--rpv-search__highlight--current-background-color)}.rpv-search__popover{padding:0 .5rem}.rpv-search__popover-input-counter{align-items:center;display:flex;margin-bottom:.5rem;position:relative;width:12rem}.rpv-search__popover-counter{align-items:center;bottom:0;display:flex;position:absolute;top:0}.rpv-search__popover-counter--ltr{padding-right:.25rem;right:0}.rpv-search__popover-counter--rtl{left:0;padding-left:.25rem}.rpv-search__popover-label{align-items:center;cursor:pointer;display:flex;margin-bottom:.5rem}.rpv-search__popover-label-checkbox{cursor:pointer;margin-right:.25rem}.rpv-search__popover-footer{align-items:center;display:flex}.rpv-search__popover-footer-item{padding:0 .25rem}.rpv-search__popover-footer-button--ltr{margin-left:auto}.rpv-search__popover-footer-button--rtl{margin-right:auto}:root{--rpv-search__highlight-background-color: rgba(255, 255, 0, .4);--rpv-search__highlight--current-background-color: rgba(0, 128, 0, .4)}.rpv-selection-mode__grab{cursor:grab}.rpv-selection-mode__grab :not(input),.rpv-selection-mode__grab :not(select),.rpv-selection-mode__grab :not(textarea){cursor:grab!important}.rpv-selection-mode__grabbing{cursor:grabbing}.rpv-selection-mode__grabbing :not(input),.rpv-selection-mode__grabbing :not(select),.rpv-selection-mode__grabbing :not(textarea){cursor:grabbing!important}:root{--rpv-zoom__popover-target-arrow-border-color: rgba(0, 0, 0, .6)}.rpv-core__viewer--dark{--rpv-zoom__popover-target-arrow-border-color: #fff}.rpv-zoom__popover-target{align-items:center;color:var(--rpv-zoom__popover-target-color);display:flex}.rpv-zoom__popover-target-scale--ltr{margin-right:.25rem}.rpv-zoom__popover-target-scale--rtl{margin-left:.25rem}.rpv-zoom__popover-target-arrow{border-color:var(--rpv-zoom__popover-target-arrow-border-color) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:.5rem .25rem 0;height:0;width:0}:root{--rpv-toolbar__label--color: #000}.rpv-core__viewer--dark{--rpv-toolbar__label--color: #fff}.rpv-toolbar{align-items:center;display:flex;width:100%}.rpv-toolbar--rtl{direction:rtl}.rpv-toolbar__left{align-items:center;display:flex}.rpv-toolbar__center{align-items:center;display:flex;flex-grow:1;flex-shrink:1;justify-content:center}.rpv-toolbar__right{align-items:center;display:flex;margin-left:auto}.rpv-toolbar__item{align-items:center;display:flex;padding:0 .125rem}.rpv-toolbar__label{color:var(--rpv-toolbar__label--color)}.rpv-open__input-wrapper{position:relative}.rpv-open__input{display:none;cursor:pointer;height:100%;inset:0;opacity:0;position:absolute;width:100%}.rpv-open__input::-webkit-file-upload-button{width:0}.pdf-viewer{width:100%;height:100%;overflow-y:auto}')), document.head.appendChild(et);
|
|
171740
|
+
et.appendChild(document.createTextNode('.document-viewer{width:100%;height:100%;min-height:200px;display:flex;flex-direction:column;overflow:hidden;position:relative;gap:8px}.document-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid #f0f0f0;background:#fafafa;border-radius:4px;flex-shrink:0}.document-viewer-toolbar-meta{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.document-viewer-toolbar-name{font-weight:500;color:#1f1f1f;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-viewer-toolbar-size{font-size:12px;color:#666;flex-shrink:0}.document-viewer-body{flex:1;min-height:0;display:flex}.document-viewer-loading{display:flex;justify-content:center;align-items:center;min-height:200px;flex:1}.document-viewer-text,.document-viewer-json,.document-viewer-xml{padding:16px;background:#f5f5f5;border-radius:4px;overflow:auto;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;flex:1;min-height:0}.document-viewer-json{background:#f9f9f9}.document-viewer-xml{background:#fff8e1}.document-viewer-jsonl{padding:16px;overflow:auto;flex:1;min-height:0;width:100%;display:flex;flex-direction:column}.document-viewer-jsonl-item{margin-bottom:16px;padding:12px;background:#f9f9f9;border-radius:4px;border-left:3px solid #1890ff;width:100%;box-sizing:border-box;max-width:100%}.document-viewer-jsonl-item:last-child{margin-bottom:0}.document-viewer-jsonl-item pre{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;width:100%;max-width:100%;box-sizing:border-box}.document-viewer-code{border-radius:4px;overflow:auto;max-height:100%;height:100%;display:flex;flex-direction:column;width:100%}.document-viewer-code pre{margin:0!important;padding:16px!important;background:#f5f5f5!important;overflow:visible;width:100%;box-sizing:border-box}.document-viewer-code>div{overflow:auto;max-height:100%;width:100%}.document-viewer-image{display:flex;justify-content:center;align-items:center;padding:16px;min-height:200px;overflow:hidden;flex:1;min-height:0}.document-viewer-image .ant-image{max-width:100%;max-height:100%;width:100%;height:100%}.document-viewer-image .ant-image img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.document-viewer-video{display:flex;justify-content:center;align-items:center;padding:16px;min-height:200px;overflow:hidden;flex:1;min-height:0}.document-viewer-video video{max-width:100%;max-height:100%}.document-viewer-audio{padding:16px;display:flex;justify-content:center;align-items:center;min-height:100px;overflow:hidden;flex:1;min-height:0}.document-viewer-pdf,.document-viewer-office,.document-viewer-unknown,.document-viewer-zip{width:100%;height:100%;min-height:0;position:relative;flex:1;display:flex;flex-direction:column}.document-viewer-zip{display:flex;flex-direction:column;padding:16px;background:#fff;overflow:hidden}.document-viewer-zip .ant-table{font-size:12px}.document-viewer-zip .ant-table .ant-table-tbody>tr:hover>td{background-color:#f5f5f5}.document-viewer-zip .ant-table .ant-table-tbody>tr.ant-table-row-selected>td{background-color:#e6f7ff}.document-viewer-iframe{width:100%;height:100%;min-height:0;border:none;border-radius:4px;flex:1}.document-viewer-docx{overflow:hidden;background:#f5f5f5}.document-viewer-docx-content{width:100%;height:100%;overflow:auto;padding:16px;box-sizing:border-box;background:#f5f5f5}.document-viewer-docx-content>section{margin:0 auto 16px;box-shadow:0 2px 8px #00000014}.document-viewer-fallback{margin-top:16px}.document-viewer-alert-full{width:100%;align-self:flex-start}@media (max-width: 768px){.document-viewer-pdf,.document-viewer-office,.document-viewer-unknown,.document-viewer-iframe{min-height:0}}.storybook-button{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1}.storybook-button--primary{color:#fff;background-color:#027bf4}.storybook-button--secondary{color:#333;background-color:transparent;box-shadow:#00000026 0 0 0 1px inset}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}.copy-btn{font-size:16px;cursor:pointer}.copy-btn:hover{color:#b452ff}.g-icon-btn{height:28px;width:28px;line-height:28px;background-color:#222836;color:#b8c1d0;cursor:pointer;text-align:center;padding:0;border:none;font-size:16px;display:block}.g-icon-btn:hover{color:#fff;background:linear-gradient(180deg,#4e5b73 0%,#222836 100%);border-image:linear-gradient(180deg,#4e5b73 0%,#222836 100%),linear-gradient(180deg,#ffffff 16.67%,#d2d2d2 49.48%,#000000 73.44%,#e4e4e4 92.71%)}.g-icon-btn:disabled{color:#68707e;cursor:not-allowed;background:linear-gradient(180deg,#0a111d 0%,#222836 100%)}.markdown{word-break:break-all}.markdown :last-child{margin-bottom:0}.markdown div,.markdown hr,.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6,.markdown p,.markdown table,.markdown code,.markdown img,.markdown address,.markdown blockquote,.markdown dir,.markdown menu,.markdown pre,.markdown ul,.markdown ol,.markdown li,.markdown dl{margin-bottom:12px;line-height:150%;white-space:pre-wrap}.markdown div:last-child,.markdown hr:last-child,.markdown h1:last-child,.markdown h2:last-child,.markdown h3:last-child,.markdown h4:last-child,.markdown h5:last-child,.markdown h6:last-child,.markdown p:last-child,.markdown table:last-child,.markdown code:last-child,.markdown img:last-child,.markdown address:last-child,.markdown blockquote:last-child,.markdown dir:last-child,.markdown menu:last-child,.markdown pre:last-child,.markdown ul:last-child,.markdown ol:last-child,.markdown li:last-child,.markdown dl:last-child{margin-bottom:0}.markdown ul,.markdown ol{padding-inline-start:20px}.markdown ul{list-style-type:disc}.markdown ol{list-style-type:decimal}.markdown ul,.markdown li{white-space:normal;margin-bottom:8px}.markdown table{display:block;border-collapse:collapse;border-radius:4px;max-width:100%;overflow:auto;width:max-content}.markdown td,.markdown th{border:1px solid #e8e9eb;padding:6px 13px;text-align:left}.markdown tr{color:#151b26;background-color:#fff}.markdown th{background-color:#f9f2ff;color:#000}.markdown tr:hover td{background-color:#fff}.markdown p code{background:#f9f2ff;border-radius:4px;padding:4px;display:inline;font-size:12px;color:#070c14}.markdown .markdown-code-title{margin:0;padding:0 16px;height:36px;border-radius:8px 8px 0 0;background:#f9f2ff;display:flex;align-items:center;justify-content:space-between;line-height:21px;font-weight:500;color:#070c14}.markdown .markdown-code-context{padding:16px;background:rgba(249,242,255,.3)!important;margin:0!important;border-radius:0 0 8px 8px}.markdown .markdown-code-context code{margin:0;font-size:85%;background:none;font-size:14px}.markdown .markdown-code-context code>span{flex-wrap:wrap}.markdown p{white-space:pre-line}.markdown pre code.hljs{display:block;overflow-x:auto;padding:1em}.markdown p{line-height:150%;height:auto!important}.markdown img{max-width:100%}.markdown a,.markdown a:hover{color:#0f64ff}.markdown code.hljs{padding:3px 5px}.markdown .hljs{background:rgba(249,242,255,.3);color:#000}.markdown .hljs-comment{color:#697070}.markdown .hljs-tag,.markdown .hljs-punctuation{color:#000a}.markdown .hljs-tag .hljs-name,.markdown .hljs-tag .hljs-attr{color:#000}.markdown .hljs-keyword,.markdown .hljs-attribute,.markdown .hljs-selector-tag,.markdown .hljs-meta .hljs-keyword,.markdown .hljs-doctag,.markdown .hljs-name{font-weight:700}.markdown .hljs-type,.markdown .hljs-string,.markdown .hljs-number,.markdown .hljs-selector-id,.markdown .hljs-selector-class,.markdown .hljs-quote,.markdown .hljs-template-tag,.markdown .hljs-deletion{color:#800}.markdown .hljs-title,.markdown .hljs-section{color:#800;font-weight:700}.markdown .hljs-regexp,.markdown .hljs-symbol,.markdown .hljs-variable,.markdown .hljs-template-variable,.markdown .hljs-link,.markdown .hljs-selector-attr,.markdown .hljs-operator,.markdown .hljs-selector-pseudo{color:#ab5656}.markdown .hljs-literal{color:#695}.markdown .hljs-built_in,.markdown .hljs-bullet,.markdown .hljs-code,.markdown .hljs-addition{color:#397300}.markdown .hljs-meta{color:#1f7199}.markdown .hljs-meta .hljs-string{color:#38a}.markdown .hljs-emphasis{font-style:italic}.markdown .hljs-strong{font-weight:700}.markdown .ant-image{margin-bottom:6px!important}.markdown .ant-image .ant-image-img{margin-bottom:0!important}.g-mouse-tip{display:inline-flex;justify-content:center;align-items:center;gap:4px;box-shadow:0 1px 10px #0000000d,0 4px 5px #00000014,0 2px 4px -1px #0000001f;border-radius:4px;background:#000;position:fixed;z-index:2000;padding:8px 12px}.g-mouse-tip-content{font-size:12px;font-style:normal;font-weight:400;color:#fff}.g-expandable-pannel-wrap{inset:0;z-index:999}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar{position:absolute;right:0;top:0;background-color:#222836;z-index:9999}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.collapsed{position:absolute;top:0;right:0;z-index:9;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.expaned{padding:0}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.expaned .g-icon-btn{background-color:#0000}.g-expandable-pannel-wrap .g-expandable-pannel{width:100%;height:100%;border:.5px solid #313A4D}.g-expandable-pannel-wrap .g-expandable-pannel-header{position:absolute;right:0;top:0;z-index:9;padding-right:28px;height:28px;display:flex;flex-direction:row-reverse}.g-expandable-pannel-wrap .g-expandable-pannel-body{opacity:.85;width:100%;height:100%}.g-expandable-pannel-wrap .g-expandable-pannel-body .icon{width:16px;height:16px}.g-expandable-pannel-wrap .g-expandable-pannel.full{width:100%!important;height:100%!important;inset:0 55px;z-index:9}.g-expandable-pannel-wrap .g-expandable-pannel.hidden{inset:0 -20000px}.g-expandable-pannel-wrap .g-expandable-pannel.hidden+.bar-btn{position:absolute;right:0!important;background:rgba(58,63,76,.5);border-radius:20px 0 0 20px}.g-expandable-pannel-wrap .g-expandable-pannel.normal{height:250px;overflow:hidden;padding:0}.g-expandable-pannel-wrap .g-expandable-pannel.full+.bar-btn{top:0;right:55px;z-index:99}.g-expandable-pannel-wrap .g-expandable-pannel.full~.cover{display:block;position:absolute;width:100vw;height:100vh;top:0;left:0;background:#00000066}.g-expandable-pannel-wrap .g-expandable-pannel.hiddern~.cover{display:none}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel{width:134px;background:#ffffff;border:1px solid #ececec;box-shadow:2px 2px 6px #c0c0c040;border-radius:4px;padding:6px 12px}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel .item-row{width:100%;display:flex;height:32px;align-items:center}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel .item-row img{width:16px;height:16px;margin:0 8px}.g-expandable-pannel-wrap .g-expandable-pannel .status{display:block}.g-expandable-pannel-wrap .g-expandable-pannel .status.success:before{display:inline-block;content:"";width:12px;height:12px;background-color:#52c41a}.g-expandable-pannel-wrap .g-expandable-pannel .status.error:before{display:inline-block;content:"";width:12px;height:12px;background-color:#ff4d4f}.g-expandable-pannel-wrap .g-expandable-pannel .pass-confirm-wrap{position:absolute}.track-map{z-index:10;position:relative}.track-map .point{cursor:pointer}.track-map .bottom-action{position:fixed;left:50%;bottom:10px;transform:translate(-50%);z-index:1000;display:flex;justify-content:center;align-items:flex-end;padding-bottom:12px}.track-map .bottom-action .bottom-pannel{background:white;height:48px;background:rgba(255,255,255,.9);border:1px solid #f8f8f8;box-shadow:2px 2px 4px #c0c0c040;border-radius:4px;padding:0 12px}:where(.css-ed5zg0)[class^=ant-popconfirm],:where(.css-ed5zg0)[class*=" ant-popconfirm"]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:14px;box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"]:after{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm],:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm],:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"],:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]:after{box-sizing:border-box}:where(.css-ed5zg0).ant-popconfirm{z-index:1060}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-inner-content{color:#000000e0}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message{position:relative;margin-bottom:8px;color:#000000e0;font-size:14px;display:flex;flex-wrap:nowrap;align-items:start}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message>.ant-popconfirm-message-icon .anticon{color:#faad14;font-size:14px;flex:none;line-height:1;padding-top:4px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message-title{flex:auto;margin-inline-start:8px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message-title-only{font-weight:600}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-description{position:relative;margin-inline-start:22px;margin-bottom:8px;color:#000000e0;font-size:14px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-buttons{text-align:end}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-buttons button{margin-inline-start:8px}:where(.css-ed5zg0)[class^=ant-popover],:where(.css-ed5zg0)[class*=" ant-popover"]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:14px;box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover]:before,:where(.css-ed5zg0)[class*=" ant-popover"]:before,:where(.css-ed5zg0)[class^=ant-popover]:after,:where(.css-ed5zg0)[class*=" ant-popover"]:after{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover],:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover],:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"],:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover]:before,:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover]:before,:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"]:before,:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]:before,:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover]:after,:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover]:after,:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"]:after,:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]:after{box-sizing:border-box}:where(.css-ed5zg0).ant-popover{box-sizing:border-box;margin:0;padding:0;color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";position:absolute;top:0;left:0;z-index:1030;font-weight:400;white-space:normal;text-align:start;cursor:auto;user-select:text;--antd-arrow-background-color: #ffffff}:where(.css-ed5zg0).ant-popover-rtl{direction:rtl}:where(.css-ed5zg0).ant-popover-hidden{display:none}:where(.css-ed5zg0).ant-popover .ant-popover-content{position:relative}:where(.css-ed5zg0).ant-popover .ant-popover-inner{background-color:#fff;background-clip:padding-box;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:12px}:where(.css-ed5zg0).ant-popover .ant-popover-title{min-width:177px;margin-bottom:8px;color:#000000e0;font-weight:600}:where(.css-ed5zg0).ant-popover .ant-popover-inner-content{color:#000000e0;padding:0}:where(.css-ed5zg0).ant-popover .ant-popover-arrow{position:absolute;z-index:1;display:block;pointer-events:none;width:16px;height:16px;overflow:hidden;border:0}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:before{position:absolute;bottom:0;inset-inline-start:0;width:16px;height:8px;background:var(--antd-arrow-background-color);clip-path:polygon(1.65685425px 100%,50% 1.65685425px,14.34314575px 100%,1.65685425px 100%);clip-path:path("M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z");content:""}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:after{content:"";position:absolute;width:8.97056275px;height:8.97056275px;bottom:0;inset-inline:0;margin:auto;border-radius:0 0 2px;transform:translateY(50%) rotate(-135deg);box-shadow:2px 2px 5px #0000000d;z-index:0;background:transparent}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:before{background:var(--antd-arrow-background-color)}:where(.css-ed5zg0).ant-popover-placement-top .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-topLeft .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-topRight .ant-popover-arrow{bottom:0;transform:translateY(100%) rotate(180deg)}:where(.css-ed5zg0).ant-popover-placement-top .ant-popover-arrow{left:50%;transform:translate(-50%) translateY(100%) rotate(180deg)}:where(.css-ed5zg0).ant-popover-placement-topLeft .ant-popover-arrow{left:12px}:where(.css-ed5zg0).ant-popover-placement-topRight .ant-popover-arrow{right:12px}:where(.css-ed5zg0).ant-popover-placement-bottom .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-bottomLeft .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-bottomRight .ant-popover-arrow{top:0;transform:translateY(-100%)}:where(.css-ed5zg0).ant-popover-placement-bottom .ant-popover-arrow{left:50%;transform:translate(-50%) translateY(-100%)}:where(.css-ed5zg0).ant-popover-placement-bottomLeft .ant-popover-arrow{left:12px}:where(.css-ed5zg0).ant-popover-placement-bottomRight .ant-popover-arrow{right:12px}:where(.css-ed5zg0).ant-popover-placement-left .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-leftTop .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-leftBottom .ant-popover-arrow{right:0;transform:translate(100%) rotate(90deg)}:where(.css-ed5zg0).ant-popover-placement-left .ant-popover-arrow{top:50%;transform:translateY(-50%) translate(100%) rotate(90deg)}:where(.css-ed5zg0).ant-popover-placement-leftTop .ant-popover-arrow{top:12px}:where(.css-ed5zg0).ant-popover-placement-leftBottom .ant-popover-arrow{bottom:12px}:where(.css-ed5zg0).ant-popover-placement-right .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-rightTop .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-rightBottom .ant-popover-arrow{left:0;transform:translate(-100%) rotate(-90deg)}:where(.css-ed5zg0).ant-popover-placement-right .ant-popover-arrow{top:50%;transform:translateY(-50%) translate(-100%) rotate(-90deg)}:where(.css-ed5zg0).ant-popover-placement-rightTop .ant-popover-arrow{top:12px}:where(.css-ed5zg0).ant-popover-placement-rightBottom .ant-popover-arrow{bottom:12px}:where(.css-ed5zg0).ant-popover-pure{position:relative;max-width:none;margin:16px;display:inline-block}:where(.css-ed5zg0).ant-popover-pure .ant-popover-content{display:inline-block}:where(.css-ed5zg0).ant-popover.ant-popover-blue{--antd-arrow-background-color: #1677ff}:where(.css-ed5zg0).ant-popover.ant-popover-blue .ant-popover-inner{background-color:#1677ff}:where(.css-ed5zg0).ant-popover.ant-popover-blue .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-purple{--antd-arrow-background-color: #722ed1}:where(.css-ed5zg0).ant-popover.ant-popover-purple .ant-popover-inner{background-color:#722ed1}:where(.css-ed5zg0).ant-popover.ant-popover-purple .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-cyan{--antd-arrow-background-color: #13c2c2}:where(.css-ed5zg0).ant-popover.ant-popover-cyan .ant-popover-inner{background-color:#13c2c2}:where(.css-ed5zg0).ant-popover.ant-popover-cyan .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-green{--antd-arrow-background-color: #52c41a}:where(.css-ed5zg0).ant-popover.ant-popover-green .ant-popover-inner{background-color:#52c41a}:where(.css-ed5zg0).ant-popover.ant-popover-green .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-magenta{--antd-arrow-background-color: #eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-magenta .ant-popover-inner{background-color:#eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-magenta .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-pink{--antd-arrow-background-color: #eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-pink .ant-popover-inner{background-color:#eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-pink .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-red{--antd-arrow-background-color: #f5222d}:where(.css-ed5zg0).ant-popover.ant-popover-red .ant-popover-inner{background-color:#f5222d}:where(.css-ed5zg0).ant-popover.ant-popover-red .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-orange{--antd-arrow-background-color: #fa8c16}:where(.css-ed5zg0).ant-popover.ant-popover-orange .ant-popover-inner{background-color:#fa8c16}:where(.css-ed5zg0).ant-popover.ant-popover-orange .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-yellow{--antd-arrow-background-color: #fadb14}:where(.css-ed5zg0).ant-popover.ant-popover-yellow .ant-popover-inner{background-color:#fadb14}:where(.css-ed5zg0).ant-popover.ant-popover-yellow .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-volcano{--antd-arrow-background-color: #fa541c}:where(.css-ed5zg0).ant-popover.ant-popover-volcano .ant-popover-inner{background-color:#fa541c}:where(.css-ed5zg0).ant-popover.ant-popover-volcano .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue{--antd-arrow-background-color: #2f54eb}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue .ant-popover-inner{background-color:#2f54eb}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-lime{--antd-arrow-background-color: #a0d911}:where(.css-ed5zg0).ant-popover.ant-popover-lime .ant-popover-inner{background-color:#a0d911}:where(.css-ed5zg0).ant-popover.ant-popover-lime .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-gold{--antd-arrow-background-color: #faad14}:where(.css-ed5zg0).ant-popover.ant-popover-gold .ant-popover-inner{background-color:#faad14}:where(.css-ed5zg0).ant-popover.ant-popover-gold .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-zoom-big-enter,:where(.css-ed5zg0).ant-zoom-big-appear{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}:where(.css-ed5zg0).ant-zoom-big-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}:where(.css-ed5zg0).ant-zoom-big-enter.ant-zoom-big-enter-active,:where(.css-ed5zg0).ant-zoom-big-appear.ant-zoom-big-appear-active{animation-name:css-ed5zg0-antZoomBigIn;animation-play-state:running}:where(.css-ed5zg0).ant-zoom-big-leave.ant-zoom-big-leave-active{animation-name:css-ed5zg0-antZoomBigOut;animation-play-state:running;pointer-events:none}:where(.css-ed5zg0).ant-zoom-big-enter,:where(.css-ed5zg0).ant-zoom-big-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}:where(.css-ed5zg0).ant-zoom-big-enter-prepare,:where(.css-ed5zg0).ant-zoom-big-appear-prepare{transform:none}:where(.css-ed5zg0).ant-zoom-big-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.track-map .tooltip-container{pointer-events:none!important}.track-map .tooltip-container>*{pointer-events:initial}.g-expandable-pannel-wrap.collapsed .tooltip-container{display:none}.g-rc-tooltip{position:absolute!important}.g-rc-tooltip .g-rc-tooltip-arrow{height:10px}.pass-map{background:transparent}.pass-map .pass-area{position:absolute;background:rgba(255,77,79,.21);border:1px solid #00000000;z-index:1}.pass-map .pass-area-circle{border-radius:50%}.pass-map .pass-area__active{background:rgba(255,77,79,.25);border:1px solid #ff4d4f}.image-map{position:relative;width:100%;height:100%;overflow:hidden;user-select:none;display:flex;justify-content:center}.image-map .image-map-pannel{width:100%;height:100%;user-select:none;display:flex;justify-content:center;align-items:center}.image-map .image-map-toolbar{position:absolute;width:auto;height:auto;bottom:12px;z-index:99;display:flex;align-items:center;gap:12px;background-color:#393939;padding:10px;border-radius:6px}.image-map .image-map-toolbar .zoom-controller{display:flex;height:100%;align-items:center;gap:12px;color:#fff}.image-map .image-map-toolbar .zoom-controller .g-icon-btn,.image-map .image-map-toolbar .zoom-controller .g-icon-btn button{background-color:unset;font-size:16px;border:.5px solid #6f6f6f;border-radius:2px;font-size:14px}.image-map .image-map-toolbar .zoom-controller .g-icon-btn .anticon,.image-map .image-map-toolbar .zoom-controller .g-icon-btn button .anticon{font-size:14px}.image-map .image-map-toolbar .zoom-controller.vertical{flex-direction:column}.image-map .image-map-toolbar .zoom-controller.vertical .g-icon-btn{background-color:red;margin-top:6px;border:none}.image-map .image-map-toolbar .zoom-controller.vertical .g-icon-btn .anticon{font-size:16px}.image-map .image-map-toolbar .zoom-controller.horizontal{flex-direction:row}.image-map .image-map-toolbar .line{width:1px;height:12px;border:.5px solid #e0e0e0}.image-map .image-map-toolbar .moveable-controller{background-color:unset;height:100%;border:.5px solid #6f6f6f;border-radius:2px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn{position:relative;border:none;border-radius:2px;background-color:unset;padding:0;display:flex;height:100%}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .btn-change{display:flex;align-items:center;color:#fff;gap:10px;height:100%;margin-inline-end:unset;padding:4px 8px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .btn-change svg{font-size:16px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .anticon{font-size:24px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn.active{color:#fff}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn:hover{background:linear-gradient(180deg,#4e5b73 0%,#222836 100%)}.image-map .image-map-toolbar .editing-controller{display:flex;gap:12px;align-items:center;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left}.image-map .image-map-toolbar .editing-controller .ant-btn-default{border:.5px solid #6f6f6f;border-radius:2px;background-color:unset;color:#fff;padding:4px 8px}.image-map .image-map-toolbar .editing-controller .ant-btn-default:hover{background:linear-gradient(180deg,#4e5b73 0%,#222836 100%)}.image-map .image-map-toolbar .editing-controller .ant-btn-primary{border-radius:2px;background-color:#0532a6;border:.5px solid #6f6f6f;color:#fff;padding:4px 8px}.image-map .image-map-toolbar .editing-controller .ant-btn-primary:hover{background:#0949d2}.image-map .image-map-toolbar .editing-controller .ant-btn-primary .save-detail{display:flex;align-items:center;color:#fff;gap:10px;height:100%}.image-map .image-map-toolbar .editing-controller .ant-btn-primary .save-detail svg{font-size:16px}:root{--rpv-drop__area-background-color: #fff;--rpv-drop__area-body-border-color: rgba(0, 0, 0, .3);--rpv-drop__area-body-color: #000}.rpv-core__viewer--dark{--rpv-drop__area-background-color: #191919;--rpv-drop__area-body-border-color: #fff;--rpv-drop__area-body-color: #fff}.rpv-drop__area{background-color:var(--rpv-drop__area-background-color);inset:0;position:absolute;padding:.5rem;z-index:9999}.rpv-drop__area-body{border:2px dashed var(--rpv-drop__area-body-border-color);color:var(--rpv-drop__area-body-color);font-size:1.5rem;align-items:center;display:flex;justify-content:center;height:100%}.rpv-drop__area-body--rtl{direction:rtl}:root{--rpv-full-screen__overlay-background-color: #fff}.rpv-core__viewer--dark{--rpv-full-screen__overlay-background-color: #1a1a1a}.rpv-full-screen__exit-button{bottom:0;padding:.5rem;position:fixed;z-index:2}.rpv-full-screen__exit-button--ltr{right:0}.rpv-full-screen__exit-button--rtl{left:0}.rpv-full-screen__overlay{position:fixed;top:0;left:0;height:100%;width:100%;align-items:center;display:flex;justify-content:center;background-color:var(--rpv-full-screen__overlay-background-color);z-index:1}.rpv-page-navigation__current-page-input{margin:0 .25rem;text-align:right;width:3rem}:root{--rpv-print__progress-body-background-color: #fff;--rpv-print__progress-body-border-color: rgba(0, 0, 0, .3);--rpv-print__progress-body-color: #000}.rpv-core__viewer--dark{--rpv-print__progress-body-background-color: #363636;--rpv-print__progress-body-border-color: transparent;--rpv-print__progress-body-color: #fff}.rpv-print__permission-body{padding:1rem}.rpv-print__permission-footer{display:flex;justify-content:center;padding:0 1rem 1rem 0}.rpv-print__progress{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:9999}.rpv-print__progress-body{background-color:var(--rpv-print__progress-body-background-color);border:1px solid var(--rpv-print__progress-body-border-color);border-radius:.25rem;color:var(--rpv-print__progress-body-color);padding:1.5rem;text-align:center;width:15rem}.rpv-print__progress-body--rtl{direction:rtl}.rpv-print__progress-bar{margin-bottom:1rem}.rpv-print__progress-message{margin-bottom:.5rem}.rpv-print__zone{display:none}@media print{@page{margin:0}.rpv-print__html-printing{height:100%}.rpv-print__body-printing{height:100%;margin:0}.rpv-print__body-printing *{display:none}.rpv-print__zone{display:block;height:100%}.rpv-print__page{align-items:center;display:flex;flex-direction:column;justify-content:center;height:100%;width:100%;page-break-after:always;page-break-inside:avoid}.rpv-print__page img{display:block;max-height:100%;max-width:100%}}.rpv-properties__loader{text-align:center}.rpv-properties__modal{min-height:20rem;padding:.5rem 0}.rpv-properties__modal-section{padding:0 .5rem}.rpv-properties__modal-footer{display:flex;justify-content:center;margin-top:.5rem}.rpv-properties__item{align-items:flex-start;display:flex;margin:.5rem 0}.rpv-properties__item--rtl{direction:rtl}.rpv-properties__item-label{padding-right:.5rem;width:25%}.rpv-properties__item-value{flex:1}.rpv-search__highlights{left:0;position:absolute;top:0;height:100%;width:100%}.rpv-search__highlight{background-color:var(--rpv-search__highlight-background-color);border-radius:.25rem;position:absolute;z-index:1}.rpv-search__highlight--current{background-color:var(--rpv-search__highlight--current-background-color)}.rpv-search__popover{padding:0 .5rem}.rpv-search__popover-input-counter{align-items:center;display:flex;margin-bottom:.5rem;position:relative;width:12rem}.rpv-search__popover-counter{align-items:center;bottom:0;display:flex;position:absolute;top:0}.rpv-search__popover-counter--ltr{padding-right:.25rem;right:0}.rpv-search__popover-counter--rtl{left:0;padding-left:.25rem}.rpv-search__popover-label{align-items:center;cursor:pointer;display:flex;margin-bottom:.5rem}.rpv-search__popover-label-checkbox{cursor:pointer;margin-right:.25rem}.rpv-search__popover-footer{align-items:center;display:flex}.rpv-search__popover-footer-item{padding:0 .25rem}.rpv-search__popover-footer-button--ltr{margin-left:auto}.rpv-search__popover-footer-button--rtl{margin-right:auto}:root{--rpv-search__highlight-background-color: rgba(255, 255, 0, .4);--rpv-search__highlight--current-background-color: rgba(0, 128, 0, .4)}.rpv-selection-mode__grab{cursor:grab}.rpv-selection-mode__grab :not(input),.rpv-selection-mode__grab :not(select),.rpv-selection-mode__grab :not(textarea){cursor:grab!important}.rpv-selection-mode__grabbing{cursor:grabbing}.rpv-selection-mode__grabbing :not(input),.rpv-selection-mode__grabbing :not(select),.rpv-selection-mode__grabbing :not(textarea){cursor:grabbing!important}:root{--rpv-zoom__popover-target-arrow-border-color: rgba(0, 0, 0, .6)}.rpv-core__viewer--dark{--rpv-zoom__popover-target-arrow-border-color: #fff}.rpv-zoom__popover-target{align-items:center;color:var(--rpv-zoom__popover-target-color);display:flex}.rpv-zoom__popover-target-scale--ltr{margin-right:.25rem}.rpv-zoom__popover-target-scale--rtl{margin-left:.25rem}.rpv-zoom__popover-target-arrow{border-color:var(--rpv-zoom__popover-target-arrow-border-color) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:.5rem .25rem 0;height:0;width:0}:root{--rpv-toolbar__label--color: #000}.rpv-core__viewer--dark{--rpv-toolbar__label--color: #fff}.rpv-toolbar{align-items:center;display:flex;width:100%}.rpv-toolbar--rtl{direction:rtl}.rpv-toolbar__left{align-items:center;display:flex}.rpv-toolbar__center{align-items:center;display:flex;flex-grow:1;flex-shrink:1;justify-content:center}.rpv-toolbar__right{align-items:center;display:flex;margin-left:auto}.rpv-toolbar__item{align-items:center;display:flex;padding:0 .125rem}.rpv-toolbar__label{color:var(--rpv-toolbar__label--color)}.rpv-open__input-wrapper{position:relative}.rpv-open__input{display:none;cursor:pointer;height:100%;inset:0;opacity:0;position:absolute;width:100%}.rpv-open__input::-webkit-file-upload-button{width:0}.pdf-viewer{width:100%;height:100%;overflow-y:auto}')), document.head.appendChild(et);
|
|
171741
171741
|
}
|
|
171742
171742
|
} catch (tt) {
|
|
171743
171743
|
console.error("vite-plugin-css-injected-by-js", tt);
|
|
@@ -171774,25 +171774,25 @@ const s$8 = ["list_directory", "read_file", "stat_file", "search_files", "search
|
|
|
171774
171774
|
test: _$7,
|
|
171775
171775
|
prod: _$7,
|
|
171776
171776
|
local: _$7
|
|
171777
|
-
}, E$
|
|
171777
|
+
}, E$b = t$4, c$9 = "run_python", I$9 = t$4, n$6 = 2e4, L$9 = 16, S$5 = "current-workspace", o$6 = 1024, e$2 = 1024 * 1024, T$4 = 50, A$a = Object.freeze({
|
|
171778
171778
|
maxReadBytes: 1 * e$2,
|
|
171779
171779
|
maxWriteBytes: 5 * e$2,
|
|
171780
171780
|
maxSearchResults: 200,
|
|
171781
171781
|
maxConcurrentRequests: 4,
|
|
171782
|
-
maxTransferBytes: T$
|
|
171782
|
+
maxTransferBytes: T$4 * e$2,
|
|
171783
171783
|
toolTimeoutMs: 3e4,
|
|
171784
171784
|
searchTimeoutMs: 6e4,
|
|
171785
171785
|
transferTimeoutMs: 10 * 6e4,
|
|
171786
171786
|
approvalTimeoutMs: 5 * 6e4
|
|
171787
171787
|
}), N$6 = 200, C$4 = 1e3, a$9 = 8, l$7 = 16, R$6 = 2e3, r$5 = 1 * e$2, i$9 = 500, D$5 = 3, F$4 = 8 * o$6, M$4 = Object.freeze(["glodon.com"]), U$2 = Object.freeze([".git", "node_modules", ".svn", ".idea", ".vscode"]), d$8 = Object.freeze(["~$*", ".~lock*", "*.tmp"]), p$b = ["search_files", "search_text"], H$4 = ["upload_file", "download_file"];
|
|
171788
|
-
var i$8 = Object.defineProperty, E$
|
|
171788
|
+
var i$8 = Object.defineProperty, E$a = (et, tt, it) => tt in et ? i$8(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, a$8 = (et, tt, it) => (E$a(et, typeof tt != "symbol" ? tt + "" : tt, it), it), f$b = /* @__PURE__ */ ((et) => (et[et.Ok = 0] = "Ok", et[et.BadRequest = 400] = "BadRequest", et[et.Forbidden = 403] = "Forbidden", et[et.NotFound = 404] = "NotFound", et[et.Timeout = 408] = "Timeout", et[et.Conflict = 409] = "Conflict", et[et.TooLarge = 413] = "TooLarge", et[et.TooManyRequests = 429] = "TooManyRequests", et[et.Cancelled = 499] = "Cancelled", et[et.Internal = 500] = "Internal", et[et.NotImplemented = 501] = "NotImplemented", et))(f$b || {});
|
|
171789
171789
|
let n$5 = class extends Error {
|
|
171790
171790
|
constructor(tt, it, dt) {
|
|
171791
171791
|
super(it), a$8(this, "code"), a$8(this, "data"), this.name = "ToolError", this.code = tt, this.data = dt;
|
|
171792
171792
|
}
|
|
171793
171793
|
};
|
|
171794
171794
|
const w$a = "尚未授权工作文件夹,请先在助手中选择或恢复访问工作文件夹。";
|
|
171795
|
-
function m$
|
|
171795
|
+
function m$b() {
|
|
171796
171796
|
return new n$5(403, w$a, {
|
|
171797
171797
|
reason: "workspace_not_granted"
|
|
171798
171798
|
});
|
|
@@ -171814,7 +171814,7 @@ function o$5(et) {
|
|
|
171814
171814
|
return new n$5(400, "路径类型不匹配:目标是目录而不是文件,或路径中的某一段不是目录。");
|
|
171815
171815
|
case "NotAllowedError":
|
|
171816
171816
|
case "SecurityError":
|
|
171817
|
-
return m$
|
|
171817
|
+
return m$b();
|
|
171818
171818
|
case "AbortError":
|
|
171819
171819
|
return c$8();
|
|
171820
171820
|
case "NoModificationAllowedError":
|
|
@@ -171827,9 +171827,9 @@ function o$5(et) {
|
|
|
171827
171827
|
return new n$5(500, "本地文件操作失败,请稍后重试。");
|
|
171828
171828
|
}
|
|
171829
171829
|
}
|
|
171830
|
-
var l$6 = Object.defineProperty, u$g = Object.defineProperties, y$a = Object.getOwnPropertyDescriptors, o$4 = Object.getOwnPropertySymbols, h$
|
|
171830
|
+
var l$6 = Object.defineProperty, u$g = Object.defineProperties, y$a = Object.getOwnPropertyDescriptors, o$4 = Object.getOwnPropertySymbols, h$8 = Object.prototype.hasOwnProperty, g$a = Object.prototype.propertyIsEnumerable, a$7 = (et, tt, it) => tt in et ? l$6(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, d$7 = (et, tt) => {
|
|
171831
171831
|
for (var it in tt || (tt = {}))
|
|
171832
|
-
h$
|
|
171832
|
+
h$8.call(tt, it) && a$7(et, it, tt[it]);
|
|
171833
171833
|
if (o$4)
|
|
171834
171834
|
for (var it of o$4(tt))
|
|
171835
171835
|
g$a.call(tt, it) && a$7(et, it, tt[it]);
|
|
@@ -171837,8 +171837,8 @@ var l$6 = Object.defineProperty, u$g = Object.defineProperties, y$a = Object.get
|
|
|
171837
171837
|
}, c$7 = (et, tt) => u$g(et, y$a(tt));
|
|
171838
171838
|
const p$a = "只操作用户在当前浏览器里选择的本地文件夹,路径相对该文件夹。云端工作区的文件不要用本工具。", r$4 = {
|
|
171839
171839
|
type: "string",
|
|
171840
|
-
enum: [S$
|
|
171841
|
-
description: `工作区 ID。省略时按 ${S$
|
|
171840
|
+
enum: [S$5],
|
|
171841
|
+
description: `工作区 ID。省略时按 ${S$5} 处理,传其他值会被拒绝。`
|
|
171842
171842
|
}, n$4 = (et) => ({
|
|
171843
171843
|
type: "string",
|
|
171844
171844
|
description: `${et}使用相对工作区根目录的路径,以 / 分隔,不能包含 .. 或绝对路径。`
|
|
@@ -172111,10 +172111,10 @@ const p$a = "只操作用户在当前浏览器里选择的本地文件夹,路
|
|
|
172111
172111
|
}
|
|
172112
172112
|
}
|
|
172113
172113
|
}
|
|
172114
|
-
}, x$
|
|
172114
|
+
}, x$8 = "在已绑定的本地工程目录中运行已有 .py,路径相对该目录。不要用于云端工作区,不要传 shell 或代码,只能传 path 和 args。", I$8 = {
|
|
172115
172115
|
functionCode: c$9,
|
|
172116
172116
|
name: "运行本地 Python 脚本",
|
|
172117
|
-
description: `${x$
|
|
172117
|
+
description: `${x$8}每次运行需用户单独确认,文件读写授权不能代替。确认后脚本可直接读写该目录并使用标准库,改动立即落盘。不能联网,不能在运行中安装包,也不能访问该目录以外的文件。第三方包写在工程根目录 sandbox-requirements.txt。结果打印到标准输出。code 为 0 只表示已结束,成功看 data.exitCode,超时看 data.timedOut。`,
|
|
172118
172118
|
parameters: {
|
|
172119
172119
|
type: "object",
|
|
172120
172120
|
required: ["grantId", "path"],
|
|
@@ -172150,12 +172150,12 @@ function i$7() {
|
|
|
172150
172150
|
});
|
|
172151
172151
|
}
|
|
172152
172152
|
function l$5(et) {
|
|
172153
|
-
if (et !== S$
|
|
172154
|
-
throw new n$5(f$b.Forbidden, `未知的工作区 grantId,当前仅支持 ${S$
|
|
172153
|
+
if (et !== S$5)
|
|
172154
|
+
throw new n$5(f$b.Forbidden, `未知的工作区 grantId,当前仅支持 ${S$5}。`, {
|
|
172155
172155
|
reason: "path_outside_workspace"
|
|
172156
172156
|
});
|
|
172157
172157
|
}
|
|
172158
|
-
function m$
|
|
172158
|
+
function m$a(et, {
|
|
172159
172159
|
allowRoot: tt = !1,
|
|
172160
172160
|
field: it = "path"
|
|
172161
172161
|
} = {}) {
|
|
@@ -172212,19 +172212,19 @@ function r$3(et, tt = !1) {
|
|
|
172212
172212
|
function g$9(et, tt, it = !1) {
|
|
172213
172213
|
return r$3(et, it).test(tt);
|
|
172214
172214
|
}
|
|
172215
|
-
function x$
|
|
172215
|
+
function x$7(et) {
|
|
172216
172216
|
const tt = et.lastIndexOf("/");
|
|
172217
172217
|
return tt < 0 ? et : et.slice(tt + 1);
|
|
172218
172218
|
}
|
|
172219
|
-
var l$4 = Object.defineProperty, u$e = Object.defineProperties, b$c = Object.getOwnPropertyDescriptors, i$5 = Object.getOwnPropertySymbols, k$a = Object.prototype.hasOwnProperty, m$
|
|
172219
|
+
var l$4 = Object.defineProperty, u$e = Object.defineProperties, b$c = Object.getOwnPropertyDescriptors, i$5 = Object.getOwnPropertySymbols, k$a = Object.prototype.hasOwnProperty, m$9 = Object.prototype.propertyIsEnumerable, a$6 = (et, tt, it) => tt in et ? l$4(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, o$3 = (et, tt) => {
|
|
172220
172220
|
for (var it in tt || (tt = {}))
|
|
172221
172221
|
k$a.call(tt, it) && a$6(et, it, tt[it]);
|
|
172222
172222
|
if (i$5)
|
|
172223
172223
|
for (var it of i$5(tt))
|
|
172224
|
-
m$
|
|
172224
|
+
m$9.call(tt, it) && a$6(et, it, tt[it]);
|
|
172225
172225
|
return et;
|
|
172226
172226
|
}, c$6 = (et, tt) => u$e(et, b$c(tt)), d$5 = (et, tt, it) => (a$6(et, typeof tt != "symbol" ? tt + "" : tt, it), it);
|
|
172227
|
-
const h$
|
|
172227
|
+
const h$7 = Object.freeze([{
|
|
172228
172228
|
id: "env-files",
|
|
172229
172229
|
pattern: ".env*",
|
|
172230
172230
|
reason: "环境变量文件可能包含密钥",
|
|
@@ -172299,12 +172299,12 @@ let g$8 = class {
|
|
|
172299
172299
|
id: String(dt.id || dt.pattern),
|
|
172300
172300
|
source: dt.source === "enterprise" ? "enterprise" : "product"
|
|
172301
172301
|
}));
|
|
172302
|
-
this.rules = [...h$
|
|
172302
|
+
this.rules = [...h$7, ...it];
|
|
172303
172303
|
}
|
|
172304
172304
|
match(tt, it) {
|
|
172305
172305
|
if (!tt)
|
|
172306
172306
|
return null;
|
|
172307
|
-
const dt = x$
|
|
172307
|
+
const dt = x$7(tt);
|
|
172308
172308
|
for (const ft of this.rules) {
|
|
172309
172309
|
if (ft.operations && !ft.operations.includes(it))
|
|
172310
172310
|
continue;
|
|
@@ -172337,7 +172337,7 @@ var i$4 = (et, tt, it) => new Promise((dt, ft) => {
|
|
|
172337
172337
|
}, It = ($t) => $t.done ? dt($t.value) : Promise.resolve($t.value).then(bt, Nt);
|
|
172338
172338
|
It((it = it.apply(et, tt)).next());
|
|
172339
172339
|
});
|
|
172340
|
-
function x$
|
|
172340
|
+
function x$6(et, tt, it) {
|
|
172341
172341
|
const dt = et.sensitive.match(tt, it);
|
|
172342
172342
|
if (dt)
|
|
172343
172343
|
throw new n$5(f$b.Forbidden, g$8.reasonOf(dt), {
|
|
@@ -172370,7 +172370,7 @@ function A$9(et) {
|
|
|
172370
172370
|
return `sha256:${Array.from(new Uint8Array(tt)).map((it) => it.toString(16).padStart(2, "0")).join("")}`;
|
|
172371
172371
|
});
|
|
172372
172372
|
}
|
|
172373
|
-
function m$
|
|
172373
|
+
function m$8(et) {
|
|
172374
172374
|
return i$4(this, null, function* () {
|
|
172375
172375
|
return new Uint8Array(yield et.arrayBuffer());
|
|
172376
172376
|
});
|
|
@@ -172384,7 +172384,7 @@ function B$6(et) {
|
|
|
172384
172384
|
}
|
|
172385
172385
|
function N$4(et) {
|
|
172386
172386
|
return i$4(this, null, function* () {
|
|
172387
|
-
return B$6(yield m$
|
|
172387
|
+
return B$6(yield m$8(et.slice(0, F$4)));
|
|
172388
172388
|
});
|
|
172389
172389
|
}
|
|
172390
172390
|
function U$1(et) {
|
|
@@ -172399,23 +172399,23 @@ function v$7(et) {
|
|
|
172399
172399
|
throw new n$5(f$b.BadRequest, "文件不是 UTF-8 编码,暂不支持修改。");
|
|
172400
172400
|
}
|
|
172401
172401
|
}
|
|
172402
|
-
function E$
|
|
172402
|
+
function E$9(et) {
|
|
172403
172403
|
return new TextEncoder().encode(et).byteLength;
|
|
172404
172404
|
}
|
|
172405
172405
|
function k$9() {
|
|
172406
172406
|
return new Promise((et) => setTimeout(et, 0));
|
|
172407
172407
|
}
|
|
172408
|
-
function T$
|
|
172408
|
+
function T$3(et) {
|
|
172409
172409
|
return et >= 1024 * 1024 ? `${(et / 1024 / 1024).toFixed(1)} MB` : et >= 1024 ? `${(et / 1024).toFixed(1)} KB` : `${et} B`;
|
|
172410
172410
|
}
|
|
172411
|
-
function q$
|
|
172412
|
-
return new n$5(f$b.TooLarge, `${tt}超过大小上限 ${T$
|
|
172411
|
+
function q$5(et, tt = "文件") {
|
|
172412
|
+
return new n$5(f$b.TooLarge, `${tt}超过大小上限 ${T$3(et)}。`);
|
|
172413
172413
|
}
|
|
172414
172414
|
var H$3 = (et, tt) => {
|
|
172415
172415
|
if (tt = Symbol[et])
|
|
172416
172416
|
return tt;
|
|
172417
172417
|
throw Error("Symbol." + et + " is not defined");
|
|
172418
|
-
}, x$
|
|
172418
|
+
}, x$5 = (et, tt, it) => new Promise((dt, ft) => {
|
|
172419
172419
|
var bt = ($t) => {
|
|
172420
172420
|
try {
|
|
172421
172421
|
It(it.next($t));
|
|
@@ -172447,8 +172447,8 @@ const re$2 = new TextEncoder();
|
|
|
172447
172447
|
function y$8(et, tt, it, dt) {
|
|
172448
172448
|
return et === void 0 ? tt : Math.min(Math.max(Math.trunc(et), it), dt);
|
|
172449
172449
|
}
|
|
172450
|
-
const Ee = (et, tt) => x$
|
|
172451
|
-
const it = m$
|
|
172450
|
+
const Ee = (et, tt) => x$5(void 0, null, function* () {
|
|
172451
|
+
const it = m$a(et.path, {
|
|
172452
172452
|
allowRoot: !0
|
|
172453
172453
|
});
|
|
172454
172454
|
if ((yield tt.adapter.stat(it)).kind !== "directory")
|
|
@@ -172501,14 +172501,14 @@ function ce$1(et, tt, it) {
|
|
|
172501
172501
|
(Nt || !It) && (yield Nt);
|
|
172502
172502
|
});
|
|
172503
172503
|
}
|
|
172504
|
-
const Te$1 = (et, tt) => x$
|
|
172504
|
+
const Te$1 = (et, tt) => x$5(void 0, null, function* () {
|
|
172505
172505
|
var it, dt;
|
|
172506
|
-
const ft = m$
|
|
172507
|
-
x$
|
|
172506
|
+
const ft = m$a(et.path);
|
|
172507
|
+
x$6(tt, ft, "read");
|
|
172508
172508
|
const bt = yield $$5(tt.adapter, ft), Nt = yield tt.adapter.readFile(ft), It = (it = bt.size) != null ? it : Nt.size;
|
|
172509
172509
|
if (yield N$4(Nt))
|
|
172510
172510
|
throw new n$5(f$b.BadRequest, "这是二进制文件,不能按文本读取。可以使用 stat_file 查看信息,或使用 upload_file 上传到会话。");
|
|
172511
|
-
const $t = yield m$
|
|
172511
|
+
const $t = yield m$8(Nt.slice(0, 3)), Dt = U$1($t) ? "utf-8" : (dt = et.encoding) != null ? dt : "utf-8", jt = y$8(et.startLine, 1, 1, Number.MAX_SAFE_INTEGER), Ot = et.endLine === void 0 ? Number.MAX_SAFE_INTEGER : Math.max(Math.trunc(et.endLine), jt), Xt = y$8(et.maxBytes, tt.limits.maxReadBytes, 1, tt.limits.maxReadBytes), qt = It <= tt.limits.maxTransferBytes, Kt = [];
|
|
172512
172512
|
let tr = 0, nr = 0, sr = jt - 1, lr = !1, ar = !1;
|
|
172513
172513
|
try {
|
|
172514
172514
|
for (var ur = I$7(ce$1(Nt, Dt, tt.signal)), dr, pr, gr; dr = !(pr = yield ur.next()).done; dr = !1) {
|
|
@@ -172520,7 +172520,7 @@ const Te$1 = (et, tt) => x$6(void 0, null, function* () {
|
|
|
172520
172520
|
break;
|
|
172521
172521
|
continue;
|
|
172522
172522
|
}
|
|
172523
|
-
const zt = E$
|
|
172523
|
+
const zt = E$9(vr) + (Kt.length ? 1 : 0);
|
|
172524
172524
|
if (tr + zt > Xt) {
|
|
172525
172525
|
if (lr = !0, Kt.length || (Kt.push(le$1(vr, Xt)), sr = nr), !qt)
|
|
172526
172526
|
break;
|
|
@@ -172548,7 +172548,7 @@ const Te$1 = (et, tt) => x$6(void 0, null, function* () {
|
|
|
172548
172548
|
encoding: Dt,
|
|
172549
172549
|
lineEnding: ar ? "crlf" : "lf"
|
|
172550
172550
|
};
|
|
172551
|
-
return qt && (mr.totalLines = nr), It <= tt.limits.maxWriteBytes && (mr.hash = yield A$9(yield m$
|
|
172551
|
+
return qt && (mr.totalLines = nr), It <= tt.limits.maxWriteBytes && (mr.hash = yield A$9(yield m$8(Nt))), {
|
|
172552
172552
|
data: mr,
|
|
172553
172553
|
truncated: lr || void 0
|
|
172554
172554
|
};
|
|
@@ -172557,14 +172557,14 @@ function le$1(et, tt) {
|
|
|
172557
172557
|
const it = re$2.encode(et);
|
|
172558
172558
|
return it.byteLength <= tt ? et : new TextDecoder().decode(it.slice(0, tt)).replace(/\uFFFD$/, "");
|
|
172559
172559
|
}
|
|
172560
|
-
const Re = (et, tt) => x$
|
|
172560
|
+
const Re = (et, tt) => x$5(void 0, null, function* () {
|
|
172561
172561
|
var it;
|
|
172562
|
-
const dt = m$
|
|
172562
|
+
const dt = m$a(et.path), ft = yield tt.adapter.stat(dt), bt = {
|
|
172563
172563
|
path: dt,
|
|
172564
172564
|
kind: ft.kind,
|
|
172565
172565
|
sensitive: ft.kind === "file" && tt.sensitive.isSensitive(dt)
|
|
172566
172566
|
};
|
|
172567
|
-
return ft.kind === "file" && (bt.size = ft.size, bt.lastModified = ft.lastModified, et.includeHash && ((it = ft.size) != null ? it : 0) <= tt.limits.maxTransferBytes && (bt.hash = yield A$9(yield m$
|
|
172567
|
+
return ft.kind === "file" && (bt.size = ft.size, bt.lastModified = ft.lastModified, et.includeHash && ((it = ft.size) != null ? it : 0) <= tt.limits.maxTransferBytes && (bt.hash = yield A$9(yield m$8(yield tt.adapter.readFile(dt))))), {
|
|
172568
172568
|
data: bt
|
|
172569
172569
|
};
|
|
172570
172570
|
});
|
|
@@ -172606,8 +172606,8 @@ function Y$2(et, tt, it) {
|
|
|
172606
172606
|
function j$5(et, tt) {
|
|
172607
172607
|
return et.includes("/") ? g$9(et, tt.relativePath) : g$9(et, tt.name);
|
|
172608
172608
|
}
|
|
172609
|
-
const _e$1 = (et, tt) => x$
|
|
172610
|
-
const it = m$
|
|
172609
|
+
const _e$1 = (et, tt) => x$5(void 0, null, function* () {
|
|
172610
|
+
const it = m$a(et.path, {
|
|
172611
172611
|
allowRoot: !0
|
|
172612
172612
|
});
|
|
172613
172613
|
if (!et.pattern.trim())
|
|
@@ -172655,9 +172655,9 @@ function C$3(et, tt) {
|
|
|
172655
172655
|
const it = Math.max(0, Math.min(tt - 100, et.length - i$9));
|
|
172656
172656
|
return et.slice(it, it + i$9);
|
|
172657
172657
|
}
|
|
172658
|
-
const xe$1 = (et, tt) => x$
|
|
172658
|
+
const xe$1 = (et, tt) => x$5(void 0, null, function* () {
|
|
172659
172659
|
var it;
|
|
172660
|
-
const dt = m$
|
|
172660
|
+
const dt = m$a(et.path, {
|
|
172661
172661
|
allowRoot: !0
|
|
172662
172662
|
});
|
|
172663
172663
|
if (!dt && !tt.allowWorkspaceWideTextSearch)
|
|
@@ -172668,7 +172668,7 @@ const xe$1 = (et, tt) => x$6(void 0, null, function* () {
|
|
|
172668
172668
|
throw new n$5(f$b.BadRequest, "参数 query 不能为空。");
|
|
172669
172669
|
const ft = et.caseSensitive === !0, bt = ft ? et.query : et.query.toLowerCase(), Nt = y$8(et.contextLines, 0, 0, D$5), It = y$8(et.maxResults, tt.limits.maxSearchResults, 1, tt.limits.maxSearchResults), $t = yield tt.adapter.stat(dt);
|
|
172670
172670
|
let Dt;
|
|
172671
|
-
$t.kind === "file" ? (x$
|
|
172671
|
+
$t.kind === "file" ? (x$6(tt, dt, "search"), Dt = function() {
|
|
172672
172672
|
return A$8(this, null, function* () {
|
|
172673
172673
|
yield {
|
|
172674
172674
|
path: dt,
|
|
@@ -172691,7 +172691,7 @@ const xe$1 = (et, tt) => x$6(void 0, null, function* () {
|
|
|
172691
172691
|
break;
|
|
172692
172692
|
}
|
|
172693
172693
|
Ot++, Ot % 20 === 0 && (yield k$9()), N$5(tt.signal);
|
|
172694
|
-
const lr = yield m$
|
|
172694
|
+
const lr = yield m$8(yield tt.adapter.readFile(sr.path));
|
|
172695
172695
|
if (B$6(lr))
|
|
172696
172696
|
continue;
|
|
172697
172697
|
const ar = new TextDecoder("utf-8").decode(lr).split(/\r?\n/);
|
|
@@ -172794,14 +172794,14 @@ function A$7() {
|
|
|
172794
172794
|
}
|
|
172795
172795
|
const $$4 = (et, tt) => b$b(void 0, null, function* () {
|
|
172796
172796
|
var it, dt;
|
|
172797
|
-
const ft = m$
|
|
172797
|
+
const ft = m$a(et.path);
|
|
172798
172798
|
if (((it = et.target) != null ? it : "session") !== "session")
|
|
172799
172799
|
throw new n$5(f$b.NotImplemented, "目前只支持上传到当前会话(target: session)。");
|
|
172800
|
-
x$
|
|
172800
|
+
x$6(tt, ft, "read");
|
|
172801
172801
|
const bt = yield $$5(tt.adapter, ft), Nt = (dt = bt.size) != null ? dt : 0;
|
|
172802
172802
|
if (Nt > tt.limits.maxTransferBytes)
|
|
172803
|
-
throw q$
|
|
172804
|
-
const It = x$
|
|
172803
|
+
throw q$5(tt.limits.maxTransferBytes);
|
|
172804
|
+
const It = x$7(ft);
|
|
172805
172805
|
yield tt.requestApproval(ft, {
|
|
172806
172806
|
type: "upload",
|
|
172807
172807
|
name: It,
|
|
@@ -172844,7 +172844,7 @@ const $$4 = (et, tt) => b$b(void 0, null, function* () {
|
|
|
172844
172844
|
}
|
|
172845
172845
|
};
|
|
172846
172846
|
});
|
|
172847
|
-
function P$
|
|
172847
|
+
function P$3(et) {
|
|
172848
172848
|
const tt = et;
|
|
172849
172849
|
if (!tt || typeof tt != "object")
|
|
172850
172850
|
throw new n$5(f$b.BadRequest, "缺少参数 source。");
|
|
@@ -172866,7 +172866,7 @@ function P$2(et) {
|
|
|
172866
172866
|
}
|
|
172867
172867
|
throw new n$5(f$b.BadRequest, "source.type 必须是 sessionFile、platformFile 或 url 之一。");
|
|
172868
172868
|
}
|
|
172869
|
-
function E$
|
|
172869
|
+
function E$8(et) {
|
|
172870
172870
|
return et.type === "sessionFile" ? "会话文件" : et.type === "platformFile" ? "平台文件" : new URL(et.url).hostname;
|
|
172871
172871
|
}
|
|
172872
172872
|
function D$4(et, tt, it, dt, ft) {
|
|
@@ -172883,7 +172883,7 @@ function D$4(et, tt, it, dt, ft) {
|
|
|
172883
172883
|
if (It)
|
|
172884
172884
|
break;
|
|
172885
172885
|
if (Nt += $t.byteLength, Nt > tt.limits.maxTransferBytes)
|
|
172886
|
-
throw q$
|
|
172886
|
+
throw q$5(tt.limits.maxTransferBytes, "下载内容");
|
|
172887
172887
|
ft.push($t), tt.progress({
|
|
172888
172888
|
stage: "downloading",
|
|
172889
172889
|
loaded: Nt,
|
|
@@ -172899,12 +172899,12 @@ function D$4(et, tt, it, dt, ft) {
|
|
|
172899
172899
|
}
|
|
172900
172900
|
const G$2 = (et, tt) => b$b(void 0, null, function* () {
|
|
172901
172901
|
var it, dt, ft;
|
|
172902
|
-
const bt = m$
|
|
172902
|
+
const bt = m$a(et.destPath, {
|
|
172903
172903
|
field: "destPath"
|
|
172904
|
-
}), Nt = P$
|
|
172904
|
+
}), Nt = P$3(et.source);
|
|
172905
172905
|
if (Nt.type === "url" && !u$d(Nt.url, tt.downloadUrlAllowlist))
|
|
172906
172906
|
throw A$7();
|
|
172907
|
-
x$
|
|
172907
|
+
x$6(tt, bt, "write");
|
|
172908
172908
|
const It = yield L$7(tt.adapter, bt);
|
|
172909
172909
|
if ((It == null ? void 0 : It.kind) === "directory")
|
|
172910
172910
|
throw new n$5(f$b.BadRequest, "目标是目录,不能写入文件。");
|
|
@@ -172913,7 +172913,7 @@ const G$2 = (et, tt) => b$b(void 0, null, function* () {
|
|
|
172913
172913
|
const $t = () => b$b(void 0, null, function* () {
|
|
172914
172914
|
if (!It || !et.expectedHash)
|
|
172915
172915
|
return;
|
|
172916
|
-
const lr = yield A$9(yield m$
|
|
172916
|
+
const lr = yield A$9(yield m$8(yield tt.adapter.readFile(bt)));
|
|
172917
172917
|
if (lr !== et.expectedHash)
|
|
172918
172918
|
throw new n$5(f$b.Conflict, "expectedHash 与目标文件当前内容不一致。", {
|
|
172919
172919
|
currentHash: lr
|
|
@@ -172924,14 +172924,14 @@ const G$2 = (et, tt) => b$b(void 0, null, function* () {
|
|
|
172924
172924
|
url: Nt.url
|
|
172925
172925
|
} : yield tt.transfer.resolveDownload(Nt, tt.context);
|
|
172926
172926
|
if (Dt.size !== void 0 && Dt.size > tt.limits.maxTransferBytes)
|
|
172927
|
-
throw q$
|
|
172927
|
+
throw q$5(tt.limits.maxTransferBytes);
|
|
172928
172928
|
const jt = {
|
|
172929
172929
|
type: "download",
|
|
172930
172930
|
source: {
|
|
172931
172931
|
type: Nt.type,
|
|
172932
|
-
label: E$
|
|
172932
|
+
label: E$8(Nt)
|
|
172933
172933
|
},
|
|
172934
|
-
name: (it = Dt.name) != null ? it : x$
|
|
172934
|
+
name: (it = Dt.name) != null ? it : x$7(bt),
|
|
172935
172935
|
size: Dt.size,
|
|
172936
172936
|
overwrite: !!It
|
|
172937
172937
|
};
|
|
@@ -172956,7 +172956,7 @@ const G$2 = (et, tt) => b$b(void 0, null, function* () {
|
|
|
172956
172956
|
const Xt = Number(Ot.headers.get("content-length")), qt = Number.isFinite(Xt) && Xt > 0 ? Xt : void 0;
|
|
172957
172957
|
if (qt !== void 0 && qt > tt.limits.maxTransferBytes)
|
|
172958
172958
|
throw Ot.body.cancel().catch(() => {
|
|
172959
|
-
}), q$
|
|
172959
|
+
}), q$5(tt.limits.maxTransferBytes);
|
|
172960
172960
|
const Kt = [];
|
|
172961
172961
|
yield tt.adapter.writeFile(bt, D$4(Ot.body, tt, bt, qt, Kt), {
|
|
172962
172962
|
signal: tt.signal
|
|
@@ -172978,14 +172978,14 @@ const G$2 = (et, tt) => b$b(void 0, null, function* () {
|
|
|
172978
172978
|
}
|
|
172979
172979
|
};
|
|
172980
172980
|
});
|
|
172981
|
-
var C$2 = Object.defineProperty, $$3 = Object.defineProperties, k$8 = Object.getOwnPropertyDescriptors, q$
|
|
172981
|
+
var C$2 = Object.defineProperty, $$3 = Object.defineProperties, k$8 = Object.getOwnPropertyDescriptors, q$4 = Object.getOwnPropertySymbols, v$6 = Object.prototype.hasOwnProperty, z$2 = Object.prototype.propertyIsEnumerable, A$6 = (et, tt, it) => tt in et ? C$2(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, H$2 = (et, tt) => {
|
|
172982
172982
|
for (var it in tt || (tt = {}))
|
|
172983
172983
|
v$6.call(tt, it) && A$6(et, it, tt[it]);
|
|
172984
|
-
if (q$
|
|
172985
|
-
for (var it of q$
|
|
172984
|
+
if (q$4)
|
|
172985
|
+
for (var it of q$4(tt))
|
|
172986
172986
|
z$2.call(tt, it) && A$6(et, it, tt[it]);
|
|
172987
172987
|
return et;
|
|
172988
|
-
}, W$2 = (et, tt) => $$3(et, k$8(tt)), h$
|
|
172988
|
+
}, W$2 = (et, tt) => $$3(et, k$8(tt)), h$6 = (et, tt, it) => new Promise((dt, ft) => {
|
|
172989
172989
|
var bt = ($t) => {
|
|
172990
172990
|
try {
|
|
172991
172991
|
It(it.next($t));
|
|
@@ -173008,11 +173008,11 @@ function y$7(et, tt) {
|
|
|
173008
173008
|
});
|
|
173009
173009
|
}
|
|
173010
173010
|
function b$a(et, tt) {
|
|
173011
|
-
return h$
|
|
173011
|
+
return h$6(this, null, function* () {
|
|
173012
173012
|
var it;
|
|
173013
173013
|
if (((it = (yield $$5(et.adapter, tt)).size) != null ? it : 0) > et.limits.maxWriteBytes)
|
|
173014
|
-
throw q$
|
|
173015
|
-
const dt = yield m$
|
|
173014
|
+
throw q$5(et.limits.maxWriteBytes, "目标文件");
|
|
173015
|
+
const dt = yield m$8(yield et.adapter.readFile(tt));
|
|
173016
173016
|
return {
|
|
173017
173017
|
bytes: dt,
|
|
173018
173018
|
hash: yield A$9(dt)
|
|
@@ -173020,7 +173020,7 @@ function b$a(et, tt) {
|
|
|
173020
173020
|
});
|
|
173021
173021
|
}
|
|
173022
173022
|
function R$5(et, tt, it) {
|
|
173023
|
-
return h$
|
|
173023
|
+
return h$6(this, null, function* () {
|
|
173024
173024
|
const {
|
|
173025
173025
|
hash: dt
|
|
173026
173026
|
} = yield b$a(et, tt);
|
|
@@ -173028,7 +173028,7 @@ function R$5(et, tt, it) {
|
|
|
173028
173028
|
throw y$7(dt, "文件在确认期间已被修改,本次写入已取消。请重新读取后再修改。");
|
|
173029
173029
|
});
|
|
173030
173030
|
}
|
|
173031
|
-
function m$
|
|
173031
|
+
function m$7(et, tt) {
|
|
173032
173032
|
const it = new TextEncoder().encode(et);
|
|
173033
173033
|
if (!tt)
|
|
173034
173034
|
return it;
|
|
@@ -173041,13 +173041,13 @@ function M$3(et, tt) {
|
|
|
173041
173041
|
it++, dt = et.indexOf(tt, dt + tt.length);
|
|
173042
173042
|
return it;
|
|
173043
173043
|
}
|
|
173044
|
-
function E$
|
|
173044
|
+
function E$7(et, tt) {
|
|
173045
173045
|
return !tt || et.includes(`\r
|
|
173046
173046
|
`) ? et : et.replace(/\n/g, `\r
|
|
173047
173047
|
`);
|
|
173048
173048
|
}
|
|
173049
173049
|
function U(et, tt, it, dt = !1) {
|
|
173050
|
-
return h$
|
|
173050
|
+
return h$6(this, null, function* () {
|
|
173051
173051
|
return et.progress({
|
|
173052
173052
|
stage: "writing",
|
|
173053
173053
|
loaded: 0,
|
|
@@ -173063,9 +173063,9 @@ function U(et, tt, it, dt = !1) {
|
|
|
173063
173063
|
};
|
|
173064
173064
|
});
|
|
173065
173065
|
}
|
|
173066
|
-
const Q$1 = (et, tt) => h$
|
|
173067
|
-
const it = m$
|
|
173068
|
-
if (x$
|
|
173066
|
+
const Q$1 = (et, tt) => h$6(void 0, null, function* () {
|
|
173067
|
+
const it = m$a(et.path);
|
|
173068
|
+
if (x$6(tt, it, "write"), !et.edits.length)
|
|
173069
173069
|
throw new n$5(f$b.BadRequest, "参数 edits 不能为空。");
|
|
173070
173070
|
const {
|
|
173071
173071
|
bytes: dt,
|
|
@@ -173079,16 +173079,16 @@ const Q$1 = (et, tt) => h$7(void 0, null, function* () {
|
|
|
173079
173079
|
et.edits.forEach((jt, Ot) => {
|
|
173080
173080
|
if (typeof (jt == null ? void 0 : jt.oldText) != "string" || !jt.oldText || typeof jt.newText != "string")
|
|
173081
173081
|
throw new n$5(f$b.BadRequest, `第 ${Ot + 1} 条修改无效:oldText 必须是非空字符串,newText 必须是字符串。`);
|
|
173082
|
-
const Xt = E$
|
|
173082
|
+
const Xt = E$7(jt.oldText, It), qt = E$7(jt.newText, It), Kt = M$3($t, Xt);
|
|
173083
173083
|
if (Kt === 0)
|
|
173084
173084
|
throw new n$5(f$b.Conflict, `第 ${Ot + 1} 条修改的 oldText 在文件中不存在,请重新读取文件确认当前内容。`);
|
|
173085
173085
|
if (Kt > 1 && !jt.replaceAll)
|
|
173086
173086
|
throw new n$5(f$b.BadRequest, `第 ${Ot + 1} 条修改的 oldText 在文件中出现了 ${Kt} 次,请补充上下文使其唯一,或设置 replaceAll。`);
|
|
173087
173087
|
$t = jt.replaceAll ? $t.split(Xt).join(qt) : $t.replace(Xt, () => qt);
|
|
173088
173088
|
});
|
|
173089
|
-
const Dt = m$
|
|
173089
|
+
const Dt = m$7($t, bt);
|
|
173090
173090
|
if (Dt.byteLength > tt.limits.maxWriteBytes)
|
|
173091
|
-
throw q$
|
|
173091
|
+
throw q$5(tt.limits.maxWriteBytes, "修改后的内容");
|
|
173092
173092
|
return yield tt.requestApproval(it, {
|
|
173093
173093
|
type: "text",
|
|
173094
173094
|
before: Nt,
|
|
@@ -173097,9 +173097,9 @@ const Q$1 = (et, tt) => h$7(void 0, null, function* () {
|
|
|
173097
173097
|
}), yield R$5(tt, it, ft), {
|
|
173098
173098
|
data: yield U(tt, it, Dt)
|
|
173099
173099
|
};
|
|
173100
|
-
}), V$2 = (et, tt) => h$
|
|
173101
|
-
const it = m$
|
|
173102
|
-
x$
|
|
173100
|
+
}), V$2 = (et, tt) => h$6(void 0, null, function* () {
|
|
173101
|
+
const it = m$a(et.path);
|
|
173102
|
+
x$6(tt, it, "write");
|
|
173103
173103
|
const dt = yield L$7(tt.adapter, it);
|
|
173104
173104
|
if ((dt == null ? void 0 : dt.kind) === "directory")
|
|
173105
173105
|
throw new n$5(f$b.BadRequest, "目标是目录,不能写入文件。");
|
|
@@ -173122,7 +173122,7 @@ const Q$1 = (et, tt) => h$7(void 0, null, function* () {
|
|
|
173122
173122
|
}
|
|
173123
173123
|
const Nt = new TextEncoder().encode(et.content);
|
|
173124
173124
|
if (Nt.byteLength > tt.limits.maxWriteBytes)
|
|
173125
|
-
throw q$
|
|
173125
|
+
throw q$5(tt.limits.maxWriteBytes, "写入内容");
|
|
173126
173126
|
if (yield tt.requestApproval(it, {
|
|
173127
173127
|
type: "text",
|
|
173128
173128
|
before: ft,
|
|
@@ -173139,14 +173139,14 @@ const Q$1 = (et, tt) => h$7(void 0, null, function* () {
|
|
|
173139
173139
|
})
|
|
173140
173140
|
};
|
|
173141
173141
|
});
|
|
173142
|
-
var j$4 = Object.defineProperty, p$8 = Object.defineProperties, x$
|
|
173142
|
+
var j$4 = Object.defineProperty, p$8 = Object.defineProperties, x$4 = Object.getOwnPropertyDescriptors, $$2 = Object.getOwnPropertySymbols, A$5 = Object.prototype.hasOwnProperty, I$5 = Object.prototype.propertyIsEnumerable, g$7 = (et, tt, it) => tt in et ? j$4(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, s$5 = (et, tt) => {
|
|
173143
173143
|
for (var it in tt || (tt = {}))
|
|
173144
173144
|
A$5.call(tt, it) && g$7(et, it, tt[it]);
|
|
173145
173145
|
if ($$2)
|
|
173146
173146
|
for (var it of $$2(tt))
|
|
173147
173147
|
I$5.call(tt, it) && g$7(et, it, tt[it]);
|
|
173148
173148
|
return et;
|
|
173149
|
-
}, c$5 = (et, tt) => p$8(et, x$
|
|
173149
|
+
}, c$5 = (et, tt) => p$8(et, x$4(tt));
|
|
173150
173150
|
function t$3(et, tt) {
|
|
173151
173151
|
throw new n$5(f$b.BadRequest, et ? `参数 ${et} ${tt}` : `参数${tt}`);
|
|
173152
173152
|
}
|
|
@@ -173197,14 +173197,14 @@ function k$7(et, tt, it) {
|
|
|
173197
173197
|
function L$5(et, tt) {
|
|
173198
173198
|
return k$7(et, tt, "");
|
|
173199
173199
|
}
|
|
173200
|
-
var J$3 = Object.defineProperty, B$4 = Object.defineProperties, K$2 = Object.getOwnPropertyDescriptors, G$1 = Object.getOwnPropertySymbols, z$1 = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable, E$
|
|
173200
|
+
var J$3 = Object.defineProperty, B$4 = Object.defineProperties, K$2 = Object.getOwnPropertyDescriptors, G$1 = Object.getOwnPropertySymbols, z$1 = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable, E$6 = (et, tt, it) => tt in et ? J$3(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, u$b = (et, tt) => {
|
|
173201
173201
|
for (var it in tt || (tt = {}))
|
|
173202
|
-
z$1.call(tt, it) && E$
|
|
173202
|
+
z$1.call(tt, it) && E$6(et, it, tt[it]);
|
|
173203
173203
|
if (G$1)
|
|
173204
173204
|
for (var it of G$1(tt))
|
|
173205
|
-
Q.call(tt, it) && E$
|
|
173205
|
+
Q.call(tt, it) && E$6(et, it, tt[it]);
|
|
173206
173206
|
return et;
|
|
173207
|
-
}, f$9 = (et, tt) => B$4(et, K$2(tt)), _$4 = (et, tt, it) => (E$
|
|
173207
|
+
}, f$9 = (et, tt) => B$4(et, K$2(tt)), _$4 = (et, tt, it) => (E$6(et, typeof tt != "symbol" ? tt + "" : tt, it), it), F$3 = (et, tt, it) => new Promise((dt, ft) => {
|
|
173208
173208
|
var bt = ($t) => {
|
|
173209
173209
|
try {
|
|
173210
173210
|
It(it.next($t));
|
|
@@ -173263,7 +173263,7 @@ function pe$1(et) {
|
|
|
173263
173263
|
if (!et || typeof et != "object" || Array.isArray(et))
|
|
173264
173264
|
return;
|
|
173265
173265
|
const tt = et;
|
|
173266
|
-
return (tt.grantId === void 0 || tt.grantId === null || tt.grantId === "") && (tt.grantId = S$
|
|
173266
|
+
return (tt.grantId === void 0 || tt.grantId === null || tt.grantId === "") && (tt.grantId = S$5), tt.grantId;
|
|
173267
173267
|
}
|
|
173268
173268
|
function W$1(et) {
|
|
173269
173269
|
return new Promise((tt, it) => {
|
|
@@ -173311,7 +173311,7 @@ function Ie$1(et, tt, it, dt, ft) {
|
|
|
173311
173311
|
throw c$8();
|
|
173312
173312
|
const vr = et.adapter;
|
|
173313
173313
|
if (!vr)
|
|
173314
|
-
throw m$
|
|
173314
|
+
throw m$b();
|
|
173315
173315
|
if (ar = et.acquireSlot(), !ar)
|
|
173316
173316
|
throw new n$5(f$b.TooManyRequests, "同时进行的文件操作过多,请稍后重试。");
|
|
173317
173317
|
ur = et.track(tr), dr = !0, et.emit("tool:start", u$b({}, Kt)), sr.resume();
|
|
@@ -173497,16 +173497,16 @@ function s$3() {
|
|
|
173497
173497
|
if (!(!tt || typeof tt.postMessage != "function" || typeof tt.addEventListener != "function"))
|
|
173498
173498
|
return tt;
|
|
173499
173499
|
}
|
|
173500
|
-
var L$4 = Object.defineProperty, h$
|
|
173500
|
+
var L$4 = Object.defineProperty, h$5 = Object.getOwnPropertySymbols, N$2 = Object.prototype.hasOwnProperty, x$3 = Object.prototype.propertyIsEnumerable, m$6 = (et, tt) => {
|
|
173501
173501
|
if (tt = Symbol[et])
|
|
173502
173502
|
return tt;
|
|
173503
173503
|
throw Error("Symbol." + et + " is not defined");
|
|
173504
173504
|
}, u$a = (et, tt, it) => tt in et ? L$4(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, b$9 = (et, tt) => {
|
|
173505
173505
|
for (var it in tt || (tt = {}))
|
|
173506
173506
|
N$2.call(tt, it) && u$a(et, it, tt[it]);
|
|
173507
|
-
if (h$
|
|
173508
|
-
for (var it of h$
|
|
173509
|
-
x$
|
|
173507
|
+
if (h$5)
|
|
173508
|
+
for (var it of h$5(tt))
|
|
173509
|
+
x$3.call(tt, it) && u$a(et, it, tt[it]);
|
|
173510
173510
|
return et;
|
|
173511
173511
|
}, p$6 = (et, tt, it) => (u$a(et, typeof tt != "symbol" ? tt + "" : tt, it), it), y$5 = (et, tt, it) => new Promise((dt, ft) => {
|
|
173512
173512
|
var bt = ($t) => {
|
|
@@ -173523,7 +173523,7 @@ var L$4 = Object.defineProperty, h$6 = Object.getOwnPropertySymbols, N$2 = Objec
|
|
|
173523
173523
|
}
|
|
173524
173524
|
}, It = ($t) => $t.done ? dt($t.value) : Promise.resolve($t.value).then(bt, Nt);
|
|
173525
173525
|
It((it = it.apply(et, tt)).next());
|
|
173526
|
-
}), w$8 = (et, tt, it) => (tt = et[m$
|
|
173526
|
+
}), w$8 = (et, tt, it) => (tt = et[m$6("asyncIterator")]) ? tt.call(et) : (et = et[m$6("iterator")](), tt = {}, it = (dt, ft) => (ft = et[dt]) && (tt[dt] = (bt) => new Promise((Nt, It, $t) => (bt = ft.call(et, bt), $t = bt.done, Promise.resolve(bt.value).then((Dt) => Nt({ value: Dt, done: $t }), It)))), it("next"), it("return"), tt);
|
|
173527
173527
|
const k$5 = 3e4;
|
|
173528
173528
|
function v$5(et) {
|
|
173529
173529
|
let tt = "";
|
|
@@ -173537,14 +173537,14 @@ function O$2(et) {
|
|
|
173537
173537
|
it[dt] = tt.charCodeAt(dt);
|
|
173538
173538
|
return it;
|
|
173539
173539
|
}
|
|
173540
|
-
function E$
|
|
173540
|
+
function E$5(et, tt) {
|
|
173541
173541
|
const it = et && typeof et == "object" ? et : {}, dt = it.kind === "directory" ? "directory" : "file", ft = {
|
|
173542
173542
|
name: typeof it.name == "string" && it.name ? it.name : tt,
|
|
173543
173543
|
kind: dt
|
|
173544
173544
|
};
|
|
173545
173545
|
return dt === "file" && typeof it.size == "number" && (ft.size = it.size), typeof it.lastModified == "number" && (ft.lastModified = it.lastModified), ft;
|
|
173546
173546
|
}
|
|
173547
|
-
let S$
|
|
173547
|
+
let S$4 = class {
|
|
173548
173548
|
constructor(tt, it = "") {
|
|
173549
173549
|
p$6(this, "displayName"), p$6(this, "seq", 0), p$6(this, "pending", /* @__PURE__ */ new Map()), this.view = tt, this.displayName = it;
|
|
173550
173550
|
}
|
|
@@ -173587,7 +173587,7 @@ let S$5 = class {
|
|
|
173587
173587
|
const it = yield this.call("stat", {
|
|
173588
173588
|
path: tt
|
|
173589
173589
|
});
|
|
173590
|
-
return E$
|
|
173590
|
+
return E$5(it.entry, tt.split("/").pop() || this.displayName);
|
|
173591
173591
|
});
|
|
173592
173592
|
}
|
|
173593
173593
|
listEntries(tt, it) {
|
|
@@ -173595,7 +173595,7 @@ let S$5 = class {
|
|
|
173595
173595
|
const dt = yield this.call("list", {
|
|
173596
173596
|
path: tt
|
|
173597
173597
|
}, it);
|
|
173598
|
-
return (Array.isArray(dt.entries) ? dt.entries : []).map((ft) => E$
|
|
173598
|
+
return (Array.isArray(dt.entries) ? dt.entries : []).map((ft) => E$5(ft, ""));
|
|
173599
173599
|
});
|
|
173600
173600
|
}
|
|
173601
173601
|
readFile(tt) {
|
|
@@ -173669,13 +173669,13 @@ var b$8 = (et, tt, it) => new Promise((dt, ft) => {
|
|
|
173669
173669
|
}, It = ($t) => $t.done ? dt($t.value) : Promise.resolve($t.value).then(bt, Nt);
|
|
173670
173670
|
It((it = it.apply(et, tt)).next());
|
|
173671
173671
|
});
|
|
173672
|
-
const S$
|
|
173672
|
+
const S$3 = /^[\p{L}\p{N}_./:@=+\-,]+$/u, B$3 = {
|
|
173673
173673
|
type: "object",
|
|
173674
173674
|
required: ["grantId", "path"],
|
|
173675
173675
|
properties: {
|
|
173676
173676
|
grantId: {
|
|
173677
173677
|
type: "string",
|
|
173678
|
-
enum: [S$
|
|
173678
|
+
enum: [S$5]
|
|
173679
173679
|
},
|
|
173680
173680
|
path: {
|
|
173681
173681
|
type: "string",
|
|
@@ -173761,15 +173761,15 @@ function D$3(et, tt, it, dt, ft) {
|
|
|
173761
173761
|
const Ot = typeof tt == "string" ? JSON.parse(tt) : tt;
|
|
173762
173762
|
if (Ot && typeof Ot == "object" && !Array.isArray(Ot)) {
|
|
173763
173763
|
const ar = Ot;
|
|
173764
|
-
(ar.grantId === void 0 || ar.grantId === null || ar.grantId === "") && (ar.grantId = S$
|
|
173764
|
+
(ar.grantId === void 0 || ar.grantId === null || ar.grantId === "") && (ar.grantId = S$5);
|
|
173765
173765
|
}
|
|
173766
173766
|
const Xt = L$5(Ot, B$3);
|
|
173767
173767
|
l$5(Xt.grantId);
|
|
173768
|
-
const qt = m$
|
|
173768
|
+
const qt = m$a(Xt.path);
|
|
173769
173769
|
if (!qt.toLowerCase().endsWith(".py"))
|
|
173770
173770
|
throw new n$5(f$b.BadRequest, "只能运行工程内已有的 .py 文件。");
|
|
173771
173771
|
const Kt = (Nt = Xt.args) != null ? Nt : [];
|
|
173772
|
-
if (Kt.length > L$9 || Kt.some((ar) => !S$
|
|
173772
|
+
if (Kt.length > L$9 || Kt.some((ar) => !S$3.test(ar)))
|
|
173773
173773
|
throw new n$5(f$b.BadRequest, "脚本参数不合法。每个参数单独填写,不能包含空格或 shell 语法。");
|
|
173774
173774
|
const tr = et.sensitive.match(qt, "read");
|
|
173775
173775
|
if (tr)
|
|
@@ -173781,8 +173781,8 @@ function D$3(et, tt, it, dt, ft) {
|
|
|
173781
173781
|
throw c$8();
|
|
173782
173782
|
const nr = et.adapter;
|
|
173783
173783
|
if (!nr)
|
|
173784
|
-
throw m$
|
|
173785
|
-
if (!(nr instanceof S$
|
|
173784
|
+
throw m$b();
|
|
173785
|
+
if (!(nr instanceof S$4))
|
|
173786
173786
|
throw new n$5(f$b.NotImplemented, "当前环境不能运行本地脚本。");
|
|
173787
173787
|
yield j$3(et, ft, {
|
|
173788
173788
|
path: qt,
|
|
@@ -173840,15 +173840,15 @@ function X$1({
|
|
|
173840
173840
|
}
|
|
173841
173841
|
};
|
|
173842
173842
|
}
|
|
173843
|
-
var O$1 = Object.defineProperty, w$7 = Object.defineProperties, k$4 = Object.getOwnPropertyDescriptors, h$
|
|
173843
|
+
var O$1 = Object.defineProperty, w$7 = Object.defineProperties, k$4 = Object.getOwnPropertyDescriptors, h$4 = Object.getOwnPropertySymbols, F$2 = Object.prototype.hasOwnProperty, N$1 = Object.prototype.propertyIsEnumerable, a$3 = (et, tt, it) => tt in et ? O$1(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, c$4 = (et, tt) => {
|
|
173844
173844
|
for (var it in tt || (tt = {}))
|
|
173845
173845
|
F$2.call(tt, it) && a$3(et, it, tt[it]);
|
|
173846
|
-
if (h$
|
|
173847
|
-
for (var it of h$
|
|
173846
|
+
if (h$4)
|
|
173847
|
+
for (var it of h$4(tt))
|
|
173848
173848
|
N$1.call(tt, it) && a$3(et, it, tt[it]);
|
|
173849
173849
|
return et;
|
|
173850
173850
|
}, R$4 = (et, tt) => w$7(et, k$4(tt));
|
|
173851
|
-
const q$
|
|
173851
|
+
const q$3 = new t$5("[Config] ");
|
|
173852
173852
|
var _$3 = /* @__PURE__ */ ((et) => (et.dev = "https://aiot-dev.glodon.com/api/cvforcepd", et.test = "https://aiot-dev.glodon.com/api/cvforce", et.prod = "https://copilot.glodon.com/api/cvforce", et.local = "http://localhost:3000/api/cvforcepd", et))(_$3 || {});
|
|
173853
173853
|
let n$2 = {
|
|
173854
173854
|
debug: !1,
|
|
@@ -173867,7 +173867,7 @@ let n$2 = {
|
|
|
173867
173867
|
stream: !1
|
|
173868
173868
|
}, u$9, r$2, d$4;
|
|
173869
173869
|
const v$4 = /* @__PURE__ */ new Set();
|
|
173870
|
-
function T$
|
|
173870
|
+
function T$2(et) {
|
|
173871
173871
|
u$9 !== et && (u$9 = et, r$2 = void 0, d$4 = void 0, v$4.clear());
|
|
173872
173872
|
}
|
|
173873
173873
|
function j$2() {
|
|
@@ -173890,8 +173890,8 @@ function z() {
|
|
|
173890
173890
|
if (!(!it || it[c$9] !== dt[c$9]))
|
|
173891
173891
|
return et;
|
|
173892
173892
|
}
|
|
173893
|
-
function S$
|
|
173894
|
-
return (et == null ? void 0 : et.pluginCode) || E$
|
|
173893
|
+
function S$2(et, tt) {
|
|
173894
|
+
return (et == null ? void 0 : et.pluginCode) || E$b[tt];
|
|
173895
173895
|
}
|
|
173896
173896
|
function D$2(et, tt, it) {
|
|
173897
173897
|
return (et == null ? void 0 : et.pluginCode) || it || I$9[tt];
|
|
@@ -173900,7 +173900,7 @@ function H$1() {
|
|
|
173900
173900
|
var et, tt, it;
|
|
173901
173901
|
const dt = (et = n$2.businessPlugins) != null ? et : {}, ft = (tt = n$2.builtinPlugins) == null ? void 0 : tt.localFiles, bt = (it = n$2.builtinPlugins) == null ? void 0 : it.localPython, Nt = [], It = c$4({}, dt);
|
|
173902
173902
|
let $t, Dt = !1;
|
|
173903
|
-
if (ft != null && ft.enabled && u$9 && ($t = S$
|
|
173903
|
+
if (ft != null && ft.enabled && u$9 && ($t = S$2(ft, n$2.env), $t ? dt[$t] ? Nt.push(`[LocalFiles] 业务插件中已存在 pluginCode「${$t}」,已保留业务插件,内置文件工具未注册。`) : (((r$2 == null ? void 0 : r$2.workspace) !== u$9 || r$2.pluginCode !== $t) && (r$2 = {
|
|
173904
173904
|
workspace: u$9,
|
|
173905
173905
|
pluginCode: $t,
|
|
173906
173906
|
table: Se({
|
|
@@ -173944,7 +173944,7 @@ function J$2(et) {
|
|
|
173944
173944
|
// 应用未注册插件时 param.plugins 为 undefined,避免覆盖默认空表
|
|
173945
173945
|
businessPlugins: (it = (tt = et == null ? void 0 : et.plugins) != null ? tt : n$2.businessPlugins) != null ? it : {},
|
|
173946
173946
|
builtinPlugins: (dt = et == null ? void 0 : et.builtinPlugins) != null ? dt : n$2.builtinPlugins
|
|
173947
|
-
}), B$2(), t$5.debug && q$
|
|
173947
|
+
}), B$2(), t$5.debug && q$3.log("updated", n$2);
|
|
173948
173948
|
}
|
|
173949
173949
|
const _hasBuffer = typeof Buffer == "function", _TD = typeof TextDecoder == "function" ? new TextDecoder() : void 0;
|
|
173950
173950
|
typeof TextEncoder == "function" && new TextEncoder();
|
|
@@ -173972,31 +173972,31 @@ const b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
|
173972
173972
|
}, _atob = typeof atob == "function" ? (et) => atob(_tidyB64(et)) : _hasBuffer ? (et) => Buffer.from(et, "base64").toString("binary") : atobPolyfill, _toUint8Array = _hasBuffer ? (et) => _U8Afrom(Buffer.from(et, "base64")) : (et) => _U8Afrom(_atob(et).split("").map((tt) => tt.charCodeAt(0))), _decode = _hasBuffer ? (et) => Buffer.from(et, "base64").toString("utf8") : _TD ? (et) => _TD.decode(_toUint8Array(et)) : (et) => btou(_atob(et)), _unURI = (et) => _tidyB64(et.replace(/[-_]/g, (tt) => tt == "-" ? "+" : "/")), decode$2 = (et) => _decode(_unURI(et)), t$2 = (et) => JSON.parse(decode$2(et.split(".")[1])), w$6 = (et) => {
|
|
173973
173973
|
const tt = t$2(et).exp;
|
|
173974
173974
|
return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >= tt;
|
|
173975
|
-
}, f$8 = (et) => et == null ? void 0 : et.replace(/[\r\n]+/gm, ""), T$
|
|
173975
|
+
}, f$8 = (et) => et == null ? void 0 : et.replace(/[\r\n]+/gm, ""), T$1 = (et) => et.replace(/\\|\\/g, ""), g$6 = (et, tt, it, dt) => {
|
|
173976
173976
|
if (et !== !0)
|
|
173977
173977
|
return null;
|
|
173978
173978
|
const ft = (tt == null ? void 0 : tt.includeUserQuestion) === !0, bt = (tt == null ? void 0 : tt.includeAiAnswer) === !0 || !ft, Nt = [];
|
|
173979
173979
|
return ft && Nt.push(`问题:${dt}`), bt && Nt.push(`回答:${it}`), Nt.join(`
|
|
173980
173980
|
`);
|
|
173981
173981
|
};
|
|
173982
|
-
var g$5 = Object.defineProperty, d$3 = Object.defineProperties, E$
|
|
173982
|
+
var g$5 = Object.defineProperty, d$3 = Object.defineProperties, E$4 = Object.getOwnPropertyDescriptors, u$8 = Object.getOwnPropertySymbols, x$2 = Object.prototype.hasOwnProperty, v$3 = Object.prototype.propertyIsEnumerable, f$7 = (et, tt, it) => tt in et ? g$5(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, m$5 = (et, tt) => {
|
|
173983
173983
|
for (var it in tt || (tt = {}))
|
|
173984
|
-
x$
|
|
173984
|
+
x$2.call(tt, it) && f$7(et, it, tt[it]);
|
|
173985
173985
|
if (u$8)
|
|
173986
173986
|
for (var it of u$8(tt))
|
|
173987
173987
|
v$3.call(tt, it) && f$7(et, it, tt[it]);
|
|
173988
173988
|
return et;
|
|
173989
|
-
}, h$
|
|
173989
|
+
}, h$3 = (et, tt) => d$3(et, E$4(tt));
|
|
173990
173990
|
function b$7(et, tt, it) {
|
|
173991
|
-
return new k$i(A$3(et, "/data/v1", tt, it), S$
|
|
173991
|
+
return new k$i(A$3(et, "/data/v1", tt, it), S$1(it));
|
|
173992
173992
|
}
|
|
173993
173993
|
function B$1(et, tt, it) {
|
|
173994
|
-
return new E$
|
|
173994
|
+
return new E$k(A$3(et, "/aishop", tt, it), S$1(it));
|
|
173995
173995
|
}
|
|
173996
173996
|
function A$3(et, tt, it, dt) {
|
|
173997
173997
|
const ft = (Nt) => {
|
|
173998
173998
|
var It;
|
|
173999
|
-
return it && (w$6(it) && dt(403, "aiotToken is timeout"), Nt.headers = (It = Nt.headers) != null ? It : {}, Nt.headers = h$
|
|
173999
|
+
return it && (w$6(it) && dt(403, "aiotToken is timeout"), Nt.headers = (It = Nt.headers) != null ? It : {}, Nt.headers = h$3(m$5({}, Nt.headers), {
|
|
174000
174000
|
Authorization: it ? `Bearer ${it}` : ""
|
|
174001
174001
|
})), Nt;
|
|
174002
174002
|
};
|
|
@@ -174008,7 +174008,7 @@ function A$3(et, tt, it, dt) {
|
|
|
174008
174008
|
}
|
|
174009
174009
|
return bt(tt);
|
|
174010
174010
|
}
|
|
174011
|
-
function S$
|
|
174011
|
+
function S$1(et) {
|
|
174012
174012
|
return {
|
|
174013
174013
|
onHttpStatusError: (tt, it) => {
|
|
174014
174014
|
tt === 401 && et(tt, "aiotToken is invalid");
|
|
@@ -174025,7 +174025,7 @@ function c$3(et) {
|
|
|
174025
174025
|
if (!tt)
|
|
174026
174026
|
return () => {
|
|
174027
174027
|
};
|
|
174028
|
-
const it = new S$
|
|
174028
|
+
const it = new S$4(tt), dt = (bt) => {
|
|
174029
174029
|
const Nt = i$2(bt.data);
|
|
174030
174030
|
if (Nt) {
|
|
174031
174031
|
if (Nt.type === "workspace") {
|
|
@@ -174070,11 +174070,11 @@ var u$7 = Object.defineProperty, v$2 = Object.getOwnPropertySymbols, o$2 = Objec
|
|
|
174070
174070
|
for (var it of v$2(tt))
|
|
174071
174071
|
L$3.call(tt, it) && l$3(et, it, tt[it]);
|
|
174072
174072
|
return et;
|
|
174073
|
-
}, h$
|
|
174073
|
+
}, h$2 = (et, tt, it) => (l$3(et, typeof tt != "symbol" ? tt + "" : tt, it), it);
|
|
174074
174074
|
const i$1 = new t$5("[EventBus] ");
|
|
174075
174075
|
let $$1 = class {
|
|
174076
174076
|
constructor(tt = !1) {
|
|
174077
|
-
h$
|
|
174077
|
+
h$2(this, "eventListenerMap", {}), tt && i$1.disable();
|
|
174078
174078
|
}
|
|
174079
174079
|
getEventListenerMap() {
|
|
174080
174080
|
return a$2({}, this.eventListenerMap);
|
|
@@ -174288,7 +174288,7 @@ function e$1() {
|
|
|
174288
174288
|
const et = window.showDirectoryPicker;
|
|
174289
174289
|
return typeof et == "function" ? et.bind(window) : void 0;
|
|
174290
174290
|
}
|
|
174291
|
-
var u$6 = Object.defineProperty, n$1 = Object.getOwnPropertySymbols, c$2 = Object.prototype.hasOwnProperty, f$6 = Object.prototype.propertyIsEnumerable, s$2 = (et, tt, it) => tt in et ? u$6(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, m$
|
|
174291
|
+
var u$6 = Object.defineProperty, n$1 = Object.getOwnPropertySymbols, c$2 = Object.prototype.hasOwnProperty, f$6 = Object.prototype.propertyIsEnumerable, s$2 = (et, tt, it) => tt in et ? u$6(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, m$4 = (et, tt) => {
|
|
174292
174292
|
for (var it in tt || (tt = {}))
|
|
174293
174293
|
c$2.call(tt, it) && s$2(et, it, tt[it]);
|
|
174294
174294
|
if (n$1)
|
|
@@ -174297,13 +174297,13 @@ var u$6 = Object.defineProperty, n$1 = Object.getOwnPropertySymbols, c$2 = Objec
|
|
|
174297
174297
|
return et;
|
|
174298
174298
|
};
|
|
174299
174299
|
function l$2(et = {}) {
|
|
174300
|
-
const tt = m$
|
|
174300
|
+
const tt = m$4({}, A$a);
|
|
174301
174301
|
return Object.keys(A$a).forEach((it) => {
|
|
174302
174302
|
const dt = et[it];
|
|
174303
174303
|
typeof dt == "number" && Number.isFinite(dt) && dt > 0 && (tt[it] = Math.min(dt, A$a[it]));
|
|
174304
174304
|
}), tt;
|
|
174305
174305
|
}
|
|
174306
|
-
var h$
|
|
174306
|
+
var h$1 = (et, tt, it) => new Promise((dt, ft) => {
|
|
174307
174307
|
var bt = ($t) => {
|
|
174308
174308
|
try {
|
|
174309
174309
|
It(it.next($t));
|
|
@@ -174337,7 +174337,7 @@ function F$1(et, tt = () => {
|
|
|
174337
174337
|
};
|
|
174338
174338
|
return {
|
|
174339
174339
|
upload(ft, bt, Nt) {
|
|
174340
|
-
return h$
|
|
174340
|
+
return h$1(this, null, function* () {
|
|
174341
174341
|
if (!bt.sessionId)
|
|
174342
174342
|
throw new n$5(f$b.BadRequest, "当前没有可用的会话,无法上传文件。");
|
|
174343
174343
|
try {
|
|
@@ -174364,7 +174364,7 @@ function F$1(et, tt = () => {
|
|
|
174364
174364
|
});
|
|
174365
174365
|
},
|
|
174366
174366
|
resolveDownload(ft, bt) {
|
|
174367
|
-
return h$
|
|
174367
|
+
return h$1(this, null, function* () {
|
|
174368
174368
|
if (ft.type === "platformFile")
|
|
174369
174369
|
return I$4(dt(), ft.fileId);
|
|
174370
174370
|
if (!bt.sessionId)
|
|
@@ -174387,7 +174387,7 @@ function F$1(et, tt = () => {
|
|
|
174387
174387
|
};
|
|
174388
174388
|
}
|
|
174389
174389
|
function I$4(et, tt) {
|
|
174390
|
-
return h$
|
|
174390
|
+
return h$1(this, null, function* () {
|
|
174391
174391
|
let it;
|
|
174392
174392
|
try {
|
|
174393
174393
|
it = yield et.getFile(tt);
|
|
@@ -174520,14 +174520,14 @@ function f$5(et, tt) {
|
|
|
174520
174520
|
recursive: !0
|
|
174521
174521
|
}).catch(() => dt.disconnect()), () => dt.disconnect();
|
|
174522
174522
|
}
|
|
174523
|
-
var _$2 = Object.defineProperty, k$3 = Object.defineProperties, S
|
|
174523
|
+
var _$2 = Object.defineProperty, k$3 = Object.defineProperties, S = Object.getOwnPropertyDescriptors, w$3 = Object.getOwnPropertySymbols, C$1 = Object.prototype.hasOwnProperty, P$2 = Object.prototype.propertyIsEnumerable, u$3 = (et, tt, it) => tt in et ? _$2(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, f$4 = (et, tt) => {
|
|
174524
174524
|
for (var it in tt || (tt = {}))
|
|
174525
174525
|
C$1.call(tt, it) && u$3(et, it, tt[it]);
|
|
174526
174526
|
if (w$3)
|
|
174527
174527
|
for (var it of w$3(tt))
|
|
174528
|
-
P$
|
|
174528
|
+
P$2.call(tt, it) && u$3(et, it, tt[it]);
|
|
174529
174529
|
return et;
|
|
174530
|
-
}, A$2 = (et, tt) => k$3(et, S
|
|
174530
|
+
}, A$2 = (et, tt) => k$3(et, S(tt)), s$1 = (et, tt, it) => (u$3(et, typeof tt != "symbol" ? tt + "" : tt, it), it), o$1 = (et, tt, it) => new Promise((dt, ft) => {
|
|
174531
174531
|
var bt = ($t) => {
|
|
174532
174532
|
try {
|
|
174533
174533
|
It(it.next($t));
|
|
@@ -177133,14 +177133,14 @@ Object.assign(lookup, {
|
|
|
177133
177133
|
io: lookup,
|
|
177134
177134
|
connect: lookup
|
|
177135
177135
|
});
|
|
177136
|
-
var r$1 = /* @__PURE__ */ ((et) => (et[et.Normal = 0] = "Normal", et[et.Debug = 1] = "Debug", et))(r$1 || {}),
|
|
177136
|
+
var r$1 = /* @__PURE__ */ ((et) => (et[et.Normal = 0] = "Normal", et[et.Debug = 1] = "Debug", et))(r$1 || {}), T = Object.defineProperty, C = Object.defineProperties, M$2 = Object.getOwnPropertyDescriptors, E$3 = Object.getOwnPropertySymbols, R$3 = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable, b$6 = (et, tt, it) => tt in et ? T(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, f$3 = (et, tt) => {
|
|
177137
177137
|
for (var it in tt || (tt = {}))
|
|
177138
177138
|
R$3.call(tt, it) && b$6(et, it, tt[it]);
|
|
177139
|
-
if (E$
|
|
177140
|
-
for (var it of E$
|
|
177139
|
+
if (E$3)
|
|
177140
|
+
for (var it of E$3(tt))
|
|
177141
177141
|
O.call(tt, it) && b$6(et, it, tt[it]);
|
|
177142
177142
|
return et;
|
|
177143
|
-
}, I$3 = (et, tt) =>
|
|
177143
|
+
}, I$3 = (et, tt) => C(et, M$2(tt)), p$2 = (et, tt, it) => (b$6(et, typeof tt != "symbol" ? tt + "" : tt, it), it), c$1 = (et, tt, it) => new Promise((dt, ft) => {
|
|
177144
177144
|
var bt = ($t) => {
|
|
177145
177145
|
try {
|
|
177146
177146
|
It(it.next($t));
|
|
@@ -177498,6 +177498,14 @@ class te {
|
|
|
177498
177498
|
inactivate(tt = !1) {
|
|
177499
177499
|
return this.socket ? this._frozen ? (tt || (this.inactivating = !0), this.activing = !1, !0) : (this.socket.close(), this.socket = null, this.event.emit("inactivated"), this.active = !1, this.activing = !1, !0) : (this.activing = !1, !0);
|
|
177500
177500
|
}
|
|
177501
|
+
/**
|
|
177502
|
+
* 会话标题摘要开关。应用详情返回布尔值时用该值,字段缺失时默认开启。
|
|
177503
|
+
*/
|
|
177504
|
+
resolveEnableTitleSummary() {
|
|
177505
|
+
var tt, it, dt;
|
|
177506
|
+
const ft = (dt = (it = (tt = this.application) == null ? void 0 : tt.arrange) == null ? void 0 : it[0]) == null ? void 0 : dt.autoGenerateSessionTitle;
|
|
177507
|
+
return typeof ft == "boolean" ? ft : !0;
|
|
177508
|
+
}
|
|
177501
177509
|
//TODO: remove mcp server
|
|
177502
177510
|
// abstract removeMcpServers(mcpServers: MCPConfig): Promise<boolean>;
|
|
177503
177511
|
get dataLoaded() {
|
|
@@ -177635,7 +177643,7 @@ class te {
|
|
|
177635
177643
|
relatedQuesion: Dt
|
|
177636
177644
|
}), this.event.emit("message:updated", jt), jt;
|
|
177637
177645
|
}
|
|
177638
|
-
const It = (dt = Nt.content) == null ? void 0 : dt.split("*").map(f$8).map(T$
|
|
177646
|
+
const It = (dt = Nt.content) == null ? void 0 : dt.split("*").map(f$8).map(T$1).filter((Dt) => !!Dt);
|
|
177639
177647
|
tt.relatedQuesion = It, tt.index = -3, tt.isLoading = !1;
|
|
177640
177648
|
const $t = I$3(f$3({}, tt), {
|
|
177641
177649
|
relatedQuesion: It,
|
|
@@ -177870,14 +177878,14 @@ class te {
|
|
|
177870
177878
|
}), this._id || "";
|
|
177871
177879
|
}
|
|
177872
177880
|
}
|
|
177873
|
-
var
|
|
177881
|
+
var q$2 = Object.defineProperty, j$1 = Object.defineProperties, L$1 = Object.getOwnPropertyDescriptors, b$5 = Object.getOwnPropertySymbols, F = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable, M$1 = (et, tt, it) => tt in et ? q$2(et, tt, { enumerable: !0, configurable: !0, writable: !0, value: it }) : et[tt] = it, m$3 = (et, tt) => {
|
|
177874
177882
|
for (var it in tt || (tt = {}))
|
|
177875
177883
|
F.call(tt, it) && M$1(et, it, tt[it]);
|
|
177876
|
-
if (
|
|
177877
|
-
for (var it of
|
|
177884
|
+
if (b$5)
|
|
177885
|
+
for (var it of b$5(tt))
|
|
177878
177886
|
N.call(tt, it) && M$1(et, it, tt[it]);
|
|
177879
177887
|
return et;
|
|
177880
|
-
}, w$2 = (et, tt) => j$1(et, L$1(tt)),
|
|
177888
|
+
}, w$2 = (et, tt) => j$1(et, L$1(tt)), P$1 = (et, tt, it) => (M$1(et, typeof tt != "symbol" ? tt + "" : tt, it), it), y$2 = (et, tt, it) => new Promise((dt, ft) => {
|
|
177881
177889
|
var bt = ($t) => {
|
|
177882
177890
|
try {
|
|
177883
177891
|
It(it.next($t));
|
|
@@ -177905,19 +177913,19 @@ function _$1(et) {
|
|
|
177905
177913
|
return et;
|
|
177906
177914
|
}
|
|
177907
177915
|
}
|
|
177908
|
-
function
|
|
177916
|
+
function E$2(et) {
|
|
177909
177917
|
return et == null || et === "" || typeof et == "object" && !Array.isArray(et) && Object.keys(et).length === 0;
|
|
177910
177918
|
}
|
|
177911
177919
|
function Y(et, tt) {
|
|
177912
177920
|
const it = _$1(et == null ? void 0 : et.query);
|
|
177913
|
-
if (!
|
|
177921
|
+
if (!E$2(it))
|
|
177914
177922
|
return it;
|
|
177915
177923
|
const dt = _$1(tt);
|
|
177916
|
-
return
|
|
177924
|
+
return E$2(dt) && it != null ? it : dt;
|
|
177917
177925
|
}
|
|
177918
177926
|
class Z extends te {
|
|
177919
177927
|
constructor(tt, it = "", dt, ft, bt, Nt) {
|
|
177920
|
-
super(tt, it, dt, ft, bt, Nt),
|
|
177928
|
+
super(tt, it, dt, ft, bt, Nt), P$1(this, "inflightCalls", /* @__PURE__ */ new Set());
|
|
177921
177929
|
}
|
|
177922
177930
|
prepareConnection() {
|
|
177923
177931
|
return new Promise((tt) => y$2(this, null, function* () {
|
|
@@ -178060,12 +178068,12 @@ class Z extends te {
|
|
|
178060
178068
|
};
|
|
178061
178069
|
this.handleStreamAnswer(bt.data, It), this.pushMessage(It), this.event.emit("message:content", It), It.index === -1 && (It.isReplying = !1, this.event.emit("answer:finish", It));
|
|
178062
178070
|
}
|
|
178063
|
-
} else if (bt.data.updateSession && this.data && (this.data =
|
|
178071
|
+
} else if (bt.data.updateSession && this.data && (this.data = m$3(m$3({}, this.data), bt.data.updateSession), this.event.emit("data:updated", this.data)), bt.data.index === -1) {
|
|
178064
178072
|
let Nt = this.messages[this.messages.length - 1];
|
|
178065
178073
|
if (Nt && !Nt.messageId)
|
|
178066
|
-
Nt =
|
|
178074
|
+
Nt = m$3(m$3({}, Nt), bt.data), this.event.emit("message:content", Nt), this.event.emit("message:updated", Nt), this.event.emit("answer:finish", Nt);
|
|
178067
178075
|
else {
|
|
178068
|
-
const It =
|
|
178076
|
+
const It = m$3({
|
|
178069
178077
|
messageId: "",
|
|
178070
178078
|
content: "",
|
|
178071
178079
|
role: v$g.Robot,
|
|
@@ -178084,7 +178092,7 @@ class Z extends te {
|
|
|
178084
178092
|
}
|
|
178085
178093
|
} else {
|
|
178086
178094
|
let Nt = this.messages[this.messages.length - 1];
|
|
178087
|
-
Nt && !Nt.messageId ? (Nt =
|
|
178095
|
+
Nt && !Nt.messageId ? (Nt = m$3(m$3({}, Nt), bt.data), this.messages[this.messages.length - 1] = Nt, this.event.emit("message:content", Nt), this.event.emit("message:updated", Nt)) : (this.pushMessage(m$3({
|
|
178088
178096
|
messageId: "",
|
|
178089
178097
|
content: "",
|
|
178090
178098
|
role: v$g.Robot,
|
|
@@ -178139,9 +178147,9 @@ class Z extends te {
|
|
|
178139
178147
|
};
|
|
178140
178148
|
this.pushMessage(Ot);
|
|
178141
178149
|
}
|
|
178142
|
-
Nt === "KG" ? (this.messages[jt] = w$2(
|
|
178150
|
+
Nt === "KG" ? (this.messages[jt] = w$2(m$3({}, this.messages[jt]), {
|
|
178143
178151
|
reference: It.knowledgeReference
|
|
178144
|
-
}), yield this.fillMessageReference(this.messages[jt]), this.event.emit("message:reference", It.knowledgeReference), this.event.emit("message:updated", this.messages[jt])) : Nt === "WEB_SEARCH" && (this.messages[jt] = w$2(
|
|
178152
|
+
}), yield this.fillMessageReference(this.messages[jt]), this.event.emit("message:reference", It.knowledgeReference), this.event.emit("message:updated", this.messages[jt])) : Nt === "WEB_SEARCH" && (this.messages[jt] = w$2(m$3({}, this.messages[jt]), {
|
|
178145
178153
|
searchReference: It.knowledgeReference
|
|
178146
178154
|
}), this.event.emit("message:searchreference", It.searchReference), this.event.emit("message:updated", this.messages[jt]));
|
|
178147
178155
|
})), this.socket = ft, ft.open();
|
|
@@ -178184,18 +178192,17 @@ class Z extends te {
|
|
|
178184
178192
|
return y$2(this, null, function* () {
|
|
178185
178193
|
var dt, ft, bt;
|
|
178186
178194
|
this.convertKnowledgesToChatFormat(this.knowledges);
|
|
178187
|
-
let Nt = w$2(
|
|
178188
|
-
promptVariables: this.promptVariables.filter((It) => It.type === k$h.User).reduce((It, $t) => w$2(
|
|
178195
|
+
let Nt = w$2(m$3({}, tt), {
|
|
178196
|
+
promptVariables: this.promptVariables.filter((It) => It.type === k$h.User).reduce((It, $t) => w$2(m$3({}, It), {
|
|
178189
178197
|
[$t.key]: $t.value
|
|
178190
178198
|
}), {}),
|
|
178191
|
-
systemPromptVariables: this.promptVariables.filter((It) => It.type === k$h.System).reduce((It, $t) => w$2(
|
|
178199
|
+
systemPromptVariables: this.promptVariables.filter((It) => It.type === k$h.System).reduce((It, $t) => w$2(m$3({}, It), {
|
|
178192
178200
|
[$t.key]: $t.value
|
|
178193
178201
|
}), {}),
|
|
178194
178202
|
knowledges: (dt = this.knowledges) == null ? void 0 : dt.map((It) => It.id),
|
|
178195
178203
|
//agent支持指定文件时再放开
|
|
178196
178204
|
// knowledges: knowledgesForChat,
|
|
178197
|
-
|
|
178198
|
-
enableTitleSummary: !0
|
|
178205
|
+
enableTitleSummary: this.resolveEnableTitleSummary()
|
|
178199
178206
|
});
|
|
178200
178207
|
if (!this.active) {
|
|
178201
178208
|
if (yield this.activate(), !this.socket) {
|
|
@@ -178679,8 +178686,7 @@ class k extends te {
|
|
|
178679
178686
|
[Xt.key]: Xt.value
|
|
178680
178687
|
}), {}),
|
|
178681
178688
|
knowledges: Dt,
|
|
178682
|
-
|
|
178683
|
-
enableTitleSummary: !0,
|
|
178689
|
+
enableTitleSummary: this.resolveEnableTitleSummary(),
|
|
178684
178690
|
imageContent: Nt
|
|
178685
178691
|
};
|
|
178686
178692
|
this.ctrl = new AbortController(), this.postChatV3EventSource(this._applicationId, this._id, jt, this.ctrl.signal, {
|
|
@@ -178728,7 +178734,7 @@ class k extends te {
|
|
|
178728
178734
|
} : it.id) : [];
|
|
178729
178735
|
}
|
|
178730
178736
|
}
|
|
178731
|
-
const e = "@glodon-aiot/bot-client-sdk", t = "3.26.0-alpha.
|
|
178737
|
+
const e = "@glodon-aiot/bot-client-sdk", t = "3.26.0-alpha.8", i = "glodoncv", s = "aiot bot client js sdk", n = "module", o = [
|
|
178732
178738
|
"aiot",
|
|
178733
178739
|
"bot",
|
|
178734
178740
|
"bot client",
|
|
@@ -178752,9 +178758,7 @@ const e = "@glodon-aiot/bot-client-sdk", t = "3.26.0-alpha.4", i = "glodoncv", s
|
|
|
178752
178758
|
preview: "vite preview",
|
|
178753
178759
|
check: "yarn prettier --check .",
|
|
178754
178760
|
write: "yarn prettier --write .",
|
|
178755
|
-
lint: "eslint --ext .tsx,.ts --fix ./example -c .eslintrc.js"
|
|
178756
|
-
test: "vitest run",
|
|
178757
|
-
"test:watch": "vitest"
|
|
178761
|
+
lint: "eslint --ext .tsx,.ts --fix ./example -c .eslintrc.js"
|
|
178758
178762
|
}, g = {
|
|
178759
178763
|
"@babel/core": "^7.20.12",
|
|
178760
178764
|
"@commitlint/cli": "^17.0.3",
|
|
@@ -178786,13 +178790,12 @@ const e = "@glodon-aiot/bot-client-sdk", t = "3.26.0-alpha.4", i = "glodoncv", s
|
|
|
178786
178790
|
vite: "^4.1.1",
|
|
178787
178791
|
"vite-plugin-dts": "^4.3.0",
|
|
178788
178792
|
"vite-plugin-externalize-deps": "^0.9.0",
|
|
178789
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
178790
|
-
vitest: "^0.34.6"
|
|
178793
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
178791
178794
|
}, m$2 = {
|
|
178792
178795
|
access: "public",
|
|
178793
178796
|
registry: "https://registry.npmjs.org/"
|
|
178794
178797
|
}, b$2 = {
|
|
178795
|
-
"@glodon-aiot/apis": "^3.26.0-alpha.
|
|
178798
|
+
"@glodon-aiot/apis": "^3.26.0-alpha.8",
|
|
178796
178799
|
axios: "0.24.0",
|
|
178797
178800
|
buffer: "^6.0.3",
|
|
178798
178801
|
dayjs: "^1.11.13",
|
|
@@ -178863,7 +178866,7 @@ class ie {
|
|
|
178863
178866
|
var tt, it;
|
|
178864
178867
|
const dt = (tt = n$2.builtinPlugins) == null ? void 0 : tt.localFiles;
|
|
178865
178868
|
if (!(dt != null && dt.enabled)) {
|
|
178866
|
-
T$
|
|
178869
|
+
T$2(void 0), B$2();
|
|
178867
178870
|
return;
|
|
178868
178871
|
}
|
|
178869
178872
|
const ft = [], bt = (it = dt.backend) != null ? it : "file-system-access";
|
|
@@ -178877,7 +178880,7 @@ class ie {
|
|
|
178877
178880
|
store: g$3(),
|
|
178878
178881
|
picker: bt === "host-bridge" ? null : void 0,
|
|
178879
178882
|
transfer: F$1(() => this.cvforceApi, () => Nt)
|
|
178880
|
-
}), T$
|
|
178883
|
+
}), T$2(this._localWorkspace), bt === "host-bridge" ? this._disconnectHost = c$3(this._localWorkspace) : this._localWorkspace.restore();
|
|
178881
178884
|
}
|
|
178882
178885
|
ft.push(...B$2()), ft.length && Promise.resolve().then(() => ft.forEach((Nt) => this.event.emit("error", Nt)));
|
|
178883
178886
|
}
|
|
@@ -188544,7 +188547,7 @@ const $D = 72, KD = (et) => {
|
|
|
188544
188547
|
files: nr.files
|
|
188545
188548
|
}, [or, Kt.type, nr.content, nr.files]), {
|
|
188546
188549
|
Panel: rr
|
|
188547
|
-
} = Collapse$1, [cr, fr] = reactExports.useState(null), [yr, Mr] = reactExports.useState(null), [xr, Nr] = reactExports.useState(!1), Cr = reactExports.useRef(null), Ar = reactExports.useRef(!0), wr = reactExports.useRef(!1), Tr = reactExports.useRef(!1), Er = (tt = Kt.arrange) == null ? void 0 : tt[0], kr = Kt.type === i$r.Dialog, Sr = !!((it = nr == null ? void 0 : nr.reasoningContent) != null && it.trim()), _r = kr ? (nr != null && nr.fromHistory || (vr == null ? void 0 : vr.reasoning) !== !1) && Sr : Sr, Rr = (nr == null ? void 0 : nr.thinkingStatus) === P$
|
|
188550
|
+
} = Collapse$1, [cr, fr] = reactExports.useState(null), [yr, Mr] = reactExports.useState(null), [xr, Nr] = reactExports.useState(!1), Cr = reactExports.useRef(null), Ar = reactExports.useRef(!0), wr = reactExports.useRef(!1), Tr = reactExports.useRef(!1), Er = (tt = Kt.arrange) == null ? void 0 : tt[0], kr = Kt.type === i$r.Dialog, Sr = !!((it = nr == null ? void 0 : nr.reasoningContent) != null && it.trim()), _r = kr ? (nr != null && nr.fromHistory || (vr == null ? void 0 : vr.reasoning) !== !1) && Sr : Sr, Rr = (nr == null ? void 0 : nr.thinkingStatus) === P$9.End || !!(nr != null && nr.content), $r = kr ? (Er == null ? void 0 : Er.thinkingTextOpen) !== !1 && (vr == null ? void 0 : vr.reasoningExpand) !== !1 : !0, Br = cr != null ? cr : $r || !Rr, Wr = vr == null ? void 0 : vr.reasoningContent, jr = (Wr == null ? void 0 : Wr.defaultMinimized) === !0, Gr = JI(Wr), Zr = KD(Wr == null ? void 0 : Wr.maxHeight), Yr = yr != null ? yr : jr, qr = Yr ? Gr : Zr, Or = qr ? {
|
|
188548
188551
|
maxHeight: qr,
|
|
188549
188552
|
overflowY: "auto"
|
|
188550
188553
|
} : void 0, zr = !!Gr && xr;
|
|
@@ -188568,7 +188571,7 @@ const $D = 72, KD = (et) => {
|
|
|
188568
188571
|
const Jr = new ResizeObserver(no);
|
|
188569
188572
|
return Jr.observe(Vr), () => Jr.disconnect();
|
|
188570
188573
|
}, [Br, Yr, Gr, jr, Wr == null ? void 0 : Wr.minHeight, nr == null ? void 0 : nr.reasoningContent]);
|
|
188571
|
-
const Lr = Br && !(nr != null && nr.fromHistory) && (nr == null ? void 0 : nr.thinkingStatus) !== P$
|
|
188574
|
+
const Lr = Br && !(nr != null && nr.fromHistory) && (nr == null ? void 0 : nr.thinkingStatus) !== P$9.End && ((nr == null ? void 0 : nr.thinkingStatus) === P$9.Start || !(nr != null && nr.content));
|
|
188572
188575
|
reactExports.useLayoutEffect(() => {
|
|
188573
188576
|
if (!Lr)
|
|
188574
188577
|
return;
|
|
@@ -188838,9 +188841,9 @@ const $D = 72, KD = (et) => {
|
|
|
188838
188841
|
}),
|
|
188839
188842
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
188840
188843
|
className: "bottom-left",
|
|
188841
|
-
children: [(nr == null ? void 0 : nr.thinkingStatus) === P$
|
|
188844
|
+
children: [(nr == null ? void 0 : nr.thinkingStatus) === P$9.Start && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
188842
188845
|
className: "thinking"
|
|
188843
|
-
}), (nr == null ? void 0 : nr.thinkingStatus) === P$
|
|
188846
|
+
}), (nr == null ? void 0 : nr.thinkingStatus) === P$9.End && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
188844
188847
|
className: "thinked",
|
|
188845
188848
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Yt, {})
|
|
188846
188849
|
})]
|
|
@@ -189941,7 +189944,7 @@ const gu = (et) => {
|
|
|
189941
189944
|
children: "列表中的文件清空后不能恢复,请确认是否清空所有文件。"
|
|
189942
189945
|
})
|
|
189943
189946
|
});
|
|
189944
|
-
}, Ii = T$
|
|
189947
|
+
}, Ii = T$4, pe = 10, tz = reactExports.forwardRef((et, tt) => {
|
|
189945
189948
|
const {
|
|
189946
189949
|
appId: it,
|
|
189947
189950
|
sid: dt,
|
|
@@ -193792,7 +193795,7 @@ ${ft}` : ft;
|
|
|
193792
193795
|
})]
|
|
193793
193796
|
})
|
|
193794
193797
|
});
|
|
193795
|
-
}), i4 = "@glodon-aiot/agent-cli-ui", j4 = "3.26.0-alpha.
|
|
193798
|
+
}), i4 = "@glodon-aiot/agent-cli-ui", j4 = "3.26.0-alpha.8", D4 = "./dist/es/index.mjs", z4 = "./dist/lib/index.js", g4 = "./dist/src/index.d.ts", I4 = {
|
|
193796
193799
|
import: "./dist/es/index.mjs",
|
|
193797
193800
|
require: "./dist/lib/index.js",
|
|
193798
193801
|
types: "./dist/src/index.d.ts"
|
|
@@ -193814,9 +193817,9 @@ ${ft}` : ft;
|
|
|
193814
193817
|
commit: "cz"
|
|
193815
193818
|
}, c4 = {
|
|
193816
193819
|
"@ant-design/icons": "^5.3.4",
|
|
193817
|
-
"@glodon-aiot/apis": "^3.26.0-alpha.
|
|
193818
|
-
"@glodon-aiot/bot-client-sdk": "^3.26.0-alpha.
|
|
193819
|
-
"@glodon-aiot/react-components": "^3.26.0-alpha.
|
|
193820
|
+
"@glodon-aiot/apis": "^3.26.0-alpha.8",
|
|
193821
|
+
"@glodon-aiot/bot-client-sdk": "^3.26.0-alpha.8",
|
|
193822
|
+
"@glodon-aiot/react-components": "^3.26.0-alpha.8",
|
|
193820
193823
|
"@matejmazur/react-mathjax": "^0.1.10",
|
|
193821
193824
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
193822
193825
|
"@react-pdf-viewer/default-layout": "^3.12.0",
|
|
@@ -197045,7 +197048,7 @@ class jL {
|
|
|
197045
197048
|
prefixCls: "gbot-notification"
|
|
197046
197049
|
})));
|
|
197047
197050
|
}, Nt = dt("");
|
|
197048
|
-
return new x$
|
|
197051
|
+
return new x$g(Nt, () => this.token, {
|
|
197049
197052
|
onHttpStatusError: ft,
|
|
197050
197053
|
onAppStatusError: bt
|
|
197051
197054
|
});
|