"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[6745],{16745:(H,L,N)=>{function $(i){var o=i.statementIndentUnit,c=i.dontAlignCalls,f=i.noIndentKeywords||[],s=i.multiLineStrings,a=i.hooks||{};function h(e){for(var n={},t=e.split(" "),l=0;l=0)return l}var r=e.context,w=n&&n.charAt(0);"statement"==r.type&&"}"==w&&(r=r.prev);var z=!1,U=n.match(F);return U&&(z=M(U[0],r.type)),"statement"==r.type?r.indented+("{"==w?0:o||t.unit):G.test(r.type)&&r.align&&!c?r.column+(z?0:1):")"!=r.type||z?r.indented+(z?0:t.unit):r.indented+(o||t.unit)},languageData:{indentOnInput:function Z(){var e=[];for(var n in u)if(u[n]){var t=u[n].split(";");for(var l in t)e.push(t[l])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}N.r(L),N.d(L,{tlv:()=>R,verilog:()=>K});const K=$({});var S={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"},E={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},q=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,V=/^[! ] */,A=/^\/[\/\*]/;const R=$({hooks:{electricInput:!1,token:function(i,o){var c=void 0;if(i.sol()&&!o.tlvInBlockComment){"\\"==i.peek()&&(c="def",i.skipToEnd(),i.string.match(/\\SV/)?o.tlvCodeActive=!1:i.string.match(/\\TLV/)&&(o.tlvCodeActive=!0)),o.tlvCodeActive&&0==i.pos&&0==o.indented&&(f=i.match(V,!1))&&(o.indented=f[0].length);var s=o.indented,a=s/3;if(a<=o.tlvIndentationStyle.length){var h=i.string.length==s,g=3*a;if(g0||(o.tlvIndentationStyle[a]=E[m],a++))}if(!h)for(;o.tlvIndentationStyle.length>a;)o.tlvIndentationStyle.pop()}o.tlvNextIndent=s}if(o.tlvCodeActive){var f;if(void 0===c)if(o.tlvInBlockComment)i.match(/^.*?\*\//)?o.tlvInBlockComment=!1:i.skipToEnd(),c="comment";else if((f=i.match(A))&&!o.tlvInBlockComment)"//"==f[0]?i.skipToEnd():o.tlvInBlockComment=!0,c="comment";else if(f=i.match(q)){var C=f[1],j=f[2];S.hasOwnProperty(C)&&(j.length>0||i.eol())?c=S[C]:i.backUp(i.current().length-1)}else i.match(/^\t+/)?c="invalid":i.match(/^[\[\]{}\(\);\:]+/)?c="meta":(f=i.match(/^[mM]4([\+_])?[\w\d_]*/))?c="+"==f[1]?"keyword.special":"keyword":i.match(/^ +/)?i.eol()&&(c="error"):i.match(/^[\w\d_]+/)?c="number":i.next()}else i.match(/^[mM]4([\w\d_]*)/)&&(c="keyword");return c},indent:function(i){return 1==i.tlvCodeActive?i.tlvNextIndent:-1},startState:function(i){i.tlvIndentationStyle=[],i.tlvCodeActive=!0,i.tlvNextIndent=-1,i.tlvInBlockComment=!1}}})}}]);