From 8962860cfa8eaa61257fb5b2683c7890cf559f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=A0=E9=9D=99=E8=90=9D=E8=8E=89?= Date: Fri, 1 Dec 2023 21:08:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- .../_site/assets/{index.75e9f1bb.js => index.79021b1b.js} | 4 ++-- .../_site/assets/{index.3eea9dee.js => index.a8408da8.js} | 2 +- .../assets/{preview.fe6fa30a.js => preview.eeca2cc2.js} | 2 +- packages/frontend/_site/index.html | 2 +- packages/frontend/src/pages/api/operation.vue | 4 +++- packages/scripts/index.js | 4 ++++ packages/server/services/execute.ts | 2 +- 8 files changed, 16 insertions(+), 10 deletions(-) rename packages/frontend/_site/assets/{index.75e9f1bb.js => index.79021b1b.js} (97%) rename packages/frontend/_site/assets/{index.3eea9dee.js => index.a8408da8.js} (99%) rename packages/frontend/_site/assets/{preview.fe6fa30a.js => preview.eeca2cc2.js} (75%) diff --git a/README.md b/README.md index 79e805485..217b6047d 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ ### 主功能界面 -image +image 你可以主界面里做组件 API 的增删改查操作。 ### 生成 API -image +image -点击 “生成文件” 按钮,指定生成组件和技术栈框架平台,确认后会在本地 `packages/products/` 对应仓库目录下生成对应 md 文档、API 定义等文件。 +点击 “Generate API Files” 按钮,指定生成组件和技术栈框架平台,确认后会在本地 `packages/products/` 对应仓库目录下生成对应 md 文档、API 定义等文件。 ### 提交 diff --git a/packages/frontend/_site/assets/index.75e9f1bb.js b/packages/frontend/_site/assets/index.79021b1b.js similarity index 97% rename from packages/frontend/_site/assets/index.75e9f1bb.js rename to packages/frontend/_site/assets/index.79021b1b.js index 45123b9bc..0b43a0725 100644 --- a/packages/frontend/_site/assets/index.75e9f1bb.js +++ b/packages/frontend/_site/assets/index.79021b1b.js @@ -1,4 +1,4 @@ -var Od=Object.defineProperty,Ad=Object.defineProperties;var Md=Object.getOwnPropertyDescriptors;var zl=Object.getOwnPropertySymbols;var Ld=Object.prototype.hasOwnProperty,Pd=Object.prototype.propertyIsEnumerable;var Ul=(i,s,o)=>s in i?Od(i,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[s]=o,oe=(i,s)=>{for(var o in s||(s={}))Ld.call(s,o)&&Ul(i,o,s[o]);if(zl)for(var o of zl(s))Pd.call(s,o)&&Ul(i,o,s[o]);return i},Qe=(i,s)=>Ad(i,Md(s));import{V as Do,_ as ko,u as Eo,I as $o,a as Oo,c as ta,b as Mu,d as Ao,n as er,B as Nd,e as Lu,P as Id,C as Pu,f as Nu,S as Mo,O as Lo,k as Iu,l as Fd,p as Rd,g as jd,h as Fu,i as Bd,R as Wd,j as Hd,m as fn,o as zd,q as Ud,D as Gd}from"./index.3eea9dee.js";import Vd from"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import qd from"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var Kd=["size"];function Gl(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),o.push.apply(o,u)}return o}function Vl(i){for(var s=1;s2),k=/Android/.test(o),$=G||k||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),L=G||/Mac/.test(u),B=/\bCrOS\b/.test(o),W=/win/i.test(u),Q=I&&o.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(I=!1,S=!0);var fe=L&&(A||I&&(Q==null||Q<12.11)),ee=d||T&&w>=9;function he(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Se=function(e,t){var n=e.className,r=he(t).exec(n);if(r){var a=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(a?r[1]+a:"")}};function Me(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return Me(e).appendChild(t)}function R(e,t,n,r){var a=document.createElement(e);if(n&&(a.className=n),r&&(a.style.cssText=r),typeof t=="string")a.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return f+(t-l);f+=c-l,f+=n-f%n,l=c+1}}var _e=function(){this.id=null,this.f=null,this.time=0,this.handler=qe(this.onTimeout,this)};_e.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},_e.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(f,t-a);if(a+=l-r,a+=n-a%n,r=l+1,a>=t)return r}}var Dt=[""];function Nr(e){for(;Dt.length<=e;)Dt.push(pe(Dt)+" ");return Dt[e]}function pe(e){return e[e.length-1]}function kt(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fi.test(e))}function Fr(e,t){return t?t.source.indexOf("\\w")>-1&&Ir(e)?!0:t.test(e):Ir(e)}function ci(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var la=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Sn(e){return e.charCodeAt(0)>=768&&la.test(e)}function di(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var a=(t+n)/2,l=r<0?Math.ceil(a):Math.floor(a);if(l==t)return e(l)?t:n;e(l)?n=l:t=l+r}}function ua(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var a=!1,l=0;lt||t==n&&f.to==t)&&(r(Math.max(f.from,t),Math.min(f.to,n),f.level==1?"rtl":"ltr",l),a=!0)}a||r(t,n,"ltr")}var bt=null;function $e(e,t,n){var r;bt=null;for(var a=0;at)return a;l.to==t&&(l.from!=l.to&&n=="before"?r=a:bt=a),l.from==t&&(l.from!=l.to&&n!="before"?r=a:bt=a)}return r!=null?r:bt}var mr=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(h){return h<=247?e.charAt(h):1424<=h&&h<=1524?"R":1536<=h&&h<=1785?t.charAt(h-1536):1774<=h&&h<=2220?"r":8192<=h&&h<=8203?"w":h==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,l=/[LRr]/,f=/[Lb1n]/,c=/[1n]/;function p(h,b,C){this.level=h,this.from=b,this.to=C}return function(h,b){var C=b=="ltr"?"L":"R";if(h.length==0||b=="ltr"&&!r.test(h))return!1;for(var D=h.length,_=[],O=0;O-1&&(r[t]=a.slice(0,l).concat(a.slice(l+1)))}}}function le(e,t){var n=Rr(e,t);if(!!n.length)for(var r=Array.prototype.slice.call(arguments,2),a=0;a0}function It(e){e.prototype.on=function(t,n){ae(this,t,n)},e.prototype.off=function(t,n){at(this,t,n)}}function Je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Br(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ct(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function yr(e){Je(e),Br(e)}function rr(e){return e.target||e.srcElement}function pi(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),L&&e.ctrlKey&&t==1&&(t=3),t}var Tn=function(){if(T&&w<9)return!1;var e=R("div");return"draggable"in e||"dragDrop"in e}(),ot;function hi(e){if(ot==null){var t=R("span","\u200B");N(e,R("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ot=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&w<8))}var n=ot?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var wn;function Ft(e){if(wn!=null)return wn;var t=N(e,document.createTextNode("A\u062EA")),n=yt(t,0,1).getBoundingClientRect(),r=yt(t,1,2).getBoundingClientRect();return Me(e),!n||n.left==n.right?!1:wn=r.right-n.right<3}var _n=` +var Od=Object.defineProperty,Ad=Object.defineProperties;var Md=Object.getOwnPropertyDescriptors;var zl=Object.getOwnPropertySymbols;var Ld=Object.prototype.hasOwnProperty,Pd=Object.prototype.propertyIsEnumerable;var Ul=(i,s,o)=>s in i?Od(i,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[s]=o,oe=(i,s)=>{for(var o in s||(s={}))Ld.call(s,o)&&Ul(i,o,s[o]);if(zl)for(var o of zl(s))Pd.call(s,o)&&Ul(i,o,s[o]);return i},Qe=(i,s)=>Ad(i,Md(s));import{V as Do,_ as ko,u as Eo,I as $o,a as Oo,c as ta,b as Mu,d as Ao,n as er,B as Nd,e as Lu,P as Id,C as Pu,f as Nu,S as Mo,O as Lo,k as Iu,l as Fd,p as Rd,g as jd,h as Fu,i as Bd,R as Wd,j as Hd,m as fn,o as zd,q as Ud,D as Gd}from"./index.a8408da8.js";import Vd from"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import qd from"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var Kd=["size"];function Gl(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),o.push.apply(o,u)}return o}function Vl(i){for(var s=1;s2),k=/Android/.test(o),$=G||k||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),L=G||/Mac/.test(u),B=/\bCrOS\b/.test(o),W=/win/i.test(u),Q=I&&o.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(I=!1,S=!0);var fe=L&&(A||I&&(Q==null||Q<12.11)),ee=d||T&&w>=9;function he(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Se=function(e,t){var n=e.className,r=he(t).exec(n);if(r){var a=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(a?r[1]+a:"")}};function Me(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return Me(e).appendChild(t)}function R(e,t,n,r){var a=document.createElement(e);if(n&&(a.className=n),r&&(a.style.cssText=r),typeof t=="string")a.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return f+(t-l);f+=c-l,f+=n-f%n,l=c+1}}var _e=function(){this.id=null,this.f=null,this.time=0,this.handler=qe(this.onTimeout,this)};_e.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},_e.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(f,t-a);if(a+=l-r,a+=n-a%n,r=l+1,a>=t)return r}}var Dt=[""];function Nr(e){for(;Dt.length<=e;)Dt.push(pe(Dt)+" ");return Dt[e]}function pe(e){return e[e.length-1]}function kt(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fi.test(e))}function Fr(e,t){return t?t.source.indexOf("\\w")>-1&&Ir(e)?!0:t.test(e):Ir(e)}function ci(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var la=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Sn(e){return e.charCodeAt(0)>=768&&la.test(e)}function di(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var a=(t+n)/2,l=r<0?Math.ceil(a):Math.floor(a);if(l==t)return e(l)?t:n;e(l)?n=l:t=l+r}}function ua(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var a=!1,l=0;lt||t==n&&f.to==t)&&(r(Math.max(f.from,t),Math.min(f.to,n),f.level==1?"rtl":"ltr",l),a=!0)}a||r(t,n,"ltr")}var bt=null;function $e(e,t,n){var r;bt=null;for(var a=0;at)return a;l.to==t&&(l.from!=l.to&&n=="before"?r=a:bt=a),l.from==t&&(l.from!=l.to&&n!="before"?r=a:bt=a)}return r!=null?r:bt}var mr=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(h){return h<=247?e.charAt(h):1424<=h&&h<=1524?"R":1536<=h&&h<=1785?t.charAt(h-1536):1774<=h&&h<=2220?"r":8192<=h&&h<=8203?"w":h==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,l=/[LRr]/,f=/[Lb1n]/,c=/[1n]/;function p(h,b,C){this.level=h,this.from=b,this.to=C}return function(h,b){var C=b=="ltr"?"L":"R";if(h.length==0||b=="ltr"&&!r.test(h))return!1;for(var D=h.length,_=[],O=0;O-1&&(r[t]=a.slice(0,l).concat(a.slice(l+1)))}}}function le(e,t){var n=Rr(e,t);if(!!n.length)for(var r=Array.prototype.slice.call(arguments,2),a=0;a0}function It(e){e.prototype.on=function(t,n){ae(this,t,n)},e.prototype.off=function(t,n){at(this,t,n)}}function Je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Br(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ct(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function yr(e){Je(e),Br(e)}function rr(e){return e.target||e.srcElement}function pi(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),L&&e.ctrlKey&&t==1&&(t=3),t}var Tn=function(){if(T&&w<9)return!1;var e=R("div");return"draggable"in e||"dragDrop"in e}(),ot;function hi(e){if(ot==null){var t=R("span","\u200B");N(e,R("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ot=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&w<8))}var n=ot?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var wn;function Ft(e){if(wn!=null)return wn;var t=N(e,document.createTextNode("A\u062EA")),n=yt(t,0,1).getBoundingClientRect(),r=yt(t,1,2).getBoundingClientRect();return Me(e),!n||n.left==n.right?!1:wn=r.right-n.right<3}var _n=` b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var a=e.indexOf(` `,t);a==-1&&(a=e.length);var l=e.slice(t,e.charAt(a-1)=="\r"?a-1:a),f=l.indexOf("\r");f!=-1?(n.push(l.slice(0,f)),t+=f+1):(n.push(l),t=a+1)}return n}:function(e){return e.split(/\r\n?|\n/)},vi=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},gi=function(){var e=R("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Dn=null;function nr(e){if(Dn!=null)return Dn;var t=N(e,R("span","x")),n=t.getBoundingClientRect(),r=yt(t,0,1).getBoundingClientRect();return Dn=Math.abs(n.left-r.left)>1}var Et={},xt={};function mi(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Et[e]=t}function qt(e,t){xt[e]=t}function Wr(e){if(typeof e=="string"&&xt.hasOwnProperty(e))e=xt[e];else if(e&&typeof e.name=="string"&&xt.hasOwnProperty(e.name)){var t=xt[e.name];typeof t=="string"&&(t={name:t}),e=ui(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Wr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Wr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Hr(e,t){t=Wr(t);var n=Et[t.name];if(!n)return Hr(e,"text/plain");var r=n(e,t);if($t.hasOwnProperty(t.name)){var a=$t[t.name];for(var l in a)!a.hasOwnProperty(l)||(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=a[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var f in t.modeProps)r[f]=t.modeProps[f];return r}var $t={};function Ot(e,t){var n=$t.hasOwnProperty(e)?$t[e]:$t[e]={};Ke(t,n)}function St(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var a=t[r];a instanceof Array&&(a=a.concat([])),n[r]=a}return n}function kn(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function En(e,t,n){return e.startState?e.startState(t,n):!0}var Oe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Oe.prototype.eol=function(){return this.pos>=this.string.length},Oe.prototype.sol=function(){return this.pos==this.lineStart},Oe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Oe.prototype.next=function(){if(this.post},Oe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Oe.prototype.skipToEnd=function(){this.pos=this.string.length},Oe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Oe.prototype.backUp=function(e){this.pos-=e},Oe.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},Oe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Oe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Oe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Oe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function te(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var a=n.children[r],l=a.chunkSize();if(t=e.first&&tn?j(n,te(e,n).text.length):Ye(t,te(e,t.line).text.length)}function Ye(e,t){var n=e.ch;return n==null||n>t?j(e.line,t):n<0?j(e.line,0):e}function Tt(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Bt.fromSaved=function(e,t,n){return t instanceof zr?new Bt(e,St(e.mode,t.state),n,t.lookAhead):new Bt(e,St(e.mode,t),n)},Bt.prototype.save=function(e){var t=e!==!1?St(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zr(t,this.maxLookAhead):t};function Go(e,t,n,r){var a=[e.state.modeGen],l={};Xo(e,t.text,e.doc.mode,n,function(h,b){return a.push(h,b)},l,r);for(var f=n.state,c=function(h){n.baseTokens=a;var b=e.state.overlays[h],C=1,D=0;n.state=!0,Xo(e,t.text,b.mode,n,function(_,O){for(var F=C;D<_;){var U=a[C];U>_&&a.splice(C,1,_,a[C+1],U),C+=2,D=Math.min(_,U)}if(!!O)if(b.opaque)a.splice(F,C-F,_,"overlay "+O),C=F+2;else for(;Fe.options.maxHighlightLength&&St(e.doc.mode,r.state),l=Go(e,t,r);a&&(r.state=a),t.stateAfter=r.save(!a),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function An(e,t,n){var r=e.doc,a=e.display;if(!r.mode.startState)return new Bt(r,!0,t);var l=Mf(e,t,n),f=l>r.first&&te(r,l-1).stateAfter,c=f?Bt.fromSaved(r,f,l):new Bt(r,En(r.mode),l);return r.iter(l,t,function(p){fa(e,p.text,c);var h=c.line;p.stateAfter=h==t-1||h%5==0||h>=a.viewFrom&&ht.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Ko=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Jo(e,t,n,r){var a=e.doc,l=a.mode,f;t=X(a,t);var c=te(a,t.line),p=An(e,t.line,n),h=new Oe(c.text,e.options.tabSize,p),b;for(r&&(b=[]);(r||h.pose.options.maxHighlightLength?(c=!1,f&&fa(e,t,r,b.pos),b.pos=t.length,C=null):C=Yo(ca(n,b,r.state,D),l),D){var _=D[0].name;_&&(C="m-"+(C?_+" "+C:_))}if(!c||h!=C){for(;pf;--c){if(c<=l.first)return l.first;var p=te(l,c-1),h=p.stateAfter;if(h&&(!n||c+(h instanceof zr?h.lookAhead:0)<=l.modeFrontier))return c;var b=we(p.text,null,e.options.tabSize);(a==null||r>b)&&(a=c-1,r=b)}return a}function Lf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var a=te(e,r).stateAfter;if(a&&(!(a instanceof zr)||r+a.lookAhead=t:l.to>t);(r||(r=[])).push(new yi(f,l.from,p?null:l.to))}}return r}function jf(e,t,n){var r;if(e)for(var a=0;a=t:l.to>t);if(c||l.from==t&&f.type=="bookmark"&&(!n||l.marker.insertLeft)){var p=l.from==null||(f.inclusiveLeft?l.from<=t:l.from0&&c)for(var Z=0;Z0)){var b=[p,1],C=v(h.from,c.from),D=v(h.to,c.to);(C<0||!f.inclusiveLeft&&!C)&&b.push({from:h.from,to:c.from}),(D>0||!f.inclusiveRight&&!D)&&b.push({from:c.to,to:h.to}),a.splice.apply(a,b),p+=b.length-3}}return a}function es(e){var t=e.markedSpans;if(!!t){for(var n=0;nt)&&(!r||pa(r,l.marker)<0)&&(r=l.marker)}return r}function is(e,t,n,r,a){var l=te(e,t),f=Kt&&l.markedSpans;if(f)for(var c=0;c=0&&C<=0||b<=0&&C>=0)&&(b<=0&&(p.marker.inclusiveRight&&a.inclusiveLeft?v(h.to,n)>=0:v(h.to,n)>0)||b>=0&&(p.marker.inclusiveRight&&a.inclusiveLeft?v(h.from,r)<=0:v(h.from,r)<0)))return!0}}}function At(e){for(var t;t=ns(e);)e=t.find(-1,!0).line;return e}function Hf(e){for(var t;t=xi(e);)e=t.find(1,!0).line;return e}function zf(e){for(var t,n;t=xi(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function ha(e,t){var n=te(e,t),r=At(n);return n==r?t:be(r)}function as(e,t){if(t>e.lastLine())return t;var n=te(e,t),r;if(!ir(e,n))return t;for(;r=xi(n);)n=r.find(1,!0).line;return be(n)+1}function ir(e,t){var n=Kt&&t.markedSpans;if(n){for(var r=void 0,a=0;at.maxLineLength&&(t.maxLineLength=a,t.maxLine=r)})}var Ur=function(e,t,n){this.text=e,ts(this,t),this.height=n?n(this):1};Ur.prototype.lineNo=function(){return be(this)},It(Ur);function Uf(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),es(e),ts(e,n);var a=r?r(e):1;a!=e.height&&pt(e,a)}function Gf(e){e.parent=null,es(e)}var Vf={},qf={};function os(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?qf:Vf;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function ss(e,t){var n=E("span",null,null,S?"padding-right: .1px":null),r={pre:E("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var a=0;a<=(t.rest?t.rest.length:0);a++){var l=a?t.rest[a-1]:t.line,f=void 0;r.pos=0,r.addToken=Jf,Ft(e.display.measure)&&(f=dt(l,e.doc.direction))&&(r.addToken=Xf(r.addToken,f)),r.map=[];var c=t!=e.display.externalMeasured&&be(l);Zf(l,r,Vo(e,l,c)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=et(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=et(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(hi(e.display.measure))),a==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(S){var p=r.content.lastChild;(/\bcm-tab\b/.test(p.className)||p.querySelector&&p.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return le(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=et(r.pre.className,r.textClass||"")),r}function Kf(e){var t=R("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Jf(e,t,n,r,a,l,f){if(!!t){var c=e.splitSpaces?Yf(t,e.trailingSpace):t,p=e.cm.state.specialChars,h=!1,b;if(!p.test(t))e.col+=t.length,b=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,b),T&&w<9&&(h=!0),e.pos+=t.length;else{b=document.createDocumentFragment();for(var C=0;;){p.lastIndex=C;var D=p.exec(t),_=D?D.index-C:t.length-C;if(_){var O=document.createTextNode(c.slice(C,C+_));T&&w<9?b.appendChild(R("span",[O])):b.appendChild(O),e.map.push(e.pos,e.pos+_,O),e.col+=_,e.pos+=_}if(!D)break;C+=_+1;var F=void 0;if(D[0]==" "){var U=e.cm.options.tabSize,q=U-e.col%U;F=b.appendChild(R("span",Nr(q),"cm-tab")),F.setAttribute("role","presentation"),F.setAttribute("cm-text"," "),e.col+=q}else D[0]=="\r"||D[0]==` @@ -22,7 +22,7 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var a=e. top: `+(e.clientY-b.top-5)+"px; left: "+(e.clientX-b.left-5)+`px; z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var C;S&&(C=window.scrollY),r.input.focus(),S&&window.scrollTo(null,C),r.input.reset(),n.somethingSelected()||(a.value=t.prevInput=" "),t.contextMenuPending=_,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function D(){if(a.selectionStart!=null){var F=n.somethingSelected(),U="\u200B"+(F?a.value:"");a.value="\u21DA",a.value=U,t.prevInput=F?"":"\u200B",a.selectionStart=1,a.selectionEnd=U.length,r.selForContextMenu=n.doc.sel}}function _(){if(t.contextMenuPending==_&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,a.style.cssText=p,T&&w<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=f),a.selectionStart!=null)){(!T||T&&w<9)&&D();var F=0,U=function(){r.selForContextMenu==n.doc.sel&&a.selectionStart==0&&a.selectionEnd>0&&t.prevInput=="\u200B"?Be(n,ol)(n):F++<10?r.detectingSelectAll=setTimeout(U,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(U,200)}}if(T&&w>=9&&D(),ee){yr(e);var O=function(){at(window,"mouseup",O),setTimeout(_,20)};ae(window,"mouseup",O)}else setTimeout(_,50)},Le.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Le.prototype.setUneditable=function(){},Le.prototype.needsContentAttribute=!1;function kd(e,t){if(t=t?Ke(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=me();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=c.getValue()}var a;if(e.form&&(ae(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;a=l.submit;try{var f=l.submit=function(){r(),l.submit=a,l.submit(),l.submit=f}}catch{}}t.finishInit=function(p){p.save=r,p.getTextArea=function(){return e},p.toTextArea=function(){p.toTextArea=isNaN,r(),e.parentNode.removeChild(p.getWrapperElement()),e.style.display="",e.form&&(at(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=a))}},e.style.display="none";var c=De(function(p){return e.parentNode.insertBefore(p,e.nextSibling)},t);return c}function Ed(e){e.off=at,e.on=ae,e.wheelEventPixels=Nc,e.Doc=lt,e.splitLines=_n,e.countColumn=we,e.findColumn=Re,e.isWordChar=Ir,e.Pass=ce,e.signal=le,e.Line=Ur,e.changeEnd=lr,e.scrollbarModel=Is,e.Pos=j,e.cmpPos=v,e.modes=Et,e.mimeModes=xt,e.resolveMode=Wr,e.getMode=Hr,e.modeExtensions=$t,e.extendMode=Ot,e.copyState=St,e.startState=En,e.innerMode=kn,e.commands=Qn,e.keyMap=Zt,e.keyName=Sl,e.isModifierKey=Cl,e.lookupKey=nn,e.normalizeKeyMap=nd,e.StringStream=Oe,e.SharedTextMarker=Yn,e.TextMarker=fr,e.LineWidget=Jn,e.e_preventDefault=Je,e.e_stopPropagation=Br,e.e_stop=yr,e.addClass=Ee,e.contains=Ue,e.rmClass=Se,e.keyNames=cr}bd(De),Td(De);var $d="iter insert remove copy getEditor constructor".split(" ");for(var Vi in lt.prototype)lt.prototype.hasOwnProperty(Vi)&&re($d,Vi)<0&&(De.prototype[Vi]=function(e){return function(){return e.apply(this.doc,arguments)}}(lt.prototype[Vi]));return It(lt),De.inputStyles={textarea:Le,contenteditable:xe},De.defineMode=function(e){!De.defaults.mode&&e!="null"&&(De.defaults.mode=e),mi.apply(this,arguments)},De.defineMIME=qt,De.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),De.defineMIME("text/plain","null"),De.defineExtension=function(e,t){De.prototype[e]=t},De.defineDocExtension=function(e,t){lt.prototype[e]=t},De.fromTextArea=kd,Ed(De),De.version="5.65.4",De})})(Po);(function(i,s){(function(o,u){i.exports=u(Po.exports)})(ta,function(o){return function(u){function d(y){if(g[y])return g[y].exports;var m=g[y]={i:y,l:!1,exports:{}};return u[y].call(m.exports,m,m.exports,d),m.l=!0,m.exports}var g={};return d.m=u,d.c=g,d.i=function(y){return y},d.d=function(y,m,T){d.o(y,m)||Object.defineProperty(y,m,{configurable:!1,enumerable:!0,get:T})},d.n=function(y){var m=y&&y.__esModule?function(){return y.default}:function(){return y};return d.d(m,"a",m),m},d.o=function(y,m){return Object.prototype.hasOwnProperty.call(y,m)},d.p="/",d(d.s=3)}([function(u,d){u.exports=o},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0});var y=g(0),m=function(w){return w&&w.__esModule?w:{default:w}}(y),T=window.CodeMirror||m.default;typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(w,S){if(w==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(w),M=1;M!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function V(v){for(var x=!1,P,H=!1;(P=v.next())!=null;){if(!x){if(P=="/"&&!H)return;P=="["?H=!0:H&&P=="]"&&(H=!1)}x=!x&&P=="\\"}}var J,G;function k(v,x,P){return J=v,G=P,x}function $(v,x){var P=v.next();if(P=='"'||P=="'")return x.tokenize=L(P),x.tokenize(v,x);if(P=="."&&v.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return k("number","number");if(P=="."&&v.match(".."))return k("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(P))return k(P);if(P=="="&&v.eat(">"))return k("=>","operator");if(P=="0"&&v.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return k("number","number");if(/\d/.test(P))return v.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),k("number","number");if(P=="/")return v.eat("*")?(x.tokenize=B,B(v,x)):v.eat("/")?(v.skipToEnd(),k("comment","comment")):j(v,x,1)?(V(v),v.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),k("regexp","string-2")):(v.eat("="),k("operator","operator",v.current()));if(P=="`")return x.tokenize=W,W(v,x);if(P=="#"&&v.peek()=="!")return v.skipToEnd(),k("meta","meta");if(P=="#"&&v.eatWhile(A))return k("variable","property");if(P=="<"&&v.match("!--")||P=="-"&&v.match("->")&&!/\S/.test(v.string.slice(0,v.start)))return v.skipToEnd(),k("comment","comment");if(I.test(P))return(P!=">"||!x.lexical||x.lexical.type!=">")&&(v.eat("=")?(P=="!"||P=="=")&&v.eat("="):/[<>*+\-|&?]/.test(P)&&(v.eat(P),P==">"&&v.eat(P))),P=="?"&&v.eat(".")?k("."):k("operator","operator",v.current());if(A.test(P)){v.eatWhile(A);var H=v.current();if(x.lastType!="."){if(M.propertyIsEnumerable(H)){var ue=M[H];return k(ue.type,ue.style,H)}if(H=="async"&&v.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return k("async","keyword",H)}return k("variable","variable",H)}}function L(v){return function(x,P){var H=!1,ue;if(m&&x.peek()=="@"&&x.match(z))return P.tokenize=$,k("jsonld-keyword","meta");for(;(ue=x.next())!=null&&!(ue==v&&!H);)H=!H&&ue=="\\";return H||(P.tokenize=$),k("string","string")}}function B(v,x){for(var P=!1,H;H=v.next();){if(H=="/"&&P){x.tokenize=$;break}P=H=="*"}return k("comment","comment")}function W(v,x){for(var P=!1,H;(H=v.next())!=null;){if(!P&&(H=="`"||H=="$"&&v.eat("{"))){x.tokenize=$;break}P=!P&&H=="\\"}return k("quasi","string-2",v.current())}var Q="([{}])";function fe(v,x){x.fatArrowAt&&(x.fatArrowAt=null);var P=v.string.indexOf("=>",v.start);if(!(P<0)){if(S){var H=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(v.string.slice(v.start,P));H&&(P=H.index)}for(var ue=0,ve=!1,X=P-1;X>=0;--X){var Ye=v.string.charAt(X),Tt=Q.indexOf(Ye);if(Tt>=0&&Tt<3){if(!ue){++X;break}if(--ue==0){Ye=="("&&(ve=!0);break}}else if(Tt>=3&&Tt<6)++ue;else if(A.test(Ye))ve=!0;else if(/["'\/`]/.test(Ye))for(;;--X){if(X==0)return;var zr=v.string.charAt(X-1);if(zr==Ye&&v.string.charAt(X-2)!="\\"){X--;break}}else if(ve&&!ue){++X;break}}ve&&!ue&&(x.fatArrowAt=X)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function he(v,x,P,H,ue,ve){this.indented=v,this.column=x,this.type=P,this.prev=ue,this.info=ve,H!=null&&(this.align=H)}function Se(v,x){if(!w)return!1;for(var P=v.localVars;P;P=P.next)if(P.name==x)return!0;for(var H=v.context;H;H=H.prev)for(var P=H.vars;P;P=P.next)if(P.name==x)return!0}function Me(v,x,P,H,ue){var ve=v.cc;for(N.state=v,N.stream=ue,N.marked=null,N.cc=ve,N.style=x,v.lexical.hasOwnProperty("align")||(v.lexical.align=!0);;){var X=ve.length?ve.pop():T?ge:ye;if(X(P,H)){for(;ve.length&&ve[ve.length-1].lex;)ve.pop()();return N.marked?N.marked:P=="variable"&&Se(v,H)?"variable-2":x}}}var N={state:null,column:null,marked:null,cc:null};function R(){for(var v=arguments.length-1;v>=0;v--)N.cc.push(arguments[v])}function E(){return R.apply(null,arguments),!0}function yt(v,x){for(var P=x;P;P=P.next)if(P.name==v)return!0;return!1}function Ue(v){var x=N.state;if(N.marked="def",!!w){if(x.context){if(x.lexical.info=="var"&&x.context&&x.context.block){var P=me(v,x.context);if(P!=null){x.context=P;return}}else if(!yt(v,x.localVars)){x.localVars=new tt(v,x.localVars);return}}d.globalVars&&!yt(v,x.globalVars)&&(x.globalVars=new tt(v,x.globalVars))}}function me(v,x){if(x)if(x.block){var P=me(v,x.prev);return P?P==x.prev?x:new et(P,x.vars,!0):null}else return yt(v,x.vars)?x:new et(x.prev,new tt(v,x.vars),!1);else return null}function Ee(v){return v=="public"||v=="private"||v=="protected"||v=="abstract"||v=="readonly"}function et(v,x,P){this.prev=v,this.vars=x,this.block=P}function tt(v,x){this.name=v,this.next=x}var qe=new tt("this",new tt("arguments",null));function Ke(){N.state.context=new et(N.state.context,N.state.localVars,!1),N.state.localVars=qe}function we(){N.state.context=new et(N.state.context,N.state.localVars,!0),N.state.localVars=null}Ke.lex=we.lex=!0;function _e(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}_e.lex=!0;function re(v,x){var P=function(){var H=N.state,ue=H.indented;if(H.lexical.type=="stat")ue=H.lexical.indented;else for(var ve=H.lexical;ve&&ve.type==")"&&ve.align;ve=ve.prev)ue=ve.indented;H.lexical=new he(ue,N.stream.column(),v,null,H.lexical,x)};return P.lex=!0,P}function se(){var v=N.state;v.lexical.prev&&(v.lexical.type==")"&&(v.indented=v.lexical.indented),v.lexical=v.lexical.prev)}se.lex=!0;function ce(v){function x(P){return P==v?E():v==";"||P=="}"||P==")"||P=="]"?R():E(x)}return x}function ye(v,x){return v=="var"?E(re("vardef",x),Tn,ce(";"),se):v=="keyword a"?E(re("form"),Dt,ye,se):v=="keyword b"?E(re("form"),ye,se):v=="keyword d"?N.stream.match(/^\s*$/,!1)?E():E(re("stat"),pe,ce(";"),se):v=="debugger"?E(ce(";")):v=="{"?E(re("}"),we,dt,se,_e):v==";"?E():v=="if"?(N.state.lexical.info=="else"&&N.state.cc[N.state.cc.length-1]==se&&N.state.cc.pop()(),E(re("form"),Dt,ye,se,vi)):v=="function"?E(Et):v=="for"?E(re("form"),we,gi,ye,_e,se):v=="class"||S&&x=="interface"?(N.marked="keyword",E(re("form",v=="class"?v:x),Hr,se)):v=="variable"?S&&x=="declare"?(N.marked="keyword",E(ye)):S&&(x=="module"||x=="enum"||x=="type")&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword",x=="enum"?E(jt):x=="type"?E(mi,ce("operator"),le,ce(";")):E(re("form"),ot,ce("{"),re("}"),dt,se,se)):S&&x=="namespace"?(N.marked="keyword",E(re("form"),ge,ye,se)):S&&x=="abstract"?(N.marked="keyword",E(ye)):E(re("stat"),Sn):v=="switch"?E(re("form"),Dt,ce("{"),re("}","switch"),we,dt,se,se,_e):v=="case"?E(ge,ce(":")):v=="default"?E(ce(":")):v=="catch"?E(re("form"),Ke,Gt,ye,se,_e):v=="export"?E(re("stat"),kn,se):v=="import"?E(re("stat"),Oe,se):v=="async"?E(ye):x=="@"?E(ge,ye):R(re("stat"),ge,ce(";"),se)}function Gt(v){if(v=="(")return E(qt,ce(")"))}function ge(v,x){return Nr(v,x,!1)}function Re(v,x){return Nr(v,x,!0)}function Dt(v){return v!="("?R():E(re(")"),pe,ce(")"),se)}function Nr(v,x,P){if(N.state.fatArrowAt==N.stream.start){var H=P?Ir:fi;if(v=="(")return E(Ke,re(")"),$e(qt,")"),se,ce("=>"),H,_e);if(v=="variable")return R(Ke,ot,ce("=>"),H,_e)}var ue=P?tr:kt;return ee.hasOwnProperty(v)?E(ue):v=="function"?E(Et,ue):v=="class"||S&&x=="interface"?(N.marked="keyword",E(re("form"),Wr,se)):v=="keyword c"||v=="async"?E(P?Re:ge):v=="("?E(re(")"),pe,ce(")"),se,ue):v=="operator"||v=="spread"?E(P?Re:ge):v=="["?E(re("]"),be,se,ue):v=="{"?mr(Nt,"}",null,ue):v=="quasi"?R(gr,ue):v=="new"?E(Fr(P)):E()}function pe(v){return v.match(/[;\}\)\],]/)?R():R(ge)}function kt(v,x){return v==","?E(pe):tr(v,x,!1)}function tr(v,x,P){var H=P==!1?kt:tr,ue=P==!1?ge:Re;if(v=="=>")return E(Ke,P?Ir:fi,_e);if(v=="operator")return/\+\+|--/.test(x)||S&&x=="!"?E(H):S&&x=="<"&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(re(">"),$e(le,">"),se,H):x=="?"?E(ge,ce(":"),ue):E(ue);if(v=="quasi")return R(gr,H);if(v!=";"){if(v=="(")return mr(Re,")","call",H);if(v==".")return E(di,H);if(v=="[")return E(re("]"),pe,ce("]"),se,H);if(S&&x=="as")return N.marked="keyword",E(le,H);if(v=="regexp")return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),E(ue)}}function gr(v,x){return v!="quasi"?R():x.slice(x.length-2)!="${"?E(gr):E(pe,ui)}function ui(v){if(v=="}")return N.marked="string-2",N.state.tokenize=W,E(gr)}function fi(v){return fe(N.stream,N.state),R(v=="{"?ye:ge)}function Ir(v){return fe(N.stream,N.state),R(v=="{"?ye:Re)}function Fr(v){return function(x){return x=="."?E(v?la:ci):x=="variable"&&S?E(yr,v?tr:kt):R(v?Re:ge)}}function ci(v,x){if(x=="target")return N.marked="keyword",E(kt)}function la(v,x){if(x=="target")return N.marked="keyword",E(tr)}function Sn(v){return v==":"?E(se,ye):R(kt,ce(";"),se)}function di(v){if(v=="variable")return N.marked="property",E()}function Nt(v,x){if(v=="async")return N.marked="property",E(Nt);if(v=="variable"||N.style=="keyword"){if(N.marked="property",x=="get"||x=="set")return E(ua);var P;return S&&N.state.fatArrowAt==N.stream.start&&(P=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+P[0].length),E(bt)}else{if(v=="number"||v=="string")return N.marked=m?"property":N.style+" property",E(bt);if(v=="jsonld-keyword")return E(bt);if(S&&Ee(x))return N.marked="keyword",E(Nt);if(v=="[")return E(ge,Vt,ce("]"),bt);if(v=="spread")return E(Re,bt);if(x=="*")return N.marked="keyword",E(Nt);if(v==":")return R(bt)}}function ua(v){return v!="variable"?R(bt):(N.marked="property",E(Et))}function bt(v){if(v==":")return E(Re);if(v=="(")return R(Et)}function $e(v,x,P){function H(ue,ve){if(P?P.indexOf(ue)>-1:ue==","){var X=N.state.lexical;return X.info=="call"&&(X.pos=(X.pos||0)+1),E(function(Ye,Tt){return Ye==x||Tt==x?R():R(v)},H)}return ue==x||ve==x?E():P&&P.indexOf(";")>-1?R(v):E(ce(x))}return function(ue,ve){return ue==x||ve==x?E():R(v,H)}}function mr(v,x,P){for(var H=3;H"),le);if(v=="quasi")return R(It,Ct)}function Pe(v){if(v=="=>")return E(le)}function jr(v){return v.match(/[\}\)\]]/)?E():v==","||v==";"?E(jr):R(Ge,jr)}function Ge(v,x){if(v=="variable"||N.style=="keyword")return N.marked="property",E(Ge);if(x=="?"||v=="number"||v=="string")return E(Ge);if(v==":")return E(le);if(v=="[")return E(ce("variable"),ae,ce("]"),Ge);if(v=="(")return R(xt,Ge);if(!v.match(/[;\}\)\],]/))return E()}function It(v,x){return v!="quasi"?R():x.slice(x.length-2)!="${"?E(It):E(le,Je)}function Je(v){if(v=="}")return N.marked="string-2",N.state.tokenize=W,E(It)}function Br(v,x){return v=="variable"&&N.stream.match(/^\s*[?:]/,!1)||x=="?"?E(Br):v==":"?E(le):v=="spread"?E(Br):R(le)}function Ct(v,x){if(x=="<")return E(re(">"),$e(le,">"),se,Ct);if(x=="|"||v=="."||x=="&")return E(le);if(v=="[")return E(le,ce("]"),Ct);if(x=="extends"||x=="implements")return N.marked="keyword",E(le);if(x=="?")return E(le,ce(":"),le)}function yr(v,x){if(x=="<")return E(re(">"),$e(le,">"),se,Ct)}function rr(){return R(le,pi)}function pi(v,x){if(x=="=")return E(le)}function Tn(v,x){return x=="enum"?(N.marked="keyword",E(jt)):R(ot,Vt,Ft,_n)}function ot(v,x){if(S&&Ee(x))return N.marked="keyword",E(ot);if(v=="variable")return Ue(x),E();if(v=="spread")return E(ot);if(v=="[")return mr(wn,"]");if(v=="{")return mr(hi,"}")}function hi(v,x){return v=="variable"&&!N.stream.match(/^\s*:/,!1)?(Ue(x),E(Ft)):(v=="variable"&&(N.marked="property"),v=="spread"?E(ot):v=="}"?R():v=="["?E(ge,ce("]"),ce(":"),hi):E(ce(":"),ot,Ft))}function wn(){return R(ot,Ft)}function Ft(v,x){if(x=="=")return E(Re)}function _n(v){if(v==",")return E(Tn)}function vi(v,x){if(v=="keyword b"&&x=="else")return E(re("form","else"),ye,se)}function gi(v,x){if(x=="await")return E(gi);if(v=="(")return E(re(")"),Dn,se)}function Dn(v){return v=="var"?E(Tn,nr):v=="variable"?E(nr):R(nr)}function nr(v,x){return v==")"?E():v==";"?E(nr):x=="in"||x=="of"?(N.marked="keyword",E(ge,nr)):R(ge,nr)}function Et(v,x){if(x=="*")return N.marked="keyword",E(Et);if(v=="variable")return Ue(x),E(Et);if(v=="(")return E(Ke,re(")"),$e(qt,")"),se,Rr,ye,_e);if(S&&x=="<")return E(re(">"),$e(rr,">"),se,Et)}function xt(v,x){if(x=="*")return N.marked="keyword",E(xt);if(v=="variable")return Ue(x),E(xt);if(v=="(")return E(Ke,re(")"),$e(qt,")"),se,Rr,_e);if(S&&x=="<")return E(re(">"),$e(rr,">"),se,xt)}function mi(v,x){if(v=="keyword"||v=="variable")return N.marked="type",E(mi);if(x=="<")return E(re(">"),$e(rr,">"),se)}function qt(v,x){return x=="@"&&E(ge,qt),v=="spread"?E(qt):S&&Ee(x)?(N.marked="keyword",E(qt)):S&&v=="this"?E(Vt,Ft):R(ot,Vt,Ft)}function Wr(v,x){return v=="variable"?Hr(v,x):$t(v,x)}function Hr(v,x){if(v=="variable")return Ue(x),E($t)}function $t(v,x){if(x=="<")return E(re(">"),$e(rr,">"),se,$t);if(x=="extends"||x=="implements"||S&&v==",")return x=="implements"&&(N.marked="keyword"),E(S?le:ge,$t);if(v=="{")return E(re("}"),Ot,se)}function Ot(v,x){if(v=="async"||v=="variable"&&(x=="static"||x=="get"||x=="set"||S&&Ee(x))&&N.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return N.marked="keyword",E(Ot);if(v=="variable"||N.style=="keyword")return N.marked="property",E(St,Ot);if(v=="number"||v=="string")return E(St,Ot);if(v=="[")return E(ge,Vt,ce("]"),St,Ot);if(x=="*")return N.marked="keyword",E(Ot);if(S&&v=="(")return R(xt,Ot);if(v==";"||v==",")return E(Ot);if(v=="}")return E();if(x=="@")return E(ge,Ot)}function St(v,x){if(x=="!"||x=="?")return E(St);if(v==":")return E(le,Ft);if(x=="=")return E(Re);var P=N.state.lexical.prev,H=P&&P.info=="interface";return R(H?xt:Et)}function kn(v,x){return x=="*"?(N.marked="keyword",E(pt,ce(";"))):x=="default"?(N.marked="keyword",E(ge,ce(";"))):v=="{"?E($e(En,"}"),pt,ce(";")):R(ye)}function En(v,x){if(x=="as")return N.marked="keyword",E(ce("variable"));if(v=="variable")return R(Re,En)}function Oe(v){return v=="string"?E():v=="("?R(ge):v=="."?R(kt):R(te,Rt,pt)}function te(v,x){return v=="{"?mr(te,"}"):(v=="variable"&&Ue(x),x=="*"&&(N.marked="keyword"),E($n))}function Rt(v){if(v==",")return E(te,Rt)}function $n(v,x){if(x=="as")return N.marked="keyword",E(te)}function pt(v,x){if(x=="from")return N.marked="keyword",E(ge)}function be(v){return v=="]"?E():R($e(Re,"]"))}function jt(){return R(re("form"),ot,ce("{"),re("}"),$e(br,"}"),se,se)}function br(){return R(ot,Ft)}function On(v,x){return v.lastType=="operator"||v.lastType==","||I.test(x.charAt(0))||/[,.]/.test(x.charAt(0))}function j(v,x,P){return x.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(x.lastType)||x.lastType=="quasi"&&/\{\s*$/.test(v.string.slice(0,v.pos-(P||0)))}return{startState:function(v){var x={tokenize:$,lastType:"sof",cc:[],lexical:new he((v||0)-g,0,"block",!1),localVars:d.localVars,context:d.localVars&&new et(null,null,!1),indented:v||0};return d.globalVars&&typeof d.globalVars=="object"&&(x.globalVars=d.globalVars),x},token:function(v,x){if(v.sol()&&(x.lexical.hasOwnProperty("align")||(x.lexical.align=!1),x.indented=v.indentation(),fe(v,x)),x.tokenize!=B&&v.eatSpace())return null;var P=x.tokenize(v,x);return J=="comment"?P:(x.lastType=J=="operator"&&(G=="++"||G=="--")?"incdec":J,Me(x,P,J,G,v))},indent:function(v,x){if(v.tokenize==B||v.tokenize==W)return o.Pass;if(v.tokenize!=$)return 0;var P=x&&x.charAt(0),H=v.lexical,ue;if(!/^\s*else\b/.test(x))for(var ve=v.cc.length-1;ve>=0;--ve){var X=v.cc[ve];if(X==se)H=H.prev;else if(X!=vi&&X!=_e)break}for(;(H.type=="stat"||H.type=="form")&&(P=="}"||(ue=v.cc[v.cc.length-1])&&(ue==kt||ue==tr)&&!/^[,\.=+\-*:?[\(]/.test(x));)H=H.prev;y&&H.type==")"&&H.prev.type=="stat"&&(H=H.prev);var Ye=H.type,Tt=P==Ye;return Ye=="vardef"?H.indented+(v.lastType=="operator"||v.lastType==","?H.info.length+1:0):Ye=="form"&&P=="{"?H.indented:Ye=="form"?H.indented+g:Ye=="stat"?H.indented+(On(v,x)?y||g:0):H.info=="switch"&&!Tt&&d.doubleIndentSwitch!=!1?H.indented+(/^(?:case|default)\b/.test(x)?g:2*g):H.align?H.column+(Tt?0:1):H.indented+(Tt?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:m,jsonMode:T,expressionAllowed:j,skipExpression:function(v){Me(v,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var bn={exports:{}};(function(i,s){const o=["InputConfig","PaginationConfig","CalendarConfig","CascaderConfig","ColorPickerConfig","TransferConfig","TimePickerConfig","DatePickerConfig","DialogConfig","DrawerConfig","PopconfirmConfig","TableConfig","SelectConfig","TreeConfig","TreeSelectConfig","ListConfig","UploadConfig","UploadConfigProgress","UploadConfigDragger","UploadConfigFileList","UploadConfigImage","UploadConfigFile","FormConfig","TagConfig","StepsConfig","AlertConfig","DescriptionsConfig","AnchorConfig","MessageConfig","ImageConfig","ImageViewerConfig","GuideConfig"].sort((S,A)=>S.localeCompare(A)>0),u=["Message","MessageOptions","$Message","$Message.info","$Message.error","$Message.warning","$Message.success","$Message.loading","$Message.question","$Message.close","$Message.closeAll","$Message.config"],d=["Notification","NotificationOptions","$Notification","$Notification.info","$Notification.warning","$Notification.error","$Notification.success","$Notification.close","$Notification.closeAll","$Notification.config"],g=["Table","TableCol","BaseTable","BaseTableCol","PrimaryTable","PrimaryTableCol","EnhancedTable","EnhancedTableCol","TableRowState","TableColumnFilter","TableColumnController","TableEditableCellConfig","TableTreeConfig"],y=["GlobalConfigProvider"].concat(o),T={Avatar:["Avatar","AvatarGroup"],Checkbox:["Checkbox","CheckboxGroup"],Cell:{list:["Cell","CellGroup"],excludes:["Miniprogram"]},Radio:["Radio","RadioGroup"],Anchor:["Anchor","AnchorItem","AnchorTarget"],Descriptions:["Descriptions","DescriptionItem"],Tabs:["Tabs","TabPanel"],TabBar:["TabBar","TabBarItem"],Pagination:["Pagination","PaginationMini"],Form:["Form","FormItem","FormList","FormRule","FormErrorMessage"],Breadcrumb:["Breadcrumb","BreadcrumbItem"],Message:u,Notification:d,Layout:{list:["Layout","Header","Aside","Content","Footer"],includes:["Vue(PC)","VueNext(PC)","React(PC)","Angular(PC)"]},Col:{list:["Col","Row"],includes:["Vue(Mobile)","React(Mobile)","Miniprogram"]},Grid:["Grid","Row","Col","GridItem"],Icon:["IconSVG","Iconfont"],Select:["Select","Option","OptionGroup","TScroll"],Tag:["Tag","CheckTag","CheckTagGroup"],Collapse:["Collapse","CollapsePanel"],Dropdown:{list:["Dropdown","DropdownItem"],includes:["Vue(PC)","VueNext(PC)","React(PC)","Angular(PC)"]},DropdownMenu:{list:["DropdownMenu","DropdownItem"],excludes:["Miniprogram"]},Dialog:["DialogCard","Dialog","DialogOptions","DialogInstance","$Dialog","$Dialog.confirm","$Dialog.alert"],Drawer:["Drawer","DrawerOptions","DrawerInstance","$Drawer"],Table:g.concat("TScroll"),Tree:["Tree","TreeNodeState","TreeNodeModel","TScroll"],Breadcrumb:["Breadcrumb","BreadcrumbItem"],Steps:["Steps","StepItem"],Calendar:["Calendar","CalendarController","CalendarCell"],Menu:["Menu","HeadMenu","Submenu","MenuItem","MenuGroup"],Loading:["Loading","$Loading"],Upload:{list:["Upload","UploadFile"],excludes:["Miniprogram"]},List:["List","ListItem","ListItemMeta"],Picker:{list:["Picker","PickerItem"],includes:["Miniprogram"]},TimePicker:["TimePicker","TimeRangePicker","TimePickerPanel","TimeRangePickerPanel"],DateTimePicker:["DateTimePicker"],DatePicker:["DatePicker","DateRangePicker","DatePickerPanel","DateRangePickerPanel"],Swiper:{list:["Swiper","SwiperItem","SwiperNavigation"],excludes:["Miniprogram"]},Swiper:{list:["Swiper","SwiperNav"],includes:["Miniprogram"]},StickyTool:["StickyTool","StickyItem"],ConfigProvider:y,RangeInput:["RangeInput","RangeInputPopup"],Input:["Input","InputGroup"],Watermark:["Watermark","WatermarkText","WatermarkImage"],Timeline:["Timeline","TimelineItem"],Guide:["Guide","GuideStep"],Tooltip:["Tooltip","TooltipLite"],SideBar:["SideBar","SideBarItem"],Indexes:{list:["Indexes","IndexesAnchor"],excludes:["Miniprogram"]},Popup:["Popup","$Popup"]},w={Avatar:{list:["Avatar","AvatarGroup"],excludes:["Miniprogram"]},Checkbox:{list:["Checkbox","CheckboxGroup"],excludes:["Miniprogram"]},Cell:{list:["Cell","CellGroup"],excludes:["Miniprogram"]},Radio:{list:["Radio","RadioGroup"],excludes:["Miniprogram"]},Message:{list:u},Notification:{list:d},Form:{list:["Form","FormItem","FormList","FormRule","FormErrorMessage"]},Select:{list:["Select","Option","OptionGroup"]},Tabs:{list:["Tabs","TabPanel"],excludes:["Miniprogram"]},TabBar:{list:["TabBar","TabBarItem"],excludes:["Miniprogram"]},Pagination:{list:["Pagination","PaginationMini"]},Tag:{list:["Tag","CheckTag","CheckTagGroup"],excludes:["Miniprogram"]},Collapse:{list:["Collapse","CollapsePanel"],excludes:["Miniprogram"]},Grid:{list:["Grid","Row","Col","GridItem"],excludes:["Miniprogram"]},Layout:{list:["Layout","Header","Aside","Content","Footer"],includes:["Vue(PC)","VueNext(PC)","React(PC)","Angular(PC)"]},Dropdown:{list:["Dropdown","DropdownItem"],includes:["Vue(PC)","VueNext(PC)","React(PC)","Angular(PC)"]},DropdownMenu:{list:["DropdownMenu","DropdownItem"],excludes:["Miniprogram"]},Dialog:{list:["DialogCard","Dialog","DialogOptions","DialogInstance","$Dialog","$Dialog.confirm","$Dialog.alert"]},Drawer:{list:["Drawer","DrawerOptions","DrawerInstance","$Drawer"]},Tree:{list:["Tree","TreeNodeState","TreeNodeModel"]},Breadcrumb:{list:["Breadcrumb","BreadcrumbItem"]},Steps:{list:["Steps","StepItem"],excludes:["Miniprogram"]},Calendar:{list:["Calendar","CalendarController","CalendarCell"]},Descriptions:{list:["Descriptions","DescriptionItem"]},Menu:{list:["Menu","HeadMenu","Submenu","MenuItem","MenuGroup"]},Loading:{list:["Loading","$Loading"]},Upload:{list:["Upload","UploadFile"],excludes:["Miniprogram"]},List:{list:["List","ListItem","ListItemMeta"]},Picker:{list:["Picker","PickerItem"],excludes:["Miniprogram"]},TimePicker:{list:["TimePicker","TimeRangePicker","TimePickerPanel","TimeRangePickerPanel"]},DateTimePicker:{list:["DateTimePicker"]},DatePicker:{list:["DatePicker","DateRangePicker","DatePickerPanel","DateRangePickerPanel"]},Swiper:{list:["Swiper","SwiperItem","SwiperNavigation"],excludes:["Miniprogram"]},Table:{list:g},Icon:{list:["Iconfont","IconSVG"]},Anchor:{list:["AnchorTarget","AnchorItem"]},StickyTool:{list:["StickyTool","StickyItem"]},ConfigProvider:{list:y},RangeInput:{list:["RangeInput","RangeInputPopup"]},Input:{list:["Input","InputGroup"]},Watermark:{list:["Watermark","WatermarkText","WatermarkImage"]},Timeline:{list:["Timeline","TimelineItem"]},Guide:{list:["Guide","GuideStep"]},Tooltip:{list:["Tooltip","TooltipLite"]},SideBar:{list:["SideBar","SideBarItem"]},Indexes:{list:["Indexes","IndexesAnchor"],excludes:["Miniprogram"]}};s.GLOBAL_COMPONENTS_CONFIG=o,s.COMPONENT_API_MD_MAP=T,s.TYPES_COMBINE_MAP=w,s.default={COMPONENT_API_MD_MAP:T,TYPES_COMBINE_MAP:w,GLOBAL_COMPONENTS_CONFIG:o},i.exports={COMPONENT_API_MD_MAP:T,TYPES_COMBINE_MAP:w,GLOBAL_COMPONENTS_CONFIG:o},Object.defineProperty(s,"__esModule",{value:!0})})(bn,bn.exports);function ju(i,s=bn.exports.TYPES_COMBINE_MAP){const o={};return Object.keys(s).forEach(u=>{const d=s[u];d instanceof Array?o[u]=d:typeof d=="object"?(!d.includes&&!d.excludes||d.includes&&d.includes.includes(i)||d.excludes&&!d.excludes.includes(i)||!i)&&(o[u]=d.list):console.warn("COMPONENT_API_MD_MAP \u6570\u636E\u7ED3\u6784\u4E0D\u5BF9\uFF0C\u53EA\u80FD\u662F Array \u6216\u8005 Object \u7C7B\u578B")}),o}function np(i,s=bn.exports.TYPES_COMBINE_MAP){const o={},u=ju(i,s);return Object.keys(u).forEach(d=>{u[d].forEach(g=>{o[g]=d})}),o}function Bu(i,s=bn.exports.TYPES_COMBINE_MAP){const o={},u=ju(i,s);return Object.keys(u).forEach(d=>{const g=u[d];g.forEach(y=>{o[y]=g})}),o}function mt(i,s=void 0){if(typeof i=="object")return i;try{return JSON.parse(i)}catch{return s}}function ip(i){return`on${Mu(Ao(i))}`}function ap(i){if(document.querySelector(`script[src="${i}"]`))return Promise.resolve();const o=document.createElement("script");return o.src=i,document.body.appendChild(o),new Promise(u=>{o.onload=()=>{u()}})}var No={exports:{}},Wu=function(s,o){return function(){for(var d=new Array(arguments.length),g=0;g=0)return;u==="set-cookie"?o[u]=(o[u]?o[u]:[]).concat([d]):o[u]=o[u]?o[u]+", "+d:d}}),o},Zl=_t,Bp=Zl.isStandardBrowserEnv()?function(){var s=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a"),u;function d(g){var y=g;return s&&(o.setAttribute("href",y),y=o.href),o.setAttribute("href",y),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return u=d(window.location.href),function(y){var m=Zl.isString(y)?d(y):y;return m.protocol===u.protocol&&m.host===u.host}}():function(){return function(){return!0}}(),dn=_t,Wp=Ap,Hp=Mp,zp=Uu,Up=Fp,Gp=jp,Vp=Bp,no=Vu,Ql=function(s){return new Promise(function(u,d){var g=s.data,y=s.headers;dn.isFormData(g)&&delete y["Content-Type"],(dn.isBlob(g)||dn.isFile(g))&&g.type&&delete y["Content-Type"];var m=new XMLHttpRequest;if(s.auth){var T=s.auth.username||"",w=unescape(encodeURIComponent(s.auth.password))||"";y.Authorization="Basic "+btoa(T+":"+w)}var S=Up(s.baseURL,s.url);if(m.open(s.method.toUpperCase(),zp(S,s.params,s.paramsSerializer),!0),m.timeout=s.timeout,m.onreadystatechange=function(){if(!(!m||m.readyState!==4)&&!(m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0))){var I="getAllResponseHeaders"in m?Gp(m.getAllResponseHeaders()):null,z=!s.responseType||s.responseType==="text"?m.responseText:m.response,V={data:z,status:m.status,statusText:m.statusText,headers:I,config:s,request:m};Wp(u,d,V),m=null}},m.onabort=function(){!m||(d(no("Request aborted",s,"ECONNABORTED",m)),m=null)},m.onerror=function(){d(no("Network Error",s,null,m)),m=null},m.ontimeout=function(){var I="timeout of "+s.timeout+"ms exceeded";s.timeoutErrorMessage&&(I=s.timeoutErrorMessage),d(no(I,s,"ECONNABORTED",m)),m=null},dn.isStandardBrowserEnv()){var A=(s.withCredentials||Vp(S))&&s.xsrfCookieName?Hp.read(s.xsrfCookieName):void 0;A&&(y[s.xsrfHeaderName]=A)}if("setRequestHeader"in m&&dn.forEach(y,function(I,z){typeof g=="undefined"&&z.toLowerCase()==="content-type"?delete y[z]:m.setRequestHeader(z,I)}),dn.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),s.responseType)try{m.responseType=s.responseType}catch(M){if(s.responseType!=="json")throw M}typeof s.onDownloadProgress=="function"&&m.addEventListener("progress",s.onDownloadProgress),typeof s.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",s.onUploadProgress),s.cancelToken&&s.cancelToken.promise.then(function(I){!m||(m.abort(),d(I),m=null)}),g||(g=null),m.send(g)})},gt=_t,eu=kp,qp={"Content-Type":"application/x-www-form-urlencoded"};function tu(i,s){!gt.isUndefined(i)&>.isUndefined(i["Content-Type"])&&(i["Content-Type"]=s)}function Kp(){var i;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(i=Ql),i}var aa={adapter:Kp(),transformRequest:[function(s,o){return eu(o,"Accept"),eu(o,"Content-Type"),gt.isFormData(s)||gt.isArrayBuffer(s)||gt.isBuffer(s)||gt.isStream(s)||gt.isFile(s)||gt.isBlob(s)?s:gt.isArrayBufferView(s)?s.buffer:gt.isURLSearchParams(s)?(tu(o,"application/x-www-form-urlencoded;charset=utf-8"),s.toString()):gt.isObject(s)?(tu(o,"application/json;charset=utf-8"),JSON.stringify(s)):s}],transformResponse:[function(s){if(typeof s=="string")try{s=JSON.parse(s)}catch{}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(s){return s>=200&&s<300}};aa.headers={common:{Accept:"application/json, text/plain, */*"}};gt.forEach(["delete","get","head"],function(s){aa.headers[s]={}});gt.forEach(["post","put","patch"],function(s){aa.headers[s]=gt.merge(qp)});var qu=aa,ru=_t,io=_p,Jp=Gu,Yp=qu;function ao(i){i.cancelToken&&i.cancelToken.throwIfRequested()}var Xp=function(s){ao(s),s.headers=s.headers||{},s.data=io(s.data,s.headers,s.transformRequest),s.headers=ru.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),ru.forEach(["delete","get","head","post","put","patch","common"],function(d){delete s.headers[d]});var o=s.adapter||Yp.adapter;return o(s).then(function(d){return ao(s),d.data=io(d.data,d.headers,s.transformResponse),d},function(d){return Jp(d)||(ao(s),d&&d.response&&(d.response.data=io(d.response.data,d.response.headers,s.transformResponse))),Promise.reject(d)})},it=_t,Ku=function(s,o){o=o||{};var u={},d=["url","method","data"],g=["headers","auth","proxy","params"],y=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],m=["validateStatus"];function T(M,I){return it.isPlainObject(M)&&it.isPlainObject(I)?it.merge(M,I):it.isPlainObject(I)?it.merge({},I):it.isArray(I)?I.slice():I}function w(M){it.isUndefined(o[M])?it.isUndefined(s[M])||(u[M]=T(void 0,s[M])):u[M]=T(s[M],o[M])}it.forEach(d,function(I){it.isUndefined(o[I])||(u[I]=T(void 0,o[I]))}),it.forEach(g,w),it.forEach(y,function(I){it.isUndefined(o[I])?it.isUndefined(s[I])||(u[I]=T(void 0,s[I])):u[I]=T(void 0,o[I])}),it.forEach(m,function(I){I in o?u[I]=T(s[I],o[I]):I in s&&(u[I]=T(void 0,s[I]))});var S=d.concat(g).concat(y).concat(m),A=Object.keys(s).concat(Object.keys(o)).filter(function(I){return S.indexOf(I)===-1});return it.forEach(A,w),u},Ju=_t,Zp=Uu,nu=Tp,Qp=Xp,oa=Ku;function li(i){this.defaults=i,this.interceptors={request:new nu,response:new nu}}li.prototype.request=function(s){typeof s=="string"?(s=arguments[1]||{},s.url=arguments[0]):s=s||{},s=oa(this.defaults,s),s.method?s.method=s.method.toLowerCase():this.defaults.method?s.method=this.defaults.method.toLowerCase():s.method="get";var o=[Qp,void 0],u=Promise.resolve(s);for(this.interceptors.request.forEach(function(g){o.unshift(g.fulfilled,g.rejected)}),this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});o.length;)u=u.then(o.shift(),o.shift());return u};li.prototype.getUri=function(s){return s=oa(this.defaults,s),Zp(s.url,s.params,s.paramsSerializer).replace(/^\?/,"")};Ju.forEach(["delete","get","head","options"],function(s){li.prototype[s]=function(o,u){return this.request(oa(u||{},{method:s,url:o}))}});Ju.forEach(["post","put","patch"],function(s){li.prototype[s]=function(o,u,d){return this.request(oa(d||{},{method:s,url:o,data:u}))}});var eh=li;function Ro(i){this.message=i}Ro.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ro.prototype.__CANCEL__=!0;var Yu=Ro,th=Yu;function ra(i){if(typeof i!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(d){s=d});var o=this;i(function(d){o.reason||(o.reason=new th(d),s(o.reason))})}ra.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};ra.source=function(){var s,o=new ra(function(d){s=d});return{token:o,cancel:s}};var rh=ra,nh=function(s){return function(u){return s.apply(null,u)}},iu=_t,ih=Wu,Qi=eh,ah=Ku,oh=qu;function Xu(i){var s=new Qi(i),o=ih(Qi.prototype.request,s);return iu.extend(o,Qi.prototype,s),iu.extend(o,s),o}var Ut=Xu(oh);Ut.Axios=Qi;Ut.create=function(s){return Xu(ah(Ut.defaults,s))};Ut.Cancel=Yu;Ut.CancelToken=rh;Ut.isCancel=Gu;Ut.all=function(s){return Promise.all(s)};Ut.spread=nh;No.exports=Ut;No.exports.default=Ut;var sh=No.exports;const vr=sh.create({baseURL:"http://127.0.0.1:16001/",headers:{"Access-Control-Allow-Origin":"*"},timeout:1e3});var lh=function(){var i=this,s=i.$createElement,o=i._self._c||s;return o("div",{staticClass:"API-Preview tdesign-document"},[o("t-table",{attrs:{data:i.list,columns:i.columns,rowKey:"id",tableLayout:"auto",hover:""},scopedSlots:i._u([{key:"component",fn:function(u){var d=u.row,g=d===void 0?{}:d;return[o("div",[o("div",[o("span",{staticStyle:{"padding-right":"8px"}},[i._v(i._s(g.component))]),g.field_category_text?o("t-tag",{attrs:{size:"small",theme:{Props:"primary",Events:"success",Functions:"warning",Return:"default",Extends:"default","":"default"}[g.field_category_text]||"primary",variant:"light"}},[i._v(" "+i._s(g.field_category_text)+" ")]):i._e()],1)])]}},{key:"field_desc_zh",fn:function(u){var d=u.row,g=d===void 0?{}:d;return[o("div",[o("p",[g.deprecated?[i._v("\u5DF2\u5E9F\u5F03\u3002")]:i._e(),g.html_attribute?[i._v("HTML \u539F\u751F\u5C5E\u6027\u3002")]:i._e(),g.field_required?[i._v("\u5FC5\u9700\u3002")]:i._e(),i._v(" "+i._s(g.field_desc_zh)+" "),i.isTestedPC(g.test_description)?o("t-tag",[i._v("Tested(PC)")]):i._e()],2),g.field_enum?[o("p",[i._v("\u53EF\u9009\u503C\uFF1A"+i._s(g.field_enum)+"\u3002")])]:i._e(),g.custom_field_type?[o("p",[i._v("TS \u7C7B\u578B\u5B9A\u4E49\uFF1A"+i._s(g.custom_field_type)+"\u3002")])]:i._e(),g.event_input?[o("p",[i._v(" \u53C2\u6570\uFF1A"+i._s(g.event_input)+" ")])]:i._e(),g.event_output?[o("p",[i._v(" \u8FD4\u56DE\u503C\uFF1A"+i._s(g.event_output)+" ")])]:i._e(),o("p",[g.syntactic_sugar?[i._v(" \u652F\u6301 Vue \u8BED\u6CD5\u7CD6\uFF1A"+i._s(g.syntactic_sugar)+"\u3002 ")]:i._e(),g.support_default_value?[i._v("\u652F\u6301\u975E\u53D7\u63A7\u5C5E\u6027\u3002")]:i._e()],2),o("p",{staticStyle:{"font-size":"12px",color:"#a6a6a6"}},[i._v(" "+i._s(g.platform_framework_text.join(", "))+" ")]),g.version?o("p",{staticStyle:{"font-size":"12px",color:"#a6a6a6"}},[i._v(" \u7248\u672C\u53F7\uFF1A"+i._s(g.version)+" ")]):i._e()],2)]}},{key:"field_type_text",fn:function(u){var d=u.row;return[i._v(" "+i._s(d.field_type_text&&d.field_type_text.join("/"))+" ")]}},{key:"operation",fn:function(u){return[o("div",[o("div",{staticClass:"t-demo-table-btns"},[o("t-button",{attrs:{variant:"text",theme:"primary"},on:{click:function(){return i.onEditClick(u)}}},[i._v("Edit")]),o("t-button",{attrs:{variant:"text",theme:"primary"},on:{click:function(){return i.onTestsEditClick(u)}}},[i._v("Tests")]),o("t-popconfirm",{attrs:{theme:"danger",content:"\u786E\u5B9A\u5220\u9664\u5417\uFF1F",trigger:"click"},on:{confirm:function(){return i.onDeleteConfirm(u)}}},[o("t-button",{staticStyle:{"margin-left":"8px"},attrs:{variant:"text",theme:"danger"}},[i._v("Delete")])],1)],1),o("div",{staticStyle:{"font-size":"12px",color:"#a6a6a6"}},[i._v(" "+i._s(u.row.update_time)+" ")])])]}}])})],1)},uh=[];const fh={name:"ApiList",components:{TTable:Nd,TButton:Lu,TPopconfirm:Id},props:{list:Array,platformOptions:Array,preview:Boolean},computed:{columns(){return this.getCols()}},watch:{},methods:{getCols(){const i=[{title:"ID",colKey:"id"},{title:"\u7EC4\u4EF6/\u63D2\u4EF6",colKey:"component",fixed:"left",width:200},{title:"\u540D\u79F0",colKey:"field_name"},{title:"\u63CF\u8FF0",colKey:"field_desc_zh"},{title:"\u7C7B\u578B",colKey:"field_type_text"},{title:"\u9ED8\u8BA4\u503C",colKey:"field_default_value",width:90}];return this.preview||i.push({title:"\u64CD\u4F5C",colKey:"operation",fixed:"right"}),i},onCreate(){this.$emit("create-api")},onDeleteConfirm(i){vr({url:"/cmp/api",method:"delete",data:{id:i.row.id}}).then(()=>{this.$message.info("\u5220\u9664\u6210\u529F\uFF01"),this.$emit("delete-api-success")})},onEditClick(i){this.$emit("click-edit-btn",i)},onTestsEditClick(i){this.$emit("click-test-edit-btn",i)},onCodePreivew(i,s){this.$emit("code-preview",i,s)},isTestedPC(i){if(!i)return!1;const s=mt(i);return!(!s||!s.PC)}}},au={};var ch=er(fh,lh,uh,!1,dh,null,null,null);function dh(i){for(let s in au)this[s]=au[s]}var ph=function(){return ch.exports}(),hh=function(){var i=this,s=i.$createElement,o=i._self._c||s;return o("div",{staticClass:"tdesign-checkbox-indeterminate"},[o("t-checkbox",{staticClass:"site-check-all",attrs:{checked:i.checkedAll,indeterminate:i.indeterminate},on:{change:i.onCheckedAllChange}},[i._v("\u5168\u90E8")]),o("t-checkbox-group",{attrs:{options:i.options},on:{change:i.onChange},model:{value:i.checkedList,callback:function(u){i.checkedList=u},expression:"checkedList"}})],1)},vh=[];const gh={name:"SiteCheckbox",components:{TCheckbox:Pu,TCheckboxGroup:Nu},props:{options:Array,value:{}},data(){return{indeterminate:!1,checkedList:[]}},computed:{checkedStr(){return this.checkedList.join()},checkedAll(){const i=this.checkedList,s=this.options?this.options.map(o=>o.value):[];return i.sort().join()===s.sort().join()}},watch:{value:{immediate:!0,handler(i){this.checkedList=i}},checkedStr(){this.$emit("input",this.checkedList)}},methods:{onCheckedAllChange(i){this.indeterminate=!1,this.checkedList=i?this.options.map(s=>s.value):[]},onChange(i){this.indeterminate=!!i.length&&!this.checkedAll}}},ou={};var mh=er(gh,hh,vh,!1,yh,null,null,null);function yh(i){for(let s in ou)this[s]=ou[s]}var Zu=function(){return mh.exports}(),bh=function(){var i=this,s=i.$createElement,o=i._self._c||s;return o("div",{staticClass:"t-api-tool__multi-operations"},[o("t-button",{attrs:{theme:"primary"},nativeOn:{click:function(u){return i.onCreateApi.apply(null,arguments)}}},[i._v("New API")]),o("t-button",{attrs:{theme:"primary"},nativeOn:{click:function(u){return i.onGenerateDialogShow.apply(null,arguments)}}},[i._v("Generate API Files")]),o("a",{staticClass:"link",attrs:{href:"https://github.com/Tencent/tdesign/wiki/Component-API-Guide",target:"_blank"}},[o("t-button",{staticStyle:{color:"#99999"},attrs:{variant:"text"}},[i._v(" API Design ")])],1),o("t-dialog",{attrs:{header:"\u751F\u6210",width:"830",visible:i.generateFilesVisible},on:{"update:visible":function(u){i.generateFilesVisible=u},confirm:i.onGenerateConfirm}},[o("div",{attrs:{slot:"body"},slot:"body"},[o("form",{staticClass:"t-form api-edit-form",attrs:{onsubmit:"return false"}},[o("div",{staticClass:"t-form-item"},[o("label",[i._v("\u7EC4\u4EF6\uFF1A")]),o("div",{staticClass:"t-form-content"},[o("t-select",{attrs:{placeholder:"\u8BF7\u9009\u62E9\u7EC4\u4EF6",clearable:"",filterable:""},model:{value:i.formData.component,callback:function(u){i.$set(i.formData,"component",u)},expression:"formData.component"}},i._l(i.componentList,function(u,d){return o("t-option",{key:d,attrs:{label:`${u.value} ${u.label}`,value:u.value}})}),1)],1)]),o("div",{staticClass:"t-form-item"},[o("label",{staticStyle:{"vertical-align":"top"}},[i._v("\u6846\u67B6\u5E73\u53F0\uFF1A")]),o("div",{staticClass:"t-form-content platform"},[o("site-checkbox",{attrs:{options:i.frameworkOptions},model:{value:i.formData.platform,callback:function(u){i.$set(i.formData,"platform",u)},expression:"formData.platform"}})],1)]),o("div",{staticClass:"t-form-item"},[o("label",{staticStyle:{"vertical-align":"top"}},[i._v("\u53C2\u6570\uFF1A")]),o("div",{staticClass:"t-form-content"},[o("t-checkbox",{model:{value:i.formData.finalProject,callback:function(u){i.$set(i.formData,"finalProject",u)},expression:"formData.finalProject"}},[i._v("\u8F93\u51FA\u6587\u4EF6\u5230\u5404\u6846\u67B6\u4ED3\u5E93")]),i._v("\xA0\xA0 "),o("t-checkbox",{model:{value:i.formData.onlyDocs,callback:function(u){i.$set(i.formData,"onlyDocs",u)},expression:"formData.onlyDocs"}},[i._v("\u4EC5\u8F93\u51FA API \u6587\u6863")]),i._v("\xA0\xA0 "),o("t-checkbox",{model:{value:i.formData.useDefault,callback:function(u){i.$set(i.formData,"useDefault",u)},expression:"formData.useDefault"}},[i._v("\u8F93\u51FA useDefault/useVModel \u6587\u4EF6(Vue2)")]),i._v("\xA0\xA0 "),o("t-checkbox",{model:{value:i.formData.vitest,callback:function(u){i.$set(i.formData,"vitest",u)},expression:"formData.vitest"}},[i._v("\u8F93\u51FA\u5355\u6D4B\u7528\u4F8B")])],1)]),i.commandLine&&i.commandLine.length?o("div",{staticClass:"t-form-item"},[o("label",[i._v("\u6700\u7EC8\u547D\u4EE4\u884C\uFF1A")]),o("div",{staticClass:"t-form-content",staticStyle:{"vertical-align":"top"}},i._l(i.commandLine,function(u){return o("code",{key:u},[i._v(i._s(u)),o("br")])}),0)]):i._e()])])])],1)},Ch=[];const xh={name:"ApiToolOperation",components:{TButton:Lu,TSelect:Mo,TOption:Lo,SiteCheckbox:Zu},props:{map:Object},data(){return{codeType:"",generateFilesVisible:!1,checkedAll:!1,formData:{platform:[],component:"",finalProject:!1}}},computed:{frameworkOptions(){return this.map.platform_framework?[{label:"VueNext(PC)",value:1e3}].concat(this.map.platform_framework):[]},componentList(){return[{label:"\u5168\u90E8",value:"ALL"}].concat(this.map.components).filter(i=>i&&!i.type||["Table"].includes(i==null?void 0:i.value))},commandLine(){if(!this.map||!this.map.platform_framework)return;const i=this.formData.component,s={finalProject:this.formData.finalProject,onlyDocs:this.formData.onlyDocs,useDefault:this.formData.useDefault,vitest:this.formData.vitest,isUseUnitTest:this.formData.isUseUnitTest};i.toLocaleLowerCase()==="all"&&(s.onlyDocs=!0);const o=Object.keys(s).filter(d=>s[d]).join();return this.frameworkOptions.filter(d=>this.formData.platform.includes(d.value)).map(d=>`npm run api:docs ${i} "${d.label}" ${o}`)}},methods:{onCreateApi(){this.$emit("create-dialog-show")},onGenerateDialogShow(){this.generateFilesVisible=!0},onGenerateConfirm(){vr({method:"post",url:"/cmp/generate-api",data:{commandLines:this.commandLine.map(i=>i.replace("npm run api:docs",""))}}).then(()=>{this.generateFilesVisible=!1})}}},su={};var Sh=er(xh,bh,Ch,!1,Th,null,null,null);function Th(i){for(let s in su)this[s]=su[s]}var wh=function(){return Sh.exports}();const ho=1,vo=2,_h=4,go=8,Qu=16,ef=32,tf=64,Dh={[ho]:{placeholder:{name:"\u8BF7\u8F93\u5165\u5C5E\u6027\u540D\u79F0\uFF0C\u5982\uFF1Aname/theme/size/disabled"}},[vo]:{placeholder:{name:"\u4E8B\u4EF6\u540D\u79F0\u5F55\u5165\u65F6\u7EDF\u4E00\u4F7F\u7528\u5C0F\u9A7C\u5CF0\u547D\u540D\uFF0C\u4E14\u4E0D\u5E26on\uFF0C\u5982\uFF1AvisibleChange",inputParams:"\u4E8B\u4EF6\u53C2\u6570\uFF0C\u5982\uFF1A(context: { e: Event, value: string | number })",descZh:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u63CF\u8FF0\uFF08\u4E2D\u6587\uFF09\uFF0C\u5982\uFF1A\u70B9\u51FB\u786E\u8BA4\u6309\u94AE\u65F6\u89E6\u53D1",descEn:"type event description in English",triggerElements:"\u4E8B\u4EF6\u89E6\u53D1\u5143\u7D20\u63CF\u8FF0\uFF0C\u9ED8\u8BA4\u4E3A MouseEvent"}},[_h]:{placeholder:{name:"\u7EC4\u4EF6\u5BF9\u5916\u66B4\u9732\u7684\u65B9\u6CD5\u540D\u79F0",inputParams:"\u65B9\u6CD5\u53C2\u6570\uFF0C\u5982\uFF1A(validateRules: RulesObject)",outputParams:"\u65B9\u6CD5\u8FD4\u56DE\u503C\uFF0C\u5982\uFF1A(validateResult: boolean)",descZh:"\u8F93\u5165\u65B9\u6CD5\u63CF\u8FF0\uFF0C\u5982\uFF1A\u4F7F\u7528\u8BE5\u65B9\u6CD5\u8FDB\u884C\u8868\u5355\u6821\u9A8C",descEn:"type function description in English"}},[go]:{placeholder:{name:"\u7EC4\u4EF6\u63D2\u4EF6\u540D\u79F0\uFF0C\u5982\uFF1Athis.$message.info",inputParams:"\u63D2\u4EF6\u53C2\u6570\uFF0C\u5982\uFF1A(options) => {}",outputParams:"\u63D2\u4EF6\u8FD4\u56DE\u503C\uFF0C\u5982\uFF1A(options) => Promise",descZh:"\u63D2\u4EF6\u63CF\u8FF0\uFF0C\u5982\uFF1A\u4F7F\u7528\u8BE5\u63D2\u4EF6\u5F39\u51FA\u4FE1\u606F\u63D0\u9192",descEn:"type plugin description in English"}},[Qu]:{placeholder:{name:"\u8BF7\u8F93\u5165\u7EE7\u627F API \u540D\u79F0"},desc:"React.ButtonHTMLAttributes"},[ef]:{placeholder:{name:"\u8BF7\u8F93\u5165\u63D2\u4EF6\u51FD\u6570\u8FD4\u56DE\u503C\u7C7B\u578B"},desc:"Promise;\u3010interface MessageInstance { close: () => void }\u3011 }"},[tf]:{placeholder:{name:"\u8BF7\u8F93\u5165\u6CDB\u578B\u53C2\u6570\uFF0C\u793A\u4F8B\uFF1A"}}},oo=1,kh=2,Eh=1,$h=8;var na={exports:{}};function Oh(i,s=""){if(!i||i.indexOf("preSkip")!==-1)return{};try{return JSON.parse(i)}catch{return console.error(s||`${i} is not a JSON.`),{}}}function Ah(i,s){const o={};return i[s].forEach(u=>{o[u.label]=u.value}),o}function Mh(i){return i?".skip":""}function Lh(i,s){const o={};return i.forEach(u=>{s&&!u.platform_framework.includes(s)||(o[u.component]?o[u.component].push(u):o[u.component]=[u])}),Object.keys(o).forEach(u=>{o[u].type==="plugin"&&(o[u]=o[u].sort((g,y)=>g.field_category{if(!u)return;const d=i[u];d instanceof Array?o[u]=d:typeof d=="object"?(!d.includes&&!d.excludes||d.includes&&d.includes.includes(s)||d.excludes&&!d.excludes.includes(s))&&(o[u]=d.list):console.warn("COMPONENT_API_MD_MAP \u6570\u636E\u7ED3\u6784\u4E0D\u5BF9\uFF0C\u53EA\u80FD\u662F Array \u6216\u8005 Object \u7C7B\u578B")}),o}function Nh(i,s){const o=Object.entries(i);for(let u=0,d=o.length;u=0)return;u==="set-cookie"?o[u]=(o[u]?o[u]:[]).concat([d]):o[u]=o[u]?o[u]+", "+d:d}}),o},Zl=_t,Bp=Zl.isStandardBrowserEnv()?function(){var s=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a"),u;function d(g){var y=g;return s&&(o.setAttribute("href",y),y=o.href),o.setAttribute("href",y),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return u=d(window.location.href),function(y){var m=Zl.isString(y)?d(y):y;return m.protocol===u.protocol&&m.host===u.host}}():function(){return function(){return!0}}(),dn=_t,Wp=Ap,Hp=Mp,zp=Uu,Up=Fp,Gp=jp,Vp=Bp,no=Vu,Ql=function(s){return new Promise(function(u,d){var g=s.data,y=s.headers;dn.isFormData(g)&&delete y["Content-Type"],(dn.isBlob(g)||dn.isFile(g))&&g.type&&delete y["Content-Type"];var m=new XMLHttpRequest;if(s.auth){var T=s.auth.username||"",w=unescape(encodeURIComponent(s.auth.password))||"";y.Authorization="Basic "+btoa(T+":"+w)}var S=Up(s.baseURL,s.url);if(m.open(s.method.toUpperCase(),zp(S,s.params,s.paramsSerializer),!0),m.timeout=s.timeout,m.onreadystatechange=function(){if(!(!m||m.readyState!==4)&&!(m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0))){var I="getAllResponseHeaders"in m?Gp(m.getAllResponseHeaders()):null,z=!s.responseType||s.responseType==="text"?m.responseText:m.response,V={data:z,status:m.status,statusText:m.statusText,headers:I,config:s,request:m};Wp(u,d,V),m=null}},m.onabort=function(){!m||(d(no("Request aborted",s,"ECONNABORTED",m)),m=null)},m.onerror=function(){d(no("Network Error",s,null,m)),m=null},m.ontimeout=function(){var I="timeout of "+s.timeout+"ms exceeded";s.timeoutErrorMessage&&(I=s.timeoutErrorMessage),d(no(I,s,"ECONNABORTED",m)),m=null},dn.isStandardBrowserEnv()){var A=(s.withCredentials||Vp(S))&&s.xsrfCookieName?Hp.read(s.xsrfCookieName):void 0;A&&(y[s.xsrfHeaderName]=A)}if("setRequestHeader"in m&&dn.forEach(y,function(I,z){typeof g=="undefined"&&z.toLowerCase()==="content-type"?delete y[z]:m.setRequestHeader(z,I)}),dn.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),s.responseType)try{m.responseType=s.responseType}catch(M){if(s.responseType!=="json")throw M}typeof s.onDownloadProgress=="function"&&m.addEventListener("progress",s.onDownloadProgress),typeof s.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",s.onUploadProgress),s.cancelToken&&s.cancelToken.promise.then(function(I){!m||(m.abort(),d(I),m=null)}),g||(g=null),m.send(g)})},gt=_t,eu=kp,qp={"Content-Type":"application/x-www-form-urlencoded"};function tu(i,s){!gt.isUndefined(i)&>.isUndefined(i["Content-Type"])&&(i["Content-Type"]=s)}function Kp(){var i;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(i=Ql),i}var aa={adapter:Kp(),transformRequest:[function(s,o){return eu(o,"Accept"),eu(o,"Content-Type"),gt.isFormData(s)||gt.isArrayBuffer(s)||gt.isBuffer(s)||gt.isStream(s)||gt.isFile(s)||gt.isBlob(s)?s:gt.isArrayBufferView(s)?s.buffer:gt.isURLSearchParams(s)?(tu(o,"application/x-www-form-urlencoded;charset=utf-8"),s.toString()):gt.isObject(s)?(tu(o,"application/json;charset=utf-8"),JSON.stringify(s)):s}],transformResponse:[function(s){if(typeof s=="string")try{s=JSON.parse(s)}catch{}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(s){return s>=200&&s<300}};aa.headers={common:{Accept:"application/json, text/plain, */*"}};gt.forEach(["delete","get","head"],function(s){aa.headers[s]={}});gt.forEach(["post","put","patch"],function(s){aa.headers[s]=gt.merge(qp)});var qu=aa,ru=_t,io=_p,Jp=Gu,Yp=qu;function ao(i){i.cancelToken&&i.cancelToken.throwIfRequested()}var Xp=function(s){ao(s),s.headers=s.headers||{},s.data=io(s.data,s.headers,s.transformRequest),s.headers=ru.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),ru.forEach(["delete","get","head","post","put","patch","common"],function(d){delete s.headers[d]});var o=s.adapter||Yp.adapter;return o(s).then(function(d){return ao(s),d.data=io(d.data,d.headers,s.transformResponse),d},function(d){return Jp(d)||(ao(s),d&&d.response&&(d.response.data=io(d.response.data,d.response.headers,s.transformResponse))),Promise.reject(d)})},it=_t,Ku=function(s,o){o=o||{};var u={},d=["url","method","data"],g=["headers","auth","proxy","params"],y=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],m=["validateStatus"];function T(M,I){return it.isPlainObject(M)&&it.isPlainObject(I)?it.merge(M,I):it.isPlainObject(I)?it.merge({},I):it.isArray(I)?I.slice():I}function w(M){it.isUndefined(o[M])?it.isUndefined(s[M])||(u[M]=T(void 0,s[M])):u[M]=T(s[M],o[M])}it.forEach(d,function(I){it.isUndefined(o[I])||(u[I]=T(void 0,o[I]))}),it.forEach(g,w),it.forEach(y,function(I){it.isUndefined(o[I])?it.isUndefined(s[I])||(u[I]=T(void 0,s[I])):u[I]=T(void 0,o[I])}),it.forEach(m,function(I){I in o?u[I]=T(s[I],o[I]):I in s&&(u[I]=T(void 0,s[I]))});var S=d.concat(g).concat(y).concat(m),A=Object.keys(s).concat(Object.keys(o)).filter(function(I){return S.indexOf(I)===-1});return it.forEach(A,w),u},Ju=_t,Zp=Uu,nu=Tp,Qp=Xp,oa=Ku;function li(i){this.defaults=i,this.interceptors={request:new nu,response:new nu}}li.prototype.request=function(s){typeof s=="string"?(s=arguments[1]||{},s.url=arguments[0]):s=s||{},s=oa(this.defaults,s),s.method?s.method=s.method.toLowerCase():this.defaults.method?s.method=this.defaults.method.toLowerCase():s.method="get";var o=[Qp,void 0],u=Promise.resolve(s);for(this.interceptors.request.forEach(function(g){o.unshift(g.fulfilled,g.rejected)}),this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});o.length;)u=u.then(o.shift(),o.shift());return u};li.prototype.getUri=function(s){return s=oa(this.defaults,s),Zp(s.url,s.params,s.paramsSerializer).replace(/^\?/,"")};Ju.forEach(["delete","get","head","options"],function(s){li.prototype[s]=function(o,u){return this.request(oa(u||{},{method:s,url:o}))}});Ju.forEach(["post","put","patch"],function(s){li.prototype[s]=function(o,u,d){return this.request(oa(d||{},{method:s,url:o,data:u}))}});var eh=li;function Ro(i){this.message=i}Ro.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ro.prototype.__CANCEL__=!0;var Yu=Ro,th=Yu;function ra(i){if(typeof i!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(d){s=d});var o=this;i(function(d){o.reason||(o.reason=new th(d),s(o.reason))})}ra.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};ra.source=function(){var s,o=new ra(function(d){s=d});return{token:o,cancel:s}};var rh=ra,nh=function(s){return function(u){return s.apply(null,u)}},iu=_t,ih=Wu,Qi=eh,ah=Ku,oh=qu;function Xu(i){var s=new Qi(i),o=ih(Qi.prototype.request,s);return iu.extend(o,Qi.prototype,s),iu.extend(o,s),o}var Ut=Xu(oh);Ut.Axios=Qi;Ut.create=function(s){return Xu(ah(Ut.defaults,s))};Ut.Cancel=Yu;Ut.CancelToken=rh;Ut.isCancel=Gu;Ut.all=function(s){return Promise.all(s)};Ut.spread=nh;No.exports=Ut;No.exports.default=Ut;var sh=No.exports;const vr=sh.create({baseURL:"http://127.0.0.1:16001/",headers:{"Access-Control-Allow-Origin":"*"},timeout:1e3});var lh=function(){var i=this,s=i.$createElement,o=i._self._c||s;return o("div",{staticClass:"API-Preview tdesign-document"},[o("t-table",{attrs:{data:i.list,columns:i.columns,rowKey:"id",tableLayout:"auto",hover:""},scopedSlots:i._u([{key:"component",fn:function(u){var d=u.row,g=d===void 0?{}:d;return[o("div",[o("div",[o("span",{staticStyle:{"padding-right":"8px"}},[i._v(i._s(g.component))]),g.field_category_text?o("t-tag",{attrs:{size:"small",theme:{Props:"primary",Events:"success",Functions:"warning",Return:"default",Extends:"default","":"default"}[g.field_category_text]||"primary",variant:"light"}},[i._v(" "+i._s(g.field_category_text)+" ")]):i._e()],1)])]}},{key:"field_desc_zh",fn:function(u){var d=u.row,g=d===void 0?{}:d;return[o("div",[o("p",[g.deprecated?[i._v("\u5DF2\u5E9F\u5F03\u3002")]:i._e(),g.html_attribute?[i._v("HTML \u539F\u751F\u5C5E\u6027\u3002")]:i._e(),g.field_required?[i._v("\u5FC5\u9700\u3002")]:i._e(),i._v(" "+i._s(g.field_desc_zh)+" "),i.isTestedPC(g.test_description)?o("t-tag",[i._v("Tested(PC)")]):i._e()],2),g.field_enum?[o("p",[i._v("\u53EF\u9009\u503C\uFF1A"+i._s(g.field_enum)+"\u3002")])]:i._e(),g.custom_field_type?[o("p",[i._v("TS \u7C7B\u578B\u5B9A\u4E49\uFF1A"+i._s(g.custom_field_type)+"\u3002")])]:i._e(),g.event_input?[o("p",[i._v(" \u53C2\u6570\uFF1A"+i._s(g.event_input)+" ")])]:i._e(),g.event_output?[o("p",[i._v(" \u8FD4\u56DE\u503C\uFF1A"+i._s(g.event_output)+" ")])]:i._e(),o("p",[g.syntactic_sugar?[i._v(" \u652F\u6301 Vue \u8BED\u6CD5\u7CD6\uFF1A"+i._s(g.syntactic_sugar)+"\u3002 ")]:i._e(),g.support_default_value?[i._v("\u652F\u6301\u975E\u53D7\u63A7\u5C5E\u6027\u3002")]:i._e()],2),o("p",{staticStyle:{"font-size":"12px",color:"#a6a6a6"}},[i._v(" "+i._s(g.platform_framework_text.join(", "))+" ")]),g.version?o("p",{staticStyle:{"font-size":"12px",color:"#a6a6a6"}},[i._v(" \u7248\u672C\u53F7\uFF1A"+i._s(g.version)+" ")]):i._e()],2)]}},{key:"field_type_text",fn:function(u){var d=u.row;return[i._v(" "+i._s(d.field_type_text&&d.field_type_text.join("/"))+" ")]}},{key:"operation",fn:function(u){return[o("div",[o("div",{staticClass:"t-demo-table-btns"},[o("t-button",{attrs:{variant:"text",theme:"primary"},on:{click:function(){return i.onEditClick(u)}}},[i._v("Edit")]),o("t-button",{attrs:{variant:"text",theme:"primary"},on:{click:function(){return i.onTestsEditClick(u)}}},[i._v("Tests")]),o("t-popconfirm",{attrs:{theme:"danger",content:"\u786E\u5B9A\u5220\u9664\u5417\uFF1F",trigger:"click"},on:{confirm:function(){return i.onDeleteConfirm(u)}}},[o("t-button",{staticStyle:{"margin-left":"8px"},attrs:{variant:"text",theme:"danger"}},[i._v("Delete")])],1)],1),o("div",{staticStyle:{"font-size":"12px",color:"#a6a6a6"}},[i._v(" "+i._s(u.row.update_time)+" ")])])]}}])})],1)},uh=[];const fh={name:"ApiList",components:{TTable:Nd,TButton:Lu,TPopconfirm:Id},props:{list:Array,platformOptions:Array,preview:Boolean},computed:{columns(){return this.getCols()}},watch:{},methods:{getCols(){const i=[{title:"ID",colKey:"id"},{title:"\u7EC4\u4EF6/\u63D2\u4EF6",colKey:"component",fixed:"left",width:200},{title:"\u540D\u79F0",colKey:"field_name"},{title:"\u63CF\u8FF0",colKey:"field_desc_zh"},{title:"\u7C7B\u578B",colKey:"field_type_text"},{title:"\u9ED8\u8BA4\u503C",colKey:"field_default_value",width:90}];return this.preview||i.push({title:"\u64CD\u4F5C",colKey:"operation",fixed:"right"}),i},onCreate(){this.$emit("create-api")},onDeleteConfirm(i){vr({url:"/cmp/api",method:"delete",data:{id:i.row.id}}).then(()=>{this.$message.info("\u5220\u9664\u6210\u529F\uFF01"),this.$emit("delete-api-success")})},onEditClick(i){this.$emit("click-edit-btn",i)},onTestsEditClick(i){this.$emit("click-test-edit-btn",i)},onCodePreivew(i,s){this.$emit("code-preview",i,s)},isTestedPC(i){if(!i)return!1;const s=mt(i);return!(!s||!s.PC)}}},au={};var ch=er(fh,lh,uh,!1,dh,null,null,null);function dh(i){for(let s in au)this[s]=au[s]}var ph=function(){return ch.exports}(),hh=function(){var i=this,s=i.$createElement,o=i._self._c||s;return o("div",{staticClass:"tdesign-checkbox-indeterminate"},[o("t-checkbox",{staticClass:"site-check-all",attrs:{checked:i.checkedAll,indeterminate:i.indeterminate},on:{change:i.onCheckedAllChange}},[i._v("\u5168\u90E8")]),o("t-checkbox-group",{attrs:{options:i.options},on:{change:i.onChange},model:{value:i.checkedList,callback:function(u){i.checkedList=u},expression:"checkedList"}})],1)},vh=[];const gh={name:"SiteCheckbox",components:{TCheckbox:Pu,TCheckboxGroup:Nu},props:{options:Array,value:{}},data(){return{indeterminate:!1,checkedList:[]}},computed:{checkedStr(){return this.checkedList.join()},checkedAll(){const i=this.checkedList,s=this.options?this.options.map(o=>o.value):[];return i.sort().join()===s.sort().join()}},watch:{value:{immediate:!0,handler(i){this.checkedList=i}},checkedStr(){this.$emit("input",this.checkedList)}},methods:{onCheckedAllChange(i){this.indeterminate=!1,this.checkedList=i?this.options.map(s=>s.value):[]},onChange(i){this.indeterminate=!!i.length&&!this.checkedAll}}},ou={};var mh=er(gh,hh,vh,!1,yh,null,null,null);function yh(i){for(let s in ou)this[s]=ou[s]}var Zu=function(){return mh.exports}(),bh=function(){var i=this,s=i.$createElement,o=i._self._c||s;return o("div",{staticClass:"t-api-tool__multi-operations"},[o("t-button",{attrs:{theme:"primary"},nativeOn:{click:function(u){return i.onCreateApi.apply(null,arguments)}}},[i._v("New API")]),o("t-button",{attrs:{theme:"primary"},nativeOn:{click:function(u){return i.onGenerateDialogShow.apply(null,arguments)}}},[i._v("Generate API Files")]),o("a",{staticClass:"link",attrs:{href:"https://github.com/Tencent/tdesign/wiki/Component-API-Guide",target:"_blank"}},[o("t-button",{staticStyle:{color:"#99999"},attrs:{variant:"text"}},[i._v(" API Design ")])],1),o("t-dialog",{attrs:{header:"\u751F\u6210",width:"830",visible:i.generateFilesVisible},on:{"update:visible":function(u){i.generateFilesVisible=u},confirm:i.onGenerateConfirm}},[o("div",{attrs:{slot:"body"},slot:"body"},[o("form",{staticClass:"t-form api-edit-form",attrs:{onsubmit:"return false"}},[o("div",{staticClass:"t-form-item"},[o("label",[i._v("\u7EC4\u4EF6\uFF1A")]),o("div",{staticClass:"t-form-content"},[o("t-select",{attrs:{placeholder:"\u8BF7\u9009\u62E9\u7EC4\u4EF6",clearable:"",filterable:"",tips:i.formData.component==="ALL"?i.tips:""},model:{value:i.formData.component,callback:function(u){i.$set(i.formData,"component",u)},expression:"formData.component"}},i._l(i.componentList,function(u,d){return o("t-option",{key:d,attrs:{label:`${u.value} ${u.label}`,value:u.value}})}),1)],1)]),o("div",{staticClass:"t-form-item"},[o("label",{staticStyle:{"vertical-align":"top"}},[i._v("\u6846\u67B6\u5E73\u53F0\uFF1A")]),o("div",{staticClass:"t-form-content platform"},[o("site-checkbox",{attrs:{options:i.frameworkOptions},model:{value:i.formData.platform,callback:function(u){i.$set(i.formData,"platform",u)},expression:"formData.platform"}})],1)]),o("div",{staticClass:"t-form-item"},[o("label",{staticStyle:{"vertical-align":"top"}},[i._v("\u53C2\u6570\uFF1A")]),o("div",{staticClass:"t-form-content"},[o("t-checkbox",{model:{value:i.formData.finalProject,callback:function(u){i.$set(i.formData,"finalProject",u)},expression:"formData.finalProject"}},[i._v("\u8F93\u51FA\u6587\u4EF6\u5230\u5404\u6846\u67B6\u4ED3\u5E93")]),i._v("\xA0\xA0 "),o("t-checkbox",{model:{value:i.formData.onlyDocs,callback:function(u){i.$set(i.formData,"onlyDocs",u)},expression:"formData.onlyDocs"}},[i._v("\u4EC5\u8F93\u51FA API \u6587\u6863")]),i._v("\xA0\xA0 "),o("t-checkbox",{model:{value:i.formData.useDefault,callback:function(u){i.$set(i.formData,"useDefault",u)},expression:"formData.useDefault"}},[i._v("\u8F93\u51FA useDefault/useVModel \u6587\u4EF6(Vue2)")]),i._v("\xA0\xA0 "),o("t-checkbox",{model:{value:i.formData.vitest,callback:function(u){i.$set(i.formData,"vitest",u)},expression:"formData.vitest"}},[i._v("\u8F93\u51FA\u5355\u6D4B\u7528\u4F8B")])],1)]),i.commandLine&&i.commandLine.length?o("div",{staticClass:"t-form-item"},[o("label",[i._v("\u6700\u7EC8\u547D\u4EE4\u884C\uFF1A")]),o("div",{staticClass:"t-form-content",staticStyle:{"vertical-align":"top"}},i._l(i.commandLine,function(u){return o("code",{key:u},[i._v(i._s(u)),o("br")])}),0)]):i._e()])])])],1)},Ch=[];const xh={name:"ApiToolOperation",components:{TButton:Lu,TSelect:Mo,TOption:Lo,SiteCheckbox:Zu},props:{map:Object},data(){return{codeType:"",generateFilesVisible:!1,checkedAll:!1,tips:"\u5168\u91CF\u8F93\u51FA\u65F6\u9650\u5236\u4E3A\u53EA\u80FD\u8F93\u51FA\u6587\u6863\uFF0C\u5982\u9700\u8F93\u51FA\u5176\u4ED6\u6587\u4EF6\u8BF7\u9009\u62E9\u5BF9\u5E94\u7EC4\u4EF6",formData:{platform:[],component:"ALL",finalProject:!1}}},computed:{frameworkOptions(){return this.map.platform_framework?[{label:"VueNext(PC)",value:1e3}].concat(this.map.platform_framework):[]},componentList(){return[{label:"\u5168\u90E8",value:"ALL"}].concat(this.map.components).filter(i=>i&&!i.type||["Table"].includes(i==null?void 0:i.value))},commandLine(){if(!this.map||!this.map.platform_framework)return;const i=this.formData.component,s={finalProject:this.formData.finalProject,onlyDocs:this.formData.onlyDocs,useDefault:this.formData.useDefault,vitest:this.formData.vitest,isUseUnitTest:this.formData.isUseUnitTest};i.toLocaleLowerCase()==="all"&&(s.onlyDocs=!0);const o=Object.keys(s).filter(d=>s[d]).join();return this.frameworkOptions.filter(d=>this.formData.platform.includes(d.value)).map(d=>`npm run api:docs ${i} "${d.label}" ${o}`)}},methods:{onCreateApi(){this.$emit("create-dialog-show")},onGenerateDialogShow(){this.generateFilesVisible=!0},onGenerateConfirm(){vr({method:"post",url:"/cmp/generate-api",data:{commandLines:this.commandLine.map(i=>i.replace("npm run api:docs",""))}}).then(()=>{this.generateFilesVisible=!1})}}},su={};var Sh=er(xh,bh,Ch,!1,Th,null,null,null);function Th(i){for(let s in su)this[s]=su[s]}var wh=function(){return Sh.exports}();const ho=1,vo=2,_h=4,go=8,Qu=16,ef=32,tf=64,Dh={[ho]:{placeholder:{name:"\u8BF7\u8F93\u5165\u5C5E\u6027\u540D\u79F0\uFF0C\u5982\uFF1Aname/theme/size/disabled"}},[vo]:{placeholder:{name:"\u4E8B\u4EF6\u540D\u79F0\u5F55\u5165\u65F6\u7EDF\u4E00\u4F7F\u7528\u5C0F\u9A7C\u5CF0\u547D\u540D\uFF0C\u4E14\u4E0D\u5E26on\uFF0C\u5982\uFF1AvisibleChange",inputParams:"\u4E8B\u4EF6\u53C2\u6570\uFF0C\u5982\uFF1A(context: { e: Event, value: string | number })",descZh:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u63CF\u8FF0\uFF08\u4E2D\u6587\uFF09\uFF0C\u5982\uFF1A\u70B9\u51FB\u786E\u8BA4\u6309\u94AE\u65F6\u89E6\u53D1",descEn:"type event description in English",triggerElements:"\u4E8B\u4EF6\u89E6\u53D1\u5143\u7D20\u63CF\u8FF0\uFF0C\u9ED8\u8BA4\u4E3A MouseEvent"}},[_h]:{placeholder:{name:"\u7EC4\u4EF6\u5BF9\u5916\u66B4\u9732\u7684\u65B9\u6CD5\u540D\u79F0",inputParams:"\u65B9\u6CD5\u53C2\u6570\uFF0C\u5982\uFF1A(validateRules: RulesObject)",outputParams:"\u65B9\u6CD5\u8FD4\u56DE\u503C\uFF0C\u5982\uFF1A(validateResult: boolean)",descZh:"\u8F93\u5165\u65B9\u6CD5\u63CF\u8FF0\uFF0C\u5982\uFF1A\u4F7F\u7528\u8BE5\u65B9\u6CD5\u8FDB\u884C\u8868\u5355\u6821\u9A8C",descEn:"type function description in English"}},[go]:{placeholder:{name:"\u7EC4\u4EF6\u63D2\u4EF6\u540D\u79F0\uFF0C\u5982\uFF1Athis.$message.info",inputParams:"\u63D2\u4EF6\u53C2\u6570\uFF0C\u5982\uFF1A(options) => {}",outputParams:"\u63D2\u4EF6\u8FD4\u56DE\u503C\uFF0C\u5982\uFF1A(options) => Promise",descZh:"\u63D2\u4EF6\u63CF\u8FF0\uFF0C\u5982\uFF1A\u4F7F\u7528\u8BE5\u63D2\u4EF6\u5F39\u51FA\u4FE1\u606F\u63D0\u9192",descEn:"type plugin description in English"}},[Qu]:{placeholder:{name:"\u8BF7\u8F93\u5165\u7EE7\u627F API \u540D\u79F0"},desc:"React.ButtonHTMLAttributes"},[ef]:{placeholder:{name:"\u8BF7\u8F93\u5165\u63D2\u4EF6\u51FD\u6570\u8FD4\u56DE\u503C\u7C7B\u578B"},desc:"Promise;\u3010interface MessageInstance { close: () => void }\u3011 }"},[tf]:{placeholder:{name:"\u8BF7\u8F93\u5165\u6CDB\u578B\u53C2\u6570\uFF0C\u793A\u4F8B\uFF1A"}}},oo=1,kh=2,Eh=1,$h=8;var na={exports:{}};function Oh(i,s=""){if(!i||i.indexOf("preSkip")!==-1)return{};try{return JSON.parse(i)}catch{return console.error(s||`${i} is not a JSON.`),{}}}function Ah(i,s){const o={};return i[s].forEach(u=>{o[u.label]=u.value}),o}function Mh(i){return i?".skip":""}function Lh(i,s){const o={};return i.forEach(u=>{s&&!u.platform_framework.includes(s)||(o[u.component]?o[u.component].push(u):o[u.component]=[u])}),Object.keys(o).forEach(u=>{u[0]==="$"&&(o[u]=o[u].sort((d,g)=>d.field_category{if(!u)return;const d=i[u];d instanceof Array?o[u]=d:typeof d=="object"?(!d.includes&&!d.excludes||d.includes&&d.includes.includes(s)||d.excludes&&!d.excludes.includes(s))&&(o[u]=d.list):console.warn("COMPONENT_API_MD_MAP \u6570\u636E\u7ED3\u6784\u4E0D\u5BF9\uFF0C\u53EA\u80FD\u662F Array \u6216\u8005 Object \u7C7B\u578B")}),o}function Nh(i,s){const o=Object.entries(i);for(let u=0,d=o.length;uKP(()=>import("./index.75e9f1bb.js"),["assets/index.75e9f1bb.js","assets/index.587b9f3f.css"])},{path:"/apis",component:()=>KP(()=>import("./preview.fe6fa30a.js"),["assets/preview.fe6fa30a.js","assets/index.75e9f1bb.js","assets/index.587b9f3f.css"])},{path:"*",redirect:"/api_design"}];var hSe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-view")},pSe=[];function gSe(t,e,n,r,a,i,o,l){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i);var c;if(o?(c=function(p){p=p||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!p&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(p=__VUE_SSR_CONTEXT__),a&&a.call(this,p),p&&p._registeredComponents&&p._registeredComponents.add(o)},s._ssrRegister=c):a&&(c=l?function(){a.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(s.functional){s._injectStyles=c;var d=s.render;s.render=function(h,m){return c.call(m),d(h,m)}}else{var v=s.beforeCreate;s.beforeCreate=v?[].concat(v,c):[c]}return{exports:t,options:s}}const mSe={},rI={};var ySe=gSe(mSe,hSe,pSe,!1,bSe,null,null,null);function bSe(t){for(let e in rI)this[e]=rI[e]}var wSe=function(){return ySe.exports}();ye.use(pk);ye.use(dSe);const OSe=new pk({mode:"history",routes:vSe});ye.config.productionTip=!1;new ye({router:OSe,render:t=>t(wSe)}).$mount("#app");export{kCe as B,si as C,MF as D,mt as I,Lo as O,R_e as P,AN as R,hi as S,ye as V,ct as _,ft as a,Mb as b,Vr as c,di as d,jt as e,Bc as f,are as g,Gr as h,Va as i,Kh as j,Zi as k,gy as l,li as m,gSe as n,Ote as o,Yi as p,t0 as q,ht as u}; + */function pM(t,e){t._installedPlugins.indexOf(It)===-1&&t.use(It),Object.keys(Zd).forEach(function(n){Zd[n]&&(/plugin/i.test(n)?t.use(Zd[n]):t.use(Zd[n],e))})}typeof window!="undefined"&&window.Vue&&pM(window.Vue);var dSe={install:pM,version:"1.2.6"};const vSe=[{path:"/api_design",component:()=>KP(()=>import("./index.79021b1b.js"),["assets/index.79021b1b.js","assets/index.587b9f3f.css"])},{path:"/apis",component:()=>KP(()=>import("./preview.eeca2cc2.js"),["assets/preview.eeca2cc2.js","assets/index.79021b1b.js","assets/index.587b9f3f.css"])},{path:"*",redirect:"/api_design"}];var hSe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-view")},pSe=[];function gSe(t,e,n,r,a,i,o,l){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i);var c;if(o?(c=function(p){p=p||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!p&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(p=__VUE_SSR_CONTEXT__),a&&a.call(this,p),p&&p._registeredComponents&&p._registeredComponents.add(o)},s._ssrRegister=c):a&&(c=l?function(){a.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(s.functional){s._injectStyles=c;var d=s.render;s.render=function(h,m){return c.call(m),d(h,m)}}else{var v=s.beforeCreate;s.beforeCreate=v?[].concat(v,c):[c]}return{exports:t,options:s}}const mSe={},rI={};var ySe=gSe(mSe,hSe,pSe,!1,bSe,null,null,null);function bSe(t){for(let e in rI)this[e]=rI[e]}var wSe=function(){return ySe.exports}();ye.use(pk);ye.use(dSe);const OSe=new pk({mode:"history",routes:vSe});ye.config.productionTip=!1;new ye({router:OSe,render:t=>t(wSe)}).$mount("#app");export{kCe as B,si as C,MF as D,mt as I,Lo as O,R_e as P,AN as R,hi as S,ye as V,ct as _,ft as a,Mb as b,Vr as c,di as d,jt as e,Bc as f,are as g,Gr as h,Va as i,Kh as j,Zi as k,gy as l,li as m,gSe as n,Ote as o,Yi as p,t0 as q,ht as u}; diff --git a/packages/frontend/_site/assets/preview.fe6fa30a.js b/packages/frontend/_site/assets/preview.eeca2cc2.js similarity index 75% rename from packages/frontend/_site/assets/preview.fe6fa30a.js rename to packages/frontend/_site/assets/preview.eeca2cc2.js index 5f493a9c7..3cd7626bb 100644 --- a/packages/frontend/_site/assets/preview.fe6fa30a.js +++ b/packages/frontend/_site/assets/preview.eeca2cc2.js @@ -1 +1 @@ -import o from"./index.75e9f1bb.js";import{n as i}from"./index.3eea9dee.js";import"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var s=function(){var n=this,e=n.$createElement,r=n._self._c||e;return r("api-design",{attrs:{preview:""}})},a=[];const _={name:"ApiPreview",components:{ApiDesign:o}},t={};var c=i(_,s,a,!1,p,null,null,null);function p(n){for(let e in t)this[e]=t[e]}var f=function(){return c.exports}();export{f as default}; +import o from"./index.79021b1b.js";import{n as i}from"./index.a8408da8.js";import"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var s=function(){var n=this,e=n.$createElement,r=n._self._c||e;return r("api-design",{attrs:{preview:""}})},a=[];const _={name:"ApiPreview",components:{ApiDesign:o}},t={};var c=i(_,s,a,!1,p,null,null,null);function p(n){for(let e in t)this[e]=t[e]}var f=function(){return c.exports}();export{f as default}; diff --git a/packages/frontend/_site/index.html b/packages/frontend/_site/index.html index ff0de4311..38aed6dab 100644 --- a/packages/frontend/_site/index.html +++ b/packages/frontend/_site/index.html @@ -15,7 +15,7 @@ } - + diff --git a/packages/frontend/src/pages/api/operation.vue b/packages/frontend/src/pages/api/operation.vue index 7ddff501f..6f0711337 100644 --- a/packages/frontend/src/pages/api/operation.vue +++ b/packages/frontend/src/pages/api/operation.vue @@ -24,6 +24,7 @@ placeholder="请选择组件" clearable filterable + :tips="formData.component === 'ALL' ? tips : ''" >