ai-error-assistant-pro 0.0.7 → 0.0.9

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.
@@ -6564,7 +6564,7 @@ if (typeof window !== 'undefined') {
6564
6564
  // Indicate to webpack that this file can be concatenated
6565
6565
  /* harmony default export */ var setPublicPath = (null);
6566
6566
 
6567
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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/demo/src/main.vue?vue&type=template&id=3f590f5c&scoped=true
6567
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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/demo/src/main.vue?vue&type=template&id=009db85b&scoped=true
6568
6568
  var render = function render() {
6569
6569
  var _vm = this,
6570
6570
  _c = _vm._self._c;
@@ -6592,6 +6592,7 @@ var render = function render() {
6592
6592
  attrs: {
6593
6593
  "resId": _vm.resId,
6594
6594
  "xtId": _vm.xtId,
6595
+ "show-more-q-a": _vm.showMoreQA,
6595
6596
  "key-word": _vm.aiMessageKeyWord,
6596
6597
  "analy-exercise": _vm.analyExercise
6597
6598
  },
@@ -6640,9 +6641,7 @@ var render = function render() {
6640
6641
  "src": __webpack_require__(951),
6641
6642
  "alt": ""
6642
6643
  }
6643
- })])], 1), _c('p', {
6644
- staticClass: "disclaimer"
6645
- }, [_vm._v(" 此功能公测期间对正式版用户开放 ")])]], 2) : _vm._e();
6644
+ })])], 1)]], 2) : _vm._e();
6646
6645
  };
6647
6646
  var staticRenderFns = [function () {
6648
6647
  var _vm = this,
@@ -6663,10 +6662,10 @@ var staticRenderFns = [function () {
6663
6662
  }, [_vm._v("智能解析")])]);
6664
6663
  }];
6665
6664
 
6666
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=3f590f5c&scoped=true
6665
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=009db85b&scoped=true
6667
6666
 
6668
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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/demo/src/chat.vue?vue&type=template&id=d21026be&scoped=true
6669
- var chatvue_type_template_id_d21026be_scoped_true_render = function render() {
6667
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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/demo/src/chat.vue?vue&type=template&id=87eb3e4e&scoped=true
6668
+ var chatvue_type_template_id_87eb3e4e_scoped_true_render = function render() {
6670
6669
  var _vm = this,
6671
6670
  _c = _vm._self._c;
6672
6671
  return _c('div', {
@@ -6761,7 +6760,7 @@ var chatvue_type_template_id_d21026be_scoped_true_render = function render() {
6761
6760
  }) : _vm._e()], 1)]);
6762
6761
  })], 2);
6763
6762
  };
6764
- var chatvue_type_template_id_d21026be_scoped_true_staticRenderFns = [];
6763
+ var chatvue_type_template_id_87eb3e4e_scoped_true_staticRenderFns = [];
6765
6764
 
6766
6765
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
6767
6766
 
@@ -7002,9 +7001,10 @@ const trim = str => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uF
7002
7001
  * @param {Boolean} [allOwnKeys = false]
7003
7002
  * @returns {any}
7004
7003
  */
7005
- function forEach(obj, fn, {
7006
- allOwnKeys = false
7007
- } = {}) {
7004
+ function forEach(obj, fn) {
7005
+ let {
7006
+ allOwnKeys = false
7007
+ } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
7008
7008
  // Don't bother if no value provided
7009
7009
  if (obj === null || typeof obj === 'undefined') {
7010
7010
  return;
@@ -7105,9 +7105,10 @@ function merge( /* obj1, obj2, obj3, ... */
7105
7105
  * @param {Boolean} [allOwnKeys]
7106
7106
  * @returns {Object} The resulting value of object a
7107
7107
  */
7108
- const extend = (a, b, thisArg, {
7109
- allOwnKeys
7110
- } = {}) => {
7108
+ const extend = function (a, b, thisArg) {
7109
+ let {
7110
+ allOwnKeys
7111
+ } = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
7111
7112
  forEach(b, (val, key) => {
7112
7113
  if (thisArg && isFunction(val)) {
7113
7114
  a[key] = bind(val, thisArg);
@@ -7282,9 +7283,12 @@ const toCamelCase = str => {
7282
7283
  };
7283
7284
 
7284
7285
  /* Creating a function that will check if an object has a property. */
7285
- const utils_hasOwnProperty = (({
7286
- hasOwnProperty
7287
- }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
7286
+ const utils_hasOwnProperty = (_ref => {
7287
+ let {
7288
+ hasOwnProperty
7289
+ } = _ref;
7290
+ return (obj, prop) => hasOwnProperty.call(obj, prop);
7291
+ })(Object.prototype);
7288
7292
 
7289
7293
  /**
7290
7294
  * Determine if a value is a RegExp object
@@ -7352,7 +7356,9 @@ const ALPHABET = {
7352
7356
  ALPHA,
7353
7357
  ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
7354
7358
  };
7355
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
7359
+ const generateString = function () {
7360
+ let size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16;
7361
+ let alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT;
7356
7362
  let str = '';
7357
7363
  const {
7358
7364
  length
@@ -7406,10 +7412,11 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
7406
7412
  return setImmediate;
7407
7413
  }
7408
7414
  return postMessageSupported ? ((token, callbacks) => {
7409
- _global.addEventListener("message", ({
7410
- source,
7411
- data
7412
- }) => {
7415
+ _global.addEventListener("message", _ref2 => {
7416
+ let {
7417
+ source,
7418
+ data
7419
+ } = _ref2;
7413
7420
  if (source === _global && data === token) {
7414
7421
  callbacks.length && callbacks.shift()();
7415
7422
  }
@@ -8449,7 +8456,10 @@ class AxiosHeaders {
8449
8456
  });
8450
8457
  return this;
8451
8458
  }
8452
- concat(...targets) {
8459
+ concat() {
8460
+ for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) {
8461
+ targets[_key] = arguments[_key];
8462
+ }
8453
8463
  return this.constructor.concat(this, ...targets);
8454
8464
  }
8455
8465
  toJSON(asStrings) {
@@ -8463,7 +8473,10 @@ class AxiosHeaders {
8463
8473
  return Object.entries(this.toJSON())[Symbol.iterator]();
8464
8474
  }
8465
8475
  toString() {
8466
- return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
8476
+ return Object.entries(this.toJSON()).map(_ref => {
8477
+ let [header, value] = _ref;
8478
+ return header + ': ' + value;
8479
+ }).join('\n');
8467
8480
  }
8468
8481
  get [Symbol.toStringTag]() {
8469
8482
  return 'AxiosHeaders';
@@ -8471,8 +8484,11 @@ class AxiosHeaders {
8471
8484
  static from(thing) {
8472
8485
  return thing instanceof this ? thing : new this(thing);
8473
8486
  }
8474
- static concat(first, ...targets) {
8487
+ static concat(first) {
8475
8488
  const computed = new this(first);
8489
+ for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
8490
+ targets[_key2 - 1] = arguments[_key2];
8491
+ }
8476
8492
  targets.forEach(target => computed.set(target));
8477
8493
  return computed;
8478
8494
  }
@@ -8496,9 +8512,10 @@ class AxiosHeaders {
8496
8512
  AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
8497
8513
 
8498
8514
  // reserved names hotfix
8499
- utils.reduceDescriptors(AxiosHeaders.prototype, ({
8500
- value
8501
- }, key) => {
8515
+ utils.reduceDescriptors(AxiosHeaders.prototype, (_ref2, key) => {
8516
+ let {
8517
+ value
8518
+ } = _ref2;
8502
8519
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
8503
8520
  return {
8504
8521
  get: () => value,
@@ -8649,7 +8666,8 @@ function throttle(fn, freq) {
8649
8666
  let threshold = 1000 / freq;
8650
8667
  let lastArgs;
8651
8668
  let timer;
8652
- const invoke = (args, now = Date.now()) => {
8669
+ const invoke = function (args) {
8670
+ let now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Date.now();
8653
8671
  timestamp = now;
8654
8672
  lastArgs = null;
8655
8673
  if (timer) {
@@ -8658,9 +8676,12 @@ function throttle(fn, freq) {
8658
8676
  }
8659
8677
  fn.apply(null, args);
8660
8678
  };
8661
- const throttled = (...args) => {
8679
+ const throttled = function () {
8662
8680
  const now = Date.now();
8663
8681
  const passed = now - timestamp;
8682
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8683
+ args[_key] = arguments[_key];
8684
+ }
8664
8685
  if (passed >= threshold) {
8665
8686
  invoke(args, now);
8666
8687
  } else {
@@ -8681,7 +8702,8 @@ function throttle(fn, freq) {
8681
8702
 
8682
8703
 
8683
8704
 
8684
- const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
8705
+ const progressEventReducer = function (listener, isDownloadStream) {
8706
+ let freq = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
8685
8707
  let bytesNotified = 0;
8686
8708
  const _speedometer = helpers_speedometer(50, 250);
8687
8709
  return helpers_throttle(e => {
@@ -8713,7 +8735,12 @@ const progressEventDecorator = (total, throttled) => {
8713
8735
  loaded
8714
8736
  }), throttled[1]];
8715
8737
  };
8716
- const asyncDecorator = fn => (...args) => utils.asap(() => fn(...args));
8738
+ const asyncDecorator = fn => function () {
8739
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8740
+ args[_key] = arguments[_key];
8741
+ }
8742
+ return utils.asap(() => fn(...args));
8743
+ };
8717
8744
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isURLSameOrigin.js
8718
8745
 
8719
8746
 
@@ -9306,8 +9333,11 @@ const isReadableStreamSupported = isFetchSupported && typeof ReadableStream ===
9306
9333
 
9307
9334
  // used only inside the fetch adapter
9308
9335
  const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? (encoder => str => encoder.encode(str))(new TextEncoder()) : async str => new Uint8Array(await new Response(str).arrayBuffer()));
9309
- const test = (fn, ...args) => {
9336
+ const test = function (fn) {
9310
9337
  try {
9338
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
9339
+ args[_key - 1] = arguments[_key];
9340
+ }
9311
9341
  return !!fn(...args);
9312
9342
  } catch (e) {
9313
9343
  return false;
@@ -9504,7 +9534,10 @@ const isResolvedHandle = adapter => utils.isFunction(adapter) || adapter === nul
9504
9534
  rejectedReasons[id || '#' + i] = adapter;
9505
9535
  }
9506
9536
  if (!adapter) {
9507
- const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? 'is not supported by the environment' : 'is not available in the build'));
9537
+ const reasons = Object.entries(rejectedReasons).map(_ref => {
9538
+ let [id, state] = _ref;
9539
+ return `adapter ${id} ` + (state === false ? 'is not supported by the environment' : 'is not available in the build');
9540
+ });
9508
9541
  let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
9509
9542
  throw new core_AxiosError(`There is no suitable adapter to dispatch the request ` + s, 'ERR_NOT_SUPPORT');
9510
9543
  }
@@ -10073,7 +10106,8 @@ const HttpStatusCode = {
10073
10106
  NotExtended: 510,
10074
10107
  NetworkAuthenticationRequired: 511
10075
10108
  };
10076
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
10109
+ Object.entries(HttpStatusCode).forEach(_ref => {
10110
+ let [key, value] = _ref;
10077
10111
  HttpStatusCode[value] = key;
10078
10112
  });
10079
10113
  /* harmony default export */ var helpers_HttpStatusCode = (HttpStatusCode);
@@ -10268,49 +10302,58 @@ const _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
10268
10302
  const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
10269
10303
  const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
10270
10304
  const b64chs = Array.prototype.slice.call(b64ch);
10271
- const b64tab = (a => {
10272
- let tab = {};
10273
- a.forEach((c, i) => tab[c] = i);
10274
- return tab;
10305
+ const b64tab = ((a) => {
10306
+ let tab = {};
10307
+ a.forEach((c, i) => tab[c] = i);
10308
+ return tab;
10275
10309
  })(b64chs);
10276
10310
  const b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
10277
10311
  const _fromCC = String.fromCharCode.bind(String);
10278
- const _U8Afrom = typeof Uint8Array.from === 'function' ? Uint8Array.from.bind(Uint8Array) : it => new Uint8Array(Array.prototype.slice.call(it, 0));
10279
- const _mkUriSafe = src => src.replace(/=/g, '').replace(/[+\/]/g, m0 => m0 == '+' ? '-' : '_');
10280
- const _tidyB64 = s => s.replace(/[^A-Za-z0-9\+\/]/g, '');
10312
+ const _U8Afrom = typeof Uint8Array.from === 'function'
10313
+ ? Uint8Array.from.bind(Uint8Array)
10314
+ : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
10315
+ const _mkUriSafe = (src) => src
10316
+ .replace(/=/g, '').replace(/[+\/]/g, (m0) => m0 == '+' ? '-' : '_');
10317
+ const _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, '');
10281
10318
  /**
10282
10319
  * polyfill version of `btoa`
10283
10320
  */
10284
- const btoaPolyfill = bin => {
10285
- // console.log('polyfilled');
10286
- let u32,
10287
- c0,
10288
- c1,
10289
- c2,
10290
- asc = '';
10291
- const pad = bin.length % 3;
10292
- for (let i = 0; i < bin.length;) {
10293
- if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255) throw new TypeError('invalid character found');
10294
- u32 = c0 << 16 | c1 << 8 | c2;
10295
- asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
10296
- }
10297
- return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
10321
+ const btoaPolyfill = (bin) => {
10322
+ // console.log('polyfilled');
10323
+ let u32, c0, c1, c2, asc = '';
10324
+ const pad = bin.length % 3;
10325
+ for (let i = 0; i < bin.length;) {
10326
+ if ((c0 = bin.charCodeAt(i++)) > 255 ||
10327
+ (c1 = bin.charCodeAt(i++)) > 255 ||
10328
+ (c2 = bin.charCodeAt(i++)) > 255)
10329
+ throw new TypeError('invalid character found');
10330
+ u32 = (c0 << 16) | (c1 << 8) | c2;
10331
+ asc += b64chs[u32 >> 18 & 63]
10332
+ + b64chs[u32 >> 12 & 63]
10333
+ + b64chs[u32 >> 6 & 63]
10334
+ + b64chs[u32 & 63];
10335
+ }
10336
+ return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
10298
10337
  };
10299
10338
  /**
10300
10339
  * does what `window.btoa` of web browsers do.
10301
10340
  * @param {String} bin binary string
10302
10341
  * @returns {string} Base64-encoded string
10303
10342
  */
10304
- const _btoa = typeof btoa === 'function' ? bin => btoa(bin) : _hasBuffer ? bin => Buffer.from(bin, 'binary').toString('base64') : btoaPolyfill;
10305
- const _fromUint8Array = _hasBuffer ? u8a => Buffer.from(u8a).toString('base64') : u8a => {
10306
- // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
10307
- const maxargs = 0x1000;
10308
- let strs = [];
10309
- for (let i = 0, l = u8a.length; i < l; i += maxargs) {
10310
- strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
10311
- }
10312
- return _btoa(strs.join(''));
10313
- };
10343
+ const _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)
10344
+ : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')
10345
+ : btoaPolyfill;
10346
+ const _fromUint8Array = _hasBuffer
10347
+ ? (u8a) => Buffer.from(u8a).toString('base64')
10348
+ : (u8a) => {
10349
+ // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
10350
+ const maxargs = 0x1000;
10351
+ let strs = [];
10352
+ for (let i = 0, l = u8a.length; i < l; i += maxargs) {
10353
+ strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
10354
+ }
10355
+ return _btoa(strs.join(''));
10356
+ };
10314
10357
  /**
10315
10358
  * converts a Uint8Array to a Base64 string.
10316
10359
  * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
@@ -10320,14 +10363,25 @@ const fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8
10320
10363
  // This trick is found broken https://github.com/dankogai/js-base64/issues/130
10321
10364
  // const utob = (src: string) => unescape(encodeURIComponent(src));
10322
10365
  // reverting good old fationed regexp
10323
- const cb_utob = c => {
10324
- if (c.length < 2) {
10325
- var cc = c.charCodeAt(0);
10326
- return cc < 0x80 ? c : cc < 0x800 ? _fromCC(0xc0 | cc >>> 6) + _fromCC(0x80 | cc & 0x3f) : _fromCC(0xe0 | cc >>> 12 & 0x0f) + _fromCC(0x80 | cc >>> 6 & 0x3f) + _fromCC(0x80 | cc & 0x3f);
10327
- } else {
10328
- var cc = 0x10000 + (c.charCodeAt(0) - 0xD800) * 0x400 + (c.charCodeAt(1) - 0xDC00);
10329
- return _fromCC(0xf0 | cc >>> 18 & 0x07) + _fromCC(0x80 | cc >>> 12 & 0x3f) + _fromCC(0x80 | cc >>> 6 & 0x3f) + _fromCC(0x80 | cc & 0x3f);
10330
- }
10366
+ const cb_utob = (c) => {
10367
+ if (c.length < 2) {
10368
+ var cc = c.charCodeAt(0);
10369
+ return cc < 0x80 ? c
10370
+ : cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))
10371
+ + _fromCC(0x80 | (cc & 0x3f)))
10372
+ : (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))
10373
+ + _fromCC(0x80 | ((cc >>> 6) & 0x3f))
10374
+ + _fromCC(0x80 | (cc & 0x3f)));
10375
+ }
10376
+ else {
10377
+ var cc = 0x10000
10378
+ + (c.charCodeAt(0) - 0xD800) * 0x400
10379
+ + (c.charCodeAt(1) - 0xDC00);
10380
+ return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))
10381
+ + _fromCC(0x80 | ((cc >>> 12) & 0x3f))
10382
+ + _fromCC(0x80 | ((cc >>> 6) & 0x3f))
10383
+ + _fromCC(0x80 | (cc & 0x3f)));
10384
+ }
10331
10385
  };
10332
10386
  const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
10333
10387
  /**
@@ -10335,163 +10389,168 @@ const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
10335
10389
  * @param {string} src UTF-8 string
10336
10390
  * @returns {string} UTF-16 string
10337
10391
  */
10338
- const utob = u => u.replace(re_utob, cb_utob);
10392
+ const utob = (u) => u.replace(re_utob, cb_utob);
10339
10393
  //
10340
- const _encode = _hasBuffer ? s => Buffer.from(s, 'utf8').toString('base64') : _TE ? s => _fromUint8Array(_TE.encode(s)) : s => _btoa(utob(s));
10394
+ const _encode = _hasBuffer
10395
+ ? (s) => Buffer.from(s, 'utf8').toString('base64')
10396
+ : _TE
10397
+ ? (s) => _fromUint8Array(_TE.encode(s))
10398
+ : (s) => _btoa(utob(s));
10341
10399
  /**
10342
10400
  * converts a UTF-8-encoded string to a Base64 string.
10343
10401
  * @param {boolean} [urlsafe] if `true` make the result URL-safe
10344
10402
  * @returns {string} Base64 string
10345
10403
  */
10346
- const base64_encode = (src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
10404
+ const base64_encode = (src, urlsafe = false) => urlsafe
10405
+ ? _mkUriSafe(_encode(src))
10406
+ : _encode(src);
10347
10407
  /**
10348
10408
  * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
10349
10409
  * @returns {string} Base64 string
10350
10410
  */
10351
- const base64_encodeURI = src => base64_encode(src, true);
10411
+ const base64_encodeURI = (src) => base64_encode(src, true);
10352
10412
  // This trick is found broken https://github.com/dankogai/js-base64/issues/130
10353
10413
  // const btou = (src: string) => decodeURIComponent(escape(src));
10354
10414
  // reverting good old fationed regexp
10355
10415
  const re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
10356
- const cb_btou = cccc => {
10357
- switch (cccc.length) {
10358
- case 4:
10359
- var cp = (0x07 & cccc.charCodeAt(0)) << 18 | (0x3f & cccc.charCodeAt(1)) << 12 | (0x3f & cccc.charCodeAt(2)) << 6 | 0x3f & cccc.charCodeAt(3),
10360
- offset = cp - 0x10000;
10361
- return _fromCC((offset >>> 10) + 0xD800) + _fromCC((offset & 0x3FF) + 0xDC00);
10362
- case 3:
10363
- return _fromCC((0x0f & cccc.charCodeAt(0)) << 12 | (0x3f & cccc.charCodeAt(1)) << 6 | 0x3f & cccc.charCodeAt(2));
10364
- default:
10365
- return _fromCC((0x1f & cccc.charCodeAt(0)) << 6 | 0x3f & cccc.charCodeAt(1));
10366
- }
10416
+ const cb_btou = (cccc) => {
10417
+ switch (cccc.length) {
10418
+ case 4:
10419
+ var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
10420
+ | ((0x3f & cccc.charCodeAt(1)) << 12)
10421
+ | ((0x3f & cccc.charCodeAt(2)) << 6)
10422
+ | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;
10423
+ return (_fromCC((offset >>> 10) + 0xD800)
10424
+ + _fromCC((offset & 0x3FF) + 0xDC00));
10425
+ case 3:
10426
+ return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)
10427
+ | ((0x3f & cccc.charCodeAt(1)) << 6)
10428
+ | (0x3f & cccc.charCodeAt(2)));
10429
+ default:
10430
+ return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)
10431
+ | (0x3f & cccc.charCodeAt(1)));
10432
+ }
10367
10433
  };
10368
10434
  /**
10369
10435
  * @deprecated should have been internal use only.
10370
10436
  * @param {string} src UTF-16 string
10371
10437
  * @returns {string} UTF-8 string
10372
10438
  */
10373
- const btou = b => b.replace(re_btou, cb_btou);
10439
+ const btou = (b) => b.replace(re_btou, cb_btou);
10374
10440
  /**
10375
10441
  * polyfill version of `atob`
10376
10442
  */
10377
- const atobPolyfill = asc => {
10378
- // console.log('polyfilled');
10379
- asc = asc.replace(/\s+/g, '');
10380
- if (!b64re.test(asc)) throw new TypeError('malformed base64.');
10381
- asc += '=='.slice(2 - (asc.length & 3));
10382
- let u24,
10383
- bin = '',
10384
- r1,
10385
- r2;
10386
- for (let i = 0; i < asc.length;) {
10387
- u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
10388
- bin += r1 === 64 ? _fromCC(u24 >> 16 & 255) : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255) : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);
10389
- }
10390
- return bin;
10443
+ const atobPolyfill = (asc) => {
10444
+ // console.log('polyfilled');
10445
+ asc = asc.replace(/\s+/g, '');
10446
+ if (!b64re.test(asc))
10447
+ throw new TypeError('malformed base64.');
10448
+ asc += '=='.slice(2 - (asc.length & 3));
10449
+ let u24, bin = '', r1, r2;
10450
+ for (let i = 0; i < asc.length;) {
10451
+ u24 = b64tab[asc.charAt(i++)] << 18
10452
+ | b64tab[asc.charAt(i++)] << 12
10453
+ | (r1 = b64tab[asc.charAt(i++)]) << 6
10454
+ | (r2 = b64tab[asc.charAt(i++)]);
10455
+ bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)
10456
+ : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)
10457
+ : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);
10458
+ }
10459
+ return bin;
10391
10460
  };
10392
10461
  /**
10393
10462
  * does what `window.atob` of web browsers do.
10394
10463
  * @param {String} asc Base64-encoded string
10395
10464
  * @returns {string} binary string
10396
10465
  */
10397
- const _atob = typeof atob === 'function' ? asc => atob(_tidyB64(asc)) : _hasBuffer ? asc => Buffer.from(asc, 'base64').toString('binary') : atobPolyfill;
10466
+ const _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))
10467
+ : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')
10468
+ : atobPolyfill;
10398
10469
  //
10399
- const _toUint8Array = _hasBuffer ? a => _U8Afrom(Buffer.from(a, 'base64')) : a => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
10470
+ const _toUint8Array = _hasBuffer
10471
+ ? (a) => _U8Afrom(Buffer.from(a, 'base64'))
10472
+ : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
10400
10473
  /**
10401
10474
  * converts a Base64 string to a Uint8Array.
10402
10475
  */
10403
- const toUint8Array = a => _toUint8Array(_unURI(a));
10476
+ const toUint8Array = (a) => _toUint8Array(_unURI(a));
10404
10477
  //
10405
- const _decode = _hasBuffer ? a => Buffer.from(a, 'base64').toString('utf8') : _TD ? a => _TD.decode(_toUint8Array(a)) : a => btou(_atob(a));
10406
- const _unURI = a => _tidyB64(a.replace(/[-_]/g, m0 => m0 == '-' ? '+' : '/'));
10478
+ const _decode = _hasBuffer
10479
+ ? (a) => Buffer.from(a, 'base64').toString('utf8')
10480
+ : _TD
10481
+ ? (a) => _TD.decode(_toUint8Array(a))
10482
+ : (a) => btou(_atob(a));
10483
+ const _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));
10407
10484
  /**
10408
10485
  * converts a Base64 string to a UTF-8 string.
10409
10486
  * @param {String} src Base64 string. Both normal and URL-safe are supported
10410
10487
  * @returns {string} UTF-8 string
10411
10488
  */
10412
- const decode = src => _decode(_unURI(src));
10489
+ const decode = (src) => _decode(_unURI(src));
10413
10490
  /**
10414
10491
  * check if a value is a valid Base64 string
10415
10492
  * @param {String} src a value to check
10416
10493
  */
10417
- const isValid = src => {
10418
- if (typeof src !== 'string') return false;
10419
- const s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
10420
- return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
10494
+ const isValid = (src) => {
10495
+ if (typeof src !== 'string')
10496
+ return false;
10497
+ const s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
10498
+ return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
10421
10499
  };
10422
10500
  //
10423
- const _noEnum = v => {
10424
- return {
10425
- value: v,
10426
- enumerable: false,
10427
- writable: true,
10428
- configurable: true
10429
- };
10501
+ const _noEnum = (v) => {
10502
+ return {
10503
+ value: v, enumerable: false, writable: true, configurable: true
10504
+ };
10430
10505
  };
10431
10506
  /**
10432
10507
  * extend String.prototype with relevant methods
10433
10508
  */
10434
10509
  const extendString = function () {
10435
- const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
10436
- _add('fromBase64', function () {
10437
- return decode(this);
10438
- });
10439
- _add('toBase64', function (urlsafe) {
10440
- return base64_encode(this, urlsafe);
10441
- });
10442
- _add('toBase64URI', function () {
10443
- return base64_encode(this, true);
10444
- });
10445
- _add('toBase64URL', function () {
10446
- return base64_encode(this, true);
10447
- });
10448
- _add('toUint8Array', function () {
10449
- return toUint8Array(this);
10450
- });
10510
+ const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
10511
+ _add('fromBase64', function () { return decode(this); });
10512
+ _add('toBase64', function (urlsafe) { return base64_encode(this, urlsafe); });
10513
+ _add('toBase64URI', function () { return base64_encode(this, true); });
10514
+ _add('toBase64URL', function () { return base64_encode(this, true); });
10515
+ _add('toUint8Array', function () { return toUint8Array(this); });
10451
10516
  };
10452
10517
  /**
10453
10518
  * extend Uint8Array.prototype with relevant methods
10454
10519
  */
10455
10520
  const extendUint8Array = function () {
10456
- const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
10457
- _add('toBase64', function (urlsafe) {
10458
- return fromUint8Array(this, urlsafe);
10459
- });
10460
- _add('toBase64URI', function () {
10461
- return fromUint8Array(this, true);
10462
- });
10463
- _add('toBase64URL', function () {
10464
- return fromUint8Array(this, true);
10465
- });
10521
+ const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
10522
+ _add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });
10523
+ _add('toBase64URI', function () { return fromUint8Array(this, true); });
10524
+ _add('toBase64URL', function () { return fromUint8Array(this, true); });
10466
10525
  };
10467
10526
  /**
10468
10527
  * extend Builtin prototypes with relevant methods
10469
10528
  */
10470
10529
  const extendBuiltins = () => {
10471
- extendString();
10472
- extendUint8Array();
10530
+ extendString();
10531
+ extendUint8Array();
10473
10532
  };
10474
10533
  const gBase64 = {
10475
- version: version,
10476
- VERSION: base64_VERSION,
10477
- atob: _atob,
10478
- atobPolyfill: atobPolyfill,
10479
- btoa: _btoa,
10480
- btoaPolyfill: btoaPolyfill,
10481
- fromBase64: decode,
10482
- toBase64: base64_encode,
10483
- encode: base64_encode,
10484
- encodeURI: base64_encodeURI,
10485
- encodeURL: base64_encodeURI,
10486
- utob: utob,
10487
- btou: btou,
10488
- decode: decode,
10489
- isValid: isValid,
10490
- fromUint8Array: fromUint8Array,
10491
- toUint8Array: toUint8Array,
10492
- extendString: extendString,
10493
- extendUint8Array: extendUint8Array,
10494
- extendBuiltins: extendBuiltins
10534
+ version: version,
10535
+ VERSION: base64_VERSION,
10536
+ atob: _atob,
10537
+ atobPolyfill: atobPolyfill,
10538
+ btoa: _btoa,
10539
+ btoaPolyfill: btoaPolyfill,
10540
+ fromBase64: decode,
10541
+ toBase64: base64_encode,
10542
+ encode: base64_encode,
10543
+ encodeURI: base64_encodeURI,
10544
+ encodeURL: base64_encodeURI,
10545
+ utob: utob,
10546
+ btou: btou,
10547
+ decode: decode,
10548
+ isValid: isValid,
10549
+ fromUint8Array: fromUint8Array,
10550
+ toUint8Array: toUint8Array,
10551
+ extendString: extendString,
10552
+ extendUint8Array: extendUint8Array,
10553
+ extendBuiltins: extendBuiltins
10495
10554
  };
10496
10555
  // makecjs:CUT //
10497
10556
 
@@ -10516,6 +10575,7 @@ const gBase64 = {
10516
10575
 
10517
10576
  // and finally,
10518
10577
 
10578
+
10519
10579
  ;// CONCATENATED MODULE: ./components/demo/utils/aes-utils.js
10520
10580
 
10521
10581
 
@@ -10919,6 +10979,16 @@ async function getAutoQuestioning(iaId, message) {
10919
10979
  messages: message
10920
10980
  });
10921
10981
  }
10982
+
10983
+ /**
10984
+ * 开场白及提示词查询
10985
+ * */
10986
+ const queryCallWord = resId => {
10987
+ return utils_request({
10988
+ url: prefix + `/ia/byCourseId?courseId=${resId}`,
10989
+ method: 'get'
10990
+ });
10991
+ };
10922
10992
  async function sendMessageEventSource(params, signal, onmessage) {
10923
10993
  return fetchEventSource(`${baseURL}${prefix}/assistant/conversation?token=${cache.session.getJSON('SRKJ_TOKEN_CACHE')}`, {
10924
10994
  method: 'POST',
@@ -11715,6 +11785,9 @@ var error_chat_component = normalizeComponent(
11715
11785
 
11716
11786
  /* harmony default export */ var error_chat = (error_chat_component.exports);
11717
11787
  ;// CONCATENATED MODULE: ./node_modules/marked/lib/marked.esm.js
11788
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11789
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
11790
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11718
11791
  /**
11719
11792
  * marked v14.1.2 - a markdown parser
11720
11793
  * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
@@ -11935,10 +12008,12 @@ function indentCodeCompensation(raw, text) {
11935
12008
  * Tokenizer
11936
12009
  */
11937
12010
  class _Tokenizer {
11938
- options;
11939
- rules; // set by the lexer
11940
- lexer; // set by the lexer
12011
+ // set by the lexer
11941
12012
  constructor(options) {
12013
+ _defineProperty(this, "options", void 0);
12014
+ _defineProperty(this, "rules", void 0);
12015
+ // set by the lexer
12016
+ _defineProperty(this, "lexer", void 0);
11942
12017
  this.options = options || _defaults;
11943
12018
  }
11944
12019
  space(src) {
@@ -12047,10 +12122,10 @@ class _Tokenizer {
12047
12122
  break;
12048
12123
  }
12049
12124
  const lastToken = tokens[tokens.length - 1];
12050
- if (lastToken?.type === 'code') {
12125
+ if ((lastToken === null || lastToken === void 0 ? void 0 : lastToken.type) === 'code') {
12051
12126
  // blockquote continuation cannot be preceded by a code block
12052
12127
  break;
12053
- } else if (lastToken?.type === 'blockquote') {
12128
+ } else if ((lastToken === null || lastToken === void 0 ? void 0 : lastToken.type) === 'blockquote') {
12054
12129
  // include continuation in nested blockquote
12055
12130
  const oldToken = lastToken;
12056
12131
  const newText = oldToken.raw + '\n' + lines.join('\n');
@@ -12059,7 +12134,7 @@ class _Tokenizer {
12059
12134
  raw = raw.substring(0, raw.length - oldToken.raw.length) + newToken.raw;
12060
12135
  text = text.substring(0, text.length - oldToken.text.length) + newToken.text;
12061
12136
  break;
12062
- } else if (lastToken?.type === 'list') {
12137
+ } else if ((lastToken === null || lastToken === void 0 ? void 0 : lastToken.type) === 'list') {
12063
12138
  // include continuation in nested list
12064
12139
  const oldToken = lastToken;
12065
12140
  const newText = oldToken.raw + '\n' + lines.join('\n');
@@ -12476,7 +12551,8 @@ class _Tokenizer {
12476
12551
  return outputLink(cap, link, cap[0], this.lexer);
12477
12552
  }
12478
12553
  }
12479
- emStrong(src, maskedSrc, prevChar = '') {
12554
+ emStrong(src, maskedSrc) {
12555
+ let prevChar = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
12480
12556
  let match = this.rules.inline.emStrongLDelim.exec(src);
12481
12557
  if (!match) return;
12482
12558
  // _ can't be between two alphanumerics. \p{L}\p{N} includes non-english alphabet/numbers as well
@@ -12608,8 +12684,9 @@ class _Tokenizer {
12608
12684
  // do extended autolink path validation
12609
12685
  let prevCapZero;
12610
12686
  do {
12687
+ var _this$rules$inline$_b, _this$rules$inline$_b2;
12611
12688
  prevCapZero = cap[0];
12612
- cap[0] = this.rules.inline._backpedal.exec(cap[0])?.[0] ?? '';
12689
+ cap[0] = (_this$rules$inline$_b = (_this$rules$inline$_b2 = this.rules.inline._backpedal.exec(cap[0])) === null || _this$rules$inline$_b2 === void 0 ? void 0 : _this$rules$inline$_b2[0]) !== null && _this$rules$inline$_b !== void 0 ? _this$rules$inline$_b : '';
12613
12690
  } while (prevCapZero !== cap[0]);
12614
12691
  text = escape$1(cap[0]);
12615
12692
  if (cap[1] === 'www.') {
@@ -12853,12 +12930,12 @@ const inline = {
12853
12930
  * Block Lexer
12854
12931
  */
12855
12932
  class _Lexer {
12856
- tokens;
12857
- options;
12858
- state;
12859
- tokenizer;
12860
- inlineQueue;
12861
12933
  constructor(options) {
12934
+ _defineProperty(this, "tokens", void 0);
12935
+ _defineProperty(this, "options", void 0);
12936
+ _defineProperty(this, "state", void 0);
12937
+ _defineProperty(this, "tokenizer", void 0);
12938
+ _defineProperty(this, "inlineQueue", void 0);
12862
12939
  // TokenList cannot be created in one go
12863
12940
  this.tokens = [];
12864
12941
  this.tokens.links = Object.create(null);
@@ -12926,7 +13003,9 @@ class _Lexer {
12926
13003
  this.inlineQueue = [];
12927
13004
  return this.tokens;
12928
13005
  }
12929
- blockTokens(src, tokens = [], lastParagraphClipped = false) {
13006
+ blockTokens(src) {
13007
+ let tokens = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
13008
+ let lastParagraphClipped = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
12930
13009
  if (this.options.pedantic) {
12931
13010
  src = src.replace(/\t/g, ' ').replace(/^ +$/gm, '');
12932
13011
  }
@@ -13056,8 +13135,9 @@ class _Lexer {
13056
13135
  }
13057
13136
  }
13058
13137
  if (this.state.top && (token = this.tokenizer.paragraph(cutSrc))) {
13138
+ var _lastToken;
13059
13139
  lastToken = tokens[tokens.length - 1];
13060
- if (lastParagraphClipped && lastToken?.type === 'paragraph') {
13140
+ if (lastParagraphClipped && ((_lastToken = lastToken) === null || _lastToken === void 0 ? void 0 : _lastToken.type) === 'paragraph') {
13061
13141
  lastToken.raw += '\n' + token.raw;
13062
13142
  lastToken.text += '\n' + token.text;
13063
13143
  this.inlineQueue.pop();
@@ -13096,7 +13176,8 @@ class _Lexer {
13096
13176
  this.state.top = true;
13097
13177
  return tokens;
13098
13178
  }
13099
- inline(src, tokens = []) {
13179
+ inline(src) {
13180
+ let tokens = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
13100
13181
  this.inlineQueue.push({
13101
13182
  src,
13102
13183
  tokens
@@ -13106,7 +13187,8 @@ class _Lexer {
13106
13187
  /**
13107
13188
  * Lexing/Compiling
13108
13189
  */
13109
- inlineTokens(src, tokens = []) {
13190
+ inlineTokens(src) {
13191
+ let tokens = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
13110
13192
  let token, lastToken, cutSrc;
13111
13193
  // String with links masked to avoid interference with em and strong
13112
13194
  let maskedSrc = src;
@@ -13274,41 +13356,47 @@ class _Lexer {
13274
13356
  * Renderer
13275
13357
  */
13276
13358
  class _Renderer {
13277
- options;
13278
- parser; // set by the parser
13359
+ // set by the parser
13279
13360
  constructor(options) {
13361
+ _defineProperty(this, "options", void 0);
13362
+ _defineProperty(this, "parser", void 0);
13280
13363
  this.options = options || _defaults;
13281
13364
  }
13282
13365
  space(token) {
13283
13366
  return '';
13284
13367
  }
13285
- code({
13286
- text,
13287
- lang,
13288
- escaped
13289
- }) {
13290
- const langString = (lang || '').match(/^\S*/)?.[0];
13368
+ code(_ref) {
13369
+ var _match;
13370
+ let {
13371
+ text,
13372
+ lang,
13373
+ escaped
13374
+ } = _ref;
13375
+ const langString = (_match = (lang || '').match(/^\S*/)) === null || _match === void 0 ? void 0 : _match[0];
13291
13376
  const code = text.replace(/\n$/, '') + '\n';
13292
13377
  if (!langString) {
13293
13378
  return '<pre><code>' + (escaped ? code : escape$1(code, true)) + '</code></pre>\n';
13294
13379
  }
13295
13380
  return '<pre><code class="language-' + escape$1(langString) + '">' + (escaped ? code : escape$1(code, true)) + '</code></pre>\n';
13296
13381
  }
13297
- blockquote({
13298
- tokens
13299
- }) {
13382
+ blockquote(_ref2) {
13383
+ let {
13384
+ tokens
13385
+ } = _ref2;
13300
13386
  const body = this.parser.parse(tokens);
13301
13387
  return `<blockquote>\n${body}</blockquote>\n`;
13302
13388
  }
13303
- html({
13304
- text
13305
- }) {
13389
+ html(_ref3) {
13390
+ let {
13391
+ text
13392
+ } = _ref3;
13306
13393
  return text;
13307
13394
  }
13308
- heading({
13309
- tokens,
13310
- depth
13311
- }) {
13395
+ heading(_ref4) {
13396
+ let {
13397
+ tokens,
13398
+ depth
13399
+ } = _ref4;
13312
13400
  return `<h${depth}>${this.parser.parseInline(tokens)}</h${depth}>\n`;
13313
13401
  }
13314
13402
  hr(token) {
@@ -13352,14 +13440,16 @@ class _Renderer {
13352
13440
  itemBody += this.parser.parse(item.tokens, !!item.loose);
13353
13441
  return `<li>${itemBody}</li>\n`;
13354
13442
  }
13355
- checkbox({
13356
- checked
13357
- }) {
13443
+ checkbox(_ref5) {
13444
+ let {
13445
+ checked
13446
+ } = _ref5;
13358
13447
  return '<input ' + (checked ? 'checked="" ' : '') + 'disabled="" type="checkbox">';
13359
13448
  }
13360
- paragraph({
13361
- tokens
13362
- }) {
13449
+ paragraph(_ref6) {
13450
+ let {
13451
+ tokens
13452
+ } = _ref6;
13363
13453
  return `<p>${this.parser.parseInline(tokens)}</p>\n`;
13364
13454
  }
13365
13455
  table(token) {
@@ -13386,9 +13476,10 @@ class _Renderer {
13386
13476
  if (body) body = `<tbody>${body}</tbody>`;
13387
13477
  return '<table>\n' + '<thead>\n' + header + '</thead>\n' + body + '</table>\n';
13388
13478
  }
13389
- tablerow({
13390
- text
13391
- }) {
13479
+ tablerow(_ref7) {
13480
+ let {
13481
+ text
13482
+ } = _ref7;
13392
13483
  return `<tr>\n${text}</tr>\n`;
13393
13484
  }
13394
13485
  tablecell(token) {
@@ -13400,34 +13491,39 @@ class _Renderer {
13400
13491
  /**
13401
13492
  * span level renderer
13402
13493
  */
13403
- strong({
13404
- tokens
13405
- }) {
13494
+ strong(_ref8) {
13495
+ let {
13496
+ tokens
13497
+ } = _ref8;
13406
13498
  return `<strong>${this.parser.parseInline(tokens)}</strong>`;
13407
13499
  }
13408
- em({
13409
- tokens
13410
- }) {
13500
+ em(_ref9) {
13501
+ let {
13502
+ tokens
13503
+ } = _ref9;
13411
13504
  return `<em>${this.parser.parseInline(tokens)}</em>`;
13412
13505
  }
13413
- codespan({
13414
- text
13415
- }) {
13506
+ codespan(_ref10) {
13507
+ let {
13508
+ text
13509
+ } = _ref10;
13416
13510
  return `<code>${text}</code>`;
13417
13511
  }
13418
13512
  br(token) {
13419
13513
  return '<br>';
13420
13514
  }
13421
- del({
13422
- tokens
13423
- }) {
13515
+ del(_ref11) {
13516
+ let {
13517
+ tokens
13518
+ } = _ref11;
13424
13519
  return `<del>${this.parser.parseInline(tokens)}</del>`;
13425
13520
  }
13426
- link({
13427
- href,
13428
- title,
13429
- tokens
13430
- }) {
13521
+ link(_ref12) {
13522
+ let {
13523
+ href,
13524
+ title,
13525
+ tokens
13526
+ } = _ref12;
13431
13527
  const text = this.parser.parseInline(tokens);
13432
13528
  const cleanHref = cleanUrl(href);
13433
13529
  if (cleanHref === null) {
@@ -13441,11 +13537,12 @@ class _Renderer {
13441
13537
  out += '>' + text + '</a>';
13442
13538
  return out;
13443
13539
  }
13444
- image({
13445
- href,
13446
- title,
13447
- text
13448
- }) {
13540
+ image(_ref13) {
13541
+ let {
13542
+ href,
13543
+ title,
13544
+ text
13545
+ } = _ref13;
13449
13546
  const cleanHref = cleanUrl(href);
13450
13547
  if (cleanHref === null) {
13451
13548
  return text;
@@ -13469,44 +13566,52 @@ class _Renderer {
13469
13566
  */
13470
13567
  class _TextRenderer {
13471
13568
  // no need for block level renderers
13472
- strong({
13473
- text
13474
- }) {
13569
+ strong(_ref14) {
13570
+ let {
13571
+ text
13572
+ } = _ref14;
13475
13573
  return text;
13476
13574
  }
13477
- em({
13478
- text
13479
- }) {
13575
+ em(_ref15) {
13576
+ let {
13577
+ text
13578
+ } = _ref15;
13480
13579
  return text;
13481
13580
  }
13482
- codespan({
13483
- text
13484
- }) {
13581
+ codespan(_ref16) {
13582
+ let {
13583
+ text
13584
+ } = _ref16;
13485
13585
  return text;
13486
13586
  }
13487
- del({
13488
- text
13489
- }) {
13587
+ del(_ref17) {
13588
+ let {
13589
+ text
13590
+ } = _ref17;
13490
13591
  return text;
13491
13592
  }
13492
- html({
13493
- text
13494
- }) {
13593
+ html(_ref18) {
13594
+ let {
13595
+ text
13596
+ } = _ref18;
13495
13597
  return text;
13496
13598
  }
13497
- text({
13498
- text
13499
- }) {
13599
+ text(_ref19) {
13600
+ let {
13601
+ text
13602
+ } = _ref19;
13500
13603
  return text;
13501
13604
  }
13502
- link({
13503
- text
13504
- }) {
13605
+ link(_ref20) {
13606
+ let {
13607
+ text
13608
+ } = _ref20;
13505
13609
  return '' + text;
13506
13610
  }
13507
- image({
13508
- text
13509
- }) {
13611
+ image(_ref21) {
13612
+ let {
13613
+ text
13614
+ } = _ref21;
13510
13615
  return '' + text;
13511
13616
  }
13512
13617
  br() {
@@ -13518,10 +13623,10 @@ class _TextRenderer {
13518
13623
  * Parsing & Compiling
13519
13624
  */
13520
13625
  class _Parser {
13521
- options;
13522
- renderer;
13523
- textRenderer;
13524
13626
  constructor(options) {
13627
+ _defineProperty(this, "options", void 0);
13628
+ _defineProperty(this, "renderer", void 0);
13629
+ _defineProperty(this, "textRenderer", void 0);
13525
13630
  this.options = options || _defaults;
13526
13631
  this.options.renderer = this.options.renderer || new _Renderer();
13527
13632
  this.renderer = this.options.renderer;
@@ -13546,7 +13651,8 @@ class _Parser {
13546
13651
  /**
13547
13652
  * Parse Loop
13548
13653
  */
13549
- parse(tokens, top = true) {
13654
+ parse(tokens) {
13655
+ let top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
13550
13656
  let out = '';
13551
13657
  for (let i = 0; i < tokens.length; i++) {
13552
13658
  const anyToken = tokens[i];
@@ -13732,12 +13838,11 @@ class _Parser {
13732
13838
  }
13733
13839
  }
13734
13840
  class _Hooks {
13735
- options;
13736
- block;
13737
13841
  constructor(options) {
13842
+ _defineProperty(this, "options", void 0);
13843
+ _defineProperty(this, "block", void 0);
13738
13844
  this.options = options || _defaults;
13739
13845
  }
13740
- static passThroughHooks = new Set(['preprocess', 'postprocess', 'processAllTokens']);
13741
13846
  /**
13742
13847
  * Process markdown before marked
13743
13848
  */
@@ -13769,19 +13874,20 @@ class _Hooks {
13769
13874
  return this.block ? _Parser.parse : _Parser.parseInline;
13770
13875
  }
13771
13876
  }
13877
+ _defineProperty(_Hooks, "passThroughHooks", new Set(['preprocess', 'postprocess', 'processAllTokens']));
13772
13878
  class Marked {
13773
- defaults = _getDefaults();
13774
- options = this.setOptions;
13775
- parse = this.parseMarkdown(true);
13776
- parseInline = this.parseMarkdown(false);
13777
- Parser = _Parser;
13778
- Renderer = _Renderer;
13779
- TextRenderer = _TextRenderer;
13780
- Lexer = _Lexer;
13781
- Tokenizer = _Tokenizer;
13782
- Hooks = _Hooks;
13783
- constructor(...args) {
13784
- this.use(...args);
13879
+ constructor() {
13880
+ _defineProperty(this, "defaults", _getDefaults());
13881
+ _defineProperty(this, "options", this.setOptions);
13882
+ _defineProperty(this, "parse", this.parseMarkdown(true));
13883
+ _defineProperty(this, "parseInline", this.parseMarkdown(false));
13884
+ _defineProperty(this, "Parser", _Parser);
13885
+ _defineProperty(this, "Renderer", _Renderer);
13886
+ _defineProperty(this, "TextRenderer", _TextRenderer);
13887
+ _defineProperty(this, "Lexer", _Lexer);
13888
+ _defineProperty(this, "Tokenizer", _Tokenizer);
13889
+ _defineProperty(this, "Hooks", _Hooks);
13890
+ this.use(...arguments);
13785
13891
  }
13786
13892
  /**
13787
13893
  * Run callback for every token
@@ -13812,8 +13918,9 @@ class Marked {
13812
13918
  }
13813
13919
  default:
13814
13920
  {
13921
+ var _this$defaults$extens, _this$defaults$extens2;
13815
13922
  const genericToken = token;
13816
- if (this.defaults.extensions?.childTokens?.[genericToken.type]) {
13923
+ if ((_this$defaults$extens = this.defaults.extensions) !== null && _this$defaults$extens !== void 0 && (_this$defaults$extens2 = _this$defaults$extens.childTokens) !== null && _this$defaults$extens2 !== void 0 && _this$defaults$extens2[genericToken.type]) {
13817
13924
  this.defaults.extensions.childTokens[genericToken.type].forEach(childTokens => {
13818
13925
  const tokens = genericToken[childTokens].flat(Infinity);
13819
13926
  values = values.concat(this.walkTokens(tokens, callback));
@@ -13826,11 +13933,14 @@ class Marked {
13826
13933
  }
13827
13934
  return values;
13828
13935
  }
13829
- use(...args) {
13936
+ use() {
13830
13937
  const extensions = this.defaults.extensions || {
13831
13938
  renderers: {},
13832
13939
  childTokens: {}
13833
13940
  };
13941
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13942
+ args[_key] = arguments[_key];
13943
+ }
13834
13944
  args.forEach(pack => {
13835
13945
  // copy options to new object
13836
13946
  const opts = {
@@ -13849,7 +13959,10 @@ class Marked {
13849
13959
  const prevRenderer = extensions.renderers[ext.name];
13850
13960
  if (prevRenderer) {
13851
13961
  // Replace extension with func to run new extension but fall back if false
13852
- extensions.renderers[ext.name] = function (...args) {
13962
+ extensions.renderers[ext.name] = function () {
13963
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
13964
+ args[_key2] = arguments[_key2];
13965
+ }
13853
13966
  let ret = ext.renderer.apply(this, args);
13854
13967
  if (ret === false) {
13855
13968
  ret = prevRenderer.apply(this, args);
@@ -13910,7 +14023,10 @@ class Marked {
13910
14023
  const rendererFunc = pack.renderer[rendererProp];
13911
14024
  const prevRenderer = renderer[rendererProp];
13912
14025
  // Replace renderer with func to run extension, but fall back if false
13913
- renderer[rendererProp] = (...args) => {
14026
+ renderer[rendererProp] = function () {
14027
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
14028
+ args[_key3] = arguments[_key3];
14029
+ }
13914
14030
  let ret = rendererFunc.apply(renderer, args);
13915
14031
  if (ret === false) {
13916
14032
  ret = prevRenderer.apply(renderer, args);
@@ -13935,7 +14051,10 @@ class Marked {
13935
14051
  const prevTokenizer = tokenizer[tokenizerProp];
13936
14052
  // Replace tokenizer with func to run extension, but fall back if false
13937
14053
  // @ts-expect-error cannot type tokenizer function dynamically
13938
- tokenizer[tokenizerProp] = (...args) => {
14054
+ tokenizer[tokenizerProp] = function () {
14055
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
14056
+ args[_key4] = arguments[_key4];
14057
+ }
13939
14058
  let ret = tokenizerFunc.apply(tokenizer, args);
13940
14059
  if (ret === false) {
13941
14060
  ret = prevTokenizer.apply(tokenizer, args);
@@ -13972,7 +14091,10 @@ class Marked {
13972
14091
  };
13973
14092
  } else {
13974
14093
  // @ts-expect-error cannot type hook function dynamically
13975
- hooks[hooksProp] = (...args) => {
14094
+ hooks[hooksProp] = function () {
14095
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
14096
+ args[_key5] = arguments[_key5];
14097
+ }
13976
14098
  let ret = hooksFunc.apply(hooks, args);
13977
14099
  if (ret === false) {
13978
14100
  ret = prevHook.apply(hooks, args);
@@ -14011,10 +14133,10 @@ class Marked {
14011
14133
  return this;
14012
14134
  }
14013
14135
  lexer(src, options) {
14014
- return _Lexer.lex(src, options ?? this.defaults);
14136
+ return _Lexer.lex(src, options !== null && options !== void 0 ? options : this.defaults);
14015
14137
  }
14016
14138
  parser(tokens, options) {
14017
- return _Parser.parse(tokens, options ?? this.defaults);
14139
+ return _Parser.parse(tokens, options !== null && options !== void 0 ? options : this.defaults);
14018
14140
  }
14019
14141
  parseMarkdown(blockType) {
14020
14142
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -14109,8 +14231,8 @@ marked.defaults = _defaults;
14109
14231
  /**
14110
14232
  * Use Extension
14111
14233
  */
14112
- marked.use = function (...args) {
14113
- markedInstance.use(...args);
14234
+ marked.use = function () {
14235
+ markedInstance.use(...arguments);
14114
14236
  marked.defaults = markedInstance.defaults;
14115
14237
  changeDefaults(marked.defaults);
14116
14238
  return marked;
@@ -14177,6 +14299,10 @@ const signal = controller.signal;
14177
14299
  xtId: {
14178
14300
  type: String,
14179
14301
  default: ''
14302
+ },
14303
+ showMoreQA: {
14304
+ type: Boolean,
14305
+ default: false
14180
14306
  }
14181
14307
  },
14182
14308
  data() {
@@ -14283,7 +14409,9 @@ const signal = controller.signal;
14283
14409
  content: current.message || '正在思考中。'
14284
14410
  });
14285
14411
  }
14286
- this.makeAutoQuestioning(cacheMessage);
14412
+ if (this.showMoreQA) {
14413
+ this.makeAutoQuestioning(cacheMessage);
14414
+ }
14287
14415
  },
14288
14416
  makeMessageLine(res, list) {
14289
14417
  const {
@@ -14346,6 +14474,7 @@ const signal = controller.signal;
14346
14474
  }
14347
14475
  }
14348
14476
  } = autoRes;
14477
+ this.messageData[this.messageData.length - 1].followUps = [];
14349
14478
  this.messageData[this.messageData.length - 1].followUps = followUps.length > 3 ? followUps.splice(0, 3) : followUps;
14350
14479
  },
14351
14480
  onStopChat(list) {
@@ -14415,10 +14544,10 @@ const signal = controller.signal;
14415
14544
  });
14416
14545
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=script&lang=js
14417
14546
  /* harmony default export */ var src_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
14418
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=d21026be&prod&lang=scss&scoped=true
14547
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=87eb3e4e&prod&lang=scss&scoped=true
14419
14548
  // extracted by mini-css-extract-plugin
14420
14549
 
14421
- ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=d21026be&prod&lang=scss&scoped=true
14550
+ ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=87eb3e4e&prod&lang=scss&scoped=true
14422
14551
 
14423
14552
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue
14424
14553
 
@@ -14431,11 +14560,11 @@ const signal = controller.signal;
14431
14560
 
14432
14561
  var chat_component = normalizeComponent(
14433
14562
  src_chatvue_type_script_lang_js,
14434
- chatvue_type_template_id_d21026be_scoped_true_render,
14435
- chatvue_type_template_id_d21026be_scoped_true_staticRenderFns,
14563
+ chatvue_type_template_id_87eb3e4e_scoped_true_render,
14564
+ chatvue_type_template_id_87eb3e4e_scoped_true_staticRenderFns,
14436
14565
  false,
14437
14566
  null,
14438
- "d21026be",
14567
+ "87eb3e4e",
14439
14568
  null
14440
14569
 
14441
14570
  )
@@ -14444,14 +14573,14 @@ var chat_component = normalizeComponent(
14444
14573
  ;// CONCATENATED MODULE: ./node_modules/js-cookie/dist/js.cookie.mjs
14445
14574
  /*! js-cookie v3.0.5 | MIT */
14446
14575
  /* eslint-disable no-var */
14447
- function js_cookie_assign(target) {
14576
+ function js_cookie_assign (target) {
14448
14577
  for (var i = 1; i < arguments.length; i++) {
14449
14578
  var source = arguments[i];
14450
14579
  for (var key in source) {
14451
14580
  target[key] = source[key];
14452
14581
  }
14453
14582
  }
14454
- return target;
14583
+ return target
14455
14584
  }
14456
14585
  /* eslint-enable no-var */
14457
14586
 
@@ -14461,37 +14590,48 @@ var defaultConverter = {
14461
14590
  if (value[0] === '"') {
14462
14591
  value = value.slice(1, -1);
14463
14592
  }
14464
- return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
14593
+ return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
14465
14594
  },
14466
14595
  write: function (value) {
14467
- return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
14596
+ return encodeURIComponent(value).replace(
14597
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
14598
+ decodeURIComponent
14599
+ )
14468
14600
  }
14469
14601
  };
14470
14602
  /* eslint-enable no-var */
14471
14603
 
14472
14604
  /* eslint-disable no-var */
14473
14605
 
14474
- function init(converter, defaultAttributes) {
14475
- function set(name, value, attributes) {
14606
+ function init (converter, defaultAttributes) {
14607
+ function set (name, value, attributes) {
14476
14608
  if (typeof document === 'undefined') {
14477
- return;
14609
+ return
14478
14610
  }
14611
+
14479
14612
  attributes = js_cookie_assign({}, defaultAttributes, attributes);
14613
+
14480
14614
  if (typeof attributes.expires === 'number') {
14481
14615
  attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
14482
14616
  }
14483
14617
  if (attributes.expires) {
14484
14618
  attributes.expires = attributes.expires.toUTCString();
14485
14619
  }
14486
- name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
14620
+
14621
+ name = encodeURIComponent(name)
14622
+ .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
14623
+ .replace(/[()]/g, escape);
14624
+
14487
14625
  var stringifiedAttributes = '';
14488
14626
  for (var attributeName in attributes) {
14489
14627
  if (!attributes[attributeName]) {
14490
- continue;
14628
+ continue
14491
14629
  }
14630
+
14492
14631
  stringifiedAttributes += '; ' + attributeName;
14632
+
14493
14633
  if (attributes[attributeName] === true) {
14494
- continue;
14634
+ continue
14495
14635
  }
14496
14636
 
14497
14637
  // Considers RFC 6265 section 5.2:
@@ -14503,11 +14643,14 @@ function init(converter, defaultAttributes) {
14503
14643
  // ...
14504
14644
  stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
14505
14645
  }
14506
- return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;
14646
+
14647
+ return (document.cookie =
14648
+ name + '=' + converter.write(value, name) + stringifiedAttributes)
14507
14649
  }
14508
- function get(name) {
14509
- if (typeof document === 'undefined' || arguments.length && !name) {
14510
- return;
14650
+
14651
+ function get (name) {
14652
+ if (typeof document === 'undefined' || (arguments.length && !name)) {
14653
+ return
14511
14654
  }
14512
14655
 
14513
14656
  // To prevent the for loop in the first place assign an empty array
@@ -14517,45 +14660,52 @@ function init(converter, defaultAttributes) {
14517
14660
  for (var i = 0; i < cookies.length; i++) {
14518
14661
  var parts = cookies[i].split('=');
14519
14662
  var value = parts.slice(1).join('=');
14663
+
14520
14664
  try {
14521
14665
  var found = decodeURIComponent(parts[0]);
14522
14666
  jar[found] = converter.read(value, found);
14667
+
14523
14668
  if (name === found) {
14524
- break;
14669
+ break
14525
14670
  }
14526
14671
  } catch (e) {}
14527
14672
  }
14528
- return name ? jar[name] : jar;
14673
+
14674
+ return name ? jar[name] : jar
14529
14675
  }
14530
- return Object.create({
14531
- set,
14532
- get,
14533
- remove: function (name, attributes) {
14534
- set(name, '', js_cookie_assign({}, attributes, {
14535
- expires: -1
14536
- }));
14537
- },
14538
- withAttributes: function (attributes) {
14539
- return init(this.converter, js_cookie_assign({}, this.attributes, attributes));
14540
- },
14541
- withConverter: function (converter) {
14542
- return init(js_cookie_assign({}, this.converter, converter), this.attributes);
14543
- }
14544
- }, {
14545
- attributes: {
14546
- value: Object.freeze(defaultAttributes)
14676
+
14677
+ return Object.create(
14678
+ {
14679
+ set,
14680
+ get,
14681
+ remove: function (name, attributes) {
14682
+ set(
14683
+ name,
14684
+ '',
14685
+ js_cookie_assign({}, attributes, {
14686
+ expires: -1
14687
+ })
14688
+ );
14689
+ },
14690
+ withAttributes: function (attributes) {
14691
+ return init(this.converter, js_cookie_assign({}, this.attributes, attributes))
14692
+ },
14693
+ withConverter: function (converter) {
14694
+ return init(js_cookie_assign({}, this.converter, converter), this.attributes)
14695
+ }
14547
14696
  },
14548
- converter: {
14549
- value: Object.freeze(converter)
14697
+ {
14698
+ attributes: { value: Object.freeze(defaultAttributes) },
14699
+ converter: { value: Object.freeze(converter) }
14550
14700
  }
14551
- });
14701
+ )
14552
14702
  }
14553
- var api = init(defaultConverter, {
14554
- path: '/'
14555
- });
14703
+
14704
+ var api = init(defaultConverter, { path: '/' });
14556
14705
  /* eslint-enable no-var */
14557
14706
 
14558
14707
 
14708
+
14559
14709
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=script&lang=js
14560
14710
 
14561
14711
 
@@ -14600,14 +14750,21 @@ var api = init(defaultConverter, {
14600
14750
  // 传入组件值
14601
14751
  stop: false,
14602
14752
  courseFlag: false,
14603
- message: ''
14753
+ message: '',
14754
+ showMoreQA: false
14604
14755
  };
14605
14756
  },
14606
- mounted() {
14757
+ async mounted() {
14607
14758
  if (!api.get("token")) {
14608
14759
  return this.$message.warning('未获取到登录信息,请重新登录');
14609
14760
  }
14610
14761
  getUserInfo(api.get("token"));
14762
+ const wordRes = await queryCallWord(this.resId);
14763
+ if (!wordRes) return;
14764
+ const {
14765
+ showMoreQA
14766
+ } = wordRes;
14767
+ this.showMoreQA = showMoreQA;
14611
14768
  },
14612
14769
  methods: {
14613
14770
  closeMessage() {
@@ -14660,10 +14817,10 @@ var api = init(defaultConverter, {
14660
14817
  });
14661
14818
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
14662
14819
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
14663
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=3f590f5c&prod&lang=scss&scoped=true
14820
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=009db85b&prod&lang=scss&scoped=true
14664
14821
  // extracted by mini-css-extract-plugin
14665
14822
 
14666
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=3f590f5c&prod&lang=scss&scoped=true
14823
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=009db85b&prod&lang=scss&scoped=true
14667
14824
 
14668
14825
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue
14669
14826
 
@@ -14680,7 +14837,7 @@ var main_component = normalizeComponent(
14680
14837
  staticRenderFns,
14681
14838
  false,
14682
14839
  null,
14683
- "3f590f5c",
14840
+ "009db85b",
14684
14841
  null
14685
14842
 
14686
14843
  )