vue-layout-gitcode 1.1.16 → 1.1.18

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, openBlock, createBlock, unref, normalizeProps, mergeProps, createElementBlock, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, h, getCurrentInstance, effectScope, onMounted, onUnmounted, shallowRef, ref, onBeforeMount, watch, Fragment, isRef, createVNode, Text, provide, withCtx, toDisplayString as toDisplayString$1, createCommentVNode, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
1
+ import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
2
2
  import { Button } from "vue-devui-lal/button";
3
3
  import { Popover } from "vue-devui-lal/popover";
4
4
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -91,7 +91,6 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
91
91
  };
92
92
  }
93
93
  });
94
- const index_vue_vue_type_style_index_0_scoped_2e3caaf8_lang = "";
95
94
  const _export_sfc = (sfc, props) => {
96
95
  const target = sfc.__vccOpts || sfc;
97
96
  for (const [key, val] of props) {
@@ -99,7 +98,7 @@ const _export_sfc = (sfc, props) => {
99
98
  }
100
99
  return target;
101
100
  };
102
- const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-2e3caaf8"]]);
101
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-gitcode-layout-lib"]]);
103
102
  const defaultConfig = {
104
103
  VITE_ENV: "production",
105
104
  VITE_HOST: "https://gitcode.com",
@@ -252,8 +251,7 @@ function sha1$1(s) {
252
251
  const l = (data.length + 8 >>> 6 << 4) + 16;
253
252
  var s = new Uint8Array(l << 2);
254
253
  s.set(new Uint8Array(data.buffer)), s = new Uint32Array(s.buffer);
255
- for (t2 = new DataView(s.buffer), i = 0; i < l; i++)
256
- s[i] = t2.getUint32(i << 2);
254
+ for (t2 = new DataView(s.buffer), i = 0; i < l; i++) s[i] = t2.getUint32(i << 2);
257
255
  s[data.length >> 2] |= 128 << 24 - (data.length & 3) * 8;
258
256
  s[l - 1] = data.length << 3;
259
257
  const w = [];
@@ -282,12 +280,10 @@ function sha1$1(s) {
282
280
  for (j = 0; j < 80; j++) {
283
281
  w[j] = j < 16 ? s[i + j] : rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1), t2 = rol(m[0], 5) + f[j / 20 | 0]() + m[4] + w[j] + k[j / 20 | 0] | 0, m[1] = rol(m[1], 30), m.pop(), m.unshift(t2);
284
282
  }
285
- for (j = 0; j < 5; j++)
286
- m[j] = m[j] + o[j] | 0;
283
+ for (j = 0; j < 5; j++) m[j] = m[j] + o[j] | 0;
287
284
  }
288
285
  t2 = new DataView(new Uint32Array(m).buffer);
289
- for (var i = 0; i < 5; i++)
290
- m[i] = t2.getUint32(i << 2);
286
+ for (var i = 0; i < 5; i++) m[i] = t2.getUint32(i << 2);
291
287
  const hex = Array.prototype.map.call(new Uint8Array(new Uint32Array(m).buffer), function(e) {
292
288
  return (e < 16 ? "0" : "") + e.toString(16);
293
289
  }).join("");
@@ -299,15 +295,12 @@ function encodeUTF8(s) {
299
295
  let c;
300
296
  let x;
301
297
  for (i = 0; i < s.length; i++) {
302
- if ((c = s.charCodeAt(i)) < 128)
303
- r.push(c);
304
- else if (c < 2048)
305
- r.push(192 + (c >> 6 & 31), 128 + (c & 63));
298
+ if ((c = s.charCodeAt(i)) < 128) r.push(c);
299
+ else if (c < 2048) r.push(192 + (c >> 6 & 31), 128 + (c & 63));
306
300
  else {
307
301
  if ((x = c ^ 55296) >> 10 === 0) {
308
302
  c = (x << 10) + (s.charCodeAt(++i) ^ 56320) + 65536, r.push(240 + (c >> 18 & 7), 128 + (c >> 12 & 63));
309
- } else
310
- r.push(224 + (c >> 12 & 15));
303
+ } else r.push(224 + (c >> 12 & 15));
311
304
  r.push(128 + (c >> 6 & 63), 128 + (c & 63));
312
305
  }
313
306
  }
@@ -315,8 +308,7 @@ function encodeUTF8(s) {
315
308
  }
316
309
  function udeskInit(config = {}) {
317
310
  var _a, _b, _c;
318
- if (window.ud)
319
- return;
311
+ if (window.ud) return;
320
312
  const randomNum = generateRandomString(16);
321
313
  const nowTimeStr = Date.now().toString();
322
314
  const userInfo = localStorage$2.getItem("userInfo") || "";
@@ -373,16 +365,8 @@ var SceneValue = /* @__PURE__ */ ((SceneValue2) => {
373
365
  const REPO_PAGE_SIZE = {
374
366
  // 仓库页面头部高度
375
367
  HEADERS_HEIGHT: 56,
376
- // 仓库页面头部高度(包含安全区域)
377
- HEADERS_SAFE_HEIGHT: 96,
378
368
  // 仓库页面tabs菜单高度
379
- REPO_INFO_HEIGHT: 52,
380
- // 仓库页面文件列表距离顶部距离
381
- GAP_TOP: 32,
382
- // 仓库页面文件列表距离底部距离
383
- GAP_BOTTOM: 36,
384
- // 仓库页面文件列表距离左右距离
385
- PADDING_NORMAl: 16
369
+ REPO_INFO_HEIGHT: 52
386
370
  };
387
371
  var ToolsFloatDisplayItem = /* @__PURE__ */ ((ToolsFloatDisplayItem2) => {
388
372
  ToolsFloatDisplayItem2["GROWTH_CENTER"] = "0301";
@@ -452,25 +436,23 @@ const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
452
436
  const UTM_SOURCE = "utm_source";
453
437
  const PASSPORT_PREFIX = "/uc";
454
438
  const AUTH_WINDOW = "auth_window";
455
- /*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
456
- function _toConsumableArray(arr) {
457
- if (Array.isArray(arr)) {
458
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
459
- arr2[i] = arr[i];
460
- }
461
- return arr2;
462
- } else {
463
- return Array.from(arr);
464
- }
465
- }
466
- var hasOwnProperty$c = Object.hasOwnProperty, setPrototypeOf = Object.setPrototypeOf, isFrozen = Object.isFrozen, getPrototypeOf$1 = Object.getPrototypeOf, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
467
- var freeze = Object.freeze, seal = Object.seal, create$1 = Object.create;
468
- var _ref = typeof Reflect !== "undefined" && Reflect, apply$1 = _ref.apply, construct = _ref.construct;
469
- if (!apply$1) {
470
- apply$1 = function apply2(fun, thisValue, args) {
471
- return fun.apply(thisValue, args);
472
- };
473
- }
439
+ /*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
440
+ const {
441
+ entries,
442
+ setPrototypeOf,
443
+ isFrozen,
444
+ getPrototypeOf: getPrototypeOf$1,
445
+ getOwnPropertyDescriptor
446
+ } = Object;
447
+ let {
448
+ freeze,
449
+ seal,
450
+ create: create$1
451
+ } = Object;
452
+ let {
453
+ apply: apply$1,
454
+ construct
455
+ } = typeof Reflect !== "undefined" && Reflect;
474
456
  if (!freeze) {
475
457
  freeze = function freeze2(x) {
476
458
  return x;
@@ -481,24 +463,36 @@ if (!seal) {
481
463
  return x;
482
464
  };
483
465
  }
466
+ if (!apply$1) {
467
+ apply$1 = function apply2(fun, thisValue, args) {
468
+ return fun.apply(thisValue, args);
469
+ };
470
+ }
484
471
  if (!construct) {
485
472
  construct = function construct2(Func, args) {
486
- return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();
473
+ return new Func(...args);
487
474
  };
488
475
  }
489
- var arrayForEach = unapply(Array.prototype.forEach);
490
- var arrayPop = unapply(Array.prototype.pop);
491
- var arrayPush$3 = unapply(Array.prototype.push);
492
- var stringToLowerCase = unapply(String.prototype.toLowerCase);
493
- var stringMatch = unapply(String.prototype.match);
494
- var stringReplace = unapply(String.prototype.replace);
495
- var stringIndexOf = unapply(String.prototype.indexOf);
496
- var stringTrim = unapply(String.prototype.trim);
497
- var regExpTest = unapply(RegExp.prototype.test);
498
- var typeErrorCreate = unconstruct(TypeError);
476
+ const arrayForEach = unapply(Array.prototype.forEach);
477
+ const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
478
+ const arrayPop = unapply(Array.prototype.pop);
479
+ const arrayPush$3 = unapply(Array.prototype.push);
480
+ const arraySplice = unapply(Array.prototype.splice);
481
+ const stringToLowerCase = unapply(String.prototype.toLowerCase);
482
+ const stringToString = unapply(String.prototype.toString);
483
+ const stringMatch = unapply(String.prototype.match);
484
+ const stringReplace = unapply(String.prototype.replace);
485
+ const stringIndexOf = unapply(String.prototype.indexOf);
486
+ const stringTrim = unapply(String.prototype.trim);
487
+ const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
488
+ const regExpTest = unapply(RegExp.prototype.test);
489
+ const typeErrorCreate = unconstruct(TypeError);
499
490
  function unapply(func) {
500
491
  return function(thisArg) {
501
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
492
+ if (thisArg instanceof RegExp) {
493
+ thisArg.lastIndex = 0;
494
+ }
495
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
502
496
  args[_key - 1] = arguments[_key];
503
497
  }
504
498
  return apply$1(func, thisArg, args);
@@ -506,21 +500,22 @@ function unapply(func) {
506
500
  }
507
501
  function unconstruct(func) {
508
502
  return function() {
509
- for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
503
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
510
504
  args[_key2] = arguments[_key2];
511
505
  }
512
506
  return construct(func, args);
513
507
  };
514
508
  }
515
509
  function addToSet(set, array) {
510
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
516
511
  if (setPrototypeOf) {
517
512
  setPrototypeOf(set, null);
518
513
  }
519
- var l = array.length;
514
+ let l = array.length;
520
515
  while (l--) {
521
- var element = array[l];
516
+ let element = array[l];
522
517
  if (typeof element === "string") {
523
- var lcElement = stringToLowerCase(element);
518
+ const lcElement = transformCaseFunc(element);
524
519
  if (lcElement !== element) {
525
520
  if (!isFrozen(array)) {
526
521
  array[l] = lcElement;
@@ -532,19 +527,34 @@ function addToSet(set, array) {
532
527
  }
533
528
  return set;
534
529
  }
530
+ function cleanArray(array) {
531
+ for (let index2 = 0; index2 < array.length; index2++) {
532
+ const isPropertyExist = objectHasOwnProperty(array, index2);
533
+ if (!isPropertyExist) {
534
+ array[index2] = null;
535
+ }
536
+ }
537
+ return array;
538
+ }
535
539
  function clone(object) {
536
- var newObject = create$1(null);
537
- var property = void 0;
538
- for (property in object) {
539
- if (apply$1(hasOwnProperty$c, object, [property])) {
540
- newObject[property] = object[property];
540
+ const newObject = create$1(null);
541
+ for (const [property, value] of entries(object)) {
542
+ const isPropertyExist = objectHasOwnProperty(object, property);
543
+ if (isPropertyExist) {
544
+ if (Array.isArray(value)) {
545
+ newObject[property] = cleanArray(value);
546
+ } else if (value && typeof value === "object" && value.constructor === Object) {
547
+ newObject[property] = clone(value);
548
+ } else {
549
+ newObject[property] = value;
550
+ }
541
551
  }
542
552
  }
543
553
  return newObject;
544
554
  }
545
555
  function lookupGetter(object, prop) {
546
556
  while (object !== null) {
547
- var desc = getOwnPropertyDescriptor(object, prop);
557
+ const desc = getOwnPropertyDescriptor(object, prop);
548
558
  if (desc) {
549
559
  if (desc.get) {
550
560
  return unapply(desc.get);
@@ -555,69 +565,79 @@ function lookupGetter(object, prop) {
555
565
  }
556
566
  object = getPrototypeOf$1(object);
557
567
  }
558
- function fallbackValue(element) {
559
- console.warn("fallback value for", element);
568
+ function fallbackValue() {
560
569
  return null;
561
570
  }
562
571
  return fallbackValue;
563
572
  }
564
- var html = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
565
- var svg = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
566
- var svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
567
- var svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
568
- var mathMl = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]);
569
- var mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
570
- var text = freeze(["#text"]);
571
- var html$1 = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]);
572
- var svg$1 = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
573
- var mathMl$1 = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
574
- var xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
575
- var MUSTACHE_EXPR = seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm);
576
- var ERB_EXPR = seal(/<%[\s\S]*|[\s\S]*%>/gm);
577
- var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/);
578
- var ARIA_ATTR = seal(/^aria-[\-\w]+$/);
579
- var IS_ALLOWED_URI = seal(
580
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
573
+ const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
574
+ const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
575
+ const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
576
+ const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
577
+ const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
578
+ const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
579
+ const text = freeze(["#text"]);
580
+ const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
581
+ const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
582
+ const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
583
+ const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
584
+ const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
585
+ const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
586
+ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
587
+ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
588
+ const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
589
+ const IS_ALLOWED_URI = seal(
590
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
581
591
  // eslint-disable-line no-useless-escape
582
592
  );
583
- var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
584
- var ATTR_WHITESPACE = seal(
593
+ const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
594
+ const ATTR_WHITESPACE = seal(
585
595
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
586
596
  // eslint-disable-line no-control-regex
587
597
  );
588
- var DOCTYPE_NAME = seal(/^html$/i);
589
- var _typeof$2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
590
- return typeof obj;
591
- } : function(obj) {
592
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
598
+ const DOCTYPE_NAME = seal(/^html$/i);
599
+ const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
600
+ var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
601
+ __proto__: null,
602
+ ARIA_ATTR,
603
+ ATTR_WHITESPACE,
604
+ CUSTOM_ELEMENT,
605
+ DATA_ATTR,
606
+ DOCTYPE_NAME,
607
+ ERB_EXPR,
608
+ IS_ALLOWED_URI,
609
+ IS_SCRIPT_OR_DATA,
610
+ MUSTACHE_EXPR,
611
+ TMPLIT_EXPR
612
+ });
613
+ const NODE_TYPE = {
614
+ element: 1,
615
+ text: 3,
616
+ // Deprecated
617
+ progressingInstruction: 7,
618
+ comment: 8,
619
+ document: 9
593
620
  };
594
- function _toConsumableArray$1(arr) {
595
- if (Array.isArray(arr)) {
596
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
597
- arr2[i] = arr[i];
598
- }
599
- return arr2;
600
- } else {
601
- return Array.from(arr);
602
- }
603
- }
604
- var getGlobal = function getGlobal2() {
621
+ const getGlobal = function getGlobal2() {
605
622
  return typeof window === "undefined" ? null : window;
606
623
  };
607
- var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, document2) {
608
- if ((typeof trustedTypes === "undefined" ? "undefined" : _typeof$2(trustedTypes)) !== "object" || typeof trustedTypes.createPolicy !== "function") {
624
+ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
625
+ if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") {
609
626
  return null;
610
627
  }
611
- var suffix = null;
612
- var ATTR_NAME = "data-tt-policy-suffix";
613
- if (document2.currentScript && document2.currentScript.hasAttribute(ATTR_NAME)) {
614
- suffix = document2.currentScript.getAttribute(ATTR_NAME);
628
+ let suffix = null;
629
+ const ATTR_NAME = "data-tt-policy-suffix";
630
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
631
+ suffix = purifyHostElement.getAttribute(ATTR_NAME);
615
632
  }
616
- var policyName = "dompurify" + (suffix ? "#" + suffix : "");
633
+ const policyName = "dompurify" + (suffix ? "#" + suffix : "");
617
634
  try {
618
635
  return trustedTypes.createPolicy(policyName, {
619
- createHTML: function createHTML(html$$1) {
620
- return html$$1;
636
+ createHTML(html2) {
637
+ return html2;
638
+ },
639
+ createScriptURL(scriptUrl) {
640
+ return scriptUrl;
621
641
  }
622
642
  });
623
643
  } catch (_) {
@@ -625,49 +645,87 @@ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes
625
645
  return null;
626
646
  }
627
647
  };
628
- function createDOMPurify() {
629
- var window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
630
- var DOMPurify = function DOMPurify2(root2) {
631
- return createDOMPurify(root2);
648
+ const _createHooksMap = function _createHooksMap2() {
649
+ return {
650
+ afterSanitizeAttributes: [],
651
+ afterSanitizeElements: [],
652
+ afterSanitizeShadowDOM: [],
653
+ beforeSanitizeAttributes: [],
654
+ beforeSanitizeElements: [],
655
+ beforeSanitizeShadowDOM: [],
656
+ uponSanitizeAttribute: [],
657
+ uponSanitizeElement: [],
658
+ uponSanitizeShadowNode: []
632
659
  };
633
- DOMPurify.version = "2.3.6";
660
+ };
661
+ function createDOMPurify() {
662
+ let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
663
+ const DOMPurify = (root2) => createDOMPurify(root2);
664
+ DOMPurify.version = "3.2.5";
634
665
  DOMPurify.removed = [];
635
- if (!window2 || !window2.document || window2.document.nodeType !== 9) {
666
+ if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
636
667
  DOMPurify.isSupported = false;
637
668
  return DOMPurify;
638
669
  }
639
- var originalDocument = window2.document;
640
- var document2 = window2.document;
641
- var DocumentFragment = window2.DocumentFragment, HTMLTemplateElement = window2.HTMLTemplateElement, Node = window2.Node, Element = window2.Element, NodeFilter = window2.NodeFilter, _window$NamedNodeMap = window2.NamedNodeMap, NamedNodeMap = _window$NamedNodeMap === void 0 ? window2.NamedNodeMap || window2.MozNamedAttrMap : _window$NamedNodeMap, HTMLFormElement = window2.HTMLFormElement, DOMParser = window2.DOMParser, trustedTypes = window2.trustedTypes;
642
- var ElementPrototype = Element.prototype;
643
- var cloneNode = lookupGetter(ElementPrototype, "cloneNode");
644
- var getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
645
- var getChildNodes = lookupGetter(ElementPrototype, "childNodes");
646
- var getParentNode = lookupGetter(ElementPrototype, "parentNode");
670
+ let {
671
+ document: document2
672
+ } = window2;
673
+ const originalDocument = document2;
674
+ const currentScript = originalDocument.currentScript;
675
+ const {
676
+ DocumentFragment,
677
+ HTMLTemplateElement,
678
+ Node,
679
+ Element,
680
+ NodeFilter,
681
+ NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
682
+ HTMLFormElement,
683
+ DOMParser,
684
+ trustedTypes
685
+ } = window2;
686
+ const ElementPrototype = Element.prototype;
687
+ const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
688
+ const remove = lookupGetter(ElementPrototype, "remove");
689
+ const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
690
+ const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
691
+ const getParentNode = lookupGetter(ElementPrototype, "parentNode");
647
692
  if (typeof HTMLTemplateElement === "function") {
648
- var template = document2.createElement("template");
693
+ const template = document2.createElement("template");
649
694
  if (template.content && template.content.ownerDocument) {
650
695
  document2 = template.content.ownerDocument;
651
696
  }
652
697
  }
653
- var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);
654
- var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML("") : "";
655
- var _document = document2, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
656
- var importNode = originalDocument.importNode;
657
- var documentMode = {};
658
- try {
659
- documentMode = clone(document2).documentMode ? document2.documentMode : {};
660
- } catch (_) {
661
- }
662
- var hooks = {};
663
- DOMPurify.isSupported = typeof getParentNode === "function" && implementation && typeof implementation.createHTMLDocument !== "undefined" && documentMode !== 9;
664
- var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR, ERB_EXPR$$1 = ERB_EXPR, DATA_ATTR$$1 = DATA_ATTR, ARIA_ATTR$$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;
665
- var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;
666
- var ALLOWED_TAGS = null;
667
- var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));
668
- var ALLOWED_ATTR = null;
669
- var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));
670
- var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {
698
+ let trustedTypesPolicy;
699
+ let emptyHTML = "";
700
+ const {
701
+ implementation,
702
+ createNodeIterator,
703
+ createDocumentFragment,
704
+ getElementsByTagName
705
+ } = document2;
706
+ const {
707
+ importNode
708
+ } = originalDocument;
709
+ let hooks = _createHooksMap();
710
+ DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
711
+ const {
712
+ MUSTACHE_EXPR: MUSTACHE_EXPR2,
713
+ ERB_EXPR: ERB_EXPR2,
714
+ TMPLIT_EXPR: TMPLIT_EXPR2,
715
+ DATA_ATTR: DATA_ATTR2,
716
+ ARIA_ATTR: ARIA_ATTR2,
717
+ IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA2,
718
+ ATTR_WHITESPACE: ATTR_WHITESPACE2,
719
+ CUSTOM_ELEMENT: CUSTOM_ELEMENT2
720
+ } = EXPRESSIONS;
721
+ let {
722
+ IS_ALLOWED_URI: IS_ALLOWED_URI$1
723
+ } = EXPRESSIONS;
724
+ let ALLOWED_TAGS = null;
725
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
726
+ let ALLOWED_ATTR = null;
727
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
728
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create$1(null, {
671
729
  tagNameCheck: {
672
730
  writable: true,
673
731
  configurable: false,
@@ -687,72 +745,92 @@ function createDOMPurify() {
687
745
  value: false
688
746
  }
689
747
  }));
690
- var FORBID_TAGS = null;
691
- var FORBID_ATTR = null;
692
- var ALLOW_ARIA_ATTR = true;
693
- var ALLOW_DATA_ATTR = true;
694
- var ALLOW_UNKNOWN_PROTOCOLS = false;
695
- var SAFE_FOR_TEMPLATES = false;
696
- var WHOLE_DOCUMENT = false;
697
- var SET_CONFIG = false;
698
- var FORCE_BODY = false;
699
- var RETURN_DOM = false;
700
- var RETURN_DOM_FRAGMENT = false;
701
- var RETURN_TRUSTED_TYPE = false;
702
- var SANITIZE_DOM = true;
703
- var KEEP_CONTENT = true;
704
- var IN_PLACE = false;
705
- var USE_PROFILES = {};
706
- var FORBID_CONTENTS = null;
707
- var DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
708
- var DATA_URI_TAGS = null;
709
- var DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
710
- var URI_SAFE_ATTRIBUTES = null;
711
- var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
712
- var MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
713
- var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
714
- var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
715
- var NAMESPACE = HTML_NAMESPACE;
716
- var IS_EMPTY_INPUT = false;
717
- var PARSER_MEDIA_TYPE = void 0;
718
- var SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
719
- var DEFAULT_PARSER_MEDIA_TYPE = "text/html";
720
- var transformCaseFunc = void 0;
721
- var CONFIG = null;
722
- var formElement = document2.createElement("form");
723
- var isRegexOrFunction = function isRegexOrFunction2(testValue) {
748
+ let FORBID_TAGS = null;
749
+ let FORBID_ATTR = null;
750
+ let ALLOW_ARIA_ATTR = true;
751
+ let ALLOW_DATA_ATTR = true;
752
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
753
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
754
+ let SAFE_FOR_TEMPLATES = false;
755
+ let SAFE_FOR_XML = true;
756
+ let WHOLE_DOCUMENT = false;
757
+ let SET_CONFIG = false;
758
+ let FORCE_BODY = false;
759
+ let RETURN_DOM = false;
760
+ let RETURN_DOM_FRAGMENT = false;
761
+ let RETURN_TRUSTED_TYPE = false;
762
+ let SANITIZE_DOM = true;
763
+ let SANITIZE_NAMED_PROPS = false;
764
+ const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
765
+ let KEEP_CONTENT = true;
766
+ let IN_PLACE = false;
767
+ let USE_PROFILES = {};
768
+ let FORBID_CONTENTS = null;
769
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
770
+ let DATA_URI_TAGS = null;
771
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
772
+ let URI_SAFE_ATTRIBUTES = null;
773
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
774
+ const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
775
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
776
+ const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
777
+ let NAMESPACE = HTML_NAMESPACE;
778
+ let IS_EMPTY_INPUT = false;
779
+ let ALLOWED_NAMESPACES = null;
780
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
781
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
782
+ let HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
783
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
784
+ let PARSER_MEDIA_TYPE = null;
785
+ const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
786
+ const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
787
+ let transformCaseFunc = null;
788
+ let CONFIG = null;
789
+ const formElement = document2.createElement("form");
790
+ const isRegexOrFunction = function isRegexOrFunction2(testValue) {
724
791
  return testValue instanceof RegExp || testValue instanceof Function;
725
792
  };
726
- var _parseConfig = function _parseConfig2(cfg) {
793
+ const _parseConfig = function _parseConfig2() {
794
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
727
795
  if (CONFIG && CONFIG === cfg) {
728
796
  return;
729
797
  }
730
- if (!cfg || (typeof cfg === "undefined" ? "undefined" : _typeof$2(cfg)) !== "object") {
798
+ if (!cfg || typeof cfg !== "object") {
731
799
  cfg = {};
732
800
  }
733
801
  cfg = clone(cfg);
734
- ALLOWED_TAGS = "ALLOWED_TAGS" in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;
735
- ALLOWED_ATTR = "ALLOWED_ATTR" in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;
736
- URI_SAFE_ATTRIBUTES = "ADD_URI_SAFE_ATTR" in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;
737
- DATA_URI_TAGS = "ADD_DATA_URI_TAGS" in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;
738
- FORBID_CONTENTS = "FORBID_CONTENTS" in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;
739
- FORBID_TAGS = "FORBID_TAGS" in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};
740
- FORBID_ATTR = "FORBID_ATTR" in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};
741
- USE_PROFILES = "USE_PROFILES" in cfg ? cfg.USE_PROFILES : false;
802
+ PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
803
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
804
+ transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
805
+ ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
806
+ ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
807
+ ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
808
+ URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
809
+ DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
810
+ FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
811
+ FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
812
+ FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
813
+ USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
742
814
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
743
815
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
744
816
  ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
817
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
745
818
  SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
819
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
746
820
  WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
747
821
  RETURN_DOM = cfg.RETURN_DOM || false;
748
822
  RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
749
823
  RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
750
824
  FORCE_BODY = cfg.FORCE_BODY || false;
751
825
  SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
826
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
752
827
  KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
753
828
  IN_PLACE = cfg.IN_PLACE || false;
754
- IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;
829
+ IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
755
830
  NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
831
+ MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
832
+ HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
833
+ CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
756
834
  if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
757
835
  CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
758
836
  }
@@ -762,11 +840,6 @@ function createDOMPurify() {
762
840
  if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") {
763
841
  CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
764
842
  }
765
- PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
766
- SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;
767
- transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? function(x) {
768
- return x;
769
- } : stringToLowerCase;
770
843
  if (SAFE_FOR_TEMPLATES) {
771
844
  ALLOW_DATA_ATTR = false;
772
845
  }
@@ -774,25 +847,25 @@ function createDOMPurify() {
774
847
  RETURN_DOM = true;
775
848
  }
776
849
  if (USE_PROFILES) {
777
- ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));
850
+ ALLOWED_TAGS = addToSet({}, text);
778
851
  ALLOWED_ATTR = [];
779
852
  if (USE_PROFILES.html === true) {
780
- addToSet(ALLOWED_TAGS, html);
781
- addToSet(ALLOWED_ATTR, html$1);
853
+ addToSet(ALLOWED_TAGS, html$1);
854
+ addToSet(ALLOWED_ATTR, html);
782
855
  }
783
856
  if (USE_PROFILES.svg === true) {
784
- addToSet(ALLOWED_TAGS, svg);
785
- addToSet(ALLOWED_ATTR, svg$1);
857
+ addToSet(ALLOWED_TAGS, svg$1);
858
+ addToSet(ALLOWED_ATTR, svg);
786
859
  addToSet(ALLOWED_ATTR, xml);
787
860
  }
788
861
  if (USE_PROFILES.svgFilters === true) {
789
862
  addToSet(ALLOWED_TAGS, svgFilters);
790
- addToSet(ALLOWED_ATTR, svg$1);
863
+ addToSet(ALLOWED_ATTR, svg);
791
864
  addToSet(ALLOWED_ATTR, xml);
792
865
  }
793
866
  if (USE_PROFILES.mathMl === true) {
794
- addToSet(ALLOWED_TAGS, mathMl);
795
- addToSet(ALLOWED_ATTR, mathMl$1);
867
+ addToSet(ALLOWED_TAGS, mathMl$1);
868
+ addToSet(ALLOWED_ATTR, mathMl);
796
869
  addToSet(ALLOWED_ATTR, xml);
797
870
  }
798
871
  }
@@ -800,22 +873,22 @@ function createDOMPurify() {
800
873
  if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
801
874
  ALLOWED_TAGS = clone(ALLOWED_TAGS);
802
875
  }
803
- addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);
876
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
804
877
  }
805
878
  if (cfg.ADD_ATTR) {
806
879
  if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
807
880
  ALLOWED_ATTR = clone(ALLOWED_ATTR);
808
881
  }
809
- addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);
882
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
810
883
  }
811
884
  if (cfg.ADD_URI_SAFE_ATTR) {
812
- addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);
885
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
813
886
  }
814
887
  if (cfg.FORBID_CONTENTS) {
815
888
  if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
816
889
  FORBID_CONTENTS = clone(FORBID_CONTENTS);
817
890
  }
818
- addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);
891
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
819
892
  }
820
893
  if (KEEP_CONTENT) {
821
894
  ALLOWED_TAGS["#text"] = true;
@@ -827,28 +900,43 @@ function createDOMPurify() {
827
900
  addToSet(ALLOWED_TAGS, ["tbody"]);
828
901
  delete FORBID_TAGS.tbody;
829
902
  }
903
+ if (cfg.TRUSTED_TYPES_POLICY) {
904
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") {
905
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
906
+ }
907
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") {
908
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
909
+ }
910
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
911
+ emptyHTML = trustedTypesPolicy.createHTML("");
912
+ } else {
913
+ if (trustedTypesPolicy === void 0) {
914
+ trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
915
+ }
916
+ if (trustedTypesPolicy !== null && typeof emptyHTML === "string") {
917
+ emptyHTML = trustedTypesPolicy.createHTML("");
918
+ }
919
+ }
830
920
  if (freeze) {
831
921
  freeze(cfg);
832
922
  }
833
923
  CONFIG = cfg;
834
924
  };
835
- var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
836
- var HTML_INTEGRATION_POINTS = addToSet({}, ["foreignobject", "desc", "title", "annotation-xml"]);
837
- var ALL_SVG_TAGS = addToSet({}, svg);
838
- addToSet(ALL_SVG_TAGS, svgFilters);
839
- addToSet(ALL_SVG_TAGS, svgDisallowed);
840
- var ALL_MATHML_TAGS = addToSet({}, mathMl);
841
- addToSet(ALL_MATHML_TAGS, mathMlDisallowed);
842
- var _checkValidNamespace = function _checkValidNamespace2(element) {
843
- var parent = getParentNode(element);
925
+ const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
926
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
927
+ const _checkValidNamespace = function _checkValidNamespace2(element) {
928
+ let parent = getParentNode(element);
844
929
  if (!parent || !parent.tagName) {
845
930
  parent = {
846
- namespaceURI: HTML_NAMESPACE,
931
+ namespaceURI: NAMESPACE,
847
932
  tagName: "template"
848
933
  };
849
934
  }
850
- var tagName = stringToLowerCase(element.tagName);
851
- var parentTagName = stringToLowerCase(parent.tagName);
935
+ const tagName = stringToLowerCase(element.tagName);
936
+ const parentTagName = stringToLowerCase(parent.tagName);
937
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
938
+ return false;
939
+ }
852
940
  if (element.namespaceURI === SVG_NAMESPACE) {
853
941
  if (parent.namespaceURI === HTML_NAMESPACE) {
854
942
  return tagName === "svg";
@@ -874,63 +962,63 @@ function createDOMPurify() {
874
962
  if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
875
963
  return false;
876
964
  }
877
- var commonSvgAndHTMLElements = addToSet({}, ["title", "style", "font", "a", "script"]);
878
- return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);
965
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
966
+ }
967
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) {
968
+ return true;
879
969
  }
880
970
  return false;
881
971
  };
882
- var _forceRemove = function _forceRemove2(node) {
883
- arrayPush$3(DOMPurify.removed, { element: node });
972
+ const _forceRemove = function _forceRemove2(node) {
973
+ arrayPush$3(DOMPurify.removed, {
974
+ element: node
975
+ });
884
976
  try {
885
- node.parentNode.removeChild(node);
977
+ getParentNode(node).removeChild(node);
886
978
  } catch (_) {
887
- try {
888
- node.outerHTML = emptyHTML;
889
- } catch (_2) {
890
- node.remove();
891
- }
979
+ remove(node);
892
980
  }
893
981
  };
894
- var _removeAttribute = function _removeAttribute2(name, node) {
982
+ const _removeAttribute = function _removeAttribute2(name, element) {
895
983
  try {
896
984
  arrayPush$3(DOMPurify.removed, {
897
- attribute: node.getAttributeNode(name),
898
- from: node
985
+ attribute: element.getAttributeNode(name),
986
+ from: element
899
987
  });
900
988
  } catch (_) {
901
989
  arrayPush$3(DOMPurify.removed, {
902
990
  attribute: null,
903
- from: node
991
+ from: element
904
992
  });
905
993
  }
906
- node.removeAttribute(name);
907
- if (name === "is" && !ALLOWED_ATTR[name]) {
994
+ element.removeAttribute(name);
995
+ if (name === "is") {
908
996
  if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
909
997
  try {
910
- _forceRemove(node);
998
+ _forceRemove(element);
911
999
  } catch (_) {
912
1000
  }
913
1001
  } else {
914
1002
  try {
915
- node.setAttribute(name, "");
1003
+ element.setAttribute(name, "");
916
1004
  } catch (_) {
917
1005
  }
918
1006
  }
919
1007
  }
920
1008
  };
921
- var _initDocument = function _initDocument2(dirty) {
922
- var doc = void 0;
923
- var leadingWhitespace = void 0;
1009
+ const _initDocument = function _initDocument2(dirty) {
1010
+ let doc = null;
1011
+ let leadingWhitespace = null;
924
1012
  if (FORCE_BODY) {
925
1013
  dirty = "<remove></remove>" + dirty;
926
1014
  } else {
927
- var matches = stringMatch(dirty, /^[\r\n\t ]+/);
1015
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
928
1016
  leadingWhitespace = matches && matches[0];
929
1017
  }
930
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml") {
1018
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) {
931
1019
  dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + "</body></html>";
932
1020
  }
933
- var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
1021
+ const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
934
1022
  if (NAMESPACE === HTML_NAMESPACE) {
935
1023
  try {
936
1024
  doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
@@ -940,11 +1028,11 @@ function createDOMPurify() {
940
1028
  if (!doc || !doc.documentElement) {
941
1029
  doc = implementation.createDocument(NAMESPACE, "template", null);
942
1030
  try {
943
- doc.documentElement.innerHTML = IS_EMPTY_INPUT ? "" : dirtyPayload;
1031
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
944
1032
  } catch (_) {
945
1033
  }
946
1034
  }
947
- var body = doc.body || doc.documentElement;
1035
+ const body = doc.body || doc.documentElement;
948
1036
  if (dirty && leadingWhitespace) {
949
1037
  body.insertBefore(document2.createTextNode(leadingWhitespace), body.childNodes[0] || null);
950
1038
  }
@@ -953,68 +1041,68 @@ function createDOMPurify() {
953
1041
  }
954
1042
  return WHOLE_DOCUMENT ? doc.documentElement : body;
955
1043
  };
956
- var _createIterator = function _createIterator2(root2) {
1044
+ const _createNodeIterator = function _createNodeIterator2(root2) {
957
1045
  return createNodeIterator.call(
958
1046
  root2.ownerDocument || root2,
959
1047
  root2,
960
1048
  // eslint-disable-next-line no-bitwise
961
- NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,
962
- null,
963
- false
1049
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
1050
+ null
964
1051
  );
965
1052
  };
966
- var _isClobbered = function _isClobbered2(elm) {
967
- return elm instanceof HTMLFormElement && (typeof elm.nodeName !== "string" || typeof elm.textContent !== "string" || typeof elm.removeChild !== "function" || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== "function" || typeof elm.setAttribute !== "function" || typeof elm.namespaceURI !== "string" || typeof elm.insertBefore !== "function");
1053
+ const _isClobbered = function _isClobbered2(element) {
1054
+ return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
968
1055
  };
969
- var _isNode = function _isNode2(object) {
970
- return (typeof Node === "undefined" ? "undefined" : _typeof$2(Node)) === "object" ? object instanceof Node : object && (typeof object === "undefined" ? "undefined" : _typeof$2(object)) === "object" && typeof object.nodeType === "number" && typeof object.nodeName === "string";
1056
+ const _isNode = function _isNode2(value) {
1057
+ return typeof Node === "function" && value instanceof Node;
971
1058
  };
972
- var _executeHook = function _executeHook2(entryPoint, currentNode, data) {
973
- if (!hooks[entryPoint]) {
974
- return;
975
- }
976
- arrayForEach(hooks[entryPoint], function(hook) {
1059
+ function _executeHooks(hooks2, currentNode, data) {
1060
+ arrayForEach(hooks2, (hook) => {
977
1061
  hook.call(DOMPurify, currentNode, data, CONFIG);
978
1062
  });
979
- };
980
- var _sanitizeElements = function _sanitizeElements2(currentNode) {
981
- var content = void 0;
982
- _executeHook("beforeSanitizeElements", currentNode, null);
1063
+ }
1064
+ const _sanitizeElements = function _sanitizeElements2(currentNode) {
1065
+ let content = null;
1066
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
983
1067
  if (_isClobbered(currentNode)) {
984
1068
  _forceRemove(currentNode);
985
1069
  return true;
986
1070
  }
987
- if (stringMatch(currentNode.nodeName, /[\u0080-\uFFFF]/)) {
988
- _forceRemove(currentNode);
989
- return true;
990
- }
991
- var tagName = transformCaseFunc(currentNode.nodeName);
992
- _executeHook("uponSanitizeElement", currentNode, {
1071
+ const tagName = transformCaseFunc(currentNode.nodeName);
1072
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
993
1073
  tagName,
994
1074
  allowedTags: ALLOWED_TAGS
995
1075
  });
996
- if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
1076
+ if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
1077
+ _forceRemove(currentNode);
1078
+ return true;
1079
+ }
1080
+ if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
997
1081
  _forceRemove(currentNode);
998
1082
  return true;
999
1083
  }
1000
- if (tagName === "select" && regExpTest(/<template/i, currentNode.innerHTML)) {
1084
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
1001
1085
  _forceRemove(currentNode);
1002
1086
  return true;
1003
1087
  }
1004
1088
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1005
- if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {
1006
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName))
1089
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1090
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1007
1091
  return false;
1008
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName))
1092
+ }
1093
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
1009
1094
  return false;
1095
+ }
1010
1096
  }
1011
1097
  if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1012
- var parentNode = getParentNode(currentNode) || currentNode.parentNode;
1013
- var childNodes = getChildNodes(currentNode) || currentNode.childNodes;
1098
+ const parentNode = getParentNode(currentNode) || currentNode.parentNode;
1099
+ const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
1014
1100
  if (childNodes && parentNode) {
1015
- var childCount = childNodes.length;
1016
- for (var i = childCount - 1; i >= 0; --i) {
1017
- parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));
1101
+ const childCount = childNodes.length;
1102
+ for (let i = childCount - 1; i >= 0; --i) {
1103
+ const childClone = cloneNode(childNodes[i], true);
1104
+ childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
1105
+ parentNode.insertBefore(childClone, getNextSibling(currentNode));
1018
1106
  }
1019
1107
  }
1020
1108
  }
@@ -1025,89 +1113,94 @@ function createDOMPurify() {
1025
1113
  _forceRemove(currentNode);
1026
1114
  return true;
1027
1115
  }
1028
- if ((tagName === "noscript" || tagName === "noembed") && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) {
1116
+ if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
1029
1117
  _forceRemove(currentNode);
1030
1118
  return true;
1031
1119
  }
1032
- if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
1120
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1033
1121
  content = currentNode.textContent;
1034
- content = stringReplace(content, MUSTACHE_EXPR$$1, " ");
1035
- content = stringReplace(content, ERB_EXPR$$1, " ");
1122
+ arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1123
+ content = stringReplace(content, expr, " ");
1124
+ });
1036
1125
  if (currentNode.textContent !== content) {
1037
- arrayPush$3(DOMPurify.removed, { element: currentNode.cloneNode() });
1126
+ arrayPush$3(DOMPurify.removed, {
1127
+ element: currentNode.cloneNode()
1128
+ });
1038
1129
  currentNode.textContent = content;
1039
1130
  }
1040
1131
  }
1041
- _executeHook("afterSanitizeElements", currentNode, null);
1132
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1042
1133
  return false;
1043
1134
  };
1044
- var _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
1135
+ const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
1045
1136
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
1046
1137
  return false;
1047
1138
  }
1048
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName))
1049
- ;
1050
- else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName))
1051
- ;
1139
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
1140
+ else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
1052
1141
  else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
1053
1142
  if (
1054
1143
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1055
1144
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1056
1145
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1057
- _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1146
+ _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1058
1147
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1059
1148
  lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
1060
- )
1061
- ;
1149
+ ) ;
1062
1150
  else {
1063
1151
  return false;
1064
1152
  }
1065
- } else if (URI_SAFE_ATTRIBUTES[lcName])
1066
- ;
1067
- else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, "")))
1068
- ;
1069
- else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag])
1070
- ;
1071
- else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, "")))
1072
- ;
1073
- else if (!value)
1074
- ;
1075
- else {
1153
+ } else if (URI_SAFE_ATTRIBUTES[lcName]) ;
1154
+ else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
1155
+ else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) ;
1156
+ else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA2, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
1157
+ else if (value) {
1076
1158
  return false;
1077
- }
1159
+ } else ;
1078
1160
  return true;
1079
1161
  };
1080
- var _basicCustomElementTest = function _basicCustomElementTest2(tagName) {
1081
- return tagName.indexOf("-") > 0;
1162
+ const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
1163
+ return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
1082
1164
  };
1083
- var _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
1084
- var attr = void 0;
1085
- var value = void 0;
1086
- var lcName = void 0;
1087
- var l = void 0;
1088
- _executeHook("beforeSanitizeAttributes", currentNode, null);
1089
- var attributes = currentNode.attributes;
1090
- if (!attributes) {
1165
+ const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
1166
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
1167
+ const {
1168
+ attributes
1169
+ } = currentNode;
1170
+ if (!attributes || _isClobbered(currentNode)) {
1091
1171
  return;
1092
1172
  }
1093
- var hookEvent = {
1173
+ const hookEvent = {
1094
1174
  attrName: "",
1095
1175
  attrValue: "",
1096
1176
  keepAttr: true,
1097
- allowedAttributes: ALLOWED_ATTR
1177
+ allowedAttributes: ALLOWED_ATTR,
1178
+ forceKeepAttr: void 0
1098
1179
  };
1099
- l = attributes.length;
1180
+ let l = attributes.length;
1100
1181
  while (l--) {
1101
- attr = attributes[l];
1102
- var _attr = attr, name = _attr.name, namespaceURI = _attr.namespaceURI;
1103
- value = stringTrim(attr.value);
1104
- lcName = transformCaseFunc(name);
1182
+ const attr = attributes[l];
1183
+ const {
1184
+ name,
1185
+ namespaceURI,
1186
+ value: attrValue
1187
+ } = attr;
1188
+ const lcName = transformCaseFunc(name);
1189
+ let value = name === "value" ? attrValue : stringTrim(attrValue);
1105
1190
  hookEvent.attrName = lcName;
1106
1191
  hookEvent.attrValue = value;
1107
1192
  hookEvent.keepAttr = true;
1108
1193
  hookEvent.forceKeepAttr = void 0;
1109
- _executeHook("uponSanitizeAttribute", currentNode, hookEvent);
1194
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
1110
1195
  value = hookEvent.attrValue;
1196
+ if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
1197
+ _removeAttribute(name, currentNode);
1198
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
1199
+ }
1200
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
1201
+ _removeAttribute(name, currentNode);
1202
+ continue;
1203
+ }
1111
1204
  if (hookEvent.forceKeepAttr) {
1112
1205
  continue;
1113
1206
  }
@@ -1115,75 +1208,85 @@ function createDOMPurify() {
1115
1208
  if (!hookEvent.keepAttr) {
1116
1209
  continue;
1117
1210
  }
1118
- if (regExpTest(/\/>/i, value)) {
1211
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
1119
1212
  _removeAttribute(name, currentNode);
1120
1213
  continue;
1121
1214
  }
1122
1215
  if (SAFE_FOR_TEMPLATES) {
1123
- value = stringReplace(value, MUSTACHE_EXPR$$1, " ");
1124
- value = stringReplace(value, ERB_EXPR$$1, " ");
1216
+ arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1217
+ value = stringReplace(value, expr, " ");
1218
+ });
1125
1219
  }
1126
- var lcTag = transformCaseFunc(currentNode.nodeName);
1220
+ const lcTag = transformCaseFunc(currentNode.nodeName);
1127
1221
  if (!_isValidAttribute(lcTag, lcName, value)) {
1128
1222
  continue;
1129
1223
  }
1224
+ if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
1225
+ if (namespaceURI) ;
1226
+ else {
1227
+ switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1228
+ case "TrustedHTML": {
1229
+ value = trustedTypesPolicy.createHTML(value);
1230
+ break;
1231
+ }
1232
+ case "TrustedScriptURL": {
1233
+ value = trustedTypesPolicy.createScriptURL(value);
1234
+ break;
1235
+ }
1236
+ }
1237
+ }
1238
+ }
1130
1239
  try {
1131
1240
  if (namespaceURI) {
1132
1241
  currentNode.setAttributeNS(namespaceURI, name, value);
1133
1242
  } else {
1134
1243
  currentNode.setAttribute(name, value);
1135
1244
  }
1136
- arrayPop(DOMPurify.removed);
1245
+ if (_isClobbered(currentNode)) {
1246
+ _forceRemove(currentNode);
1247
+ } else {
1248
+ arrayPop(DOMPurify.removed);
1249
+ }
1137
1250
  } catch (_) {
1138
1251
  }
1139
1252
  }
1140
- _executeHook("afterSanitizeAttributes", currentNode, null);
1253
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
1141
1254
  };
1142
- var _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
1143
- var shadowNode = void 0;
1144
- var shadowIterator = _createIterator(fragment);
1145
- _executeHook("beforeSanitizeShadowDOM", fragment, null);
1255
+ const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
1256
+ let shadowNode = null;
1257
+ const shadowIterator = _createNodeIterator(fragment);
1258
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
1146
1259
  while (shadowNode = shadowIterator.nextNode()) {
1147
- _executeHook("uponSanitizeShadowNode", shadowNode, null);
1148
- if (_sanitizeElements(shadowNode)) {
1149
- continue;
1150
- }
1260
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
1261
+ _sanitizeElements(shadowNode);
1262
+ _sanitizeAttributes(shadowNode);
1151
1263
  if (shadowNode.content instanceof DocumentFragment) {
1152
1264
  _sanitizeShadowDOM2(shadowNode.content);
1153
1265
  }
1154
- _sanitizeAttributes(shadowNode);
1155
1266
  }
1156
- _executeHook("afterSanitizeShadowDOM", fragment, null);
1267
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
1157
1268
  };
1158
- DOMPurify.sanitize = function(dirty, cfg) {
1159
- var body = void 0;
1160
- var importedNode = void 0;
1161
- var currentNode = void 0;
1162
- var oldNode = void 0;
1163
- var returnNode = void 0;
1269
+ DOMPurify.sanitize = function(dirty) {
1270
+ let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1271
+ let body = null;
1272
+ let importedNode = null;
1273
+ let currentNode = null;
1274
+ let returnNode = null;
1164
1275
  IS_EMPTY_INPUT = !dirty;
1165
1276
  if (IS_EMPTY_INPUT) {
1166
1277
  dirty = "<!-->";
1167
1278
  }
1168
1279
  if (typeof dirty !== "string" && !_isNode(dirty)) {
1169
- if (typeof dirty.toString !== "function") {
1170
- throw typeErrorCreate("toString is not a function");
1171
- } else {
1280
+ if (typeof dirty.toString === "function") {
1172
1281
  dirty = dirty.toString();
1173
1282
  if (typeof dirty !== "string") {
1174
1283
  throw typeErrorCreate("dirty is not a string, aborting");
1175
1284
  }
1285
+ } else {
1286
+ throw typeErrorCreate("toString is not a function");
1176
1287
  }
1177
1288
  }
1178
1289
  if (!DOMPurify.isSupported) {
1179
- if (_typeof$2(window2.toStaticHTML) === "object" || typeof window2.toStaticHTML === "function") {
1180
- if (typeof dirty === "string") {
1181
- return window2.toStaticHTML(dirty);
1182
- }
1183
- if (_isNode(dirty)) {
1184
- return window2.toStaticHTML(dirty.outerHTML);
1185
- }
1186
- }
1187
1290
  return dirty;
1188
1291
  }
1189
1292
  if (!SET_CONFIG) {
@@ -1195,7 +1298,7 @@ function createDOMPurify() {
1195
1298
  }
1196
1299
  if (IN_PLACE) {
1197
1300
  if (dirty.nodeName) {
1198
- var tagName = transformCaseFunc(dirty.nodeName);
1301
+ const tagName = transformCaseFunc(dirty.nodeName);
1199
1302
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1200
1303
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
1201
1304
  }
@@ -1203,7 +1306,7 @@ function createDOMPurify() {
1203
1306
  } else if (dirty instanceof Node) {
1204
1307
  body = _initDocument("<!---->");
1205
1308
  importedNode = body.ownerDocument.importNode(dirty, true);
1206
- if (importedNode.nodeType === 1 && importedNode.nodeName === "BODY") {
1309
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
1207
1310
  body = importedNode;
1208
1311
  } else if (importedNode.nodeName === "HTML") {
1209
1312
  body = importedNode;
@@ -1223,21 +1326,14 @@ function createDOMPurify() {
1223
1326
  if (body && FORCE_BODY) {
1224
1327
  _forceRemove(body.firstChild);
1225
1328
  }
1226
- var nodeIterator = _createIterator(IN_PLACE ? dirty : body);
1329
+ const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
1227
1330
  while (currentNode = nodeIterator.nextNode()) {
1228
- if (currentNode.nodeType === 3 && currentNode === oldNode) {
1229
- continue;
1230
- }
1231
- if (_sanitizeElements(currentNode)) {
1232
- continue;
1233
- }
1331
+ _sanitizeElements(currentNode);
1332
+ _sanitizeAttributes(currentNode);
1234
1333
  if (currentNode.content instanceof DocumentFragment) {
1235
1334
  _sanitizeShadowDOM(currentNode.content);
1236
1335
  }
1237
- _sanitizeAttributes(currentNode);
1238
- oldNode = currentNode;
1239
1336
  }
1240
- oldNode = null;
1241
1337
  if (IN_PLACE) {
1242
1338
  return dirty;
1243
1339
  }
@@ -1250,22 +1346,24 @@ function createDOMPurify() {
1250
1346
  } else {
1251
1347
  returnNode = body;
1252
1348
  }
1253
- if (ALLOWED_ATTR.shadowroot) {
1349
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
1254
1350
  returnNode = importNode.call(originalDocument, returnNode, true);
1255
1351
  }
1256
1352
  return returnNode;
1257
1353
  }
1258
- var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1354
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1259
1355
  if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
1260
1356
  serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
1261
1357
  }
1262
1358
  if (SAFE_FOR_TEMPLATES) {
1263
- serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, " ");
1264
- serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, " ");
1359
+ arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1360
+ serializedHTML = stringReplace(serializedHTML, expr, " ");
1361
+ });
1265
1362
  }
1266
1363
  return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
1267
1364
  };
1268
- DOMPurify.setConfig = function(cfg) {
1365
+ DOMPurify.setConfig = function() {
1366
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1269
1367
  _parseConfig(cfg);
1270
1368
  SET_CONFIG = true;
1271
1369
  };
@@ -1277,29 +1375,28 @@ function createDOMPurify() {
1277
1375
  if (!CONFIG) {
1278
1376
  _parseConfig({});
1279
1377
  }
1280
- var lcTag = transformCaseFunc(tag);
1281
- var lcName = transformCaseFunc(attr);
1378
+ const lcTag = transformCaseFunc(tag);
1379
+ const lcName = transformCaseFunc(attr);
1282
1380
  return _isValidAttribute(lcTag, lcName, value);
1283
1381
  };
1284
1382
  DOMPurify.addHook = function(entryPoint, hookFunction) {
1285
1383
  if (typeof hookFunction !== "function") {
1286
1384
  return;
1287
1385
  }
1288
- hooks[entryPoint] = hooks[entryPoint] || [];
1289
1386
  arrayPush$3(hooks[entryPoint], hookFunction);
1290
1387
  };
1291
- DOMPurify.removeHook = function(entryPoint) {
1292
- if (hooks[entryPoint]) {
1293
- arrayPop(hooks[entryPoint]);
1388
+ DOMPurify.removeHook = function(entryPoint, hookFunction) {
1389
+ if (hookFunction !== void 0) {
1390
+ const index2 = arrayLastIndexOf(hooks[entryPoint], hookFunction);
1391
+ return index2 === -1 ? void 0 : arraySplice(hooks[entryPoint], index2, 1)[0];
1294
1392
  }
1393
+ return arrayPop(hooks[entryPoint]);
1295
1394
  };
1296
1395
  DOMPurify.removeHooks = function(entryPoint) {
1297
- if (hooks[entryPoint]) {
1298
- hooks[entryPoint] = [];
1299
- }
1396
+ hooks[entryPoint] = [];
1300
1397
  };
1301
1398
  DOMPurify.removeAllHooks = function() {
1302
- hooks = {};
1399
+ hooks = _createHooksMap();
1303
1400
  };
1304
1401
  return DOMPurify;
1305
1402
  }
@@ -1315,13 +1412,11 @@ if (typeof purify.addHook === "function" && typeof document !== "undefined" && d
1315
1412
  });
1316
1413
  }
1317
1414
  function xssPurify(str) {
1318
- if (typeof window === "undefined")
1319
- return str;
1415
+ if (typeof window === "undefined") return str;
1320
1416
  return purify.sanitize(str, purifyConfig);
1321
1417
  }
1322
1418
  const highlightWords = (Word, title, inherit) => {
1323
- if (!Word)
1324
- return xssPurify(title || "");
1419
+ if (!Word) return xssPurify(title || "");
1325
1420
  title = title ? xssPurify(title) : "";
1326
1421
  const color = inherit ? `inherit` : "var(--theme-link)";
1327
1422
  const regexPattern = new RegExp(`(${Word.replace(/([.?*+^$[\]\\(){}|-])/gi, "\\$1")})`, "gi");
@@ -1609,9 +1704,6 @@ function createPosition(line, column, offset) {
1609
1704
  }
1610
1705
  function createLocation(start, end, source) {
1611
1706
  const loc = { start, end };
1612
- if (source != null) {
1613
- loc.source = source;
1614
- }
1615
1707
  return loc;
1616
1708
  }
1617
1709
  const RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
@@ -1640,7 +1732,7 @@ const warnMessages$2 = {
1640
1732
  [CompileWarnCodes.USE_MODULO_SYNTAX]: `Use modulo before '{{0}}'.`
1641
1733
  };
1642
1734
  function createCompileWarn(code2, loc, ...args) {
1643
- const msg = format$1(warnMessages$2[code2] || "", ...args || []);
1735
+ const msg = format$1(warnMessages$2[code2], ...args || []);
1644
1736
  const message = { message: String(msg), code: code2 };
1645
1737
  if (loc) {
1646
1738
  message.location = loc;
@@ -2505,9 +2597,6 @@ function createParser(options = {}) {
2505
2597
  return node;
2506
2598
  }
2507
2599
  function endNode(node, offset, pos, type) {
2508
- if (type) {
2509
- node.type = type;
2510
- }
2511
2600
  if (location) {
2512
2601
  node.end = offset;
2513
2602
  if (node.loc) {
@@ -2947,7 +3036,7 @@ function minify(node) {
2947
3036
  }
2948
3037
  const ERROR_DOMAIN = "parser";
2949
3038
  function createCodeGenerator(ast, options) {
2950
- const { sourceMap, filename, breakLineCode, needIndent: _needIndent } = options;
3039
+ const { filename, breakLineCode, needIndent: _needIndent } = options;
2951
3040
  const location = options.location !== false;
2952
3041
  const _context = {
2953
3042
  filename,
@@ -3111,14 +3200,12 @@ function generateNode(generator, node) {
3111
3200
  const generate = (ast, options = {}) => {
3112
3201
  const mode = isString$1(options.mode) ? options.mode : "normal";
3113
3202
  const filename = isString$1(options.filename) ? options.filename : "message.intl";
3114
- const sourceMap = !!options.sourceMap;
3203
+ !!options.sourceMap;
3115
3204
  const breakLineCode = options.breakLineCode != null ? options.breakLineCode : mode === "arrow" ? ";" : "\n";
3116
3205
  const needIndent = options.needIndent ? options.needIndent : mode !== "arrow";
3117
3206
  const helpers = ast.helpers || [];
3118
3207
  const generator = createCodeGenerator(ast, {
3119
- mode,
3120
3208
  filename,
3121
- sourceMap,
3122
3209
  breakLineCode,
3123
3210
  needIndent
3124
3211
  });
@@ -3891,7 +3978,7 @@ function appendItemToChain(chain, target, blocks) {
3891
3978
  }
3892
3979
  return follow;
3893
3980
  }
3894
- const VERSION$2 = "9.14.3";
3981
+ const VERSION$3 = "9.14.3";
3895
3982
  const NOT_REOSLVED = -1;
3896
3983
  const DEFAULT_LOCALE = "en-US";
3897
3984
  const MISSING_RESOLVE_VALUE = "";
@@ -3934,7 +4021,7 @@ const getFallbackContext = () => _fallbackContext;
3934
4021
  let _cid = 0;
3935
4022
  function createCoreContext(options = {}) {
3936
4023
  const onWarn = isFunction$4(options.onWarn) ? options.onWarn : warn;
3937
- const version = isString$2(options.version) ? options.version : VERSION$2;
4024
+ const version = isString$2(options.version) ? options.version : VERSION$3;
3938
4025
  const locale2 = isString$2(options.locale) || isFunction$4(options.locale) ? options.locale : DEFAULT_LOCALE;
3939
4026
  const _locale = isFunction$4(locale2) ? DEFAULT_LOCALE : locale2;
3940
4027
  const fallbackLocale = isArray$5(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || isString$2(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale;
@@ -5039,7 +5126,7 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
5039
5126
  * (c) 2025 kazuya kawaguchi
5040
5127
  * Released under the MIT License.
5041
5128
  */
5042
- const VERSION$1 = "9.14.3";
5129
+ const VERSION$2 = "9.14.3";
5043
5130
  function initFeatureFlags() {
5044
5131
  if (typeof __VUE_I18N_FULL_INSTALL__ !== "boolean") {
5045
5132
  getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true;
@@ -5218,10 +5305,10 @@ function getLocaleMessages(locale2, options) {
5218
5305
  if (isArray$5(__i18n)) {
5219
5306
  __i18n.forEach((custom) => {
5220
5307
  if ("locale" in custom && "resource" in custom) {
5221
- const { locale: locale3, resource } = custom;
5222
- if (locale3) {
5223
- ret[locale3] = ret[locale3] || create();
5224
- deepCopy(resource, ret[locale3]);
5308
+ const { locale: locale22, resource } = custom;
5309
+ if (locale22) {
5310
+ ret[locale22] = ret[locale22] || create();
5311
+ deepCopy(resource, ret[locale22]);
5225
5312
  } else {
5226
5313
  deepCopy(resource, ret);
5227
5314
  }
@@ -5296,7 +5383,7 @@ function createComposer(options = {}, VueI18nLegacy) {
5296
5383
  const { __root, __injectWithOption } = options;
5297
5384
  const _isGlobal = __root === void 0;
5298
5385
  const flatJson = options.flatJson;
5299
- const _ref2 = inBrowser ? ref : shallowRef;
5386
+ const _ref = inBrowser ? ref : shallowRef;
5300
5387
  const translateExistCompatible = !!options.translateExistCompatible;
5301
5388
  if (process.env.NODE_ENV !== "production") {
5302
5389
  if (translateExistCompatible && true) {
@@ -5304,17 +5391,17 @@ function createComposer(options = {}, VueI18nLegacy) {
5304
5391
  }
5305
5392
  }
5306
5393
  let _inheritLocale = isBoolean$1(options.inheritLocale) ? options.inheritLocale : true;
5307
- const _locale = _ref2(
5394
+ const _locale = _ref(
5308
5395
  // prettier-ignore
5309
5396
  __root && _inheritLocale ? __root.locale.value : isString$2(options.locale) ? options.locale : DEFAULT_LOCALE
5310
5397
  );
5311
- const _fallbackLocale = _ref2(
5398
+ const _fallbackLocale = _ref(
5312
5399
  // prettier-ignore
5313
5400
  __root && _inheritLocale ? __root.fallbackLocale.value : isString$2(options.fallbackLocale) || isArray$5(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
5314
5401
  );
5315
- const _messages = _ref2(getLocaleMessages(_locale.value, options));
5316
- const _datetimeFormats = _ref2(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
5317
- const _numberFormats = _ref2(isPlainObject$1(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
5402
+ const _messages = _ref(getLocaleMessages(_locale.value, options));
5403
+ const _datetimeFormats = _ref(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
5404
+ const _numberFormats = _ref(isPlainObject$1(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
5318
5405
  let _missingWarn = __root ? __root.missingWarn : isBoolean$1(options.missingWarn) || isRegExp$1(options.missingWarn) ? options.missingWarn : true;
5319
5406
  let _fallbackWarn = __root ? __root.fallbackWarn : isBoolean$1(options.fallbackWarn) || isRegExp$1(options.fallbackWarn) ? options.fallbackWarn : true;
5320
5407
  let _fallbackRoot = __root ? __root.fallbackRoot : isBoolean$1(options.fallbackRoot) ? options.fallbackRoot : true;
@@ -5330,7 +5417,7 @@ function createComposer(options = {}, VueI18nLegacy) {
5330
5417
  const getCoreContext = () => {
5331
5418
  _isGlobal && setFallbackContext(null);
5332
5419
  const ctxOptions = {
5333
- version: VERSION$1,
5420
+ version: VERSION$2,
5334
5421
  locale: _locale.value,
5335
5422
  fallbackLocale: _fallbackLocale.value,
5336
5423
  messages: _messages.value,
@@ -5422,8 +5509,7 @@ function createComposer(options = {}, VueI18nLegacy) {
5422
5509
  }
5423
5510
  ret = fn(_context);
5424
5511
  } finally {
5425
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
5426
- ;
5512
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) ;
5427
5513
  if (!_isGlobal) {
5428
5514
  _context.fallbackContext = void 0;
5429
5515
  }
@@ -5529,17 +5615,17 @@ function createComposer(options = {}, VueI18nLegacy) {
5529
5615
  _pluralRules = rules;
5530
5616
  _context.pluralRules = _pluralRules;
5531
5617
  }
5532
- function te(key, locale3) {
5618
+ function te(key, locale22) {
5533
5619
  return wrapWithDeps(() => {
5534
5620
  if (!key) {
5535
5621
  return false;
5536
5622
  }
5537
- const targetLocale = isString$2(locale3) ? locale3 : _locale.value;
5623
+ const targetLocale = isString$2(locale22) ? locale22 : _locale.value;
5538
5624
  const message = getLocaleMessage(targetLocale);
5539
5625
  const resolved = _context.messageResolver(message, key);
5540
5626
  return !translateExistCompatible ? isMessageAST(resolved) || isMessageFunction(resolved) || isString$2(resolved) : resolved != null;
5541
5627
  }, () => [key], "translate exists", (root2) => {
5542
- return Reflect.apply(root2.te, root2, [key, locale3]);
5628
+ return Reflect.apply(root2.te, root2, [key, locale22]);
5543
5629
  }, NOOP_RETURN_FALSE, (val) => isBoolean$1(val));
5544
5630
  }
5545
5631
  function resolveMessages(key) {
@@ -5559,25 +5645,25 @@ function createComposer(options = {}, VueI18nLegacy) {
5559
5645
  const messages2 = resolveMessages(key);
5560
5646
  return messages2 != null ? messages2 : __root ? __root.tm(key) || {} : {};
5561
5647
  }
5562
- function getLocaleMessage(locale3) {
5563
- return _messages.value[locale3] || {};
5648
+ function getLocaleMessage(locale22) {
5649
+ return _messages.value[locale22] || {};
5564
5650
  }
5565
- function setLocaleMessage(locale3, message) {
5651
+ function setLocaleMessage(locale22, message) {
5566
5652
  if (flatJson) {
5567
- const _message = { [locale3]: message };
5653
+ const _message = { [locale22]: message };
5568
5654
  for (const key in _message) {
5569
5655
  if (hasOwn(_message, key)) {
5570
5656
  handleFlatJson(_message[key]);
5571
5657
  }
5572
5658
  }
5573
- message = _message[locale3];
5659
+ message = _message[locale22];
5574
5660
  }
5575
- _messages.value[locale3] = message;
5661
+ _messages.value[locale22] = message;
5576
5662
  _context.messages = _messages.value;
5577
5663
  }
5578
- function mergeLocaleMessage(locale3, message) {
5579
- _messages.value[locale3] = _messages.value[locale3] || {};
5580
- const _message = { [locale3]: message };
5664
+ function mergeLocaleMessage(locale22, message) {
5665
+ _messages.value[locale22] = _messages.value[locale22] || {};
5666
+ const _message = { [locale22]: message };
5581
5667
  if (flatJson) {
5582
5668
  for (const key in _message) {
5583
5669
  if (hasOwn(_message, key)) {
@@ -5585,35 +5671,35 @@ function createComposer(options = {}, VueI18nLegacy) {
5585
5671
  }
5586
5672
  }
5587
5673
  }
5588
- message = _message[locale3];
5589
- deepCopy(message, _messages.value[locale3]);
5674
+ message = _message[locale22];
5675
+ deepCopy(message, _messages.value[locale22]);
5590
5676
  _context.messages = _messages.value;
5591
5677
  }
5592
- function getDateTimeFormat(locale3) {
5593
- return _datetimeFormats.value[locale3] || {};
5678
+ function getDateTimeFormat(locale22) {
5679
+ return _datetimeFormats.value[locale22] || {};
5594
5680
  }
5595
- function setDateTimeFormat(locale3, format2) {
5596
- _datetimeFormats.value[locale3] = format2;
5681
+ function setDateTimeFormat(locale22, format2) {
5682
+ _datetimeFormats.value[locale22] = format2;
5597
5683
  _context.datetimeFormats = _datetimeFormats.value;
5598
- clearDateTimeFormat(_context, locale3, format2);
5684
+ clearDateTimeFormat(_context, locale22, format2);
5599
5685
  }
5600
- function mergeDateTimeFormat(locale3, format2) {
5601
- _datetimeFormats.value[locale3] = assign$1(_datetimeFormats.value[locale3] || {}, format2);
5686
+ function mergeDateTimeFormat(locale22, format2) {
5687
+ _datetimeFormats.value[locale22] = assign$1(_datetimeFormats.value[locale22] || {}, format2);
5602
5688
  _context.datetimeFormats = _datetimeFormats.value;
5603
- clearDateTimeFormat(_context, locale3, format2);
5689
+ clearDateTimeFormat(_context, locale22, format2);
5604
5690
  }
5605
- function getNumberFormat(locale3) {
5606
- return _numberFormats.value[locale3] || {};
5691
+ function getNumberFormat(locale22) {
5692
+ return _numberFormats.value[locale22] || {};
5607
5693
  }
5608
- function setNumberFormat(locale3, format2) {
5609
- _numberFormats.value[locale3] = format2;
5694
+ function setNumberFormat(locale22, format2) {
5695
+ _numberFormats.value[locale22] = format2;
5610
5696
  _context.numberFormats = _numberFormats.value;
5611
- clearNumberFormat(_context, locale3, format2);
5697
+ clearNumberFormat(_context, locale22, format2);
5612
5698
  }
5613
- function mergeNumberFormat(locale3, format2) {
5614
- _numberFormats.value[locale3] = assign$1(_numberFormats.value[locale3] || {}, format2);
5699
+ function mergeNumberFormat(locale22, format2) {
5700
+ _numberFormats.value[locale22] = assign$1(_numberFormats.value[locale22] || {}, format2);
5615
5701
  _context.numberFormats = _numberFormats.value;
5616
- clearNumberFormat(_context, locale3, format2);
5702
+ clearNumberFormat(_context, locale22, format2);
5617
5703
  }
5618
5704
  composerID++;
5619
5705
  if (__root && inBrowser) {
@@ -5764,9 +5850,9 @@ function convertComposerOptions(options) {
5764
5850
  if (isPlainObject$1(options.sharedMessages)) {
5765
5851
  const sharedMessages = options.sharedMessages;
5766
5852
  const locales = Object.keys(sharedMessages);
5767
- messages = locales.reduce((messages2, locale3) => {
5768
- const message = messages2[locale3] || (messages2[locale3] = {});
5769
- assign$1(message, sharedMessages[locale3]);
5853
+ messages = locales.reduce((messages2, locale22) => {
5854
+ const message = messages2[locale22] || (messages2[locale22] = {});
5855
+ assign$1(message, sharedMessages[locale22]);
5770
5856
  return messages2;
5771
5857
  }, messages || {});
5772
5858
  }
@@ -7168,49 +7254,49 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
7168
7254
  function tm(key) {
7169
7255
  return _composer.value ? _composer.value.tm(key) : {};
7170
7256
  }
7171
- function te(key, locale3) {
7172
- return _composer.value ? _composer.value.te(key, locale3) : false;
7257
+ function te(key, locale22) {
7258
+ return _composer.value ? _composer.value.te(key, locale22) : false;
7173
7259
  }
7174
- function getLocaleMessage(locale3) {
7175
- return _composer.value ? _composer.value.getLocaleMessage(locale3) : {};
7260
+ function getLocaleMessage(locale22) {
7261
+ return _composer.value ? _composer.value.getLocaleMessage(locale22) : {};
7176
7262
  }
7177
- function setLocaleMessage(locale3, message) {
7263
+ function setLocaleMessage(locale22, message) {
7178
7264
  if (_composer.value) {
7179
- _composer.value.setLocaleMessage(locale3, message);
7180
- _messages.value[locale3] = message;
7265
+ _composer.value.setLocaleMessage(locale22, message);
7266
+ _messages.value[locale22] = message;
7181
7267
  }
7182
7268
  }
7183
- function mergeLocaleMessage(locale3, message) {
7269
+ function mergeLocaleMessage(locale22, message) {
7184
7270
  if (_composer.value) {
7185
- _composer.value.mergeLocaleMessage(locale3, message);
7271
+ _composer.value.mergeLocaleMessage(locale22, message);
7186
7272
  }
7187
7273
  }
7188
- function getDateTimeFormat(locale3) {
7189
- return _composer.value ? _composer.value.getDateTimeFormat(locale3) : {};
7274
+ function getDateTimeFormat(locale22) {
7275
+ return _composer.value ? _composer.value.getDateTimeFormat(locale22) : {};
7190
7276
  }
7191
- function setDateTimeFormat(locale3, format2) {
7277
+ function setDateTimeFormat(locale22, format2) {
7192
7278
  if (_composer.value) {
7193
- _composer.value.setDateTimeFormat(locale3, format2);
7194
- _datetimeFormats.value[locale3] = format2;
7279
+ _composer.value.setDateTimeFormat(locale22, format2);
7280
+ _datetimeFormats.value[locale22] = format2;
7195
7281
  }
7196
7282
  }
7197
- function mergeDateTimeFormat(locale3, format2) {
7283
+ function mergeDateTimeFormat(locale22, format2) {
7198
7284
  if (_composer.value) {
7199
- _composer.value.mergeDateTimeFormat(locale3, format2);
7285
+ _composer.value.mergeDateTimeFormat(locale22, format2);
7200
7286
  }
7201
7287
  }
7202
- function getNumberFormat(locale3) {
7203
- return _composer.value ? _composer.value.getNumberFormat(locale3) : {};
7288
+ function getNumberFormat(locale22) {
7289
+ return _composer.value ? _composer.value.getNumberFormat(locale22) : {};
7204
7290
  }
7205
- function setNumberFormat(locale3, format2) {
7291
+ function setNumberFormat(locale22, format2) {
7206
7292
  if (_composer.value) {
7207
- _composer.value.setNumberFormat(locale3, format2);
7208
- _numberFormats.value[locale3] = format2;
7293
+ _composer.value.setNumberFormat(locale22, format2);
7294
+ _numberFormats.value[locale22] = format2;
7209
7295
  }
7210
7296
  }
7211
- function mergeNumberFormat(locale3, format2) {
7297
+ function mergeNumberFormat(locale22, format2) {
7212
7298
  if (_composer.value) {
7213
- _composer.value.mergeNumberFormat(locale3, format2);
7299
+ _composer.value.mergeNumberFormat(locale22, format2);
7214
7300
  }
7215
7301
  }
7216
7302
  const wrapper3 = {
@@ -7313,14 +7399,14 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
7313
7399
  function sync(composer) {
7314
7400
  composer.locale.value = _locale.value;
7315
7401
  composer.fallbackLocale.value = _fallbackLocale.value;
7316
- Object.keys(_messages.value).forEach((locale3) => {
7317
- composer.mergeLocaleMessage(locale3, _messages.value[locale3]);
7402
+ Object.keys(_messages.value).forEach((locale22) => {
7403
+ composer.mergeLocaleMessage(locale22, _messages.value[locale22]);
7318
7404
  });
7319
- Object.keys(_datetimeFormats.value).forEach((locale3) => {
7320
- composer.mergeDateTimeFormat(locale3, _datetimeFormats.value[locale3]);
7405
+ Object.keys(_datetimeFormats.value).forEach((locale22) => {
7406
+ composer.mergeDateTimeFormat(locale22, _datetimeFormats.value[locale22]);
7321
7407
  });
7322
- Object.keys(_numberFormats.value).forEach((locale3) => {
7323
- composer.mergeNumberFormat(locale3, _numberFormats.value[locale3]);
7408
+ Object.keys(_numberFormats.value).forEach((locale22) => {
7409
+ composer.mergeNumberFormat(locale22, _numberFormats.value[locale22]);
7324
7410
  });
7325
7411
  composer.escapeParameter = _escapeParameter;
7326
7412
  composer.fallbackFormat = _fallbackFormat;
@@ -7405,8 +7491,7 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
7405
7491
  target.__INTLIFY__ = true;
7406
7492
  setDevToolsHook(target.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
7407
7493
  }
7408
- if (process.env.NODE_ENV !== "production")
7409
- ;
7494
+ if (process.env.NODE_ENV !== "production") ;
7410
7495
  const gitCodeLayout$1 = {
7411
7496
  home: {
7412
7497
  alreadyFollowed: "已关注",
@@ -8024,8 +8109,7 @@ const handleAvatarRedPoint = (type, other) => {
8024
8109
  }
8025
8110
  };
8026
8111
  function extractRepoInfoWithURL(repoUrl) {
8027
- if (!repoUrl)
8028
- return "";
8112
+ if (!repoUrl) return "";
8029
8113
  const url = new URL(repoUrl);
8030
8114
  const pathname = url.pathname.replace(/^\//, "");
8031
8115
  const parts = pathname.replace(/.git$/, "").split("/").filter(Boolean);
@@ -8053,8 +8137,7 @@ const isTrustedRepo = (topics) => {
8053
8137
  };
8054
8138
  const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
8055
8139
  const isIncubationRepo = (topics = []) => {
8056
- if (!topics)
8057
- return false;
8140
+ if (!topics) return false;
8058
8141
  const incubationIds = INCUBATION_TOPICS.split(",");
8059
8142
  if (topics.some((e) => /孵化项目/.test(e.name) || incubationIds.includes(e.topic_id || e.id))) {
8060
8143
  return true;
@@ -8145,7 +8228,7 @@ function mitt(n) {
8145
8228
  const emitter = mitt();
8146
8229
  const addEventListener = (evtName, callback) => emitter.on(evtName, callback);
8147
8230
  const emitEvent = (evtName, payload) => emitter.emit(evtName, payload);
8148
- const offEvent = (evtName, handler) => emitter.off(evtName, handler || void 0);
8231
+ const offEvent = (evtName, handler) => emitter.off(evtName, void 0);
8149
8232
  function bind(fn, thisArg) {
8150
8233
  return function wrap() {
8151
8234
  return fn.apply(thisArg, arguments);
@@ -8153,7 +8236,7 @@ function bind(fn, thisArg) {
8153
8236
  }
8154
8237
  const { toString } = Object.prototype;
8155
8238
  const { getPrototypeOf } = Object;
8156
- const kindOf = ((cache2) => (thing) => {
8239
+ const kindOf = /* @__PURE__ */ ((cache2) => (thing) => {
8157
8240
  const str = toString.call(thing);
8158
8241
  return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
8159
8242
  })(/* @__PURE__ */ Object.create(null));
@@ -8239,8 +8322,7 @@ function findKey(obj, key) {
8239
8322
  return null;
8240
8323
  }
8241
8324
  const _global = (() => {
8242
- if (typeof globalThis !== "undefined")
8243
- return globalThis;
8325
+ if (typeof globalThis !== "undefined") return globalThis;
8244
8326
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
8245
8327
  })();
8246
8328
  const isContextDefined = (context) => !isUndefined$1(context) && context !== _global;
@@ -8294,8 +8376,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
8294
8376
  let prop;
8295
8377
  const merged = {};
8296
8378
  destObj = destObj || {};
8297
- if (sourceObj == null)
8298
- return destObj;
8379
+ if (sourceObj == null) return destObj;
8299
8380
  do {
8300
8381
  props = Object.getOwnPropertyNames(sourceObj);
8301
8382
  i = props.length;
@@ -8320,20 +8401,17 @@ const endsWith = (str, searchString, position) => {
8320
8401
  return lastIndex !== -1 && lastIndex === position;
8321
8402
  };
8322
8403
  const toArray = (thing) => {
8323
- if (!thing)
8324
- return null;
8325
- if (isArray$4(thing))
8326
- return thing;
8404
+ if (!thing) return null;
8405
+ if (isArray$4(thing)) return thing;
8327
8406
  let i = thing.length;
8328
- if (!isNumber(i))
8329
- return null;
8407
+ if (!isNumber(i)) return null;
8330
8408
  const arr = new Array(i);
8331
8409
  while (i-- > 0) {
8332
8410
  arr[i] = thing[i];
8333
8411
  }
8334
8412
  return arr;
8335
8413
  };
8336
- const isTypedArray$2 = ((TypedArray) => {
8414
+ const isTypedArray$2 = /* @__PURE__ */ ((TypedArray) => {
8337
8415
  return (thing) => {
8338
8416
  return TypedArray && thing instanceof TypedArray;
8339
8417
  };
@@ -8383,8 +8461,7 @@ const freezeMethods = (obj) => {
8383
8461
  return false;
8384
8462
  }
8385
8463
  const value = obj[name];
8386
- if (!isFunction$3(value))
8387
- return;
8464
+ if (!isFunction$3(value)) return;
8388
8465
  descriptor.enumerable = false;
8389
8466
  if ("writable" in descriptor) {
8390
8467
  descriptor.writable = false;
@@ -8517,7 +8594,7 @@ const utils$1 = {
8517
8594
  setImmediate: _setImmediate,
8518
8595
  asap
8519
8596
  };
8520
- function AxiosError(message, code2, config, request, response) {
8597
+ function AxiosError$1(message, code2, config, request, response) {
8521
8598
  Error.call(this);
8522
8599
  if (Error.captureStackTrace) {
8523
8600
  Error.captureStackTrace(this, this.constructor);
@@ -8534,7 +8611,7 @@ function AxiosError(message, code2, config, request, response) {
8534
8611
  this.status = response.status ? response.status : null;
8535
8612
  }
8536
8613
  }
8537
- utils$1.inherits(AxiosError, Error, {
8614
+ utils$1.inherits(AxiosError$1, Error, {
8538
8615
  toJSON: function toJSON() {
8539
8616
  return {
8540
8617
  // Standard
@@ -8555,7 +8632,7 @@ utils$1.inherits(AxiosError, Error, {
8555
8632
  };
8556
8633
  }
8557
8634
  });
8558
- const prototype$1 = AxiosError.prototype;
8635
+ const prototype$1 = AxiosError$1.prototype;
8559
8636
  const descriptors = {};
8560
8637
  [
8561
8638
  "ERR_BAD_OPTION_VALUE",
@@ -8574,16 +8651,16 @@ const descriptors = {};
8574
8651
  ].forEach((code2) => {
8575
8652
  descriptors[code2] = { value: code2 };
8576
8653
  });
8577
- Object.defineProperties(AxiosError, descriptors);
8654
+ Object.defineProperties(AxiosError$1, descriptors);
8578
8655
  Object.defineProperty(prototype$1, "isAxiosError", { value: true });
8579
- AxiosError.from = (error, code2, config, request, response, customProps) => {
8656
+ AxiosError$1.from = (error, code2, config, request, response, customProps) => {
8580
8657
  const axiosError = Object.create(prototype$1);
8581
8658
  utils$1.toFlatObject(error, axiosError, function filter2(obj) {
8582
8659
  return obj !== Error.prototype;
8583
8660
  }, (prop) => {
8584
8661
  return prop !== "isAxiosError";
8585
8662
  });
8586
- AxiosError.call(axiosError, error.message, code2, config, request, response);
8663
+ AxiosError$1.call(axiosError, error.message, code2, config, request, response);
8587
8664
  axiosError.cause = error;
8588
8665
  axiosError.name = error.name;
8589
8666
  customProps && Object.assign(axiosError, customProps);
@@ -8597,8 +8674,7 @@ function removeBrackets(key) {
8597
8674
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
8598
8675
  }
8599
8676
  function renderKey(path, key, dots) {
8600
- if (!path)
8601
- return key;
8677
+ if (!path) return key;
8602
8678
  return path.concat(key).map(function each(token, i) {
8603
8679
  token = removeBrackets(token);
8604
8680
  return !dots && i ? "[" + token + "]" : token;
@@ -8610,7 +8686,7 @@ function isFlatArray(arr) {
8610
8686
  const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
8611
8687
  return /^is[A-Z]/.test(prop);
8612
8688
  });
8613
- function toFormData(obj, formData, options) {
8689
+ function toFormData$1(obj, formData, options) {
8614
8690
  if (!utils$1.isObject(obj)) {
8615
8691
  throw new TypeError("target must be an object");
8616
8692
  }
@@ -8632,13 +8708,12 @@ function toFormData(obj, formData, options) {
8632
8708
  throw new TypeError("visitor must be a function");
8633
8709
  }
8634
8710
  function convertValue(value) {
8635
- if (value === null)
8636
- return "";
8711
+ if (value === null) return "";
8637
8712
  if (utils$1.isDate(value)) {
8638
8713
  return value.toISOString();
8639
8714
  }
8640
8715
  if (!useBlob && utils$1.isBlob(value)) {
8641
- throw new AxiosError("Blob is not supported. Use a Buffer instead.");
8716
+ throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
8642
8717
  }
8643
8718
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
8644
8719
  return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
@@ -8676,8 +8751,7 @@ function toFormData(obj, formData, options) {
8676
8751
  isVisitable
8677
8752
  });
8678
8753
  function build(value, path) {
8679
- if (utils$1.isUndefined(value))
8680
- return;
8754
+ if (utils$1.isUndefined(value)) return;
8681
8755
  if (stack.indexOf(value) !== -1) {
8682
8756
  throw Error("Circular reference detected in " + path.join("."));
8683
8757
  }
@@ -8718,7 +8792,7 @@ function encode$1(str) {
8718
8792
  }
8719
8793
  function AxiosURLSearchParams(params, options) {
8720
8794
  this._pairs = [];
8721
- params && toFormData(params, this, options);
8795
+ params && toFormData$1(params, this, options);
8722
8796
  }
8723
8797
  const prototype = AxiosURLSearchParams.prototype;
8724
8798
  prototype.append = function append(name, value) {
@@ -8822,7 +8896,6 @@ class InterceptorManager {
8822
8896
  });
8823
8897
  }
8824
8898
  }
8825
- const InterceptorManager$1 = InterceptorManager;
8826
8899
  const transitionalDefaults = {
8827
8900
  silentJSONParsing: true,
8828
8901
  forcedJSONParsing: true,
@@ -8861,7 +8934,7 @@ const platform = {
8861
8934
  ...platform$1
8862
8935
  };
8863
8936
  function toURLEncodedForm(data, options) {
8864
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
8937
+ return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
8865
8938
  visitor: function(value, key, path, helpers) {
8866
8939
  if (platform.isNode && utils$1.isBuffer(value)) {
8867
8940
  this.append(key, value.toString("base64"));
@@ -8891,8 +8964,7 @@ function arrayToObject(arr) {
8891
8964
  function formDataToJSON(formData) {
8892
8965
  function buildPath(path, value, target, index2) {
8893
8966
  let name = path[index2++];
8894
- if (name === "__proto__")
8895
- return true;
8967
+ if (name === "__proto__") return true;
8896
8968
  const isNumericKey = Number.isFinite(+name);
8897
8969
  const isLast = index2 >= path.length;
8898
8970
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -8966,7 +9038,7 @@ const defaults = {
8966
9038
  }
8967
9039
  if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
8968
9040
  const _FormData = this.env && this.env.FormData;
8969
- return toFormData(
9041
+ return toFormData$1(
8970
9042
  isFileList2 ? { "files[]": data } : data,
8971
9043
  _FormData && new _FormData(),
8972
9044
  this.formSerializer
@@ -8994,7 +9066,7 @@ const defaults = {
8994
9066
  } catch (e) {
8995
9067
  if (strictJSONParsing) {
8996
9068
  if (e.name === "SyntaxError") {
8997
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
9069
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
8998
9070
  }
8999
9071
  throw e;
9000
9072
  }
@@ -9028,7 +9100,6 @@ const defaults = {
9028
9100
  utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
9029
9101
  defaults.headers[method] = {};
9030
9102
  });
9031
- const defaults$1 = defaults;
9032
9103
  const ignoreDuplicateOf = utils$1.toObjectSet([
9033
9104
  "age",
9034
9105
  "authorization",
@@ -9099,8 +9170,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
9099
9170
  if (isHeaderNameFilter) {
9100
9171
  value = header;
9101
9172
  }
9102
- if (!utils$1.isString(value))
9103
- return;
9173
+ if (!utils$1.isString(value)) return;
9104
9174
  if (utils$1.isString(filter2)) {
9105
9175
  return value.indexOf(filter2) !== -1;
9106
9176
  }
@@ -9124,7 +9194,7 @@ function buildAccessors(obj, header) {
9124
9194
  });
9125
9195
  });
9126
9196
  }
9127
- class AxiosHeaders {
9197
+ let AxiosHeaders$1 = class AxiosHeaders {
9128
9198
  constructor(headers) {
9129
9199
  headers && this.set(headers);
9130
9200
  }
@@ -9279,9 +9349,9 @@ class AxiosHeaders {
9279
9349
  utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
9280
9350
  return this;
9281
9351
  }
9282
- }
9283
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
9284
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
9352
+ };
9353
+ AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
9354
+ utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
9285
9355
  let mapped = key[0].toUpperCase() + key.slice(1);
9286
9356
  return {
9287
9357
  get: () => value,
@@ -9290,10 +9360,9 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
9290
9360
  }
9291
9361
  };
9292
9362
  });
9293
- utils$1.freezeMethods(AxiosHeaders);
9294
- const AxiosHeaders$1 = AxiosHeaders;
9363
+ utils$1.freezeMethods(AxiosHeaders$1);
9295
9364
  function transformData(fns, response) {
9296
- const config = this || defaults$1;
9365
+ const config = this || defaults;
9297
9366
  const context = response || config;
9298
9367
  const headers = AxiosHeaders$1.from(context.headers);
9299
9368
  let data = context.data;
@@ -9303,14 +9372,14 @@ function transformData(fns, response) {
9303
9372
  headers.normalize();
9304
9373
  return data;
9305
9374
  }
9306
- function isCancel(value) {
9375
+ function isCancel$1(value) {
9307
9376
  return !!(value && value.__CANCEL__);
9308
9377
  }
9309
- function CanceledError(message, config, request) {
9310
- AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
9378
+ function CanceledError$1(message, config, request) {
9379
+ AxiosError$1.call(this, message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
9311
9380
  this.name = "CanceledError";
9312
9381
  }
9313
- utils$1.inherits(CanceledError, AxiosError, {
9382
+ utils$1.inherits(CanceledError$1, AxiosError$1, {
9314
9383
  __CANCEL__: true
9315
9384
  });
9316
9385
  function settle(resolve, reject, response) {
@@ -9318,9 +9387,9 @@ function settle(resolve, reject, response) {
9318
9387
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
9319
9388
  resolve(response);
9320
9389
  } else {
9321
- reject(new AxiosError(
9390
+ reject(new AxiosError$1(
9322
9391
  "Request failed with status code " + response.status,
9323
- [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
9392
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
9324
9393
  response.config,
9325
9394
  response.request,
9326
9395
  response
@@ -9429,7 +9498,7 @@ const progressEventDecorator = (total, throttled) => {
9429
9498
  }), throttled[1]];
9430
9499
  };
9431
9500
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
9432
- const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
9501
+ const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
9433
9502
  url = new URL(url, platform.origin);
9434
9503
  return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
9435
9504
  })(
@@ -9481,7 +9550,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
9481
9550
  return requestedURL;
9482
9551
  }
9483
9552
  const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
9484
- function mergeConfig(config1, config2) {
9553
+ function mergeConfig$1(config1, config2) {
9485
9554
  config2 = config2 || {};
9486
9555
  const config = {};
9487
9556
  function getMergedValue(target, source, prop, caseless) {
@@ -9559,7 +9628,7 @@ function mergeConfig(config1, config2) {
9559
9628
  return config;
9560
9629
  }
9561
9630
  const resolveConfig = (config) => {
9562
- const newConfig = mergeConfig({}, config);
9631
+ const newConfig = mergeConfig$1({}, config);
9563
9632
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
9564
9633
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
9565
9634
  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
@@ -9650,11 +9719,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9650
9719
  if (!request) {
9651
9720
  return;
9652
9721
  }
9653
- reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
9722
+ reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
9654
9723
  request = null;
9655
9724
  };
9656
9725
  request.onerror = function handleError() {
9657
- reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
9726
+ reject(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request));
9658
9727
  request = null;
9659
9728
  };
9660
9729
  request.ontimeout = function handleTimeout() {
@@ -9663,9 +9732,9 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9663
9732
  if (_config.timeoutErrorMessage) {
9664
9733
  timeoutErrorMessage = _config.timeoutErrorMessage;
9665
9734
  }
9666
- reject(new AxiosError(
9735
+ reject(new AxiosError$1(
9667
9736
  timeoutErrorMessage,
9668
- transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
9737
+ transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
9669
9738
  config,
9670
9739
  request
9671
9740
  ));
@@ -9697,7 +9766,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9697
9766
  if (!request) {
9698
9767
  return;
9699
9768
  }
9700
- reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
9769
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
9701
9770
  request.abort();
9702
9771
  request = null;
9703
9772
  };
@@ -9708,7 +9777,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9708
9777
  }
9709
9778
  const protocol = parseProtocol(_config.url);
9710
9779
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
9711
- reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
9780
+ reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
9712
9781
  return;
9713
9782
  }
9714
9783
  request.send(requestData || null);
@@ -9724,12 +9793,12 @@ const composeSignals = (signals, timeout) => {
9724
9793
  aborted = true;
9725
9794
  unsubscribe();
9726
9795
  const err = reason instanceof Error ? reason : this.reason;
9727
- controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
9796
+ controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
9728
9797
  }
9729
9798
  };
9730
9799
  let timer = timeout && setTimeout(() => {
9731
9800
  timer = null;
9732
- onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
9801
+ onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
9733
9802
  }, timeout);
9734
9803
  const unsubscribe = () => {
9735
9804
  if (signals) {
@@ -9747,10 +9816,9 @@ const composeSignals = (signals, timeout) => {
9747
9816
  return signal;
9748
9817
  }
9749
9818
  };
9750
- const composeSignals$1 = composeSignals;
9751
9819
  const streamChunk = function* (chunk, chunkSize) {
9752
9820
  let len = chunk.byteLength;
9753
- if (!chunkSize || len < chunkSize) {
9821
+ if (len < chunkSize) {
9754
9822
  yield chunk;
9755
9823
  return;
9756
9824
  }
@@ -9825,7 +9893,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
9825
9893
  };
9826
9894
  const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
9827
9895
  const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
9828
- const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
9896
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
9829
9897
  const test = (fn, ...args) => {
9830
9898
  try {
9831
9899
  return !!fn(...args);
@@ -9853,7 +9921,7 @@ const resolvers = {
9853
9921
  isFetchSupported && ((res) => {
9854
9922
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
9855
9923
  !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
9856
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
9924
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
9857
9925
  });
9858
9926
  });
9859
9927
  })(new Response());
@@ -9901,7 +9969,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
9901
9969
  fetchOptions
9902
9970
  } = resolveConfig(config);
9903
9971
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
9904
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
9972
+ let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
9905
9973
  let request;
9906
9974
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
9907
9975
  composedSignal.unsubscribe();
@@ -9976,13 +10044,13 @@ const fetchAdapter = isFetchSupported && (async (config) => {
9976
10044
  unsubscribe && unsubscribe();
9977
10045
  if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
9978
10046
  throw Object.assign(
9979
- new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
10047
+ new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
9980
10048
  {
9981
10049
  cause: err.cause || err
9982
10050
  }
9983
10051
  );
9984
10052
  }
9985
- throw AxiosError.from(err, err && err.code, config, request);
10053
+ throw AxiosError$1.from(err, err && err.code, config, request);
9986
10054
  }
9987
10055
  });
9988
10056
  const knownAdapters = {
@@ -10015,7 +10083,7 @@ const adapters = {
10015
10083
  if (!isResolvedHandle(nameOrAdapter)) {
10016
10084
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
10017
10085
  if (adapter === void 0) {
10018
- throw new AxiosError(`Unknown adapter '${id}'`);
10086
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
10019
10087
  }
10020
10088
  }
10021
10089
  if (adapter) {
@@ -10028,7 +10096,7 @@ const adapters = {
10028
10096
  ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
10029
10097
  );
10030
10098
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
10031
- throw new AxiosError(
10099
+ throw new AxiosError$1(
10032
10100
  `There is no suitable adapter to dispatch the request ` + s,
10033
10101
  "ERR_NOT_SUPPORT"
10034
10102
  );
@@ -10042,7 +10110,7 @@ function throwIfCancellationRequested(config) {
10042
10110
  config.cancelToken.throwIfRequested();
10043
10111
  }
10044
10112
  if (config.signal && config.signal.aborted) {
10045
- throw new CanceledError(null, config);
10113
+ throw new CanceledError$1(null, config);
10046
10114
  }
10047
10115
  }
10048
10116
  function dispatchRequest(config) {
@@ -10055,7 +10123,7 @@ function dispatchRequest(config) {
10055
10123
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
10056
10124
  config.headers.setContentType("application/x-www-form-urlencoded", false);
10057
10125
  }
10058
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
10126
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
10059
10127
  return adapter(config).then(function onAdapterResolution(response) {
10060
10128
  throwIfCancellationRequested(config);
10061
10129
  response.data = transformData.call(
@@ -10066,7 +10134,7 @@ function dispatchRequest(config) {
10066
10134
  response.headers = AxiosHeaders$1.from(response.headers);
10067
10135
  return response;
10068
10136
  }, function onAdapterRejection(reason) {
10069
- if (!isCancel(reason)) {
10137
+ if (!isCancel$1(reason)) {
10070
10138
  throwIfCancellationRequested(config);
10071
10139
  if (reason && reason.response) {
10072
10140
  reason.response.data = transformData.call(
@@ -10080,7 +10148,7 @@ function dispatchRequest(config) {
10080
10148
  return Promise.reject(reason);
10081
10149
  });
10082
10150
  }
10083
- const VERSION = "1.8.4";
10151
+ const VERSION$1 = "1.8.4";
10084
10152
  const validators$1 = {};
10085
10153
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
10086
10154
  validators$1[type] = function validator2(thing) {
@@ -10090,13 +10158,13 @@ const validators$1 = {};
10090
10158
  const deprecatedWarnings = {};
10091
10159
  validators$1.transitional = function transitional(validator2, version, message) {
10092
10160
  function formatMessage(opt, desc) {
10093
- return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
10161
+ return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
10094
10162
  }
10095
10163
  return (value, opt, opts) => {
10096
10164
  if (validator2 === false) {
10097
- throw new AxiosError(
10165
+ throw new AxiosError$1(
10098
10166
  formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
10099
- AxiosError.ERR_DEPRECATED
10167
+ AxiosError$1.ERR_DEPRECATED
10100
10168
  );
10101
10169
  }
10102
10170
  if (version && !deprecatedWarnings[opt]) {
@@ -10119,7 +10187,7 @@ validators$1.spelling = function spelling(correctSpelling) {
10119
10187
  };
10120
10188
  function assertOptions(options, schema, allowUnknown) {
10121
10189
  if (typeof options !== "object") {
10122
- throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
10190
+ throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
10123
10191
  }
10124
10192
  const keys2 = Object.keys(options);
10125
10193
  let i = keys2.length;
@@ -10130,12 +10198,12 @@ function assertOptions(options, schema, allowUnknown) {
10130
10198
  const value = options[opt];
10131
10199
  const result2 = value === void 0 || validator2(value, opt, options);
10132
10200
  if (result2 !== true) {
10133
- throw new AxiosError("option " + opt + " must be " + result2, AxiosError.ERR_BAD_OPTION_VALUE);
10201
+ throw new AxiosError$1("option " + opt + " must be " + result2, AxiosError$1.ERR_BAD_OPTION_VALUE);
10134
10202
  }
10135
10203
  continue;
10136
10204
  }
10137
10205
  if (allowUnknown !== true) {
10138
- throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
10206
+ throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
10139
10207
  }
10140
10208
  }
10141
10209
  }
@@ -10144,12 +10212,12 @@ const validator = {
10144
10212
  validators: validators$1
10145
10213
  };
10146
10214
  const validators = validator.validators;
10147
- class Axios {
10215
+ let Axios$1 = class Axios {
10148
10216
  constructor(instanceConfig) {
10149
10217
  this.defaults = instanceConfig;
10150
10218
  this.interceptors = {
10151
- request: new InterceptorManager$1(),
10152
- response: new InterceptorManager$1()
10219
+ request: new InterceptorManager(),
10220
+ response: new InterceptorManager()
10153
10221
  };
10154
10222
  }
10155
10223
  /**
@@ -10187,7 +10255,7 @@ class Axios {
10187
10255
  } else {
10188
10256
  config = configOrUrl || {};
10189
10257
  }
10190
- config = mergeConfig(this.defaults, config);
10258
+ config = mergeConfig$1(this.defaults, config);
10191
10259
  const { transitional: transitional2, paramsSerializer, headers } = config;
10192
10260
  if (transitional2 !== void 0) {
10193
10261
  validator.assertOptions(transitional2, {
@@ -10208,8 +10276,7 @@ class Axios {
10208
10276
  }, true);
10209
10277
  }
10210
10278
  }
10211
- if (config.allowAbsoluteUrls !== void 0)
10212
- ;
10279
+ if (config.allowAbsoluteUrls !== void 0) ;
10213
10280
  else if (this.defaults.allowAbsoluteUrls !== void 0) {
10214
10281
  config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
10215
10282
  } else {
@@ -10284,14 +10351,14 @@ class Axios {
10284
10351
  return promise;
10285
10352
  }
10286
10353
  getUri(config) {
10287
- config = mergeConfig(this.defaults, config);
10354
+ config = mergeConfig$1(this.defaults, config);
10288
10355
  const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
10289
10356
  return buildURL(fullPath, config.params, config.paramsSerializer);
10290
10357
  }
10291
- }
10358
+ };
10292
10359
  utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
10293
- Axios.prototype[method] = function(url, config) {
10294
- return this.request(mergeConfig(config || {}, {
10360
+ Axios$1.prototype[method] = function(url, config) {
10361
+ return this.request(mergeConfig$1(config || {}, {
10295
10362
  method,
10296
10363
  url,
10297
10364
  data: (config || {}).data
@@ -10301,7 +10368,7 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
10301
10368
  utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
10302
10369
  function generateHTTPMethod(isForm) {
10303
10370
  return function httpMethod(url, data, config) {
10304
- return this.request(mergeConfig(config || {}, {
10371
+ return this.request(mergeConfig$1(config || {}, {
10305
10372
  method,
10306
10373
  headers: isForm ? {
10307
10374
  "Content-Type": "multipart/form-data"
@@ -10311,11 +10378,10 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
10311
10378
  }));
10312
10379
  };
10313
10380
  }
10314
- Axios.prototype[method] = generateHTTPMethod();
10315
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
10381
+ Axios$1.prototype[method] = generateHTTPMethod();
10382
+ Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
10316
10383
  });
10317
- const Axios$1 = Axios;
10318
- class CancelToken {
10384
+ let CancelToken$1 = class CancelToken {
10319
10385
  constructor(executor) {
10320
10386
  if (typeof executor !== "function") {
10321
10387
  throw new TypeError("executor must be a function.");
@@ -10326,8 +10392,7 @@ class CancelToken {
10326
10392
  });
10327
10393
  const token = this;
10328
10394
  this.promise.then((cancel) => {
10329
- if (!token._listeners)
10330
- return;
10395
+ if (!token._listeners) return;
10331
10396
  let i = token._listeners.length;
10332
10397
  while (i-- > 0) {
10333
10398
  token._listeners[i](cancel);
@@ -10349,7 +10414,7 @@ class CancelToken {
10349
10414
  if (token.reason) {
10350
10415
  return;
10351
10416
  }
10352
- token.reason = new CanceledError(message, config, request);
10417
+ token.reason = new CanceledError$1(message, config, request);
10353
10418
  resolvePromise(token.reason);
10354
10419
  });
10355
10420
  }
@@ -10410,17 +10475,16 @@ class CancelToken {
10410
10475
  cancel
10411
10476
  };
10412
10477
  }
10413
- }
10414
- const CancelToken$1 = CancelToken;
10415
- function spread(callback) {
10478
+ };
10479
+ function spread$1(callback) {
10416
10480
  return function wrap(arr) {
10417
10481
  return callback.apply(null, arr);
10418
10482
  };
10419
10483
  }
10420
- function isAxiosError(payload) {
10484
+ function isAxiosError$1(payload) {
10421
10485
  return utils$1.isObject(payload) && payload.isAxiosError === true;
10422
10486
  }
10423
- const HttpStatusCode = {
10487
+ const HttpStatusCode$1 = {
10424
10488
  Continue: 100,
10425
10489
  SwitchingProtocols: 101,
10426
10490
  Processing: 102,
@@ -10485,41 +10549,57 @@ const HttpStatusCode = {
10485
10549
  NotExtended: 510,
10486
10550
  NetworkAuthenticationRequired: 511
10487
10551
  };
10488
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
10489
- HttpStatusCode[value] = key;
10552
+ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
10553
+ HttpStatusCode$1[value] = key;
10490
10554
  });
10491
- const HttpStatusCode$1 = HttpStatusCode;
10492
10555
  function createInstance(defaultConfig2) {
10493
10556
  const context = new Axios$1(defaultConfig2);
10494
10557
  const instance = bind(Axios$1.prototype.request, context);
10495
10558
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
10496
10559
  utils$1.extend(instance, context, null, { allOwnKeys: true });
10497
10560
  instance.create = function create2(instanceConfig) {
10498
- return createInstance(mergeConfig(defaultConfig2, instanceConfig));
10561
+ return createInstance(mergeConfig$1(defaultConfig2, instanceConfig));
10499
10562
  };
10500
10563
  return instance;
10501
10564
  }
10502
- const axios = createInstance(defaults$1);
10565
+ const axios = createInstance(defaults);
10503
10566
  axios.Axios = Axios$1;
10504
- axios.CanceledError = CanceledError;
10567
+ axios.CanceledError = CanceledError$1;
10505
10568
  axios.CancelToken = CancelToken$1;
10506
- axios.isCancel = isCancel;
10507
- axios.VERSION = VERSION;
10508
- axios.toFormData = toFormData;
10509
- axios.AxiosError = AxiosError;
10569
+ axios.isCancel = isCancel$1;
10570
+ axios.VERSION = VERSION$1;
10571
+ axios.toFormData = toFormData$1;
10572
+ axios.AxiosError = AxiosError$1;
10510
10573
  axios.Cancel = axios.CanceledError;
10511
10574
  axios.all = function all(promises) {
10512
10575
  return Promise.all(promises);
10513
10576
  };
10514
- axios.spread = spread;
10515
- axios.isAxiosError = isAxiosError;
10516
- axios.mergeConfig = mergeConfig;
10577
+ axios.spread = spread$1;
10578
+ axios.isAxiosError = isAxiosError$1;
10579
+ axios.mergeConfig = mergeConfig$1;
10517
10580
  axios.AxiosHeaders = AxiosHeaders$1;
10518
10581
  axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
10519
10582
  axios.getAdapter = adapters.getAdapter;
10520
10583
  axios.HttpStatusCode = HttpStatusCode$1;
10521
10584
  axios.default = axios;
10522
- const axios$1 = axios;
10585
+ const {
10586
+ Axios: Axios2,
10587
+ AxiosError,
10588
+ CanceledError,
10589
+ isCancel,
10590
+ CancelToken: CancelToken2,
10591
+ VERSION,
10592
+ all: all2,
10593
+ Cancel,
10594
+ isAxiosError,
10595
+ spread,
10596
+ toFormData,
10597
+ AxiosHeaders: AxiosHeaders2,
10598
+ HttpStatusCode,
10599
+ formToJSON,
10600
+ getAdapter,
10601
+ mergeConfig
10602
+ } = axios;
10523
10603
  function isPhone() {
10524
10604
  if (typeof window !== "undefined" && window.navigator) {
10525
10605
  const flag = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);
@@ -10575,20 +10655,13 @@ const getOSVersion = () => {
10575
10655
  }
10576
10656
  break;
10577
10657
  case "Windows":
10578
- if (userAgent.indexOf("Windows NT 10.0") > -1)
10579
- version = "10";
10580
- else if (userAgent.indexOf("Windows NT 6.3") > -1)
10581
- version = "8.1";
10582
- else if (userAgent.indexOf("Windows NT 6.2") > -1)
10583
- version = "8";
10584
- else if (userAgent.indexOf("Windows NT 6.1") > -1)
10585
- version = "7";
10586
- else if (userAgent.indexOf("Windows NT 6.0") > -1)
10587
- version = "Vista";
10588
- else if (userAgent.indexOf("Windows NT 5.1") > -1)
10589
- version = "XP";
10590
- else if (userAgent.indexOf("Windows NT 5.0") > -1)
10591
- version = "2000";
10658
+ if (userAgent.indexOf("Windows NT 10.0") > -1) version = "10";
10659
+ else if (userAgent.indexOf("Windows NT 6.3") > -1) version = "8.1";
10660
+ else if (userAgent.indexOf("Windows NT 6.2") > -1) version = "8";
10661
+ else if (userAgent.indexOf("Windows NT 6.1") > -1) version = "7";
10662
+ else if (userAgent.indexOf("Windows NT 6.0") > -1) version = "Vista";
10663
+ else if (userAgent.indexOf("Windows NT 5.1") > -1) version = "XP";
10664
+ else if (userAgent.indexOf("Windows NT 5.0") > -1) version = "2000";
10592
10665
  break;
10593
10666
  case "Android":
10594
10667
  if (userAgent.match(/Android (\d+)\.?(\d+)?/)) {
@@ -10646,7 +10719,7 @@ const setPassportPrefix = (url, method) => {
10646
10719
  return url;
10647
10720
  };
10648
10721
  const proxyService = (params, customConfigs) => {
10649
- const service = axios$1.create({
10722
+ const service = axios.create({
10650
10723
  baseURL: layoutConfig$3.VITE_API_HOST,
10651
10724
  timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
10652
10725
  withCredentials: true
@@ -10683,6 +10756,7 @@ const proxyService = (params, customConfigs) => {
10683
10756
  },
10684
10757
  async (error) => {
10685
10758
  const { response } = error;
10759
+ const { config } = response || {};
10686
10760
  if (response) {
10687
10761
  const errData = response.data;
10688
10762
  errData.http_status = response.status;
@@ -10810,8 +10884,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
10810
10884
  npsPopVisible.value = nps_global.expire && nps_global.expire < Date.now();
10811
10885
  }
10812
10886
  const swTab = (item) => {
10813
- if (rateNow.value === null && item.index === 1)
10814
- return;
10887
+ if (rateNow.value === null && item.index === 1) return;
10815
10888
  NPSOffsetOptions.crossAxis = item.offset_x;
10816
10889
  opinionStep.value = item.index;
10817
10890
  window.dispatchEvent(new Event("resize"));
@@ -11153,9 +11226,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
11153
11226
  };
11154
11227
  }
11155
11228
  });
11156
- const index_vue_vue_type_style_index_0_scoped_89eb8bf2_lang = "";
11157
- const index_vue_vue_type_style_index_1_lang$3 = "";
11158
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-89eb8bf2"]]);
11229
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11159
11230
  function usePopup(className, rootElement) {
11160
11231
  const root2 = rootElement || document.getElementById("app");
11161
11232
  let cacheClass = "popup-container";
@@ -11269,8 +11340,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
11269
11340
  };
11270
11341
  }
11271
11342
  });
11272
- const index_vue_vue_type_style_index_0_scoped_0edd3696_lang = "";
11273
- const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0edd3696"]]);
11343
+ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11274
11344
  const black = {
11275
11345
  "theme-stress-text": "#f0f6fc",
11276
11346
  "theme-text": "#D2D8E4",
@@ -11712,8 +11782,7 @@ class Theme {
11712
11782
  }
11713
11783
  applyTheme() {
11714
11784
  const isAutoTheme = this.getIsAutoTheme();
11715
- if (!isAutoTheme)
11716
- return;
11785
+ if (!isAutoTheme) return;
11717
11786
  if (this.darkModeMediaQuery.matches) {
11718
11787
  console.log("dark");
11719
11788
  setTheme(ThemeType.BLACK);
@@ -11776,7 +11845,7 @@ const usePageResize = () => {
11776
11845
  });
11777
11846
  return { widthType, width, widthConfig, isMobile };
11778
11847
  };
11779
- const _imports_0 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQuMDAwMDAwIiBoZWlnaHQ9IjI0LjAwMDAwMCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCgk8ZGVzYz4NCgkJCUNyZWF0ZWQgd2l0aCBQaXhzby4NCgk8L2Rlc2M+DQoJPGRlZnMvPg0KCTxnIG9wYWNpdHk9IjAuNjAwMDAwIj4NCgkJPHBhdGggaWQ9IlZlY3RvciIgZD0iTTIyIDEzLjg5QzIyIDExLjgyIDIwLjcyIDEwLjAxIDE4LjgxIDkuMkMxOS4wOCAxMC4xIDE5LjI3IDExIDE5LjI3IDExLjkxQzE5LjI3IDE0LjcgMTggMTcuMjMgMTUuOSAxOC44NkMxNi4xOCAxOC45NSAxNi41NCAxOC45NSAxNi45IDE4Ljk1QzE3LjU0IDE4Ljk1IDIwLjI3IDE5LjA0IDIxLjM2IDE5LjEzQzIxLjU0IDE5LjEzIDIxLjYzIDE4Ljk1IDIxLjU0IDE4Ljc3QzIxLjA4IDE4LjQxIDIw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xNDI3TDExLjk3NDYgMTUuMTQyN1pNMTQuOTg2MyA4Ljg2MDM1TDE0Ljk4NjMgMTUuMTQzN0wxMy4wNDEgMTUuMTQzN0wxMy4wNDEgOC44NjAzNUwxNC45ODYzIDguODYwMzVaTTguNDQ1MzEgMTAuNzkzMUw4Ljg3MzA1IDEwLjc5MzFMOS4yMzgyOCAxMi4yNDNMOC4wODAwOCAxMi4yNDNMOC40NDUzMSAxMC43OTMxWiIgY2xpcC1ydWxlPSJldmVub2RkIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEuMDAwMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4NCjwvc3ZnPg0K";
11848
+ const _imports_0 = "data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3cg%20opacity='0.600000'%3e%3cpath%20id='Vector'%20d='M22%2013.89C22%2011.82%2020.72%2010.01%2018.81%209.2C19.08%2010.1%2019.27%2011%2019.27%2011.91C19.27%2014.7%2018%2017.23%2015.9%2018.86C16.18%2018.95%2016.54%2018.95%2016.9%2018.95C17.54%2018.95%2020.27%2019.04%2021.36%2019.13C21.54%2019.13%2021.63%2018.95%2021.54%2018.77C21.08%2018.41%2020.45%2017.59%2020.72%2017.23C21.54%2016.33%2022%2015.16%2022%2013.89L22%2013.89Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/g%3e%3cpath%20id='减去顶层'%20d='M10.1816%203.875C5.63672%203.875%202%207.48608%202%2011.9097C2%2013.9861%202.72656%2015.7916%204%2017.2361C4.36328%2017.6875%204%2018.5903%203.54492%2019.3125C3.36328%2019.6736%203.54492%2020.125%204%2020.125C5.72656%2020.125%209.18164%2020.0347%2010.1816%2020.0347C14.7266%2020.0347%2018.3633%2016.4236%2018.3633%2011.9097C18.3633%207.48608%2014.7266%203.875%2010.1816%203.875ZM11.9746%2015.1427L10.5762%209.59204C10.5234%209.38306%2010.4023%209.19751%2010.2324%209.06494C10.0605%208.93225%209.84961%208.86035%209.63281%208.86023L7.68555%208.86023C7.46875%208.86035%207.25781%208.93225%207.08594%209.06494C6.91602%209.19751%206.79492%209.38306%206.74219%209.59204L5.34375%2015.1427L7.35156%2015.1427L7.59375%2014.176L9.72461%2014.176L9.9668%2015.1427L11.9746%2015.1427ZM14.9863%208.86035L14.9863%2015.1437L13.041%2015.1437L13.041%208.86035L14.9863%208.86035ZM8.44531%2010.7931L8.87305%2010.7931L9.23828%2012.243L8.08008%2012.243L8.44531%2010.7931Z'%20clip-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/svg%3e";
11780
11849
  const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDEzf3XimO+h+GTwFls9S43G5O2NLaLtqp2VKaJiSCB0yGEQEJAHFIMkwKXxMjl8AopwvXxl07y8V4EvXdnMo3cye+6xtK3jOVISmYCAlb/KZgTBT4Pd8TD+TfGegiApyiH0pAF+6vpvzOhegoNxUvNiSwZS88II32VcAniVhTIAya6AgeS9/AK0AFXKH2BMFmN+kxqfF4wVXwA0snQdUgQcXtwoFgLJk/T6xqG7Kx2w4xi5Mw37ziQF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LzPnc5/OhwQ6ckh0K0Mo7uirlLazFklQvy9+9utusn//n9yZXVt+bvIhEcxnRvfSiJDSrPgWI/OsGsQyzNbeMdSczuwVnDfD//3x2+vxXqqmswhdSJ06hM+BRAlRm8wdXuOvYZ3/qTK78sZNNy1CWF7uqOU3Z8e6X1DMd90OkkOxD/JmRBkonAigmM0t+yg27r8XxsQVNbjs2Zy/vLV87AKgMZTNrHphepRJryyQq3j1DUpcyLdNOovvjpdNR0KEAxfg3W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
11781
11850
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
11782
11851
  ...{
@@ -11819,14 +11888,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
11819
11888
  };
11820
11889
  }
11821
11890
  });
11822
- const index_vue_vue_type_style_index_0_lang$1 = "";
11823
11891
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11824
11892
  function getDefaultExportFromCjs(x) {
11825
11893
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11826
11894
  }
11827
11895
  function getAugmentedNamespace(n) {
11828
- if (n.__esModule)
11829
- return n;
11896
+ if (n.__esModule) return n;
11830
11897
  var f = n.default;
11831
11898
  if (typeof f == "function") {
11832
11899
  var a = function a2() {
@@ -11836,8 +11903,7 @@ function getAugmentedNamespace(n) {
11836
11903
  return f.apply(this, arguments);
11837
11904
  };
11838
11905
  a.prototype = f.prototype;
11839
- } else
11840
- a = {};
11906
+ } else a = {};
11841
11907
  Object.defineProperty(a, "__esModule", { value: true });
11842
11908
  Object.keys(n).forEach(function(k) {
11843
11909
  var d = Object.getOwnPropertyDescriptor(n, k);
@@ -11863,8 +11929,7 @@ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
11863
11929
  const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
11864
11930
  var hasRequiredCore;
11865
11931
  function requireCore() {
11866
- if (hasRequiredCore)
11867
- return core.exports;
11932
+ if (hasRequiredCore) return core.exports;
11868
11933
  hasRequiredCore = 1;
11869
11934
  (function(module, exports) {
11870
11935
  (function(root2, factory) {
@@ -11912,7 +11977,7 @@ function requireCore() {
11912
11977
  }
11913
11978
  throw new Error("Native crypto module could not be used to get secure random number.");
11914
11979
  };
11915
- var create2 = Object.create || function() {
11980
+ var create2 = Object.create || /* @__PURE__ */ function() {
11916
11981
  function F() {
11917
11982
  }
11918
11983
  return function(obj) {
@@ -11925,7 +11990,7 @@ function requireCore() {
11925
11990
  }();
11926
11991
  var C = {};
11927
11992
  var C_lib = C.lib = {};
11928
- var Base = C_lib.Base = function() {
11993
+ var Base = C_lib.Base = /* @__PURE__ */ function() {
11929
11994
  return {
11930
11995
  /**
11931
11996
  * Creates a new object that inherits from this object.
@@ -12471,8 +12536,7 @@ function requireCore() {
12471
12536
  var encBase64 = { exports: {} };
12472
12537
  var hasRequiredEncBase64;
12473
12538
  function requireEncBase64() {
12474
- if (hasRequiredEncBase64)
12475
- return encBase64.exports;
12539
+ if (hasRequiredEncBase64) return encBase64.exports;
12476
12540
  hasRequiredEncBase64 = 1;
12477
12541
  (function(module, exports) {
12478
12542
  (function(root2, factory) {
@@ -12579,8 +12643,7 @@ function requireEncBase64() {
12579
12643
  var md5 = { exports: {} };
12580
12644
  var hasRequiredMd5;
12581
12645
  function requireMd5() {
12582
- if (hasRequiredMd5)
12583
- return md5.exports;
12646
+ if (hasRequiredMd5) return md5.exports;
12584
12647
  hasRequiredMd5 = 1;
12585
12648
  (function(module, exports) {
12586
12649
  (function(root2, factory) {
@@ -12759,8 +12822,7 @@ var evpkdf = { exports: {} };
12759
12822
  var sha1 = { exports: {} };
12760
12823
  var hasRequiredSha1;
12761
12824
  function requireSha1() {
12762
- if (hasRequiredSha1)
12763
- return sha1.exports;
12825
+ if (hasRequiredSha1) return sha1.exports;
12764
12826
  hasRequiredSha1 = 1;
12765
12827
  (function(module, exports) {
12766
12828
  (function(root2, factory) {
@@ -12850,8 +12912,7 @@ function requireSha1() {
12850
12912
  var hmac = { exports: {} };
12851
12913
  var hasRequiredHmac;
12852
12914
  function requireHmac() {
12853
- if (hasRequiredHmac)
12854
- return hmac.exports;
12915
+ if (hasRequiredHmac) return hmac.exports;
12855
12916
  hasRequiredHmac = 1;
12856
12917
  (function(module, exports) {
12857
12918
  (function(root2, factory) {
@@ -12956,8 +13017,7 @@ function requireHmac() {
12956
13017
  }
12957
13018
  var hasRequiredEvpkdf;
12958
13019
  function requireEvpkdf() {
12959
- if (hasRequiredEvpkdf)
12960
- return evpkdf.exports;
13020
+ if (hasRequiredEvpkdf) return evpkdf.exports;
12961
13021
  hasRequiredEvpkdf = 1;
12962
13022
  (function(module, exports) {
12963
13023
  (function(root2, factory, undef) {
@@ -13047,8 +13107,7 @@ function requireEvpkdf() {
13047
13107
  var cipherCore = { exports: {} };
13048
13108
  var hasRequiredCipherCore;
13049
13109
  function requireCipherCore() {
13050
- if (hasRequiredCipherCore)
13051
- return cipherCore.exports;
13110
+ if (hasRequiredCipherCore) return cipherCore.exports;
13052
13111
  hasRequiredCipherCore = 1;
13053
13112
  (function(module, exports) {
13054
13113
  (function(root2, factory, undef) {
@@ -13190,7 +13249,7 @@ function requireCipherCore() {
13190
13249
  *
13191
13250
  * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
13192
13251
  */
13193
- _createHelper: function() {
13252
+ _createHelper: /* @__PURE__ */ function() {
13194
13253
  function selectCipherStrategy(key) {
13195
13254
  if (typeof key == "string") {
13196
13255
  return PasswordBasedCipher;
@@ -13609,11 +13668,15 @@ function requireCipherCore() {
13609
13668
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
13610
13669
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
13611
13670
  */
13612
- execute: function(password, keySize, ivSize, salt) {
13671
+ execute: function(password, keySize, ivSize, salt, hasher) {
13613
13672
  if (!salt) {
13614
13673
  salt = WordArray.random(64 / 8);
13615
13674
  }
13616
- var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
13675
+ if (!hasher) {
13676
+ var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
13677
+ } else {
13678
+ var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
13679
+ }
13617
13680
  var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
13618
13681
  key.sigBytes = keySize * 4;
13619
13682
  return CipherParams.create({ key, iv, salt });
@@ -13647,7 +13710,7 @@ function requireCipherCore() {
13647
13710
  */
13648
13711
  encrypt: function(cipher, message, password, cfg) {
13649
13712
  cfg = this.cfg.extend(cfg);
13650
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
13713
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
13651
13714
  cfg.iv = derivedParams.iv;
13652
13715
  var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
13653
13716
  ciphertext.mixIn(derivedParams);
@@ -13673,7 +13736,7 @@ function requireCipherCore() {
13673
13736
  decrypt: function(cipher, ciphertext, password, cfg) {
13674
13737
  cfg = this.cfg.extend(cfg);
13675
13738
  ciphertext = this._parse(ciphertext, cfg.format);
13676
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
13739
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
13677
13740
  cfg.iv = derivedParams.iv;
13678
13741
  var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
13679
13742
  return plaintext;
@@ -14357,9 +14420,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14357
14420
  };
14358
14421
  }
14359
14422
  });
14360
- const AiHubMenus_vue_vue_type_style_index_0_scoped_25dfc896_lang = "";
14361
- const AiHubMenus_vue_vue_type_style_index_1_lang = "";
14362
- const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-25dfc896"]]);
14423
+ const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-gitcode-layout-lib"]]);
14363
14424
  const _hoisted_1$q = ["src"];
14364
14425
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
14365
14426
  ...{ name: "FlashTag" },
@@ -14414,7 +14475,6 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14414
14475
  };
14415
14476
  }
14416
14477
  });
14417
- const FlashTag_vue_vue_type_style_index_0_lang = "";
14418
14478
  function listCacheClear$1() {
14419
14479
  this.__data__ = [];
14420
14480
  this.size = 0;
@@ -14477,11 +14537,11 @@ function listCacheSet$1(key, value) {
14477
14537
  }
14478
14538
  var _listCacheSet = listCacheSet$1;
14479
14539
  var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
14480
- function ListCache$4(entries) {
14481
- var index2 = -1, length = entries == null ? 0 : entries.length;
14540
+ function ListCache$4(entries2) {
14541
+ var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14482
14542
  this.clear();
14483
14543
  while (++index2 < length) {
14484
- var entry = entries[index2];
14544
+ var entry = entries2[index2];
14485
14545
  this.set(entry[0], entry[1]);
14486
14546
  }
14487
14547
  }
@@ -14678,11 +14738,11 @@ function hashSet$1(key, value) {
14678
14738
  }
14679
14739
  var _hashSet = hashSet$1;
14680
14740
  var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
14681
- function Hash$1(entries) {
14682
- var index2 = -1, length = entries == null ? 0 : entries.length;
14741
+ function Hash$1(entries2) {
14742
+ var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14683
14743
  this.clear();
14684
14744
  while (++index2 < length) {
14685
- var entry = entries[index2];
14745
+ var entry = entries2[index2];
14686
14746
  this.set(entry[0], entry[1]);
14687
14747
  }
14688
14748
  }
@@ -14739,11 +14799,11 @@ function mapCacheSet$1(key, value) {
14739
14799
  }
14740
14800
  var _mapCacheSet = mapCacheSet$1;
14741
14801
  var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
14742
- function MapCache$1(entries) {
14743
- var index2 = -1, length = entries == null ? 0 : entries.length;
14802
+ function MapCache$1(entries2) {
14803
+ var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14744
14804
  this.clear();
14745
14805
  while (++index2 < length) {
14746
- var entry = entries[index2];
14806
+ var entry = entries2[index2];
14747
14807
  this.set(entry[0], entry[1]);
14748
14808
  }
14749
14809
  }
@@ -14772,8 +14832,8 @@ function stackSet$1(key, value) {
14772
14832
  }
14773
14833
  var _stackSet = stackSet$1;
14774
14834
  var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
14775
- function Stack$1(entries) {
14776
- var data = this.__data__ = new ListCache(entries);
14835
+ function Stack$1(entries2) {
14836
+ var data = this.__data__ = new ListCache(entries2);
14777
14837
  this.size = data.size;
14778
14838
  }
14779
14839
  Stack$1.prototype.clear = stackClear;
@@ -14868,7 +14928,7 @@ var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
14868
14928
  var objectProto$6 = Object.prototype;
14869
14929
  var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
14870
14930
  var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
14871
- var isArguments$1 = baseIsArguments(function() {
14931
+ var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
14872
14932
  return arguments;
14873
14933
  }()) ? baseIsArguments : function(value) {
14874
14934
  return isObjectLike$5(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
@@ -15275,7 +15335,7 @@ function initCloneByTag$1(object, tag, isDeep) {
15275
15335
  var _initCloneByTag = initCloneByTag$1;
15276
15336
  var isObject$4 = isObject_1;
15277
15337
  var objectCreate = Object.create;
15278
- var baseCreate$1 = function() {
15338
+ var baseCreate$1 = /* @__PURE__ */ function() {
15279
15339
  function object() {
15280
15340
  }
15281
15341
  return function(proto2) {
@@ -15455,8 +15515,7 @@ var relativeTime$1 = { exports: {} };
15455
15515
  break;
15456
15516
  }
15457
15517
  }
15458
- if (n2)
15459
- return a;
15518
+ if (n2) return a;
15460
15519
  var M2 = s ? l.future : l.past;
15461
15520
  return "function" == typeof M2 ? M2(a) : M2.replace("%s", a);
15462
15521
  }, n.to = function(r2, e2) {
@@ -15512,8 +15571,7 @@ const en = {
15512
15571
  };
15513
15572
  var padStart = function padStart2(string, length, pad) {
15514
15573
  var s = String(string);
15515
- if (!s || s.length >= length)
15516
- return string;
15574
+ if (!s || s.length >= length) return string;
15517
15575
  return "" + Array(length + 1 - s.length).join(pad) + string;
15518
15576
  };
15519
15577
  var padZoneStr = function padZoneStr2(instance) {
@@ -15524,8 +15582,7 @@ var padZoneStr = function padZoneStr2(instance) {
15524
15582
  return (negMinutes <= 0 ? "+" : "-") + padStart(hourOffset, 2, "0") + ":" + padStart(minuteOffset, 2, "0");
15525
15583
  };
15526
15584
  var monthDiff = function monthDiff2(a, b) {
15527
- if (a.date() < b.date())
15528
- return -monthDiff2(b, a);
15585
+ if (a.date() < b.date()) return -monthDiff2(b, a);
15529
15586
  var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
15530
15587
  var anchor = a.clone().add(wholeMonthDiff, M);
15531
15588
  var c = b - anchor < 0;
@@ -15570,8 +15627,7 @@ var isDayjs = function isDayjs2(d) {
15570
15627
  };
15571
15628
  var parseLocale = function parseLocale2(preset, object, isLocal) {
15572
15629
  var l;
15573
- if (!preset)
15574
- return L;
15630
+ if (!preset) return L;
15575
15631
  if (typeof preset === "string") {
15576
15632
  var presetLower = preset.toLowerCase();
15577
15633
  if (Ls[presetLower]) {
@@ -15590,8 +15646,7 @@ var parseLocale = function parseLocale2(preset, object, isLocal) {
15590
15646
  Ls[name] = preset;
15591
15647
  l = name;
15592
15648
  }
15593
- if (!isLocal && l)
15594
- L = l;
15649
+ if (!isLocal && l) L = l;
15595
15650
  return l || !isLocal && L;
15596
15651
  };
15597
15652
  var dayjs = function dayjs2(date, c) {
@@ -15618,12 +15673,9 @@ Utils.i = isDayjs;
15618
15673
  Utils.w = wrapper;
15619
15674
  var parseDate = function parseDate2(cfg) {
15620
15675
  var date = cfg.date, utc2 = cfg.utc;
15621
- if (date === null)
15622
- return /* @__PURE__ */ new Date(NaN);
15623
- if (Utils.u(date))
15624
- return /* @__PURE__ */ new Date();
15625
- if (date instanceof Date)
15626
- return new Date(date);
15676
+ if (date === null) return /* @__PURE__ */ new Date(NaN);
15677
+ if (Utils.u(date)) return /* @__PURE__ */ new Date();
15678
+ if (date instanceof Date) return new Date(date);
15627
15679
  if (typeof date === "string" && !/Z$/i.test(date)) {
15628
15680
  var d = date.match(REGEX_PARSE);
15629
15681
  if (d) {
@@ -15677,8 +15729,7 @@ var Dayjs = /* @__PURE__ */ function() {
15677
15729
  return this.endOf(units) < dayjs(that);
15678
15730
  };
15679
15731
  _proto.$g = function $g(input, get, set) {
15680
- if (Utils.u(input))
15681
- return this[get];
15732
+ if (Utils.u(input)) return this[get];
15682
15733
  return this.set(set, input);
15683
15734
  };
15684
15735
  _proto.unix = function unix() {
@@ -15743,8 +15794,7 @@ var Dayjs = /* @__PURE__ */ function() {
15743
15794
  date.$d[name](arg);
15744
15795
  date.init();
15745
15796
  this.$d = date.set(DATE, Math.min(this.$D, date.daysInMonth())).$d;
15746
- } else if (name)
15747
- this.$d[name](arg);
15797
+ } else if (name) this.$d[name](arg);
15748
15798
  this.init();
15749
15799
  return this;
15750
15800
  };
@@ -15784,8 +15834,7 @@ var Dayjs = /* @__PURE__ */ function() {
15784
15834
  _proto.format = function format2(formatStr) {
15785
15835
  var _this3 = this;
15786
15836
  var locale2 = this.$locale();
15787
- if (!this.isValid())
15788
- return locale2.invalidDate || INVALID_DATE_STRING;
15837
+ if (!this.isValid()) return locale2.invalidDate || INVALID_DATE_STRING;
15789
15838
  var str = formatStr || FORMAT_DEFAULT;
15790
15839
  var zoneStr = Utils.z(this);
15791
15840
  var $H = this.$H, $m = this.$m, $M = this.$M;
@@ -15908,12 +15957,10 @@ var Dayjs = /* @__PURE__ */ function() {
15908
15957
  return Ls[this.$L];
15909
15958
  };
15910
15959
  _proto.locale = function locale2(preset, object) {
15911
- if (!preset)
15912
- return this.$L;
15960
+ if (!preset) return this.$L;
15913
15961
  var that = this.clone();
15914
15962
  var nextLocaleName = parseLocale(preset, object, true);
15915
- if (nextLocaleName)
15916
- that.$L = nextLocaleName;
15963
+ if (nextLocaleName) that.$L = nextLocaleName;
15917
15964
  return that;
15918
15965
  };
15919
15966
  _proto.clone = function clone2() {
@@ -16042,8 +16089,7 @@ var timezone = { exports: {} };
16042
16089
  f.tz = function(t3, e2) {
16043
16090
  void 0 === t3 && (t3 = r);
16044
16091
  var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t3 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
16045
- if (!Number(s2))
16046
- n2 = this.utcOffset(0, e2);
16092
+ if (!Number(s2)) n2 = this.utcOffset(0, e2);
16047
16093
  else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
16048
16094
  var m = n2.utcOffset();
16049
16095
  n2 = n2.add(i2 - m, "minute");
@@ -16057,18 +16103,15 @@ var timezone = { exports: {} };
16057
16103
  };
16058
16104
  var s = f.startOf;
16059
16105
  f.startOf = function(t3, e2) {
16060
- if (!this.$x || !this.$x.$timezone)
16061
- return s.call(this, t3, e2);
16106
+ if (!this.$x || !this.$x.$timezone) return s.call(this, t3, e2);
16062
16107
  var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
16063
16108
  return s.call(n2, t3, e2).tz(this.$x.$timezone, true);
16064
16109
  }, o.tz = function(t3, e2, n2) {
16065
16110
  var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
16066
- if ("string" != typeof t3)
16067
- return o(t3).tz(a2);
16111
+ if ("string" != typeof t3) return o(t3).tz(a2);
16068
16112
  var s2 = function(t4, e3, n3) {
16069
16113
  var i3 = t4 - 60 * e3 * 1e3, o2 = u(i3, n3);
16070
- if (e3 === o2)
16071
- return [i3, e3];
16114
+ if (e3 === o2) return [i3, e3];
16072
16115
  var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
16073
16116
  return o2 === r2 ? [i3, o2] : [t4 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
16074
16117
  }(o.utc(t3, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
@@ -16109,31 +16152,25 @@ var utc$1 = { exports: {} };
16109
16152
  if (this.$u) {
16110
16153
  var t3 = this.$d;
16111
16154
  this.$y = t3.getUTCFullYear(), this.$M = t3.getUTCMonth(), this.$D = t3.getUTCDate(), this.$W = t3.getUTCDay(), this.$H = t3.getUTCHours(), this.$m = t3.getUTCMinutes(), this.$s = t3.getUTCSeconds(), this.$ms = t3.getUTCMilliseconds();
16112
- } else
16113
- r.call(this);
16155
+ } else r.call(this);
16114
16156
  };
16115
16157
  var a = u.utcOffset;
16116
16158
  u.utcOffset = function(s2, f2) {
16117
16159
  var n2 = this.$utils().u;
16118
- if (n2(s2))
16119
- return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
16160
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
16120
16161
  if ("string" == typeof s2 && (s2 = function(t3) {
16121
16162
  void 0 === t3 && (t3 = "");
16122
16163
  var s3 = t3.match(i);
16123
- if (!s3)
16124
- return null;
16164
+ if (!s3) return null;
16125
16165
  var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
16126
16166
  return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
16127
- }(s2), null === s2))
16128
- return this;
16167
+ }(s2), null === s2)) return this;
16129
16168
  var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
16130
- if (f2)
16131
- return o2.$offset = u2, o2.$u = 0 === s2, o2;
16169
+ if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
16132
16170
  if (0 !== s2) {
16133
16171
  var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
16134
16172
  (o2 = this.local().add(u2 + r2, t2)).$offset = u2, o2.$x.$localOffset = r2;
16135
- } else
16136
- o2 = this.utc();
16173
+ } else o2 = this.utc();
16137
16174
  return o2;
16138
16175
  };
16139
16176
  var h2 = u.format;
@@ -16156,8 +16193,7 @@ var utc$1 = { exports: {} };
16156
16193
  };
16157
16194
  var c = u.diff;
16158
16195
  u.diff = function(t3, i2, e2) {
16159
- if (t3 && this.$u === t3.$u)
16160
- return c.call(this, t3, i2, e2);
16196
+ if (t3 && this.$u === t3.$u) return c.call(this, t3, i2, e2);
16161
16197
  var s2 = this.local(), f2 = n(t3).local();
16162
16198
  return c.call(s2, f2, i2, e2);
16163
16199
  };
@@ -16184,14 +16220,12 @@ dayjs$1.extend(utc);
16184
16220
  dayjs$1.tz.setDefault("Asia/Shanghai");
16185
16221
  const useTimeFormat = () => {
16186
16222
  const formatTimeFromNow = (time) => {
16187
- if (!time)
16188
- return "-";
16223
+ if (!time) return "-";
16189
16224
  const targetDate = isDate$1(time) ? time : new Date(time);
16190
16225
  return formatTimeDifference(targetDate);
16191
16226
  };
16192
16227
  const formatTime = (time, format2) => {
16193
- if (!time)
16194
- return "-";
16228
+ if (!time) return "-";
16195
16229
  return dayjs$1(time).format(format2);
16196
16230
  };
16197
16231
  return {
@@ -16292,8 +16326,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16292
16326
  const inAIHub = computed(() => aiHubSceneValue.includes(props.scene));
16293
16327
  const emits = __emit;
16294
16328
  const handleOrgFollow = (val) => {
16295
- if (props.scene !== SceneValue.org)
16296
- return;
16329
+ if (props.scene !== SceneValue.org) return;
16297
16330
  if (!props.isLogin) {
16298
16331
  emitEvent("login", { triggerType: "关注组织" });
16299
16332
  return;
@@ -16302,8 +16335,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16302
16335
  };
16303
16336
  const topicTag = computed(() => {
16304
16337
  var _a, _b;
16305
- if (props.scene !== SceneValue.repo)
16306
- return false;
16338
+ if (props.scene !== SceneValue.repo) return false;
16307
16339
  let repoType = 1;
16308
16340
  repoType = Number((_a = repoInfo.value) == null ? void 0 : _a.repo_type) - 1;
16309
16341
  if ((_b = props.repoProps) == null ? void 0 : _b.isSpaces) {
@@ -16334,10 +16366,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16334
16366
  return false;
16335
16367
  });
16336
16368
  const toAiHub = () => {
16337
- if (props.scene !== SceneValue.repo)
16338
- return;
16339
- if (!topicTag.value)
16340
- return;
16369
+ if (props.scene !== SceneValue.repo) return;
16370
+ if (!topicTag.value) return;
16341
16371
  const aiUrl = `${layoutConfig2.VITE_AI_HOST}${topicTag.value.linkUrl}`;
16342
16372
  if (typeof window !== "undefined" && window.location) {
16343
16373
  window.location.href = aiUrl;
@@ -16345,8 +16375,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16345
16375
  };
16346
16376
  const showTimeTopic = computed(() => {
16347
16377
  var _a, _b;
16348
- if (props.scene !== SceneValue.repo)
16349
- return false;
16378
+ if (props.scene !== SceneValue.repo) return false;
16350
16379
  if (!((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at)) {
16351
16380
  return false;
16352
16381
  }
@@ -16361,8 +16390,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16361
16390
  return formatTimeFromNow((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at);
16362
16391
  });
16363
16392
  const handleFollowUser = () => {
16364
- if (props.scene !== SceneValue.user)
16365
- return;
16393
+ if (props.scene !== SceneValue.user) return;
16366
16394
  emits("followUser");
16367
16395
  };
16368
16396
  return (_ctx, _cache) => {
@@ -16609,9 +16637,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16609
16637
  };
16610
16638
  }
16611
16639
  });
16612
- const HeaderCustom_vue_vue_type_style_index_0_scoped_0a131cb4_lang = "";
16613
- const HeaderCustom_vue_vue_type_style_index_1_lang = "";
16614
- const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-0a131cb4"]]);
16640
+ const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16615
16641
  const logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAAAkCAYAAADrcPSPAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxj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vS+t0i6WysqM64DlAQOlScVzOkcPOVFblDRVER16GtneMpEPKW+li89PpmsnHpc4Iv/jxrPb4QXmQjg2OC1rwSXqCD9UwG0QAP95yvlqdsTw5bBOzBqVOOY84RVHcUpRcpe8qz8Qu3kKxDzgnMeiwkFzgXcwjPxD3KUURfMTJ7vLueqyGeL6SzocHpjK99rc9nzTSBpSLz9pyh4u46vj8k8DsUHv4JPxbf33kN/5V1TmgdbAjECibE32xkbCAc4kFB8KMwXqZHN1fPhAtYuPE51YiTU0nmdmzjUOfgpFNiRzOf8dFG5noJqnGUepBMzEnASZ24I4u85M6mGAlkJehTJ7SSrJHrm0Un2XKd8xKDzU+yPcUJu1mpWawvXgvLcDqO8JOK02RyRw10FievR2cpdYvqLK4MXyPQ2W7B0DAKa1gnIpvtEoSKmfj9Jfzg2qY1m8e4GD2x1F/t2hSxRqlvfSKSosFv7uWcwriRx3vdG5Mj7ijR8qlzIQoCVgeRTBxhmELsUsQ75WKezHOOu15S9PrRTJIiGd8F62XqbKD3ea9lFWUYY8ofu85xiJ2svGs/zSPZMuSEMt7VQd6vqnI+28Pv+XjMudl3su79intlYCXuPmJTpXhE4ZEFcsJM7M1rXHTWfmWArw4oUeIkIjEXsaiRFQPuDwGO97OAXaLE/xNSk329uZGgUWagsen6aefmmdK4SjwIyLVg9GdiDi3vdW7HeO00v4gUV0/q69pKlLgbyL8iC4GhcdZDvn9hpN9JAUA0umiUhlXiQUQhA4uC17eCLHl+aNMTKGgdRb8scr/853slSpQoUeKu4b/VMDt15riwZwAAAABJRU5ErkJggg==";
16616
16642
  const _hoisted_1$o = ["src"];
16617
16643
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
@@ -16638,8 +16664,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
16638
16664
  };
16639
16665
  }
16640
16666
  });
16641
- const ChatBot_vue_vue_type_style_index_0_scoped_e951add8_lang = "";
16642
- const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-e951add8"]]);
16667
+ const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16643
16668
  const _hoisted_1$n = { class: "devui-select__item g-option-link" };
16644
16669
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
16645
16670
  ...{
@@ -16670,9 +16695,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16670
16695
  };
16671
16696
  }
16672
16697
  });
16673
- const index_vue_vue_type_style_index_0_scoped_3606a524_lang = "";
16674
- const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-3606a524"]]);
16675
- const index_vue_vue_type_style_index_0_scoped_64f4760f_lang = "";
16698
+ const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16676
16699
  const _sfc_main$r = /* @__PURE__ */ Object.assign({
16677
16700
  name: "Create"
16678
16701
  }, {
@@ -16687,16 +16710,14 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({
16687
16710
  const layoutConfig2 = useLayoutConfig();
16688
16711
  const API = headRequest(inject("request"));
16689
16712
  const getUserCreateOrg = async (user) => {
16690
- var _a, _b, _c, _d, _e, _f;
16713
+ var _a, _b, _c;
16691
16714
  const res = await API.checkUserCreateOrg({ username: user });
16692
- if (!res.error) {
16693
- if (!user) {
16694
- localStorage$2.setItem("group_quota", (_a = res.data) == null ? void 0 : _a.data.group_quota);
16695
- localStorage$2.setItem("manageable_group_num", (_b = res.data) == null ? void 0 : _b.data.manageable_group_num);
16696
- orgStore.setIsCreateOrg(((_c = res.data) == null ? void 0 : _c.data.group_quota) - ((_d = res.data) == null ? void 0 : _d.data.manageable_group_num) > 0);
16697
- }
16698
- }
16699
- return ((_e = res.data) == null ? void 0 : _e.data.group_quota) - ((_f = res.data) == null ? void 0 : _f.data.manageable_group_num) > 0;
16715
+ const flag = ((_a = res.data) == null ? void 0 : _a.data.group_quota) - ((_b = res.data) == null ? void 0 : _b.data.manageable_group_num) > 0;
16716
+ const num = (_c = res.data) == null ? void 0 : _c.data.group_quota;
16717
+ return {
16718
+ flag,
16719
+ num
16720
+ };
16700
16721
  };
16701
16722
  const { t: $t } = i18n.global;
16702
16723
  const linkList = ref([
@@ -16709,10 +16730,9 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({
16709
16730
  const handleClick = async (linkItem, event) => {
16710
16731
  if (linkItem.linkName === `newOrg`) {
16711
16732
  const userInfo = JSON.parse(localStorage$2.getItem("userInfo") || "{}");
16712
- const flag = await getUserCreateOrg(userInfo == null ? void 0 : userInfo.username);
16733
+ const { flag, num } = await getUserCreateOrg(userInfo == null ? void 0 : userInfo.username);
16713
16734
  if (!flag) {
16714
- const quota = localStorage$2.getItem("group_quota") || 5;
16715
- Message.warning($t("userSetting.tips.youCanCreOrManUp", { num: quota }));
16735
+ Message.warning($t("gitCodeLayout.userSetting.tips.youCanCreOrManUp", { num }));
16716
16736
  return;
16717
16737
  } else {
16718
16738
  window.location.href = `${layoutConfig2.VITE_HOST}/org/create`;
@@ -16765,7 +16785,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({
16765
16785
  };
16766
16786
  }
16767
16787
  });
16768
- const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-64f4760f"]]);
16788
+ const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16769
16789
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
16770
16790
  ...{
16771
16791
  name: "DocumentCenter"
@@ -16792,8 +16812,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16792
16812
  };
16793
16813
  }
16794
16814
  });
16795
- const DocumentCenter_vue_vue_type_style_index_0_scoped_a5926f52_lang = "";
16796
- const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a5926f52"]]);
16815
+ const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16797
16816
  var root = _root;
16798
16817
  var now$1 = function() {
16799
16818
  return root.Date.now();
@@ -16990,8 +17009,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16990
17009
  };
16991
17010
  }
16992
17011
  });
16993
- const Notice_vue_vue_type_style_index_0_scoped_061b58d4_lang = "";
16994
- const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-061b58d4"]]);
17012
+ const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16995
17013
  const _hoisted_1$m = {
16996
17014
  key: 0,
16997
17015
  class: "user-level-avatar-badge"
@@ -17074,8 +17092,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17074
17092
  };
17075
17093
  }
17076
17094
  });
17077
- const UserLevel_vue_vue_type_style_index_0_scoped_9dda511e_lang = "";
17078
- const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-9dda511e"]]);
17095
+ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17079
17096
  const _hoisted_1$l = { class: "g-user-drawer-info-list pl-[16px]" };
17080
17097
  const _hoisted_2$f = { class: "max-w-[200px]" };
17081
17098
  const _hoisted_3$c = ["title"];
@@ -17189,7 +17206,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17189
17206
  }
17190
17207
  }
17191
17208
  const getVisit = async (value) => {
17192
- const visitedDate = value || localStorage$2.getItem(AVATAR_VISITED_DATE);
17209
+ const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
17193
17210
  const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
17194
17211
  const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
17195
17212
  if (visitedDate === nowDate && nowUserName === props.accountInfo.username) {
@@ -17262,8 +17279,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17262
17279
  };
17263
17280
  }
17264
17281
  });
17265
- const UserAvatarMenu_vue_vue_type_style_index_0_scoped_dfa86b44_lang = "";
17266
- const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dfa86b44"]]);
17282
+ const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17267
17283
  const _hoisted_1$k = { class: "g-user-avatar flex-center ml-1" };
17268
17284
  const _hoisted_2$e = {
17269
17285
  key: 0,
@@ -17307,14 +17323,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17307
17323
  handleAvatarRedPoint(CLICK_TIME_MODULE.GROWTH_CENTER, accountInfo.value.username);
17308
17324
  };
17309
17325
  const getVisit = async (value) => {
17310
- const visitedDate = value || localStorage$2.getItem(AVATAR_VISITED_DATE);
17326
+ const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
17311
17327
  const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
17312
17328
  const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
17313
17329
  if (visitedDate === nowDate && nowUserName === accountInfo.value.username) {
17314
17330
  haveVisited.value = true;
17315
17331
  }
17316
17332
  };
17317
- getVisit("");
17333
+ getVisit();
17318
17334
  const getScrollDom = () => {
17319
17335
  if (typeof document !== "undefined" && document.getElementById) {
17320
17336
  const appDom = document.getElementById("app");
@@ -17383,9 +17399,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17383
17399
  };
17384
17400
  }
17385
17401
  });
17386
- const UserAvatar_vue_vue_type_style_index_0_scoped_2b79e772_lang = "";
17387
- const UserAvatar_vue_vue_type_style_index_1_lang = "";
17388
- const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2b79e772"]]);
17402
+ const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17389
17403
  var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
17390
17404
  EVENT_NAME2["START_SEARCH"] = "开始搜索";
17391
17405
  EVENT_NAME2["SEARCH"] = "搜索";
@@ -17444,7 +17458,7 @@ function _frEventTrack(eventName, type = "custom") {
17444
17458
  }
17445
17459
  }
17446
17460
  const setlocalVistHistory = (data, localType) => {
17447
- const storeName = localType || "localVistList";
17461
+ const storeName = localType;
17448
17462
  const localData = localStorage$2.getItem(storeName);
17449
17463
  let cur = [];
17450
17464
  if (localData) {
@@ -17462,18 +17476,13 @@ const setlocalVistHistory = (data, localType) => {
17462
17476
  cur.splice(cur.indexOf(target), 1);
17463
17477
  cur.unshift(target);
17464
17478
  }
17465
- } else {
17466
- if (!cur.some((ele) => ele === data || data.label && ele.label === data.label)) {
17467
- cur.unshift(data);
17468
- }
17469
17479
  }
17470
17480
  } catch (e) {
17471
17481
  }
17472
17482
  } else {
17473
17483
  cur = [data];
17474
17484
  }
17475
- const isLocalSearch = localType === "localSearchText";
17476
- const storageCount = isLocalSearch ? 10 : 5;
17485
+ const storageCount = 10;
17477
17486
  cur.splice(storageCount);
17478
17487
  localStorage$2.setItem(storeName, JSON.stringify(cur));
17479
17488
  return cur;
@@ -17555,13 +17564,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
17555
17564
  setup(__props) {
17556
17565
  var _a;
17557
17566
  const { t: $t } = i18n.global;
17558
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-5917cad0.js"));
17559
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-6709a173.js"));
17560
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-c34185dd.js"));
17561
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-03f6394b.js"));
17562
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-0407f071.js"));
17563
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-84cc12b9.js"));
17564
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-91a14940.js"));
17567
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BaDWiUQz.js"));
17568
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-B0jZYoB2.js"));
17569
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DJOC2ste.js"));
17570
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CJWe_Sne.js"));
17571
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-olDlF_4j.js"));
17572
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-8CvFyr_G.js"));
17573
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-pC5kbYsi.js"));
17565
17574
  const props = __props;
17566
17575
  const repoInfo = inject("repoInfo");
17567
17576
  const orgInfo = inject("orgInfo");
@@ -18080,10 +18089,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18080
18089
  };
18081
18090
  }
18082
18091
  });
18083
- const index_vue_vue_type_style_index_0_scoped_56b3cd7b_lang = "";
18084
- const index_vue_vue_type_style_index_1_lang$2 = "";
18085
- const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-56b3cd7b"]]);
18086
- const NoticeModal = defineAsyncComponent(() => import("./notice-1775ea67.js"));
18092
+ const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18093
+ const NoticeModal = defineAsyncComponent(() => import("./notice-BuIVy3Zy.js"));
18087
18094
  function clearNotice() {
18088
18095
  if (localStorage$2.getItem("validator_email")) {
18089
18096
  localStorage$2.removeItem("validator_email");
@@ -18423,8 +18430,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18423
18430
  };
18424
18431
  }
18425
18432
  });
18426
- const index_vue_vue_type_style_index_0_scoped_1d4870b7_lang = "";
18427
- const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-1d4870b7"]]);
18433
+ const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18428
18434
  const createSetting = () => {
18429
18435
  const { t: t2 } = i18n.global;
18430
18436
  const settings = {
@@ -18472,7 +18478,6 @@ if (isBrowser) {
18472
18478
  }
18473
18479
  };
18474
18480
  }
18475
- const sessionStorage$1 = sessionStorage;
18476
18481
  const _hoisted_1$h = { class: "tools-item-wrapper" };
18477
18482
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
18478
18483
  const _hoisted_3$8 = ["onClick", "title"];
@@ -18484,12 +18489,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18484
18489
  const router2 = useRouter();
18485
18490
  const { t: t2 } = i18n.global;
18486
18491
  const handleClick = (linkItem) => {
18487
- if (lang.value === linkItem.value)
18488
- return;
18492
+ if (lang.value === linkItem.value) return;
18489
18493
  lang.value = linkItem.value;
18490
18494
  const isHomePage = router2.currentRoute.value.name === "home";
18491
18495
  if (isHomePage) {
18492
- sessionStorage$1.setItem("page_reload", "changedLang");
18496
+ sessionStorage.setItem("page_reload", "changedLang");
18493
18497
  }
18494
18498
  window.location.reload();
18495
18499
  };
@@ -18536,8 +18540,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18536
18540
  { value: ThemeType.BLACK, icon: "gt-line-dark" }
18537
18541
  ]);
18538
18542
  const handleClick = (themeItem) => {
18539
- if (activeTheme.value === themeItem.value)
18540
- return;
18543
+ if (activeTheme.value === themeItem.value) return;
18541
18544
  activeTheme.value = themeItem.value;
18542
18545
  if (themeItem.value === "System") {
18543
18546
  theme.startAutoTheme();
@@ -18574,7 +18577,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18574
18577
  };
18575
18578
  }
18576
18579
  });
18577
- const Theme_vue_vue_type_style_index_0_lang = "";
18578
18580
  const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
18579
18581
  var _a, _b;
18580
18582
  try {
@@ -18619,16 +18621,14 @@ const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
18619
18621
  };
18620
18622
  const layoutConfig$1 = useLayoutConfig();
18621
18623
  const transWebUrl = (url, params) => {
18622
- if (!url)
18623
- return url;
18624
+ if (!url) return url;
18624
18625
  let processedUrl = url;
18625
18626
  if (layoutConfig$1.VITE_ENV !== "production") {
18626
18627
  const regex = /^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)$/;
18627
18628
  const match = url.match(regex);
18628
18629
  processedUrl = match ? match[2] : url || "/";
18629
18630
  }
18630
- if (!params)
18631
- return processedUrl;
18631
+ if (!params) return processedUrl;
18632
18632
  const separator = processedUrl.includes("?") ? "&" : "?";
18633
18633
  if (typeof params === "string") {
18634
18634
  return `${processedUrl}${separator}${params}`;
@@ -18803,8 +18803,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18803
18803
  if (inputIng.value) {
18804
18804
  return;
18805
18805
  }
18806
- if (scTimer)
18807
- clearTimeout(scTimer);
18806
+ if (scTimer) clearTimeout(scTimer);
18808
18807
  scTimer = setTimeout(() => {
18809
18808
  if (props.type === "project") {
18810
18809
  searchProject();
@@ -18984,9 +18983,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18984
18983
  };
18985
18984
  }
18986
18985
  });
18987
- const ProjectMenuList_vue_vue_type_style_index_0_scoped_6834b457_lang = "";
18988
- const ProjectMenuList_vue_vue_type_style_index_1_lang = "";
18989
- const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6834b457"]]);
18986
+ const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18990
18987
  const _hoisted_1$e = { class: "side-bar-label" };
18991
18988
  const _hoisted_2$8 = {
18992
18989
  key: 0,
@@ -19077,18 +19074,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19077
19074
  };
19078
19075
  const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage$2.getItem("userInfo") || "{}").username);
19079
19076
  const showPreferencesSetting = computed(() => {
19080
- if (props.showPreferencesSetting !== void 0)
19081
- return !props.asideSetShowLittle && props.showPreferencesSetting;
19077
+ if (props.showPreferencesSetting !== void 0) return !props.asideSetShowLittle && props.showPreferencesSetting;
19082
19078
  return !props.asideSetShowLittle && route.name !== AICopilot_ROUTE_NAME && isModuleVisible(AsideDisplayItem.PREFERENCE);
19083
19079
  });
19084
19080
  const showThemeSetting = computed(() => {
19085
- if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0)
19086
- return props.showThemeSetting;
19081
+ if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0) return props.showThemeSetting;
19087
19082
  return ![SceneValue.aiHome, SceneValue.aiGuide].includes(props.sceneValue);
19088
19083
  });
19089
19084
  const showLangSetting = computed(() => {
19090
- if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0)
19091
- return props.showLangSetting;
19085
+ if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0) return props.showLangSetting;
19092
19086
  return true;
19093
19087
  });
19094
19088
  const isEn = computed(() => {
@@ -19277,16 +19271,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19277
19271
  emits("onMenuClick");
19278
19272
  };
19279
19273
  function checkMenu() {
19280
- if (!route)
19281
- return;
19274
+ if (!route) return;
19282
19275
  const name = route == null ? void 0 : route.name;
19283
19276
  if (MENU_ITEM_ROUTE_NAME.includes(name)) {
19284
19277
  defaultSelectKeys.value = [name];
19285
19278
  console.log(defaultSelectKeys.value);
19286
19279
  } else {
19287
19280
  const basePath = route.meta.basePath;
19288
- if (basePath)
19289
- defaultSelectKeys.value = [basePath];
19281
+ if (basePath) defaultSelectKeys.value = [basePath];
19290
19282
  }
19291
19283
  }
19292
19284
  watch(
@@ -19307,8 +19299,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19307
19299
  const timer = ref(null);
19308
19300
  const handleScroll = () => {
19309
19301
  isScroll.value = true;
19310
- if (timer.value)
19311
- clearTimeout(timer.value);
19302
+ if (timer.value) clearTimeout(timer.value);
19312
19303
  timer.value = setTimeout(() => {
19313
19304
  isScroll.value = false;
19314
19305
  }, 1e3);
@@ -19585,9 +19576,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19585
19576
  };
19586
19577
  }
19587
19578
  });
19588
- const asideContent_vue_vue_type_style_index_0_scoped_f33b2a32_lang = "";
19589
- const asideContent_vue_vue_type_style_index_1_lang = "";
19590
- const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f33b2a32"]]);
19579
+ const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19591
19580
  const _hoisted_1$d = { class: "p-[16px] flex justify-between items-center h-[60px]" };
19592
19581
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
19593
19582
  __name: "index",
@@ -19614,8 +19603,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19614
19603
  provide("userInfo", computed(() => props.userInfo));
19615
19604
  provide("useReport", useReport2);
19616
19605
  const showBgColor = computed(() => {
19617
- if (route.meta.showBgColor)
19618
- return true;
19606
+ if (route.meta.showBgColor) return true;
19619
19607
  return false;
19620
19608
  });
19621
19609
  const asideSetShow = computed(() => {
@@ -19721,9 +19709,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19721
19709
  };
19722
19710
  }
19723
19711
  });
19724
- const index_vue_vue_type_style_index_0_scoped_f5208450_lang = "";
19725
- const index_vue_vue_type_style_index_1_lang$1 = "";
19726
- const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f5208450"]]);
19712
+ const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19727
19713
  const repoInfoData = {
19728
19714
  "star_count": 0,
19729
19715
  "forks_count": 0,
@@ -20398,7 +20384,6 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20398
20384
  };
20399
20385
  }
20400
20386
  });
20401
- const home_vue_vue_type_style_index_0_lang = "";
20402
20387
  const _hoisted_1$b = { class: "home-wrapper" };
20403
20388
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
20404
20389
  __name: "login",
@@ -20445,7 +20430,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
20445
20430
  };
20446
20431
  }
20447
20432
  });
20448
- const login_vue_vue_type_style_index_0_lang = "";
20449
20433
  const routes = [
20450
20434
  {
20451
20435
  path: "/",
@@ -20533,7 +20517,7 @@ async function csdnloginCheck(route, loginCallback, request) {
20533
20517
  localStorage$2.setItem("cache_loginTimes", `${Number(loginTimes) + 1}`);
20534
20518
  window.page_title = ((_f = route.meta) == null ? void 0 : _f.reportTitle) || "";
20535
20519
  await useReport("pageview", {}, request);
20536
- sessionStorage$1.setItem(GOTO_QUICK_LOGIN, "1");
20520
+ sessionStorage.setItem(GOTO_QUICK_LOGIN, "1");
20537
20521
  loginCallback();
20538
20522
  return true;
20539
20523
  }
@@ -20552,8 +20536,7 @@ const createLoginConfig = (request) => {
20552
20536
  }, failFunc = () => {
20553
20537
  } } = param;
20554
20538
  const check = validFunc ? await validFunc() : true;
20555
- if (!check)
20556
- return;
20539
+ if (!check) return;
20557
20540
  const result2 = await API.loginByMobile(loginParams);
20558
20541
  if (!result2.error) {
20559
20542
  const resultData = result2.data.data;
@@ -20570,8 +20553,7 @@ const createLoginConfig = (request) => {
20570
20553
  }, failFunc = () => {
20571
20554
  } } = param;
20572
20555
  const check = validFunc ? await validFunc() : true;
20573
- if (!check)
20574
- return;
20556
+ if (!check) return;
20575
20557
  const result2 = await API.toLogin(loginParams);
20576
20558
  if (((_a = result2 == null ? void 0 : result2.error) == null ? void 0 : _a.error_code) === GRAPH_CODE) {
20577
20559
  graphValidate();
@@ -20615,8 +20597,7 @@ const createLoginConfig = (request) => {
20615
20597
  beforeCsdnLogin(param) {
20616
20598
  const { type, validFunc } = param;
20617
20599
  const check = validFunc ? validFunc() : true;
20618
- if (!check)
20619
- return;
20600
+ if (!check) return;
20620
20601
  saveStatusBeforeLogin(param);
20621
20602
  goAuthPage(type);
20622
20603
  },
@@ -20642,8 +20623,7 @@ const createLoginConfig = (request) => {
20642
20623
  async beforeWechatLogin(param) {
20643
20624
  const { validFunc, type } = param;
20644
20625
  const check = validFunc == null ? void 0 : validFunc();
20645
- if (!check)
20646
- return;
20626
+ if (!check) return;
20647
20627
  saveStatusBeforeLogin(param);
20648
20628
  goAuthPage(type);
20649
20629
  },
@@ -20655,8 +20635,7 @@ const createLoginConfig = (request) => {
20655
20635
  beforeOtherLogin(param) {
20656
20636
  const { type, validFunc } = param;
20657
20637
  const check = validFunc ? validFunc() : true;
20658
- if (!check)
20659
- return;
20638
+ if (!check) return;
20660
20639
  saveStatusBeforeLogin(param);
20661
20640
  goAuthPage(type);
20662
20641
  },
@@ -20683,7 +20662,7 @@ function saveSignPath() {
20683
20662
  localStorage$2.setItem("sign_path", (window == null ? void 0 : window.location.href) || "");
20684
20663
  }
20685
20664
  function saveLoginType(triggerType = "") {
20686
- sessionStorage$1.setItem("loginType", triggerType);
20665
+ sessionStorage.setItem("loginType", triggerType);
20687
20666
  }
20688
20667
  function getLoginReturnUrl() {
20689
20668
  return api.get("third_utm_source_sign_path") || localStorage$2.getItem("loginReturnUrl") || "/";
@@ -20862,57 +20841,57 @@ const HandleParentWindowGetLoginInfo = (request) => {
20862
20841
  }
20863
20842
  };
20864
20843
  };
20865
- const logoBack = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy/lt6blpIfku708L3RpdGxlPg0KICAgIDxnIGlkPSJQQ+erryIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSIwMi3nmbvlvZXms6jlhowt55m75b2V44CB5rOo5YaMIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTUzLCAtMTg1NSkiIGZpbGw9IiM4QThFOTkiIGZpbGwtcnVsZT0ibm9uemVybyI+DQogICAgICAgICAgICA8ZyBpZD0i57yW57uELTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNSwgMTgzMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSJpYy/lt6blpIfku70iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMxLjEzOTMsIDI4Ljk2OTcpIj4NCiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hCIgcG9pbnRzPSI4LjAzMDI5MTIxIDMuNTUyNzEzNjhlLTE1IDkuMDkxMDI5MTQgMS4wNjA1ODI0IDIuODcyNSA3LjI3OTUgMTcuODYwNjYwMiA3LjI4MDI5MTIgMTcuODYwNjYwMiA4Ljc4MDI5MTIgMi44Njk1IDguNzc5NSA5LjA5MTAyOTE0IDE0Ljk5OTkyMjIgOC4wMzAzNjg5OCAxNi4wNjA2NjAyIDAgOC4wMzE0Njg4NCI+PC9wb2x5Z29uPg0KICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgIDwvZz4NCiAgICAgICAgPC9nPg0KICAgIDwvZz4NCjwvc3ZnPg==";
20844
+ const logoBack = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/左备份%3c/title%3e%3cg%20id='PC端'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='02-登录注册-登录、注册'%20transform='translate(-153,%20-1855)'%20fill='%238A8E99'%20fill-rule='nonzero'%3e%3cg%20id='编组-8'%20transform='translate(125,%201830)'%3e%3cg%20id='ic/左备份'%20transform='translate(31.1393,%2028.9697)'%3e%3cpolygon%20id='路径'%20points='8.03029121%203.55271368e-15%209.09102914%201.0605824%202.8725%207.2795%2017.8606602%207.2802912%2017.8606602%208.7802912%202.8695%208.7795%209.09102914%2014.9999222%208.03036898%2016.0606602%200%208.03146884'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
20866
20845
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20867
20846
  __proto__: null,
20868
20847
  default: logoBack
20869
20848
  }, Symbol.toStringTag, { value: "Module" }));
20870
- const logoCsdn = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy9jc2RuPC90aXRsZT4NCiAgICA8ZyBpZD0iaWMvY3NkbiIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxwYXRoIGQ9Ik0yNC43Mzg1NjEy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i44NDQ3MjI4OCAxOS42OTUxNDM2LDEuNSAxNi4zOTY5NDQ1LDEuNSBDMTIuOTcxNTI5MiwxLjUgOS41ODc1NzY5NSwzLjA3NDY1NDQ3IDcuMTEyOTg1Myw1LjgyNDQxMDE2IEM0LjUxMzA2MjA4LDguNzEyNjkwMjEgMy4xMjQwNDkxLDEyLjY0NDE0MzUgMy4yMDMyMDU4OCwxNi44OTUwNTEgQzMuMjY2MzQyODMsMjAuMzA2MzMxMSA0LjM4NDkwMzQ5LDIzLjE3MjkzNzMgNi40NDAxNTI2OSwyNS4xODg2MDgxIEM4LjY0ODA2MTM4LDI3LjM1NTA1MzcgMTEuODgyMTgxMiwyOC41IDE1Ljc5NDc4NzYsMjguNSBDMjAuMzg0OTM4NCwyOC41IDIzLjIyODkyODMsMjcuMTQwMTk5NiAyNC44MDgyOTQ1LDI2LjAwMDkwNzQgQzI1LjQxOTg3NDksMjUuNTYwODMzNCAyNS43ODQ1NjE1LDI0Ljg2NDQ0MjMgMjUuODEyODMxNywyNC4wOTM2MDYgQzI1LjgzOTIxNzMsMjMuMzE5MDAwNCAyNS41MjI1OTAyLDIyLjU2MDQxNDYgMjQuOTQzMDQ5NSwyMi4wMTE5NzEyIEwyNC43Mzg1NjEyLDIxLjgxODc5MSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkM1NTMzIj48L3BhdGg+DQogICAgPC9nPg0KPC9zdmc+";
20849
+ const logoCsdn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/csdn%3c/title%3e%3cg%20id='ic/csdn'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M24.7385612,21.818791%20C24.4728206,21.5662432%2024.1090763,21.4267765%2023.7575825,21.4343152%20C23.3966653,21.4399693%2023.0696724,21.5907441%2022.8378562,21.8555424%20C20.7581061,24.2349574%2017.1347988,24.4922169%2015.6732254,24.4922169%20C12.9611634,24.4922169%2010.886125,23.8043069%209.50559315,22.4501605%20C8.19385225,21.1638629%207.50594216,19.2678696%207.46070972,16.8168365%20C7.35516735,11.1345107%2010.5732673,5.25806226%2016.139685,5.25806226%20C18.7980335,5.25806226%2020.8627061,7.14368979%2021.6260036,7.95410443%20C21.8917442,8.23586486%2022.2583155,8.39794779%2022.6352525,8.39983247%20C23.0131319,8.4092559%2023.362741,8.24151892%2023.599269,7.96164317%20L23.8160078,7.70532598%20C24.2607935,7.18232584%2024.4605701,6.50572386%2024.380471,5.80179394%20C24.2984872,5.09126763%2023.9422817,4.44293592%2023.3778185,3.97459165%20C22.0133064,2.84472288%2019.6951436,1.5%2016.3969445,1.5%20C12.9715292,1.5%209.58757695,3.07465447%207.1129853,5.82441016%20C4.51306208,8.71269021%203.1240491,12.6441435%203.20320588,16.895051%20C3.26634283,20.3063311%204.38490349,23.1729373%206.44015269,25.1886081%20C8.64806138,27.3550537%2011.8821812,28.5%2015.7947876,28.5%20C20.3849384,28.5%2023.2289283,27.1401996%2024.8082945,26.0009074%20C25.4198749,25.5608334%2025.7845615,24.8644423%2025.8128317,24.093606%20C25.8392173,23.3190004%2025.5225902,22.5604146%2024.9430495,22.0119712%20L24.7385612,21.818791%20Z'%20id='Fill-1'%20fill='%23FC5533'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20871
20850
  const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20872
20851
  __proto__: null,
20873
20852
  default: logoCsdn
20874
20853
  }, Symbol.toStringTag, { value: "Module" }));
20875
- const logoGit = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnL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ODcyIDI0LjQwMDQgMTQuNDI1OSAyMy4xNTI1IDE1LjczNSAyMi42ODkyVjEzLjMxMjZDMTQuNDI1OSAxMi44NDk0IDEzLjQ4NzIgMTEuNjAxNCAxMy40ODcyIDEwLjEzMzNDMTMuNDg3MiA5LjYxMjU1IDEzLjYwNTIgOS4xMTk4NCAxMy44MTU5IDguNjc5NjNMMTEuMDcwNCA1LjkzNDFMMC42NzgxMTEgMTYuMzI1N0MtMC4yMjYwMzcgMTcuMjMxMyAtMC4yMjYwMzcgMTguNjk3OSAwLjY3ODExMSAxOS42MDIxTDE2LjM4MTcgMzUuMzA0MkMxNy4yODU4IDM2LjIwODMgMTguNzUxNyAzNi4yMDgzIDE5LjY1NzMgMzUuMzA0MkwzNS4yODY4IDE5LjY3NDdDMzYuMTkxNiAxOC43Njk4IDM2LjE5MTYgMTcuMzAyNSAzNS4yODY4IDE2LjM5ODNaIiBmaWxsPSIjRjc0RTI3Ii8+DQo8L2c+DQo8ZGVmcz4NCjxjbGlwUGF0aCBpZD0iY2xpcDBfNTA4NF8yODYiPg0KPHJlY3Qgd2lkdGg9IjM2IiBoZWlnaHQ9IjM2IiBmaWxsPSJ3aGl0ZSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K";
20854
+ const logoGit = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5084_286)'%3e%3cpath%20d='M35.2868%2016.3983L19.5839%200.696229C18.6798%20-0.208639%2017.2132%20-0.208639%2016.3083%200.696229L12.66%204.34447L15.4056%207.09C15.8458%206.87925%2016.3385%206.76128%2016.8593%206.76128C18.7215%206.76128%2020.2313%208.27107%2020.2313%2010.1333C20.2313%2010.6541%2020.1133%2011.1468%2019.9026%2011.587L24.3974%2016.0818C24.8376%2015.8711%2025.3303%2015.7531%2025.8511%2015.7531C27.7134%2015.7531%2029.2231%2017.2629%2029.2231%2019.1252C29.2231%2020.9874%2027.7134%2022.4972%2025.8511%2022.4972C23.9889%2022.4972%2022.4791%2020.9874%2022.4791%2019.1252C22.4791%2018.6044%2022.597%2018.1117%2022.8078%2017.6715L18.313%2013.1766C18.2058%2013.2277%2018.0957%2013.273%2017.9835%2013.3126V22.6892C19.2926%2023.1525%2020.2313%2024.4004%2020.2313%2025.8685C20.2313%2027.7308%2018.7215%2029.2405%2016.8593%2029.2405C14.997%2029.2405%2013.4872%2027.7308%2013.4872%2025.8685C13.4872%2024.4004%2014.4259%2023.1525%2015.735%2022.6892V13.3126C14.4259%2012.8494%2013.4872%2011.6014%2013.4872%2010.1333C13.4872%209.61255%2013.6052%209.11984%2013.8159%208.67963L11.0704%205.9341L0.678111%2016.3257C-0.226037%2017.2313%20-0.226037%2018.6979%200.678111%2019.6021L16.3817%2035.3042C17.2858%2036.2083%2018.7517%2036.2083%2019.6573%2035.3042L35.2868%2019.6747C36.1916%2018.7698%2036.1916%2017.3025%2035.2868%2016.3983Z'%20fill='%23F74E27'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5084_286'%3e%3crect%20width='36'%20height='36'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
20876
20855
  const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20877
20856
  __proto__: null,
20878
20857
  default: logoGit
20879
20858
  }, Symbol.toStringTag, { value: "Module" }));
20880
- const logoGitee = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjk4ODA1NjY0NzU1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwID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zUyYTE4My4yOTYgMTgzLjI5NiAwIDAgMC0xODMuMjk2IDE4My4yOTZWNzYyLjUzODY2N2MwIDEzLjQ4MjY2NyAxMC45MjI2NjcgMjQuNDM5NDY3IDI0LjQwNTMzMyAyNC40Mzk0NjZoMzYwLjUxNjI2N2ExNjQuOTY2NCAxNjQuOTY2NCAwIDAgMCAxNjUuMDAwNTMzLTE2NS4wMDA1MzN2LTE0MC41MjY5MzNhMjQuNDM5NDY3IDI0LjQzOTQ2NyAwIDAgMC0yNC40Mzk0NjYtMjQuNDM5NDY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iNjExOCI+PC9wYXRoPjwvc3ZnPg==";
20859
+ const logoGitee = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1698805664755'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6116'%20width='128'%20height='128'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M512%20512m-494.933333%200a494.933333%20494.933333%200%201%200%20989.866666%200%20494.933333%20494.933333%200%201%200-989.866666%200Z'%20fill='%23C71D23'%20p-id='6117'%3e%3c/path%3e%3cpath%20d='M762.538667%20457.045333h-281.088a24.4736%2024.4736%200%200%200-24.439467%2024.405334v61.098666c-0.034133%2013.5168%2010.922667%2024.439467%2024.405333%2024.439467h171.1104c13.5168%200%2024.439467%2010.922667%2024.439467%2024.439467v12.219733a73.3184%2073.3184%200%200%201-73.3184%2073.3184h-232.209067a24.439467%2024.439467%200%200%201-24.439466-24.439467v-232.174933a73.3184%2073.3184%200%200%201%2073.3184-73.3184h342.152533c13.482667%200%2024.405333-10.922667%2024.439467-24.439467l0.034133-61.098666a24.405333%2024.405333%200%200%200-24.405333-24.439467H420.352a183.296%20183.296%200%200%200-183.296%20183.296V762.538667c0%2013.482667%2010.922667%2024.439467%2024.405333%2024.439466h360.516267a164.9664%20164.9664%200%200%200%20165.000533-165.000533v-140.526933a24.439467%2024.439467%200%200%200-24.439466-24.439467z'%20fill='%23FFFFFF'%20p-id='6118'%3e%3c/path%3e%3c/svg%3e";
20881
20860
  const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20882
20861
  __proto__: null,
20883
20862
  default: logoGitee
20884
20863
  }, Symbol.toStringTag, { value: "Module" }));
20885
- const logoGithubWhite = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzI4NDY4MDkyNTQ4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI3NTk5IiBpZD0ibXhfbl8xNzI4NDY4MDkyNTQ5IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik01MzMuMzEyIDMyQTQ5MC40OTYgNDkwLjQ5NiAwIDAgMCA0Mi42ODggNTIyLjY4OGE0OTAuMjQgNDkwLjI0IDAgMCAwIDMzNS40ODggNDY1LjQ3MmMyNC41MTIgNC4yODggMzMuNjY0LTEwLjQzMiAzMy42NjQtMjMuMjk2IDAtMTEuNjQ4LTAuNTc2LTUwLjI0LTAuNTc2LTkxLjM5Mi0xMjMuMjY0IDIyLjcyLTE1NS4xMzYtMzAuMDgtMTY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jAwIiBmaWxsPSIjZjBmNmZjIj48L3BhdGg+PC9zdmc+";
20864
+ const logoGithubWhite = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1728468092548'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='27599'%20id='mx_n_1728468092549'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M533.312%2032A490.496%20490.496%200%200%200%2042.688%20522.688a490.24%20490.24%200%200%200%20335.488%20465.472c24.512%204.288%2033.664-10.432%2033.664-23.296%200-11.648-0.576-50.24-0.576-91.392-123.264%2022.72-155.136-30.08-164.928-57.6-5.568-14.08-29.44-57.664-50.368-69.312-17.152-9.216-41.664-31.936-0.64-32.512%2038.72-0.64%2066.304%2035.584%2075.52%2050.304%2044.16%2074.24%20114.688%2053.312%20142.912%2040.448%204.224-31.872%2017.152-53.376%2031.232-65.664-109.184-12.224-223.232-54.528-223.232-242.24%200-53.312%2019.008-97.472%2050.304-131.84-4.928-12.288-22.08-62.592%204.864-130.048%200%200%2041.088-12.864%20134.976%2050.304a454.72%20454.72%200%200%201%20122.688-16.576c41.664%200%2083.392%205.568%20122.624%2016.576%2093.888-63.808%20134.912-50.304%20134.912-50.304%2027.008%2067.456%209.856%20117.76%204.928%20130.048%2031.296%2034.368%2050.304%2077.888%2050.304%20131.84%200%20188.288-114.688%20229.952-223.872%20242.24%2017.792%2015.36%2033.088%2044.8%2033.088%2090.816%200%2065.6-0.576%20118.4-0.576%20134.912%200%2012.864%209.216%2028.224%2033.728%2023.36A491.456%20491.456%200%200%200%201024%20522.688%20490.496%20490.496%200%200%200%20533.312%2032z'%20p-id='27600'%20fill='%23f0f6fc'%3e%3c/path%3e%3c/svg%3e";
20886
20865
  const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20887
20866
  __proto__: null,
20888
20867
  default: logoGithubWhite
20889
20868
  }, Symbol.toStringTag, { value: "Module" }));
20890
- const logoGithub = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy9naXRodWI8L3RpdGxlPg0KICAgIDxnIGlkPSJpYy9naXRodWIiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPg0KICAgICAgICA8cGF0aCBkPSJNMTUuMDExOTk4LDAuNSBDNi45ODcyMzgsMC41IDAuNSw3LjAzNTA2Mjc3IDAuNSwxNS4xMTk4MjY2IEMwLjUsMjEuNTgyNDA5NiA0LjY1NjU5Njk3LDI3LjA1Mjg1MTIgMTAuNDIyODk4NywyOC45ODkwMTIxIEMxMS4xNDM4MzUsMjkuMTM0NTY1NyAxMS40MDc5MTA5LDI4LjY3NDQzNzkgMTEuNDA3OTEwOSwyOC4yODczODQgQzExLjQwNzkxMDksMjcuOTQ4NDUxOCAxMS4zODQxNDcxLDI2Ljc4NjY5NTkgMTEuMzg0MTQ3MSwyNS41NzYyMjQxIEM3LjM0NzI2MDU1LDI2LjQ0Nzc2MzggNi41MDY2MTM4MywyMy44MzM0NDE2IDYuNTA2NjEzODMsMjMuODMzNDQxNiBDNS44NTc4NjAzMywyMi4xMzkwNzgxIDQuODk2NjEyMDEsMjEuNzAzNjA1MyA0Lj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MTAuMDYxMDkzOSAyMi43NzIzODUxLDEwLjQyNDA4NjkgQzIzLjcwOTU3MjUsMTEuNDQwNTg2MiAyNC4yNjIwODIzLDEyLjc0NzU5ODggMjQuMjYyMDgyMywxNC4zNDUxMjQ2IEMyNC4yNjIwODIzLDE5Ljk2MDgyMjggMjAuODc0NTQzNCwyMS4xOTUwNTg2IDE3LjYzMDc3NTksMjEuNTU4MzQ4NiBDMTguMTU5NTIxOSwyMi4wMTgxNzk0IDE4LjYxNTc4ODEsMjIuODg5NDIyMSAxOC42MTU3ODgxLDI0LjI2OTIxMTUgQzE4LjYxNTc4ODEsMjYuMjI5NzMwMyAxOC41OTIwMjQyLDI3LjgwMzE5NTIgMTguNTkyMDI0MiwyOC4yODcwODY5IEMxOC41OTIwMjQyLDI4LjY3NDQzNzkgMTguODU2Mzk3MiwyOS4xMzQ1NjU3IDE5LjU3NzAzNjQsMjguOTg5MzA5MSBDMjUuMzQzMzM4MiwyNy4wNTI1NTQxIDI5LjUsMjEuNTgyNDA5NiAyOS41LDE1LjExOTgyNjYgQzI5LjUyMzY5OSw3LjAzNTA2Mjc3IDIzLjAxMjY5NzIsMC41IDE1LjAxMTk5OCwwLjUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iIzAwMDAwMCI+PC9wYXRoPg0KICAgIDwvZz4NCjwvc3ZnPg==";
20869
+ const logoGithub = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/github%3c/title%3e%3cg%20id='ic/github'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M15.011998,0.5%20C6.987238,0.5%200.5,7.03506277%200.5,15.1198266%20C0.5,21.5824096%204.65659697,27.0528512%2010.4228987,28.9890121%20C11.143835,29.1345657%2011.4079109,28.6744379%2011.4079109,28.287384%20C11.4079109,27.9484518%2011.3841471,26.7866959%2011.3841471,25.5762241%20C7.34726055,26.4477638%206.50661383,23.8334416%206.50661383,23.8334416%20C5.85786033,22.1390781%204.89661201,21.7036053%204.89661201,21.7036053%20C3.57534113,20.8080046%204.99285566,20.8080046%204.99285566,20.8080046%20C6.45849201,20.9048424%207.22755008,22.3086927%207.22755008,22.3086927%20C8.52476004,24.5353668%2010.615089,23.9062185%2011.4560327,23.5188675%20C11.5760403,22.574848%2011.9607178,21.9213417%2012.3691592,21.5583486%20C9.14945263,21.2194165%205.76191373,19.9608228%205.76191373,14.3451246%20C5.76191373,12.7475988%206.33818744,11.4405862%207.25131394,10.4240869%20C7.10724551,10.0610939%206.60256044,8.56010879%207.39567942,6.55117108%20C7.39567942,6.55117108%208.62100369,6.16382009%2011.38385,8.05185913%20C12.5667228,7.73183788%2013.7866003,7.56904106%2015.011998,7.56767039%20C16.2373223,7.56767039%2017.4864104,7.73728497%2018.639849,8.05185913%20C21.4029924,6.16382009%2022.6283166,6.55117108%2022.6283166,6.55117108%20C23.4214356,8.56010879%2022.9164535,10.0610939%2022.7723851,10.4240869%20C23.7095725,11.4405862%2024.2620823,12.7475988%2024.2620823,14.3451246%20C24.2620823,19.9608228%2020.8745434,21.1950586%2017.6307759,21.5583486%20C18.1595219,22.0181794%2018.6157881,22.8894221%2018.6157881,24.2692115%20C18.6157881,26.2297303%2018.5920242,27.8031952%2018.5920242,28.2870869%20C18.5920242,28.6744379%2018.8563972,29.1345657%2019.5770364,28.9893091%20C25.3433382,27.0525541%2029.5,21.5824096%2029.5,15.1198266%20C29.523699,7.03506277%2023.0126972,0.5%2015.011998,0.5%20Z'%20id='路径'%20fill='%23000000'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20891
20870
  const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20892
20871
  __proto__: null,
20893
20872
  default: logoGithub
20894
20873
  }, Symbol.toString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OTUyIDIwLjQzMjkgMy4yMjMzMiAyMC42NkMzLjI5NzEyIDIwLjg4NzEgMy40NDA5NCAyMS4wODUgMy42MzQxNiAyMS4yMjU0TDE4IDMxLjY2M0w0Ljg4MzIxIDE0Ljg1MjVaIiBmaWxsPSIjRkNBMzI2Ii8+DQo8cGF0aCBkPSJNNC44ODI4MSAxNC44NTE2SDEyLjUzNzZMOS4yNDc4MSA0LjcyNjY4QzkuMDc4NjEgNC4yMDU2OSA4LjM0MTU1IDQuMjA1NjkgOC4xNzIzNSA0LjcyNjY4TDQuODgyODEgMTQuODUxNloiIGZpbGw9IiNFMjQzMjkiLz4NCjxwYXRoIGQ9Ik0xOC4wMDAxIDMxLjY2MjdMMjMuNDYyMiAxNC44NTI1SDMxLjExN0wxOC4wMDAxIDMxLjY2MjdaIiBmaWxsPSIjRkM2RDI2Ii8+DQo8cGF0aCBkPSJNMzEuMTE3OCAxNC44NTI1TDMyLjc3NzcgMTkuOTYxMUMzMi44NTE1IDIwLjE4ODIgMzIuODUxNSAyMC40MzI5IDMyLjc3NzcgMjAuNjZDMzIuNzAzOSAyMC44ODcxIDMyLjU2MDEgMjEuMDg1IDMyLjM2NjggMjEuMjI1NEwxOC4wMDEgMzEuNjYzTDMxLjExNzggMTQuODUyNVoiIGZpbGw9IiNGQ0EzMjYiLz4NCjxwYXRoIGQ9Ik0zMS4xMTY3IDE0Ljg1MTZIMjMuNDYxOUwyNi43NTE3IDQuNzI2NjhDMjYuOTIxIDQuMjA1NjkgMjcuNjU4IDQuMjA1NjkgMjcuODI3MiA0LjcyNjY4TDMxLjExNjcgMTQuODUxNloiIGZpbGw9IiNFMjQzMjkiLz4NCjwvc3ZnPg0K";
20874
+ const logoGitlab = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32.7772%2019.961L31.1173%2014.8526L27.8277%204.72768C27.6585%204.20676%2026.9215%204.20676%2026.7522%204.72768L23.4623%2014.8525H12.5381L9.24829%204.7276C9.07909%204.20668%208.34209%204.20668%208.17275%204.7276L4.88307%2014.8525L3.22333%2019.9611C3.14952%2020.1882%203.14952%2020.4328%203.22331%2020.66C3.29709%2020.8871%203.44089%2021.085%203.63409%2021.2254L17.9999%2031.6629L32.3658%2021.2255C32.7621%2020.9375%2032.928%2020.427%2032.7766%2019.9611'%20fill='%23FC6D26'/%3e%3cpath%20d='M18.0002%2031.6623L23.4623%2014.8516H12.5381L18.0002%2031.6623Z'%20fill='%23E24329'/%3e%3cpath%20d='M17.9997%2031.6627L12.5376%2014.8525H4.88281L17.9997%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M4.88321%2014.8525L3.22332%2019.9611C3.14952%2020.1882%203.14952%2020.4329%203.22332%2020.66C3.29712%2020.8871%203.44094%2021.085%203.63416%2021.2254L18%2031.663L4.88321%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M4.88281%2014.8516H12.5376L9.24781%204.72668C9.07861%204.20569%208.34155%204.20569%208.17235%204.72668L4.88281%2014.8516Z'%20fill='%23E24329'/%3e%3cpath%20d='M18.0001%2031.6627L23.4622%2014.8525H31.117L18.0001%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M31.1178%2014.8525L32.7777%2019.9611C32.8515%2020.1882%2032.8515%2020.4329%2032.7777%2020.66C32.7039%2020.8871%2032.5601%2021.085%2032.3668%2021.2254L18.001%2031.663L31.1178%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M31.1167%2014.8516H23.4619L26.7517%204.72668C26.921%204.20569%2027.658%204.20569%2027.8272%204.72668L31.1167%2014.8516Z'%20fill='%23E24329'/%3e%3c/svg%3e";
20896
20875
  const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20897
20876
  __proto__: null,
20898
20877
  default: logoGitlab
20899
20878
  }, Symbol.toStringTag, { value: "Module" }));
20900
- const logoHb = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkwIiBoZWlnaHQ9IjI5MCIgdmlld0JveD0iMCAwIDI5MCAyOTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cmVjdCB3aWR0aD0iMjkwIiBoZWlnaHQ9IjI5MCIgcng9IjE0NSIgZmlsbD0iIzFCOUYzNSIvPg0KPHBhdGggZD0iTTIzMi41IDY5LjVINTcuNUw3MC45NjI1IDIyN0wxNDUgMjQ0LjVMMjE5LjAzOCAyMjdMMjMyLjUgNjkuNVoiIGZpbGw9IndoaXRlIi8+DQo8cGF0aCBkPSJNOTUgOTQuNUgxMDcuNVYxMzJIMTgyLjVWOTQuNUgxOTVWMTk0LjVIMTgyLjVWMTQ0LjVIMTA3LjVWMTk0LjVIOTVWOTQuNVoiIGZpbGw9IiMxQjlGMzUiLz4NCjwvc3ZnPg0K";
20879
+ const logoHb = "data:image/svg+xml,%3csvg%20width='290'%20height='290'%20viewBox='0%200%20290%20290'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='290'%20height='290'%20rx='145'%20fill='%231B9F35'/%3e%3cpath%20d='M232.5%2069.5H57.5L70.9625%20227L145%20244.5L219.038%20227L232.5%2069.5Z'%20fill='white'/%3e%3cpath%20d='M95%2094.5H107.5V132H182.5V94.5H195V194.5H182.5V144.5H107.5V194.5H95V94.5Z'%20fill='%231B9F35'/%3e%3c/svg%3e";
20901
20880
  const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20902
20881
  __proto__: null,
20903
20882
  default: logoHb
20904
20883
  }, Symbol.toStringTag, { value: "Module" }));
20905
- const logoHuawei = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwID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g%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/huawei%3c/title%3e%3cg%20id='ic/huawei'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M12.9194306,20.1361906%20C12.9522465,20.1094691%2012.9663104,20.0639956%2012.9442769,20.026023%20C10.696858,15.2030265%207.89578843,10.6584961%204.59544868,6.48431642%20C4.59544868,6.48431642%201.97158481,8.9689472%202.15863532,11.4685795%20C2.25239497,12.6321368%202.79432576,13.7127168%203.67894808,14.4688884%20C5.96668359,16.6989617%2011.5064726,19.5131577%2012.7947303,20.1507233%20C12.8355157,20.1732256%2012.8866147,20.1657249%2012.918493,20.1319714%20M12.063405,22.0446683%20C12.0460594,21.9940381%2011.9987108,21.9602846%2011.944799,21.9602846%20L11.944799,21.9630974%20L2.72166203,22.2842242%20C3.72160872,24.0680016%205.40600087,25.4523628%207.16118156,25.0285692%20C8.37208746,24.7257255%2011.1164325,22.812091%2012.0198067,22.166087%20L12.0188691,22.1623366%20C12.0877825,22.0999865%2012.0629362,22.0498251%2012.0629362,22.0498251%20M12.2021693,21.2200521%20C12.2462363,21.1473884%2012.1674782,21.0850382%2012.1674782,21.0850382%20L12.1684158,21.0812879%20C8.11753001,18.3449124%200.26609674,14.1496368%200.26609674,14.1496368%20C-0.616650384,16.8789802%200.763022897,19.8258461%203.42579702,20.8947062%20C3.98885932,21.1184574%204.58444252,21.2495427%205.18941607,21.2828711%20C5.32818036,21.308655%2010.6743557,21.2856839%2012.1070032,21.2791207%20C12.1473199,21.2744327%2012.1829485,21.2509928%2012.2026381,21.2148954%20M12.8144198,2.5004688%20C12.4121909,2.53515987%2011.3283293,2.78174775%2011.3283293,2.78174775%20C9.89805781,3.14685934%208.75686554,4.2232051%208.3087997,5.62969719%20C8.05564864,6.58885843%208.06033662,7.59771229%208.32145725,8.55499833%20C9.13575983,12.1713081%2013.1477353,18.1152013%2014.0079802,19.3617358%20C14.0689239,19.4226796%2014.1190853,19.4001773%2014.1190853,19.4001773%20C14.1715907,19.3875197%2014.2072194,19.3392335%2014.2044066,19.2853217%20L14.2062818,19.2853217%20C15.5320433,6.01692455%2012.813951,2.5%2012.813951,2.5%20M15.8672341,19.3973645%20C15.9178643,19.4175228%2015.9750577,19.3964269%2016.0003728,19.3476719%20L16.0013104,19.3476719%20C16.8920271,18.066915%2020.8735307,12.1563066%2021.6840829,8.55593593%20C21.9262087,7.59665425%2021.9315179,6.59289287%2021.6995532,5.63110358%20C21.2459272,4.21775216%2020.0924075,3.14034133%2018.6514269,2.78409175%20C18.6514269,2.78409175%2017.9463543,2.60594841%2017.1990899,2.50140639%20C17.1990899,2.50140639%2014.4650585,6.02020614%2015.7945703,19.2970417%20L15.7964455,19.2970417%20C15.7969143,19.3420463%2015.8245734,19.3814254%2015.8667653,19.3978333%20M18.0499588,21.9630974%20C18.0499588,21.9630974%2017.9693255,21.9738797%2017.9468231,22.0334171%20C17.9360408,22.0788906%2017.9496359,22.1262392%2017.9824518,22.1590551%20L17.9815142,22.1590551%20C18.8637925,22.7919327%2021.544381,24.664313%2022.8307634,25.0271628%20C22.8307634,25.0271628%2025.2150714,25.8381838%2027.2862221,22.2818802%20L18.0508964,21.9598158%20L18.0499588,21.9630974%20Z%20M29.7417874,14.130416%20C29.7417874,14.130416%2021.9011365,18.3369428%2017.8465003,21.0723807%20L17.8474379,21.0723807%20C17.8005581,21.1028526%2017.7864941,21.1567644%2017.8005581,21.2073946%20C17.8005581,21.2073946%2017.8389995,21.2763079%2017.8961929,21.2763079%20L17.8961929,21.2781831%20L24.9750467,21.2594312%20C25.5196475,21.2167697%2026.0549049,21.0935404%2026.5633352,20.8937686%20C27.8878289,20.3744529%2028.9544544,19.3543123%2029.5322346,18.0542575%20C30.0748429,16.8146498%2030.147992,15.419985%2029.738037,14.130416%20M17.1020487,20.1310338%20C17.1383362,20.1579266%2017.1868481,20.1615741%2017.226749,20.1404097%20L17.226749,20.1422849%20C18.5478225,19.4831546%2024.0463573,16.6872418%2026.3233105,14.4684196%20C27.2074304,13.7013539%2027.7532431,12.616467%2027.8422168,11.4493588%20C28.0081714,8.87096836%2025.4082163,6.47775324%2025.4082163,6.47775324%20C22.1166286,10.6402706%2019.319781,15.171107%2017.0739208,19.9791431%20L17.0767336,19.9791431%20C17.0523501,20.0282718%2017.0623816,20.0875146%2017.1015799,20.125877'%20id='形状'%20fill='%23E12229'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20906
20885
  const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20907
20886
  __proto__: null,
20908
20887
  default: logoHuawei
20909
20888
  }, Symbol.toStringTag, { value: "Module" }));
20910
- const logoMobile = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjkzOTAwNTM0MTY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjYwNDAiIGlkPSJteF9uXzE2OTM5MDA1MzQxNjYiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwYXRoIGQ9Ik0yOTAuMTMzMzMzIDM0LjEzMzMzM2g0NDMuNzMzMzM0YTEwMi40IDEwMi40IDAgMCAxIDEwMi40IDEwMi40djc1MC45MzMzMzRhMTAyLjQgMTAyLjQgMCAwIDEtMTAyLjQgM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";
20889
+ const logoMobile = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1693900534164'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6040'%20id='mx_n_1693900534166'%20width='64'%20height='64'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M290.133333%2034.133333h443.733334a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4z'%20fill='%23E4E9F0'%20p-id='6041'%3e%3c/path%3e%3cpath%20d='M733.866667%2034.133333a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4h443.733334zM614.4%20119.466667a34.133333%2034.133333%200%200%201-34.133333%2034.133333h-136.533334a34.133333%2034.133333%200%200%201-34.133333-34.133333v-34.133334H290.133333A51.2%2051.2%200%200%200%20238.933333%20136.533333v750.933334a51.2%2051.2%200%200%200%2051.2%2051.2h443.733334A51.2%2051.2%200%200%200%20785.066667%20887.466667V136.533333a51.2%2051.2%200%200%200-51.2-51.2H614.4v34.133334zM512%20750.933333a68.266667%2068.266667%200%201%201%200%20136.533334%2068.266667%2068.266667%200%200%201%200-136.533334z'%20fill='%23707A87'%20p-id='6042'%3e%3c/path%3e%3c/svg%3e";
20911
20890
  const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20912
20891
  __proto__: null,
20913
20892
  default: logoMobile
20914
20893
  }, Symbol.toStringTag, { value: "Module" }));
20915
- const logoWech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AxMC4wNjk0IDYuNDYyNDMgMTAuMDY5NFpNMTEuODcyOCAxMS4zNjQyTDEyLjE1MDMgMTIuMjg5TDExLjE1NjEgMTEuNzM0MUMxMC43OTc3IDExLjgyNjYgMTAuNDI3NyAxMS45MTkxIDEwLjA1NzggMTEuOTE5MUM4LjMxMjE0IDExLjkxOTEgNi45MzY0MiAxMC43MTY4IDYuOTM2NDIgOS4yMjU0M0M2LjkyNDg2IDcuNzQ1NjYgOC4zMDA1OCA2LjU0MzM1IDEwLjAzNDcgNi41NDMzNUMxMS42ODc5IDYuNTQzMzUgMTMuMTQ0NSA3Ljc1NzIyIDEzLjE0NDUgOS4yMzY5OUMxMy4xNDQ1IDEwLjA2OTQgMTIuNjAxMiAxMC44MDkyIDExLjg3MjggMTEuMzY0MloiIGZpbGw9IiMyOEM0NDUiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMF8xNTMyXzE4MiI+DQo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=";
20894
+ const logoWechat = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1532_182)'%3e%3cpath%20d='M5.27165%205.34104C4.99419%205.34104%204.71674%205.52601%204.71674%205.80347C4.71674%206.08093%204.99419%206.2659%205.27165%206.2659C5.54911%206.2659%205.73408%206.08093%205.73408%205.80347C5.73408%205.51445%205.54911%205.34104%205.27165%205.34104ZM9.02887%208.02312C8.8439%208.02312%208.67049%208.21965%208.67049%208.39306C8.67049%208.5896%208.85546%208.76301%209.02887%208.76301C9.30633%208.76301%209.4913%208.57804%209.4913%208.39306C9.4913%208.20809%209.30633%208.02312%209.02887%208.02312ZM7.83812%206.2659C8.11558%206.2659%208.30055%206.06937%208.30055%205.80347C8.30055%205.52601%208.11558%205.34104%207.83812%205.34104C7.56067%205.34104%207.28321%205.52601%207.28321%205.80347C7.28321%206.08093%207.56067%206.2659%207.83812%206.2659ZM11.0404%208.02312C10.8555%208.02312%2010.6821%208.21965%2010.6821%208.39306C10.6821%208.5896%2010.867%208.76301%2011.0404%208.76301C11.3179%208.76301%2011.5029%208.57804%2011.5029%208.39306C11.5029%208.20809%2011.3179%208.02312%2011.0404%208.02312Z'%20fill='%2328C445'/%3e%3cpath%20d='M7.97688%200.0462418C3.57225%200.0462418%200%203.6185%200%208.02312C0%2012.4277%203.57225%2016%207.97688%2016C12.3815%2016%2015.9538%2012.4277%2015.9538%208.02312C15.9538%203.6185%2012.3815%200.0462418%207.97688%200.0462418ZM6.46243%2010.0694C6%2010.0694%205.63006%209.97688%205.19075%209.87283L3.91908%2010.5202L4.27746%209.39884C3.36416%208.75144%202.80925%207.90751%202.80925%206.90173C2.80925%205.13295%204.46243%203.74566%206.46243%203.74566C8.25434%203.74566%209.83815%204.85549%2010.1503%206.34682C10.0347%206.33526%209.91908%206.3237%209.80347%206.3237C8.06936%206.34682%206.7052%207.65318%206.7052%209.27168C6.7052%209.53757%206.75145%209.79191%206.82081%2010.0462C6.7052%2010.0578%206.57803%2010.0694%206.46243%2010.0694ZM11.8728%2011.3642L12.1503%2012.289L11.1561%2011.7341C10.7977%2011.8266%2010.4277%2011.9191%2010.0578%2011.9191C8.31214%2011.9191%206.93642%2010.7168%206.93642%209.22543C6.92486%207.74566%208.30058%206.54335%2010.0347%206.54335C11.6879%206.54335%2013.1445%207.75722%2013.1445%209.23699C13.1445%2010.0694%2012.6012%2010.8092%2011.8728%2011.3642Z'%20fill='%2328C445'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1532_182'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
20916
20895
  const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20917
20896
  __proto__: null,
20918
20897
  default: logoWechat
@@ -20942,6 +20921,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20942
20921
  countdown: { type: Boolean, default: false },
20943
20922
  second: { default: 59 },
20944
20923
  hasMobile: { type: Boolean, default: false },
20924
+ autocomplete: { default: "on" },
20945
20925
  error: { type: Boolean, default: false }
20946
20926
  },
20947
20927
  emits: ["change", "update:modelValue", "click"],
@@ -21020,30 +21000,32 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
21020
21000
  return openBlock(), createElementBlock("div", {
21021
21001
  class: normalizeClass(["flex flex-1 g-input-button", [inputBtnClassName.value, _ctx.error ? "g-input-button-error" : ""]])
21022
21002
  }, [
21023
- createVNode(unref(Input), mergeProps({
21003
+ createVNode(unref(Input), {
21024
21004
  modelValue: unref(vModels),
21025
21005
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(vModels) ? vModels.value = $event : null),
21026
- placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: _ctx.placeholder })
21027
- }, _ctx.prop, {
21006
+ placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: _ctx.placeholder }),
21007
+ autocomplete: _ctx.autocomplete,
21028
21008
  onChange: handleChange,
21029
21009
  onFocus: handleInputFocus,
21030
21010
  onBlur: handleInputBlur
21031
- }), {
21011
+ }, {
21032
21012
  append: withCtx(() => [
21033
21013
  createElementVNode("div", {
21034
21014
  onClick: withModifiers(handleClick, ["stop"]),
21035
- class: normalizeClass(["g-input-button-append", DisabledBtn.value || !_ctx.hasMobile ? "g-input-button-append-inactive" : "g-input-button-append-active"])
21015
+ class: normalizeClass([
21016
+ "g-input-button-append",
21017
+ DisabledBtn.value || !_ctx.hasMobile ? "g-input-button-append-inactive" : "g-input-button-append-active"
21018
+ ])
21036
21019
  }, [
21037
21020
  createElementVNode("span", _hoisted_1$a, toDisplayString$1(BtnText.value), 1)
21038
21021
  ], 2)
21039
21022
  ]),
21040
21023
  _: 1
21041
- }, 16, ["modelValue", "placeholder"])
21024
+ }, 8, ["modelValue", "placeholder", "autocomplete"])
21042
21025
  ], 2);
21043
21026
  };
21044
21027
  }
21045
21028
  });
21046
- const inputButton_vue_vue_type_style_index_0_lang = "";
21047
21029
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
21048
21030
  const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
21049
21031
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
@@ -21130,7 +21112,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
21130
21112
  };
21131
21113
  }
21132
21114
  });
21133
- const inputSelect_vue_vue_type_style_index_0_lang = "";
21134
21115
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
21135
21116
  __name: "index",
21136
21117
  props: {
@@ -21147,7 +21128,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21147
21128
  labelAlign: { default: "start" },
21148
21129
  errors: { default: {
21149
21130
  msgError: false
21150
- } }
21131
+ } },
21132
+ isForget: { type: Boolean, default: false }
21151
21133
  },
21152
21134
  emits: ["change", "countDown", "complete"],
21153
21135
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -21314,6 +21296,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21314
21296
  (_a = FormRef.value) == null ? void 0 : _a.clearValidate(keys2);
21315
21297
  }
21316
21298
  };
21299
+ const autocompleteCalc = (autoComplete) => {
21300
+ if (props.isForget) {
21301
+ return "new-password";
21302
+ } else {
21303
+ return autoComplete ? "on" : "off";
21304
+ }
21305
+ };
21317
21306
  onBeforeMount(() => {
21318
21307
  if (timer) {
21319
21308
  clearTimeout(timer);
@@ -21354,7 +21343,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21354
21343
  style: normalizeStyle({ width: getItemWidth.value(formItem) })
21355
21344
  }, {
21356
21345
  default: withCtx(() => {
21357
- var _a;
21346
+ var _a, _b, _c;
21358
21347
  return [
21359
21348
  formItem.type === "input" ? (openBlock(), createBlock(unref(Input), mergeProps({
21360
21349
  key: 0,
@@ -21364,9 +21353,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21364
21353
  onChange: () => handleChange(formItem.key),
21365
21354
  ref_for: true
21366
21355
  }, formItem.props, {
21356
+ autocomplete: autocompleteCalc((_a = formItem.props) == null ? void 0 : _a.autocomplete),
21367
21357
  autofocus: formItem.key === "username",
21368
21358
  spellcheck: false
21369
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$c, mergeProps({
21359
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$c, mergeProps({
21370
21360
  key: 1,
21371
21361
  modelValue: Data[formItem.key],
21372
21362
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
@@ -21375,10 +21365,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21375
21365
  placeholder: formItem.label,
21376
21366
  ref_for: true
21377
21367
  }, formItem.props, {
21378
- hasMobile: !!Data[(_a = formItem.props) == null ? void 0 : _a.aliasKey],
21368
+ hasMobile: !!Data[(_b = formItem.props) == null ? void 0 : _b.aliasKey],
21379
21369
  text: unref($t)("gitCodeLayout.userSetting.account.getVerificationCode"),
21380
- error: _ctx.errors.msgError
21381
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
21370
+ error: _ctx.errors.msgError,
21371
+ autocomplete: autocompleteCalc((_c = formItem.props) == null ? void 0 : _c.autocomplete)
21372
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
21382
21373
  key: 2,
21383
21374
  country: Data.country,
21384
21375
  modelValue: Data[formItem.key],
@@ -21409,7 +21400,6 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21409
21400
  };
21410
21401
  }
21411
21402
  });
21412
- const index_vue_vue_type_style_index_0_lang = "";
21413
21403
  const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
21414
21404
  const _hoisted_2$5 = { class: "icons" };
21415
21405
  const _hoisted_3$3 = ["src", "alt", "onClick"];
@@ -21456,8 +21446,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21456
21446
  };
21457
21447
  }
21458
21448
  });
21459
- const auth_vue_vue_type_style_index_0_scoped_f0a207bc_lang = "";
21460
- const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f0a207bc"]]);
21449
+ const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-gitcode-layout-lib"]]);
21461
21450
  const _hoisted_1$7 = { class: "text-[var(--theme-placeholder)]" };
21462
21451
  const _hoisted_2$4 = { class: "text-[var(--theme-placeholder)]" };
21463
21452
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
@@ -21540,7 +21529,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21540
21529
  };
21541
21530
  }
21542
21531
  });
21543
- const agreements_vue_vue_type_style_index_0_lang = "";
21544
21532
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
21545
21533
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
21546
21534
  const _hoisted_3$2 = ["src"];
@@ -21573,8 +21561,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
21573
21561
  };
21574
21562
  }
21575
21563
  });
21576
- const title_vue_vue_type_style_index_0_scoped_94e64b6d_lang = "";
21577
- const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-94e64b6d"]]);
21564
+ const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
21578
21565
  const FindFileName = (path) => {
21579
21566
  var _a;
21580
21567
  const isName = /.*\/.*\/(.*\..*)/;
@@ -21585,7 +21572,7 @@ const TransAssetsUrl = (source, key, path) => {
21585
21572
  if (key) {
21586
21573
  let target = "";
21587
21574
  target = Object.keys(source).find((pathName) => {
21588
- const p = path ? `${path}${key}` : key;
21575
+ const p = key;
21589
21576
  return p === FindFileName(pathName);
21590
21577
  });
21591
21578
  if (target) {
@@ -21617,14 +21604,10 @@ function compare(a, b) {
21617
21604
  for (var i = 0; i < 3; i++) {
21618
21605
  var na = Number(pa[i]);
21619
21606
  var nb = Number(pb[i]);
21620
- if (na > nb)
21621
- return 1;
21622
- if (nb > na)
21623
- return -1;
21624
- if (!isNaN(na) && isNaN(nb))
21625
- return 1;
21626
- if (isNaN(na) && !isNaN(nb))
21627
- return -1;
21607
+ if (na > nb) return 1;
21608
+ if (nb > na) return -1;
21609
+ if (!isNaN(na) && isNaN(nb)) return 1;
21610
+ if (isNaN(na) && !isNaN(nb)) return -1;
21628
21611
  }
21629
21612
  if (a[1] && b[1]) {
21630
21613
  return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;
@@ -21648,21 +21631,17 @@ function _classCallCheck$2(instance, Constructor) {
21648
21631
  throw new TypeError("Cannot call a class as a function");
21649
21632
  }
21650
21633
  }
21651
- function _defineProperties$2(target, props) {
21634
+ function _defineProperties$1(target, props) {
21652
21635
  for (var i = 0; i < props.length; i++) {
21653
21636
  var descriptor = props[i];
21654
21637
  descriptor.enumerable = descriptor.enumerable || false;
21655
21638
  descriptor.configurable = true;
21656
- if ("value" in descriptor)
21657
- descriptor.writable = true;
21639
+ if ("value" in descriptor) descriptor.writable = true;
21658
21640
  Object.defineProperty(target, descriptor.key, descriptor);
21659
21641
  }
21660
21642
  }
21661
21643
  function _createClass$2(Constructor, protoProps, staticProps) {
21662
- if (protoProps)
21663
- _defineProperties$2(Constructor.prototype, protoProps);
21664
- if (staticProps)
21665
- _defineProperties$2(Constructor, staticProps);
21644
+ if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
21666
21645
  Object.defineProperty(Constructor, "prototype", { writable: false });
21667
21646
  return Constructor;
21668
21647
  }
@@ -21692,8 +21671,7 @@ var Metadata = /* @__PURE__ */ function() {
21692
21671
  }, {
21693
21672
  key: "nonGeographic",
21694
21673
  value: function nonGeographic() {
21695
- if (this.v1 || this.v2 || this.v3)
21696
- return;
21674
+ if (this.v1 || this.v2 || this.v3) return;
21697
21675
  return this.metadata.nonGeographic || this.metadata.nonGeographical;
21698
21676
  }
21699
21677
  }, {
@@ -21868,8 +21846,7 @@ var Metadata = /* @__PURE__ */ function() {
21868
21846
  }, {
21869
21847
  key: "countryCallingCodes",
21870
21848
  value: function countryCallingCodes() {
21871
- if (this.v1)
21872
- return this.metadata.country_phone_code_to_countries;
21849
+ if (this.v1) return this.metadata.country_phone_code_to_countries;
21873
21850
  return this.metadata.country_calling_codes;
21874
21851
  }
21875
21852
  // Deprecated.
@@ -21913,31 +21890,27 @@ var NumberingPlan = /* @__PURE__ */ function() {
21913
21890
  }, {
21914
21891
  key: "IDDPrefix",
21915
21892
  value: function IDDPrefix() {
21916
- if (this.v1 || this.v2)
21917
- return;
21893
+ if (this.v1 || this.v2) return;
21918
21894
  return this.metadata[1];
21919
21895
  }
21920
21896
  // Is only present when a country supports multiple IDD prefixes.
21921
21897
  }, {
21922
21898
  key: "defaultIDDPrefix",
21923
21899
  value: function defaultIDDPrefix() {
21924
- if (this.v1 || this.v2)
21925
- return;
21900
+ if (this.v1 || this.v2) return;
21926
21901
  return this.metadata[12];
21927
21902
  }
21928
21903
  }, {
21929
21904
  key: "nationalNumberPattern",
21930
21905
  value: function nationalNumberPattern() {
21931
- if (this.v1 || this.v2)
21932
- return this.metadata[1];
21906
+ if (this.v1 || this.v2) return this.metadata[1];
21933
21907
  return this.metadata[2];
21934
21908
  }
21935
21909
  // "possible length" data is always present in Google's metadata.
21936
21910
  }, {
21937
21911
  key: "possibleLengths",
21938
21912
  value: function possibleLengths() {
21939
- if (this.v1)
21940
- return;
21913
+ if (this.v1) return;
21941
21914
  return this.metadata[this.v2 ? 2 : 3];
21942
21915
  }
21943
21916
  }, {
@@ -22032,8 +22005,7 @@ var NumberingPlan = /* @__PURE__ */ function() {
22032
22005
  }, {
22033
22006
  key: "ext",
22034
22007
  value: function ext() {
22035
- if (this.v1 || this.v2)
22036
- return DEFAULT_EXT_PREFIX;
22008
+ if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;
22037
22009
  return this.metadata[13] || DEFAULT_EXT_PREFIX;
22038
22010
  }
22039
22011
  }]);
@@ -22100,15 +22072,13 @@ var Type = /* @__PURE__ */ function() {
22100
22072
  _createClass$2(Type2, [{
22101
22073
  key: "pattern",
22102
22074
  value: function pattern() {
22103
- if (this.metadata.v1)
22104
- return this.type;
22075
+ if (this.metadata.v1) return this.type;
22105
22076
  return this.type[0];
22106
22077
  }
22107
22078
  }, {
22108
22079
  key: "possibleLengths",
22109
22080
  value: function possibleLengths() {
22110
- if (this.metadata.v1)
22111
- return;
22081
+ if (this.metadata.v1) return;
22112
22082
  return this.type[1] || this.metadata.possibleLengths();
22113
22083
  }
22114
22084
  }]);
@@ -22178,55 +22148,6 @@ function setVersion(metadata2) {
22178
22148
  }
22179
22149
  }
22180
22150
  }
22181
- function _createForOfIteratorHelperLoose$4(o, allowArrayLike) {
22182
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22183
- if (it)
22184
- return (it = it.call(o)).next.bind(it);
22185
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === "number") {
22186
- if (it)
22187
- o = it;
22188
- var i = 0;
22189
- return function() {
22190
- if (i >= o.length)
22191
- return { done: true };
22192
- return { done: false, value: o[i++] };
22193
- };
22194
- }
22195
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22196
- }
22197
- function _unsupportedIterableToArray$5(o, minLen) {
22198
- if (!o)
22199
- return;
22200
- if (typeof o === "string")
22201
- return _arrayLikeToArray$5(o, minLen);
22202
- var n = Object.prototype.toString.call(o).slice(8, -1);
22203
- if (n === "Object" && o.constructor)
22204
- n = o.constructor.name;
22205
- if (n === "Map" || n === "Set")
22206
- return Array.from(o);
22207
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22208
- return _arrayLikeToArray$5(o, minLen);
22209
- }
22210
- function _arrayLikeToArray$5(arr, len) {
22211
- if (len == null || len > arr.length)
22212
- len = arr.length;
22213
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
22214
- arr2[i] = arr[i];
22215
- }
22216
- return arr2;
22217
- }
22218
- function mergeArrays(a, b) {
22219
- var merged = a.slice();
22220
- for (var _iterator = _createForOfIteratorHelperLoose$4(b), _step; !(_step = _iterator()).done; ) {
22221
- var element = _step.value;
22222
- if (a.indexOf(element) < 0) {
22223
- merged.push(element);
22224
- }
22225
- }
22226
- return merged.sort(function(a2, b2) {
22227
- return a2 - b2;
22228
- });
22229
- }
22230
22151
  function checkNumberLength(nationalNumber, metadata2) {
22231
22152
  return checkNumberLengthForType(nationalNumber, void 0, metadata2);
22232
22153
  }
@@ -22236,17 +22157,6 @@ function checkNumberLengthForType(nationalNumber, type, metadata2) {
22236
22157
  if (!possible_lengths) {
22237
22158
  return "IS_POSSIBLE";
22238
22159
  }
22239
- if (type === "FIXED_LINE_OR_MOBILE") {
22240
- if (!metadata2.type("FIXED_LINE")) {
22241
- return checkNumberLengthForType(nationalNumber, "MOBILE", metadata2);
22242
- }
22243
- var mobile_type = metadata2.type("MOBILE");
22244
- if (mobile_type) {
22245
- possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());
22246
- }
22247
- } else if (type && !type_info) {
22248
- return "INVALID_LENGTH";
22249
- }
22250
22160
  var actual_length = nationalNumber.length;
22251
22161
  var minimum_length = possible_lengths[0];
22252
22162
  if (minimum_length === actual_length) {
@@ -22310,36 +22220,27 @@ function matchesEntirely(text2, regular_expression) {
22310
22220
  }
22311
22221
  function _createForOfIteratorHelperLoose$3(o, allowArrayLike) {
22312
22222
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22313
- if (it)
22314
- return (it = it.call(o)).next.bind(it);
22315
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") {
22316
- if (it)
22317
- o = it;
22223
+ if (it) return (it = it.call(o)).next.bind(it);
22224
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike) {
22225
+ if (it) o = it;
22318
22226
  var i = 0;
22319
22227
  return function() {
22320
- if (i >= o.length)
22321
- return { done: true };
22228
+ if (i >= o.length) return { done: true };
22322
22229
  return { done: false, value: o[i++] };
22323
22230
  };
22324
22231
  }
22325
22232
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22326
22233
  }
22327
22234
  function _unsupportedIterableToArray$4(o, minLen) {
22328
- if (!o)
22329
- return;
22330
- if (typeof o === "string")
22331
- return _arrayLikeToArray$4(o, minLen);
22235
+ if (!o) return;
22236
+ if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
22332
22237
  var n = Object.prototype.toString.call(o).slice(8, -1);
22333
- if (n === "Object" && o.constructor)
22334
- n = o.constructor.name;
22335
- if (n === "Map" || n === "Set")
22336
- return Array.from(o);
22337
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22338
- return _arrayLikeToArray$4(o, minLen);
22238
+ if (n === "Object" && o.constructor) n = o.constructor.name;
22239
+ if (n === "Map" || n === "Set") return Array.from(o);
22240
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
22339
22241
  }
22340
22242
  function _arrayLikeToArray$4(arr, len) {
22341
- if (len == null || len > arr.length)
22342
- len = arr.length;
22243
+ if (len == null || len > arr.length) len = arr.length;
22343
22244
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22344
22245
  arr2[i] = arr[i];
22345
22246
  }
@@ -22594,10 +22495,8 @@ function applyInternationalSeparatorStyle(formattedNumber) {
22594
22495
  return formattedNumber.replace(new RegExp("[".concat(VALID_PUNCTUATION, "]+"), "g"), " ").trim();
22595
22496
  }
22596
22497
  var FIRST_GROUP_PATTERN = /(\$\d)/;
22597
- function formatNationalNumberUsingFormat(number2, format2, _ref2) {
22598
- var useInternationalFormat = _ref2.useInternationalFormat, withNationalPrefix = _ref2.withNationalPrefix;
22599
- _ref2.carrierCode;
22600
- _ref2.metadata;
22498
+ function formatNationalNumberUsingFormat(number2, format2, _ref) {
22499
+ var useInternationalFormat = _ref.useInternationalFormat, withNationalPrefix = _ref.withNationalPrefix;
22601
22500
  var formattedNumber = number2.replace(new RegExp(format2.pattern()), useInternationalFormat ? format2.internationalFormat() : (
22602
22501
  // This library doesn't use `domestic_carrier_code_formatting_rule`,
22603
22502
  // because that one is only used when formatting phone numbers
@@ -22671,8 +22570,8 @@ function isViablePhoneNumber(number2) {
22671
22570
  function isViablePhoneNumberStart(number2) {
22672
22571
  return VALID_PHONE_NUMBER_START_REG_EXP.test(number2);
22673
22572
  }
22674
- function formatRFC3966(_ref2) {
22675
- var number2 = _ref2.number, ext = _ref2.ext;
22573
+ function formatRFC3966(_ref) {
22574
+ var number2 = _ref.number, ext = _ref.ext;
22676
22575
  if (!number2) {
22677
22576
  return "";
22678
22577
  }
@@ -22683,36 +22582,27 @@ function formatRFC3966(_ref2) {
22683
22582
  }
22684
22583
  function _createForOfIteratorHelperLoose$2(o, allowArrayLike) {
22685
22584
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22686
- if (it)
22687
- return (it = it.call(o)).next.bind(it);
22688
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") {
22689
- if (it)
22690
- o = it;
22585
+ if (it) return (it = it.call(o)).next.bind(it);
22586
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike) {
22587
+ if (it) o = it;
22691
22588
  var i = 0;
22692
22589
  return function() {
22693
- if (i >= o.length)
22694
- return { done: true };
22590
+ if (i >= o.length) return { done: true };
22695
22591
  return { done: false, value: o[i++] };
22696
22592
  };
22697
22593
  }
22698
22594
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22699
22595
  }
22700
22596
  function _unsupportedIterableToArray$3(o, minLen) {
22701
- if (!o)
22702
- return;
22703
- if (typeof o === "string")
22704
- return _arrayLikeToArray$3(o, minLen);
22597
+ if (!o) return;
22598
+ if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
22705
22599
  var n = Object.prototype.toString.call(o).slice(8, -1);
22706
- if (n === "Object" && o.constructor)
22707
- n = o.constructor.name;
22708
- if (n === "Map" || n === "Set")
22709
- return Array.from(o);
22710
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22711
- return _arrayLikeToArray$3(o, minLen);
22600
+ if (n === "Object" && o.constructor) n = o.constructor.name;
22601
+ if (n === "Map" || n === "Set") return Array.from(o);
22602
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
22712
22603
  }
22713
22604
  function _arrayLikeToArray$3(arr, len) {
22714
- if (len == null || len > arr.length)
22715
- len = arr.length;
22605
+ if (len == null || len > arr.length) len = arr.length;
22716
22606
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22717
22607
  arr2[i] = arr[i];
22718
22608
  }
@@ -22766,8 +22656,7 @@ function formatNumber(input, format2, options, metadata2) {
22766
22656
  metadata2.country(input.country);
22767
22657
  } else if (input.countryCallingCode) {
22768
22658
  metadata2.selectNumberingPlan(input.countryCallingCode);
22769
- } else
22770
- return input.phone || "";
22659
+ } else return input.phone || "";
22771
22660
  var countryCallingCode = metadata2.countryCallingCode();
22772
22661
  var nationalNumber = options.v2 ? input.nationalNumber : input.phone;
22773
22662
  var number2;
@@ -22809,9 +22698,7 @@ function formatNationalNumber(number2, carrierCode, formatAs, metadata2, options
22809
22698
  }
22810
22699
  return formatNationalNumberUsingFormat(number2, format2, {
22811
22700
  useInternationalFormat: formatAs === "INTERNATIONAL",
22812
- withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,
22813
- carrierCode,
22814
- metadata: metadata2
22701
+ withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true
22815
22702
  });
22816
22703
  }
22817
22704
  function chooseFormatForNumber(availableFormats, nationalNnumber) {
@@ -22879,21 +22766,17 @@ function _classCallCheck$1(instance, Constructor) {
22879
22766
  throw new TypeError("Cannot call a class as a function");
22880
22767
  }
22881
22768
  }
22882
- function _defineProperties$1(target, props) {
22769
+ function _defineProperties(target, props) {
22883
22770
  for (var i = 0; i < props.length; i++) {
22884
22771
  var descriptor = props[i];
22885
22772
  descriptor.enumerable = descriptor.enumerable || false;
22886
22773
  descriptor.configurable = true;
22887
- if ("value" in descriptor)
22888
- descriptor.writable = true;
22774
+ if ("value" in descriptor) descriptor.writable = true;
22889
22775
  Object.defineProperty(target, descriptor.key, descriptor);
22890
22776
  }
22891
22777
  }
22892
22778
  function _createClass$1(Constructor, protoProps, staticProps) {
22893
- if (protoProps)
22894
- _defineProperties$1(Constructor.prototype, protoProps);
22895
- if (staticProps)
22896
- _defineProperties$1(Constructor, staticProps);
22779
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
22897
22780
  Object.defineProperty(Constructor, "prototype", { writable: false });
22898
22781
  return Constructor;
22899
22782
  }
@@ -23054,21 +22937,7 @@ function _typeof(obj) {
23054
22937
  return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
23055
22938
  }, _typeof(obj);
23056
22939
  }
23057
- function _defineProperties(target, props) {
23058
- for (var i = 0; i < props.length; i++) {
23059
- var descriptor = props[i];
23060
- descriptor.enumerable = descriptor.enumerable || false;
23061
- descriptor.configurable = true;
23062
- if ("value" in descriptor)
23063
- descriptor.writable = true;
23064
- Object.defineProperty(target, descriptor.key, descriptor);
23065
- }
23066
- }
23067
22940
  function _createClass(Constructor, protoProps, staticProps) {
23068
- if (protoProps)
23069
- _defineProperties(Constructor.prototype, protoProps);
23070
- if (staticProps)
23071
- _defineProperties(Constructor, staticProps);
23072
22941
  Object.defineProperty(Constructor, "prototype", { writable: false });
23073
22942
  return Constructor;
23074
22943
  }
@@ -23083,8 +22952,7 @@ function _inherits(subClass, superClass) {
23083
22952
  }
23084
22953
  subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
23085
22954
  Object.defineProperty(subClass, "prototype", { writable: false });
23086
- if (superClass)
23087
- _setPrototypeOf(subClass, superClass);
22955
+ if (superClass) _setPrototypeOf(subClass, superClass);
23088
22956
  }
23089
22957
  function _createSuper(Derived) {
23090
22958
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
@@ -23116,14 +22984,12 @@ function _assertThisInitialized(self2) {
23116
22984
  function _wrapNativeSuper(Class) {
23117
22985
  var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
23118
22986
  _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
23119
- if (Class2 === null || !_isNativeFunction(Class2))
23120
- return Class2;
22987
+ if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
23121
22988
  if (typeof Class2 !== "function") {
23122
22989
  throw new TypeError("Super expression must either be null or a function");
23123
22990
  }
23124
22991
  if (typeof _cache !== "undefined") {
23125
- if (_cache.has(Class2))
23126
- return _cache.get(Class2);
22992
+ if (_cache.has(Class2)) return _cache.get(Class2);
23127
22993
  _cache.set(Class2, Wrapper);
23128
22994
  }
23129
22995
  function Wrapper() {
@@ -23143,20 +23009,16 @@ function _construct(Parent, args, Class) {
23143
23009
  a.push.apply(a, args2);
23144
23010
  var Constructor = Function.bind.apply(Parent2, a);
23145
23011
  var instance = new Constructor();
23146
- if (Class2)
23147
- _setPrototypeOf(instance, Class2.prototype);
23012
+ if (Class2) _setPrototypeOf(instance, Class2.prototype);
23148
23013
  return instance;
23149
23014
  };
23150
23015
  }
23151
23016
  return _construct.apply(null, arguments);
23152
23017
  }
23153
23018
  function _isNativeReflectConstruct() {
23154
- if (typeof Reflect === "undefined" || !Reflect.construct)
23155
- return false;
23156
- if (Reflect.construct.sham)
23157
- return false;
23158
- if (typeof Proxy === "function")
23159
- return true;
23019
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
23020
+ if (Reflect.construct.sham) return false;
23021
+ if (typeof Proxy === "function") return true;
23160
23022
  try {
23161
23023
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
23162
23024
  }));
@@ -23290,36 +23152,27 @@ function parseDigit(character) {
23290
23152
  }
23291
23153
  function _createForOfIteratorHelperLoose$1(o, allowArrayLike) {
23292
23154
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
23293
- if (it)
23294
- return (it = it.call(o)).next.bind(it);
23295
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") {
23296
- if (it)
23297
- o = it;
23155
+ if (it) return (it = it.call(o)).next.bind(it);
23156
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike) {
23157
+ if (it) o = it;
23298
23158
  var i = 0;
23299
23159
  return function() {
23300
- if (i >= o.length)
23301
- return { done: true };
23160
+ if (i >= o.length) return { done: true };
23302
23161
  return { done: false, value: o[i++] };
23303
23162
  };
23304
23163
  }
23305
23164
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23306
23165
  }
23307
23166
  function _unsupportedIterableToArray$2(o, minLen) {
23308
- if (!o)
23309
- return;
23310
- if (typeof o === "string")
23311
- return _arrayLikeToArray$2(o, minLen);
23167
+ if (!o) return;
23168
+ if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
23312
23169
  var n = Object.prototype.toString.call(o).slice(8, -1);
23313
- if (n === "Object" && o.constructor)
23314
- n = o.constructor.name;
23315
- if (n === "Map" || n === "Set")
23316
- return Array.from(o);
23317
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23318
- return _arrayLikeToArray$2(o, minLen);
23170
+ if (n === "Object" && o.constructor) n = o.constructor.name;
23171
+ if (n === "Map" || n === "Set") return Array.from(o);
23172
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
23319
23173
  }
23320
23174
  function _arrayLikeToArray$2(arr, len) {
23321
- if (len == null || len > arr.length)
23322
- len = arr.length;
23175
+ if (len == null || len > arr.length) len = arr.length;
23323
23176
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23324
23177
  arr2[i] = arr[i];
23325
23178
  }
@@ -23336,9 +23189,6 @@ function parseIncompletePhoneNumber(string) {
23336
23189
  function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2) {
23337
23190
  if (character === "+") {
23338
23191
  if (prevParsedCharacters) {
23339
- if (typeof emitEvent2 === "function") {
23340
- emitEvent2("end");
23341
- }
23342
23192
  return;
23343
23193
  }
23344
23194
  return "+";
@@ -23347,45 +23197,34 @@ function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2)
23347
23197
  }
23348
23198
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
23349
23199
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
23350
- if (it)
23351
- return (it = it.call(o)).next.bind(it);
23352
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") {
23353
- if (it)
23354
- o = it;
23200
+ if (it) return (it = it.call(o)).next.bind(it);
23201
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike) {
23202
+ if (it) o = it;
23355
23203
  var i = 0;
23356
23204
  return function() {
23357
- if (i >= o.length)
23358
- return { done: true };
23205
+ if (i >= o.length) return { done: true };
23359
23206
  return { done: false, value: o[i++] };
23360
23207
  };
23361
23208
  }
23362
23209
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23363
23210
  }
23364
23211
  function _unsupportedIterableToArray$1(o, minLen) {
23365
- if (!o)
23366
- return;
23367
- if (typeof o === "string")
23368
- return _arrayLikeToArray$1(o, minLen);
23212
+ if (!o) return;
23213
+ if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
23369
23214
  var n = Object.prototype.toString.call(o).slice(8, -1);
23370
- if (n === "Object" && o.constructor)
23371
- n = o.constructor.name;
23372
- if (n === "Map" || n === "Set")
23373
- return Array.from(o);
23374
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23375
- return _arrayLikeToArray$1(o, minLen);
23215
+ if (n === "Object" && o.constructor) n = o.constructor.name;
23216
+ if (n === "Map" || n === "Set") return Array.from(o);
23217
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
23376
23218
  }
23377
23219
  function _arrayLikeToArray$1(arr, len) {
23378
- if (len == null || len > arr.length)
23379
- len = arr.length;
23220
+ if (len == null || len > arr.length) len = arr.length;
23380
23221
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23381
23222
  arr2[i] = arr[i];
23382
23223
  }
23383
23224
  return arr2;
23384
23225
  }
23385
- function getCountryByNationalNumber(nationalPhoneNumber, _ref2) {
23386
- var countries = _ref2.countries;
23387
- _ref2.defaultCountry;
23388
- var metadata2 = _ref2.metadata;
23226
+ function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
23227
+ var countries = _ref.countries, metadata2 = _ref.metadata;
23389
23228
  metadata2 = new Metadata(metadata2);
23390
23229
  for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done; ) {
23391
23230
  var country = _step.value;
@@ -23402,14 +23241,8 @@ function getCountryByNationalNumber(nationalPhoneNumber, _ref2) {
23402
23241
  }
23403
23242
  }
23404
23243
  }
23405
- var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
23406
- function getCountryByCallingCode(callingCode, _ref2) {
23407
- var nationalPhoneNumber = _ref2.nationalNumber, defaultCountry = _ref2.defaultCountry, metadata2 = _ref2.metadata;
23408
- if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
23409
- if (metadata2.isNonGeographicCallingCode(callingCode)) {
23410
- return "001";
23411
- }
23412
- }
23244
+ function getCountryByCallingCode(callingCode, _ref) {
23245
+ var nationalPhoneNumber = _ref.nationalNumber, metadata2 = _ref.metadata;
23413
23246
  var possibleCountries = metadata2.getCountryCodesForCallingCode(callingCode);
23414
23247
  if (!possibleCountries) {
23415
23248
  return;
@@ -23419,7 +23252,6 @@ function getCountryByCallingCode(callingCode, _ref2) {
23419
23252
  }
23420
23253
  return getCountryByNationalNumber(nationalPhoneNumber, {
23421
23254
  countries: possibleCountries,
23422
- defaultCountry,
23423
23255
  metadata: metadata2.metadata
23424
23256
  });
23425
23257
  }
@@ -23462,8 +23294,8 @@ function isPhoneContextValid(phoneContext) {
23462
23294
  }
23463
23295
  return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);
23464
23296
  }
23465
- function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref2) {
23466
- var extractFormattedPhoneNumber = _ref2.extractFormattedPhoneNumber;
23297
+ function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {
23298
+ var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;
23467
23299
  var phoneContext = extractPhoneContext(numberToParse);
23468
23300
  if (!isPhoneContextValid(phoneContext)) {
23469
23301
  throw new ParseError("NOT_A_NUMBER");
@@ -23628,8 +23460,7 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
23628
23460
  country = defaultCountry;
23629
23461
  }
23630
23462
  countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata2.metadata);
23631
- } else
23632
- return {};
23463
+ } else return {};
23633
23464
  if (!number2) {
23634
23465
  return {
23635
23466
  countryCallingCodeSource,
@@ -23639,13 +23470,11 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
23639
23470
  var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number2), metadata2), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
23640
23471
  var exactCountry = getCountryByCallingCode(countryCallingCode, {
23641
23472
  nationalNumber,
23642
- defaultCountry,
23643
23473
  metadata: metadata2
23644
23474
  });
23645
23475
  if (exactCountry) {
23646
23476
  country = exactCountry;
23647
- if (exactCountry === "001")
23648
- ;
23477
+ if (exactCountry === "001") ;
23649
23478
  else {
23650
23479
  metadata2.country(country);
23651
23480
  }
@@ -23728,21 +23557,15 @@ function _nonIterableRest() {
23728
23557
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23729
23558
  }
23730
23559
  function _unsupportedIterableToArray(o, minLen) {
23731
- if (!o)
23732
- return;
23733
- if (typeof o === "string")
23734
- return _arrayLikeToArray(o, minLen);
23560
+ if (!o) return;
23561
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
23735
23562
  var n = Object.prototype.toString.call(o).slice(8, -1);
23736
- if (n === "Object" && o.constructor)
23737
- n = o.constructor.name;
23738
- if (n === "Map" || n === "Set")
23739
- return Array.from(o);
23740
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23741
- return _arrayLikeToArray(o, minLen);
23563
+ if (n === "Object" && o.constructor) n = o.constructor.name;
23564
+ if (n === "Map" || n === "Set") return Array.from(o);
23565
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
23742
23566
  }
23743
23567
  function _arrayLikeToArray(arr, len) {
23744
- if (len == null || len > arr.length)
23745
- len = arr.length;
23568
+ if (len == null || len > arr.length) len = arr.length;
23746
23569
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23747
23570
  arr2[i] = arr[i];
23748
23571
  }
@@ -23750,8 +23573,7 @@ function _arrayLikeToArray(arr, len) {
23750
23573
  }
23751
23574
  function _iterableToArrayLimit(arr, i) {
23752
23575
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
23753
- if (_i == null)
23754
- return;
23576
+ if (_i == null) return;
23755
23577
  var _arr = [];
23756
23578
  var _n = true;
23757
23579
  var _d = false;
@@ -23759,26 +23581,22 @@ function _iterableToArrayLimit(arr, i) {
23759
23581
  try {
23760
23582
  for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
23761
23583
  _arr.push(_s.value);
23762
- if (i && _arr.length === i)
23763
- break;
23584
+ if (i && _arr.length === i) break;
23764
23585
  }
23765
23586
  } catch (err) {
23766
23587
  _d = true;
23767
23588
  _e = err;
23768
23589
  } finally {
23769
23590
  try {
23770
- if (!_n && _i["return"] != null)
23771
- _i["return"]();
23591
+ if (!_n && _i["return"] != null) _i["return"]();
23772
23592
  } finally {
23773
- if (_d)
23774
- throw _e;
23593
+ if (_d) throw _e;
23775
23594
  }
23776
23595
  }
23777
23596
  return _arr;
23778
23597
  }
23779
23598
  function _arrayWithHoles(arr) {
23780
- if (Array.isArray(arr))
23781
- return arr;
23599
+ if (Array.isArray(arr)) return arr;
23782
23600
  }
23783
23601
  function normalizeArguments(args) {
23784
23602
  var _Array$prototype$slic = Array.prototype.slice.call(args), _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4), arg_1 = _Array$prototype$slic2[0], arg_2 = _Array$prototype$slic2[1], arg_3 = _Array$prototype$slic2[2], arg_4 = _Array$prototype$slic2[3];
@@ -23787,8 +23605,7 @@ function normalizeArguments(args) {
23787
23605
  var metadata2;
23788
23606
  if (typeof arg_1 === "string") {
23789
23607
  text2 = arg_1;
23790
- } else
23791
- throw new TypeError("A text for parsing must be a string.");
23608
+ } else throw new TypeError("A text for parsing must be a string.");
23792
23609
  if (!arg_2 || typeof arg_2 === "string") {
23793
23610
  if (arg_4) {
23794
23611
  options = arg_3;
@@ -23809,8 +23626,7 @@ function normalizeArguments(args) {
23809
23626
  } else {
23810
23627
  metadata2 = arg_2;
23811
23628
  }
23812
- } else
23813
- throw new Error("Invalid second argument: ".concat(arg_2));
23629
+ } else throw new Error("Invalid second argument: ".concat(arg_2));
23814
23630
  return {
23815
23631
  text: text2,
23816
23632
  options,
@@ -23855,8 +23671,7 @@ function parsePhoneNumber(text2, options, metadata2) {
23855
23671
  try {
23856
23672
  return parsePhoneNumberWithError(text2, options, metadata2);
23857
23673
  } catch (error) {
23858
- if (error instanceof ParseError)
23859
- ;
23674
+ if (error instanceof ParseError) ;
23860
23675
  else {
23861
23676
  throw error;
23862
23677
  }
@@ -24148,7 +23963,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24148
23963
  };
24149
23964
  }
24150
23965
  });
24151
- const loginCheckModal_vue_vue_type_style_index_0_lang = "";
24152
23966
  const GIT_CODE_LOGO_WHITE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPMAAAA4CAYAAAAo2c5IAAAACXBI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9f17VVyz8TPzFrP2KNNYGFQTc2cA+h2GikRuCt5izrkQD44xbNBDJTpKbfR4U18qF4kMTWMxM/zmC3JWDR79VWAj+siRyCbRZtkg3JHvj0lM5D31f1dQQF6y1zoKORJZplXLXMSsg33YcDy4BTzElRxFszoSqaazmHOMqJ/4rtHlTxRxJOJDMDHn8CSNX3C9rzB61CYAxESQnfO8ap6OuQEviotEbgTBxVyGQzOpYy6uMR8XVtksoP4i0UuFrcW42iaOF0cikUgkEolEIs34P3h7TBmol5dNAAAAAElFTkSuQmCC";
24153
23967
  const _hoisted_1$3 = { class: "mfa" };
24154
23968
  const _hoisted_2$1 = ["src"];
@@ -24243,8 +24057,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24243
24057
  });
24244
24058
  const activeInputIndex = ref(0);
24245
24059
  const inputChange = (e, index2) => {
24246
- if (!e)
24247
- return;
24060
+ if (!e) return;
24248
24061
  activeInputIndex.value = index2 + 1;
24249
24062
  if (activeInputIndex.value >= inputList.value.length) {
24250
24063
  activeInputIndex.value = inputList.value.length - 1;
@@ -24258,15 +24071,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24258
24071
  };
24259
24072
  const keyUp = (e, index2) => {
24260
24073
  activeInputIndex.value = index2;
24261
- if (e.key === "Tab")
24262
- return;
24074
+ if (e.key === "Tab") return;
24263
24075
  if (e.key === "Backspace") {
24264
24076
  inputList.value[activeInputIndex.value] && (inputList.value[activeInputIndex.value].value = "");
24265
24077
  if (!currentInputValue.value) {
24266
24078
  activeInputIndex.value--;
24267
24079
  }
24268
- if (activeInputIndex.value < 0)
24269
- activeInputIndex.value = 0;
24080
+ if (activeInputIndex.value < 0) activeInputIndex.value = 0;
24270
24081
  }
24271
24082
  focusInput();
24272
24083
  };
@@ -24414,10 +24225,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24414
24225
  };
24415
24226
  }
24416
24227
  });
24417
- const MFA_vue_vue_type_style_index_0_lang = "";
24418
- const MFA_vue_vue_type_style_index_1_scoped_3e0f827f_lang = "";
24419
- const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3e0f827f"]]);
24420
- const SlidCaptcha = defineAsyncComponent(() => import("./index-10b29578.js"));
24228
+ const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24229
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-D8W8lTsG.js"));
24421
24230
  const useSlidCaptcha = () => {
24422
24231
  const { mount, unMount } = usePopup("slid-captcha-popup");
24423
24232
  const open = (config) => {
@@ -24436,7 +24245,6 @@ const useSlidCaptcha = () => {
24436
24245
  close: unMount
24437
24246
  };
24438
24247
  };
24439
- const contentLoading_vue_vue_type_style_index_0_scoped_b4e76fda_lang = "";
24440
24248
  const _sfc_main$3 = {};
24441
24249
  const _hoisted_1$2 = { class: "content-loading" };
24442
24250
  function _sfc_render(_ctx, _cache) {
@@ -24453,7 +24261,7 @@ function _sfc_render(_ctx, _cache) {
24453
24261
  ], -1)
24454
24262
  ]));
24455
24263
  }
24456
- const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-b4e76fda"]]);
24264
+ const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-gitcode-layout-lib"]]);
24457
24265
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24458
24266
  __name: "index",
24459
24267
  props: {
@@ -24485,15 +24293,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24485
24293
  };
24486
24294
  }
24487
24295
  });
24488
- const index_vue_vue_type_style_index_0_scoped_7d576636_lang = "";
24489
- const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7d576636"]]);
24296
+ const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24490
24297
  function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
24491
24298
  const { interval = 1e4, immediate = true } = options;
24492
24299
  const timer = ref(null);
24493
24300
  const isPageVisible = ref(true);
24494
24301
  const startPoll = () => {
24495
- if (shouldPoll !== void 0 && !shouldPoll.value)
24496
- return;
24302
+ if (shouldPoll !== void 0 && !shouldPoll.value) return;
24497
24303
  if (!timer.value && isPageVisible.value) {
24498
24304
  if (immediate) {
24499
24305
  pollFunction();
@@ -24802,8 +24608,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24802
24608
  cb(new Error($t("gitCodeLayout.LoginModal.rule.username")));
24803
24609
  return;
24804
24610
  }
24805
- if (usernameCheckLoading.value)
24806
- return;
24611
+ if (usernameCheckLoading.value) return;
24807
24612
  usernameCheckLoading.value = true;
24808
24613
  try {
24809
24614
  const res = await API.checkUsername(val);
@@ -25079,8 +24884,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25079
24884
  useReport("signup_submit", {}, API.report);
25080
24885
  }
25081
24886
  const formData = await ((_a = FormRef.value) == null ? void 0 : _a.ValidateForm());
25082
- if (!formData || formData.type === "fail")
25083
- return false;
24887
+ if (!formData || formData.type === "fail") return false;
25084
24888
  const res = formData.forms;
25085
24889
  const { country } = ((_b = FormRef.value) == null ? void 0 : _b.Data) || {};
25086
24890
  const mobile = getPhone({ value: res.mobile, country });
@@ -25089,8 +24893,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25089
24893
  return;
25090
24894
  } else if (formType.value === "register") {
25091
24895
  const check = await LoginCheck();
25092
- if (!check)
25093
- return;
24896
+ if (!check) return;
25094
24897
  await registerAction(res, mobile);
25095
24898
  } else {
25096
24899
  const loginFunction = tabPanel.value === "password" ? LoginConfig.password : LoginConfig.phone;
@@ -25445,16 +25248,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25445
25248
  const fetchMiniProgramStatus = async () => {
25446
25249
  var _a;
25447
25250
  const res = await LoginConfig.miniProgramCheckStatus(miniProgramInfo.value.scene_id);
25448
- if (res.error)
25449
- return;
25251
+ if (res.error) return;
25450
25252
  const { status: miniProgramCurrentStatus } = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || "WAITING";
25451
25253
  miniProgramStatus.value = miniProgramCurrentStatus;
25452
25254
  if (miniProgramCurrentStatus === "TIMEOUT" || miniProgramCurrentStatus === "CANCEL") {
25453
25255
  stopPoll();
25454
25256
  return;
25455
25257
  }
25456
- if (miniProgramCurrentStatus !== "LOGIN")
25457
- return;
25258
+ if (miniProgramCurrentStatus !== "LOGIN") return;
25458
25259
  stopPoll();
25459
25260
  const loginResult = await LoginConfig.miniProgramLogin(miniProgramInfo.value.scene_id);
25460
25261
  if (!loginResult.success) {
@@ -25467,8 +25268,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25467
25268
  }, shouldMiniProgramPoll);
25468
25269
  const getMiniProgramQrCode = async () => {
25469
25270
  var _a;
25470
- if (miniProgramLoading.value)
25471
- return;
25271
+ if (miniProgramLoading.value) return;
25472
25272
  miniProgramLoading.value = true;
25473
25273
  stopPoll();
25474
25274
  miniProgramStatus.value = "WAITING";
@@ -25614,7 +25414,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25614
25414
  "hide-required-mark": "",
25615
25415
  onKeypress: withKeys(handleConfirm, ["enter"]),
25616
25416
  class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
25617
- errors: { msgError: msgError.value }
25417
+ errors: { msgError: msgError.value },
25418
+ "is-forget": formType.value === "forget"
25618
25419
  }, {
25619
25420
  submit: withCtx(() => [
25620
25421
  formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
@@ -25662,7 +25463,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25662
25463
  ])) : createCommentVNode("", true)
25663
25464
  ]),
25664
25465
  _: 1
25665
- }, 8, ["DataList", "show-label", "layout", "class", "errors"]))
25466
+ }, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
25666
25467
  ], 64))
25667
25468
  ]),
25668
25469
  _: 2
@@ -25771,9 +25572,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25771
25572
  };
25772
25573
  }
25773
25574
  });
25774
- const index_vue_vue_type_style_index_0_scoped_debd20f0_lang = "";
25775
- const index_vue_vue_type_style_index_1_lang = "";
25776
- const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-debd20f0"]]);
25575
+ const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25777
25576
  const { t } = i18n.global;
25778
25577
  function useLogin(request) {
25779
25578
  const successMsg = t("gitCodeLayout.common.tips.welcome");
@@ -25930,7 +25729,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25930
25729
  };
25931
25730
  }
25932
25731
  });
25933
- const main = "";
25934
25732
  const GitCodeLayoutEmitter = emitter;
25935
25733
  const index = {
25936
25734
  install: (app) => {
@@ -25950,8 +25748,8 @@ export {
25950
25748
  TOPIC_TYPE as T,
25951
25749
  _export_sfc as _,
25952
25750
  i18n as a,
25953
- REPO_EVENT as b,
25954
- REPO_TYPE as c,
25751
+ REPO_TYPE as b,
25752
+ REPO_EVENT as c,
25955
25753
  debounce$1 as d,
25956
25754
  extractRepoInfoWithURL as e,
25957
25755
  useTimeFormat as f,