zyjj-web-sdk 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { g as E } from "./index-Dwng81sg.js";
1
+ import { g as E } from "./index-7P3iPeRL.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-Dwng81sg.js";
1
+ import { g as So, c as Io } from "./index-7P3iPeRL.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-Dwng81sg.js";
1
+ import { j as r } from "./index-7P3iPeRL.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-Dwng81sg.js";
2
- import { a as o } from "./common-svSgdeBM.js";
1
+ import { j as r } from "./index-7P3iPeRL.js";
2
+ import { a as o } from "./common-BQmu-Gsx.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-gOeObbSd.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-Cg2T8DXW.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-Dwng81sg.js";
1
+ import { j as e } from "./index-7P3iPeRL.js";
2
2
  import { Space as m } from "@arco-design/web-react";
3
- import { I as t } from "./common-svSgdeBM.js";
3
+ import { I as t } from "./common-BQmu-Gsx.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-Dwng81sg.js";
1
+ import { j as e } from "./index-7P3iPeRL.js";
2
2
  import { Image as o, Grid as t } from "@arco-design/web-react";
3
- import { I as n } from "./common-svSgdeBM.js";
3
+ import { I as n } from "./common-BQmu-Gsx.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-Dwng81sg.js";
1
+ import { j as a } from "./index-7P3iPeRL.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-Dwng81sg.js";
1
+ import { j as n } from "./index-7P3iPeRL.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-Dwng81sg.js";
1
+ import { j as n } from "./index-7P3iPeRL.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-Dwng81sg.js";
1
+ import { j as A } from "./index-7P3iPeRL.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-svSgdeBM.js";
4
+ import { S as rt, C as it } from "./common-BQmu-Gsx.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-DxLJViBz.js").then((o) => {
2246
+ import("./index-CZYavw8P.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-Dwng81sg.js";
1
+ import { j as n } from "./index-7P3iPeRL.js";
2
2
  import { Input as r } from "@arco-design/web-react";
3
3
  function m(e) {
4
4
  var a, t;
@@ -0,0 +1,64 @@
1
+ import { j as a, F as x } from "./index-7P3iPeRL.js";
2
+ import l, { useContext as O, useState as j, useEffect as g } from "react";
3
+ import { Upload as b, Button as y, Message as h } from "@arco-design/web-react";
4
+ import { I as C, _ as w, a as _ } from "./context-tmjHwBoF.js";
5
+ function m(o, n) {
6
+ var e = Object.keys(o);
7
+ if (Object.getOwnPropertySymbols) {
8
+ var t = Object.getOwnPropertySymbols(o);
9
+ n && (t = t.filter(function(r) {
10
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
11
+ })), e.push.apply(e, t);
12
+ }
13
+ return e;
14
+ }
15
+ function d(o) {
16
+ for (var n = 1; n < arguments.length; n++) {
17
+ var e = arguments[n] != null ? arguments[n] : {};
18
+ n % 2 ? m(Object(e), !0).forEach(function(t) {
19
+ _(o, t, e[t]);
20
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(e)) : m(Object(e)).forEach(function(t) {
21
+ Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(e, t));
22
+ });
23
+ }
24
+ return o;
25
+ }
26
+ function P(o, n) {
27
+ var e = O(C), t = e.prefixCls, r = t === void 0 ? "arco" : t, i = o.spin, c = o.className, s = d(d({
28
+ "aria-hidden": !0,
29
+ focusable: !1,
30
+ ref: n
31
+ }, o), {}, {
32
+ className: "".concat(c ? c + " " : "").concat(r, "-icon ").concat(r, "-icon-upload")
33
+ });
34
+ return i && (s.className = "".concat(s.className, " ").concat(r, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ l.createElement("svg", w({
35
+ fill: "none",
36
+ stroke: "currentColor",
37
+ strokeWidth: "4",
38
+ viewBox: "0 0 48 48"
39
+ }, s), /* @__PURE__ */ l.createElement("path", {
40
+ d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"
41
+ }));
42
+ }
43
+ var p = /* @__PURE__ */ l.forwardRef(P);
44
+ p.defaultProps = {
45
+ isIcon: !0
46
+ };
47
+ p.displayName = "IconUpload";
48
+ function F(o) {
49
+ const { value: n, data: e, onChange: t } = o, r = (e == null ? void 0 : e.max_size) || 10 * 1024 * 1024, [i, c] = j([]), s = (u) => {
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, 请重新上传!`), c([]);
54
+ return;
55
+ }
56
+ t && t(x(f, e == null ? void 0 : e.object_url, e == null ? void 0 : e.cloud_source)), v();
57
+ };
58
+ return g(() => {
59
+ c(n ? [{ uid: n.uid, name: n.name }] : []);
60
+ }, [n]), a.jsx(b, { accept: e == null ? void 0 : e.accept, fileList: i, onChange: c, onRemove: () => t(void 0), limit: 1, customRequest: s, children: a.jsx(y, { type: "outline", icon: a.jsx(p, {}), children: "点击上传" }) });
61
+ }
62
+ export {
63
+ F as default
64
+ };
@@ -1,11 +1,11 @@
1
- import { j as t } from "./index-Dwng81sg.js";
2
- import { a as n } from "./common-svSgdeBM.js";
1
+ import { j as t } from "./index-7P3iPeRL.js";
2
+ import { a as n } from "./common-BQmu-Gsx.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-kM1SccPm.js").then((r) => r.D).then((r) => {
8
+ !o || !e.value || import("./DPlayer.min-DdAOgLH5.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-Dwng81sg.js";
1
+ import { j as a, d as W } from "./index-7P3iPeRL.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";
@@ -1503,12 +1503,13 @@ var Xt;
1503
1503
  (function(e) {
1504
1504
  e[e.ChoosePic = -3] = "ChoosePic", e[e.CostPoint = -4] = "CostPoint", e[e.AddAction = -5] = "AddAction", e[e.CloseWindow = -6] = "CloseWindow", e[e.SendRequest = -7] = "SendRequest", e[e.UploadFileByPath = -8] = "UploadFileByPath", e[e.GetInitData = -9] = "GetInitData";
1505
1505
  })(Xt || (Xt = {}));
1506
- const li = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1048576 ? (e / 1048576).toFixed(2) + " MB" : e >= 1024 ? (e / 1024).toFixed(2) + " KB" : e + " B", fi = (e, t) => {
1507
- let r = e.path, n = Ze.LocalPath;
1508
- return (t || !r) && (r = URL.createObjectURL(e), n = Ze.ObjectUrl), {
1509
- path: r,
1506
+ const li = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1048576 ? (e / 1048576).toFixed(2) + " MB" : e >= 1024 ? (e / 1024).toFixed(2) + " KB" : e + " B", fi = (e, t, r) => {
1507
+ let n = e.path, o = Ze.LocalPath;
1508
+ return (t || !n) && (n = URL.createObjectURL(e), o = Ze.ObjectUrl), {
1509
+ path: n,
1510
1510
  name: e.name,
1511
- source: n,
1511
+ source: o,
1512
+ cloud_source: r,
1512
1513
  ext: e.name.split(".").pop(),
1513
1514
  size: e.size,
1514
1515
  uid: ui()
@@ -4082,7 +4083,7 @@ function jc(e) {
4082
4083
  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);
4083
4084
  }), _.jsx(ie.Item, { children: _.jsx($e, { 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 })] });
4084
4085
  }
4085
- const fc = me(() => import("./ElementTypeInput-CscpkYUk.js")), dc = me(() => import("./ElementTypeSelect-D540jLzS.js")), hc = me(() => import("./ElementTypeTextArea-CfHF4AR8.js")), bn = me(() => import("./ElementTypeText-B6Relktc.js").then((e) => e.E)), pc = me(() => import("./ElementTypeAudio-BBQFdBek.js")), mc = me(() => import("./ElementTypeUpload-DfEbbf_j.js")), yc = me(() => import("./ElementTypeNumber-C64HYYEy.js")), gc = me(() => import("./ElementTypeImageList-CSeke5vJ.js")), bc = me(() => import("./ElementTypeImage-D4HNLPIn.js")), wc = me(() => import("./ElementTypeAlert-H_xNixx6.js")), Ec = me(() => import("./ElementTypeVideo-DDpnzWxr.js")), Sc = me(() => import("./ElementTypeNumber-C64HYYEy.js"));
4086
+ const fc = me(() => import("./ElementTypeInput-D-Tw7n0p.js")), dc = me(() => import("./ElementTypeSelect-By15sM-I.js")), hc = me(() => import("./ElementTypeTextArea-D6OlVaqS.js")), bn = me(() => import("./ElementTypeText-ey4N53eD.js").then((e) => e.E)), pc = me(() => import("./ElementTypeAudio-BVHqdQC7.js")), mc = me(() => import("./ElementTypeUpload-CDXiYiR6.js")), yc = me(() => import("./ElementTypeNumber-ConM6_gm.js")), gc = me(() => import("./ElementTypeImageList-D2nRMBMt.js")), bc = me(() => import("./ElementTypeImage-B3Wy6Jbx.js")), wc = me(() => import("./ElementTypeAlert-DZLyGDGE.js")), Ec = me(() => import("./ElementTypeVideo-DliLlsIe.js")), Sc = me(() => import("./ElementTypeNumber-ConM6_gm.js"));
4086
4087
  function Nc(e) {
4087
4088
  const { tp: t, isInput: r, data: n, value: o, onChange: s } = e;
4088
4089
  switch (t) {
@@ -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-B6Relktc.js";
2
- import { c as _n, g as wr, j as Ke } from "./index-Dwng81sg.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-ey4N53eD.js";
2
+ import { c as _n, g as wr, j as Ke } from "./index-7P3iPeRL.js";
3
3
  const Bn = document.createElement("i");
4
4
  function kn(e) {
5
5
  const n = "&" + e + ";";
package/lib/index.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const Tool: {
63
63
  renderCopy: (value: string) => import("react/jsx-runtime").JSX.Element;
64
64
  };
65
65
  utils: {
66
- file2ToolParamFile: (file: File, no_path?: boolean | undefined) => import("./types/local-task.ts").ToolParamFile;
66
+ file2ToolParamFile: (file: File, no_path?: boolean | undefined, cloud_source?: FileSource | undefined) => import("./types/local-task.ts").ToolParamFile;
67
67
  seconds2TimeStr: (seconds: number) => string;
68
68
  object2query: (data: {
69
69
  [key: string]: any;
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-Dwng81sg.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-7P3iPeRL.js";
2
2
  export {
3
3
  s as Api,
4
4
  o as Enum,
package/lib/index.umd.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const r=new this(n);return t.forEach(i=>r.set(i)),r}static accessor(n){const r=(this[Va]=this[Va]={accessors:{}}).accessors,i=this.prototype;function a(o){const l=Mt(o);r[l]||(Wp(i,o),r[l]=!0)}return U.isArray(n)?n.forEach(a):a(n),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(yn.prototype,({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[t]=r}}}),U.freezeMethods(yn);function Ci(e,n){const t=this||Dt,r=n||t,i=yn.from(r.headers);let a=r.data;return U.forEach(e,function(l){a=l.call(t,a,i.normalize(),n?n.status:void 0)}),i.normalize(),a}function Ka(e){return!!(e&&e.__CANCEL__)}function zt(e,n,t){Ce.call(this,e??"canceled",Ce.ERR_CANCELED,n,t),this.name="CanceledError"}U.inherits(zt,Ce,{__CANCEL__:!0});function Yp(e,n,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):n(new Ce("Request failed with status code "+t.status,[Ce.ERR_BAD_REQUEST,Ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Vp=Sn.hasStandardBrowserEnv?{write(e,n,t,r,i,a){const o=[e+"="+encodeURIComponent(n)];U.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),U.isString(r)&&o.push("path="+r),U.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Kp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qp(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Qa(e,n){return e&&!Kp(n)?Qp(e,n):n}const Jp=Sn.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function i(a){let o=a;return n&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=i(window.location.href),function(o){const l=U.isString(o)?i(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Zp(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Xp(e,n){e=e||10;const t=new Array(e),r=new Array(e);let i=0,a=0,o;return n=n!==void 0?n:1e3,function(s){const c=Date.now(),h=r[a];o||(o=c),t[i]=s,r[i]=c;let u=a,f=0;for(;u!==i;)f+=t[u++],u=u%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<n)return;const A=h&&c-h;return A?Math.round(f*1e3/A):void 0}}function Ja(e,n){let t=0;const r=Xp(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-t,s=r(l),c=a<=o;t=a;const h={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&c?(o-a)/s:void 0,event:i};h[n?"download":"upload"]=!0,e(h)}}const Si={http:Op,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,r){let i=e.data;const a=yn.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,s;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let h;if(U.isFormData(i)){if(Sn.hasStandardBrowserEnv||Sn.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((h=a.getContentType())!==!1){const[v,...S]=h?h.split(";").map(O=>O.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",...S].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+S))}const f=Qa(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ua(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function A(){if(!u)return;const v=yn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};Yp(function(T){t(T),c()},function(T){r(T),c()},O),u=null}if("onloadend"in u?u.onloadend=A:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(A)},u.onabort=function(){u&&(r(new Ce("Request aborted",Ce.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Ce("Network Error",Ce.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const O=e.transitional||$a;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new Ce(S,O.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,u)),u=null},Sn.hasStandardBrowserEnv&&(l&&U.isFunction(l)&&(l=l(e)),l||l!==!1&&Jp(f))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Vp.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in u&&U.forEach(a.toJSON(),function(S,O){u.setRequestHeader(O,S)}),U.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Ja(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ja(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=v=>{u&&(r(!v||v.type?new zt(null,e,u):v),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const b=Zp(f);if(b&&Sn.protocols.indexOf(b)===-1){r(new Ce("Unsupported protocol "+b+":",Ce.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};U.forEach(Si,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Za=e=>`- ${e}`,Gp=e=>U.isFunction(e)||e===null||e===!1,Xa={getAdapter:e=>{e=U.isArray(e)?e:[e];const{length:n}=e;let t,r;const i={};for(let a=0;a<n;a++){t=e[a];let o;if(r=t,!Gp(t)&&(r=Si[(o=String(t)).toLowerCase()],r===void 0))throw new Ce(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=n?a.length>1?`since :
4
4
  `+a.map(Za).join(`
5
5
  `):" "+Za(a[0]):"as no adapter specified";throw new Ce("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Si};function Bi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zt(null,e)}function Ga(e){return Bi(e),e.headers=yn.from(e.headers),e.data=Ci.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xa.getAdapter(e.adapter||Dt.adapter)(e).then(function(r){return Bi(e),r.data=Ci.call(e,e.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return Ka(r)||(Bi(e),r&&r.response&&(r.response.data=Ci.call(e,e.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const el=e=>e instanceof yn?{...e}:e;function At(e,n){n=n||{};const t={};function r(c,h,u){return U.isPlainObject(c)&&U.isPlainObject(h)?U.merge.call({caseless:u},c,h):U.isPlainObject(h)?U.merge({},h):U.isArray(h)?h.slice():h}function i(c,h,u){if(U.isUndefined(h)){if(!U.isUndefined(c))return r(void 0,c,u)}else return r(c,h,u)}function a(c,h){if(!U.isUndefined(h))return r(void 0,h)}function o(c,h){if(U.isUndefined(h)){if(!U.isUndefined(c))return r(void 0,c)}else return r(void 0,h)}function l(c,h,u){if(u in n)return r(c,h);if(u in e)return r(void 0,c)}const s={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,h)=>i(el(c),el(h),!0)};return U.forEach(Object.keys(Object.assign({},e,n)),function(h){const u=s[h]||i,f=u(e[h],n[h],h);U.isUndefined(f)&&u!==l||(t[h]=f)}),t}const nl="1.6.8",Ii={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Ii[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const tl={};Ii.transitional=function(n,t,r){function i(a,o){return"[Axios v"+nl+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,l)=>{if(n===!1)throw new Ce(i(o," has been removed"+(t?" in "+t:"")),Ce.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(a,o,l):!0}};function ed(e,n,t){if(typeof e!="object")throw new Ce("options must be an object",Ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=n[a];if(o){const l=e[a],s=l===void 0||o(l,a,e);if(s!==!0)throw new Ce("option "+a+" must be "+s,Ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ce("Unknown option "+a,Ce.ERR_BAD_OPTION)}}const Oi={assertOptions:ed,validators:Ii},Hn=Oi.validators;class Gn{constructor(n){this.defaults=n,this.interceptors={request:new Ha,response:new Ha}}async request(n,t){try{return await this._request(n,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+a):r.stack=a}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=At(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:a}=t;r!==void 0&&Oi.assertOptions(r,{silentJSONParsing:Hn.transitional(Hn.boolean),forcedJSONParsing:Hn.transitional(Hn.boolean),clarifyTimeoutError:Hn.transitional(Hn.boolean)},!1),i!=null&&(U.isFunction(i)?t.paramsSerializer={serialize:i}:Oi.assertOptions(i,{encode:Hn.function,serialize:Hn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&U.merge(a.common,a[t.method]);a&&U.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),t.headers=yn.concat(o,a);const l=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(s=s&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let h,u=0,f;if(!s){const b=[Ga.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,c),f=b.length,h=Promise.resolve(t);u<f;)h=h.then(b[u++],b[u++]);return h}f=l.length;let A=t;for(u=0;u<f;){const b=l[u++],v=l[u++];try{A=b(A)}catch(S){v.call(this,S);break}}try{h=Ga.call(this,A)}catch(b){return Promise.reject(b)}for(u=0,f=c.length;u<f;)h=h.then(c[u++],c[u++]);return h}getUri(n){n=At(this.defaults,n);const t=Qa(n.baseURL,n.url);return Ua(t,n.params,n.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(n){Gn.prototype[n]=function(t,r){return this.request(At(r||{},{method:n,url:t,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(n){function t(r){return function(a,o,l){return this.request(At(l||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Gn.prototype[n]=t(),Gn.prototype[n+"Form"]=t(!0)});class Pi{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(l=>{r.subscribe(l),a=l}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},n(function(a,o,l){r.reason||(r.reason=new zt(a,o,l),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}static source(){let n;return{token:new Pi(function(i){n=i}),cancel:n}}}function nd(e){return function(t){return e.apply(null,t)}}function td(e){return U.isObject(e)&&e.isAxiosError===!0}const _i={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_i).forEach(([e,n])=>{_i[n]=e});function rl(e){const n=new Gn(e),t=Sa(Gn.prototype.request,n);return U.extend(t,Gn.prototype,n,{allOwnKeys:!0}),U.extend(t,n,null,{allOwnKeys:!0}),t.create=function(i){return rl(At(e,i))},t}const Re=rl(Dt);Re.Axios=Gn,Re.CanceledError=zt,Re.CancelToken=Pi,Re.isCancel=Ka,Re.VERSION=nl,Re.toFormData=Or,Re.AxiosError=Ce,Re.Cancel=Re.CanceledError,Re.all=function(n){return Promise.all(n)},Re.spread=nd,Re.isAxiosError=td,Re.mergeConfig=At,Re.AxiosHeaders=yn,Re.formToJSON=e=>Ya(U.isHTMLForm(e)?new FormData(e):e),Re.getAdapter=Xa.getAdapter,Re.HttpStatusCode=_i,Re.default=Re;const Ft=()=>localStorage.getItem("token");async function Ue(e,n,t,r=!0){let i;return t==="get"?i=Re.get(e,{params:n,timeout:1e3*60*10,headers:{Authorization:Ft()}}):t==="post"?i=Re.post(e,n,{headers:{Authorization:Ft()}}):t==="put"?i=Re.put(e,n,{headers:{Authorization:Ft()}}):t==="delete"?i=Re.delete(e,{params:n,headers:{Authorization:Ft()}}):t==="patch"&&(i=Re.patch(e,n,{headers:{Authorization:Ft()}})),new Promise((a,o)=>{i.then(l=>{l.data.code!==0?(r&&te.Message.error(l.data.msg),o(l.data.msg)):a(l.data.data)}).catch(l=>{var s;((s=l.response)==null?void 0:s.status)==401?r&&te.Message.error("你的账户已过期,请重新登录"):r&&te.Message.error("请求失败"),console.log("请求失败",l),o("请求失败")})})}let _r;const rd=new Uint8Array(16);function id(){if(!_r&&(_r=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _r(rd)}const Ge=[];for(let e=0;e<256;++e)Ge.push((e+256).toString(16).slice(1));function od(e,n=0){return Ge[e[n+0]]+Ge[e[n+1]]+Ge[e[n+2]]+Ge[e[n+3]]+"-"+Ge[e[n+4]]+Ge[e[n+5]]+"-"+Ge[e[n+6]]+Ge[e[n+7]]+"-"+Ge[e[n+8]]+Ge[e[n+9]]+"-"+Ge[e[n+10]]+Ge[e[n+11]]+Ge[e[n+12]]+Ge[e[n+13]]+Ge[e[n+14]]+Ge[e[n+15]]}const il={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ad(e,n,t){if(il.randomUUID&&!n&&!e)return il.randomUUID();e=e||{};const r=e.random||(e.rng||id)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,od(r)}var Rt;(function(e){e[e.LocalPath=0]="LocalPath",e[e.TencentCos=1]="TencentCos",e[e.ObjectUrl=2]="ObjectUrl",e[e.AliYunOss=3]="AliYunOss"})(Rt||(Rt={}));var Ti;(function(e){e[e.TaskAction=0]="TaskAction",e[e.WorkAction=1]="WorkAction",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.NavigateTo=7]="NavigateTo",e[e.ExtensionBlobConvert=8]="ExtensionBlobConvert",e[e.ExtensionGetId=9]="ExtensionGetId",e[e.OpenTool=10]="OpenTool",e[e.DownloadFile=11]="DownloadFile"})(Ti||(Ti={}));var Li;(function(e){e[e.TaskAction=0]="TaskAction",e[e.NavigateTo=3]="NavigateTo",e[e.OpenTool=6]="OpenTool",e[e.MqttBack=1]="MqttBack",e[e.ExtensionBlobUrl=4]="ExtensionBlobUrl",e[e.ExtensionId=5]="ExtensionId",e[e.UrlCallback=7]="UrlCallback",e[e.DownloadFileRes=8]="DownloadFileRes"})(Li||(Li={}));var ji;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(ji||(ji={}));var Di;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(Di||(Di={}));var Mi;(function(e){e[e.ChoosePic=-3]="ChoosePic",e[e.CostPoint=-4]="CostPoint",e[e.AddAction=-5]="AddAction",e[e.CloseWindow=-6]="CloseWindow",e[e.SendRequest=-7]="SendRequest",e[e.UploadFileByPath=-8]="UploadFileByPath",e[e.GetInitData=-9]="GetInitData"})(Mi||(Mi={}));const ld=e=>e>=1073741824?(e/1073741824).toFixed(2)+" GB":e>=1048576?(e/1048576).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B",ol=(e,n)=>{let t=e.path,r=Rt.LocalPath;return(n||!t)&&(t=URL.createObjectURL(e),r=Rt.ObjectUrl),{path:t,name:e.name,source:r,ext:e.name.split(".").pop(),size:e.size,uid:ad()}},sd=e=>new Date(e*1e3).toISOString().substring(11,19),ud=async()=>{const e=await pl(),n=e.token;return{cos:new Kc({getAuthorization:function(t,r){r({TmpSecretId:n.TmpSecretId,TmpSecretKey:n.TmpSecretKey,XCosSecurityToken:n.Token,StartTime:e.start_time,ExpiredTime:e.end_time})},SliceSize:1024*1024*5}),path:e.path,bucket:e.bucket,region:e.region}},cd=async()=>{const e=await Cd(),n=e.token;return{oss:new Qc({region:e.region,accessKeyId:n.TmpSecretId,accessKeySecret:n.TmpSecretKey,stsToken:n.Token,bucket:e.bucket}),path:e.path,bucket:e.bucket,region:e.region}},al=e=>{const n=[];for(const t in e){const r=e[t];r&&n.push(`${t}=${r}`)}return n.join("&")},pd=/\$(.*?)\$/g,dd=(e,n)=>{let t;const r=[];for(;(t=pd.exec(e))!==null;)t&&t.length>0&&r.push(t[1]);return r.map(i=>{const a=n[i];a&&(e=e.replace(`$${i}$`,i.split(".").length==2?a[i.split(".")[1]]:a))}),e},fd=e=>Object.keys(e).filter(n=>e[n]).map(n=>{let t=e[n];return["string","number","boolean"].includes(typeof t)?t=String(t):t=JSON.stringify(t),`${n}=${encodeURIComponent(t)}`}).join("&"),ll=e=>new Promise((n,t)=>{const r=new XMLHttpRequest;r.open("get",e),r.responseType="blob",r.send(),r.onload=function(){(this.status===200||this.status===304)&&(sl(URL.createObjectURL(this.response)),n())},r.onerror=function(){t("下载失败,请在新窗口打开")}}),sl=(e,n)=>{var r;const t=document.createElement("a");t.style.display="none",t.href=e,n?t.download=n:t.download=((r=e.split("?").shift())==null?void 0:r.split("/").pop())||e,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(e)},He=process.env.NODE_ENV=="production"?"https://api.zyjj.cc/api/v1":"http://127.0.0.1:3000/api/v1",hd=e=>Ue(`${He}/common/user/login`,e,"post"),md=(e,n,t)=>Ue(`${He}/common/app/info?os=${e}&version=${n}&uid=${t||""}`,{},"get"),yd=e=>Ue(`${He}/common/user/register`,e,"post"),Ad=e=>Ue(`${He}/common/user/reset/password`,e,"post"),ul=e=>Ue(`${He}/common/user/email/token`,{email:e},"post"),cl=()=>Ue(`${He}/user/user/info`,{},"get",!1),gd=e=>Ue(`${He}/user/user/info`,e,"put"),bd=e=>Ue(`${He}/user/point/deducting`,e,"post"),vd=e=>Ue(`${He}/common/tool/list?${al(e)}`,{},"get"),xd=()=>Ue(`${He}/common/tool/all`,{},"get"),wd=e=>Ue(`${He}/common/tool/${e}`,{},"get"),kd=e=>Ue(`${He}/common/tool/inc/${e}`,{},"get"),Ed=()=>Ue(`${He}/common/tool/tags`,{},"get"),pl=()=>Ue(`${He}/user/cloud/tencent/cos`,{},"get"),Cd=()=>Ue(`${He}/user/cloud/aliyun/oss`,{},"get"),Sd=e=>Ue(`${He}/user/task`,e,"post"),Bd=e=>Ue(`${He}/user/task/${e}`,{},"get"),dl=()=>Ue(`${He}/user/cloud/mqtt/task`,{},"get"),Id=()=>Ue(`${He}/common/material/tags`,{},"get"),Od=e=>Ue(`${He}/user/material/${e}`,{},"get"),Pd=e=>Ue(`${He}/user/material/url`,{key_list:e},"post"),_d=e=>Ue(`${He}${e.url}`,e.data||{},e.method);var zi;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab",e[e.Flow=2]="Flow"})(zi||(zi={}));var Fi;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Fi||(Fi={}));var et;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(et||(et={}));var Ri;(function(e){e[e.FileInput=0]="FileInput",e[e.FileInputList=1]="FileInputList",e[e.Select=2]="Select",e[e.FileGenerate=3]="FileGenerate",e[e.Input=4]="Input"})(Ri||(Ri={}));var Ni;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Ni||(Ni={}));var qi;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(qi||(qi={}));var on;(function(e){e[e.Input=0]="Input",e[e.Select=1]="Select",e[e.TextArea=2]="TextArea",e[e.FileUpload=3]="FileUpload",e[e.Slider=4]="Slider",e[e.Audio=5]="Audio",e[e.Number=6]="Number",e[e.ImageList=7]="ImageList",e[e.Image=8]="Image",e[e.Alert=9]="Alert",e[e.Video=10]="Video",e[e.MarkDown=11]="MarkDown"})(on||(on={}));var Tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ui={exports:{}},Nt={};/**
6
+ `+a):r.stack=a}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=At(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:a}=t;r!==void 0&&Oi.assertOptions(r,{silentJSONParsing:Hn.transitional(Hn.boolean),forcedJSONParsing:Hn.transitional(Hn.boolean),clarifyTimeoutError:Hn.transitional(Hn.boolean)},!1),i!=null&&(U.isFunction(i)?t.paramsSerializer={serialize:i}:Oi.assertOptions(i,{encode:Hn.function,serialize:Hn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&U.merge(a.common,a[t.method]);a&&U.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),t.headers=yn.concat(o,a);const l=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(s=s&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let h,u=0,f;if(!s){const b=[Ga.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,c),f=b.length,h=Promise.resolve(t);u<f;)h=h.then(b[u++],b[u++]);return h}f=l.length;let A=t;for(u=0;u<f;){const b=l[u++],v=l[u++];try{A=b(A)}catch(S){v.call(this,S);break}}try{h=Ga.call(this,A)}catch(b){return Promise.reject(b)}for(u=0,f=c.length;u<f;)h=h.then(c[u++],c[u++]);return h}getUri(n){n=At(this.defaults,n);const t=Qa(n.baseURL,n.url);return Ua(t,n.params,n.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(n){Gn.prototype[n]=function(t,r){return this.request(At(r||{},{method:n,url:t,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(n){function t(r){return function(a,o,l){return this.request(At(l||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Gn.prototype[n]=t(),Gn.prototype[n+"Form"]=t(!0)});class Pi{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(l=>{r.subscribe(l),a=l}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},n(function(a,o,l){r.reason||(r.reason=new zt(a,o,l),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}static source(){let n;return{token:new Pi(function(i){n=i}),cancel:n}}}function nd(e){return function(t){return e.apply(null,t)}}function td(e){return U.isObject(e)&&e.isAxiosError===!0}const _i={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_i).forEach(([e,n])=>{_i[n]=e});function rl(e){const n=new Gn(e),t=Sa(Gn.prototype.request,n);return U.extend(t,Gn.prototype,n,{allOwnKeys:!0}),U.extend(t,n,null,{allOwnKeys:!0}),t.create=function(i){return rl(At(e,i))},t}const Re=rl(Dt);Re.Axios=Gn,Re.CanceledError=zt,Re.CancelToken=Pi,Re.isCancel=Ka,Re.VERSION=nl,Re.toFormData=Or,Re.AxiosError=Ce,Re.Cancel=Re.CanceledError,Re.all=function(n){return Promise.all(n)},Re.spread=nd,Re.isAxiosError=td,Re.mergeConfig=At,Re.AxiosHeaders=yn,Re.formToJSON=e=>Ya(U.isHTMLForm(e)?new FormData(e):e),Re.getAdapter=Xa.getAdapter,Re.HttpStatusCode=_i,Re.default=Re;const Ft=()=>localStorage.getItem("token");async function Ue(e,n,t,r=!0){let i;return t==="get"?i=Re.get(e,{params:n,timeout:1e3*60*10,headers:{Authorization:Ft()}}):t==="post"?i=Re.post(e,n,{headers:{Authorization:Ft()}}):t==="put"?i=Re.put(e,n,{headers:{Authorization:Ft()}}):t==="delete"?i=Re.delete(e,{params:n,headers:{Authorization:Ft()}}):t==="patch"&&(i=Re.patch(e,n,{headers:{Authorization:Ft()}})),new Promise((a,o)=>{i.then(l=>{l.data.code!==0?(r&&te.Message.error(l.data.msg),o(l.data.msg)):a(l.data.data)}).catch(l=>{var s;((s=l.response)==null?void 0:s.status)==401?r&&te.Message.error("你的账户已过期,请重新登录"):r&&te.Message.error("请求失败"),console.log("请求失败",l),o("请求失败")})})}let _r;const rd=new Uint8Array(16);function id(){if(!_r&&(_r=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _r(rd)}const Ge=[];for(let e=0;e<256;++e)Ge.push((e+256).toString(16).slice(1));function od(e,n=0){return Ge[e[n+0]]+Ge[e[n+1]]+Ge[e[n+2]]+Ge[e[n+3]]+"-"+Ge[e[n+4]]+Ge[e[n+5]]+"-"+Ge[e[n+6]]+Ge[e[n+7]]+"-"+Ge[e[n+8]]+Ge[e[n+9]]+"-"+Ge[e[n+10]]+Ge[e[n+11]]+Ge[e[n+12]]+Ge[e[n+13]]+Ge[e[n+14]]+Ge[e[n+15]]}const il={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ad(e,n,t){if(il.randomUUID&&!n&&!e)return il.randomUUID();e=e||{};const r=e.random||(e.rng||id)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,od(r)}var Rt;(function(e){e[e.LocalPath=0]="LocalPath",e[e.TencentCos=1]="TencentCos",e[e.ObjectUrl=2]="ObjectUrl",e[e.AliYunOss=3]="AliYunOss"})(Rt||(Rt={}));var Ti;(function(e){e[e.TaskAction=0]="TaskAction",e[e.WorkAction=1]="WorkAction",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.NavigateTo=7]="NavigateTo",e[e.ExtensionBlobConvert=8]="ExtensionBlobConvert",e[e.ExtensionGetId=9]="ExtensionGetId",e[e.OpenTool=10]="OpenTool",e[e.DownloadFile=11]="DownloadFile"})(Ti||(Ti={}));var Li;(function(e){e[e.TaskAction=0]="TaskAction",e[e.NavigateTo=3]="NavigateTo",e[e.OpenTool=6]="OpenTool",e[e.MqttBack=1]="MqttBack",e[e.ExtensionBlobUrl=4]="ExtensionBlobUrl",e[e.ExtensionId=5]="ExtensionId",e[e.UrlCallback=7]="UrlCallback",e[e.DownloadFileRes=8]="DownloadFileRes"})(Li||(Li={}));var ji;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(ji||(ji={}));var Di;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(Di||(Di={}));var Mi;(function(e){e[e.ChoosePic=-3]="ChoosePic",e[e.CostPoint=-4]="CostPoint",e[e.AddAction=-5]="AddAction",e[e.CloseWindow=-6]="CloseWindow",e[e.SendRequest=-7]="SendRequest",e[e.UploadFileByPath=-8]="UploadFileByPath",e[e.GetInitData=-9]="GetInitData"})(Mi||(Mi={}));const ld=e=>e>=1073741824?(e/1073741824).toFixed(2)+" GB":e>=1048576?(e/1048576).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B",ol=(e,n,t)=>{let r=e.path,i=Rt.LocalPath;return(n||!r)&&(r=URL.createObjectURL(e),i=Rt.ObjectUrl),{path:r,name:e.name,source:i,cloud_source:t,ext:e.name.split(".").pop(),size:e.size,uid:ad()}},sd=e=>new Date(e*1e3).toISOString().substring(11,19),ud=async()=>{const e=await pl(),n=e.token;return{cos:new Kc({getAuthorization:function(t,r){r({TmpSecretId:n.TmpSecretId,TmpSecretKey:n.TmpSecretKey,XCosSecurityToken:n.Token,StartTime:e.start_time,ExpiredTime:e.end_time})},SliceSize:1024*1024*5}),path:e.path,bucket:e.bucket,region:e.region}},cd=async()=>{const e=await Cd(),n=e.token;return{oss:new Qc({region:e.region,accessKeyId:n.TmpSecretId,accessKeySecret:n.TmpSecretKey,stsToken:n.Token,bucket:e.bucket}),path:e.path,bucket:e.bucket,region:e.region}},al=e=>{const n=[];for(const t in e){const r=e[t];r&&n.push(`${t}=${r}`)}return n.join("&")},pd=/\$(.*?)\$/g,dd=(e,n)=>{let t;const r=[];for(;(t=pd.exec(e))!==null;)t&&t.length>0&&r.push(t[1]);return r.map(i=>{const a=n[i];a&&(e=e.replace(`$${i}$`,i.split(".").length==2?a[i.split(".")[1]]:a))}),e},fd=e=>Object.keys(e).filter(n=>e[n]).map(n=>{let t=e[n];return["string","number","boolean"].includes(typeof t)?t=String(t):t=JSON.stringify(t),`${n}=${encodeURIComponent(t)}`}).join("&"),ll=e=>new Promise((n,t)=>{const r=new XMLHttpRequest;r.open("get",e),r.responseType="blob",r.send(),r.onload=function(){(this.status===200||this.status===304)&&(sl(URL.createObjectURL(this.response)),n())},r.onerror=function(){t("下载失败,请在新窗口打开")}}),sl=(e,n)=>{var r;const t=document.createElement("a");t.style.display="none",t.href=e,n?t.download=n:t.download=((r=e.split("?").shift())==null?void 0:r.split("/").pop())||e,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(e)},He=process.env.NODE_ENV=="production"?"https://api.zyjj.cc/api/v1":"http://127.0.0.1:3000/api/v1",hd=e=>Ue(`${He}/common/user/login`,e,"post"),md=(e,n,t)=>Ue(`${He}/common/app/info?os=${e}&version=${n}&uid=${t||""}`,{},"get"),yd=e=>Ue(`${He}/common/user/register`,e,"post"),Ad=e=>Ue(`${He}/common/user/reset/password`,e,"post"),ul=e=>Ue(`${He}/common/user/email/token`,{email:e},"post"),cl=()=>Ue(`${He}/user/user/info`,{},"get",!1),gd=e=>Ue(`${He}/user/user/info`,e,"put"),bd=e=>Ue(`${He}/user/point/deducting`,e,"post"),vd=e=>Ue(`${He}/common/tool/list?${al(e)}`,{},"get"),xd=()=>Ue(`${He}/common/tool/all`,{},"get"),wd=e=>Ue(`${He}/common/tool/${e}`,{},"get"),kd=e=>Ue(`${He}/common/tool/inc/${e}`,{},"get"),Ed=()=>Ue(`${He}/common/tool/tags`,{},"get"),pl=()=>Ue(`${He}/user/cloud/tencent/cos`,{},"get"),Cd=()=>Ue(`${He}/user/cloud/aliyun/oss`,{},"get"),Sd=e=>Ue(`${He}/user/task`,e,"post"),Bd=e=>Ue(`${He}/user/task/${e}`,{},"get"),dl=()=>Ue(`${He}/user/cloud/mqtt/task`,{},"get"),Id=()=>Ue(`${He}/common/material/tags`,{},"get"),Od=e=>Ue(`${He}/user/material/${e}`,{},"get"),Pd=e=>Ue(`${He}/user/material/url`,{key_list:e},"post"),_d=e=>Ue(`${He}${e.url}`,e.data||{},e.method);var zi;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab",e[e.Flow=2]="Flow"})(zi||(zi={}));var Fi;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Fi||(Fi={}));var et;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(et||(et={}));var Ri;(function(e){e[e.FileInput=0]="FileInput",e[e.FileInputList=1]="FileInputList",e[e.Select=2]="Select",e[e.FileGenerate=3]="FileGenerate",e[e.Input=4]="Input"})(Ri||(Ri={}));var Ni;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Ni||(Ni={}));var qi;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(qi||(qi={}));var on;(function(e){e[e.Input=0]="Input",e[e.Select=1]="Select",e[e.TextArea=2]="TextArea",e[e.FileUpload=3]="FileUpload",e[e.Slider=4]="Slider",e[e.Audio=5]="Audio",e[e.Number=6]="Number",e[e.ImageList=7]="ImageList",e[e.Image=8]="Image",e[e.Alert=9]="Alert",e[e.Video=10]="Video",e[e.MarkDown=11]="MarkDown"})(on||(on={}));var Tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ui={exports:{}},Nt={};/**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
9
9
  *
@@ -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=ny;function js(e){return e.value||""}function ny(){return"<"}Ds.peek=ty;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 ty(){return"!"}Ms.peek=ry;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 ry(){return"!"}zs.peek=iy;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 iy(){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=oy;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 oy(e,n,t){return Fs(e,t)?"<":"["}Ns.peek=ay;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 ay(){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 ly(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 sy(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 uy(e,n,t,r){const i=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?sy(t):_o(t);const l=e.ordered?o==="."?")":".":ly(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 cy(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 py(e,n,t,r){const i=cy(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 dy(e,n,t,r){const i=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,r);return a(),i(),o}const fy=Yr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hy(e,n,t,r){return(e.children.some(function(o){return fy(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function my(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=yy;function Us(e,n,t,r){const i=my(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 yy(e,n,t){return t.options.strong||"*"}function Ay(e,n,t,r){return t.safe(e.value,r)}function gy(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 by(e,n,t){const r=(qs(t)+(t.options.ruleSpaces?" ":"")).repeat(gy(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Hs={blockquote:Nm,break:Ps,code:Ym,definition:Km,emphasis:_s,hardBreak:Ps,heading:ey,html:js,image:Ds,imageReference:Ms,inlineCode:zs,link:Rs,linkReference:Ns,list:uy,listItem:py,paragraph:dy,root:hy,strong:Us,text:Ay,thematicBreak:by},$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 vy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xy(e){return e.replace(vy,wy)}function wy(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 ky(){return{enter:{table:Ey,tableData:Ys,tableHeader:Ys,tableRow:Sy},exit:{codeText:By,table:Cy,tableData:Lo,tableHeader:Lo,tableRow:Lo}}}function Ey(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 Cy(e){this.exit(e),this.data.inTable=void 0}function Sy(e){this.enter({type:"tableRow",children:[]},e)}function Lo(e){this.exit(e)}function Ys(e){this.enter({type:"tableCell",children:[]},e)}function By(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Iy));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Iy(e,n){return n==="|"?n:e}function Oy(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 zm(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 Py(){return{exit:{taskListCheckValueChecked:Vs,taskListCheckValueUnchecked:Vs,paragraph:Ty}}}function _y(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ly}}}function Vs(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Ty(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 Ly(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 jy(){return[am(),gm(),Tm(),ky(),Py()]}function Dy(e){return{extensions:[lm(),bm(),Lm(),Oy(e),_y()]}}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;)My(n,e[t]);return n}function My(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];zy(i[o],Array.isArray(l)?l:l?[l]:[])}}}function zy(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 Fy={tokenize:$y,partial:!0},Js={tokenize:Wy,partial:!0},Zs={tokenize:Yy,partial:!0},Xs={tokenize:Vy,partial:!0},Ry={tokenize:Ky,partial:!0},Gs={name:"wwwAutolink",tokenize:Uy,previous:nu},eu={name:"protocolAutolink",tokenize:Hy,previous:tu},Mn={name:"emailAutolink",tokenize:qy,previous:ru},Bn={};function Ny(){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 qy(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(Ry,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 Uy(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(Fy,e.attempt(Js,e.attempt(Zs,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Hy(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||Kr(u)||Le(u)||it(u)||Qr(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 $y(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 Wy(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&&Qr(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 Yy(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 Vy(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 Ky(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 Jr(e){if(e===null||Le(e)||it(e))return 1;if(Qr(e))return 2}function Zr(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:Jy,resolveAll:Qy};function Qy(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,Zr(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 Jy(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Jr(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=Jr(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 Zy={name:"autolink",tokenize:Xy};function Xy(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||Kr(A)?t(A):(e.consume(A),s)}function c(A){return A===64?(e.consume(A),h):rm(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 Yt={tokenize:Gy,partial:!0};function Gy(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:e0,continuation:{tokenize:n0},exit:t0};function e0(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 n0(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 t0(e){e.exit("blockQuote")}const au={name:"characterEscape",tokenize:r0};function r0(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 om(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const lu={name:"characterReference",tokenize:i0};function i0(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=im,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:a0,partial:!0},uu={name:"codeFenced",tokenize:o0,concrete:!0};function o0(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 a0(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:s0},l0={tokenize:u0,partial:!0};function s0(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(l0,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 u0(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 c0={name:"codeText",tokenize:f0,resolve:p0,previous:d0};function p0(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 d0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function f0(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 h0{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&&Vt(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),Vt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Vt(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);Vt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Vt(this.left,t.reverse())}}}function Vt(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 h0(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,m0(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 m0(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 y0={tokenize:b0,resolve:g0},A0={tokenize:v0,partial:!0};function g0(e){return cu(e),e}function b0(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(A0,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 v0(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||Kr(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||Kr(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 Kt(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 x0={name:"definition",tokenize:k0},w0={tokenize:E0,partial:!0};function k0(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)?Kt(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(w0,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 E0(e,n,t){return r;function r(l){return Le(l)?Kt(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 C0={name:"hardBreakEscape",tokenize:S0};function S0(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 B0={name:"headingAtx",tokenize:O0,resolve:I0};function I0(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 O0(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 P0=["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"],_0={name:"htmlFlow",tokenize:D0,resolveTo:j0,concrete:!0},T0={tokenize:z0,partial:!0},L0={tokenize:M0,partial:!0};function j0(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 D0(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)):P0.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(T0,we,ye)(P)):P===null||de(P)?(e.exit("htmlFlowData"),ye(P)):(e.consume(P),ue)}function ye(P){return e.check(L0,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 M0(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 z0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Yt,n,t)}}const F0={name:"htmlText",tokenize:R0};function R0(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:W0,resolveTo:$0,resolveAll:H0},N0={tokenize:Y0},q0={tokenize:V0},U0={tokenize:K0};function H0(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 $0(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,Zr(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 W0(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(N0,h,o?h:u)(f):f===91?e.attempt(q0,h,o?c:u)(f):o?h(f):u(f)}function c(f){return e.attempt(U0,h,u)(f)}function h(f){return n(f)}function u(f){return a._balanced=!0,t(f)}}function Y0(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)?Kt(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)?Kt(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)?Kt(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 V0(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 K0(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 Q0={name:"labelStartImage",tokenize:J0,resolveAll:Fo.resolveAll};function J0(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 Z0={name:"labelStartLink",tokenize:X0,resolveAll:Fo.resolveAll};function X0(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:G0};function G0(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,n,"linePrefix")}}const Xr={name:"thematicBreak",tokenize:eA};function eA(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:rA,continuation:{tokenize:iA},exit:aA},nA={tokenize:lA,partial:!0},tA={tokenize:oA,partial:!0};function rA(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(Xr,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(Yt,r.interrupt?t:h,e.attempt(nA,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 iA(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Yt,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(tA,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 oA(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 aA(e){e.exit(this.containerState.type)}function lA(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:uA,resolveTo:sA};function sA(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 uA(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 cA={tokenize:gA,partial:!0};function pA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mA,continuation:{tokenize:yA},exit:AA}},text:{91:{name:"gfmFootnoteCall",tokenize:hA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dA,resolveTo:fA}}}}function dA(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 fA(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 hA(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 mA(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 yA(e,n,t){return e.check(Yt,n,e.attempt(cA,n,t))}function AA(e){e.exit("gfmFootnoteDefinition")}function gA(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 bA(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,Zr(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=Jr(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=Jr(b);return S._open=!O||O===2&&!!v,S._close=!v||v===2&&!!O,l(b)}}}class vA{constructor(){this.map=[]}add(n,t,r){xA(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 xA(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 wA(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 kA(){return{flow:{null:{name:"table",tokenize:EA,resolveAll:CA}}}}function EA(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 CA(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 vA;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=Gr(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=Gr(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=Gr(f,n,a,i,t,u)):o[1]!==0&&(u=Gr(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=wA(n.events,t))}return e}function Gr(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 SA={name:"tasklistCheck",tokenize:IA};function BA(){return{text:{91:SA}}}function IA(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:OA},n,t)(s):t(s)}}function OA(e,n,t){return Se(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function PA(e){return Qs([Ny(),pA(),bA(e),kA(),BA()])}const _A={};function TA(e){const n=this,t=e||_A,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(PA(t)),a.push(jy()),o.push(Dy(t))}function LA(e){const[n,t]=re.useState(!1),[r,i]=re.useState();return re.useEffect(()=>{Promise.resolve().then(()=>Iv).then(a=>{i(q.jsx(a.default,{remarkPlugins:[tm,TA],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(Wr,{noSuccess:!0,onClick:async()=>t(a=>!a),icon:n?q.jsx(Ao,{}):q.jsx(xo,{}),tip:n?"预览":"编辑"}),q.jsx(qh,{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 jA=Object.freeze(Object.defineProperty({__proto__:null,default:LA},Symbol.toStringTag,{value:"Module"}));function DA(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(()=>Ov).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 MA=Object.freeze(Object.defineProperty({__proto__:null,default:DA},Symbol.toStringTag,{value:"Module"}));function zA(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,t==null?void 0:t.no_path)),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 FA=Object.freeze(Object.defineProperty({__proto__:null,default:zA},Symbol.toStringTag,{value:"Module"}));function RA(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:RA},Symbol.toStringTag,{value:"Module"}));function NA(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 qA=Object.freeze(Object.defineProperty({__proto__:null,default:NA},Symbol.toStringTag,{value:"Module"}));function UA(e){return e.value?q.jsx(te.Space,{children:q.jsx(vs,{src:e.value})}):q.jsx(q.Fragment,{})}const HA=Object.freeze(Object.defineProperty({__proto__:null,default:UA},Symbol.toStringTag,{value:"Module"}));function $A(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 WA=Object.freeze(Object.defineProperty({__proto__:null,default:$A},Symbol.toStringTag,{value:"Module"}));function YA(e){var t;const n=re.useCallback(r=>{!r||!e.value||Promise.resolve().then(()=>Pv).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 VA=Object.freeze(Object.defineProperty({__proto__:null,default:YA},Symbol.toStringTag,{value:"Module"}));function KA(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const QA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZA={};function gu(e,n){return(ZA.jsx?JA:QA).test(e)}const XA=/[ \t\n\f\r]/g;function GA(e){return typeof e=="object"?e.type==="text"?bu(e.value):!1:bu(e)}function bu(e){return e.replace(XA,"")===""}class Qt{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}Qt.prototype.property={},Qt.prototype.normal={},Qt.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 Qt(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 eg=0;const ge=at(),Ve=at(),xu=at(),K=at(),De=at(),wt=at(),hn=at();function at(){return 2**++eg}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 ng={}.hasOwnProperty;function kt(e){const n={},t={};let r;for(r in e.properties)if(ng.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 Qt(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}}),tg=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}}),rg=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}}),ig=/^data[-\w.:]+$/i,Ou=/-[a-z]/g,og=/[A-Z]/g;function ag(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"&&ig.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(Ou,sg);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!Ou.test(a)){let o=a.replace(og,lg);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ho}return new i(r,n)}function lg(e){return"-"+e.toLowerCase()}function sg(e){return e.charAt(1).toUpperCase()}const ug={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"},cg=vu([Eu,ku,Bu,Iu,tg],"html"),$o=vu([Eu,ku,Bu,Iu,rg],"svg");function pg(e){return e.join(" ").trim()}var Pu={},_u=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,dg=/\n/g,fg=/^\s*/,hg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mg=/^:\s*/,yg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ag=/^[;\s]*/,gg=/^\s+|\s+$/g,bg=`
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 zm(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 Py(){return{exit:{taskListCheckValueChecked:Vs,taskListCheckValueUnchecked:Vs,paragraph:Ty}}}function _y(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ly}}}function Vs(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Ty(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 Ly(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 jy(){return[am(),gm(),Tm(),ky(),Py()]}function Dy(e){return{extensions:[lm(),bm(),Lm(),Oy(e),_y()]}}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;)My(n,e[t]);return n}function My(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];zy(i[o],Array.isArray(l)?l:l?[l]:[])}}}function zy(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 Fy={tokenize:$y,partial:!0},Js={tokenize:Wy,partial:!0},Zs={tokenize:Yy,partial:!0},Xs={tokenize:Vy,partial:!0},Ry={tokenize:Ky,partial:!0},Gs={name:"wwwAutolink",tokenize:Uy,previous:nu},eu={name:"protocolAutolink",tokenize:Hy,previous:tu},Mn={name:"emailAutolink",tokenize:qy,previous:ru},Bn={};function Ny(){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 qy(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(Ry,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 Uy(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(Fy,e.attempt(Js,e.attempt(Zs,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Hy(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||Kr(u)||Le(u)||it(u)||Qr(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 $y(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 Wy(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&&Qr(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 Yy(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 Vy(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 Ky(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 Jr(e){if(e===null||Le(e)||it(e))return 1;if(Qr(e))return 2}function Zr(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:Jy,resolveAll:Qy};function Qy(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,Zr(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 Jy(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Jr(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=Jr(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 Zy={name:"autolink",tokenize:Xy};function Xy(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||Kr(A)?t(A):(e.consume(A),s)}function c(A){return A===64?(e.consume(A),h):rm(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 Yt={tokenize:Gy,partial:!0};function Gy(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:e0,continuation:{tokenize:n0},exit:t0};function e0(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 n0(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 t0(e){e.exit("blockQuote")}const au={name:"characterEscape",tokenize:r0};function r0(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 om(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const lu={name:"characterReference",tokenize:i0};function i0(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=im,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:a0,partial:!0},uu={name:"codeFenced",tokenize:o0,concrete:!0};function o0(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 a0(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:s0},l0={tokenize:u0,partial:!0};function s0(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(l0,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 u0(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 c0={name:"codeText",tokenize:f0,resolve:p0,previous:d0};function p0(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 d0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function f0(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 h0{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&&Vt(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),Vt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Vt(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);Vt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Vt(this.left,t.reverse())}}}function Vt(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 h0(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,m0(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 m0(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 y0={tokenize:b0,resolve:g0},A0={tokenize:v0,partial:!0};function g0(e){return cu(e),e}function b0(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(A0,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 v0(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||Kr(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||Kr(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 Kt(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 x0={name:"definition",tokenize:k0},w0={tokenize:E0,partial:!0};function k0(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)?Kt(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(w0,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 E0(e,n,t){return r;function r(l){return Le(l)?Kt(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 C0={name:"hardBreakEscape",tokenize:S0};function S0(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 B0={name:"headingAtx",tokenize:O0,resolve:I0};function I0(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 O0(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 P0=["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"],_0={name:"htmlFlow",tokenize:D0,resolveTo:j0,concrete:!0},T0={tokenize:z0,partial:!0},L0={tokenize:M0,partial:!0};function j0(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 D0(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)):P0.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(T0,we,ye)(P)):P===null||de(P)?(e.exit("htmlFlowData"),ye(P)):(e.consume(P),ue)}function ye(P){return e.check(L0,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 M0(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 z0(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Yt,n,t)}}const F0={name:"htmlText",tokenize:R0};function R0(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:W0,resolveTo:$0,resolveAll:H0},N0={tokenize:Y0},q0={tokenize:V0},U0={tokenize:K0};function H0(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 $0(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,Zr(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 W0(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(N0,h,o?h:u)(f):f===91?e.attempt(q0,h,o?c:u)(f):o?h(f):u(f)}function c(f){return e.attempt(U0,h,u)(f)}function h(f){return n(f)}function u(f){return a._balanced=!0,t(f)}}function Y0(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)?Kt(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)?Kt(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)?Kt(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 V0(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 K0(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 Q0={name:"labelStartImage",tokenize:J0,resolveAll:Fo.resolveAll};function J0(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 Z0={name:"labelStartLink",tokenize:X0,resolveAll:Fo.resolveAll};function X0(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:G0};function G0(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,n,"linePrefix")}}const Xr={name:"thematicBreak",tokenize:eA};function eA(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:rA,continuation:{tokenize:iA},exit:aA},nA={tokenize:lA,partial:!0},tA={tokenize:oA,partial:!0};function rA(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(Xr,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(Yt,r.interrupt?t:h,e.attempt(nA,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 iA(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Yt,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(tA,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 oA(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 aA(e){e.exit(this.containerState.type)}function lA(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:uA,resolveTo:sA};function sA(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 uA(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 cA={tokenize:gA,partial:!0};function pA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mA,continuation:{tokenize:yA},exit:AA}},text:{91:{name:"gfmFootnoteCall",tokenize:hA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dA,resolveTo:fA}}}}function dA(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 fA(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 hA(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 mA(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 yA(e,n,t){return e.check(Yt,n,e.attempt(cA,n,t))}function AA(e){e.exit("gfmFootnoteDefinition")}function gA(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 bA(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,Zr(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=Jr(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=Jr(b);return S._open=!O||O===2&&!!v,S._close=!v||v===2&&!!O,l(b)}}}class vA{constructor(){this.map=[]}add(n,t,r){xA(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 xA(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 wA(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 kA(){return{flow:{null:{name:"table",tokenize:EA,resolveAll:CA}}}}function EA(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 CA(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 vA;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=Gr(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=Gr(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=Gr(f,n,a,i,t,u)):o[1]!==0&&(u=Gr(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=wA(n.events,t))}return e}function Gr(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 SA={name:"tasklistCheck",tokenize:IA};function BA(){return{text:{91:SA}}}function IA(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:OA},n,t)(s):t(s)}}function OA(e,n,t){return Se(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function PA(e){return Qs([Ny(),pA(),bA(e),kA(),BA()])}const _A={};function TA(e){const n=this,t=e||_A,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(PA(t)),a.push(jy()),o.push(Dy(t))}function LA(e){const[n,t]=re.useState(!1),[r,i]=re.useState();return re.useEffect(()=>{Promise.resolve().then(()=>Iv).then(a=>{i(q.jsx(a.default,{remarkPlugins:[tm,TA],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(Wr,{noSuccess:!0,onClick:async()=>t(a=>!a),icon:n?q.jsx(Ao,{}):q.jsx(xo,{}),tip:n?"预览":"编辑"}),q.jsx(qh,{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 jA=Object.freeze(Object.defineProperty({__proto__:null,default:LA},Symbol.toStringTag,{value:"Module"}));function DA(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(()=>Ov).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 MA=Object.freeze(Object.defineProperty({__proto__:null,default:DA},Symbol.toStringTag,{value:"Module"}));function zA(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,t==null?void 0:t.object_url,t==null?void 0:t.cloud_source)),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 FA=Object.freeze(Object.defineProperty({__proto__:null,default:zA},Symbol.toStringTag,{value:"Module"}));function RA(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:RA},Symbol.toStringTag,{value:"Module"}));function NA(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 qA=Object.freeze(Object.defineProperty({__proto__:null,default:NA},Symbol.toStringTag,{value:"Module"}));function UA(e){return e.value?q.jsx(te.Space,{children:q.jsx(vs,{src:e.value})}):q.jsx(q.Fragment,{})}const HA=Object.freeze(Object.defineProperty({__proto__:null,default:UA},Symbol.toStringTag,{value:"Module"}));function $A(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 WA=Object.freeze(Object.defineProperty({__proto__:null,default:$A},Symbol.toStringTag,{value:"Module"}));function YA(e){var t;const n=re.useCallback(r=>{!r||!e.value||Promise.resolve().then(()=>Pv).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 VA=Object.freeze(Object.defineProperty({__proto__:null,default:YA},Symbol.toStringTag,{value:"Module"}));function KA(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const QA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZA={};function gu(e,n){return(ZA.jsx?JA:QA).test(e)}const XA=/[ \t\n\f\r]/g;function GA(e){return typeof e=="object"?e.type==="text"?bu(e.value):!1:bu(e)}function bu(e){return e.replace(XA,"")===""}class Qt{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}Qt.prototype.property={},Qt.prototype.normal={},Qt.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 Qt(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 eg=0;const ge=at(),Ve=at(),xu=at(),K=at(),De=at(),wt=at(),hn=at();function at(){return 2**++eg}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 ng={}.hasOwnProperty;function kt(e){const n={},t={};let r;for(r in e.properties)if(ng.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 Qt(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}}),tg=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}}),rg=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}}),ig=/^data[-\w.:]+$/i,Ou=/-[a-z]/g,og=/[A-Z]/g;function ag(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"&&ig.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(Ou,sg);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!Ou.test(a)){let o=a.replace(og,lg);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Ho}return new i(r,n)}function lg(e){return"-"+e.toLowerCase()}function sg(e){return e.charAt(1).toUpperCase()}const ug={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"},cg=vu([Eu,ku,Bu,Iu,tg],"html"),$o=vu([Eu,ku,Bu,Iu,rg],"svg");function pg(e){return e.join(" ").trim()}var Pu={},_u=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,dg=/\n/g,fg=/^\s*/,hg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mg=/^:\s*/,yg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ag=/^[;\s]*/,gg=/^\s+|\s+$/g,bg=`
51
51
  `,Tu="/",Lu="*",lt="",vg="comment",xg="declaration",wg=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(dg);v&&(t+=v.length);var S=b.lastIndexOf(bg);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(fg)}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:vg,comment:S})}}function f(){var b=a(),v=s(hg);if(v){if(u(),!s(mg))return l("property missing ':'");var S=s(yg),O=b({type:xg,property:ju(v[0].replace(_u,lt)),value:S?ju(S[0].replace(_u,lt)):lt});return s(Ag),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(gg,lt):lt}var kg=Tr&&Tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pu,"__esModule",{value:!0});var Eg=kg(wg);function Cg(e,n){var t=null;if(!e||typeof e!="string")return t;var r=(0,Eg.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=Cg;const Sg=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 Bg(e){const n=Wo(e),t=Mu(e);if(n&&t)return{start:n,end:t}}function Jt(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=Jt(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,Ig=new Map,Og=/[A-Z]/g,Pg=/-([a-z])/g,_g=new Set(["table","tbody","thead","tfoot","tr"]),Tg=new Set(["td","th"]),Nu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Lg(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=qg(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=Ng(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:cg,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 jg(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Dg(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return zg(e,n,t);if(n.type==="mdxjsEsm")return Mg(e,n);if(n.type==="root")return Fg(e,n,t);if(n.type==="text")return Rg(e,n)}function jg(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=Ug(e,n);let l=Qo(e,n);return _g.has(n.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!GA(s):!0})),Uu(e,o,a,n),Ko(o,l),e.ancestors.pop(),e.schema=r,e.create(n,a,o,t)}function Dg(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)}Zt(e,n.position)}function Mg(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Zt(e,n.position)}function zg(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=Hg(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 Fg(e,n,t){const r={};return Ko(r,Qo(e,n)),e.create(n,e.Fragment,r,t)}function Rg(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 Ng(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 qg(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 Ug(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Vo.call(n.properties,i)){const a=$g(e,i,n.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Tg.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 Hg(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 Zt(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 Zt(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:Ig;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 $g(e,n,t){const r=ag(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?KA(t):pg(t)),r.property==="style"){let i=typeof t=="object"?t:Wg(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Yg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ug[r.property]||r.property:r.attribute,t]}}function Wg(e,n){const t={};try{Sg(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(Pg,Kg)),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);Zt(e)}function Zt(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 Yg(e){const n={};let t;for(t in e)Vo.call(e,t)&&(n[Vg(t)]=e[t]);return n}function Vg(e){let n=e.replace(Og,Qg);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Kg(e,n){return n.toUpperCase()}function Qg(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"]},Jg={tokenize:Zg};function Zg(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 Xg={tokenize:Gg},$u={tokenize:eb};function Gg(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 eb(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 nb={tokenize:tb};function tb(e){const n=this,t=e.attempt(Yt,r,e.attempt(this.parser.constructs.flowInitial,i,Se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(y0,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 rb={resolveAll:Yu()},ib=Wu("string"),ob=Wu("text");function Wu(e){return{tokenize:n,resolveAll:Yu(e==="text"?ab: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 ab(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 lb(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=Zr(a,c.events,c),c.events)}function f(Q,ue){return ub(A(Q),ue)}function A(Q){return sb(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 $e;function $e(ze){const Ne=ze!==null&&ke[ze],Pe=ze!==null&&ke.null,en=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...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 $e;function $e(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 sb(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 ub(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 cb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:x0},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:B0,42:Xr,45:[mu,Xr],60:_0,61:mu,95:Xr,96:uu,126:uu},flowInitial:{[-2]:zo,[-1]:zo,32:zo},insideSpan:{null:[Mo,rb]},string:{38:lu,92:au},text:{[-5]:Ro,[-4]:Ro,[-3]:Ro,33:Q0,38:lu,42:Mo,60:[Zy,F0],91:Z0,92:[C0,au],93:Fo,95:Mo,96:c0}},Symbol.toStringTag,{value:"Module"}));function pb(e){const t=Qs([cb,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(Jg),document:i(Xg),flow:i(nb),string:i(ib),text:i(ob)};return r;function i(a){return o;function o(l){return lb(r,a,l)}}}function db(e){for(;!cu(e););return e}const Vu=/[\0\t\n\r]/g;function fb(){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 hb(e,n,t){return typeof n!="string"&&(t=n,n=void 0),mb(t)(db(pb(t).document().write(fb()(e,n,!0))))}function mb(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:Ne,autolinkProtocol:ze,blockQuote:s(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Me,characterReferenceMarkerNumeric:Me,characterReferenceValue:ke,characterReference:$e,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+"` ("+Jt({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=xy(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 $e(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 Ne(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):yb(e,r)}}function yb(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+"` ("+Jt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Jt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Jt({start:n.start,end:n.end})+") is still open")}function Ab(e){const n=this;n.parser=t;function t(r){return hb(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function gb(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 bb(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
@@ -1,8 +1,8 @@
1
- import { ToolParamFile } from "../types/local-task.ts";
1
+ import { FileSource, ToolParamFile } from "../types/local-task.ts";
2
2
  import COS from 'cos-js-sdk-v5';
3
3
  import OSS from 'ali-oss';
4
4
  export declare const convertFileSize: (bytes: number) => string;
5
- export declare const File2ToolParamFile: (file: File, no_path?: boolean) => ToolParamFile;
5
+ export declare const File2ToolParamFile: (file: File, no_path?: boolean, cloud_source?: FileSource) => ToolParamFile;
6
6
  export declare const Seconds2TimeStr: (seconds: number) => string;
7
7
  export declare const getTencentCosInfo: () => Promise<{
8
8
  cos: COS;
@@ -1,4 +1,4 @@
1
- import { TaskType } from "./local-task.ts";
1
+ import { FileSource, TaskType } from "./local-task.ts";
2
2
  export interface ToolConfigInfo {
3
3
  unique: string;
4
4
  name: string;
@@ -119,7 +119,8 @@ export interface SelectData {
119
119
  export interface UploadData {
120
120
  accept: string;
121
121
  max_size?: number;
122
- no_path?: boolean;
122
+ object_url?: boolean;
123
+ cloud_source?: FileSource;
123
124
  }
124
125
  export interface SliderData {
125
126
  max: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyjj-web-sdk",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"
@@ -1,64 +0,0 @@
1
- import { j as i, F as x } from "./index-Dwng81sg.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";
4
- import { I as C, _ as w, a as P } from "./context-tmjHwBoF.js";
5
- function m(n, o) {
6
- var e = Object.keys(n);
7
- if (Object.getOwnPropertySymbols) {
8
- var t = Object.getOwnPropertySymbols(n);
9
- o && (t = t.filter(function(r) {
10
- return Object.getOwnPropertyDescriptor(n, r).enumerable;
11
- })), e.push.apply(e, t);
12
- }
13
- return e;
14
- }
15
- function d(n) {
16
- for (var o = 1; o < arguments.length; o++) {
17
- var e = arguments[o] != null ? arguments[o] : {};
18
- o % 2 ? m(Object(e), !0).forEach(function(t) {
19
- P(n, t, e[t]);
20
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : m(Object(e)).forEach(function(t) {
21
- Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(e, t));
22
- });
23
- }
24
- return n;
25
- }
26
- function _(n, o) {
27
- var e = O(C), t = e.prefixCls, r = t === void 0 ? "arco" : t, a = n.spin, c = n.className, s = d(d({
28
- "aria-hidden": !0,
29
- focusable: !1,
30
- ref: o
31
- }, n), {}, {
32
- className: "".concat(c ? c + " " : "").concat(r, "-icon ").concat(r, "-icon-upload")
33
- });
34
- return a && (s.className = "".concat(s.className, " ").concat(r, "-icon-loading")), delete s.spin, delete s.isIcon, /* @__PURE__ */ l.createElement("svg", w({
35
- fill: "none",
36
- stroke: "currentColor",
37
- strokeWidth: "4",
38
- viewBox: "0 0 48 48"
39
- }, s), /* @__PURE__ */ l.createElement("path", {
40
- d: "M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"
41
- }));
42
- }
43
- var p = /* @__PURE__ */ l.forwardRef(_);
44
- p.defaultProps = {
45
- isIcon: !0
46
- };
47
- p.displayName = "IconUpload";
48
- function F(n) {
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
- console.log("custom upload", u);
51
- const { onSuccess: v, file: f } = u;
52
- if (f.size > r) {
53
- h.warning(`文件大小超过 ${r / 1024 / 1024}M, 请重新上传!`), c([]);
54
- return;
55
- }
56
- t && t(x(f, e == null ? void 0 : e.no_path)), v();
57
- };
58
- return g(() => {
59
- c(o ? [{ uid: o.uid, name: o.name }] : []);
60
- }, [o]), i.jsx(y, { accept: e == null ? void 0 : e.accept, fileList: a, onChange: c, onRemove: () => t(void 0), limit: 1, customRequest: s, children: i.jsx(b, { type: "outline", icon: i.jsx(p, {}), children: "点击上传" }) });
61
- }
62
- export {
63
- F as default
64
- };