byt-lingxiao-ai 0.3.25 → 0.3.27

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.
@@ -3606,6 +3606,26 @@ module.exports = function (it, Prototype) {
3606
3606
  };
3607
3607
 
3608
3608
 
3609
+ /***/ }),
3610
+
3611
+ /***/ 684:
3612
+ /***/ (function(module) {
3613
+
3614
+ "use strict";
3615
+
3616
+ // Should throw an error on invalid iterator
3617
+ // https://issues.chromium.org/issues/336839115
3618
+ module.exports = function (methodName, argument) {
3619
+ // eslint-disable-next-line es/no-iterator -- required for testing
3620
+ var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
3621
+ if (method) try {
3622
+ method.call({ next: null }, argument).next();
3623
+ } catch (error) {
3624
+ return true;
3625
+ }
3626
+ };
3627
+
3628
+
3609
3629
  /***/ }),
3610
3630
 
3611
3631
  /***/ 722:
@@ -5270,6 +5290,229 @@ module.exports = Object.keys || function keys(O) {
5270
5290
  };
5271
5291
 
5272
5292
 
5293
+ /***/ }),
5294
+
5295
+ /***/ 1102:
5296
+ /***/ (function(module) {
5297
+
5298
+ /*
5299
+ Language: VHDL
5300
+ Author: Igor Kalnitsky <igor@kalnitsky.org>
5301
+ Contributors: Daniel C.K. Kho <daniel.kho@tauhop.com>, Guillaume Savaton <guillaume.savaton@eseo.fr>
5302
+ Description: VHDL is a hardware description language used in electronic design automation to describe digital and mixed-signal systems.
5303
+ Website: https://en.wikipedia.org/wiki/VHDL
5304
+ Category: hardware
5305
+ */
5306
+
5307
+ function vhdl(hljs) {
5308
+ // Regular expression for VHDL numeric literals.
5309
+
5310
+ // Decimal literal:
5311
+ const INTEGER_RE = '\\d(_|\\d)*';
5312
+ const EXPONENT_RE = '[eE][-+]?' + INTEGER_RE;
5313
+ const DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?';
5314
+ // Based literal:
5315
+ const BASED_INTEGER_RE = '\\w+';
5316
+ const BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?';
5317
+
5318
+ const NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')';
5319
+
5320
+ const KEYWORDS = [
5321
+ "abs",
5322
+ "access",
5323
+ "after",
5324
+ "alias",
5325
+ "all",
5326
+ "and",
5327
+ "architecture",
5328
+ "array",
5329
+ "assert",
5330
+ "assume",
5331
+ "assume_guarantee",
5332
+ "attribute",
5333
+ "begin",
5334
+ "block",
5335
+ "body",
5336
+ "buffer",
5337
+ "bus",
5338
+ "case",
5339
+ "component",
5340
+ "configuration",
5341
+ "constant",
5342
+ "context",
5343
+ "cover",
5344
+ "disconnect",
5345
+ "downto",
5346
+ "default",
5347
+ "else",
5348
+ "elsif",
5349
+ "end",
5350
+ "entity",
5351
+ "exit",
5352
+ "fairness",
5353
+ "file",
5354
+ "for",
5355
+ "force",
5356
+ "function",
5357
+ "generate",
5358
+ "generic",
5359
+ "group",
5360
+ "guarded",
5361
+ "if",
5362
+ "impure",
5363
+ "in",
5364
+ "inertial",
5365
+ "inout",
5366
+ "is",
5367
+ "label",
5368
+ "library",
5369
+ "linkage",
5370
+ "literal",
5371
+ "loop",
5372
+ "map",
5373
+ "mod",
5374
+ "nand",
5375
+ "new",
5376
+ "next",
5377
+ "nor",
5378
+ "not",
5379
+ "null",
5380
+ "of",
5381
+ "on",
5382
+ "open",
5383
+ "or",
5384
+ "others",
5385
+ "out",
5386
+ "package",
5387
+ "parameter",
5388
+ "port",
5389
+ "postponed",
5390
+ "procedure",
5391
+ "process",
5392
+ "property",
5393
+ "protected",
5394
+ "pure",
5395
+ "range",
5396
+ "record",
5397
+ "register",
5398
+ "reject",
5399
+ "release",
5400
+ "rem",
5401
+ "report",
5402
+ "restrict",
5403
+ "restrict_guarantee",
5404
+ "return",
5405
+ "rol",
5406
+ "ror",
5407
+ "select",
5408
+ "sequence",
5409
+ "severity",
5410
+ "shared",
5411
+ "signal",
5412
+ "sla",
5413
+ "sll",
5414
+ "sra",
5415
+ "srl",
5416
+ "strong",
5417
+ "subtype",
5418
+ "then",
5419
+ "to",
5420
+ "transport",
5421
+ "type",
5422
+ "unaffected",
5423
+ "units",
5424
+ "until",
5425
+ "use",
5426
+ "variable",
5427
+ "view",
5428
+ "vmode",
5429
+ "vprop",
5430
+ "vunit",
5431
+ "wait",
5432
+ "when",
5433
+ "while",
5434
+ "with",
5435
+ "xnor",
5436
+ "xor"
5437
+ ];
5438
+ const BUILT_INS = [
5439
+ "boolean",
5440
+ "bit",
5441
+ "character",
5442
+ "integer",
5443
+ "time",
5444
+ "delay_length",
5445
+ "natural",
5446
+ "positive",
5447
+ "string",
5448
+ "bit_vector",
5449
+ "file_open_kind",
5450
+ "file_open_status",
5451
+ "std_logic",
5452
+ "std_logic_vector",
5453
+ "unsigned",
5454
+ "signed",
5455
+ "boolean_vector",
5456
+ "integer_vector",
5457
+ "std_ulogic",
5458
+ "std_ulogic_vector",
5459
+ "unresolved_unsigned",
5460
+ "u_unsigned",
5461
+ "unresolved_signed",
5462
+ "u_signed",
5463
+ "real_vector",
5464
+ "time_vector"
5465
+ ];
5466
+ const LITERALS = [
5467
+ // severity_level
5468
+ "false",
5469
+ "true",
5470
+ "note",
5471
+ "warning",
5472
+ "error",
5473
+ "failure",
5474
+ // textio
5475
+ "line",
5476
+ "text",
5477
+ "side",
5478
+ "width"
5479
+ ];
5480
+
5481
+ return {
5482
+ name: 'VHDL',
5483
+ case_insensitive: true,
5484
+ keywords: {
5485
+ keyword: KEYWORDS,
5486
+ built_in: BUILT_INS,
5487
+ literal: LITERALS
5488
+ },
5489
+ illegal: /\{/,
5490
+ contains: [
5491
+ hljs.C_BLOCK_COMMENT_MODE, // VHDL-2008 block commenting.
5492
+ hljs.COMMENT('--', '$'),
5493
+ hljs.QUOTE_STRING_MODE,
5494
+ {
5495
+ className: 'number',
5496
+ begin: NUMBER_RE,
5497
+ relevance: 0
5498
+ },
5499
+ {
5500
+ className: 'string',
5501
+ begin: '\'(U|X|0|1|Z|W|L|H|-)\'',
5502
+ contains: [ hljs.BACKSLASH_ESCAPE ]
5503
+ },
5504
+ {
5505
+ className: 'symbol',
5506
+ begin: '\'[A-Za-z](_?[A-Za-z0-9])*',
5507
+ contains: [ hljs.BACKSLASH_ESCAPE ]
5508
+ }
5509
+ ]
5510
+ };
5511
+ }
5512
+
5513
+ module.exports = vhdl;
5514
+
5515
+
5273
5516
  /***/ }),
5274
5517
 
5275
5518
  /***/ 1108:
@@ -9987,6 +10230,30 @@ module.exports = function (argument) {
9987
10230
  };
9988
10231
 
9989
10232
 
10233
+ /***/ }),
10234
+
10235
+ /***/ 1385:
10236
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
10237
+
10238
+ "use strict";
10239
+
10240
+ var iteratorClose = __webpack_require__(9539);
10241
+
10242
+ module.exports = function (iters, kind, value) {
10243
+ for (var i = iters.length - 1; i >= 0; i--) {
10244
+ if (iters[i] === undefined) continue;
10245
+ try {
10246
+ value = iteratorClose(iters[i].iterator, kind, value);
10247
+ } catch (error) {
10248
+ kind = 'throw';
10249
+ value = error;
10250
+ }
10251
+ }
10252
+ if (kind === 'throw') throw value;
10253
+ return value;
10254
+ };
10255
+
10256
+
9990
10257
  /***/ }),
9991
10258
 
9992
10259
  /***/ 1432:
@@ -12379,6 +12646,58 @@ $({ target: 'Set', proto: true, real: true, forced: FORCED }, {
12379
12646
  });
12380
12647
 
12381
12648
 
12649
+ /***/ }),
12650
+
12651
+ /***/ 1701:
12652
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
12653
+
12654
+ "use strict";
12655
+
12656
+ var $ = __webpack_require__(6518);
12657
+ var call = __webpack_require__(9565);
12658
+ var aCallable = __webpack_require__(9306);
12659
+ var anObject = __webpack_require__(8551);
12660
+ var getIteratorDirect = __webpack_require__(1767);
12661
+ var createIteratorProxy = __webpack_require__(9462);
12662
+ var callWithSafeIterationClosing = __webpack_require__(6319);
12663
+ var iteratorClose = __webpack_require__(9539);
12664
+ var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(684);
12665
+ var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
12666
+ var IS_PURE = __webpack_require__(6395);
12667
+
12668
+ var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });
12669
+ var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
12670
+ && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
12671
+
12672
+ var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
12673
+
12674
+ var IteratorProxy = createIteratorProxy(function () {
12675
+ var iterator = this.iterator;
12676
+ var result = anObject(call(this.next, iterator));
12677
+ var done = this.done = !!result.done;
12678
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
12679
+ });
12680
+
12681
+ // `Iterator.prototype.map` method
12682
+ // https://tc39.es/ecma262/#sec-iterator.prototype.map
12683
+ $({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
12684
+ map: function map(mapper) {
12685
+ anObject(this);
12686
+ try {
12687
+ aCallable(mapper);
12688
+ } catch (error) {
12689
+ iteratorClose(this, 'throw', error);
12690
+ }
12691
+
12692
+ if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);
12693
+
12694
+ return new IteratorProxy(getIteratorDirect(this), {
12695
+ mapper: mapper
12696
+ });
12697
+ }
12698
+ });
12699
+
12700
+
12382
12701
  /***/ }),
12383
12702
 
12384
12703
  /***/ 1726:
@@ -14320,6 +14639,20 @@ function lisp(hljs) {
14320
14639
  module.exports = lisp;
14321
14640
 
14322
14641
 
14642
+ /***/ }),
14643
+
14644
+ /***/ 2529:
14645
+ /***/ (function(module) {
14646
+
14647
+ "use strict";
14648
+
14649
+ // `CreateIterResultObject` abstract operation
14650
+ // https://tc39.es/ecma262/#sec-createiterresultobject
14651
+ module.exports = function (value, done) {
14652
+ return { value: value, done: done };
14653
+ };
14654
+
14655
+
14323
14656
  /***/ }),
14324
14657
 
14325
14658
  /***/ 2546:
@@ -14830,6 +15163,21 @@ var POLYFILL = isForced.POLYFILL = 'P';
14830
15163
  module.exports = isForced;
14831
15164
 
14832
15165
 
15166
+ /***/ }),
15167
+
15168
+ /***/ 2812:
15169
+ /***/ (function(module) {
15170
+
15171
+ "use strict";
15172
+
15173
+ var $TypeError = TypeError;
15174
+
15175
+ module.exports = function (passed, required) {
15176
+ if (passed < required) throw new $TypeError('Not enough arguments');
15177
+ return passed;
15178
+ };
15179
+
15180
+
14833
15181
  /***/ }),
14834
15182
 
14835
15183
  /***/ 2838:
@@ -17100,7 +17448,7 @@ hljs.registerLanguage('vbnet', __webpack_require__(8928));
17100
17448
  hljs.registerLanguage('vbscript', __webpack_require__(1200));
17101
17449
  hljs.registerLanguage('vbscript-html', __webpack_require__(164));
17102
17450
  hljs.registerLanguage('verilog', __webpack_require__(8249));
17103
- hljs.registerLanguage('vhdl', __webpack_require__(8721));
17451
+ hljs.registerLanguage('vhdl', __webpack_require__(1102));
17104
17452
  hljs.registerLanguage('vim', __webpack_require__(8907));
17105
17453
  hljs.registerLanguage('wasm', __webpack_require__(9351));
17106
17454
  hljs.registerLanguage('wren', __webpack_require__(5069));
@@ -20877,6 +21225,63 @@ module.exports =
20877
21225
  (function () { return this; })() || Function('return this')();
20878
21226
 
20879
21227
 
21228
+ /***/ }),
21229
+
21230
+ /***/ 4603:
21231
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
21232
+
21233
+ "use strict";
21234
+
21235
+ var defineBuiltIn = __webpack_require__(6840);
21236
+ var uncurryThis = __webpack_require__(9504);
21237
+ var toString = __webpack_require__(655);
21238
+ var validateArgumentsLength = __webpack_require__(2812);
21239
+
21240
+ var $URLSearchParams = URLSearchParams;
21241
+ var URLSearchParamsPrototype = $URLSearchParams.prototype;
21242
+ var append = uncurryThis(URLSearchParamsPrototype.append);
21243
+ var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
21244
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
21245
+ var push = uncurryThis([].push);
21246
+ var params = new $URLSearchParams('a=1&a=2&b=3');
21247
+
21248
+ params['delete']('a', 1);
21249
+ // `undefined` case is a Chromium 117 bug
21250
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
21251
+ params['delete']('b', undefined);
21252
+
21253
+ if (params + '' !== 'a=2') {
21254
+ defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
21255
+ var length = arguments.length;
21256
+ var $value = length < 2 ? undefined : arguments[1];
21257
+ if (length && $value === undefined) return $delete(this, name);
21258
+ var entries = [];
21259
+ forEach(this, function (v, k) { // also validates `this`
21260
+ push(entries, { key: k, value: v });
21261
+ });
21262
+ validateArgumentsLength(length, 1);
21263
+ var key = toString(name);
21264
+ var value = toString($value);
21265
+ var index = 0;
21266
+ var dindex = 0;
21267
+ var found = false;
21268
+ var entriesLength = entries.length;
21269
+ var entry;
21270
+ while (index < entriesLength) {
21271
+ entry = entries[index++];
21272
+ if (found || entry.key === key) {
21273
+ found = true;
21274
+ $delete(this, entry.key);
21275
+ } else dindex++;
21276
+ }
21277
+ while (dindex < entriesLength) {
21278
+ entry = entries[dindex++];
21279
+ if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
21280
+ }
21281
+ }, { enumerable: true, unsafe: true });
21282
+ }
21283
+
21284
+
20880
21285
  /***/ }),
20881
21286
 
20882
21287
  /***/ 4644:
@@ -31535,6 +31940,41 @@ module.exports = scheme;
31535
31940
  module.exports = {};
31536
31941
 
31537
31942
 
31943
+ /***/ }),
31944
+
31945
+ /***/ 6279:
31946
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
31947
+
31948
+ "use strict";
31949
+
31950
+ var defineBuiltIn = __webpack_require__(6840);
31951
+
31952
+ module.exports = function (target, src, options) {
31953
+ for (var key in src) defineBuiltIn(target, key, src[key], options);
31954
+ return target;
31955
+ };
31956
+
31957
+
31958
+ /***/ }),
31959
+
31960
+ /***/ 6319:
31961
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
31962
+
31963
+ "use strict";
31964
+
31965
+ var anObject = __webpack_require__(8551);
31966
+ var iteratorClose = __webpack_require__(9539);
31967
+
31968
+ // call something on iterator step with safe closing on error
31969
+ module.exports = function (iterator, fn, value, ENTRIES) {
31970
+ try {
31971
+ return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
31972
+ } catch (error) {
31973
+ iteratorClose(iterator, 'throw', error);
31974
+ }
31975
+ };
31976
+
31977
+
31538
31978
  /***/ }),
31539
31979
 
31540
31980
  /***/ 6325:
@@ -46943,6 +47383,42 @@ function x86asm(hljs) {
46943
47383
  module.exports = x86asm;
46944
47384
 
46945
47385
 
47386
+ /***/ }),
47387
+
47388
+ /***/ 7566:
47389
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
47390
+
47391
+ "use strict";
47392
+
47393
+ var defineBuiltIn = __webpack_require__(6840);
47394
+ var uncurryThis = __webpack_require__(9504);
47395
+ var toString = __webpack_require__(655);
47396
+ var validateArgumentsLength = __webpack_require__(2812);
47397
+
47398
+ var $URLSearchParams = URLSearchParams;
47399
+ var URLSearchParamsPrototype = $URLSearchParams.prototype;
47400
+ var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
47401
+ var $has = uncurryThis(URLSearchParamsPrototype.has);
47402
+ var params = new $URLSearchParams('a=1');
47403
+
47404
+ // `undefined` case is a Chromium 117 bug
47405
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
47406
+ if (params.has('a', 2) || !params.has('a', undefined)) {
47407
+ defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
47408
+ var length = arguments.length;
47409
+ var $value = length < 2 ? undefined : arguments[1];
47410
+ if (length && $value === undefined) return $has(this, name);
47411
+ var values = getAll(this, name); // also validates `this`
47412
+ validateArgumentsLength(length, 1);
47413
+ var value = toString($value);
47414
+ var index = 0;
47415
+ while (index < values.length) {
47416
+ if (values[index++] === value) return true;
47417
+ } return false;
47418
+ }, { enumerable: true, unsafe: true });
47419
+ }
47420
+
47421
+
46946
47422
  /***/ }),
46947
47423
 
46948
47424
  /***/ 7572:
@@ -59264,225 +59740,31 @@ module.exports = DESCRIPTORS && fails(function () {
59264
59740
  /***/ }),
59265
59741
 
59266
59742
  /***/ 8721:
59267
- /***/ (function(module) {
59268
-
59269
- /*
59270
- Language: VHDL
59271
- Author: Igor Kalnitsky <igor@kalnitsky.org>
59272
- Contributors: Daniel C.K. Kho <daniel.kho@tauhop.com>, Guillaume Savaton <guillaume.savaton@eseo.fr>
59273
- Description: VHDL is a hardware description language used in electronic design automation to describe digital and mixed-signal systems.
59274
- Website: https://en.wikipedia.org/wiki/VHDL
59275
- Category: hardware
59276
- */
59277
-
59278
- function vhdl(hljs) {
59279
- // Regular expression for VHDL numeric literals.
59280
-
59281
- // Decimal literal:
59282
- const INTEGER_RE = '\\d(_|\\d)*';
59283
- const EXPONENT_RE = '[eE][-+]?' + INTEGER_RE;
59284
- const DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?';
59285
- // Based literal:
59286
- const BASED_INTEGER_RE = '\\w+';
59287
- const BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?';
59743
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
59288
59744
 
59289
- const NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')';
59745
+ "use strict";
59290
59746
 
59291
- const KEYWORDS = [
59292
- "abs",
59293
- "access",
59294
- "after",
59295
- "alias",
59296
- "all",
59297
- "and",
59298
- "architecture",
59299
- "array",
59300
- "assert",
59301
- "assume",
59302
- "assume_guarantee",
59303
- "attribute",
59304
- "begin",
59305
- "block",
59306
- "body",
59307
- "buffer",
59308
- "bus",
59309
- "case",
59310
- "component",
59311
- "configuration",
59312
- "constant",
59313
- "context",
59314
- "cover",
59315
- "disconnect",
59316
- "downto",
59317
- "default",
59318
- "else",
59319
- "elsif",
59320
- "end",
59321
- "entity",
59322
- "exit",
59323
- "fairness",
59324
- "file",
59325
- "for",
59326
- "force",
59327
- "function",
59328
- "generate",
59329
- "generic",
59330
- "group",
59331
- "guarded",
59332
- "if",
59333
- "impure",
59334
- "in",
59335
- "inertial",
59336
- "inout",
59337
- "is",
59338
- "label",
59339
- "library",
59340
- "linkage",
59341
- "literal",
59342
- "loop",
59343
- "map",
59344
- "mod",
59345
- "nand",
59346
- "new",
59347
- "next",
59348
- "nor",
59349
- "not",
59350
- "null",
59351
- "of",
59352
- "on",
59353
- "open",
59354
- "or",
59355
- "others",
59356
- "out",
59357
- "package",
59358
- "parameter",
59359
- "port",
59360
- "postponed",
59361
- "procedure",
59362
- "process",
59363
- "property",
59364
- "protected",
59365
- "pure",
59366
- "range",
59367
- "record",
59368
- "register",
59369
- "reject",
59370
- "release",
59371
- "rem",
59372
- "report",
59373
- "restrict",
59374
- "restrict_guarantee",
59375
- "return",
59376
- "rol",
59377
- "ror",
59378
- "select",
59379
- "sequence",
59380
- "severity",
59381
- "shared",
59382
- "signal",
59383
- "sla",
59384
- "sll",
59385
- "sra",
59386
- "srl",
59387
- "strong",
59388
- "subtype",
59389
- "then",
59390
- "to",
59391
- "transport",
59392
- "type",
59393
- "unaffected",
59394
- "units",
59395
- "until",
59396
- "use",
59397
- "variable",
59398
- "view",
59399
- "vmode",
59400
- "vprop",
59401
- "vunit",
59402
- "wait",
59403
- "when",
59404
- "while",
59405
- "with",
59406
- "xnor",
59407
- "xor"
59408
- ];
59409
- const BUILT_INS = [
59410
- "boolean",
59411
- "bit",
59412
- "character",
59413
- "integer",
59414
- "time",
59415
- "delay_length",
59416
- "natural",
59417
- "positive",
59418
- "string",
59419
- "bit_vector",
59420
- "file_open_kind",
59421
- "file_open_status",
59422
- "std_logic",
59423
- "std_logic_vector",
59424
- "unsigned",
59425
- "signed",
59426
- "boolean_vector",
59427
- "integer_vector",
59428
- "std_ulogic",
59429
- "std_ulogic_vector",
59430
- "unresolved_unsigned",
59431
- "u_unsigned",
59432
- "unresolved_signed",
59433
- "u_signed",
59434
- "real_vector",
59435
- "time_vector"
59436
- ];
59437
- const LITERALS = [
59438
- // severity_level
59439
- "false",
59440
- "true",
59441
- "note",
59442
- "warning",
59443
- "error",
59444
- "failure",
59445
- // textio
59446
- "line",
59447
- "text",
59448
- "side",
59449
- "width"
59450
- ];
59747
+ var DESCRIPTORS = __webpack_require__(3724);
59748
+ var uncurryThis = __webpack_require__(9504);
59749
+ var defineBuiltInAccessor = __webpack_require__(2106);
59451
59750
 
59452
- return {
59453
- name: 'VHDL',
59454
- case_insensitive: true,
59455
- keywords: {
59456
- keyword: KEYWORDS,
59457
- built_in: BUILT_INS,
59458
- literal: LITERALS
59751
+ var URLSearchParamsPrototype = URLSearchParams.prototype;
59752
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
59753
+
59754
+ // `URLSearchParams.prototype.size` getter
59755
+ // https://github.com/whatwg/url/pull/734
59756
+ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
59757
+ defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
59758
+ get: function size() {
59759
+ var count = 0;
59760
+ forEach(this, function () { count++; });
59761
+ return count;
59459
59762
  },
59460
- illegal: /\{/,
59461
- contains: [
59462
- hljs.C_BLOCK_COMMENT_MODE, // VHDL-2008 block commenting.
59463
- hljs.COMMENT('--', '$'),
59464
- hljs.QUOTE_STRING_MODE,
59465
- {
59466
- className: 'number',
59467
- begin: NUMBER_RE,
59468
- relevance: 0
59469
- },
59470
- {
59471
- className: 'string',
59472
- begin: '\'(U|X|0|1|Z|W|L|H|-)\'',
59473
- contains: [ hljs.BACKSLASH_ESCAPE ]
59474
- },
59475
- {
59476
- className: 'symbol',
59477
- begin: '\'[A-Za-z](_?[A-Za-z0-9])*',
59478
- contains: [ hljs.BACKSLASH_ESCAPE ]
59479
- }
59480
- ]
59481
- };
59763
+ configurable: true,
59764
+ enumerable: true
59765
+ });
59482
59766
  }
59483
59767
 
59484
- module.exports = vhdl;
59485
-
59486
59768
 
59487
59769
  /***/ }),
59488
59770
 
@@ -63301,6 +63583,100 @@ function vala(hljs) {
63301
63583
  module.exports = vala;
63302
63584
 
63303
63585
 
63586
+ /***/ }),
63587
+
63588
+ /***/ 9462:
63589
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
63590
+
63591
+ "use strict";
63592
+
63593
+ var call = __webpack_require__(9565);
63594
+ var create = __webpack_require__(2360);
63595
+ var createNonEnumerableProperty = __webpack_require__(6699);
63596
+ var defineBuiltIns = __webpack_require__(6279);
63597
+ var wellKnownSymbol = __webpack_require__(8227);
63598
+ var InternalStateModule = __webpack_require__(1181);
63599
+ var getMethod = __webpack_require__(5966);
63600
+ var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
63601
+ var createIterResultObject = __webpack_require__(2529);
63602
+ var iteratorClose = __webpack_require__(9539);
63603
+ var iteratorCloseAll = __webpack_require__(1385);
63604
+
63605
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
63606
+ var ITERATOR_HELPER = 'IteratorHelper';
63607
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
63608
+ var NORMAL = 'normal';
63609
+ var THROW = 'throw';
63610
+ var setInternalState = InternalStateModule.set;
63611
+
63612
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
63613
+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
63614
+
63615
+ return defineBuiltIns(create(IteratorPrototype), {
63616
+ next: function next() {
63617
+ var state = getInternalState(this);
63618
+ // for simplification:
63619
+ // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
63620
+ // for `%IteratorHelperPrototype%.next` - just a value
63621
+ if (IS_ITERATOR) return state.nextHandler();
63622
+ if (state.done) return createIterResultObject(undefined, true);
63623
+ try {
63624
+ var result = state.nextHandler();
63625
+ return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
63626
+ } catch (error) {
63627
+ state.done = true;
63628
+ throw error;
63629
+ }
63630
+ },
63631
+ 'return': function () {
63632
+ var state = getInternalState(this);
63633
+ var iterator = state.iterator;
63634
+ state.done = true;
63635
+ if (IS_ITERATOR) {
63636
+ var returnMethod = getMethod(iterator, 'return');
63637
+ return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
63638
+ }
63639
+ if (state.inner) try {
63640
+ iteratorClose(state.inner.iterator, NORMAL);
63641
+ } catch (error) {
63642
+ return iteratorClose(iterator, THROW, error);
63643
+ }
63644
+ if (state.openIters) try {
63645
+ iteratorCloseAll(state.openIters, NORMAL);
63646
+ } catch (error) {
63647
+ return iteratorClose(iterator, THROW, error);
63648
+ }
63649
+ if (iterator) iteratorClose(iterator, NORMAL);
63650
+ return createIterResultObject(undefined, true);
63651
+ }
63652
+ });
63653
+ };
63654
+
63655
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
63656
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
63657
+
63658
+ createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
63659
+
63660
+ module.exports = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
63661
+ var IteratorProxy = function Iterator(record, state) {
63662
+ if (state) {
63663
+ state.iterator = record.iterator;
63664
+ state.next = record.next;
63665
+ } else state = record;
63666
+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
63667
+ state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
63668
+ state.nextHandler = nextHandler;
63669
+ state.counter = 0;
63670
+ state.done = false;
63671
+ setInternalState(this, state);
63672
+ };
63673
+
63674
+ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
63675
+
63676
+ return IteratorProxy;
63677
+ };
63678
+
63679
+
63304
63680
  /***/ }),
63305
63681
 
63306
63682
  /***/ 9504:
@@ -65983,7 +66359,7 @@ if (typeof window !== 'undefined') {
65983
66359
  var es_iterator_constructor = __webpack_require__(8111);
65984
66360
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
65985
66361
  var es_iterator_for_each = __webpack_require__(7588);
65986
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindow.vue?vue&type=template&id=67cef8d6&scoped=true
66362
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindow.vue?vue&type=template&id=65473704&scoped=true
65987
66363
  var render = function render() {
65988
66364
  var _vm = this,
65989
66365
  _c = _vm._self._c;
@@ -66016,6 +66392,7 @@ var render = function render() {
66016
66392
  }), _c('ChatWindowDialog', {
66017
66393
  attrs: {
66018
66394
  "messages": _vm.messages,
66395
+ "message-loading": _vm.messageLoading,
66019
66396
  "input-message": _vm.inputMessage,
66020
66397
  "think-status": _vm.thinkStatus,
66021
66398
  "chat-id": _vm.chatId
@@ -66275,8 +66652,8 @@ var ChatAvatar_component = normalizeComponent(
66275
66652
  )
66276
66653
 
66277
66654
  /* harmony default export */ var ChatAvatar = (ChatAvatar_component.exports);
66278
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindowDialog.vue?vue&type=template&id=bc074e36&scoped=true
66279
- var ChatWindowDialogvue_type_template_id_bc074e36_scoped_true_render = function render() {
66655
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindowDialog.vue?vue&type=template&id=d91085f6&scoped=true
66656
+ var ChatWindowDialogvue_type_template_id_d91085f6_scoped_true_render = function render() {
66280
66657
  var _vm = this,
66281
66658
  _c = _vm._self._c;
66282
66659
  return _c('div', {
@@ -66308,8 +66685,8 @@ var ChatWindowDialogvue_type_template_id_bc074e36_scoped_true_render = function
66308
66685
  ref: "messageList",
66309
66686
  attrs: {
66310
66687
  "messages": _vm.messages,
66311
- "think-status": _vm.thinkStatus,
66312
- "loading": _vm.loading
66688
+ "message-loading": _vm.messageLoading,
66689
+ "think-status": _vm.thinkStatus
66313
66690
  },
66314
66691
  on: {
66315
66692
  "thinking-click": function ($event) {
@@ -66330,7 +66707,7 @@ var ChatWindowDialogvue_type_template_id_bc074e36_scoped_true_render = function
66330
66707
  }
66331
66708
  })], 1)]);
66332
66709
  };
66333
- var ChatWindowDialogvue_type_template_id_bc074e36_scoped_true_staticRenderFns = [];
66710
+ var ChatWindowDialogvue_type_template_id_d91085f6_scoped_true_staticRenderFns = [];
66334
66711
 
66335
66712
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindowHeader.vue?vue&type=template&id=7683371c&scoped=true
66336
66713
  var ChatWindowHeadervue_type_template_id_7683371c_scoped_true_render = function render() {
@@ -66464,8 +66841,8 @@ var ChatWindowHeader_component = normalizeComponent(
66464
66841
  )
66465
66842
 
66466
66843
  /* harmony default export */ var ChatWindowHeader = (ChatWindowHeader_component.exports);
66467
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatMessageList.vue?vue&type=template&id=1963170c&scoped=true
66468
- var ChatMessageListvue_type_template_id_1963170c_scoped_true_render = function render() {
66844
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatMessageList.vue?vue&type=template&id=23ee21e1&scoped=true
66845
+ var ChatMessageListvue_type_template_id_23ee21e1_scoped_true_render = function render() {
66469
66846
  var _vm = this,
66470
66847
  _c = _vm._self._c;
66471
66848
  return _c('div', {
@@ -66484,18 +66861,16 @@ var ChatMessageListvue_type_template_id_1963170c_scoped_true_render = function r
66484
66861
  }) : _c('AiMessage', {
66485
66862
  attrs: {
66486
66863
  "message": message,
66864
+ "message-loading": _vm.messageLoading,
66487
66865
  "think-status": _vm.thinkStatus
66488
- },
66489
- on: {
66490
- "thinking-toggle": function ($event) {
66491
- return _vm.handleThinkingToggle(message);
66492
- }
66493
66866
  }
66494
66867
  })], 1);
66495
66868
  })], 2);
66496
66869
  };
66497
- var ChatMessageListvue_type_template_id_1963170c_scoped_true_staticRenderFns = [];
66870
+ var ChatMessageListvue_type_template_id_23ee21e1_scoped_true_staticRenderFns = [];
66498
66871
 
66872
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
66873
+ var es_iterator_map = __webpack_require__(1701);
66499
66874
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/UserMessage.vue?vue&type=template&id=6a2b6167&scoped=true
66500
66875
  var UserMessagevue_type_template_id_6a2b6167_scoped_true_render = function render() {
66501
66876
  var _vm = this,
@@ -66546,15 +66921,15 @@ var UserMessage_component = normalizeComponent(
66546
66921
  )
66547
66922
 
66548
66923
  /* harmony default export */ var UserMessage = (UserMessage_component.exports);
66549
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=template&id=76c8c993&scoped=true
66550
- var AiMessagevue_type_template_id_76c8c993_scoped_true_render = function render() {
66924
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=template&id=5b148ad8&scoped=true
66925
+ var AiMessagevue_type_template_id_5b148ad8_scoped_true_render = function render() {
66551
66926
  var _vm = this,
66552
66927
  _c = _vm._self._c;
66553
66928
  return _c('div', {
66554
66929
  staticClass: "chat-window-message-ai"
66555
66930
  }, [_c('div', {
66556
66931
  staticClass: "ai-render"
66557
- }, [_vm.message.loading ? _c('div', {
66932
+ }, [_vm.messageLoading ? _c('div', {
66558
66933
  staticClass: "ai-loading"
66559
66934
  }, [_c('div', {
66560
66935
  staticClass: "dot"
@@ -66567,21 +66942,24 @@ var AiMessagevue_type_template_id_76c8c993_scoped_true_render = function render(
66567
66942
  key: item.id,
66568
66943
  staticClass: "ai-message-item"
66569
66944
  }, [item.type === 'thinking' ? _c('div', {
66570
- staticClass: "ai-thinking",
66945
+ staticClass: "ai-thinking"
66946
+ }, [_c('div', {
66947
+ staticClass: "ai-thinking-time",
66948
+ class: {
66949
+ 'thinking-expanded': !item.thinkingExpanded
66950
+ },
66571
66951
  on: {
66572
66952
  "click": function ($event) {
66573
- return _vm.$emit('thinking-toggle');
66953
+ return _vm.handleThinkingToggle(item);
66574
66954
  }
66575
66955
  }
66576
- }, [_c('div', {
66577
- staticClass: "ai-thinking-time"
66578
- }, [_vm._v(" " + _vm._s(item.duration ? `思考用时 ${item.duration} 秒` : '思考中...') + " ")]), _vm.thinkingExpanded ? _c('div', {
66956
+ }, [_vm._v(" " + _vm._s(item.duration ? `思考用时 ${item.duration} 秒` : '思考中...') + " ")]), item.thinkingExpanded ? _c('div', {
66579
66957
  staticClass: "ai-thinking-content"
66580
66958
  }, [_vm._v(" " + _vm._s(item.content) + " ")]) : _vm._e()]) : item.type === 'tool_call' ? _c('div', {
66581
66959
  staticClass: "ai-tool-call"
66582
66960
  }, [_c('div', {
66583
66961
  staticClass: "tool-title"
66584
- }, [_vm._v("🔧 " + _vm._s(item.content) + _vm._s(item.name))])]) : item.type === 'tool_result' ? _c('div', {
66962
+ }, [_vm._v("🔧 " + _vm._s(item.name))])]) : item.type === 'tool_result' ? _c('div', {
66585
66963
  staticClass: "ai-tool-result"
66586
66964
  }, [_c('div', {
66587
66965
  staticClass: "tool-title"
@@ -66589,12 +66967,21 @@ var AiMessagevue_type_template_id_76c8c993_scoped_true_render = function render(
66589
66967
  staticClass: "ai-content markdown-body",
66590
66968
  domProps: {
66591
66969
  "innerHTML": _vm._s(_vm.renderMarkdown(item.content))
66970
+ },
66971
+ on: {
66972
+ "click": _vm.handleLinkClick
66592
66973
  }
66593
66974
  }) : _vm._e()]);
66594
66975
  })], 2)]);
66595
66976
  };
66596
- var AiMessagevue_type_template_id_76c8c993_scoped_true_staticRenderFns = [];
66597
-
66977
+ var AiMessagevue_type_template_id_5b148ad8_scoped_true_staticRenderFns = [];
66978
+
66979
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
66980
+ var web_url_search_params_delete = __webpack_require__(4603);
66981
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
66982
+ var web_url_search_params_has = __webpack_require__(7566);
66983
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
66984
+ var web_url_search_params_size = __webpack_require__(8721);
66598
66985
  ;// ./node_modules/marked/lib/marked.esm.js
66599
66986
  /**
66600
66987
  * marked v15.0.12 - a markdown parser
@@ -68782,8 +69169,34 @@ var lib = __webpack_require__(3223);
68782
69169
 
68783
69170
 
68784
69171
 
69172
+
69173
+
69174
+
69175
+
69176
+
69177
+ // 创建自定义渲染器
69178
+ const renderer = new marked.Renderer();
69179
+
69180
+ // 自定义链接渲染
69181
+ renderer.link = function ({
69182
+ href,
69183
+ text
69184
+ }) {
69185
+ let dataPath = '';
69186
+ const url = new URL(href, window.location.origin);
69187
+ const pathname = url.pathname;
69188
+ const search = url.search;
69189
+ if (pathname.startsWith('/portal/')) {
69190
+ dataPath = pathname.substring('/portal'.length) + search;
69191
+ return `<a href="javascript:void(0)" data-path="${dataPath}" data-text="${text}">${text}</a>`;
69192
+ } else {
69193
+ dataPath = href;
69194
+ return `<a href="${dataPath}" target="_blank">${text}</a>`;
69195
+ }
69196
+ };
68785
69197
  marked.setOptions({
68786
- highlight(code, lang) {
69198
+ renderer: renderer,
69199
+ highlight: function (code, lang) {
68787
69200
  if (lang && es.getLanguage(lang)) {
68788
69201
  return es.highlight(code, {
68789
69202
  language: lang
@@ -68797,6 +69210,7 @@ marked.setOptions({
68797
69210
  /* harmony default export */ var AiMessagevue_type_script_lang_js = ({
68798
69211
  props: {
68799
69212
  message: Object,
69213
+ messageLoading: Boolean,
68800
69214
  thinkStatus: Boolean
68801
69215
  },
68802
69216
  computed: {
@@ -68807,15 +69221,44 @@ marked.setOptions({
68807
69221
  methods: {
68808
69222
  renderMarkdown(text) {
68809
69223
  return marked.parse(text || '');
69224
+ },
69225
+ handleThinkingToggle(item) {
69226
+ this.$set(item, 'thinkingExpanded', !item.thinkingExpanded);
69227
+ },
69228
+ handleLinkClick(event) {
69229
+ const link = event.target.closest('a');
69230
+ if (!link) return;
69231
+ const routePath = link.getAttribute('data-path');
69232
+ const linkText = link.getAttribute('data-text');
69233
+ if (routePath && linkText) {
69234
+ event.preventDefault();
69235
+ if (this.$appOptions?.store?.dispatch) {
69236
+ this.$appOptions.store.dispatch('tags/addTagview', {
69237
+ path: routePath,
69238
+ fullPath: routePath,
69239
+ label: linkText,
69240
+ name: linkText,
69241
+ meta: {
69242
+ title: linkText
69243
+ }
69244
+ });
69245
+ this.$appOptions.router.push({
69246
+ path: routePath
69247
+ });
69248
+ } else {
69249
+ console.log('路由跳转:', routePath);
69250
+ this.$router.push(routePath).catch(() => {});
69251
+ }
69252
+ }
68810
69253
  }
68811
69254
  }
68812
69255
  });
68813
69256
  ;// ./components/AiMessage.vue?vue&type=script&lang=js
68814
69257
  /* harmony default export */ var components_AiMessagevue_type_script_lang_js = (AiMessagevue_type_script_lang_js);
68815
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=style&index=0&id=76c8c993&prod&scoped=true&lang=css
69258
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/AiMessage.vue?vue&type=style&index=0&id=5b148ad8&prod&scoped=true&lang=css
68816
69259
  // extracted by mini-css-extract-plugin
68817
69260
 
68818
- ;// ./components/AiMessage.vue?vue&type=style&index=0&id=76c8c993&prod&scoped=true&lang=css
69261
+ ;// ./components/AiMessage.vue?vue&type=style&index=0&id=5b148ad8&prod&scoped=true&lang=css
68819
69262
 
68820
69263
  ;// ./components/AiMessage.vue
68821
69264
 
@@ -68828,11 +69271,11 @@ marked.setOptions({
68828
69271
 
68829
69272
  var AiMessage_component = normalizeComponent(
68830
69273
  components_AiMessagevue_type_script_lang_js,
68831
- AiMessagevue_type_template_id_76c8c993_scoped_true_render,
68832
- AiMessagevue_type_template_id_76c8c993_scoped_true_staticRenderFns,
69274
+ AiMessagevue_type_template_id_5b148ad8_scoped_true_render,
69275
+ AiMessagevue_type_template_id_5b148ad8_scoped_true_staticRenderFns,
68833
69276
  false,
68834
69277
  null,
68835
- "76c8c993",
69278
+ "5b148ad8",
68836
69279
  null
68837
69280
 
68838
69281
  )
@@ -68841,6 +69284,8 @@ var AiMessage_component = normalizeComponent(
68841
69284
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatMessageList.vue?vue&type=script&lang=js
68842
69285
 
68843
69286
 
69287
+
69288
+
68844
69289
  /* harmony default export */ var ChatMessageListvue_type_script_lang_js = ({
68845
69290
  components: {
68846
69291
  UserMessage: UserMessage,
@@ -68848,17 +69293,22 @@ var AiMessage_component = normalizeComponent(
68848
69293
  },
68849
69294
  props: {
68850
69295
  messages: Array,
69296
+ messageLoading: Boolean,
68851
69297
  thinkStatus: Boolean
68852
69298
  },
68853
69299
  computed: {
68854
69300
  lastMessageObject() {
68855
69301
  return this.messages[this.messages.length - 1] || null;
69302
+ },
69303
+ timelineContents() {
69304
+ if (!this.lastMessageObject || !this.lastMessageObject.timeline) {
69305
+ return '';
69306
+ }
69307
+ // 将所有 content 拼接成一个字符串用于监听变化
69308
+ return this.lastMessageObject.timeline.map(item => item.content || '').join('');
68856
69309
  }
68857
69310
  },
68858
69311
  methods: {
68859
- handleThinkingToggle(message) {
68860
- this.$set(message, 'thinkingExpanded', !message.thinkingExpanded);
68861
- },
68862
69312
  scrollToBottom() {
68863
69313
  this.$nextTick(() => {
68864
69314
  const el = this.$refs.chatArea;
@@ -68867,7 +69317,7 @@ var AiMessage_component = normalizeComponent(
68867
69317
  }
68868
69318
  },
68869
69319
  watch: {
68870
- lastMessageObject: {
69320
+ timelineContents: {
68871
69321
  handler() {
68872
69322
  this.scrollToBottom();
68873
69323
  },
@@ -68878,10 +69328,10 @@ var AiMessage_component = normalizeComponent(
68878
69328
  });
68879
69329
  ;// ./components/ChatMessageList.vue?vue&type=script&lang=js
68880
69330
  /* harmony default export */ var components_ChatMessageListvue_type_script_lang_js = (ChatMessageListvue_type_script_lang_js);
68881
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatMessageList.vue?vue&type=style&index=0&id=1963170c&prod&scoped=true&lang=css
69331
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatMessageList.vue?vue&type=style&index=0&id=23ee21e1&prod&scoped=true&lang=css
68882
69332
  // extracted by mini-css-extract-plugin
68883
69333
 
68884
- ;// ./components/ChatMessageList.vue?vue&type=style&index=0&id=1963170c&prod&scoped=true&lang=css
69334
+ ;// ./components/ChatMessageList.vue?vue&type=style&index=0&id=23ee21e1&prod&scoped=true&lang=css
68885
69335
 
68886
69336
  ;// ./components/ChatMessageList.vue
68887
69337
 
@@ -68894,11 +69344,11 @@ var AiMessage_component = normalizeComponent(
68894
69344
 
68895
69345
  var ChatMessageList_component = normalizeComponent(
68896
69346
  components_ChatMessageListvue_type_script_lang_js,
68897
- ChatMessageListvue_type_template_id_1963170c_scoped_true_render,
68898
- ChatMessageListvue_type_template_id_1963170c_scoped_true_staticRenderFns,
69347
+ ChatMessageListvue_type_template_id_23ee21e1_scoped_true_render,
69348
+ ChatMessageListvue_type_template_id_23ee21e1_scoped_true_staticRenderFns,
68899
69349
  false,
68900
69350
  null,
68901
- "1963170c",
69351
+ "23ee21e1",
68902
69352
  null
68903
69353
 
68904
69354
  )
@@ -69047,6 +69497,10 @@ var ChatInputBox_component = normalizeComponent(
69047
69497
  type: Array,
69048
69498
  required: true
69049
69499
  },
69500
+ messageLoading: {
69501
+ type: Boolean,
69502
+ default: false
69503
+ },
69050
69504
  inputMessage: {
69051
69505
  type: String,
69052
69506
  default: ''
@@ -69055,10 +69509,6 @@ var ChatInputBox_component = normalizeComponent(
69055
69509
  type: Boolean,
69056
69510
  default: true
69057
69511
  },
69058
- loading: {
69059
- type: Boolean,
69060
- default: false
69061
- },
69062
69512
  chatId: {
69063
69513
  type: String,
69064
69514
  default: ''
@@ -69067,10 +69517,10 @@ var ChatInputBox_component = normalizeComponent(
69067
69517
  });
69068
69518
  ;// ./components/ChatWindowDialog.vue?vue&type=script&lang=js
69069
69519
  /* harmony default export */ var components_ChatWindowDialogvue_type_script_lang_js = (ChatWindowDialogvue_type_script_lang_js);
69070
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindowDialog.vue?vue&type=style&index=0&id=bc074e36&prod&scoped=true&lang=css
69520
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindowDialog.vue?vue&type=style&index=0&id=d91085f6&prod&scoped=true&lang=css
69071
69521
  // extracted by mini-css-extract-plugin
69072
69522
 
69073
- ;// ./components/ChatWindowDialog.vue?vue&type=style&index=0&id=bc074e36&prod&scoped=true&lang=css
69523
+ ;// ./components/ChatWindowDialog.vue?vue&type=style&index=0&id=d91085f6&prod&scoped=true&lang=css
69074
69524
 
69075
69525
  ;// ./components/ChatWindowDialog.vue
69076
69526
 
@@ -69083,11 +69533,11 @@ var ChatInputBox_component = normalizeComponent(
69083
69533
 
69084
69534
  var ChatWindowDialog_component = normalizeComponent(
69085
69535
  components_ChatWindowDialogvue_type_script_lang_js,
69086
- ChatWindowDialogvue_type_template_id_bc074e36_scoped_true_render,
69087
- ChatWindowDialogvue_type_template_id_bc074e36_scoped_true_staticRenderFns,
69536
+ ChatWindowDialogvue_type_template_id_d91085f6_scoped_true_render,
69537
+ ChatWindowDialogvue_type_template_id_d91085f6_scoped_true_staticRenderFns,
69088
69538
  false,
69089
69539
  null,
69090
- "bc074e36",
69540
+ "d91085f6",
69091
69541
  null
69092
69542
 
69093
69543
  )
@@ -69343,6 +69793,8 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
69343
69793
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
69344
69794
  var es_json_stringify = __webpack_require__(3110);
69345
69795
  ;// ./components/utils/StreamParser.js
69796
+
69797
+
69346
69798
  class StreamParser {
69347
69799
  constructor(options = {}) {
69348
69800
  this.options = {
@@ -69398,36 +69850,63 @@ class StreamParser {
69398
69850
  }
69399
69851
  this.scheduleFlush(emit);
69400
69852
  }
69853
+ parseTag(tag) {
69854
+ const isClosing = tag.startsWith('</');
69855
+ const content = tag.replace(/^<\/?|>$/g, '').trim();
69856
+ const [tagName, ...attrParts] = content.split(/\s+/);
69857
+ const attrs = {};
69858
+ attrParts.forEach(part => {
69859
+ const [key, rawValue] = part.split('=');
69860
+ if (!key || !rawValue) return;
69861
+ attrs[key] = rawValue.replace(/^['"]|['"]$/g, '');
69862
+ });
69863
+ return {
69864
+ tag: tagName.replace('/', ''),
69865
+ attrs,
69866
+ isClosing
69867
+ };
69868
+ }
69401
69869
  handleTag(tag, emit) {
69402
- const t = tag.toLowerCase().trim();
69403
- if (t.startsWith('<think')) {
69404
- this.startThinking(emit);
69405
- } else if (t.startsWith('</think')) {
69406
- this.closeThinking();
69407
- this.currentType = 'content';
69408
- this.currentEvent = null;
69409
- } else if (t.startsWith('<tool_call')) {
69410
- const attrs = this.parseTagAttributes(tag);
69411
- this.switchType('tool_call', emit, attrs.name);
69412
- } else if (t.startsWith('</tool_call')) {
69413
- this.switchType('content', emit);
69414
- } else if (t.startsWith('<tool_result')) {
69415
- this.switchType('tool_result', emit);
69416
- } else if (t.startsWith('</tool_result')) {
69417
- this.switchType('content', emit);
69870
+ const {
69871
+ tag: tagName,
69872
+ attrs,
69873
+ isClosing
69874
+ } = this.parseTag(tag.toLowerCase());
69875
+ if (tagName === 'think') {
69876
+ if (!isClosing) {
69877
+ this.startThinking(attrs, emit);
69878
+ } else {
69879
+ this.closeThinking();
69880
+ this.currentType = 'content';
69881
+ this.currentEvent = null;
69882
+ }
69883
+ } else if (tagName === 'tool_call') {
69884
+ if (!isClosing) {
69885
+ this.switchType('tool_call', emit, attrs);
69886
+ } else {
69887
+ this.switchType('content', emit);
69888
+ }
69889
+ } else if (tagName === 'tool_result') {
69890
+ if (!isClosing) {
69891
+ this.switchType('tool_result', emit, attrs);
69892
+ } else {
69893
+ this.switchType('content', emit);
69894
+ }
69418
69895
  } else {
69419
69896
  this.append(tag, emit);
69420
69897
  }
69421
69898
  }
69422
- startThinking(emit) {
69899
+ startThinking(attrs = {}, emit) {
69423
69900
  // 如果上一个 thinking 还没结算,先结算
69424
69901
  this.closeThinking();
69425
69902
  this.currentType = 'thinking';
69426
69903
  this.currentEvent = {
69427
69904
  id: this.uuid(),
69428
69905
  type: 'thinking',
69906
+ name: attrs.name || null,
69429
69907
  content: '',
69430
69908
  startTime: Date.now(),
69909
+ thinkingExpanded: true,
69431
69910
  endTime: null,
69432
69911
  duration: null
69433
69912
  };
@@ -69443,13 +69922,22 @@ class StreamParser {
69443
69922
  console.log(this.currentEvent.endTime - this.currentEvent.startTime);
69444
69923
  }
69445
69924
  }
69446
- switchType(type) {
69925
+ switchType(type, emit, attrs = {}) {
69447
69926
  // 如果是从 thinking 切走,结算时间
69448
69927
  if (this.currentEvent?.type === 'thinking') {
69449
69928
  this.closeThinking();
69450
69929
  }
69451
69930
  this.currentType = type;
69452
- this.currentEvent = null;
69931
+ this.currentEvent = {
69932
+ id: this.uuid(),
69933
+ type,
69934
+ name: attrs.name || null,
69935
+ content: ''
69936
+ };
69937
+ emit({
69938
+ type: 'create',
69939
+ event: this.currentEvent
69940
+ });
69453
69941
  }
69454
69942
  append(text, emit) {
69455
69943
  if (!text) return;
@@ -69470,15 +69958,6 @@ class StreamParser {
69470
69958
  event: this.currentEvent
69471
69959
  });
69472
69960
  }
69473
- parseTagAttributes(tag) {
69474
- const attrRegex = /(\w+)=['"]([^'"]+)['"]/g;
69475
- const attrs = {};
69476
- let match;
69477
- while ((match = attrRegex.exec(tag)) !== null) {
69478
- attrs[match[1]] = match[2];
69479
- }
69480
- return attrs;
69481
- }
69482
69961
  scheduleFlush(emit) {
69483
69962
  if (this.updateTimer) return;
69484
69963
  this.updateTimer = setTimeout(() => {
@@ -69519,23 +69998,26 @@ const getCookie = cname => {
69519
69998
  return '';
69520
69999
  };
69521
70000
 
70001
+ ;// ./components/utils/Uuid.js
70002
+ function generateUuid() {
70003
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
70004
+ var r = Math.random() * 16 | 0,
70005
+ v = c === 'x' ? r : r & 0x3 | 0x8;
70006
+ return v.toString(16);
70007
+ });
70008
+ }
69522
70009
  ;// ./components/mixins/messageMixin.js
69523
70010
 
69524
70011
 
69525
70012
 
69526
70013
 
69527
70014
 
70015
+
69528
70016
  /* harmony default export */ var messageMixin = ({
69529
70017
  data() {
69530
70018
  return {
69531
70019
  streamParser: null,
69532
- aiMessage: {
69533
- id: Date.now(),
69534
- type: 'ai',
69535
- timeline: [],
69536
- loading: true,
69537
- thinkingExpanded: true
69538
- }
70020
+ currentMessage: null
69539
70021
  };
69540
70022
  },
69541
70023
  created() {
@@ -69548,13 +70030,21 @@ const getCookie = cname => {
69548
70030
  },
69549
70031
  methods: {
69550
70032
  createAiMessage() {
69551
- this.messages.push(this.aiMessage);
69552
- this.currentMessage = this.aiMessage;
69553
- return this.aiMessage;
70033
+ const aiMessage = {
70034
+ id: generateUuid(),
70035
+ type: 'ai',
70036
+ sender: 'AI',
70037
+ timeline: [],
70038
+ loading: true,
70039
+ thinkingExpanded: true
70040
+ };
70041
+ this.messages.push(aiMessage);
70042
+ this.currentMessage = aiMessage;
70043
+ return aiMessage;
69554
70044
  },
69555
70045
  createUserMessage(content) {
69556
70046
  const message = {
69557
- id: this.messages.length + 1,
70047
+ id: generateUuid(),
69558
70048
  type: 'user',
69559
70049
  sender: '用户',
69560
70050
  time: '',
@@ -69576,6 +70066,7 @@ const getCookie = cname => {
69576
70066
  this.streamParser.reset();
69577
70067
  const controller = new AbortController();
69578
70068
  try {
70069
+ this.messageLoading = true;
69579
70070
  const startTime = Date.now();
69580
70071
  const token = getCookie('bonyear-access_token') || `44e7f112-63f3-429d-908d-2c97ec380de2`;
69581
70072
  const response = await fetch(API_URL, {
@@ -69599,7 +70090,6 @@ const getCookie = cname => {
69599
70090
 
69600
70091
  // 完成解析
69601
70092
  this.streamParser.finish(() => {});
69602
- this.aiMessage.loading = false;
69603
70093
 
69604
70094
  // 记录耗时
69605
70095
  const duration = Date.now() - startTime;
@@ -69612,13 +70102,9 @@ const getCookie = cname => {
69612
70102
  console.error('发送消息失败:', error);
69613
70103
  if (this.currentMessage) {
69614
70104
  this.currentMessage.content = '抱歉,发生了错误,请重试。';
69615
- this.$forceUpdate();
69616
70105
  }
69617
70106
  } finally {
69618
- // 确保加载状态关闭
69619
- if (this.currentMessage) {
69620
- this.currentMessage.loading = false;
69621
- }
70107
+ this.messageLoading = false;
69622
70108
  }
69623
70109
  },
69624
70110
  /**
@@ -69641,9 +70127,9 @@ const getCookie = cname => {
69641
70127
  console.log('收到数据块:', chunk);
69642
70128
  // 使用解析器处理数据块,确保this指向正确
69643
70129
  this.streamParser.processChunk(chunk, e => {
69644
- console.log('处理数据块:', e);
70130
+ if (!this.currentMessage) return;
69645
70131
  if (e.type === 'create') {
69646
- this.aiMessage.timeline.push(e.event);
70132
+ this.currentMessage.timeline.push(e.event);
69647
70133
  }
69648
70134
  });
69649
70135
  }
@@ -69684,14 +70170,6 @@ const getCookie = cname => {
69684
70170
  },
69685
70171
  beforeDestroy() {}
69686
70172
  });
69687
- ;// ./components/utils/Uuid.js
69688
- function generateUuid() {
69689
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
69690
- var r = Math.random() * 16 | 0,
69691
- v = c === 'x' ? r : r & 0x3 | 0x8;
69692
- return v.toString(16);
69693
- });
69694
- }
69695
70173
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindow.vue?vue&type=script&lang=js
69696
70174
 
69697
70175
 
@@ -69735,6 +70213,7 @@ const startTime = null;
69735
70213
  inputMessage: '',
69736
70214
  visible: false,
69737
70215
  messages: [],
70216
+ messageLoading: true,
69738
70217
  robotStatus: 'leaving',
69739
70218
  avaterStatus: 'normal',
69740
70219
  currentMessage: null,
@@ -69920,10 +70399,10 @@ const startTime = null;
69920
70399
  });
69921
70400
  ;// ./components/ChatWindow.vue?vue&type=script&lang=js
69922
70401
  /* harmony default export */ var components_ChatWindowvue_type_script_lang_js = (ChatWindowvue_type_script_lang_js);
69923
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindow.vue?vue&type=style&index=0&id=67cef8d6&prod&scoped=true&lang=css
70402
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/ChatWindow.vue?vue&type=style&index=0&id=65473704&prod&scoped=true&lang=css
69924
70403
  // extracted by mini-css-extract-plugin
69925
70404
 
69926
- ;// ./components/ChatWindow.vue?vue&type=style&index=0&id=67cef8d6&prod&scoped=true&lang=css
70405
+ ;// ./components/ChatWindow.vue?vue&type=style&index=0&id=65473704&prod&scoped=true&lang=css
69927
70406
 
69928
70407
  ;// ./components/ChatWindow.vue
69929
70408
 
@@ -69940,7 +70419,7 @@ var ChatWindow_component = normalizeComponent(
69940
70419
  staticRenderFns,
69941
70420
  false,
69942
70421
  null,
69943
- "67cef8d6",
70422
+ "65473704",
69944
70423
  null
69945
70424
 
69946
70425
  )