db-studio 1.2.20 → 1.2.22

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.
Files changed (100) hide show
  1. package/dist/core-dist/assets/{_baseUniq-CeqT3N-D.js → _baseUniq-BnS4oWxG.js} +1 -1
  2. package/dist/core-dist/assets/_pathlessLayout-J4rDhSFV.js +2 -0
  3. package/dist/core-dist/assets/_queryId-BGnLBhn8.js +1 -0
  4. package/dist/core-dist/assets/_table-C_4RREBi.js +1 -0
  5. package/dist/core-dist/assets/{arc-Dnc_3KxD.js → arc-BzayzQuy.js} +1 -1
  6. package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-CDKgWmU1.js +36 -0
  7. package/dist/core-dist/assets/{blockDiagram-VD42YOAC-jp3IzhcG.js → blockDiagram-VD42YOAC-DajA7Gs0.js} +1 -1
  8. package/dist/core-dist/assets/{c4Diagram-YG6GDRKO-CahI2eve.js → c4Diagram-YG6GDRKO-DFgrz0k6.js} +1 -1
  9. package/dist/core-dist/assets/{cdoe-editor-BswlKXRb.js → cdoe-editor-Bv60qmc3.js} +2 -2
  10. package/dist/core-dist/assets/channel-D7_kpMKZ.js +1 -0
  11. package/dist/core-dist/assets/{chunk-4BX2VUAB-DNTUv4GR.js → chunk-4BX2VUAB-B3yeq0dh.js} +1 -1
  12. package/dist/core-dist/assets/{chunk-55IACEB6-Xrs620gj.js → chunk-55IACEB6-DFZ6X9qg.js} +1 -1
  13. package/dist/core-dist/assets/{chunk-B4BG7PRW-COpTaouf.js → chunk-B4BG7PRW-BmPKklye.js} +1 -1
  14. package/dist/core-dist/assets/{chunk-DI55MBZ5-3wt5pOdw.js → chunk-DI55MBZ5-BA4d2Wbt.js} +1 -1
  15. package/dist/core-dist/assets/{chunk-FMBD7UC4-BQmP0qBN.js → chunk-FMBD7UC4-XJsNmwVW.js} +1 -1
  16. package/dist/core-dist/assets/{chunk-QN33PNHL-f1y0j0u4.js → chunk-QN33PNHL-CujeLF1b.js} +1 -1
  17. package/dist/core-dist/assets/{chunk-QZHKN3VN-C6jBpr-H.js → chunk-QZHKN3VN-BGMtvFJQ.js} +1 -1
  18. package/dist/core-dist/assets/{chunk-TZMSLE5B-31ka2vOU.js → chunk-TZMSLE5B-JJzEtNYD.js} +1 -1
  19. package/dist/core-dist/assets/classDiagram-2ON5EDUG-CeZr_QVj.js +1 -0
  20. package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-CeZr_QVj.js +1 -0
  21. package/dist/core-dist/assets/clone-Bq17CDff.js +1 -0
  22. package/dist/core-dist/assets/{code-block-IT6T5CEO-B2LU0jbX.js → code-block-IT6T5CEO-mzJGOnKv.js} +1 -1
  23. package/dist/core-dist/assets/cose-bilkent-S5V4N54A-CG3x36O6.js +1 -0
  24. package/dist/core-dist/assets/dagre-6UL2VRFP-CUAYXvH9.js +4 -0
  25. package/dist/core-dist/assets/diagram-PSM6KHXK-CjdajvGI.js +24 -0
  26. package/dist/core-dist/assets/diagram-QEK2KX5R-BwP9Rm7l.js +43 -0
  27. package/dist/core-dist/assets/diagram-S2PKOQOG-RojbbeSs.js +24 -0
  28. package/dist/core-dist/assets/{erDiagram-Q2GNP2WA-s3KzkqPg.js → erDiagram-Q2GNP2WA-D9N7nS0_.js} +1 -1
  29. package/dist/core-dist/assets/{flowDiagram-NV44I4VS-DFMBdQkp.js → flowDiagram-NV44I4VS-BD4JG33X.js} +1 -1
  30. package/dist/core-dist/assets/ganttDiagram-JELNMOA3-D4z9L9nY.js +267 -0
  31. package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-B2yHGcIC.js +65 -0
  32. package/dist/core-dist/assets/{graph-CoUoQfuh.js → graph-CNujjUl6.js} +1 -1
  33. package/dist/core-dist/assets/icons-cLYU3CQS.js +1 -0
  34. package/dist/core-dist/assets/index-B4CH9odE.js +1 -0
  35. package/dist/core-dist/assets/index-CiWmRiWr.js +1 -0
  36. package/dist/core-dist/assets/index-DEXHOoGJ.css +1 -0
  37. package/dist/core-dist/assets/index-DWavbP67.js +1 -0
  38. package/dist/core-dist/assets/index-Dq7-70tK.js +58 -0
  39. package/dist/core-dist/assets/index-pzKFI-Vs.js +1 -0
  40. package/dist/core-dist/assets/{indexes-COZEEebq.js → indexes-Bk_QNhz3.js} +1 -1
  41. package/dist/core-dist/assets/infoDiagram-WHAUD3N6-BvkFeyEE.js +2 -0
  42. package/dist/core-dist/assets/{journeyDiagram-XKPGCS4Q-CiAw1nw_.js → journeyDiagram-XKPGCS4Q-CkG5moWM.js} +1 -1
  43. package/dist/core-dist/assets/{kanban-definition-3W4ZIXB7-Yuc0Z8QR.js → kanban-definition-3W4ZIXB7-CfaZK5R9.js} +1 -1
  44. package/dist/core-dist/assets/{layout-Cw4LVk42.js → layout-CrsquEuM.js} +1 -1
  45. package/dist/core-dist/assets/{linear-CU5DgYOG.js → linear-bD-svMHh.js} +1 -1
  46. package/dist/core-dist/assets/logs-BCDaqHa5.js +1 -0
  47. package/dist/core-dist/assets/{mermaid-VLURNSYL-_Y2XU6_c.js → mermaid-VLURNSYL-BZBKtjwf.js} +5 -5
  48. package/dist/core-dist/assets/{mermaid.core-ds122QIK.js → mermaid.core-DmainLbW.js} +5 -5
  49. package/dist/core-dist/assets/{min-DFudLmkE.js → min-Cs3I0vDk.js} +1 -1
  50. package/dist/core-dist/assets/{mindmap-definition-VGOIOE7T-D7KNYm2E.js → mindmap-definition-VGOIOE7T-COrHba51.js} +1 -1
  51. package/dist/core-dist/assets/{pieDiagram-ADFJNKIX-D6Z1CJPE.js → pieDiagram-ADFJNKIX-C_wSihFn.js} +1 -1
  52. package/dist/core-dist/assets/{quadrantDiagram-AYHSOK5B-CxzHU3WJ.js → quadrantDiagram-AYHSOK5B-6QBSTaSf.js} +1 -1
  53. package/dist/core-dist/assets/{queries.store-Bxxvcbg7.js → queries.store-BqdJNevl.js} +1 -1
  54. package/dist/core-dist/assets/{radix-ui-Cy3m1w7k.js → radix-ui-d5EbBw33.js} +2 -2
  55. package/dist/core-dist/assets/{react-dom-DJoE1oD9.js → react-dom-BWKcCUTe.js} +1 -1
  56. package/dist/core-dist/assets/{requirementDiagram-UZGBJVZJ-CJGHr0pf.js → requirementDiagram-UZGBJVZJ-BmH--ndW.js} +1 -1
  57. package/dist/core-dist/assets/runner-tab-FdI7lq06.js +3 -0
  58. package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-BgePY74D.js +10 -0
  59. package/dist/core-dist/assets/{schema-ChEV6sF4.js → schema-D_xYQwIF.js} +1 -1
  60. package/dist/core-dist/assets/{scroll-area-BrIAuvEe.js → scroll-area-NHyDhTA5.js} +1 -1
  61. package/dist/core-dist/assets/{sequenceDiagram-WL72ISMW-w51z8BRE.js → sequenceDiagram-WL72ISMW-DyKFIest.js} +1 -1
  62. package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-CoTNg4O5.js +1 -0
  63. package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-VLFCTZ_U.js +1 -0
  64. package/dist/core-dist/assets/{tanstack-qLXitSFb.js → tanstack-D5ysZnPZ.js} +5 -5
  65. package/dist/core-dist/assets/{timeline-definition-IT6M3QCI-C5ksKXI5.js → timeline-definition-IT6M3QCI-BvUQ9Pv-.js} +1 -1
  66. package/dist/core-dist/assets/{treemap-KMMF4GRG-DPEcHwuf.js → treemap-KMMF4GRG-DLmWUMp8.js} +1 -1
  67. package/dist/core-dist/assets/{visualizer-CEMTmyw2.js → visualizer-BBc6FRkR.js} +1 -1
  68. package/dist/core-dist/assets/{xychartDiagram-PRI3JC2R-CNj0xyV4.js → xychartDiagram-PRI3JC2R-3ZAFpM_j.js} +1 -1
  69. package/dist/core-dist/index.html +6 -6
  70. package/dist/index.js +136 -122
  71. package/dist/index.js.map +1 -1
  72. package/package.json +10 -5
  73. package/dist/core-dist/assets/_pathlessLayout-DjLhpgxd.js +0 -2
  74. package/dist/core-dist/assets/_queryId-D0l8wnr_.js +0 -1
  75. package/dist/core-dist/assets/_table-D_on85wJ.js +0 -1
  76. package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-D-naFXsN.js +0 -36
  77. package/dist/core-dist/assets/channel-C4imq4Zh.js +0 -1
  78. package/dist/core-dist/assets/classDiagram-2ON5EDUG-Q5JJrM4i.js +0 -1
  79. package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-Q5JJrM4i.js +0 -1
  80. package/dist/core-dist/assets/clone-DVHLGOmt.js +0 -1
  81. package/dist/core-dist/assets/cose-bilkent-S5V4N54A-DsJKuZ9Q.js +0 -1
  82. package/dist/core-dist/assets/dagre-6UL2VRFP-BnjHWLsZ.js +0 -4
  83. package/dist/core-dist/assets/diagram-PSM6KHXK-CnF6MjR2.js +0 -24
  84. package/dist/core-dist/assets/diagram-QEK2KX5R-DxVrT1PJ.js +0 -43
  85. package/dist/core-dist/assets/diagram-S2PKOQOG-BZ5b9Hv-.js +0 -24
  86. package/dist/core-dist/assets/ganttDiagram-JELNMOA3-OzgA9GJ4.js +0 -267
  87. package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-LfOuHeDw.js +0 -65
  88. package/dist/core-dist/assets/icons-DJrV7d9i.js +0 -1
  89. package/dist/core-dist/assets/index-C4atBwjx.js +0 -1
  90. package/dist/core-dist/assets/index-CS7mbTnV.js +0 -1
  91. package/dist/core-dist/assets/index-Ch8XtMo1.css +0 -1
  92. package/dist/core-dist/assets/index-DOupmzl0.js +0 -1
  93. package/dist/core-dist/assets/index-ERxh7PXo.js +0 -53
  94. package/dist/core-dist/assets/infoDiagram-WHAUD3N6-D4mcM6pw.js +0 -2
  95. package/dist/core-dist/assets/logs-BL7j4vCh.js +0 -1
  96. package/dist/core-dist/assets/runner-tab-C3nQeksP.js +0 -3
  97. package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-CUlo_r1v.js +0 -10
  98. package/dist/core-dist/assets/spinner-BESLBiEc.js +0 -1
  99. package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-WlBCMI5F.js +0 -1
  100. package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-CBo6ZLu7.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as O}from"./radix-ui-Cy3m1w7k.js";import{l as e,e as L,K as l,a as N}from"./monaco-editor-BMj4E99D.js";import{r as A}from"./icons-DJrV7d9i.js";import{t as c}from"./index-ERxh7PXo.js";import"./react-dom-DJoE1oD9.js";import"./tanstack-qLXitSFb.js";const g=["SELECT","FROM","WHERE","INSERT","UPDATE","DELETE","CREATE","DROP","ALTER","TABLE","INDEX","VIEW","DATABASE","SCHEMA","FUNCTION","PROCEDURE","TRIGGER","AND","OR","NOT","IN","BETWEEN","LIKE","IS","NULL","JOIN","LEFT","RIGHT","INNER","OUTER","CROSS","ON","USING","GROUP","BY","HAVING","ORDER","ASC","DESC","LIMIT","OFFSET","UNION","INTERSECT","EXCEPT","AS","DISTINCT","ALL","EXISTS","CASE","WHEN","THEN","ELSE","END","WITH","RECURSIVE","PRIMARY","KEY","FOREIGN","REFERENCES","UNIQUE","CHECK","DEFAULT","CASCADE","RESTRICT","NO","ACTION","SET","CONSTRAINT","BEGIN","COMMIT","ROLLBACK","SAVEPOINT","TRANSACTION","GRANT","REVOKE","PRIVILEGES","TO","RETURNING"],G=["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%",">>","<<","+=","-=","*=","/=","&=","|=","^=","%="],U=["COUNT","SUM","AVG","MIN","MAX","COALESCE","NULLIF","CAST","CONCAT","SUBSTRING","LOWER","UPPER","TRIM","LENGTH","NOW","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","EXTRACT","DATE_TRUNC","AGE","ARRAY_AGG","JSON_BUILD_OBJECT","JSON_AGG","ROW_NUMBER","RANK","DENSE_RANK","LAG","LEAD","FIRST_VALUE","LAST_VALUE","STRING_AGG","GENERATE_SERIES"],b=["INTEGER","INT","SMALLINT","BIGINT","DECIMAL","NUMERIC","REAL","DOUBLE","PRECISION","SERIAL","BIGSERIAL","VARCHAR","CHAR","TEXT","BOOLEAN","BOOL","DATE","TIME","TIMESTAMP","TIMESTAMPTZ","INTERVAL","UUID","JSON","JSONB","ARRAY","BYTEA","INET","CIDR"],f=["SELECT","FROM","WHERE","INSERT INTO","UPDATE","DELETE FROM","CREATE TABLE","DROP TABLE","ALTER TABLE","JOIN","LEFT JOIN","RIGHT JOIN","INNER JOIN","GROUP BY","ORDER BY","HAVING","LIMIT"],D=["COUNT(*)","SUM()","AVG()","MIN()","MAX()","COALESCE()","CONCAT()","NOW()","CURRENT_DATE","CURRENT_TIMESTAMP","STRING_AGG()","ARRAY_AGG()","JSON_AGG()"],M=["INTEGER","VARCHAR","TEXT","BOOLEAN","TIMESTAMP","DATE","JSON","JSONB","UUID","SERIAL","BIGSERIAL"],V=({initialQuery:d,queryId:R,savedQuery:I,onQueryChange:m,onUnsavedChanges:E,onExecuteQuery:u,onSaveQuery:S})=>{const a=A.useRef(null),p=A.useRef(null);return A.useEffect(()=>{if(!a.current)return;e.register({id:"pgsql"}),e.registerDocumentFormattingEditProvider("pgsql",{provideDocumentFormattingEdits:t=>{const T=t.getValue().replace(/\s+/g," ").replace(/\s*,\s*/g,`,
1
+ import{j as O}from"./radix-ui-d5EbBw33.js";import{l as e,e as L,K as l,a as N}from"./monaco-editor-BMj4E99D.js";import{r as A}from"./icons-cLYU3CQS.js";import{t as S}from"./index-Dq7-70tK.js";import"./react-dom-BWKcCUTe.js";import"./tanstack-D5ysZnPZ.js";const g=["SELECT","FROM","WHERE","INSERT","UPDATE","DELETE","CREATE","DROP","ALTER","TABLE","INDEX","VIEW","DATABASE","SCHEMA","FUNCTION","PROCEDURE","TRIGGER","AND","OR","NOT","IN","BETWEEN","LIKE","IS","NULL","JOIN","LEFT","RIGHT","INNER","OUTER","CROSS","ON","USING","GROUP","BY","HAVING","ORDER","ASC","DESC","LIMIT","OFFSET","UNION","INTERSECT","EXCEPT","AS","DISTINCT","ALL","EXISTS","CASE","WHEN","THEN","ELSE","END","WITH","RECURSIVE","PRIMARY","KEY","FOREIGN","REFERENCES","UNIQUE","CHECK","DEFAULT","CASCADE","RESTRICT","NO","ACTION","SET","CONSTRAINT","BEGIN","COMMIT","ROLLBACK","SAVEPOINT","TRANSACTION","GRANT","REVOKE","PRIVILEGES","TO","RETURNING"],G=["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%",">>","<<","+=","-=","*=","/=","&=","|=","^=","%="],U=["COUNT","SUM","AVG","MIN","MAX","COALESCE","NULLIF","CAST","CONCAT","SUBSTRING","LOWER","UPPER","TRIM","LENGTH","NOW","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","EXTRACT","DATE_TRUNC","AGE","ARRAY_AGG","JSON_BUILD_OBJECT","JSON_AGG","ROW_NUMBER","RANK","DENSE_RANK","LAG","LEAD","FIRST_VALUE","LAST_VALUE","STRING_AGG","GENERATE_SERIES"],b=["INTEGER","INT","SMALLINT","BIGINT","DECIMAL","NUMERIC","REAL","DOUBLE","PRECISION","SERIAL","BIGSERIAL","VARCHAR","CHAR","TEXT","BOOLEAN","BOOL","DATE","TIME","TIMESTAMP","TIMESTAMPTZ","INTERVAL","UUID","JSON","JSONB","ARRAY","BYTEA","INET","CIDR"],f=["SELECT","FROM","WHERE","INSERT INTO","UPDATE","DELETE FROM","CREATE TABLE","DROP TABLE","ALTER TABLE","JOIN","LEFT JOIN","RIGHT JOIN","INNER JOIN","GROUP BY","ORDER BY","HAVING","LIMIT"],D=["COUNT(*)","SUM()","AVG()","MIN()","MAX()","COALESCE()","CONCAT()","NOW()","CURRENT_DATE","CURRENT_TIMESTAMP","STRING_AGG()","ARRAY_AGG()","JSON_AGG()"],M=["INTEGER","VARCHAR","TEXT","BOOLEAN","TIMESTAMP","DATE","JSON","JSONB","UUID","SERIAL","BIGSERIAL"],V=({initialQuery:d,queryId:R,savedQuery:I,onQueryChange:m,onUnsavedChanges:E,onExecuteQuery:u,onSaveQuery:c})=>{const a=A.useRef(null),p=A.useRef(null);return A.useEffect(()=>{if(!a.current)return;e.register({id:"pgsql"}),e.registerDocumentFormattingEditProvider("pgsql",{provideDocumentFormattingEdits:t=>{const T=t.getValue().replace(/\s+/g," ").replace(/\s*,\s*/g,`,
2
2
  `).replace(/\b(SELECT|FROM|WHERE|JOIN|LEFT JOIN|RIGHT JOIN|INNER JOIN|GROUP BY|ORDER BY|HAVING|LIMIT|OFFSET)\b/gi,`
3
3
  $1`).replace(/\b(AND|OR)\b/gi,`
4
4
  $1`).trim().split(`
@@ -6,4 +6,4 @@ $1`).replace(/\b(AND|OR)\b/gi,`
6
6
  `);return[{range:t.getFullModelRange(),text:T}]}}),e.setMonarchTokensProvider("pgsql",{defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,keywords:g,operators:G,builtinFunctions:U,builtinTypes:b,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinFunctions":"predefined","@builtinTypes":"type","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]]}}),e.registerCompletionItemProvider("pgsql",{provideCompletionItems:(t,s)=>{const T=t.getWordUntilPosition(s),o={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:T.startColumn,endColumn:T.endColumn};return{suggestions:[...f.map(r=>({label:r,kind:e.CompletionItemKind.Keyword,insertText:r,range:o})),...D.map(r=>({label:r,kind:e.CompletionItemKind.Function,insertText:r.includes("(*)")?r:r.replace("()","($0)"),insertTextRules:e.CompletionItemInsertTextRule.InsertAsSnippet,range:o})),...M.map(r=>({label:r,kind:e.CompletionItemKind.TypeParameter,insertText:r,range:o})),{label:"select-template",kind:e.CompletionItemKind.Snippet,insertText:["SELECT ${1:columns}","FROM ${2:table}","WHERE ${3:condition};"].join(`
7
7
  `),insertTextRules:e.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"SELECT statement template",range:o},{label:"create-table-template",kind:e.CompletionItemKind.Snippet,insertText:["CREATE TABLE ${1:table_name} ("," ${2:id} SERIAL PRIMARY KEY,"," ${3:column_name} ${4:VARCHAR(255)} ${5:NOT NULL},"," created_at TIMESTAMP DEFAULT NOW()",");"].join(`
8
8
  `),insertTextRules:e.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"CREATE TABLE template",range:o},{label:"insert-template",kind:e.CompletionItemKind.Snippet,insertText:["INSERT INTO ${1:table} (${2:columns})","VALUES (${3:values})","RETURNING *;"].join(`
9
- `),insertTextRules:e.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"INSERT statement template",range:o}]}}});const n=L.create(a.current,{value:d,language:"pgsql",theme:"vs-dark",fontSize:14,minimap:{enabled:!1},lineNumbers:"on",roundedSelection:!0,scrollBeyondLastLine:!0,scrollbar:{horizontal:"hidden",vertical:"hidden",useShadows:!1,verticalHasArrows:!1,horizontalHasArrows:!1,arrowSize:0},automaticLayout:!0,tabSize:4,insertSpaces:!0,wordWrap:"on",folding:!0,bracketPairColorization:{enabled:!0},suggest:{showKeywords:!0,showSnippets:!0},quickSuggestions:{other:!0,comments:!1,strings:!1}});if(p.current=n,n.addCommand(l.CtrlCmd|N.Enter,()=>{const t=n.getValue();if(!t.trim()){c.error("Query is empty!");return}u(t)}),n.addCommand(l.CtrlCmd|l.Shift|N.KeyF,()=>{n.trigger("keyboard","editor.action.formatDocument",{}),c.success("Query formatted")}),n.addCommand(l.CtrlCmd|N.KeyS,()=>{S()}),m(n.getValue()),R){const t=n.getValue();E(t!==I)}else E(!1);const C=n.onDidChangeModelContent(()=>{const t=n.getValue();if(m(t),!R){E(!1);return}E(t!==I)});return()=>{C.dispose(),n.dispose()}},[d,R,I,m,E,u,S]),O.jsx("div",{ref:a,className:"flex-1 min-h-0 overflow-y-scroll"})};export{V as CodeEditor};
9
+ `),insertTextRules:e.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"INSERT statement template",range:o}]}}});const n=L.create(a.current,{value:d,language:"pgsql",theme:"vs-dark",fontSize:14,minimap:{enabled:!1},lineNumbers:"on",roundedSelection:!0,scrollBeyondLastLine:!0,scrollbar:{horizontal:"hidden",vertical:"hidden",useShadows:!1,verticalHasArrows:!1,horizontalHasArrows:!1,arrowSize:0},automaticLayout:!0,tabSize:4,insertSpaces:!0,wordWrap:"on",folding:!0,bracketPairColorization:{enabled:!0},suggest:{showKeywords:!0,showSnippets:!0},quickSuggestions:{other:!0,comments:!1,strings:!1}});if(p.current=n,n.addCommand(l.CtrlCmd|N.Enter,()=>{const t=n.getValue();if(!t.trim()){S.error("Query is empty!");return}u(t)}),n.addCommand(l.CtrlCmd|l.Shift|N.KeyF,()=>{n.trigger("keyboard","editor.action.formatDocument",{}),S.success("Query formatted")}),n.addCommand(l.CtrlCmd|N.KeyS,()=>{c()}),m(n.getValue()),R){const t=n.getValue();E(t!==I)}else E(!1);const C=n.onDidChangeModelContent(()=>{const t=n.getValue();if(m(t),!R){E(!1);return}E(t!==I)});return()=>{C.dispose(),n.dispose()}},[d,R,I,m,E,u]),O.jsx("div",{ref:a,className:"flex-1 min-h-0 overflow-y-scroll"})};export{V as CodeEditor};
@@ -0,0 +1 @@
1
+ import{U as a,C as n}from"./mermaid.core-DmainLbW.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +1 @@
1
- import{_ as i}from"./mermaid.core-ds122QIK.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
1
+ import{_ as i}from"./mermaid.core-DmainLbW.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
@@ -1 +1 @@
1
- import{_ as a,d as o}from"./mermaid.core-ds122QIK.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g};
1
+ import{_ as a,d as o}from"./mermaid.core-DmainLbW.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g};
@@ -1,4 +1,4 @@
1
- import{g as Ze}from"./chunk-FMBD7UC4-BQmP0qBN.js";import{g as $e}from"./chunk-55IACEB6-Xrs620gj.js";import{s as et}from"./chunk-QN33PNHL-f1y0j0u4.js";import{_ as p,l as ve,c as D,p as tt,r as st,u as Ie,d as J,b as it,a as at,s as nt,g as rt,q as ut,t as lt,k as x,z as ct,y as ot,i as ht,a8 as M}from"./mermaid.core-ds122QIK.js";var Oe=(function(){var e=p(function(v,l,c,d){for(c=c||{},d=v.length;d--;c[v[d]]=l);return c},"o"),i=[1,18],r=[1,19],u=[1,20],a=[1,41],o=[1,42],A=[1,26],f=[1,24],k=[1,25],_=[1,32],he=[1,33],de=[1,34],C=[1,45],pe=[1,35],Ae=[1,36],fe=[1,37],ge=[1,38],Ce=[1,27],me=[1,28],be=[1,29],Ee=[1,30],ye=[1,31],m=[1,44],b=[1,46],E=[1,43],y=[1,47],Te=[1,9],h=[1,8,9],Z=[1,58],$=[1,59],ee=[1,60],te=[1,61],se=[1,62],ke=[1,63],De=[1,64],R=[1,8,9,41],we=[1,76],V=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],ie=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ae=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],Ve=[13,60,68,69,70,71,72,86,100,102,103],Fe=[1,100],U=[1,117],z=[1,113],K=[1,109],Y=[1,115],Q=[1,110],W=[1,111],j=[1,112],X=[1,114],q=[1,116],Pe=[22,48,60,61,82,86,87,88,89,90],Be=[1,8,9,39,41,44],ne=[1,8,9,22],Me=[1,145],Re=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],_e={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:p(function(l,c,d,n,g,t,H){var s=t.length-1;switch(g){case 8:this.$=t[s-1];break;case 9:case 10:case 13:case 15:this.$=t[s];break;case 11:case 14:this.$=t[s-2]+"."+t[s];break;case 12:case 16:this.$=t[s-1]+t[s];break;case 17:case 18:this.$=t[s-1]+"~"+t[s]+"~";break;case 19:n.addRelation(t[s]);break;case 20:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 31:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 35:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 36:this.$=t[s],n.addNamespace(t[s]);break;case 37:this.$=[t[s]];break;case 38:this.$=[t[s-1]];break;case 39:t[s].unshift(t[s-2]),this.$=t[s];break;case 41:n.setCssClass(t[s-2],t[s]);break;case 42:n.addMembers(t[s-3],t[s-1]);break;case 44:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 45:this.$=t[s],n.addClass(t[s]);break;case 46:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 50:n.addAnnotation(t[s],t[s-2]);break;case 51:case 64:this.$=[t[s]];break;case 52:t[s].push(t[s-1]),this.$=t[s];break;case 53:break;case 54:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 55:break;case 56:break;case 57:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 59:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 60:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 61:n.addNote(t[s],t[s-1]);break;case 62:n.addNote(t[s]);break;case 63:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 65:this.$=t[s-2].concat([t[s]]);break;case 66:n.setDirection("TB");break;case 67:n.setDirection("BT");break;case 68:n.setDirection("RL");break;case 69:n.setDirection("LR");break;case 70:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 71:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 72:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 73:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 74:this.$=n.relationType.AGGREGATION;break;case 75:this.$=n.relationType.EXTENSION;break;case 76:this.$=n.relationType.COMPOSITION;break;case 77:this.$=n.relationType.DEPENDENCY;break;case 78:this.$=n.relationType.LOLLIPOP;break;case 79:this.$=n.lineType.LINE;break;case 80:this.$=n.lineType.DOTTED_LINE;break;case 81:case 87:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 82:case 88:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 83:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 84:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 86:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 89:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 90:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 91:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 92:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 93:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 94:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 95:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 96:n.setCssClass(t[s-1],t[s]);break;case 97:this.$=[t[s]];break;case 98:t[s-2].push(t[s]),this.$=t[s-2];break;case 100:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,49:A,51:f,52:k,54:_,56:he,57:de,60:C,62:pe,63:Ae,64:fe,65:ge,75:Ce,76:me,78:be,82:Ee,83:ye,86:m,100:b,102:E,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Te,[2,5],{8:[1,48]}),{8:[1,49]},e(h,[2,19],{22:[1,50]}),e(h,[2,21]),e(h,[2,22]),e(h,[2,23]),e(h,[2,24]),e(h,[2,25]),e(h,[2,26]),e(h,[2,27]),e(h,[2,28]),e(h,[2,29]),e(h,[2,30]),{34:[1,51]},{36:[1,52]},e(h,[2,33]),e(h,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:$,70:ee,71:te,72:se,73:ke,74:De}),{39:[1,65]},e(R,[2,40],{39:[1,67],44:[1,66]}),e(h,[2,55]),e(h,[2,56]),{16:68,60:C,86:m,100:b,102:E},{16:39,17:40,19:69,60:C,86:m,100:b,102:E,103:y},{16:39,17:40,19:70,60:C,86:m,100:b,102:E,103:y},{16:39,17:40,19:71,60:C,86:m,100:b,102:E,103:y},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:C,86:m,100:b,102:E,103:y},{13:we,55:75},{58:77,60:[1,78]},e(h,[2,66]),e(h,[2,67]),e(h,[2,68]),e(h,[2,69]),e(V,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:C,86:m,100:b,102:E,103:y}),e(V,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:C,86:m,100:b,102:E,103:y},{16:39,17:40,19:86,60:C,86:m,100:b,102:E,103:y},e(ie,[2,123]),e(ie,[2,124]),e(ie,[2,125]),e(ie,[2,126]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),e(Te,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:r,37:u,42:a,46:o,49:A,51:f,52:k,54:_,56:he,57:de,60:C,62:pe,63:Ae,64:fe,65:ge,75:Ce,76:me,78:be,82:Ee,83:ye,86:m,100:b,102:E,103:y}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,49:A,51:f,52:k,54:_,56:he,57:de,60:C,62:pe,63:Ae,64:fe,65:ge,75:Ce,76:me,78:be,82:Ee,83:ye,86:m,100:b,102:E,103:y},e(h,[2,20]),e(h,[2,31]),e(h,[2,32]),{13:[1,90],16:39,17:40,19:89,60:C,86:m,100:b,102:E,103:y},{53:91,66:56,67:57,68:Z,69:$,70:ee,71:te,72:se,73:ke,74:De},e(h,[2,54]),{67:92,73:ke,74:De},e(ae,[2,73],{66:93,68:Z,69:$,70:ee,71:te,72:se}),e(G,[2,74]),e(G,[2,75]),e(G,[2,76]),e(G,[2,77]),e(G,[2,78]),e(Ve,[2,79]),e(Ve,[2,80]),{8:[1,95],24:96,40:94,43:23,46:o},{16:97,60:C,86:m,100:b,102:E},{41:[1,99],45:98,51:Fe},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:U,48:z,59:106,60:K,82:Y,84:107,85:108,86:Q,87:W,88:j,89:X,90:q},{60:[1,118]},{13:we,55:119},e(h,[2,62]),e(h,[2,128]),{22:U,48:z,59:120,60:K,61:[1,121],82:Y,84:107,85:108,86:Q,87:W,88:j,89:X,90:q},e(Pe,[2,64]),{16:39,17:40,19:122,60:C,86:m,100:b,102:E,103:y},e(V,[2,16]),e(V,[2,17]),e(V,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:C,86:m,100:b,102:E,103:y},{39:[2,10]},e(Be,[2,45],{11:125,12:[1,126]}),e(Te,[2,7]),{9:[1,127]},e(ne,[2,57]),{16:39,17:40,19:128,60:C,86:m,100:b,102:E,103:y},{13:[1,130],16:39,17:40,19:129,60:C,86:m,100:b,102:E,103:y},e(ae,[2,72],{66:131,68:Z,69:$,70:ee,71:te,72:se}),e(ae,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:o},{8:[1,134],41:[2,37]},e(R,[2,41],{39:[1,135]}),{41:[1,136]},e(R,[2,43]),{41:[2,51],45:137,51:Fe},{16:39,17:40,19:138,60:C,86:m,100:b,102:E,103:y},e(h,[2,81],{13:[1,139]}),e(h,[2,83],{13:[1,141],77:[1,140]}),e(h,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},e(h,[2,95],{61:Me}),e(Re,[2,97],{85:146,22:U,48:z,60:K,82:Y,86:Q,87:W,88:j,89:X,90:q}),e(N,[2,99]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(N,[2,105]),e(N,[2,106]),e(N,[2,107]),e(N,[2,108]),e(N,[2,109]),e(h,[2,96]),e(h,[2,61]),e(h,[2,63],{61:Me}),{60:[1,147]},e(V,[2,14]),{15:148,16:84,17:85,60:C,86:m,100:b,102:E,103:y},{39:[2,12]},e(Be,[2,46]),{13:[1,149]},{1:[2,4]},e(ne,[2,59]),e(ne,[2,58]),{16:39,17:40,19:150,60:C,86:m,100:b,102:E,103:y},e(ae,[2,70]),e(h,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:o},{45:153,51:Fe},e(R,[2,42]),{41:[2,52]},e(h,[2,50]),e(h,[2,82]),e(h,[2,84]),e(h,[2,85],{77:[1,154]}),e(h,[2,88]),e(h,[2,89],{13:[1,155]}),e(h,[2,91],{13:[1,157],77:[1,156]}),{22:U,48:z,60:K,82:Y,84:158,85:108,86:Q,87:W,88:j,89:X,90:q},e(N,[2,100]),e(Pe,[2,65]),{39:[2,11]},{14:[1,159]},e(ne,[2,60]),e(h,[2,35]),{41:[2,39]},{41:[1,160]},e(h,[2,86]),e(h,[2,90]),e(h,[2,92]),e(h,[2,93],{77:[1,161]}),e(Re,[2,98],{85:146,22:U,48:z,60:K,82:Y,86:Q,87:W,88:j,89:X,90:q}),e(Be,[2,8]),e(R,[2,44]),e(h,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:p(function(l,c){if(c.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=c,d}},"parseError"),parse:p(function(l){var c=this,d=[0],n=[],g=[null],t=[],H=this.table,s="",ue=0,Ge=0,Xe=2,Ue=1,qe=t.slice.call(arguments,1),T=Object.create(this.lexer),I={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(I.yy[Se]=this.yy[Se]);T.setInput(l,I.yy),I.yy.lexer=T,I.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Ne=T.yylloc;t.push(Ne);var He=T.options&&T.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(B){d.length=d.length-2*B,g.length=g.length-B,t.length=t.length-B}p(Je,"popStack");function ze(){var B;return B=n.pop()||T.lex()||Ue,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=c.symbols_[B]||B),B}p(ze,"lex");for(var F,O,S,Le,P={},le,L,Ke,ce;;){if(O=d[d.length-1],this.defaultActions[O]?S=this.defaultActions[O]:((F===null||typeof F>"u")&&(F=ze()),S=H[O]&&H[O][F]),typeof S>"u"||!S.length||!S[0]){var xe="";ce=[];for(le in H[O])this.terminals_[le]&&le>Xe&&ce.push("'"+this.terminals_[le]+"'");T.showPosition?xe="Parse error on line "+(ue+1)+`:
1
+ import{g as Ze}from"./chunk-FMBD7UC4-XJsNmwVW.js";import{g as $e}from"./chunk-55IACEB6-DFZ6X9qg.js";import{s as et}from"./chunk-QN33PNHL-CujeLF1b.js";import{_ as p,l as ve,c as D,p as tt,r as st,u as Ie,d as J,b as it,a as at,s as nt,g as rt,q as ut,t as lt,k as x,z as ct,y as ot,i as ht,a8 as M}from"./mermaid.core-DmainLbW.js";var Oe=(function(){var e=p(function(v,l,c,d){for(c=c||{},d=v.length;d--;c[v[d]]=l);return c},"o"),i=[1,18],r=[1,19],u=[1,20],a=[1,41],o=[1,42],A=[1,26],f=[1,24],k=[1,25],_=[1,32],he=[1,33],de=[1,34],C=[1,45],pe=[1,35],Ae=[1,36],fe=[1,37],ge=[1,38],Ce=[1,27],me=[1,28],be=[1,29],Ee=[1,30],ye=[1,31],m=[1,44],b=[1,46],E=[1,43],y=[1,47],Te=[1,9],h=[1,8,9],Z=[1,58],$=[1,59],ee=[1,60],te=[1,61],se=[1,62],ke=[1,63],De=[1,64],R=[1,8,9,41],we=[1,76],V=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],ie=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ae=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],Ve=[13,60,68,69,70,71,72,86,100,102,103],Fe=[1,100],U=[1,117],z=[1,113],K=[1,109],Y=[1,115],Q=[1,110],W=[1,111],j=[1,112],X=[1,114],q=[1,116],Pe=[22,48,60,61,82,86,87,88,89,90],Be=[1,8,9,39,41,44],ne=[1,8,9,22],Me=[1,145],Re=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],_e={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:p(function(l,c,d,n,g,t,H){var s=t.length-1;switch(g){case 8:this.$=t[s-1];break;case 9:case 10:case 13:case 15:this.$=t[s];break;case 11:case 14:this.$=t[s-2]+"."+t[s];break;case 12:case 16:this.$=t[s-1]+t[s];break;case 17:case 18:this.$=t[s-1]+"~"+t[s]+"~";break;case 19:n.addRelation(t[s]);break;case 20:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 31:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 35:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 36:this.$=t[s],n.addNamespace(t[s]);break;case 37:this.$=[t[s]];break;case 38:this.$=[t[s-1]];break;case 39:t[s].unshift(t[s-2]),this.$=t[s];break;case 41:n.setCssClass(t[s-2],t[s]);break;case 42:n.addMembers(t[s-3],t[s-1]);break;case 44:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 45:this.$=t[s],n.addClass(t[s]);break;case 46:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 50:n.addAnnotation(t[s],t[s-2]);break;case 51:case 64:this.$=[t[s]];break;case 52:t[s].push(t[s-1]),this.$=t[s];break;case 53:break;case 54:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 55:break;case 56:break;case 57:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 59:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 60:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 61:n.addNote(t[s],t[s-1]);break;case 62:n.addNote(t[s]);break;case 63:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 65:this.$=t[s-2].concat([t[s]]);break;case 66:n.setDirection("TB");break;case 67:n.setDirection("BT");break;case 68:n.setDirection("RL");break;case 69:n.setDirection("LR");break;case 70:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 71:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 72:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 73:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 74:this.$=n.relationType.AGGREGATION;break;case 75:this.$=n.relationType.EXTENSION;break;case 76:this.$=n.relationType.COMPOSITION;break;case 77:this.$=n.relationType.DEPENDENCY;break;case 78:this.$=n.relationType.LOLLIPOP;break;case 79:this.$=n.lineType.LINE;break;case 80:this.$=n.lineType.DOTTED_LINE;break;case 81:case 87:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 82:case 88:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 83:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 84:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 86:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 89:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 90:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 91:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 92:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 93:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 94:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 95:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 96:n.setCssClass(t[s-1],t[s]);break;case 97:this.$=[t[s]];break;case 98:t[s-2].push(t[s]),this.$=t[s-2];break;case 100:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,49:A,51:f,52:k,54:_,56:he,57:de,60:C,62:pe,63:Ae,64:fe,65:ge,75:Ce,76:me,78:be,82:Ee,83:ye,86:m,100:b,102:E,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Te,[2,5],{8:[1,48]}),{8:[1,49]},e(h,[2,19],{22:[1,50]}),e(h,[2,21]),e(h,[2,22]),e(h,[2,23]),e(h,[2,24]),e(h,[2,25]),e(h,[2,26]),e(h,[2,27]),e(h,[2,28]),e(h,[2,29]),e(h,[2,30]),{34:[1,51]},{36:[1,52]},e(h,[2,33]),e(h,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:$,70:ee,71:te,72:se,73:ke,74:De}),{39:[1,65]},e(R,[2,40],{39:[1,67],44:[1,66]}),e(h,[2,55]),e(h,[2,56]),{16:68,60:C,86:m,100:b,102:E},{16:39,17:40,19:69,60:C,86:m,100:b,102:E,103:y},{16:39,17:40,19:70,60:C,86:m,100:b,102:E,103:y},{16:39,17:40,19:71,60:C,86:m,100:b,102:E,103:y},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:C,86:m,100:b,102:E,103:y},{13:we,55:75},{58:77,60:[1,78]},e(h,[2,66]),e(h,[2,67]),e(h,[2,68]),e(h,[2,69]),e(V,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:C,86:m,100:b,102:E,103:y}),e(V,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:C,86:m,100:b,102:E,103:y},{16:39,17:40,19:86,60:C,86:m,100:b,102:E,103:y},e(ie,[2,123]),e(ie,[2,124]),e(ie,[2,125]),e(ie,[2,126]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),e(Te,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:r,37:u,42:a,46:o,49:A,51:f,52:k,54:_,56:he,57:de,60:C,62:pe,63:Ae,64:fe,65:ge,75:Ce,76:me,78:be,82:Ee,83:ye,86:m,100:b,102:E,103:y}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,49:A,51:f,52:k,54:_,56:he,57:de,60:C,62:pe,63:Ae,64:fe,65:ge,75:Ce,76:me,78:be,82:Ee,83:ye,86:m,100:b,102:E,103:y},e(h,[2,20]),e(h,[2,31]),e(h,[2,32]),{13:[1,90],16:39,17:40,19:89,60:C,86:m,100:b,102:E,103:y},{53:91,66:56,67:57,68:Z,69:$,70:ee,71:te,72:se,73:ke,74:De},e(h,[2,54]),{67:92,73:ke,74:De},e(ae,[2,73],{66:93,68:Z,69:$,70:ee,71:te,72:se}),e(G,[2,74]),e(G,[2,75]),e(G,[2,76]),e(G,[2,77]),e(G,[2,78]),e(Ve,[2,79]),e(Ve,[2,80]),{8:[1,95],24:96,40:94,43:23,46:o},{16:97,60:C,86:m,100:b,102:E},{41:[1,99],45:98,51:Fe},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:U,48:z,59:106,60:K,82:Y,84:107,85:108,86:Q,87:W,88:j,89:X,90:q},{60:[1,118]},{13:we,55:119},e(h,[2,62]),e(h,[2,128]),{22:U,48:z,59:120,60:K,61:[1,121],82:Y,84:107,85:108,86:Q,87:W,88:j,89:X,90:q},e(Pe,[2,64]),{16:39,17:40,19:122,60:C,86:m,100:b,102:E,103:y},e(V,[2,16]),e(V,[2,17]),e(V,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:C,86:m,100:b,102:E,103:y},{39:[2,10]},e(Be,[2,45],{11:125,12:[1,126]}),e(Te,[2,7]),{9:[1,127]},e(ne,[2,57]),{16:39,17:40,19:128,60:C,86:m,100:b,102:E,103:y},{13:[1,130],16:39,17:40,19:129,60:C,86:m,100:b,102:E,103:y},e(ae,[2,72],{66:131,68:Z,69:$,70:ee,71:te,72:se}),e(ae,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:o},{8:[1,134],41:[2,37]},e(R,[2,41],{39:[1,135]}),{41:[1,136]},e(R,[2,43]),{41:[2,51],45:137,51:Fe},{16:39,17:40,19:138,60:C,86:m,100:b,102:E,103:y},e(h,[2,81],{13:[1,139]}),e(h,[2,83],{13:[1,141],77:[1,140]}),e(h,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},e(h,[2,95],{61:Me}),e(Re,[2,97],{85:146,22:U,48:z,60:K,82:Y,86:Q,87:W,88:j,89:X,90:q}),e(N,[2,99]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(N,[2,105]),e(N,[2,106]),e(N,[2,107]),e(N,[2,108]),e(N,[2,109]),e(h,[2,96]),e(h,[2,61]),e(h,[2,63],{61:Me}),{60:[1,147]},e(V,[2,14]),{15:148,16:84,17:85,60:C,86:m,100:b,102:E,103:y},{39:[2,12]},e(Be,[2,46]),{13:[1,149]},{1:[2,4]},e(ne,[2,59]),e(ne,[2,58]),{16:39,17:40,19:150,60:C,86:m,100:b,102:E,103:y},e(ae,[2,70]),e(h,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:o},{45:153,51:Fe},e(R,[2,42]),{41:[2,52]},e(h,[2,50]),e(h,[2,82]),e(h,[2,84]),e(h,[2,85],{77:[1,154]}),e(h,[2,88]),e(h,[2,89],{13:[1,155]}),e(h,[2,91],{13:[1,157],77:[1,156]}),{22:U,48:z,60:K,82:Y,84:158,85:108,86:Q,87:W,88:j,89:X,90:q},e(N,[2,100]),e(Pe,[2,65]),{39:[2,11]},{14:[1,159]},e(ne,[2,60]),e(h,[2,35]),{41:[2,39]},{41:[1,160]},e(h,[2,86]),e(h,[2,90]),e(h,[2,92]),e(h,[2,93],{77:[1,161]}),e(Re,[2,98],{85:146,22:U,48:z,60:K,82:Y,86:Q,87:W,88:j,89:X,90:q}),e(Be,[2,8]),e(R,[2,44]),e(h,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:p(function(l,c){if(c.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=c,d}},"parseError"),parse:p(function(l){var c=this,d=[0],n=[],g=[null],t=[],H=this.table,s="",ue=0,Ge=0,Xe=2,Ue=1,qe=t.slice.call(arguments,1),T=Object.create(this.lexer),I={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(I.yy[Se]=this.yy[Se]);T.setInput(l,I.yy),I.yy.lexer=T,I.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Ne=T.yylloc;t.push(Ne);var He=T.options&&T.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(B){d.length=d.length-2*B,g.length=g.length-B,t.length=t.length-B}p(Je,"popStack");function ze(){var B;return B=n.pop()||T.lex()||Ue,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=c.symbols_[B]||B),B}p(ze,"lex");for(var F,O,S,Le,P={},le,L,Ke,ce;;){if(O=d[d.length-1],this.defaultActions[O]?S=this.defaultActions[O]:((F===null||typeof F>"u")&&(F=ze()),S=H[O]&&H[O][F]),typeof S>"u"||!S.length||!S[0]){var xe="";ce=[];for(le in H[O])this.terminals_[le]&&le>Xe&&ce.push("'"+this.terminals_[le]+"'");T.showPosition?xe="Parse error on line "+(ue+1)+`:
2
2
  `+T.showPosition()+`
3
3
  Expecting `+ce.join(", ")+", got '"+(this.terminals_[F]||F)+"'":xe="Parse error on line "+(ue+1)+": Unexpected "+(F==Ue?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(xe,{text:T.match,token:this.terminals_[F]||F,line:T.yylineno,loc:Ne,expected:ce})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+F);switch(S[0]){case 1:d.push(F),g.push(T.yytext),t.push(T.yylloc),d.push(S[1]),F=null,Ge=T.yyleng,s=T.yytext,ue=T.yylineno,Ne=T.yylloc;break;case 2:if(L=this.productions_[S[1]][1],P.$=g[g.length-L],P._$={first_line:t[t.length-(L||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(L||1)].first_column,last_column:t[t.length-1].last_column},He&&(P._$.range=[t[t.length-(L||1)].range[0],t[t.length-1].range[1]]),Le=this.performAction.apply(P,[s,Ge,ue,I.yy,S[1],g,t].concat(qe)),typeof Le<"u")return Le;L&&(d=d.slice(0,-1*L*2),g=g.slice(0,-1*L),t=t.slice(0,-1*L)),d.push(this.productions_[S[1]][0]),g.push(P.$),t.push(P._$),Ke=H[d[d.length-2]][d[d.length-1]],d.push(Ke);break;case 3:return!0}}return!0},"parse")},je=(function(){var v={EOF:1,parseError:p(function(c,d){if(this.yy.parser)this.yy.parser.parseError(c,d);else throw new Error(c)},"parseError"),setInput:p(function(l,c){return this.yy=c||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var c=l.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:p(function(l){var c=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===n.length?this.yylloc.first_column:0)+n[n.length-d.length].length-d[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(l){this.unput(this.match.slice(l))},"less"),pastInput:p(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var l=this.pastInput(),c=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as Zt}from"./chunk-55IACEB6-Xrs620gj.js";import{s as te}from"./chunk-QN33PNHL-f1y0j0u4.js";import{_ as d,l as _,c as w,r as ee,u as se,a as ie,b as re,g as ae,s as ne,q as oe,t as le,ab as ce,k as U,z as he}from"./mermaid.core-ds122QIK.js";var kt=(function(){var t=d(function(Y,a,c,r){for(c=c||{},r=Y.length;r--;c[Y[r]]=a);return c},"o"),e=[1,2],o=[1,3],s=[1,4],h=[2,4],u=[1,9],S=[1,11],g=[1,16],n=[1,17],T=[1,18],b=[1,19],C=[1,33],A=[1,20],k=[1,21],f=[1,22],D=[1,23],R=[1,24],L=[1,26],$=[1,27],I=[1,28],P=[1,29],et=[1,30],st=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],j=[1,34],p=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],At=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:d(function(a,c,r,y,E,i,X){var l=i.length-1;switch(E){case 3:return y.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const J=i[l-1];J.description=y.trimColon(i[l]),this.$=J;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const gt=y.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:gt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var B=i[l],H=i[l-2].trim();if(i[l].match(":")){var ht=i[l].split(":");B=ht[0],H=[H,ht[1]]}this.$={stmt:"state",id:B,type:"default",description:H};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),y.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],h,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,7]),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(p,[2,11]),t(p,[2,12],{14:[1,40],15:[1,41]}),t(p,[2,16]),{18:[1,42]},t(p,[2,18],{20:[1,43]}),{23:[1,44]},t(p,[2,22]),t(p,[2,23]),t(p,[2,24]),t(p,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(p,[2,28]),{34:[1,49]},{36:[1,50]},t(p,[2,31]),{13:51,24:C,57:j},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(p,[2,38]),t(p,[2,39]),t(p,[2,40]),t(p,[2,41]),t(p,[2,6]),t(p,[2,13]),{13:58,24:C,57:j},t(p,[2,17]),t(At,h,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(p,[2,29]),t(p,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(p,[2,14],{14:[1,71]}),{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,72],22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(p,[2,34]),t(p,[2,35]),t(p,[2,36]),t(p,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(p,[2,15]),t(p,[2,19]),t(At,h,{7:78}),t(p,[2,26]),t(p,[2,27]),{5:[1,79]},{5:[1,80]},{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,81],22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,32]),t(p,[2,33]),t(p,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:d(function(a,c){if(c.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=c,r}},"parseError"),parse:d(function(a){var c=this,r=[0],y=[],E=[null],i=[],X=this.table,l="",B=0,H=0,ht=2,J=1,gt=i.slice.call(arguments,1),m=Object.create(this.lexer),V={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(V.yy[Tt]=this.yy[Tt]);m.setInput(a,V.yy),V.yy.lexer=m,V.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;i.push(Et);var qt=m.options&&m.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qt(O){r.length=r.length-2*O,E.length=E.length-O,i.length=i.length-O}d(Qt,"popStack");function xt(){var O;return O=y.pop()||m.lex()||J,typeof O!="number"&&(O instanceof Array&&(y=O,O=y.pop()),O=c.symbols_[O]||O),O}d(xt,"lex");for(var x,M,N,_t,z={},ut,F,Lt,dt;;){if(M=r[r.length-1],this.defaultActions[M]?N=this.defaultActions[M]:((x===null||typeof x>"u")&&(x=xt()),N=X[M]&&X[M][x]),typeof N>"u"||!N.length||!N[0]){var mt="";dt=[];for(ut in X[M])this.terminals_[ut]&&ut>ht&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?mt="Parse error on line "+(B+1)+`:
1
+ import{g as Zt}from"./chunk-55IACEB6-DFZ6X9qg.js";import{s as te}from"./chunk-QN33PNHL-CujeLF1b.js";import{_ as d,l as _,c as w,r as ee,u as se,a as ie,b as re,g as ae,s as ne,q as oe,t as le,ab as ce,k as U,z as he}from"./mermaid.core-DmainLbW.js";var kt=(function(){var t=d(function(Y,a,c,r){for(c=c||{},r=Y.length;r--;c[Y[r]]=a);return c},"o"),e=[1,2],o=[1,3],s=[1,4],h=[2,4],u=[1,9],S=[1,11],g=[1,16],n=[1,17],T=[1,18],b=[1,19],C=[1,33],A=[1,20],k=[1,21],f=[1,22],D=[1,23],R=[1,24],L=[1,26],$=[1,27],I=[1,28],P=[1,29],et=[1,30],st=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],j=[1,34],p=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],At=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:d(function(a,c,r,y,E,i,X){var l=i.length-1;switch(E){case 3:return y.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const J=i[l-1];J.description=y.trimColon(i[l]),this.$=J;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const gt=y.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:gt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var B=i[l],H=i[l-2].trim();if(i[l].match(":")){var ht=i[l].split(":");B=ht[0],H=[H,ht[1]]}this.$={stmt:"state",id:B,type:"default",description:H};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),y.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],h,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,7]),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(p,[2,11]),t(p,[2,12],{14:[1,40],15:[1,41]}),t(p,[2,16]),{18:[1,42]},t(p,[2,18],{20:[1,43]}),{23:[1,44]},t(p,[2,22]),t(p,[2,23]),t(p,[2,24]),t(p,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(p,[2,28]),{34:[1,49]},{36:[1,50]},t(p,[2,31]),{13:51,24:C,57:j},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(p,[2,38]),t(p,[2,39]),t(p,[2,40]),t(p,[2,41]),t(p,[2,6]),t(p,[2,13]),{13:58,24:C,57:j},t(p,[2,17]),t(At,h,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(p,[2,29]),t(p,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(p,[2,14],{14:[1,71]}),{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,72],22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(p,[2,34]),t(p,[2,35]),t(p,[2,36]),t(p,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(p,[2,15]),t(p,[2,19]),t(At,h,{7:78}),t(p,[2,26]),t(p,[2,27]),{5:[1,79]},{5:[1,80]},{4:u,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,81],22:b,24:C,25:A,26:k,27:f,28:D,29:R,32:25,33:L,35:$,37:I,38:P,41:et,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,32]),t(p,[2,33]),t(p,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:d(function(a,c){if(c.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=c,r}},"parseError"),parse:d(function(a){var c=this,r=[0],y=[],E=[null],i=[],X=this.table,l="",B=0,H=0,ht=2,J=1,gt=i.slice.call(arguments,1),m=Object.create(this.lexer),V={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(V.yy[Tt]=this.yy[Tt]);m.setInput(a,V.yy),V.yy.lexer=m,V.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;i.push(Et);var qt=m.options&&m.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qt(O){r.length=r.length-2*O,E.length=E.length-O,i.length=i.length-O}d(Qt,"popStack");function xt(){var O;return O=y.pop()||m.lex()||J,typeof O!="number"&&(O instanceof Array&&(y=O,O=y.pop()),O=c.symbols_[O]||O),O}d(xt,"lex");for(var x,M,N,_t,z={},ut,F,Lt,dt;;){if(M=r[r.length-1],this.defaultActions[M]?N=this.defaultActions[M]:((x===null||typeof x>"u")&&(x=xt()),N=X[M]&&X[M][x]),typeof N>"u"||!N.length||!N[0]){var mt="";dt=[];for(ut in X[M])this.terminals_[ut]&&ut>ht&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?mt="Parse error on line "+(B+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+dt.join(", ")+", got '"+(this.terminals_[x]||x)+"'":mt="Parse error on line "+(B+1)+": Unexpected "+(x==J?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(mt,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:Et,expected:dt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+x);switch(N[0]){case 1:r.push(x),E.push(m.yytext),i.push(m.yylloc),r.push(N[1]),x=null,H=m.yyleng,l=m.yytext,B=m.yylineno,Et=m.yylloc;break;case 2:if(F=this.productions_[N[1]][1],z.$=E[E.length-F],z._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},qt&&(z._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),_t=this.performAction.apply(z,[l,H,B,V.yy,N[1],E,i].concat(gt)),typeof _t<"u")return _t;F&&(r=r.slice(0,-1*F*2),E=E.slice(0,-1*F),i=i.slice(0,-1*F)),r.push(this.productions_[N[1]][0]),E.push(z.$),i.push(z._$),Lt=X[r[r.length-2]][r[r.length-1]],r.push(Lt);break;case 3:return!0}}return!0},"parse")},Jt=(function(){var Y={EOF:1,parseError:d(function(c,r){if(this.yy.parser)this.yy.parser.parseError(c,r);else throw new Error(c)},"parseError"),setInput:d(function(a,c){return this.yy=c||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var c=a.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:d(function(a){var c=a.length,r=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===y.length?this.yylloc.first_column:0)+y[y.length-r.length].length-r[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(a){this.unput(this.match.slice(a))},"less"),pastInput:d(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{_ as e}from"./mermaid.core-ds122QIK.js";var l=e(()=>`
1
+ import{_ as e}from"./mermaid.core-DmainLbW.js";var l=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -1 +1 @@
1
- import{_ as a,e as w,l as x}from"./mermaid.core-ds122QIK.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s};
1
+ import{_ as a,e as w,l as x}from"./mermaid.core-DmainLbW.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s};
@@ -1 +1 @@
1
- import{_ as i}from"./mermaid.core-ds122QIK.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I};
1
+ import{_ as i}from"./mermaid.core-DmainLbW.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I};
@@ -1 +1 @@
1
- import{_ as n,n as o,j as l}from"./mermaid.core-ds122QIK.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g};
1
+ import{_ as n,n as o,j as l}from"./mermaid.core-DmainLbW.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g};
@@ -0,0 +1 @@
1
+ import{s as t,c as a,a as i,C as s}from"./chunk-B4BG7PRW-BmPKklye.js";import{_ as o}from"./mermaid.core-DmainLbW.js";import"./chunk-FMBD7UC4-XJsNmwVW.js";import"./chunk-55IACEB6-DFZ6X9qg.js";import"./chunk-QN33PNHL-CujeLF1b.js";import"./monaco-editor-BMj4E99D.js";import"./icons-cLYU3CQS.js";import"./mermaid-VLURNSYL-BZBKtjwf.js";import"./radix-ui-d5EbBw33.js";import"./react-dom-BWKcCUTe.js";import"./tanstack-D5ysZnPZ.js";import"./index-Dq7-70tK.js";import"./scroll-area-NHyDhTA5.js";import"./index-pzKFI-Vs.js";import"./_pathlessLayout-J4rDhSFV.js";import"./queries.store-BqdJNevl.js";var A={parser:i,get db(){return new s},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{A as diagram};
@@ -0,0 +1 @@
1
+ import{s as t,c as a,a as i,C as s}from"./chunk-B4BG7PRW-BmPKklye.js";import{_ as o}from"./mermaid.core-DmainLbW.js";import"./chunk-FMBD7UC4-XJsNmwVW.js";import"./chunk-55IACEB6-DFZ6X9qg.js";import"./chunk-QN33PNHL-CujeLF1b.js";import"./monaco-editor-BMj4E99D.js";import"./icons-cLYU3CQS.js";import"./mermaid-VLURNSYL-BZBKtjwf.js";import"./radix-ui-d5EbBw33.js";import"./react-dom-BWKcCUTe.js";import"./tanstack-D5ysZnPZ.js";import"./index-Dq7-70tK.js";import"./scroll-area-NHyDhTA5.js";import"./index-pzKFI-Vs.js";import"./_pathlessLayout-J4rDhSFV.js";import"./queries.store-BqdJNevl.js";var A={parser:i,get db(){return new s},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{A as diagram};
@@ -0,0 +1 @@
1
+ import{b as r}from"./graph-CNujjUl6.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/latex-B4uzh10-.js","assets/tex-CvyZ59Mk.js","assets/liquid-DYVedYrR.js","assets/marko-DZsq8hO1.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-C1TweQQi.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-zxCyuUbr.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
- import{w as Vt,s as Gr,f as Hn,a as zn,b as qn,c as er,z as Xn,h as Qn,d as Kn,C as Jn,D as Zn,u as Mt}from"./mermaid-VLURNSYL-_Y2XU6_c.js";import{r as ue}from"./icons-DJrV7d9i.js";import{j as V}from"./radix-ui-Cy3m1w7k.js";import{_ as u}from"./monaco-editor-BMj4E99D.js";import"./tanstack-qLXitSFb.js";import"./react-dom-DJoE1oD9.js";import"./index-ERxh7PXo.js";import"./scroll-area-BrIAuvEe.js";import"./spinner-BESLBiEc.js";import"./_pathlessLayout-DjLhpgxd.js";import"./queries.store-Bxxvcbg7.js";let I=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yn(t){return Gt(t)}function Gt(t){return Array.isArray(t)?ei(t):t instanceof RegExp?t:typeof t=="object"?ti(t):t}function ei(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Gt(t[r]);return e}function ti(t){let e={};for(let r in t)e[r]=Gt(t[r]);return e}function Br(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function Fr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Fr(t.substring(0,t.length-1)):t.substr(~e+1)}var ot=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Te=class{static hasCaptures(t){return t===null?!1:(ot.lastIndex=0,ot.test(t))}static replaceCaptures(t,e,r){return t.replace(ot,(n,i,s,o)=>{let c=r[parseInt(i||s,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function jr(t,e){return t<e?-1:t>e?1:0}function Ur(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let s=jr(t[i],e[i]);if(s!==0)return s}return 0}return r-n}function tr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Wr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Hr=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Be=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(ii(t),e)}static createFromParsedTheme(t,e){return oi(t,e)}_cachedMatchRoot=new Hr(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>ri(t.parent,i.parentScopes));return n?new zr(n.fontStyle,n.foreground,n.background):null}},at=class Ve{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new Ve(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new Ve(r,e[n]);return r}push(e){return new Ve(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function ri(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!ni(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function ni(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var zr=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function ii(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let p=o.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),c=p.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let p=o.settings.fontStyle.split(" ");for(let h=0,f=p.length;h<f;h++)switch(p[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let l=null;typeof o.settings.foreground=="string"&&tr(o.settings.foreground)&&(l=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&tr(o.settings.background)&&(d=o.settings.background);for(let p=0,h=c.length;p<h;p++){let m=c[p].trim().split(" "),y=m[m.length-1],E=null;m.length>1&&(E=m.slice(0,m.length-1),E.reverse()),r[n++]=new si(y,E,i,a,l,d)}}return r}var si=class{constructor(t,e,r,n,i,s){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=s}},O=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(O||{});function oi(t,e){t.sort((a,l)=>{let d=jr(a.scope,l.scope);return d!==0||(d=Ur(a.parentScopes,l.parentScopes),d!==0)?d:a.index-l.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(r=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let s=new ai(e),o=new zr(r,s.getId(n),s.getId(i)),c=new li(new Ct(0,null,-1,0,0),[]);for(let a=0,l=t.length;a<l;a++){let d=t[a];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new Be(s,o,c)}var ai=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},ci=Object.freeze([]),Ct=class qr{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,s){this.scopeDepth=e,this.parentScopes=r||ci,this.fontStyle=n,this.foreground=i,this.background=s}clone(){return new qr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},li=class At{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const s=r.parentScopes[i].length-e.parentScopes[n].length;if(s!==0)return s;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,s;if(n===-1?(i=e,s=""):(i=e.substring(0,n),s=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(At._cmpBySpecificity),r}insert(e,r,n,i,s,o){if(r===""){this._doInsertHere(e,n,i,s,o);return}let c=r.indexOf("."),a,l;c===-1?(a=r,l=""):(a=r.substring(0,c),l=r.substring(c+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new At(this._mainRule.clone(),Ct.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,l,n,i,s,o)}_doInsertHere(e,r,n,i,s){if(r===null){this._mainRule.acceptOverwrite(e,n,i,s);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let a=this._rulesWithParentScopes[o];if(Ur(a.parentScopes,r)===0){a.acceptOverwrite(e,n,i,s);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Ct(e,r,n,i,s))}},he=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=D.getLanguageId(e),n=D.getTokenType(e),i=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,s,o,c){let a=D.getLanguageId(e),l=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,p=D.getFontStyle(e),h=D.getForeground(e),f=D.getBackground(e);return r!==0&&(a=r),n!==8&&(l=n),i!==null&&(d=i?1:0),s!==-1&&(p=s),o!==0&&(h=o),c!==0&&(f=c),(a<<0|l<<8|d<<10|p<<11|h<<15|f<<24)>>>0}};function Fe(t,e){const r=[],n=ui(t);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let l=o();if(r.push({matcher:l,priority:a}),i!==",")break;i=n.next()}return r;function s(){if(i==="-"){i=n.next();const a=s();return l=>!!a&&!a(l)}if(i==="("){i=n.next();const a=c();return i===")"&&(i=n.next()),a}if(rr(i)){const a=[];do a.push(i),i=n.next();while(rr(i));return l=>e(a,l)}return null}function o(){const a=[];let l=s();for(;l;)a.push(l),l=s();return d=>a.every(p=>p(d))}function c(){const a=[];let l=o();for(;l&&(a.push(l),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");l=o()}return d=>a.some(p=>p(d))}}function rr(t){return!!t&&!!t.match(/[\w\.:]+/)}function ui(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Xr(t){typeof t.dispose=="function"&&t.dispose()}var Ce=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},di=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},pi=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},hi=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ce(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new pi;for(const r of t)fi(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof Ce){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function fi(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=r.lookup(e);t instanceof Ce?Me({baseGrammar:s,selfGrammar:i},n):vt(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},n);const o=r.injections(t.scopeName);if(o)for(const c of o)n.add(new Ce(c))}function vt(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];je([n],e,r)}}function Me(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&je(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&je(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function je(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Br({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&je(n.patterns,{...e,repository:i},r);const s=n.include;if(!s)continue;const o=Qr(s);switch(o.kind){case 0:Me({...e,selfGrammar:e.baseGrammar},r);break;case 1:Me(e,r);break;case 2:vt(o.ruleName,{...e,repository:i},r);break;case 3:case 4:const c=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};o.kind===4?vt(o.ruleName,a,r):Me(a,r)}else o.kind===4?r.add(new di(o.scopeName,o.ruleName)):r.add(new Ce(o.scopeName));break}}}var mi=class{kind=0},gi=class{kind=1},_i=class{constructor(t){this.ruleName=t}kind=2},yi=class{constructor(t){this.scopeName=t}kind=3},Ei=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function Qr(t){if(t==="$base")return new mi;if(t==="$self")return new gi;const e=t.indexOf("#");if(e===-1)return new yi(t);if(e===0)return new _i(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new Ei(r,n)}}var bi=/\\(\d+)/,nr=/\\(\d+)/g,wi=-1,Kr=-2;var Se=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Te.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Te.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Fr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Te.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Te.replaceCaptures(this._contentName,t,e)}},Ci=class extends Se{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},Ai=class extends Se{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new Ae(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ir=class extends Se{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},It=class extends Se{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,s,o,c,a,l){super(t,e,r,n),this._begin=new Ae(i,this.id),this.beginCaptures=s,this._end=new Ae(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=a||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ue=class extends Se{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,s,o,c,a){super(t,e,r,n),this._begin=new Ae(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new Ae(o,Kr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ve,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Jr=class x{static createCaptureRule(e,r,n,i,s){return e.registerRule(o=>new Ci(r,o,n,i,s))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new Ai(e.$vscodeTextmateLocation,e.id,e.name,e.match,x._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Br({},n,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new ir(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,x._compilePatterns(s,r,n))}return e.while?new Ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,x._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,x._compileCaptures(e.whileCaptures||e.captures,r,n),x._compilePatterns(e.patterns,r,n)):new It(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,x._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,x._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,x._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>s&&(s=c)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let a=0;e[o].patterns&&(a=x.getCompiledRuleId(e[o],r,n)),i[c]=x.createCaptureRule(r,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const c=e[s];let a=-1;if(c.include){const l=Qr(c.include);switch(l.kind){case 0:case 1:a=x.getCompiledRuleId(n[c.include],r,n);break;case 2:let d=n[l.ruleName];d&&(a=x.getCompiledRuleId(d,r,n));break;case 3:case 4:const p=l.scopeName,h=l.kind===4?l.ruleName:null,f=r.getExternalGrammar(p,n);if(f)if(h){let m=f.repository[h];m&&(a=x.getCompiledRuleId(m,r,f.repository))}else a=x.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else a=x.getCompiledRuleId(c,r,n);if(a!==-1){const l=r.getRule(a);let d=!1;if((l instanceof ir||l instanceof It||l instanceof Ue)&&l.hasMissingPatterns&&l.patterns.length===0&&(d=!0),d)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},Ae=class Zr{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,s=[],o=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const l=e.charAt(c+1);l==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(l==="A"||l==="G")&&(o=!0),c++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,n)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=bi.test(this.source):this.hasBackReferences=!1}clone(){return new Zr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return nr.lastIndex=0,this.source.replace(nr,(i,s)=>Wr(n[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],s,o,c,a;for(s=0,o=this.source.length;s<o;s++)c=this.source.charAt(s),e[s]=c,r[s]=c,n[s]=c,i[s]=c,c==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="￿",r[s+1]="￿",n[s+1]="A",i[s+1]="A"):a==="G"?(e[s+1]="￿",r[s+1]="G",n[s+1]="￿",i[s+1]="G"):(e[s+1]=a,r[s+1]=a,n[s+1]=a,i[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ve=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new sr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new sr(t,n,this._items.map(i=>i.ruleId))}},sr=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
2
+ import{w as Vt,s as Gr,f as Hn,a as zn,b as qn,c as er,z as Xn,h as Qn,d as Kn,C as Jn,D as Zn,u as Mt}from"./mermaid-VLURNSYL-BZBKtjwf.js";import{r as ue}from"./icons-cLYU3CQS.js";import{j as V}from"./radix-ui-d5EbBw33.js";import{_ as u}from"./monaco-editor-BMj4E99D.js";import"./tanstack-D5ysZnPZ.js";import"./react-dom-BWKcCUTe.js";import"./index-Dq7-70tK.js";import"./scroll-area-NHyDhTA5.js";import"./index-pzKFI-Vs.js";import"./_pathlessLayout-J4rDhSFV.js";import"./queries.store-BqdJNevl.js";let I=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yn(t){return Gt(t)}function Gt(t){return Array.isArray(t)?ei(t):t instanceof RegExp?t:typeof t=="object"?ti(t):t}function ei(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Gt(t[r]);return e}function ti(t){let e={};for(let r in t)e[r]=Gt(t[r]);return e}function Br(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function Fr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Fr(t.substring(0,t.length-1)):t.substr(~e+1)}var ot=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Te=class{static hasCaptures(t){return t===null?!1:(ot.lastIndex=0,ot.test(t))}static replaceCaptures(t,e,r){return t.replace(ot,(n,i,s,o)=>{let c=r[parseInt(i||s,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function jr(t,e){return t<e?-1:t>e?1:0}function Ur(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let s=jr(t[i],e[i]);if(s!==0)return s}return 0}return r-n}function tr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Wr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Hr=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Be=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(ii(t),e)}static createFromParsedTheme(t,e){return oi(t,e)}_cachedMatchRoot=new Hr(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>ri(t.parent,i.parentScopes));return n?new zr(n.fontStyle,n.foreground,n.background):null}},at=class Ve{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new Ve(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new Ve(r,e[n]);return r}push(e){return new Ve(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function ri(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!ni(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function ni(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var zr=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function ii(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let p=o.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),c=p.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let p=o.settings.fontStyle.split(" ");for(let h=0,f=p.length;h<f;h++)switch(p[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let l=null;typeof o.settings.foreground=="string"&&tr(o.settings.foreground)&&(l=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&tr(o.settings.background)&&(d=o.settings.background);for(let p=0,h=c.length;p<h;p++){let m=c[p].trim().split(" "),y=m[m.length-1],E=null;m.length>1&&(E=m.slice(0,m.length-1),E.reverse()),r[n++]=new si(y,E,i,a,l,d)}}return r}var si=class{constructor(t,e,r,n,i,s){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=s}},O=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(O||{});function oi(t,e){t.sort((a,l)=>{let d=jr(a.scope,l.scope);return d!==0||(d=Ur(a.parentScopes,l.parentScopes),d!==0)?d:a.index-l.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(r=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let s=new ai(e),o=new zr(r,s.getId(n),s.getId(i)),c=new li(new Ct(0,null,-1,0,0),[]);for(let a=0,l=t.length;a<l;a++){let d=t[a];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new Be(s,o,c)}var ai=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},ci=Object.freeze([]),Ct=class qr{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,s){this.scopeDepth=e,this.parentScopes=r||ci,this.fontStyle=n,this.foreground=i,this.background=s}clone(){return new qr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},li=class At{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const s=r.parentScopes[i].length-e.parentScopes[n].length;if(s!==0)return s;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,s;if(n===-1?(i=e,s=""):(i=e.substring(0,n),s=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(At._cmpBySpecificity),r}insert(e,r,n,i,s,o){if(r===""){this._doInsertHere(e,n,i,s,o);return}let c=r.indexOf("."),a,l;c===-1?(a=r,l=""):(a=r.substring(0,c),l=r.substring(c+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new At(this._mainRule.clone(),Ct.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,l,n,i,s,o)}_doInsertHere(e,r,n,i,s){if(r===null){this._mainRule.acceptOverwrite(e,n,i,s);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let a=this._rulesWithParentScopes[o];if(Ur(a.parentScopes,r)===0){a.acceptOverwrite(e,n,i,s);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Ct(e,r,n,i,s))}},he=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=D.getLanguageId(e),n=D.getTokenType(e),i=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,s,o,c){let a=D.getLanguageId(e),l=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,p=D.getFontStyle(e),h=D.getForeground(e),f=D.getBackground(e);return r!==0&&(a=r),n!==8&&(l=n),i!==null&&(d=i?1:0),s!==-1&&(p=s),o!==0&&(h=o),c!==0&&(f=c),(a<<0|l<<8|d<<10|p<<11|h<<15|f<<24)>>>0}};function Fe(t,e){const r=[],n=ui(t);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let l=o();if(r.push({matcher:l,priority:a}),i!==",")break;i=n.next()}return r;function s(){if(i==="-"){i=n.next();const a=s();return l=>!!a&&!a(l)}if(i==="("){i=n.next();const a=c();return i===")"&&(i=n.next()),a}if(rr(i)){const a=[];do a.push(i),i=n.next();while(rr(i));return l=>e(a,l)}return null}function o(){const a=[];let l=s();for(;l;)a.push(l),l=s();return d=>a.every(p=>p(d))}function c(){const a=[];let l=o();for(;l&&(a.push(l),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");l=o()}return d=>a.some(p=>p(d))}}function rr(t){return!!t&&!!t.match(/[\w\.:]+/)}function ui(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Xr(t){typeof t.dispose=="function"&&t.dispose()}var Ce=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},di=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},pi=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},hi=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ce(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new pi;for(const r of t)fi(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof Ce){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function fi(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=r.lookup(e);t instanceof Ce?Me({baseGrammar:s,selfGrammar:i},n):vt(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},n);const o=r.injections(t.scopeName);if(o)for(const c of o)n.add(new Ce(c))}function vt(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];je([n],e,r)}}function Me(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&je(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&je(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function je(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Br({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&je(n.patterns,{...e,repository:i},r);const s=n.include;if(!s)continue;const o=Qr(s);switch(o.kind){case 0:Me({...e,selfGrammar:e.baseGrammar},r);break;case 1:Me(e,r);break;case 2:vt(o.ruleName,{...e,repository:i},r);break;case 3:case 4:const c=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};o.kind===4?vt(o.ruleName,a,r):Me(a,r)}else o.kind===4?r.add(new di(o.scopeName,o.ruleName)):r.add(new Ce(o.scopeName));break}}}var mi=class{kind=0},gi=class{kind=1},_i=class{constructor(t){this.ruleName=t}kind=2},yi=class{constructor(t){this.scopeName=t}kind=3},Ei=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function Qr(t){if(t==="$base")return new mi;if(t==="$self")return new gi;const e=t.indexOf("#");if(e===-1)return new yi(t);if(e===0)return new _i(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new Ei(r,n)}}var bi=/\\(\d+)/,nr=/\\(\d+)/g,wi=-1,Kr=-2;var Se=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Te.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Te.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Fr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Te.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Te.replaceCaptures(this._contentName,t,e)}},Ci=class extends Se{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},Ai=class extends Se{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new Ae(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ir=class extends Se{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},It=class extends Se{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,s,o,c,a,l){super(t,e,r,n),this._begin=new Ae(i,this.id),this.beginCaptures=s,this._end=new Ae(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=a||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ue=class extends Se{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,s,o,c,a){super(t,e,r,n),this._begin=new Ae(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new Ae(o,Kr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ve,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Jr=class x{static createCaptureRule(e,r,n,i,s){return e.registerRule(o=>new Ci(r,o,n,i,s))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new Ai(e.$vscodeTextmateLocation,e.id,e.name,e.match,x._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Br({},n,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new ir(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,x._compilePatterns(s,r,n))}return e.while?new Ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,x._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,x._compileCaptures(e.whileCaptures||e.captures,r,n),x._compilePatterns(e.patterns,r,n)):new It(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,x._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,x._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,x._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>s&&(s=c)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let a=0;e[o].patterns&&(a=x.getCompiledRuleId(e[o],r,n)),i[c]=x.createCaptureRule(r,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const c=e[s];let a=-1;if(c.include){const l=Qr(c.include);switch(l.kind){case 0:case 1:a=x.getCompiledRuleId(n[c.include],r,n);break;case 2:let d=n[l.ruleName];d&&(a=x.getCompiledRuleId(d,r,n));break;case 3:case 4:const p=l.scopeName,h=l.kind===4?l.ruleName:null,f=r.getExternalGrammar(p,n);if(f)if(h){let m=f.repository[h];m&&(a=x.getCompiledRuleId(m,r,f.repository))}else a=x.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else a=x.getCompiledRuleId(c,r,n);if(a!==-1){const l=r.getRule(a);let d=!1;if((l instanceof ir||l instanceof It||l instanceof Ue)&&l.hasMissingPatterns&&l.patterns.length===0&&(d=!0),d)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},Ae=class Zr{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,s=[],o=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const l=e.charAt(c+1);l==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(l==="A"||l==="G")&&(o=!0),c++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,n)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=bi.test(this.source):this.hasBackReferences=!1}clone(){return new Zr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return nr.lastIndex=0,this.source.replace(nr,(i,s)=>Wr(n[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],s,o,c,a;for(s=0,o=this.source.length;s<o;s++)c=this.source.charAt(s),e[s]=c,r[s]=c,n[s]=c,i[s]=c,c==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="￿",r[s+1]="￿",n[s+1]="A",i[s+1]="A"):a==="G"?(e[s+1]="￿",r[s+1]="G",n[s+1]="￿",i[s+1]="G"):(e[s+1]=a,r[s+1]=a,n[s+1]=a,i[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ve=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new sr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new sr(t,n,this._items.map(i=>i.ruleId))}},sr=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
3
3
  `)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},ct=class{constructor(t,e){this.languageId=t,this.tokenType=e}},vi=class Rt{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,r){this._defaultAttributes=new ct(e,8),this._embeddedLanguagesMatcher=new Ii(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Rt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new ct(0,0);_getBasicScopeAttributes=new Hr(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new ct(r,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(Rt.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Ii=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>Wr(r));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},or=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Yr(t,e,r,n,i,s,o,c){const a=e.content.length;let l=!1,d=-1;if(o){const f=Ri(t,e,r,n,i,s);i=f.stack,n=f.linePos,r=f.isFirstLine,d=f.anchorPosition}const p=Date.now();for(;!l;){if(c!==0&&Date.now()-p>c)return new or(i,!0);h()}return new or(i,!1);function h(){const f=Si(t,e,r,n,i,d);if(!f){s.produce(i,a),l=!0;return}const m=f.captureIndices,y=f.matchedRuleId,E=m&&m.length>0?m[0].end>n:!1;if(y===wi){const g=i.getRule(t);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ee(t,e,r,i,s,g.endCaptures,m),s.produce(i,m[0].end);const b=i;if(i=i.parent,d=b.getAnchorPos(),!E&&b.getEnterPos()===n){i=b,s.produce(i,a),l=!0;return}}else{const g=t.getRule(y);s.produce(i,m[0].start);const b=i,_=g.getName(e.content,m),w=i.contentNameScopesList.pushAttributed(_,t);if(i=i.push(y,n,d,m[0].end===a,null,w,w),g instanceof It){const A=g;Ee(t,e,r,i,s,A.beginCaptures,m),s.produce(i,m[0].end),d=m[0].end;const k=A.getContentName(e.content,m),N=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(N),A.endHasBackReferences&&(i=i.withEndRule(A.getEndWithResolvedBackReferences(e.content,m))),!E&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,a),l=!0;return}}else if(g instanceof Ue){const A=g;Ee(t,e,r,i,s,A.beginCaptures,m),s.produce(i,m[0].end),d=m[0].end;const k=A.getContentName(e.content,m),N=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(N),A.whileHasBackReferences&&(i=i.withEndRule(A.getWhileWithResolvedBackReferences(e.content,m))),!E&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,a),l=!0;return}}else if(Ee(t,e,r,i,s,g.captures,m),s.produce(i,m[0].end),i=i.pop(),!E){i=i.safePop(),s.produce(i,a),l=!0;return}}m[0].end>n&&(n=m[0].end,r=!1)}}function Ri(t,e,r,n,i,s){let o=i.beginRuleCapturedEOL?0:-1;const c=[];for(let a=i;a;a=a.pop()){const l=a.getRule(t);l instanceof Ue&&c.push({rule:l,stack:a})}for(let a=c.pop();a;a=c.pop()){const{ruleScanner:l,findOptions:d}=Ti(a.rule,t,a.stack.endRule,r,n===o),p=l.findNextMatchSync(e,n,d);if(p){if(p.ruleId!==Kr){i=a.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(s.produce(a.stack,p.captureIndices[0].start),Ee(t,e,r,a.stack,s,a.rule.whileCaptures,p.captureIndices),s.produce(a.stack,p.captureIndices[0].end),o=p.captureIndices[0].end,p.captureIndices[0].end>n&&(n=p.captureIndices[0].end,r=!1))}else{i=a.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:o,isFirstLine:r}}function Si(t,e,r,n,i,s){const o=Li(t,e,r,n,i,s),c=t.getInjections();if(c.length===0)return o;const a=ki(c,t,e,r,n,i,s);if(!a)return o;if(!o)return a;const l=o.captureIndices[0].start,d=a.captureIndices[0].start;return d<l||a.priorityMatch&&d===l?a:o}function Li(t,e,r,n,i,s){const o=i.getRule(t),{ruleScanner:c,findOptions:a}=en(o,t,i.endRule,r,n===s),l=c.findNextMatchSync(e,n,a);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function ki(t,e,r,n,i,s,o){let c=Number.MAX_VALUE,a=null,l,d=0;const p=s.contentNameScopesList.getScopeNames();for(let h=0,f=t.length;h<f;h++){const m=t[h];if(!m.matcher(p))continue;const y=e.getRule(m.ruleId),{ruleScanner:E,findOptions:g}=en(y,e,null,n,i===o),b=E.findNextMatchSync(r,i,g);if(!b)continue;const _=b.captureIndices[0].start;if(!(_>=c)&&(c=_,a=b.captureIndices,l=b.ruleId,d=m.priority,c===i))break}return a?{priorityMatch:d===-1,captureIndices:a,matchedRuleId:l}:null}function en(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function Ti(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function Ee(t,e,r,n,i,s,o){if(s.length===0)return;const c=e.content,a=Math.min(s.length,o.length),l=[],d=o[0].end;for(let p=0;p<a;p++){const h=s[p];if(h===null)continue;const f=o[p];if(f.length===0)continue;if(f.start>d)break;for(;l.length>0&&l[l.length-1].endPos<=f.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,f.start):i.produce(n,f.start),h.retokenizeCapturedWithRuleId){const y=h.getName(c,o),E=n.contentNameScopesList.pushAttributed(y,t),g=h.getContentName(c,o),b=E.pushAttributed(g,t),_=n.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,E,b),w=t.createOnigString(c.substring(0,f.end));Yr(t,w,r&&f.start===0,f.start,_,i,!1,0),Xr(w);continue}const m=h.getName(c,o);if(m!==null){const E=(l.length>0?l[l.length-1].scopes:n.contentNameScopesList).pushAttributed(m,t);l.push(new Pi(E,f.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Pi=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function xi(t,e,r,n,i,s,o,c){return new Ni(t,e,r,n,i,s,o,c)}function ar(t,e,r,n,i){const s=Fe(e,We),o=Jr.getCompiledRuleId(r,n,i.repository);for(const c of s)t.push({debugSelector:e,matcher:c.matcher,ruleId:o,grammar:i,priority:c.priority})}function We(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(Oi(e[i],n))return r=i+1,!0;return!1})}function Oi(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var Ni=class{constructor(t,e,r,n,i,s,o,c){if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new vi(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=cr(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const l=Fe(a,We);for(const d of l)this._tokenTypeMatchers.push({matcher:d.matcher,type:i[a]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let o in i)ar(e,o,i[o],this,n);const s=this._grammarRepository.injections(r);s&&s.forEach(o=>{const c=this.getExternalGrammar(o);if(c){const a=c.injectionSelector;a&&ar(e,a,c,this,c)}})}return e.sort((i,s)=>i.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=cr(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=Jr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===St.NULL){i=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),p=he.set(0,l.languageId,l.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=be.createRootAndLookUpScopeName(h,p,this):f=be.createRoot("unknown",p),e=new St(null,this._rootId,-1,-1,!1,null,f,f)}else i=!1,e.reset();t=t+`
4
4
  `;const s=this.createOnigString(t),o=s.content.length,c=new $i(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Yr(this,s,i,0,e,c,!0,n);return Xr(s),{lineLength:o,lineTokens:c,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function cr(t,e){return t=Yn(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var be=class B{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=e?.scopePath??null;for(const s of r)i=at.push(i,s.scopeNames),n=new B(n,i,s.encodedTokenAttributes);return n}static createRoot(e,r){return new B(null,new at(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),s=new at(null,e),o=n.themeProvider.themeMatch(s),c=B.mergeAttributes(r,i,o);return new B(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return B.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,s=0,o=0;return n!==null&&(i=n.fontStyle,s=n.foregroundId,o=n.backgroundId),he.set(e,r.languageId,r.tokenType,null,i,s,o)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return B._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const s of n)i=B._pushAttributed(i,s,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),s=e.scopePath.push(r),o=n.themeProvider.themeMatch(s),c=B.mergeAttributes(e.tokenAttributes,i,o);return new B(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?r.reverse():void 0}},St=class Y{constructor(e,r,n,i,s,o,c,a){this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=c,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new Y(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:Y._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?be.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,s,o,c){return new Y(this,e,r,n,i,s,o,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,r){return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,r){const n=be.fromExtension(e?.nameScopesList??null,r.nameScopesList);return new Y(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,be.fromExtension(n,r.contentNameScopesList))}},Di=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Fe(r,We).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>Fe(r,We).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},$i=class{constructor(t,e,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=t?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(s)&&(n=he.set(n,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(s))}if(i&&(n=he.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},Vi=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,r,n,i){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,xi(t,s,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},Mi=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Vi(Be.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(Be.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new Di(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,s){const o=new hi(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(c=>this._loadSingleGrammar(c.scopeName)),o.processQueue();return this._grammarForScopeName(e,r,n,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,s)}},Lt=St.NULL;const Gi=/["&'<>`]/g,Bi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fi=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ji=/[|\\{}()[\]^$+*?.]/g,lr=new WeakMap;function Ui(t,e){if(t=t.replace(e.subset?Wi(e.subset):Gi,n),e.subset||e.escapeOnly)return t;return t.replace(Bi,r).replace(Fi,n);function r(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function n(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}function Wi(t){let e=lr.get(t);return e||(e=Hi(t),lr.set(t,e)),e}function Hi(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(ji,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const zi=/[\dA-Fa-f]/;function qi(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!zi.test(String.fromCharCode(e))?n:n+";"}const Xi=/\d/;function Qi(t,e,r){const n="&#"+String(t);return r&&e&&!Xi.test(String.fromCharCode(e))?n:n+";"}const Ki=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],lt={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ji=["cent","copy","divide","gt","lt","not","para","times"],tn={}.hasOwnProperty,kt={};let Pe;for(Pe in lt)tn.call(lt,Pe)&&(kt[lt[Pe]]=Pe);const Zi=/[^\dA-Za-z]/;function Yi(t,e,r,n){const i=String.fromCharCode(t);if(tn.call(kt,i)){const s=kt[i],o="&"+s;return r&&Ki.includes(s)&&!Ji.includes(s)&&(!n||e&&e!==61&&Zi.test(String.fromCharCode(e)))?o:o+";"}return""}function es(t,e,r){let n=qi(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Yi(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const s=Qi(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function pe(t,e){return Ui(t,Object.assign({format:es},e))}const ts=/^>|^->|<!--|-->|--!>|<!-$/g,rs=[">"],ns=["<",">"];function is(t,e,r,n){return n.settings.bogusComments?"<?"+pe(t.value,Object.assign({},n.settings.characterReferences,{subset:rs}))+">":"<!--"+t.value.replace(ts,i)+"-->";function i(s){return pe(s,Object.assign({},n.settings.characterReferences,{subset:ns}))}}function ss(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const L=nn(1),rn=nn(-1),os=[];function nn(t){return e;function e(r,n,i){const s=r?r.children:os;let o=(n||0)+t,c=s[o];if(!i)for(;c&&Vt(c);)o+=t,c=s[o];return c}}const as={}.hasOwnProperty;function sn(t){return e;function e(r,n,i){return as.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const Bt=sn({body:ls,caption:ut,colgroup:ut,dd:hs,dt:ps,head:ut,html:cs,li:ds,optgroup:fs,option:ms,p:us,rp:ur,rt:ur,tbody:_s,td:dr,tfoot:ys,th:dr,thead:gs,tr:Es});function ut(t,e,r){const n=L(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Vt(n.value.charAt(0)))}function cs(t,e,r){const n=L(r,e);return!n||n.type!=="comment"}function ls(t,e,r){const n=L(r,e);return!n||n.type!=="comment"}function us(t,e,r){const n=L(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function ds(t,e,r){const n=L(r,e);return!n||n.type==="element"&&n.tagName==="li"}function ps(t,e,r){const n=L(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function hs(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function ur(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function fs(t,e,r){const n=L(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function ms(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function gs(t,e,r){const n=L(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function _s(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function ys(t,e,r){return!L(r,e)}function Es(t,e,r){const n=L(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function dr(t,e,r){const n=L(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const bs=sn({body:As,colgroup:vs,head:Cs,html:ws,tbody:Is});function ws(t){const e=L(t,-1);return!e||e.type!=="comment"}function Cs(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function As(t){const e=L(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Vt(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function vs(t,e,r){const n=rn(r,e),i=L(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Bt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Is(t,e,r){const n=rn(r,e),i=L(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Bt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const xe={name:[[`
5
5
  \f\r &/=>`.split(""),`