ai-error-assistant-pro 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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=4661f078&scoped=true
6568
6568
  var render = function render() {
6569
6569
  var _vm = this,
6570
6570
  _c = _vm._self._c;
@@ -6640,9 +6640,7 @@ var render = function render() {
6640
6640
  "src": __webpack_require__(951),
6641
6641
  "alt": ""
6642
6642
  }
6643
- })])], 1), _c('p', {
6644
- staticClass: "disclaimer"
6645
- }, [_vm._v(" 此功能公测期间对正式版用户开放 ")])]], 2) : _vm._e();
6643
+ })])], 1)]], 2) : _vm._e();
6646
6644
  };
6647
6645
  var staticRenderFns = [function () {
6648
6646
  var _vm = this,
@@ -6663,7 +6661,7 @@ var staticRenderFns = [function () {
6663
6661
  }, [_vm._v("智能解析")])]);
6664
6662
  }];
6665
6663
 
6666
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=3f590f5c&scoped=true
6664
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=4661f078&scoped=true
6667
6665
 
6668
6666
  ;// 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
6667
  var chatvue_type_template_id_d21026be_scoped_true_render = function render() {
@@ -7002,9 +7000,10 @@ const trim = str => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uF
7002
7000
  * @param {Boolean} [allOwnKeys = false]
7003
7001
  * @returns {any}
7004
7002
  */
7005
- function forEach(obj, fn, {
7006
- allOwnKeys = false
7007
- } = {}) {
7003
+ function forEach(obj, fn) {
7004
+ let {
7005
+ allOwnKeys = false
7006
+ } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
7008
7007
  // Don't bother if no value provided
7009
7008
  if (obj === null || typeof obj === 'undefined') {
7010
7009
  return;
@@ -7105,9 +7104,10 @@ function merge( /* obj1, obj2, obj3, ... */
7105
7104
  * @param {Boolean} [allOwnKeys]
7106
7105
  * @returns {Object} The resulting value of object a
7107
7106
  */
7108
- const extend = (a, b, thisArg, {
7109
- allOwnKeys
7110
- } = {}) => {
7107
+ const extend = function (a, b, thisArg) {
7108
+ let {
7109
+ allOwnKeys
7110
+ } = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
7111
7111
  forEach(b, (val, key) => {
7112
7112
  if (thisArg && isFunction(val)) {
7113
7113
  a[key] = bind(val, thisArg);
@@ -7282,9 +7282,12 @@ const toCamelCase = str => {
7282
7282
  };
7283
7283
 
7284
7284
  /* 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);
7285
+ const utils_hasOwnProperty = (_ref => {
7286
+ let {
7287
+ hasOwnProperty
7288
+ } = _ref;
7289
+ return (obj, prop) => hasOwnProperty.call(obj, prop);
7290
+ })(Object.prototype);
7288
7291
 
7289
7292
  /**
7290
7293
  * Determine if a value is a RegExp object
@@ -7352,7 +7355,9 @@ const ALPHABET = {
7352
7355
  ALPHA,
7353
7356
  ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
7354
7357
  };
7355
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
7358
+ const generateString = function () {
7359
+ let size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16;
7360
+ let alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT;
7356
7361
  let str = '';
7357
7362
  const {
7358
7363
  length
@@ -7406,10 +7411,11 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
7406
7411
  return setImmediate;
7407
7412
  }
7408
7413
  return postMessageSupported ? ((token, callbacks) => {
7409
- _global.addEventListener("message", ({
7410
- source,
7411
- data
7412
- }) => {
7414
+ _global.addEventListener("message", _ref2 => {
7415
+ let {
7416
+ source,
7417
+ data
7418
+ } = _ref2;
7413
7419
  if (source === _global && data === token) {
7414
7420
  callbacks.length && callbacks.shift()();
7415
7421
  }
@@ -8449,7 +8455,10 @@ class AxiosHeaders {
8449
8455
  });
8450
8456
  return this;
8451
8457
  }
8452
- concat(...targets) {
8458
+ concat() {
8459
+ for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) {
8460
+ targets[_key] = arguments[_key];
8461
+ }
8453
8462
  return this.constructor.concat(this, ...targets);
8454
8463
  }
8455
8464
  toJSON(asStrings) {
@@ -8463,7 +8472,10 @@ class AxiosHeaders {
8463
8472
  return Object.entries(this.toJSON())[Symbol.iterator]();
8464
8473
  }
8465
8474
  toString() {
8466
- return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
8475
+ return Object.entries(this.toJSON()).map(_ref => {
8476
+ let [header, value] = _ref;
8477
+ return header + ': ' + value;
8478
+ }).join('\n');
8467
8479
  }
8468
8480
  get [Symbol.toStringTag]() {
8469
8481
  return 'AxiosHeaders';
@@ -8471,8 +8483,11 @@ class AxiosHeaders {
8471
8483
  static from(thing) {
8472
8484
  return thing instanceof this ? thing : new this(thing);
8473
8485
  }
8474
- static concat(first, ...targets) {
8486
+ static concat(first) {
8475
8487
  const computed = new this(first);
8488
+ for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
8489
+ targets[_key2 - 1] = arguments[_key2];
8490
+ }
8476
8491
  targets.forEach(target => computed.set(target));
8477
8492
  return computed;
8478
8493
  }
@@ -8496,9 +8511,10 @@ class AxiosHeaders {
8496
8511
  AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
8497
8512
 
8498
8513
  // reserved names hotfix
8499
- utils.reduceDescriptors(AxiosHeaders.prototype, ({
8500
- value
8501
- }, key) => {
8514
+ utils.reduceDescriptors(AxiosHeaders.prototype, (_ref2, key) => {
8515
+ let {
8516
+ value
8517
+ } = _ref2;
8502
8518
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
8503
8519
  return {
8504
8520
  get: () => value,
@@ -8649,7 +8665,8 @@ function throttle(fn, freq) {
8649
8665
  let threshold = 1000 / freq;
8650
8666
  let lastArgs;
8651
8667
  let timer;
8652
- const invoke = (args, now = Date.now()) => {
8668
+ const invoke = function (args) {
8669
+ let now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Date.now();
8653
8670
  timestamp = now;
8654
8671
  lastArgs = null;
8655
8672
  if (timer) {
@@ -8658,9 +8675,12 @@ function throttle(fn, freq) {
8658
8675
  }
8659
8676
  fn.apply(null, args);
8660
8677
  };
8661
- const throttled = (...args) => {
8678
+ const throttled = function () {
8662
8679
  const now = Date.now();
8663
8680
  const passed = now - timestamp;
8681
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8682
+ args[_key] = arguments[_key];
8683
+ }
8664
8684
  if (passed >= threshold) {
8665
8685
  invoke(args, now);
8666
8686
  } else {
@@ -8681,7 +8701,8 @@ function throttle(fn, freq) {
8681
8701
 
8682
8702
 
8683
8703
 
8684
- const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
8704
+ const progressEventReducer = function (listener, isDownloadStream) {
8705
+ let freq = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
8685
8706
  let bytesNotified = 0;
8686
8707
  const _speedometer = helpers_speedometer(50, 250);
8687
8708
  return helpers_throttle(e => {
@@ -8713,7 +8734,12 @@ const progressEventDecorator = (total, throttled) => {
8713
8734
  loaded
8714
8735
  }), throttled[1]];
8715
8736
  };
8716
- const asyncDecorator = fn => (...args) => utils.asap(() => fn(...args));
8737
+ const asyncDecorator = fn => function () {
8738
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8739
+ args[_key] = arguments[_key];
8740
+ }
8741
+ return utils.asap(() => fn(...args));
8742
+ };
8717
8743
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isURLSameOrigin.js
8718
8744
 
8719
8745
 
@@ -9306,8 +9332,11 @@ const isReadableStreamSupported = isFetchSupported && typeof ReadableStream ===
9306
9332
 
9307
9333
  // used only inside the fetch adapter
9308
9334
  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) => {
9335
+ const test = function (fn) {
9310
9336
  try {
9337
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
9338
+ args[_key - 1] = arguments[_key];
9339
+ }
9311
9340
  return !!fn(...args);
9312
9341
  } catch (e) {
9313
9342
  return false;
@@ -9504,7 +9533,10 @@ const isResolvedHandle = adapter => utils.isFunction(adapter) || adapter === nul
9504
9533
  rejectedReasons[id || '#' + i] = adapter;
9505
9534
  }
9506
9535
  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'));
9536
+ const reasons = Object.entries(rejectedReasons).map(_ref => {
9537
+ let [id, state] = _ref;
9538
+ return `adapter ${id} ` + (state === false ? 'is not supported by the environment' : 'is not available in the build');
9539
+ });
9508
9540
  let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
9509
9541
  throw new core_AxiosError(`There is no suitable adapter to dispatch the request ` + s, 'ERR_NOT_SUPPORT');
9510
9542
  }
@@ -10073,7 +10105,8 @@ const HttpStatusCode = {
10073
10105
  NotExtended: 510,
10074
10106
  NetworkAuthenticationRequired: 511
10075
10107
  };
10076
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
10108
+ Object.entries(HttpStatusCode).forEach(_ref => {
10109
+ let [key, value] = _ref;
10077
10110
  HttpStatusCode[value] = key;
10078
10111
  });
10079
10112
  /* harmony default export */ var helpers_HttpStatusCode = (HttpStatusCode);
@@ -10268,49 +10301,58 @@ const _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
10268
10301
  const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
10269
10302
  const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
10270
10303
  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;
10304
+ const b64tab = ((a) => {
10305
+ let tab = {};
10306
+ a.forEach((c, i) => tab[c] = i);
10307
+ return tab;
10275
10308
  })(b64chs);
10276
10309
  const b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
10277
10310
  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, '');
10311
+ const _U8Afrom = typeof Uint8Array.from === 'function'
10312
+ ? Uint8Array.from.bind(Uint8Array)
10313
+ : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
10314
+ const _mkUriSafe = (src) => src
10315
+ .replace(/=/g, '').replace(/[+\/]/g, (m0) => m0 == '+' ? '-' : '_');
10316
+ const _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, '');
10281
10317
  /**
10282
10318
  * polyfill version of `btoa`
10283
10319
  */
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;
10320
+ const btoaPolyfill = (bin) => {
10321
+ // console.log('polyfilled');
10322
+ let u32, c0, c1, c2, asc = '';
10323
+ const pad = bin.length % 3;
10324
+ for (let i = 0; i < bin.length;) {
10325
+ if ((c0 = bin.charCodeAt(i++)) > 255 ||
10326
+ (c1 = bin.charCodeAt(i++)) > 255 ||
10327
+ (c2 = bin.charCodeAt(i++)) > 255)
10328
+ throw new TypeError('invalid character found');
10329
+ u32 = (c0 << 16) | (c1 << 8) | c2;
10330
+ asc += b64chs[u32 >> 18 & 63]
10331
+ + b64chs[u32 >> 12 & 63]
10332
+ + b64chs[u32 >> 6 & 63]
10333
+ + b64chs[u32 & 63];
10334
+ }
10335
+ return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
10298
10336
  };
10299
10337
  /**
10300
10338
  * does what `window.btoa` of web browsers do.
10301
10339
  * @param {String} bin binary string
10302
10340
  * @returns {string} Base64-encoded string
10303
10341
  */
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
- };
10342
+ const _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)
10343
+ : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')
10344
+ : btoaPolyfill;
10345
+ const _fromUint8Array = _hasBuffer
10346
+ ? (u8a) => Buffer.from(u8a).toString('base64')
10347
+ : (u8a) => {
10348
+ // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
10349
+ const maxargs = 0x1000;
10350
+ let strs = [];
10351
+ for (let i = 0, l = u8a.length; i < l; i += maxargs) {
10352
+ strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
10353
+ }
10354
+ return _btoa(strs.join(''));
10355
+ };
10314
10356
  /**
10315
10357
  * converts a Uint8Array to a Base64 string.
10316
10358
  * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
@@ -10320,14 +10362,25 @@ const fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8
10320
10362
  // This trick is found broken https://github.com/dankogai/js-base64/issues/130
10321
10363
  // const utob = (src: string) => unescape(encodeURIComponent(src));
10322
10364
  // 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
- }
10365
+ const cb_utob = (c) => {
10366
+ if (c.length < 2) {
10367
+ var cc = c.charCodeAt(0);
10368
+ return cc < 0x80 ? c
10369
+ : cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))
10370
+ + _fromCC(0x80 | (cc & 0x3f)))
10371
+ : (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))
10372
+ + _fromCC(0x80 | ((cc >>> 6) & 0x3f))
10373
+ + _fromCC(0x80 | (cc & 0x3f)));
10374
+ }
10375
+ else {
10376
+ var cc = 0x10000
10377
+ + (c.charCodeAt(0) - 0xD800) * 0x400
10378
+ + (c.charCodeAt(1) - 0xDC00);
10379
+ return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))
10380
+ + _fromCC(0x80 | ((cc >>> 12) & 0x3f))
10381
+ + _fromCC(0x80 | ((cc >>> 6) & 0x3f))
10382
+ + _fromCC(0x80 | (cc & 0x3f)));
10383
+ }
10331
10384
  };
10332
10385
  const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
10333
10386
  /**
@@ -10335,163 +10388,168 @@ const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
10335
10388
  * @param {string} src UTF-8 string
10336
10389
  * @returns {string} UTF-16 string
10337
10390
  */
10338
- const utob = u => u.replace(re_utob, cb_utob);
10391
+ const utob = (u) => u.replace(re_utob, cb_utob);
10339
10392
  //
10340
- const _encode = _hasBuffer ? s => Buffer.from(s, 'utf8').toString('base64') : _TE ? s => _fromUint8Array(_TE.encode(s)) : s => _btoa(utob(s));
10393
+ const _encode = _hasBuffer
10394
+ ? (s) => Buffer.from(s, 'utf8').toString('base64')
10395
+ : _TE
10396
+ ? (s) => _fromUint8Array(_TE.encode(s))
10397
+ : (s) => _btoa(utob(s));
10341
10398
  /**
10342
10399
  * converts a UTF-8-encoded string to a Base64 string.
10343
10400
  * @param {boolean} [urlsafe] if `true` make the result URL-safe
10344
10401
  * @returns {string} Base64 string
10345
10402
  */
10346
- const base64_encode = (src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
10403
+ const base64_encode = (src, urlsafe = false) => urlsafe
10404
+ ? _mkUriSafe(_encode(src))
10405
+ : _encode(src);
10347
10406
  /**
10348
10407
  * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
10349
10408
  * @returns {string} Base64 string
10350
10409
  */
10351
- const base64_encodeURI = src => base64_encode(src, true);
10410
+ const base64_encodeURI = (src) => base64_encode(src, true);
10352
10411
  // This trick is found broken https://github.com/dankogai/js-base64/issues/130
10353
10412
  // const btou = (src: string) => decodeURIComponent(escape(src));
10354
10413
  // reverting good old fationed regexp
10355
10414
  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
- }
10415
+ const cb_btou = (cccc) => {
10416
+ switch (cccc.length) {
10417
+ case 4:
10418
+ var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
10419
+ | ((0x3f & cccc.charCodeAt(1)) << 12)
10420
+ | ((0x3f & cccc.charCodeAt(2)) << 6)
10421
+ | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;
10422
+ return (_fromCC((offset >>> 10) + 0xD800)
10423
+ + _fromCC((offset & 0x3FF) + 0xDC00));
10424
+ case 3:
10425
+ return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)
10426
+ | ((0x3f & cccc.charCodeAt(1)) << 6)
10427
+ | (0x3f & cccc.charCodeAt(2)));
10428
+ default:
10429
+ return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)
10430
+ | (0x3f & cccc.charCodeAt(1)));
10431
+ }
10367
10432
  };
10368
10433
  /**
10369
10434
  * @deprecated should have been internal use only.
10370
10435
  * @param {string} src UTF-16 string
10371
10436
  * @returns {string} UTF-8 string
10372
10437
  */
10373
- const btou = b => b.replace(re_btou, cb_btou);
10438
+ const btou = (b) => b.replace(re_btou, cb_btou);
10374
10439
  /**
10375
10440
  * polyfill version of `atob`
10376
10441
  */
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;
10442
+ const atobPolyfill = (asc) => {
10443
+ // console.log('polyfilled');
10444
+ asc = asc.replace(/\s+/g, '');
10445
+ if (!b64re.test(asc))
10446
+ throw new TypeError('malformed base64.');
10447
+ asc += '=='.slice(2 - (asc.length & 3));
10448
+ let u24, bin = '', r1, r2;
10449
+ for (let i = 0; i < asc.length;) {
10450
+ u24 = b64tab[asc.charAt(i++)] << 18
10451
+ | b64tab[asc.charAt(i++)] << 12
10452
+ | (r1 = b64tab[asc.charAt(i++)]) << 6
10453
+ | (r2 = b64tab[asc.charAt(i++)]);
10454
+ bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)
10455
+ : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)
10456
+ : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);
10457
+ }
10458
+ return bin;
10391
10459
  };
10392
10460
  /**
10393
10461
  * does what `window.atob` of web browsers do.
10394
10462
  * @param {String} asc Base64-encoded string
10395
10463
  * @returns {string} binary string
10396
10464
  */
10397
- const _atob = typeof atob === 'function' ? asc => atob(_tidyB64(asc)) : _hasBuffer ? asc => Buffer.from(asc, 'base64').toString('binary') : atobPolyfill;
10465
+ const _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))
10466
+ : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')
10467
+ : atobPolyfill;
10398
10468
  //
10399
- const _toUint8Array = _hasBuffer ? a => _U8Afrom(Buffer.from(a, 'base64')) : a => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
10469
+ const _toUint8Array = _hasBuffer
10470
+ ? (a) => _U8Afrom(Buffer.from(a, 'base64'))
10471
+ : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
10400
10472
  /**
10401
10473
  * converts a Base64 string to a Uint8Array.
10402
10474
  */
10403
- const toUint8Array = a => _toUint8Array(_unURI(a));
10475
+ const toUint8Array = (a) => _toUint8Array(_unURI(a));
10404
10476
  //
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 == '-' ? '+' : '/'));
10477
+ const _decode = _hasBuffer
10478
+ ? (a) => Buffer.from(a, 'base64').toString('utf8')
10479
+ : _TD
10480
+ ? (a) => _TD.decode(_toUint8Array(a))
10481
+ : (a) => btou(_atob(a));
10482
+ const _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));
10407
10483
  /**
10408
10484
  * converts a Base64 string to a UTF-8 string.
10409
10485
  * @param {String} src Base64 string. Both normal and URL-safe are supported
10410
10486
  * @returns {string} UTF-8 string
10411
10487
  */
10412
- const decode = src => _decode(_unURI(src));
10488
+ const decode = (src) => _decode(_unURI(src));
10413
10489
  /**
10414
10490
  * check if a value is a valid Base64 string
10415
10491
  * @param {String} src a value to check
10416
10492
  */
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);
10493
+ const isValid = (src) => {
10494
+ if (typeof src !== 'string')
10495
+ return false;
10496
+ const s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
10497
+ return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
10421
10498
  };
10422
10499
  //
10423
- const _noEnum = v => {
10424
- return {
10425
- value: v,
10426
- enumerable: false,
10427
- writable: true,
10428
- configurable: true
10429
- };
10500
+ const _noEnum = (v) => {
10501
+ return {
10502
+ value: v, enumerable: false, writable: true, configurable: true
10503
+ };
10430
10504
  };
10431
10505
  /**
10432
10506
  * extend String.prototype with relevant methods
10433
10507
  */
10434
10508
  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
- });
10509
+ const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
10510
+ _add('fromBase64', function () { return decode(this); });
10511
+ _add('toBase64', function (urlsafe) { return base64_encode(this, urlsafe); });
10512
+ _add('toBase64URI', function () { return base64_encode(this, true); });
10513
+ _add('toBase64URL', function () { return base64_encode(this, true); });
10514
+ _add('toUint8Array', function () { return toUint8Array(this); });
10451
10515
  };
10452
10516
  /**
10453
10517
  * extend Uint8Array.prototype with relevant methods
10454
10518
  */
10455
10519
  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
- });
10520
+ const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
10521
+ _add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });
10522
+ _add('toBase64URI', function () { return fromUint8Array(this, true); });
10523
+ _add('toBase64URL', function () { return fromUint8Array(this, true); });
10466
10524
  };
10467
10525
  /**
10468
10526
  * extend Builtin prototypes with relevant methods
10469
10527
  */
10470
10528
  const extendBuiltins = () => {
10471
- extendString();
10472
- extendUint8Array();
10529
+ extendString();
10530
+ extendUint8Array();
10473
10531
  };
10474
10532
  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
10533
+ version: version,
10534
+ VERSION: base64_VERSION,
10535
+ atob: _atob,
10536
+ atobPolyfill: atobPolyfill,
10537
+ btoa: _btoa,
10538
+ btoaPolyfill: btoaPolyfill,
10539
+ fromBase64: decode,
10540
+ toBase64: base64_encode,
10541
+ encode: base64_encode,
10542
+ encodeURI: base64_encodeURI,
10543
+ encodeURL: base64_encodeURI,
10544
+ utob: utob,
10545
+ btou: btou,
10546
+ decode: decode,
10547
+ isValid: isValid,
10548
+ fromUint8Array: fromUint8Array,
10549
+ toUint8Array: toUint8Array,
10550
+ extendString: extendString,
10551
+ extendUint8Array: extendUint8Array,
10552
+ extendBuiltins: extendBuiltins
10495
10553
  };
10496
10554
  // makecjs:CUT //
10497
10555
 
@@ -10516,6 +10574,7 @@ const gBase64 = {
10516
10574
 
10517
10575
  // and finally,
10518
10576
 
10577
+
10519
10578
  ;// CONCATENATED MODULE: ./components/demo/utils/aes-utils.js
10520
10579
 
10521
10580
 
@@ -11715,6 +11774,9 @@ var error_chat_component = normalizeComponent(
11715
11774
 
11716
11775
  /* harmony default export */ var error_chat = (error_chat_component.exports);
11717
11776
  ;// CONCATENATED MODULE: ./node_modules/marked/lib/marked.esm.js
11777
+ 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; }
11778
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
11779
+ 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
11780
  /**
11719
11781
  * marked v14.1.2 - a markdown parser
11720
11782
  * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
@@ -11935,10 +11997,12 @@ function indentCodeCompensation(raw, text) {
11935
11997
  * Tokenizer
11936
11998
  */
11937
11999
  class _Tokenizer {
11938
- options;
11939
- rules; // set by the lexer
11940
- lexer; // set by the lexer
12000
+ // set by the lexer
11941
12001
  constructor(options) {
12002
+ _defineProperty(this, "options", void 0);
12003
+ _defineProperty(this, "rules", void 0);
12004
+ // set by the lexer
12005
+ _defineProperty(this, "lexer", void 0);
11942
12006
  this.options = options || _defaults;
11943
12007
  }
11944
12008
  space(src) {
@@ -12047,10 +12111,10 @@ class _Tokenizer {
12047
12111
  break;
12048
12112
  }
12049
12113
  const lastToken = tokens[tokens.length - 1];
12050
- if (lastToken?.type === 'code') {
12114
+ if ((lastToken === null || lastToken === void 0 ? void 0 : lastToken.type) === 'code') {
12051
12115
  // blockquote continuation cannot be preceded by a code block
12052
12116
  break;
12053
- } else if (lastToken?.type === 'blockquote') {
12117
+ } else if ((lastToken === null || lastToken === void 0 ? void 0 : lastToken.type) === 'blockquote') {
12054
12118
  // include continuation in nested blockquote
12055
12119
  const oldToken = lastToken;
12056
12120
  const newText = oldToken.raw + '\n' + lines.join('\n');
@@ -12059,7 +12123,7 @@ class _Tokenizer {
12059
12123
  raw = raw.substring(0, raw.length - oldToken.raw.length) + newToken.raw;
12060
12124
  text = text.substring(0, text.length - oldToken.text.length) + newToken.text;
12061
12125
  break;
12062
- } else if (lastToken?.type === 'list') {
12126
+ } else if ((lastToken === null || lastToken === void 0 ? void 0 : lastToken.type) === 'list') {
12063
12127
  // include continuation in nested list
12064
12128
  const oldToken = lastToken;
12065
12129
  const newText = oldToken.raw + '\n' + lines.join('\n');
@@ -12476,7 +12540,8 @@ class _Tokenizer {
12476
12540
  return outputLink(cap, link, cap[0], this.lexer);
12477
12541
  }
12478
12542
  }
12479
- emStrong(src, maskedSrc, prevChar = '') {
12543
+ emStrong(src, maskedSrc) {
12544
+ let prevChar = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
12480
12545
  let match = this.rules.inline.emStrongLDelim.exec(src);
12481
12546
  if (!match) return;
12482
12547
  // _ can't be between two alphanumerics. \p{L}\p{N} includes non-english alphabet/numbers as well
@@ -12608,8 +12673,9 @@ class _Tokenizer {
12608
12673
  // do extended autolink path validation
12609
12674
  let prevCapZero;
12610
12675
  do {
12676
+ var _this$rules$inline$_b, _this$rules$inline$_b2;
12611
12677
  prevCapZero = cap[0];
12612
- cap[0] = this.rules.inline._backpedal.exec(cap[0])?.[0] ?? '';
12678
+ 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
12679
  } while (prevCapZero !== cap[0]);
12614
12680
  text = escape$1(cap[0]);
12615
12681
  if (cap[1] === 'www.') {
@@ -12853,12 +12919,12 @@ const inline = {
12853
12919
  * Block Lexer
12854
12920
  */
12855
12921
  class _Lexer {
12856
- tokens;
12857
- options;
12858
- state;
12859
- tokenizer;
12860
- inlineQueue;
12861
12922
  constructor(options) {
12923
+ _defineProperty(this, "tokens", void 0);
12924
+ _defineProperty(this, "options", void 0);
12925
+ _defineProperty(this, "state", void 0);
12926
+ _defineProperty(this, "tokenizer", void 0);
12927
+ _defineProperty(this, "inlineQueue", void 0);
12862
12928
  // TokenList cannot be created in one go
12863
12929
  this.tokens = [];
12864
12930
  this.tokens.links = Object.create(null);
@@ -12926,7 +12992,9 @@ class _Lexer {
12926
12992
  this.inlineQueue = [];
12927
12993
  return this.tokens;
12928
12994
  }
12929
- blockTokens(src, tokens = [], lastParagraphClipped = false) {
12995
+ blockTokens(src) {
12996
+ let tokens = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
12997
+ let lastParagraphClipped = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
12930
12998
  if (this.options.pedantic) {
12931
12999
  src = src.replace(/\t/g, ' ').replace(/^ +$/gm, '');
12932
13000
  }
@@ -13056,8 +13124,9 @@ class _Lexer {
13056
13124
  }
13057
13125
  }
13058
13126
  if (this.state.top && (token = this.tokenizer.paragraph(cutSrc))) {
13127
+ var _lastToken;
13059
13128
  lastToken = tokens[tokens.length - 1];
13060
- if (lastParagraphClipped && lastToken?.type === 'paragraph') {
13129
+ if (lastParagraphClipped && ((_lastToken = lastToken) === null || _lastToken === void 0 ? void 0 : _lastToken.type) === 'paragraph') {
13061
13130
  lastToken.raw += '\n' + token.raw;
13062
13131
  lastToken.text += '\n' + token.text;
13063
13132
  this.inlineQueue.pop();
@@ -13096,7 +13165,8 @@ class _Lexer {
13096
13165
  this.state.top = true;
13097
13166
  return tokens;
13098
13167
  }
13099
- inline(src, tokens = []) {
13168
+ inline(src) {
13169
+ let tokens = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
13100
13170
  this.inlineQueue.push({
13101
13171
  src,
13102
13172
  tokens
@@ -13106,7 +13176,8 @@ class _Lexer {
13106
13176
  /**
13107
13177
  * Lexing/Compiling
13108
13178
  */
13109
- inlineTokens(src, tokens = []) {
13179
+ inlineTokens(src) {
13180
+ let tokens = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
13110
13181
  let token, lastToken, cutSrc;
13111
13182
  // String with links masked to avoid interference with em and strong
13112
13183
  let maskedSrc = src;
@@ -13274,41 +13345,47 @@ class _Lexer {
13274
13345
  * Renderer
13275
13346
  */
13276
13347
  class _Renderer {
13277
- options;
13278
- parser; // set by the parser
13348
+ // set by the parser
13279
13349
  constructor(options) {
13350
+ _defineProperty(this, "options", void 0);
13351
+ _defineProperty(this, "parser", void 0);
13280
13352
  this.options = options || _defaults;
13281
13353
  }
13282
13354
  space(token) {
13283
13355
  return '';
13284
13356
  }
13285
- code({
13286
- text,
13287
- lang,
13288
- escaped
13289
- }) {
13290
- const langString = (lang || '').match(/^\S*/)?.[0];
13357
+ code(_ref) {
13358
+ var _match;
13359
+ let {
13360
+ text,
13361
+ lang,
13362
+ escaped
13363
+ } = _ref;
13364
+ const langString = (_match = (lang || '').match(/^\S*/)) === null || _match === void 0 ? void 0 : _match[0];
13291
13365
  const code = text.replace(/\n$/, '') + '\n';
13292
13366
  if (!langString) {
13293
13367
  return '<pre><code>' + (escaped ? code : escape$1(code, true)) + '</code></pre>\n';
13294
13368
  }
13295
13369
  return '<pre><code class="language-' + escape$1(langString) + '">' + (escaped ? code : escape$1(code, true)) + '</code></pre>\n';
13296
13370
  }
13297
- blockquote({
13298
- tokens
13299
- }) {
13371
+ blockquote(_ref2) {
13372
+ let {
13373
+ tokens
13374
+ } = _ref2;
13300
13375
  const body = this.parser.parse(tokens);
13301
13376
  return `<blockquote>\n${body}</blockquote>\n`;
13302
13377
  }
13303
- html({
13304
- text
13305
- }) {
13378
+ html(_ref3) {
13379
+ let {
13380
+ text
13381
+ } = _ref3;
13306
13382
  return text;
13307
13383
  }
13308
- heading({
13309
- tokens,
13310
- depth
13311
- }) {
13384
+ heading(_ref4) {
13385
+ let {
13386
+ tokens,
13387
+ depth
13388
+ } = _ref4;
13312
13389
  return `<h${depth}>${this.parser.parseInline(tokens)}</h${depth}>\n`;
13313
13390
  }
13314
13391
  hr(token) {
@@ -13352,14 +13429,16 @@ class _Renderer {
13352
13429
  itemBody += this.parser.parse(item.tokens, !!item.loose);
13353
13430
  return `<li>${itemBody}</li>\n`;
13354
13431
  }
13355
- checkbox({
13356
- checked
13357
- }) {
13432
+ checkbox(_ref5) {
13433
+ let {
13434
+ checked
13435
+ } = _ref5;
13358
13436
  return '<input ' + (checked ? 'checked="" ' : '') + 'disabled="" type="checkbox">';
13359
13437
  }
13360
- paragraph({
13361
- tokens
13362
- }) {
13438
+ paragraph(_ref6) {
13439
+ let {
13440
+ tokens
13441
+ } = _ref6;
13363
13442
  return `<p>${this.parser.parseInline(tokens)}</p>\n`;
13364
13443
  }
13365
13444
  table(token) {
@@ -13386,9 +13465,10 @@ class _Renderer {
13386
13465
  if (body) body = `<tbody>${body}</tbody>`;
13387
13466
  return '<table>\n' + '<thead>\n' + header + '</thead>\n' + body + '</table>\n';
13388
13467
  }
13389
- tablerow({
13390
- text
13391
- }) {
13468
+ tablerow(_ref7) {
13469
+ let {
13470
+ text
13471
+ } = _ref7;
13392
13472
  return `<tr>\n${text}</tr>\n`;
13393
13473
  }
13394
13474
  tablecell(token) {
@@ -13400,34 +13480,39 @@ class _Renderer {
13400
13480
  /**
13401
13481
  * span level renderer
13402
13482
  */
13403
- strong({
13404
- tokens
13405
- }) {
13483
+ strong(_ref8) {
13484
+ let {
13485
+ tokens
13486
+ } = _ref8;
13406
13487
  return `<strong>${this.parser.parseInline(tokens)}</strong>`;
13407
13488
  }
13408
- em({
13409
- tokens
13410
- }) {
13489
+ em(_ref9) {
13490
+ let {
13491
+ tokens
13492
+ } = _ref9;
13411
13493
  return `<em>${this.parser.parseInline(tokens)}</em>`;
13412
13494
  }
13413
- codespan({
13414
- text
13415
- }) {
13495
+ codespan(_ref10) {
13496
+ let {
13497
+ text
13498
+ } = _ref10;
13416
13499
  return `<code>${text}</code>`;
13417
13500
  }
13418
13501
  br(token) {
13419
13502
  return '<br>';
13420
13503
  }
13421
- del({
13422
- tokens
13423
- }) {
13504
+ del(_ref11) {
13505
+ let {
13506
+ tokens
13507
+ } = _ref11;
13424
13508
  return `<del>${this.parser.parseInline(tokens)}</del>`;
13425
13509
  }
13426
- link({
13427
- href,
13428
- title,
13429
- tokens
13430
- }) {
13510
+ link(_ref12) {
13511
+ let {
13512
+ href,
13513
+ title,
13514
+ tokens
13515
+ } = _ref12;
13431
13516
  const text = this.parser.parseInline(tokens);
13432
13517
  const cleanHref = cleanUrl(href);
13433
13518
  if (cleanHref === null) {
@@ -13441,11 +13526,12 @@ class _Renderer {
13441
13526
  out += '>' + text + '</a>';
13442
13527
  return out;
13443
13528
  }
13444
- image({
13445
- href,
13446
- title,
13447
- text
13448
- }) {
13529
+ image(_ref13) {
13530
+ let {
13531
+ href,
13532
+ title,
13533
+ text
13534
+ } = _ref13;
13449
13535
  const cleanHref = cleanUrl(href);
13450
13536
  if (cleanHref === null) {
13451
13537
  return text;
@@ -13469,44 +13555,52 @@ class _Renderer {
13469
13555
  */
13470
13556
  class _TextRenderer {
13471
13557
  // no need for block level renderers
13472
- strong({
13473
- text
13474
- }) {
13558
+ strong(_ref14) {
13559
+ let {
13560
+ text
13561
+ } = _ref14;
13475
13562
  return text;
13476
13563
  }
13477
- em({
13478
- text
13479
- }) {
13564
+ em(_ref15) {
13565
+ let {
13566
+ text
13567
+ } = _ref15;
13480
13568
  return text;
13481
13569
  }
13482
- codespan({
13483
- text
13484
- }) {
13570
+ codespan(_ref16) {
13571
+ let {
13572
+ text
13573
+ } = _ref16;
13485
13574
  return text;
13486
13575
  }
13487
- del({
13488
- text
13489
- }) {
13576
+ del(_ref17) {
13577
+ let {
13578
+ text
13579
+ } = _ref17;
13490
13580
  return text;
13491
13581
  }
13492
- html({
13493
- text
13494
- }) {
13582
+ html(_ref18) {
13583
+ let {
13584
+ text
13585
+ } = _ref18;
13495
13586
  return text;
13496
13587
  }
13497
- text({
13498
- text
13499
- }) {
13588
+ text(_ref19) {
13589
+ let {
13590
+ text
13591
+ } = _ref19;
13500
13592
  return text;
13501
13593
  }
13502
- link({
13503
- text
13504
- }) {
13594
+ link(_ref20) {
13595
+ let {
13596
+ text
13597
+ } = _ref20;
13505
13598
  return '' + text;
13506
13599
  }
13507
- image({
13508
- text
13509
- }) {
13600
+ image(_ref21) {
13601
+ let {
13602
+ text
13603
+ } = _ref21;
13510
13604
  return '' + text;
13511
13605
  }
13512
13606
  br() {
@@ -13518,10 +13612,10 @@ class _TextRenderer {
13518
13612
  * Parsing & Compiling
13519
13613
  */
13520
13614
  class _Parser {
13521
- options;
13522
- renderer;
13523
- textRenderer;
13524
13615
  constructor(options) {
13616
+ _defineProperty(this, "options", void 0);
13617
+ _defineProperty(this, "renderer", void 0);
13618
+ _defineProperty(this, "textRenderer", void 0);
13525
13619
  this.options = options || _defaults;
13526
13620
  this.options.renderer = this.options.renderer || new _Renderer();
13527
13621
  this.renderer = this.options.renderer;
@@ -13546,7 +13640,8 @@ class _Parser {
13546
13640
  /**
13547
13641
  * Parse Loop
13548
13642
  */
13549
- parse(tokens, top = true) {
13643
+ parse(tokens) {
13644
+ let top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
13550
13645
  let out = '';
13551
13646
  for (let i = 0; i < tokens.length; i++) {
13552
13647
  const anyToken = tokens[i];
@@ -13732,12 +13827,11 @@ class _Parser {
13732
13827
  }
13733
13828
  }
13734
13829
  class _Hooks {
13735
- options;
13736
- block;
13737
13830
  constructor(options) {
13831
+ _defineProperty(this, "options", void 0);
13832
+ _defineProperty(this, "block", void 0);
13738
13833
  this.options = options || _defaults;
13739
13834
  }
13740
- static passThroughHooks = new Set(['preprocess', 'postprocess', 'processAllTokens']);
13741
13835
  /**
13742
13836
  * Process markdown before marked
13743
13837
  */
@@ -13769,19 +13863,20 @@ class _Hooks {
13769
13863
  return this.block ? _Parser.parse : _Parser.parseInline;
13770
13864
  }
13771
13865
  }
13866
+ _defineProperty(_Hooks, "passThroughHooks", new Set(['preprocess', 'postprocess', 'processAllTokens']));
13772
13867
  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);
13868
+ constructor() {
13869
+ _defineProperty(this, "defaults", _getDefaults());
13870
+ _defineProperty(this, "options", this.setOptions);
13871
+ _defineProperty(this, "parse", this.parseMarkdown(true));
13872
+ _defineProperty(this, "parseInline", this.parseMarkdown(false));
13873
+ _defineProperty(this, "Parser", _Parser);
13874
+ _defineProperty(this, "Renderer", _Renderer);
13875
+ _defineProperty(this, "TextRenderer", _TextRenderer);
13876
+ _defineProperty(this, "Lexer", _Lexer);
13877
+ _defineProperty(this, "Tokenizer", _Tokenizer);
13878
+ _defineProperty(this, "Hooks", _Hooks);
13879
+ this.use(...arguments);
13785
13880
  }
13786
13881
  /**
13787
13882
  * Run callback for every token
@@ -13812,8 +13907,9 @@ class Marked {
13812
13907
  }
13813
13908
  default:
13814
13909
  {
13910
+ var _this$defaults$extens, _this$defaults$extens2;
13815
13911
  const genericToken = token;
13816
- if (this.defaults.extensions?.childTokens?.[genericToken.type]) {
13912
+ 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
13913
  this.defaults.extensions.childTokens[genericToken.type].forEach(childTokens => {
13818
13914
  const tokens = genericToken[childTokens].flat(Infinity);
13819
13915
  values = values.concat(this.walkTokens(tokens, callback));
@@ -13826,11 +13922,14 @@ class Marked {
13826
13922
  }
13827
13923
  return values;
13828
13924
  }
13829
- use(...args) {
13925
+ use() {
13830
13926
  const extensions = this.defaults.extensions || {
13831
13927
  renderers: {},
13832
13928
  childTokens: {}
13833
13929
  };
13930
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13931
+ args[_key] = arguments[_key];
13932
+ }
13834
13933
  args.forEach(pack => {
13835
13934
  // copy options to new object
13836
13935
  const opts = {
@@ -13849,7 +13948,10 @@ class Marked {
13849
13948
  const prevRenderer = extensions.renderers[ext.name];
13850
13949
  if (prevRenderer) {
13851
13950
  // Replace extension with func to run new extension but fall back if false
13852
- extensions.renderers[ext.name] = function (...args) {
13951
+ extensions.renderers[ext.name] = function () {
13952
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
13953
+ args[_key2] = arguments[_key2];
13954
+ }
13853
13955
  let ret = ext.renderer.apply(this, args);
13854
13956
  if (ret === false) {
13855
13957
  ret = prevRenderer.apply(this, args);
@@ -13910,7 +14012,10 @@ class Marked {
13910
14012
  const rendererFunc = pack.renderer[rendererProp];
13911
14013
  const prevRenderer = renderer[rendererProp];
13912
14014
  // Replace renderer with func to run extension, but fall back if false
13913
- renderer[rendererProp] = (...args) => {
14015
+ renderer[rendererProp] = function () {
14016
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
14017
+ args[_key3] = arguments[_key3];
14018
+ }
13914
14019
  let ret = rendererFunc.apply(renderer, args);
13915
14020
  if (ret === false) {
13916
14021
  ret = prevRenderer.apply(renderer, args);
@@ -13935,7 +14040,10 @@ class Marked {
13935
14040
  const prevTokenizer = tokenizer[tokenizerProp];
13936
14041
  // Replace tokenizer with func to run extension, but fall back if false
13937
14042
  // @ts-expect-error cannot type tokenizer function dynamically
13938
- tokenizer[tokenizerProp] = (...args) => {
14043
+ tokenizer[tokenizerProp] = function () {
14044
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
14045
+ args[_key4] = arguments[_key4];
14046
+ }
13939
14047
  let ret = tokenizerFunc.apply(tokenizer, args);
13940
14048
  if (ret === false) {
13941
14049
  ret = prevTokenizer.apply(tokenizer, args);
@@ -13972,7 +14080,10 @@ class Marked {
13972
14080
  };
13973
14081
  } else {
13974
14082
  // @ts-expect-error cannot type hook function dynamically
13975
- hooks[hooksProp] = (...args) => {
14083
+ hooks[hooksProp] = function () {
14084
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
14085
+ args[_key5] = arguments[_key5];
14086
+ }
13976
14087
  let ret = hooksFunc.apply(hooks, args);
13977
14088
  if (ret === false) {
13978
14089
  ret = prevHook.apply(hooks, args);
@@ -14011,10 +14122,10 @@ class Marked {
14011
14122
  return this;
14012
14123
  }
14013
14124
  lexer(src, options) {
14014
- return _Lexer.lex(src, options ?? this.defaults);
14125
+ return _Lexer.lex(src, options !== null && options !== void 0 ? options : this.defaults);
14015
14126
  }
14016
14127
  parser(tokens, options) {
14017
- return _Parser.parse(tokens, options ?? this.defaults);
14128
+ return _Parser.parse(tokens, options !== null && options !== void 0 ? options : this.defaults);
14018
14129
  }
14019
14130
  parseMarkdown(blockType) {
14020
14131
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -14109,8 +14220,8 @@ marked.defaults = _defaults;
14109
14220
  /**
14110
14221
  * Use Extension
14111
14222
  */
14112
- marked.use = function (...args) {
14113
- markedInstance.use(...args);
14223
+ marked.use = function () {
14224
+ markedInstance.use(...arguments);
14114
14225
  marked.defaults = markedInstance.defaults;
14115
14226
  changeDefaults(marked.defaults);
14116
14227
  return marked;
@@ -14444,14 +14555,14 @@ var chat_component = normalizeComponent(
14444
14555
  ;// CONCATENATED MODULE: ./node_modules/js-cookie/dist/js.cookie.mjs
14445
14556
  /*! js-cookie v3.0.5 | MIT */
14446
14557
  /* eslint-disable no-var */
14447
- function js_cookie_assign(target) {
14558
+ function js_cookie_assign (target) {
14448
14559
  for (var i = 1; i < arguments.length; i++) {
14449
14560
  var source = arguments[i];
14450
14561
  for (var key in source) {
14451
14562
  target[key] = source[key];
14452
14563
  }
14453
14564
  }
14454
- return target;
14565
+ return target
14455
14566
  }
14456
14567
  /* eslint-enable no-var */
14457
14568
 
@@ -14461,37 +14572,48 @@ var defaultConverter = {
14461
14572
  if (value[0] === '"') {
14462
14573
  value = value.slice(1, -1);
14463
14574
  }
14464
- return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
14575
+ return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
14465
14576
  },
14466
14577
  write: function (value) {
14467
- return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
14578
+ return encodeURIComponent(value).replace(
14579
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
14580
+ decodeURIComponent
14581
+ )
14468
14582
  }
14469
14583
  };
14470
14584
  /* eslint-enable no-var */
14471
14585
 
14472
14586
  /* eslint-disable no-var */
14473
14587
 
14474
- function init(converter, defaultAttributes) {
14475
- function set(name, value, attributes) {
14588
+ function init (converter, defaultAttributes) {
14589
+ function set (name, value, attributes) {
14476
14590
  if (typeof document === 'undefined') {
14477
- return;
14591
+ return
14478
14592
  }
14593
+
14479
14594
  attributes = js_cookie_assign({}, defaultAttributes, attributes);
14595
+
14480
14596
  if (typeof attributes.expires === 'number') {
14481
14597
  attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
14482
14598
  }
14483
14599
  if (attributes.expires) {
14484
14600
  attributes.expires = attributes.expires.toUTCString();
14485
14601
  }
14486
- name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
14602
+
14603
+ name = encodeURIComponent(name)
14604
+ .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
14605
+ .replace(/[()]/g, escape);
14606
+
14487
14607
  var stringifiedAttributes = '';
14488
14608
  for (var attributeName in attributes) {
14489
14609
  if (!attributes[attributeName]) {
14490
- continue;
14610
+ continue
14491
14611
  }
14612
+
14492
14613
  stringifiedAttributes += '; ' + attributeName;
14614
+
14493
14615
  if (attributes[attributeName] === true) {
14494
- continue;
14616
+ continue
14495
14617
  }
14496
14618
 
14497
14619
  // Considers RFC 6265 section 5.2:
@@ -14503,11 +14625,14 @@ function init(converter, defaultAttributes) {
14503
14625
  // ...
14504
14626
  stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
14505
14627
  }
14506
- return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;
14628
+
14629
+ return (document.cookie =
14630
+ name + '=' + converter.write(value, name) + stringifiedAttributes)
14507
14631
  }
14508
- function get(name) {
14509
- if (typeof document === 'undefined' || arguments.length && !name) {
14510
- return;
14632
+
14633
+ function get (name) {
14634
+ if (typeof document === 'undefined' || (arguments.length && !name)) {
14635
+ return
14511
14636
  }
14512
14637
 
14513
14638
  // To prevent the for loop in the first place assign an empty array
@@ -14517,45 +14642,52 @@ function init(converter, defaultAttributes) {
14517
14642
  for (var i = 0; i < cookies.length; i++) {
14518
14643
  var parts = cookies[i].split('=');
14519
14644
  var value = parts.slice(1).join('=');
14645
+
14520
14646
  try {
14521
14647
  var found = decodeURIComponent(parts[0]);
14522
14648
  jar[found] = converter.read(value, found);
14649
+
14523
14650
  if (name === found) {
14524
- break;
14651
+ break
14525
14652
  }
14526
14653
  } catch (e) {}
14527
14654
  }
14528
- return name ? jar[name] : jar;
14655
+
14656
+ return name ? jar[name] : jar
14529
14657
  }
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)
14658
+
14659
+ return Object.create(
14660
+ {
14661
+ set,
14662
+ get,
14663
+ remove: function (name, attributes) {
14664
+ set(
14665
+ name,
14666
+ '',
14667
+ js_cookie_assign({}, attributes, {
14668
+ expires: -1
14669
+ })
14670
+ );
14671
+ },
14672
+ withAttributes: function (attributes) {
14673
+ return init(this.converter, js_cookie_assign({}, this.attributes, attributes))
14674
+ },
14675
+ withConverter: function (converter) {
14676
+ return init(js_cookie_assign({}, this.converter, converter), this.attributes)
14677
+ }
14547
14678
  },
14548
- converter: {
14549
- value: Object.freeze(converter)
14679
+ {
14680
+ attributes: { value: Object.freeze(defaultAttributes) },
14681
+ converter: { value: Object.freeze(converter) }
14550
14682
  }
14551
- });
14683
+ )
14552
14684
  }
14553
- var api = init(defaultConverter, {
14554
- path: '/'
14555
- });
14685
+
14686
+ var api = init(defaultConverter, { path: '/' });
14556
14687
  /* eslint-enable no-var */
14557
14688
 
14558
14689
 
14690
+
14559
14691
  ;// 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
14692
 
14561
14693
 
@@ -14660,10 +14792,10 @@ var api = init(defaultConverter, {
14660
14792
  });
14661
14793
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
14662
14794
  /* 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
14795
+ ;// 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=4661f078&prod&lang=scss&scoped=true
14664
14796
  // extracted by mini-css-extract-plugin
14665
14797
 
14666
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=3f590f5c&prod&lang=scss&scoped=true
14798
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=4661f078&prod&lang=scss&scoped=true
14667
14799
 
14668
14800
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue
14669
14801
 
@@ -14680,7 +14812,7 @@ var main_component = normalizeComponent(
14680
14812
  staticRenderFns,
14681
14813
  false,
14682
14814
  null,
14683
- "3f590f5c",
14815
+ "4661f078",
14684
14816
  null
14685
14817
 
14686
14818
  )