zyjj-web-sdk 1.1.0 → 1.1.1

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 { g as E } from "./index-EsacoB5D.js";
1
+ import { g as E } from "./index-DSgzfPTT.js";
2
2
  function S(T, L) {
3
3
  for (var f = 0; f < L.length; f++) {
4
4
  const h = L[f];
@@ -1,4 +1,4 @@
1
- import { g as So, c as Io } from "./index-EsacoB5D.js";
1
+ import { g as So, c as Io } from "./index-DSgzfPTT.js";
2
2
  function Lo(pe, Ze) {
3
3
  for (var J = 0; J < Ze.length; J++) {
4
4
  const U = Ze[J];
@@ -1,4 +1,4 @@
1
- import { j as r } from "./index-EsacoB5D.js";
1
+ import { j as r } from "./index-DSgzfPTT.js";
2
2
  import { Alert as o } from "@arco-design/web-react";
3
3
  function p(t) {
4
4
  var e, n;
@@ -1,5 +1,5 @@
1
- import { j as r } from "./index-EsacoB5D.js";
2
- import { a as o } from "./common-DtnntE_W.js";
1
+ import { j as r } from "./index-DSgzfPTT.js";
2
+ import { a as o } from "./common-DOiVxFP8.js";
3
3
  import { useState as s, useCallback as f } from "react";
4
4
  import { Space as m } from "@arco-design/web-react";
5
5
  function j(e) {
@@ -7,7 +7,7 @@ function j(e) {
7
7
  if (!i || !e.value)
8
8
  return;
9
9
  let t = {};
10
- typeof e.value == "string" ? (a(e.value), t.url = e.value, t.name = e.value.split("/").pop()) : (t = e.value, a(t.url)), import("./APlayer.min-CZBtOELz.js").then((l) => l.A).then((l) => {
10
+ typeof e.value == "string" ? (a(e.value), t.url = e.value, t.name = e.value.split("/").pop()) : (t = e.value, a(t.url)), import("./APlayer.min-C8EyWXnf.js").then((l) => l.A).then((l) => {
11
11
  new l.default({
12
12
  container: i,
13
13
  loop: "none",
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index-EsacoB5D.js";
1
+ import { j as e } from "./index-DSgzfPTT.js";
2
2
  import { Space as m } from "@arco-design/web-react";
3
- import { I as t } from "./common-DtnntE_W.js";
3
+ import { I as t } from "./common-DOiVxFP8.js";
4
4
  function i(r) {
5
5
  return r.value ? e.jsx(m, { children: e.jsx(t, { src: r.value }) }) : e.jsx(e.Fragment, {});
6
6
  }
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index-EsacoB5D.js";
1
+ import { j as e } from "./index-DSgzfPTT.js";
2
2
  import { Image as o, Grid as t } from "@arco-design/web-react";
3
- import { I as n } from "./common-DtnntE_W.js";
3
+ import { I as n } from "./common-DOiVxFP8.js";
4
4
  function u(r) {
5
5
  var i;
6
6
  return r.value ? e.jsx(o.PreviewGroup, { infinite: !0, children: e.jsx(t, { cols: 4, colGap: 5, rowGap: 5, children: (i = r.value) == null ? void 0 : i.map((m, a) => e.jsx(t.GridItem, { children: e.jsx(n, { src: m }) }, a)) }) }) : e.jsx(e.Fragment, {});
@@ -1,4 +1,4 @@
1
- import { j as a } from "./index-EsacoB5D.js";
1
+ import { j as a } from "./index-DSgzfPTT.js";
2
2
  import { Input as n } from "@arco-design/web-react";
3
3
  function r(e) {
4
4
  var t;
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-EsacoB5D.js";
1
+ import { j as n } from "./index-DSgzfPTT.js";
2
2
  import { InputNumber as u } from "@arco-design/web-react";
3
3
  function r(t) {
4
4
  var e, a, m;
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-EsacoB5D.js";
1
+ import { j as n } from "./index-DSgzfPTT.js";
2
2
  import { Select as l } from "@arco-design/web-react";
3
3
  function i(e) {
4
4
  var a;
@@ -1,7 +1,7 @@
1
- import { j as A } from "./index-EsacoB5D.js";
1
+ import { j as A } from "./index-DSgzfPTT.js";
2
2
  import z, { useContext as Ce, useState as ae, useEffect as et } from "react";
3
3
  import { Space as tt, Input as nt } from "@arco-design/web-react";
4
- import { S as rt, C as it } from "./common-DtnntE_W.js";
4
+ import { S as rt, C as it } from "./common-DOiVxFP8.js";
5
5
  import { I as ve, _ as Ae, a as De } from "./context-tmjHwBoF.js";
6
6
  function ue(e, n) {
7
7
  var t = Object.keys(e);
@@ -2243,7 +2243,7 @@ function _r(e) {
2243
2243
  function Mr(e) {
2244
2244
  const [n, t] = ae(!1), [i, l] = ae();
2245
2245
  return et(() => {
2246
- import("./index-CBI9A0_q.js").then((o) => {
2246
+ import("./index--qvjKJli.js").then((o) => {
2247
2247
  l(A.jsx(o.default, { remarkPlugins: [yt, _r], children: e.value }));
2248
2248
  });
2249
2249
  }, [e.value]), A.jsxs("div", { className: "zyjj-lab-markdown", style: { position: "relative" }, children: [e.value ? A.jsxs(tt, { style: { position: "absolute", right: 0, margin: 5, zIndex: 99 }, children: [A.jsx(rt, { noSuccess: !0, onClick: async () => t((o) => !o), icon: n ? A.jsx(X, {}) : A.jsx(Y, {}), tip: n ? "预览" : "编辑" }), A.jsx(it, { value: e.value })] }) : A.jsx(A.Fragment, {}), n ? A.jsx(nt.TextArea, { style: { borderRadius: 5, padding: 10 }, autoSize: !0, value: e.value, onChange: e.onChange }) : A.jsx("div", { style: { padding: 10 }, children: i })] });
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-EsacoB5D.js";
1
+ import { j as n } from "./index-DSgzfPTT.js";
2
2
  import { Input as r } from "@arco-design/web-react";
3
3
  function m(e) {
4
4
  var a, t;
@@ -1,6 +1,6 @@
1
- import { j as i, F as x } from "./index-EsacoB5D.js";
2
- import l, { useContext as O, useState as j, useEffect as g } from "react";
3
- import { Upload as y, Button as b, Message as h } from "@arco-design/web-react";
1
+ import { j as l, F as x } from "./index-DSgzfPTT.js";
2
+ import p, { useContext as O, useState as j, useEffect as g } from "react";
3
+ import { Upload as h, Button as y, Message as b } from "@arco-design/web-react";
4
4
  import { I as C, _ as w, a as P } from "./context-tmjHwBoF.js";
5
5
  function m(n, o) {
6
6
  var e = Object.keys(n);
@@ -24,40 +24,40 @@ function d(n) {
24
24
  return n;
25
25
  }
26
26
  function _(n, o) {
27
- var e = O(C), t = e.prefixCls, r = t === void 0 ? "arco" : t, c = n.spin, a = n.className, s = d(d({
27
+ var e = O(C), t = e.prefixCls, r = t === void 0 ? "arco" : t, a = n.spin, c = n.className, s = d(d({
28
28
  "aria-hidden": !0,
29
29
  focusable: !1,
30
30
  ref: o
31
31
  }, n), {}, {
32
- className: "".concat(a ? a + " " : "").concat(r, "-icon ").concat(r, "-icon-upload")
32
+ className: "".concat(c ? c + " " : "").concat(r, "-icon ").concat(r, "-icon-upload")
33
33
  });
34
- return c && (s.className = "".concat(s.className, " ").concat(r, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ l.createElement("svg", w({
34
+ return a && (s.className = "".concat(s.className, " ").concat(r, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ p.createElement("svg", w({
35
35
  fill: "none",
36
36
  stroke: "currentColor",
37
37
  strokeWidth: "4",
38
38
  viewBox: "0 0 48 48"
39
- }, s), /* @__PURE__ */ l.createElement("path", {
39
+ }, s), /* @__PURE__ */ p.createElement("path", {
40
40
  d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"
41
41
  }));
42
42
  }
43
- var p = /* @__PURE__ */ l.forwardRef(_);
44
- p.defaultProps = {
43
+ var f = /* @__PURE__ */ p.forwardRef(_);
44
+ f.defaultProps = {
45
45
  isIcon: !0
46
46
  };
47
- p.displayName = "IconUpload";
47
+ f.displayName = "IconUpload";
48
48
  function F(n) {
49
- const { value: o, data: e, onChange: t } = n, r = (e == null ? void 0 : e.max_size) || 10 * 1024 * 1024, [c, a] = j([]), s = (u) => {
49
+ const { value: o, data: e, onChange: t } = n, r = (e == null ? void 0 : e.max_size) || 10 * 1024 * 1024, [a, c] = j([]), s = (u) => {
50
50
  console.log("custom upload", u);
51
- const { onSuccess: v, file: f } = u;
52
- if (f.size > r) {
53
- h.warning(`文件大小超过 ${r / 1024 / 1024}M, 请重新上传!`), a([]);
51
+ const { onSuccess: v, file: i } = u;
52
+ if (i.size > r) {
53
+ b.warning(`文件大小超过 ${r / 1024 / 1024}M, 请重新上传!`), c([]);
54
54
  return;
55
55
  }
56
- t && t(x(f)), v();
56
+ e != null && e.no_path && (i.path = void 0), t && t(x(i)), v();
57
57
  };
58
58
  return g(() => {
59
- a(o ? [{ uid: o.uid, name: o.name }] : []);
60
- }, [o]), i.jsx(y, { accept: e == null ? void 0 : e.accept, fileList: c, onChange: a, onRemove: () => t(void 0), limit: 1, customRequest: s, children: i.jsx(b, { type: "outline", icon: i.jsx(p, {}), children: "点击上传" }) });
59
+ c(o ? [{ uid: o.uid, name: o.name }] : []);
60
+ }, [o]), l.jsx(h, { accept: e == null ? void 0 : e.accept, fileList: a, onChange: c, onRemove: () => t(void 0), limit: 1, customRequest: s, children: l.jsx(y, { type: "outline", icon: l.jsx(f, {}), children: "点击上传" }) });
61
61
  }
62
62
  export {
63
63
  F as default
@@ -1,11 +1,11 @@
1
- import { j as t } from "./index-EsacoB5D.js";
2
- import { a as n } from "./common-DtnntE_W.js";
1
+ import { j as t } from "./index-DSgzfPTT.js";
2
+ import { a as n } from "./common-DOiVxFP8.js";
3
3
  import { Space as l } from "@arco-design/web-react";
4
4
  import { useCallback as s } from "react";
5
5
  function v(e) {
6
6
  var i;
7
7
  const a = s((o) => {
8
- !o || !e.value || import("./DPlayer.min-BXMg11_u.js").then((r) => r.D).then((r) => {
8
+ !o || !e.value || import("./DPlayer.min-BfLr2A04.js").then((r) => r.D).then((r) => {
9
9
  var u;
10
10
  new r.default({ container: o, screenshot: !0, video: { url: (u = e.value) == null ? void 0 : u.url } });
11
11
  });
@@ -1,4 +1,4 @@
1
- import { j as a, d as W } from "./index-EsacoB5D.js";
1
+ import { j as a, d as W } from "./index-DSgzfPTT.js";
2
2
  import i, { useContext as f, useState as O, useEffect as F } from "react";
3
3
  import { Tooltip as H, Space as z, Image as T } from "@arco-design/web-react";
4
4
  import { I as p, _ as u, a as d } from "./context-tmjHwBoF.js";
@@ -255,12 +255,12 @@ function J(e, r) {
255
255
  d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"
256
256
  }));
257
257
  }
258
- var C = /* @__PURE__ */ i.forwardRef(J);
259
- C.defaultProps = {
258
+ var w = /* @__PURE__ */ i.forwardRef(J);
259
+ w.defaultProps = {
260
260
  isIcon: !0
261
261
  };
262
- C.displayName = "IconLoading";
263
- const w = (e) => {
262
+ w.displayName = "IconLoading";
263
+ const C = (e) => {
264
264
  const [r, n] = O(e.icon), [t, c] = O(e.tip), [l, s] = O(!1);
265
265
  F(() => {
266
266
  n(e.icon);
@@ -270,23 +270,23 @@ const w = (e) => {
270
270
  n(e.icon), c(e.tip);
271
271
  }, 1e3));
272
272
  }, R = () => {
273
- e.onClick && !l && (o("执行中", a.jsx(C, {})), s(!0), e.onClick().then(() => o("成功", a.jsx(j, { style: { color: "green" } }))).catch((m) => o(`${m}`, a.jsx(v, { style: { color: "red" } }))).finally(() => s(!1)));
273
+ e.onClick && !l && (o("执行中", a.jsx(w, {})), s(!0), e.onClick().then(() => o("成功", a.jsx(j, { style: { color: "green" } }))).catch((m) => o(`${m}`, a.jsx(v, { style: { color: "red" } }))).finally(() => s(!1)));
274
274
  };
275
275
  return a.jsx(H, { content: t, children: a.jsx("div", { className: "zyjj-small-icon", onClick: R, children: r }) });
276
- }, ee = (e) => a.jsx(w, { icon: a.jsx(g, {}), tip: "拷贝", onClick: () => navigator.clipboard.writeText(e.value || "") }), M = (e) => a.jsx(w, { icon: a.jsx(b, {}), tip: "新窗口打开", onClick: async () => {
276
+ }, ee = (e) => a.jsx(C, { icon: a.jsx(g, {}), tip: "拷贝", onClick: () => navigator.clipboard.writeText(e.value || "") }), M = (e) => a.jsx(C, { icon: a.jsx(b, {}), tip: "新窗口打开", onClick: async () => {
277
277
  window.open(e.value);
278
- } }), L = (e) => a.jsx(w, { icon: a.jsx(y, {}), tip: "下载", onClick: async () => W(e.value || "") }), te = (e) => {
278
+ } }), L = (e) => a.jsx(C, { icon: a.jsx(y, {}), tip: "下载", onClick: async () => W(e.value || "") }), te = (e) => {
279
279
  const { link: r } = e;
280
280
  return r ? a.jsxs(z, { size: "mini", style: { marginLeft: 5, width: "100%", justifyContent: "center" }, align: "center", direction: "horizontal", children: [a.jsx(L, { value: r }), a.jsx(M, { value: r })] }) : a.jsx(a.Fragment, {});
281
281
  }, ne = (e) => a.jsx(T, { style: { borderRadius: 5 }, referrerPolicy: "no-referrer", width: "100%", src: e.src, previewProps: {
282
282
  actions: [
283
283
  {
284
- getContainer: () => a.jsx(L, { value: e.src }),
284
+ getContainer: () => a.jsx(L, { value: e.src }, "download"),
285
285
  content: a.jsx(a.Fragment, {}),
286
286
  key: "download"
287
287
  },
288
288
  {
289
- getContainer: () => a.jsx(M, { value: e.src }),
289
+ getContainer: () => a.jsx(M, { value: e.src }, "launch"),
290
290
  content: a.jsx(a.Fragment, {}),
291
291
  key: "launch"
292
292
  }
@@ -296,6 +296,6 @@ const w = (e) => {
296
296
  export {
297
297
  ee as C,
298
298
  ne as I,
299
- w as S,
299
+ C as S,
300
300
  te as a
301
301
  };
@@ -1,5 +1,5 @@
1
- import { a as Z, p as ne, r as xn, s as xe, c as Mn, b as ue, d as sn, e as dr, m as R, f as H, g as gr, h as yr, i as cn, j as A, k as ee, n as Ee, l as Qe, o as De, q as xr, t as kr, v as It, u as br } from "./ElementTypeText-BSc-LLC8.js";
2
- import { c as _n, g as wr, j as Ke } from "./index-EsacoB5D.js";
1
+ import { a as Z, p as ne, r as xn, s as xe, c as Mn, b as ue, d as sn, e as dr, m as R, f as H, g as gr, h as yr, i as cn, j as A, k as ee, n as Ee, l as Qe, o as De, q as xr, t as kr, v as It, u as br } from "./ElementTypeText-DWkuu_Yg.js";
2
+ import { c as _n, g as wr, j as Ke } from "./index-DSgzfPTT.js";
3
3
  const Bn = document.createElement("i");
4
4
  function kn(e) {
5
5
  const n = "&" + e + ";";
@@ -4063,7 +4063,7 @@ function Rc(e) {
4063
4063
  return d.tp == "input" ? l = _.jsx(Ae, { allowClear: !0, placeholder: f.placeholder }) : d.tp == "custom" && (l = d.ele), _.jsx(ie.Item, { label: d.label, field: d.field, children: l }, d.field);
4064
4064
  }), _.jsx(ie.Item, { children: _.jsx(Fe, { htmlType: "submit", children: "搜索" }) })] }) : null, _.jsx(zo, { loading: n, pagination: s, onChange: (d) => i({ ...s, current: (d == null ? void 0 : d.current) || s.current, pageSize: (d == null ? void 0 : d.pageSize) || s.pageSize }), rowKey: e.id || "id", columns: e.columns, data: t })] });
4065
4065
  }
4066
- const cc = me(() => import("./ElementTypeInput-BRtz62-Y.js")), uc = me(() => import("./ElementTypeSelect-CR0uuJdt.js")), lc = me(() => import("./ElementTypeTextArea-DCG45595.js")), bn = me(() => import("./ElementTypeText-BSc-LLC8.js").then((e) => e.E)), fc = me(() => import("./ElementTypeAudio-cJogWlWH.js")), dc = me(() => import("./ElementTypeUpload-nGLzfZ6G.js")), hc = me(() => import("./ElementTypeNumber-Cfd2x86j.js")), pc = me(() => import("./ElementTypeImageList-vziNxaaS.js")), mc = me(() => import("./ElementTypeImage-7ir4H1-l.js")), yc = me(() => import("./ElementTypeAlert-DIwHRqol.js")), gc = me(() => import("./ElementTypeVideo-BMtgU--n.js")), bc = me(() => import("./ElementTypeNumber-Cfd2x86j.js"));
4066
+ const cc = me(() => import("./ElementTypeInput-KJFxrO5z.js")), uc = me(() => import("./ElementTypeSelect-C7tj_Fsu.js")), lc = me(() => import("./ElementTypeTextArea-aJ9TsKmN.js")), bn = me(() => import("./ElementTypeText-DWkuu_Yg.js").then((e) => e.E)), fc = me(() => import("./ElementTypeAudio-CTxrNe89.js")), dc = me(() => import("./ElementTypeUpload-Bw6dXRJx.js")), hc = me(() => import("./ElementTypeNumber-BuOgoWNX.js")), pc = me(() => import("./ElementTypeImageList-DRT4HqID.js")), mc = me(() => import("./ElementTypeImage-C7AUnjGd.js")), yc = me(() => import("./ElementTypeAlert-CdPElEsC.js")), gc = me(() => import("./ElementTypeVideo-C3T0oonf.js")), bc = me(() => import("./ElementTypeNumber-BuOgoWNX.js"));
4067
4067
  function Dc(e) {
4068
4068
  const { tp: t, isInput: r, data: n, value: o, onChange: s } = e;
4069
4069
  switch (t) {
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, E as o, L as m, P as n, a as l, S as r, T as t, U as E } from "./index-EsacoB5D.js";
1
+ import { A as s, E as o, L as m, P as n, a as l, S as r, T as t, U as E } from "./index-DSgzfPTT.js";
2
2
  export {
3
3
  s as Api,
4
4
  o as Enum,
package/lib/index.umd.cjs CHANGED
@@ -33,7 +33,7 @@ This could lead to inefficient memoization and unnecessary re-renders.
33
33
  Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},Qd=(e,n,t)=>{const{memoize:r,memoizeOptions:i}=n,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,l=r(()=>({}),...i);if(!(l.apply(null,a)===l.apply(null,o))){let c;try{throw new Error}catch(h){({stack:c}=h)}console.warn(`An input selector returned a different result when passed same arguments.
34
34
  This means your output selector will likely run more frequently than intended.
35
35
  Avoid returning a new reference inside your input selector, e.g.
36
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:t,firstInputs:a,secondInputs:o,stack:c})}},Jd={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Zd(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function Xd(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function Gd(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(t=>typeof t=="function")){const t=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${n}[${t}]`)}}var Ol=e=>Array.isArray(e)?e:[e];function ef(e){const n=Array.isArray(e[0])?e[0]:e;return Gd(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function Pl(e,n){const t=[],{length:r}=e;for(let i=0;i<r;i++)t.push(e[i].apply(null,n));return t}var nf=(e,n)=>{const{identityFunctionCheck:t,inputStabilityCheck:r}={...Jd,...n};return{identityFunctionCheck:{shouldRun:t==="always"||t==="once"&&e,run:Kd},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Qd}}},tf=class{constructor(e){this.value=e}deref(){return this.value}},rf=typeof WeakRef<"u"?WeakRef:tf,of=0,_l=1;function Nr(){return{s:of,v:void 0,o:null,p:null}}function Gi(e,n={}){let t=Nr();const{resultEqualityCheck:r}=n;let i,a=0;function o(){var u;let l=t;const{length:s}=arguments;for(let f=0,A=s;f<A;f++){const b=arguments[f];if(typeof b=="function"||typeof b=="object"&&b!==null){let v=l.o;v===null&&(l.o=v=new WeakMap);const S=v.get(b);S===void 0?(l=Nr(),v.set(b,l)):l=S}else{let v=l.p;v===null&&(l.p=v=new Map);const S=v.get(b);S===void 0?(l=Nr(),v.set(b,l)):l=S}}const c=l;let h;if(l.s===_l?h=l.v:(h=e.apply(null,arguments),a++),c.s=_l,r){const f=((u=i==null?void 0:i.deref)==null?void 0:u.call(i))??i;f!=null&&r(f,h)&&(h=f,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new rf(h):h}return c.v=h,h}return o.clearCache=()=>{t=Nr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Tl(e,...n){const t=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,r=(...i)=>{let a=0,o=0,l,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),Zd(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const h={...t,...s},{memoize:u,memoizeOptions:f=[],argsMemoize:A=Gi,argsMemoizeOptions:b=[],devModeChecks:v={}}=h,S=Ol(f),O=Ol(b),B=ef(i),T=u(function(){return a++,c.apply(null,arguments)},...S);let j=!0;const M=A(function(){o++;const F=Pl(B,arguments);if(l=T.apply(null,F),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:W,inputStabilityCheck:ne}=nf(j,v);if(W.shouldRun&&W.run(c,F,l),ne.shouldRun){const L=Pl(B,arguments);ne.run({inputSelectorResults:F,inputSelectorResultsCopy:L},{memoize:u,memoizeOptions:S},arguments)}j&&(j=!1)}return l},...O);return Object.assign(M,{resultFunc:c,memoizedResultFunc:T,dependencies:B,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:u,argsMemoize:A})};return Object.assign(r,{withTypes:()=>r}),r}var af=Tl(Gi),lf=Object.assign((e,n=af)=>{Xd(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const t=Object.keys(e),r=t.map(a=>e[a]);return n(r,(...a)=>a.reduce((o,l,s)=>(o[t[s]]=l,o),{}))},{withTypes:()=>lf}),sf=(...e)=>{const n=Tl(...e),t=Object.assign((...r)=>{const i=n(...r),a=(o,...l)=>i($n(o)?Sl(o):o,...l);return Object.assign(a,i),a},{withTypes:()=>t});return t};sf(Gi);var uf=e=>e&&typeof e.match=="function";function Ln(e,n){function t(...r){if(n){let i=n(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?We(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return t.toString=()=>`${e}`,t.type=e,t.match=r=>zd(r)&&r.type===e,t}function Ll(e){return Tn(e)?Il(e,()=>{}):e}function jl(e,n,t){if(e.has(n)){let i=e.get(n);return t.update&&(i=t.update(i,n,e),e.set(n,i)),i}if(!t.insert)throw new Error(process.env.NODE_ENV==="production"?We(10):"No insert provided for key not already in map");const r=t.insert(n,e);return e.set(n,r),r}process.env.NODE_ENV;function Dl(e){const n={},t=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error(process.env.NODE_ENV==="production"?We(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?We(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?We(28):"`builder.addCase` cannot be called with an empty action type");if(l in n)throw new Error(process.env.NODE_ENV==="production"?We(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return n[l]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[n,t,r]}function cf(e){return typeof e=="function"}function pf(e,n){if(process.env.NODE_ENV!=="production"&&typeof n=="object")throw new Error(process.env.NODE_ENV==="production"?We(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[t,r,i]=Dl(n),a;if(cf(e))a=()=>Ll(e());else{const l=Ll(e);a=()=>l}function o(l=a(),s){let c=[t[s.type],...r.filter(({matcher:h})=>h(s)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,u)=>{if(u)if($n(h)){const A=u(h,s);return A===void 0?h:A}else{if(Tn(h))return Il(h,f=>u(f,s));{const f=u(h,s);if(f===void 0){if(h===null)return h;throw new Error(process.env.NODE_ENV==="production"?We(9):"A case reducer on a non-draftable value must not return undefined")}return f}}return h},l)}return o.getInitialState=a,o}var df="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=(e=21)=>{let n="",t=e;for(;t--;)n+=df[Math.random()*64|0];return n},ff=(e,n)=>uf(e)?e.match(n):e(n);function hf(...e){return n=>e.some(t=>ff(t,n))}var mf=["name","message","stack","code"],eo=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},zl=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},yf=e=>{if(typeof e=="object"&&e!==null){const n={};for(const t of mf)typeof e[t]=="string"&&(n[t]=e[t]);return n}return{message:String(e)}},Fl=(()=>{function e(n,t,r){const i=Ln(n+"/fulfilled",(s,c,h,u)=>({payload:s,meta:{...u||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=Ln(n+"/pending",(s,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:s,requestStatus:"pending"}})),o=Ln(n+"/rejected",(s,c,h,u,f)=>({payload:u,error:(r&&r.serializeError||yf)(s||"Rejected"),meta:{...f||{},arg:h,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:(s==null?void 0:s.name)==="AbortError",condition:(s==null?void 0:s.name)==="ConditionError"}}));function l(s){return(c,h,u)=>{const f=r!=null&&r.idGenerator?r.idGenerator(s):Ml(),A=new AbortController;let b,v;function S(B){v=B,A.abort()}const O=async function(){var j,M;let B;try{let k=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,s,{getState:h,extra:u});if(gf(k)&&(k=await k),k===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const F=new Promise((W,ne)=>{b=()=>{ne({name:"AbortError",message:v||"Aborted"})},A.signal.addEventListener("abort",b)});c(a(f,s,(M=r==null?void 0:r.getPendingMeta)==null?void 0:M.call(r,{requestId:f,arg:s},{getState:h,extra:u}))),B=await Promise.race([F,Promise.resolve(t(s,{dispatch:c,getState:h,extra:u,requestId:f,signal:A.signal,abort:S,rejectWithValue:(W,ne)=>new eo(W,ne),fulfillWithValue:(W,ne)=>new zl(W,ne)})).then(W=>{if(W instanceof eo)throw W;return W instanceof zl?i(W.payload,f,s,W.meta):i(W,f,s)})])}catch(k){B=k instanceof eo?o(null,f,s,k.payload,k.meta):o(k,f,s)}finally{b&&A.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&o.match(B)&&B.meta.condition||c(B),B}();return Object.assign(O,{abort:S,requestId:f,arg:s,unwrap(){return O.then(Af)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:hf(o,i),typePrefix:n})}return e.withTypes=()=>e,e})();function Af(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bf=Symbol.for("rtk-slice-createasyncthunk");function vf(e,n){return`${e}/${n}`}function xf({creators:e}={}){var t;const n=(t=e==null?void 0:e.asyncThunk)==null?void 0:t[bf];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?We(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(kf()):i.reducers)||{},s=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(T,j){const M=typeof T=="string"?T:T.type;if(!M)throw new Error(process.env.NODE_ENV==="production"?We(12):"`context.addCase` cannot be called with an empty action type");if(M in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?We(13):"`context.addCase` cannot be called with two reducers for the same action type: "+M);return c.sliceCaseReducersByType[M]=j,h},addMatcher(T,j){return c.sliceMatchers.push({matcher:T,reducer:j}),h},exposeAction(T,j){return c.actionCreators[T]=j,h},exposeCaseReducer(T,j){return c.sliceCaseReducersByName[T]=j,h}};s.forEach(T=>{const j=l[T],M={reducerName:T,type:vf(a,T),createNotation:typeof i.reducers=="function"};Cf(j)?Bf(M,j,h,n):Ef(M,j,h)});function u(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?We(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[T={},j=[],M=void 0]=typeof i.extraReducers=="function"?Dl(i.extraReducers):[i.extraReducers],k={...T,...c.sliceCaseReducersByType};return pf(i.initialState,F=>{for(let W in k)F.addCase(W,k[W]);for(let W of c.sliceMatchers)F.addMatcher(W.matcher,W.reducer);for(let W of j)F.addMatcher(W.matcher,W.reducer);M&&F.addDefaultCase(M)})}const f=T=>T,A=new Map;let b;function v(T,j){return b||(b=u()),b(T,j)}function S(){return b||(b=u()),b.getInitialState()}function O(T,j=!1){function M(F){let W=F[T];if(typeof W>"u"){if(j)W=S();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(15):"selectSlice returned undefined for an uninjected slice reducer")}return W}function k(F=f){const W=jl(A,j,{insert:()=>new WeakMap});return jl(W,F,{insert:()=>{const ne={};for(const[L,Q]of Object.entries(i.selectors??{}))ne[L]=wf(Q,F,S,j);return ne}})}return{reducerPath:T,getSelectors:k,get selectors(){return k(M)},selectSlice:M}}const B={name:a,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...O(o),injectInto(T,{reducerPath:j,...M}={}){const k=j??o;return T.inject({reducerPath:k,reducer:v},M),{...B,...O(k,!0)}}};return B}}function wf(e,n,t,r){function i(a,...o){let l=n(a);if(typeof l>"u"){if(r)l=t();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...o)}return i.unwrapped=e,i}var Rl=xf();function kf(){function e(n,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...t}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...t){return n(...t)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:t}},asyncThunk:e}}function Ef({type:e,reducerName:n,createNotation:t},r,i){let a,o;if("reducer"in r){if(t&&!Sf(r))throw new Error(process.env.NODE_ENV==="production"?We(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(n,a).exposeAction(n,o?Ln(e,o):Ln(e))}function Cf(e){return e._reducerDefinitionType==="asyncThunk"}function Sf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bf({type:e,reducerName:n},t,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?We(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:h}=t,u=i(e,a,h);r.exposeAction(n,u),o&&r.addCase(u.fulfilled,o),l&&r.addCase(u.pending,l),s&&r.addCase(u.rejected,s),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(n,{fulfilled:o||qr,pending:l||qr,rejected:s||qr,settled:c||qr})}function qr(){}var If=(e,n)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?We(32):`${n} is not a function`)},no="listenerMiddleware",Of=e=>{let{type:n,actionCreator:t,matcher:r,predicate:i,effect:a}=e;if(n)i=Ln(n).match;else if(t)n=t.type,i=t.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?We(21):"Creating or removing a listener requires one of the known fields for matching an action");return If(a,"options.listener"),{predicate:i,type:n,effect:a}},Pf=Object.assign(e=>{const{type:n,predicate:t,effect:r}=Of(e);return{id:Ml(),effect:r,type:n,predicate:t,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?We(22):"Unsubscribe not initialized")}}},{withTypes:()=>Pf}),_f=Object.assign(Ln(`${no}/add`),{withTypes:()=>_f});Ln(`${no}/removeAll`);var Tf=Object.assign(Ln(`${no}/remove`),{withTypes:()=>Tf});function We(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Lf={showLogin:!1},to=Fl("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cl()}),Nl=Rl({name:"user",initialState:Lf,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(to.fulfilled,(n,t)=>{t.payload!=null?(n.isLogin=!0,n.userInfo=t.payload):n.isLogin=!1}),e.addCase(to.rejected,n=>{n.isLogin=!1,n.userInfo=void 0})}}),jf=Nl.actions,Df=Nl.reducer,ro=(e,n)=>n.some(t=>e instanceof t);let ql,Ul;function Mf(){return ql||(ql=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function zf(){return Ul||(Ul=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const io=new WeakMap,oo=new WeakMap,Ur=new WeakMap;function Ff(e){const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{t(rt(e.result)),i()},o=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",o)});return Ur.set(n,e),n}function Rf(e){if(io.has(e))return;const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});io.set(e,n)}let ao={get(e,n,t){if(e instanceof IDBTransaction){if(n==="done")return io.get(e);if(n==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return rt(e[n])},set(e,n,t){return e[n]=t,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function Hl(e){ao=e(ao)}function Nf(e){return zf().includes(e)?function(...n){return e.apply(lo(this),n),rt(this.request)}:function(...n){return rt(e.apply(lo(this),n))}}function qf(e){return typeof e=="function"?Nf(e):(e instanceof IDBTransaction&&Rf(e),ro(e,Mf())?new Proxy(e,ao):e)}function rt(e){if(e instanceof IDBRequest)return Ff(e);if(oo.has(e))return oo.get(e);const n=qf(e);return n!==e&&(oo.set(e,n),Ur.set(n,e)),n}const lo=e=>Ur.get(e);function Uf(e,n,{blocked:t,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,n),l=rt(o);return r&&o.addEventListener("upgradeneeded",s=>{r(rt(o.result),s.oldVersion,s.newVersion,rt(o.transaction),s)}),t&&o.addEventListener("blocked",s=>t(s.oldVersion,s.newVersion,s)),l.then(s=>{a&&s.addEventListener("close",()=>a()),i&&s.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}const Hf=["get","getKey","getAll","getAllKeys","count"],$f=["put","add","delete","clear"],so=new Map;function $l(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(so.get(n))return so.get(n);const t=n.replace(/FromIndex$/,""),r=n!==t,i=$f.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Hf.includes(t)))return;const a=async function(o,...l){const s=this.transaction(o,i?"readwrite":"readonly");let c=s.store;return r&&(c=c.index(l.shift())),(await Promise.all([c[t](...l),i&&s.done]))[0]};return so.set(n,a),a}Hl(e=>({...e,get:(n,t,r)=>$l(n,t)||e.get(n,t,r),has:(n,t)=>!!$l(n,t)||e.has(n,t)}));const Wf=["continue","continuePrimaryKey","advance"],Wl={},uo=new WeakMap,Yl=new WeakMap,Yf={get(e,n){if(!Wf.includes(n))return e[n];let t=Wl[n];return t||(t=Wl[n]=function(...r){uo.set(this,Yl.get(this)[n](...r))}),t}};async function*Vf(...e){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...e)),!n)return;n=n;const t=new Proxy(n,Yf);for(Yl.set(t,n),Ur.set(t,lo(n));n;)yield t,n=await(uo.get(t)||n.continue()),uo.delete(t)}function Vl(e,n){return n===Symbol.asyncIterator&&ro(e,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&ro(e,[IDBIndex,IDBObjectStore])}Hl(e=>({...e,get(n,t,r){return Vl(n,t)?Vf:e.get(n,t,r)},has(n,t){return Vl(n,t)||e.has(n,t)}}));const bt="task",Ht=()=>Uf("zyjj",2,{upgrade(e){e.createObjectStore(bt)}}),Kf=async(e,n=bt)=>(await Ht()).put(n,e,e.id),Qf=async(e=bt)=>(await Ht()).getAll(e),Jf=async(e,n=bt)=>(await Ht()).get(n,e),Zf=async(e,n,t=bt)=>(await Ht()).put(t,n,e),Xf=async(e,n=bt)=>(await Ht()).delete(n,e),Gf={taskCallback:{},listenerCallback:[]},Kl=Fl("mqtt/initMqtt",async(e,{dispatch:n})=>{const t=await dl();console.log("[mqtt] mqtt info",t);const r=t.topic,i=mt.connect(`mqtt://${t.host}`,{keepalive:60,clientId:t.client_id,username:t.username,password:t.password,protocol:"wss",reconnectPeriod:3e3});return i.on("connect",a=>{console.log("[mqtt] connect success",a),i.subscribe(r,{qos:1})}),i.on("message",(a,o,l)=>{console.log("[mqtt] on message",a,o.toString(),l),a===r&&n(Jl.onMqttResponse(JSON.parse(o.toString())))}),i.on("error",a=>console.log("[mqtt] err",a)),i.on("close",()=>console.log("[mqtt] close")),i.on("disconnect",()=>console.log("[mqtt] disconnect")),i}),Ql=Rl({name:"mqtt",initialState:Gf,reducers:{onMqttResponse(e,n){const t=n.payload;t.task_id in e.taskCallback&&e.taskCallback[t.task_id](t)&&(delete e.taskCallback[t.task_id],console.log("[mqtt] delete callback",t.task_id)),e.listenerCallback.forEach(r=>r(t))},closeClient(e){var n;console.log("[mqtt] close client"),(n=e.client)==null||n.end()},addMqttCallback(e,n){e.taskCallback[n.payload.task_id]=n.payload.callback},addMqttEventCallback(e,n){const t=n.payload;e.taskCallback[t.task_id]=r=>{var i,a,o;return(i=t.on_detail)==null||i.call(t,r),r.event_type==et.Success?(a=t.on_finish)==null||a.call(t,r.data):r.event_type==et.Error&&((o=t.on_error)==null||o.call(t,r.data)),[et.Success,et.Error].includes(r.event_type)}},addMqttListener(e,n){e.listenerCallback.push(n.payload)}},extraReducers:e=>{e.addCase(Kl.fulfilled,(n,t)=>{n.client=t.payload})}}),Jl=Ql.actions,eh=Ql.reducer;var co;(function(e){e[e.MqttListener=0]="MqttListener",e[e.CloudFileUpload=1]="CloudFileUpload",e[e.CloudFileDownload=2]="CloudFileDownload",e[e.GetInitData=3]="GetInitData",e[e.NavigateTo=4]="NavigateTo",e[e.CloseWindow=5]="CloseWindow",e[e.TaskAction=6]="TaskAction",e[e.SendRequest=7]="SendRequest",e[e.FFMPEG=8]="FFMPEG",e[e.FileDownload=9]="FileDownload"})(co||(co={}));var po;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(po||(po={}));var fo;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(fo||(fo={}));const Hr=60;function Zl(e){const[n,t]=re.useState(Hr),r=re.useRef();re.useEffect(()=>{n==0&&(clearInterval(r.current),t(Hr))},[n]);const i=()=>{e.callback().then(()=>{te.Message.success("获取验证码成功,请注意查收邮箱"),t(a=>a-1),r.current=setInterval(()=>{t(a=>a-1)},1e3)})};return q.jsxs(te.Space,{children:[q.jsx(te.Input,{onChange:e.onChange,placeholder:"输入验证码"}),q.jsx(te.Button,{disabled:n!=Hr,type:"primary",onClick:i,children:n!=Hr?`剩余${n}秒`:"获取验证码"})]})}const nh=e=>{const[n,t]=re.useState(""),[r,i]=re.useState(!0),a=l=>{r?dd(l).then(s=>{te.Message.success("登录成功"),localStorage.setItem("token",s),e.loginSuccess(s)}):hd(l).then(()=>{te.Message.success("注册成功,请登录"),i(!0)})},o=()=>ul(n);return q.jsxs(te.Form,{autoComplete:"off",onSubmit:a,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:q.jsx(te.Input.Password,{placeholder:"输入密码"})}),r?null:q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:o})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:r?"立即登录":"注册账号"}),q.jsx(te.Button,{type:"text",onClick:()=>i(l=>!l),children:r?"新用户?":"已有账号?"}),r?q.jsx(te.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function th(e){const[n,t]=re.useState(""),r=a=>{if(a.password_repeat!=a.password){te.Message.error("新旧密码不一致");return}const{email:o,password:l,token:s}=a;md({email:o,password:l,token:s}).then(()=>{te.Message.success("密码重置成功,请登录"),e.onLogin()})},i=()=>ul(n);return q.jsx("div",{children:q.jsxs(te.Form,{style:{width:370},autoComplete:"off",onSubmit:r,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:i})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:q.jsx(te.Input,{type:"password",placeholder:"输入新密码"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:q.jsx(te.Input,{type:"password",placeholder:"再输入一遍新密码"})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),q.jsx(te.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function rh(e){const[n,t]=re.useState(!1);return q.jsx(te.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:n?q.jsx(th,{onLogin:()=>t(!1)}):q.jsx(nh,{loginSuccess:e.loginSuccess,onForget:()=>t(!0)})})}function ih(e){const[n,t]=re.useState([]),[r,i]=re.useState(!1),[a,o]=re.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[l]=te.Form.useForm(),s=()=>{i(!0),e.data(a.current,a.pageSize,l.getFieldsValue()).then(c=>{t(c.list),o(h=>(h.total=c.total,h)),i(!1)})};return re.useEffect(()=>{s()},[a.current,a.pageSize]),re.useEffect(()=>{s(),e.refresh&&e.refresh(()=>s())},[]),q.jsxs(q.Fragment,{children:[e.search?q.jsxs(te.Form,{form:l,layout:"inline",onSubmit:s,children:[e.search.map(c=>{let h=q.jsx(q.Fragment,{});const u=c.data;return c.tp=="input"?h=q.jsx(te.Input,{allowClear:!0,placeholder:u.placeholder}):c.tp=="custom"&&(h=c.ele),q.jsx(te.Form.Item,{label:c.label,field:c.field,children:h},c.field)}),q.jsx(te.Form.Item,{children:q.jsx(te.Button,{htmlType:"submit",children:"搜索"})})]}):null,q.jsx(te.Table,{loading:r,pagination:a,onChange:c=>o({...a,current:(c==null?void 0:c.current)||a.current,pageSize:(c==null?void 0:c.pageSize)||a.pageSize}),rowKey:e.id||"id",columns:e.columns,data:n})]})}const oh=re.lazy(()=>Promise.resolve().then(()=>wh)),ah=re.lazy(()=>Promise.resolve().then(()=>Eh)),lh=re.lazy(()=>Promise.resolve().then(()=>Sh)),Xl=re.lazy(()=>Promise.resolve().then(()=>_A)),sh=re.lazy(()=>Promise.resolve().then(()=>LA)),uh=re.lazy(()=>Promise.resolve().then(()=>DA)),ch=re.lazy(()=>Promise.resolve().then(()=>Au)),ph=re.lazy(()=>Promise.resolve().then(()=>FA)),dh=re.lazy(()=>Promise.resolve().then(()=>NA)),fh=re.lazy(()=>Promise.resolve().then(()=>UA)),hh=re.lazy(()=>Promise.resolve().then(()=>$A)),mh=re.lazy(()=>Promise.resolve().then(()=>Au));function yh(e){const{tp:n,isInput:t,data:r,value:i,onChange:a}=e;switch(n){case on.Input:return q.jsx(oh,{value:i,onChange:a,data:r});case on.Select:return q.jsx(ah,{value:i,onChange:a,data:r});case on.TextArea:return t?q.jsx(lh,{value:i,onChange:a,data:r}):q.jsx(Xl,{value:i,onChange:a,data:r});case on.FileUpload:return q.jsx(uh,{value:i,onChange:a,data:r});case on.Slider:return q.jsx(mh,{value:i,onChange:a,data:r});case on.Audio:return q.jsx(sh,{value:i,onChange:a,data:r});case on.Number:return q.jsx(ch,{value:i,onChange:a,data:r});case on.ImageList:return q.jsx(ph,{value:i,onChange:a,data:r});case on.Image:return q.jsx(dh,{value:i,onChange:a,data:r});case on.Alert:return q.jsx(fh,{value:i,onChange:a,data:r});case on.Video:return q.jsx(hh,{value:i,onChange:a,data:r});case on.MarkDown:return q.jsx(Xl,{value:i,onChange:a,data:r});default:return q.jsx("div",{children:"组件不支持,请升级到最新版本!"})}}const Ah={GetAllTool:bd,ToolInc:xd,UpdateUserInfo:yd,GetAppInfo:fd,CostPoint:Ad,GetUserInfo:cl,UserDownloadMaterial:Sd,GetMqttTaskClientInfo:dl,AddTask:kd,GetTaskInfo:Ed,GetTencentCosInfo:pl,GetMaterialUrl:Bd,GetMaterialTagList:Cd,GetToolList:gd,GetToolTagList:wd,GetToolDetail:vd},gh={ToolType:zi,LocalActionReqType:Ti,LocalActionResType:Li,MQTTEventType:et,FileSource:_i,LocalTaskStatus:ji,LocalTaskEventType:Di,ToolTaskType:Ni,FfmpegActionType:qi,CloudTaskStatus:Fi,TaskType:Mi,LabElementType:on,ToolConfigType:Ri,ToolEventType:co,WorkActionType:fo,TaskActionType:po},bh={render:{renderTime:Ld,renderEllipsis:Dd,renderCopy:jd},utils:{file2ToolParamFile:ol,seconds2TimeStr:ld,getTencentInfo:sd,object2query:al,paramReplace:cd,object2urlParam:pd,convertFileSize:ad,downloadFile:ll,downloadFileDirect:sl},db:{addTask:Kf,getAllData:Qf,getData:Jf,updateData:Zf,deleteData:Xf}},vh={UserReducer:Df,UserAction:jf,GetUserInfo:to,MqttReducer:eh,MqttAction:Jl,InitMqtt:Kl};function xh(e){var n;return q.jsx(te.Input,{value:e.value,onChange:e.onChange,placeholder:(n=e.data)==null?void 0:n.placeholder})}const wh=Object.freeze(Object.defineProperty({__proto__:null,default:xh},Symbol.toStringTag,{value:"Module"}));function kh(e){var n;return q.jsx(te.Select,{value:e.value,onChange:e.onChange,children:(n=e.data)==null?void 0:n.data.map((t,r)=>q.jsx(te.Select.Option,{value:t.value,children:t.label},r))})}const Eh=Object.freeze(Object.defineProperty({__proto__:null,default:kh},Symbol.toStringTag,{value:"Module"}));function Ch(e){var n,t;return q.jsx(te.Input.TextArea,{value:e.value,onChange:e.onChange,rows:10,maxLength:(n=e.data)==null?void 0:n.max_len,showWordLimit:!0,placeholder:(t=e.data)==null?void 0:t.placeholder})}const Sh=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"}));function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xn.apply(this,arguments)}function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$t(e)}function Bh(e,n){if($t(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ih(e){var n=Bh(e,"string");return $t(n)=="symbol"?n:n+""}function jn(e,n,t){return n=Ih(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Dn=re.createContext({prefixCls:"arco"});function Gl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function es(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Gl(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gl(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Oh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=es(es({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-check-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var ho=re.forwardRef(Oh);ho.defaultProps={isIcon:!0},ho.displayName="IconCheckCircle";function ns(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ts(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ns(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ns(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ph(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ts(ts({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-close-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var mo=re.forwardRef(Ph);mo.defaultProps={isIcon:!0},mo.displayName="IconCloseCircle";function rs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?rs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _h(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=is(is({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-download")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"}))}var yo=re.forwardRef(_h);yo.defaultProps={isIcon:!0},yo.displayName="IconDownload";function os(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function as(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?os(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):os(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Th(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=as(as({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-eye")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",clipRule:"evenodd"}),re.createElement("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}))}var Ao=re.forwardRef(Th);Ao.defaultProps={isIcon:!0},Ao.displayName="IconEye";function ls(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ss(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ls(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ls(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Lh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ss(ss({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-launch")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"}))}var go=re.forwardRef(Lh);go.defaultProps={isIcon:!0},go.displayName="IconLaunch";function us(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function cs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?us(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):us(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function jh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=cs(cs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-upload")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"}))}var bo=re.forwardRef(jh);bo.defaultProps={isIcon:!0},bo.displayName="IconUpload";function ps(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ds(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ps(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ps(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Dh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ds(ds({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var vo=re.forwardRef(Dh);vo.defaultProps={isIcon:!0},vo.displayName="IconCopy";function fs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function hs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?fs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Mh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=hs(hs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var xo=re.forwardRef(Mh);xo.defaultProps={isIcon:!0},xo.displayName="IconEdit";function ms(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ys(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ms(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function zh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ys(ys({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-loading")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"}))}var wo=re.forwardRef(zh);wo.defaultProps={isIcon:!0},wo.displayName="IconLoading";const $r=e=>{const[n,t]=re.useState(e.icon),[r,i]=re.useState(e.tip),[a,o]=re.useState(!1);re.useEffect(()=>{t(e.icon)},[e.icon]);const l=(c,h)=>{e.noSuccess||(i(c),t(h),setTimeout(()=>{t(e.icon),i(e.tip)},1e3))},s=()=>{e.onClick&&!a&&(l("执行中",q.jsx(wo,{})),o(!0),e.onClick().then(()=>l("成功",q.jsx(ho,{style:{color:"green"}}))).catch(c=>l(`${c}`,q.jsx(mo,{style:{color:"red"}}))).finally(()=>o(!1)))};return q.jsx(te.Tooltip,{content:r,children:q.jsx("div",{className:"zyjj-small-icon",onClick:s,children:n})})},Fh=e=>q.jsx($r,{icon:q.jsx(vo,{}),tip:"拷贝",onClick:()=>navigator.clipboard.writeText(e.value||"")}),As=e=>q.jsx($r,{icon:q.jsx(go,{}),tip:"新窗口打开",onClick:async()=>{window.open(e.value)}}),gs=e=>q.jsx($r,{icon:q.jsx(yo,{}),tip:"下载",onClick:async()=>ll(e.value||"")}),bs=e=>{const{link:n}=e;return n?q.jsxs(te.Space,{size:"mini",style:{marginLeft:5,width:"100%",justifyContent:"center"},align:"center",direction:"horizontal",children:[q.jsx(gs,{value:n}),q.jsx(As,{value:n})]}):q.jsx(q.Fragment,{})},vs=e=>q.jsx(te.Image,{style:{borderRadius:5},referrerPolicy:"no-referrer",width:"100%",src:e.src,previewProps:{actions:[{getContainer:()=>q.jsx(gs,{value:e.src}),content:q.jsx(q.Fragment,{}),key:"download"},{getContainer:()=>q.jsx(As,{value:e.src}),content:q.jsx(q.Fragment,{}),key:"launch"}],actionsLayout:["download","launch"]}});function Rh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Wr=function(e){if(e==null)return Hh;if(typeof e=="function")return Yr(e);if(typeof e=="object")return Array.isArray(e)?Nh(e):qh(e);if(typeof e=="string")return Uh(e);throw new Error("Expected function, string, or object as test")};function Nh(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Wr(e[t]);return Yr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function qh(e){const n=e;return Yr(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function Uh(e){return Yr(n);function n(t){return t&&t.type===e}}function Yr(e){return n;function n(t,r,i){return!!($h(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Hh(){return!0}function $h(e){return e!==null&&typeof e=="object"&&"type"in e}function Ox(e){return e}const xs=[],Wh=!0,ko=!1,Yh="skip";function ws(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Wr(i),o=r?-1:1;l(e,void 0,[])();function l(s,c,h){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const A=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(A?"<"+A+">":""))+")"})}return f;function f(){let A=xs,b,v,S;if((!n||a(s,c,h[h.length-1]||void 0))&&(A=Vh(t(s,h)),A[0]===ko))return A;if("children"in s&&s.children){const O=s;if(O.children&&A[0]!==Yh)for(v=(r?O.children.length:-1)+o,S=h.concat(O);v>-1&&v<O.children.length;){const B=O.children[v];if(b=l(B,v,S)(),b[0]===ko)return b;v=typeof b[1]=="number"?b[1]:v+o}}return A}}}function Vh(e){return Array.isArray(e)?e:typeof e=="number"?[Wh,e]:e==null?xs:[e]}function ks(e,n,t){const i=Wr((t||{}).ignore||[]),a=Kh(n);let o=-1;for(;++o<a.length;)ws(e,"text",l);function l(c,h){let u=-1,f;for(;++u<h.length;){const A=h[u],b=f?f.children:void 0;if(i(A,b?b.indexOf(A):void 0,f))return;f=A}if(f)return s(c,h)}function s(c,h){const u=h[h.length-1],f=a[o][0],A=a[o][1];let b=0;const S=u.children.indexOf(c);let O=!1,B=[];f.lastIndex=0;let T=f.exec(c.value);for(;T;){const j=T.index,M={index:T.index,input:T.input,stack:[...h,c]};let k=A(...T,M);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=j+1:(b!==j&&B.push({type:"text",value:c.value.slice(b,j)}),Array.isArray(k)?B.push(...k):k&&B.push(k),b=j+T[0].length,O=!0),!f.global)break;T=f.exec(c.value)}return O?(b<c.value.length&&B.push({type:"text",value:c.value.slice(b)}),u.children.splice(S,1,...B)):B=[c],S+B.length}}function Kh(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Qh(i[0]),Jh(i[1])])}return n}function Qh(e){return typeof e=="string"?new RegExp(Rh(e),"g"):e}function Jh(e){return typeof e=="function"?e:function(){return e}}function Zh(e){ks(e,[/\r?\n|\r/g,Xh])}function Xh(){return{type:"break"}}function Gh(){return function(e){Zh(e)}}function Es(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Px(){}function _x(){}const an=Wn(/[A-Za-z]/),tn=Wn(/[\dA-Za-z]/),em=Wn(/[#-'*+\--9=?A-Z^-~]/);function Vr(e){return e!==null&&(e<32||e===127)}const Eo=Wn(/\d/),nm=Wn(/[\dA-Fa-f]/),tm=Wn(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const Kr=Wn(new RegExp("\\p{P}|\\p{S}","u")),it=Wn(/\s/);function Wn(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}const Co="phrasing",So=["autolink","link","image","label"];function rm(){return{transforms:[cm],enter:{literalAutolink:om,literalAutolinkEmail:Bo,literalAutolinkHttp:Bo,literalAutolinkWww:Bo},exit:{literalAutolink:um,literalAutolinkEmail:sm,literalAutolinkHttp:am,literalAutolinkWww:lm}}}function im(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:":",before:"[ps]",after:"\\/",inConstruct:Co,notInConstruct:So}]}}function om(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bo(e){this.config.enter.autolinkProtocol.call(this,e)}function am(e){this.config.exit.autolinkProtocol.call(this,e)}function lm(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function sm(e){this.config.exit.autolinkEmail.call(this,e)}function um(e){this.exit(e)}function cm(e){ks(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,pm],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,dm]],{ignore:["link","linkReference"]})}function pm(e,n,t,r,i){let a="";if(!Cs(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!fm(t)))return!1;const o=hm(t+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function dm(e,n,t,r){return!Cs(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function fm(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function hm(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Es(e,"(");let a=Es(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function Cs(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||it(t)||Kr(t))&&(!n||t!==47)}function wn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ss.peek=Cm;function mm(){return{enter:{gfmFootnoteDefinition:Am,gfmFootnoteDefinitionLabelString:gm,gfmFootnoteCall:xm,gfmFootnoteCallString:wm},exit:{gfmFootnoteDefinition:vm,gfmFootnoteDefinitionLabelString:bm,gfmFootnoteCall:Em,gfmFootnoteCallString:km}}}function ym(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Sm,footnoteReference:Ss}}}function Am(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gm(){this.buffer()}function bm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function vm(e){this.exit(e)}function xm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wm(){this.buffer()}function km(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function Em(e){this.exit(e)}function Ss(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),o(),a+=i.move("]"),a}function Cm(){return"["}function Sm(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteDefinition"),l=t.enter("label");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(t.indentLines(t.containerFlow(e,i.current()),Bm)),o(),a}function Bm(e,n,t){return n===0?e:(t?"":" ")+e}const Im=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bs.peek=Lm;function Om(){return{canContainEols:["delete"],enter:{strikethrough:_m},exit:{strikethrough:Tm}}}function Pm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Im}],handlers:{delete:Bs}}}function _m(e){this.enter({type:"delete",children:[]},e)}function Tm(e){this.exit(e)}function Bs(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Lm(){return"~"}function jm(e,n={}){const t=(n.align||[]).concat(),r=n.stringLength||Mm,i=[],a=[],o=[],l=[];let s=0,c=-1;for(;++c<e.length;){const b=[],v=[];let S=-1;for(e[c].length>s&&(s=e[c].length);++S<e[c].length;){const O=Dm(e[c][S]);if(n.alignDelimiters!==!1){const B=r(O);v[S]=B,(l[S]===void 0||B>l[S])&&(l[S]=B)}b.push(O)}a[c]=b,o[c]=v}let h=-1;if(typeof t=="object"&&"length"in t)for(;++h<s;)i[h]=Is(t[h]);else{const b=Is(t);for(;++h<s;)i[h]=b}h=-1;const u=[],f=[];for(;++h<s;){const b=i[h];let v="",S="";b===99?(v=":",S=":"):b===108?v=":":b===114&&(S=":");let O=n.alignDelimiters===!1?1:Math.max(1,l[h]-v.length-S.length);const B=v+"-".repeat(O)+S;n.alignDelimiters!==!1&&(O=v.length+O+S.length,O>l[h]&&(l[h]=O),f[h]=O),u[h]=B}a.splice(1,0,u),o.splice(1,0,f),c=-1;const A=[];for(;++c<a.length;){const b=a[c],v=o[c];h=-1;const S=[];for(;++h<s;){const O=b[h]||"";let B="",T="";if(n.alignDelimiters!==!1){const j=l[h]-(v[h]||0),M=i[h];M===114?B=" ".repeat(j):M===99?j%2?(B=" ".repeat(j/2+.5),T=" ".repeat(j/2-.5)):(B=" ".repeat(j/2),T=B):T=" ".repeat(j)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(B),S.push(O),n.alignDelimiters!==!1&&S.push(T),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==s-1)&&S.push("|")}A.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return A.join(`
36
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:t,firstInputs:a,secondInputs:o,stack:c})}},Jd={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Zd(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function Xd(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function Gd(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(t=>typeof t=="function")){const t=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${n}[${t}]`)}}var Ol=e=>Array.isArray(e)?e:[e];function ef(e){const n=Array.isArray(e[0])?e[0]:e;return Gd(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function Pl(e,n){const t=[],{length:r}=e;for(let i=0;i<r;i++)t.push(e[i].apply(null,n));return t}var nf=(e,n)=>{const{identityFunctionCheck:t,inputStabilityCheck:r}={...Jd,...n};return{identityFunctionCheck:{shouldRun:t==="always"||t==="once"&&e,run:Kd},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Qd}}},tf=class{constructor(e){this.value=e}deref(){return this.value}},rf=typeof WeakRef<"u"?WeakRef:tf,of=0,_l=1;function Nr(){return{s:of,v:void 0,o:null,p:null}}function Gi(e,n={}){let t=Nr();const{resultEqualityCheck:r}=n;let i,a=0;function o(){var u;let l=t;const{length:s}=arguments;for(let f=0,A=s;f<A;f++){const b=arguments[f];if(typeof b=="function"||typeof b=="object"&&b!==null){let v=l.o;v===null&&(l.o=v=new WeakMap);const S=v.get(b);S===void 0?(l=Nr(),v.set(b,l)):l=S}else{let v=l.p;v===null&&(l.p=v=new Map);const S=v.get(b);S===void 0?(l=Nr(),v.set(b,l)):l=S}}const c=l;let h;if(l.s===_l?h=l.v:(h=e.apply(null,arguments),a++),c.s=_l,r){const f=((u=i==null?void 0:i.deref)==null?void 0:u.call(i))??i;f!=null&&r(f,h)&&(h=f,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new rf(h):h}return c.v=h,h}return o.clearCache=()=>{t=Nr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Tl(e,...n){const t=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,r=(...i)=>{let a=0,o=0,l,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),Zd(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const h={...t,...s},{memoize:u,memoizeOptions:f=[],argsMemoize:A=Gi,argsMemoizeOptions:b=[],devModeChecks:v={}}=h,S=Ol(f),O=Ol(b),B=ef(i),T=u(function(){return a++,c.apply(null,arguments)},...S);let j=!0;const M=A(function(){o++;const F=Pl(B,arguments);if(l=T.apply(null,F),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:W,inputStabilityCheck:ne}=nf(j,v);if(W.shouldRun&&W.run(c,F,l),ne.shouldRun){const L=Pl(B,arguments);ne.run({inputSelectorResults:F,inputSelectorResultsCopy:L},{memoize:u,memoizeOptions:S},arguments)}j&&(j=!1)}return l},...O);return Object.assign(M,{resultFunc:c,memoizedResultFunc:T,dependencies:B,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:u,argsMemoize:A})};return Object.assign(r,{withTypes:()=>r}),r}var af=Tl(Gi),lf=Object.assign((e,n=af)=>{Xd(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const t=Object.keys(e),r=t.map(a=>e[a]);return n(r,(...a)=>a.reduce((o,l,s)=>(o[t[s]]=l,o),{}))},{withTypes:()=>lf}),sf=(...e)=>{const n=Tl(...e),t=Object.assign((...r)=>{const i=n(...r),a=(o,...l)=>i($n(o)?Sl(o):o,...l);return Object.assign(a,i),a},{withTypes:()=>t});return t};sf(Gi);var uf=e=>e&&typeof e.match=="function";function Ln(e,n){function t(...r){if(n){let i=n(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?We(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return t.toString=()=>`${e}`,t.type=e,t.match=r=>zd(r)&&r.type===e,t}function Ll(e){return Tn(e)?Il(e,()=>{}):e}function jl(e,n,t){if(e.has(n)){let i=e.get(n);return t.update&&(i=t.update(i,n,e),e.set(n,i)),i}if(!t.insert)throw new Error(process.env.NODE_ENV==="production"?We(10):"No insert provided for key not already in map");const r=t.insert(n,e);return e.set(n,r),r}process.env.NODE_ENV;function Dl(e){const n={},t=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error(process.env.NODE_ENV==="production"?We(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?We(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?We(28):"`builder.addCase` cannot be called with an empty action type");if(l in n)throw new Error(process.env.NODE_ENV==="production"?We(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return n[l]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[n,t,r]}function cf(e){return typeof e=="function"}function pf(e,n){if(process.env.NODE_ENV!=="production"&&typeof n=="object")throw new Error(process.env.NODE_ENV==="production"?We(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[t,r,i]=Dl(n),a;if(cf(e))a=()=>Ll(e());else{const l=Ll(e);a=()=>l}function o(l=a(),s){let c=[t[s.type],...r.filter(({matcher:h})=>h(s)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,u)=>{if(u)if($n(h)){const A=u(h,s);return A===void 0?h:A}else{if(Tn(h))return Il(h,f=>u(f,s));{const f=u(h,s);if(f===void 0){if(h===null)return h;throw new Error(process.env.NODE_ENV==="production"?We(9):"A case reducer on a non-draftable value must not return undefined")}return f}}return h},l)}return o.getInitialState=a,o}var df="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=(e=21)=>{let n="",t=e;for(;t--;)n+=df[Math.random()*64|0];return n},ff=(e,n)=>uf(e)?e.match(n):e(n);function hf(...e){return n=>e.some(t=>ff(t,n))}var mf=["name","message","stack","code"],eo=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},zl=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},yf=e=>{if(typeof e=="object"&&e!==null){const n={};for(const t of mf)typeof e[t]=="string"&&(n[t]=e[t]);return n}return{message:String(e)}},Fl=(()=>{function e(n,t,r){const i=Ln(n+"/fulfilled",(s,c,h,u)=>({payload:s,meta:{...u||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=Ln(n+"/pending",(s,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:s,requestStatus:"pending"}})),o=Ln(n+"/rejected",(s,c,h,u,f)=>({payload:u,error:(r&&r.serializeError||yf)(s||"Rejected"),meta:{...f||{},arg:h,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:(s==null?void 0:s.name)==="AbortError",condition:(s==null?void 0:s.name)==="ConditionError"}}));function l(s){return(c,h,u)=>{const f=r!=null&&r.idGenerator?r.idGenerator(s):Ml(),A=new AbortController;let b,v;function S(B){v=B,A.abort()}const O=async function(){var j,M;let B;try{let k=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,s,{getState:h,extra:u});if(gf(k)&&(k=await k),k===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const F=new Promise((W,ne)=>{b=()=>{ne({name:"AbortError",message:v||"Aborted"})},A.signal.addEventListener("abort",b)});c(a(f,s,(M=r==null?void 0:r.getPendingMeta)==null?void 0:M.call(r,{requestId:f,arg:s},{getState:h,extra:u}))),B=await Promise.race([F,Promise.resolve(t(s,{dispatch:c,getState:h,extra:u,requestId:f,signal:A.signal,abort:S,rejectWithValue:(W,ne)=>new eo(W,ne),fulfillWithValue:(W,ne)=>new zl(W,ne)})).then(W=>{if(W instanceof eo)throw W;return W instanceof zl?i(W.payload,f,s,W.meta):i(W,f,s)})])}catch(k){B=k instanceof eo?o(null,f,s,k.payload,k.meta):o(k,f,s)}finally{b&&A.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&o.match(B)&&B.meta.condition||c(B),B}();return Object.assign(O,{abort:S,requestId:f,arg:s,unwrap(){return O.then(Af)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:hf(o,i),typePrefix:n})}return e.withTypes=()=>e,e})();function Af(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bf=Symbol.for("rtk-slice-createasyncthunk");function vf(e,n){return`${e}/${n}`}function xf({creators:e}={}){var t;const n=(t=e==null?void 0:e.asyncThunk)==null?void 0:t[bf];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?We(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(kf()):i.reducers)||{},s=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(T,j){const M=typeof T=="string"?T:T.type;if(!M)throw new Error(process.env.NODE_ENV==="production"?We(12):"`context.addCase` cannot be called with an empty action type");if(M in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?We(13):"`context.addCase` cannot be called with two reducers for the same action type: "+M);return c.sliceCaseReducersByType[M]=j,h},addMatcher(T,j){return c.sliceMatchers.push({matcher:T,reducer:j}),h},exposeAction(T,j){return c.actionCreators[T]=j,h},exposeCaseReducer(T,j){return c.sliceCaseReducersByName[T]=j,h}};s.forEach(T=>{const j=l[T],M={reducerName:T,type:vf(a,T),createNotation:typeof i.reducers=="function"};Cf(j)?Bf(M,j,h,n):Ef(M,j,h)});function u(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?We(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[T={},j=[],M=void 0]=typeof i.extraReducers=="function"?Dl(i.extraReducers):[i.extraReducers],k={...T,...c.sliceCaseReducersByType};return pf(i.initialState,F=>{for(let W in k)F.addCase(W,k[W]);for(let W of c.sliceMatchers)F.addMatcher(W.matcher,W.reducer);for(let W of j)F.addMatcher(W.matcher,W.reducer);M&&F.addDefaultCase(M)})}const f=T=>T,A=new Map;let b;function v(T,j){return b||(b=u()),b(T,j)}function S(){return b||(b=u()),b.getInitialState()}function O(T,j=!1){function M(F){let W=F[T];if(typeof W>"u"){if(j)W=S();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(15):"selectSlice returned undefined for an uninjected slice reducer")}return W}function k(F=f){const W=jl(A,j,{insert:()=>new WeakMap});return jl(W,F,{insert:()=>{const ne={};for(const[L,Q]of Object.entries(i.selectors??{}))ne[L]=wf(Q,F,S,j);return ne}})}return{reducerPath:T,getSelectors:k,get selectors(){return k(M)},selectSlice:M}}const B={name:a,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...O(o),injectInto(T,{reducerPath:j,...M}={}){const k=j??o;return T.inject({reducerPath:k,reducer:v},M),{...B,...O(k,!0)}}};return B}}function wf(e,n,t,r){function i(a,...o){let l=n(a);if(typeof l>"u"){if(r)l=t();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...o)}return i.unwrapped=e,i}var Rl=xf();function kf(){function e(n,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...t}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...t){return n(...t)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:t}},asyncThunk:e}}function Ef({type:e,reducerName:n,createNotation:t},r,i){let a,o;if("reducer"in r){if(t&&!Sf(r))throw new Error(process.env.NODE_ENV==="production"?We(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(n,a).exposeAction(n,o?Ln(e,o):Ln(e))}function Cf(e){return e._reducerDefinitionType==="asyncThunk"}function Sf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bf({type:e,reducerName:n},t,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?We(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:h}=t,u=i(e,a,h);r.exposeAction(n,u),o&&r.addCase(u.fulfilled,o),l&&r.addCase(u.pending,l),s&&r.addCase(u.rejected,s),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(n,{fulfilled:o||qr,pending:l||qr,rejected:s||qr,settled:c||qr})}function qr(){}var If=(e,n)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?We(32):`${n} is not a function`)},no="listenerMiddleware",Of=e=>{let{type:n,actionCreator:t,matcher:r,predicate:i,effect:a}=e;if(n)i=Ln(n).match;else if(t)n=t.type,i=t.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?We(21):"Creating or removing a listener requires one of the known fields for matching an action");return If(a,"options.listener"),{predicate:i,type:n,effect:a}},Pf=Object.assign(e=>{const{type:n,predicate:t,effect:r}=Of(e);return{id:Ml(),effect:r,type:n,predicate:t,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?We(22):"Unsubscribe not initialized")}}},{withTypes:()=>Pf}),_f=Object.assign(Ln(`${no}/add`),{withTypes:()=>_f});Ln(`${no}/removeAll`);var Tf=Object.assign(Ln(`${no}/remove`),{withTypes:()=>Tf});function We(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Lf={showLogin:!1},to=Fl("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cl()}),Nl=Rl({name:"user",initialState:Lf,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(to.fulfilled,(n,t)=>{t.payload!=null?(n.isLogin=!0,n.userInfo=t.payload):n.isLogin=!1}),e.addCase(to.rejected,n=>{n.isLogin=!1,n.userInfo=void 0})}}),jf=Nl.actions,Df=Nl.reducer,ro=(e,n)=>n.some(t=>e instanceof t);let ql,Ul;function Mf(){return ql||(ql=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function zf(){return Ul||(Ul=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const io=new WeakMap,oo=new WeakMap,Ur=new WeakMap;function Ff(e){const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{t(rt(e.result)),i()},o=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",o)});return Ur.set(n,e),n}function Rf(e){if(io.has(e))return;const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});io.set(e,n)}let ao={get(e,n,t){if(e instanceof IDBTransaction){if(n==="done")return io.get(e);if(n==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return rt(e[n])},set(e,n,t){return e[n]=t,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function Hl(e){ao=e(ao)}function Nf(e){return zf().includes(e)?function(...n){return e.apply(lo(this),n),rt(this.request)}:function(...n){return rt(e.apply(lo(this),n))}}function qf(e){return typeof e=="function"?Nf(e):(e instanceof IDBTransaction&&Rf(e),ro(e,Mf())?new Proxy(e,ao):e)}function rt(e){if(e instanceof IDBRequest)return Ff(e);if(oo.has(e))return oo.get(e);const n=qf(e);return n!==e&&(oo.set(e,n),Ur.set(n,e)),n}const lo=e=>Ur.get(e);function Uf(e,n,{blocked:t,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,n),l=rt(o);return r&&o.addEventListener("upgradeneeded",s=>{r(rt(o.result),s.oldVersion,s.newVersion,rt(o.transaction),s)}),t&&o.addEventListener("blocked",s=>t(s.oldVersion,s.newVersion,s)),l.then(s=>{a&&s.addEventListener("close",()=>a()),i&&s.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}const Hf=["get","getKey","getAll","getAllKeys","count"],$f=["put","add","delete","clear"],so=new Map;function $l(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(so.get(n))return so.get(n);const t=n.replace(/FromIndex$/,""),r=n!==t,i=$f.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Hf.includes(t)))return;const a=async function(o,...l){const s=this.transaction(o,i?"readwrite":"readonly");let c=s.store;return r&&(c=c.index(l.shift())),(await Promise.all([c[t](...l),i&&s.done]))[0]};return so.set(n,a),a}Hl(e=>({...e,get:(n,t,r)=>$l(n,t)||e.get(n,t,r),has:(n,t)=>!!$l(n,t)||e.has(n,t)}));const Wf=["continue","continuePrimaryKey","advance"],Wl={},uo=new WeakMap,Yl=new WeakMap,Yf={get(e,n){if(!Wf.includes(n))return e[n];let t=Wl[n];return t||(t=Wl[n]=function(...r){uo.set(this,Yl.get(this)[n](...r))}),t}};async function*Vf(...e){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...e)),!n)return;n=n;const t=new Proxy(n,Yf);for(Yl.set(t,n),Ur.set(t,lo(n));n;)yield t,n=await(uo.get(t)||n.continue()),uo.delete(t)}function Vl(e,n){return n===Symbol.asyncIterator&&ro(e,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&ro(e,[IDBIndex,IDBObjectStore])}Hl(e=>({...e,get(n,t,r){return Vl(n,t)?Vf:e.get(n,t,r)},has(n,t){return Vl(n,t)||e.has(n,t)}}));const bt="task",Ht=()=>Uf("zyjj",2,{upgrade(e){e.createObjectStore(bt)}}),Kf=async(e,n=bt)=>(await Ht()).put(n,e,e.id),Qf=async(e=bt)=>(await Ht()).getAll(e),Jf=async(e,n=bt)=>(await Ht()).get(n,e),Zf=async(e,n,t=bt)=>(await Ht()).put(t,n,e),Xf=async(e,n=bt)=>(await Ht()).delete(n,e),Gf={taskCallback:{},listenerCallback:[]},Kl=Fl("mqtt/initMqtt",async(e,{dispatch:n})=>{const t=await dl();console.log("[mqtt] mqtt info",t);const r=t.topic,i=mt.connect(`mqtt://${t.host}`,{keepalive:60,clientId:t.client_id,username:t.username,password:t.password,protocol:"wss",reconnectPeriod:3e3});return i.on("connect",a=>{console.log("[mqtt] connect success",a),i.subscribe(r,{qos:1})}),i.on("message",(a,o,l)=>{console.log("[mqtt] on message",a,o.toString(),l),a===r&&n(Jl.onMqttResponse(JSON.parse(o.toString())))}),i.on("error",a=>console.log("[mqtt] err",a)),i.on("close",()=>console.log("[mqtt] close")),i.on("disconnect",()=>console.log("[mqtt] disconnect")),i}),Ql=Rl({name:"mqtt",initialState:Gf,reducers:{onMqttResponse(e,n){const t=n.payload;t.task_id in e.taskCallback&&e.taskCallback[t.task_id](t)&&(delete e.taskCallback[t.task_id],console.log("[mqtt] delete callback",t.task_id)),e.listenerCallback.forEach(r=>r(t))},closeClient(e){var n;console.log("[mqtt] close client"),(n=e.client)==null||n.end()},addMqttCallback(e,n){e.taskCallback[n.payload.task_id]=n.payload.callback},addMqttEventCallback(e,n){const t=n.payload;e.taskCallback[t.task_id]=r=>{var i,a,o;return(i=t.on_detail)==null||i.call(t,r),r.event_type==et.Success?(a=t.on_finish)==null||a.call(t,r.data):r.event_type==et.Error&&((o=t.on_error)==null||o.call(t,r.data)),[et.Success,et.Error].includes(r.event_type)}},addMqttListener(e,n){e.listenerCallback.push(n.payload)}},extraReducers:e=>{e.addCase(Kl.fulfilled,(n,t)=>{n.client=t.payload})}}),Jl=Ql.actions,eh=Ql.reducer;var co;(function(e){e[e.MqttListener=0]="MqttListener",e[e.CloudFileUpload=1]="CloudFileUpload",e[e.CloudFileDownload=2]="CloudFileDownload",e[e.GetInitData=3]="GetInitData",e[e.NavigateTo=4]="NavigateTo",e[e.CloseWindow=5]="CloseWindow",e[e.TaskAction=6]="TaskAction",e[e.SendRequest=7]="SendRequest",e[e.FFMPEG=8]="FFMPEG",e[e.FileDownload=9]="FileDownload"})(co||(co={}));var po;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(po||(po={}));var fo;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(fo||(fo={}));const Hr=60;function Zl(e){const[n,t]=re.useState(Hr),r=re.useRef();re.useEffect(()=>{n==0&&(clearInterval(r.current),t(Hr))},[n]);const i=()=>{e.callback().then(()=>{te.Message.success("获取验证码成功,请注意查收邮箱"),t(a=>a-1),r.current=setInterval(()=>{t(a=>a-1)},1e3)})};return q.jsxs(te.Space,{children:[q.jsx(te.Input,{onChange:e.onChange,placeholder:"输入验证码"}),q.jsx(te.Button,{disabled:n!=Hr,type:"primary",onClick:i,children:n!=Hr?`剩余${n}秒`:"获取验证码"})]})}const nh=e=>{const[n,t]=re.useState(""),[r,i]=re.useState(!0),a=l=>{r?dd(l).then(s=>{te.Message.success("登录成功"),localStorage.setItem("token",s),e.loginSuccess(s)}):hd(l).then(()=>{te.Message.success("注册成功,请登录"),i(!0)})},o=()=>ul(n);return q.jsxs(te.Form,{autoComplete:"off",onSubmit:a,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:q.jsx(te.Input.Password,{placeholder:"输入密码"})}),r?null:q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:o})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:r?"立即登录":"注册账号"}),q.jsx(te.Button,{type:"text",onClick:()=>i(l=>!l),children:r?"新用户?":"已有账号?"}),r?q.jsx(te.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function th(e){const[n,t]=re.useState(""),r=a=>{if(a.password_repeat!=a.password){te.Message.error("新旧密码不一致");return}const{email:o,password:l,token:s}=a;md({email:o,password:l,token:s}).then(()=>{te.Message.success("密码重置成功,请登录"),e.onLogin()})},i=()=>ul(n);return q.jsx("div",{children:q.jsxs(te.Form,{style:{width:370},autoComplete:"off",onSubmit:r,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:i})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:q.jsx(te.Input,{type:"password",placeholder:"输入新密码"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:q.jsx(te.Input,{type:"password",placeholder:"再输入一遍新密码"})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),q.jsx(te.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function rh(e){const[n,t]=re.useState(!1);return q.jsx(te.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:n?q.jsx(th,{onLogin:()=>t(!1)}):q.jsx(nh,{loginSuccess:e.loginSuccess,onForget:()=>t(!0)})})}function ih(e){const[n,t]=re.useState([]),[r,i]=re.useState(!1),[a,o]=re.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[l]=te.Form.useForm(),s=()=>{i(!0),e.data(a.current,a.pageSize,l.getFieldsValue()).then(c=>{t(c.list),o(h=>(h.total=c.total,h)),i(!1)})};return re.useEffect(()=>{s()},[a.current,a.pageSize]),re.useEffect(()=>{s(),e.refresh&&e.refresh(()=>s())},[]),q.jsxs(q.Fragment,{children:[e.search?q.jsxs(te.Form,{form:l,layout:"inline",onSubmit:s,children:[e.search.map(c=>{let h=q.jsx(q.Fragment,{});const u=c.data;return c.tp=="input"?h=q.jsx(te.Input,{allowClear:!0,placeholder:u.placeholder}):c.tp=="custom"&&(h=c.ele),q.jsx(te.Form.Item,{label:c.label,field:c.field,children:h},c.field)}),q.jsx(te.Form.Item,{children:q.jsx(te.Button,{htmlType:"submit",children:"搜索"})})]}):null,q.jsx(te.Table,{loading:r,pagination:a,onChange:c=>o({...a,current:(c==null?void 0:c.current)||a.current,pageSize:(c==null?void 0:c.pageSize)||a.pageSize}),rowKey:e.id||"id",columns:e.columns,data:n})]})}const oh=re.lazy(()=>Promise.resolve().then(()=>wh)),ah=re.lazy(()=>Promise.resolve().then(()=>Eh)),lh=re.lazy(()=>Promise.resolve().then(()=>Sh)),Xl=re.lazy(()=>Promise.resolve().then(()=>_A)),sh=re.lazy(()=>Promise.resolve().then(()=>LA)),uh=re.lazy(()=>Promise.resolve().then(()=>DA)),ch=re.lazy(()=>Promise.resolve().then(()=>Au)),ph=re.lazy(()=>Promise.resolve().then(()=>FA)),dh=re.lazy(()=>Promise.resolve().then(()=>NA)),fh=re.lazy(()=>Promise.resolve().then(()=>UA)),hh=re.lazy(()=>Promise.resolve().then(()=>$A)),mh=re.lazy(()=>Promise.resolve().then(()=>Au));function yh(e){const{tp:n,isInput:t,data:r,value:i,onChange:a}=e;switch(n){case on.Input:return q.jsx(oh,{value:i,onChange:a,data:r});case on.Select:return q.jsx(ah,{value:i,onChange:a,data:r});case on.TextArea:return t?q.jsx(lh,{value:i,onChange:a,data:r}):q.jsx(Xl,{value:i,onChange:a,data:r});case on.FileUpload:return q.jsx(uh,{value:i,onChange:a,data:r});case on.Slider:return q.jsx(mh,{value:i,onChange:a,data:r});case on.Audio:return q.jsx(sh,{value:i,onChange:a,data:r});case on.Number:return q.jsx(ch,{value:i,onChange:a,data:r});case on.ImageList:return q.jsx(ph,{value:i,onChange:a,data:r});case on.Image:return q.jsx(dh,{value:i,onChange:a,data:r});case on.Alert:return q.jsx(fh,{value:i,onChange:a,data:r});case on.Video:return q.jsx(hh,{value:i,onChange:a,data:r});case on.MarkDown:return q.jsx(Xl,{value:i,onChange:a,data:r});default:return q.jsx("div",{children:"组件不支持,请升级到最新版本!"})}}const Ah={GetAllTool:bd,ToolInc:xd,UpdateUserInfo:yd,GetAppInfo:fd,CostPoint:Ad,GetUserInfo:cl,UserDownloadMaterial:Sd,GetMqttTaskClientInfo:dl,AddTask:kd,GetTaskInfo:Ed,GetTencentCosInfo:pl,GetMaterialUrl:Bd,GetMaterialTagList:Cd,GetToolList:gd,GetToolTagList:wd,GetToolDetail:vd},gh={ToolType:zi,LocalActionReqType:Ti,LocalActionResType:Li,MQTTEventType:et,FileSource:_i,LocalTaskStatus:ji,LocalTaskEventType:Di,ToolTaskType:Ni,FfmpegActionType:qi,CloudTaskStatus:Fi,TaskType:Mi,LabElementType:on,ToolConfigType:Ri,ToolEventType:co,WorkActionType:fo,TaskActionType:po},bh={render:{renderTime:Ld,renderEllipsis:Dd,renderCopy:jd},utils:{file2ToolParamFile:ol,seconds2TimeStr:ld,getTencentInfo:sd,object2query:al,paramReplace:cd,object2urlParam:pd,convertFileSize:ad,downloadFile:ll,downloadFileDirect:sl},db:{addTask:Kf,getAllData:Qf,getData:Jf,updateData:Zf,deleteData:Xf}},vh={UserReducer:Df,UserAction:jf,GetUserInfo:to,MqttReducer:eh,MqttAction:Jl,InitMqtt:Kl};function xh(e){var n;return q.jsx(te.Input,{value:e.value,onChange:e.onChange,placeholder:(n=e.data)==null?void 0:n.placeholder})}const wh=Object.freeze(Object.defineProperty({__proto__:null,default:xh},Symbol.toStringTag,{value:"Module"}));function kh(e){var n;return q.jsx(te.Select,{value:e.value,onChange:e.onChange,children:(n=e.data)==null?void 0:n.data.map((t,r)=>q.jsx(te.Select.Option,{value:t.value,children:t.label},r))})}const Eh=Object.freeze(Object.defineProperty({__proto__:null,default:kh},Symbol.toStringTag,{value:"Module"}));function Ch(e){var n,t;return q.jsx(te.Input.TextArea,{value:e.value,onChange:e.onChange,rows:10,maxLength:(n=e.data)==null?void 0:n.max_len,showWordLimit:!0,placeholder:(t=e.data)==null?void 0:t.placeholder})}const Sh=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"}));function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xn.apply(this,arguments)}function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$t(e)}function Bh(e,n){if($t(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ih(e){var n=Bh(e,"string");return $t(n)=="symbol"?n:n+""}function jn(e,n,t){return n=Ih(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Dn=re.createContext({prefixCls:"arco"});function Gl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function es(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Gl(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gl(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Oh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=es(es({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-check-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var ho=re.forwardRef(Oh);ho.defaultProps={isIcon:!0},ho.displayName="IconCheckCircle";function ns(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ts(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ns(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ns(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ph(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ts(ts({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-close-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var mo=re.forwardRef(Ph);mo.defaultProps={isIcon:!0},mo.displayName="IconCloseCircle";function rs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?rs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _h(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=is(is({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-download")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"}))}var yo=re.forwardRef(_h);yo.defaultProps={isIcon:!0},yo.displayName="IconDownload";function os(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function as(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?os(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):os(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Th(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=as(as({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-eye")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",clipRule:"evenodd"}),re.createElement("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}))}var Ao=re.forwardRef(Th);Ao.defaultProps={isIcon:!0},Ao.displayName="IconEye";function ls(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ss(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ls(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ls(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Lh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ss(ss({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-launch")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"}))}var go=re.forwardRef(Lh);go.defaultProps={isIcon:!0},go.displayName="IconLaunch";function us(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function cs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?us(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):us(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function jh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=cs(cs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-upload")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"}))}var bo=re.forwardRef(jh);bo.defaultProps={isIcon:!0},bo.displayName="IconUpload";function ps(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ds(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ps(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ps(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Dh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ds(ds({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var vo=re.forwardRef(Dh);vo.defaultProps={isIcon:!0},vo.displayName="IconCopy";function fs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function hs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?fs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Mh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=hs(hs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var xo=re.forwardRef(Mh);xo.defaultProps={isIcon:!0},xo.displayName="IconEdit";function ms(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ys(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ms(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function zh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ys(ys({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-loading")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"}))}var wo=re.forwardRef(zh);wo.defaultProps={isIcon:!0},wo.displayName="IconLoading";const $r=e=>{const[n,t]=re.useState(e.icon),[r,i]=re.useState(e.tip),[a,o]=re.useState(!1);re.useEffect(()=>{t(e.icon)},[e.icon]);const l=(c,h)=>{e.noSuccess||(i(c),t(h),setTimeout(()=>{t(e.icon),i(e.tip)},1e3))},s=()=>{e.onClick&&!a&&(l("执行中",q.jsx(wo,{})),o(!0),e.onClick().then(()=>l("成功",q.jsx(ho,{style:{color:"green"}}))).catch(c=>l(`${c}`,q.jsx(mo,{style:{color:"red"}}))).finally(()=>o(!1)))};return q.jsx(te.Tooltip,{content:r,children:q.jsx("div",{className:"zyjj-small-icon",onClick:s,children:n})})},Fh=e=>q.jsx($r,{icon:q.jsx(vo,{}),tip:"拷贝",onClick:()=>navigator.clipboard.writeText(e.value||"")}),As=e=>q.jsx($r,{icon:q.jsx(go,{}),tip:"新窗口打开",onClick:async()=>{window.open(e.value)}}),gs=e=>q.jsx($r,{icon:q.jsx(yo,{}),tip:"下载",onClick:async()=>ll(e.value||"")}),bs=e=>{const{link:n}=e;return n?q.jsxs(te.Space,{size:"mini",style:{marginLeft:5,width:"100%",justifyContent:"center"},align:"center",direction:"horizontal",children:[q.jsx(gs,{value:n}),q.jsx(As,{value:n})]}):q.jsx(q.Fragment,{})},vs=e=>q.jsx(te.Image,{style:{borderRadius:5},referrerPolicy:"no-referrer",width:"100%",src:e.src,previewProps:{actions:[{getContainer:()=>q.jsx(gs,{value:e.src},"download"),content:q.jsx(q.Fragment,{}),key:"download"},{getContainer:()=>q.jsx(As,{value:e.src},"launch"),content:q.jsx(q.Fragment,{}),key:"launch"}],actionsLayout:["download","launch"]}});function Rh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Wr=function(e){if(e==null)return Hh;if(typeof e=="function")return Yr(e);if(typeof e=="object")return Array.isArray(e)?Nh(e):qh(e);if(typeof e=="string")return Uh(e);throw new Error("Expected function, string, or object as test")};function Nh(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Wr(e[t]);return Yr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function qh(e){const n=e;return Yr(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function Uh(e){return Yr(n);function n(t){return t&&t.type===e}}function Yr(e){return n;function n(t,r,i){return!!($h(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Hh(){return!0}function $h(e){return e!==null&&typeof e=="object"&&"type"in e}function Ox(e){return e}const xs=[],Wh=!0,ko=!1,Yh="skip";function ws(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Wr(i),o=r?-1:1;l(e,void 0,[])();function l(s,c,h){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const A=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(A?"<"+A+">":""))+")"})}return f;function f(){let A=xs,b,v,S;if((!n||a(s,c,h[h.length-1]||void 0))&&(A=Vh(t(s,h)),A[0]===ko))return A;if("children"in s&&s.children){const O=s;if(O.children&&A[0]!==Yh)for(v=(r?O.children.length:-1)+o,S=h.concat(O);v>-1&&v<O.children.length;){const B=O.children[v];if(b=l(B,v,S)(),b[0]===ko)return b;v=typeof b[1]=="number"?b[1]:v+o}}return A}}}function Vh(e){return Array.isArray(e)?e:typeof e=="number"?[Wh,e]:e==null?xs:[e]}function ks(e,n,t){const i=Wr((t||{}).ignore||[]),a=Kh(n);let o=-1;for(;++o<a.length;)ws(e,"text",l);function l(c,h){let u=-1,f;for(;++u<h.length;){const A=h[u],b=f?f.children:void 0;if(i(A,b?b.indexOf(A):void 0,f))return;f=A}if(f)return s(c,h)}function s(c,h){const u=h[h.length-1],f=a[o][0],A=a[o][1];let b=0;const S=u.children.indexOf(c);let O=!1,B=[];f.lastIndex=0;let T=f.exec(c.value);for(;T;){const j=T.index,M={index:T.index,input:T.input,stack:[...h,c]};let k=A(...T,M);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=j+1:(b!==j&&B.push({type:"text",value:c.value.slice(b,j)}),Array.isArray(k)?B.push(...k):k&&B.push(k),b=j+T[0].length,O=!0),!f.global)break;T=f.exec(c.value)}return O?(b<c.value.length&&B.push({type:"text",value:c.value.slice(b)}),u.children.splice(S,1,...B)):B=[c],S+B.length}}function Kh(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Qh(i[0]),Jh(i[1])])}return n}function Qh(e){return typeof e=="string"?new RegExp(Rh(e),"g"):e}function Jh(e){return typeof e=="function"?e:function(){return e}}function Zh(e){ks(e,[/\r?\n|\r/g,Xh])}function Xh(){return{type:"break"}}function Gh(){return function(e){Zh(e)}}function Es(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Px(){}function _x(){}const an=Wn(/[A-Za-z]/),tn=Wn(/[\dA-Za-z]/),em=Wn(/[#-'*+\--9=?A-Z^-~]/);function Vr(e){return e!==null&&(e<32||e===127)}const Eo=Wn(/\d/),nm=Wn(/[\dA-Fa-f]/),tm=Wn(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const Kr=Wn(new RegExp("\\p{P}|\\p{S}","u")),it=Wn(/\s/);function Wn(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}const Co="phrasing",So=["autolink","link","image","label"];function rm(){return{transforms:[cm],enter:{literalAutolink:om,literalAutolinkEmail:Bo,literalAutolinkHttp:Bo,literalAutolinkWww:Bo},exit:{literalAutolink:um,literalAutolinkEmail:sm,literalAutolinkHttp:am,literalAutolinkWww:lm}}}function im(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:":",before:"[ps]",after:"\\/",inConstruct:Co,notInConstruct:So}]}}function om(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bo(e){this.config.enter.autolinkProtocol.call(this,e)}function am(e){this.config.exit.autolinkProtocol.call(this,e)}function lm(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function sm(e){this.config.exit.autolinkEmail.call(this,e)}function um(e){this.exit(e)}function cm(e){ks(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,pm],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,dm]],{ignore:["link","linkReference"]})}function pm(e,n,t,r,i){let a="";if(!Cs(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!fm(t)))return!1;const o=hm(t+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function dm(e,n,t,r){return!Cs(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function fm(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function hm(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Es(e,"(");let a=Es(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function Cs(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||it(t)||Kr(t))&&(!n||t!==47)}function wn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ss.peek=Cm;function mm(){return{enter:{gfmFootnoteDefinition:Am,gfmFootnoteDefinitionLabelString:gm,gfmFootnoteCall:xm,gfmFootnoteCallString:wm},exit:{gfmFootnoteDefinition:vm,gfmFootnoteDefinitionLabelString:bm,gfmFootnoteCall:Em,gfmFootnoteCallString:km}}}function ym(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Sm,footnoteReference:Ss}}}function Am(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gm(){this.buffer()}function bm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function vm(e){this.exit(e)}function xm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wm(){this.buffer()}function km(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function Em(e){this.exit(e)}function Ss(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),o(),a+=i.move("]"),a}function Cm(){return"["}function Sm(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteDefinition"),l=t.enter("label");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(t.indentLines(t.containerFlow(e,i.current()),Bm)),o(),a}function Bm(e,n,t){return n===0?e:(t?"":" ")+e}const Im=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bs.peek=Lm;function Om(){return{canContainEols:["delete"],enter:{strikethrough:_m},exit:{strikethrough:Tm}}}function Pm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Im}],handlers:{delete:Bs}}}function _m(e){this.enter({type:"delete",children:[]},e)}function Tm(e){this.exit(e)}function Bs(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Lm(){return"~"}function jm(e,n={}){const t=(n.align||[]).concat(),r=n.stringLength||Mm,i=[],a=[],o=[],l=[];let s=0,c=-1;for(;++c<e.length;){const b=[],v=[];let S=-1;for(e[c].length>s&&(s=e[c].length);++S<e[c].length;){const O=Dm(e[c][S]);if(n.alignDelimiters!==!1){const B=r(O);v[S]=B,(l[S]===void 0||B>l[S])&&(l[S]=B)}b.push(O)}a[c]=b,o[c]=v}let h=-1;if(typeof t=="object"&&"length"in t)for(;++h<s;)i[h]=Is(t[h]);else{const b=Is(t);for(;++h<s;)i[h]=b}h=-1;const u=[],f=[];for(;++h<s;){const b=i[h];let v="",S="";b===99?(v=":",S=":"):b===108?v=":":b===114&&(S=":");let O=n.alignDelimiters===!1?1:Math.max(1,l[h]-v.length-S.length);const B=v+"-".repeat(O)+S;n.alignDelimiters!==!1&&(O=v.length+O+S.length,O>l[h]&&(l[h]=O),f[h]=O),u[h]=B}a.splice(1,0,u),o.splice(1,0,f),c=-1;const A=[];for(;++c<a.length;){const b=a[c],v=o[c];h=-1;const S=[];for(;++h<s;){const O=b[h]||"";let B="",T="";if(n.alignDelimiters!==!1){const j=l[h]-(v[h]||0),M=i[h];M===114?B=" ".repeat(j):M===99?j%2?(B=" ".repeat(j/2+.5),T=" ".repeat(j/2-.5)):(B=" ".repeat(j/2),T=B):T=" ".repeat(j)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(B),S.push(O),n.alignDelimiters!==!1&&S.push(T),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==s-1)&&S.push("|")}A.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return A.join(`
37
37
  `)}function Dm(e){return e==null?"":String(e)}function Mm(e){return e.length}function Is(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function zm(e,n,t,r){const i=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),Fm);return i(),o}function Fm(e,n,t){return">"+(t?"":" ")+e}function Rm(e,n){return Os(e,n.inConstruct,!0)&&!Os(e,n.notInConstruct,!1)}function Os(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Ps(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
38
38
  `&&Rm(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
39
39
  `}function Nm(e,n){const t=String(e);let r=t.indexOf(n),i=r,a=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+n.length,r=t.indexOf(n,i);return o}function qm(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Um(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Hm(e,n,t,r){const i=Um(t),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(qm(e,t)){const u=t.enter("codeIndented"),f=t.indentLines(a,$m);return u(),f}const l=t.createTracker(r),s=i.repeat(Math.max(Nm(a,i)+1,3)),c=t.enter("codeFenced");let h=l.move(s);if(e.lang){const u=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),u()}if(e.lang&&e.meta){const u=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:`
@@ -47,7 +47,7 @@ Avoid returning a new reference inside your input selector, e.g.
47
47
  `))+1))}const o="#".repeat(i),l=t.enter("headingAtx"),s=t.enter("phrasing");a.move(o+" ");let c=t.containerPhrasing(e,{before:"# ",after:`
48
48
  `,...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,t.options.closeAtx&&(c+=" "+o),s(),l(),c}js.peek=Xm;function js(e){return e.value||""}function Xm(){return"<"}Ds.peek=Gm;function Ds(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let l=t.enter("label");const s=t.createTracker(r);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(t.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),o(),c}function Gm(){return"!"}Ms.peek=ey;function Ms(e,n,t,r){const i=e.referenceType,a=t.enter("imageReference");let o=t.enter("label");const l=t.createTracker(r);let s=l.move("![");const c=t.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const u=t.safe(t.associationId(e),{before:s,after:"]",...l.current()});return o(),t.stack=h,a(),i==="full"||!c||c!==u?s+=l.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function ey(){return"!"}zs.peek=ny;function zs(e,n,t){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<t.unsafe.length;){const o=t.unsafe[a],l=t.compilePattern(o);let s;if(o.atBreak)for(;s=l.exec(r);){let c=s.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(s.index+1)}}return i+r+i}function ny(){return"`"}function Fs(e,n){const t=Po(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Rs.peek=ty;function Rs(e,n,t,r){const i=Io(t),a=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let l,s;if(Fs(e,t)){const h=t.stack;t.stack=[],l=t.enter("autolink");let u=o.move("<");return u+=o.move(t.containerPhrasing(e,{before:u,after:">",...o.current()})),u+=o.move(">"),l(),t.stack=h,u}l=t.enter("link"),s=t.enter("label");let c=o.move("[");return c+=o.move(t.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(t.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(s=t.enter("destinationRaw"),c+=o.move(t.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=t.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(t.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),s()),c+=o.move(")"),l(),c}function ty(e,n,t){return Fs(e,t)?"<":"["}Ns.peek=ry;function Ns(e,n,t,r){const i=e.referenceType,a=t.enter("linkReference");let o=t.enter("label");const l=t.createTracker(r);let s=l.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const u=t.safe(t.associationId(e),{before:s,after:"]",...l.current()});return o(),t.stack=h,a(),i==="full"||!c||c!==u?s+=l.move(u+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function ry(){return"["}function _o(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function iy(e){const n=_o(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function oy(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function qs(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function ay(e,n,t,r){const i=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?oy(t):_o(t);const l=e.ordered?o==="."?")":".":iy(t);let s=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),qs(t)===o&&h){let u=-1;for(;++u<e.children.length;){const f=e.children[u];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=l),t.bulletCurrent=o;const c=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=a,i(),c}function ly(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function sy(e,n,t,r){const i=ly(t);let a=t.bulletCurrent||_o(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=t.createTracker(r);l.move(a+" ".repeat(o-a.length)),l.shift(o);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,l.current()),h);return s(),c;function h(u,f,A){return f?(A?"":" ".repeat(o))+u:(A?a:a+" ".repeat(o-a.length))+u}}function uy(e,n,t,r){const i=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,r);return a(),i(),o}const cy=Wr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function py(e,n,t,r){return(e.children.some(function(o){return cy(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function dy(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Us.peek=fy;function Us(e,n,t,r){const i=dy(t),a=t.enter("strong"),o=t.createTracker(r);let l=o.move(i+i);return l+=o.move(t.containerPhrasing(e,{before:l,after:i,...o.current()})),l+=o.move(i+i),a(),l}function fy(e,n,t){return t.options.strong||"*"}function hy(e,n,t,r){return t.safe(e.value,r)}function my(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function yy(e,n,t){const r=(qs(t)+(t.options.ruleSpaces?" ":"")).repeat(my(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Hs={blockquote:zm,break:Ps,code:Hm,definition:Wm,emphasis:_s,hardBreak:Ps,heading:Zm,html:js,image:Ds,imageReference:Ms,inlineCode:zs,link:Rs,linkReference:Ns,list:ay,listItem:sy,paragraph:uy,root:py,strong:Us,text:hy,thematicBreak:yy},$s=document.createElement("i");function To(e){const n="&"+e+";";$s.innerHTML=n;const t=$s.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ws(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}const Ay=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gy(e){return e.replace(Ay,by)}function by(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),a=i===120||i===88;return Ws(t.slice(a?2:1),a?16:10)}return To(t)||e}function vy(){return{enter:{table:xy,tableData:Ys,tableHeader:Ys,tableRow:ky},exit:{codeText:Ey,table:wy,tableData:Lo,tableHeader:Lo,tableRow:Lo}}}function xy(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function wy(e){this.exit(e),this.data.inTable=void 0}function ky(e){this.enter({type:"tableRow",children:[]},e)}function Lo(e){this.exit(e)}function Ys(e){this.enter({type:"tableCell",children:[]},e)}function Ey(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Cy));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Cy(e,n){return n==="|"?n:e}function Sy(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
49
49
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:s,tableRow:l}};function o(A,b,v,S){return c(h(A,v,S),A.align)}function l(A,b,v,S){const O=u(A,v,S),B=c([O]);return B.slice(0,B.indexOf(`
50
- `))}function s(A,b,v,S){const O=v.enter("tableCell"),B=v.enter("phrasing"),T=v.containerPhrasing(A,{...S,before:a,after:a});return B(),O(),T}function c(A,b){return jm(A,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function h(A,b,v){const S=A.children;let O=-1;const B=[],T=b.enter("table");for(;++O<S.length;)B[O]=u(S[O],b,v);return T(),B}function u(A,b,v){const S=A.children;let O=-1;const B=[],T=b.enter("tableRow");for(;++O<S.length;)B[O]=s(S[O],A,b,v);return T(),B}function f(A,b,v){let S=Hs.inlineCode(A,b,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function By(){return{exit:{taskListCheckValueChecked:Vs,taskListCheckValueUnchecked:Vs,paragraph:Oy}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Py}}}function Vs(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Oy(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Py(e,n,t,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=t.createTracker(r);a&&l.move(o);let s=Hs.listItem(e,n,t,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(h){return h+o}}function _y(){return[rm(),mm(),Om(),vy(),By()]}function Ty(e){return{extensions:[im(),ym(),Pm(),Sy(e),Iy()]}}function An(e,n,t,r){const i=e.length;let a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),e.splice(...o),a+=1e4,n+=1e4}function gn(e,n){return e.length>0?(An(e,e.length,0,n),e):n}const Ks={}.hasOwnProperty;function Qs(e){const n={};let t=-1;for(;++t<e.length;)Ly(n,e[t]);return n}function Ly(e,n){let t;for(t in n){const i=(Ks.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let o;if(a)for(o in a){Ks.call(i,o)||(i[o]=[]);const l=a[o];jy(i[o],Array.isArray(l)?l:l?[l]:[])}}}function jy(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);An(e,0,0,r)}const Dy={tokenize:qy,partial:!0},Js={tokenize:Uy,partial:!0},Zs={tokenize:Hy,partial:!0},Xs={tokenize:$y,partial:!0},My={tokenize:Wy,partial:!0},Gs={name:"wwwAutolink",tokenize:Ry,previous:nu},eu={name:"protocolAutolink",tokenize:Ny,previous:tu},Mn={name:"emailAutolink",tokenize:Fy,previous:ru},Bn={};function zy(){return{text:Bn}}let ot=48;for(;ot<123;)Bn[ot]=Mn,ot++,ot===58?ot=65:ot===91&&(ot=97);Bn[43]=Mn,Bn[45]=Mn,Bn[46]=Mn,Bn[95]=Mn,Bn[72]=[Mn,eu],Bn[104]=[Mn,eu],Bn[87]=[Mn,Gs],Bn[119]=[Mn,Gs];function Fy(e,n,t){const r=this;let i,a;return o;function o(u){return!jo(u)||!ru.call(r,r.previous)||Do(r.events)?t(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(u))}function l(u){return jo(u)?(e.consume(u),l):u===64?(e.consume(u),s):t(u)}function s(u){return u===46?e.check(My,h,c)(u):u===45||u===95||tn(u)?(a=!0,e.consume(u),s):h(u)}function c(u){return e.consume(u),i=!0,s}function h(u){return a&&i&&an(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(u)):t(u)}}function Ry(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!nu.call(r,r.previous)||Do(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Dy,e.attempt(Js,e.attempt(Zs,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Ny(e,n,t){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&tu.call(r,r.previous)&&!Do(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),l):t(u)}function l(u){if(an(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),l;if(u===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(u),s}return t(u)}function s(u){return u===47?(e.consume(u),a?c:(a=!0,s)):t(u)}function c(u){return u===null||Vr(u)||Le(u)||it(u)||Kr(u)?t(u):e.attempt(Js,e.attempt(Zs,h),t)(u)}function h(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(u)}}function qy(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):t(o)}function a(o){return o===null?t(o):n(o)}}function Uy(e,n,t){let r,i,a;return o;function o(c){return c===46||c===95?e.check(Xs,s,l)(c):c===null||Le(c)||it(c)||c!==45&&Kr(c)?s(c):(a=!0,e.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function s(c){return i||r||!a?t(c):n(c)}}function Hy(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Xs,n,a)(o):o===null||Le(o)||it(o)?n(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function $y(e,n,t){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),i):l===60||l===null||Le(l)||it(l)?n(l):t(l)}function i(l){return l===null||l===40||l===91||Le(l)||it(l)?n(l):r(l)}function a(l){return an(l)?o(l):t(l)}function o(l){return l===59?(e.consume(l),r):an(l)?(e.consume(l),o):t(l)}}function Wy(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return tn(a)?t(a):n(a)}}function nu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Le(e)}function tu(e){return!an(e)}function ru(e){return!(e===47||jo(e))}function jo(e){return e===43||e===45||e===46||e===95||tn(e)}function Do(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function vt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const a=e.charCodeAt(t);let o="";if(a===37&&tn(e.charCodeAt(t+1))&&tn(e.charCodeAt(t+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function Qr(e){if(e===null||Le(e)||it(e))return 1;if(Kr(e))return 2}function Jr(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const Mo={name:"attention",tokenize:Vy,resolveAll:Yy};function Yy(e,n){let t=-1,r,i,a,o,l,s,c,h;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),f=Object.assign({},e[t][1].start);iu(u,-s),iu(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:f},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},l.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=gn(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=gn(c,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),c=gn(c,Jr(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=gn(c,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,c=gn(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,An(e,r-1,t-r+3,c),t=r+c.length-h-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Vy(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Qr(r);let a;return o;function o(s){return a=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===a)return e.consume(s),l;const c=e.exit("attentionSequence"),h=Qr(s),u=!h||h===2&&i||t.includes(s),f=!i||i===2&&h||t.includes(r);return c._open=!!(a===42?u:u&&(i||!f)),c._close=!!(a===42?f:f&&(h||!u)),n(s)}}function iu(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ky={name:"autolink",tokenize:Qy};function Qy(e,n,t){let r=0;return i;function i(A){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(A){return an(A)?(e.consume(A),o):A===64?t(A):c(A)}function o(A){return A===43||A===45||A===46||tn(A)?(r=1,l(A)):c(A)}function l(A){return A===58?(e.consume(A),r=0,s):(A===43||A===45||A===46||tn(A))&&r++<32?(e.consume(A),l):(r=0,c(A))}function s(A){return A===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):A===null||A===32||A===60||Vr(A)?t(A):(e.consume(A),s)}function c(A){return A===64?(e.consume(A),h):em(A)?(e.consume(A),c):t(A)}function h(A){return tn(A)?u(A):t(A)}function u(A){return A===46?(e.consume(A),r=0,h):A===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):f(A)}function f(A){if((A===45||tn(A))&&r++<63){const b=A===45?f:u;return e.consume(A),b}return t(A)}}function Se(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return Ee(s)?(e.enter(t),l(s)):n(s)}function l(s){return Ee(s)&&a++<i?(e.consume(s),l):(e.exit(t),n(s))}}const Wt={tokenize:Jy,partial:!0};function Jy(e,n,t){return r;function r(a){return Ee(a)?Se(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||de(a)?n(a):t(a)}}const ou={name:"blockQuote",tokenize:Zy,continuation:{tokenize:Xy},exit:Gy};function Zy(e,n,t){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return t(o)}function a(o){return Ee(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Xy(e,n,t){const r=this;return i;function i(o){return Ee(o)?Se(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(ou,n,t)(o)}}function Gy(e){e.exit("blockQuote")}const au={name:"characterEscape",tokenize:e0};function e0(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return tm(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const lu={name:"characterReference",tokenize:n0};function n0(e,n,t){const r=this;let i=0,a,o;return l;function l(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),s}function s(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=tn,h(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=nm,h):(e.enter("characterReferenceValue"),a=7,o=Eo,h(u))}function h(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===tn&&!To(r.sliceSerialize(f))?t(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(u)&&i++<a?(e.consume(u),h):t(u)}}const su={tokenize:r0,partial:!0},uu={name:"codeFenced",tokenize:t0,concrete:!0};function t0(e,n,t){const r=this,i={tokenize:M,partial:!0};let a=0,o=0,l;return s;function s(k){return c(k)}function c(k){const F=r.events[r.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,l=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(k)}function h(k){return k===l?(o++,e.consume(k),h):o<3?t(k):(e.exit("codeFencedFenceSequence"),Ee(k)?Se(e,u,"whitespace")(k):u(k))}function u(k){return k===null||de(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(su,v,j)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(k)):Ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,A,"whitespace")(k)):k===96&&k===l?t(k):(e.consume(k),f)}function A(k){return k===null||de(k)?u(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(k)):k===96&&k===l?t(k):(e.consume(k),b)}function v(k){return e.attempt(i,j,S)(k)}function S(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),O}function O(k){return a>0&&Ee(k)?Se(e,B,"linePrefix",a+1)(k):B(k)}function B(k){return k===null||de(k)?e.check(su,v,j)(k):(e.enter("codeFlowValue"),T(k))}function T(k){return k===null||de(k)?(e.exit("codeFlowValue"),B(k)):(e.consume(k),T)}function j(k){return e.exit("codeFenced"),n(k)}function M(k,F,W){let ne=0;return L;function L(H){return k.enter("lineEnding"),k.consume(H),k.exit("lineEnding"),Q}function Q(H){return k.enter("codeFencedFence"),Ee(H)?Se(k,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ue(H)}function ue(H){return H===l?(k.enter("codeFencedFenceSequence"),ye(H)):W(H)}function ye(H){return H===l?(ne++,k.consume(H),ye):ne>=o?(k.exit("codeFencedFenceSequence"),Ee(H)?Se(k,ee,"whitespace")(H):ee(H)):W(H)}function ee(H){return H===null||de(H)?(k.exit("codeFencedFence"),F(H)):W(H)}}}function r0(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const zo={name:"codeIndented",tokenize:o0},i0={tokenize:a0,partial:!0};function o0(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),Se(e,a,"linePrefix",5)(c)}function a(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?s(c):de(c)?e.attempt(i0,o,s)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||de(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function s(c){return e.exit("codeIndented"),n(c)}}function a0(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Se(e,a,"linePrefix",5)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):de(o)?i(o):t(o)}}const l0={name:"codeText",tokenize:c0,resolve:s0,previous:u0};function s0(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function u0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function c0(e,n,t){let r=0,i,a;return o;function o(u){return e.enter("codeText"),e.enter("codeTextSequence"),l(u)}function l(u){return u===96?(e.consume(u),r++,l):(e.exit("codeTextSequence"),s(u))}function s(u){return u===null?t(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),s):u===96?(a=e.enter("codeTextSequence"),i=0,h(u)):de(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||de(u)?(e.exit("codeTextData"),s(u)):(e.consume(u),c)}function h(u){return u===96?(e.consume(u),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(u)):(a.type="codeTextData",c(u))}}class p0{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Yt(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Yt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Yt(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Yt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Yt(this.left,t.reverse())}}}function Yt(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function cu(e){const n={};let t=-1,r,i,a,o,l,s,c;const h=new p0(e);for(;++t<h.length;){for(;t in n;)t=n[t];if(r=h.get(t),t&&r[1].type==="chunkFlow"&&h.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,d0(h,t)),t=n[t],c=!0);else if(r[1]._container){for(a=t,i=void 0;a--&&(o=h.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},h.get(i)[1].start),l=h.slice(i,t),l.unshift(r),h.splice(i,t-i+1,l))}}return An(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function d0(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const a=[],o=t._tokenizer||r.parser[t.contentType](t.start),l=o.events,s=[],c={};let h,u,f=-1,A=t,b=0,v=0;const S=[v];for(;A;){for(;e.get(++i)[1]!==A;);a.push(i),A._tokenizer||(h=r.sliceStream(A),A.next||h.push(null),u&&o.defineSkip(A.start),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=A,A=A.next}for(A=t;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(v=f+1,S.push(v),A._tokenizer=void 0,A.previous=void 0,A=A.next);for(o.events=[],A?(A._tokenizer=void 0,A.previous=void 0):S.pop(),f=S.length;f--;){const O=l.slice(S[f],S[f+1]),B=a.pop();s.push([B,B+O.length-1]),e.splice(B,2,O)}for(s.reverse(),f=-1;++f<s.length;)c[b+s[f][0]]=b+s[f][1],b+=s[f][1]-s[f][0]-1;return c}const f0={tokenize:y0,resolve:m0},h0={tokenize:A0,partial:!0};function m0(e){return cu(e),e}function y0(e,n){let t;return r;function r(l){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):de(l)?e.check(h0,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),n(l)}function o(l){return e.consume(l),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function A0(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,a,"linePrefix")}function a(o){if(o===null||de(o))return t(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function pu(e,n,t,r,i,a,o,l,s){const c=s||Number.POSITIVE_INFINITY;let h=0;return u;function u(O){return O===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(O),e.exit(a),f):O===null||O===32||O===41||Vr(O)?t(O):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(O))}function f(O){return O===62?(e.enter(a),e.consume(O),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),A(O))}function A(O){return O===62?(e.exit("chunkString"),e.exit(l),f(O)):O===null||O===60||de(O)?t(O):(e.consume(O),O===92?b:A)}function b(O){return O===60||O===62||O===92?(e.consume(O),A):A(O)}function v(O){return!h&&(O===null||O===41||Le(O))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),n(O)):h<c&&O===40?(e.consume(O),h++,v):O===41?(e.consume(O),h--,v):O===null||O===32||O===40||Vr(O)?t(O):(e.consume(O),O===92?S:v)}function S(O){return O===40||O===41||O===92?(e.consume(O),v):v(O)}}function du(e,n,t,r,i,a){const o=this;let l=0,s;return c;function c(A){return e.enter(r),e.enter(i),e.consume(A),e.exit(i),e.enter(a),h}function h(A){return l>999||A===null||A===91||A===93&&!s||A===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(A):A===93?(e.exit(a),e.enter(i),e.consume(A),e.exit(i),e.exit(r),n):de(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),u(A))}function u(A){return A===null||A===91||A===93||de(A)||l++>999?(e.exit("chunkString"),h(A)):(e.consume(A),s||(s=!Ee(A)),A===92?f:u)}function f(A){return A===91||A===92||A===93?(e.consume(A),l++,u):u(A)}}function fu(e,n,t,r,i,a){let o;return l;function l(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,s):t(f)}function s(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),s(o)):f===null?t(f):de(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===o||f===null||de(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?u:h)}function u(f){return f===o||f===92?(e.consume(f),h):h(f)}}function Vt(e,n){let t;return r;function r(i){return de(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):Ee(i)?Se(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const g0={name:"definition",tokenize:v0},b0={tokenize:x0,partial:!0};function v0(e,n,t){const r=this;let i;return a;function a(A){return e.enter("definition"),o(A)}function o(A){return du.call(r,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(A)}function l(A){return i=wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),A===58?(e.enter("definitionMarker"),e.consume(A),e.exit("definitionMarker"),s):t(A)}function s(A){return Le(A)?Vt(e,c)(A):c(A)}function c(A){return pu(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(A)}function h(A){return e.attempt(b0,u,u)(A)}function u(A){return Ee(A)?Se(e,f,"whitespace")(A):f(A)}function f(A){return A===null||de(A)?(e.exit("definition"),r.parser.defined.push(i),n(A)):t(A)}}function x0(e,n,t){return r;function r(l){return Le(l)?Vt(e,i)(l):t(l)}function i(l){return fu(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Ee(l)?Se(e,o,"whitespace")(l):o(l)}function o(l){return l===null||de(l)?n(l):t(l)}}const w0={name:"hardBreakEscape",tokenize:k0};function k0(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return de(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const E0={name:"headingAtx",tokenize:S0,resolve:C0};function C0(e,n){let t=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},An(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function S0(e,n,t){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(e.consume(h),o):h===null||Le(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),s(h)):h===null||de(h)?(e.exit("atxHeading"),n(h)):Ee(h)?Se(e,l,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function s(h){return h===35?(e.consume(h),s):(e.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||Le(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),c)}}const B0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hu=["pre","script","style","textarea"],I0={name:"htmlFlow",tokenize:T0,resolveTo:_0,concrete:!0},O0={tokenize:j0,partial:!0},P0={tokenize:L0,partial:!0};function _0(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function T0(e,n,t){const r=this;let i,a,o,l,s;return c;function c(P){return h(P)}function h(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),u}function u(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),a=!0,v):P===63?(e.consume(P),i=3,r.interrupt?n:I):an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function f(P){return P===45?(e.consume(P),i=2,A):P===91?(e.consume(P),i=5,l=0,b):an(P)?(e.consume(P),i=4,r.interrupt?n:I):t(P)}function A(P){return P===45?(e.consume(P),r.interrupt?n:I):t(P)}function b(P){const Be="CDATA[";return P===Be.charCodeAt(l++)?(e.consume(P),l===Be.length?r.interrupt?n:ue:b):t(P)}function v(P){return an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function S(P){if(P===null||P===47||P===62||Le(P)){const Be=P===47,Me=o.toLowerCase();return!Be&&!a&&hu.includes(Me)?(i=1,r.interrupt?n(P):ue(P)):B0.includes(o.toLowerCase())?(i=6,Be?(e.consume(P),O):r.interrupt?n(P):ue(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(P):a?B(P):T(P))}return P===45||tn(P)?(e.consume(P),o+=String.fromCharCode(P),S):t(P)}function O(P){return P===62?(e.consume(P),r.interrupt?n:ue):t(P)}function B(P){return Ee(P)?(e.consume(P),B):L(P)}function T(P){return P===47?(e.consume(P),L):P===58||P===95||an(P)?(e.consume(P),j):Ee(P)?(e.consume(P),T):L(P)}function j(P){return P===45||P===46||P===58||P===95||tn(P)?(e.consume(P),j):M(P)}function M(P){return P===61?(e.consume(P),k):Ee(P)?(e.consume(P),M):T(P)}function k(P){return P===null||P===60||P===61||P===62||P===96?t(P):P===34||P===39?(e.consume(P),s=P,F):Ee(P)?(e.consume(P),k):W(P)}function F(P){return P===s?(e.consume(P),s=null,ne):P===null||de(P)?t(P):(e.consume(P),F)}function W(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Le(P)?M(P):(e.consume(P),W)}function ne(P){return P===47||P===62||Ee(P)?T(P):t(P)}function L(P){return P===62?(e.consume(P),Q):t(P)}function Q(P){return P===null||de(P)?ue(P):Ee(P)?(e.consume(P),Q):t(P)}function ue(P){return P===45&&i===2?(e.consume(P),V):P===60&&i===1?(e.consume(P),ie):P===62&&i===4?(e.consume(P),fe):P===63&&i===3?(e.consume(P),I):P===93&&i===5?(e.consume(P),$):de(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(O0,we,ye)(P)):P===null||de(P)?(e.exit("htmlFlowData"),ye(P)):(e.consume(P),ue)}function ye(P){return e.check(P0,ee,we)(P)}function ee(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),H}function H(P){return P===null||de(P)?ye(P):(e.enter("htmlFlowData"),ue(P))}function V(P){return P===45?(e.consume(P),I):ue(P)}function ie(P){return P===47?(e.consume(P),o="",Z):ue(P)}function Z(P){if(P===62){const Be=o.toLowerCase();return hu.includes(Be)?(e.consume(P),fe):ue(P)}return an(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),Z):ue(P)}function $(P){return P===93?(e.consume(P),I):ue(P)}function I(P){return P===62?(e.consume(P),fe):P===45&&i===2?(e.consume(P),I):ue(P)}function fe(P){return P===null||de(P)?(e.exit("htmlFlowData"),we(P)):(e.consume(P),fe)}function we(P){return e.exit("htmlFlow"),n(P)}}function L0(e,n,t){const r=this;return i;function i(o){return de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function j0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wt,n,t)}}const D0={name:"htmlText",tokenize:M0};function M0(e,n,t){const r=this;let i,a,o;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),s}function s(I){return I===33?(e.consume(I),c):I===47?(e.consume(I),M):I===63?(e.consume(I),T):an(I)?(e.consume(I),W):t(I)}function c(I){return I===45?(e.consume(I),h):I===91?(e.consume(I),a=0,b):an(I)?(e.consume(I),B):t(I)}function h(I){return I===45?(e.consume(I),A):t(I)}function u(I){return I===null?t(I):I===45?(e.consume(I),f):de(I)?(o=u,ie(I)):(e.consume(I),u)}function f(I){return I===45?(e.consume(I),A):u(I)}function A(I){return I===62?V(I):I===45?f(I):u(I)}function b(I){const fe="CDATA[";return I===fe.charCodeAt(a++)?(e.consume(I),a===fe.length?v:b):t(I)}function v(I){return I===null?t(I):I===93?(e.consume(I),S):de(I)?(o=v,ie(I)):(e.consume(I),v)}function S(I){return I===93?(e.consume(I),O):v(I)}function O(I){return I===62?V(I):I===93?(e.consume(I),O):v(I)}function B(I){return I===null||I===62?V(I):de(I)?(o=B,ie(I)):(e.consume(I),B)}function T(I){return I===null?t(I):I===63?(e.consume(I),j):de(I)?(o=T,ie(I)):(e.consume(I),T)}function j(I){return I===62?V(I):T(I)}function M(I){return an(I)?(e.consume(I),k):t(I)}function k(I){return I===45||tn(I)?(e.consume(I),k):F(I)}function F(I){return de(I)?(o=F,ie(I)):Ee(I)?(e.consume(I),F):V(I)}function W(I){return I===45||tn(I)?(e.consume(I),W):I===47||I===62||Le(I)?ne(I):t(I)}function ne(I){return I===47?(e.consume(I),V):I===58||I===95||an(I)?(e.consume(I),L):de(I)?(o=ne,ie(I)):Ee(I)?(e.consume(I),ne):V(I)}function L(I){return I===45||I===46||I===58||I===95||tn(I)?(e.consume(I),L):Q(I)}function Q(I){return I===61?(e.consume(I),ue):de(I)?(o=Q,ie(I)):Ee(I)?(e.consume(I),Q):ne(I)}function ue(I){return I===null||I===60||I===61||I===62||I===96?t(I):I===34||I===39?(e.consume(I),i=I,ye):de(I)?(o=ue,ie(I)):Ee(I)?(e.consume(I),ue):(e.consume(I),ee)}function ye(I){return I===i?(e.consume(I),i=void 0,H):I===null?t(I):de(I)?(o=ye,ie(I)):(e.consume(I),ye)}function ee(I){return I===null||I===34||I===39||I===60||I===61||I===96?t(I):I===47||I===62||Le(I)?ne(I):(e.consume(I),ee)}function H(I){return I===47||I===62||Le(I)?ne(I):t(I)}function V(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),n):t(I)}function ie(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Z}function Z(I){return Ee(I)?Se(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):$(I)}function $(I){return e.enter("htmlTextData"),o(I)}}const Fo={name:"labelEnd",tokenize:U0,resolveTo:q0,resolveAll:N0},z0={tokenize:H0},F0={tokenize:$0},R0={tokenize:W0};function N0(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function q0(e,n){let t=e.length,r=0,i,a,o,l;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},h={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return l=[["enter",s,n],["enter",c,n]],l=gn(l,e.slice(a+1,a+r+3)),l=gn(l,[["enter",h,n]]),l=gn(l,Jr(n.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),n)),l=gn(l,[["exit",h,n],e[o-2],e[o-1],["exit",c,n]]),l=gn(l,e.slice(o+1)),l=gn(l,[["exit",s,n]]),An(e,a,e.length,l),e}function U0(e,n,t){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return l;function l(f){return a?a._inactive?u(f):(o=r.parser.defined.includes(wn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):t(f)}function s(f){return f===40?e.attempt(z0,h,o?h:u)(f):f===91?e.attempt(F0,h,o?c:u)(f):o?h(f):u(f)}function c(f){return e.attempt(R0,h,u)(f)}function h(f){return n(f)}function u(f){return a._balanced=!0,t(f)}}function H0(e,n,t){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return Le(u)?Vt(e,a)(u):a(u)}function a(u){return u===41?h(u):pu(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return Le(u)?Vt(e,s)(u):h(u)}function l(u){return t(u)}function s(u){return u===34||u===39||u===40?fu(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):h(u)}function c(u){return Le(u)?Vt(e,h)(u):h(u)}function h(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),n):t(u)}}function $0(e,n,t){const r=this;return i;function i(l){return du.call(r,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(l):t(l)}function o(l){return t(l)}}function W0(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}const Y0={name:"labelStartImage",tokenize:V0,resolveAll:Fo.resolveAll};function V0(e,n,t){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):t(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const K0={name:"labelStartLink",tokenize:Q0,resolveAll:Fo.resolveAll};function Q0(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Ro={name:"lineEnding",tokenize:J0};function J0(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,n,"linePrefix")}}const Zr={name:"thematicBreak",tokenize:Z0};function Z0(e,n,t){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||de(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),Ee(c)?Se(e,l,"whitespace")(c):l(c))}}const cn={name:"list",tokenize:eA,continuation:{tokenize:nA},exit:rA},X0={tokenize:iA,partial:!0},G0={tokenize:tA,partial:!0};function eA(e,n,t){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(A){const b=r.containerState.type||(A===42||A===43||A===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||A===r.containerState.marker:Eo(A)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),A===42||A===45?e.check(Zr,t,c)(A):c(A);if(!r.interrupt||A===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(A)}return t(A)}function s(A){return Eo(A)&&++o<10?(e.consume(A),s):(!r.interrupt||o<2)&&(r.containerState.marker?A===r.containerState.marker:A===41||A===46)?(e.exit("listItemValue"),c(A)):t(A)}function c(A){return e.enter("listItemMarker"),e.consume(A),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||A,e.check(Wt,r.interrupt?t:h,e.attempt(X0,f,u))}function h(A){return r.containerState.initialBlankLine=!0,a++,f(A)}function u(A){return Ee(A)?(e.enter("listItemPrefixWhitespace"),e.consume(A),e.exit("listItemPrefixWhitespace"),f):t(A)}function f(A){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(A)}}function nA(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Wt,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,n,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Ee(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(G0,n,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt(cn,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function tA(e,n,t){const r=this;return Se(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(a):t(a)}}function rA(e){e.exit(this.containerState.type)}function iA(e,n,t){const r=this;return Se(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Ee(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const mu={name:"setextUnderline",tokenize:aA,resolveTo:oA};function oA(e,n){let t=e.length,r,i,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function aA(e,n,t){const r=this;let i;return a;function a(c){let h=r.events.length,u;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){u=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Ee(c)?Se(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||de(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const lA={tokenize:mA,partial:!0};function sA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:dA,continuation:{tokenize:fA},exit:hA}},text:{91:{name:"gfmFootnoteCall",tokenize:pA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uA,resolveTo:cA}}}}function uA(e,n,t){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!o||!o._balanced)return t(s);const c=wn(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function cA(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...l),e}function pA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return l;function l(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),s}function s(u){return u!==94?t(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!o||u===null||u===91||Le(u))return t(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(wn(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(u)}return Le(u)||(o=!0),a++,e.consume(u),u===92?h:c}function h(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function dA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,l;return s;function s(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||Le(b))return t(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=wn(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Le(b)||(l=!0),o++,e.consume(b),b===92?u:h}function u(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Se(e,A,"gfmFootnoteDefinitionWhitespace")):t(b)}function A(b){return n(b)}}function fA(e,n,t){return e.check(Wt,n,e.attempt(lA,n,t))}function hA(e){e.exit("gfmFootnoteDefinition")}function mA(e,n,t){const r=this;return Se(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function yA(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let c=s;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[s][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[s][1].end)},u={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[s][1].start)},f=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",u,l]],A=l.parser.constructs.insideSpan.null;A&&An(f,f.length,0,Jr(A,o.slice(c+1,s),l)),An(f,f.length,0,[["exit",u,l],["enter",o[s][1],l],["exit",o[s][1],l],["exit",h,l]]),An(o,c-1,s-c+3,f),s=c+f.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function a(o,l,s){const c=this.previous,h=this.events;let u=0;return f;function f(b){return c===126&&h[h.length-1][1].type!=="characterEscape"?s(b):(o.enter("strikethroughSequenceTemporary"),A(b))}function A(b){const v=Qr(c);if(b===126)return u>1?s(b):(o.consume(b),u++,A);if(u<2&&!t)return s(b);const S=o.exit("strikethroughSequenceTemporary"),O=Qr(b);return S._open=!O||O===2&&!!v,S._close=!v||v===2&&!!O,l(b)}}}class AA{constructor(){this.map=[]}add(n,t,r){gA(this,n,t,r)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}}function gA(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function bA(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function vA(){return{flow:{null:{name:"table",tokenize:xA,resolveAll:wA}}}}function xA(e,n,t){const r=this;let i=0,a=0,o;return l;function l(L){let Q=r.events.length-1;for(;Q>-1;){const ee=r.events[Q][1].type;if(ee==="lineEnding"||ee==="linePrefix")Q--;else break}const ue=Q>-1?r.events[Q][1].type:null,ye=ue==="tableHead"||ue==="tableRow"?k:s;return ye===k&&r.parser.lazy[r.now().line]?t(L):ye(L)}function s(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),h(L)}function h(L){return L===null?t(L):de(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),A):t(L):Ee(L)?Se(e,h,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),u(L)))}function u(L){return L===null||L===124||Le(L)?(e.exit("data"),h(L)):(e.consume(L),L===92?f:u)}function f(L){return L===92||L===124?(e.consume(L),u):u(L)}function A(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(L):(e.enter("tableDelimiterRow"),o=!1,Ee(L)?Se(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):b(L))}function b(L){return L===45||L===58?S(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):M(L)}function v(L){return Ee(L)?Se(e,S,"whitespace")(L):S(L)}function S(L){return L===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),O):L===45?(a+=1,O(L)):L===null||de(L)?j(L):M(L)}function O(L){return L===45?(e.enter("tableDelimiterFiller"),B(L)):M(L)}function B(L){return L===45?(e.consume(L),B):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(L))}function T(L){return Ee(L)?Se(e,j,"whitespace")(L):j(L)}function j(L){return L===124?b(L):L===null||de(L)?!o||i!==a?M(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):M(L)}function M(L){return t(L)}function k(L){return e.enter("tableRow"),F(L)}function F(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),F):L===null||de(L)?(e.exit("tableRow"),n(L)):Ee(L)?Se(e,F,"whitespace")(L):(e.enter("data"),W(L))}function W(L){return L===null||L===124||Le(L)?(e.exit("data"),F(L)):(e.consume(L),L===92?ne:W)}function ne(L){return L===92||L===124?(e.consume(L),W):W(L)}}function wA(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,s=0,c,h,u;const f=new AA;for(;++t<e.length;){const A=e[t],b=A[1];A[0]==="enter"?b.type==="tableHead"?(l=!1,s!==0&&(yu(f,n,s,c,h),h=void 0,s=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",c,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],o=[0,t+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",h,n]])),i=b.type==="tableDelimiterRow"?2:h?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],u=Xr(f,n,a,i,void 0,u),a=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],u=Xr(f,n,a,i,void 0,u)),a=o,o=[a[1],t,0,0])):b.type==="tableHead"?(l=!0,s=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(s=t,a[1]!==0?(o[0]=o[1],u=Xr(f,n,a,i,t,u)):o[1]!==0&&(u=Xr(f,n,o,i,t,u)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&yu(f,n,s,c,h),f.consume(n.events),t=-1;++t<n.events.length;){const A=n.events[t];A[0]==="enter"&&A[1].type==="table"&&(A[1]._align=bA(n.events,t))}return e}function Xr(e,n,t,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";t[0]!==0&&(a.end=Object.assign({},xt(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const s=xt(n.events,t[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const c=xt(n.events,t[2]),h=xt(n.events,t[3]),u={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(t[2],0,[["enter",u,n]]),r!==2){const f=n.events[t[2]],A=n.events[t[3]];if(f[1].end=Object.assign({},A[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){const b=t[2]+1,v=t[3]-t[2]-1;e.add(b,v,[])}}e.add(t[3]+1,0,[["exit",u,n]])}return i!==void 0&&(a.end=Object.assign({},xt(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function yu(e,n,t,r,i){const a=[],o=xt(n.events,t);i&&(i.end=Object.assign({},o),a.push(["exit",i,n])),r.end=Object.assign({},o),a.push(["exit",r,n]),e.add(t+1,0,a)}function xt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const kA={name:"tasklistCheck",tokenize:CA};function EA(){return{text:{91:kA}}}function CA(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return Le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(s)}function l(s){return de(s)?n(s):Ee(s)?e.check({tokenize:SA},n,t)(s):t(s)}}function SA(e,n,t){return Se(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function BA(e){return Qs([zy(),sA(),yA(e),vA(),EA()])}const IA={};function OA(e){const n=this,t=e||IA,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(BA(t)),a.push(_y()),o.push(Ty(t))}function PA(e){const[n,t]=re.useState(!1),[r,i]=re.useState();return re.useEffect(()=>{Promise.resolve().then(()=>Cv).then(a=>{i(q.jsx(a.default,{remarkPlugins:[Gh,OA],children:e.value}))})},[e.value]),q.jsxs("div",{className:"zyjj-lab-markdown",style:{position:"relative"},children:[e.value?q.jsxs(te.Space,{style:{position:"absolute",right:0,margin:5,zIndex:99},children:[q.jsx($r,{noSuccess:!0,onClick:async()=>t(a=>!a),icon:n?q.jsx(Ao,{}):q.jsx(xo,{}),tip:n?"预览":"编辑"}),q.jsx(Fh,{value:e.value})]}):q.jsx(q.Fragment,{}),n?q.jsx(te.Input.TextArea,{style:{borderRadius:5,padding:10},autoSize:!0,value:e.value,onChange:e.onChange}):q.jsx("div",{style:{padding:10},children:r})]})}const _A=Object.freeze(Object.defineProperty({__proto__:null,default:PA},Symbol.toStringTag,{value:"Module"}));function TA(e){const[n,t]=re.useState(""),r=re.useCallback(i=>{if(!i||!e.value)return;let a={};typeof e.value=="string"?(t(e.value),a.url=e.value,a.name=e.value.split("/").pop()):(a=e.value,t(a.url)),Promise.resolve().then(()=>Sv).then(o=>{new o.default({container:i,loop:"none",lrcType:1,audio:[a]})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"99%",borderRadius:5},ref:r}),q.jsx(bs,{link:n})]})}const LA=Object.freeze(Object.defineProperty({__proto__:null,default:TA},Symbol.toStringTag,{value:"Module"}));function jA(e){const{value:n,data:t,onChange:r}=e,i=(t==null?void 0:t.max_size)||10*1024*1024,[a,o]=re.useState([]),l=s=>{console.log("custom upload",s);const{onSuccess:c,file:h}=s;if(h.size>i){te.Message.warning(`文件大小超过 ${i/1024/1024}M, 请重新上传!`),o([]);return}r&&r(ol(h)),c()};return re.useEffect(()=>{o(n?[{uid:n.uid,name:n.name}]:[])},[n]),q.jsx(te.Upload,{accept:t==null?void 0:t.accept,fileList:a,onChange:o,onRemove:()=>r(void 0),limit:1,customRequest:l,children:q.jsx(te.Button,{type:"outline",icon:q.jsx(bo,{}),children:"点击上传"})})}const DA=Object.freeze(Object.defineProperty({__proto__:null,default:jA},Symbol.toStringTag,{value:"Module"}));function MA(e){var n,t,r;return q.jsx(te.InputNumber,{value:e.value,onChange:e.onChange,mode:"button",max:(n=e.data)==null?void 0:n.max,min:(t=e.data)==null?void 0:t.min,step:(r=e.data)==null?void 0:r.step})}const Au=Object.freeze(Object.defineProperty({__proto__:null,default:MA},Symbol.toStringTag,{value:"Module"}));function zA(e){var n;return e.value?q.jsx(te.Image.PreviewGroup,{infinite:!0,children:q.jsx(te.Grid,{cols:4,colGap:5,rowGap:5,children:(n=e.value)==null?void 0:n.map((t,r)=>q.jsx(te.Grid.GridItem,{children:q.jsx(vs,{src:t})},r))})}):q.jsx(q.Fragment,{})}const FA=Object.freeze(Object.defineProperty({__proto__:null,default:zA},Symbol.toStringTag,{value:"Module"}));function RA(e){return e.value?q.jsx(te.Space,{children:q.jsx(vs,{src:e.value})}):q.jsx(q.Fragment,{})}const NA=Object.freeze(Object.defineProperty({__proto__:null,default:RA},Symbol.toStringTag,{value:"Module"}));function qA(e){var n,t;return q.jsx(te.Alert,{content:(n=e.data)==null?void 0:n.content,type:(t=e.data)==null?void 0:t.type})}const UA=Object.freeze(Object.defineProperty({__proto__:null,default:qA},Symbol.toStringTag,{value:"Module"}));function HA(e){var t;const n=re.useCallback(r=>{!r||!e.value||Promise.resolve().then(()=>Bv).then(i=>{var a;new i.default({container:r,screenshot:!0,video:{url:(a=e.value)==null?void 0:a.url}})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"100%",borderRadius:5},ref:n}),q.jsx(bs,{link:(t=e.value)==null?void 0:t.url})]})}const $A=Object.freeze(Object.defineProperty({__proto__:null,default:HA},Symbol.toStringTag,{value:"Module"}));function WA(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const YA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KA={};function gu(e,n){return(KA.jsx?VA:YA).test(e)}const QA=/[ \t\n\f\r]/g;function JA(e){return typeof e=="object"?e.type==="text"?bu(e.value):!1:bu(e)}function bu(e){return e.replace(QA,"")===""}class Kt{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}Kt.prototype.property={},Kt.prototype.normal={},Kt.prototype.space=null;function vu(e,n){const t={},r={};let i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(r,e[i].normal);return new Kt(t,r,n)}function No(e){return e.toLowerCase()}class bn{constructor(n,t){this.property=n,this.attribute=t}}bn.prototype.space=null,bn.prototype.boolean=!1,bn.prototype.booleanish=!1,bn.prototype.overloadedBoolean=!1,bn.prototype.number=!1,bn.prototype.commaSeparated=!1,bn.prototype.spaceSeparated=!1,bn.prototype.commaOrSpaceSeparated=!1,bn.prototype.mustUseProperty=!1,bn.prototype.defined=!1;let ZA=0;const ge=at(),Ve=at(),xu=at(),K=at(),De=at(),wt=at(),hn=at();function at(){return 2**++ZA}const qo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:Ve,commaOrSpaceSeparated:hn,commaSeparated:wt,number:K,overloadedBoolean:xu,spaceSeparated:De},Symbol.toStringTag,{value:"Module"})),Uo=Object.keys(qo);class Ho extends bn{constructor(n,t,r,i){let a=-1;if(super(n,t),wu(this,"space",i),typeof r=="number")for(;++a<Uo.length;){const o=Uo[a];wu(this,Uo[a],(r&qo[o])===qo[o])}}}Ho.prototype.defined=!0;function wu(e,n,t){t&&(e[n]=t)}const XA={}.hasOwnProperty;function kt(e){const n={},t={};let r;for(r in e.properties)if(XA.call(e.properties,r)){const i=e.properties[r],a=new Ho(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),n[r]=a,t[No(r)]=r,t[No(a.attribute)]=r}return new Kt(n,t,e.space)}const ku=kt({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Eu=kt({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Cu(e,n){return n in e?e[n]:n}function Su(e,n){return Cu(e,n.toLowerCase())}const Bu=kt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Su,properties:{xmlns:null,xmlnsXLink:null}}),Iu=kt({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:De,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:K,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:De,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Ve,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null}}),GA=kt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Su,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wt,acceptCharset:De,accessKey:De,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:De,autoFocus:ge,autoPlay:ge,blocking:De,capture:null,charSet:null,checked:ge,cite:null,className:De,cols:K,colSpan:null,content:null,contentEditable:Ve,controls:ge,controlsList:De,coords:K|wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:xu,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:De,height:K,hidden:ge,high:K,href:null,hrefLang:null,htmlFor:De,httpEquiv:De,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:De,itemRef:De,itemScope:ge,itemType:De,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:K,pattern:null,ping:De,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:De,required:ge,reversed:ge,rows:K,rowSpan:K,sandbox:De,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:Ve,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:De,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:K,security:null,unselectable:null}}),eg=kt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Cu,properties:{about:hn,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:De,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wt,g2:wt,glyphName:wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:De,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ng=/^data[-\w.:]+$/i,Ou=/-[a-z]/g,tg=/[A-Z]/g;function rg(e,n){const t=No(n);let r=n,i=bn;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ng.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(Ou,og);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!Ou.test(a)){let o=a.replace(tg,ig);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ho}return new i(r,n)}function ig(e){return"-"+e.toLowerCase()}function og(e){return e.charAt(1).toUpperCase()}const ag={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},lg=vu([Eu,ku,Bu,Iu,GA],"html"),$o=vu([Eu,ku,Bu,Iu,eg],"svg");function sg(e){return e.join(" ").trim()}var Pu={},_u=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ug=/\n/g,cg=/^\s*/,pg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,dg=/^:\s*/,fg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hg=/^[;\s]*/,mg=/^\s+|\s+$/g,yg=`
50
+ `))}function s(A,b,v,S){const O=v.enter("tableCell"),B=v.enter("phrasing"),T=v.containerPhrasing(A,{...S,before:a,after:a});return B(),O(),T}function c(A,b){return jm(A,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function h(A,b,v){const S=A.children;let O=-1;const B=[],T=b.enter("table");for(;++O<S.length;)B[O]=u(S[O],b,v);return T(),B}function u(A,b,v){const S=A.children;let O=-1;const B=[],T=b.enter("tableRow");for(;++O<S.length;)B[O]=s(S[O],A,b,v);return T(),B}function f(A,b,v){let S=Hs.inlineCode(A,b,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function By(){return{exit:{taskListCheckValueChecked:Vs,taskListCheckValueUnchecked:Vs,paragraph:Oy}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Py}}}function Vs(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Oy(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Py(e,n,t,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=t.createTracker(r);a&&l.move(o);let s=Hs.listItem(e,n,t,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(h){return h+o}}function _y(){return[rm(),mm(),Om(),vy(),By()]}function Ty(e){return{extensions:[im(),ym(),Pm(),Sy(e),Iy()]}}function An(e,n,t,r){const i=e.length;let a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),e.splice(...o),a+=1e4,n+=1e4}function gn(e,n){return e.length>0?(An(e,e.length,0,n),e):n}const Ks={}.hasOwnProperty;function Qs(e){const n={};let t=-1;for(;++t<e.length;)Ly(n,e[t]);return n}function Ly(e,n){let t;for(t in n){const i=(Ks.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let o;if(a)for(o in a){Ks.call(i,o)||(i[o]=[]);const l=a[o];jy(i[o],Array.isArray(l)?l:l?[l]:[])}}}function jy(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);An(e,0,0,r)}const Dy={tokenize:qy,partial:!0},Js={tokenize:Uy,partial:!0},Zs={tokenize:Hy,partial:!0},Xs={tokenize:$y,partial:!0},My={tokenize:Wy,partial:!0},Gs={name:"wwwAutolink",tokenize:Ry,previous:nu},eu={name:"protocolAutolink",tokenize:Ny,previous:tu},Mn={name:"emailAutolink",tokenize:Fy,previous:ru},Bn={};function zy(){return{text:Bn}}let ot=48;for(;ot<123;)Bn[ot]=Mn,ot++,ot===58?ot=65:ot===91&&(ot=97);Bn[43]=Mn,Bn[45]=Mn,Bn[46]=Mn,Bn[95]=Mn,Bn[72]=[Mn,eu],Bn[104]=[Mn,eu],Bn[87]=[Mn,Gs],Bn[119]=[Mn,Gs];function Fy(e,n,t){const r=this;let i,a;return o;function o(u){return!jo(u)||!ru.call(r,r.previous)||Do(r.events)?t(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(u))}function l(u){return jo(u)?(e.consume(u),l):u===64?(e.consume(u),s):t(u)}function s(u){return u===46?e.check(My,h,c)(u):u===45||u===95||tn(u)?(a=!0,e.consume(u),s):h(u)}function c(u){return e.consume(u),i=!0,s}function h(u){return a&&i&&an(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(u)):t(u)}}function Ry(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!nu.call(r,r.previous)||Do(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Dy,e.attempt(Js,e.attempt(Zs,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Ny(e,n,t){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&tu.call(r,r.previous)&&!Do(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),l):t(u)}function l(u){if(an(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),l;if(u===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(u),s}return t(u)}function s(u){return u===47?(e.consume(u),a?c:(a=!0,s)):t(u)}function c(u){return u===null||Vr(u)||Le(u)||it(u)||Kr(u)?t(u):e.attempt(Js,e.attempt(Zs,h),t)(u)}function h(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(u)}}function qy(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):t(o)}function a(o){return o===null?t(o):n(o)}}function Uy(e,n,t){let r,i,a;return o;function o(c){return c===46||c===95?e.check(Xs,s,l)(c):c===null||Le(c)||it(c)||c!==45&&Kr(c)?s(c):(a=!0,e.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function s(c){return i||r||!a?t(c):n(c)}}function Hy(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Xs,n,a)(o):o===null||Le(o)||it(o)?n(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function $y(e,n,t){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),i):l===60||l===null||Le(l)||it(l)?n(l):t(l)}function i(l){return l===null||l===40||l===91||Le(l)||it(l)?n(l):r(l)}function a(l){return an(l)?o(l):t(l)}function o(l){return l===59?(e.consume(l),r):an(l)?(e.consume(l),o):t(l)}}function Wy(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return tn(a)?t(a):n(a)}}function nu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Le(e)}function tu(e){return!an(e)}function ru(e){return!(e===47||jo(e))}function jo(e){return e===43||e===45||e===46||e===95||tn(e)}function Do(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function vt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const a=e.charCodeAt(t);let o="";if(a===37&&tn(e.charCodeAt(t+1))&&tn(e.charCodeAt(t+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function Qr(e){if(e===null||Le(e)||it(e))return 1;if(Kr(e))return 2}function Jr(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const Mo={name:"attention",tokenize:Vy,resolveAll:Yy};function Yy(e,n){let t=-1,r,i,a,o,l,s,c,h;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),f=Object.assign({},e[t][1].start);iu(u,-s),iu(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:f},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},l.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=gn(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=gn(c,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),c=gn(c,Jr(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=gn(c,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,c=gn(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,An(e,r-1,t-r+3,c),t=r+c.length-h-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Vy(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Qr(r);let a;return o;function o(s){return a=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===a)return e.consume(s),l;const c=e.exit("attentionSequence"),h=Qr(s),u=!h||h===2&&i||t.includes(s),f=!i||i===2&&h||t.includes(r);return c._open=!!(a===42?u:u&&(i||!f)),c._close=!!(a===42?f:f&&(h||!u)),n(s)}}function iu(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ky={name:"autolink",tokenize:Qy};function Qy(e,n,t){let r=0;return i;function i(A){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(A){return an(A)?(e.consume(A),o):A===64?t(A):c(A)}function o(A){return A===43||A===45||A===46||tn(A)?(r=1,l(A)):c(A)}function l(A){return A===58?(e.consume(A),r=0,s):(A===43||A===45||A===46||tn(A))&&r++<32?(e.consume(A),l):(r=0,c(A))}function s(A){return A===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):A===null||A===32||A===60||Vr(A)?t(A):(e.consume(A),s)}function c(A){return A===64?(e.consume(A),h):em(A)?(e.consume(A),c):t(A)}function h(A){return tn(A)?u(A):t(A)}function u(A){return A===46?(e.consume(A),r=0,h):A===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(A),e.exit("autolinkMarker"),e.exit("autolink"),n):f(A)}function f(A){if((A===45||tn(A))&&r++<63){const b=A===45?f:u;return e.consume(A),b}return t(A)}}function Se(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return Ee(s)?(e.enter(t),l(s)):n(s)}function l(s){return Ee(s)&&a++<i?(e.consume(s),l):(e.exit(t),n(s))}}const Wt={tokenize:Jy,partial:!0};function Jy(e,n,t){return r;function r(a){return Ee(a)?Se(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||de(a)?n(a):t(a)}}const ou={name:"blockQuote",tokenize:Zy,continuation:{tokenize:Xy},exit:Gy};function Zy(e,n,t){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return t(o)}function a(o){return Ee(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Xy(e,n,t){const r=this;return i;function i(o){return Ee(o)?Se(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(ou,n,t)(o)}}function Gy(e){e.exit("blockQuote")}const au={name:"characterEscape",tokenize:e0};function e0(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return tm(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const lu={name:"characterReference",tokenize:n0};function n0(e,n,t){const r=this;let i=0,a,o;return l;function l(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),s}function s(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=tn,h(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=nm,h):(e.enter("characterReferenceValue"),a=7,o=Eo,h(u))}function h(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===tn&&!To(r.sliceSerialize(f))?t(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(u)&&i++<a?(e.consume(u),h):t(u)}}const su={tokenize:r0,partial:!0},uu={name:"codeFenced",tokenize:t0,concrete:!0};function t0(e,n,t){const r=this,i={tokenize:M,partial:!0};let a=0,o=0,l;return s;function s(k){return c(k)}function c(k){const F=r.events[r.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,l=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(k)}function h(k){return k===l?(o++,e.consume(k),h):o<3?t(k):(e.exit("codeFencedFenceSequence"),Ee(k)?Se(e,u,"whitespace")(k):u(k))}function u(k){return k===null||de(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(su,v,j)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(k)):Ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,A,"whitespace")(k)):k===96&&k===l?t(k):(e.consume(k),f)}function A(k){return k===null||de(k)?u(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(k)):k===96&&k===l?t(k):(e.consume(k),b)}function v(k){return e.attempt(i,j,S)(k)}function S(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),O}function O(k){return a>0&&Ee(k)?Se(e,B,"linePrefix",a+1)(k):B(k)}function B(k){return k===null||de(k)?e.check(su,v,j)(k):(e.enter("codeFlowValue"),T(k))}function T(k){return k===null||de(k)?(e.exit("codeFlowValue"),B(k)):(e.consume(k),T)}function j(k){return e.exit("codeFenced"),n(k)}function M(k,F,W){let ne=0;return L;function L(H){return k.enter("lineEnding"),k.consume(H),k.exit("lineEnding"),Q}function Q(H){return k.enter("codeFencedFence"),Ee(H)?Se(k,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ue(H)}function ue(H){return H===l?(k.enter("codeFencedFenceSequence"),ye(H)):W(H)}function ye(H){return H===l?(ne++,k.consume(H),ye):ne>=o?(k.exit("codeFencedFenceSequence"),Ee(H)?Se(k,ee,"whitespace")(H):ee(H)):W(H)}function ee(H){return H===null||de(H)?(k.exit("codeFencedFence"),F(H)):W(H)}}}function r0(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const zo={name:"codeIndented",tokenize:o0},i0={tokenize:a0,partial:!0};function o0(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),Se(e,a,"linePrefix",5)(c)}function a(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?s(c):de(c)?e.attempt(i0,o,s)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||de(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function s(c){return e.exit("codeIndented"),n(c)}}function a0(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Se(e,a,"linePrefix",5)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):de(o)?i(o):t(o)}}const l0={name:"codeText",tokenize:c0,resolve:s0,previous:u0};function s0(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function u0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function c0(e,n,t){let r=0,i,a;return o;function o(u){return e.enter("codeText"),e.enter("codeTextSequence"),l(u)}function l(u){return u===96?(e.consume(u),r++,l):(e.exit("codeTextSequence"),s(u))}function s(u){return u===null?t(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),s):u===96?(a=e.enter("codeTextSequence"),i=0,h(u)):de(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||de(u)?(e.exit("codeTextData"),s(u)):(e.consume(u),c)}function h(u){return u===96?(e.consume(u),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(u)):(a.type="codeTextData",c(u))}}class p0{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Yt(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Yt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Yt(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Yt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Yt(this.left,t.reverse())}}}function Yt(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function cu(e){const n={};let t=-1,r,i,a,o,l,s,c;const h=new p0(e);for(;++t<h.length;){for(;t in n;)t=n[t];if(r=h.get(t),t&&r[1].type==="chunkFlow"&&h.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,d0(h,t)),t=n[t],c=!0);else if(r[1]._container){for(a=t,i=void 0;a--&&(o=h.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},h.get(i)[1].start),l=h.slice(i,t),l.unshift(r),h.splice(i,t-i+1,l))}}return An(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function d0(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const a=[],o=t._tokenizer||r.parser[t.contentType](t.start),l=o.events,s=[],c={};let h,u,f=-1,A=t,b=0,v=0;const S=[v];for(;A;){for(;e.get(++i)[1]!==A;);a.push(i),A._tokenizer||(h=r.sliceStream(A),A.next||h.push(null),u&&o.defineSkip(A.start),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),A._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=A,A=A.next}for(A=t;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(v=f+1,S.push(v),A._tokenizer=void 0,A.previous=void 0,A=A.next);for(o.events=[],A?(A._tokenizer=void 0,A.previous=void 0):S.pop(),f=S.length;f--;){const O=l.slice(S[f],S[f+1]),B=a.pop();s.push([B,B+O.length-1]),e.splice(B,2,O)}for(s.reverse(),f=-1;++f<s.length;)c[b+s[f][0]]=b+s[f][1],b+=s[f][1]-s[f][0]-1;return c}const f0={tokenize:y0,resolve:m0},h0={tokenize:A0,partial:!0};function m0(e){return cu(e),e}function y0(e,n){let t;return r;function r(l){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):de(l)?e.check(h0,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),n(l)}function o(l){return e.consume(l),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function A0(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,a,"linePrefix")}function a(o){if(o===null||de(o))return t(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function pu(e,n,t,r,i,a,o,l,s){const c=s||Number.POSITIVE_INFINITY;let h=0;return u;function u(O){return O===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(O),e.exit(a),f):O===null||O===32||O===41||Vr(O)?t(O):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(O))}function f(O){return O===62?(e.enter(a),e.consume(O),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),A(O))}function A(O){return O===62?(e.exit("chunkString"),e.exit(l),f(O)):O===null||O===60||de(O)?t(O):(e.consume(O),O===92?b:A)}function b(O){return O===60||O===62||O===92?(e.consume(O),A):A(O)}function v(O){return!h&&(O===null||O===41||Le(O))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),n(O)):h<c&&O===40?(e.consume(O),h++,v):O===41?(e.consume(O),h--,v):O===null||O===32||O===40||Vr(O)?t(O):(e.consume(O),O===92?S:v)}function S(O){return O===40||O===41||O===92?(e.consume(O),v):v(O)}}function du(e,n,t,r,i,a){const o=this;let l=0,s;return c;function c(A){return e.enter(r),e.enter(i),e.consume(A),e.exit(i),e.enter(a),h}function h(A){return l>999||A===null||A===91||A===93&&!s||A===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(A):A===93?(e.exit(a),e.enter(i),e.consume(A),e.exit(i),e.exit(r),n):de(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),u(A))}function u(A){return A===null||A===91||A===93||de(A)||l++>999?(e.exit("chunkString"),h(A)):(e.consume(A),s||(s=!Ee(A)),A===92?f:u)}function f(A){return A===91||A===92||A===93?(e.consume(A),l++,u):u(A)}}function fu(e,n,t,r,i,a){let o;return l;function l(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,s):t(f)}function s(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),s(o)):f===null?t(f):de(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===o||f===null||de(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?u:h)}function u(f){return f===o||f===92?(e.consume(f),h):h(f)}}function Vt(e,n){let t;return r;function r(i){return de(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):Ee(i)?Se(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const g0={name:"definition",tokenize:v0},b0={tokenize:x0,partial:!0};function v0(e,n,t){const r=this;let i;return a;function a(A){return e.enter("definition"),o(A)}function o(A){return du.call(r,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(A)}function l(A){return i=wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),A===58?(e.enter("definitionMarker"),e.consume(A),e.exit("definitionMarker"),s):t(A)}function s(A){return Le(A)?Vt(e,c)(A):c(A)}function c(A){return pu(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(A)}function h(A){return e.attempt(b0,u,u)(A)}function u(A){return Ee(A)?Se(e,f,"whitespace")(A):f(A)}function f(A){return A===null||de(A)?(e.exit("definition"),r.parser.defined.push(i),n(A)):t(A)}}function x0(e,n,t){return r;function r(l){return Le(l)?Vt(e,i)(l):t(l)}function i(l){return fu(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Ee(l)?Se(e,o,"whitespace")(l):o(l)}function o(l){return l===null||de(l)?n(l):t(l)}}const w0={name:"hardBreakEscape",tokenize:k0};function k0(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return de(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const E0={name:"headingAtx",tokenize:S0,resolve:C0};function C0(e,n){let t=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},An(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function S0(e,n,t){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(e.consume(h),o):h===null||Le(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),s(h)):h===null||de(h)?(e.exit("atxHeading"),n(h)):Ee(h)?Se(e,l,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function s(h){return h===35?(e.consume(h),s):(e.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||Le(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),c)}}const B0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hu=["pre","script","style","textarea"],I0={name:"htmlFlow",tokenize:T0,resolveTo:_0,concrete:!0},O0={tokenize:j0,partial:!0},P0={tokenize:L0,partial:!0};function _0(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function T0(e,n,t){const r=this;let i,a,o,l,s;return c;function c(P){return h(P)}function h(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),u}function u(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),a=!0,v):P===63?(e.consume(P),i=3,r.interrupt?n:I):an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function f(P){return P===45?(e.consume(P),i=2,A):P===91?(e.consume(P),i=5,l=0,b):an(P)?(e.consume(P),i=4,r.interrupt?n:I):t(P)}function A(P){return P===45?(e.consume(P),r.interrupt?n:I):t(P)}function b(P){const Be="CDATA[";return P===Be.charCodeAt(l++)?(e.consume(P),l===Be.length?r.interrupt?n:ue:b):t(P)}function v(P){return an(P)?(e.consume(P),o=String.fromCharCode(P),S):t(P)}function S(P){if(P===null||P===47||P===62||Le(P)){const Be=P===47,Me=o.toLowerCase();return!Be&&!a&&hu.includes(Me)?(i=1,r.interrupt?n(P):ue(P)):B0.includes(o.toLowerCase())?(i=6,Be?(e.consume(P),O):r.interrupt?n(P):ue(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(P):a?B(P):T(P))}return P===45||tn(P)?(e.consume(P),o+=String.fromCharCode(P),S):t(P)}function O(P){return P===62?(e.consume(P),r.interrupt?n:ue):t(P)}function B(P){return Ee(P)?(e.consume(P),B):L(P)}function T(P){return P===47?(e.consume(P),L):P===58||P===95||an(P)?(e.consume(P),j):Ee(P)?(e.consume(P),T):L(P)}function j(P){return P===45||P===46||P===58||P===95||tn(P)?(e.consume(P),j):M(P)}function M(P){return P===61?(e.consume(P),k):Ee(P)?(e.consume(P),M):T(P)}function k(P){return P===null||P===60||P===61||P===62||P===96?t(P):P===34||P===39?(e.consume(P),s=P,F):Ee(P)?(e.consume(P),k):W(P)}function F(P){return P===s?(e.consume(P),s=null,ne):P===null||de(P)?t(P):(e.consume(P),F)}function W(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Le(P)?M(P):(e.consume(P),W)}function ne(P){return P===47||P===62||Ee(P)?T(P):t(P)}function L(P){return P===62?(e.consume(P),Q):t(P)}function Q(P){return P===null||de(P)?ue(P):Ee(P)?(e.consume(P),Q):t(P)}function ue(P){return P===45&&i===2?(e.consume(P),V):P===60&&i===1?(e.consume(P),ie):P===62&&i===4?(e.consume(P),fe):P===63&&i===3?(e.consume(P),I):P===93&&i===5?(e.consume(P),$):de(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(O0,we,ye)(P)):P===null||de(P)?(e.exit("htmlFlowData"),ye(P)):(e.consume(P),ue)}function ye(P){return e.check(P0,ee,we)(P)}function ee(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),H}function H(P){return P===null||de(P)?ye(P):(e.enter("htmlFlowData"),ue(P))}function V(P){return P===45?(e.consume(P),I):ue(P)}function ie(P){return P===47?(e.consume(P),o="",Z):ue(P)}function Z(P){if(P===62){const Be=o.toLowerCase();return hu.includes(Be)?(e.consume(P),fe):ue(P)}return an(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),Z):ue(P)}function $(P){return P===93?(e.consume(P),I):ue(P)}function I(P){return P===62?(e.consume(P),fe):P===45&&i===2?(e.consume(P),I):ue(P)}function fe(P){return P===null||de(P)?(e.exit("htmlFlowData"),we(P)):(e.consume(P),fe)}function we(P){return e.exit("htmlFlow"),n(P)}}function L0(e,n,t){const r=this;return i;function i(o){return de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function j0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wt,n,t)}}const D0={name:"htmlText",tokenize:M0};function M0(e,n,t){const r=this;let i,a,o;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),s}function s(I){return I===33?(e.consume(I),c):I===47?(e.consume(I),M):I===63?(e.consume(I),T):an(I)?(e.consume(I),W):t(I)}function c(I){return I===45?(e.consume(I),h):I===91?(e.consume(I),a=0,b):an(I)?(e.consume(I),B):t(I)}function h(I){return I===45?(e.consume(I),A):t(I)}function u(I){return I===null?t(I):I===45?(e.consume(I),f):de(I)?(o=u,ie(I)):(e.consume(I),u)}function f(I){return I===45?(e.consume(I),A):u(I)}function A(I){return I===62?V(I):I===45?f(I):u(I)}function b(I){const fe="CDATA[";return I===fe.charCodeAt(a++)?(e.consume(I),a===fe.length?v:b):t(I)}function v(I){return I===null?t(I):I===93?(e.consume(I),S):de(I)?(o=v,ie(I)):(e.consume(I),v)}function S(I){return I===93?(e.consume(I),O):v(I)}function O(I){return I===62?V(I):I===93?(e.consume(I),O):v(I)}function B(I){return I===null||I===62?V(I):de(I)?(o=B,ie(I)):(e.consume(I),B)}function T(I){return I===null?t(I):I===63?(e.consume(I),j):de(I)?(o=T,ie(I)):(e.consume(I),T)}function j(I){return I===62?V(I):T(I)}function M(I){return an(I)?(e.consume(I),k):t(I)}function k(I){return I===45||tn(I)?(e.consume(I),k):F(I)}function F(I){return de(I)?(o=F,ie(I)):Ee(I)?(e.consume(I),F):V(I)}function W(I){return I===45||tn(I)?(e.consume(I),W):I===47||I===62||Le(I)?ne(I):t(I)}function ne(I){return I===47?(e.consume(I),V):I===58||I===95||an(I)?(e.consume(I),L):de(I)?(o=ne,ie(I)):Ee(I)?(e.consume(I),ne):V(I)}function L(I){return I===45||I===46||I===58||I===95||tn(I)?(e.consume(I),L):Q(I)}function Q(I){return I===61?(e.consume(I),ue):de(I)?(o=Q,ie(I)):Ee(I)?(e.consume(I),Q):ne(I)}function ue(I){return I===null||I===60||I===61||I===62||I===96?t(I):I===34||I===39?(e.consume(I),i=I,ye):de(I)?(o=ue,ie(I)):Ee(I)?(e.consume(I),ue):(e.consume(I),ee)}function ye(I){return I===i?(e.consume(I),i=void 0,H):I===null?t(I):de(I)?(o=ye,ie(I)):(e.consume(I),ye)}function ee(I){return I===null||I===34||I===39||I===60||I===61||I===96?t(I):I===47||I===62||Le(I)?ne(I):(e.consume(I),ee)}function H(I){return I===47||I===62||Le(I)?ne(I):t(I)}function V(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),n):t(I)}function ie(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Z}function Z(I){return Ee(I)?Se(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):$(I)}function $(I){return e.enter("htmlTextData"),o(I)}}const Fo={name:"labelEnd",tokenize:U0,resolveTo:q0,resolveAll:N0},z0={tokenize:H0},F0={tokenize:$0},R0={tokenize:W0};function N0(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function q0(e,n){let t=e.length,r=0,i,a,o,l;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},h={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return l=[["enter",s,n],["enter",c,n]],l=gn(l,e.slice(a+1,a+r+3)),l=gn(l,[["enter",h,n]]),l=gn(l,Jr(n.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),n)),l=gn(l,[["exit",h,n],e[o-2],e[o-1],["exit",c,n]]),l=gn(l,e.slice(o+1)),l=gn(l,[["exit",s,n]]),An(e,a,e.length,l),e}function U0(e,n,t){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return l;function l(f){return a?a._inactive?u(f):(o=r.parser.defined.includes(wn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):t(f)}function s(f){return f===40?e.attempt(z0,h,o?h:u)(f):f===91?e.attempt(F0,h,o?c:u)(f):o?h(f):u(f)}function c(f){return e.attempt(R0,h,u)(f)}function h(f){return n(f)}function u(f){return a._balanced=!0,t(f)}}function H0(e,n,t){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return Le(u)?Vt(e,a)(u):a(u)}function a(u){return u===41?h(u):pu(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return Le(u)?Vt(e,s)(u):h(u)}function l(u){return t(u)}function s(u){return u===34||u===39||u===40?fu(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):h(u)}function c(u){return Le(u)?Vt(e,h)(u):h(u)}function h(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),n):t(u)}}function $0(e,n,t){const r=this;return i;function i(l){return du.call(r,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(wn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(l):t(l)}function o(l){return t(l)}}function W0(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}const Y0={name:"labelStartImage",tokenize:V0,resolveAll:Fo.resolveAll};function V0(e,n,t){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):t(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const K0={name:"labelStartLink",tokenize:Q0,resolveAll:Fo.resolveAll};function Q0(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Ro={name:"lineEnding",tokenize:J0};function J0(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,n,"linePrefix")}}const Zr={name:"thematicBreak",tokenize:Z0};function Z0(e,n,t){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||de(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),Ee(c)?Se(e,l,"whitespace")(c):l(c))}}const cn={name:"list",tokenize:eA,continuation:{tokenize:nA},exit:rA},X0={tokenize:iA,partial:!0},G0={tokenize:tA,partial:!0};function eA(e,n,t){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(A){const b=r.containerState.type||(A===42||A===43||A===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||A===r.containerState.marker:Eo(A)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),A===42||A===45?e.check(Zr,t,c)(A):c(A);if(!r.interrupt||A===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(A)}return t(A)}function s(A){return Eo(A)&&++o<10?(e.consume(A),s):(!r.interrupt||o<2)&&(r.containerState.marker?A===r.containerState.marker:A===41||A===46)?(e.exit("listItemValue"),c(A)):t(A)}function c(A){return e.enter("listItemMarker"),e.consume(A),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||A,e.check(Wt,r.interrupt?t:h,e.attempt(X0,f,u))}function h(A){return r.containerState.initialBlankLine=!0,a++,f(A)}function u(A){return Ee(A)?(e.enter("listItemPrefixWhitespace"),e.consume(A),e.exit("listItemPrefixWhitespace"),f):t(A)}function f(A){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(A)}}function nA(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Wt,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,n,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Ee(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(G0,n,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt(cn,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function tA(e,n,t){const r=this;return Se(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(a):t(a)}}function rA(e){e.exit(this.containerState.type)}function iA(e,n,t){const r=this;return Se(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Ee(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const mu={name:"setextUnderline",tokenize:aA,resolveTo:oA};function oA(e,n){let t=e.length,r,i,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function aA(e,n,t){const r=this;let i;return a;function a(c){let h=r.events.length,u;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){u=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Ee(c)?Se(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||de(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const lA={tokenize:mA,partial:!0};function sA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:dA,continuation:{tokenize:fA},exit:hA}},text:{91:{name:"gfmFootnoteCall",tokenize:pA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uA,resolveTo:cA}}}}function uA(e,n,t){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!o||!o._balanced)return t(s);const c=wn(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function cA(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...l),e}function pA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return l;function l(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),s}function s(u){return u!==94?t(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!o||u===null||u===91||Le(u))return t(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(wn(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(u)}return Le(u)||(o=!0),a++,e.consume(u),u===92?h:c}function h(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function dA(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,l;return s;function s(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||Le(b))return t(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=wn(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Le(b)||(l=!0),o++,e.consume(b),b===92?u:h}function u(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Se(e,A,"gfmFootnoteDefinitionWhitespace")):t(b)}function A(b){return n(b)}}function fA(e,n,t){return e.check(Wt,n,e.attempt(lA,n,t))}function hA(e){e.exit("gfmFootnoteDefinition")}function mA(e,n,t){const r=this;return Se(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function yA(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let c=s;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[s][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[s][1].end)},u={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[s][1].start)},f=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",u,l]],A=l.parser.constructs.insideSpan.null;A&&An(f,f.length,0,Jr(A,o.slice(c+1,s),l)),An(f,f.length,0,[["exit",u,l],["enter",o[s][1],l],["exit",o[s][1],l],["exit",h,l]]),An(o,c-1,s-c+3,f),s=c+f.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function a(o,l,s){const c=this.previous,h=this.events;let u=0;return f;function f(b){return c===126&&h[h.length-1][1].type!=="characterEscape"?s(b):(o.enter("strikethroughSequenceTemporary"),A(b))}function A(b){const v=Qr(c);if(b===126)return u>1?s(b):(o.consume(b),u++,A);if(u<2&&!t)return s(b);const S=o.exit("strikethroughSequenceTemporary"),O=Qr(b);return S._open=!O||O===2&&!!v,S._close=!v||v===2&&!!O,l(b)}}}class AA{constructor(){this.map=[]}add(n,t,r){gA(this,n,t,r)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}}function gA(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function bA(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function vA(){return{flow:{null:{name:"table",tokenize:xA,resolveAll:wA}}}}function xA(e,n,t){const r=this;let i=0,a=0,o;return l;function l(L){let Q=r.events.length-1;for(;Q>-1;){const ee=r.events[Q][1].type;if(ee==="lineEnding"||ee==="linePrefix")Q--;else break}const ue=Q>-1?r.events[Q][1].type:null,ye=ue==="tableHead"||ue==="tableRow"?k:s;return ye===k&&r.parser.lazy[r.now().line]?t(L):ye(L)}function s(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),h(L)}function h(L){return L===null?t(L):de(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),A):t(L):Ee(L)?Se(e,h,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),u(L)))}function u(L){return L===null||L===124||Le(L)?(e.exit("data"),h(L)):(e.consume(L),L===92?f:u)}function f(L){return L===92||L===124?(e.consume(L),u):u(L)}function A(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(L):(e.enter("tableDelimiterRow"),o=!1,Ee(L)?Se(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):b(L))}function b(L){return L===45||L===58?S(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):M(L)}function v(L){return Ee(L)?Se(e,S,"whitespace")(L):S(L)}function S(L){return L===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),O):L===45?(a+=1,O(L)):L===null||de(L)?j(L):M(L)}function O(L){return L===45?(e.enter("tableDelimiterFiller"),B(L)):M(L)}function B(L){return L===45?(e.consume(L),B):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(L))}function T(L){return Ee(L)?Se(e,j,"whitespace")(L):j(L)}function j(L){return L===124?b(L):L===null||de(L)?!o||i!==a?M(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):M(L)}function M(L){return t(L)}function k(L){return e.enter("tableRow"),F(L)}function F(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),F):L===null||de(L)?(e.exit("tableRow"),n(L)):Ee(L)?Se(e,F,"whitespace")(L):(e.enter("data"),W(L))}function W(L){return L===null||L===124||Le(L)?(e.exit("data"),F(L)):(e.consume(L),L===92?ne:W)}function ne(L){return L===92||L===124?(e.consume(L),W):W(L)}}function wA(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,s=0,c,h,u;const f=new AA;for(;++t<e.length;){const A=e[t],b=A[1];A[0]==="enter"?b.type==="tableHead"?(l=!1,s!==0&&(yu(f,n,s,c,h),h=void 0,s=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",c,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],o=[0,t+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(t,0,[["enter",h,n]])),i=b.type==="tableDelimiterRow"?2:h?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],u=Xr(f,n,a,i,void 0,u),a=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],u=Xr(f,n,a,i,void 0,u)),a=o,o=[a[1],t,0,0])):b.type==="tableHead"?(l=!0,s=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(s=t,a[1]!==0?(o[0]=o[1],u=Xr(f,n,a,i,t,u)):o[1]!==0&&(u=Xr(f,n,o,i,t,u)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&yu(f,n,s,c,h),f.consume(n.events),t=-1;++t<n.events.length;){const A=n.events[t];A[0]==="enter"&&A[1].type==="table"&&(A[1]._align=bA(n.events,t))}return e}function Xr(e,n,t,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";t[0]!==0&&(a.end=Object.assign({},xt(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const s=xt(n.events,t[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const c=xt(n.events,t[2]),h=xt(n.events,t[3]),u={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(t[2],0,[["enter",u,n]]),r!==2){const f=n.events[t[2]],A=n.events[t[3]];if(f[1].end=Object.assign({},A[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){const b=t[2]+1,v=t[3]-t[2]-1;e.add(b,v,[])}}e.add(t[3]+1,0,[["exit",u,n]])}return i!==void 0&&(a.end=Object.assign({},xt(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function yu(e,n,t,r,i){const a=[],o=xt(n.events,t);i&&(i.end=Object.assign({},o),a.push(["exit",i,n])),r.end=Object.assign({},o),a.push(["exit",r,n]),e.add(t+1,0,a)}function xt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const kA={name:"tasklistCheck",tokenize:CA};function EA(){return{text:{91:kA}}}function CA(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return Le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(s)}function l(s){return de(s)?n(s):Ee(s)?e.check({tokenize:SA},n,t)(s):t(s)}}function SA(e,n,t){return Se(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function BA(e){return Qs([zy(),sA(),yA(e),vA(),EA()])}const IA={};function OA(e){const n=this,t=e||IA,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(BA(t)),a.push(_y()),o.push(Ty(t))}function PA(e){const[n,t]=re.useState(!1),[r,i]=re.useState();return re.useEffect(()=>{Promise.resolve().then(()=>Cv).then(a=>{i(q.jsx(a.default,{remarkPlugins:[Gh,OA],children:e.value}))})},[e.value]),q.jsxs("div",{className:"zyjj-lab-markdown",style:{position:"relative"},children:[e.value?q.jsxs(te.Space,{style:{position:"absolute",right:0,margin:5,zIndex:99},children:[q.jsx($r,{noSuccess:!0,onClick:async()=>t(a=>!a),icon:n?q.jsx(Ao,{}):q.jsx(xo,{}),tip:n?"预览":"编辑"}),q.jsx(Fh,{value:e.value})]}):q.jsx(q.Fragment,{}),n?q.jsx(te.Input.TextArea,{style:{borderRadius:5,padding:10},autoSize:!0,value:e.value,onChange:e.onChange}):q.jsx("div",{style:{padding:10},children:r})]})}const _A=Object.freeze(Object.defineProperty({__proto__:null,default:PA},Symbol.toStringTag,{value:"Module"}));function TA(e){const[n,t]=re.useState(""),r=re.useCallback(i=>{if(!i||!e.value)return;let a={};typeof e.value=="string"?(t(e.value),a.url=e.value,a.name=e.value.split("/").pop()):(a=e.value,t(a.url)),Promise.resolve().then(()=>Sv).then(o=>{new o.default({container:i,loop:"none",lrcType:1,audio:[a]})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"99%",borderRadius:5},ref:r}),q.jsx(bs,{link:n})]})}const LA=Object.freeze(Object.defineProperty({__proto__:null,default:TA},Symbol.toStringTag,{value:"Module"}));function jA(e){const{value:n,data:t,onChange:r}=e,i=(t==null?void 0:t.max_size)||10*1024*1024,[a,o]=re.useState([]),l=s=>{console.log("custom upload",s);const{onSuccess:c,file:h}=s;if(h.size>i){te.Message.warning(`文件大小超过 ${i/1024/1024}M, 请重新上传!`),o([]);return}t!=null&&t.no_path&&(h.path=void 0),r&&r(ol(h)),c()};return re.useEffect(()=>{o(n?[{uid:n.uid,name:n.name}]:[])},[n]),q.jsx(te.Upload,{accept:t==null?void 0:t.accept,fileList:a,onChange:o,onRemove:()=>r(void 0),limit:1,customRequest:l,children:q.jsx(te.Button,{type:"outline",icon:q.jsx(bo,{}),children:"点击上传"})})}const DA=Object.freeze(Object.defineProperty({__proto__:null,default:jA},Symbol.toStringTag,{value:"Module"}));function MA(e){var n,t,r;return q.jsx(te.InputNumber,{value:e.value,onChange:e.onChange,mode:"button",max:(n=e.data)==null?void 0:n.max,min:(t=e.data)==null?void 0:t.min,step:(r=e.data)==null?void 0:r.step})}const Au=Object.freeze(Object.defineProperty({__proto__:null,default:MA},Symbol.toStringTag,{value:"Module"}));function zA(e){var n;return e.value?q.jsx(te.Image.PreviewGroup,{infinite:!0,children:q.jsx(te.Grid,{cols:4,colGap:5,rowGap:5,children:(n=e.value)==null?void 0:n.map((t,r)=>q.jsx(te.Grid.GridItem,{children:q.jsx(vs,{src:t})},r))})}):q.jsx(q.Fragment,{})}const FA=Object.freeze(Object.defineProperty({__proto__:null,default:zA},Symbol.toStringTag,{value:"Module"}));function RA(e){return e.value?q.jsx(te.Space,{children:q.jsx(vs,{src:e.value})}):q.jsx(q.Fragment,{})}const NA=Object.freeze(Object.defineProperty({__proto__:null,default:RA},Symbol.toStringTag,{value:"Module"}));function qA(e){var n,t;return q.jsx(te.Alert,{content:(n=e.data)==null?void 0:n.content,type:(t=e.data)==null?void 0:t.type})}const UA=Object.freeze(Object.defineProperty({__proto__:null,default:qA},Symbol.toStringTag,{value:"Module"}));function HA(e){var t;const n=re.useCallback(r=>{!r||!e.value||Promise.resolve().then(()=>Bv).then(i=>{var a;new i.default({container:r,screenshot:!0,video:{url:(a=e.value)==null?void 0:a.url}})})},[e.value]);return q.jsxs(te.Space,{direction:"vertical",children:[q.jsx("div",{style:{width:"100%",borderRadius:5},ref:n}),q.jsx(bs,{link:(t=e.value)==null?void 0:t.url})]})}const $A=Object.freeze(Object.defineProperty({__proto__:null,default:HA},Symbol.toStringTag,{value:"Module"}));function WA(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const YA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KA={};function gu(e,n){return(KA.jsx?VA:YA).test(e)}const QA=/[ \t\n\f\r]/g;function JA(e){return typeof e=="object"?e.type==="text"?bu(e.value):!1:bu(e)}function bu(e){return e.replace(QA,"")===""}class Kt{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}Kt.prototype.property={},Kt.prototype.normal={},Kt.prototype.space=null;function vu(e,n){const t={},r={};let i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(r,e[i].normal);return new Kt(t,r,n)}function No(e){return e.toLowerCase()}class bn{constructor(n,t){this.property=n,this.attribute=t}}bn.prototype.space=null,bn.prototype.boolean=!1,bn.prototype.booleanish=!1,bn.prototype.overloadedBoolean=!1,bn.prototype.number=!1,bn.prototype.commaSeparated=!1,bn.prototype.spaceSeparated=!1,bn.prototype.commaOrSpaceSeparated=!1,bn.prototype.mustUseProperty=!1,bn.prototype.defined=!1;let ZA=0;const ge=at(),Ve=at(),xu=at(),K=at(),De=at(),wt=at(),hn=at();function at(){return 2**++ZA}const qo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:Ve,commaOrSpaceSeparated:hn,commaSeparated:wt,number:K,overloadedBoolean:xu,spaceSeparated:De},Symbol.toStringTag,{value:"Module"})),Uo=Object.keys(qo);class Ho extends bn{constructor(n,t,r,i){let a=-1;if(super(n,t),wu(this,"space",i),typeof r=="number")for(;++a<Uo.length;){const o=Uo[a];wu(this,Uo[a],(r&qo[o])===qo[o])}}}Ho.prototype.defined=!0;function wu(e,n,t){t&&(e[n]=t)}const XA={}.hasOwnProperty;function kt(e){const n={},t={};let r;for(r in e.properties)if(XA.call(e.properties,r)){const i=e.properties[r],a=new Ho(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),n[r]=a,t[No(r)]=r,t[No(a.attribute)]=r}return new Kt(n,t,e.space)}const ku=kt({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Eu=kt({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Cu(e,n){return n in e?e[n]:n}function Su(e,n){return Cu(e,n.toLowerCase())}const Bu=kt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Su,properties:{xmlns:null,xmlnsXLink:null}}),Iu=kt({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:De,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:K,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:De,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Ve,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null}}),GA=kt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Su,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wt,acceptCharset:De,accessKey:De,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:De,autoFocus:ge,autoPlay:ge,blocking:De,capture:null,charSet:null,checked:ge,cite:null,className:De,cols:K,colSpan:null,content:null,contentEditable:Ve,controls:ge,controlsList:De,coords:K|wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:xu,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:De,height:K,hidden:ge,high:K,href:null,hrefLang:null,htmlFor:De,httpEquiv:De,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:De,itemRef:De,itemScope:ge,itemType:De,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:K,pattern:null,ping:De,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:De,required:ge,reversed:ge,rows:K,rowSpan:K,sandbox:De,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:Ve,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:De,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:K,security:null,unselectable:null}}),eg=kt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Cu,properties:{about:hn,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:De,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wt,g2:wt,glyphName:wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:De,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ng=/^data[-\w.:]+$/i,Ou=/-[a-z]/g,tg=/[A-Z]/g;function rg(e,n){const t=No(n);let r=n,i=bn;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ng.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(Ou,og);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!Ou.test(a)){let o=a.replace(tg,ig);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ho}return new i(r,n)}function ig(e){return"-"+e.toLowerCase()}function og(e){return e.charAt(1).toUpperCase()}const ag={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},lg=vu([Eu,ku,Bu,Iu,GA],"html"),$o=vu([Eu,ku,Bu,Iu,eg],"svg");function sg(e){return e.join(" ").trim()}var Pu={},_u=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ug=/\n/g,cg=/^\s*/,pg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,dg=/^:\s*/,fg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hg=/^[;\s]*/,mg=/^\s+|\s+$/g,yg=`
51
51
  `,Tu="/",Lu="*",lt="",Ag="comment",gg="declaration",bg=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(b){var v=b.match(ug);v&&(t+=v.length);var S=b.lastIndexOf(yg);r=~S?b.length-S:r+b.length}function a(){var b={line:t,column:r};return function(v){return v.position=new o(b),c(),v}}function o(b){this.start=b,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function l(b){var v=new Error(n.source+":"+t+":"+r+": "+b);if(v.reason=b,v.filename=n.source,v.line=t,v.column=r,v.source=e,!n.silent)throw v}function s(b){var v=b.exec(e);if(v){var S=v[0];return i(S),e=e.slice(S.length),v}}function c(){s(cg)}function h(b){var v;for(b=b||[];v=u();)v!==!1&&b.push(v);return b}function u(){var b=a();if(!(Tu!=e.charAt(0)||Lu!=e.charAt(1))){for(var v=2;lt!=e.charAt(v)&&(Lu!=e.charAt(v)||Tu!=e.charAt(v+1));)++v;if(v+=2,lt===e.charAt(v-1))return l("End of comment missing");var S=e.slice(2,v-2);return r+=2,i(S),e=e.slice(v),r+=2,b({type:Ag,comment:S})}}function f(){var b=a(),v=s(pg);if(v){if(u(),!s(dg))return l("property missing ':'");var S=s(fg),O=b({type:gg,property:ju(v[0].replace(_u,lt)),value:S?ju(S[0].replace(_u,lt)):lt});return s(hg),O}}function A(){var b=[];h(b);for(var v;v=f();)v!==!1&&(b.push(v),h(b));return b}return c(),A()};function ju(e){return e?e.replace(mg,lt):lt}var vg=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pu,"__esModule",{value:!0});var xg=vg(bg);function wg(e,n){var t=null;if(!e||typeof e!="string")return t;var r=(0,xg.default)(e),i=typeof n=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,l=a.value;i?n(o,l,a):l&&(t=t||{},t[o]=l)}}),t}var Du=Pu.default=wg;const kg=Du.default||Du,Mu=zu("end"),Wo=zu("start");function zu(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Eg(e){const n=Wo(e),t=Mu(e);if(n&&t)return{start:n,end:t}}function Qt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fu(e.position):"start"in e||"end"in e?Fu(e):"line"in e||"column"in e?Yo(e):""}function Yo(e){return Ru(e&&e.line)+":"+Ru(e&&e.column)}function Fu(e){return Yo(e&&e.start)+"-"+Yo(e&&e.end)}function Ru(e){return e&&typeof e=="number"?e:1}class rn extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?i=n:!a.cause&&n&&(o=!0,i=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?a.ruleId=r:(a.source=r.slice(0,s),a.ruleId=r.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=l?l.line:void 0,this.name=Qt(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}rn.prototype.file="",rn.prototype.name="",rn.prototype.reason="",rn.prototype.message="",rn.prototype.stack="",rn.prototype.column=void 0,rn.prototype.line=void 0,rn.prototype.ancestors=void 0,rn.prototype.cause=void 0,rn.prototype.fatal=void 0,rn.prototype.place=void 0,rn.prototype.ruleId=void 0,rn.prototype.source=void 0;const Vo={}.hasOwnProperty,Cg=new Map,Sg=/[A-Z]/g,Bg=/-([a-z])/g,Ig=new Set(["table","tbody","thead","tfoot","tr"]),Og=new Set(["td","th"]),Nu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pg(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Fg(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=zg(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?$o:lg,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=qu(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function qu(e,n,t){if(n.type==="element")return _g(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Tg(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return jg(e,n,t);if(n.type==="mdxjsEsm")return Lg(e,n);if(n.type==="root")return Dg(e,n,t);if(n.type==="text")return Mg(e,n)}function _g(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$o,e.schema=i),e.ancestors.push(n);const a=Hu(e,n.tagName,!1),o=Rg(e,n);let l=Qo(e,n);return Ig.has(n.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!JA(s):!0})),Uu(e,o,a,n),Ko(o,l),e.ancestors.pop(),e.schema=r,e.create(n,a,o,t)}function Tg(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Jt(e,n.position)}function Lg(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Jt(e,n.position)}function jg(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=$o,e.schema=i),e.ancestors.push(n);const a=n.name===null?e.Fragment:Hu(e,n.name,!0),o=Ng(e,n),l=Qo(e,n);return Uu(e,o,a,n),Ko(o,l),e.ancestors.pop(),e.schema=r,e.create(n,a,o,t)}function Dg(e,n,t){const r={};return Ko(r,Qo(e,n)),e.create(n,e.Fragment,r,t)}function Mg(e,n){return n.value}function Uu(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Ko(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function zg(e,n,t){return r;function r(i,a,o,l){const c=Array.isArray(o.children)?t:n;return l?c(a,o,l):c(a,o)}}function Fg(e,n){return t;function t(r,i,a,o){const l=Array.isArray(a.children),s=Wo(r);return n(i,a,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Rg(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Vo.call(n.properties,i)){const a=qg(e,i,n.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Og.has(n.tagName)?r=l:t[o]=l}}if(r){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ng(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(t,e.evaluater.evaluateExpression(l.argument))}else Jt(e,n.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else Jt(e,n.position);else a=r.value===null?!0:r.value;t[i]=a}return t}function Qo(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Cg;for(;++r<n.children.length;){const a=n.children[r];let o;if(e.passKeys){const s=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(s){const c=i.get(s)||0;o=s+"-"+c,i.set(s,c+1)}}const l=qu(e,a,o);l!==void 0&&t.push(l)}return t}function qg(e,n,t){const r=rg(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?WA(t):sg(t)),r.property==="style"){let i=typeof t=="object"?t:Ug(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Hg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ag[r.property]||r.property:r.attribute,t]}}function Ug(e,n){const t={};try{kg(n,r)}catch(i){if(!e.ignoreInvalidStyle){const a=i,o=new rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Nu+"#cannot-parse-style-attribute",o}}return t;function r(i,a){let o=i;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(Bg,Wg)),t[o]=a}}function Hu(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let a=-1,o;for(;++a<i.length;){const l=gu(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=o}else r=gu(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Vo.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Jt(e)}function Jt(e,n){const t=new rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Nu+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Hg(e){const n={};let t;for(t in e)Vo.call(e,t)&&(n[$g(t)]=e[t]);return n}function $g(e){let n=e.replace(Sg,Yg);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Wg(e,n){return n.toUpperCase()}function Yg(e){return"-"+e.toLowerCase()}const Jo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Vg={tokenize:Kg};function Kg(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Se(e,n,"linePrefix")}function i(l){return e.enter("paragraph"),a(l)}function a(l){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return de(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const Qg={tokenize:Jg},$u={tokenize:Zg};function Jg(e){const n=this,t=[];let r=0,i,a,o;return l;function l(T){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,c)(T)}return c(T)}function s(T){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&B();const j=n.events.length;let M=j,k;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){k=n.events[M][1].end;break}O(r);let F=j;for(;F<n.events.length;)n.events[F][1].end=Object.assign({},k),F++;return An(n.events,M+1,0,n.events.slice(j)),n.events.length=F,c(T)}return l(T)}function c(T){if(r===t.length){if(!i)return f(T);if(i.currentConstruct&&i.currentConstruct.concrete)return b(T);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check($u,h,u)(T)}function h(T){return i&&B(),O(r),f(T)}function u(T){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(T)}function f(T){return n.containerState={},e.attempt($u,A,b)(T)}function A(T){return r++,t.push([n.currentConstruct,n.containerState]),f(T)}function b(T){if(T===null){i&&B(),O(0),e.consume(T);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(T)}function v(T){if(T===null){S(e.exit("chunkFlow"),!0),O(0),e.consume(T);return}return de(T)?(e.consume(T),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,l):(e.consume(T),v)}function S(T,j){const M=n.sliceStream(T);if(j&&M.push(null),T.previous=a,a&&(a.next=T),a=T,i.defineSkip(T.start),i.write(M),n.parser.lazy[T.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const F=n.events.length;let W=F,ne,L;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type==="chunkFlow"){if(ne){L=n.events[W][1].end;break}ne=!0}for(O(r),k=F;k<n.events.length;)n.events[k][1].end=Object.assign({},L),k++;An(n.events,W+1,0,n.events.slice(F)),n.events.length=k}}function O(T){let j=t.length;for(;j-- >T;){const M=t[j];n.containerState=M[1],M[0].exit.call(n,e)}t.length=T}function B(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Zg(e,n,t){return Se(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Xg={tokenize:Gg};function Gg(e){const n=this,t=e.attempt(Wt,r,e.attempt(this.parser.constructs.flowInitial,i,Se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(f0,i)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const eb={resolveAll:Yu()},nb=Wu("string"),tb=Wu("text");function Wu(e){return{tokenize:n,resolveAll:Yu(e==="text"?rb:void 0)};function n(t){const r=this,i=this.parser.constructs[e],a=t.attempt(i,o,l);return o;function o(h){return c(h)?a(h):l(h)}function l(h){if(h===null){t.consume(h);return}return t.enter("data"),t.consume(h),s}function s(h){return c(h)?(t.exit("data"),a(h)):(t.consume(h),s)}function c(h){if(h===null)return!0;const u=i[h];let f=-1;if(u)for(;++f<u.length;){const A=u[f];if(!A.previous||A.previous.call(r,r.previous))return!0}return!1}}}function Yu(e){return n;function n(t,r){let i=-1,a;for(;++i<=t.length;)a===void 0?t[i]&&t[i][1].type==="data"&&(a=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,r):t}}function rb(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let a=i.length,o=-1,l=0,s;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)s=!0,l++;else if(c!==-1){a++;break}}if(l){const c={type:t===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}function ib(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],l=[];const s={consume:B,enter:T,exit:j,attempt:F(M),check:F(k),interrupt:F(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:A,sliceSerialize:f,now:b,defineSkip:v,write:u};let h=n.tokenize.call(c,s);return n.resolveAll&&a.push(n),c;function u(Q){return o=gn(o,Q),S(),o[o.length-1]!==null?[]:(W(n,0),c.events=Jr(a,c.events,c),c.events)}function f(Q,ue){return ab(A(Q),ue)}function A(Q){return ob(o,Q)}function b(){const{line:Q,column:ue,offset:ye,_index:ee,_bufferIndex:H}=r;return{line:Q,column:ue,offset:ye,_index:ee,_bufferIndex:H}}function v(Q){i[Q.line]=Q.column,L()}function S(){let Q;for(;r._index<o.length;){const ue=o[r._index];if(typeof ue=="string")for(Q=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Q&&r._bufferIndex<ue.length;)O(ue.charCodeAt(r._bufferIndex));else O(ue)}}function O(Q){h=h(Q)}function B(Q){de(Q)?(r.line++,r.column=1,r.offset+=Q===-3?2:1,L()):Q!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=Q}function T(Q,ue){const ye=ue||{};return ye.type=Q,ye.start=b(),c.events.push(["enter",ye,c]),l.push(ye),ye}function j(Q){const ue=l.pop();return ue.end=b(),c.events.push(["exit",ue,c]),ue}function M(Q,ue){W(Q,ue.from)}function k(Q,ue){ue.restore()}function F(Q,ue){return ye;function ye(ee,H,V){let ie,Z,$,I;return Array.isArray(ee)?we(ee):"tokenize"in ee?we([ee]):fe(ee);function fe(ke){return Ue;function Ue(ze){const Re=ze!==null&&ke[ze],Pe=ze!==null&&ke.null,en=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return we(en)(ze)}}function we(ke){return ie=ke,Z=0,ke.length===0?V:P(ke[Z])}function P(ke){return Ue;function Ue(ze){return I=ne(),$=ke,ke.partial||(c.currentConstruct=ke),ke.name&&c.parser.constructs.disable.null.includes(ke.name)?Me():ke.tokenize.call(ue?Object.assign(Object.create(c),ue):c,s,Be,Me)(ze)}}function Be(ke){return Q($,I),H}function Me(ke){return I.restore(),++Z<ie.length?P(ie[Z]):V}}}function W(Q,ue){Q.resolveAll&&!a.includes(Q)&&a.push(Q),Q.resolve&&An(c.events,ue,c.events.length-ue,Q.resolve(c.events.slice(ue),c)),Q.resolveTo&&(c.events=Q.resolveTo(c.events,c))}function ne(){const Q=b(),ue=c.previous,ye=c.currentConstruct,ee=c.events.length,H=Array.from(l);return{restore:V,from:ee};function V(){r=Q,c.previous=ue,c.currentConstruct=ye,c.events.length=ee,l=H,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ob(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,a)];else{if(o=e.slice(t,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ab(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const a=e[t];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
52
52
  `;break}case-3:{o=`\r
53
53
  `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}const lb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:g0},disable:{null:[]},document:{42:cn,43:cn,45:cn,48:cn,49:cn,50:cn,51:cn,52:cn,53:cn,54:cn,55:cn,56:cn,57:cn,62:ou},flow:{35:E0,42:Zr,45:[mu,Zr],60:I0,61:mu,95:Zr,96:uu,126:uu},flowInitial:{[-2]:zo,[-1]:zo,32:zo},insideSpan:{null:[Mo,eb]},string:{38:lu,92:au},text:{[-5]:Ro,[-4]:Ro,[-3]:Ro,33:Y0,38:lu,42:Mo,60:[Ky,D0],91:K0,92:[w0,au],93:Fo,95:Mo,96:l0}},Symbol.toStringTag,{value:"Module"}));function sb(e){const t=Qs([lb,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(Vg),document:i(Qg),flow:i(Xg),string:i(nb),text:i(tb)};return r;function i(a){return o;function o(l){return ib(r,a,l)}}}function ub(e){for(;!cu(e););return e}const Vu=/[\0\t\n\r]/g;function cb(){let e=1,n="",t=!0,r;return i;function i(a,o,l){const s=[];let c,h,u,f,A;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",t&&(a.charCodeAt(0)===65279&&u++,t=void 0);u<a.length;){if(Vu.lastIndex=u,c=Vu.exec(a),f=c&&c.index!==void 0?c.index:a.length,A=a.charCodeAt(f),!c){n=a.slice(u);break}if(A===10&&u===f&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<f&&(s.push(a.slice(u,f)),e+=f-u),A){case 0:{s.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,s.push(-2);e++<h;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return l&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Ku={}.hasOwnProperty;function pb(e,n,t){return typeof n!="string"&&(t=n,n=void 0),db(t)(ub(sb(t).document().write(cb()(e,n,!0))))}function db(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Fn),autolinkProtocol:ne,autolinkEmail:ne,atxHeading:a(vn),blockQuote:a(Pe),characterEscape:ne,characterReference:ne,codeFenced:a(en),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(en,o),codeText:a(Je,o),codeTextData:ne,data:ne,codeFlowValue:ne,definition:a(kn),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(st),hardBreakEscape:a(zn),hardBreakTrailing:a(zn),htmlFlow:a(ut,o),htmlFlowData:ne,htmlText:a(ut,o),htmlTextData:ne,image:a(Ct),label:o,link:a(Fn),listItem:a(Rn),listItemValue:f,listOrdered:a(St,u),listUnordered:a(St),paragraph:a(Vn),reference:P,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(vn),strong:a(ct),thematicBreak:a(pt)},exit:{atxHeading:s(),atxHeadingSequence:M,autolink:s(),autolinkEmail:Re,autolinkProtocol:ze,blockQuote:s(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Me,characterReferenceMarkerNumeric:Me,characterReferenceValue:ke,characterReference:Ue,codeFenced:s(S),codeFencedFence:v,codeFencedFenceInfo:A,codeFencedFenceMeta:b,codeFlowValue:L,codeIndented:s(O),codeText:s(H),codeTextData:L,data:L,definition:s(),definitionDestinationString:j,definitionLabelString:B,definitionTitleString:T,emphasis:s(),hardBreakEscape:s(ue),hardBreakTrailing:s(ue),htmlFlow:s(ye),htmlFlowData:L,htmlText:s(ee),htmlTextData:L,image:s(ie),label:$,labelText:Z,lineEnding:Q,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:Be,resourceDestinationString:I,resourceTitleString:fe,resource:we,setextHeading:s(W),setextHeadingLineSequence:F,setextHeadingText:k,strong:s(),thematicBreak:s()}};Qu(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(N){let J={type:"root",children:[]};const he={stack:[J],tokenStack:[],config:n,enter:l,exit:c,buffer:o,resume:h,data:t},be=[];let Oe=-1;for(;++Oe<N.length;)if(N[Oe][1].type==="listOrdered"||N[Oe][1].type==="listUnordered")if(N[Oe][0]==="enter")be.push(Oe);else{const Ze=be.pop();Oe=i(N,Ze,Oe)}for(Oe=-1;++Oe<N.length;){const Ze=n[N[Oe][0]];Ku.call(Ze,N[Oe][1].type)&&Ze[N[Oe][1].type].call(Object.assign({sliceSerialize:N[Oe][2].sliceSerialize},he),N[Oe][1])}if(he.tokenStack.length>0){const Ze=he.tokenStack[he.tokenStack.length-1];(Ze[1]||Ju).call(he,void 0,Ze[0])}for(J.position={start:Yn(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:Yn(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<n.transforms.length;)J=n.transforms[Oe](J)||J;return J}function i(N,J,he){let be=J-1,Oe=-1,Ze=!1,R,Xe,On,Pn;for(;++be<=he;){const Ae=N[be];switch(Ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ae[0]==="enter"?Oe++:Oe--,Pn=void 0;break}case"lineEndingBlank":{Ae[0]==="enter"&&(R&&!Pn&&!Oe&&!On&&(On=be),Pn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pn=void 0}if(!Oe&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||Oe===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(R){let _n=be;for(Xe=void 0;_n--;){const ln=N[_n];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;Xe&&(N[Xe][1].type="lineEndingBlank",Ze=!0),ln[1].type="lineEnding",Xe=_n}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}On&&(!Xe||On<Xe)&&(R._spread=!0),R.end=Object.assign({},Xe?N[Xe][1].start:Ae[1].end),N.splice(Xe||be,0,["exit",R,Ae[2]]),be++,he++}if(Ae[1].type==="listItemPrefix"){const _n={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0};R=_n,N.splice(be,0,["enter",_n,Ae[2]]),be++,he++,On=void 0,Pn=!0}}}return N[J][1]._spread=Ze,he}function a(N,J){return he;function he(be){l.call(this,N(be),be),J&&J.call(this,be)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(N,J,he){this.stack[this.stack.length-1].children.push(N),this.stack.push(N),this.tokenStack.push([J,he]),N.position={start:Yn(J.start),end:void 0}}function s(N){return J;function J(he){N&&N.call(this,he),c.call(this,he)}}function c(N,J){const he=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==N.type&&(J?J.call(this,N,be[0]):(be[1]||Ju).call(this,N,be[0]));else throw new Error("Cannot close `"+N.type+"` ("+Qt({start:N.start,end:N.end})+"): it’s not open");he.position.end=Yn(N.end)}function h(){return Po(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function f(N){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(N),10),this.data.expectingFirstListItemValue=void 0}}function A(){const N=this.resume(),J=this.stack[this.stack.length-1];J.lang=N}function b(){const N=this.resume(),J=this.stack[this.stack.length-1];J.meta=N}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N.replace(/(\r?\n|\r)$/g,"")}function B(N){const J=this.resume(),he=this.stack[this.stack.length-1];he.label=J,he.identifier=wn(this.sliceSerialize(N)).toLowerCase()}function T(){const N=this.resume(),J=this.stack[this.stack.length-1];J.title=N}function j(){const N=this.resume(),J=this.stack[this.stack.length-1];J.url=N}function M(N){const J=this.stack[this.stack.length-1];if(!J.depth){const he=this.sliceSerialize(N).length;J.depth=he}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function F(N){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(N).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function ne(N){const he=this.stack[this.stack.length-1].children;let be=he[he.length-1];(!be||be.type!=="text")&&(be=Bt(),be.position={start:Yn(N.start),end:void 0},he.push(be)),this.stack.push(be)}function L(N){const J=this.stack.pop();J.value+=this.sliceSerialize(N),J.position.end=Yn(N.end)}function Q(N){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=J.children[J.children.length-1];he.position.end=Yn(N.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(J.type)&&(ne.call(this,N),L.call(this,N))}function ue(){this.data.atHardBreak=!0}function ye(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function ee(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function H(){const N=this.resume(),J=this.stack[this.stack.length-1];J.value=N}function V(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=J,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function ie(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=J,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function Z(N){const J=this.sliceSerialize(N),he=this.stack[this.stack.length-2];he.label=gy(J),he.identifier=wn(J).toLowerCase()}function $(){const N=this.stack[this.stack.length-1],J=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const be=N.children;he.children=be}else he.alt=J}function I(){const N=this.resume(),J=this.stack[this.stack.length-1];J.url=N}function fe(){const N=this.resume(),J=this.stack[this.stack.length-1];J.title=N}function we(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function Be(N){const J=this.resume(),he=this.stack[this.stack.length-1];he.label=J,he.identifier=wn(this.sliceSerialize(N)).toLowerCase(),this.data.referenceType="full"}function Me(N){this.data.characterReferenceType=N.type}function ke(N){const J=this.sliceSerialize(N),he=this.data.characterReferenceType;let be;he?(be=Ws(J,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=To(J);const Oe=this.stack[this.stack.length-1];Oe.value+=be}function Ue(N){const J=this.stack.pop();J.position.end=Yn(N.end)}function ze(N){L.call(this,N);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(N)}function Re(N){L.call(this,N);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(N)}function Pe(){return{type:"blockquote",children:[]}}function en(){return{type:"code",lang:null,meta:null,value:""}}function Je(){return{type:"inlineCode",value:""}}function kn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function vn(){return{type:"heading",depth:0,children:[]}}function zn(){return{type:"break"}}function ut(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function Fn(){return{type:"link",title:null,url:"",children:[]}}function St(N){return{type:"list",ordered:N.type==="listOrdered",start:null,spread:N._spread,children:[]}}function Rn(N){return{type:"listItem",spread:N._spread,checked:null,children:[]}}function Vn(){return{type:"paragraph",children:[]}}function ct(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function pt(){return{type:"thematicBreak"}}}function Yn(e){return{line:e.line,column:e.column,offset:e.offset}}function Qu(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Qu(e,r):fb(e,r)}}function fb(e,n){let t;for(t in n)if(Ku.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Ju(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Qt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Qt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Qt({start:n.start,end:n.end})+") is still open")}function hb(e){const n=this;n.parser=t;function t(r){return pb(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function mb(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function yb(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
@@ -119,6 +119,7 @@ export interface SelectData {
119
119
  export interface UploadData {
120
120
  accept: string;
121
121
  max_size?: number;
122
+ no_path?: boolean;
122
123
  }
123
124
  export interface SliderData {
124
125
  max: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyjj-web-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"