@kong-ui-public/documentation 0.7.31 → 0.7.32

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 (41) hide show
  1. package/dist/{arc-BKCmqbzN-DdGm0OOH.js → arc-BKCmqbzN-C6UAt1pK.js} +1 -1
  2. package/dist/{blockDiagram-9f4a6865-DdCznWuH-DNyRnn5p.js → blockDiagram-9f4a6865-DdCznWuH-DmMQG3Y-.js} +5 -5
  3. package/dist/{c4Diagram-ae766693-CE86FoDO-BXTge9L8.js → c4Diagram-ae766693-CE86FoDO-BC77EEvl.js} +2 -2
  4. package/dist/{channel-CDDE-1Nq-f4nX-pSg.js → channel-CDDE-1Nq-CEyXVG7C.js} +1 -1
  5. package/dist/{classDiagram-fb54d2a0-BV2DhVzH-RR5G0Shq.js → classDiagram-fb54d2a0-BV2DhVzH-CIbCfMnJ.js} +5 -5
  6. package/dist/{classDiagram-v2-a2b738ad-BN6en4ek-CvryIW0q.js → classDiagram-v2-a2b738ad-BN6en4ek-D1v2VF3x.js} +5 -5
  7. package/dist/{clone-Cei040DH-DOxOw-nb.js → clone-Cei040DH-B_2rjVad.js} +1 -1
  8. package/dist/{createText-ca0c5216-DrKH6pb2-4huBl0nt.js → createText-ca0c5216-DrKH6pb2-CGwRqxDX.js} +1 -1
  9. package/dist/documentation.es.js +1 -1
  10. package/dist/documentation.umd.js +5 -5
  11. package/dist/{edges-066a5561-BVE6Q1zS-pu20Oo-j.js → edges-066a5561-BVE6Q1zS-BX0bD2Xv.js} +3 -3
  12. package/dist/{erDiagram-09d1c15f-DAziiQZf-CPGdnx9u.js → erDiagram-09d1c15f-DAziiQZf-HR_szpGy.js} +4 -4
  13. package/dist/{flowDb-c1833063-B_wsPsXX-PWxVtCjx.js → flowDb-c1833063-B_wsPsXX-DIUoXBGY.js} +1 -1
  14. package/dist/{flowDiagram-b222e15a-DblDKsFp-ngZ20BBu.js → flowDiagram-b222e15a-DblDKsFp-C_T3Zx44.js} +6 -6
  15. package/dist/{flowDiagram-v2-13329dc7-BIS_ikbR-CF2D9lCy.js → flowDiagram-v2-13329dc7-BIS_ikbR-BGbERsxI.js} +5 -5
  16. package/dist/{flowchart-elk-definition-ae0efee6-D8G2kuve-iFEsMh47.js → flowchart-elk-definition-ae0efee6-D8G2kuve-BnI1aB5B.js} +4 -4
  17. package/dist/{ganttDiagram-b62c793e-Hev-oBfz-BsyyPiYD.js → ganttDiagram-b62c793e-Hev-oBfz-BudM8kcd.js} +2 -2
  18. package/dist/{gitGraphDiagram-942e62fe-BlX8e6Jl-5gBsiy9q.js → gitGraphDiagram-942e62fe-BlX8e6Jl-Ccs7Hsu7.js} +1 -1
  19. package/dist/{graph-X3AqOr2l-4xWEsGz_.js → graph-X3AqOr2l-CoiQcNtk.js} +1 -1
  20. package/dist/{index-01f381cb-D6ERtkQO-D6GNR-iT.js → index-01f381cb-D6ERtkQO-Cp9IQKEJ.js} +6 -6
  21. package/dist/{index-C7jzZb38.js → index-BUBaBog7.js} +219 -217
  22. package/dist/{infoDiagram-94cd232f-DopsTg3N-DjcPWFio.js → infoDiagram-94cd232f-DopsTg3N-CCEi3kZB.js} +1 -1
  23. package/dist/{journeyDiagram-6625b456-CpGPlqvS-C2NDKu6J.js → journeyDiagram-6625b456-CpGPlqvS-DJ2DvFkB.js} +3 -3
  24. package/dist/{layout-rkXrpYy--RMqfXjWz.js → layout-rkXrpYy--D5ISzAf6.js} +2 -2
  25. package/dist/{line-CN4DfsoG-CT18SbR4.js → line-CN4DfsoG-ylvO2bxp.js} +1 -1
  26. package/dist/{linear-BUr9ig_B-DC6ozWeI.js → linear-BUr9ig_B-CqAkL_QF.js} +1 -1
  27. package/dist/{mindmap-definition-307c710a-CS3B1rWh-BhK682ex.js → mindmap-definition-307c710a-CS3B1rWh-DkSJyP2P.js} +2 -2
  28. package/dist/{pieDiagram-bb1d19e5-BGJlIwZs-CLPcscfK.js → pieDiagram-bb1d19e5-BGJlIwZs-BBUvk9yB.js} +2 -2
  29. package/dist/{quadrantDiagram-c759a472-CfwJWkHe-DFoiHplw.js → quadrantDiagram-c759a472-CfwJWkHe-BcjUUVb5.js} +2 -2
  30. package/dist/{requirementDiagram-87253d64-DmWnmY1l-ChyiDUAC.js → requirementDiagram-87253d64-DmWnmY1l-Bt0LZeEi.js} +4 -4
  31. package/dist/{sankeyDiagram-707fac0f-zeHCvHNM-Cypmznu5.js → sankeyDiagram-707fac0f-zeHCvHNM-DlDSHZe3.js} +1 -1
  32. package/dist/{sequenceDiagram-6894f283-CikwT5M3-P0GvL-qD.js → sequenceDiagram-6894f283-CikwT5M3-CppvVw66.js} +2 -2
  33. package/dist/{stateDiagram-5dee940d-BfWuJ5s8-BUPE1emt.js → stateDiagram-5dee940d-BfWuJ5s8-D0Imga7Z.js} +5 -5
  34. package/dist/{stateDiagram-v2-1992cada-CYdJuKNy-BwLGN7EN.js → stateDiagram-v2-1992cada-CYdJuKNy-Dwlm03nd.js} +5 -5
  35. package/dist/{styles-0784dbeb-CF_E7fxi-BfNbXR7e.js → styles-0784dbeb-CF_E7fxi-CpHx4E-n.js} +1 -1
  36. package/dist/{styles-483fbfea-CO8nL_N7-DYB5SFog.js → styles-483fbfea-CO8nL_N7-BKTutvn2.js} +4 -4
  37. package/dist/{styles-b83b31c9-CIlRY7YA-DHYpljuN.js → styles-b83b31c9-CIlRY7YA-DA60dvuJ.js} +1 -1
  38. package/dist/{svgDrawCommon-5e1cfd1d-rT311mE_-CNRLi31K.js → svgDrawCommon-5e1cfd1d-rT311mE_-BYYds497.js} +1 -1
  39. package/dist/{timeline-definition-bf702344-DZa4Jr4L-DHok-zW1.js → timeline-definition-bf702344-DZa4Jr4L-iD7UGhMl.js} +2 -2
  40. package/dist/{xychartDiagram-f11f50a6-B6POOjZl-m23dCWIN.js → xychartDiagram-f11f50a6-B6POOjZl-CMz-jBfs.js} +4 -4
  41. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- (function(nA,iA){typeof exports=="object"&&typeof module<"u"?iA(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],iA):(nA=typeof globalThis<"u"?globalThis:nA||self,iA(nA["kong-ui-public-documentation"]={},nA.Vue,nA["kong-ui-public-i18n"]))})(this,function(exports,vue,i18n){"use strict";const documentation={common:{published:"Published",unpublished:"Unpublished"},documentation_display:{added_label:"Added: ",status_label:"Status: ",edit_button:"Edit",edit_info_button:"Document settings",edit_markdown_button:"Edit",download_button:"Download",add_new:"Add Page",actions_title:"Document Actions"},errors:{cannot_retrieve_document:"Cannot retrieve selected document. Please try again later",unexpected:"An unexpected error has occurred"},form_modal:{cancel_button_text:"Cancel",create_title:"New Documentation Page",delete_button_text:"Delete",documentation_link_text:"View Documentation",edit_title:"Edit Document Settings",empty_doc:"Empty Document",file_label:"Upload File",file_tooltip:"Select a .md file to upload",filename_button_text:"Select file",parent_document_select_label:"Parent",parent_document_select_option_none:"None",replace_file_button_text:"Select new file",save_button_text:"Save",slug_error:"Only letters, numbers, '-', and '_' characters are allowed",slug_label:"URL Slug",slug_placeholder:"Enter a URL slug",status_label:"Status",subtitle:"Provide guides, examples and other useful information about this service to developers.",edit_markdown:"To edit the document's markdown content rather than replacing the file, close this modal and click the 'Document Actions' icon button at the top right of the document.",title_label:"Page Name",title_placeholder:"Enter a page name"},show:{actions:"Actions",actions_menu:{delete_document:"Delete Document",document_settings:"Document Settings",download_document:"Download Document",edit_document:"Edit Document",new_document:"New Document"},empty_state:{title:"Add New Documentation Page",message:"Pages will allow you to provide guides examples and other useful information about your service to developers.",ctaText:"New Page"}}},english={documentation};function usei18n(){return{i18n:i18n.createI18n("en-us",english),i18nT:i18n.Translation}}const composables$1={useI18n:usei18n};function cloneDeep(nA){if(nA!==void 0)return JSON.parse(JSON.stringify(nA))}function isObjectEmpty(nA){return Object.keys(nA).length===0}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function jt$d(nA){return typeof nA>"u"||nA===null}function zr$5(nA){return typeof nA=="object"&&nA!==null}function Yr$5(nA){return Array.isArray(nA)?nA:jt$d(nA)?[]:[nA]}function Wr$5(nA,iA){var AA,sA,lA,pA;if(iA)for(pA=Object.keys(iA),AA=0,sA=pA.length;AA<sA;AA+=1)lA=pA[AA],nA[lA]=iA[lA];return nA}function Jr$5(nA,iA){var AA="",sA;for(sA=0;sA<iA;sA+=1)AA+=nA;return AA}function Gr$5(nA){return nA===0&&Number.NEGATIVE_INFINITY===1/nA}var Zr$5=jt$d,Qr$6=zr$5,Xr$5=Yr$5,ei$3=Jr$5,ti$3=Gr$5,ni$3=Wr$5,Z$e={isNothing:Zr$5,isObject:Qr$6,toArray:Xr$5,repeat:ei$3,isNegativeZero:ti$3,extend:ni$3};function qt$d(nA,iA){var AA="",sA=nA.reason||"(unknown reason)";return nA.mark?(nA.mark.name&&(AA+='in "'+nA.mark.name+'" '),AA+="("+(nA.mark.line+1)+":"+(nA.mark.column+1)+")",!iA&&nA.mark.snippet&&(AA+=`
1
+ (function(nA,iA){typeof exports=="object"&&typeof module<"u"?iA(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],iA):(nA=typeof globalThis<"u"?globalThis:nA||self,iA(nA["kong-ui-public-documentation"]={},nA.Vue,nA["kong-ui-public-i18n"]))})(this,function(exports,vue,i18n){"use strict";const documentation={common:{published:"Published",unpublished:"Unpublished"},documentation_display:{added_label:"Added: ",status_label:"Status: ",edit_button:"Edit",edit_info_button:"Document settings",edit_markdown_button:"Edit",download_button:"Download",add_new:"Add Page",actions_title:"Document Actions"},errors:{cannot_retrieve_document:"Cannot retrieve selected document. Please try again later",unexpected:"An unexpected error has occurred"},form_modal:{cancel_button_text:"Cancel",create_title:"New Documentation Page",delete_button_text:"Delete",documentation_link_text:"View Documentation",edit_title:"Edit Document Settings",empty_doc:"Empty Document",file_label:"Upload File",file_tooltip:"Select a .md file to upload",filename_button_text:"Select file",parent_document_select_label:"Parent",parent_document_select_option_none:"None",replace_file_button_text:"Select new file",save_button_text:"Save",slug_error:"Only letters, numbers, '-', and '_' characters are allowed",slug_label:"URL Slug",slug_placeholder:"Enter a URL slug",status_label:"Status",subtitle:"Provide guides, examples and other useful information about this service to developers.",edit_markdown:"To edit the document's markdown content rather than replacing the file, close this modal and click the 'Document Actions' icon button at the top right of the document.",title_label:"Page Name",title_placeholder:"Enter a page name"},show:{actions:"Actions",actions_menu:{delete_document:"Delete Document",document_settings:"Document Settings",download_document:"Download Document",edit_document:"Edit Document",new_document:"New Document"},empty_state:{title:"Add New Documentation Page",message:"Pages will allow you to provide guides examples and other useful information about your service to developers.",ctaText:"New Page"}}},english={documentation};function usei18n(){return{i18n:i18n.createI18n("en-us",english),i18nT:i18n.Translation}}const composables$1={useI18n:usei18n};function cloneDeep(nA){if(nA!==void 0)return JSON.parse(JSON.stringify(nA))}function isObjectEmpty(nA){return Object.keys(nA).length===0}var Rt$i=(nA=>(nA.CaCertificate="ca_certificate",nA.Certificate="certificate",nA.Consumer="consumer",nA.ConsumerGroup="consumer_group",nA.GatewayService="service",nA.Key="key",nA.KeySet="key_set",nA.Plugin="plugin",nA.Route="route",nA.SNI="sni",nA.Upstream="upstream",nA.Target="target",nA.Vault="vault",nA))(Rt$i||{});Object.values(Rt$i);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ht$e(nA){return typeof nA>"u"||nA===null}function Jr$5(nA){return typeof nA=="object"&&nA!==null}function Zr$5(nA){return Array.isArray(nA)?nA:Ht$e(nA)?[]:[nA]}function Qr$6(nA,iA){var AA,sA,lA,pA;if(iA)for(pA=Object.keys(iA),AA=0,sA=pA.length;AA<sA;AA+=1)lA=pA[AA],nA[lA]=iA[lA];return nA}function Xr$5(nA,iA){var AA="",sA;for(sA=0;sA<iA;sA+=1)AA+=nA;return AA}function ei$3(nA){return nA===0&&Number.NEGATIVE_INFINITY===1/nA}var ti$3=Ht$e,ni$3=Jr$5,ri$3=Zr$5,ii$3=Xr$5,oi$3=ei$3,ai$3=Qr$6,Z$e={isNothing:ti$3,isObject:ni$3,toArray:ri$3,repeat:ii$3,isNegativeZero:oi$3,extend:ai$3};function Vt$e(nA,iA){var AA="",sA=nA.reason||"(unknown reason)";return nA.mark?(nA.mark.name&&(AA+='in "'+nA.mark.name+'" '),AA+="("+(nA.mark.line+1)+":"+(nA.mark.column+1)+")",!iA&&nA.mark.snippet&&(AA+=`
2
2
 
3
- `+nA.mark.snippet),sA+" "+AA):sA}function Fe$9(nA,iA){Error.call(this),this.name="YAMLException",this.reason=nA,this.mark=iA,this.message=qt$d(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Fe$9.prototype=Object.create(Error.prototype),Fe$9.prototype.constructor=Fe$9,Fe$9.prototype.toString=function(nA){return this.name+": "+qt$d(this,nA)};var te$d=Fe$9,ai$3=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],oi$3=["scalar","sequence","mapping"];function li$4(nA){var iA={};return nA!==null&&Object.keys(nA).forEach(function(AA){nA[AA].forEach(function(sA){iA[String(sA)]=AA})}),iA}function si$3(nA,iA){if(iA=iA||{},Object.keys(iA).forEach(function(AA){if(ai$3.indexOf(AA)===-1)throw new te$d('Unknown option "'+AA+'" is met in definition of "'+nA+'" YAML type.')}),this.options=iA,this.tag=nA,this.kind=iA.kind||null,this.resolve=iA.resolve||function(){return!0},this.construct=iA.construct||function(AA){return AA},this.instanceOf=iA.instanceOf||null,this.predicate=iA.predicate||null,this.represent=iA.represent||null,this.representName=iA.representName||null,this.defaultStyle=iA.defaultStyle||null,this.multi=iA.multi||!1,this.styleAliases=li$4(iA.styleAliases||null),oi$3.indexOf(this.kind)===-1)throw new te$d('Unknown kind "'+this.kind+'" is specified for "'+nA+'" YAML type.')}var X$b=si$3;function mt$d(nA,iA){var AA=[];return nA[iA].forEach(function(sA){var lA=AA.length;AA.forEach(function(pA,uA){pA.tag===sA.tag&&pA.kind===sA.kind&&pA.multi===sA.multi&&(lA=uA)}),AA[lA]=sA}),AA}function ui$3(){var nA={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},iA,AA;function sA(lA){lA.multi?(nA.multi[lA.kind].push(lA),nA.multi.fallback.push(lA)):nA[lA.kind][lA.tag]=nA.fallback[lA.tag]=lA}for(iA=0,AA=arguments.length;iA<AA;iA+=1)arguments[iA].forEach(sA);return nA}function We$8(nA){return this.extend(nA)}We$8.prototype.extend=function(nA){var iA=[],AA=[];if(nA instanceof X$b)AA.push(nA);else if(Array.isArray(nA))AA=AA.concat(nA);else if(nA&&(Array.isArray(nA.implicit)||Array.isArray(nA.explicit)))nA.implicit&&(iA=iA.concat(nA.implicit)),nA.explicit&&(AA=AA.concat(nA.explicit));else throw new te$d("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");iA.forEach(function(lA){if(!(lA instanceof X$b))throw new te$d("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(lA.loadKind&&lA.loadKind!=="scalar")throw new te$d("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(lA.multi)throw new te$d("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),AA.forEach(function(lA){if(!(lA instanceof X$b))throw new te$d("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var sA=Object.create(We$8.prototype);return sA.implicit=(this.implicit||[]).concat(iA),sA.explicit=(this.explicit||[]).concat(AA),sA.compiledImplicit=mt$d(sA,"implicit"),sA.compiledExplicit=mt$d(sA,"explicit"),sA.compiledTypeMap=ui$3(sA.compiledImplicit,sA.compiledExplicit),sA};var Pt$e=We$8,Ht$e=new X$b("tag:yaml.org,2002:str",{kind:"scalar",construct:function(nA){return nA!==null?nA:""}}),Vt$e=new X$b("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(nA){return nA!==null?nA:[]}}),zt$a=new X$b("tag:yaml.org,2002:map",{kind:"mapping",construct:function(nA){return nA!==null?nA:{}}}),Yt$f=new Pt$e({explicit:[Ht$e,Vt$e,zt$a]});function ci$3(nA){if(nA===null)return!0;var iA=nA.length;return iA===1&&nA==="~"||iA===4&&(nA==="null"||nA==="Null"||nA==="NULL")}function di$3(){return null}function fi$3(nA){return nA===null}var Wt$d=new X$b("tag:yaml.org,2002:null",{kind:"scalar",resolve:ci$3,construct:di$3,predicate:fi$3,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function pi$4(nA){if(nA===null)return!1;var iA=nA.length;return iA===4&&(nA==="true"||nA==="True"||nA==="TRUE")||iA===5&&(nA==="false"||nA==="False"||nA==="FALSE")}function hi$3(nA){return nA==="true"||nA==="True"||nA==="TRUE"}function mi$3(nA){return Object.prototype.toString.call(nA)==="[object Boolean]"}var Jt$c=new X$b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pi$4,construct:hi$3,predicate:mi$3,represent:{lowercase:function(nA){return nA?"true":"false"},uppercase:function(nA){return nA?"TRUE":"FALSE"},camelcase:function(nA){return nA?"True":"False"}},defaultStyle:"lowercase"});function gi$3(nA){return 48<=nA&&nA<=57||65<=nA&&nA<=70||97<=nA&&nA<=102}function yi$3(nA){return 48<=nA&&nA<=55}function vi$2(nA){return 48<=nA&&nA<=57}function bi$3(nA){if(nA===null)return!1;var iA=nA.length,AA=0,sA=!1,lA;if(!iA)return!1;if(lA=nA[AA],(lA==="-"||lA==="+")&&(lA=nA[++AA]),lA==="0"){if(AA+1===iA)return!0;if(lA=nA[++AA],lA==="b"){for(AA++;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(lA!=="0"&&lA!=="1")return!1;sA=!0}return sA&&lA!=="_"}if(lA==="x"){for(AA++;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(!gi$3(nA.charCodeAt(AA)))return!1;sA=!0}return sA&&lA!=="_"}if(lA==="o"){for(AA++;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(!yi$3(nA.charCodeAt(AA)))return!1;sA=!0}return sA&&lA!=="_"}}if(lA==="_")return!1;for(;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(!vi$2(nA.charCodeAt(AA)))return!1;sA=!0}return!(!sA||lA==="_")}function xi$3(nA){var iA=nA,AA=1,sA;if(iA.indexOf("_")!==-1&&(iA=iA.replace(/_/g,"")),sA=iA[0],(sA==="-"||sA==="+")&&(sA==="-"&&(AA=-1),iA=iA.slice(1),sA=iA[0]),iA==="0")return 0;if(sA==="0"){if(iA[1]==="b")return AA*parseInt(iA.slice(2),2);if(iA[1]==="x")return AA*parseInt(iA.slice(2),16);if(iA[1]==="o")return AA*parseInt(iA.slice(2),8)}return AA*parseInt(iA,10)}function Ci$2(nA){return Object.prototype.toString.call(nA)==="[object Number]"&&nA%1===0&&!Z$e.isNegativeZero(nA)}var Gt$b=new X$b("tag:yaml.org,2002:int",{kind:"scalar",resolve:bi$3,construct:xi$3,predicate:Ci$2,represent:{binary:function(nA){return nA>=0?"0b"+nA.toString(2):"-0b"+nA.toString(2).slice(1)},octal:function(nA){return nA>=0?"0o"+nA.toString(8):"-0o"+nA.toString(8).slice(1)},decimal:function(nA){return nA.toString(10)},hexadecimal:function(nA){return nA>=0?"0x"+nA.toString(16).toUpperCase():"-0x"+nA.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ki$3=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function wi$3(nA){return!(nA===null||!ki$3.test(nA)||nA[nA.length-1]==="_")}function _i$3(nA){var iA,AA;return iA=nA.replace(/_/g,"").toLowerCase(),AA=iA[0]==="-"?-1:1,"+-".indexOf(iA[0])>=0&&(iA=iA.slice(1)),iA===".inf"?AA===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:iA===".nan"?NaN:AA*parseFloat(iA,10)}var Ai$3=/^[-+]?[0-9]+e/;function Si$2(nA,iA){var AA;if(isNaN(nA))switch(iA){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===nA)switch(iA){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===nA)switch(iA){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Z$e.isNegativeZero(nA))return"-0.0";return AA=nA.toString(10),Ai$3.test(AA)?AA.replace("e",".e"):AA}function Ii$2(nA){return Object.prototype.toString.call(nA)==="[object Number]"&&(nA%1!==0||Z$e.isNegativeZero(nA))}var Zt$e=new X$b("tag:yaml.org,2002:float",{kind:"scalar",resolve:wi$3,construct:_i$3,predicate:Ii$2,represent:Si$2,defaultStyle:"lowercase"}),Qt$d=Yt$f.extend({implicit:[Wt$d,Jt$c,Gt$b,Zt$e]}),Xt$c=Qt$d,en$3=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tn$5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ei$2(nA){return nA===null?!1:en$3.exec(nA)!==null||tn$5.exec(nA)!==null}function $i$2(nA){var iA,AA,sA,lA,pA,uA,gA,bA=0,yA=null,CA,_A,kA;if(iA=en$3.exec(nA),iA===null&&(iA=tn$5.exec(nA)),iA===null)throw new Error("Date resolve error");if(AA=+iA[1],sA=+iA[2]-1,lA=+iA[3],!iA[4])return new Date(Date.UTC(AA,sA,lA));if(pA=+iA[4],uA=+iA[5],gA=+iA[6],iA[7]){for(bA=iA[7].slice(0,3);bA.length<3;)bA+="0";bA=+bA}return iA[9]&&(CA=+iA[10],_A=+(iA[11]||0),yA=(CA*60+_A)*6e4,iA[9]==="-"&&(yA=-yA)),kA=new Date(Date.UTC(AA,sA,lA,pA,uA,gA,bA)),yA&&kA.setTime(kA.getTime()-yA),kA}function Ti$1(nA){return nA.toISOString()}var nn$5=new X$b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ei$2,construct:$i$2,instanceOf:Date,represent:Ti$1});function Fi$2(nA){return nA==="<<"||nA===null}var rn$4=new X$b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Fi$2}),tt$g=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
- \r`;function Oi$2(nA){if(nA===null)return!1;var iA,AA,sA=0,lA=nA.length,pA=tt$g;for(AA=0;AA<lA;AA++)if(iA=pA.indexOf(nA.charAt(AA)),!(iA>64)){if(iA<0)return!1;sA+=6}return sA%8===0}function Ni$2(nA){var iA,AA,sA=nA.replace(/[\r\n=]/g,""),lA=sA.length,pA=tt$g,uA=0,gA=[];for(iA=0;iA<lA;iA++)iA%4===0&&iA&&(gA.push(uA>>16&255),gA.push(uA>>8&255),gA.push(uA&255)),uA=uA<<6|pA.indexOf(sA.charAt(iA));return AA=lA%4*6,AA===0?(gA.push(uA>>16&255),gA.push(uA>>8&255),gA.push(uA&255)):AA===18?(gA.push(uA>>10&255),gA.push(uA>>2&255)):AA===12&&gA.push(uA>>4&255),new Uint8Array(gA)}function Li$2(nA){var iA="",AA=0,sA,lA,pA=nA.length,uA=tt$g;for(sA=0;sA<pA;sA++)sA%3===0&&sA&&(iA+=uA[AA>>18&63],iA+=uA[AA>>12&63],iA+=uA[AA>>6&63],iA+=uA[AA&63]),AA=(AA<<8)+nA[sA];return lA=pA%3,lA===0?(iA+=uA[AA>>18&63],iA+=uA[AA>>12&63],iA+=uA[AA>>6&63],iA+=uA[AA&63]):lA===2?(iA+=uA[AA>>10&63],iA+=uA[AA>>4&63],iA+=uA[AA<<2&63],iA+=uA[64]):lA===1&&(iA+=uA[AA>>2&63],iA+=uA[AA<<4&63],iA+=uA[64],iA+=uA[64]),iA}function Bi$2(nA){return Object.prototype.toString.call(nA)==="[object Uint8Array]"}var an$3=new X$b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Oi$2,construct:Ni$2,predicate:Bi$2,represent:Li$2}),Ri$3=Object.prototype.hasOwnProperty,Mi$3=Object.prototype.toString;function Ki$2(nA){if(nA===null)return!0;var iA=[],AA,sA,lA,pA,uA,gA=nA;for(AA=0,sA=gA.length;AA<sA;AA+=1){if(lA=gA[AA],uA=!1,Mi$3.call(lA)!=="[object Object]")return!1;for(pA in lA)if(Ri$3.call(lA,pA))if(!uA)uA=!0;else return!1;if(!uA)return!1;if(iA.indexOf(pA)===-1)iA.push(pA);else return!1}return!0}function Di$1(nA){return nA!==null?nA:[]}var on$2=new X$b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ki$2,construct:Di$1}),Ui$2=Object.prototype.toString;function ji$2(nA){if(nA===null)return!0;var iA,AA,sA,lA,pA,uA=nA;for(pA=new Array(uA.length),iA=0,AA=uA.length;iA<AA;iA+=1){if(sA=uA[iA],Ui$2.call(sA)!=="[object Object]"||(lA=Object.keys(sA),lA.length!==1))return!1;pA[iA]=[lA[0],sA[lA[0]]]}return!0}function qi$2(nA){if(nA===null)return[];var iA,AA,sA,lA,pA,uA=nA;for(pA=new Array(uA.length),iA=0,AA=uA.length;iA<AA;iA+=1)sA=uA[iA],lA=Object.keys(sA),pA[iA]=[lA[0],sA[lA[0]]];return pA}var ln$5=new X$b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ji$2,construct:qi$2}),Pi$2=Object.prototype.hasOwnProperty;function Hi$2(nA){if(nA===null)return!0;var iA,AA=nA;for(iA in AA)if(Pi$2.call(AA,iA)&&AA[iA]!==null)return!1;return!0}function Vi$2(nA){return nA!==null?nA:{}}var sn$5=new X$b("tag:yaml.org,2002:set",{kind:"mapping",resolve:Hi$2,construct:Vi$2});Xt$c.extend({implicit:[nn$5,rn$4],explicit:[an$3,on$2,ln$5,sn$5]});function vt$g(nA){return nA===48?"\0":nA===97?"\x07":nA===98?"\b":nA===116||nA===9?" ":nA===110?`
5
- `:nA===118?"\v":nA===102?"\f":nA===114?"\r":nA===101?"\x1B":nA===32?" ":nA===34?'"':nA===47?"/":nA===92?"\\":nA===78?"…":nA===95?" ":nA===76?"\u2028":nA===80?"\u2029":""}for(var pn$6=new Array(256),hn$5=new Array(256),ve$8=0;ve$8<256;ve$8++)pn$6[ve$8]=vt$g(ve$8)?1:0,hn$5[ve$8]=vt$g(ve$8);const ls$2=vue.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(nA){const iA=nA,AA=vue.ref(void 0),sA=vue.computed(()=>AA.value===!0||AA.value!==void 0&&iA.forceShow===!0);return vue.watch(()=>iA.authFunction,async()=>{AA.value=await iA.authFunction()},{immediate:!0}),(lA,pA)=>sA.value?vue.renderSlot(lA.$slots,"default",{key:0,isAllowed:AA.value}):vue.createCommentVNode("",!0)}}),Q$9=[];for(let nA=0;nA<256;++nA)Q$9.push((nA+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var Pe$8=Object.defineProperty,Ue$9=(nA,iA,AA)=>iA in nA?Pe$8(nA,iA,{enumerable:!0,configurable:!0,writable:!0,value:AA}):nA[iA]=AA,tA=(nA,iA,AA)=>Ue$9(nA,typeof iA!="symbol"?iA+"":iA,AA);const UNIQUE_ID_INJECTION_KEY=Symbol("The unique id that prefixes all identifiers within a single instance of the component"),TEXTAREA_ID_INJECTION_KEY=Symbol("Textarea unique id"),MODE_INJECTION_KEY=Symbol("Markdown component mode"),EDITABLE_INJECTION_KEY=Symbol("Is the markdown component editable"),FULLSCREEN_INJECTION_KEY=Symbol("Is the markdown component displaying fullscreen"),THEME_INJECTION_KEY=Symbol("Active theme, light or dark"),HTML_PREVIEW_INJECTION_KEY=Symbol("Is the html preview enabled");function tryOnScopeDispose(nA){return vue.getCurrentScope()?(vue.onScopeDispose(nA),!0):!1}function toValue(nA){return typeof nA=="function"?nA():vue.unref(nA)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const notNullish=nA=>nA!=null,toString$1=Object.prototype.toString,isObject$5=nA=>toString$1.call(nA)==="[object Object]",noop$2=()=>{};function createFilterWrapper(nA,iA){function AA(...sA){return new Promise((lA,pA)=>{Promise.resolve(nA(()=>iA.apply(this,sA),{fn:iA,thisArg:this,args:sA})).then(lA).catch(pA)})}return AA}function debounceFilter(nA,iA={}){let AA,sA,lA=noop$2;const pA=uA=>{clearTimeout(uA),lA(),lA=noop$2};return uA=>{const gA=toValue(nA),bA=toValue(iA.maxWait);return AA&&pA(AA),gA<=0||bA!==void 0&&bA<=0?(sA&&(pA(sA),sA=null),Promise.resolve(uA())):new Promise((yA,CA)=>{lA=iA.rejectOnCancel?CA:yA,bA&&!sA&&(sA=setTimeout(()=>{AA&&pA(AA),sA=null,yA(uA())},bA)),AA=setTimeout(()=>{sA&&pA(sA),sA=null,yA(uA())},gA)})}}function throttleFilter(...nA){let iA=0,AA,sA=!0,lA=noop$2,pA,uA,gA,bA,yA;!vue.isRef(nA[0])&&typeof nA[0]=="object"?{delay:uA,trailing:gA=!0,leading:bA=!0,rejectOnCancel:yA=!1}=nA[0]:[uA,gA=!0,bA=!0,yA=!1]=nA;const CA=()=>{AA&&(clearTimeout(AA),AA=void 0,lA(),lA=noop$2)};return _A=>{const kA=toValue(uA),QA=Date.now()-iA,IA=()=>pA=_A();return CA(),kA<=0?(iA=Date.now(),IA()):(QA>kA&&(bA||!sA)?(iA=Date.now(),IA()):gA&&(pA=new Promise((DA,LA)=>{lA=yA?LA:DA,AA=setTimeout(()=>{iA=Date.now(),sA=!0,DA(IA()),CA()},Math.max(0,kA-QA))})),!bA&&!AA&&(AA=setTimeout(()=>sA=!0,kA)),sA=!1,pA)}}function getLifeCycleTarget(nA){return vue.getCurrentInstance()}function useDebounceFn(nA,iA=200,AA={}){return createFilterWrapper(debounceFilter(iA,AA),nA)}function useThrottleFn(nA,iA=200,AA=!1,sA=!0,lA=!1){return createFilterWrapper(throttleFilter(iA,AA,sA,lA),nA)}function tryOnMounted(nA,iA=!0,AA){getLifeCycleTarget()?vue.onMounted(nA,AA):iA?nA():vue.nextTick(nA)}function unrefElement(nA){var iA;const AA=toValue(nA);return(iA=AA==null?void 0:AA.$el)!=null?iA:AA}const defaultWindow=isClient?window:void 0;function useEventListener(...nA){let iA,AA,sA,lA;if(typeof nA[0]=="string"||Array.isArray(nA[0])?([AA,sA,lA]=nA,iA=defaultWindow):[iA,AA,sA,lA]=nA,!iA)return noop$2;Array.isArray(AA)||(AA=[AA]),Array.isArray(sA)||(sA=[sA]);const pA=[],uA=()=>{pA.forEach(CA=>CA()),pA.length=0},gA=(CA,_A,kA,QA)=>(CA.addEventListener(_A,kA,QA),()=>CA.removeEventListener(_A,kA,QA)),bA=vue.watch(()=>[unrefElement(iA),toValue(lA)],([CA,_A])=>{if(uA(),!CA)return;const kA=isObject$5(_A)?{..._A}:_A;pA.push(...AA.flatMap(QA=>sA.map(IA=>gA(CA,QA,IA,kA))))},{immediate:!0,flush:"post"}),yA=()=>{bA(),uA()};return tryOnScopeDispose(yA),yA}function useMounted(){const nA=vue.ref(!1),iA=vue.getCurrentInstance();return iA&&vue.onMounted(()=>{nA.value=!0},iA),nA}function useSupported(nA){const iA=useMounted();return vue.computed(()=>(iA.value,!!nA()))}function useMutationObserver(nA,iA,AA={}){const{window:sA=defaultWindow,...lA}=AA;let pA;const uA=useSupported(()=>sA&&"MutationObserver"in sA),gA=()=>{pA&&(pA.disconnect(),pA=void 0)},bA=vue.computed(()=>{const kA=toValue(nA),QA=(Array.isArray(kA)?kA:[kA]).map(unrefElement).filter(notNullish);return new Set(QA)}),yA=vue.watch(()=>bA.value,kA=>{gA(),uA.value&&kA.size&&(pA=new MutationObserver(iA),kA.forEach(QA=>pA.observe(QA,lA)))},{immediate:!0,flush:"post"}),CA=()=>pA==null?void 0:pA.takeRecords(),_A=()=>{gA(),yA()};return tryOnScopeDispose(_A),{isSupported:uA,stop:_A,takeRecords:CA}}function useActiveElement(nA={}){var iA;const{window:AA=defaultWindow,deep:sA=!0,triggerOnRemoval:lA=!1}=nA,pA=(iA=nA.document)!=null?iA:AA==null?void 0:AA.document,uA=()=>{var yA;let CA=pA==null?void 0:pA.activeElement;if(sA)for(;CA!=null&&CA.shadowRoot;)CA=(yA=CA==null?void 0:CA.shadowRoot)==null?void 0:yA.activeElement;return CA},gA=vue.ref(),bA=()=>{gA.value=uA()};return AA&&(useEventListener(AA,"blur",yA=>{yA.relatedTarget===null&&bA()},!0),useEventListener(AA,"focus",bA,!0)),lA&&useMutationObserver(pA,yA=>{yA.filter(CA=>CA.removedNodes.length).map(CA=>Array.from(CA.removedNodes)).flat().forEach(CA=>{CA===gA.value&&bA()})},{childList:!0,subtree:!0}),bA(),gA}function useMediaQuery(nA,iA={}){const{window:AA=defaultWindow}=iA,sA=useSupported(()=>AA&&"matchMedia"in AA&&typeof AA.matchMedia=="function");let lA;const pA=vue.ref(!1),uA=yA=>{pA.value=yA.matches},gA=()=>{lA&&("removeEventListener"in lA?lA.removeEventListener("change",uA):lA.removeListener(uA))},bA=vue.watchEffect(()=>{sA.value&&(gA(),lA=AA.matchMedia(toValue(nA)),"addEventListener"in lA?lA.addEventListener("change",uA):lA.addListener(uA),pA.value=lA.matches)});return tryOnScopeDispose(()=>{bA(),gA(),lA=void 0}),pA}const ARRIVED_STATE_THRESHOLD_PIXELS=1;function useScroll(nA,iA={}){const{throttle:AA=0,idle:sA=200,onStop:lA=noop$2,onScroll:pA=noop$2,offset:uA={left:0,right:0,top:0,bottom:0},eventListenerOptions:gA={capture:!1,passive:!0},behavior:bA="auto",window:yA=defaultWindow,onError:CA=UA=>{console.error(UA)}}=iA,_A=vue.ref(0),kA=vue.ref(0),QA=vue.computed({get(){return _A.value},set(UA){DA(UA,void 0)}}),IA=vue.computed({get(){return kA.value},set(UA){DA(void 0,UA)}});function DA(UA,TA){var WA,PA,XA,qA;if(!yA)return;const HA=toValue(nA);if(!HA)return;(XA=HA instanceof Document?yA.document.body:HA)==null||XA.scrollTo({top:(WA=toValue(TA))!=null?WA:IA.value,left:(PA=toValue(UA))!=null?PA:QA.value,behavior:toValue(bA)});const Ml=((qA=HA==null?void 0:HA.document)==null?void 0:qA.documentElement)||(HA==null?void 0:HA.documentElement)||HA;QA!=null&&(_A.value=Ml.scrollLeft),IA!=null&&(kA.value=Ml.scrollTop)}const LA=vue.ref(!1),FA=vue.reactive({left:!0,right:!1,top:!0,bottom:!1}),NA=vue.reactive({left:!1,right:!1,top:!1,bottom:!1}),jA=UA=>{LA.value&&(LA.value=!1,NA.left=!1,NA.right=!1,NA.top=!1,NA.bottom=!1,lA(UA))},OA=useDebounceFn(jA,AA+sA),GA=UA=>{var TA;if(!yA)return;const WA=((TA=UA==null?void 0:UA.document)==null?void 0:TA.documentElement)||(UA==null?void 0:UA.documentElement)||unrefElement(UA),{display:PA,flexDirection:XA}=getComputedStyle(WA),qA=WA.scrollLeft;NA.left=qA<_A.value,NA.right=qA>_A.value;const HA=Math.abs(qA)<=(uA.left||0),Ml=Math.abs(qA)+WA.clientWidth>=WA.scrollWidth-(uA.right||0)-ARRIVED_STATE_THRESHOLD_PIXELS;PA==="flex"&&XA==="row-reverse"?(FA.left=Ml,FA.right=HA):(FA.left=HA,FA.right=Ml),_A.value=qA;let Rl=WA.scrollTop;UA===yA.document&&!Rl&&(Rl=yA.document.body.scrollTop),NA.top=Rl<kA.value,NA.bottom=Rl>kA.value;const Pl=Math.abs(Rl)<=(uA.top||0),Wl=Math.abs(Rl)+WA.clientHeight>=WA.scrollHeight-(uA.bottom||0)-ARRIVED_STATE_THRESHOLD_PIXELS;PA==="flex"&&XA==="column-reverse"?(FA.top=Wl,FA.bottom=Pl):(FA.top=Pl,FA.bottom=Wl),kA.value=Rl},zA=UA=>{var TA;if(!yA)return;const WA=(TA=UA.target.documentElement)!=null?TA:UA.target;GA(WA),LA.value=!0,OA(UA),pA(UA)};return useEventListener(nA,"scroll",AA?useThrottleFn(zA,AA,!0,!1):zA,gA),tryOnMounted(()=>{try{const UA=toValue(nA);if(!UA)return;GA(UA)}catch(UA){CA(UA)}}),useEventListener(nA,"scrollend",jA,gA),{x:QA,y:IA,isScrolling:LA,arrivedState:FA,directions:NA,measure(){const UA=toValue(nA);yA&&UA&&GA(UA)}}}const DefaultMagicKeysAliasMap={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function useMagicKeys(nA={}){const{reactive:iA=!1,target:AA=defaultWindow,aliasMap:sA=DefaultMagicKeysAliasMap,passive:lA=!0,onEventFired:pA=noop$2}=nA,uA=vue.reactive(new Set),gA={toJSON(){return{}},current:uA},bA=iA?vue.reactive(gA):gA,yA=new Set,CA=new Set;function _A(DA,LA){DA in bA&&(iA?bA[DA]=LA:bA[DA].value=LA)}function kA(){uA.clear();for(const DA of CA)_A(DA,!1)}function QA(DA,LA){var FA,NA;const jA=(FA=DA.key)==null?void 0:FA.toLowerCase(),OA=[(NA=DA.code)==null?void 0:NA.toLowerCase(),jA].filter(Boolean);jA&&(LA?uA.add(jA):uA.delete(jA));for(const GA of OA)CA.add(GA),_A(GA,LA);jA==="meta"&&!LA?(yA.forEach(GA=>{uA.delete(GA),_A(GA,!1)}),yA.clear()):typeof DA.getModifierState=="function"&&DA.getModifierState("Meta")&&LA&&[...uA,...OA].forEach(GA=>yA.add(GA))}useEventListener(AA,"keydown",DA=>(QA(DA,!0),pA(DA)),{passive:lA}),useEventListener(AA,"keyup",DA=>(QA(DA,!1),pA(DA)),{passive:lA}),useEventListener("blur",kA,{passive:!0}),useEventListener("focus",kA,{passive:!0});const IA=new Proxy(bA,{get(DA,LA,FA){if(typeof LA!="string")return Reflect.get(DA,LA,FA);if(LA=LA.toLowerCase(),LA in sA&&(LA=sA[LA]),!(LA in bA))if(/[+_-]/.test(LA)){const jA=LA.split(/[+_-]/g).map(OA=>OA.trim());bA[LA]=vue.computed(()=>jA.every(OA=>toValue(IA[OA])))}else bA[LA]=vue.ref(!1);const NA=Reflect.get(DA,LA,FA);return iA?toValue(NA):NA}});return IA}function usePreferredColorScheme(nA){const iA=useMediaQuery("(prefers-color-scheme: light)",nA),AA=useMediaQuery("(prefers-color-scheme: dark)",nA);return vue.computed(()=>AA.value?"dark":iA.value?"light":"no-preference")}const EDITOR_DEBOUNCE_TIMEOUT=400,DEFAULT_CODEBLOCK_LANGUAGE="markdown";var InlineFormatWrapper=(nA=>(nA.bold="**",nA.italic="_",nA.underline="++",nA.strikethrough="~~",nA.subscript="~",nA.superscript="^",nA.mark="==",nA.code="`",nA))(InlineFormatWrapper||{});const TOOLBAR_HEIGHT="36px",NEW_LINE_CHARACTER=`
3
+ `+nA.mark.snippet),sA+" "+AA):sA}function Oe$7(nA,iA){Error.call(this),this.name="YAMLException",this.reason=nA,this.mark=iA,this.message=Vt$e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Oe$7.prototype=Object.create(Error.prototype),Oe$7.prototype.constructor=Oe$7,Oe$7.prototype.toString=function(nA){return this.name+": "+Vt$e(this,nA)};var ne$d=Oe$7,si$3=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ui$3=["scalar","sequence","mapping"];function di$3(nA){var iA={};return nA!==null&&Object.keys(nA).forEach(function(AA){nA[AA].forEach(function(sA){iA[String(sA)]=AA})}),iA}function fi$3(nA,iA){if(iA=iA||{},Object.keys(iA).forEach(function(AA){if(si$3.indexOf(AA)===-1)throw new ne$d('Unknown option "'+AA+'" is met in definition of "'+nA+'" YAML type.')}),this.options=iA,this.tag=nA,this.kind=iA.kind||null,this.resolve=iA.resolve||function(){return!0},this.construct=iA.construct||function(AA){return AA},this.instanceOf=iA.instanceOf||null,this.predicate=iA.predicate||null,this.represent=iA.represent||null,this.representName=iA.representName||null,this.defaultStyle=iA.defaultStyle||null,this.multi=iA.multi||!1,this.styleAliases=di$3(iA.styleAliases||null),ui$3.indexOf(this.kind)===-1)throw new ne$d('Unknown kind "'+this.kind+'" is specified for "'+nA+'" YAML type.')}var X$b=fi$3;function yt$d(nA,iA){var AA=[];return nA[iA].forEach(function(sA){var lA=AA.length;AA.forEach(function(pA,uA){pA.tag===sA.tag&&pA.kind===sA.kind&&pA.multi===sA.multi&&(lA=uA)}),AA[lA]=sA}),AA}function pi$4(){var nA={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},iA,AA;function sA(lA){lA.multi?(nA.multi[lA.kind].push(lA),nA.multi.fallback.push(lA)):nA[lA.kind][lA.tag]=nA.fallback[lA.tag]=lA}for(iA=0,AA=arguments.length;iA<AA;iA+=1)arguments[iA].forEach(sA);return nA}function Je$a(nA){return this.extend(nA)}Je$a.prototype.extend=function(nA){var iA=[],AA=[];if(nA instanceof X$b)AA.push(nA);else if(Array.isArray(nA))AA=AA.concat(nA);else if(nA&&(Array.isArray(nA.implicit)||Array.isArray(nA.explicit)))nA.implicit&&(iA=iA.concat(nA.implicit)),nA.explicit&&(AA=AA.concat(nA.explicit));else throw new ne$d("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");iA.forEach(function(lA){if(!(lA instanceof X$b))throw new ne$d("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(lA.loadKind&&lA.loadKind!=="scalar")throw new ne$d("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(lA.multi)throw new ne$d("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),AA.forEach(function(lA){if(!(lA instanceof X$b))throw new ne$d("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var sA=Object.create(Je$a.prototype);return sA.implicit=(this.implicit||[]).concat(iA),sA.explicit=(this.explicit||[]).concat(AA),sA.compiledImplicit=yt$d(sA,"implicit"),sA.compiledExplicit=yt$d(sA,"explicit"),sA.compiledTypeMap=pi$4(sA.compiledImplicit,sA.compiledExplicit),sA};var zt$a=Je$a,Yt$f=new X$b("tag:yaml.org,2002:str",{kind:"scalar",construct:function(nA){return nA!==null?nA:""}}),Wt$d=new X$b("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(nA){return nA!==null?nA:[]}}),Gt$b=new X$b("tag:yaml.org,2002:map",{kind:"mapping",construct:function(nA){return nA!==null?nA:{}}}),Jt$c=new zt$a({explicit:[Yt$f,Wt$d,Gt$b]});function hi$3(nA){if(nA===null)return!0;var iA=nA.length;return iA===1&&nA==="~"||iA===4&&(nA==="null"||nA==="Null"||nA==="NULL")}function mi$3(){return null}function gi$3(nA){return nA===null}var Zt$e=new X$b("tag:yaml.org,2002:null",{kind:"scalar",resolve:hi$3,construct:mi$3,predicate:gi$3,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yi$3(nA){if(nA===null)return!1;var iA=nA.length;return iA===4&&(nA==="true"||nA==="True"||nA==="TRUE")||iA===5&&(nA==="false"||nA==="False"||nA==="FALSE")}function vi$2(nA){return nA==="true"||nA==="True"||nA==="TRUE"}function bi$3(nA){return Object.prototype.toString.call(nA)==="[object Boolean]"}var Qt$d=new X$b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yi$3,construct:vi$2,predicate:bi$3,represent:{lowercase:function(nA){return nA?"true":"false"},uppercase:function(nA){return nA?"TRUE":"FALSE"},camelcase:function(nA){return nA?"True":"False"}},defaultStyle:"lowercase"});function xi$3(nA){return 48<=nA&&nA<=57||65<=nA&&nA<=70||97<=nA&&nA<=102}function Ci$2(nA){return 48<=nA&&nA<=55}function _i$3(nA){return 48<=nA&&nA<=57}function ki$3(nA){if(nA===null)return!1;var iA=nA.length,AA=0,sA=!1,lA;if(!iA)return!1;if(lA=nA[AA],(lA==="-"||lA==="+")&&(lA=nA[++AA]),lA==="0"){if(AA+1===iA)return!0;if(lA=nA[++AA],lA==="b"){for(AA++;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(lA!=="0"&&lA!=="1")return!1;sA=!0}return sA&&lA!=="_"}if(lA==="x"){for(AA++;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(!xi$3(nA.charCodeAt(AA)))return!1;sA=!0}return sA&&lA!=="_"}if(lA==="o"){for(AA++;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(!Ci$2(nA.charCodeAt(AA)))return!1;sA=!0}return sA&&lA!=="_"}}if(lA==="_")return!1;for(;AA<iA;AA++)if(lA=nA[AA],lA!=="_"){if(!_i$3(nA.charCodeAt(AA)))return!1;sA=!0}return!(!sA||lA==="_")}function wi$3(nA){var iA=nA,AA=1,sA;if(iA.indexOf("_")!==-1&&(iA=iA.replace(/_/g,"")),sA=iA[0],(sA==="-"||sA==="+")&&(sA==="-"&&(AA=-1),iA=iA.slice(1),sA=iA[0]),iA==="0")return 0;if(sA==="0"){if(iA[1]==="b")return AA*parseInt(iA.slice(2),2);if(iA[1]==="x")return AA*parseInt(iA.slice(2),16);if(iA[1]==="o")return AA*parseInt(iA.slice(2),8)}return AA*parseInt(iA,10)}function Ai$3(nA){return Object.prototype.toString.call(nA)==="[object Number]"&&nA%1===0&&!Z$e.isNegativeZero(nA)}var Xt$c=new X$b("tag:yaml.org,2002:int",{kind:"scalar",resolve:ki$3,construct:wi$3,predicate:Ai$3,represent:{binary:function(nA){return nA>=0?"0b"+nA.toString(2):"-0b"+nA.toString(2).slice(1)},octal:function(nA){return nA>=0?"0o"+nA.toString(8):"-0o"+nA.toString(8).slice(1)},decimal:function(nA){return nA.toString(10)},hexadecimal:function(nA){return nA>=0?"0x"+nA.toString(16).toUpperCase():"-0x"+nA.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Si$2=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $i$2(nA){return!(nA===null||!Si$2.test(nA)||nA[nA.length-1]==="_")}function Ii$2(nA){var iA,AA;return iA=nA.replace(/_/g,"").toLowerCase(),AA=iA[0]==="-"?-1:1,"+-".indexOf(iA[0])>=0&&(iA=iA.slice(1)),iA===".inf"?AA===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:iA===".nan"?NaN:AA*parseFloat(iA,10)}var Ti$1=/^[-+]?[0-9]+e/;function Ei$2(nA,iA){var AA;if(isNaN(nA))switch(iA){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===nA)switch(iA){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===nA)switch(iA){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Z$e.isNegativeZero(nA))return"-0.0";return AA=nA.toString(10),Ti$1.test(AA)?AA.replace("e",".e"):AA}function Fi$2(nA){return Object.prototype.toString.call(nA)==="[object Number]"&&(nA%1!==0||Z$e.isNegativeZero(nA))}var en$3=new X$b("tag:yaml.org,2002:float",{kind:"scalar",resolve:$i$2,construct:Ii$2,predicate:Fi$2,represent:Ei$2,defaultStyle:"lowercase"}),tn$5=Jt$c.extend({implicit:[Zt$e,Qt$d,Xt$c,en$3]}),nn$5=tn$5,rn$4=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),on$2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Oi$2(nA){return nA===null?!1:rn$4.exec(nA)!==null||on$2.exec(nA)!==null}function Ni$2(nA){var iA,AA,sA,lA,pA,uA,gA,bA=0,yA=null,CA,_A,kA;if(iA=rn$4.exec(nA),iA===null&&(iA=on$2.exec(nA)),iA===null)throw new Error("Date resolve error");if(AA=+iA[1],sA=+iA[2]-1,lA=+iA[3],!iA[4])return new Date(Date.UTC(AA,sA,lA));if(pA=+iA[4],uA=+iA[5],gA=+iA[6],iA[7]){for(bA=iA[7].slice(0,3);bA.length<3;)bA+="0";bA=+bA}return iA[9]&&(CA=+iA[10],_A=+(iA[11]||0),yA=(CA*60+_A)*6e4,iA[9]==="-"&&(yA=-yA)),kA=new Date(Date.UTC(AA,sA,lA,pA,uA,gA,bA)),yA&&kA.setTime(kA.getTime()-yA),kA}function Li$2(nA){return nA.toISOString()}var an$3=new X$b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Oi$2,construct:Ni$2,instanceOf:Date,represent:Li$2});function Bi$2(nA){return nA==="<<"||nA===null}var ln$5=new X$b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Bi$2}),rt$f=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
+ \r`;function Ri$3(nA){if(nA===null)return!1;var iA,AA,sA=0,lA=nA.length,pA=rt$f;for(AA=0;AA<lA;AA++)if(iA=pA.indexOf(nA.charAt(AA)),!(iA>64)){if(iA<0)return!1;sA+=6}return sA%8===0}function Mi$3(nA){var iA,AA,sA=nA.replace(/[\r\n=]/g,""),lA=sA.length,pA=rt$f,uA=0,gA=[];for(iA=0;iA<lA;iA++)iA%4===0&&iA&&(gA.push(uA>>16&255),gA.push(uA>>8&255),gA.push(uA&255)),uA=uA<<6|pA.indexOf(sA.charAt(iA));return AA=lA%4*6,AA===0?(gA.push(uA>>16&255),gA.push(uA>>8&255),gA.push(uA&255)):AA===18?(gA.push(uA>>10&255),gA.push(uA>>2&255)):AA===12&&gA.push(uA>>4&255),new Uint8Array(gA)}function Ki$2(nA){var iA="",AA=0,sA,lA,pA=nA.length,uA=rt$f;for(sA=0;sA<pA;sA++)sA%3===0&&sA&&(iA+=uA[AA>>18&63],iA+=uA[AA>>12&63],iA+=uA[AA>>6&63],iA+=uA[AA&63]),AA=(AA<<8)+nA[sA];return lA=pA%3,lA===0?(iA+=uA[AA>>18&63],iA+=uA[AA>>12&63],iA+=uA[AA>>6&63],iA+=uA[AA&63]):lA===2?(iA+=uA[AA>>10&63],iA+=uA[AA>>4&63],iA+=uA[AA<<2&63],iA+=uA[64]):lA===1&&(iA+=uA[AA>>2&63],iA+=uA[AA<<4&63],iA+=uA[64],iA+=uA[64]),iA}function Di$1(nA){return Object.prototype.toString.call(nA)==="[object Uint8Array]"}var cn$6=new X$b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ri$3,construct:Mi$3,predicate:Di$1,represent:Ki$2}),ji$2=Object.prototype.hasOwnProperty,qi$2=Object.prototype.toString;function Ui$2(nA){if(nA===null)return!0;var iA=[],AA,sA,lA,pA,uA,gA=nA;for(AA=0,sA=gA.length;AA<sA;AA+=1){if(lA=gA[AA],uA=!1,qi$2.call(lA)!=="[object Object]")return!1;for(pA in lA)if(ji$2.call(lA,pA))if(!uA)uA=!0;else return!1;if(!uA)return!1;if(iA.indexOf(pA)===-1)iA.push(pA);else return!1}return!0}function Pi$2(nA){return nA!==null?nA:[]}var sn$5=new X$b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ui$2,construct:Pi$2}),Hi$2=Object.prototype.toString;function Vi$2(nA){if(nA===null)return!0;var iA,AA,sA,lA,pA,uA=nA;for(pA=new Array(uA.length),iA=0,AA=uA.length;iA<AA;iA+=1){if(sA=uA[iA],Hi$2.call(sA)!=="[object Object]"||(lA=Object.keys(sA),lA.length!==1))return!1;pA[iA]=[lA[0],sA[lA[0]]]}return!0}function zi$2(nA){if(nA===null)return[];var iA,AA,sA,lA,pA,uA=nA;for(pA=new Array(uA.length),iA=0,AA=uA.length;iA<AA;iA+=1)sA=uA[iA],lA=Object.keys(sA),pA[iA]=[lA[0],sA[lA[0]]];return pA}var un$3=new X$b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Vi$2,construct:zi$2}),Yi$2=Object.prototype.hasOwnProperty;function Wi$2(nA){if(nA===null)return!0;var iA,AA=nA;for(iA in AA)if(Yi$2.call(AA,iA)&&AA[iA]!==null)return!1;return!0}function Gi$2(nA){return nA!==null?nA:{}}var dn$6=new X$b("tag:yaml.org,2002:set",{kind:"mapping",resolve:Wi$2,construct:Gi$2});nn$5.extend({implicit:[an$3,ln$5],explicit:[cn$6,sn$5,un$3,dn$6]});function xt$f(nA){return nA===48?"\0":nA===97?"\x07":nA===98?"\b":nA===116||nA===9?" ":nA===110?`
5
+ `:nA===118?"\v":nA===102?"\f":nA===114?"\r":nA===101?"\x1B":nA===32?" ":nA===34?'"':nA===47?"/":nA===92?"\\":nA===78?"…":nA===95?" ":nA===76?"\u2028":nA===80?"\u2029":""}for(var gn$5=new Array(256),yn$6=new Array(256),be$c=0;be$c<256;be$c++)gn$5[be$c]=xt$f(be$c)?1:0,yn$6[be$c]=xt$f(be$c);const fc$1=vue.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(nA){const iA=nA,AA=vue.ref(void 0),sA=vue.computed(()=>AA.value===!0||AA.value!==void 0&&iA.forceShow===!0);return vue.watch(()=>iA.authFunction,async()=>{AA.value=await iA.authFunction()},{immediate:!0}),(lA,pA)=>sA.value?vue.renderSlot(lA.$slots,"default",{key:0,isAllowed:AA.value}):vue.createCommentVNode("",!0)}}),Q$9=[];for(let nA=0;nA<256;++nA)Q$9.push((nA+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var Pe$8=Object.defineProperty,Ue$9=(nA,iA,AA)=>iA in nA?Pe$8(nA,iA,{enumerable:!0,configurable:!0,writable:!0,value:AA}):nA[iA]=AA,tA=(nA,iA,AA)=>Ue$9(nA,typeof iA!="symbol"?iA+"":iA,AA);const UNIQUE_ID_INJECTION_KEY=Symbol("The unique id that prefixes all identifiers within a single instance of the component"),TEXTAREA_ID_INJECTION_KEY=Symbol("Textarea unique id"),MODE_INJECTION_KEY=Symbol("Markdown component mode"),EDITABLE_INJECTION_KEY=Symbol("Is the markdown component editable"),FULLSCREEN_INJECTION_KEY=Symbol("Is the markdown component displaying fullscreen"),THEME_INJECTION_KEY=Symbol("Active theme, light or dark"),HTML_PREVIEW_INJECTION_KEY=Symbol("Is the html preview enabled");function tryOnScopeDispose(nA){return vue.getCurrentScope()?(vue.onScopeDispose(nA),!0):!1}function toValue(nA){return typeof nA=="function"?nA():vue.unref(nA)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const notNullish=nA=>nA!=null,toString$1=Object.prototype.toString,isObject$5=nA=>toString$1.call(nA)==="[object Object]",noop$2=()=>{};function createFilterWrapper(nA,iA){function AA(...sA){return new Promise((lA,pA)=>{Promise.resolve(nA(()=>iA.apply(this,sA),{fn:iA,thisArg:this,args:sA})).then(lA).catch(pA)})}return AA}function debounceFilter(nA,iA={}){let AA,sA,lA=noop$2;const pA=uA=>{clearTimeout(uA),lA(),lA=noop$2};return uA=>{const gA=toValue(nA),bA=toValue(iA.maxWait);return AA&&pA(AA),gA<=0||bA!==void 0&&bA<=0?(sA&&(pA(sA),sA=null),Promise.resolve(uA())):new Promise((yA,CA)=>{lA=iA.rejectOnCancel?CA:yA,bA&&!sA&&(sA=setTimeout(()=>{AA&&pA(AA),sA=null,yA(uA())},bA)),AA=setTimeout(()=>{sA&&pA(sA),sA=null,yA(uA())},gA)})}}function throttleFilter(...nA){let iA=0,AA,sA=!0,lA=noop$2,pA,uA,gA,bA,yA;!vue.isRef(nA[0])&&typeof nA[0]=="object"?{delay:uA,trailing:gA=!0,leading:bA=!0,rejectOnCancel:yA=!1}=nA[0]:[uA,gA=!0,bA=!0,yA=!1]=nA;const CA=()=>{AA&&(clearTimeout(AA),AA=void 0,lA(),lA=noop$2)};return _A=>{const kA=toValue(uA),QA=Date.now()-iA,IA=()=>pA=_A();return CA(),kA<=0?(iA=Date.now(),IA()):(QA>kA&&(bA||!sA)?(iA=Date.now(),IA()):gA&&(pA=new Promise((DA,LA)=>{lA=yA?LA:DA,AA=setTimeout(()=>{iA=Date.now(),sA=!0,DA(IA()),CA()},Math.max(0,kA-QA))})),!bA&&!AA&&(AA=setTimeout(()=>sA=!0,kA)),sA=!1,pA)}}function getLifeCycleTarget(nA){return vue.getCurrentInstance()}function useDebounceFn(nA,iA=200,AA={}){return createFilterWrapper(debounceFilter(iA,AA),nA)}function useThrottleFn(nA,iA=200,AA=!1,sA=!0,lA=!1){return createFilterWrapper(throttleFilter(iA,AA,sA,lA),nA)}function tryOnMounted(nA,iA=!0,AA){getLifeCycleTarget()?vue.onMounted(nA,AA):iA?nA():vue.nextTick(nA)}function unrefElement(nA){var iA;const AA=toValue(nA);return(iA=AA==null?void 0:AA.$el)!=null?iA:AA}const defaultWindow=isClient?window:void 0;function useEventListener(...nA){let iA,AA,sA,lA;if(typeof nA[0]=="string"||Array.isArray(nA[0])?([AA,sA,lA]=nA,iA=defaultWindow):[iA,AA,sA,lA]=nA,!iA)return noop$2;Array.isArray(AA)||(AA=[AA]),Array.isArray(sA)||(sA=[sA]);const pA=[],uA=()=>{pA.forEach(CA=>CA()),pA.length=0},gA=(CA,_A,kA,QA)=>(CA.addEventListener(_A,kA,QA),()=>CA.removeEventListener(_A,kA,QA)),bA=vue.watch(()=>[unrefElement(iA),toValue(lA)],([CA,_A])=>{if(uA(),!CA)return;const kA=isObject$5(_A)?{..._A}:_A;pA.push(...AA.flatMap(QA=>sA.map(IA=>gA(CA,QA,IA,kA))))},{immediate:!0,flush:"post"}),yA=()=>{bA(),uA()};return tryOnScopeDispose(yA),yA}function useMounted(){const nA=vue.ref(!1),iA=vue.getCurrentInstance();return iA&&vue.onMounted(()=>{nA.value=!0},iA),nA}function useSupported(nA){const iA=useMounted();return vue.computed(()=>(iA.value,!!nA()))}function useMutationObserver(nA,iA,AA={}){const{window:sA=defaultWindow,...lA}=AA;let pA;const uA=useSupported(()=>sA&&"MutationObserver"in sA),gA=()=>{pA&&(pA.disconnect(),pA=void 0)},bA=vue.computed(()=>{const kA=toValue(nA),QA=(Array.isArray(kA)?kA:[kA]).map(unrefElement).filter(notNullish);return new Set(QA)}),yA=vue.watch(()=>bA.value,kA=>{gA(),uA.value&&kA.size&&(pA=new MutationObserver(iA),kA.forEach(QA=>pA.observe(QA,lA)))},{immediate:!0,flush:"post"}),CA=()=>pA==null?void 0:pA.takeRecords(),_A=()=>{gA(),yA()};return tryOnScopeDispose(_A),{isSupported:uA,stop:_A,takeRecords:CA}}function useActiveElement(nA={}){var iA;const{window:AA=defaultWindow,deep:sA=!0,triggerOnRemoval:lA=!1}=nA,pA=(iA=nA.document)!=null?iA:AA==null?void 0:AA.document,uA=()=>{var yA;let CA=pA==null?void 0:pA.activeElement;if(sA)for(;CA!=null&&CA.shadowRoot;)CA=(yA=CA==null?void 0:CA.shadowRoot)==null?void 0:yA.activeElement;return CA},gA=vue.ref(),bA=()=>{gA.value=uA()};return AA&&(useEventListener(AA,"blur",yA=>{yA.relatedTarget===null&&bA()},!0),useEventListener(AA,"focus",bA,!0)),lA&&useMutationObserver(pA,yA=>{yA.filter(CA=>CA.removedNodes.length).map(CA=>Array.from(CA.removedNodes)).flat().forEach(CA=>{CA===gA.value&&bA()})},{childList:!0,subtree:!0}),bA(),gA}function useMediaQuery(nA,iA={}){const{window:AA=defaultWindow}=iA,sA=useSupported(()=>AA&&"matchMedia"in AA&&typeof AA.matchMedia=="function");let lA;const pA=vue.ref(!1),uA=yA=>{pA.value=yA.matches},gA=()=>{lA&&("removeEventListener"in lA?lA.removeEventListener("change",uA):lA.removeListener(uA))},bA=vue.watchEffect(()=>{sA.value&&(gA(),lA=AA.matchMedia(toValue(nA)),"addEventListener"in lA?lA.addEventListener("change",uA):lA.addListener(uA),pA.value=lA.matches)});return tryOnScopeDispose(()=>{bA(),gA(),lA=void 0}),pA}const ARRIVED_STATE_THRESHOLD_PIXELS=1;function useScroll(nA,iA={}){const{throttle:AA=0,idle:sA=200,onStop:lA=noop$2,onScroll:pA=noop$2,offset:uA={left:0,right:0,top:0,bottom:0},eventListenerOptions:gA={capture:!1,passive:!0},behavior:bA="auto",window:yA=defaultWindow,onError:CA=UA=>{console.error(UA)}}=iA,_A=vue.ref(0),kA=vue.ref(0),QA=vue.computed({get(){return _A.value},set(UA){DA(UA,void 0)}}),IA=vue.computed({get(){return kA.value},set(UA){DA(void 0,UA)}});function DA(UA,TA){var WA,PA,XA,qA;if(!yA)return;const HA=toValue(nA);if(!HA)return;(XA=HA instanceof Document?yA.document.body:HA)==null||XA.scrollTo({top:(WA=toValue(TA))!=null?WA:IA.value,left:(PA=toValue(UA))!=null?PA:QA.value,behavior:toValue(bA)});const Ml=((qA=HA==null?void 0:HA.document)==null?void 0:qA.documentElement)||(HA==null?void 0:HA.documentElement)||HA;QA!=null&&(_A.value=Ml.scrollLeft),IA!=null&&(kA.value=Ml.scrollTop)}const LA=vue.ref(!1),FA=vue.reactive({left:!0,right:!1,top:!0,bottom:!1}),NA=vue.reactive({left:!1,right:!1,top:!1,bottom:!1}),jA=UA=>{LA.value&&(LA.value=!1,NA.left=!1,NA.right=!1,NA.top=!1,NA.bottom=!1,lA(UA))},OA=useDebounceFn(jA,AA+sA),GA=UA=>{var TA;if(!yA)return;const WA=((TA=UA==null?void 0:UA.document)==null?void 0:TA.documentElement)||(UA==null?void 0:UA.documentElement)||unrefElement(UA),{display:PA,flexDirection:XA}=getComputedStyle(WA),qA=WA.scrollLeft;NA.left=qA<_A.value,NA.right=qA>_A.value;const HA=Math.abs(qA)<=(uA.left||0),Ml=Math.abs(qA)+WA.clientWidth>=WA.scrollWidth-(uA.right||0)-ARRIVED_STATE_THRESHOLD_PIXELS;PA==="flex"&&XA==="row-reverse"?(FA.left=Ml,FA.right=HA):(FA.left=HA,FA.right=Ml),_A.value=qA;let Rl=WA.scrollTop;UA===yA.document&&!Rl&&(Rl=yA.document.body.scrollTop),NA.top=Rl<kA.value,NA.bottom=Rl>kA.value;const Pl=Math.abs(Rl)<=(uA.top||0),Wl=Math.abs(Rl)+WA.clientHeight>=WA.scrollHeight-(uA.bottom||0)-ARRIVED_STATE_THRESHOLD_PIXELS;PA==="flex"&&XA==="column-reverse"?(FA.top=Wl,FA.bottom=Pl):(FA.top=Pl,FA.bottom=Wl),kA.value=Rl},zA=UA=>{var TA;if(!yA)return;const WA=(TA=UA.target.documentElement)!=null?TA:UA.target;GA(WA),LA.value=!0,OA(UA),pA(UA)};return useEventListener(nA,"scroll",AA?useThrottleFn(zA,AA,!0,!1):zA,gA),tryOnMounted(()=>{try{const UA=toValue(nA);if(!UA)return;GA(UA)}catch(UA){CA(UA)}}),useEventListener(nA,"scrollend",jA,gA),{x:QA,y:IA,isScrolling:LA,arrivedState:FA,directions:NA,measure(){const UA=toValue(nA);yA&&UA&&GA(UA)}}}const DefaultMagicKeysAliasMap={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function useMagicKeys(nA={}){const{reactive:iA=!1,target:AA=defaultWindow,aliasMap:sA=DefaultMagicKeysAliasMap,passive:lA=!0,onEventFired:pA=noop$2}=nA,uA=vue.reactive(new Set),gA={toJSON(){return{}},current:uA},bA=iA?vue.reactive(gA):gA,yA=new Set,CA=new Set;function _A(DA,LA){DA in bA&&(iA?bA[DA]=LA:bA[DA].value=LA)}function kA(){uA.clear();for(const DA of CA)_A(DA,!1)}function QA(DA,LA){var FA,NA;const jA=(FA=DA.key)==null?void 0:FA.toLowerCase(),OA=[(NA=DA.code)==null?void 0:NA.toLowerCase(),jA].filter(Boolean);jA&&(LA?uA.add(jA):uA.delete(jA));for(const GA of OA)CA.add(GA),_A(GA,LA);jA==="meta"&&!LA?(yA.forEach(GA=>{uA.delete(GA),_A(GA,!1)}),yA.clear()):typeof DA.getModifierState=="function"&&DA.getModifierState("Meta")&&LA&&[...uA,...OA].forEach(GA=>yA.add(GA))}useEventListener(AA,"keydown",DA=>(QA(DA,!0),pA(DA)),{passive:lA}),useEventListener(AA,"keyup",DA=>(QA(DA,!1),pA(DA)),{passive:lA}),useEventListener("blur",kA,{passive:!0}),useEventListener("focus",kA,{passive:!0});const IA=new Proxy(bA,{get(DA,LA,FA){if(typeof LA!="string")return Reflect.get(DA,LA,FA);if(LA=LA.toLowerCase(),LA in sA&&(LA=sA[LA]),!(LA in bA))if(/[+_-]/.test(LA)){const jA=LA.split(/[+_-]/g).map(OA=>OA.trim());bA[LA]=vue.computed(()=>jA.every(OA=>toValue(IA[OA])))}else bA[LA]=vue.ref(!1);const NA=Reflect.get(DA,LA,FA);return iA?toValue(NA):NA}});return IA}function usePreferredColorScheme(nA){const iA=useMediaQuery("(prefers-color-scheme: light)",nA),AA=useMediaQuery("(prefers-color-scheme: dark)",nA);return vue.computed(()=>AA.value?"dark":iA.value?"light":"no-preference")}const EDITOR_DEBOUNCE_TIMEOUT=400,DEFAULT_CODEBLOCK_LANGUAGE="markdown";var InlineFormatWrapper=(nA=>(nA.bold="**",nA.italic="_",nA.underline="++",nA.strikethrough="~~",nA.subscript="~",nA.superscript="^",nA.mark="==",nA.code="`",nA))(InlineFormatWrapper||{});const TOOLBAR_HEIGHT="36px",NEW_LINE_CHARACTER=`
6
6
  `,MARKDOWN_TEMPLATE_CODEBLOCK="```"+DEFAULT_CODEBLOCK_LANGUAGE+NEW_LINE_CHARACTER+NEW_LINE_CHARACTER+"```",MARKDOWN_TEMPLATE_TABLE="| Header | Header | Header |"+NEW_LINE_CHARACTER+"| :--- | :--- | :--- |"+NEW_LINE_CHARACTER+"| Cell | Cell | Cell |",MARKDOWN_TEMPLATE_TASK="- [ ] ",MARKDOWN_TEMPLATE_TASK_COMPLETED="- [x] ",MARKDOWN_TEMPLATE_UL="- ",MARKDOWN_TEMPLATE_OL="1. ",MARKDOWN_TEMPLATE_BLOCKQUOTE="> ",MARKDOWN_TEMPLATE_LINK="[text](url)",MARKDOWN_TEMPLATE_IMAGE="![alt](url)",COPY_ICON_SVG='<span class="kui-icon copy-icon button-icon" data-testid="kui-icon-wrapper-copy-icon" style="pointer-events:none; box-sizing: border-box; color: currentcolor; display: block; height: 20px; line-height: 0; width: 20px;"><svg data-testid="kui-icon-svg-copy-icon" fill="none" height="100%" role="img" viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><path d="M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z" fill="currentColor"></path></svg></span>',HEADER_LINK_ICON_SVG='<svg class="header-anchor-icon" viewBox="0 0 16 16" version="1.1" width="14" height="14" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>',KUI_BREAKPOINT_PHABLET="768px",KUI_ICON_SIZE_30="16px",KUI_ICON_SIZE_40="20px",KUI_FONT_FAMILY_CODE="'JetBrains Mono', Consolas, monospace",KUI_FONT_FAMILY_TEXT="'Inter', Roboto, Helvetica, sans-serif",KUI_SPACE_60="16px",_sfc_main$5=vue.defineComponent({__name:"ToolbarButton",props:{icon:{type:Boolean,default:!0},appearance:{type:String,default:"secondary"}},setup(nA){return(iA,AA)=>(vue.openBlock(),vue.createElementBlock("button",{class:vue.normalizeClass(["toolbar-button",[{"has-text":!nA.icon},nA.appearance]]),tabindex:"0",type:"button"},[vue.renderSlot(iA.$slots,"default",{},void 0,!0)],2))}}),_export_sfc$1=(nA,iA)=>{const AA=nA.__vccOpts||nA;for(const[sA,lA]of iA)AA[sA]=lA;return AA},ToolbarButton=_export_sfc$1(_sfc_main$5,[["__scopeId","data-v-47835ee3"]]),_hoisted_1$4={class:"info-tooltip"},_hoisted_2$3={key:0,class:"tooltip-content"},_sfc_main$4=vue.defineComponent({__name:"InfoTooltip",props:{text:{type:String,default:void 0}},setup(nA){return(iA,AA)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.renderSlot(iA.$slots,"default",{},void 0,!0),iA.$slots.tooltip||nA.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$3,[vue.renderSlot(iA.$slots,"tooltip",{},()=>[vue.createTextVNode(vue.toDisplayString(nA.text),1)],!0)])):vue.createCommentVNode("",!0)]))}}),InfoTooltip=_export_sfc$1(_sfc_main$4,[["__scopeId","data-v-46630046"]]),_hoisted_1$3={key:0,class:"tooltip-shortcut"},_hoisted_2$2$1={"data-testid":"shortcut-text"},_hoisted_3$2$1={key:0,class:"keys","data-testid":"keys"},_hoisted_4$2=["aria-label"],_sfc_main$3$1=vue.defineComponent({__name:"TooltipShortcut",props:{text:{type:String,required:!0},keys:{type:Array,default:()=>[],validator:nA=>nA!=null&&nA.length?nA.every(iA=>typeof iA=="string"):!0}},setup(nA){const iA=vue.ref(!1);return vue.onMounted(()=>{var AA;iA.value=/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((AA=navigator==null?void 0:navigator.userAgentData)==null?void 0:AA.platform)}),(AA,sA)=>nA.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createElementVNode("div",_hoisted_2$2$1,vue.toDisplayString(nA.text),1),nA.keys.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2$1,[vue.createElementVNode("kbd",{"aria-label":iA.value?"Command":"Control",class:vue.normalizeClass(["keyboard-button meta-key",{mac:iA.value}]),"data-testid":"meta-key"},null,10,_hoisted_4$2),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(nA.keys,lA=>(vue.openBlock(),vue.createElementBlock("kbd",{key:lA,class:"keyboard-button"},vue.toDisplayString(lA),1))),128))])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)}}),TooltipShortcut=_export_sfc$1(_sfc_main$3$1,[["__scopeId","data-v-e8c3cafb"]]),I$3$1="24px",s$1$1=(nA,iA)=>{const AA=nA.__vccOpts||nA;for(const[sA,lA]of iA)AA[sA]=lA;return AA},b$g=nA=>(vue.pushScopeId("data-v-2865b91a"),nA=nA(),vue.popScopeId(),nA),v$c=["aria-hidden"],k$8={key:0,"data-testid":"kui-icon-svg-title"},N$i=b$g(()=>vue.createElementVNode("path",{d:"M6.55 16.5L8 14C6.9 14 5.95833 13.6083 5.175 12.825C4.39167 12.0417 4 11.1 4 10C4 8.9 4.39167 7.95833 5.175 7.175C5.95833 6.39167 6.9 6 8 6C9.1 6 10.0417 6.39167 10.825 7.175C11.6083 7.95833 12 8.9 12 10C12 10.3833 11.9542 10.7375 11.8625 11.0625C11.7708 11.3875 11.6333 11.7 11.45 12L8.275 17.5C8.19167 17.65 8.075 17.7708 7.925 17.8625C7.775 17.9542 7.60833 18 7.425 18C7.04167 18 6.75417 17.8333 6.5625 17.5C6.37083 17.1667 6.36667 16.8333 6.55 16.5ZM15.55 16.5L17 14C15.9 14 14.9583 13.6083 14.175 12.825C13.3917 12.0417 13 11.1 13 10C13 8.9 13.3917 7.95833 14.175 7.175C14.9583 6.39167 15.9 6 17 6C18.1 6 19.0417 6.39167 19.825 7.175C20.6083 7.95833 21 8.9 21 10C21 10.3833 20.9542 10.7375 20.8625 11.0625C20.7708 11.3875 20.6333 11.7 20.45 12L17.275 17.5C17.1917 17.65 17.075 17.7708 16.925 17.8625C16.775 17.9542 16.6083 18 16.425 18C16.0417 18 15.7542 17.8333 15.5625 17.5C15.3708 17.1667 15.3667 16.8333 15.55 16.5Z",fill:"currentColor"},null,-1)),q$d=vue.defineComponent({__name:"BlockquoteIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon blockquote-icon","data-testid":"kui-icon-wrapper-blockquote-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-blockquote-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",k$8,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),N$i],8,v$c))]),_:1},8,["aria-hidden","style"]))}}),m$a=s$1$1(q$d,[["__scopeId","data-v-2865b91a"]]),b$f=nA=>(vue.pushScopeId("data-v-5a62f4b9"),nA=nA(),vue.popScopeId(),nA),v$b=["aria-hidden"],N$h={key:0,"data-testid":"kui-icon-svg-title"},x$9=b$f(()=>vue.createElementVNode("path",{d:"M6.3 19.25V5.25H11.825C12.9083 5.25 13.9083 5.58333 14.825 6.25C15.7417 6.91667 16.2 7.84167 16.2 9.025C16.2 9.875 16.0083 10.5292 15.625 10.9875C15.2417 11.4458 14.8833 11.775 14.55 11.975C14.9667 12.1583 15.4292 12.5 15.9375 13C16.4458 13.5 16.7 14.25 16.7 15.25C16.7 16.7333 16.1583 17.7708 15.075 18.3625C13.9917 18.9542 12.975 19.25 12.025 19.25H6.3ZM9.325 16.45H11.925C12.725 16.45 13.2125 16.2458 13.3875 15.8375C13.5625 15.4292 13.65 15.1333 13.65 14.95C13.65 14.7667 13.5625 14.4708 13.3875 14.0625C13.2125 13.6542 12.7 13.45 11.85 13.45H9.325V16.45ZM9.325 10.75H11.65C12.2 10.75 12.6 10.6083 12.85 10.325C13.1 10.0417 13.225 9.725 13.225 9.375C13.225 8.975 13.0833 8.65 12.8 8.4C12.5167 8.15 12.15 8.025 11.7 8.025H9.325V10.75Z",fill:"currentColor"},null,-1)),w$a=vue.defineComponent({__name:"BoldIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon bold-icon","data-testid":"kui-icon-wrapper-bold-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-bold-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$h,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$9],8,v$b))]),_:1},8,["aria-hidden","style"]))}}),m$9=s$1$1(w$a,[["__scopeId","data-v-5a62f4b9"]]),v$a=nA=>(vue.pushScopeId("data-v-0576deba"),nA=nA(),vue.popScopeId(),nA),b$e=["aria-hidden"],N$g={key:0,"data-testid":"kui-icon-svg-title"},x$8=v$a(()=>vue.createElementVNode("path",{d:"M4.82499 12.025L8.69999 15.9C8.88332 16.0833 8.97499 16.3167 8.97499 16.6C8.97499 16.8833 8.88332 17.1167 8.69999 17.3C8.51665 17.4833 8.28332 17.575 7.99999 17.575C7.71665 17.575 7.48332 17.4833 7.29999 17.3L2.69999 12.7C2.59999 12.6 2.52915 12.4917 2.48749 12.375C2.44582 12.2583 2.42499 12.1333 2.42499 12C2.42499 11.8667 2.44582 11.7417 2.48749 11.625C2.52915 11.5083 2.59999 11.4 2.69999 11.3L7.29999 6.7C7.49999 6.5 7.73749 6.4 8.01249 6.4C8.28749 6.4 8.52499 6.5 8.72499 6.7C8.92499 6.9 9.02499 7.1375 9.02499 7.4125C9.02499 7.6875 8.92499 7.925 8.72499 8.125L4.82499 12.025ZM19.175 11.975L15.3 8.1C15.1167 7.91667 15.025 7.68333 15.025 7.4C15.025 7.11667 15.1167 6.88333 15.3 6.7C15.4833 6.51667 15.7167 6.425 16 6.425C16.2833 6.425 16.5167 6.51667 16.7 6.7L21.3 11.3C21.4 11.4 21.4708 11.5083 21.5125 11.625C21.5542 11.7417 21.575 11.8667 21.575 12C21.575 12.1333 21.5542 12.2583 21.5125 12.375C21.4708 12.4917 21.4 12.6 21.3 12.7L16.7 17.3C16.5 17.5 16.2667 17.5958 16 17.5875C15.7333 17.5792 15.5 17.475 15.3 17.275C15.1 17.075 15 16.8375 15 16.5625C15 16.2875 15.1 16.05 15.3 15.85L19.175 11.975Z",fill:"currentColor"},null,-1)),w$9=vue.defineComponent({__name:"CodeIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon code-icon","data-testid":"kui-icon-wrapper-code-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-code-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$g,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$8],8,b$e))]),_:1},8,["aria-hidden","style"]))}}),m$8$1=s$1$1(w$9,[["__scopeId","data-v-0576deba"]]),b$d=nA=>(vue.pushScopeId("data-v-d927c40d"),nA=nA(),vue.popScopeId(),nA),v$9=["aria-hidden"],k$7={key:0,"data-testid":"kui-icon-svg-title"},N$f=b$d(()=>vue.createElementVNode("path",{d:"M8.825 12L10.3 10.525C10.5 10.325 10.6 10.0917 10.6 9.825C10.6 9.55833 10.5 9.325 10.3 9.125C10.1 8.925 9.8625 8.825 9.5875 8.825C9.3125 8.825 9.075 8.925 8.875 9.125L6.7 11.3C6.6 11.4 6.52917 11.5083 6.4875 11.625C6.44583 11.7417 6.425 11.8667 6.425 12C6.425 12.1333 6.44583 12.2583 6.4875 12.375C6.52917 12.4917 6.6 12.6 6.7 12.7L8.875 14.875C9.075 15.075 9.3125 15.175 9.5875 15.175C9.8625 15.175 10.1 15.075 10.3 14.875C10.5 14.675 10.6 14.4417 10.6 14.175C10.6 13.9083 10.5 13.675 10.3 13.475L8.825 12ZM15.175 12L13.7 13.475C13.5 13.675 13.4 13.9083 13.4 14.175C13.4 14.4417 13.5 14.675 13.7 14.875C13.9 15.075 14.1375 15.175 14.4125 15.175C14.6875 15.175 14.925 15.075 15.125 14.875L17.3 12.7C17.4 12.6 17.4708 12.4917 17.5125 12.375C17.5542 12.2583 17.575 12.1333 17.575 12C17.575 11.8667 17.5542 11.7417 17.5125 11.625C17.4708 11.5083 17.4 11.4 17.3 11.3L15.125 9.125C15.025 9.025 14.9125 8.95 14.7875 8.9C14.6625 8.85 14.5375 8.825 14.4125 8.825C14.2875 8.825 14.1625 8.85 14.0375 8.9C13.9125 8.95 13.8 9.025 13.7 9.125C13.5 9.325 13.4 9.55833 13.4 9.825C13.4 10.0917 13.5 10.325 13.7 10.525L15.175 12ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z",fill:"currentColor"},null,-1)),w$8=vue.defineComponent({__name:"CodeblockIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon codeblock-icon","data-testid":"kui-icon-wrapper-codeblock-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-codeblock-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",k$7,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),N$f],8,v$9))]),_:1},8,["aria-hidden","style"]))}}),m$7$1=s$1$1(w$8,[["__scopeId","data-v-d927c40d"]]),N$e=nA=>(vue.pushScopeId("data-v-13148d71"),nA=nA(),vue.popScopeId(),nA),b$c=["aria-hidden"],x$7={key:0,"data-testid":"kui-icon-svg-title"},z$4$1=N$e(()=>vue.createElementVNode("path",{d:"M3.4 22L2 20.6L8.6 14H4V12H12V20H10V15.4L3.4 22ZM12 12V4H14V8.6L20.6 2L22 3.4L15.4 10H20V12H12Z",fill:"currentColor"},null,-1)),I$2$1=vue.defineComponent({__name:"CollapseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon collapse-icon","data-testid":"kui-icon-wrapper-collapse-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-collapse-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",x$7,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),z$4$1],8,b$c))]),_:1},8,["aria-hidden","style"]))}}),m$6$1=s$1$1(I$2$1,[["__scopeId","data-v-13148d71"]]),b$b=nA=>(vue.pushScopeId("data-v-7938305b"),nA=nA(),vue.popScopeId(),nA),w$7=["aria-hidden"],N$d={key:0,"data-testid":"kui-icon-svg-title"},x$6$1=b$b(()=>vue.createElementVNode("path",{d:"M12 16L7 11L8.4 9.55L11 12.15V4H13V12.15L15.6 9.55L17 11L12 16ZM6 20C5.45 20 4.97917 19.8042 4.5875 19.4125C4.19583 19.0208 4 18.55 4 18V15H6V18H18V15H20V18C20 18.55 19.8042 19.0208 19.4125 19.4125C19.0208 19.8042 18.55 20 18 20H6Z",fill:"currentColor"},null,-1)),k$6$1=vue.defineComponent({__name:"DownloadIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon download-icon","data-testid":"kui-icon-wrapper-download-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-download-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$d,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$6$1],8,w$7))]),_:1},8,["aria-hidden","style"]))}}),p$6$1=s$1$1(k$6$1,[["__scopeId","data-v-7938305b"]]),N$c=nA=>(vue.pushScopeId("data-v-cd979988"),nA=nA(),vue.popScopeId(),nA),b$a=["aria-hidden"],x$5$1={key:0,"data-testid":"kui-icon-svg-title"},z$3$1=N$c(()=>vue.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3042 2.75 17.8625 2.75C18.4208 2.75 18.8917 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.57083 21.275 6.1125C21.2917 6.65417 21.1083 7.11667 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4Z",fill:"currentColor"},null,-1)),w$6$1=vue.defineComponent({__name:"EditIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon edit-icon","data-testid":"kui-icon-wrapper-edit-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-edit-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",x$5$1,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),z$3$1],8,b$a))]),_:1},8,["aria-hidden","style"]))}}),p$5$1=s$1$1(w$6$1,[["__scopeId","data-v-cd979988"]]),x$4$1=nA=>(vue.pushScopeId("data-v-26ab01b4"),nA=nA(),vue.popScopeId(),nA),b$9=["aria-hidden"],N$b={key:0,"data-testid":"kui-icon-svg-title"},z$2$1=x$4$1(()=>vue.createElementVNode("path",{d:"M3 21V13H5V17.6L17.6 5H13V3H21V11H19V6.4L6.4 19H11V21H3Z",fill:"currentColor"},null,-1)),I$1$1=vue.defineComponent({__name:"ExpandIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon expand-icon","data-testid":"kui-icon-wrapper-expand-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-expand-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$b,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),z$2$1],8,b$9))]),_:1},8,["aria-hidden","style"]))}}),m$5$1=s$1$1(I$1$1,[["__scopeId","data-v-26ab01b4"]]),V$1$1=nA=>(vue.pushScopeId("data-v-61a575d3"),nA=nA(),vue.popScopeId(),nA),v$8=["aria-hidden"],N$a={key:0,"data-testid":"kui-icon-svg-title"},b$8=V$1$1(()=>vue.createElementVNode("path",{d:"M0 15V9H1.5V11H3.5V9H5V15H3.5V12.5H1.5V15H0ZM7.75 15V10.5H6V9H11V10.5H9.25V15H7.75ZM12 15V10C12 9.71667 12.0958 9.47917 12.2875 9.2875C12.4792 9.09583 12.7167 9 13 9H17.5C17.7833 9 18.0208 9.09583 18.2125 9.2875C18.4042 9.47917 18.5 9.71667 18.5 10V15H17V10.5H16V14H14.5V10.5H13.5V15H12ZM20 15V9H21.5V13.5H24V15H20Z",fill:"currentColor"},null,-1)),C$1$1=vue.defineComponent({__name:"HtmlIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon html-icon","data-testid":"kui-icon-wrapper-html-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-html-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$a,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),b$8],8,v$8))]),_:1},8,["aria-hidden","style"]))}}),p$4$1=s$1$1(C$1$1,[["__scopeId","data-v-61a575d3"]]),v$7=nA=>(vue.pushScopeId("data-v-9089d326"),nA=nA(),vue.popScopeId(),nA),N$9=["aria-hidden"],b$7$1={key:0,"data-testid":"kui-icon-svg-title"},x$3$1=v$7(()=>vue.createElementVNode("path",{d:"M5 22C4.16667 22 3.45833 21.7083 2.875 21.125C2.29167 20.5417 2 19.8333 2 19V5C2 4.16667 2.29167 3.45833 2.875 2.875C3.45833 2.29167 4.16667 2 5 2H19C19.8333 2 20.5417 2.29167 21.125 2.875C21.7083 3.45833 22 4.16667 22 5V19C22 19.8333 21.7083 20.5417 21.125 21.125C20.5417 21.7083 19.8333 22 19 22H5ZM5 20H19C19.2833 20 19.5208 19.9042 19.7125 19.7125C19.9042 19.5208 20 19.2833 20 19V5C20 4.71667 19.9042 4.47917 19.7125 4.2875C19.5208 4.09583 19.2833 4 19 4H5C4.71667 4 4.47917 4.09583 4.2875 4.2875C4.09583 4.47917 4 4.71667 4 5V19C4 19.2833 4.09583 19.5208 4.2875 19.7125C4.47917 19.9042 4.71667 20 5 20ZM6 18L10 14L11.8 15.775L14 13L18 18H6ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10Z",fill:"currentColor"},null,-1)),w$5$1=vue.defineComponent({__name:"ImageIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon image-icon","data-testid":"kui-icon-wrapper-image-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-image-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",b$7$1,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$3$1],8,N$9))]),_:1},8,["aria-hidden","style"]))}}),p$3$1=s$1$1(w$5$1,[["__scopeId","data-v-9089d326"]]),N$8=nA=>(vue.pushScopeId("data-v-03d57264"),nA=nA(),vue.popScopeId(),nA),b$6$1=["aria-hidden"],x$2$1={key:0,"data-testid":"kui-icon-svg-title"},z$1$1=N$8(()=>vue.createElementVNode("path",{d:"M4.5 19.25V16.75H8.5L11.5 7.75H7.5V5.25H17.5V7.75H14L11 16.75H14.5V19.25H4.5Z",fill:"currentColor"},null,-1)),I$8=vue.defineComponent({__name:"ItalicIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon italic-icon","data-testid":"kui-icon-wrapper-italic-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-italic-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",x$2$1,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),z$1$1],8,b$6$1))]),_:1},8,["aria-hidden","style"]))}}),m$4$1=s$1$1(I$8,[["__scopeId","data-v-03d57264"]]),v$6$1=nA=>(vue.pushScopeId("data-v-a1719698"),nA=nA(),vue.popScopeId(),nA),k$5$1=["aria-hidden"],N$7={key:0,"data-testid":"kui-icon-svg-title"},b$5$1=v$6$1(()=>vue.createElementVNode("path",{d:"M7 17C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H10C10.2833 7 10.5208 7.09583 10.7125 7.2875C10.9042 7.47917 11 7.71667 11 8C11 8.28333 10.9042 8.52083 10.7125 8.7125C10.5208 8.90417 10.2833 9 10 9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H10C10.2833 15 10.5208 15.0958 10.7125 15.2875C10.9042 15.4792 11 15.7167 11 16C11 16.2833 10.9042 16.5208 10.7125 16.7125C10.5208 16.9042 10.2833 17 10 17H7ZM9 13C8.71667 13 8.47917 12.9042 8.2875 12.7125C8.09583 12.5208 8 12.2833 8 12C8 11.7167 8.09583 11.4792 8.2875 11.2875C8.47917 11.0958 8.71667 11 9 11H15C15.2833 11 15.5208 11.0958 15.7125 11.2875C15.9042 11.4792 16 11.7167 16 12C16 12.2833 15.9042 12.5208 15.7125 12.7125C15.5208 12.9042 15.2833 13 15 13H9ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H14Z",fill:"currentColor"},null,-1)),H$1$1=vue.defineComponent({__name:"LinkIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon link-icon","data-testid":"kui-icon-wrapper-link-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-link-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$7,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),b$5$1],8,k$5$1))]),_:1},8,["aria-hidden","style"]))}}),p$2$1=s$1$1(H$1$1,[["__scopeId","data-v-a1719698"]]),S$6=nA=>(vue.pushScopeId("data-v-904d1942"),nA=nA(),vue.popScopeId(),nA),v$5$1=["aria-hidden"],N$6$1={key:0,"data-testid":"kui-icon-svg-title"},b$4$1=S$6(()=>vue.createElementVNode("path",{d:"M3.75 22C3.53333 22 3.35417 21.9292 3.2125 21.7875C3.07083 21.6458 3 21.4667 3 21.25C3 21.0333 3.07083 20.8542 3.2125 20.7125C3.35417 20.5708 3.53333 20.5 3.75 20.5H5.5V19.75H4.75C4.53333 19.75 4.35417 19.6792 4.2125 19.5375C4.07083 19.3958 4 19.2167 4 19C4 18.7833 4.07083 18.6042 4.2125 18.4625C4.35417 18.3208 4.53333 18.25 4.75 18.25H5.5V17.5H3.75C3.53333 17.5 3.35417 17.4292 3.2125 17.2875C3.07083 17.1458 3 16.9667 3 16.75C3 16.5333 3.07083 16.3542 3.2125 16.2125C3.35417 16.0708 3.53333 16 3.75 16H6C6.28333 16 6.52083 16.0958 6.7125 16.2875C6.90417 16.4792 7 16.7167 7 17V18C7 18.2833 6.90417 18.5208 6.7125 18.7125C6.52083 18.9042 6.28333 19 6 19C6.28333 19 6.52083 19.0958 6.7125 19.2875C6.90417 19.4792 7 19.7167 7 20V21C7 21.2833 6.90417 21.5208 6.7125 21.7125C6.52083 21.9042 6.28333 22 6 22H3.75ZM3.75 15C3.53333 15 3.35417 14.9292 3.2125 14.7875C3.07083 14.6458 3 14.4667 3 14.25V12.25C3 11.9667 3.09583 11.7292 3.2875 11.5375C3.47917 11.3458 3.71667 11.25 4 11.25H5.5V10.5H3.75C3.53333 10.5 3.35417 10.4292 3.2125 10.2875C3.07083 10.1458 3 9.96667 3 9.75C3 9.53333 3.07083 9.35417 3.2125 9.2125C3.35417 9.07083 3.53333 9 3.75 9H6C6.28333 9 6.52083 9.09583 6.7125 9.2875C6.90417 9.47917 7 9.71667 7 10V11.75C7 12.0333 6.90417 12.2708 6.7125 12.4625C6.52083 12.6542 6.28333 12.75 6 12.75H4.5V13.5H6.25C6.46667 13.5 6.64583 13.5708 6.7875 13.7125C6.92917 13.8542 7 14.0333 7 14.25C7 14.4667 6.92917 14.6458 6.7875 14.7875C6.64583 14.9292 6.46667 15 6.25 15H3.75ZM5.25 8C5.03333 8 4.85417 7.92917 4.7125 7.7875C4.57083 7.64583 4.5 7.46667 4.5 7.25V3.5H3.75C3.53333 3.5 3.35417 3.42917 3.2125 3.2875C3.07083 3.14583 3 2.96667 3 2.75C3 2.53333 3.07083 2.35417 3.2125 2.2125C3.35417 2.07083 3.53333 2 3.75 2H5.25C5.46667 2 5.64583 2.07083 5.7875 2.2125C5.92917 2.35417 6 2.53333 6 2.75V7.25C6 7.46667 5.92917 7.64583 5.7875 7.7875C5.64583 7.92917 5.46667 8 5.25 8ZM10 19C9.71667 19 9.47917 18.9042 9.2875 18.7125C9.09583 18.5208 9 18.2833 9 18C9 17.7167 9.09583 17.4792 9.2875 17.2875C9.47917 17.0958 9.71667 17 10 17H20C20.2833 17 20.5208 17.0958 20.7125 17.2875C20.9042 17.4792 21 17.7167 21 18C21 18.2833 20.9042 18.5208 20.7125 18.7125C20.5208 18.9042 20.2833 19 20 19H10ZM10 13C9.71667 13 9.47917 12.9042 9.2875 12.7125C9.09583 12.5208 9 12.2833 9 12C9 11.7167 9.09583 11.4792 9.2875 11.2875C9.47917 11.0958 9.71667 11 10 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H10ZM10 7C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6C9 5.71667 9.09583 5.47917 9.2875 5.2875C9.47917 5.09583 9.71667 5 10 5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H10Z",fill:"currentColor"},null,-1)),k$4$1=vue.defineComponent({__name:"ListOrderedIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon list-ordered-icon","data-testid":"kui-icon-wrapper-list-ordered-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-list-ordered-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$6$1,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),b$4$1],8,v$5$1))]),_:1},8,["aria-hidden","style"]))}}),m$3$1=s$1$1(k$4$1,[["__scopeId","data-v-904d1942"]]),v$4$1=nA=>(vue.pushScopeId("data-v-cf8151ae"),nA=nA(),vue.popScopeId(),nA),N$5$1=["aria-hidden"],b$3$1={key:0,"data-testid":"kui-icon-svg-title"},x$1$1=v$4$1(()=>vue.createElementVNode("path",{d:"M10 19C9.71667 19 9.47917 18.9042 9.2875 18.7125C9.09583 18.5208 9 18.2833 9 18C9 17.7167 9.09583 17.4792 9.2875 17.2875C9.47917 17.0958 9.71667 17 10 17H20C20.2833 17 20.5208 17.0958 20.7125 17.2875C20.9042 17.4792 21 17.7167 21 18C21 18.2833 20.9042 18.5208 20.7125 18.7125C20.5208 18.9042 20.2833 19 20 19H10ZM10 13C9.71667 13 9.47917 12.9042 9.2875 12.7125C9.09583 12.5208 9 12.2833 9 12C9 11.7167 9.09583 11.4792 9.2875 11.2875C9.47917 11.0958 9.71667 11 10 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H10ZM10 7C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6C9 5.71667 9.09583 5.47917 9.2875 5.2875C9.47917 5.09583 9.71667 5 10 5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H10ZM5 20C4.45 20 3.97917 19.8042 3.5875 19.4125C3.19583 19.0208 3 18.55 3 18C3 17.45 3.19583 16.9792 3.5875 16.5875C3.97917 16.1958 4.45 16 5 16C5.55 16 6.02083 16.1958 6.4125 16.5875C6.80417 16.9792 7 17.45 7 18C7 18.55 6.80417 19.0208 6.4125 19.4125C6.02083 19.8042 5.55 20 5 20ZM5 14C4.45 14 3.97917 13.8042 3.5875 13.4125C3.19583 13.0208 3 12.55 3 12C3 11.45 3.19583 10.9792 3.5875 10.5875C3.97917 10.1958 4.45 10 5 10C5.55 10 6.02083 10.1958 6.4125 10.5875C6.80417 10.9792 7 11.45 7 12C7 12.55 6.80417 13.0208 6.4125 13.4125C6.02083 13.8042 5.55 14 5 14ZM5 8C4.45 8 3.97917 7.80417 3.5875 7.4125C3.19583 7.02083 3 6.55 3 6C3 5.45 3.19583 4.97917 3.5875 4.5875C3.97917 4.19583 4.45 4 5 4C5.55 4 6.02083 4.19583 6.4125 4.5875C6.80417 4.97917 7 5.45 7 6C7 6.55 6.80417 7.02083 6.4125 7.4125C6.02083 7.80417 5.55 8 5 8Z",fill:"currentColor"},null,-1)),w$4$1=vue.defineComponent({__name:"ListUnorderedIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon list-unordered-icon","data-testid":"kui-icon-wrapper-list-unordered-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-list-unordered-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",b$3$1,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$1$1],8,N$5$1))]),_:1},8,["aria-hidden","style"]))}}),c$1$1=s$1$1(w$4$1,[["__scopeId","data-v-cf8151ae"]]),v$3$1=nA=>(vue.pushScopeId("data-v-5ef2f0a7"),nA=nA(),vue.popScopeId(),nA),k$3$1=["aria-hidden"],w$3$1={key:0,"data-testid":"kui-icon-svg-title"},N$4$1=v$3$1(()=>vue.createElementVNode("path",{d:"M16 15L19 12L17.95 10.925L16.75 12.125V9H15.25V12.125L14.05 10.925L13 12L16 15ZM4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM4 18H20V6H4V18ZM5.5 15H7V10.5H8V13.5H9.5V10.5H10.5V15H12V10C12 9.71667 11.9042 9.47917 11.7125 9.2875C11.5208 9.09583 11.2833 9 11 9H6.5C6.21667 9 5.97917 9.09583 5.7875 9.2875C5.59583 9.47917 5.5 9.71667 5.5 10V15Z",fill:"currentColor"},null,-1)),z$b=vue.defineComponent({__name:"MarkdownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon markdown-icon","data-testid":"kui-icon-wrapper-markdown-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-markdown-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",w$3$1,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),N$4$1],8,k$3$1))]),_:1},8,["aria-hidden","style"]))}}),m$2$1=s$1$1(z$b,[["__scopeId","data-v-5ef2f0a7"]]),v$2$1=nA=>(vue.pushScopeId("data-v-a0fa4ce5"),nA=nA(),vue.popScopeId(),nA),k$2$1=["aria-hidden"],N$3$1={key:0,"data-testid":"kui-icon-svg-title"},b$2$1=v$2$1(()=>vue.createElementVNode("path",{d:"M12.15 20C10.8833 20 9.75833 19.625 8.775 18.875C7.79167 18.125 7.08333 17.1 6.65 15.8L8.85 14.85C9.08333 15.65 9.4875 16.3083 10.0625 16.825C10.6375 17.3417 11.35 17.6 12.2 17.6C12.9 17.6 13.5333 17.4333 14.1 17.1C14.6667 16.7667 14.95 16.2333 14.95 15.5C14.95 15.2 14.8917 14.925 14.775 14.675C14.6583 14.425 14.5 14.2 14.3 14H17.1C17.1833 14.2333 17.2458 14.4708 17.2875 14.7125C17.3292 14.9542 17.35 15.2167 17.35 15.5C17.35 16.9333 16.8375 18.0417 15.8125 18.825C14.7875 19.6083 13.5667 20 12.15 20ZM2 12V10H22V12H2ZM12.05 3.85C13.15 3.85 14.1125 4.12083 14.9375 4.6625C15.7625 5.20417 16.4 6.03333 16.85 7.15L14.65 8.125C14.5 7.64167 14.2208 7.20833 13.8125 6.825C13.4042 6.44167 12.8333 6.25 12.1 6.25C11.4167 6.25 10.85 6.40417 10.4 6.7125C9.95 7.02083 9.7 7.45 9.65 8H7.25C7.28333 6.85 7.7375 5.87083 8.6125 5.0625C9.4875 4.25417 10.6333 3.85 12.05 3.85Z",fill:"currentColor"},null,-1)),w$2$1=vue.defineComponent({__name:"StrikethroughIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon strikethrough-icon","data-testid":"kui-icon-wrapper-strikethrough-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-strikethrough-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$3$1,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),b$2$1],8,k$2$1))]),_:1},8,["aria-hidden","style"]))}}),e$2$1=s$1$1(w$2$1,[["__scopeId","data-v-a0fa4ce5"]]),H$e=nA=>(vue.pushScopeId("data-v-04413c36"),nA=nA(),vue.popScopeId(),nA),v$1$1=["aria-hidden"],V$e={key:0,"data-testid":"kui-icon-svg-title"},N$2$1=H$e(()=>vue.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 9H19V5H5V9ZM10.325 14H13.675V11H10.325V14ZM10.325 19H13.675V16H10.325V19ZM5 14H8.325V11H5V14ZM15.675 14H19V11H15.675V14ZM5 19H8.325V16H5V19ZM15.675 19H19V16H15.675V19Z",fill:"currentColor"},null,-1)),k$1$1=vue.defineComponent({__name:"TableIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon table-icon","data-testid":"kui-icon-wrapper-table-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-table-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",V$e,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),N$2$1],8,v$1$1))]),_:1},8,["aria-hidden","style"]))}}),m$1$1=s$1$1(k$1$1,[["__scopeId","data-v-04413c36"]]),v$d=nA=>(vue.pushScopeId("data-v-43ed05ba"),nA=nA(),vue.popScopeId(),nA),b$1$1=["aria-hidden"],k$9={key:0,"data-testid":"kui-icon-svg-title"},N$1$1=v$d(()=>vue.createElementVNode("path",{d:"M5.52499 16.175L9.07499 12.625C9.27499 12.425 9.50832 12.3292 9.77499 12.3375C10.0417 12.3458 10.275 12.45 10.475 12.65C10.6583 12.85 10.75 13.0833 10.75 13.35C10.75 13.6167 10.6583 13.85 10.475 14.05L6.24999 18.3C6.04999 18.5 5.81665 18.6 5.54999 18.6C5.28332 18.6 5.04999 18.5 4.84999 18.3L2.69999 16.15C2.51665 15.9667 2.42499 15.7333 2.42499 15.45C2.42499 15.1667 2.51665 14.9333 2.69999 14.75C2.88332 14.5667 3.11665 14.475 3.39999 14.475C3.68332 14.475 3.91665 14.5667 4.09999 14.75L5.52499 16.175ZM5.52499 8.175L9.07499 4.625C9.27499 4.425 9.50832 4.32917 9.77499 4.3375C10.0417 4.34583 10.275 4.45 10.475 4.65C10.6583 4.85 10.75 5.08333 10.75 5.35C10.75 5.61667 10.6583 5.85 10.475 6.05L6.24999 10.3C6.04999 10.5 5.81665 10.6 5.54999 10.6C5.28332 10.6 5.04999 10.5 4.84999 10.3L2.69999 8.15C2.51665 7.96667 2.42499 7.73333 2.42499 7.45C2.42499 7.16667 2.51665 6.93333 2.69999 6.75C2.88332 6.56667 3.11665 6.475 3.39999 6.475C3.68332 6.475 3.91665 6.56667 4.09999 6.75L5.52499 8.175ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H21C21.2833 15 21.5208 15.0958 21.7125 15.2875C21.9042 15.4792 22 15.7167 22 16C22 16.2833 21.9042 16.5208 21.7125 16.7125C21.5208 16.9042 21.2833 17 21 17H14ZM14 9C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H21C21.2833 7 21.5208 7.09583 21.7125 7.2875C21.9042 7.47917 22 7.71667 22 8C22 8.28333 21.9042 8.52083 21.7125 8.7125C21.5208 8.90417 21.2833 9 21 9H14Z",fill:"currentColor"},null,-1)),w$1$1=vue.defineComponent({__name:"TasklistIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon tasklist-icon","data-testid":"kui-icon-wrapper-tasklist-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-tasklist-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",k$9,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),N$1$1],8,b$1$1))]),_:1},8,["aria-hidden","style"]))}}),m$b=s$1$1(w$1$1,[["__scopeId","data-v-43ed05ba"]]),b$h=nA=>(vue.pushScopeId("data-v-bdd4dab6"),nA=nA(),vue.popScopeId(),nA),C$b=["aria-hidden"],N$j={key:0,"data-testid":"kui-icon-svg-title"},x$a=b$h(()=>vue.createElementVNode("path",{d:"M4.5 21.25V19.25H18.5V21.25H4.5ZM11.5 17.25C9.81667 17.25 8.50833 16.725 7.575 15.675C6.64167 14.625 6.175 13.2333 6.175 11.5V3.25H8.75V11.65C8.75 12.5833 8.98333 13.3417 9.45 13.925C9.91667 14.5083 10.6 14.8 11.5 14.8C12.4 14.8 13.0833 14.5083 13.55 13.925C14.0167 13.3417 14.25 12.5833 14.25 11.65V3.25H16.825V11.5C16.825 13.2333 16.3583 14.625 15.425 15.675C14.4917 16.725 13.1833 17.25 11.5 17.25Z",fill:"currentColor"},null,-1)),w$b=vue.defineComponent({__name:"UnderlineIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$3$1}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon underline-icon","data-testid":"kui-icon-wrapper-underline-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-underline-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$j,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$a],8,C$b))]),_:1},8,["aria-hidden","style"]))}}),e$1$1=s$1$1(w$b,[["__scopeId","data-v-bdd4dab6"]]);for(var byteToHex=[],i$4$1=0;i$4$1<256;++i$4$1)byteToHex.push((i$4$1+256).toString(16).slice(1));function unsafeStringify(nA,iA=0){return(byteToHex[nA[iA+0]]+byteToHex[nA[iA+1]]+byteToHex[nA[iA+2]]+byteToHex[nA[iA+3]]+"-"+byteToHex[nA[iA+4]]+byteToHex[nA[iA+5]]+"-"+byteToHex[nA[iA+6]]+byteToHex[nA[iA+7]]+"-"+byteToHex[nA[iA+8]]+byteToHex[nA[iA+9]]+"-"+byteToHex[nA[iA+10]]+byteToHex[nA[iA+11]]+byteToHex[nA[iA+12]]+byteToHex[nA[iA+13]]+byteToHex[nA[iA+14]]+byteToHex[nA[iA+15]]).toLowerCase()}var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const native={randomUUID};function v4(nA,iA,AA){if(native.randomUUID&&!iA&&!nA)return native.randomUUID();nA=nA||{};var sA=nA.random||(nA.rng||rng)();return sA[6]=sA[6]&15|64,sA[8]=sA[8]&63|128,unsafeStringify(sA)}const _withScopeId$1$1=nA=>(vue.pushScopeId("data-v-51dfbc77"),nA=nA(),vue.popScopeId(),nA),_hoisted_1$2$1={class:"toolbar-left"},_hoisted_2$1$1={class:"button-group",role:"radiogroup"},_hoisted_3$1$1=["id"],_hoisted_4$1$1=_withScopeId$1$1(()=>vue.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_5$1$1=_withScopeId$1$1(()=>vue.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_6$1$1={key:2,class:"toolbar-right","data-testid":"slot-toolbar-right"},_hoisted_7$1$1={key:3,class:"editor-actions","data-testid":"slot-editor-actions"},_sfc_main$2$1=vue.defineComponent({__name:"MarkdownToolbar",emits:["format-selection","insert-template","change-mode","toggle-html-preview","toggle-fullscreen"],setup(nA,{emit:iA}){vue.useCssVars(NA=>({"4cb247c0":vue.unref(TOOLBAR_HEIGHT)}));const AA=vue.inject(UNIQUE_ID_INJECTION_KEY,vue.ref(v4())),sA=vue.inject(MODE_INJECTION_KEY,vue.ref("read")),lA=vue.inject(EDITABLE_INJECTION_KEY,vue.ref(!1)),pA=vue.inject(THEME_INJECTION_KEY,vue.ref("light")),uA=vue.inject(FULLSCREEN_INJECTION_KEY,vue.ref(!1)),gA=vue.inject(HTML_PREVIEW_INJECTION_KEY,vue.ref(!1)),bA=iA,yA=vue.ref(null),{arrivedState:CA}=useScroll(yA),_A=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),kA=()=>{sA.value==="split"&&!_A.value&&QA("edit")};vue.watch(_A,()=>{kA()});const QA=NA=>{sA.value!==NA&&bA("change-mode",NA)},IA=NA=>{var jA;bA("toggle-fullscreen"),(jA=NA==null?void 0:NA.target)==null||jA.blur()},DA=NA=>{var jA;bA("toggle-html-preview"),(jA=NA==null?void 0:NA.target)==null||jA.blur()},LA=[{label:"Bold",action:"bold",keys:["B"],icon:m$9},{label:"Italic",action:"italic",keys:["I"],icon:m$4$1},{label:"Underline",action:"underline",keys:["U"],icon:e$1$1},{label:"Strikethrough",action:"strikethrough",keys:["Shift","X"],icon:e$2$1},{label:"Code",action:"code",keys:["Shift","C"],icon:m$8$1},{label:"Link",action:"link",icon:p$2$1},{label:"Image",action:"image",icon:p$3$1}],FA=[{label:"Unordered List",action:"unordered-list",icon:c$1$1},{label:"Ordered List",action:"ordered-list",icon:m$3$1},{label:"Tasklist",action:"task",icon:m$b},{label:"Codeblock",action:"codeblock",icon:m$7$1},{label:"Table",action:"table",icon:m$1$1},{label:"Blockquote",action:"blockquote",icon:m$a}];return vue.onMounted(()=>{kA()}),(NA,jA)=>vue.unref(lA)&&vue.unref(sA)!=="read"?(vue.openBlock(),vue.createElementBlock("div",{key:0,ref_key:"toolbar",ref:yA,class:vue.normalizeClass(["markdown-ui-toolbar",`theme-${vue.unref(pA)}`]),"data-testid":"toolbar"},[vue.unref(lA)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["toolbar-overlay left",{"overlay-visible":!vue.unref(CA).left}])},null,2)):vue.createCommentVNode("",!0),vue.unref(lA)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["toolbar-overlay right",{"overlay-visible":!vue.unref(CA).right}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_1$2$1,[vue.createElementVNode("div",_hoisted_2$1$1,[vue.createElementVNode("label",{id:`editor-mode-options-${vue.unref(AA)}`,class:"sr-only"}," Select the editor mode ",8,_hoisted_3$1$1),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(sA)==="edit","aria-labelledby":`editor-mode-options-${vue.unref(AA)}`,class:vue.normalizeClass(["edit",{active:vue.unref(sA)==="edit"}]),"data-testid":"edit-mode-button",disabled:vue.unref(sA)==="edit",icon:!1,role:"radio",type:"button",onClick:jA[0]||(jA[0]=vue.withModifiers(OA=>QA("edit"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Edit ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(sA)==="split","aria-labelledby":`editor-mode-options-${vue.unref(AA)}`,class:vue.normalizeClass(["mode-split-button",["split",{active:vue.unref(sA)==="split"}]]),"data-testid":"split-mode-button",disabled:vue.unref(sA)==="split",icon:!1,role:"radio",type:"button",onClick:jA[1]||(jA[1]=vue.withModifiers(OA=>QA("split"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Split ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(sA)==="preview","aria-labelledby":`editor-mode-options-${vue.unref(AA)}`,class:vue.normalizeClass(["preview",{active:vue.unref(sA)==="preview"}]),"data-testid":"preview-mode-button",disabled:vue.unref(sA)==="preview",icon:!1,role:"radio",type:"button",onClick:jA[2]||(jA[2]=vue.withModifiers(OA=>QA("preview"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Preview ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"])]),vue.unref(lA)&&!["preview","read"].includes(vue.unref(sA))?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(LA,OA=>vue.createVNode(InfoTooltip,{key:OA.label,"data-testid":`tooltip-${OA.action}`,"text-old":OA.label},{tooltip:vue.withCtx(()=>[vue.createVNode(TooltipShortcut,{keys:OA.keys,text:OA.label},null,8,["keys","text"])]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":OA.label,"data-testid":`format-option-${OA.action}`,onClick:vue.withModifiers(GA=>bA("format-selection",OA.action),["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(OA.icon),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid","text-old"])),64)),_hoisted_4$1$1,(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(FA,OA=>vue.createVNode(InfoTooltip,{key:OA.label,"data-testid":`tooltip-${OA.action}`},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(OA.label),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":OA.label,"data-testid":`template-option-${OA.action}`,onClick:vue.withModifiers(GA=>bA("insert-template",OA.action),["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(OA.icon),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid"])),64))],64)):vue.createCommentVNode("",!0),_hoisted_5$1$1,vue.createVNode(InfoTooltip,{"data-testid":"tooltip-fullscreen"},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(uA)?"Exit Fullscreen":"Enter Fullscreen"),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":vue.unref(uA)?"Exit Fullscreen":"Enter Fullscreen","data-testid":"toggle-fullscreen",onClick:vue.withModifiers(IA,["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(uA)?vue.unref(m$6$1):vue.unref(m$5$1)),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1}),["split","preview"].includes(vue.unref(sA))?(vue.openBlock(),vue.createBlock(InfoTooltip,{key:1,"data-testid":"tooltip-fullscreen"},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(gA)?"Toggle markdown Preview":"Toggle HTML Preview"),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":vue.unref(gA)?"Toggle markdown Preview":"Toggle HTML Preview","data-testid":"toggle-html-preview",onClick:vue.withModifiers(DA,["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(gA)?vue.unref(m$2$1):vue.unref(p$4$1)),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1})):vue.createCommentVNode("",!0)]),NA.$slots["toolbar-right"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1$1,[vue.renderSlot(NA.$slots,"toolbar-right",{},void 0,!0)])):vue.createCommentVNode("",!0),NA.$slots["editor-actions"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$1$1,[vue.renderSlot(NA.$slots,"editor-actions",{},void 0,!0)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)}}),MarkdownToolbar=_export_sfc$1(_sfc_main$2$1,[["__scopeId","data-v-51dfbc77"]]),_hoisted_1$1$1=["innerHTML"],_sfc_main$1$1=vue.defineComponent({__name:"MarkdownContent",props:{content:{type:String,default:""}},setup(nA){const iA=vue.inject(MODE_INJECTION_KEY,vue.ref("read")),AA=vue.inject(THEME_INJECTION_KEY,vue.ref("light")),sA=nA,lA=vue.ref(sA.content);return vue.watch(()=>sA.content,pA=>{lA.value=pA},{immediate:!0}),(pA,uA)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["markdown-content",[`mode-${vue.unref(iA)}`,`theme-${vue.unref(AA)}`]]),"data-testid":"markdown-content",innerHTML:lA.value},null,10,_hoisted_1$1$1))}}),MarkdownContent=_export_sfc$1(_sfc_main$1$1,[["__scopeId","data-v-eac4c7eb"]]);function useDebounce(){return{debounce:(nA,iA)=>{let AA;return(...sA)=>{clearTimeout(AA),AA=window==null?void 0:window.setTimeout(()=>{nA(...sA)},iA)}}}}function useMarkdownActions(nA,iA){const AA=vue.reactive({start:0,end:0,text:""}),sA=()=>{if(!nA.value)throw new Error("getTextarea: Could not find the textarea template ref");return nA.value},lA=()=>{try{const _A=sA();if(!_A)return;AA.start=_A.selectionStart||0,AA.end=_A.selectionEnd||0,AA.text=_A.value.substring(_A.selectionStart,_A.selectionEnd)||""}catch(_A){console.warn("getTextSelection",_A),AA.start=0,AA.end=0,AA.text=""}},pA=async()=>{const _A=sA();_A&&(_A.focus(),await vue.nextTick())},uA=async _A=>{try{const kA=sA();let QA="";switch(_A){case"bold":QA=InlineFormatWrapper.bold;break;case"italic":QA=InlineFormatWrapper.italic;break;case"underline":QA=InlineFormatWrapper.underline;break;case"strikethrough":QA=InlineFormatWrapper.strikethrough;break;case"subscript":QA=InlineFormatWrapper.subscript;break;case"superscript":QA=InlineFormatWrapper.superscript;break;case"mark":QA=InlineFormatWrapper.mark;break;case"code":QA=InlineFormatWrapper.code;break}if(!kA||!QA)return;lA();const IA=QA.length,DA=iA.value.substring(0,AA.start),LA=iA.value.substring(AA.end);if(AA.text.length===0)if(DA.endsWith(QA)&&LA.startsWith(QA)){iA.value=DA.substring(0,DA.length-IA)+LA.substring(IA),await pA(),kA.selectionEnd=AA.start-IA;return}else{iA.value=iA.value.substring(0,AA.start)+QA+QA+iA.value.substring(AA.end),await pA(),kA.selectionEnd=AA.start+IA;return}let FA=!1;const NA=AA.text.startsWith(QA)&&AA.text.endsWith(QA),jA=DA.endsWith(QA)&&LA.startsWith(QA);(NA||jA)&&(FA=!0);let OA=AA.text;FA?FA&&NA&&(OA=AA.text.slice(IA,-IA)):OA=QA+AA.text+QA,FA&&jA?iA.value=iA.value.substring(0,AA.start-IA)+OA+iA.value.substring(AA.end+IA):iA.value=iA.value.substring(0,AA.start)+OA+iA.value.substring(AA.end),await pA(),FA?FA&&NA?kA.setSelectionRange(AA.start,AA.end-IA*2):FA&&jA&&kA.setSelectionRange(AA.start-IA,AA.end-IA):kA.setSelectionRange(AA.start,AA.end+IA*2)}catch(kA){console.warn("toggleInlineFormatting",kA)}},gA=async(_A,kA)=>{try{const QA=sA();if(!QA)return;lA();let IA="";Array.from(Array(kA).keys()).forEach(()=>IA+=" ");let DA=0;const LA=iA.value.substring(0,AA.start);if(_A==="remove"&&!LA.endsWith(IA)&&!LA.endsWith(" "+MARKDOWN_TEMPLATE_UL)&&!/ {2}\d{1,}\. $/.test(LA))return;if(AA.text.length!==0)DA=(AA.text.match(/\n(?!\n)/g)||[]).length,_A==="add"?iA.value=LA+IA+AA.text.replace(/\n(?!\n)/g,`${NEW_LINE_CHARACTER}${IA}`)+iA.value.substring(AA.end):iA.value=iA.value.substring(0,AA.start-IA.length)+AA.text.replaceAll(`${NEW_LINE_CHARACTER}${IA}`,NEW_LINE_CHARACTER)+iA.value.substring(AA.end);else if(LA.endsWith(MARKDOWN_TEMPLATE_UL))iA.value=_A==="add"?iA.value.substring(0,AA.start-MARKDOWN_TEMPLATE_UL.length)+IA+MARKDOWN_TEMPLATE_UL+iA.value.substring(AA.end):iA.value.substring(0,AA.start-IA.length-MARKDOWN_TEMPLATE_UL.length)+MARKDOWN_TEMPLATE_UL+iA.value.substring(AA.end);else if(/\d{1,}\. $/.test(LA.split(NEW_LINE_CHARACTER).pop()||"")){const FA=MARKDOWN_TEMPLATE_OL.replace("1",""),NA=Number((LA.split(NEW_LINE_CHARACTER).at(-2)||LA.split(NEW_LINE_CHARACTER).pop()||"").trimStart().split(FA)[0])+1;iA.value=_A==="add"?iA.value.substring(0,AA.start-MARKDOWN_TEMPLATE_OL.length)+IA+MARKDOWN_TEMPLATE_OL+iA.value.substring(AA.end):iA.value.substring(0,AA.start-IA.length-(NA+FA).length)+(NA+FA)+iA.value.substring(AA.end)}else iA.value=_A==="add"?LA+IA+iA.value.substring(AA.end):iA.value.substring(0,AA.start-IA.length)+iA.value.substring(AA.end);if(await pA(),AA.text.length!==0){const FA=kA+DA*kA;QA.selectionStart=_A==="add"?AA.start+IA.length:AA.start-IA.length,QA.selectionEnd=_A==="add"?AA.end+FA:AA.end-FA}else QA.selectionEnd=_A==="add"?AA.start+IA.length:AA.start-IA.length}catch(QA){console.warn("toggleTab",QA)}},bA=(_A,kA)=>{var QA,IA;return kA===MARKDOWN_TEMPLATE_OL?/^\d{1,}\. /.test(String(((QA=_A==null?void 0:_A.split(NEW_LINE_CHARACTER))==null?void 0:QA.pop())||"")):String(((IA=_A==null?void 0:_A.split(NEW_LINE_CHARACTER))==null?void 0:IA.pop())||"").endsWith(kA)},yA=async _A=>{try{const kA=sA();if(!kA||!_A||(lA(),AA.text.length!==0))return;const QA=iA.value.substring(0,AA.start),IA=QA.length===0||QA.endsWith(`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`)?"":/(.*)?[^\n]$/.test(QA)?`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`:NEW_LINE_CHARACTER;let DA="";switch(_A){case"task":if(bA(QA,MARKDOWN_TEMPLATE_TASK)){await pA();return}DA=IA+MARKDOWN_TEMPLATE_TASK;break;case"unordered-list":if(bA(QA,MARKDOWN_TEMPLATE_UL)){await pA();return}DA=IA+MARKDOWN_TEMPLATE_UL;break;case"ordered-list":if(bA(QA,MARKDOWN_TEMPLATE_OL)){await pA();return}DA=IA+MARKDOWN_TEMPLATE_OL;break;case"blockquote":if(bA(QA,MARKDOWN_TEMPLATE_BLOCKQUOTE)){await pA();return}DA=IA+MARKDOWN_TEMPLATE_BLOCKQUOTE;break;case"codeblock":DA=IA+MARKDOWN_TEMPLATE_CODEBLOCK;break;case"table":DA=IA+MARKDOWN_TEMPLATE_TABLE;break}if(!DA)return;switch(iA.value=QA+DA+iA.value.substring(AA.end),await pA(),_A){case"codeblock":kA.selectionStart=AA.start+(IA.length+3),kA.selectionEnd=AA.start+(IA.length+3)+DEFAULT_CODEBLOCK_LANGUAGE.length;break;default:kA.selectionEnd=AA.start+DA.length;break}}catch(kA){console.warn("insertMarkdownTemplate",kA)}},CA=(_A,kA)=>{sA().setSelectionRange(_A,kA)};return{selectedText:AA,getTextSelection:lA,toggleInlineFormatting:uA,toggleTab:gA,insertMarkdownTemplate:yA,insertLink:async()=>{try{const _A=sA();if(!_A)return;lA();const kA=iA.value.substring(0,AA.start),QA=iA.value.substring(AA.end);let IA="";const DA=3,LA=4;if(AA.text.length!==0){if(AA.text==="url"&&kA.endsWith("(")&&QA.startsWith(")")){await pA();return}const FA=/^http(s)?:\/\//.test(AA.text);IA=FA?MARKDOWN_TEMPLATE_LINK.replace(/url/,AA.text):MARKDOWN_TEMPLATE_LINK.replace(/text/,AA.text),iA.value=kA+IA+QA,await pA(),FA?_A.selectionEnd=AA.start+1:(_A.selectionStart=kA.length+AA.text.length+3,_A.selectionEnd=kA.length+AA.text.length+6),CA(_A.selectionStart,_A.selectionStart+(FA?LA:DA))}else{if(kA.endsWith(MARKDOWN_TEMPLATE_LINK.split("text")[0])&&/^\]\((.*)+\)/.test(QA)){await pA();return}IA=MARKDOWN_TEMPLATE_LINK;let FA=7;/\w+$/.test(kA)?(IA=" "+IA,FA++):/^\w+/.test(QA)&&(IA+=" "),iA.value=kA+IA+QA,await pA(),_A.selectionEnd=AA.start+FA,CA(_A.selectionEnd,_A.selectionEnd+DA)}}catch(_A){console.warn("insertLink",_A)}},insertNewLine:async()=>{var _A;try{const kA=sA();if(!kA)return;lA();const QA=iA.value.substring(0,AA.start),IA=((_A=QA==null?void 0:QA.split(NEW_LINE_CHARACTER))==null?void 0:_A.pop())||"";let DA=NEW_LINE_CHARACTER,LA=!1,FA=0;const NA=[MARKDOWN_TEMPLATE_TASK,MARKDOWN_TEMPLATE_UL,MARKDOWN_TEMPLATE_OL,MARKDOWN_TEMPLATE_BLOCKQUOTE];for(const OA of NA)if(OA===MARKDOWN_TEMPLATE_OL){if(/^\d{1,}\. /.test(IA.trimStart())){const GA=MARKDOWN_TEMPLATE_OL.replace("1",""),zA=Number(IA.trimStart().split(GA)[0]);if(!isNaN(zA)&&zA>0){const UA=zA+1;FA=String(UA+GA).length,/^\d{1,}\. $/.test(IA.trimStart())?LA=!0:DA+=IA.split(zA+GA)[0]+UA+GA}break}}else{const GA=OA===MARKDOWN_TEMPLATE_TASK&&IA.trimStart().toLowerCase().startsWith(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase());if(IA.trimStart().startsWith(OA)||GA){FA=OA.length,IA.trimStart()===OA?LA=!0:GA?DA+=IA.toLowerCase().split(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase())[0]+OA:DA+=IA.split(OA)[0]+OA;break}}let jA="";DA===NEW_LINE_CHARACTER&&Array.from(Array(IA.length-IA.trimStart().length).keys()).forEach(()=>jA+=" "),iA.value=LA?iA.value.substring(0,AA.start-IA.length)+iA.value.substring(AA.end):QA+DA+jA+iA.value.substring(AA.end),await pA(),kA.selectionEnd=LA?AA.start-FA:AA.start+DA.length+jA.length}catch(kA){console.warn("insertNewLine",kA)}},insertImage:async()=>{try{const _A=sA();if(!_A)return;lA();const kA=iA.value.substring(0,AA.start),QA=iA.value.substring(AA.end);let IA="";const DA=3,LA=3;if(AA.text.length!==0){if(AA.text==="url"&&kA.endsWith("(")&&QA.startsWith(")")){await pA();return}const FA=/^http(s)?:\/\//.test(AA.text);IA=FA?MARKDOWN_TEMPLATE_IMAGE.replace(/url/,AA.text):MARKDOWN_TEMPLATE_IMAGE.replace(/alt/,AA.text),iA.value=kA+IA+QA,await pA(),FA?_A.selectionEnd=AA.start+2:(_A.selectionStart=kA.length+AA.text.length+4,_A.selectionEnd=kA.length+AA.text.length+7),CA(_A.selectionStart,_A.selectionStart+LA)}else{if(kA.endsWith(MARKDOWN_TEMPLATE_IMAGE.split("alt")[0])&&/^\]\((.*)+\)/.test(QA)){await pA();return}IA=MARKDOWN_TEMPLATE_IMAGE;let FA=7;/\w+$/.test(kA)?(IA=" "+IA,FA++):/^\w+/.test(QA)&&(IA+=" "),iA.value=kA+IA+QA,await pA(),_A.selectionEnd=AA.start+FA,CA(_A.selectionEnd,_A.selectionEnd+DA)}}catch(_A){console.warn("insertImage",_A)}}}}function useKeyboardShortcuts(nA,iA,AA,sA){const lA=useActiveElement(),pA=vue.computed(()=>{var kA,QA,IA;return!!((kA=lA.value)!=null&&kA.id)&&((QA=lA.value)==null?void 0:QA.id)===((IA=nA.value)==null?void 0:IA.id)}),{toggleInlineFormatting:uA,insertNewLine:gA,getTextSelection:bA,selectedText:yA,toggleTab:CA}=useMarkdownActions(nA,iA),_A=kA=>{let QA;switch(kA.key){case"b":QA="bold";break;case"i":QA="italic";break;case"u":QA="underline";break;case"x":kA.shiftKey&&(QA="strikethrough");break;case"c":kA.shiftKey&&(QA="code");break}return QA};useMagicKeys({passive:!1,onEventFired(kA){if(!(!pA.value||kA.type!=="keydown")){if(kA.key&&(kA.ctrlKey||kA.metaKey)){const QA=_A(kA);QA&&(kA.preventDefault(),uA(QA),sA())}kA.key&&kA.key==="Enter"&&!kA.shiftKey&&(kA.preventDefault(),gA(),sA()),kA.key&&kA.key==="Tab"&&(bA(),yA.text&&(kA.preventDefault(),kA.shiftKey?CA("remove",AA.value):CA("add",AA.value),sA()))}}})}function setupMarkdownIt(nA,iA,AA){const{parseMetaString:sA,trimEndingNewline:lA=!0,defaultLanguage:pA="text",fallbackLanguage:uA}=AA,gA=iA.getLoadedLanguages();nA.options.highlight=(bA,yA="text",CA)=>{yA===""&&(yA=pA),uA&&!gA.includes(yA)&&(yA=uA);const _A=(sA==null?void 0:sA(CA,bA,yA))||{},kA={...AA,lang:yA,meta:{...AA.meta,..._A,__raw:CA}},QA=[];return QA.push({name:"@shikijs/markdown-it:block-class",code(IA){IA.properties.class=`language-${yA}`}}),lA&&bA.endsWith(`
7
7
  `)&&(bA=bA.slice(0,-1)),iA.codeToHtml(bA,{...kA,transformers:[...QA,...kA.transformers||[]]})}}function fromHighlighter(nA,iA){return function(AA){setupMarkdownIt(AA,nA,iA)}}var FontStyle;(function(nA){nA[nA.NotSet=-1]="NotSet",nA[nA.None=0]="None",nA[nA.Italic=1]="Italic",nA[nA.Bold=2]="Bold",nA[nA.Underline=4]="Underline"})(FontStyle||(FontStyle={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var EncodedTokenAttributes;(function(nA){function iA(CA){return CA.toString(2).padStart(32,"0")}nA.toBinaryStr=iA;function AA(CA){const _A=nA.getLanguageId(CA),kA=nA.getTokenType(CA),QA=nA.getFontStyle(CA),IA=nA.getForeground(CA),DA=nA.getBackground(CA);console.log({languageId:_A,tokenType:kA,fontStyle:QA,foreground:IA,background:DA})}nA.print=AA;function sA(CA){return(CA&255)>>>0}nA.getLanguageId=sA;function lA(CA){return(CA&768)>>>8}nA.getTokenType=lA;function pA(CA){return(CA&1024)!==0}nA.containsBalancedBrackets=pA;function uA(CA){return(CA&30720)>>>11}nA.getFontStyle=uA;function gA(CA){return(CA&16744448)>>>15}nA.getForeground=gA;function bA(CA){return(CA&4278190080)>>>24}nA.getBackground=bA;function yA(CA,_A,kA,QA,IA,DA,LA){let FA=nA.getLanguageId(CA),NA=nA.getTokenType(CA),jA=nA.containsBalancedBrackets(CA)?1:0,OA=nA.getFontStyle(CA),GA=nA.getForeground(CA),zA=nA.getBackground(CA);return _A!==0&&(FA=_A),kA!==8&&(NA=kA),QA!==null&&(jA=QA?1:0),IA!==-1&&(OA=IA),DA!==0&&(GA=DA),LA!==0&&(zA=LA),(FA<<0|NA<<8|jA<<10|OA<<11|GA<<15|zA<<24)>>>0}nA.set=yA})(EncodedTokenAttributes||(EncodedTokenAttributes={}));function createMatchers(nA,iA){const AA=[],sA=newTokenizer(nA);let lA=sA.next();for(;lA!==null;){let bA=0;if(lA.length===2&&lA.charAt(1)===":"){switch(lA.charAt(0)){case"R":bA=1;break;case"L":bA=-1;break;default:console.log(`Unknown priority ${lA} in scope selector`)}lA=sA.next()}let yA=uA();if(AA.push({matcher:yA,priority:bA}),lA!==",")break;lA=sA.next()}return AA;function pA(){if(lA==="-"){lA=sA.next();const bA=pA();return yA=>!!bA&&!bA(yA)}if(lA==="("){lA=sA.next();const bA=gA();return lA===")"&&(lA=sA.next()),bA}if(isIdentifier(lA)){const bA=[];do bA.push(lA),lA=sA.next();while(isIdentifier(lA));return yA=>iA(bA,yA)}return null}function uA(){const bA=[];let yA=pA();for(;yA;)bA.push(yA),yA=pA();return CA=>bA.every(_A=>_A(CA))}function gA(){const bA=[];let yA=uA();for(;yA&&(bA.push(yA),lA==="|"||lA===",");){do lA=sA.next();while(lA==="|"||lA===",");yA=uA()}return CA=>bA.some(_A=>_A(CA))}}function isIdentifier(nA){return!!nA&&!!nA.match(/[\w\.:]+/)}function newTokenizer(nA){let iA=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,AA=iA.exec(nA);return{next:()=>{if(!AA)return null;const sA=AA[0];return AA=iA.exec(nA),sA}}}function disposeOnigString(nA){typeof nA.dispose=="function"&&nA.dispose()}function clone$1(nA){return doClone(nA)}function doClone(nA){return Array.isArray(nA)?cloneArray(nA):typeof nA=="object"?cloneObj(nA):nA}function cloneArray(nA){let iA=[];for(let AA=0,sA=nA.length;AA<sA;AA++)iA[AA]=doClone(nA[AA]);return iA}function cloneObj(nA){let iA={};for(let AA in nA)iA[AA]=doClone(nA[AA]);return iA}function mergeObjects(nA,...iA){return iA.forEach(AA=>{for(let sA in AA)nA[sA]=AA[sA]}),nA}function basename(nA){const iA=~nA.lastIndexOf("/")||~nA.lastIndexOf("\\");return iA===0?nA:~iA===nA.length-1?basename(nA.substring(0,nA.length-1)):nA.substr(~iA+1)}let CAPTURING_REGEX_SOURCE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class RegexSource{static hasCaptures(iA){return iA===null?!1:(CAPTURING_REGEX_SOURCE.lastIndex=0,CAPTURING_REGEX_SOURCE.test(iA))}static replaceCaptures(iA,AA,sA){return iA.replace(CAPTURING_REGEX_SOURCE,(lA,pA,uA,gA)=>{let bA=sA[parseInt(pA||uA,10)];if(bA){let yA=AA.substring(bA.start,bA.end);for(;yA[0]===".";)yA=yA.substring(1);switch(gA){case"downcase":return yA.toLowerCase();case"upcase":return yA.toUpperCase();default:return yA}}else return lA})}}function strcmp(nA,iA){return nA<iA?-1:nA>iA?1:0}function strArrCmp(nA,iA){if(nA===null&&iA===null)return 0;if(!nA)return-1;if(!iA)return 1;let AA=nA.length,sA=iA.length;if(AA===sA){for(let lA=0;lA<AA;lA++){let pA=strcmp(nA[lA],iA[lA]);if(pA!==0)return pA}return 0}return AA-sA}function isValidHexColor(nA){return!!(/^#[0-9a-f]{6}$/i.test(nA)||/^#[0-9a-f]{8}$/i.test(nA)||/^#[0-9a-f]{3}$/i.test(nA)||/^#[0-9a-f]{4}$/i.test(nA))}function escapeRegExpCharacters(nA){return nA.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class CachedFn{constructor(iA){tA(this,"fn"),tA(this,"cache",new Map),this.fn=iA}get(iA){if(this.cache.has(iA))return this.cache.get(iA);const AA=this.fn(iA);return this.cache.set(iA,AA),AA}}class TopLevelRuleReference{constructor(iA){tA(this,"scopeName"),this.scopeName=iA}toKey(){return this.scopeName}}class TopLevelRepositoryRuleReference{constructor(iA,AA){tA(this,"scopeName"),tA(this,"ruleName"),this.scopeName=iA,this.ruleName=AA}toKey(){return`${this.scopeName}#${this.ruleName}`}}class ExternalReferenceCollector{constructor(){tA(this,"_references",[]),tA(this,"_seenReferenceKeys",new Set),tA(this,"visitedRule",new Set)}get references(){return this._references}add(iA){const AA=iA.toKey();this._seenReferenceKeys.has(AA)||(this._seenReferenceKeys.add(AA),this._references.push(iA))}}class ScopeDependencyProcessor{constructor(iA,AA){tA(this,"repo"),tA(this,"initialScopeName"),tA(this,"seenFullScopeRequests",new Set),tA(this,"seenPartialScopeRequests",new Set),tA(this,"Q"),this.repo=iA,this.initialScopeName=AA,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new TopLevelRuleReference(this.initialScopeName)]}processQueue(){const iA=this.Q;this.Q=[];const AA=new ExternalReferenceCollector;for(const sA of iA)collectReferencesOfReference(sA,this.initialScopeName,this.repo,AA);for(const sA of AA.references)if(sA instanceof TopLevelRuleReference){if(this.seenFullScopeRequests.has(sA.scopeName))continue;this.seenFullScopeRequests.add(sA.scopeName),this.Q.push(sA)}else{if(this.seenFullScopeRequests.has(sA.scopeName)||this.seenPartialScopeRequests.has(sA.toKey()))continue;this.seenPartialScopeRequests.add(sA.toKey()),this.Q.push(sA)}}}function collectReferencesOfReference(nA,iA,AA,sA){const lA=AA.lookup(nA.scopeName);if(!lA){if(nA.scopeName===iA)throw new Error(`No grammar provided for <${iA}>`);return}const pA=AA.lookup(iA);nA instanceof TopLevelRuleReference?collectExternalReferencesInTopLevelRule({baseGrammar:pA,selfGrammar:lA},sA):collectExternalReferencesInTopLevelRepositoryRule(nA.ruleName,{baseGrammar:pA,selfGrammar:lA,repository:lA.repository},sA);const uA=AA.injections(nA.scopeName);if(uA)for(const gA of uA)sA.add(new TopLevelRuleReference(gA))}function collectExternalReferencesInTopLevelRepositoryRule(nA,iA,AA){if(iA.repository&&iA.repository[nA]){const sA=iA.repository[nA];collectExternalReferencesInRules([sA],iA,AA)}}function collectExternalReferencesInTopLevelRule(nA,iA){nA.selfGrammar.patterns&&Array.isArray(nA.selfGrammar.patterns)&&collectExternalReferencesInRules(nA.selfGrammar.patterns,{...nA,repository:nA.selfGrammar.repository},iA),nA.selfGrammar.injections&&collectExternalReferencesInRules(Object.values(nA.selfGrammar.injections),{...nA,repository:nA.selfGrammar.repository},iA)}function collectExternalReferencesInRules(nA,iA,AA){for(const sA of nA){if(AA.visitedRule.has(sA))continue;AA.visitedRule.add(sA);const lA=sA.repository?mergeObjects({},iA.repository,sA.repository):iA.repository;Array.isArray(sA.patterns)&&collectExternalReferencesInRules(sA.patterns,{...iA,repository:lA},AA);const pA=sA.include;if(!pA)continue;const uA=parseInclude(pA);switch(uA.kind){case 0:collectExternalReferencesInTopLevelRule({...iA,selfGrammar:iA.baseGrammar},AA);break;case 1:collectExternalReferencesInTopLevelRule(iA,AA);break;case 2:collectExternalReferencesInTopLevelRepositoryRule(uA.ruleName,{...iA,repository:lA},AA);break;case 3:case 4:const gA=uA.scopeName===iA.selfGrammar.scopeName?iA.selfGrammar:uA.scopeName===iA.baseGrammar.scopeName?iA.baseGrammar:void 0;if(gA){const bA={baseGrammar:iA.baseGrammar,selfGrammar:gA,repository:lA};uA.kind===4?collectExternalReferencesInTopLevelRepositoryRule(uA.ruleName,bA,AA):collectExternalReferencesInTopLevelRule(bA,AA)}else uA.kind===4?AA.add(new TopLevelRepositoryRuleReference(uA.scopeName,uA.ruleName)):AA.add(new TopLevelRuleReference(uA.scopeName));break}}}class BaseReference{constructor(){tA(this,"kind",0)}}class SelfReference{constructor(){tA(this,"kind",1)}}class RelativeReference{constructor(iA){tA(this,"ruleName"),tA(this,"kind",2),this.ruleName=iA}}class TopLevelReference{constructor(iA){tA(this,"scopeName"),tA(this,"kind",3),this.scopeName=iA}}class TopLevelRepositoryReference{constructor(iA,AA){tA(this,"scopeName"),tA(this,"ruleName"),tA(this,"kind",4),this.scopeName=iA,this.ruleName=AA}}function parseInclude(nA){if(nA==="$base")return new BaseReference;if(nA==="$self")return new SelfReference;const iA=nA.indexOf("#");if(iA===-1)return new TopLevelReference(nA);if(iA===0)return new RelativeReference(nA.substring(1));{const AA=nA.substring(0,iA),sA=nA.substring(iA+1);return new TopLevelRepositoryReference(AA,sA)}}const HAS_BACK_REFERENCES=/\\(\d+)/,BACK_REFERENCING_END=/\\(\d+)/g,endRuleId=-1,whileRuleId=-2;class Rule{constructor(iA,AA,sA,lA){tA(this,"$location"),tA(this,"id"),tA(this,"_nameIsCapturing"),tA(this,"_name"),tA(this,"_contentNameIsCapturing"),tA(this,"_contentName"),this.$location=iA,this.id=AA,this._name=sA||null,this._nameIsCapturing=RegexSource.hasCaptures(this._name),this._contentName=lA||null,this._contentNameIsCapturing=RegexSource.hasCaptures(this._contentName)}get debugName(){const iA=this.$location?`${basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${iA}`}getName(iA,AA){return!this._nameIsCapturing||this._name===null||iA===null||AA===null?this._name:RegexSource.replaceCaptures(this._name,iA,AA)}getContentName(iA,AA){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:RegexSource.replaceCaptures(this._contentName,iA,AA)}}class CaptureRule extends Rule{constructor(iA,AA,sA,lA,pA){super(iA,AA,sA,lA),tA(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=pA}dispose(){}collectPatterns(iA,AA){throw new Error("Not supported!")}compile(iA,AA){throw new Error("Not supported!")}compileAG(iA,AA,sA,lA){throw new Error("Not supported!")}}class MatchRule extends Rule{constructor(iA,AA,sA,lA,pA){super(iA,AA,sA,null),tA(this,"_match"),tA(this,"captures"),tA(this,"_cachedCompiledPatterns"),this._match=new RegExpSource(lA,this.id),this.captures=pA,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(iA,AA){AA.push(this._match)}compile(iA,AA){return this._getCachedCompiledPatterns(iA).compile(iA)}compileAG(iA,AA,sA,lA){return this._getCachedCompiledPatterns(iA).compileAG(iA,sA,lA)}_getCachedCompiledPatterns(iA){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(iA,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class IncludeOnlyRule extends Rule{constructor(iA,AA,sA,lA,pA){super(iA,AA,sA,lA),tA(this,"hasMissingPatterns"),tA(this,"patterns"),tA(this,"_cachedCompiledPatterns"),this.patterns=pA.patterns,this.hasMissingPatterns=pA.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(iA,AA){for(const sA of this.patterns)iA.getRule(sA).collectPatterns(iA,AA)}compile(iA,AA){return this._getCachedCompiledPatterns(iA).compile(iA)}compileAG(iA,AA,sA,lA){return this._getCachedCompiledPatterns(iA).compileAG(iA,sA,lA)}_getCachedCompiledPatterns(iA){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(iA,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class BeginEndRule extends Rule{constructor(iA,AA,sA,lA,pA,uA,gA,bA,yA,CA){super(iA,AA,sA,lA),tA(this,"_begin"),tA(this,"beginCaptures"),tA(this,"_end"),tA(this,"endHasBackReferences"),tA(this,"endCaptures"),tA(this,"applyEndPatternLast"),tA(this,"hasMissingPatterns"),tA(this,"patterns"),tA(this,"_cachedCompiledPatterns"),this._begin=new RegExpSource(pA,this.id),this.beginCaptures=uA,this._end=new RegExpSource(gA||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=bA,this.applyEndPatternLast=yA||!1,this.patterns=CA.patterns,this.hasMissingPatterns=CA.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(iA,AA){return this._end.resolveBackReferences(iA,AA)}collectPatterns(iA,AA){AA.push(this._begin)}compile(iA,AA){return this._getCachedCompiledPatterns(iA,AA).compile(iA)}compileAG(iA,AA,sA,lA){return this._getCachedCompiledPatterns(iA,AA).compileAG(iA,sA,lA)}_getCachedCompiledPatterns(iA,AA){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const sA of this.patterns)iA.getRule(sA).collectPatterns(iA,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,AA):this._cachedCompiledPatterns.setSource(0,AA)),this._cachedCompiledPatterns}}class BeginWhileRule extends Rule{constructor(iA,AA,sA,lA,pA,uA,gA,bA,yA){super(iA,AA,sA,lA),tA(this,"_begin"),tA(this,"beginCaptures"),tA(this,"whileCaptures"),tA(this,"_while"),tA(this,"whileHasBackReferences"),tA(this,"hasMissingPatterns"),tA(this,"patterns"),tA(this,"_cachedCompiledPatterns"),tA(this,"_cachedCompiledWhilePatterns"),this._begin=new RegExpSource(pA,this.id),this.beginCaptures=uA,this.whileCaptures=bA,this._while=new RegExpSource(gA,whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=yA.patterns,this.hasMissingPatterns=yA.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(iA,AA){return this._while.resolveBackReferences(iA,AA)}collectPatterns(iA,AA){AA.push(this._begin)}compile(iA,AA){return this._getCachedCompiledPatterns(iA).compile(iA)}compileAG(iA,AA,sA,lA){return this._getCachedCompiledPatterns(iA).compileAG(iA,sA,lA)}_getCachedCompiledPatterns(iA){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const AA of this.patterns)iA.getRule(AA).collectPatterns(iA,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(iA,AA){return this._getCachedCompiledWhilePatterns(iA,AA).compile(iA)}compileWhileAG(iA,AA,sA,lA){return this._getCachedCompiledWhilePatterns(iA,AA).compileAG(iA,sA,lA)}_getCachedCompiledWhilePatterns(iA,AA){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new RegExpSourceList,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,AA||"￿"),this._cachedCompiledWhilePatterns}}class RuleFactory{static createCaptureRule(iA,AA,sA,lA,pA){return iA.registerRule(uA=>new CaptureRule(AA,uA,sA,lA,pA))}static getCompiledRuleId(iA,AA,sA){return iA.id||AA.registerRule(lA=>{if(iA.id=lA,iA.match)return new MatchRule(iA.$vscodeTextmateLocation,iA.id,iA.name,iA.match,RuleFactory._compileCaptures(iA.captures,AA,sA));if(typeof iA.begin>"u"){iA.repository&&(sA=mergeObjects({},sA,iA.repository));let pA=iA.patterns;return typeof pA>"u"&&iA.include&&(pA=[{include:iA.include}]),new IncludeOnlyRule(iA.$vscodeTextmateLocation,iA.id,iA.name,iA.contentName,RuleFactory._compilePatterns(pA,AA,sA))}return iA.while?new BeginWhileRule(iA.$vscodeTextmateLocation,iA.id,iA.name,iA.contentName,iA.begin,RuleFactory._compileCaptures(iA.beginCaptures||iA.captures,AA,sA),iA.while,RuleFactory._compileCaptures(iA.whileCaptures||iA.captures,AA,sA),RuleFactory._compilePatterns(iA.patterns,AA,sA)):new BeginEndRule(iA.$vscodeTextmateLocation,iA.id,iA.name,iA.contentName,iA.begin,RuleFactory._compileCaptures(iA.beginCaptures||iA.captures,AA,sA),iA.end,RuleFactory._compileCaptures(iA.endCaptures||iA.captures,AA,sA),iA.applyEndPatternLast,RuleFactory._compilePatterns(iA.patterns,AA,sA))}),iA.id}static _compileCaptures(iA,AA,sA){let lA=[];if(iA){let pA=0;for(const uA in iA){if(uA==="$vscodeTextmateLocation")continue;const gA=parseInt(uA,10);gA>pA&&(pA=gA)}for(let uA=0;uA<=pA;uA++)lA[uA]=null;for(const uA in iA){if(uA==="$vscodeTextmateLocation")continue;const gA=parseInt(uA,10);let bA=0;iA[uA].patterns&&(bA=RuleFactory.getCompiledRuleId(iA[uA],AA,sA)),lA[gA]=RuleFactory.createCaptureRule(AA,iA[uA].$vscodeTextmateLocation,iA[uA].name,iA[uA].contentName,bA)}}return lA}static _compilePatterns(iA,AA,sA){let lA=[];if(iA)for(let pA=0,uA=iA.length;pA<uA;pA++){const gA=iA[pA];let bA=-1;if(gA.include){const yA=parseInclude(gA.include);switch(yA.kind){case 0:case 1:bA=RuleFactory.getCompiledRuleId(sA[gA.include],AA,sA);break;case 2:let CA=sA[yA.ruleName];CA&&(bA=RuleFactory.getCompiledRuleId(CA,AA,sA));break;case 3:case 4:const _A=yA.scopeName,kA=yA.kind===4?yA.ruleName:null,QA=AA.getExternalGrammar(_A,sA);if(QA)if(kA){let IA=QA.repository[kA];IA&&(bA=RuleFactory.getCompiledRuleId(IA,AA,QA.repository))}else bA=RuleFactory.getCompiledRuleId(QA.repository.$self,AA,QA.repository);break}}else bA=RuleFactory.getCompiledRuleId(gA,AA,sA);if(bA!==-1){const yA=AA.getRule(bA);let CA=!1;if((yA instanceof IncludeOnlyRule||yA instanceof BeginEndRule||yA instanceof BeginWhileRule)&&yA.hasMissingPatterns&&yA.patterns.length===0&&(CA=!0),CA)continue;lA.push(bA)}}return{patterns:lA,hasMissingPatterns:(iA?iA.length:0)!==lA.length}}}class RegExpSource{constructor(iA,AA){if(tA(this,"source"),tA(this,"ruleId"),tA(this,"hasAnchor"),tA(this,"hasBackReferences"),tA(this,"_anchorCache"),iA){const sA=iA.length;let lA=0,pA=[],uA=!1;for(let gA=0;gA<sA;gA++)if(iA.charAt(gA)==="\\"&&gA+1<sA){const bA=iA.charAt(gA+1);bA==="z"?(pA.push(iA.substring(lA,gA)),pA.push("$(?!\\n)(?<!\\n)"),lA=gA+2):(bA==="A"||bA==="G")&&(uA=!0),gA++}this.hasAnchor=uA,lA===0?this.source=iA:(pA.push(iA.substring(lA,sA)),this.source=pA.join(""))}else this.hasAnchor=!1,this.source=iA;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=AA,this.hasBackReferences=HAS_BACK_REFERENCES.test(this.source)}clone(){return new RegExpSource(this.source,this.ruleId)}setSource(iA){this.source!==iA&&(this.source=iA,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(iA,AA){let sA=AA.map(lA=>iA.substring(lA.start,lA.end));return BACK_REFERENCING_END.lastIndex=0,this.source.replace(BACK_REFERENCING_END,(lA,pA)=>escapeRegExpCharacters(sA[parseInt(pA,10)]||""))}_buildAnchorCache(){let iA=[],AA=[],sA=[],lA=[],pA,uA,gA,bA;for(pA=0,uA=this.source.length;pA<uA;pA++)gA=this.source.charAt(pA),iA[pA]=gA,AA[pA]=gA,sA[pA]=gA,lA[pA]=gA,gA==="\\"&&pA+1<uA&&(bA=this.source.charAt(pA+1),bA==="A"?(iA[pA+1]="￿",AA[pA+1]="￿",sA[pA+1]="A",lA[pA+1]="A"):bA==="G"?(iA[pA+1]="￿",AA[pA+1]="G",sA[pA+1]="￿",lA[pA+1]="G"):(iA[pA+1]=bA,AA[pA+1]=bA,sA[pA+1]=bA,lA[pA+1]=bA),pA++);return{A0_G0:iA.join(""),A0_G1:AA.join(""),A1_G0:sA.join(""),A1_G1:lA.join("")}}resolveAnchors(iA,AA){return!this.hasAnchor||!this._anchorCache?this.source:iA?AA?this._anchorCache.A1_G1:this._anchorCache.A1_G0:AA?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class RegExpSourceList{constructor(){tA(this,"_items"),tA(this,"_hasAnchors"),tA(this,"_cached"),tA(this,"_anchorCache"),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(iA){this._items.push(iA),this._hasAnchors=this._hasAnchors||iA.hasAnchor}unshift(iA){this._items.unshift(iA),this._hasAnchors=this._hasAnchors||iA.hasAnchor}length(){return this._items.length}setSource(iA,AA){this._items[iA].source!==AA&&(this._disposeCaches(),this._items[iA].setSource(AA))}compile(iA){if(!this._cached){let AA=this._items.map(sA=>sA.source);this._cached=new CompiledRule(iA,AA,this._items.map(sA=>sA.ruleId))}return this._cached}compileAG(iA,AA,sA){return this._hasAnchors?AA?sA?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(iA,AA,sA)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(iA,AA,sA)),this._anchorCache.A1_G0):sA?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(iA,AA,sA)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(iA,AA,sA)),this._anchorCache.A0_G0):this.compile(iA)}_resolveAnchors(iA,AA,sA){let lA=this._items.map(pA=>pA.resolveAnchors(AA,sA));return new CompiledRule(iA,lA,this._items.map(pA=>pA.ruleId))}}class CompiledRule{constructor(iA,AA,sA){tA(this,"regExps"),tA(this,"rules"),tA(this,"scanner"),this.regExps=AA,this.rules=sA,this.scanner=iA.createOnigScanner(AA)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const iA=[];for(let AA=0,sA=this.rules.length;AA<sA;AA++)iA.push(" - "+this.rules[AA]+": "+this.regExps[AA]);return iA.join(`
8
8
  `)}findNextMatchSync(iA,AA,sA){const lA=this.scanner.findNextMatchSync(iA,AA,sA);return lA?{ruleId:this.rules[lA.index],captureIndices:lA.captureIndices}:null}}class Theme{constructor(iA,AA,sA){tA(this,"_colorMap"),tA(this,"_defaults"),tA(this,"_root"),tA(this,"_cachedMatchRoot",new CachedFn(lA=>this._root.match(lA))),this._colorMap=iA,this._defaults=AA,this._root=sA}static createFromRawTheme(iA,AA){return this.createFromParsedTheme(parseTheme(iA),AA)}static createFromParsedTheme(iA,AA){return resolveParsedThemeRules(iA,AA)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(iA){if(iA===null)return this._defaults;const AA=iA.scopeName,sA=this._cachedMatchRoot.get(AA).find(lA=>_scopePathMatchesParentScopes(iA.parent,lA.parentScopes));return sA?new StyleAttributes(sA.fontStyle,sA.foreground,sA.background):null}}class ScopeStack{constructor(iA,AA){tA(this,"parent"),tA(this,"scopeName"),this.parent=iA,this.scopeName=AA}static push(iA,AA){for(const sA of AA)iA=new ScopeStack(iA,sA);return iA}static from(...iA){let AA=null;for(let sA=0;sA<iA.length;sA++)AA=new ScopeStack(AA,iA[sA]);return AA}push(iA){return new ScopeStack(this,iA)}getSegments(){let iA=this;const AA=[];for(;iA;)AA.push(iA.scopeName),iA=iA.parent;return AA.reverse(),AA}toString(){return this.getSegments().join(" ")}extends(iA){return this===iA?!0:this.parent===null?!1:this.parent.extends(iA)}getExtensionIfDefined(iA){const AA=[];let sA=this;for(;sA&&sA!==iA;)AA.push(sA.scopeName),sA=sA.parent;return sA===iA?AA.reverse():void 0}}function _scopePathMatchesParentScopes(nA,iA){if(iA===null)return!0;let AA=0,sA=iA[AA];for(;nA;){if(_matchesScope(nA.scopeName,sA)){if(AA++,AA===iA.length)return!0;sA=iA[AA]}nA=nA.parent}return!1}function _matchesScope(nA,iA){return iA===nA||nA.startsWith(iA)&&nA[iA.length]==="."}class StyleAttributes{constructor(iA,AA,sA){tA(this,"fontStyle"),tA(this,"foregroundId"),tA(this,"backgroundId"),this.fontStyle=iA,this.foregroundId=AA,this.backgroundId=sA}}function parseTheme(nA){if(!nA)return[];if(!nA.settings||!Array.isArray(nA.settings))return[];let iA=nA.settings,AA=[],sA=0;for(let lA=0,pA=iA.length;lA<pA;lA++){let uA=iA[lA];if(!uA.settings)continue;let gA;if(typeof uA.scope=="string"){let _A=uA.scope;_A=_A.replace(/^[,]+/,""),_A=_A.replace(/[,]+$/,""),gA=_A.split(",")}else Array.isArray(uA.scope)?gA=uA.scope:gA=[""];let bA=-1;if(typeof uA.settings.fontStyle=="string"){bA=0;let _A=uA.settings.fontStyle.split(" ");for(let kA=0,QA=_A.length;kA<QA;kA++)switch(_A[kA]){case"italic":bA=bA|1;break;case"bold":bA=bA|2;break;case"underline":bA=bA|4;break;case"strikethrough":bA=bA|8;break}}let yA=null;typeof uA.settings.foreground=="string"&&isValidHexColor(uA.settings.foreground)&&(yA=uA.settings.foreground);let CA=null;typeof uA.settings.background=="string"&&isValidHexColor(uA.settings.background)&&(CA=uA.settings.background);for(let _A=0,kA=gA.length;_A<kA;_A++){let QA=gA[_A].trim().split(" "),IA=QA[QA.length-1],DA=null;QA.length>1&&(DA=QA.slice(0,QA.length-1),DA.reverse()),AA[sA++]=new ParsedThemeRule(IA,DA,lA,bA,yA,CA)}}return AA}class ParsedThemeRule{constructor(iA,AA,sA,lA,pA,uA){tA(this,"scope"),tA(this,"parentScopes"),tA(this,"index"),tA(this,"fontStyle"),tA(this,"foreground"),tA(this,"background"),this.scope=iA,this.parentScopes=AA,this.index=sA,this.fontStyle=lA,this.foreground=pA,this.background=uA}}function resolveParsedThemeRules(nA,iA){nA.sort((bA,yA)=>{let CA=strcmp(bA.scope,yA.scope);return CA!==0||(CA=strArrCmp(bA.parentScopes,yA.parentScopes),CA!==0)?CA:bA.index-yA.index});let AA=0,sA="#000000",lA="#ffffff";for(;nA.length>=1&&nA[0].scope==="";){let bA=nA.shift();bA.fontStyle!==-1&&(AA=bA.fontStyle),bA.foreground!==null&&(sA=bA.foreground),bA.background!==null&&(lA=bA.background)}let pA=new ColorMap(iA),uA=new StyleAttributes(AA,pA.getId(sA),pA.getId(lA)),gA=new ThemeTrieElement(new ThemeTrieElementRule(0,null,-1,0,0),[]);for(let bA=0,yA=nA.length;bA<yA;bA++){let CA=nA[bA];gA.insert(0,CA.scope,CA.parentScopes,CA.fontStyle,pA.getId(CA.foreground),pA.getId(CA.background))}return new Theme(pA,uA,gA)}class ColorMap{constructor(iA){if(tA(this,"_isFrozen"),tA(this,"_lastColorId"),tA(this,"_id2color"),tA(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(iA)){this._isFrozen=!0;for(let AA=0,sA=iA.length;AA<sA;AA++)this._color2id[iA[AA]]=AA,this._id2color[AA]=iA[AA]}else this._isFrozen=!1}getId(iA){if(iA===null)return 0;iA=iA.toUpperCase();let AA=this._color2id[iA];if(AA)return AA;if(this._isFrozen)throw new Error(`Missing color in color map - ${iA}`);return AA=++this._lastColorId,this._color2id[iA]=AA,this._id2color[AA]=iA,AA}getColorMap(){return this._id2color.slice(0)}}class ThemeTrieElementRule{constructor(iA,AA,sA,lA,pA){tA(this,"scopeDepth"),tA(this,"parentScopes"),tA(this,"fontStyle"),tA(this,"foreground"),tA(this,"background"),this.scopeDepth=iA,this.parentScopes=AA,this.fontStyle=sA,this.foreground=lA,this.background=pA}clone(){return new ThemeTrieElementRule(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(iA){let AA=[];for(let sA=0,lA=iA.length;sA<lA;sA++)AA[sA]=iA[sA].clone();return AA}acceptOverwrite(iA,AA,sA,lA){this.scopeDepth>iA?console.log("how did this happen?"):this.scopeDepth=iA,AA!==-1&&(this.fontStyle=AA),sA!==0&&(this.foreground=sA),lA!==0&&(this.background=lA)}}class ThemeTrieElement{constructor(iA,AA=[],sA={}){tA(this,"_mainRule"),tA(this,"_children"),tA(this,"_rulesWithParentScopes"),this._mainRule=iA,this._children=sA,this._rulesWithParentScopes=AA}static _sortBySpecificity(iA){return iA.length===1||iA.sort(this._cmpBySpecificity),iA}static _cmpBySpecificity(iA,AA){if(iA.scopeDepth===AA.scopeDepth){const sA=iA.parentScopes,lA=AA.parentScopes;let pA=sA===null?0:sA.length,uA=lA===null?0:lA.length;if(pA===uA)for(let gA=0;gA<pA;gA++){const bA=sA[gA].length,yA=lA[gA].length;if(bA!==yA)return yA-bA}return uA-pA}return AA.scopeDepth-iA.scopeDepth}match(iA){if(iA==="")return ThemeTrieElement._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let AA=iA.indexOf("."),sA,lA;return AA===-1?(sA=iA,lA=""):(sA=iA.substring(0,AA),lA=iA.substring(AA+1)),this._children.hasOwnProperty(sA)?this._children[sA].match(lA):ThemeTrieElement._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(iA,AA,sA,lA,pA,uA){if(AA===""){this._doInsertHere(iA,sA,lA,pA,uA);return}let gA=AA.indexOf("."),bA,yA;gA===-1?(bA=AA,yA=""):(bA=AA.substring(0,gA),yA=AA.substring(gA+1));let CA;this._children.hasOwnProperty(bA)?CA=this._children[bA]:(CA=new ThemeTrieElement(this._mainRule.clone(),ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes)),this._children[bA]=CA),CA.insert(iA+1,yA,sA,lA,pA,uA)}_doInsertHere(iA,AA,sA,lA,pA){if(AA===null){this._mainRule.acceptOverwrite(iA,sA,lA,pA);return}for(let uA=0,gA=this._rulesWithParentScopes.length;uA<gA;uA++){let bA=this._rulesWithParentScopes[uA];if(strArrCmp(bA.parentScopes,AA)===0){bA.acceptOverwrite(iA,sA,lA,pA);return}}sA===-1&&(sA=this._mainRule.fontStyle),lA===0&&(lA=this._mainRule.foreground),pA===0&&(pA=this._mainRule.background),this._rulesWithParentScopes.push(new ThemeTrieElementRule(iA,AA,sA,lA,pA))}}class BasicScopeAttributes{constructor(iA,AA){tA(this,"languageId"),tA(this,"tokenType"),this.languageId=iA,this.tokenType=AA}}const Ce$7=class m9e{constructor(iA,AA){tA(this,"_defaultAttributes"),tA(this,"_embeddedLanguagesMatcher"),tA(this,"_getBasicScopeAttributes",new CachedFn(sA=>{const lA=this._scopeToLanguage(sA),pA=this._toStandardTokenType(sA);return new BasicScopeAttributes(lA,pA)})),this._defaultAttributes=new BasicScopeAttributes(iA,8),this._embeddedLanguagesMatcher=new ScopeMatcher(Object.entries(AA||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(iA){return iA===null?m9e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(iA)}_scopeToLanguage(iA){return this._embeddedLanguagesMatcher.match(iA)||0}_toStandardTokenType(iA){const AA=iA.match(m9e.STANDARD_TOKEN_TYPE_REGEXP);if(!AA)return 8;switch(AA[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!")}};tA(Ce$7,"_NULL_SCOPE_METADATA",new BasicScopeAttributes(0,0)),tA(Ce$7,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let BasicScopeAttributesProvider=Ce$7;class ScopeMatcher{constructor(iA){if(tA(this,"values"),tA(this,"scopesRegExp"),iA.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(iA);const AA=iA.map(([sA,lA])=>escapeRegExpCharacters(sA));AA.sort(),AA.reverse(),this.scopesRegExp=new RegExp(`^((${AA.join(")|(")}))($|\\.)`,"")}}match(iA){if(!this.scopesRegExp)return;const AA=iA.match(this.scopesRegExp);if(AA)return this.values.get(AA[1])}}class TokenizeStringResult{constructor(iA,AA){tA(this,"stack"),tA(this,"stoppedEarly"),this.stack=iA,this.stoppedEarly=AA}}function _tokenizeString(nA,iA,AA,sA,lA,pA,uA,gA){const bA=iA.content.length;let yA=!1,CA=-1;if(uA){const QA=_checkWhileConditions(nA,iA,AA,sA,lA,pA);lA=QA.stack,sA=QA.linePos,AA=QA.isFirstLine,CA=QA.anchorPosition}const _A=Date.now();for(;!yA;){if(gA!==0&&Date.now()-_A>gA)return new TokenizeStringResult(lA,!0);kA()}return new TokenizeStringResult(lA,!1);function kA(){const QA=matchRuleOrInjections(nA,iA,AA,sA,lA,CA);if(!QA){pA.produce(lA,bA),yA=!0;return}const IA=QA.captureIndices,DA=QA.matchedRuleId,LA=IA&&IA.length>0?IA[0].end>sA:!1;if(DA===endRuleId){const FA=lA.getRule(nA);pA.produce(lA,IA[0].start),lA=lA.withContentNameScopesList(lA.nameScopesList),handleCaptures(nA,iA,AA,lA,pA,FA.endCaptures,IA),pA.produce(lA,IA[0].end);const NA=lA;if(lA=lA.parent,CA=NA.getAnchorPos(),!LA&&NA.getEnterPos()===sA){lA=NA,pA.produce(lA,bA),yA=!0;return}}else{const FA=nA.getRule(DA);pA.produce(lA,IA[0].start);const NA=lA,jA=FA.getName(iA.content,IA),OA=lA.contentNameScopesList.pushAttributed(jA,nA);if(lA=lA.push(DA,sA,CA,IA[0].end===bA,null,OA,OA),FA instanceof BeginEndRule){const GA=FA;handleCaptures(nA,iA,AA,lA,pA,GA.beginCaptures,IA),pA.produce(lA,IA[0].end),CA=IA[0].end;const zA=GA.getContentName(iA.content,IA),UA=OA.pushAttributed(zA,nA);if(lA=lA.withContentNameScopesList(UA),GA.endHasBackReferences&&(lA=lA.withEndRule(GA.getEndWithResolvedBackReferences(iA.content,IA))),!LA&&NA.hasSameRuleAs(lA)){lA=lA.pop(),pA.produce(lA,bA),yA=!0;return}}else if(FA instanceof BeginWhileRule){const GA=FA;handleCaptures(nA,iA,AA,lA,pA,GA.beginCaptures,IA),pA.produce(lA,IA[0].end),CA=IA[0].end;const zA=GA.getContentName(iA.content,IA),UA=OA.pushAttributed(zA,nA);if(lA=lA.withContentNameScopesList(UA),GA.whileHasBackReferences&&(lA=lA.withEndRule(GA.getWhileWithResolvedBackReferences(iA.content,IA))),!LA&&NA.hasSameRuleAs(lA)){lA=lA.pop(),pA.produce(lA,bA),yA=!0;return}}else if(handleCaptures(nA,iA,AA,lA,pA,FA.captures,IA),pA.produce(lA,IA[0].end),lA=lA.pop(),!LA){lA=lA.safePop(),pA.produce(lA,bA),yA=!0;return}}IA[0].end>sA&&(sA=IA[0].end,AA=!1)}}function _checkWhileConditions(nA,iA,AA,sA,lA,pA){let uA=lA.beginRuleCapturedEOL?0:-1;const gA=[];for(let bA=lA;bA;bA=bA.pop()){const yA=bA.getRule(nA);yA instanceof BeginWhileRule&&gA.push({rule:yA,stack:bA})}for(let bA=gA.pop();bA;bA=gA.pop()){const{ruleScanner:yA,findOptions:CA}=prepareRuleWhileSearch(bA.rule,nA,bA.stack.endRule,AA,sA===uA),_A=yA.findNextMatchSync(iA,sA,CA);if(_A){if(_A.ruleId!==whileRuleId){lA=bA.stack.pop();break}_A.captureIndices&&_A.captureIndices.length&&(pA.produce(bA.stack,_A.captureIndices[0].start),handleCaptures(nA,iA,AA,bA.stack,pA,bA.rule.whileCaptures,_A.captureIndices),pA.produce(bA.stack,_A.captureIndices[0].end),uA=_A.captureIndices[0].end,_A.captureIndices[0].end>sA&&(sA=_A.captureIndices[0].end,AA=!1))}else{lA=bA.stack.pop();break}}return{stack:lA,linePos:sA,anchorPosition:uA,isFirstLine:AA}}function matchRuleOrInjections(nA,iA,AA,sA,lA,pA){const uA=matchRule(nA,iA,AA,sA,lA,pA),gA=nA.getInjections();if(gA.length===0)return uA;const bA=matchInjections(gA,nA,iA,AA,sA,lA,pA);if(!bA)return uA;if(!uA)return bA;const yA=uA.captureIndices[0].start,CA=bA.captureIndices[0].start;return CA<yA||bA.priorityMatch&&CA===yA?bA:uA}function matchRule(nA,iA,AA,sA,lA,pA){const uA=lA.getRule(nA),{ruleScanner:gA,findOptions:bA}=prepareRuleSearch(uA,nA,lA.endRule,AA,sA===pA),yA=gA.findNextMatchSync(iA,sA,bA);return yA?{captureIndices:yA.captureIndices,matchedRuleId:yA.ruleId}:null}function matchInjections(nA,iA,AA,sA,lA,pA,uA){let gA=Number.MAX_VALUE,bA=null,yA,CA=0;const _A=pA.contentNameScopesList.getScopeNames();for(let kA=0,QA=nA.length;kA<QA;kA++){const IA=nA[kA];if(!IA.matcher(_A))continue;const DA=iA.getRule(IA.ruleId),{ruleScanner:LA,findOptions:FA}=prepareRuleSearch(DA,iA,null,sA,lA===uA),NA=LA.findNextMatchSync(AA,lA,FA);if(!NA)continue;const jA=NA.captureIndices[0].start;if(!(jA>=gA)&&(gA=jA,bA=NA.captureIndices,yA=NA.ruleId,CA=IA.priority,gA===lA))break}return bA?{priorityMatch:CA===-1,captureIndices:bA,matchedRuleId:yA}:null}function prepareRuleSearch(nA,iA,AA,sA,lA){return{ruleScanner:nA.compileAG(iA,AA,sA,lA),findOptions:0}}function prepareRuleWhileSearch(nA,iA,AA,sA,lA){return{ruleScanner:nA.compileWhileAG(iA,AA,sA,lA),findOptions:0}}function handleCaptures(nA,iA,AA,sA,lA,pA,uA){if(pA.length===0)return;const gA=iA.content,bA=Math.min(pA.length,uA.length),yA=[],CA=uA[0].end;for(let _A=0;_A<bA;_A++){const kA=pA[_A];if(kA===null)continue;const QA=uA[_A];if(QA.length===0)continue;if(QA.start>CA)break;for(;yA.length>0&&yA[yA.length-1].endPos<=QA.start;)lA.produceFromScopes(yA[yA.length-1].scopes,yA[yA.length-1].endPos),yA.pop();if(yA.length>0?lA.produceFromScopes(yA[yA.length-1].scopes,QA.start):lA.produce(sA,QA.start),kA.retokenizeCapturedWithRuleId){const DA=kA.getName(gA,uA),LA=sA.contentNameScopesList.pushAttributed(DA,nA),FA=kA.getContentName(gA,uA),NA=LA.pushAttributed(FA,nA),jA=sA.push(kA.retokenizeCapturedWithRuleId,QA.start,-1,!1,null,LA,NA),OA=nA.createOnigString(gA.substring(0,QA.end));_tokenizeString(nA,OA,AA&&QA.start===0,QA.start,jA,lA,!1,0),disposeOnigString(OA);continue}const IA=kA.getName(gA,uA);if(IA!==null){const DA=(yA.length>0?yA[yA.length-1].scopes:sA.contentNameScopesList).pushAttributed(IA,nA);yA.push(new LocalStackElement(DA,QA.end))}}for(;yA.length>0;)lA.produceFromScopes(yA[yA.length-1].scopes,yA[yA.length-1].endPos),yA.pop()}class LocalStackElement{constructor(iA,AA){tA(this,"scopes"),tA(this,"endPos"),this.scopes=iA,this.endPos=AA}}function createGrammar(nA,iA,AA,sA,lA,pA,uA,gA){return new Grammar(nA,iA,AA,sA,lA,pA,uA,gA)}function collectInjections(nA,iA,AA,sA,lA){const pA=createMatchers(iA,nameMatcher),uA=RuleFactory.getCompiledRuleId(AA,sA,lA.repository);for(const gA of pA)nA.push({debugSelector:iA,matcher:gA.matcher,ruleId:uA,grammar:lA,priority:gA.priority})}function nameMatcher(nA,iA){if(iA.length<nA.length)return!1;let AA=0;return nA.every(sA=>{for(let lA=AA;lA<iA.length;lA++)if(scopesAreMatching(iA[lA],sA))return AA=lA+1,!0;return!1})}function scopesAreMatching(nA,iA){if(!nA)return!1;if(nA===iA)return!0;const AA=iA.length;return nA.length>AA&&nA.substr(0,AA)===iA&&nA[AA]==="."}class Grammar{constructor(iA,AA,sA,lA,pA,uA,gA,bA){if(tA(this,"_rootScopeName"),tA(this,"balancedBracketSelectors"),tA(this,"_onigLib"),tA(this,"_rootId"),tA(this,"_lastRuleId"),tA(this,"_ruleId2desc"),tA(this,"_includedGrammars"),tA(this,"_grammarRepository"),tA(this,"_grammar"),tA(this,"_injections"),tA(this,"_basicScopeAttributesProvider"),tA(this,"_tokenTypeMatchers"),this._rootScopeName=iA,this.balancedBracketSelectors=uA,this._onigLib=bA,this._basicScopeAttributesProvider=new BasicScopeAttributesProvider(sA,lA),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=gA,this._grammar=initGrammar(AA,null),this._injections=null,this._tokenTypeMatchers=[],pA)for(const yA of Object.keys(pA)){const CA=createMatchers(yA,nameMatcher);for(const _A of CA)this._tokenTypeMatchers.push({matcher:_A.matcher,type:pA[yA]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const iA of this._ruleId2desc)iA&&iA.dispose()}createOnigScanner(iA){return this._onigLib.createOnigScanner(iA)}createOnigString(iA){return this._onigLib.createOnigString(iA)}getMetadataForScope(iA){return this._basicScopeAttributesProvider.getBasicScopeAttributes(iA)}_collectInjections(){const iA={lookup:pA=>pA===this._rootScopeName?this._grammar:this.getExternalGrammar(pA),injections:pA=>this._grammarRepository.injections(pA)},AA=[],sA=this._rootScopeName,lA=iA.lookup(sA);if(lA){const pA=lA.injections;if(pA)for(let gA in pA)collectInjections(AA,gA,pA[gA],this,lA);const uA=this._grammarRepository.injections(sA);uA&&uA.forEach(gA=>{const bA=this.getExternalGrammar(gA);if(bA){const yA=bA.injectionSelector;yA&&collectInjections(AA,yA,bA,this,bA)}})}return AA.sort((pA,uA)=>pA.priority-uA.priority),AA}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(iA){const AA=++this._lastRuleId,sA=iA(AA);return this._ruleId2desc[AA]=sA,sA}getRule(iA){return this._ruleId2desc[iA]}getExternalGrammar(iA,AA){if(this._includedGrammars[iA])return this._includedGrammars[iA];if(this._grammarRepository){const sA=this._grammarRepository.lookup(iA);if(sA)return this._includedGrammars[iA]=initGrammar(sA,AA&&AA.$base),this._includedGrammars[iA]}}tokenizeLine(iA,AA,sA=0){const lA=this._tokenize(iA,AA,!1,sA);return{tokens:lA.lineTokens.getResult(lA.ruleStack,lA.lineLength),ruleStack:lA.ruleStack,stoppedEarly:lA.stoppedEarly}}tokenizeLine2(iA,AA,sA=0){const lA=this._tokenize(iA,AA,!0,sA);return{tokens:lA.lineTokens.getBinaryResult(lA.ruleStack,lA.lineLength),ruleStack:lA.ruleStack,stoppedEarly:lA.stoppedEarly}}_tokenize(iA,AA,sA,lA){this._rootId===-1&&(this._rootId=RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let pA;if(!AA||AA===StateStackImpl.NULL){pA=!0;const CA=this._basicScopeAttributesProvider.getDefaultAttributes(),_A=this.themeProvider.getDefaults(),kA=EncodedTokenAttributes.set(0,CA.languageId,CA.tokenType,null,_A.fontStyle,_A.foregroundId,_A.backgroundId),QA=this.getRule(this._rootId).getName(null,null);let IA;QA?IA=AttributedScopeStack.createRootAndLookUpScopeName(QA,kA,this):IA=AttributedScopeStack.createRoot("unknown",kA),AA=new StateStackImpl(null,this._rootId,-1,-1,!1,null,IA,IA)}else pA=!1,AA.reset();iA=iA+`
@@ -205,7 +205,7 @@ ${nA.themeCSS}`),nA.fontFamily!==void 0&&(sA+=`
205
205
  ${IFRAME_NOT_SUPPORTED_MSG}
206
206
  </iframe>`},appendDivSvgG=(nA,iA,AA,sA,lA)=>{const pA=nA.append("div");pA.attr("id",AA),sA&&pA.attr("style",sA);const uA=pA.append("svg").attr("id",iA).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return lA&&uA.attr("xmlns:xlink",lA),uA.append("g"),nA};function sandboxedIframe(nA,iA){return nA.append("iframe").attr("id",iA).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const removeExistingElements=(nA,iA,AA,sA)=>{var lA,pA,uA;(lA=nA.getElementById(iA))==null||lA.remove(),(pA=nA.getElementById(AA))==null||pA.remove(),(uA=nA.getElementById(sA))==null||uA.remove()},render$1=async function(nA,iA,AA){var sA,lA,pA,uA,gA,bA;addDiagrams();const yA=processAndSetConfigs(iA);iA=yA.code;const CA=getConfig$1();log$1.debug(CA),iA.length>((CA==null?void 0:CA.maxTextSize)??MAX_TEXTLENGTH)&&(iA=MAX_TEXTLENGTH_EXCEEDED_MSG);const _A="#"+nA,kA="i"+nA,QA="#"+kA,IA="d"+nA,DA="#"+IA;let LA=select("body");const FA=CA.securityLevel===SECURITY_LVL_SANDBOX,NA=CA.securityLevel===SECURITY_LVL_LOOSE,jA=CA.fontFamily;if(AA!==void 0){if(AA&&(AA.innerHTML=""),FA){const _l=sandboxedIframe(select(AA),kA);LA=select(_l.nodes()[0].contentDocument.body),LA.node().style.margin=0}else LA=select(AA);appendDivSvgG(LA,nA,IA,`font-family: ${jA}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,nA,IA,kA),FA){const _l=sandboxedIframe(select("body"),kA);LA=select(_l.nodes()[0].contentDocument.body),LA.node().style.margin=0}else LA=select("body");appendDivSvgG(LA,nA,IA)}let OA,GA;try{OA=await getDiagramFromText(iA,{title:yA.title})}catch(_l){OA=new Diagram("error"),GA=_l}const zA=LA.select(DA).node(),UA=OA.type,TA=zA.firstChild,WA=TA.firstChild,PA=(lA=(sA=OA.renderer).getClasses)==null?void 0:lA.call(sA,iA,OA),XA=createUserStyles(CA,UA,PA,_A),qA=document.createElement("style");qA.innerHTML=XA,TA.insertBefore(qA,WA);try{await OA.renderer.draw(iA,nA,version,OA)}catch(_l){throw errorRenderer.draw(iA,nA,version),_l}const HA=LA.select(`${DA} svg`),Ml=(uA=(pA=OA.db).getAccTitle)==null?void 0:uA.call(pA),Rl=(bA=(gA=OA.db).getAccDescription)==null?void 0:bA.call(gA);addA11yInfo(UA,HA,Ml,Rl),LA.select(`[id="${nA}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let Pl=LA.select(DA).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",CA.arrowMarkerAbsolute),Pl=cleanUpSvgCode(Pl,FA,evaluate(CA.arrowMarkerAbsolute)),FA){const _l=LA.select(DA+" svg").node();Pl=putIntoIFrame(Pl,_l)}else NA||(Pl=purify.sanitize(Pl,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),GA)throw GA;const Wl=select(FA?QA:DA).node();return Wl&&"remove"in Wl&&Wl.remove(),{svg:Pl,bindFunctions:OA.db.bindFunctions}};function initialize$1(nA={}){var iA;nA!=null&&nA.fontFamily&&!((iA=nA.themeVariables)!=null&&iA.fontFamily)&&(nA.themeVariables||(nA.themeVariables={}),nA.themeVariables.fontFamily=nA.fontFamily),saveConfigFromInitialize(nA),nA!=null&&nA.theme&&nA.theme in theme?nA.themeVariables=theme[nA.theme].getThemeVariables(nA.themeVariables):nA&&(nA.themeVariables=theme.default.getThemeVariables(nA.themeVariables));const AA=typeof nA=="object"?setSiteConfig(nA):getSiteConfig();setLogLevel$1(AA.logLevel),addDiagrams()}const getDiagramFromText=(nA,iA={})=>{const{code:AA}=preprocessDiagram(nA);return getDiagramFromText$1(AA,iA)};function addA11yInfo(nA,iA,AA,sA){setA11yDiagramInfo(iA,nA),addSVGa11yTitleDescription(iA,AA,sA,iA.attr("id"))}const mermaidAPI=Object.freeze({render:render$1,parse:parse$1,getDiagramFromText,initialize:initialize$1,getConfig:getConfig$1,setConfig:setConfig$1,getSiteConfig,updateSiteConfig,reset:()=>{reset()},globalReset:()=>{reset(defaultConfig$1)},defaultConfig:defaultConfig$1});setLogLevel$1(getConfig$1().logLevel),reset(getConfig$1());const loadRegisteredDiagrams=async()=>{log$1.debug("Loading registered diagrams");const nA=(await Promise.allSettled(Object.entries(detectors).map(async([iA,{detector:AA,loader:sA}])=>{if(sA)try{getDiagram(iA)}catch{try{const{diagram:lA,id:pA}=await sA();registerDiagram(pA,lA,AA)}catch(lA){throw log$1.error(`Failed to load external diagram with key ${iA}. Removing from detectors.`),delete detectors[iA],lA}}}))).filter(iA=>iA.status==="rejected");if(nA.length>0){log$1.error(`Failed to load ${nA.length} external diagrams`);for(const iA of nA)log$1.error(iA);throw new Error(`Failed to load ${nA.length} external diagrams`)}},handleError=(nA,iA,AA)=>{log$1.warn(nA),isDetailedError(nA)?(AA&&AA(nA.str,nA.hash),iA.push({...nA,message:nA.str,error:nA})):(AA&&AA(nA),nA instanceof Error&&iA.push({str:nA.message,message:nA.message,hash:nA.name,error:nA}))},run=async function(nA={querySelector:".mermaid"}){try{await runThrowsErrors(nA)}catch(iA){if(isDetailedError(iA)&&log$1.error(iA.str),mermaid.parseError&&mermaid.parseError(iA),!nA.suppressErrors)throw log$1.error("Use the suppressErrors option to suppress these errors"),iA}},runThrowsErrors=async function({postRenderCallback:nA,querySelector:iA,nodes:AA}={querySelector:".mermaid"}){const sA=mermaidAPI.getConfig();log$1.debug(`${nA?"":"No "}Callback function found`);let lA;if(AA)lA=AA;else if(iA)lA=document.querySelectorAll(iA);else throw new Error("Nodes and querySelector are both undefined");log$1.debug(`Found ${lA.length} diagrams`),(sA==null?void 0:sA.startOnLoad)!==void 0&&(log$1.debug("Start On Load: "+(sA==null?void 0:sA.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:sA==null?void 0:sA.startOnLoad}));const pA=new utils.InitIDGenerator(sA.deterministicIds,sA.deterministicIDSeed);let uA;const gA=[];for(const bA of Array.from(lA)){log$1.info("Rendering diagram: "+bA.id);/*! Check if previously processed */if(bA.getAttribute("data-processed"))continue;bA.setAttribute("data-processed","true");const yA=`mermaid-${pA.next()}`;uA=bA.innerHTML,uA=dedent(utils.entityDecode(uA)).trim().replace(/<br\s*\/?>/gi,"<br/>");const CA=utils.detectInit(uA);CA&&log$1.debug("Detected early reinit: ",CA);try{const{svg:_A,bindFunctions:kA}=await render(yA,uA,bA);bA.innerHTML=_A,nA&&await nA(yA),kA&&kA(bA)}catch(_A){handleError(_A,gA,mermaid.parseError)}}if(gA.length>0)throw gA[0]},initialize=function(nA){mermaidAPI.initialize(nA)},init=async function(nA,iA,AA){log$1.warn("mermaid.init is deprecated. Please use run instead."),nA&&initialize(nA);const sA={postRenderCallback:AA,querySelector:".mermaid"};typeof iA=="string"?sA.querySelector=iA:iA&&(iA instanceof HTMLElement?sA.nodes=[iA]:sA.nodes=iA),await run(sA)},registerExternalDiagrams=async(nA,{lazyLoad:iA=!0}={})=>{registerLazyLoadedDiagrams(...nA),iA===!1&&await loadRegisteredDiagrams()},contentLoaded=function(){if(mermaid.startOnLoad){const{startOnLoad:nA}=mermaidAPI.getConfig();nA&&mermaid.run().catch(iA=>log$1.error("Mermaid failed to initialize",iA))}};if(typeof document<"u"){/*!
207
207
  * Wait for document loaded before starting the execution
208
- */window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(nA){mermaid.parseError=nA},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const nA=executionQueue.shift();if(nA)try{await nA()}catch(iA){log$1.error("Error executing queue",iA)}}executionQueueRunning=!1}},parse=async(nA,iA)=>new Promise((AA,sA)=>{const lA=()=>new Promise((pA,uA)=>{mermaidAPI.parse(nA,iA).then(gA=>{pA(gA),AA(gA)},gA=>{var bA;log$1.error("Error parsing",gA),(bA=mermaid.parseError)==null||bA.call(mermaid,gA),uA(gA),sA(gA)})});executionQueue.push(lA),executeQueue().catch(sA)}),render=(nA,iA,AA)=>new Promise((sA,lA)=>{const pA=()=>new Promise((uA,gA)=>{mermaidAPI.render(nA,iA,AA).then(bA=>{uA(bA),sA(bA)},bA=>{var yA;log$1.error("Error parsing",bA),(yA=mermaid.parseError)==null||yA.call(mermaid,bA),gA(bA),lA(bA)})});executionQueue.push(pA),executeQueue().catch(lA)}),mermaid={startOnLoad:!0,mermaidAPI,parse,render,init,run,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler,detectType},_withScopeId$2=nA=>(vue.pushScopeId("data-v-c4020e22"),nA=nA(),vue.popScopeId(),nA),_hoisted_1$5=["id"],_hoisted_2$4={class:"markdown-panes"},_hoisted_3$3={key:0,class:"markdown-editor","data-testid":"markdown-editor"},_hoisted_4$3=["id","value"],_hoisted_5$2={class:"markdown-content-container","data-testid":"markdown-content-container"},_hoisted_6$2={key:0,class:"content-actions"},_hoisted_7$2={key:0,class:"download-button"},_hoisted_8$2=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Download",-1)),_hoisted_9$2={key:1,class:"edit-button"},_hoisted_10$1=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Edit",-1)),_sfc_main$6=vue.defineComponent({__name:"MarkdownUi",props:{modelValue:{type:String,default:""},editable:{type:Boolean,default:!1},downloadable:{type:Boolean,default:!1},filename:{type:String,default:"document"},mode:{type:String,default:"read",validator:nA=>["read","edit","split","preview"].includes(nA)},tabSize:{type:Number,default:2,validator:nA=>nA>=2&&nA<=6},theme:{type:String,default:"",validator:nA=>["","light","dark"].includes(nA)},maxHeight:{type:Number,default:300,validator:nA=>nA>=100},fullscreenOffsetTop:{type:Number,default:0},fullscreenZIndex:{type:Number,default:1001}},emits:["update:modelValue","update:frontmatter","save","cancel","mode","fullscreen"],setup(nA,{expose:iA,emit:AA}){vue.useCssVars(jb=>({"6a3eabcd":sb.value,"107b282e":U0.value,ff4ef2d2:jb.$props.fullscreenZIndex,"6a32dbec":Ib.value,"428718ae":vue.unref(TOOLBAR_HEIGHT)}));const sA=nA,lA=AA,pA=vue.ref(null),uA=vue.ref(null),{init:gA,md:bA}=composables.useMarkdownIt(),yA=v4(),CA=vue.computed(()=>`markdown-ui-${yA}`),_A=vue.computed(()=>`markdown-ui-textarea-${yA}`),kA=vue.computed(()=>`scrollable-${yA}`),QA=vue.computed(()=>sA.tabSize),IA=usePreferredColorScheme(),DA=vue.computed(()=>sA.theme?sA.theme:IA.value==="dark"?IA.value:"light"),LA=vue.ref(["edit","split","preview"].includes(sA.mode)&&sA.editable?sA.mode:"read"),FA=vue.ref(!1),NA=vue.ref(!1);vue.provide(UNIQUE_ID_INJECTION_KEY,yA),vue.provide(TEXTAREA_ID_INJECTION_KEY,_A),vue.provide(MODE_INJECTION_KEY,LA),vue.provide(EDITABLE_INJECTION_KEY,vue.computed(()=>sA.editable)),vue.provide(FULLSCREEN_INJECTION_KEY,FA),vue.provide(THEME_INJECTION_KEY,DA),vue.provide(HTML_PREVIEW_INJECTION_KEY,NA);const{initializeSyncScroll:jA,destroySyncScroll:OA}=composables.useSyncScroll(kA),{debounce:GA}=composables.useDebounce();vue.watch(LA,async jb=>{switch(jb){case"edit":NA.value=!1;break;case"split":break;case"preview":break;case"read":NA.value=!1,FA.value=!1;break}lA("mode",jb),OA(),await vue.nextTick(),await Wl(),jA()});const zA=jb=>{var rb;const sw={},gb=(rb=bA.value)==null?void 0:rb.render(jb,sw);return TA.value=sw.frontmatter,gb},UA=vue.ref(sA.modelValue),TA=vue.ref(),WA=vue.ref(""),PA=vue.ref(""),{toggleInlineFormatting:XA,insertMarkdownTemplate:qA,insertLink:HA,insertImage:Ml}=composables.useMarkdownActions(pA,UA),Rl=jb=>{jb==="link"?HA():jb==="image"?Ml():XA(jb),tb()},Pl=jb=>{qA(jb),tb()};vue.watchEffect(()=>{var jb;NA.value&&(PA.value=(jb=bA.value)==null?void 0:jb.render("```html"+NEW_LINE_CHARACTER+formatHtml(WA.value," ".repeat(QA.value))+NEW_LINE_CHARACTER+"```"))});const Wl=async()=>{if(typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.run)=="function"){const jb=`#${CA.value} .markdown-content-container .mermaid`;document.querySelector(jb)&&await mermaid.run({querySelector:jb,suppressErrors:!0})}},_l=()=>{try{const jb=new Blob([UA.value],{type:"text/markdown;charset=utf-8"}),rb=URL.createObjectURL(jb),sw=document.createElement("a");sw.href=rb,sw.download=`${sA.filename.replace(/ /g,"-").replace(/[^-+.a-zA-Z0-9_]/g,"").replace(/(\.md)+$/g,"")}.md`,sw.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(rb),sw.remove()},100)}catch(jb){console.warn("download",jb)}},zl=(jb,rb=!0)=>{UA.value=jb.target.value,ql(rb)},ql=GA(async(jb=!0)=>{WA.value=zA(UA.value),await vue.nextTick(),jb&&(lA("update:modelValue",UA.value),lA("update:frontmatter",TA.value)),await vue.nextTick(),await Wl()},EDITOR_DEBOUNCE_TIMEOUT),tb=(jb=!0)=>{const rb={target:{value:UA.value}};zl(rb,jb)};vue.watch(()=>sA.modelValue,jb=>{UA.value=jb,tb(!1)});const nb=()=>{NA.value=!NA.value,tb()},U0=vue.computed(()=>`${sA.fullscreenOffsetTop}px`),ub=()=>{FA.value=!FA.value};vue.watch(FA,jb=>{lA("fullscreen",jb)});const Ob=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),ob=()=>{LA.value=Ob.value?"split":"edit"},_b=()=>{lA("cancel"),LA.value="read"},mb=()=>{lA("save",{content:UA.value,frontmatter:TA.value}),LA.value="read"},hb=()=>{typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.initialize)=="function"&&(mermaid==null||mermaid.initialize({startOnLoad:!1,securityLevel:"strict",fontFamily:KUI_FONT_FAMILY_TEXT,altFontFamily:KUI_FONT_FAMILY_CODE,theme:DA.value==="light"?"default":"base"}))};vue.watch(DA,async jb=>{await gA(jb),hb(),tb()});const ab=async jb=>{var rb,sw,gb,Uw,Bw,DC,QC,JC;try{if(!((sw=(rb=jb.target)==null?void 0:rb.classList)!=null&&sw.contains("kong-markdown-code-block-copy"))||!((Uw=(gb=jb.target)==null?void 0:gb.dataset)!=null&&Uw.copytext))return;if(jb.preventDefault(),(Bw=navigator==null?void 0:navigator.clipboard)!=null&&Bw.writeText){const rC=((QC=(DC=jb.target)==null?void 0:DC.dataset)==null?void 0:QC.copytext)||"";rC&&(await navigator.clipboard.writeText(rC),(JC=jb==null?void 0:jb.target)==null||JC.blur())}}catch(rC){console.warn("Could not copy text to clipboard",rC)}};composables.useKeyboardShortcuts(pA,UA,QA,tb),vue.onMounted(async()=>{await gA(DA.value),WA.value=zA(sA.modelValue),await vue.nextTick(),useEventListener(uA,"click",ab),hb(),await Wl(),LA.value==="split"&&(await vue.nextTick(),jA())}),vue.onUnmounted(()=>{OA()}),iA({download:_l,edit:ob});const Ib=vue.computed(()=>`calc(100vh - ${TOOLBAR_HEIGHT} - ${KUI_SPACE_60})`),sb=vue.computed(()=>`${sA.maxHeight}px`);return(jb,rb)=>{var sw;return vue.openBlock(),vue.createElementBlock("div",{id:CA.value,ref_key:"markdownComponent",ref:uA,class:vue.normalizeClass(["kong-ui-public-markdown-ui",[`mode-${LA.value}`,`theme-${DA.value}`,{fullscreen:FA.value}]]),"data-testid":"markdown-ui"},[nA.editable&&LA.value!=="read"?(vue.openBlock(),vue.createBlock(MarkdownToolbar,{key:0,onChangeMode:rb[0]||(rb[0]=gb=>LA.value=gb),onFormatSelection:Rl,onInsertTemplate:Pl,onToggleFullscreen:ub,onToggleHtmlPreview:nb},{"toolbar-right":vue.withCtx(()=>[vue.renderSlot(jb.$slots,"toolbar-right",{},void 0,!0)]),"editor-actions":vue.withCtx(()=>[vue.renderSlot(jb.$slots,"editor-actions",{cancel:_b,save:mb},()=>[nA.editable&&["edit","split","preview"].includes(LA.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(ToolbarButton,{"data-testid":"cancel",icon:!1,tabindex:0,onClick:_b},{default:vue.withCtx(()=>[vue.createTextVNode(" Cancel ")]),_:1}),vue.createVNode(ToolbarButton,{appearance:"primary","data-testid":"save",icon:!1,tabindex:0,onClick:mb},{default:vue.withCtx(()=>[vue.createTextVNode(" Save ")]),_:1})],64)):vue.createCommentVNode("",!0)],!0)]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$4,[nA.editable&&["edit","split"].includes(LA.value)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[vue.createElementVNode("textarea",{id:_A.value,ref_key:"textarea",ref:pA,autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:vue.normalizeClass(["markdown-editor-textarea",[kA.value]]),"data-testid":"markdown-editor-textarea",placeholder:"Begin editing...",spellcheck:"false",translate:"no",value:UA.value,onInput:rb[1]||(rb[1]=gb=>zl(gb))},null,42,_hoisted_4$3)])):vue.createCommentVNode("",!0),["read","preview","split"].includes(LA.value)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["markdown-preview",[kA.value]]),"data-testid":"markdown-preview"},[vue.createElementVNode("div",_hoisted_5$2,[LA.value==="read"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$2,[vue.renderSlot(jb.$slots,"content-actions",{download:(sw=UA.value)!=null&&sw.length&&nA.downloadable?_l:void 0,edit:nA.editable?ob:void 0},()=>{var gb;return[LA.value==="read"&&(gb=UA.value)!=null&&gb.length&&nA.downloadable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$2,[vue.renderSlot(jb.$slots,"download",{download:_l},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Download markdown document","data-testid":"download",icon:!1,tabindex:0,onClick:_l},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(p$6$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_8$2]),_:1})],!0)])):vue.createCommentVNode("",!0),LA.value==="read"&&nA.editable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$2,[vue.renderSlot(jb.$slots,"edit",{edit:ob},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Edit markdown document","data-testid":"edit",icon:!1,tabindex:0,onClick:ob},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(p$5$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_10$1]),_:1})],!0)])):vue.createCommentVNode("",!0)]},!0)])):vue.createCommentVNode("",!0),vue.createVNode(MarkdownContent,{class:vue.normalizeClass({"html-preview":NA.value}),content:NA.value?PA.value:WA.value},null,8,["class","content"])])],2)):vue.createCommentVNode("",!0)])],10,_hoisted_1$5)}}}),MarkdownUi=_export_sfc$1(_sfc_main$6,[["__scopeId","data-v-c4020e22"]]),_withScopeId$1=nA=>(vue.pushScopeId("data-v-52cb44f0"),nA=nA(),vue.popScopeId(),nA),_hoisted_1$2={class:"documentation-display"},_hoisted_2$2={class:"document-meta"},_hoisted_3$2={class:"document-meta-start"},_hoisted_4$1={class:"document-title meta-section"},_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("span",{class:"document-title-extension"},"md",-1)),_hoisted_6$1={key:0,class:"document-status meta-section"},_hoisted_7$1={class:"meta-label"},_hoisted_8$1={key:1,class:"document-create meta-section"},_hoisted_9$1={class:"meta-label"},_hoisted_10={class:"document-display-actions"},_hoisted_11={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},_hoisted_12={key:1},_sfc_main$3=vue.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","toggle-published","edit-markdown","save-markdown"],setup(nA,{expose:iA,emit:AA}){var UA;const sA=nA,lA=AA,pA=vue.ref(),{i18n:uA}=composables$1.useI18n(),gA=vue.ref(!0),bA=vue.computed(()=>{var TA,WA,PA,XA,qA;return((WA=(TA=sA.selectedDocument)==null?void 0:TA.document)==null?void 0:WA.title)||((qA=(XA=(PA=sA.selectedDocument)==null?void 0:PA.document)==null?void 0:XA.revision)==null?void 0:qA.title)||""}),yA=vue.computed(()=>""),CA=vue.ref(!1),_A=vue.ref(uA.t("documentation.common.unpublished")),kA=vue.ref(((UA=sA.selectedDocument)==null?void 0:UA.markdown)||""),QA=vue.ref(kA.value),IA=vue.ref(null),DA=()=>{pA.value.download()},LA=()=>{pA.value.edit()},FA=TA=>{lA("edit-markdown",TA==="edit")},NA=()=>{const TA=!CA.value;lA("toggle-published",TA),CA.value=TA,_A.value=TA?uA.t("documentation.common.published"):uA.t("documentation.common.unpublished")},jA=()=>{kA.value=QA.value,QA.value=kA.value},OA=TA=>{TA==="published"?(CA.value=!0,_A.value=uA.t("documentation.common.published")):(CA.value=!1,_A.value=uA.t("documentation.common.unpublished"))},GA=()=>{var TA;IA.value={children:sA.selectedDocument.ast,type:"document",version:1},kA.value=((TA=sA.selectedDocument)==null?void 0:TA.markdown)||"",QA.value=kA.value,gA.value=!1},zA=vue.ref(!1);return vue.watch(()=>sA.canEdit,async()=>{zA.value=await sA.canEdit()},{immediate:!0}),vue.watch(()=>sA.selectedDocument,TA=>{var WA;isObjectEmpty(TA)||(sA.hidePublishToggle||OA((WA=TA.document)==null?void 0:WA.status),(TA.ast||TA.markdown)&&GA())},{deep:!0,immediate:!0}),vue.onMounted(()=>{GA()}),iA({download:DA,edit:LA}),(TA,WA)=>{const PA=vue.resolveComponent("KBadge"),XA=vue.resolveComponent("KInputSwitch"),qA=vue.resolveComponent("KSkeleton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$2,[vue.createElementVNode("div",_hoisted_4$1,[vue.renderSlot(TA.$slots,"document-title",{},()=>[vue.createElementVNode("span",null,vue.toDisplayString(bA.value),1),vue.createTextVNode("."),_hoisted_5$1],!0)]),nA.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createElementVNode("span",_hoisted_7$1,vue.toDisplayString(vue.unref(uA).t("documentation.documentation_display.status_label")),1),vue.createVNode(PA,{appearance:CA.value?"success":"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(CA.value?vue.unref(uA).t("documentation.common.published"):vue.unref(uA).t("documentation.common.unpublished")),1)]),_:1},8,["appearance"])])),yA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$1,[vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(vue.unref(uA).t("documentation.documentation_display.added_label")),1),vue.createVNode(PA,{appearance:"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(yA.value),1)]),_:1})])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_10,[vue.createVNode(vue.unref(ls$2),{"auth-function":()=>nA.canEdit()},{default:vue.withCtx(()=>[!nA.hidePublishToggle&&!nA.card?(vue.openBlock(),vue.createBlock(XA,{key:0,modelValue:CA.value,"onUpdate:modelValue":WA[0]||(WA[0]=HA=>CA.value=HA),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:_A.value,"label-before":"",onClick:NA},null,8,["modelValue","label"])):vue.createCommentVNode("",!0)]),_:1},8,["auth-function"])])]),gA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11,[nA.card?(vue.openBlock(),vue.createBlock(qA,{key:1,type:"card"})):(vue.openBlock(),vue.createBlock(qA,{key:0,class:"markdown-content-loader"}))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[vue.createElementVNode("div",{class:vue.normalizeClass(["document-content",{"content-card-view":nA.card}])},[kA.value!==void 0?(vue.openBlock(),vue.createBlock(vue.unref(MarkdownUi),{key:0,ref_key:"markdownComponent",ref:pA,modelValue:kA.value,"onUpdate:modelValue":WA[1]||(WA[1]=HA=>kA.value=HA),downloadable:"",editable:zA.value,filename:bA.value,"max-height":700,mode:"read",theme:"light",onCancel:jA,onMode:WA[2]||(WA[2]=HA=>FA(HA)),onSave:WA[3]||(WA[3]=HA=>lA("save-markdown",HA.content))},null,8,["modelValue","editable","filename"])):vue.createCommentVNode("",!0)],2)]))])}}}),_export_sfc=(nA,iA)=>{const AA=nA.__vccOpts||nA;for(const[sA,lA]of iA)AA[sA]=lA;return AA},DocumentationDisplay=_export_sfc(_sfc_main$3,[["__scopeId","data-v-52cb44f0"]]),I$7="24px",s$5=(nA,iA)=>{const AA=nA.__vccOpts||nA;for(const[sA,lA]of iA)AA[sA]=lA;return AA},N$6=nA=>(vue.pushScopeId("data-v-c1f7c39c"),nA=nA(),vue.popScopeId(),nA),b$7=["aria-hidden"],x$6={key:0,"data-testid":"kui-icon-svg-title"},z$a=N$6(()=>vue.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),I$6=vue.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$7,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$7}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",x$6,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),z$a],8,b$7))]),_:1},8,["aria-hidden","style"]))}}),m$8=s$5(I$6,[["__scopeId","data-v-c1f7c39c"]]),c$5=nA=>(vue.pushScopeId("data-v-ae02d9ee"),nA=nA(),vue.popScopeId(),nA),b$6=["aria-hidden"],N$5={key:0,"data-testid":"kui-icon-svg-title"},x$5=c$5(()=>vue.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),z$9=c$5(()=>vue.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),I$5=vue.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$7,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$7}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$5,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$5,z$9],8,b$6))]),_:1},8,["aria-hidden","style"]))}}),a$i=s$5(I$5,[["__scopeId","data-v-ae02d9ee"]]),_sfc_main$2=vue.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(nA,{emit:iA}){const AA=iA,{i18n:sA}=composables$1.useI18n();return(lA,pA)=>{const uA=vue.resolveComponent("KButton"),gA=vue.resolveComponent("KEmptyState");return vue.openBlock(),vue.createBlock(gA,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state","icon-variant":"kong"},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(sA).t("documentation.show.empty_state.title")),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(sA).t("documentation.show.empty_state.message")),1)]),action:vue.withCtx(()=>[vue.createVNode(vue.unref(ls$2),{"auth-function":()=>nA.canEdit()},{default:vue.withCtx(()=>[vue.createVNode(uA,{"data-testid":"add-new-page-button",onClick:pA[0]||(pA[0]=bA=>AA("create-documentation"))},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(m$8)),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(sA).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),externalLinks={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},_withScopeId=nA=>(vue.pushScopeId("data-v-c2726da6"),nA=nA(),vue.popScopeId(),nA),_hoisted_1$1={class:"title"},_hoisted_2$1={class:"subtitle"},_hoisted_3$1=_withScopeId(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_4={key:2,class:"document-radio-group"},_hoisted_5={class:"document-inputs"},_hoisted_6={class:"page-name side-by-side"},_hoisted_7={class:"url-slug side-by-side"},_hoisted_8={key:4,class:"documentation-status"},_hoisted_9={class:"button-spacing"},_sfc_main$1=vue.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["edit","cancel","save","delete"],setup(nA,{emit:iA}){const AA=nA,sA=iA,{i18n:lA}=composables$1.useI18n(),pA=vue.computed(()=>{var TA;return(TA=AA.record.file)==null?void 0:TA.filename}),uA=vue.computed(()=>{var TA;return FA.value?(TA=FA.value.name)==null?void 0:TA.split(".")[0]:""}),gA=vue.ref(!0),bA=vue.computed(()=>gA.value?"published":"unpublished"),yA=vue.ref("upload"),CA=vue.reactive({fileName:"",pageName:"",urlSlug:"",status:bA.value,parent:""}),_A=/^[\w-]+$/,kA=vue.computed(()=>{var TA;return CA.urlSlug!==""&&!((TA=CA.urlSlug)!=null&&TA.match(_A))}),QA=vue.computed(()=>{var PA;let TA=(PA=AA.documents)==null?void 0:PA.filter(XA=>{var qA;return XA.record.id!==((qA=AA.record)==null?void 0:qA.id)&&!XA.record.parent_document_id}).map(XA=>({label:XA.record.title,value:XA.record.id,selected:!1}));TA||(TA=[]);const WA=cloneDeep(TA.length);return TA.push({label:lA.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!WA}),TA}),IA=vue.computed(()=>AA.editing?lA.t("documentation.form_modal.edit_title"):lA.t("documentation.form_modal.create_title")),DA=vue.computed(()=>AA.editing?lA.t("documentation.form_modal.replace_file_button_text"):lA.t("documentation.form_modal.filename_button_text")),LA=vue.computed(()=>bA.value==="published"?lA.t("documentation.common.published"):lA.t("documentation.common.unpublished")),FA=vue.ref(null),NA=TA=>{FA.value=TA==null?void 0:TA[0],CA.fileName=uA.value,CA.pageName=CA.pageName?CA.pageName:uA.value,CA.urlSlug=CA.urlSlug?CA.urlSlug:uA.value},jA=vue.computed(()=>{if(!AA.editing){if(yA.value==="upload")return!(FA.value&&CA.pageName&&CA.urlSlug&&!kA.value);if(yA.value==="empty")return!(CA.pageName&&CA.urlSlug&&!kA.value)}return!1}),OA=()=>{FA.value=null},GA=()=>{sA("cancel"),UA()},zA=()=>{const TA=vue.ref(null);if(yA.value==="empty"){const WA=new File([],CA.pageName+".md",{type:"text/markdown"});TA.value=WA,sA("save",Object.assign(CA,{fileName:CA.pageName},{status:bA.value}),TA)}else sA("save",Object.assign(CA,{status:bA.value}),FA)},UA=()=>{var TA,WA,PA,XA,qA;if(FA.value=null,AA.editing&&((TA=AA.record)!=null&&TA.document)){const HA=cloneDeep(AA.record),Ml=HA.status||AA.record.document.status||gA.value;CA.fileName=((WA=HA.document.file)==null?void 0:WA.filename)||((XA=(PA=HA.document.revision)==null?void 0:PA.file)==null?void 0:XA.filename),CA.pageName=HA.document.title||((qA=HA.document.revision)==null?void 0:qA.title),CA.urlSlug=HA.document.slug,CA.parent=HA.document.parent_document_id,CA.status=Ml,gA.value=Ml==="published"}else CA.fileName="",CA.pageName="",CA.urlSlug="",CA.parent="",CA.status=""};return vue.watch(()=>yA,()=>{UA()},{deep:!0,immediate:!0}),vue.onMounted(()=>{UA()}),(TA,WA)=>{const PA=vue.resolveComponent("KExternalLink"),XA=vue.resolveComponent("KAlert"),qA=vue.resolveComponent("KRadio"),HA=vue.resolveComponent("KFileUpload"),Ml=vue.resolveComponent("KInput"),Rl=vue.resolveComponent("KLabel"),Pl=vue.resolveComponent("KInputSwitch"),Wl=vue.resolveComponent("KSelect"),_l=vue.resolveComponent("KButton"),zl=vue.resolveComponent("KModal");return vue.openBlock(),vue.createBlock(vue.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[vue.createVNode(zl,{class:"edit-document-modal","data-testid":"edit-document-modal","max-width":"750px",visible:"",onCancel:GA,onProceed:zA},{title:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1,[vue.createTextVNode(vue.toDisplayString(IA.value)+" ",1),vue.createElementVNode("div",_hoisted_2$1,[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.subtitle"))+" ",1),_hoisted_3$1,vue.createVNode(PA,{class:"doc-link",href:vue.unref(externalLinks).serviceDocumentationDocs},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),default:vue.withCtx(()=>[nA.errorMessage?(vue.openBlock(),vue.createBlock(XA,{key:0,appearance:"danger",class:"bottom-spacing",message:nA.errorMessage},null,8,["message"])):vue.createCommentVNode("",!0),nA.editing?(vue.openBlock(),vue.createBlock(XA,{key:1,appearance:"info",class:"bottom-spacing",message:vue.unref(lA).t("documentation.form_modal.edit_markdown"),"show-icon":""},null,8,["message"])):vue.createCommentVNode("",!0),nA.editing?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4,[vue.createElementVNode("div",null,[vue.createVNode(qA,{modelValue:yA.value,"onUpdate:modelValue":WA[0]||(WA[0]=ql=>yA.value=ql),class:"upload-document-radio","data-testid":"upload-document-radio","selected-value":"upload"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.file_label")),1)]),_:1},8,["modelValue"])]),vue.createElementVNode("div",null,[vue.createVNode(qA,{modelValue:yA.value,"onUpdate:modelValue":WA[1]||(WA[1]=ql=>yA.value=ql),class:"empty-document-radio","data-testid":"empty-document-radio","selected-value":"empty"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.empty_doc")),1)]),_:1},8,["modelValue"])])])),yA.value==="upload"?(vue.openBlock(),vue.createBlock(HA,{key:3,accept:[".md",".markdown"],"button-text":DA.value,class:"document-file-upload","data-testid":"document-file-upload",label:vue.unref(lA).t("documentation.form_modal.file_label"),"label-attributes":{info:vue.unref(lA).t("documentation.form_modal.file_tooltip")},placeholder:nA.editing?pA.value:void 0,required:"",onFileAdded:NA,onFileRemoved:OA},null,8,["accept","button-text","label","label-attributes","placeholder"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,[vue.createVNode(Ml,{modelValue:CA.pageName,"onUpdate:modelValue":WA[2]||(WA[2]=ql=>CA.pageName=ql),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:vue.unref(lA).t("documentation.form_modal.title_label"),placeholder:vue.unref(lA).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),vue.createElementVNode("div",_hoisted_7,[vue.createVNode(Ml,{modelValue:CA.urlSlug,"onUpdate:modelValue":WA[3]||(WA[3]=ql=>CA.urlSlug=ql),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":vue.unref(lA).t("documentation.form_modal.slug_error"),"has-error":kA.value,label:vue.unref(lA).t("documentation.form_modal.slug_label"),pattern:_A,placeholder:vue.unref(lA).t("documentation.form_modal.slug_placeholder"),required:""},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),nA.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,[vue.createElementVNode("div",null,[vue.createVNode(Rl,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.status_label")),1)]),_:1})]),vue.createVNode(Pl,{modelValue:gA.value,"onUpdate:modelValue":WA[4]||(WA[4]=ql=>gA.value=ql),"data-testid":"documentation-status",label:LA.value},null,8,["modelValue","label"])])),vue.createVNode(Wl,{modelValue:CA.parent,"onUpdate:modelValue":WA[5]||(WA[5]=ql=>CA.parent=ql),class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:QA.value,label:vue.unref(lA).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),footer:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_9,[vue.createVNode(_l,{appearance:"tertiary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:GA},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),vue.createVNode(_l,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:nA.actionPending||jA.value,onClick:zA},{default:vue.withCtx(()=>[nA.actionPending?(vue.openBlock(),vue.createBlock(vue.unref(a$i),{key:0})):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.save_button_text")),1)]),_:1},8,["disabled"])])]),_:1})])}}}),ProductDocumentModal=_export_sfc(_sfc_main$1,[["__scopeId","data-v-c2726da6"]]),_hoisted_1={class:"documentation"},_hoisted_2={key:0},_hoisted_3={key:1,class:"documentation-parent-container"},_sfc_main=vue.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},emptyStateCard:{type:Boolean,default:!1},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","document-selection","modal-closed","parent-change","save","save-markdown","toggle-published"],setup(nA,{expose:iA,emit:AA}){const sA=AA,lA=vue.ref(!1),pA=vue.ref(!1),uA=vue.ref(),gA=nA;vue.watch(()=>gA.actionSuccess,QA=>{QA&&kA()});const bA=vue.computed(()=>{var QA,IA;return`data-display-${gA.cacheKey}-${((IA=(QA=gA.selectedDocument)==null?void 0:QA.document)==null?void 0:IA.id)||""}`}),yA=()=>{pA.value=!1,lA.value=!0},CA=()=>{uA.value.download()},_A=()=>{uA.value.edit()},kA=()=>{lA.value=!1,sA("modal-closed")};return iA({download:CA,edit:_A}),(QA,IA)=>{const DA=vue.resolveComponent("KCard"),LA=vue.resolveComponent("KTreeList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[nA.documentList&&!nA.documentList.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[nA.emptyStateCard?(vue.openBlock(),vue.createBlock(DA,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2,{"can-edit":nA.canEdit,onCreateDocumentation:yA},null,8,["can-edit"])]),_:1})):(vue.openBlock(),vue.createBlock(_sfc_main$2,{key:1,"can-edit":nA.canEdit,onCreateDocumentation:yA},null,8,["can-edit"]))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[(vue.openBlock(),vue.createBlock(LA,{key:`tree-list-${nA.cacheKey}`,class:"document-tree-list",items:nA.documentList,"max-depth":2,onChange:IA[0]||(IA[0]=FA=>sA("parent-change",FA)),onChildChange:IA[1]||(IA[1]=FA=>sA("child-change",FA)),onSelected:IA[2]||(IA[2]=FA=>sA("document-selection",FA))},null,8,["items"])),nA.selectedDocument?(vue.openBlock(),vue.createBlock(DocumentationDisplay,{key:bA.value,ref_key:"documentationDisplay",ref:uA,"can-edit":nA.canEdit,card:nA.card,class:"document-holder","hide-publish-toggle":nA.hidePublishToggle,"selected-document":nA.selectedDocument,onAdd:yA,onSaveMarkdown:IA[3]||(IA[3]=FA=>sA("save-markdown",FA)),onTogglePublished:IA[4]||(IA[4]=FA=>sA("toggle-published",FA))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):vue.createCommentVNode("",!0)])),lA.value?(vue.openBlock(),vue.createBlock(ProductDocumentModal,{key:2,"action-pending":nA.actionPending,documents:nA.documentList,editing:pA.value,"error-message":nA.modalErrorMessage,"hide-publish-toggle":nA.hidePublishToggle,record:pA.value&&nA.selectedDocument?nA.selectedDocument:void 0,onCancel:kA,onDelete:IA[5]||(IA[5]=FA=>sA("delete")),onSave:IA[6]||(IA[6]=(FA,NA)=>sA("save",FA,NA))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):vue.createCommentVNode("",!0)])}}}),DocumentationContent=_export_sfc(_sfc_main,[["__scopeId","data-v-ce1efed9"]]);var e$P=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#FAFAFA","activityBar.border":"#FAFAFA60","activityBar.dropBackground":"#E5393580","activityBar.foreground":"#90A4AE","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#CCD7DA30","badge.foreground":"#90A4AE","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#FAFAFA","breadcrumb.focusForeground":"#90A4AE","breadcrumb.foreground":"#758a95","breadcrumbPicker.background":"#FAFAFA","button.background":"#80CBC440","button.foreground":"#ffffff","debugConsole.errorForeground":"#E53935","debugConsole.infoForeground":"#39ADB5","debugConsole.warningForeground":"#E2931D","debugToolBar.background":"#FAFAFA","diffEditor.insertedTextBackground":"#39ADB520","diffEditor.removedTextBackground":"#FF537020","dropdown.background":"#FAFAFA","dropdown.border":"#00000010","editor.background":"#FAFAFA","editor.findMatchBackground":"#00000020","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#90A4AE","editor.findMatchHighlightBackground":"#00000010","editor.findMatchHighlightBorder":"#00000030","editor.findRangeHighlightBackground":"#E2931D30","editor.foreground":"#90A4AE","editor.lineHighlightBackground":"#CCD7DA50","editor.lineHighlightBorder":"#CCD7DA00","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#80CBC440","editor.selectionHighlightBackground":"#27272720","editor.wordHighlightBackground":"#FF537030","editor.wordHighlightStrongBackground":"#91B85930","editorBracketMatch.background":"#FAFAFA","editorBracketMatch.border":"#27272750","editorCursor.foreground":"#272727","editorError.foreground":"#E5393570","editorGroup.border":"#00000020","editorGroup.dropBackground":"#E5393580","editorGroup.focusedEmptyBorder":"#E53935","editorGroupHeader.tabsBackground":"#FAFAFA","editorGutter.addedBackground":"#91B85960","editorGutter.deletedBackground":"#E5393560","editorGutter.modifiedBackground":"#6182B860","editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#00000010","editorIndentGuide.activeBackground":"#B0BEC5","editorIndentGuide.background":"#B0BEC570","editorInfo.foreground":"#6182B870","editorLineNumber.activeForeground":"#758a95","editorLineNumber.foreground":"#CFD8DC","editorLink.activeForeground":"#90A4AE","editorMarkerNavigation.background":"#90A4AE05","editorOverviewRuler.border":"#FAFAFA","editorOverviewRuler.errorForeground":"#E5393540","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#6182B840","editorOverviewRuler.warningForeground":"#E2931D40","editorRuler.foreground":"#B0BEC5","editorSuggestWidget.background":"#FAFAFA","editorSuggestWidget.border":"#00000010","editorSuggestWidget.foreground":"#90A4AE","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#CCD7DA50","editorWarning.foreground":"#E2931D70","editorWhitespace.foreground":"#90A4AE40","editorWidget.background":"#FAFAFA","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#90A4AE","extensionButton.prominentBackground":"#91B85990","extensionButton.prominentForeground":"#90A4AE","extensionButton.prominentHoverBackground":"#91B859",focusBorder:"#FFFFFF00",foreground:"#90A4AE","gitDecoration.conflictingResourceForeground":"#E2931D90","gitDecoration.deletedResourceForeground":"#E5393590","gitDecoration.ignoredResourceForeground":"#758a9590","gitDecoration.modifiedResourceForeground":"#6182B890","gitDecoration.untrackedResourceForeground":"#91B85990","input.background":"#EEEEEE","input.border":"#00000010","input.foreground":"#90A4AE","input.placeholderForeground":"#90A4AE60","inputOption.activeBackground":"#90A4AE30","inputOption.activeBorder":"#90A4AE30","inputValidation.errorBorder":"#E53935","inputValidation.infoBorder":"#6182B8","inputValidation.warningBorder":"#E2931D","list.activeSelectionBackground":"#FAFAFA","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#E5393580","list.focusBackground":"#90A4AE20","list.focusForeground":"#90A4AE","list.highlightForeground":"#80CBC4","list.hoverBackground":"#FAFAFA","list.hoverForeground":"#B1C7D3","list.inactiveSelectionBackground":"#CCD7DA50","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#CCD7DA50","listFilterWidget.noMatchesOutline":"#CCD7DA50","listFilterWidget.outline":"#CCD7DA50","menu.background":"#FAFAFA","menu.foreground":"#90A4AE","menu.selectionBackground":"#CCD7DA50","menu.selectionBorder":"#CCD7DA50","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#90A4AE","menubar.selectionBackground":"#CCD7DA50","menubar.selectionBorder":"#CCD7DA50","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#FAFAFA","notifications.foreground":"#90A4AE","panel.background":"#FAFAFA","panel.border":"#FAFAFA60","panel.dropBackground":"#90A4AE","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#000000","panelTitle.inactiveForeground":"#90A4AE","peekView.border":"#00000020","peekViewEditor.background":"#EEEEEE","peekViewEditor.matchHighlightBackground":"#80CBC440","peekViewEditorGutter.background":"#EEEEEE","peekViewResult.background":"#EEEEEE","peekViewResult.matchHighlightBackground":"#80CBC440","peekViewResult.selectionBackground":"#758a9570","peekViewTitle.background":"#EEEEEE","peekViewTitleDescription.foreground":"#90A4AE60","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#FAFAFA","quickInput.foreground":"#758a95","quickInput.list.focusBackground":"#90A4AE20","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000020","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#90A4AE20","scrollbarSlider.hoverBackground":"#90A4AE10","selection.background":"#CCD7DA80","settings.checkboxBackground":"#FAFAFA","settings.checkboxForeground":"#90A4AE","settings.dropdownBackground":"#FAFAFA","settings.dropdownForeground":"#90A4AE","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#FAFAFA","settings.numberInputForeground":"#90A4AE","settings.textInputBackground":"#FAFAFA","settings.textInputForeground":"#90A4AE","sideBar.background":"#FAFAFA","sideBar.border":"#FAFAFA60","sideBar.foreground":"#758a95","sideBarSectionHeader.background":"#FAFAFA","sideBarSectionHeader.border":"#FAFAFA60","sideBarTitle.foreground":"#90A4AE","statusBar.background":"#FAFAFA","statusBar.border":"#FAFAFA60","statusBar.debuggingBackground":"#9C3EDA","statusBar.debuggingForeground":"#FFFFFF","statusBar.foreground":"#7E939E","statusBar.noFolderBackground":"#FAFAFA","statusBarItem.activeBackground":"#E5393580","statusBarItem.hoverBackground":"#90A4AE20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#FAFAFA","tab.activeBorder":"#80CBC4","tab.activeForeground":"#000000","tab.activeModifiedBorder":"#758a95","tab.border":"#FAFAFA","tab.inactiveBackground":"#FAFAFA","tab.inactiveForeground":"#758a95","tab.inactiveModifiedBorder":"#89221f","tab.unfocusedActiveBorder":"#90A4AE","tab.unfocusedActiveForeground":"#90A4AE","tab.unfocusedActiveModifiedBorder":"#b72d2a","tab.unfocusedInactiveModifiedBorder":"#89221f","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#6182B8","terminal.ansiBrightBlack":"#90A4AE","terminal.ansiBrightBlue":"#6182B8","terminal.ansiBrightCyan":"#39ADB5","terminal.ansiBrightGreen":"#91B859","terminal.ansiBrightMagenta":"#9C3EDA","terminal.ansiBrightRed":"#E53935","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#E2931D","terminal.ansiCyan":"#39ADB5","terminal.ansiGreen":"#91B859","terminal.ansiMagenta":"#9C3EDA","terminal.ansiRed":"#E53935","terminal.ansiWhite":"#FFFFFF","terminal.ansiYellow":"#E2931D","terminalCursor.background":"#000000","terminalCursor.foreground":"#E2931D","textLink.activeForeground":"#90A4AE","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#FAFAFA","titleBar.activeForeground":"#90A4AE","titleBar.border":"#FAFAFA60","titleBar.inactiveBackground":"#FAFAFA","titleBar.inactiveForeground":"#758a95","tree.indentGuidesStroke":"#B0BEC5","widget.shadow":"#00000020"},displayName:"Material Theme Lighter",name:"material-theme-lighter",semanticHighlighting:!0,tokenColors:[{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:"string",settings:{foreground:"#91B859"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#39ADB5"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#90A4AE"}},{scope:"constant.language.boolean",settings:{foreground:"#FF5370"}},{scope:"constant.numeric",settings:{foreground:"#F76D47"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#90A4AE"}},{scope:"keyword.other",settings:{foreground:"#F76D47"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#39ADB5"}},{scope:"entity.name.function, support.function",settings:{foreground:"#6182B8"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#9C3EDA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"support.type, constant.other.key",settings:{foreground:"#E2931D"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#E2931D"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"punctuation",settings:{foreground:"#39ADB5"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#E2931D"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.function entity.name.function",settings:{foreground:"#6182B8"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#39ADB5"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#90A4AE"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#E53935"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#E53935"}},{scope:"constant.language.json",settings:{foreground:"#39ADB5"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#E2931D"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F76D47"}},{scope:"source.css entity.name.tag",settings:{foreground:"#E2931D"}},{scope:"support.type.property-name.css",settings:{foreground:"#8796B0"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#39ADB5"}},{scope:"entity.name.tag",settings:{foreground:"#E53935"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9C3EDA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#90A4AE"}},{scope:"markup.heading",settings:{foreground:"#39ADB5"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#E53935"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#39ADB5"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#E53935"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#E53935"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#91B859"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#91B859"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#E53935"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#39ADB5"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#E53935"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#6182B8"}},{scope:"source.cs storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#90A4AE"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#90A4AE"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#90A4AE"}},{scope:"support.class.component",settings:{foreground:"#E2931D"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#90A4AE"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#E53935"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#6182B8"}},{scope:"meta.block",settings:{foreground:"#E53935"}},{scope:"entity.name.function.call",settings:{foreground:"#6182B8"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#90A4AE"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:"entity.name.function",settings:{foreground:"#6182B8"}},{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:["constant.other.placeholder"],settings:{foreground:"#E53935"}},{scope:["markup.deleted"],settings:{foreground:"#E53935"}},{scope:["markup.inserted"],settings:{foreground:"#91B859"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F76D47"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#90A4AE90"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E2931D"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F76D47"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E53935"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#6182B8"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#91B859"}}],type:"light"});const materialThemeLighterCtwOYHJ5=Object.freeze(Object.defineProperty({__proto__:null,default:e$P},Symbol.toStringTag,{value:"Module"}));var e$O=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#292D3E","activityBar.border":"#292D3E60","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#babed8","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#676E95","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#292D3E","breadcrumb.focusForeground":"#babed8","breadcrumb.foreground":"#676E95","breadcrumbPicker.background":"#292D3E","button.background":"#717CB450","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#292D3E","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#292D3E","dropdown.border":"#FFFFFF10","editor.background":"#292D3E","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#babed8","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#babed8","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#717CB450","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#292D3E","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#292D3E","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#292D3E","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#4E5579","editorIndentGuide.background":"#4E557970","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#676E95","editorLineNumber.foreground":"#3A3F58","editorLink.activeForeground":"#babed8","editorMarkerNavigation.background":"#babed805","editorOverviewRuler.border":"#292D3E","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#4E5579","editorSuggestWidget.background":"#292D3E","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#babed8","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#babed840","editorWidget.background":"#292D3E","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#babed8","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#babed8","extensionButton.prominentHoverBackground":"#C3E88D",focusBorder:"#FFFFFF00",foreground:"#babed8","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#676E9590","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#333747","input.border":"#FFFFFF10","input.foreground":"#babed8","input.placeholderForeground":"#babed860","inputOption.activeBackground":"#babed830","inputOption.activeBorder":"#babed830","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#292D3E","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#babed820","list.focusForeground":"#babed8","list.highlightForeground":"#80CBC4","list.hoverBackground":"#292D3E","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#292D3E","menu.foreground":"#babed8","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#babed8","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#292D3E","notifications.foreground":"#babed8","panel.background":"#292D3E","panel.border":"#292D3E60","panel.dropBackground":"#babed8","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#babed8","peekView.border":"#00000030","peekViewEditor.background":"#333747","peekViewEditor.matchHighlightBackground":"#717CB450","peekViewEditorGutter.background":"#333747","peekViewResult.background":"#333747","peekViewResult.matchHighlightBackground":"#717CB450","peekViewResult.selectionBackground":"#676E9570","peekViewTitle.background":"#333747","peekViewTitleDescription.foreground":"#babed860","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#292D3E","quickInput.foreground":"#676E95","quickInput.list.focusBackground":"#babed820","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#A6ACCD20","scrollbarSlider.hoverBackground":"#A6ACCD10","selection.background":"#00000080","settings.checkboxBackground":"#292D3E","settings.checkboxForeground":"#babed8","settings.dropdownBackground":"#292D3E","settings.dropdownForeground":"#babed8","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#292D3E","settings.numberInputForeground":"#babed8","settings.textInputBackground":"#292D3E","settings.textInputForeground":"#babed8","sideBar.background":"#292D3E","sideBar.border":"#292D3E60","sideBar.foreground":"#676E95","sideBarSectionHeader.background":"#292D3E","sideBarSectionHeader.border":"#292D3E60","sideBarTitle.foreground":"#babed8","statusBar.background":"#292D3E","statusBar.border":"#292D3E60","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#676E95","statusBar.noFolderBackground":"#292D3E","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#676E9520","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#292D3E","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#676E95","tab.border":"#292D3E","tab.inactiveBackground":"#292D3E","tab.inactiveForeground":"#676E95","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#676E95","tab.unfocusedActiveForeground":"#babed8","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#676E95","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#babed8","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#292D3E","titleBar.activeForeground":"#babed8","titleBar.border":"#292D3E60","titleBar.inactiveBackground":"#292D3E","titleBar.inactiveForeground":"#676E95","tree.indentGuidesStroke":"#4E5579","widget.shadow":"#00000030"},displayName:"Material Theme Palenight",name:"material-theme-palenight",semanticHighlighting:!0,tokenColors:[{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:"string",settings:{foreground:"#C3E88D"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#89DDFF"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#babed8"}},{scope:"constant.language.boolean",settings:{foreground:"#ff9cac"}},{scope:"constant.numeric",settings:{foreground:"#F78C6C"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#babed8"}},{scope:"keyword.other",settings:{foreground:"#F78C6C"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#89DDFF"}},{scope:"entity.name.function, support.function",settings:{foreground:"#82AAFF"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#C792EA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"support.type, constant.other.key",settings:{foreground:"#FFCB6B"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#FFCB6B"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"punctuation",settings:{foreground:"#89DDFF"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#FFCB6B"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.function entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#89DDFF"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#babed8"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#f07178"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#f07178"}},{scope:"constant.language.json",settings:{foreground:"#89DDFF"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#FFCB6B"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F78C6C"}},{scope:"source.css entity.name.tag",settings:{foreground:"#FFCB6B"}},{scope:"support.type.property-name.css",settings:{foreground:"#B2CCD6"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#89DDFF"}},{scope:"entity.name.tag",settings:{foreground:"#f07178"}},{scope:"entity.other.attribute-name",settings:{foreground:"#C792EA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#babed8"}},{scope:"markup.heading",settings:{foreground:"#89DDFF"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#f07178"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#89DDFF"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#f07178"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#f07178"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#C3E88D"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#C3E88D"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#f07178"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#89DDFF"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#f07178"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"source.cs storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#676E95"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#babed8"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#babed8"}},{scope:"support.class.component",settings:{foreground:"#FFCB6B"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#babed8"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#f07178"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#82AAFF"}},{scope:"meta.block",settings:{foreground:"#f07178"}},{scope:"entity.name.function.call",settings:{foreground:"#82AAFF"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#babed8"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:"entity.name.function",settings:{foreground:"#82AAFF"}},{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:["constant.other.placeholder"],settings:{foreground:"#f07178"}},{scope:["markup.deleted"],settings:{foreground:"#f07178"}},{scope:["markup.inserted"],settings:{foreground:"#C3E88D"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F78C6C"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#babed890"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FFCB6B"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F78C6C"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#f07178"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#82AAFF"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C3E88D"}}],type:"dark"});const materialThemePalenightLzvMi3a5=Object.freeze(Object.defineProperty({__proto__:null,default:e$O},Symbol.toStringTag,{value:"Module"})),n$D=Object.freeze({displayName:"JSON",name:"json",patterns:[{include:"#value"}],repository:{array:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.array.begin.json"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.array.end.json"}},name:"meta.structure.array.json",patterns:[{include:"#value"},{match:",",name:"punctuation.separator.array.json"},{match:"[^\\s\\]]",name:"invalid.illegal.expected-array-separator.json"}]},comments:{patterns:[{begin:"/\\*\\*(?!/)",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.documentation.json"},{begin:"/\\*",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.json"},{captures:{1:{name:"punctuation.definition.comment.json"}},match:"(//).*$\\n?",name:"comment.line.double-slash.js"}]},constant:{match:"\\b(?:true|false|null)\\b",name:"constant.language.json"},number:{match:`(?x)
208
+ */window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(nA){mermaid.parseError=nA},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const nA=executionQueue.shift();if(nA)try{await nA()}catch(iA){log$1.error("Error executing queue",iA)}}executionQueueRunning=!1}},parse=async(nA,iA)=>new Promise((AA,sA)=>{const lA=()=>new Promise((pA,uA)=>{mermaidAPI.parse(nA,iA).then(gA=>{pA(gA),AA(gA)},gA=>{var bA;log$1.error("Error parsing",gA),(bA=mermaid.parseError)==null||bA.call(mermaid,gA),uA(gA),sA(gA)})});executionQueue.push(lA),executeQueue().catch(sA)}),render=(nA,iA,AA)=>new Promise((sA,lA)=>{const pA=()=>new Promise((uA,gA)=>{mermaidAPI.render(nA,iA,AA).then(bA=>{uA(bA),sA(bA)},bA=>{var yA;log$1.error("Error parsing",bA),(yA=mermaid.parseError)==null||yA.call(mermaid,bA),gA(bA),lA(bA)})});executionQueue.push(pA),executeQueue().catch(lA)}),mermaid={startOnLoad:!0,mermaidAPI,parse,render,init,run,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler,detectType},_withScopeId$2=nA=>(vue.pushScopeId("data-v-c4020e22"),nA=nA(),vue.popScopeId(),nA),_hoisted_1$5=["id"],_hoisted_2$4={class:"markdown-panes"},_hoisted_3$3={key:0,class:"markdown-editor","data-testid":"markdown-editor"},_hoisted_4$3=["id","value"],_hoisted_5$2={class:"markdown-content-container","data-testid":"markdown-content-container"},_hoisted_6$2={key:0,class:"content-actions"},_hoisted_7$2={key:0,class:"download-button"},_hoisted_8$2=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Download",-1)),_hoisted_9$2={key:1,class:"edit-button"},_hoisted_10$1=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Edit",-1)),_sfc_main$6=vue.defineComponent({__name:"MarkdownUi",props:{modelValue:{type:String,default:""},editable:{type:Boolean,default:!1},downloadable:{type:Boolean,default:!1},filename:{type:String,default:"document"},mode:{type:String,default:"read",validator:nA=>["read","edit","split","preview"].includes(nA)},tabSize:{type:Number,default:2,validator:nA=>nA>=2&&nA<=6},theme:{type:String,default:"",validator:nA=>["","light","dark"].includes(nA)},maxHeight:{type:Number,default:300,validator:nA=>nA>=100},fullscreenOffsetTop:{type:Number,default:0},fullscreenZIndex:{type:Number,default:1001}},emits:["update:modelValue","update:frontmatter","save","cancel","mode","fullscreen"],setup(nA,{expose:iA,emit:AA}){vue.useCssVars(jb=>({"6a3eabcd":sb.value,"107b282e":U0.value,ff4ef2d2:jb.$props.fullscreenZIndex,"6a32dbec":Ib.value,"428718ae":vue.unref(TOOLBAR_HEIGHT)}));const sA=nA,lA=AA,pA=vue.ref(null),uA=vue.ref(null),{init:gA,md:bA}=composables.useMarkdownIt(),yA=v4(),CA=vue.computed(()=>`markdown-ui-${yA}`),_A=vue.computed(()=>`markdown-ui-textarea-${yA}`),kA=vue.computed(()=>`scrollable-${yA}`),QA=vue.computed(()=>sA.tabSize),IA=usePreferredColorScheme(),DA=vue.computed(()=>sA.theme?sA.theme:IA.value==="dark"?IA.value:"light"),LA=vue.ref(["edit","split","preview"].includes(sA.mode)&&sA.editable?sA.mode:"read"),FA=vue.ref(!1),NA=vue.ref(!1);vue.provide(UNIQUE_ID_INJECTION_KEY,yA),vue.provide(TEXTAREA_ID_INJECTION_KEY,_A),vue.provide(MODE_INJECTION_KEY,LA),vue.provide(EDITABLE_INJECTION_KEY,vue.computed(()=>sA.editable)),vue.provide(FULLSCREEN_INJECTION_KEY,FA),vue.provide(THEME_INJECTION_KEY,DA),vue.provide(HTML_PREVIEW_INJECTION_KEY,NA);const{initializeSyncScroll:jA,destroySyncScroll:OA}=composables.useSyncScroll(kA),{debounce:GA}=composables.useDebounce();vue.watch(LA,async jb=>{switch(jb){case"edit":NA.value=!1;break;case"split":break;case"preview":break;case"read":NA.value=!1,FA.value=!1;break}lA("mode",jb),OA(),await vue.nextTick(),await Wl(),jA()});const zA=jb=>{var rb;const sw={},gb=(rb=bA.value)==null?void 0:rb.render(jb,sw);return TA.value=sw.frontmatter,gb},UA=vue.ref(sA.modelValue),TA=vue.ref(),WA=vue.ref(""),PA=vue.ref(""),{toggleInlineFormatting:XA,insertMarkdownTemplate:qA,insertLink:HA,insertImage:Ml}=composables.useMarkdownActions(pA,UA),Rl=jb=>{jb==="link"?HA():jb==="image"?Ml():XA(jb),tb()},Pl=jb=>{qA(jb),tb()};vue.watchEffect(()=>{var jb;NA.value&&(PA.value=(jb=bA.value)==null?void 0:jb.render("```html"+NEW_LINE_CHARACTER+formatHtml(WA.value," ".repeat(QA.value))+NEW_LINE_CHARACTER+"```"))});const Wl=async()=>{if(typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.run)=="function"){const jb=`#${CA.value} .markdown-content-container .mermaid`;document.querySelector(jb)&&await mermaid.run({querySelector:jb,suppressErrors:!0})}},_l=()=>{try{const jb=new Blob([UA.value],{type:"text/markdown;charset=utf-8"}),rb=URL.createObjectURL(jb),sw=document.createElement("a");sw.href=rb,sw.download=`${sA.filename.replace(/ /g,"-").replace(/[^-+.a-zA-Z0-9_]/g,"").replace(/(\.md)+$/g,"")}.md`,sw.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(rb),sw.remove()},100)}catch(jb){console.warn("download",jb)}},zl=(jb,rb=!0)=>{UA.value=jb.target.value,ql(rb)},ql=GA(async(jb=!0)=>{WA.value=zA(UA.value),await vue.nextTick(),jb&&(lA("update:modelValue",UA.value),lA("update:frontmatter",TA.value)),await vue.nextTick(),await Wl()},EDITOR_DEBOUNCE_TIMEOUT),tb=(jb=!0)=>{const rb={target:{value:UA.value}};zl(rb,jb)};vue.watch(()=>sA.modelValue,jb=>{UA.value=jb,tb(!1)});const nb=()=>{NA.value=!NA.value,tb()},U0=vue.computed(()=>`${sA.fullscreenOffsetTop}px`),ub=()=>{FA.value=!FA.value};vue.watch(FA,jb=>{lA("fullscreen",jb)});const Ob=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),ob=()=>{LA.value=Ob.value?"split":"edit"},_b=()=>{lA("cancel"),LA.value="read"},mb=()=>{lA("save",{content:UA.value,frontmatter:TA.value}),LA.value="read"},hb=()=>{typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.initialize)=="function"&&(mermaid==null||mermaid.initialize({startOnLoad:!1,securityLevel:"strict",fontFamily:KUI_FONT_FAMILY_TEXT,altFontFamily:KUI_FONT_FAMILY_CODE,theme:DA.value==="light"?"default":"base"}))};vue.watch(DA,async jb=>{await gA(jb),hb(),tb()});const ab=async jb=>{var rb,sw,gb,Uw,Bw,DC,QC,JC;try{if(!((sw=(rb=jb.target)==null?void 0:rb.classList)!=null&&sw.contains("kong-markdown-code-block-copy"))||!((Uw=(gb=jb.target)==null?void 0:gb.dataset)!=null&&Uw.copytext))return;if(jb.preventDefault(),(Bw=navigator==null?void 0:navigator.clipboard)!=null&&Bw.writeText){const rC=((QC=(DC=jb.target)==null?void 0:DC.dataset)==null?void 0:QC.copytext)||"";rC&&(await navigator.clipboard.writeText(rC),(JC=jb==null?void 0:jb.target)==null||JC.blur())}}catch(rC){console.warn("Could not copy text to clipboard",rC)}};composables.useKeyboardShortcuts(pA,UA,QA,tb),vue.onMounted(async()=>{await gA(DA.value),WA.value=zA(sA.modelValue),await vue.nextTick(),useEventListener(uA,"click",ab),hb(),await Wl(),LA.value==="split"&&(await vue.nextTick(),jA())}),vue.onUnmounted(()=>{OA()}),iA({download:_l,edit:ob});const Ib=vue.computed(()=>`calc(100vh - ${TOOLBAR_HEIGHT} - ${KUI_SPACE_60})`),sb=vue.computed(()=>`${sA.maxHeight}px`);return(jb,rb)=>{var sw;return vue.openBlock(),vue.createElementBlock("div",{id:CA.value,ref_key:"markdownComponent",ref:uA,class:vue.normalizeClass(["kong-ui-public-markdown-ui",[`mode-${LA.value}`,`theme-${DA.value}`,{fullscreen:FA.value}]]),"data-testid":"markdown-ui"},[nA.editable&&LA.value!=="read"?(vue.openBlock(),vue.createBlock(MarkdownToolbar,{key:0,onChangeMode:rb[0]||(rb[0]=gb=>LA.value=gb),onFormatSelection:Rl,onInsertTemplate:Pl,onToggleFullscreen:ub,onToggleHtmlPreview:nb},{"toolbar-right":vue.withCtx(()=>[vue.renderSlot(jb.$slots,"toolbar-right",{},void 0,!0)]),"editor-actions":vue.withCtx(()=>[vue.renderSlot(jb.$slots,"editor-actions",{cancel:_b,save:mb},()=>[nA.editable&&["edit","split","preview"].includes(LA.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(ToolbarButton,{"data-testid":"cancel",icon:!1,tabindex:0,onClick:_b},{default:vue.withCtx(()=>[vue.createTextVNode(" Cancel ")]),_:1}),vue.createVNode(ToolbarButton,{appearance:"primary","data-testid":"save",icon:!1,tabindex:0,onClick:mb},{default:vue.withCtx(()=>[vue.createTextVNode(" Save ")]),_:1})],64)):vue.createCommentVNode("",!0)],!0)]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$4,[nA.editable&&["edit","split"].includes(LA.value)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[vue.createElementVNode("textarea",{id:_A.value,ref_key:"textarea",ref:pA,autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:vue.normalizeClass(["markdown-editor-textarea",[kA.value]]),"data-testid":"markdown-editor-textarea",placeholder:"Begin editing...",spellcheck:"false",translate:"no",value:UA.value,onInput:rb[1]||(rb[1]=gb=>zl(gb))},null,42,_hoisted_4$3)])):vue.createCommentVNode("",!0),["read","preview","split"].includes(LA.value)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["markdown-preview",[kA.value]]),"data-testid":"markdown-preview"},[vue.createElementVNode("div",_hoisted_5$2,[LA.value==="read"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$2,[vue.renderSlot(jb.$slots,"content-actions",{download:(sw=UA.value)!=null&&sw.length&&nA.downloadable?_l:void 0,edit:nA.editable?ob:void 0},()=>{var gb;return[LA.value==="read"&&(gb=UA.value)!=null&&gb.length&&nA.downloadable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$2,[vue.renderSlot(jb.$slots,"download",{download:_l},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Download markdown document","data-testid":"download",icon:!1,tabindex:0,onClick:_l},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(p$6$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_8$2]),_:1})],!0)])):vue.createCommentVNode("",!0),LA.value==="read"&&nA.editable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$2,[vue.renderSlot(jb.$slots,"edit",{edit:ob},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Edit markdown document","data-testid":"edit",icon:!1,tabindex:0,onClick:ob},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(p$5$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_10$1]),_:1})],!0)])):vue.createCommentVNode("",!0)]},!0)])):vue.createCommentVNode("",!0),vue.createVNode(MarkdownContent,{class:vue.normalizeClass({"html-preview":NA.value}),content:NA.value?PA.value:WA.value},null,8,["class","content"])])],2)):vue.createCommentVNode("",!0)])],10,_hoisted_1$5)}}}),MarkdownUi=_export_sfc$1(_sfc_main$6,[["__scopeId","data-v-c4020e22"]]),_withScopeId$1=nA=>(vue.pushScopeId("data-v-52cb44f0"),nA=nA(),vue.popScopeId(),nA),_hoisted_1$2={class:"documentation-display"},_hoisted_2$2={class:"document-meta"},_hoisted_3$2={class:"document-meta-start"},_hoisted_4$1={class:"document-title meta-section"},_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("span",{class:"document-title-extension"},"md",-1)),_hoisted_6$1={key:0,class:"document-status meta-section"},_hoisted_7$1={class:"meta-label"},_hoisted_8$1={key:1,class:"document-create meta-section"},_hoisted_9$1={class:"meta-label"},_hoisted_10={class:"document-display-actions"},_hoisted_11={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},_hoisted_12={key:1},_sfc_main$3=vue.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","toggle-published","edit-markdown","save-markdown"],setup(nA,{expose:iA,emit:AA}){var UA;const sA=nA,lA=AA,pA=vue.ref(),{i18n:uA}=composables$1.useI18n(),gA=vue.ref(!0),bA=vue.computed(()=>{var TA,WA,PA,XA,qA;return((WA=(TA=sA.selectedDocument)==null?void 0:TA.document)==null?void 0:WA.title)||((qA=(XA=(PA=sA.selectedDocument)==null?void 0:PA.document)==null?void 0:XA.revision)==null?void 0:qA.title)||""}),yA=vue.computed(()=>""),CA=vue.ref(!1),_A=vue.ref(uA.t("documentation.common.unpublished")),kA=vue.ref(((UA=sA.selectedDocument)==null?void 0:UA.markdown)||""),QA=vue.ref(kA.value),IA=vue.ref(null),DA=()=>{pA.value.download()},LA=()=>{pA.value.edit()},FA=TA=>{lA("edit-markdown",TA==="edit")},NA=()=>{const TA=!CA.value;lA("toggle-published",TA),CA.value=TA,_A.value=TA?uA.t("documentation.common.published"):uA.t("documentation.common.unpublished")},jA=()=>{kA.value=QA.value,QA.value=kA.value},OA=TA=>{TA==="published"?(CA.value=!0,_A.value=uA.t("documentation.common.published")):(CA.value=!1,_A.value=uA.t("documentation.common.unpublished"))},GA=()=>{var TA;IA.value={children:sA.selectedDocument.ast,type:"document",version:1},kA.value=((TA=sA.selectedDocument)==null?void 0:TA.markdown)||"",QA.value=kA.value,gA.value=!1},zA=vue.ref(!1);return vue.watch(()=>sA.canEdit,async()=>{zA.value=await sA.canEdit()},{immediate:!0}),vue.watch(()=>sA.selectedDocument,TA=>{var WA;isObjectEmpty(TA)||(sA.hidePublishToggle||OA((WA=TA.document)==null?void 0:WA.status),(TA.ast||TA.markdown)&&GA())},{deep:!0,immediate:!0}),vue.onMounted(()=>{GA()}),iA({download:DA,edit:LA}),(TA,WA)=>{const PA=vue.resolveComponent("KBadge"),XA=vue.resolveComponent("KInputSwitch"),qA=vue.resolveComponent("KSkeleton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$2,[vue.createElementVNode("div",_hoisted_4$1,[vue.renderSlot(TA.$slots,"document-title",{},()=>[vue.createElementVNode("span",null,vue.toDisplayString(bA.value),1),vue.createTextVNode("."),_hoisted_5$1],!0)]),nA.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createElementVNode("span",_hoisted_7$1,vue.toDisplayString(vue.unref(uA).t("documentation.documentation_display.status_label")),1),vue.createVNode(PA,{appearance:CA.value?"success":"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(CA.value?vue.unref(uA).t("documentation.common.published"):vue.unref(uA).t("documentation.common.unpublished")),1)]),_:1},8,["appearance"])])),yA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$1,[vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(vue.unref(uA).t("documentation.documentation_display.added_label")),1),vue.createVNode(PA,{appearance:"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(yA.value),1)]),_:1})])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_10,[vue.createVNode(vue.unref(fc$1),{"auth-function":()=>nA.canEdit()},{default:vue.withCtx(()=>[!nA.hidePublishToggle&&!nA.card?(vue.openBlock(),vue.createBlock(XA,{key:0,modelValue:CA.value,"onUpdate:modelValue":WA[0]||(WA[0]=HA=>CA.value=HA),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:_A.value,"label-before":"",onClick:NA},null,8,["modelValue","label"])):vue.createCommentVNode("",!0)]),_:1},8,["auth-function"])])]),gA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11,[nA.card?(vue.openBlock(),vue.createBlock(qA,{key:1,type:"card"})):(vue.openBlock(),vue.createBlock(qA,{key:0,class:"markdown-content-loader"}))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[vue.createElementVNode("div",{class:vue.normalizeClass(["document-content",{"content-card-view":nA.card}])},[kA.value!==void 0?(vue.openBlock(),vue.createBlock(vue.unref(MarkdownUi),{key:0,ref_key:"markdownComponent",ref:pA,modelValue:kA.value,"onUpdate:modelValue":WA[1]||(WA[1]=HA=>kA.value=HA),downloadable:"",editable:zA.value,filename:bA.value,"max-height":700,mode:"read",theme:"light",onCancel:jA,onMode:WA[2]||(WA[2]=HA=>FA(HA)),onSave:WA[3]||(WA[3]=HA=>lA("save-markdown",HA.content))},null,8,["modelValue","editable","filename"])):vue.createCommentVNode("",!0)],2)]))])}}}),_export_sfc=(nA,iA)=>{const AA=nA.__vccOpts||nA;for(const[sA,lA]of iA)AA[sA]=lA;return AA},DocumentationDisplay=_export_sfc(_sfc_main$3,[["__scopeId","data-v-52cb44f0"]]),I$7="24px",s$5=(nA,iA)=>{const AA=nA.__vccOpts||nA;for(const[sA,lA]of iA)AA[sA]=lA;return AA},N$6=nA=>(vue.pushScopeId("data-v-c1f7c39c"),nA=nA(),vue.popScopeId(),nA),b$7=["aria-hidden"],x$6={key:0,"data-testid":"kui-icon-svg-title"},z$a=N$6(()=>vue.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),I$6=vue.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$7,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$7}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",x$6,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),z$a],8,b$7))]),_:1},8,["aria-hidden","style"]))}}),m$8=s$5(I$6,[["__scopeId","data-v-c1f7c39c"]]),c$5=nA=>(vue.pushScopeId("data-v-ae02d9ee"),nA=nA(),vue.popScopeId(),nA),b$6=["aria-hidden"],N$5={key:0,"data-testid":"kui-icon-svg-title"},x$5=c$5(()=>vue.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),z$9=c$5(()=>vue.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),I$5=vue.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$7,validator:nA=>{if(typeof nA=="number"&&nA>0)return!0;if(typeof nA=="string"){const iA=String(nA).replace(/px/gi,""),AA=Number(iA);if(AA&&!isNaN(AA)&&Number.isInteger(AA)&&AA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(nA){const iA=nA,AA=vue.computed(()=>{if(typeof iA.size=="number"&&iA.size>0)return`${iA.size}px`;if(typeof iA.size=="string"){const lA=String(iA.size).replace(/px/gi,""),pA=Number(lA);if(pA&&!isNaN(pA)&&Number.isInteger(pA)&&pA>0)return`${pA}px`}return I$7}),sA=vue.computed(()=>({boxSizing:"border-box",color:iA.color,display:iA.display,flexShrink:"0",height:AA.value,lineHeight:"0",width:AA.value}));return(lA,pA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(nA.as),{"aria-hidden":nA.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:vue.normalizeStyle(sA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":nA.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[nA.title?(vue.openBlock(),vue.createElementBlock("title",N$5,vue.toDisplayString(nA.title),1)):vue.createCommentVNode("",!0),x$5,z$9],8,b$6))]),_:1},8,["aria-hidden","style"]))}}),a$i=s$5(I$5,[["__scopeId","data-v-ae02d9ee"]]),_sfc_main$2=vue.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(nA,{emit:iA}){const AA=iA,{i18n:sA}=composables$1.useI18n();return(lA,pA)=>{const uA=vue.resolveComponent("KButton"),gA=vue.resolveComponent("KEmptyState");return vue.openBlock(),vue.createBlock(gA,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state","icon-variant":"kong"},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(sA).t("documentation.show.empty_state.title")),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(sA).t("documentation.show.empty_state.message")),1)]),action:vue.withCtx(()=>[vue.createVNode(vue.unref(fc$1),{"auth-function":()=>nA.canEdit()},{default:vue.withCtx(()=>[vue.createVNode(uA,{"data-testid":"add-new-page-button",onClick:pA[0]||(pA[0]=bA=>AA("create-documentation"))},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(m$8)),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(sA).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),externalLinks={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},_withScopeId=nA=>(vue.pushScopeId("data-v-c2726da6"),nA=nA(),vue.popScopeId(),nA),_hoisted_1$1={class:"title"},_hoisted_2$1={class:"subtitle"},_hoisted_3$1=_withScopeId(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_4={key:2,class:"document-radio-group"},_hoisted_5={class:"document-inputs"},_hoisted_6={class:"page-name side-by-side"},_hoisted_7={class:"url-slug side-by-side"},_hoisted_8={key:4,class:"documentation-status"},_hoisted_9={class:"button-spacing"},_sfc_main$1=vue.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["edit","cancel","save","delete"],setup(nA,{emit:iA}){const AA=nA,sA=iA,{i18n:lA}=composables$1.useI18n(),pA=vue.computed(()=>{var TA;return(TA=AA.record.file)==null?void 0:TA.filename}),uA=vue.computed(()=>{var TA;return FA.value?(TA=FA.value.name)==null?void 0:TA.split(".")[0]:""}),gA=vue.ref(!0),bA=vue.computed(()=>gA.value?"published":"unpublished"),yA=vue.ref("upload"),CA=vue.reactive({fileName:"",pageName:"",urlSlug:"",status:bA.value,parent:""}),_A=/^[\w-]+$/,kA=vue.computed(()=>{var TA;return CA.urlSlug!==""&&!((TA=CA.urlSlug)!=null&&TA.match(_A))}),QA=vue.computed(()=>{var PA;let TA=(PA=AA.documents)==null?void 0:PA.filter(XA=>{var qA;return XA.record.id!==((qA=AA.record)==null?void 0:qA.id)&&!XA.record.parent_document_id}).map(XA=>({label:XA.record.title,value:XA.record.id,selected:!1}));TA||(TA=[]);const WA=cloneDeep(TA.length);return TA.push({label:lA.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!WA}),TA}),IA=vue.computed(()=>AA.editing?lA.t("documentation.form_modal.edit_title"):lA.t("documentation.form_modal.create_title")),DA=vue.computed(()=>AA.editing?lA.t("documentation.form_modal.replace_file_button_text"):lA.t("documentation.form_modal.filename_button_text")),LA=vue.computed(()=>bA.value==="published"?lA.t("documentation.common.published"):lA.t("documentation.common.unpublished")),FA=vue.ref(null),NA=TA=>{FA.value=TA==null?void 0:TA[0],CA.fileName=uA.value,CA.pageName=CA.pageName?CA.pageName:uA.value,CA.urlSlug=CA.urlSlug?CA.urlSlug:uA.value},jA=vue.computed(()=>{if(!AA.editing){if(yA.value==="upload")return!(FA.value&&CA.pageName&&CA.urlSlug&&!kA.value);if(yA.value==="empty")return!(CA.pageName&&CA.urlSlug&&!kA.value)}return!1}),OA=()=>{FA.value=null},GA=()=>{sA("cancel"),UA()},zA=()=>{const TA=vue.ref(null);if(yA.value==="empty"){const WA=new File([],CA.pageName+".md",{type:"text/markdown"});TA.value=WA,sA("save",Object.assign(CA,{fileName:CA.pageName},{status:bA.value}),TA)}else sA("save",Object.assign(CA,{status:bA.value}),FA)},UA=()=>{var TA,WA,PA,XA,qA;if(FA.value=null,AA.editing&&((TA=AA.record)!=null&&TA.document)){const HA=cloneDeep(AA.record),Ml=HA.status||AA.record.document.status||gA.value;CA.fileName=((WA=HA.document.file)==null?void 0:WA.filename)||((XA=(PA=HA.document.revision)==null?void 0:PA.file)==null?void 0:XA.filename),CA.pageName=HA.document.title||((qA=HA.document.revision)==null?void 0:qA.title),CA.urlSlug=HA.document.slug,CA.parent=HA.document.parent_document_id,CA.status=Ml,gA.value=Ml==="published"}else CA.fileName="",CA.pageName="",CA.urlSlug="",CA.parent="",CA.status=""};return vue.watch(()=>yA,()=>{UA()},{deep:!0,immediate:!0}),vue.onMounted(()=>{UA()}),(TA,WA)=>{const PA=vue.resolveComponent("KExternalLink"),XA=vue.resolveComponent("KAlert"),qA=vue.resolveComponent("KRadio"),HA=vue.resolveComponent("KFileUpload"),Ml=vue.resolveComponent("KInput"),Rl=vue.resolveComponent("KLabel"),Pl=vue.resolveComponent("KInputSwitch"),Wl=vue.resolveComponent("KSelect"),_l=vue.resolveComponent("KButton"),zl=vue.resolveComponent("KModal");return vue.openBlock(),vue.createBlock(vue.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[vue.createVNode(zl,{class:"edit-document-modal","data-testid":"edit-document-modal","max-width":"750px",visible:"",onCancel:GA,onProceed:zA},{title:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1,[vue.createTextVNode(vue.toDisplayString(IA.value)+" ",1),vue.createElementVNode("div",_hoisted_2$1,[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.subtitle"))+" ",1),_hoisted_3$1,vue.createVNode(PA,{class:"doc-link",href:vue.unref(externalLinks).serviceDocumentationDocs},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),default:vue.withCtx(()=>[nA.errorMessage?(vue.openBlock(),vue.createBlock(XA,{key:0,appearance:"danger",class:"bottom-spacing",message:nA.errorMessage},null,8,["message"])):vue.createCommentVNode("",!0),nA.editing?(vue.openBlock(),vue.createBlock(XA,{key:1,appearance:"info",class:"bottom-spacing",message:vue.unref(lA).t("documentation.form_modal.edit_markdown"),"show-icon":""},null,8,["message"])):vue.createCommentVNode("",!0),nA.editing?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4,[vue.createElementVNode("div",null,[vue.createVNode(qA,{modelValue:yA.value,"onUpdate:modelValue":WA[0]||(WA[0]=ql=>yA.value=ql),class:"upload-document-radio","data-testid":"upload-document-radio","selected-value":"upload"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.file_label")),1)]),_:1},8,["modelValue"])]),vue.createElementVNode("div",null,[vue.createVNode(qA,{modelValue:yA.value,"onUpdate:modelValue":WA[1]||(WA[1]=ql=>yA.value=ql),class:"empty-document-radio","data-testid":"empty-document-radio","selected-value":"empty"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.empty_doc")),1)]),_:1},8,["modelValue"])])])),yA.value==="upload"?(vue.openBlock(),vue.createBlock(HA,{key:3,accept:[".md",".markdown"],"button-text":DA.value,class:"document-file-upload","data-testid":"document-file-upload",label:vue.unref(lA).t("documentation.form_modal.file_label"),"label-attributes":{info:vue.unref(lA).t("documentation.form_modal.file_tooltip")},placeholder:nA.editing?pA.value:void 0,required:"",onFileAdded:NA,onFileRemoved:OA},null,8,["accept","button-text","label","label-attributes","placeholder"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,[vue.createVNode(Ml,{modelValue:CA.pageName,"onUpdate:modelValue":WA[2]||(WA[2]=ql=>CA.pageName=ql),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:vue.unref(lA).t("documentation.form_modal.title_label"),placeholder:vue.unref(lA).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),vue.createElementVNode("div",_hoisted_7,[vue.createVNode(Ml,{modelValue:CA.urlSlug,"onUpdate:modelValue":WA[3]||(WA[3]=ql=>CA.urlSlug=ql),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":vue.unref(lA).t("documentation.form_modal.slug_error"),"has-error":kA.value,label:vue.unref(lA).t("documentation.form_modal.slug_label"),pattern:_A,placeholder:vue.unref(lA).t("documentation.form_modal.slug_placeholder"),required:""},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),nA.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,[vue.createElementVNode("div",null,[vue.createVNode(Rl,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.status_label")),1)]),_:1})]),vue.createVNode(Pl,{modelValue:gA.value,"onUpdate:modelValue":WA[4]||(WA[4]=ql=>gA.value=ql),"data-testid":"documentation-status",label:LA.value},null,8,["modelValue","label"])])),vue.createVNode(Wl,{modelValue:CA.parent,"onUpdate:modelValue":WA[5]||(WA[5]=ql=>CA.parent=ql),class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:QA.value,label:vue.unref(lA).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),footer:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_9,[vue.createVNode(_l,{appearance:"tertiary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:GA},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),vue.createVNode(_l,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:nA.actionPending||jA.value,onClick:zA},{default:vue.withCtx(()=>[nA.actionPending?(vue.openBlock(),vue.createBlock(vue.unref(a$i),{key:0})):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(lA).t("documentation.form_modal.save_button_text")),1)]),_:1},8,["disabled"])])]),_:1})])}}}),ProductDocumentModal=_export_sfc(_sfc_main$1,[["__scopeId","data-v-c2726da6"]]),_hoisted_1={class:"documentation"},_hoisted_2={key:0},_hoisted_3={key:1,class:"documentation-parent-container"},_sfc_main=vue.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},emptyStateCard:{type:Boolean,default:!1},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","document-selection","modal-closed","parent-change","save","save-markdown","toggle-published"],setup(nA,{expose:iA,emit:AA}){const sA=AA,lA=vue.ref(!1),pA=vue.ref(!1),uA=vue.ref(),gA=nA;vue.watch(()=>gA.actionSuccess,QA=>{QA&&kA()});const bA=vue.computed(()=>{var QA,IA;return`data-display-${gA.cacheKey}-${((IA=(QA=gA.selectedDocument)==null?void 0:QA.document)==null?void 0:IA.id)||""}`}),yA=()=>{pA.value=!1,lA.value=!0},CA=()=>{uA.value.download()},_A=()=>{uA.value.edit()},kA=()=>{lA.value=!1,sA("modal-closed")};return iA({download:CA,edit:_A}),(QA,IA)=>{const DA=vue.resolveComponent("KCard"),LA=vue.resolveComponent("KTreeList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[nA.documentList&&!nA.documentList.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[nA.emptyStateCard?(vue.openBlock(),vue.createBlock(DA,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2,{"can-edit":nA.canEdit,onCreateDocumentation:yA},null,8,["can-edit"])]),_:1})):(vue.openBlock(),vue.createBlock(_sfc_main$2,{key:1,"can-edit":nA.canEdit,onCreateDocumentation:yA},null,8,["can-edit"]))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[(vue.openBlock(),vue.createBlock(LA,{key:`tree-list-${nA.cacheKey}`,class:"document-tree-list",items:nA.documentList,"max-depth":2,onChange:IA[0]||(IA[0]=FA=>sA("parent-change",FA)),onChildChange:IA[1]||(IA[1]=FA=>sA("child-change",FA)),onSelected:IA[2]||(IA[2]=FA=>sA("document-selection",FA))},null,8,["items"])),nA.selectedDocument?(vue.openBlock(),vue.createBlock(DocumentationDisplay,{key:bA.value,ref_key:"documentationDisplay",ref:uA,"can-edit":nA.canEdit,card:nA.card,class:"document-holder","hide-publish-toggle":nA.hidePublishToggle,"selected-document":nA.selectedDocument,onAdd:yA,onSaveMarkdown:IA[3]||(IA[3]=FA=>sA("save-markdown",FA)),onTogglePublished:IA[4]||(IA[4]=FA=>sA("toggle-published",FA))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):vue.createCommentVNode("",!0)])),lA.value?(vue.openBlock(),vue.createBlock(ProductDocumentModal,{key:2,"action-pending":nA.actionPending,documents:nA.documentList,editing:pA.value,"error-message":nA.modalErrorMessage,"hide-publish-toggle":nA.hidePublishToggle,record:pA.value&&nA.selectedDocument?nA.selectedDocument:void 0,onCancel:kA,onDelete:IA[5]||(IA[5]=FA=>sA("delete")),onSave:IA[6]||(IA[6]=(FA,NA)=>sA("save",FA,NA))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):vue.createCommentVNode("",!0)])}}}),DocumentationContent=_export_sfc(_sfc_main,[["__scopeId","data-v-ce1efed9"]]);var e$P=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#FAFAFA","activityBar.border":"#FAFAFA60","activityBar.dropBackground":"#E5393580","activityBar.foreground":"#90A4AE","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#CCD7DA30","badge.foreground":"#90A4AE","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#FAFAFA","breadcrumb.focusForeground":"#90A4AE","breadcrumb.foreground":"#758a95","breadcrumbPicker.background":"#FAFAFA","button.background":"#80CBC440","button.foreground":"#ffffff","debugConsole.errorForeground":"#E53935","debugConsole.infoForeground":"#39ADB5","debugConsole.warningForeground":"#E2931D","debugToolBar.background":"#FAFAFA","diffEditor.insertedTextBackground":"#39ADB520","diffEditor.removedTextBackground":"#FF537020","dropdown.background":"#FAFAFA","dropdown.border":"#00000010","editor.background":"#FAFAFA","editor.findMatchBackground":"#00000020","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#90A4AE","editor.findMatchHighlightBackground":"#00000010","editor.findMatchHighlightBorder":"#00000030","editor.findRangeHighlightBackground":"#E2931D30","editor.foreground":"#90A4AE","editor.lineHighlightBackground":"#CCD7DA50","editor.lineHighlightBorder":"#CCD7DA00","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#80CBC440","editor.selectionHighlightBackground":"#27272720","editor.wordHighlightBackground":"#FF537030","editor.wordHighlightStrongBackground":"#91B85930","editorBracketMatch.background":"#FAFAFA","editorBracketMatch.border":"#27272750","editorCursor.foreground":"#272727","editorError.foreground":"#E5393570","editorGroup.border":"#00000020","editorGroup.dropBackground":"#E5393580","editorGroup.focusedEmptyBorder":"#E53935","editorGroupHeader.tabsBackground":"#FAFAFA","editorGutter.addedBackground":"#91B85960","editorGutter.deletedBackground":"#E5393560","editorGutter.modifiedBackground":"#6182B860","editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#00000010","editorIndentGuide.activeBackground":"#B0BEC5","editorIndentGuide.background":"#B0BEC570","editorInfo.foreground":"#6182B870","editorLineNumber.activeForeground":"#758a95","editorLineNumber.foreground":"#CFD8DC","editorLink.activeForeground":"#90A4AE","editorMarkerNavigation.background":"#90A4AE05","editorOverviewRuler.border":"#FAFAFA","editorOverviewRuler.errorForeground":"#E5393540","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#6182B840","editorOverviewRuler.warningForeground":"#E2931D40","editorRuler.foreground":"#B0BEC5","editorSuggestWidget.background":"#FAFAFA","editorSuggestWidget.border":"#00000010","editorSuggestWidget.foreground":"#90A4AE","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#CCD7DA50","editorWarning.foreground":"#E2931D70","editorWhitespace.foreground":"#90A4AE40","editorWidget.background":"#FAFAFA","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#90A4AE","extensionButton.prominentBackground":"#91B85990","extensionButton.prominentForeground":"#90A4AE","extensionButton.prominentHoverBackground":"#91B859",focusBorder:"#FFFFFF00",foreground:"#90A4AE","gitDecoration.conflictingResourceForeground":"#E2931D90","gitDecoration.deletedResourceForeground":"#E5393590","gitDecoration.ignoredResourceForeground":"#758a9590","gitDecoration.modifiedResourceForeground":"#6182B890","gitDecoration.untrackedResourceForeground":"#91B85990","input.background":"#EEEEEE","input.border":"#00000010","input.foreground":"#90A4AE","input.placeholderForeground":"#90A4AE60","inputOption.activeBackground":"#90A4AE30","inputOption.activeBorder":"#90A4AE30","inputValidation.errorBorder":"#E53935","inputValidation.infoBorder":"#6182B8","inputValidation.warningBorder":"#E2931D","list.activeSelectionBackground":"#FAFAFA","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#E5393580","list.focusBackground":"#90A4AE20","list.focusForeground":"#90A4AE","list.highlightForeground":"#80CBC4","list.hoverBackground":"#FAFAFA","list.hoverForeground":"#B1C7D3","list.inactiveSelectionBackground":"#CCD7DA50","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#CCD7DA50","listFilterWidget.noMatchesOutline":"#CCD7DA50","listFilterWidget.outline":"#CCD7DA50","menu.background":"#FAFAFA","menu.foreground":"#90A4AE","menu.selectionBackground":"#CCD7DA50","menu.selectionBorder":"#CCD7DA50","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#90A4AE","menubar.selectionBackground":"#CCD7DA50","menubar.selectionBorder":"#CCD7DA50","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#FAFAFA","notifications.foreground":"#90A4AE","panel.background":"#FAFAFA","panel.border":"#FAFAFA60","panel.dropBackground":"#90A4AE","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#000000","panelTitle.inactiveForeground":"#90A4AE","peekView.border":"#00000020","peekViewEditor.background":"#EEEEEE","peekViewEditor.matchHighlightBackground":"#80CBC440","peekViewEditorGutter.background":"#EEEEEE","peekViewResult.background":"#EEEEEE","peekViewResult.matchHighlightBackground":"#80CBC440","peekViewResult.selectionBackground":"#758a9570","peekViewTitle.background":"#EEEEEE","peekViewTitleDescription.foreground":"#90A4AE60","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#FAFAFA","quickInput.foreground":"#758a95","quickInput.list.focusBackground":"#90A4AE20","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000020","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#90A4AE20","scrollbarSlider.hoverBackground":"#90A4AE10","selection.background":"#CCD7DA80","settings.checkboxBackground":"#FAFAFA","settings.checkboxForeground":"#90A4AE","settings.dropdownBackground":"#FAFAFA","settings.dropdownForeground":"#90A4AE","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#FAFAFA","settings.numberInputForeground":"#90A4AE","settings.textInputBackground":"#FAFAFA","settings.textInputForeground":"#90A4AE","sideBar.background":"#FAFAFA","sideBar.border":"#FAFAFA60","sideBar.foreground":"#758a95","sideBarSectionHeader.background":"#FAFAFA","sideBarSectionHeader.border":"#FAFAFA60","sideBarTitle.foreground":"#90A4AE","statusBar.background":"#FAFAFA","statusBar.border":"#FAFAFA60","statusBar.debuggingBackground":"#9C3EDA","statusBar.debuggingForeground":"#FFFFFF","statusBar.foreground":"#7E939E","statusBar.noFolderBackground":"#FAFAFA","statusBarItem.activeBackground":"#E5393580","statusBarItem.hoverBackground":"#90A4AE20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#FAFAFA","tab.activeBorder":"#80CBC4","tab.activeForeground":"#000000","tab.activeModifiedBorder":"#758a95","tab.border":"#FAFAFA","tab.inactiveBackground":"#FAFAFA","tab.inactiveForeground":"#758a95","tab.inactiveModifiedBorder":"#89221f","tab.unfocusedActiveBorder":"#90A4AE","tab.unfocusedActiveForeground":"#90A4AE","tab.unfocusedActiveModifiedBorder":"#b72d2a","tab.unfocusedInactiveModifiedBorder":"#89221f","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#6182B8","terminal.ansiBrightBlack":"#90A4AE","terminal.ansiBrightBlue":"#6182B8","terminal.ansiBrightCyan":"#39ADB5","terminal.ansiBrightGreen":"#91B859","terminal.ansiBrightMagenta":"#9C3EDA","terminal.ansiBrightRed":"#E53935","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#E2931D","terminal.ansiCyan":"#39ADB5","terminal.ansiGreen":"#91B859","terminal.ansiMagenta":"#9C3EDA","terminal.ansiRed":"#E53935","terminal.ansiWhite":"#FFFFFF","terminal.ansiYellow":"#E2931D","terminalCursor.background":"#000000","terminalCursor.foreground":"#E2931D","textLink.activeForeground":"#90A4AE","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#FAFAFA","titleBar.activeForeground":"#90A4AE","titleBar.border":"#FAFAFA60","titleBar.inactiveBackground":"#FAFAFA","titleBar.inactiveForeground":"#758a95","tree.indentGuidesStroke":"#B0BEC5","widget.shadow":"#00000020"},displayName:"Material Theme Lighter",name:"material-theme-lighter",semanticHighlighting:!0,tokenColors:[{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:"string",settings:{foreground:"#91B859"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#39ADB5"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#90A4AE"}},{scope:"constant.language.boolean",settings:{foreground:"#FF5370"}},{scope:"constant.numeric",settings:{foreground:"#F76D47"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#90A4AE"}},{scope:"keyword.other",settings:{foreground:"#F76D47"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#39ADB5"}},{scope:"entity.name.function, support.function",settings:{foreground:"#6182B8"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#9C3EDA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"support.type, constant.other.key",settings:{foreground:"#E2931D"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#E2931D"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"punctuation",settings:{foreground:"#39ADB5"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#E2931D"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.function entity.name.function",settings:{foreground:"#6182B8"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#39ADB5"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#90A4AE"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#E53935"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#E53935"}},{scope:"constant.language.json",settings:{foreground:"#39ADB5"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#E2931D"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F76D47"}},{scope:"source.css entity.name.tag",settings:{foreground:"#E2931D"}},{scope:"support.type.property-name.css",settings:{foreground:"#8796B0"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#39ADB5"}},{scope:"entity.name.tag",settings:{foreground:"#E53935"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9C3EDA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#90A4AE"}},{scope:"markup.heading",settings:{foreground:"#39ADB5"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#E53935"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#39ADB5"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#E53935"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#E53935"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#91B859"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#91B859"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#E53935"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#39ADB5"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#E53935"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#6182B8"}},{scope:"source.cs storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#90A4AE"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#90A4AE"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#90A4AE"}},{scope:"support.class.component",settings:{foreground:"#E2931D"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#90A4AE"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#E53935"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#6182B8"}},{scope:"meta.block",settings:{foreground:"#E53935"}},{scope:"entity.name.function.call",settings:{foreground:"#6182B8"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#90A4AE"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:"entity.name.function",settings:{foreground:"#6182B8"}},{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:["constant.other.placeholder"],settings:{foreground:"#E53935"}},{scope:["markup.deleted"],settings:{foreground:"#E53935"}},{scope:["markup.inserted"],settings:{foreground:"#91B859"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F76D47"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#90A4AE90"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E2931D"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F76D47"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E53935"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#6182B8"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#91B859"}}],type:"light"});const materialThemeLighterCtwOYHJ5=Object.freeze(Object.defineProperty({__proto__:null,default:e$P},Symbol.toStringTag,{value:"Module"}));var e$O=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#292D3E","activityBar.border":"#292D3E60","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#babed8","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#676E95","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#292D3E","breadcrumb.focusForeground":"#babed8","breadcrumb.foreground":"#676E95","breadcrumbPicker.background":"#292D3E","button.background":"#717CB450","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#292D3E","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#292D3E","dropdown.border":"#FFFFFF10","editor.background":"#292D3E","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#babed8","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#babed8","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#717CB450","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#292D3E","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#292D3E","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#292D3E","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#4E5579","editorIndentGuide.background":"#4E557970","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#676E95","editorLineNumber.foreground":"#3A3F58","editorLink.activeForeground":"#babed8","editorMarkerNavigation.background":"#babed805","editorOverviewRuler.border":"#292D3E","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#4E5579","editorSuggestWidget.background":"#292D3E","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#babed8","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#babed840","editorWidget.background":"#292D3E","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#babed8","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#babed8","extensionButton.prominentHoverBackground":"#C3E88D",focusBorder:"#FFFFFF00",foreground:"#babed8","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#676E9590","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#333747","input.border":"#FFFFFF10","input.foreground":"#babed8","input.placeholderForeground":"#babed860","inputOption.activeBackground":"#babed830","inputOption.activeBorder":"#babed830","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#292D3E","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#babed820","list.focusForeground":"#babed8","list.highlightForeground":"#80CBC4","list.hoverBackground":"#292D3E","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#292D3E","menu.foreground":"#babed8","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#babed8","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#292D3E","notifications.foreground":"#babed8","panel.background":"#292D3E","panel.border":"#292D3E60","panel.dropBackground":"#babed8","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#babed8","peekView.border":"#00000030","peekViewEditor.background":"#333747","peekViewEditor.matchHighlightBackground":"#717CB450","peekViewEditorGutter.background":"#333747","peekViewResult.background":"#333747","peekViewResult.matchHighlightBackground":"#717CB450","peekViewResult.selectionBackground":"#676E9570","peekViewTitle.background":"#333747","peekViewTitleDescription.foreground":"#babed860","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#292D3E","quickInput.foreground":"#676E95","quickInput.list.focusBackground":"#babed820","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#A6ACCD20","scrollbarSlider.hoverBackground":"#A6ACCD10","selection.background":"#00000080","settings.checkboxBackground":"#292D3E","settings.checkboxForeground":"#babed8","settings.dropdownBackground":"#292D3E","settings.dropdownForeground":"#babed8","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#292D3E","settings.numberInputForeground":"#babed8","settings.textInputBackground":"#292D3E","settings.textInputForeground":"#babed8","sideBar.background":"#292D3E","sideBar.border":"#292D3E60","sideBar.foreground":"#676E95","sideBarSectionHeader.background":"#292D3E","sideBarSectionHeader.border":"#292D3E60","sideBarTitle.foreground":"#babed8","statusBar.background":"#292D3E","statusBar.border":"#292D3E60","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#676E95","statusBar.noFolderBackground":"#292D3E","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#676E9520","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#292D3E","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#676E95","tab.border":"#292D3E","tab.inactiveBackground":"#292D3E","tab.inactiveForeground":"#676E95","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#676E95","tab.unfocusedActiveForeground":"#babed8","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#676E95","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#babed8","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#292D3E","titleBar.activeForeground":"#babed8","titleBar.border":"#292D3E60","titleBar.inactiveBackground":"#292D3E","titleBar.inactiveForeground":"#676E95","tree.indentGuidesStroke":"#4E5579","widget.shadow":"#00000030"},displayName:"Material Theme Palenight",name:"material-theme-palenight",semanticHighlighting:!0,tokenColors:[{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:"string",settings:{foreground:"#C3E88D"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#89DDFF"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#babed8"}},{scope:"constant.language.boolean",settings:{foreground:"#ff9cac"}},{scope:"constant.numeric",settings:{foreground:"#F78C6C"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#babed8"}},{scope:"keyword.other",settings:{foreground:"#F78C6C"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#89DDFF"}},{scope:"entity.name.function, support.function",settings:{foreground:"#82AAFF"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#C792EA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"support.type, constant.other.key",settings:{foreground:"#FFCB6B"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#FFCB6B"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"punctuation",settings:{foreground:"#89DDFF"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#FFCB6B"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.function entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#89DDFF"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#babed8"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#f07178"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#f07178"}},{scope:"constant.language.json",settings:{foreground:"#89DDFF"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#FFCB6B"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F78C6C"}},{scope:"source.css entity.name.tag",settings:{foreground:"#FFCB6B"}},{scope:"support.type.property-name.css",settings:{foreground:"#B2CCD6"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#89DDFF"}},{scope:"entity.name.tag",settings:{foreground:"#f07178"}},{scope:"entity.other.attribute-name",settings:{foreground:"#C792EA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#babed8"}},{scope:"markup.heading",settings:{foreground:"#89DDFF"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#f07178"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#89DDFF"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#f07178"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#f07178"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#C3E88D"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#C3E88D"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#f07178"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#89DDFF"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#f07178"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"source.cs storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#676E95"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#babed8"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#babed8"}},{scope:"support.class.component",settings:{foreground:"#FFCB6B"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#babed8"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#f07178"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#82AAFF"}},{scope:"meta.block",settings:{foreground:"#f07178"}},{scope:"entity.name.function.call",settings:{foreground:"#82AAFF"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#babed8"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:"entity.name.function",settings:{foreground:"#82AAFF"}},{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:["constant.other.placeholder"],settings:{foreground:"#f07178"}},{scope:["markup.deleted"],settings:{foreground:"#f07178"}},{scope:["markup.inserted"],settings:{foreground:"#C3E88D"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F78C6C"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#babed890"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FFCB6B"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F78C6C"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#f07178"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#82AAFF"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C3E88D"}}],type:"dark"});const materialThemePalenightLzvMi3a5=Object.freeze(Object.defineProperty({__proto__:null,default:e$O},Symbol.toStringTag,{value:"Module"})),n$D=Object.freeze({displayName:"JSON",name:"json",patterns:[{include:"#value"}],repository:{array:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.array.begin.json"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.array.end.json"}},name:"meta.structure.array.json",patterns:[{include:"#value"},{match:",",name:"punctuation.separator.array.json"},{match:"[^\\s\\]]",name:"invalid.illegal.expected-array-separator.json"}]},comments:{patterns:[{begin:"/\\*\\*(?!/)",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.documentation.json"},{begin:"/\\*",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.json"},{captures:{1:{name:"punctuation.definition.comment.json"}},match:"(//).*$\\n?",name:"comment.line.double-slash.js"}]},constant:{match:"\\b(?:true|false|null)\\b",name:"constant.language.json"},number:{match:`(?x)
209
209
  -?
210
210
  (?:
211
211
  0