@next-bricks/ai-portal 0.20.12 → 0.20.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bricks.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "id": "bricks/ai-portal",
3
3
  "bricks": [
4
4
  "ai-portal.chat-box",
5
+ "ai-portal.cruise-canvas",
6
+ "ai-portal.chat-history",
7
+ "ai-portal.stat-with-mini-chart",
8
+ "ai-portal.home-container",
5
9
  "ai-portal.elevo-logo",
6
10
  "ai-portal.elevo-sidebar",
7
- "ai-portal.stat-with-mini-chart",
8
- "ai-portal.cruise-canvas",
9
11
  "ai-portal.icon-button",
10
- "ai-portal.mcp-tools",
11
12
  "ai-portal.show-cases",
12
- "ai-portal.home-container",
13
- "ai-portal.chat-history"
13
+ "ai-portal.mcp-tools"
14
14
  ],
15
15
  "elements": [],
16
16
  "processors": [],
@@ -19,17 +19,6 @@
19
19
  "ai-portal.chat-box": [
20
20
  "eo-icon"
21
21
  ],
22
- "ai-portal.elevo-sidebar": [
23
- "eo-icon",
24
- "eo-link",
25
- "eo-dropdown-actions",
26
- "eo-easyops-avatar",
27
- "eo-mini-actions",
28
- "ai-portal.icon-button"
29
- ],
30
- "ai-portal.stat-with-mini-chart": [
31
- "eo-mini-line-chart"
32
- ],
33
22
  "ai-portal.cruise-canvas": [
34
23
  "eo-icon",
35
24
  "eo-button",
@@ -42,21 +31,32 @@
42
31
  "basic.copy-to-clipboard",
43
32
  "eo-easyops-avatar"
44
33
  ],
34
+ "ai-portal.chat-history": [
35
+ "eo-icon",
36
+ "eo-link",
37
+ "eo-mini-actions"
38
+ ],
39
+ "ai-portal.stat-with-mini-chart": [
40
+ "eo-mini-line-chart"
41
+ ],
42
+ "ai-portal.elevo-sidebar": [
43
+ "eo-icon",
44
+ "eo-link",
45
+ "eo-dropdown-actions",
46
+ "eo-easyops-avatar",
47
+ "eo-mini-actions",
48
+ "ai-portal.icon-button"
49
+ ],
45
50
  "ai-portal.icon-button": [
46
51
  "eo-icon",
47
52
  "eo-tooltip"
48
53
  ],
49
- "ai-portal.mcp-tools": [
50
- "eo-icon"
51
- ],
52
54
  "ai-portal.show-cases": [
53
55
  "eo-link"
54
56
  ],
55
- "ai-portal.chat-history": [
56
- "eo-icon",
57
- "eo-link",
58
- "eo-mini-actions"
57
+ "ai-portal.mcp-tools": [
58
+ "eo-icon"
59
59
  ]
60
60
  },
61
- "filePath": "bricks/ai-portal/dist/index.70544ec4.js"
61
+ "filePath": "bricks/ai-portal/dist/index.975dc931.js"
62
62
  }
@@ -0,0 +1,2 @@
1
+ "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[3362],{1703:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".files--SBFNeFls{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px;list-style:none;margin:12px 0 0;padding:0}.large--M2NOUc4a{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.file--sJi1z1FZ{background:rgba(0,0,0,0.04);border-radius:8px;display:flex;height:60px;align-items:center;padding:0 14px}.file--sJi1z1FZ,\n.file--sJi1z1FZ:hover{color:var(--elevo-color-brand)}.file--sJi1z1FZ:hover{background:rgba(0,0,0,0.08)}.content--W8hFyMBh{min-width:0;flex:1}.icon--OV3uC006{margin-right:11px}.name--i9JLowqW,\n.metadata--xbNLgFgO{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.name--i9JLowqW{color:rgba(0,0,0,0.88)}.metadata--xbNLgFgO{color:rgba(0,0,0,0.45);font-size:12px;margin-top:3px}",""]),a.locals={files:"files--SBFNeFls",large:"large--M2NOUc4a",file:"file--sJi1z1FZ",content:"content--W8hFyMBh",icon:"icon--OV3uC006",name:"name--i9JLowqW",metadata:"metadata--xbNLgFgO"};const i=a},2098:(e,u,t)=>{t.d(u,{w:()=>s,m:()=>l});var n=t(41030),r=t.n(n);const o=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}][\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D6D}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EAB}\u{10EAC}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F50}\u{10F70}-\u{10F85}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11000}-\u{11046}\u{11066}-\u{11075}\u{1107F}-\u{110BA}\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{1113F}\u{11144}-\u{11147}\u{11150}-\u{11173}\u{11176}\u{11180}-\u{111C4}\u{111C9}-\u{111CC}\u{111CE}-\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{11237}\u{1123E}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D3}\u{113E1}\u{113E2}\u{11400}-\u{1144A}\u{11450}-\u{11459}\u{1145E}-\u{11461}\u{11480}-\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115C0}\u{115D8}-\u{115DD}\u{11600}-\u{11640}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116B8}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11739}\u{11740}-\u{11746}\u{11800}-\u{1183A}\u{118A0}-\u{118E9}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11943}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E1}\u{119E3}\u{119E4}\u{11A00}-\u{11A3E}\u{11A47}\u{11A50}-\u{11A99}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C40}\u{11C50}-\u{11C59}\u{11C72}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF6}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F50}-\u{11F5A}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF4}\u{16B00}-\u{16B36}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16D70}-\u{16D79}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9D}\u{1BC9E}\u{1CCF0}-\u{1CCF9}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8D0}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0100}-\u{E01EF}]*$/u;function a(e){const u=String(e);return o.test(u)?`.${u}`:`[${JSON.stringify(u)}]`}const{pick:i}=r();function s(e,u,t){return l(e,a(u),t)}function l(e,u,t){let n;switch(e.display){case"link":case"text":n=d(e,u,t),"struct-list"!==e.type||e.countOnly?"link"===e.display&&(n={brick:"eo-link",children:[n]}):n={brick:"eo-tag",children:[n]};break;case"tag":{var r,o,a,i,s;const t="background"===(null===(r=e.style)||void 0===r?void 0:r.variant)?"-inverse":"",l=p(e,u);n={brick:"eo-tag",properties:{textContent:`<% ${l} %>`,size:m(null===(o=e.style)||void 0===o?void 0:o.size),color:null!==(a=e.style)&&void 0!==a&&a.background?`${e.style.background}${t}`:null!==(i=e.style)&&void 0!==i&&i.palette?`<%\n \`\${new Map(Object.entries(${JSON.stringify(e.style.palette,null,2).replaceAll("\n","\n ")})).get(${l}) ?? "gray"}${t}\`\n%>`:`gray${t}`,outline:"outline"===(null===(s=e.style)||void 0===s?void 0:s.variant)}};break}case"icon":n=c(e,u,t);break;case"icon+text":n={brick:"span",properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[c(e,u,t),d(e,u,t)]};break;default:return null}if("struct-list"!==e.type||e.countOnly)return n;const l=Number(e.maxItems)||3;return{brick:"span",properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[{brick:":forEach",dataSource:`<% DATA${u}.slice(0, ${l}) %>`,children:[n]},{brick:"eo-link",if:`<% DATA${u}.length > ${l} %>`,properties:{textContent:`<% \`+ \${DATA${u}.length - ${l}}\` %>`}}]}}function c(e,u,t){if("boolean"===e.type){var n,r,o,a,i,s;const l=p(e,u),c=null!==(n=null===(r=e.true)||void 0===r?void 0:r.icon)&&void 0!==n?n:"check",d=null!==(o=null===(a=e.false)||void 0===a?void 0:a.icon)&&void 0!==o?o:"xmark",m=E(null===(i=e.true)||void 0===i?void 0:i.style,t),A=E(null===(s=e.false)||void 0===s?void 0:s.style,t);return{brick:"eo-icon",properties:{lib:"fa",prefix:"fas",icon:`<% ${l} ? ${JSON.stringify(c)} : ${JSON.stringify(d)} %>`,style:`<% ${l} ? ${JSON.stringify(m)} : ${JSON.stringify(A)} %>`}}}if("json"===e.type){const n=p(e,u);return{brick:"eo-icon",properties:{lib:`<% ${n}?.lib %>`,prefix:`<% ${n}?.prefix %>`,category:`<% ${n}?.category %>`,theme:`<% ${n}?.theme %>`,icon:`<% ${n}?.icon %>`,style:E(e.style,t)}}}return{brick:"eo-icon",properties:{lib:"fa",prefix:"fas",icon:e.icon,style:E(e.style,t)}}}function d(e,u,t){var n;if("struct-list"===e.type&&e.countOnly)return{brick:"span",properties:{textContent:`<% \`\${DATA${u}.length}\` %>`}};const r=p(e,u),o=`<% ${r} %>`;switch(null===(n=e.formatter)||void 0===n?void 0:n.type){case"number":return{brick:"eo-formatter-number",properties:{value:o,type:e.formatter.format,...i(e.formatter,["currency","originalUnit","decimals","thousandsSeparator"]),style:E(e.style,t)}};case"date":case"date-time":return{brick:"eo-humanize-time",properties:{value:o,type:"date"===e.type?"date":void 0,formatter:e.formatter.format,style:E(e.style,t)}};case"cost-time":return{brick:"eo-humanize-time",properties:{value:o,isCostTime:!0,style:E(e.style,t)}};default:{let u,n,i="span";if("boolean"===e.type){var a,s,l,c,d,m;const o=null!==(a=null===(s=e.true)||void 0===s?void 0:s.text)&&void 0!==a?a:"Yes",i=null!==(l=null===(c=e.false)||void 0===c?void 0:c.text)&&void 0!==l?l:"No",p=E(null===(d=e.true)||void 0===d?void 0:d.style,t),A=E(null===(m=e.false)||void 0===m?void 0:m.style,t);u=`<% ${r} ? ${JSON.stringify(o)} : ${JSON.stringify(i)} %>`,n=`<% ${r} ? ${JSON.stringify(p)} : ${JSON.stringify(A)} %>`}else n=E(e.style,t),"json"===e.type?"link"===e.display?u='<% I18N("VIEW", "查看") %>':(i="pre",u=`<% PIPES.jsonStringify(${r}) %>`):u=o;return{brick:i,properties:{textContent:u,style:n}}}}}function p(e,u){return"struct"!==e.type&&"struct-list"!==e.type||!e.field?`DATA${u}`:`${"struct"===e.type?`DATA${u}`:"ITEM"}${a(e.field)}`}function m(e){switch(e){case"large":case"medium":case"small":return e;case"x-large":return"large"}}function E(e,u){if(!e||null!=u&&u.ignoreStyle)return;const t={};switch(e.size){case"small":t.fontSize="var(--sub-title-font-size-small)";break;case"medium":t.fontSize="var(--normal-font-size)";break;case"large":t.fontSize="var(--card-title-font-size)";break;case"x-large":t.fontSize="var(--title-font-size-larger)"}switch(e.fontWeight){case"bold":case"normal":t.fontWeight=e.fontWeight}return e.color&&(t.color=e.color),t}},2460:(e,u,t)=>{t.d(u,{I:()=>a,K:()=>r,NS:()=>o,t:()=>i});var n=t(90079);let r=function(e){return e.YES="YES",e.NO="NO",e.CONFIRM="CONFIRM",e.ADD_STEP="ADD_STEP",e.RESET_PLAN="RESET_PLAN",e.PLAN_COMPLETED="PLAN_COMPLETED",e.TASK_COMPLETED="TASK_COMPLETED",e.SHARE="SHARE",e.TYPE_YOUR_MESSAGE_HERE="TYPE_YOUR_MESSAGE_HERE",e.ARGUMENTS="ARGUMENTS",e.PROCESS="PROCESS",e.RESPONSE="RESPONSE",e.CONFIRMING_PLAN_TIPS="CONFIRMING_PLAN_TIPS",e.PAUSE_THE_TASK="PAUSE_THE_TASK",e.RESUME_THE_TASK="RESUME_THE_TASK",e.CANCEL_THE_TASK="CANCEL_THE_TASK",e.CONFIRM_TO_CANCEL_THE_TASK_TITLE="CONFIRM_TO_CANCEL_THE_TASK_TITLE",e.CONFIRM_TO_CANCEL_THE_TASK_CONTENT="CONFIRM_TO_CANCEL_THE_TASK_CONTENT",e.BACK_TO_CENTER="BACK_TO_CENTER",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.FULLSCREEN="FULLSCREEN",e.REPLAYING="REPLAYING",e.REPLAY_COMPLETED="REPLAY_COMPLETED",e.SKIP_TO_RESULTS="SKIP_TO_RESULTS",e.WATCH_AGAIN="WATCH_AGAIN",e.SEND_MESSAGE="SEND_MESSAGE",e.UNTITLED="UNTITLED",e.FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX="FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX",e.FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX="FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX",e.DOWNLOAD="DOWNLOAD",e.cmdb_create_app_system="cmdb_create_app_system",e.cmdb_create_service_set="cmdb_create_service_set",e.cmdb_append_host_to_service_set="cmdb_append_host_to_service_set",e.cmdb_create_agent_scan_job="cmdb_create_agent_scan_job",e.cmdb_service_node_clustering="cmdb_service_node_clustering",e.ask_human="ask_human",e.ask_human_confirming_plan="ask_human_confirming_plan",e}({});const o="bricks/ai-portal/cruise-canvas",a={en:{YES:"Yes",NO:"No",CONFIRM:"Confirm",ADD_STEP:"Add step",RESET_PLAN:"Reset plan",PLAN_COMPLETED:"All jobs done",TASK_COMPLETED:"Task completed",SHARE:"Share",TYPE_YOUR_MESSAGE_HERE:"Type your message here",ARGUMENTS:"Arguments",PROCESS:"Process",RESPONSE:"Response",CONFIRMING_PLAN_TIPS:"According to your request, I have made the following plan:",PAUSE_THE_TASK:"Pause the task",RESUME_THE_TASK:"Resume the task",CANCEL_THE_TASK:"Cancel the task",CONFIRM_TO_CANCEL_THE_TASK_TITLE:"Are you sure to cancel the task?",CONFIRM_TO_CANCEL_THE_TASK_CONTENT:"The task can not be resumed after been canceled.",BACK_TO_CENTER:"Back to center",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",FULLSCREEN:"Fullscreen",REPLAYING:"Task is replaying...",REPLAY_COMPLETED:"Task replay completed.",SKIP_TO_RESULTS:"Skip to results",WATCH_AGAIN:"Watch again",SEND_MESSAGE:"Send message",UNTITLED:"Untitled",FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX:"This file is unpreviewable currently, you can",FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX:"and view it locally.",DOWNLOAD:"Download",cmdb_create_app_system:"Create app system",cmdb_create_service_set:"Create service set",cmdb_append_host_to_service_set:"Append host to service set",cmdb_create_agent_scan_job:"Create agent scan job",cmdb_service_node_clustering:"Service node clustering",ask_human:"Ask user",ask_human_confirming_plan:"Ask user to confirm the plan"},zh:{YES:"是",NO:"否",CONFIRM:"确认",ADD_STEP:"添加步骤",RESET_PLAN:"重置计划",PLAN_COMPLETED:"所有任务已全部完成",TASK_COMPLETED:"任务完成",SHARE:"分享",TYPE_YOUR_MESSAGE_HERE:"在这里输入信息",ARGUMENTS:"参数",PROCESS:"过程",RESPONSE:"响应",CONFIRMING_PLAN_TIPS:"根据你的需求,我已制定如下计划:",PAUSE_THE_TASK:"暂停任务",RESUME_THE_TASK:"恢复任务",CANCEL_THE_TASK:"取消任务",CONFIRM_TO_CANCEL_THE_TASK_TITLE:"确定取消任务吗?",CONFIRM_TO_CANCEL_THE_TASK_CONTENT:"任务取消后将无法再恢复运行。",BACK_TO_CENTER:"回中",ZOOM_IN:"放大",ZOOM_OUT:"缩小",FULLSCREEN:"全屏",REPLAYING:"任务正在回放中...",REPLAY_COMPLETED:"任务回放完成。",SKIP_TO_RESULTS:"跳转到结果",WATCH_AGAIN:"重新观看",SEND_MESSAGE:"发送消息",UNTITLED:"未命名",FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX:"该类型文件暂不支持预览,您可以",FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX:"查看。",DOWNLOAD:"下载",cmdb_create_app_system:"创建应用系统",cmdb_create_service_set:"创建服务集",cmdb_append_host_to_service_set:"将主机添加到服务集",cmdb_create_agent_scan_job:"创建 agent 扫描任务",cmdb_service_node_clustering:"服务节点聚类",ask_human:"询问用户",ask_human_confirming_plan:"询问用户确认计划"}},i=n.i18n.getFixedT(null,o)},3921:(e,u,t)=>{e.exports=t.p+"images/f85dd9e6.png"},4833:(e,u,t)=>{t.d(u,{W:()=>v});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(72591),s=t.n(i),l=t(1740),c=t.n(l),d=t(88128),p=t.n(d),m=t(30855),E=t.n(m),A=t(93051),f=t.n(A),g=t(73656),F=t.n(g),D=t(67993),C={};C.styleTagTransform=F(),C.setAttributes=E(),C.insert=p().bind(null,"head"),C.domAPI=c(),C.insertStyleElement=f(),s()(D.A,C);const b=D.A&&D.A.locals?D.A.locals:void 0;function v(e){let{progress:u,failed:t}=e;const n=u.data;return r().createElement("div",{className:a()(b["progress-line"],{[b.failed]:t})},r().createElement("div",{className:a()(b.step),key:n.progress},r().createElement("div",{className:b.axis},r().createElement("div",{className:b.line}),r().createElement("div",{className:b.dot})),r().createElement("div",{className:b.progress},r().createElement("span",{className:b.count},n.progress),r().createElement("span",null,"/"),r().createElement("span",{className:b.total},n.total)),r().createElement("div",{className:b.description},n.message)))}},5543:(e,u,t)=>{t.d(u,{x:()=>o});var n=t(8406);const r=new Map;async function o(e){if(r.has(e))return r.get(e);const u=async function(e){const{list:u}=await(0,n.y)("MODEL_OBJECT",{fields:["instanceId"],query:{objectId:{$eq:e}},page_size:1});return null!=u&&u.length?u[0].instanceId:null}(e);return r.set(e,u),u}},7017:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".container--nviLvTo4{position:absolute;right:0;top:72px;bottom:72px;padding:48px 0;overflow-y:auto;scrollbar-width:none}.nav--lm9zwHhG{list-style:none;margin:0;padding:20px 0;background:rgba(255,255,255,0);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.container--nviLvTo4,\n.nav--lm9zwHhG{border-radius:8px 0px 0px 8px}.link--sJDeRfjL{display:flex;align-items:center;width:170px;height:36px;border-radius:18px 0 0 18px;padding:0 24px 0 16px;font-size:13px}.link--sJDeRfjL,\n.link--sJDeRfjL:hover{color:rgba(93,105,126,0.7)}.link--sJDeRfjL.disabled--UpGab11N{cursor:default}.item--B4GvcxMx:not(:first-child){margin-top:12px}.icon--YLvYVRdC{margin-right:12px;font-size:14px;color:#abaab7}.text--PwKz_ODc{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link--sJDeRfjL:not(.disabled--UpGab11N):hover,\n.item--B4GvcxMx.active--DwuLIQY_ .link--sJDeRfjL{background-color:rgba(255,255,255,0.2)}.item--B4GvcxMx.active--DwuLIQY_ .link--sJDeRfjL{font-size:14px;color:#424a58;padding-right:16px}.completed--ZPZ8DEeN .icon--YLvYVRdC{color:#0fbe59}.failed--dxvB8UKT .icon--YLvYVRdC{color:#f24c25}.working--IbqFvpPm .icon--YLvYVRdC{color:var(--elevo-color-brand)}.input-required--zcO5ZufK .icon--YLvYVRdC{color:#12aacc}.canceled--GqvLm_YF .icon--YLvYVRdC{color:#fcaa07}@media (max-height: 639px){.container--nviLvTo4{padding:0}}@media (max-width: 719px){.container--nviLvTo4{display:none}}",""]),a.locals={container:"container--nviLvTo4",nav:"nav--lm9zwHhG",link:"link--sJDeRfjL",disabled:"disabled--UpGab11N",item:"item--B4GvcxMx",icon:"icon--YLvYVRdC",text:"text--PwKz_ODc",active:"active--DwuLIQY_",completed:"completed--ZPZ8DEeN",failed:"failed--dxvB8UKT",working:"working--IbqFvpPm","input-required":"input-required--zcO5ZufK",canceled:"canceled--GqvLm_YF"};const i=a},16854:(e,u,t)=>{var n,r,o;t.d(u,{Bf:()=>g,CO:()=>A,DE:()=>c,GT:()=>f,Jw:()=>l,LQ:()=>b,QB:()=>F,RV:()=>d,U5:()=>s,X4:()=>D,Xc:()=>v,Yt:()=>i,bL:()=>E,kq:()=>p,sS:()=>a,vL:()=>C,xX:()=>m});const a=.5,i=2,s="<START>",l="<END>",c="<REQUIREMENT>",d=20,p=20,m=122,E=160,A=40,f=42,g=10,F=["completed","failed","canceled"],D=[...F,"paused"],C=/mac/i.test(null!==(n=null!==(r=null===(o=navigator.userAgentData)||void 0===o?void 0:o.platform)&&void 0!==r?r:navigator.platform)&&void 0!==n?n:navigator.userAgent),b={lib:"antd",icon:"close"},v={lib:"antd",icon:"loading-3-quarters",spinning:!0}},21073:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".topology--H9SWG_Xt{color:#666;position:relative}.topology--H9SWG_Xt:not(.auto-size--We2YyP9m) eo-display-canvas{height:500px}.toolbar--l7OnuKQT{right:20px;bottom:20px}.topology--H9SWG_Xt:not(:hover) .toolbar--l7OnuKQT{display:none}",""]),a.locals={topology:"topology--H9SWG_Xt","auto-size":"auto-size--We2YyP9m",toolbar:"toolbar--l7OnuKQT"};const i=a},24388:(e,u,t)=>{t.d(u,{O:()=>k});var n=t(18769),r=t.n(n),o=t(11280),a=t(29384),i=t(21302),s=t.n(i),l=t(53373),c=t.n(l),d=t(72591),p=t.n(d),m=t(1740),E=t.n(m),A=t(88128),f=t.n(A),g=t(30855),F=t.n(g),D=t(93051),C=t.n(D),b=t(73656),v=t.n(b),h=t(36137),B={};B.styleTagTransform=v(),B.setAttributes=F(),B.insert=f().bind(null,"head"),B.domAPI=E(),B.insertStyleElement=C(),p()(h.A,B);const x=h.A&&h.A.locals?h.A.locals:void 0,y=(0,o.wrapBrick)("eo-easyops-avatar");function k(e){let{content:u,startTime:t,loading:o,active:i}=e;const l=(0,n.useMemo)((()=>a.auth.getAuth().username),[]);return r().createElement("div",{className:c()(x["node-requirement"],{[x.active]:i})},r().createElement("div",{className:x.heading},r().createElement(y,{className:x.avatar,nameOrInstanceId:l,showName:!0,size:"xs"}),r().createElement("div",{className:x.time},t&&s()(1e3*t).format("MM-DD HH:mm"))),r().createElement("div",{className:x.body},u),o&&r().createElement(r().Fragment,null,r().createElement("svg",{className:x["loading-line"],viewBox:"0 0 2 62",width:"2",height:"62"},r().createElement("path",{d:"M1 0 L1 62"})),r().createElement("div",{className:x.loading},r().createElement("div",{className:x.inner}))))}},27110:(e,u,t)=>{t.d(u,{A:()=>p});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o),i=t(20062),s=t.n(i),l=new URL(t(3921),t.b),c=a()(r()),d=s()(l);c.push([e.id,`ai-portal\\.cruise-canvas{display:block;position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;--cruise-canvas-node-border:1px solid gray;--cruise-canvas-node-width-small:330px;--cruise-canvas-node-width-medium:453px;--cruise-canvas-node-width-large:800px;--cruise-canvas-primary-color:var(--elevo-color-brand);--cruise-canvas-input-background:rgba(255,255,255,0.8);--cruise-canvas-input-box-shadow:0px 1px 0px 0px #ffffff,inset 0px 2px 4px 0px #b3bcf9}.root--z6jdb_BU{width:100%;height:100%;position:relative}.widgets--r6lUPOu2{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;-webkit-user-select:none;user-select:none}.root--z6jdb_BU.loading--m5r507Hp .canvas--u6C26uH_,\n.root--z6jdb_BU.loading--m5r507Hp + .widgets--r6lUPOu2{visibility:hidden}.loading-icon--UkRBMlBy{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff}.widgets--r6lUPOu2 > *{pointer-events:auto;-webkit-user-select:text;user-select:text}.canvas--u6C26uH_,\n.edges--uNPQGWZg{width:100%;height:100%;position:absolute;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}.node--IBGywwp4{position:absolute;-webkit-user-select:text;user-select:text;cursor:auto}.node--IBGywwp4:not(.ready--pmh440go),\n.canvas--u6C26uH_:not(.ready--pmh440go) > .edges--uNPQGWZg{visibility:hidden}svg.edges--uNPQGWZg{pointer-events:none;overflow:visible}.edge--muRUWYG1{fill:none;stroke-width:2px;stroke:rgba(255,255,255,0.6);stroke-dasharray:5,5}.go-back--myNmSpSv{position:absolute;top:20px;left:20px}.go-back--myNmSpSv::part(link){width:32px;height:32px;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,0.7);box-shadow:0px 3px 14px 0px rgba(0,0,0,0.1),0px 1px 4px 0px rgba(0,0,0,0.06);border-radius:8px;border:1px solid rgba(255,255,255,0.3);color:inherit;box-sizing:border-box}.go-back--myNmSpSv::part(link):hover{background:rgba(255,255,255,0.5)}.go-back--myNmSpSv::part(link):active{background:rgba(255,255,255,0.3)}`,""]),c.locals={root:"root--z6jdb_BU",widgets:"widgets--r6lUPOu2",loading:"loading--m5r507Hp",canvas:"canvas--u6C26uH_","loading-icon":"loading-icon--UkRBMlBy",edges:"edges--uNPQGWZg",node:"node--IBGywwp4",ready:"ready--pmh440go",edge:"edge--muRUWYG1","go-back":"go-back--myNmSpSv"};const p=c},27954:(e,u,t)=>{t.d(u,{H:()=>C});var n=t(18769),r=t.n(n),o=t(72591),a=t.n(o),i=t(1740),s=t.n(i),l=t(88128),c=t.n(l),d=t(30855),p=t.n(d),m=t(93051),E=t.n(m),A=t(73656),f=t.n(A),g=t(58905),F={};F.styleTagTransform=f(),F.setAttributes=p(),F.insert=c().bind(null,"head"),F.domAPI=s(),F.insertStyleElement=E(),a()(g.A,F);const D=g.A&&g.A.locals?g.A.locals:void 0;function C(){return r().createElement("div",{className:D["node-start"]},r().createElement("div",{className:D.icon}))}},28599:(e,u,t)=>{function n(e){const u=document.createElement("div");return u.dataset.rootId=e,u.style.position="absolute",u.style.width=u.style.height="0",document.body.append(u),u}t.d(u,{d:()=>n})},29443:(e,u,t)=>{t.d(u,{A:()=>g});var n=t(72591),r=t.n(n),o=t(1740),a=t.n(o),i=t(88128),s=t.n(i),l=t(30855),c=t.n(l),d=t(93051),p=t.n(d),m=t(73656),E=t.n(m),A=t(57617),f={};f.styleTagTransform=E(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(A.A,f);const g=A.A&&A.A.locals?A.A.locals:void 0},30841:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".container--ldxobUbg{position:absolute;bottom:28px;left:50%;transform:translate(-50%,0);width:var(--cruise-canvas-node-width-large);max-width:80%;background:linear-gradient(338deg,rgba(198,183,247,1),rgba(157,198,255,1),rgba(153,196,255,1));box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05),0px 6px 16px 0px rgba(0,0,0,0.08),0px 3px 6px -4px rgba(0,0,0,0.12);border-radius:12px;padding:2px;cursor:text}.container--ldxobUbg:has(textarea:focus){background:linear-gradient(338deg,rgba(160,133,249,1),rgba(101,162,246,1),rgba(120,145,255,1))}.box--V5uisReO{display:flex;flex-wrap:wrap;background-color:#fff;border-radius:10px;padding:8px}.input--YXfZsRMa{min-width:0;flex:1}.wrap--K0vzc4Yz .input--YXfZsRMa{flex-basis:100%}textarea{display:block;width:100%;padding:8px;font-size:16px;line-height:24px;color:var(--antd-input-color);border:none;background:none;height:24px;color:#262626}textarea::placeholder{color:#bfbfbf}.toolbar--wGF9nqsH{padding:5px 0 5px 8px;margin-left:auto;display:flex;align-items:center;gap:2px}.btn-send--KxpUPEDG:focus,\ntextarea:focus{outline:none}.btn-send--KxpUPEDG{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff}.btn-send--KxpUPEDG:disabled{background:rgba(0,0,0,0.15)}.btn-send--KxpUPEDG:not(:disabled){cursor:pointer}.btn-send--KxpUPEDG:not(:disabled):hover{background:#5166ff}.btn-send--KxpUPEDG:not(:disabled):active{background:#1e33cc}",""]),a.locals={container:"container--ldxobUbg",box:"box--V5uisReO",input:"input--YXfZsRMa",wrap:"wrap--K0vzc4Yz",toolbar:"toolbar--wGF9nqsH","btn-send":"btn-send--KxpUPEDG"};const i=a},32145:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".container--SpNrjJaH{position:absolute;bottom:28px;left:50%;transform:translate(-50%,0);width:var(--cruise-canvas-node-width-large);max-width:80%;background:linear-gradient(338deg,rgba(198,183,247,1),rgba(157,198,255,1),rgba(153,196,255,1));box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05),0px 6px 16px 0px rgba(0,0,0,0.08),0px 3px 6px -4px rgba(0,0,0,0.12);border-radius:12px;padding:2px}.replay--Bm8ZxK4f{display:flex;align-items:center;background-color:#fff;border-radius:10px;height:50px;padding:0 16px}.text--gb_KCMex{min-width:0;flex:1;font-size:16px}.button--TR2LgpD_{margin-left:4px}",""]),a.locals={container:"container--SpNrjJaH",replay:"replay--Bm8ZxK4f",text:"text--gb_KCMex",button:"button--TR2LgpD_"};const i=a},32464:(e,u,t)=>{t.d(u,{A:()=>g});var n=t(72591),r=t.n(n),o=t(1740),a=t.n(o),i=t(88128),s=t.n(i),l=t(30855),c=t.n(l),d=t(93051),p=t.n(d),m=t(73656),E=t.n(m),A=t(27110),f={};f.styleTagTransform=E(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(A.A,f);const g=A.A&&A.A.locals?A.A.locals:void 0},34999:(e,u,t)=>{t.d(u,{l:()=>y});var n=t(18769),r=t.n(n),o=t(72591),a=t.n(o),i=t(1740),s=t.n(i),l=t(88128),c=t.n(l),d=t(30855),p=t.n(d),m=t(93051),E=t.n(m),A=t(73656),f=t.n(A),g=t(83865),F={};F.styleTagTransform=f(),F.setAttributes=p(),F.insert=c().bind(null,"head"),F.domAPI=s(),F.insertStyleElement=E(),a()(g.A,F);const D=g.A&&g.A.locals?g.A.locals:void 0;var C=t(86767),b=t(55805),v=t(2460);const h={lib:"easyops",icon:"back-to-center"},B={lib:"antd",icon:"minus-circle"},x={lib:"antd",icon:"plus-circle"};function y(e){let{scale:u,onScaleChange:t,onReCenter:o}=e;const a=(0,n.useCallback)((()=>{null==t||t(u+.1)}),[t,u]),i=(0,n.useCallback)((()=>{null==t||t(u-.1)}),[t,u]);return r().createElement("div",{className:`${C.A.toolbar} ${D["zoom-bar"]}`},r().createElement(b.Py,{variant:"mini",icon:h,onClick:o,title:(0,v.t)(v.K.BACK_TO_CENTER)}),r().createElement("div",{className:C.A.divider}),r().createElement(b.Py,{variant:"mini",icon:B,onClick:i,title:(0,v.t)(v.K.ZOOM_OUT)}),r().createElement(b.Py,{variant:"mini",icon:x,onClick:a,title:(0,v.t)(v.K.ZOOM_IN)}))}},36137:(e,u,t)=>{t.d(u,{A:()=>p});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o),i=t(20062),s=t.n(i),l=new URL(t(91776),t.b),c=a()(r()),d=s()(l);c.push([e.id,`.node-requirement--aVjY3LFY{width:var(--cruise-canvas-node-width-medium);max-width:90vw;background-color:rgba(255,255,255,0.4);background-image:url(${d});background-position:center bottom;background-size:var(--cruise-canvas-node-width-medium) 128px;background-repeat:no-repeat;box-shadow:0px 4px 10px 0px rgba(54,64,80,0.18);border-radius:12px;-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);border:1px solid rgba(255,255,255,0.4);padding:8px;white-space:pre-wrap;position:relative}.node-requirement--aVjY3LFY.active--aEZLkOZe{border-color:#a1b5ff}.heading--F8b1aIJT{display:flex;align-items:center;margin-bottom:11px;font-size:13px}.avatar--BbtS9D46{flex:1;min-width:0}.avatar--BbtS9D46::part(avatar){border:1px solid #fff}.time--IRwoiblW{color:#8c8c8c}.body--JYv_r9n_{background:#f1f6ff;box-shadow:0px 1px 0px 0px #ffffff;border-radius:9px;padding:15px 10px;overflow-wrap:break-word}.loading-line--xDrsXoxu{position:absolute;bottom:-62px;left:50%;transform:translate(-50%,0)}.loading-line--xDrsXoxu path{fill:none;stroke-width:2px;stroke:rgba(255,255,255,0.6);stroke-dasharray:5,5}.loading--yZvyv4wE{position:absolute;bottom:-74px;left:50%;transform:translate(-50%,0);width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:rgba(69,94,255,0.5);border-radius:24px;animation:loading--yZvyv4wE 1s infinite linear}.inner--voOHXPcc{width:12px;height:12px;background:rgb(69,94,255);border-radius:12px}@keyframes loading--yZvyv4wE{0%{transform:translate(-50%,0) scale(1);opacity:1}100%{transform:translate(-50%,0) scale(1.5);opacity:0}}`,""]),c.locals={"node-requirement":"node-requirement--aVjY3LFY",active:"active--aEZLkOZe",heading:"heading--F8b1aIJT",avatar:"avatar--BbtS9D46",time:"time--IRwoiblW",body:"body--JYv_r9n_","loading-line":"loading-line--xDrsXoxu",loading:"loading--yZvyv4wE",inner:"inner--voOHXPcc"};const p=c},36404:(e,u,t)=>{t.d(u,{z:()=>f});var n=t(58377),r=t(37912),o=t(2098),a=t(65971),i=t(10102);function s(e,u,t){let n;if(null!=e&&e.size&&null!=u&&u.length){const r=new Map;for(const e of u)e.api.objectId&&r.set(e.name,e.api.objectId);const o=new Map;for(const e of null!=t?t:[]){const u=(0,i.strictCollectMemberUsage)(e.value,"CTX");o.set(e.name,u)}const a=new Set,s=e=>{if(a.has(e))return!1;a.add(e);const u=r.get(e);if(u)return n=u,!0;const t=o.get(e);for(const e of null!=t?t:[])if(s(e))return!0;return!1};for(const u of e)if(s(u))break}return n}async function l(e,u,t){let{properties:n}=e;const{data:i,title:l,columns:c,list:d,...p}=n,m=(0,r.jV)(i),E=s(m.usedContexts,u.dataSources,u.variables),A=E?await(0,a.Q)(E):void 0,f=new Map;if(null!=A&&A.size)for(const e of d)if(e.field){const u=A.get(e.field);if(u){const t=(0,o.w)(u,e.field);t&&(t.slot=`[${e.field}]`,f.set(e.field,t))}}return{brick:"eo-descriptions",properties:{...p,dataSource:m.isString?m.embedded:i,list:d.map((e=>(e.field?f.get(e.field):void 0)?{label:e.label,useChildren:`[${e.field}]`}:e)),column:t.expanded?3:1,themeVariant:"elevo"},children:f.size>0?Array.from(f.values()):[]}}var c=t(56609);const d=["#336EF4","#45CAFF","#41CDCF","#8146F3","#F8A075","#94E65E","#57689C","#C285EF","#FAC60B","#E4551F","#8984FF","#2540FF","#08BF33","#F7811C","#AC7CFF","#1BA5DC","#E89716","#76A6F5","#4F69FF"];function p(e,u){const t=e.slice(1),n=parseInt(t,16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, ${u})`}async function m(e,u,t){var n;const{properties:i}=e,{data:l,size:c,columns:d,rowKey:p,pagination:m,...E}=i,A=(0,r.jV)(l),f=s(A.usedContexts,u.dataSources,u.variables),g=f?await(0,a.Q)(f):void 0,F=new Map;if(null!=g&&g.size)for(const e of d){const u=g.get(e.dataIndex);if(u){const t=(0,o.m)(u,".cellData");t&&(t.slot=`[${e.dataIndex}]`,F.set(e.dataIndex,t))}}return{brick:"eo-next-table",properties:{dataSource:A.isString?A.embedded:l,...E,rowKey:null!=p?p:null===(n=d[0])||void 0===n?void 0:n.key,columns:d.map((e=>F.get(e.dataIndex)?{...e,useChildren:`[${e.dataIndex}]`}:e)),themeVariant:"elevo",scrollConfig:{x:"max-content"},...t.expanded?{bordered:!0,pagination:m,size:"large"}:{size:"middle",pagination:!1}},children:F.size>0?Array.from(F.values()):[]}}function E(e,u,t){switch(null==e?void 0:e.action){case"update_variable":return{action:"context.replace",args:[e.payload.name,Object.prototype.hasOwnProperty.call(e.payload,"value")?e.payload.value:null!=t?t:"<% EVENT.detail %>"]};case"refresh_data_source":return{action:"context.refresh",args:[e.payload.name]};case"call_api":{var n;const{api:t,params:r}=e.payload,o=null!==(n=e.callback)&&void 0!==n&&n.success?[].concat(e.callback.success).map((e=>E(e,u))).filter(Boolean):void 0;return{useProvider:`${t.name}:${t.version}`,params:r,callback:{success:null!=o&&o.length?o:void 0,error:{action:"handleHttpError"}}}}case"call_component":return{target:`[data-root-id="${u.rootId}"] [data-component-id="${e.payload.componentId}"]`,method:e.payload.method,args:e.payload.args};case"show_message":return{action:`message.${e.payload.type}`,args:[e.payload.content]}}}var A=t(52810);async function f(e,u){var t,o;if(!e)return null;const a=new Map,i=new Map,f=[],g=new Set;for(const u of e.components)if(a.set(u.componentId,u),u.parentComponentId){let e=i.get(u.parentComponentId);e||(e=[],i.set(u.parentComponentId,e)),e.push(u)}else f.push(u);const F=async t=>{var n,o,a,A,f;if(g.has(t.componentId))throw new Error(`Component ${t.componentId} has been converted already, it indicates a circular component tree.`);g.add(t.componentId);let D=null;switch(t.componentName){case"list":D=await function(e){let{properties:u}=e;const t=u,{data:n,fields:o,variant:a}=t,i=(0,r.jV)(n);return{brick:"eo-list",properties:{variant:a,dataSource:i.isString?i.embedded:n,fields:o,themeVariant:"elevo"}}}(t);break;case"table":D=await m(t,e,u);break;case"descriptions":D=await l(t,e,u);break;case"dashboard":D=await async function(e,u,t){let{properties:n}=e;const{dataSource:o,groupField:a,widgets:i}=n,l=a?"#showKey":void 0,{isString:m,expression:E,usedContexts:A}=(0,r.jV)(o),f=m?`<%= CTX.__builtin_fn_extractList((${E})) %>`:o;if(t.expanded){let e=i;const t=s(A,u.dataSources,u.variables),n=t?await(0,c.H)(t):[];if(n.length>0){e=[];const u=new Set,t=new Set(i.map((e=>e.metric.id)));for(const r of i){if(u.has(r.metric.id))continue;const o={...r};e.push(o);const a=n.find((e=>e.metrics.includes(r.metric.id)));if(a){const e=a.metrics.filter((e=>t.has(e)));if(e.length>1){o.relevantMetrics=e,o.counterMetric=a.counter,o.groupTitle=a.group;for(const n of e)u.add(n),t.delete(n)}}}}let r=0;return{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(500px, 1fr))",gap:"16px"}},children:e.map((e=>{var u,t;const{title:n,metric:o,size:a,precision:i,min:s,max:c}=e,m=null!==(u=null===(t=e.relevantMetrics)||void 0===t?void 0:t.length)&&void 0!==u?u:l?2:1,A=Array.from({length:m},((e,u)=>d[(r+u)%d.length]));r+=m;const g="load"===o.unit?"":o.unit,F={brick:"chart-v2.time-series-chart",properties:{data:f,xField:"time",...e.relevantMetrics?{yFields:`<% CTX.__builtin_fn_getMetricDisplayNames((${E}).displayNameList, ${JSON.stringify(e.relevantMetrics)}) %>`}:{yField:`<% CTX.__builtin_fn_getMetricDisplayNames((${E}).displayNameList, [${JSON.stringify(o.id)}])[0] %>`},...e.counterMetric?{forceAbsoluteNumbers:!0,series:{[e.counterMetric]:{isNegative:!0}}}:null,height:"large"===a?230:200,timeFormat:"HH:mm",...e.relevantMetrics||l?null:{areaOptions:{style:{fill:`l(90) 0:${A[0]} 1:#ffffff`}}},axis:{yAxis:{unit:g,precision:i,...e.counterMetric?null:"percent(1)"===g?{min:0,max:1}:"percent(100)"===g||"%"===g?{min:0,max:100}:{min:s,max:c},shape:"smooth"}},groupField:l,areaShape:"smooth",legends:!(!e.relevantMetrics&&!l),colors:A,tooltip:{marker:{fill:A[0],stroke:"#fff",lineWidth:2,shadowColor:A[0],shadowBlur:8,shadowOffsetX:0,shadowOffsetY:4},domStyles:{"g2-tooltip":{background:[`radial-gradient( farthest-corner at -20px 150px, ${A[0]} 0%, rgba(238,238,238,0) 60%)`,"linear-gradient( 180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%)"].join(", "),boxShadow:`0px 4px 8px 0px ${p(A[0],.08)}`,borderRadius:"8px",border:"1px solid rgba(255,255,255,1)",backdropFilter:"blur(3px)"}}}}};return{brick:"div",properties:{style:{background:"rgba(255,255,255,0.8)",boxShadow:"0px 2px 4px 0px rgba(0,0,0,0.06)",borderRadius:"8px",padding:"16px 20px 20px"}},children:[{brick:"div",properties:{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"},textContent:e.groupTitle||n||o.id}},F]}}))}}return l?{brick:"div",properties:{style:{display:"flex",flexDirection:"column",gap:"8px"}},children:[{brick:":forEach",dataSource:`<%= CTX.__builtin_fn_groupMetricData(CTX.__builtin_fn_extractList((${E})), ${JSON.stringify(l)}) %>`,children:[{brick:"div",properties:{textContent:"<% `${ITEM.group}:` %>",style:{fontWeight:"500"}}},{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(205px, 1fr))",gap:"10px",marginBottom:"8px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:"<% ITEM.list %>",xField:"time",yField:n.id,lineColor:d[u%d.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue(ITEM.list, ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}]}]}:{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(205px, 1fr))",gap:"10px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:f,xField:"time",yField:n.id,lineColor:d[u%d.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue((${m?`CTX.__builtin_fn_extractList((${E}))`:JSON.stringify(null!=o?o:null)}), ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}}(t,e,u);break;case"button":D=await function(e){const{properties:u}=e;return{brick:"eo-button",properties:{...u,themeVariant:"elevo"}}}(t);break;case"form":D=await function(e){const{properties:u}=e,{values:t}=null!=u?u:{};return{brick:"eo-form",properties:{values:null!=t?t:{},themeVariant:"elevo"}}}(t);break;case"form-item":D=await function(e){const{properties:u}=e,{type:t,...n}=u;let r,o={...n,themeVariant:"elevo"};switch(t){case"search":r="eo-search",o={...o,trim:!0};break;case"input":r="eo-input";break;case"number-input":r="eo-input",o={type:"number",...o};break;case"textarea":r="eo-textarea";break;case"select":r="eo-select";break;case"radio":r="eo-radio";break;case"checkbox":r="eo-checkbox";break;case"switch":r="eo-switch";break;case"date-picker":r="eo-date-picker";break;case"time-picker":r="eo-time-picker";break;default:throw new Error(`Unsupported form item type: ${t}`)}return{brick:r,properties:o}}(t);break;case"flex-layout":D=await{brick:"eo-flex-layout",properties:{gap:"0.5em"}};break;case"modal":D=await function(e){const{properties:u}=e,{title:t,confirmText:n,cancelText:r}=u;return{brick:"eo-modal",portal:!0,properties:{themeVariant:"elevo",modalTitle:t,confirmText:n,cancelText:r,keyboard:!0}}}(t)}if(!D)return null;D.events=function(e,u,t){const n=u.eventListeners.filter((u=>u.componentId===e.componentId)),r={};for(const u of n)switch(e.componentName){case"table":switch(u.event){case"select":{const e=E(u.handler,t);e&&(r["row.select.v2"]=e);break}case"sort":{const e=E(u.handler,t);e&&(r["sort.change"]=e);break}case"paginate":{const e=E(u.handler,t);e&&(r["page.change"]=e);break}}break;case"button":if("click"===u.event){const e=E(u.handler,t);e&&(r.click=e)}break;case"form-item":switch(e.properties.type){case"search":if("search"===u.event){const e=E(u.handler,t);e&&(r.search=e)}break;case"select":if("change"===u.event){const e=E(u.handler,t);e&&(r["change.v2"]=e)}}break;default:{const e=E(u.handler,t);e&&(r[u.event]=e)}}return Object.keys(r).length>0?r:void 0}(t,e,u),null!==(o=(n=D).properties)&&void 0!==o||(n.properties={}),null!==(A=(a=D.properties).dataset)&&void 0!==A||(a.dataset={}),D.properties.dataset.componentId=t.componentId;const C=(await Promise.all((null!==(f=i.get(t.componentId))&&void 0!==f?f:[]).map(F))).filter(Boolean);var b;return C.length>0&&(D.children=[...null!==(b=D.children)&&void 0!==b?b:[],...C]),D},D=[...(b=null!==(t=e.dataSources)&&void 0!==t?t:[],b.map((e=>({name:e.name,resolve:{useProvider:`${e.api.name}:*`,params:e.params,..."easyops.api.data_exchange.olap@Query"===e.api.name?{params:{...e.params,translate:["#showKey"],limit:void 0,limitBy:void 0,order:void 0,displayName:!0}}:e.transform?{transform:{value:e.transform}}:null},track:!0})))),...(C=null!==(o=e.variables)&&void 0!==o?o:[],C.map((e=>{let{name:u,value:t}=e;return{name:u,value:t}}))),{name:"__builtin_fn_getLatestMetricValue",value:function(e,u){var t;let{metric:r,precision:o}=u;const a=null==e||null===(t=e.findLast)||void 0===t||null===(t=t.call(e,(e=>null!=e[r.id])))||void 0===t?void 0:t[r.id],i="load"===r.unit?"":r.unit;return n.pipes.unitFormat(a,i,o).join("")}},{name:"__builtin_fn_extractList",value:function(e){return Array.isArray(e)?e:null==e?void 0:e.list}},{name:"__builtin_fn_groupMetricData",value:function(e,u){if(!e||!Array.isArray(e)||0===e.length)return[];const t=new Map;for(const n of e){const e=n[u];let r=t.get(e);r||t.set(e,r={group:e,list:[]}),r.list.push(n)}return Array.from(t.values())}},{name:"__builtin_fn_getMetricDisplayNames",value:function(e,u){return u.map((u=>{var t,n;return null!==(t=null==e||null===(n=e.find((e=>e.metric_name===u)))||void 0===n?void 0:n.metric_display_name)&&void 0!==t?t:u}))}},{name:"SIZE",value:u.expanded?"medium":"small"}];var C,b;const v=(await Promise.all(f.map(F))).filter(Boolean);return{brick:"eo-content-layout",children:f.every((e=>["form","descriptions","button"].includes(e.componentName)))?[(0,A.i)(v,u)]:v,context:D}}},36494:(e,u,t)=>{t.d(u,{E:()=>a});var n=t(18769),r=t(69445),o=t(16854);function a(e){let{nodes:u,sizeReady:t,zoomer:a,rootRef:i,pushZoomTransition:s}=e;const[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(!1);return(0,n.useEffect)((()=>{const e=i.current;if(t&&e&&!l&&u.length>0){const{x:t,y:n,width:a,height:i}=(0,r.o)(u.map((e=>e.view))),l=t+a,p=n+i,m=(e.clientWidth-(l+t))/2;let E=30;if(d.current){const u=p-n+o.xX-e.clientHeight;E=u>0?-u-n:(e.clientHeight-(p+n))/2}s({transform:{k:1,x:m,y:E},duration:d.current?void 0:0}),c(!0)}d.current=!1}),[l,u,i,t,a,s]),{centered:l,setCentered:c,reCenterRef:d}}},36811:(e,u,t)=>{e.exports=t.p+"images/d4ea5a5c.png"},36903:(e,u,t)=>{t.d(u,{A:()=>g});var n=t(72591),r=t.n(n),o=t(1740),a=t.n(o),i=t(88128),s=t.n(i),l=t(30855),c=t.n(l),d=t(93051),p=t.n(d),m=t(73656),E=t.n(m),A=t(91525),f={};f.styleTagTransform=E(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(A.A,f);const g=A.A&&A.A.locals?A.A.locals:void 0},37912:(e,u,t)=>{t.d(u,{jV:()=>i});var n=t(10102);const r=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}][\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D6D}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EAB}\u{10EAC}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F50}\u{10F70}-\u{10F85}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11000}-\u{11046}\u{11066}-\u{11075}\u{1107F}-\u{110BA}\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{1113F}\u{11144}-\u{11147}\u{11150}-\u{11173}\u{11176}\u{11180}-\u{111C4}\u{111C9}-\u{111CC}\u{111CE}-\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{11237}\u{1123E}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D3}\u{113E1}\u{113E2}\u{11400}-\u{1144A}\u{11450}-\u{11459}\u{1145E}-\u{11461}\u{11480}-\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115C0}\u{115D8}-\u{115DD}\u{11600}-\u{11640}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116B8}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11739}\u{11740}-\u{11746}\u{11800}-\u{1183A}\u{118A0}-\u{118E9}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11943}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E1}\u{119E3}\u{119E4}\u{11A00}-\u{11A3E}\u{11A47}\u{11A50}-\u{11A99}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C40}\u{11C50}-\u{11C59}\u{11C72}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF6}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F50}-\u{11F5A}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF4}\u{16B00}-\u{16B36}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16D70}-\u{16D79}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9D}\u{1BC9E}\u{1CCF0}-\u{1CCF9}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8D0}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0100}-\u{E01EF}]*$/u,o=/^\s*<%=?\s+/,a=/\s+%>\s*$/;function i(e){if("string"!=typeof e)return{isString:!1};let u,t;var i;return i=e,o.test(i)&&a.test(i)?(t=e.replace(o,"").replace(a,"").trim(),u=e):e.includes("CTX.")?(t=e,u=`<%= ${e} %>`):(t=`CTX${function(e){const u=String(e);return r.test(u)?`.${u}`:`[${JSON.stringify(u)}]`}(e)}`,u=`<%= ${t} %>`),{isString:!0,embedded:u,expression:t,usedContexts:(0,n.strictCollectMemberUsage)(u,"CTX")}}},39194:(e,u,t)=>{t.d(u,{Y:()=>I});var n=t(18769),r=t.n(n),o=t(23081),a=t(53373),i=t.n(a),s=t(41030),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),m=t(88128),E=t.n(m),A=t(30855),f=t.n(A),g=t(93051),F=t.n(g),D=t(73656),C=t.n(D),b=t(58137),v={};v.styleTagTransform=C(),v.setAttributes=f(),v.insert=E().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=F(),c()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0;var B=t(29443),x=t(36903),y=t(36404),k=t(85620),w=t(55805),_=t(2460),S=t(28599),T=t(57451),N=t(69131);function I(e){let{job:u,active:t}=e;const a=(0,n.useMemo)((()=>(0,s.uniqueId)()),[]),{setHoverOnScrollableContent:l,setActiveExpandedViewJobId:c}=(0,n.useContext)(k.Q),d=(0,n.useRef)(null),p=(0,n.useRef)(null),m=u.generatedView;(0,n.useEffect)((()=>{const e=d.current;if(!e)return;const u=(0,S.d)(a),t=(0,o.unstable_createRoot)(e,{portal:u,supportsUseChildren:!0});return p.current=t,()=>{t.unmount(),u.remove(),p.current=null}}),[a]);const[E,A]=(0,n.useState)(!0);(0,n.useEffect)((()=>{let e=!1;return(async()=>{A(!0);try{var u;const t=await((0,N.F)(m)?(0,T.V)(m,{rootId:a}):(0,y.z)(m,{rootId:a}));if(e)return;await(null===(u=p.current)||void 0===u?void 0:u.render(null!=t?t:[]))}catch(e){console.error("Failed to render view:",e)}e||A(!1)})(),()=>{e=!0}}),[a,m]);const f=(0,n.useMemo)((()=>{if((0,N.F)(m))for(const t of null!==(e=m.components)&&void 0!==e?e:[]){var e;if("table"===t.name)return!0;if("dashboard"===t.name){var u;const e=null==t||null===(u=t.properties)||void 0===u?void 0:u.widgets;if(Array.isArray(e)&&e.length>=(t.properties.groupField?3:7))return!0}}else for(const e of null!==(t=m.components)&&void 0!==t?t:[]){var t;if("table"===e.componentName)return!0;if("dashboard"===e.componentName){var n;const u=null==e||null===(n=e.properties)||void 0===n?void 0:n.widgets;if(Array.isArray(u)&&u.length>=(e.properties.groupField?3:7))return!0}}return!1}),[m]),g=(0,n.useCallback)((e=>{let u=!1;for(const t of e.nativeEvent.composedPath()){if(t===d.current)break;if(t instanceof HTMLElement&&t.classList.contains("ant-table")&&t.classList.contains("ant-table-scroll-horizontal")){u=!0;break}}l(u)}),[l]),F=(0,n.useCallback)((()=>{l(!1)}),[l]),D=(0,n.useCallback)((()=>{c(u.id)}),[u.id,c]);return r().createElement("div",{className:i()(B.A["node-job"],{[B.A.active]:t,[B.A.large]:f})},r().createElement("div",{className:B.A.background}),r().createElement("div",{className:h.heading},r().createElement("div",{className:i()(h.title,{[x.A["shine-text"]]:E})},m.title),r().createElement("button",{className:h.expand,title:(0,_.t)("FULLSCREEN"),onClick:D},r().createElement(w.Bj,{lib:"easyops",icon:"fullscreen"}))),r().createElement("div",{"data-root-id":a,ref:d,onMouseMove:g,onMouseLeave:F}))}},39295:(e,u,t)=>{t.d(u,{s:()=>h});var n=t(18769),r=t.n(n),o=t(72591),a=t.n(o),i=t(1740),s=t.n(i),l=t(88128),c=t.n(l),d=t(30855),p=t.n(d),m=t(93051),E=t.n(m),A=t(73656),f=t.n(A),g=t(77221),F={};F.styleTagTransform=f(),F.setAttributes=p(),F.insert=c().bind(null,"head"),F.domAPI=s(),F.insertStyleElement=E(),a()(g.A,F);const D=g.A&&g.A.locals?g.A.locals:void 0;var C=t(2460),b=t(85620),v=t(55805);function h(){const{onShare:e}=(0,n.useContext)(b.Q);return r().createElement("div",{className:D["node-end"]},r().createElement("div",{className:D.content},r().createElement("span",{className:D.icon},r().createElement(v.Bj,{lib:"fa",prefix:"fas",icon:"check"})),r().createElement("span",{className:D.text},(0,C.t)(C.K.TASK_COMPLETED))),r().createElement("button",{className:D.button,onClick:e},(0,C.t)(C.K.SHARE)))}},39626:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".topology-node{padding:5px;font-size:24px;width:34px;height:34px}.topology-node eo-icon{display:block}.topology-node-trouble{color:var(--color-warning)}.topology-node-ok{color:var(--color-success)}.topology-node-label{position:absolute;bottom:-20px;left:50%;transform:translate(-50%,0);font-size:14px;line-height:16px;background:#fff;padding:0 2px 2px;border-radius:4px;max-width:124px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]);const i=a.toString()},40369:(e,u,t)=>{t.d(u,{S:()=>H});var n=t(18769),r=t(57372),o=t(37732),a=t(23081),i=t(41030),s=t(40580),l=t(58135),c=t(97238);const d="defineVariable",p="defineDataSource",m=c.re({action:c.eu("update_variable"),payload:c.re({name:c.Yj(),value:c.bz()})}),E=c.re({action:c.eu("refresh_data_source"),payload:c.re({name:c.Yj()})}),A=c.re({action:c.eu("call_component"),payload:c.re({componentId:c.Yj(),method:c.Yj(),args:c.YO(c.bz()).optional()})}),f=c.re({action:c.eu("show_message"),payload:c.re({type:c.k5(["info","success","warn","error"]),content:c.Yj()})}),g=c.re({action:c.eu("call_api"),payload:c.re({api:c.Yj(),params:c.bz().optional()}),get callback(){return C.optional()}}),F=c.KC([m,E,g,A,f]),D=c.KC([F,c.YO(F)]),C=c.re({success:D.optional(),error:D.optional(),finally:D.optional()}),b=/^\s*<%=?\s+/,v=/\s+%>\s*$/;function h(e,u){let t=null;return l.traverse(e,{enter(e){!t&&(l.isFunctionExpression(e)||l.isStatement(e)||l.isJSX(e)||u.disallowArrowFunction&&l.isArrowFunctionExpression(e))&&(t=e)}}),t}const B=Symbol("ambiguous");function x(e,u,t){if(l.isObjectExpression(e))return function(e,u,t){if(e.properties.some((e=>l.isSpreadElement(e)))&&t.allowExpression){const r=h(e,t);var n;if(!r)return t.ambiguous?B:`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`;u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"})}const r={};for(const n of e.properties)if(l.isObjectProperty(n)){if(n.computed||n.shorthand){u.errors.push({message:"Computed properties and shorthand properties are not supported",node:n.key,severity:"error"});continue}let e;if(l.isIdentifier(n.key))e=n.key.name;else{if(!l.isStringLiteral(n.key)){u.errors.push({message:`Unsupported object key type: ${n.key.type}`,node:n.key,severity:"error"});continue}e=n.key.value}r[e]=x(n.value,u,t)}else u.errors.push({message:`Unsupported property type: ${n.type}`,node:n,severity:"error"});return r}(e,u,t);if(l.isArrayExpression(e))return function(e,u,t){if(e.elements.some((e=>l.isSpreadElement(e)))&&t.allowExpression){const r=h(e,t);var n;if(!r)return t.ambiguous?B:`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`;u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"})}const r=[];for(const n of e.elements)null!==n?l.isSpreadElement(n)?u.errors.push({message:"Spread elements are not supported in arrays",node:n,severity:"error"}):r.push(x(n,u,t)):u.errors.push({message:"Array elements cannot be empty",node:e,severity:"error"});return r}(e,u,t);if(l.isStringLiteral(e)||l.isNumericLiteral(e)||l.isBooleanLiteral(e))return e.value;if(l.isNullLiteral(e))return null;if(!l.isIdentifier(e)||"undefined"!==e.name){if(l.isExpression(e)&&t.allowExpression){const r=h(e,t);return r?(u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"}),null):t.ambiguous?B:`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`;var n}return u.errors.push({message:`Unsupported node type: ${e.type}`,node:e,severity:"error"}),null}}function y(e,u,t){let n=!1;var r;if((l.traverse(e,{enter(e,u){var t;let r;n||l.isStringLiteral(e)||l.isNumericLiteral(e)||l.isBooleanLiteral(e)||l.isNullLiteral(e)||l.isObjectExpression(e)||l.isArrayExpression(e)||l.isObjectProperty(e)||l.isIdentifier(e)&&(r=null===(t=u[u.length-1])||void 0===t?void 0:t.node,1)&&(r&&l.isObjectProperty(r)?!r.computed&&!r.shorthand:"undefined"===e.name)||(n=!0)}}),n)&&!h(e,t))return`<%${null!==(r=t.modifier)&&void 0!==r?r:""} ${u.source.substring(e.start,e.end)} %>`;return x(e,u,t)}function k(e,u){if(!l.isObjectExpression(e))return void u.errors.push({message:`Expected an object expression for events, but got ${e.type}`,node:e,severity:"error"});const t={};for(const n of e.properties){if(!l.isObjectProperty(n)){u.errors.push({message:`Unsupported property type in events: ${n.type}`,node:n,severity:"error"});continue}if(n.computed||n.shorthand){u.errors.push({message:"Computed properties and shorthand properties are not supported in events",node:n,severity:"error"});continue}let e;if(l.isIdentifier(n.key))e=n.key.name;else{if(!l.isStringLiteral(n.key)){u.errors.push({message:`Unsupported object key type in events: ${n.key.type}`,node:n.key,severity:"error"});continue}e=n.key.value}if(l.isArrayExpression(n.value)){const r=[];for(const e of n.value.elements){if(null===e){u.errors.push({message:"Array elements cannot be empty in events",node:n.value,severity:"error"});continue}if(l.isSpreadElement(e)){u.errors.push({message:"Spread elements are not supported in events",node:e,severity:"error"});continue}const t=w(e,u);t&&r.push(t)}t[e]=r}else if(l.isObjectExpression(n.value)){const r=w(n.value,u);r&&(t[e]=r)}}return t}function w(e,u){var t;if(!l.isObjectExpression(e))return u.errors.push({message:`Expected an object expression for event handler, but got ${e.type}`,node:e,severity:"error"}),null;const n={};let r,o;for(const t of e.properties){if(!l.isObjectProperty(t)){u.errors.push({message:`Unsupported property type in event handler: ${t.type}`,node:t,severity:"error"});continue}if(t.computed||t.shorthand){u.errors.push({message:"Computed properties and shorthand properties are not supported in event handlers",node:t,severity:"error"});continue}let e;if(l.isIdentifier(t.key))e=t.key.name;else{if(!l.isStringLiteral(t.key)){u.errors.push({message:`Unsupported object key type in event handler: ${t.key.type}`,node:t.key,severity:"error"});continue}e=t.key.value}n[e]=x(t.value,u,{allowExpression:!0}),"payload"===e&&(r=t.value)}if("call_api"===n.action&&null!==(t=n.payload)&&void 0!==t&&t.api&&r&&l.isObjectExpression(r))for(const e of r.properties)l.isObjectProperty(e)&&!e.computed&&!e.shorthand&&l.isIdentifier(e.key)&&"params"===e.key.name&&(o=x(e.value,{...u,errors:[]},{allowExpression:!0,disallowArrowFunction:!0,ambiguous:!0}));const a=F.safeParse(n);if(a.success){const e=a.data;return o&&(e.payload.ambiguousParams=o),e}return u.errors.push({message:`Invalid event handler structure: ${a.error}`,node:e,severity:"error"}),null}function _(e,u,t){if(l.isJSXElement(e)){if(!l.isJSXIdentifier(e.openingElement.name))return u.errors.push({message:`Expected JSXIdentifier, but got ${e.openingElement.name.type}`,node:e.openingElement.name,severity:"error"}),null;const d=e.openingElement.name.name,p={},m={};let E,A;for(const i of e.openingElement.attributes){if(l.isJSXSpreadAttribute(i)){u.errors.push({message:"Spread attributes are not supported in component",node:i,severity:"error"});continue}if(!l.isJSXIdentifier(i.name)){u.errors.push({message:`Expected JSXIdentifier, but got ${i.name.type}`,node:i.name,severity:"error"});continue}const e=i.name.name;if("events"===e){if(!l.isJSXExpressionContainer(i.value)){var n,r;u.errors.push({message:`"events" attribute in component expects a JSXExpressionContainer, but got ${null===(n=i.value)||void 0===n?void 0:n.type}`,node:null!==(r=i.value)&&void 0!==r?r:i,severity:"error"});continue}if(l.isJSXEmptyExpression(i.value.expression)){u.errors.push({message:"Empty expression in events is not allowed",node:i.value,severity:"warning"});continue}E=k(i.value.expression,u)}else if("componentId"===e){if(!l.isStringLiteral(i.value)){var o,a;u.errors.push({message:`"componentId" attribute in component expects a string literal, but got ${null===(o=i.value)||void 0===o?void 0:o.type}`,node:null!==(a=i.value)&&void 0!==a?a:i,severity:"error"});continue}A=i.value.value}else if(null==i.value)p[e]=!0;else if(l.isStringLiteral(i.value))p[e]=i.value.value,m[e]=i.value.value;else if(l.isJSXExpressionContainer(i.value)){if(l.isJSXEmptyExpression(i.value.expression)){u.errors.push({message:`Empty expression in JSX attribute "${e}" is not allowed`,node:i.value,severity:"warning"});continue}p[e]=y(i.value.expression,u,{allowExpression:!0,disallowArrowFunction:!0,modifier:"="}),null!=t&&t.reward&&(m[e]=x(i.value.expression,{...u,errors:[]},{allowExpression:!0,disallowArrowFunction:!0,ambiguous:!0}))}else u.errors.push({message:`Unsupported attribute value type in component: ${i.value.type}`,node:i.value,severity:"error"})}let f,g=e.children.map((e=>_(e,u,t))),F=g.every((e=>"text"===(null==e?void 0:e.type)));if(!F){let e=null;const u=[];for(const t of g){if(null===t);else if("text"===t.type||"expression"===t.type){var i,s,c;if("text"===(null===(i=e)||void 0===i?void 0:i.type)||"expression"===(null===(s=e)||void 0===s?void 0:s.type)){e={type:"merged",children:[e,t]},u.splice(u.length-1,1,e);continue}if("merged"===(null===(c=e)||void 0===c?void 0:c.type)){e.children.push(t);continue}}e=t,u.push(t)}g=u,F=g.every((e=>"text"===(null==e?void 0:e.type)||"merged"===(null==e?void 0:e.type)&&e.children.every((e=>"text"===e.type))))}if(F){const e=g.flatMap((e=>"text"===e.type?e.text:e.children.map((e=>e.text)))).join("").trim();e&&(p.textContent=e)}else if(g.every((e=>!!e&&"component"!==e.type))){const e=S(g.flatMap((e=>"merged"===e.type?e.children:e)),u.source);p.textContent=e}else f=g.filter((e=>!!e)).map((e=>"component"===e.type?e.component:{name:"eo-text",properties:{textContent:"text"===e.type?e.text:"expression"===e.type?`<%= ${e.expression} %>`:S(e.children,u.source)}}));const D={name:d,componentId:A,properties:p,events:E,children:f};return null!=t&&t.reward&&(D.ambiguousProps=m),A&&(u.componentsMap.has(A)?u.errors.push({message:`Duplicated componentId "${A}" found`,node:e,severity:"error"}):u.componentsMap.set(A,D)),{type:"component",component:D}}if(l.isJSXText(e))return e.value.trim()?{type:"text",text:e.value}:null;if(l.isJSXExpressionContainer(e)){if(l.isJSXEmptyExpression(e.expression))return u.errors.push({message:"Empty expression in JSX is not allowed",node:e,severity:"warning"}),null;const t=h(e.expression,{disallowArrowFunction:!0});return t?(u.errors.push({message:`Unsupported node type in expression: ${t.type}`,node:t,severity:"error"}),null):{type:"expression",expression:e.expression}}return u.errors.push({message:`Unsupported node type in component: ${e.type}`,node:e,severity:"error"}),null}function S(e,u){return`<%= CTX.__builtin_fn_mergeTexts(${e.map((e=>"text"===e.type?JSON.stringify(e):`{type:"expression",value:(${u.substring(e.expression.start,e.expression.end)})}`)).join(", ")}) %>`}function T(e,u,t){const n=e.openingElement;if(!l.isJSXIdentifier(n.name))return void u.errors.push({message:`Expected JSXIdentifier, but got ${n.name.type}`,node:n.name,severity:"error"});const r=n.name.name;if("eo-view"===r){for(const e of n.attributes){if(l.isJSXSpreadAttribute(e)){u.errors.push({message:"Spread attributes are not supported in <eo-view>",node:e,severity:"error"});continue}if(!l.isJSXIdentifier(e.name)){u.errors.push({message:`Expected JSXIdentifier, but got ${e.name.type}`,node:e.name,severity:"error"});continue}const t=e.name.name;var o,a;"title"===t?l.isStringLiteral(e.value)?u.title=e.value.value:u.errors.push({message:`"title" attribute in <eo-view> expects a string literal, but got ${null===(o=e.value)||void 0===o?void 0:o.type}`,node:null!==(a=e.value)&&void 0!==a?a:e,severity:"error"}):u.errors.push({message:`Unsupported attribute "${t}" in <eo-view>`,node:e.name,severity:"notice"})}u.title||u.errors.push({message:'"title" attribute is required in <eo-view>',node:n.name,severity:"warning"});for(const n of e.children){const e=_(n,u,t);if(null!==e)if("text"!==e.type)"expression"!==e.type?u.components.push(e.component):u.errors.push({message:`Unexpected expression child in <eo-view>: "${e.expression}". Only components are allowed.`,node:e.expression,severity:"warning"});else{if(""===e.text.trim())continue;u.errors.push({message:`Unexpected string child in <eo-view>: "${e.text}". Only components are allowed.`,node:n,severity:"warning"})}}}else u.errors.push({message:`Expected <eo-view>, but got <${r}>`,node:n.name,severity:"error"})}function N(e,u){var t;const n=[],r=[],o=[],a={source:e,title:void 0,dataSources:n,variables:r,components:[],componentsMap:new Map,errors:o};let i;try{i=(0,s.parse)(e,{plugins:["jsx"],sourceType:"module",errorRecovery:!0})}catch(e){o.push({message:`Failed to parse JSX: ${e}`,node:null,severity:"fatal"})}if(null!==(t=i)&&void 0!==t&&null!==(t=t.errors)&&void 0!==t&&t.length)for(const e of i.errors)o.push({message:`${e.code}: ${e.reasonCode}`,node:null,severity:"error"});for(const t of null!==(c=null===(m=i)||void 0===m?void 0:m.program.body)&&void 0!==c?c:[]){var c,m;if(l.isExpressionStatement(t)){const i=t.expression;if(l.isCallExpression(i)&&l.isIdentifier(i.callee))if(i.callee.name===d){const e=i.arguments.length<1;if((e||i.arguments.length>2)&&(o.push({message:`"${d}()" expects one or two arguments, but got ${i.arguments.length}`,node:i,severity:e?"error":"notice"}),e))continue;const u=i.arguments[0];if(!l.isStringLiteral(u)){o.push({message:`"${d}()" expects a string literal as the first argument, but got ${u.type}`,node:u,severity:"error"});continue}const t=u.value;if(2===i.arguments.length){const e=x(i.arguments[1],a,{allowExpression:!0});r.push({name:t,value:e})}else r.push({name:t})}else if(i.callee.name===p){const t=i.arguments.length<2;if((t||i.arguments.length>2)&&(o.push({message:`"${p}()" expects two arguments, but got ${i.arguments.length}`,node:i,severity:t?"error":"notice"}),t))continue;const r=i.arguments[0];if(!l.isStringLiteral(r)){o.push({message:`"${p}()" expects a string literal as the first argument, but got ${r.type}`,node:r,severity:"error"});continue}const s=i.arguments[1];if(!l.isObjectExpression(s)){o.push({message:`"${p}()" expects an object literal as the second argument, but got ${s.type}`,node:s,severity:"error"});continue}const c={name:r.value};for(const t of s.properties){if(!l.isObjectProperty(t)){o.push({message:`Unsupported property type in data source config: ${t.type}`,node:t,severity:"error"});continue}if(t.computed||t.shorthand){o.push({message:"Computed properties and shorthand properties are not supported in data source config",node:t,severity:"error"});continue}let n;if(l.isIdentifier(t.key))n=t.key.name;else{if(!l.isStringLiteral(t.key)){o.push({message:`Unsupported object key type in data source config: ${t.key.type}`,node:t.key,severity:"error"});continue}n=t.key.value}switch(n){case"api":if(!l.isStringLiteral(t.value)){o.push({message:`Data source "api" expects a string literal, but got ${t.value.type}`,node:t.value,severity:"error"});continue}c.api=t.value.value;break;case"objectId":if(!l.isStringLiteral(t.value)){o.push({message:`Data source "objectId" expects a string literal, but got ${t.value.type}`,node:t.value,severity:"error"});continue}c.objectId=t.value.value;break;case"params":if(!I(t.value)){l.isObjectExpression(t.value)||o.push({message:`Data source "params" prefers an object literal, but got ${t.value.type}`,node:t.value,severity:"notice"});const e=x(t.value,a,{allowExpression:!0});"string"==typeof(A=e)&&b.test(A)&&v.test(A)||"object"==typeof e&&null!==e?c.params=e:o.push({message:'Data source "params" expects an object or expression, but got '+typeof e,node:t.value,severity:"error"}),null!=u&&u.reward&&(c.ambiguousParams=x(t.value,{...a,errors:[]},{allowExpression:!0,disallowArrowFunction:!0,ambiguous:!0}))}break;case"transform":if(!I(t.value)){if(!l.isArrowFunctionExpression(t.value)){o.push({message:`Data source "transform" expects an arrow function, but got ${t.value.type}`,node:t.value,severity:"error"});continue}if(!l.isExpression(t.value.body)){o.push({message:`"transform" function body expects an expression, but got ${t.value.body.type}`,node:t.value.body,severity:"error"});continue}if(1!==t.value.params.length){var E;o.push({message:`"transform" function expects exactly one parameter, but got ${t.value.params.length}`,node:null!==(E=t.value.params[1])&&void 0!==E?E:t.value,severity:"error"});continue}const u=t.value.params[0];if(!l.isIdentifier(u)){o.push({message:`"transform" function parameter expects an identifier, but got ${u.type}`,node:u,severity:"error"});continue}if("DATA"!==u.name){o.push({message:`"transform" function parameter expects named "DATA", but got "${u.name}"`,node:u,severity:"error"});continue}c.transform=`<% ${e.substring(t.value.body.start,t.value.body.end)} %>`}}}c.api?n.push(c):o.push({message:`"${p}()" requires "api" property in the second argument`,node:s,severity:"error"})}}else{if(!l.isExportDefaultDeclaration(t)){o.push({message:`Unsupported statement type: ${t.type}`,node:t,severity:"error"});continue}{const e=t.declaration;if(!l.isJSXElement(e)){o.push({message:`Exported default declaration must be a JSX element, but got ${e.type}`,node:e,severity:"error"});continue}T(e,a,u)}}}var A;return a}function I(e){return l.isNullLiteral(e)||l.isIdentifier(e)&&"undefined"===e.name}function $(e){const u=[];let t;for(const n of e){if(t&&t===n.role){const e=u[u.length-1];e.parts=[...e.parts,...n.parts]}else u.push({...n});t=n.role}for(const e of u)e.parts=L(e.parts);return u}function L(e){const u=[];let t,n;for(const a of e){var r,o;"text"===t&&"text"===a.type?u[u.length-1].text+=a.text:"stream"===n&&"data"===a.type&&"stream"===(null===(r=a.data)||void 0===r?void 0:r.type)?u[u.length-1].data.message+=a.data.message:u.push({...a}),t=a.type,n="data"===a.type?null===(o=a.data)||void 0===o?void 0:o.type:void 0}return u}function R(e){if(e)for(const u of e)if("tool"===u.role)for(const e of u.parts)if("text"===e.type)try{const u=JSON.parse(e.text);return u.code?N(u.code):u}catch{}}function M(e,u){let t=u,n=!1;for(const u of e)if("tool"===u.role)for(const e of u.parts){var r;if("data"===e.type&&"graph"===(null===(r=e.data)||void 0===r?void 0:r.type)){const u=e.data.message;switch(null==u?void 0:u.type){case"component_graph":{const e=[],r=[];for(const t of Object.values(u.data)){var o,a;Array.isArray(t.children)&&(0,i.pull)(t.children,t.id),e.push({type:"node",id:t.id,data:t}),r.push(...null!==(o=null===(a=t.children)||void 0===a?void 0:a.map((e=>({type:"edge",source:t.id,target:e}))))&&void 0!==o?o:[])}t={nodes:e,edges:r,initial:!0},n=!0;break}case"component_graph_node":if(t){const e=t.nodes.findIndex((e=>e.id===u.data.component));if(-1!==e){const n=t.nodes[e];n.data.status!==u.data.status&&(t={nodes:[...t.nodes.slice(0,e),{...n,data:{...n.data,status:u.data.status}},...t.nodes.slice(e+1)],edges:t.edges,initial:!1})}n=!0}}}}return n?t:void 0}const P=(O={task:(e,u)=>{switch(u.type){case"sse":{const t=(0,i.pick)(u.payload,["id","requirement","state","title","startTime","endTime","plan"]);return u.isInitial?t:e&&(0,i.isMatchWith)(e,t,i.isEqual)?e:{...e,...t}}case"reset":return null}return e},jobs:(e,u)=>{switch(u.type){case"sse":{var t;const E=u.payload.jobs;let A=u.isInitial?[]:e;if(!Array.isArray(E)||0===E.length)return A;const f=null===(t=e.findLast((e=>!!e.componentGraph)))||void 0===t?void 0:t.componentGraph;for(const e of E){var n,r;const u=null!==(n=null===(r=A)||void 0===r?void 0:r.findIndex((u=>u.id===e.id)))&&void 0!==n?n:-1,{messages:t,toolCall:E}=e;if("string"==typeof(null==E?void 0:E.arguments)){E.originalArguments=E.arguments;try{E.arguments=JSON.parse(E.arguments)}catch(e){E.arguments={},E.argumentsParseFailed=!0,E.argumentsParseError=e}}if(-1===u){var o,a;const u={...e};if(("get_view_with_info"===(null===(o=u.toolCall)||void 0===o?void 0:o.name)||"create_view"===(null===(a=u.toolCall)||void 0===a?void 0:a.name))&&"completed"===u.state){const e=R(t);e&&(u.generatedView=e)}const n=M(null!=t?t:[],f);n&&(u.componentGraph=n),A=Array.isArray(t)&&t.length>0?[...A,{...u,messages:$(t)}]:[...A,u]}else{var s,l,c,d,p;const n=A[u],r=(0,i.pick)(e,["id","upstream","parent","state","instruction","toolCall","isError","startTime","endTime"]);var m;if(Array.isArray(t)&&t.length>0&&(r.messages=$([...null!==(m=n.messages)&&void 0!==m?m:[],...t])),!n.generatedView&&["get_view_with_info","create_view"].includes(null!==(s=null===(l=r.toolCall)||void 0===l?void 0:l.name)&&void 0!==s?s:null===(c=n.toolCall)||void 0===c?void 0:c.name)&&"completed"===(null!==(d=r.state)&&void 0!==d?d:n.state)){const e=R(t);e&&(r.generatedView=e)}const o=M([...null!==(p=n.messages)&&void 0!==p?p:[],...null!=t?t:[]],f);o&&(r.componentGraph=o),(0,i.isMatchWith)(n,r,i.isEqual)||(A=[...A.slice(0,u),{...n,...r},...A.slice(u+1)])}}return A}case"reset":return 0===e.length?e:[]}return e},error:(e,u)=>{switch(u.type){case"sse":{const t=u.payload.error;return null===e&&"string"==typeof t?t:e}case"reset":return null}return e}},(e,u)=>Object.fromEntries(Object.entries(O).map((t=>{let[n,r]=t;return[n,r(e[n],u)]}))));var O;const j=500;function H(e,u,t){const[{task:i,jobs:s,error:l},c]=(0,n.useReducer)(P,null,(()=>({task:null,jobs:[],error:null}))),d=(0,n.useRef)(),p=(0,n.useRef)(),m=(0,n.useRef)(null),E=(0,n.useRef)(u),A=(0,n.useRef)(1e3*(null!=t?t:2)),f=(0,n.useRef)(null),g=(0,n.useCallback)((()=>{E.current=!1,f.current&&(f.current(),f.current=null)}),[]),F=(0,n.useCallback)((async()=>{E.current=!0;let e,u=!0;for(const t of m.current){if(E.current){let n=A.current;t.time&&e&&(n=Math.min(Math.max(j,1e3*(t.time-e)),n)),e=t.time,u||(await new Promise((e=>{f.current=e,setTimeout(e,n)})),f.current=null)}c({type:"sse",payload:t,isInitial:u}),u=!1}}),[]);return(0,n.useEffect)((()=>{if(c({type:"reset"}),d.current=void 0,!e)return;let u,t=!1,n=!1;const i=async()=>{if(!n){n=!0,m.current=[],u=new AbortController;try{const r=await(0,o.createSSEStream)(`${(0,a.getBasePath)()}api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${e}`,{signal:u.signal}),i=await r;let s,l=!0;for await(const e of i){if(t)return void(n=!1);if(E.current){let u=A.current;e.time&&s&&(u=Math.min(Math.max(j,1e3*(e.time-s)),u)),s=e.time,l||(await new Promise((e=>{f.current=e,setTimeout(e,u)})),f.current=null)}m.current.push(e),c({type:"sse",payload:e,isInitial:l}),l=!1}}catch(e){console.error("sse failed",e),(0,a.handleHttpError)(e)}finally{n=!1}}};return p.current=i,d.current=async(u,t)=>{try{await r.http.post(`${(0,a.getBasePath)()}api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${e}/job/${u}`,{input:t})}catch(e){return console.error("human input failed",e),void(0,a.handleHttpError)(e)}i()},i(),()=>{var e;t=!0,null===(e=u)||void 0===e||e.abort()}}),[e]),{task:i,jobs:s,error:l,humanInputRef:d,resumedRef:p,skipToResults:g,watchAgain:F}}},41763:(e,u,t)=>{t.d(u,{w:()=>w});var n=t(89575),r=t(18769),o=t.n(r),a=t(31085),i=t(83091),s=t(97447),l=t(46025),c=t(23640),d=t(24360),p=t(74269),m=t(74650),E=t(6602);function A(e){const u=e.properties.className||[];for(const e of u)if("language-"===e.slice(0,9))return e.slice(9).toLowerCase();return null}function f(){function e(e,u,t){if(!t||"pre"!==t.tagName||"code"!==e.tagName)return;const n=A(e);if(null===n||"mermaid"===n)return;let r;try{t.properties.className=(t.properties.className||[]).concat("language-"+n),r=E.L.highlight((0,m.d)(e),n)}catch{return}e.children=r.children}return u=>{(0,p.YR)(u,"element",e)}}var g=t(67367),F=t(53349);let D=0;g.A.initialize({startOnLoad:!1,theme:"base",themeVariables:{fontSize:"14px",lineColor:"#979797",primaryColor:"#DCD2F3",primaryBorderColor:"#0000001A"}});const C=new DOMParser,b=new XMLSerializer;function v(){return async e=>{const u=[];(0,p.YR)(e,"element",(function(e,t,n){n&&"pre"===n.tagName&&"code"===e.tagName&&"mermaid"===A(e)&&u.push((async()=>{const u="mermaid-"+D++,{svg:r}=await g.A.render(u,(0,m.d)(e)),o=C.parseFromString(r,"text/html"),a=o.querySelector("svg"),i=o.createElementNS("http://www.w3.org/2000/svg","defs");i.innerHTML=`<linearGradient id="linear-gradient-${u}" x1="0%" y1="0%" x2="0%" y2="100%">\n <stop offset="0%" stop-color="#F0EBFA" />\n <stop offset="75%" stop-color="#DED4F4" />\n <stop offset="100%" stop-color="#C5C7FA" />\n</linearGradient>`,a.prepend(i);const s=o.createElementNS("http://www.w3.org/2000/svg","style");s.textContent=`\n#${u} .node rect,\n#${u} .node circle,\n#${u} .node ellipse,\n#${u} .node polygon,\n#${u} .node path {\n fill: url(#linear-gradient-${u});\n}\n#${u} .node rect {\n rx: 4;\n ry: 4;\n}\n#${u} .labelBkg {\n background-color: #f5f8ff;\n}\n#${u} .edgeLabel,\n#${u} .edgeLabel p {\n background-color: transparent;\n}\n#${u} .edgeLabel {\n color: #8c8c8c;\n font-size: 12px;\n}\n`,a.appendChild(s);const l=b.serializeToString(a),c=(0,F.f)(l,{fragment:!0}).children;n.children.splice(t,1,...c),n.properties.className=(n.properties.className||[]).concat("mermaid")})())})),await Promise.all(u)}}const h={Fragment:a.Fragment,jsx:a.jsx,jsxs:a.jsxs};function B(e){let{content:u,components:t}=e;const[n,o]=(0,r.useState)(null);return(0,r.useEffect)((()=>{let e=!1;return(0,i.l)().use(s.A).use(l.A).use(c.A).use([f]).use(v).use(d.A,{...h,passNode:!0,components:t}).process(u).then((u=>{e||o(u.result)})).catch((u=>{e||(console.error("Convert markdown failed:",u),o(null))})),()=>{e=!0}}),[t,u]),n}var x=t(85993),y=t(85620);const k={pre:x.N};function w(e){const u=(0,r.useRef)(null),{setHoverOnScrollableContent:t}=(0,r.useContext)(y.Q),a=(0,r.useCallback)((e=>{let n=!1;for(const t of e.nativeEvent.composedPath()){if(t===u.current)break;if((t instanceof HTMLTableElement||t instanceof HTMLPreElement)&&t.scrollWidth>t.clientWidth){n=!0;break}}t(n)}),[t]),i=(0,r.useCallback)((()=>{t(!1)}),[t]);return o().createElement("div",{onMouseMove:a,onMouseLeave:i},o().createElement(B,(0,n.A)({},e,{components:k})))}},42137:(e,u,t)=>{t.d(u,{t:()=>w});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(21302),s=t.n(i),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),m=t(88128),E=t.n(m),A=t(30855),f=t.n(A),g=t(93051),F=t.n(g),D=t(73656),C=t.n(D),b=t(42671),v={};v.styleTagTransform=C(),v.setAttributes=f(),v.insert=E().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=F(),c()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0;var B=t(55805),x=t(85620),y=t(4833);const k=e=>{let u;return null==e||e.findLast((e=>{var t;return u=null===(t=e.parts)||void 0===t?void 0:t.findLast((e=>{var u;return"data"===e.type&&"progress"===(null===(u=e.data)||void 0===u?void 0:u.type)})),!!u})),u};function w(e){var u;let{job:t,variant:o}=e;const{setActiveToolCallJobId:i}=(0,n.useContext)(x.Q),l=t.toolCall,c=null===(u=l.annotations)||void 0===u?void 0:u.title,[d,p]=(0,n.useMemo)((()=>{var e;const u=null===(e=t.messages)||void 0===e?void 0:e.filter((e=>"tool"===e.role));return[k(u),null==u?void 0:u.some((e=>e.parts.some((e=>"text"===e.type))))]}),[t.messages]),m=(0,n.useMemo)((()=>"read-only"===o),[o]),E=(0,n.useCallback)((()=>{"read-only"!==o&&i(t.id)}),[t.id,o,i]),A=["working","input-required"].includes(t.state)&&p?"completed":t.state,f=t.isError||"failed"===A;return r().createElement("div",{className:a()(h["tool-call"],{[h.failed]:f,[h["read-only"]]:m}),onClick:E},r().createElement("div",{className:a()(h.status),title:t.startTime?`${s()(1e3*t.startTime).format("YYYY-MM-DD HH:mm:ss")}${t.endTime?` (${s().duration(1e3*t.endTime-1e3*t.startTime).humanize({ss:-1})})`:""}`:void 0},t.isError||"failed"===A?r().createElement(B.Bj,{className:h.icon,lib:"fa",prefix:"fas",icon:"xmark"}):"completed"===A?r().createElement(B.Bj,{className:h.icon,lib:"fa",prefix:"fas",icon:"check"}):"working"===A?r().createElement(B.Bj,{className:h.icon,lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0}):"input-required"===A?r().createElement(B.Bj,{className:h.icon,lib:"fa",prefix:"far",icon:"circle-user"}):"canceled"===A?r().createElement(B.Bj,{className:h.icon,lib:"fa",prefix:"far",icon:"circle-stop"}):r().createElement(B.Bj,{className:h.icon,lib:"fa",prefix:"far",icon:"clock"}),r().createElement("span",{className:h.name},"read-only"===o?l.name:c||l.name)),!!d&&!m&&r().createElement(y.W,{progress:d,failed:f}))}},42671:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".tool-call--aTh276av{--failed-color:#f24c25;--border-color:#e2e2ec;--status-border-color:rgba(226,226,236,0.8);font-size:13px;color:#595959;border-radius:10px;border:1px solid var(--border-color);background:#e6e9f3}.tool-call--aTh276av:not(.read-only--xWUswNds):hover{background:#e4e9fb;border:1px solid #b8c1ff}.tool-call--aTh276av:not(:last-child){margin-bottom:10px}.tool-call--aTh276av:not(.read-only--xWUswNds){cursor:pointer}.tool-call--aTh276av .status--V5ZXGYOG:not(:last-child){border-bottom:1px solid var(--status-border-color)}.read-only--xWUswNds{font-size:14px;padding:4px}.failed--sz70SlSa{background:#fef5f3}.failed--sz70SlSa:not(.read-only--xWUswNds):hover{background:#fee7e1;border:1px solid #ffc3b5}.failed--sz70SlSa .status--V5ZXGYOG:not(:last-child){border-bottom:1px solid rgba(253,225,218,0.8)}.status--V5ZXGYOG{height:24px;display:flex;align-items:center;padding:0 12px;color:#262626}.icon--LTp5Jjna{margin-right:8px;color:#8c8c8c}.failed--sz70SlSa .icon--LTp5Jjna{color:var(--failed-color)}.name--FwiqyIlQ{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]),a.locals={"tool-call":"tool-call--aTh276av","read-only":"read-only--xWUswNds",status:"status--V5ZXGYOG",failed:"failed--sz70SlSa",icon:"icon--LTp5Jjna",name:"name--FwiqyIlQ"};const i=a},46629:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".human-confirm--pILwNVPH{display:flex;justify-content:center;align-items:center;padding:24px 12px;background:rgba(62,67,102,0.05);box-shadow:0px 1px 0px 0px rgba(255,255,255,0.5);border-radius:9px}.human-confirm--pILwNVPH:not(:first-child){margin-top:6px}.human-confirm--pILwNVPH > * + *{margin-left:8px}",""]),a.locals={"human-confirm":"human-confirm--pILwNVPH"};const i=a},50707:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".expanded-view--JtP5PBpV{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;background:rgba(247,248,250,0.5);-webkit-backdrop-filter:blur(74px);backdrop-filter:blur(74px);padding:106px var(--page-padding-right) 40px var(--page-padding-left);overflow-y:auto;display:flex;flex-direction:column;align-items:center}.nav--CRCPQp6z{position:absolute;top:39px;left:50%;transform:translate(-50%,0);list-style:none;margin:0 0 25px;padding:4px;display:flex;justify-content:start;align-items:center;background:rgba(2,0,102,0.05);box-shadow:inset 0px 1px 2px 0px #cdd1d7;border-radius:21px;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.nav-button--kfcX0yV2{display:flex;align-items:center;height:34px;padding:0 26px;background:none;border:none;color:#595959;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.nav-button--kfcX0yV2:not(:last-child){margin-right:12px}.nav-button--kfcX0yV2.active--GF6wwswT{background:rgba(255,255,255,0.6);border-radius:20px;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);color:var(--elevo-color-brand);text-shadow:-0.02ex 0 0 currentColor,0.02ex 0 0 currentColor}.nav-button--kfcX0yV2:hover{color:var(--elevo-color-brand)}.body--Ftvod7Yd{width:100%;max-width:1556px}.body--Ftvod7Yd.small--XGTfwsoz{max-width:804px}.close--AYtt8Nkr{position:absolute;top:24px;right:24px}.loading--ax0zE9Yp{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff}",""]),a.locals={"expanded-view":"expanded-view--JtP5PBpV",nav:"nav--CRCPQp6z","nav-button":"nav-button--kfcX0yV2",active:"active--GF6wwswT",body:"body--Ftvod7Yd",small:"small--XGTfwsoz",close:"close--AYtt8Nkr",loading:"loading--ax0zE9Yp"};const i=a},52810:(e,u,t)=>{function n(e,u){return{brick:"div",properties:{style:u.expanded?{background:"rgba(255, 255, 255, 0.9)",backdropFilter:"blur(10px)",borderRadius:"16px",padding:"24px"}:{background:"var(--elevo-component-background)",backdropFilter:"var(--elevo-component-backdrop-filter)",borderRadius:"var(--elevo-border-radius)",padding:"16px"}},children:e}}t.d(u,{i:()=>n})},54163:(e,u,t)=>{t.d(u,{s:()=>x});var n=t(89575),r=t(18769),o=t.n(r),a=t(53373),i=t.n(a),s=t(72591),l=t.n(s),c=t(1740),d=t.n(c),p=t(88128),m=t.n(p),E=t(30855),A=t.n(E),f=t(93051),g=t.n(f),F=t(73656),D=t.n(F),C=t(7017),b={};b.styleTagTransform=D(),b.setAttributes=A(),b.insert=m().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=g(),l()(C.A,b);const v=C.A&&C.A.locals?C.A.locals:void 0;var h=t(55805),B=t(16854);function x(e){let{nav:u,plan:t,jobs:a,jobLevels:i,currentNavId:s,taskState:l,onClick:c}=e;const d=(0,r.useMemo)((()=>{const e=null==t?void 0:t.filter((e=>!(null!=u&&u.find((u=>u.id===e.id)))));if(null==e||!e.length)return u;const n=new Map;let r=null;for(let u=t.length-1;u>=0;u--){const o=t[u];if(e.includes(o)){let e=n.get(r);e||n.set(r,e=[]),e.unshift(o)}else r=o.id}const o=[...null!=u?u:[]];for(const[e,u]of n.entries()){const t=null===e?o.length:o.findIndex((u=>u.id===e)),n=o[t],r=B.QB.includes((null==n?void 0:n.state)||"unknown");o.splice(t,0,...u.map((e=>{var u;const t=null==a?void 0:a.find((u=>u.id===e.id)),n=null==i?void 0:i.get(e.id);return{id:e.id,title:e.instruction,state:null!==(u=null==t?void 0:t.state)&&void 0!==u?u:r?"skipped":void 0,level:null!=n?n:0,disabled:!0}})))}return o}),[u,t,a,i]),p=(0,r.useRef)(null);return(0,r.useEffect)((()=>{var e;const u=p.current;u&&s&&(null===(e=u.querySelector(`[data-job-id="${s}"]`))||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"}))}),[s]),(0,r.useEffect)((()=>{const e=p.current;if(!e||s)return;const u=null==d?void 0:d.findLast((e=>B.QB.includes(e.state||"unknown")||"working"===e.state||"input-required"===e.state));var t;u&&(null===(t=e.querySelector(`[data-job-id="${u.id}"]`))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest"}))}),[s,d]),o().createElement("div",{className:v.container},o().createElement("ul",{className:v.nav,ref:p},null==d?void 0:d.map((e=>o().createElement(y,(0,n.A)({key:e.id},e,{currentNavId:s,taskState:l,onClick:c}))))))}function y(e){let{id:u,title:t,state:a,level:s,taskState:l,currentNavId:c,disabled:d,onClick:p}=e;const{className:m,icon:E}=(0,r.useMemo)((()=>function(e,u){switch(e){case"completed":return{className:v.completed,icon:{lib:"fa",prefix:"fas",icon:"check"}};case"submitted":case"working":return"paused"===u||"canceled"===u?{icon:{lib:"fa",prefix:"far",icon:"paused"===u?"circle-pause":"circle-stop"}}:{className:v.working,icon:{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0}};case"input-required":return{className:v["input-required"],icon:{lib:"fa",prefix:"far",icon:"circle-user"}};case"failed":return{className:v.failed,icon:{lib:"fa",prefix:"fas",icon:"xmark"}};case"canceled":return{className:v.canceled,icon:{lib:"fa",prefix:"far",icon:"circle-stop"}};case"skipped":return{icon:{lib:"fa",prefix:"fas",icon:"ban"}};default:return{icon:{lib:"fa",prefix:"far",icon:"clock"}}}}(a,l)),[a,l]);return o().createElement("li",{className:i()(v.item,{[v.active]:c===u}),style:{marginLeft:20*s+"px"}},o().createElement("a",{className:i()(v.link,m,{[v.disabled]:d}),"data-job-id":u,title:t,onClick:()=>{d||p(u)}},o().createElement(h.Bj,(0,n.A)({className:v.icon},E)),o().createElement("span",{className:v.text},t)))}},54921:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".plan--ScYmFeqq{padding:8px;background:rgba(62,67,102,0.05);box-shadow:0px 1px 0px 0px rgba(255,255,255,0.5);border-radius:9px}.plan--ScYmFeqq:not(:first-child){margin-top:6px}.steps--l0R0pye1{list-style:none;margin:0;padding:0}.step--b20up4EN{background:#fff;border-radius:8px;padding-right:12px;display:flex}.step--b20up4EN + .step--b20up4EN{margin-top:4px}.step--b20up4EN.editing--qJ7xFdgL{background:var(--cruise-canvas-input-background);box-shadow:var(--cruise-canvas-input-box-shadow)}.content--oJ6ZEiGB{flex:1;min-width:0;padding:0 10px 0 5px;margin:10px 0}.step--b20up4EN:not(.editing--qJ7xFdgL) .content--oJ6ZEiGB{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.content--oJ6ZEiGB:focus{outline:none}.dragging--jCn2bzij{cursor:grabbing}.toolbar--CiHZDBZ_{margin-top:12px;display:flex;justify-content:center}.handle--pKE0LK3p,\n.delete--hUaJfjMA{color:#8c8c8c;display:flex;align-items:center;justify-content:center}.handle--pKE0LK3p{cursor:grab;width:24px;border-radius:8px 0px 0px 8px;touch-action:none}.handle--pKE0LK3p:hover,\n.dragging--jCn2bzij .handle--pKE0LK3p{background:rgba(62,67,102,0.05)}.dragging--jCn2bzij,\n.dragging--jCn2bzij .handle--pKE0LK3p{cursor:grabbing}.dragging--jCn2bzij{position:relative;z-index:1}.delete--hUaJfjMA{cursor:pointer}.step--b20up4EN:not(:hover) .delete--hUaJfjMA{visibility:hidden}.delete--hUaJfjMA > *:hover{color:#595959}.actions--jUqHGA_J{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.button-add--QJtgEBHC,\n.button-reset--dyu96f9R{background:none;border:none;padding:0;cursor:pointer}.button-icon--z01cXnf1{border-radius:9px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.04);color:rgba(0,0,0,0.45);margin-right:8px}.button-reset--dyu96f9R{color:#8c8c8c}.button-reset--dyu96f9R:hover,\n.button-add--QJtgEBHC{color:#595959}.button-add--QJtgEBHC:hover .button-icon--z01cXnf1{background:rgba(0,0,0,0.08)}.button-add--QJtgEBHC{display:flex;align-items:center}",""]),a.locals={plan:"plan--ScYmFeqq",steps:"steps--l0R0pye1",step:"step--b20up4EN",editing:"editing--qJ7xFdgL",content:"content--oJ6ZEiGB",dragging:"dragging--jCn2bzij",toolbar:"toolbar--CiHZDBZ_",handle:"handle--pKE0LK3p",delete:"delete--hUaJfjMA",actions:"actions--jUqHGA_J","button-add":"button-add--QJtgEBHC","button-reset":"button-reset--dyu96f9R","button-icon":"button-icon--z01cXnf1"};const i=a},55805:(e,u,t)=>{t.d(u,{Bj:()=>o,Gx:()=>a,Py:()=>s,lW:()=>c,ui:()=>l,xb:()=>i}),t(18769);var n=t(11280),r=t(37732);t(4273);const o=(0,n.wrapBrick)("eo-icon"),a=(0,n.wrapBrick)("eo-button"),i=((0,n.wrapBrick)("eo-link"),(0,n.wrapBrick)("eo-tooltip"),(0,n.wrapBrick)("eo-popover"),(0,n.wrapBrick)("eo-drawer",{onClose:"close",onOpen:"open"})),s=(0,n.wrapBrick)("ai-portal.icon-button"),l=(0,r.unwrapProvider)("basic.show-dialog"),c=(0,r.unwrapProvider)("basic.copy-to-clipboard")},56609:(e,u,t)=>{t.d(u,{H:()=>a});var n=t(48518),r=t(5543);const o=new Map;async function a(e){if(o.has(e))return o.get(e);const u=async function(e){let u=[];try{const t=await(0,r.x)(e);if(t){const e=["metricGroups"].join(","),{metricGroups:r}=await(0,n.y)("MODEL_OBJECT",t,{fields:e});Array.isArray(r)&&r.length&&(u=r)}}catch(e){console.error("Error fetching pre-generated metric groups:",e)}return u}(e);return o.set(e,u),u}},56819:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".container--YostHfxu{background:var(--elevo-component-background);-webkit-backdrop-filter:var(--elevo-component-backdrop-filter);backdrop-filter:var(--elevo-component-backdrop-filter);border-radius:var(--elevo-border-radius);padding:16px}.loading--FzSrGTPm{position:absolute;top:calc(50% - 7px);left:calc(50% - 7px)}",""]),a.locals={container:"container--YostHfxu",loading:"loading--FzSrGTPm"};const i=a},56938:(e,u,t)=>{t.d(u,{L:()=>h});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(72591),s=t.n(i),l=t(1740),c=t.n(l),d=t(88128),p=t.n(d),m=t(30855),E=t.n(m),A=t(93051),f=t.n(A),g=t(73656),F=t.n(g),D=t(65005),C={};C.styleTagTransform=F(),C.setAttributes=E(),C.insert=p().bind(null,"head"),C.domAPI=c(),C.insertStyleElement=f(),s()(D.A,C);const b=D.A&&D.A.locals?D.A.locals:void 0;var v=t(36903);function h(e){let{content:u,loading:t}=e;return r().createElement("div",{className:b["node-instruction"]},r().createElement("div",{className:a()(b.text,{[v.A["shine-text"]]:t}),title:u},u))}},57097:(e,u,t)=>{t.d(u,{l:()=>o});var n=t(41030),r=t(16854);function o(e,u){let{activeNodeId:t,nodes:o}=u;if(e.ctrlKey||e.altKey)return;const i=t?o.find((e=>e.id===t)):null,s=e.key;if(!i){if(" "===s&&!e.metaKey)return{action:"scroll",direction:e.shiftKey?"down":"up",range:"page"};if(e.shiftKey||!r.vL&&e.metaKey)return;switch(s){case"Home":return{action:"scroll",direction:"up",range:"document"};case"End":return{action:"scroll",direction:"down",range:"document"};case"ArrowUp":case"ArrowDown":{const u="ArrowUp"===s?"up":"down";return e.metaKey?{action:"scroll",direction:u,range:"document"}:{action:"scroll",direction:u,range:"line"}}case"ArrowLeft":case"ArrowRight":if(!e.metaKey)return{action:"scroll",direction:"ArrowLeft"===s?"left":"right",range:"line"}}return}if(e.shiftKey||!r.vL&&e.metaKey)return;const l=(u,t)=>{if(e.metaKey&&"x"===u)return;const r="x"===u?"y":"x",s=a(i.view),l=o.filter((e=>{let n,o;return e!==i&&"start"!==e.type&&"end"!==e.type&&"instruction"!==e.type&&(o=a(e.view),n=(o[u]-s[u])*t,n>0)&&n>Math.abs(s[r]-o[r])}));return(e.metaKey?n.maxBy:n.minBy)(l,(e=>{const t=a(e.view);return(s[r]-t[r])**2+(s[u]-t[u])**2}))};let c,d;switch(s){case"ArrowLeft":d="switch-active-node",c=l("x",-1);break;case"ArrowUp":d="switch-active-node",c=l("y",-1);break;case"ArrowRight":d="switch-active-node",c=l("x",1);break;case"ArrowDown":d="switch-active-node",c=l("y",1);break;case"Escape":d="switch-active-node",c=null;break;case"Enter":d="enter",c=i}return d&&void 0!==c?{action:d,node:c}:void 0}function a(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}},57451:(e,u,t)=>{t.d(u,{V:()=>g});var n=t(58377),r=t(37912);function o(e,u){const t=(Array.isArray(e)?e:[e]).map((e=>function(e,u){switch(null==e?void 0:e.action){case"update_variable":return{action:"context.replace",args:[e.payload.name,e.payload.value]};case"refresh_data_source":return{action:"context.refresh",args:[e.payload.name]};case"call_api":{var t;const{api:n,params:r}=e.payload;return{useProvider:`${n}:*`,params:r,callback:{success:null!==(t=e.callback)&&void 0!==t&&t.success?o(e.callback.success,u):void 0,error:{action:"handleHttpError"}}}}case"call_component":return{target:`[data-root-id="${u.rootId}"] [data-component-id="${e.payload.componentId}"]`,method:e.payload.method,args:e.payload.args};case"show_message":return{action:`message.${e.payload.type}`,args:[e.payload.content]}}}(e,u))).filter(Boolean);return t.length>0?t:void 0}var a=t(52810),i=t(37732),s=t(2098),l=t(65971),c=t(10102);function d(e,u,t){let n;if(null!=e&&e.size&&null!=u&&u.length){const r=new Map;for(const e of u)e.objectId&&r.set(e.name,e.objectId);const o=new Map;for(const e of null!=t?t:[]){const u=(0,c.strictCollectMemberUsage)(e.value,"CTX");o.set(e.name,u)}const a=new Set,i=e=>{if(a.has(e))return!1;a.add(e);const u=r.get(e);if(u)return n=u,!0;const t=o.get(e);for(const e of null!=t?t:[])if(i(e))return!0;return!1};for(const u of e)if(i(u))break}return n}async function p(e,u,t){var n;const{properties:o}=e,{dataSource:a,size:i,columns:c,rowKey:p,pagination:m,...E}=o,A=(0,r.jV)(a),f=d(A.usedContexts,u.dataSources,u.variables),g=f?await(0,l.Q)(f):void 0,F=new Map;if(null!=g&&g.size)for(const e of c){const u=g.get(e.dataIndex);if(u){const t=(0,s.m)(u,".cellData");t&&(t.slot=`[${e.dataIndex}]`,F.set(e.dataIndex,t))}}return{brick:"eo-next-table",properties:{dataSource:A.isString?A.embedded:a,...E,rowKey:null!=p?p:null===(n=c[0])||void 0===n?void 0:n.key,columns:c.map((e=>F.get(e.dataIndex)?{...e,useChildren:`[${e.dataIndex}]`}:e)),themeVariant:"elevo",scrollConfig:{x:"max-content"},...t.expanded?{bordered:!0,pagination:m,size:"large"}:{size:"middle",pagination:!1}},children:F.size>0?Array.from(F.values()):[]}}async function m(e,u,t){let{properties:n}=e;const{dataSource:o,title:a,columns:i,list:c,...p}=n,m=(0,r.jV)(o),E=d(m.usedContexts,u.dataSources,u.variables),A=E?await(0,l.Q)(E):void 0,f=new Map;if(null!=A&&A.size)for(const e of c)if(e.field){const u=A.get(e.field);if(u){const t=(0,s.w)(u,e.field);t&&(t.slot=`[${e.field}]`,f.set(e.field,t))}}return{brick:"eo-descriptions",properties:{...p,dataSource:m.isString?m.embedded:o,list:c.map((e=>(e.field?f.get(e.field):void 0)?{label:e.label,useChildren:`[${e.field}]`}:e)),column:t.expanded?3:1,themeVariant:"elevo"},children:f.size>0?Array.from(f.values()):[]}}var E=t(56609);const A=["#336EF4","#45CAFF","#41CDCF","#8146F3","#F8A075","#94E65E","#57689C","#C285EF","#FAC60B","#E4551F","#8984FF","#2540FF","#08BF33","#F7811C","#AC7CFF","#1BA5DC","#E89716","#76A6F5","#4F69FF"];function f(e,u){const t=e.slice(1),n=parseInt(t,16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, ${u})`}async function g(e,u){var t,n;const s=async t=>{var n;let a=null;switch(t.name){case"eo-list":a=await function(e){let{properties:u}=e;const t=u,{dataSource:n,fields:o,variant:a}=t,i=(0,r.jV)(n);return{brick:"eo-list",properties:{variant:a,dataSource:i.isString?i.embedded:n,fields:o,themeVariant:"elevo"}}}(t);break;case"eo-table":a=await p(t,e,u);break;case"eo-descriptions":a=await m(t,e,u);break;case"eo-dashboard":a=await async function(e,u,t){let{properties:n}=e;const{dataSource:o,groupField:a,widgets:i}=n,s=a?"#showKey":void 0,{isString:l,expression:c,usedContexts:p}=(0,r.jV)(o),m=l?`<%= CTX.__builtin_fn_extractList((${c})) %>`:o;if(t.expanded){let e=i;const t=d(p,u.dataSources,u.variables),n=t?await(0,E.H)(t):[];if(n.length>0){e=[];const u=new Set,t=new Set(i.map((e=>e.metric.id)));for(const r of i){if(u.has(r.metric.id))continue;const o={...r};e.push(o);const a=n.find((e=>e.metrics.includes(r.metric.id)));if(a){const e=a.metrics.filter((e=>t.has(e)));if(e.length>1){o.relevantMetrics=e,o.counterMetric=a.counter,o.groupTitle=a.group;for(const n of e)u.add(n),t.delete(n)}}}}let r=0;return{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(500px, 1fr))",gap:"16px"}},children:e.map((e=>{var u,t;const{title:n,metric:o,size:a,precision:i,min:l,max:d}=e,p=null!==(u=null===(t=e.relevantMetrics)||void 0===t?void 0:t.length)&&void 0!==u?u:s?2:1,E=Array.from({length:p},((e,u)=>A[(r+u)%A.length]));r+=p;const g="load"===o.unit?"":o.unit,F={brick:"chart-v2.time-series-chart",properties:{data:m,xField:"time",...e.relevantMetrics?{yFields:`<% CTX.__builtin_fn_getMetricDisplayNames((${c}).displayNameList, ${JSON.stringify(e.relevantMetrics)}) %>`}:{yField:`<% CTX.__builtin_fn_getMetricDisplayNames((${c}).displayNameList, [${JSON.stringify(o.id)}])[0] %>`},...e.counterMetric?{forceAbsoluteNumbers:!0,series:{[e.counterMetric]:{isNegative:!0}}}:null,height:"large"===a?230:200,timeFormat:"HH:mm",...e.relevantMetrics||s?null:{areaOptions:{style:{fill:`l(90) 0:${E[0]} 1:#ffffff`}}},axis:{yAxis:{unit:g,precision:i,...e.counterMetric?null:"percent(1)"===g?{min:0,max:1}:"percent(100)"===g||"%"===g?{min:0,max:100}:{min:l,max:d},shape:"smooth"}},groupField:s,areaShape:"smooth",legends:!(!e.relevantMetrics&&!s),colors:E,tooltip:{marker:{fill:E[0],stroke:"#fff",lineWidth:2,shadowColor:E[0],shadowBlur:8,shadowOffsetX:0,shadowOffsetY:4},domStyles:{"g2-tooltip":{background:[`radial-gradient( farthest-corner at -20px 150px, ${E[0]} 0%, rgba(238,238,238,0) 60%)`,"linear-gradient( 180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%)"].join(", "),boxShadow:`0px 4px 8px 0px ${f(E[0],.08)}`,borderRadius:"8px",border:"1px solid rgba(255,255,255,1)",backdropFilter:"blur(3px)"}}}}};return{brick:"div",properties:{style:{background:"rgba(255,255,255,0.8)",boxShadow:"0px 2px 4px 0px rgba(0,0,0,0.06)",borderRadius:"8px",padding:"16px 20px 20px"}},children:[{brick:"div",properties:{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"},textContent:e.groupTitle||n||o.id}},F]}}))}}return s?{brick:"div",properties:{style:{display:"flex",flexDirection:"column",gap:"8px"}},children:[{brick:":forEach",dataSource:`<%= CTX.__builtin_fn_groupMetricData(CTX.__builtin_fn_extractList((${c})), ${JSON.stringify(s)}) %>`,children:[{brick:"div",properties:{textContent:"<% `${ITEM.group}:` %>",style:{fontWeight:"500"}}},{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(205px, 1fr))",gap:"10px",marginBottom:"8px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:"<% ITEM.list %>",xField:"time",yField:n.id,lineColor:A[u%A.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue(ITEM.list, ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}]}]}:{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(205px, 1fr))",gap:"10px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:m,xField:"time",yField:n.id,lineColor:A[u%A.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue((${l?`CTX.__builtin_fn_extractList((${c}))`:JSON.stringify(null!=o?o:null)}), ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}}(t,e,u);break;case"eo-button":a=await function(e){const{properties:u}=e;return{brick:"eo-button",properties:{...u,themeVariant:"elevo"}}}(t);break;case"eo-form":a=await function(e){const{properties:u}=e,{values:t}=null!=u?u:{};return{brick:"eo-form",properties:{values:null!=t?t:{},themeVariant:"elevo"}}}(t);break;case"eo-toolbar":a=await{brick:"eo-flex-layout",properties:{gap:"0.5em"}};break;case"eo-modal":a=await function(e){const{properties:u}=e,{title:t,confirmText:n,cancelText:r}=u;return{brick:"eo-modal",portal:!0,properties:{themeVariant:"elevo",modalTitle:t,confirmText:n,cancelText:r,keyboard:!0}}}(t);break;case"eo-search":case"eo-input":case"eo-number-input":case"eo-textarea":case"eo-select":case"eo-radio":case"eo-checkbox":case"eo-switch":case"eo-date-picker":case"eo-time-picker":a=await function(e,u){const{properties:t}=e;let n=u,r={...t,themeVariant:"elevo"};switch(n){case"eo-search":r={...r,trim:!0};break;case"eo-number-input":n="eo-input",r={type:"number",...r}}return{brick:n,properties:r}}(t,t.name)}return a?(t.componentId&&(null!==(l=(i=a).properties)&&void 0!==l||(i.properties={}),null!==(g=(c=a.properties).dataset)&&void 0!==g||(c.dataset={}),a.properties.dataset.componentId=t.componentId),a.events=function(e,u){const t={};for(const[r,a]of Object.entries(null!==(n=e.events)&&void 0!==n?n:{})){var n;switch(e.name){case"table":switch(r){case"select":{const e=o(a,u);e&&(t["row.select.v2"]=e);break}case"sort":{const e=o(a,u);e&&(t["sort.change"]=e);break}case"paginate":{const e=o(a,u);e&&(t["page.change"]=e);break}}break;case"button":if("click"===r){const e=o(a,u);e&&(t.click=e)}break;case"form-item":switch(e.properties.type){case"search":if("search"===r){const e=o(a,u);e&&(t.search=e)}break;case"select":if("change"===r){const e=o(a,u);e&&(t["change.v2"]=e)}}break;default:{const e=o(a,u);e&&(t[r]=e)}}}return Object.keys(t).length>0?t:void 0}(t,u),null!==(n=t.children)&&void 0!==n&&n.length&&(a.children=(await Promise.all(t.children.map(s))).filter(Boolean)),a):null;var i,l,c,g},l=[...(g=null!==(t=e.dataSources)&&void 0!==t?t:[],g.map((e=>({name:e.name,resolve:{useProvider:`${e.api}:*`,params:e.params,..."easyops.api.data_exchange.olap@Query"===e.api&&(0,i.isObject)(e.params)?{params:{...e.params,translate:["#showKey"],limit:void 0,limitBy:void 0,order:void 0,displayName:!0}}:e.transform?{transform:{value:e.transform}}:null},track:!0})))),...(c=null!==(n=e.variables)&&void 0!==n?n:[],c.map((e=>{let{name:u,value:t}=e;return{name:u,value:t}}))),{name:"__builtin_fn_mergeTexts",value:F},{name:"__builtin_fn_getLatestMetricValue",value:C},{name:"__builtin_fn_extractList",value:b},{name:"__builtin_fn_groupMetricData",value:v},{name:"__builtin_fn_getMetricDisplayNames",value:h}];var c,g;const D=(await Promise.all(e.components.map(s))).filter(Boolean);return{brick:"eo-content-layout",children:e.components.every((e=>["form","descriptions","button"].includes(e.name)))?[(0,a.i)(D,u)]:D,context:l}}function F(e){const u=[];for(const t of e)"text"===t.type?u.push(t.text.trim()):u.push(D(t.value));return u.join("")}function D(e){if(Array.isArray(e))return e.map(D).join("");const u=typeof e;if("string"===u||"number"===u)return String(e);if("object"===u&&null!==e)throw new Error("Can not render object as text");return""}function C(e,u){var t;let{metric:r,precision:o}=u;const a=null==e||null===(t=e.findLast)||void 0===t||null===(t=t.call(e,(e=>null!=e[r.id])))||void 0===t?void 0:t[r.id],i="load"===r.unit?"":r.unit;return n.pipes.unitFormat(a,i,o).join("")}function b(e){return Array.isArray(e)?e:null==e?void 0:e.list}function v(e,u){if(!e||!Array.isArray(e)||0===e.length)return[];const t=new Map;for(const n of e){const e=n[u];let r=t.get(e);r||t.set(e,r={group:e,list:[]}),r.list.push(n)}return Array.from(t.values())}function h(e,u){return u.map((u=>{var t,n;return null!==(t=null==e||null===(n=e.find((e=>e.metric_name===u)))||void 0===n?void 0:n.metric_display_name)&&void 0!==t?t:u}))}},57617:(e,u,t)=>{t.d(u,{A:()=>p});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o),i=t(20062),s=t.n(i),l=new URL(t(63747),t.b),c=a()(r()),d=s()(l);c.push([e.id,`.node-job--soTYrcA7{width:var(--cruise-canvas-node-width-medium);max-width:90vw;background:linear-gradient(180deg,#f5f8ff 0%,#edf0f9 100%);box-shadow:0px 4px 10px 0px rgba(177,149,207,0.4),0px 2px 4px 0px rgba(0,0,0,0.06);border-radius:12px;border:1px solid rgba(255,255,255,0.5);padding:8px;position:relative}.node-job--soTYrcA7.active--WIcgH7xW{border-color:#a1b5ff}.background--CKldFV7M{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:12px;background-image:url(${d});background-repeat:no-repeat;background-position:top right;z-index:0;transition:opacity 0.15s;opacity:0}.node-job--soTYrcA7.active--WIcgH7xW .background--CKldFV7M,\n.node-job--soTYrcA7:hover .background--CKldFV7M{opacity:1}.background--CKldFV7M ~ *{position:relative;z-index:1}.fit-content--HuAZHd31{min-width:var(--cruise-canvas-node-width-medium);width:min-content}.node-job--soTYrcA7.large--bn_n8RL5{width:var(--cruise-canvas-node-width-large)}.ask-user--lf925zGf{background:rgba(255,255,255,0.4);box-shadow:0px 4px 10px 0px rgba(54,64,80,0.18);border-color:rgba(255,255,255,0.5);-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px)}.error--IwtdD0T6{box-shadow:inset 0px 0px 8px 2px rgba(242,76,37,0.6);border-color:rgba(242,76,37,0.6)}.heading--GZqrhPqL{display:none;align-items:center;border-bottom:1px solid #e2e2ec;padding:0 5px 5px;font-size:13px;color:#8c8c8c}.icon--Rb_vveHN{margin-right:6px;font-size:14px}.tool--RR3S1Z1V{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;--shine-text-color:#8c8c8c;--shine-text-highlight-color:#dcdcdc}.time--eHXSEjt6{margin-left:6px}.body--V34MsV9R{padding:9px 4px 4px}.scrollable--LudR_5Pj{max-height:462px;overflow-y:auto}.message--iVQBlD6k:not(:first-child){margin-top:6px}.ask-user--lf925zGf .heading--GZqrhPqL{border-bottom:none}.role-assistant--Y8vd9Oms,\n.role-user--nAW4Hzsu{background:var(--cruise-canvas-input-background);border-radius:9px;border:1px solid #ccd1de;padding:6px 16px}.role-user--nAW4Hzsu{white-space:pre-wrap}.human-input--wFc6ovnT{margin-top:1em;display:block;width:100%;padding:10px 16px;color:inherit;background:var(--cruise-canvas-input-background);box-shadow:var(--cruise-canvas-input-box-shadow);border-radius:9px;border:none;font-size:14px;line-height:22px;height:64px}.human-input--wFc6ovnT:focus{outline:none}.human-input--wFc6ovnT::placeholder{color:#bfbfbf}.node-job--soTYrcA7 *::-webkit-scrollbar{width:5px;height:5px;background:transparent}.node-job--soTYrcA7 *::-webkit-scrollbar-thumb{background-color:#d8d8d8;border-radius:3px}.node-job--soTYrcA7 *::-webkit-scrollbar-track{background:transparent}`,""]),c.locals={"node-job":"node-job--soTYrcA7",active:"active--WIcgH7xW",background:"background--CKldFV7M","fit-content":"fit-content--HuAZHd31",large:"large--bn_n8RL5","ask-user":"ask-user--lf925zGf",error:"error--IwtdD0T6",heading:"heading--GZqrhPqL",icon:"icon--Rb_vveHN",tool:"tool--RR3S1Z1V",time:"time--eHXSEjt6",body:"body--V34MsV9R",scrollable:"scrollable--LudR_5Pj",message:"message--iVQBlD6k","role-assistant":"role-assistant--Y8vd9Oms","role-user":"role-user--nAW4Hzsu","human-input":"human-input--wFc6ovnT"};const p=c},58137:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".heading--A42VHBlP{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.title--xJaVhVYK{font-size:12px;text-indent:4px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;--shine-text-color:rgba(38,38,38,0.65);--shine-text-highlight-color:#dcdcdc}.expand--ksu6jxIu{display:flex;background:none;border:none;padding:3px;cursor:pointer;color:#595959}.expand--ksu6jxIu:hover{color:var(--elevo-color-brand)}",""]),a.locals={heading:"heading--A42VHBlP",title:"title--xJaVhVYK",expand:"expand--ksu6jxIu"};const i=a},58231:(e,u,t)=>{t.d(u,{f:()=>l});var n=t(18769),r=t(67566),o=t(8324),a=t(16854),i=t(29443);function s(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey&&a.vL?10:1)}function l(e){let{rootRef:u,zoomable:t,scrollable:l,pannable:c,pannableWithCtrl:d,scaleRange:p,manualScrolledUpRef:m,onSwitchActiveTarget:E}=e;const[A,f]=(0,n.useState)(!1),[g,F]=(0,n.useState)({k:1,x:0,y:0}),D=(0,n.useRef)(g),C=(0,n.useMemo)((()=>null!=p?p:[a.sS,a.Yt]),[p]),b=(0,n.useMemo)((()=>(0,o.s_)().wheelDelta(s)),[]);return(0,n.useEffect)((()=>{let e=!1;b.scaleExtent(t?C:[1,1]).on("start",(()=>{e=!1,f(!0)})).on("zoom",(u=>{e=!0,F(u.transform),D.current=u.transform})).on("end",(()=>{f(!1),e||null==E||E(null)})).filter((e=>("wheel"===e.type?e.ctrlKey:d?c||e.ctrlKey:!e.ctrlKey)&&!e.button))}),[E,C,t,b,d,c]),(0,n.useEffect)((()=>{if(d){const e=e=>{e.ctrlKey&&e.preventDefault()};return document.addEventListener("contextmenu",e,!0),()=>{document.removeEventListener("contextmenu",e,!0)}}}),[d]),(0,n.useEffect)((()=>{const e=u.current;if(!e)return;const n=(0,r.A)(e),o=()=>{n.on(".zoom",null).on(".zoom.custom",null).on("wheel",null)};if(t||l||c)return(t||l)&&n.on("wheel.zoom.custom",(e=>{if(!e.ctrlKey&&l){const u=e.target.closest(`.${i.A.body}`);if(u&&function(e,u){if(!u)return!1;if(u>0){const u=e.scrollHeight-e.clientHeight;return e.scrollTop<=u-1}return e.scrollTop>=1}(u,e.deltaY))return;e.cancelable&&(e.deltaY<0&&(m.current=!0),e.preventDefault(),b.translateBy(n,e.wheelDeltaX/5,e.wheelDeltaY/5))}})),n.call(b).on("wheel",(e=>{(l||t&&e.ctrlKey)&&e.preventDefault()})).on("dblclick.zoom",null),c||d||n.on("mousedown.zoom",null),c||n.on("touchstart.zoom",null).on("touchmove.zoom",null).on("touchend.zoom",null),o;o()}),[d,c,u,m,l,t,b]),{grabbing:A,transform:g,transformRef:D,zoomer:b,scaleRange:C}}},58729:(e,u,t)=>{t.d(u,{c:()=>N});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(36903),s=t(86767),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),m=t(88128),E=t.n(m),A=t(30855),f=t.n(A),g=t(93051),F=t.n(g),D=t(73656),C=t.n(D),b=t(21073),v={};v.styleTagTransform=C(),v.setAttributes=f(),v.insert=E().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=F(),c()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0;var B=t(39626),x=t(4273);const y=r().lazy((async()=>({default:await(0,x.asyncWrapBrick)("eo-display-canvas")})));var k=t(55805);const w=[34,34],_=[12,54,34],S=[B.A],T={lib:"fa",prefix:"fas",icon:"expand"};function N(e){let{componentGraph:u,filter:t,autoSize:o}=e;const l=(0,n.useMemo)((()=>{if("all"!==t){const e=u.nodes.filter((e=>!!e.data.status)),n=new Set(e.map((e=>e.id))),r=u.edges.filter((e=>n.has(e.source)&&("related"===t||n.has(e.target)))),o="minimal"===t?n:new Set([...n,...new Set(r.map((e=>e.target)))]);return[...r,...u.nodes.filter((e=>o.has(e.id)))]}return[...u.edges,...u.nodes]}),[u,t]),c=(0,n.useMemo)((()=>({padding:_,nodesep:90,ranksep:70})),[]),d=(0,n.useMemo)((()=>[{component:I}]),[]),p=(0,n.useMemo)((()=>[{strokeColor:"#8c8c8c"}]),[]),m=(0,n.useMemo)((()=>o?{width:"fit-content",height:"fit-content",minWidth:409,maxWidth:.9*window.innerWidth,minHeight:150}:void 0),[o]),E=(0,n.useRef)(null),A=(0,n.useCallback)((()=>{var e;null===(e=E.current)||void 0===e||e.center()}),[]);return r().createElement("div",{className:a()(i.A["table-container"],h.topology,{[h["auto-size"]]:o})},r().createElement(y,{ref:E,cells:l,layout:"dagre",layoutOptions:c,autoSize:m,defaultNodeSize:w,defaultNodeBricks:d,defaultEdgeLines:p,hideZoomBar:!0,scrollable:!1,extraStyleTexts:S}),r().createElement("div",{className:`${s.A.toolbar} ${h.toolbar}`},r().createElement(k.Py,{variant:"mini",icon:T,onClick:A})))}function I(e){let{node:u,refCallback:t}=e;return r().createElement("div",{className:a()("topology-node",{"topology-node-trouble":"trouble"===u.data.status,"topology-node-ok":"ok"===u.data.status}),ref:t},r().createElement(k.Bj,{lib:"fa",prefix:"fas",icon:"cube"}),r().createElement("div",{className:"topology-node-label"},u.data.name))}},58905:(e,u,t)=>{t.d(u,{A:()=>p});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o),i=t(20062),s=t.n(i),l=new URL(t(36811),t.b),c=a()(r()),d=s()(l);c.push([e.id,`.node-start--Mrh1iP5r{width:65px;height:65px;position:relative;overflow:visible}.icon--NxC4u6Wl{width:75px;height:75px;background-image:url(${d});background-size:75px 75px;background-repeat:no-repeat;background-position:center;position:absolute;left:-5px;top:-1px}`,""]),c.locals={"node-start":"node-start--Mrh1iP5r",icon:"icon--NxC4u6Wl"};const p=c},59533:(e,u,t)=>{t.d(u,{B:()=>o});var n=t(18769),r=t(16854);function o(e,u){return(0,n.useMemo)((()=>{if(!e)return null;const t=null!=u?u:[],n=[],o=[],a=[],i=[];n.push({type:"requirement",id:r.DE,content:e.requirement,state:0===t.length?"working":"completed"});const s=new Map,l=new Map,c=new Map,d=new Map,p=[],m=[],E=new Map;for(const e of t)if(e.parent){let u=l.get(e.parent);u||(u=[],l.set(e.parent,u)),u.push(e.id)}for(const e of t){s.set(e.id,e);for(const u of null!==(A=e.upstream)&&void 0!==A?A:[]){var A;let t=c.get(u);t||(t=[],c.set(u,t)),t.push(e.id)}var f;e.parent||(m.push(e.id),null!==(f=e.upstream)&&void 0!==f&&f.length||p.push(e.id))}const g=(e,u)=>{for(const t of e){E.set(t,u);const e=l.get(t),n=c.get(t);if(e){const r=e.filter((e=>{var u;return!(null!==(u=s.get(e).upstream)&&void 0!==u&&u.length)})),o=n?e.filter((e=>!c.has(e))):[];c.set(t,r);for(const e of o)c.set(e,[...n]);g(e,u+1)}}};g(m,0);for(const[e,u]of c)for(const t of u){let u=d.get(t);u||(u=[],d.set(t,u)),u.push(e)}const F=[],D=new Set,C=[...p];for(;C.length>0;){const e=C.shift();if(D.has(e))continue;D.add(e),F.push(e);const u=c.get(e);u&&C.push(...u)}const b=new Map([[r.DE,[r.DE]]]);for(const e of F){var v;const u=s.get(e),{messages:t}=u,r=Array.isArray(t)&&t.length>0||u.toolCall,o=[];if(u.instruction){const t=`instruction:${e}`;n.push({type:"instruction",id:t,job:u,state:u.state}),o.push(t),a.push({id:u.id,title:u.instruction,state:u.state,level:E.get(u.id)})}else null!==(v=u.toolCall)&&void 0!==v&&null!==(v=v.annotations)&&void 0!==v&&v.title&&a.push({id:u.id,title:u.toolCall.annotations.title,state:u.state,level:E.get(u.id)});if(r||!u.instruction){const e=`job:${u.id}`;n.push({type:"job",id:e,job:u,state:u.state}),o.push(e)}if(u.generatedView){const e=`view:${u.id}`;n.push({type:"view",id:e,job:u}),o.push(e),i.push({id:u.id,view:u.generatedView})}b.set(e,o)}for(const e of F){const u=b.get(e),t=d.get(e);for(const e of null!=t?t:[r.DE]){const t=b.get(e);o.push({source:t[t.length-1],target:u[0]})}for(let e=1;e<u.length;e++)o.push({source:u[e-1],target:u[e]})}return{nodes:n,edges:o,nav:a,views:i,jobLevels:E}}),[e,u])}},61015:(e,u,t)=>{t.d(u,{b:()=>v});var n=t(18769),r=t.n(n),o=t(72591),a=t.n(o),i=t(1740),s=t.n(i),l=t(88128),c=t.n(l),d=t(30855),p=t.n(d),m=t(93051),E=t.n(m),A=t(73656),f=t.n(A),g=t(32145),F={};F.styleTagTransform=f(),F.setAttributes=p(),F.insert=c().bind(null,"head"),F.domAPI=s(),F.insertStyleElement=E(),a()(g.A,F);const D=g.A&&g.A.locals?g.A.locals:void 0;var C=t(55805),b=t(2460);function v(e){let{taskDone:u,skipToResults:t,watchAgain:n}=e;return r().createElement("div",{className:D.container},r().createElement("div",{className:D.replay},r().createElement("div",{className:D.text},u?(0,b.t)(b.K.REPLAY_COMPLETED):(0,b.t)(b.K.REPLAYING)),u?r().createElement(C.Gx,{type:"primary",themeVariant:"elevo",className:D.button,onClick:n},(0,b.t)(b.K.WATCH_AGAIN)):r().createElement(C.Gx,{type:"primary",themeVariant:"elevo",className:D.button,onClick:t},(0,b.t)(b.K.SKIP_TO_RESULTS))))}},62601:(e,u,t)=>{function n(e,u,t,n,r){const[o,a]=u,[i,s,l,c]=t,{x:d,y:p,width:m,height:E}=e,A=d+m,f=p+E,g=i-(p*n.k+n.y),F=a-l-(f*n.k+n.y),D=g>0||"start"===r?g/n.k:F<0?F/n.k:0,C=c-(d*n.k+n.x),b=o-s-(A*n.k+n.x);return{x:C>0?C/n.k:b<0?b/n.k:0,y:D}}t.d(u,{D:()=>n})},62897:(e,u,t)=>{t.d(u,{d:()=>L});var n=t(18769),r=t.n(n),o=t(23081),a=t(53373),i=t.n(a),s=t(45060),l=t(55805),c=t(85620),d=t(72591),p=t.n(d),m=t(1740),E=t.n(m),A=t(88128),f=t.n(A),g=t(30855),F=t.n(g),D=t(93051),C=t.n(D),b=t(73656),v=t.n(b),h=t(85533),B={};B.styleTagTransform=v(),B.setAttributes=F(),B.insert=f().bind(null,"head"),B.domAPI=E(),B.insertStyleElement=C(),p()(h.A,B);const x=h.A&&h.A.locals?h.A.locals:void 0;var y=t(36903),k=t(86767),w=t(41763),_=t(2460),S=t(16854),T=t(84001);const N=t.p+"images/28ac62e6.png",I={lib:"antd",icon:"download"};function $(){const{innerWidth:e}=window;return e<800?e:e<1280?.9*e:1246}function L(e){let{file:u}=e;const t=(0,n.useRef)(null),{setActiveFile:a}=(0,n.useContext)(c.Q),{bytes:d,uri:p,mimeType:m,name:E}=u,A=m||(0,T.xf)(E),[f,g]=(0,n.useState)("loading"),[F,D]=(0,n.useState)();(0,n.useEffect)((()=>{if("application/pdf"!==A)if(g("loading"),"text/markdown"===A){if(d)return D(atob(d)),void g("loaded");if(p){let e=!1;return(async()=>{try{const u=await fetch(new URL(p,`${location.origin}${(0,o.getBasePath)()}`));if(!u.ok)throw new Error(`Failed to fetch file: ${u.statusText}`);const t=await u.text();if(e)return;D(t),g("loaded")}catch(e){console.error("Error fetching file:",e),g("error")}})(),()=>{e=!0}}}else g("error");else g(p||d?"loaded":"error")}),[d,A,p]);const C=(0,n.useCallback)((()=>{const{bytes:e,uri:t,mimeType:n,name:r}=u,a=r||(0,_.t)(_.K.UNTITLED);if(e)(0,s.saveAs)(new Blob([atob(e)],{type:n}),a);else if(t){const e=document.createElement("a");e.href=new URL(t,`${location.origin}${(0,o.getBasePath)()}`).toString(),e.download=a,document.body.appendChild(e),e.click(),document.body.removeChild(e)}}),[u]),b=(0,n.useCallback)((()=>{var e;null===(e=t.current)||void 0===e||e.close()}),[]),v=(0,n.useCallback)((()=>{setTimeout((()=>{a(null)}),300)}),[a]);(0,n.useEffect)((()=>{setTimeout((()=>{var e;null===(e=t.current)||void 0===e||e.open()}))}),[]);const[h,B]=(0,n.useState)($);return(0,n.useEffect)((()=>{const e=()=>{B($)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),r().createElement(l.xb,{ref:t,customTitle:u.name||(0,_.t)(_.K.UNTITLED),width:h,closable:!1,mask:!0,maskClosable:!0,keyboard:!0,onClose:v},"loading"===f?r().createElement("div",{className:x.loading},r().createElement(l.Bj,S.Xc)):"error"===f?r().createElement("div",{className:x.error},r().createElement("img",{src:N,alt:"Unpreviewable",width:591,height:249}),r().createElement("p",null,(0,_.t)(_.K.FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX),r().createElement(l.Gx,{themeVariant:"elevo",type:"primary",onClick:C},(0,_.t)(_.K.DOWNLOAD)),(0,_.t)(_.K.FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX))):"application/pdf"===A?r().createElement("embed",{className:x.embed,src:p?new URL(p,`${location.origin}${(0,o.getBasePath)()}`).toString():`data:application/pdf;base64,${d}`,type:A,title:E,width:"100%",height:"100%"}):r().createElement("div",{className:i()(x.content,y.A.markdown)},r().createElement(w.w,{content:F})),r().createElement("div",{slot:"extra",className:x.toolbar},r().createElement(l.Py,{icon:I,onClick:C}),r().createElement("div",{className:k.A.divider}),r().createElement(l.Py,{icon:S.LQ,onClick:b})))}},63747:(e,u,t)=>{e.exports=t.p+"images/98d93242.png"},65005:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".node-instruction--Gu7k6RDs{max-width:437px;max-width:min(437px,90vw);background:rgba(255,255,255,0.2);box-shadow:0px 4px 10px 0px rgba(54,64,80,0.08);border-radius:9999px;border:1px solid rgba(255,255,255,0.284);padding:6px 16px;color:rgba(0,0,0,0.45)}.text--jsSeLl7B{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;--shine-text-color:rgba(0,0,0,0.45);--shine-text-highlight-color:#dcdcdc}",""]),a.locals={"node-instruction":"node-instruction--Gu7k6RDs",text:"text--jsSeLl7B"};const i=a},65971:(e,u,t)=>{t.d(u,{Q:()=>s});var n=t(48518);function r(e,u){return null==e?void 0:e.reduce(((e,t)=>!e||Math.abs(t.visualWeight-u)<Math.abs(e.visualWeight-u)?t:e))}var o=t(5543);const a=new Map,i=new Map;async function s(e,u){if(a.has(e))return a.get(e);const t=async function(e,u){const t=new Map;try{const s=await async function(e){if(i.has(e))return i.get(e);const u=async function(e){const u=await(0,o.x)(e);if(!u)return null;const t=["attrList.id","attrList.generatedView.list"].join(","),{attrList:r}=await(0,n.y)("MODEL_OBJECT",u,{fields:t});return r}(e);return i.set(e,u),u}(e);if(s)for(const e of s){var a;const n=r(null===(a=e.generatedView)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.list,null!=u?u:0);n&&t.set(e.id,n)}}catch(e){console.error("Error fetching pre-generated attr views:",e)}return t}(e,u);return a.set(e,t),t}},66653:(e,u,t)=>{t.d(u,{s:()=>T});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(71451),s=t(99126),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),m=t(88128),E=t.n(m),A=t(30855),f=t.n(A),g=t(93051),F=t.n(g),D=t(73656),C=t.n(D),b=t(30841),v={};v.styleTagTransform=C(),v.setAttributes=f(),v.insert=E().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=F(),c()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0;var B=t(55805),x=t(85620),y=t(2460),k=t(16854);const w={lib:"fa",prefix:"far",icon:"circle-pause"},_={lib:"fa",prefix:"far",icon:"circle-stop"},S={lib:"fa",prefix:"far",icon:"circle-play"};function T(e){let{taskState:u,taskDone:t}=e;const o=(0,n.useRef)(null),l=(0,n.useRef)(null),[c,d]=(0,n.useState)(""),p=(0,n.useRef)(""),[m,E]=(0,n.useState)(!1),{onPause:A,onResume:f,onCancel:g,supports:F}=(0,n.useContext)(x.Q),[D,C]=(0,n.useState)(null);(0,n.useEffect)((()=>{C(null)}),[u]);const b=(0,n.useCallback)((()=>{f(),C("toggle")}),[f]),v=(0,n.useCallback)((()=>{A(),C("toggle")}),[A]),T=(0,n.useCallback)((async()=>{try{await(0,B.ui)({type:"confirm",title:(0,y.t)(y.K.CONFIRM_TO_CANCEL_THE_TASK_TITLE),content:(0,y.t)(y.K.CONFIRM_TO_CANCEL_THE_TASK_CONTENT)})}catch{return}g(),C("cancel")}),[g]),N=(0,n.useCallback)((e=>{t&&((0,B.ui)({type:"warn",title:"提示",content:"功能暂未实现"}),p.current="",d(""))}),[t]),I=(0,n.useCallback)((e=>{e.currentTarget.value&&(null==N||N(e.currentTarget.value))}),[N]),$=(0,n.useCallback)((e=>{p.current=e.target.value,d(e.target.value)}),[]),L=(0,n.useCallback)((()=>{null==N||N(p.current)}),[N]);(0,n.useEffect)((()=>{const e=null==o?void 0:o.current;if(!e)return;const u=new s.A((u=>{for(const t of u)t.target===e&&(t.contentBoxSize?t.contentBoxSize[0]?t.contentBoxSize[0].blockSize:t.contentBoxSize.blockSize:t.contentRect.height)>52&&E(!0)}));return u.observe(e),()=>{u.disconnect()}}),[]),(0,n.useEffect)((()=>{c||E(!1)}),[c]);const R=(0,n.useCallback)((e=>{var u;for(const u of e.nativeEvent.composedPath())if(u instanceof HTMLTextAreaElement||u instanceof HTMLButtonElement)return;null===(u=l.current)||void 0===u||u.focus()}),[]);return r().createElement("div",{className:h.container,onClick:R},r().createElement("div",{className:a()(h.box,{[h.wrap]:m})},r().createElement("div",{className:h.input,ref:o},r().createElement(i.e,{containerRef:o,ref:l,value:c,minRows:1,maxRows:4,borderSize:0,paddingSize:16,autoResize:!0,placeholder:(0,y.t)(y.K.SEND_MESSAGE),submitWhen:"enter-without-shift",onSubmit:I,onChange:$})),r().createElement("div",{className:h.toolbar},t||null==F||!F.intercept?r().createElement("button",{className:h["btn-send"],disabled:!c||!t,onClick:L},r().createElement(B.Bj,{lib:"fa",prefix:"fas",icon:"arrow-up"})):r().createElement(r().Fragment,null,"toggle"===D?r().createElement(B.Py,{icon:k.Xc,disabled:!0}):"paused"===u?r().createElement(B.Py,{icon:S,disabled:!!D,tooltip:D?void 0:(0,y.t)(y.K.RESUME_THE_TASK),onClick:b}):r().createElement(B.Py,{icon:w,disabled:!!D,tooltip:D?void 0:(0,y.t)(y.K.PAUSE_THE_TASK),onClick:v}),"cancel"===D?r().createElement(B.Py,{icon:k.Xc,disabled:!0}):r().createElement(B.Py,{icon:_,disabled:!!D,tooltip:D?void 0:(0,y.t)(y.K.CANCEL_THE_TASK),onClick:T})))))}},67993:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".progress-line--CX_xuAHC{--breathing-color:rgba(205,205,217,0.7);--breathing-color-2:rgba(205,205,217,0);display:flex;flex-direction:column}.progress-line--CX_xuAHC .step--YXd66tSR{position:relative;display:flex;align-items:center;padding:10px 4px 10px 16px;color:rgba(0,0,0,0.5)}.progress-line--CX_xuAHC .step--YXd66tSR .axis--T4nVxQt5{position:absolute;top:0;bottom:0;left:14px;width:1px}.progress-line--CX_xuAHC .step--YXd66tSR .axis--T4nVxQt5 .line--BUSBjzxD{width:1px;height:100%;background:linear-gradient(172deg,rgba(205,205,217,0) 0%,#cdcdd9 46%,rgba(205,205,217,0) 100%)}.progress-line--CX_xuAHC .step--YXd66tSR .axis--T4nVxQt5 .dot--TPMEta87{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:5px;height:5px;background:rgba(205,205,217,1);border-radius:50%}.progress-line--CX_xuAHC .step--YXd66tSR .progress--alc7SspF{padding:3px;margin:0 8px 0 12px;border-radius:10px;line-height:1;background:#ffffff}.progress-line--CX_xuAHC .step--YXd66tSR .progress--alc7SspF .count--RdZcMYhZ{font-weight:400}.progress-line--CX_xuAHC .step--YXd66tSR .progress--alc7SspF .total--BKoLTm8c{opacity:0.6}.progress-line--CX_xuAHC .step--YXd66tSR .description--AyfMh1_M{flex:1;color:#999}.progress-line--CX_xuAHC .step--YXd66tSR:last-child .progress--alc7SspF .count--RdZcMYhZ{font-weight:600}.failed--Q9TADo_k .step--YXd66tSR:last-child .axis--T4nVxQt5 .line--BUSBjzxD{background:linear-gradient(172deg,rgba(242,76,37,0) 0%,rgba(242,76,37,0.3) 47%,rgba(242,76,37,0) 100%)}.failed--Q9TADo_k .step--YXd66tSR:last-child .axis--T4nVxQt5 .dot--TPMEta87{background:rgba(255,154,120,1)}.failed--Q9TADo_k .step--YXd66tSR:last-child .progress--alc7SspF{background:#ffd6d6}.failed--Q9TADo_k .step--YXd66tSR:last-child .progress--alc7SspF .count--RdZcMYhZ{color:#f44336}",""]),a.locals={"progress-line":"progress-line--CX_xuAHC",step:"step--YXd66tSR",axis:"axis--T4nVxQt5",line:"line--BUSBjzxD",dot:"dot--TPMEta87",progress:"progress--alc7SspF",count:"count--RdZcMYhZ",total:"total--BKoLTm8c",description:"description--AyfMh1_M",failed:"failed--Q9TADo_k"};const i=a},69131:(e,u,t)=>{function n(e){return!!e.source}t.d(u,{F:()=>n})},69445:(e,u,t)=>{function n(e){let u=1/0,t=1/0,n=-1/0,r=-1/0;for(const o of e){const e=o.x+o.width,a=o.y+o.height;o.x<u&&(u=o.x),e>n&&(n=e),o.y<t&&(t=o.y),a>r&&(r=a)}return{x:u,y:t,width:n-u,height:r-t}}t.d(u,{o:()=>n})},71451:(e,u,t)=>{t.d(u,{e:()=>c});var n=t(89575),r=t(18769),o=t(59435),a=t(99126);const i=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"];let s;const l=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"metaKey":"ctrlKey",c=r.forwardRef(d);function d(e,u){let{autoResize:t,minRows:c,maxRows:d,borderSize:p,paddingSize:m,containerRef:E,value:A,style:f,submitWhen:g,onChange:F,onSubmit:D,onKeyDown:C,onCompositionStart:b,onCompositionEnd:v,...h}=e;const B=null==t||t,[x,y]=(0,r.useState)(null!=A?A:""),k=(0,r.useRef)(null),[w,_]=(0,r.useState)(null);(0,r.useImperativeHandle)(u,(()=>({focus:()=>{const e=k.current;if(e){var u;const t=null===(u=e.value)||void 0===u?void 0:u.length;e.focus(),t&&e.setSelectionRange(t,t)}}})),[]);const S=(0,r.useCallback)((()=>{const e=k.current;if(e&&B){const u=function(e,u){const{minRows:t=null,maxRows:n=null,borderSize:r=2,paddingSize:o=8}=null!=u?u:{};s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));const a=window.getComputedStyle(e),l=i.map((e=>`${e}:${a.getPropertyValue(e)}`)).join(";");let c,d,p;s.setAttribute("style",`${l};\n min-height: 0!important;\n max-height: none!important;\n height: 0!important;\n visibility: hidden!important;\n overflow: hidden!important;\n position: absolute!important;\n z-index: -1000!important;\n top: 0!important;\n right: 0!important;\n pointer-events: none!important;\n`),s.value=e.value||e.placeholder||"";let m=s.scrollHeight+r;if(null!==t||null!==n){const e=parseFloat(window.getComputedStyle(s).getPropertyValue("line-height"));null!==t&&(c=e*t+o+r,m=Math.max(c,m)),null!==n&&(d=e*n+o+r,m<=d&&(p="hidden"),m=Math.min(d,m))}const E={height:m,overflowY:p,resize:"none"};return c&&(E.minHeight=c),d&&(E.maxHeight=d),E}(e,{minRows:c,maxRows:d,borderSize:p,paddingSize:m});(0,o.flushSync)((()=>{_(u)}))}}),[B,d,c,p,m]);(0,r.useEffect)((()=>{y(null!=A?A:"")}),[A]),(0,r.useEffect)((()=>{S()}),[S,x]);const T=(0,r.useRef)(!1),N=(0,r.useCallback)((e=>{T.current=!0,null==b||b(e)}),[b]),I=(0,r.useCallback)((e=>{T.current=!1,null==v||v(e)}),[v]),$=(0,r.useCallback)((e=>{T.current||("Enter"===e.key&&("enter-without-shift"===g?!e.shiftKey:"enter-with-mod"===g&&e[l])&&(e.preventDefault(),e.stopPropagation(),null==D||D(e)),null==C||C(e))}),[C,D,g]);return(0,r.useEffect)((()=>{const e=null==E?void 0:E.current;if(!e||!B)return;let u;const t=new a.A((t=>{for(const n of t)if(n.target===e){const e=n.contentBoxSize?n.contentBoxSize[0]?n.contentBoxSize[0].inlineSize:n.contentBoxSize.inlineSize:n.contentRect.width;if(void 0!==e&&e!==u){const t=!u;u=e,t||requestAnimationFrame(S)}}}));return t.observe(e),()=>{t.disconnect()}}),[B,E,S]),r.createElement("textarea",(0,n.A)({},h,{ref:k,value:x,style:{...f,...w},onChange:e=>{y(e.target.value),null==F||F(e)},onCompositionStart:N,onCompositionEnd:I,onKeyDown:$}))}},73349:(e,u,t)=>{t.d(u,{M:()=>N});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(55805),s=t(72591),l=t.n(s),c=t(1740),d=t.n(c),p=t(88128),m=t.n(p),E=t(30855),A=t.n(E),f=t(93051),g=t.n(f),F=t(73656),D=t.n(F),C=t(87545),b={};b.styleTagTransform=D(),b.setAttributes=A(),b.insert=m().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=g(),l()(C.A,b);const v=C.A&&C.A.locals?C.A.locals:void 0;var h=t(36903),B=t(2460),x=t(85620),y=t(42137),k=t(4833),w=t(58729),_=t(85993),S=t(41763);function T(){const{innerWidth:e}=window;return e<800?Math.min(500,e):e<1e3?.8*e:800}function N(e){var u;let{job:t}=e;const{setActiveToolCallJobId:o}=(0,n.useContext)(x.Q),s=t.toolCall,l=null===(u=s.annotations)||void 0===u?void 0:u.title,[c,d,p]=(0,n.useMemo)((()=>{var e;const u=null===(e=t.messages)||void 0===e?void 0:e.filter((e=>"tool"===e.role)),n=[],r=[];let o;for(const e of null!=u?u:[])for(const u of e.parts){var a;if("data"===u.type)switch(null===(a=u.data)||void 0===a?void 0:a.type){case"progress":o=u;continue;case"markdown":case"cmdb_instance_detail":continue;default:n.push(u);continue}else if("file"===u.type)continue;r.push(u)}return[o,n,r]}),[t.messages]),m=(0,n.useCallback)((()=>{setTimeout((()=>{o(null)}),300)}),[o]),E=(0,n.useRef)(null);(0,n.useEffect)((()=>{setTimeout((()=>{var e;null===(e=E.current)||void 0===e||e.open()}))}),[]);const[A,f]=(0,n.useState)(T);(0,n.useEffect)((()=>{const e=()=>{f(T)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const g=d.length>0||!!c,F=p.length>0,D=["working","input-required"].includes(t.state)&&g||F?"completed":t.state,C=t.isError||"failed"===D;return r().createElement(i.xb,{ref:E,customTitle:l||(0,B.t)(B.K[s.name])||s.name,width:A,closable:!0,mask:!0,maskClosable:!0,keyboard:!0,onClose:m},r().createElement(y.t,{job:t,variant:"read-only"}),r().createElement("div",{className:v.detail},r().createElement("div",{className:v.heading},(0,B.t)(B.K.ARGUMENTS),":"),r().createElement("div",{className:`${v.body} ${h.A.markdown}`},r().createElement(I,{content:s.originalArguments,maybeJson:!0}))),g&&r().createElement("div",{className:v.detail},r().createElement("div",{className:v.heading},(0,B.t)(B.K.PROCESS),":"),r().createElement("div",{className:`${v.body} ${h.A.markdown}`},d.map(((e,u)=>{var n,o,a;return"stream"===(null===(n=e.data)||void 0===n?void 0:n.type)?r().createElement($,{key:u,content:e.data.message}):"graph"===(null===(o=e.data)||void 0===o?void 0:o.type)&&["component_graph","component_graph_node"].includes(null===(a=e.data.message)||void 0===a?void 0:a.type)?t.componentGraph?r().createElement(w.c,{key:u,componentGraph:t.componentGraph,filter:"component_graph_node"===e.data.message.type?"related":"all"}):null:r().createElement(I,{key:u,content:JSON.stringify(e)})})),!!c&&r().createElement("div",{className:a()(v["progress-container"],{[v.fallback]:C})},r().createElement(k.W,{progress:c,failed:C})))),F&&r().createElement("div",{className:v.detail},r().createElement("div",{className:v.heading},(0,B.t)(B.K.RESPONSE),":"),r().createElement("div",{className:`${v.body} ${h.A.markdown}`},p.map(((e,u)=>{var t;return"data"===e.type&&"progress"===(null===(t=e.data)||void 0===t?void 0:t.type)?null:r().createElement(I,{key:u,content:"text"===e.type?e.text:JSON.stringify(e),maybeJson:"text"===e.type})})))))}function I(e){let{content:u,maybeJson:t}=e;const[o,i]=(0,n.useMemo)((()=>{if(t)try{const e=JSON.parse(null!=u?u:"");return[`\`\`\`json\n${JSON.stringify(e,null,2)}\n\`\`\``]}catch{}return[u,!0]}),[u,t]);return i?r().createElement(_.N,{className:a()("language-plaintext",v.fallback)},r().createElement("code",null,o)):r().createElement(S.w,{content:o})}function $(e){let{content:u}=e;return r().createElement("div",{className:a()(v["stream-message"],h.A.markdown)},r().createElement(S.w,{content:u}))}},76239:(e,u,t)=>{t.d(u,{W:()=>De});var n=t(89575),r=t(18769),o=t.n(r),a=t(71451),i=t(84598),s=t(53373),l=t.n(s),c=t(21302),d=t.n(c),p=t(23081),m=t(29443),E=t(36903),A=t(2460),f=t(4273);const g=o().lazy((async()=>({default:await(0,f.asyncWrapBrick)("cmdb-instances.cmdb-instances-input-form",{onChangeV2:"cmdb.instance.form.change.v2"})})));var F=t(55805),D=t(72591),C=t.n(D),b=t(1740),v=t.n(b),h=t(88128),B=t.n(h),x=t(30855),y=t.n(x),k=t(93051),w=t.n(k),_=t(73656),S=t.n(_),T=t(46629),N={};N.styleTagTransform=S(),N.setAttributes=y(),N.insert=B().bind(null,"head"),N.domAPI=v(),N.insertStyleElement=w(),C()(T.A,N);const I=T.A&&T.A.locals?T.A.locals:void 0;var $=t(85620);function L(e){let{jobId:u,confirmText:t,cancelText:n}=e;const{humanInput:a}=(0,r.useContext)($.Q);return o().createElement("div",{className:I["human-confirm"]},o().createElement(F.Gx,{type:"primary",themeVariant:"elevo",shape:"round",onClick:()=>{a(u,t||(0,A.t)(A.K.YES))}},t||(0,A.t)(A.K.YES)),o().createElement(F.Gx,{type:"text",themeVariant:"elevo",onClick:()=>{a(u,n||(0,A.t)(A.K.NO))},style:{marginLeft:"0.5em"}},n||(0,A.t)(A.K.NO)))}var R=t(41030),M=t(81380),P=t(5414),O=t(87046),j=t(56550),H=t(54921),z={};z.styleTagTransform=S(),z.setAttributes=y(),z.insert=B().bind(null,"head"),z.domAPI=v(),z.insertStyleElement=w(),C()(H.A,z);const K=H.A&&H.A.locals?H.A.locals:void 0;let V;function U(e){let{jobId:u,steps:t}=e;const[n,a]=(0,r.useState)([]),{humanInput:i}=(0,r.useContext)($.Q);(0,r.useEffect)((()=>{a((null!=t?t:[]).map((e=>({id:(0,R.uniqueId)("step-"),content:e}))))}),[t]);const s=(0,r.useMemo)((()=>n.map((e=>e.id))),[n]),[l,c]=(0,r.useState)(!1),d=(0,M.FR)((0,M.MS)(M.AN,{activationConstraint:{distance:1}})),p=(0,r.useMemo)((()=>[P.FN,P.Mk]),[]),m=(0,r.useCallback)((e=>{let{active:u,over:t}=e;t&&u.id!==t.id&&(a((e=>{const n=e.findIndex((e=>e.id===u.id)),r=e.findIndex((e=>e.id===t.id));return(0,O.be)(e,n,r)})),c(!0))}),[]),E=(0,r.useCallback)((()=>{i(u,JSON.stringify({type:"plan",steps:n.map((e=>e.content))}))}),[i,u,n]),f=(0,r.useCallback)((()=>{a((null!=t?t:[]).map((e=>({id:(0,R.uniqueId)("step-"),content:e})))),c(!1)}),[t]),g=(0,r.useCallback)((()=>{a((e=>e.concat({id:(0,R.uniqueId)("step-"),content:"",newlyAdded:!0}))),c(!0)}),[]),D=(0,r.useCallback)((e=>{a((u=>u.filter((u=>u.id!==e)))),c(!0)}),[]),C=(0,r.useCallback)(((e,u)=>{a((t=>t.map((t=>t.id===e?{...t,content:u}:t)))),c(!0)}),[]);return o().createElement(o().Fragment,null,o().createElement("div",{className:K.plan},o().createElement(M.Mp,{sensors:d,collisionDetection:M.fp,modifiers:p,onDragEnd:m},o().createElement(O.gB,{items:s,strategy:O._G},o().createElement("ul",{className:K.steps},n.map((e=>o().createElement(J,{key:e.id,id:e.id,content:e.content,newlyAdded:e.newlyAdded,onDelete:D,onUpdateContent:C})))))),o().createElement("div",{className:K.actions},o().createElement("button",{className:K["button-add"],onClick:g},o().createElement(F.Bj,{className:K["button-icon"],lib:"antd",icon:"plus"}),o().createElement("span",{className:K["button-text"]},(0,A.t)(A.K.ADD_STEP))),o().createElement("button",{className:K["button-reset"],hidden:!l,onClick:f},(0,A.t)(A.K.RESET_PLAN)))),o().createElement("div",{className:K.toolbar},o().createElement(F.Gx,{type:"primary",themeVariant:"elevo",shape:"round",onClick:E},(0,A.t)(A.K.CONFIRM))))}function J(e){let{id:u,content:t,newlyAdded:a,onDelete:i,onUpdateContent:s}=e;const{attributes:c,listeners:d,setNodeRef:p,transform:m,transition:E,isDragging:A}=(0,O.gl)({id:u}),f=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;a&&(null===(e=f.current)||void 0===e||e.focus())}),[]);const g=(0,r.useMemo)((()=>({transform:j.Ks.Transform.toString(m),transition:E})),[m,E]),[D,C]=(0,r.useState)(!1),b=(0,r.useCallback)((()=>{C(!0)}),[]),v=(0,r.useCallback)((e=>{C(!1);const n=e.currentTarget.textContent;null!==n&&t!==n&&s(u,n)}),[t,u,s]),h=(0,r.useCallback)((e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur())}),[]);return o().createElement("li",(0,n.A)({ref:p},c,d,{className:l()(K.step,{[K.dragging]:A,[K.editing]:D}),style:g}),o().createElement("span",{className:K.handle},o().createElement(F.Bj,{lib:"antd",icon:"holder"})),o().createElement("span",{className:K.content,ref:f,onFocus:b,onBlur:v,onKeyDown:h,contentEditable:(B=!0,B?function(){if("boolean"!=typeof V){const e=document.createElement("div");e.setAttribute("contenteditable","PLAINTEXT-ONLY"),V="plaintext-only"===e.contentEditable}return V}()?"plaintext-only":"true":"false")},t),o().createElement("span",{className:K.delete},o().createElement(F.Bj,{className:K.delete,lib:"antd",icon:"delete",onClick:()=>i(u)})));var B}var X=t(42137);function Y(e){let{job:u}=e;const t=(0,r.useMemo)((()=>{var e;const t=null===(e=u.messages)||void 0===e?void 0:e.find((e=>"tool"===e.role));if(t){var n;const e=null===(n=t.parts)||void 0===n||null===(n=n.find((e=>"text"===e.type)))||void 0===n?void 0:n.text;if(e)try{return JSON.parse(e)}catch{}}return null}),[u.messages]);return"plan"===(null==t?void 0:t.type)&&Array.isArray(t.steps)?o().createElement("div",{className:`${m.A.message} ${m.A["role-user"]}`},o().createElement("ol",{style:{paddingLeft:.5*Math.floor(Math.log10(t.steps.length+1))+1.5+"em"}},t.steps.map(((e,u)=>o().createElement("li",{key:u},e))))):o().createElement("div",{className:`${m.A.message} ${m.A["role-user"]}`},"Something went wrong.")}var G=t(58729),W=t(41763),Z=t(37732),q=t(65971),Q=t(2098),ee=t(56819),ue={};ue.styleTagTransform=S(),ue.setAttributes=y(),ue.insert=B().bind(null,"head"),ue.domAPI=v(),ue.insertStyleElement=w(),C()(ee.A,ue);const te=ee.A&&ee.A.locals?ee.A.locals:void 0;var ne=t(28599),re=t(16854);const oe=6,ae=2,ie="__builtin_fn_stringify";function se(e){let{objectId:u,detail:t,outputSchema:a}=e;const i=(0,r.useMemo)((()=>(0,R.uniqueId)()),[]),s=(0,r.useRef)(null),l=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=s.current;if(!e)return;const u=(0,ne.d)(i),t=(0,p.unstable_createRoot)(e,{portal:u,supportsUseChildren:!0});return l.current=t,()=>{t.unmount(),u.remove(),l.current=null}}),[i]);const[c,d]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{let e=!1;return(async()=>{d(!0);try{var n;const{bricks:r,context:o}=await async function(e,u,t,n){var r;const o=await(0,q.Q)(u,1);let a,i;if("string"==typeof t)try{a=JSON.parse(t)}catch(e){console.error("Failed to parse outputSchema as JSON",e)}else a=t;const s=[],l=[{name:ie,value:pe}];function c(e,u,t,r,o){var a;const i=Object.entries(u.properties),p=i.length>0?i[0][0]:null,m=de(`modal__${r}`),E=de(`context__${r}`);o&&l.push({name:E});const A={brick:"eo-modal",portal:!0,properties:{dataset:{modalId:m},width:"800px",themeVariant:"elevo",modalTitle:t,hideCancelButton:!0,maskClosable:!0,keyboard:!0}};s.push(A);const f=[],g=[];for(const[e,u]of i){let t;"array"===u.type&&"object"===u.items.type?(t=`[${e}]`,g.push({...c("DATA.cellData",u.items,u.description||(0,R.upperFirst)(e),`${r}__${e}`,!0),slot:t})):"object"===u.type&&(t=`[${e}]`,g.push({...d("DATA.cellData",u,u.description||(0,R.upperFirst)(e),`${r}__${e}`,!0),slot:t})),f.push({key:e,dataIndex:e,title:u.description||(0,R.upperFirst)(e),useChildren:t})}A.children=[{brick:"eo-next-table",properties:{dataSource:o?`<%= { list: CTX.${E} } %>`:`<% { list: (${e}) } %>`,columns:f,themeVariant:"elevo",pagination:!1,bordered:!0},children:g}];const F=[...o?[{action:"context.replace",args:[{name:E,value:`<% ${e} %>`}]}]:[],{target:`[data-root-id="${n}"] [data-modal-id="${m}"]`,method:"open"}];return{brick:"span",if:`<% !!(${e}) %>`,properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[{brick:":forEach",dataSource:`<% (${e}).slice(0, ${ae}) %>`,children:[{brick:"eo-tag",properties:{textContent:`<% CTX.${ie}(ITEM, ${JSON.stringify(p)}, ${JSON.stringify(null===(a=i[0])||void 0===a?void 0:a[1].type)}) %>`,outline:!0,style:{cursor:"pointer"}},events:{click:F}}]},{brick:"eo-link",if:`<% (${e}).length > ${ae} %>`,properties:{textContent:`<% \`+\${(${e}).length - ${ae}}\` %>`},events:{click:F}}]}}function d(e,u,t,r,o){var a;const i=Object.entries(u.properties),c=i.length>0?i[0][0]:null,d=de(`modal__${r}`),p=de(`context__${r}`);return o&&l.push({name:p}),s.push({brick:"eo-modal",portal:!0,properties:{dataset:{modalId:d},themeVariant:"elevo",modalTitle:t,hideCancelButton:!0,maskClosable:!0,keyboard:!0},children:[{brick:"eo-descriptions",properties:{themeVariant:"elevo",column:1,dataSource:o?`<%= CTX.${p} %>`:`<% ${e} %> `,list:i.map((e=>{let[u,t]=e;return{label:t.description||(0,R.upperFirst)(u),field:u}}))}}]}),{brick:"span",if:`<% !!(${e}) %>`,properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[{brick:"eo-tag",properties:{textContent:`<% CTX.${ie}(${e}, ${JSON.stringify(c)}, ${JSON.stringify(null===(a=i[0])||void 0===a?void 0:a[1].type)}) %>`,outline:!0,style:{cursor:"pointer"}},events:{click:[...o?[{action:"context.replace",args:[{name:p,value:`<% ${e} %>`}]}]:[],{target:`[data-root-id="${n}"] [data-modal-id="${d}"]`,method:"open"}]}}]}}return i="object"===(null===(r=a)||void 0===r?void 0:r.type)?Object.entries(a.properties).map((u=>{let[t,n]=u;const{description:r,type:a}=n,i=r||(0,R.upperFirst)(t);if(ce(e,t))return{label:i,text:""};if("array"===a&&Array.isArray(e[t])){const{items:u}=n;if("object"===(null==u?void 0:u.type)){const n=de(`context__${t}`);return l.push({name:n,value:e[t]}),{label:i,useBrick:c(`CTX.${n}`,u,i,t)}}if(!le(null==u?void 0:u.type))return{label:i,text:e[t].join(", ")}}if("object"===a&&(0,Z.isObject)(e[t])){const u=de(`context__${t}`);return l.push({name:u,value:e[t]}),{label:i,useBrick:d(`CTX.${u}`,n,i,t)}}if(le(a))return{label:i,text:JSON.stringify(e[t],null,2)};const s=null==o?void 0:o.get(t);if(s){const e=(0,Q.w)(s,t,{ignoreStyle:!0});if(e)return{label:i,useBrick:e}}return{label:i,field:t}})):Object.keys(e).map((e=>({label:(0,R.upperFirst)(e),field:e}))),{bricks:[{brick:"eo-descriptions",properties:{themeVariant:"elevo",column:i.length>oe?2:1,dataSource:e,list:i}},...s],context:l}}(t,u,a,i);if(e)return;await(null===(n=l.current)||void 0===n?void 0:n.render(r,{context:o}))}catch(e){console.error("Failed to render view:",e)}e||d(!1)})(),()=>{e=!0}}),[t,u,a,i]),o().createElement("div",{className:te.container},c&&o().createElement(F.Bj,(0,n.A)({className:te.loading},re.Xc)),o().createElement("div",{"data-root-id":i,ref:s}))}function le(e){return!e||"object"===e||"array"===e}function ce(e,u){return!(0,Z.hasOwnProperty)(e,u)||null==e[u]||""===e[u]||Array.isArray(e[u])&&0===e[u].length}function de(e){return e.replace(/[^a-zA-Z0-9_]+/g,"_")}function pe(e,u,t){if(null===u||ce(e,u))return"";const n=e[u];return le(t)&&(0,Z.isObject)(n)?JSON.stringify(n,null,2):String(n)}var me=t(1703),Ee={};Ee.styleTagTransform=S(),Ee.setAttributes=y(),Ee.insert=B().bind(null,"head"),Ee.domAPI=v(),Ee.insertStyleElement=w(),C()(me.A,Ee);const Ae=me.A&&me.A.locals?me.A.locals:void 0;var fe=t(84001);function ge(e){let{files:u,large:t}=e;const{setActiveFile:n}=(0,r.useContext)($.Q);return o().createElement("ul",{className:l()(Ae.files,{[Ae.large]:t})},u.map(((e,u)=>{const[t,r]=(0,fe.NL)(e.mimeType,e.name);return o().createElement("li",{key:u},o().createElement("a",{className:Ae.file,onClick:()=>n(e)},o().createElement("img",{className:Ae.icon,src:r,width:26,height:32}),o().createElement("div",{className:Ae.content},o().createElement("div",{className:Ae.name},e.name||(0,A.t)(A.K.UNTITLED)),o().createElement("div",{className:Ae.metadata},`${t}${e.size?` · ${(0,fe.v7)(e.size)}`:""}`))))})))}const Fe=/^\s*\|(?:\s*:?-+:?\s*\|){4,}\s*$/m;function De(e){var u,t,a,i,s,c,p,f;let{job:g,state:D,active:C}=e;const b=null===(u=g.toolCall)||void 0===u||null===(u=u.annotations)||void 0===u?void 0:u.title,v=null===(t=g.toolCall)||void 0===t?void 0:t.name,h="ask_human"===v,B="ask_human_confirming_plan"===v,x=h||B,y=h&&["ask_user_more","ask_user_confirm","ask_user_choose","ask_user_select_from_cmdb","ask_user_adjust_plan"].includes(null===(a=g.toolCall.arguments)||void 0===a?void 0:a.command)||B,k="working"===D||"submitted"===D,w=!!g.componentGraph,[_,S,T,N]=(0,r.useMemo)((()=>{var e;const u=[],t=[],n=[];let r="llm_answer"===v;null===(e=g.messages)||void 0===e||e.forEach((e=>{if("tool"===e.role)for(const i of e.parts){var o;if("data"===i.type)switch(null===(o=i.data)||void 0===o?void 0:o.type){case"markdown":u.push(i.data.content);break;case"cmdb_instance_detail":var a;t.push(i.data),r||(r=Object.keys("object"===(null===(a=i.data)||void 0===a||null===(a=a.outputSchema)||void 0===a?void 0:a.type)?i.data.outputSchema.properties:i.data.detail).length>6)}else"file"===i.type&&n.push(i.file)}}));const o=u.join("");return r=r||Fe.test(o),[o,t,n,r]}),[g.messages,v]);return o().createElement("div",{className:l()(m.A["node-job"],{[m.A.error]:g.isError,[m.A["ask-user"]]:x,[m.A["fit-content"]]:w,[m.A.active]:C,[m.A.large]:N})},o().createElement("div",{className:m.A.background}),o().createElement("div",{className:m.A.heading},x?o().createElement(F.Bj,{className:m.A.icon,lib:"fa",prefix:"fas",icon:"user-check"}):g.toolCall?o().createElement(F.Bj,{className:m.A.icon,lib:"antd",theme:"outlined",icon:"tool"}):o().createElement(F.Bj,{className:m.A.icon,lib:"easyops",icon:"robot"}),o().createElement("div",{className:l()(m.A.tool,{[E.A["shine-text"]]:k})},b||(v?(0,A.t)(A.K[v])||v:"Elevo")),o().createElement("div",{className:m.A.time},g.startTime&&d()(1e3*g.startTime).format("MM-DD HH:mm"))),o().createElement("div",{className:l()(m.A.body,{})},y?o().createElement(o().Fragment,null,(B||!(null===(i=g.toolCall.arguments)||void 0===i||!i.question))&&o().createElement("div",{className:`${m.A.message} ${E.A.markdown} ${m.A["role-assistant"]}`},o().createElement(W.w,{content:B?(0,A.t)(A.K.CONFIRMING_PLAN_TIPS):null===(s=g.toolCall.arguments)||void 0===s?void 0:s.question})),"input-required"===D&&("ask_user_more"===g.toolCall.arguments.command?o().createElement(Ce,{jobId:g.id}):"ask_user_confirm"===g.toolCall.arguments.command?o().createElement(L,{jobId:g.id,confirmText:g.toolCall.arguments.confirm_text,cancelText:g.toolCall.arguments.cancel_text}):"ask_user_choose"===g.toolCall.arguments.command?o().createElement(be,{jobId:g.id,options:g.toolCall.arguments.options}):"ask_user_select_from_cmdb"===g.toolCall.arguments.command?o().createElement(ve,{jobId:g.id,objectId:g.toolCall.arguments.objectId,attrId:g.toolCall.arguments.attrId}):B?o().createElement(U,{jobId:g.id,steps:g.toolCall.arguments.steps}):null)):h?o().createElement("div",{className:`${m.A.message} ${m.A["role-assistant"]}`},"Unexpected ask_human command:"," ",JSON.stringify(null!==(c=null===(p=g.toolCall.arguments)||void 0===p?void 0:p.command)&&void 0!==c?c:null)):null,!x&&g.toolCall&&o().createElement(X.t,{job:g}),B&&"input-required"!==D?o().createElement(Y,{job:g}):null===(f=g.messages)||void 0===f?void 0:f.map(((e,u)=>{var t;return"tool"!==e.role||x?o().createElement("div",{key:u,className:l()(m.A.message,E.A.markdown,{[m.A["role-user"]]:"tool"===e.role})},null===(t=e.parts)||void 0===t?void 0:t.map(((e,u)=>o().createElement(o().Fragment,{key:u},"text"===e.type&&o().createElement(W.w,{content:e.text}))))):null})),_&&o().createElement("div",{className:l()(m.A.message,E.A.markdown),style:{padding:"0 8px"}},o().createElement(W.w,{content:_})),S.map(((e,u)=>o().createElement(se,(0,n.A)({key:u},e)))),w&&!g.componentGraph.initial&&o().createElement(G.c,{componentGraph:g.componentGraph,filter:"minimal",autoSize:!0}),T.length>0&&o().createElement(ge,{files:T,large:N})))}function Ce(e){let{jobId:u}=e;const t=(0,r.useRef)(null),{humanInput:n}=(0,r.useContext)($.Q);return o().createElement("div",{ref:t},o().createElement(a.e,{className:m.A["human-input"],containerRef:t,autoResize:!0,minRows:2,borderSize:0,paddingSize:20,placeholder:(0,A.t)(A.K.TYPE_YOUR_MESSAGE_HERE),submitWhen:"enter-without-shift",onSubmit:e=>{const t=e.currentTarget.value;t&&n(u,t)}}))}function be(e){let{jobId:u,options:t}=e;const{humanInput:n}=(0,r.useContext)($.Q);return o().createElement("div",{style:{marginTop:"1em",display:"flex",flexDirection:"column",gap:"0.5em"}},null==t?void 0:t.map(((e,t)=>o().createElement(F.Gx,{key:t,themeVariant:"elevo",onClick:()=>{n(u,e)}},e))))}function ve(e){let{jobId:u,objectId:t,attrId:n}=e;const{humanInput:a}=(0,r.useContext)($.Q),[s,l]=(0,r.useState)(null);if((0,r.useEffect)((()=>{if(!t)return;let e=!1;return(async()=>{try{const u=(await(0,i.r)({ref_object:t})).data;e||l(u)}catch(e){console.error("Fetch object list failed:",e),(0,p.handleHttpError)(e)}})(),()=>{e=!0}}),[t]),!t)return o().createElement("div",{style:{marginTop:"1em"}},"Can not call ask_user_select_from_cmdb without objectId");const c=!n||"instanceId"===n&&"HOST"===t?"ip":n;return o().createElement("div",{style:{marginTop:"1em"}},o().createElement(r.Suspense,null,o().createElement(g,{objectList:s,objectId:t,fieldId:c,onChangeV2:e=>{e.detail.length&&a(u,e.detail.map((e=>e[c])).join("\n"))}})))}},77221:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".node-end--yzRaOZnC{display:flex;flex-direction:column;align-items:center}.content--iXSH199p{display:flex;align-items:center;margin-bottom:20px}.icon--IVcHjGFO{width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#fff;background:#29cc49;border-radius:18px;font-size:14px;margin-right:6px}.text--dW7Y74et{font-weight:500}.button--mkIwsPzt{width:120px;height:30px;background:rgba(0,0,0,0.04);border:none;border-radius:15px;text-align:center;cursor:pointer}.button--mkIwsPzt:hover{background:rgba(0,0,0,0.08)}.button--mkIwsPzt:active{background:rgba(0,0,0,0.15)}.button--mkIwsPzt:focus{outline:none}",""]),a.locals={"node-end":"node-end--yzRaOZnC",content:"content--iXSH199p",icon:"icon--IVcHjGFO",text:"text--dW7Y74et",button:"button--mkIwsPzt"};const i=a},80865:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".toolbar--ELlNUAti{position:absolute;display:flex;align-items:center;padding:3px 5px;-webkit-user-select:none;user-select:none;background:rgba(255,255,255,0.7);box-shadow:0px 3px 14px 0px rgba(0,0,0,0.1),0px 1px 4px 0px rgba(0,0,0,0.06);border-radius:8px;border:1px solid rgba(255,255,255,0.3)}.divider--JeH8feaX{background:rgba(0,0,0,0.15);width:1px;height:16px}.toolbar--ELlNUAti > :not(:last-child){margin-right:6px}",""]),a.locals={toolbar:"toolbar--ELlNUAti",divider:"divider--JeH8feaX"};const i=a},81621:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".code-block--B8VszXyv{position:relative}.copy--xhIT7aTz{position:absolute;top:8px;right:8px}.code-block--B8VszXyv:not(:hover) .copy--xhIT7aTz{display:none}.success--y_M0QrXy::part(button){color:var(--color-success)}.failed--WtJHXSP6::part(button){color:var(--color-error)}.code-block--B8VszXyv.mermaid{display:flex;justify-content:center}",""]),a.locals={"code-block":"code-block--B8VszXyv",copy:"copy--xhIT7aTz",success:"success--y_M0QrXy",failed:"failed--WtJHXSP6"};const i=a},83490:(e,u,t)=>{t.d(u,{f:()=>T});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(23081),s=t(41030),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),m=t(88128),E=t.n(m),A=t(30855),f=t.n(A),g=t(93051),F=t.n(g),D=t(73656),C=t.n(D),b=t(50707),v={};v.styleTagTransform=C(),v.setAttributes=f(),v.insert=E().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=F(),c()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0;var B=t(85620),x=t(36404),y=t(55805),k=t(28599),w=t(16854),_=t(69131),S=t(57451);function T(e){var u;let{views:t}=e;const o=(0,n.useMemo)((()=>(0,s.uniqueId)()),[]),{activeExpandedViewJobId:l,setActiveExpandedViewJobId:c}=(0,n.useContext)(B.Q),d=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useRef)(null),E=null===(u=t.find((e=>e.id===l)))||void 0===u?void 0:u.view,A=(0,n.useMemo)((()=>{let e=!1;if(E&&(0,_.F)(E))for(const t of null!==(u=null==E?void 0:E.components)&&void 0!==u?u:[]){var u;switch(t.name){case"form":case"button":e=!0;break;default:return!1}}else for(const u of null!==(t=null==E?void 0:E.components)&&void 0!==t?t:[]){var t;if(!u.parentComponentId)switch(u.componentName){case"form":case"button":e=!0;break;default:return!1}}return e}),[E]);(0,n.useEffect)((()=>{const e=p.current;if(!e)return;const u=(0,k.d)(o),t=(0,i.unstable_createRoot)(e,{portal:u,supportsUseChildren:!0});return m.current=t,()=>{t.unmount(),u.remove(),m.current=null}}),[o]);const[f,g]=(0,n.useState)(!0);(0,n.useEffect)((()=>{let e=!1;return(async()=>{g(!0);try{var u;const t=E?await((0,_.F)(E)?(0,S.V)(E,{rootId:o,expanded:!0}):(0,x.z)(E,{rootId:o,expanded:!0})):null;if(e)return;await(null===(u=m.current)||void 0===u?void 0:u.render(null!=t?t:[]))}catch(e){console.error("Failed to render view:",e)}e||g(!1)})(),()=>{e=!0}}),[o,E]);const F=(0,n.useCallback)((()=>{c(null)}),[c]);(0,n.useEffect)((()=>{setTimeout((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}),0)}),[]);const D=(0,n.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),F())}),[F]);return r().createElement("div",{className:h["expanded-view"],tabIndex:-1,ref:d,onKeyDown:D},f&&r().createElement("div",{className:h.loading},r().createElement(y.Bj,{lib:"antd",icon:"loading-3-quarters",spinning:!0})),r().createElement("div",{className:a()(h.body,{[h.small]:A}),ref:p,"data-root-id":o}),r().createElement("ul",{className:h.nav},t.map((e=>r().createElement("li",{key:e.id},r().createElement("button",{className:a()(h["nav-button"],{[h.active]:l===e.id})},e.view.title))))),r().createElement(y.Py,{icon:w.LQ,className:h.close,onClick:F}))}},83865:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".zoom-bar--MTw5VGPl{left:20px;bottom:20px}@media (max-width: 1079px){.zoom-bar--MTw5VGPl{left:auto;bottom:auto;top:20px;right:20px}}",""]),a.locals={"zoom-bar":"zoom-bar--MTw5VGPl"};const i=a},84001:(e,u,t)=>{t.d(u,{v7:()=>i,NL:()=>s,xf:()=>l});var n=t(58377);const r=t.p+"images/62542537.png",o=t.p+"images/94d7a053.png",a=t.p+"images/3316492a.png";function i(e){const[u,t]=n.pipes.unitFormat(e,"bytes",1),r=+u;return`${r>100?Math.round(r):r} ${t}`}function s(e,u){const t=e||l(u);switch(t){case"text/markdown":return["Markdown",r];case"application/pdf":return["PDF",o]}return t.startsWith("text/")?["Text",r]:["File",a]}function l(e){let u="";const t=null==e?void 0:e.match(/\.([^.]+)$/);switch(t&&(u=t[1].toLowerCase()),u){case"md":return"text/markdown";case"pdf":return"application/pdf";default:return"unknown"}}},85533:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".content--zNKsww2N{margin:0 auto;padding:16px 0;max-width:800px}.toolbar--YWbNSe1o{display:flex;align-items:center;gap:8px}.loading--yng_2TL3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:var(--text-color-secondary)}.error--a2Er1bw7{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding-bottom:20%;display:flex;flex-direction:column;align-items:center;color:#8c8c8c}.error--a2Er1bw7 eo-button{margin:0 14px}.embed--y9Wq2k7W{display:block}",""]),a.locals={content:"content--zNKsww2N",toolbar:"toolbar--YWbNSe1o",loading:"loading--yng_2TL3",error:"error--a2Er1bw7",embed:"embed--y9Wq2k7W"};const i=a},85620:(e,u,t)=>{t.d(u,{Q:()=>n});const n=(0,t(18769).createContext)({humanInput:()=>{},onShare:()=>{},onPause:()=>{},onResume:()=>{},onCancel:()=>{},onNodeResize:()=>{},activeToolCallJobId:null,setActiveToolCallJobId:()=>{},setActiveNodeId:()=>{},hoverOnScrollableContent:!1,setHoverOnScrollableContent:()=>{},activeExpandedViewJobId:null,setActiveExpandedViewJobId:()=>{},setActiveFile:()=>{}})},85993:(e,u,t)=>{t.d(u,{N:()=>k});var n=t(89575),r=t(18769),o=t.n(r),a=t(53373),i=t.n(a),s=t(55805),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),m=t(88128),E=t.n(m),A=t(30855),f=t.n(A),g=t(93051),F=t.n(g),D=t(73656),C=t.n(D),b=t(81621),v={};v.styleTagTransform=C(),v.setAttributes=f(),v.insert=E().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=F(),c()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0,B={lib:"fa",prefix:"far",icon:"copy"},x={lib:"fa",prefix:"fas",icon:"check"},y={lib:"fa",prefix:"fas",icon:"triangle-exclamation"};function k(e){var u;let{children:t,node:a,...l}=e;const c=(0,r.useRef)(null),d=null===(u=l.className)||void 0===u?void 0:u.includes("language-"),[p,m]=(0,r.useState)("idle"),E=(0,r.useRef)(),A=(0,r.useCallback)((async()=>{var e;clearTimeout(E.current),m("idle");const u=null===(e=c.current)||void 0===e||null===(e=e.querySelector("code"))||void 0===e?void 0:e.textContent;if(u){try{await(0,s.lW)(u),m("success")}catch(e){console.error("Failed to copy code block content to clipboard.",e),m("failed")}E.current=setTimeout((()=>{m("idle")}),2e3)}}),[]);return(0,r.useEffect)((()=>()=>{clearTimeout(E.current)}),[]),o().createElement("pre",(0,n.A)({},l,{className:i()(l.className,h["code-block"]),ref:c}),t,d&&o().createElement(s.Gx,{themeVariant:"elevo",className:i()(h.copy,{[h.success]:"success"===p,[h.failed]:"failed"===p}),onClick:A,icon:"success"===p?x:"failed"===p?y:B}))}},86767:(e,u,t)=>{t.d(u,{A:()=>g});var n=t(72591),r=t.n(n),o=t(1740),a=t.n(o),i=t(88128),s=t.n(i),l=t(30855),c=t.n(l),d=t(93051),p=t.n(d),m=t(73656),E=t.n(m),A=t(80865),f={};f.styleTagTransform=E(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(A.A,f);const g=A.A&&A.A.locals?A.A.locals:void 0},87545:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,'.detail--JiiWugxP{margin-top:20px;color:#595959;margin-bottom:7px}.detail--JiiWugxP .body--H_Wy7M2z code[class*="language-"],.detail--JiiWugxP .body--H_Wy7M2z pre[class*="language-"]{background:#ffffff}.detail--JiiWugxP .body--H_Wy7M2z pre[class*="language-"]{border-radius:9px;border:1px solid #ccd1de}.detail--JiiWugxP .body--H_Wy7M2z pre.fallback--mxkVhIEE{white-space:pre-wrap;background:#fef5f3}.progress-container--tFUAQo73,\n.stream-message--G0tAm9aa{border-radius:9px;border:1px solid #ccd1de;background:#ffffff}.progress-container--tFUAQo73{padding:6px 2px}.fallback--mxkVhIEE{background:#fef5f3}.stream-message--G0tAm9aa{padding:1em;margin:0.5em 0}',""]),a.locals={detail:"detail--JiiWugxP",body:"body--H_Wy7M2z",fallback:"fallback--mxkVhIEE","progress-container":"progress-container--tFUAQo73","stream-message":"stream-message--G0tAm9aa"};const i=a},91525:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,'.shine-text--t2t9tIJp{color:transparent;background:linear-gradient(to right,var(--shine-text-color) 0%,var(--shine-text-color) 40%,var(--shine-text-highlight-color) 50%,var(--shine-text-color) 60%,var(--shine-text-color) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:shineText--ycIJ4nxc 2s infinite linear}@keyframes shineText--ycIJ4nxc{0%{background-position:-50% 50%}100%{background-position:-250% 50%}}.markdown--t5EHw6k4 a{color:var(--elevo-color-brand)}.markdown--t5EHw6k4 a:hover{color:var(--elevo-color-brand-hover)}.markdown--t5EHw6k4 a:active{color:var(--elevo-color-brand-active)}.markdown--t5EHw6k4 code[class*="language-"],.markdown--t5EHw6k4 pre[class*="language-"]{background:hsl(230,1%,98%);color:hsl(230,8%,24%);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;tab-size:2;-webkit-hyphens:none;hyphens:none;font-size:13px}.markdown--t5EHw6k4 code[class*="language-"]::selection,.markdown--t5EHw6k4 code[class*="language-"] *::selection,.markdown--t5EHw6k4 pre[class*="language-"] *::selection{background:hsl(230,1%,90%);color:inherit}.markdown--t5EHw6k4 pre[class*="language-"]{padding:1em;margin:0.5em 0;overflow-x:auto;border-radius:9px}.markdown--t5EHw6k4 :not(pre) > code[class*="language-"]{padding:0.2em 0.3em;border-radius:9px;white-space:normal}.markdown--t5EHw6k4 .token.comment,.markdown--t5EHw6k4 .token.prolog,.markdown--t5EHw6k4 .token.cdata{color:hsl(230,4%,64%)}.markdown--t5EHw6k4 .token.doctype,.markdown--t5EHw6k4 .token.punctuation,.markdown--t5EHw6k4 .token.entity{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .token.attr-name,.markdown--t5EHw6k4 .token.class-name,.markdown--t5EHw6k4 .token.boolean,.markdown--t5EHw6k4 .token.constant,.markdown--t5EHw6k4 .token.number,.markdown--t5EHw6k4 .token.atrule{color:hsl(35,99%,36%)}.markdown--t5EHw6k4 .token.keyword{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .token.property,.markdown--t5EHw6k4 .token.tag,.markdown--t5EHw6k4 .token.symbol,.markdown--t5EHw6k4 .token.deleted,.markdown--t5EHw6k4 .token.important{color:hsl(5,74%,59%)}.markdown--t5EHw6k4 .token.selector,.markdown--t5EHw6k4 .token.string,.markdown--t5EHw6k4 .token.char,.markdown--t5EHw6k4 .token.builtin,.markdown--t5EHw6k4 .token.inserted,.markdown--t5EHw6k4 .token.regex,.markdown--t5EHw6k4 .token.attr-value,.markdown--t5EHw6k4 .token.attr-value > .token.punctuation{color:hsl(119,34%,47%)}.markdown--t5EHw6k4 .token.variable,.markdown--t5EHw6k4 .token.operator,.markdown--t5EHw6k4 .token.function{color:hsl(221,87%,60%)}.markdown--t5EHw6k4 .token.url{color:hsl(198,99%,37%)}.markdown--t5EHw6k4 .token.attr-value > .token.punctuation.attr-equals,.markdown--t5EHw6k4 .token.special-attr > .token.attr-value > .token.value.css{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-css .token.selector{color:hsl(5,74%,59%)}.markdown--t5EHw6k4 .language-css .token.property{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-css .token.function,.markdown--t5EHw6k4 .language-css .token.url > .token.function{color:hsl(198,99%,37%)}.markdown--t5EHw6k4 .language-css .token.url > .token.string.url{color:hsl(119,34%,47%)}.markdown--t5EHw6k4 .language-css .token.important,.markdown--t5EHw6k4 .language-css .token.atrule .token.rule{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .language-javascript .token.operator{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation{color:hsl(344,84%,43%)}.markdown--t5EHw6k4 .language-json .token.operator{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-json .token.null.keyword{color:hsl(35,99%,36%)}.markdown--t5EHw6k4 .language-markdown .token.url,.markdown--t5EHw6k4 .language-markdown .token.url > .token.operator,.markdown--t5EHw6k4 .language-markdown .token.url-reference.url > .token.string{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-markdown .token.url > .token.content{color:hsl(221,87%,60%)}.markdown--t5EHw6k4 .language-markdown .token.url > .token.url,.markdown--t5EHw6k4 .language-markdown .token.url-reference.url{color:hsl(198,99%,37%)}.markdown--t5EHw6k4 .language-markdown .token.blockquote.punctuation,.markdown--t5EHw6k4 .language-markdown .token.hr.punctuation{color:hsl(230,4%,64%);font-style:italic}.markdown--t5EHw6k4 .language-markdown .token.code-snippet{color:hsl(119,34%,47%)}.markdown--t5EHw6k4 .language-markdown .token.bold .token.content{color:hsl(35,99%,36%)}.markdown--t5EHw6k4 .language-markdown .token.italic .token.content{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .language-markdown .token.strike .token.content,.markdown--t5EHw6k4 .language-markdown .token.strike .token.punctuation,.markdown--t5EHw6k4 .language-markdown .token.list.punctuation,.markdown--t5EHw6k4 .language-markdown .token.title.important > .token.punctuation{color:hsl(5,74%,59%)}.markdown--t5EHw6k4 .token.bold{font-weight:bold}.markdown--t5EHw6k4 .token.comment,.markdown--t5EHw6k4 .token.italic{font-style:italic}.markdown--t5EHw6k4 .token.entity{cursor:help}.markdown--t5EHw6k4 .token.namespace{opacity:0.8}.markdown--t5EHw6k4 table{width:100%;overflow-x:auto;border-collapse:collapse}.markdown--t5EHw6k4 tr{border-top:1px solid #ccd1de}.markdown--t5EHw6k4 td,.markdown--t5EHw6k4 th{border:1px solid #ccd1de;padding:6px 13px}.markdown--t5EHw6k4{overflow-wrap:break-word}.markdown--t5EHw6k4:not(:first-child){margin-top:6px}.markdown--t5EHw6k4 p{margin:1em 0}.markdown--t5EHw6k4 > :first-child{margin-top:0}.markdown--t5EHw6k4 > :last-child{margin-bottom:0}.table-container--hekbaxrD{padding:8px 8px 10px;border-radius:12px;border:1px solid #e2e2ec;background:#ffffff}.table-container--hekbaxrD:not(:first-child){margin-top:6px}',""]),a.locals={"shine-text":"shine-text--t2t9tIJp",shineText:"shineText--ycIJ4nxc",markdown:"markdown--t5EHw6k4","table-container":"table-container--hekbaxrD"};const i=a},91776:(e,u,t)=>{e.exports=t.p+"images/a1d108f4.png"},97642:(e,u,t)=>{t.d(u,{g:()=>i});var n=t(57586),r=t.n(n),o=t(18769),a=t(16854);function i(e){let{rawNodes:u,rawEdges:t,sizeMap:n,state:i}=e;const l=(0,o.useRef)(null),c="completed"===i,{initialNodes:d,initialEdges:p}=(0,o.useMemo)((()=>{const e=[{type:"start",id:a.U5}],n=[],r=[],o=null!=u?u:[],i=null!=t?t:[],s=new Set(i.map((e=>e.target))),d=c?new Set(i.map((e=>e.source))):null;for(const e of o)s.has(e.id)||n.push({source:a.U5,target:e.id}),c&&!d.has(e.id)&&r.push(e.id);e.push(...o),n.push(...i),r.length>0&&(e.push({id:a.Jw,type:"end"}),n.push(...r.map((e=>({source:e,target:a.Jw})))));const p=l.current;if(p)for(const u of e){const e=p.get(u.id);e&&(u.view=e)}return{initialNodes:e,initialEdges:n}}),[c,t,u]),m=(0,o.useRef)(null);return(0,o.useMemo)((()=>{var e;for(const e of d)if(null==n||!n.has(e.id))return{sizeReady:!1,nodes:d,edges:[]};const u=new(r().graphlib.Graph);u.setGraph({rankdir:"TB",nodesep:a.GT,edgesep:a.Bf,ranksep:a.CO}),u.setDefaultEdgeLabel((function(){return{}}));for(const e of p)u.setEdge(e.source,e.target);for(const e of d){const[t,r]=n.get(e.id);u.setNode(e.id,{id:e.id,width:t,height:r})}r().layout(u);let t=null;const o=d.map((e=>{const n=u.node(e.id),r=n.x-n.width/2,o=n.y-n.height/2;return"start"===e.type&&(m.current?t={x:m.current.x-r,y:m.current.y-o}:m.current={x:r,y:o}),{...e,view:{x:r,y:o,width:n.width,height:n.height}}}));if(t)for(const e of o)Object.assign(e.view,s(e.view,t));const i=null!==(e=l.current)&&void 0!==e?e:l.current=new Map;for(const e of o){const{x:u,y:t}=e.view;i.set(e.id,{x:u,y:t})}return{sizeReady:!0,nodes:o,edges:p.map((e=>{const n=u.node(e.source),r=s(n,t),o=u.node(e.target),i=s(o,t),l=i.y-(o.height+a.CO)/2,c=[{x:r.x,y:r.y+n.height/2},{x:r.x,y:l},{x:i.x,y:l},{x:i.x,y:i.y-o.height/2}];return{...e,points:c}}))}}),[p,d,n])}function s(e,u){return u?{x:e.x+u.x,y:e.y+u.y}:{x:e.x,y:e.y}}}}]);
2
+ //# sourceMappingURL=3362.90a6e017.js.map