@seedtactics/insight-client 16.4.0 → 16.4.5

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 (72) hide show
  1. package/dist/assets/ProgramHighlight-C7lr7YIr.js +3 -0
  2. package/dist/assets/favicon-gWFxiJK2.ico +0 -0
  3. package/dist/assets/index-CjYmi4M2.js +346 -0
  4. package/dist/assets/index-ZBfg6YlO.css +1 -0
  5. package/dist/assets/manifest-BzJli0lx.webmanifest +15 -0
  6. package/dist/assets/roboto-cyrillic-300-normal-BoeCr7ev.woff2 +0 -0
  7. package/dist/assets/roboto-cyrillic-300-normal-D568C3aM.woff +0 -0
  8. package/dist/assets/roboto-cyrillic-400-normal-DAIM1_dR.woff2 +0 -0
  9. package/dist/assets/roboto-cyrillic-400-normal-DZJji7Rx.woff +0 -0
  10. package/dist/assets/roboto-cyrillic-500-normal-BI4HuXre.woff +0 -0
  11. package/dist/assets/roboto-cyrillic-500-normal-hCeO1jFL.woff2 +0 -0
  12. package/dist/assets/roboto-cyrillic-700-normal-BiSG5NnW.woff2 +0 -0
  13. package/dist/assets/roboto-cyrillic-700-normal-KqaQ5bNp.woff +0 -0
  14. package/dist/assets/roboto-cyrillic-ext-300-normal-CUPJdUZp.woff2 +0 -0
  15. package/dist/assets/roboto-cyrillic-ext-300-normal-DQdcc27I.woff +0 -0
  16. package/dist/assets/roboto-cyrillic-ext-400-normal-DtZHuW6i.woff +0 -0
  17. package/dist/assets/roboto-cyrillic-ext-400-normal-DzMWdK87.woff2 +0 -0
  18. package/dist/assets/roboto-cyrillic-ext-500-normal-B7rQpwPu.woff2 +0 -0
  19. package/dist/assets/roboto-cyrillic-ext-500-normal-C927yMrb.woff +0 -0
  20. package/dist/assets/roboto-cyrillic-ext-700-normal-BuQgZIrO.woff +0 -0
  21. package/dist/assets/roboto-cyrillic-ext-700-normal-UFn0vR9r.woff2 +0 -0
  22. package/dist/assets/roboto-greek-300-normal-CTj2MfNN.woff +0 -0
  23. package/dist/assets/roboto-greek-300-normal-Cnub06j7.woff2 +0 -0
  24. package/dist/assets/roboto-greek-400-normal-CcizSnRP.woff +0 -0
  25. package/dist/assets/roboto-greek-400-normal-jFM2czAU.woff2 +0 -0
  26. package/dist/assets/roboto-greek-500-normal-BJMS0heP.woff2 +0 -0
  27. package/dist/assets/roboto-greek-500-normal-BLLWU9W-.woff +0 -0
  28. package/dist/assets/roboto-greek-700-normal-BcGn9doz.woff2 +0 -0
  29. package/dist/assets/roboto-greek-700-normal-D3kmAf0K.woff +0 -0
  30. package/dist/assets/roboto-latin-300-normal-CztWkFGs.woff2 +0 -0
  31. package/dist/assets/roboto-latin-300-normal-KByCBsad.woff +0 -0
  32. package/dist/assets/roboto-latin-400-normal-068yxgMN.woff +0 -0
  33. package/dist/assets/roboto-latin-400-normal-CNwBRw8h.woff2 +0 -0
  34. package/dist/assets/roboto-latin-500-normal-CC5nhZkh.woff +0 -0
  35. package/dist/assets/roboto-latin-500-normal-CkrA1NAy.woff2 +0 -0
  36. package/dist/assets/roboto-latin-700-normal-CXeAXeti.woff2 +0 -0
  37. package/dist/assets/roboto-latin-700-normal-DUekQERp.woff +0 -0
  38. package/dist/assets/roboto-latin-ext-300-normal-BOz0oSmX.woff2 +0 -0
  39. package/dist/assets/roboto-latin-ext-300-normal-Tcf9y2tg.woff +0 -0
  40. package/dist/assets/roboto-latin-ext-400-normal-ZYmyxeOy.woff2 +0 -0
  41. package/dist/assets/roboto-latin-ext-400-normal-eTRLN0Nt.woff +0 -0
  42. package/dist/assets/roboto-latin-ext-500-normal-C_ARlJGk.woff2 +0 -0
  43. package/dist/assets/roboto-latin-ext-500-normal-FFcS8vBN.woff +0 -0
  44. package/dist/assets/roboto-latin-ext-700-normal-70GS1MYH.woff2 +0 -0
  45. package/dist/assets/roboto-latin-ext-700-normal-BS1OuQqR.woff +0 -0
  46. package/dist/assets/roboto-math-300-normal-BMxwzQmU.woff2 +0 -0
  47. package/dist/assets/roboto-math-300-normal-BU9CUCyj.woff +0 -0
  48. package/dist/assets/roboto-math-400-normal-B3wgz80t.woff2 +0 -0
  49. package/dist/assets/roboto-math-400-normal-rzxYvyVt.woff +0 -0
  50. package/dist/assets/roboto-math-500-normal-CFNaIMFC.woff2 +0 -0
  51. package/dist/assets/roboto-math-500-normal-DaFX-ZC8.woff +0 -0
  52. package/dist/assets/roboto-math-700-normal-VUAI6Bz2.woff2 +0 -0
  53. package/dist/assets/roboto-math-700-normal-pYD1nhov.woff +0 -0
  54. package/dist/assets/roboto-symbols-300-normal-BtHl5mYl.woff2 +0 -0
  55. package/dist/assets/roboto-symbols-300-normal-kyoSXp-d.woff +0 -0
  56. package/dist/assets/roboto-symbols-400-normal-Tzuungub.woff +0 -0
  57. package/dist/assets/roboto-symbols-400-normal-fF1SLJBj.woff2 +0 -0
  58. package/dist/assets/roboto-symbols-500-normal-BXFTxrNR.woff2 +0 -0
  59. package/dist/assets/roboto-symbols-500-normal-CAhAe-ik.woff +0 -0
  60. package/dist/assets/roboto-symbols-700-normal-CuuvBBxy.woff +0 -0
  61. package/dist/assets/roboto-symbols-700-normal-rJi6RjIy.woff2 +0 -0
  62. package/dist/assets/roboto-vietnamese-300-normal-CNeuLW5X.woff2 +0 -0
  63. package/dist/assets/roboto-vietnamese-300-normal-DXBG9gdz.woff +0 -0
  64. package/dist/assets/roboto-vietnamese-400-normal-CDDxGrUb.woff2 +0 -0
  65. package/dist/assets/roboto-vietnamese-400-normal-DmXaN3yE.woff +0 -0
  66. package/dist/assets/roboto-vietnamese-500-normal-DW96CsrR.woff +0 -0
  67. package/dist/assets/roboto-vietnamese-500-normal-HYpufUYk.woff2 +0 -0
  68. package/dist/assets/roboto-vietnamese-700-normal-Dz0HwF-w.woff +0 -0
  69. package/dist/assets/roboto-vietnamese-700-normal-iKxYNAzq.woff2 +0 -0
  70. package/dist/index.html +72 -0
  71. package/package.json +2 -3
  72. package/src/index.ts +0 -65
@@ -0,0 +1,3 @@
1
+ (function(){"use strict";function $e(S){return S&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S}var ce,_e;function We(){if(_e)return ce;_e=1;function S(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&S(i)}),e}class A{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Y(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function x(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const B="</span>",U=e=>!!e.scope,Z=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class m{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=Y(t)}openNode(t){if(!U(t))return;const i=Z(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){U(t)&&(this.buffer+=B)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const F=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class G{constructor(){this.rootNode=F(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=F({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{G._collapse(i)}))}}class J extends G{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new m(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function L(e){return e?typeof e=="string"?e:e.source:null}function Q(e){return T("(?=",e,")")}function K(e){return T("(?:",e,")*")}function oe(e){return T("(?:",e,")?")}function T(...e){return e.map(i=>L(i)).join("")}function Xe(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ae(...e){return"("+(Xe(e).capture?"":"?:")+e.map(u=>L(u)).join("|")+")"}function Oe(e){return new RegExp(e.toString()+"|").exec("").length-1}function ze(e,t){const i=e&&e.exec(t);return i&&i.index===0}const Ye=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function le(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=L(u),c="";for(;_.length>0;){const r=Ye.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const Ze=/\b\B/,Re="[a-zA-Z]\\w*",ue="[a-zA-Z_]\\w*",Se="\\b\\d+(\\.\\d+)?",Ne="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",we="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Je=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=T(t,/.*\b/,e.binary,/\b.*/)),x({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},X={begin:"\\\\[\\s\\S]",relevance:0},Qe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[X]},Ve={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[X]},qe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},V=function(e,t,i={}){const u=x({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=ae("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:T(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},et=V("//","$"),tt=V("/\\*","\\*/"),nt=V("#","$"),it={scope:"number",begin:Se,relevance:0},st={scope:"number",begin:Ne,relevance:0},rt={scope:"number",begin:we,relevance:0},ct={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[X,{begin:/\[/,end:/\]/,relevance:0,contains:[X]}]},ot={scope:"title",begin:Re,relevance:0},at={scope:"title",begin:ue,relevance:0},lt={begin:"\\.\\s*"+ue,relevance:0};var q=Object.freeze({__proto__:null,APOS_STRING_MODE:Qe,BACKSLASH_ESCAPE:X,BINARY_NUMBER_MODE:rt,BINARY_NUMBER_RE:we,COMMENT:V,C_BLOCK_COMMENT_MODE:tt,C_LINE_COMMENT_MODE:et,C_NUMBER_MODE:st,C_NUMBER_RE:Ne,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:nt,IDENT_RE:Re,MATCH_NOTHING_RE:Ze,METHOD_GUARD:lt,NUMBER_MODE:it,NUMBER_RE:Se,PHRASAL_WORDS_MODE:qe,QUOTE_STRING_MODE:Ve,REGEXP_MODE:ct,RE_STARTERS_RE:me,SHEBANG:Je,TITLE_MODE:ot,UNDERSCORE_IDENT_RE:ue,UNDERSCORE_TITLE_MODE:at});function ut(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function ft(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function gt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ut,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ht(e,t){Array.isArray(e.illegal)&&(e.illegal=ae(...e.illegal))}function dt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function pt(e,t){e.relevance===void 0&&(e.relevance=1)}const Et=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=T(i.beforeMatch,Q(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},bt=["of","and","for","in","not","or","if","then","parent","list","value"],_t="keyword";function xe(e,t,i=_t){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,xe(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,Mt(l[0],l[1])]})}}function Mt(e,t){return t?Number(t):Ot(e)?0:1}function Ot(e){return bt.includes(e.toLowerCase())}const ye={},H=e=>{console.error(e)},Ae=(e,...t)=>{console.log(`WARN: ${e}`,...t)},$=(e,t)=>{ye[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ye[`${e}/${t}`]=!0)},ee=new Error;function Te(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=Oe(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Rt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw H("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ee;if(typeof e.beginScope!="object"||e.beginScope===null)throw H("beginScope must be object"),ee;Te(e,e.begin,{key:"beginScope"}),e.begin=le(e.begin,{joinWith:""})}}function St(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw H("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ee;if(typeof e.endScope!="object"||e.endScope===null)throw H("endScope must be object"),ee;Te(e,e.end,{key:"endScope"}),e.end=le(e.end,{joinWith:""})}}function Nt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function wt(e){Nt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Rt(e),St(e)}function xt(e){function t(c,r){return new RegExp(L(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=Oe(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(le(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const R=l.findIndex((z,ge)=>ge>0&&z!==void 0),M=this.matchIndexes[R];return l.splice(0,R),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([R,M])=>l.addRule(R,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let R=l.exec(r);if(this.resumingScanAtSamePosition()&&!(R&&R.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,R=M.exec(r)}return R&&(this.regexIndex+=R.position+1,this.regexIndex===this.count&&this.considerAll()),R}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[ft,dt,wt,Et].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[gt,ht,pt].forEach(M=>M(c,r)),c.isCompiled=!0;let R=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),R=c.keywords.$pattern,delete c.keywords.$pattern),R=R||/\w+/,c.keywords&&(c.keywords=xe(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(R,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=L(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return yt(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=x(e.classNameAliases||{}),_(e)}function Ie(e){return e?e.endsWithParent||Ie(e.starts):!1}function yt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return x(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ie(e)?x(e,{starts:e.starts?x(e.starts):null}):Object.isFrozen(e)?x(e):e}var At="11.11.1";class Tt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const fe=Y,ke=x,De=Symbol("nomatch"),It=7,Ce=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:J};function l(n){return r.noHighlightRe.test(n)}function R(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const p=v(h[1]);return p||(Ae(_.replace("{}",h[1])),Ae("Falling back to no-highlight mode for this block.",n)),p?h[1]:"no-highlight"}return a.split(/\s+/).find(p=>l(p)||v(p))}function M(n,a,h){let p="",O="";typeof a=="object"?(p=n,h=a.ignoreIllegals,O=a.language):($("10.7.0","highlight(lang, code, ...args) has been deprecated."),$("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),O=n,p=a),h===void 0&&(h=!0);const I={code:p,language:O};ne("before:highlight",I);const P=I.result?I.result:z(I.language,I.code,h);return P.code=I.code,ne("after:highlight",P),P}function z(n,a,h,p){const O=Object.create(null);function I(s,o){return s.keywords[o]}function P(){if(!f.keywords){N.addText(E);return}let s=0;f.keywordPatternRe.lastIndex=0;let o=f.keywordPatternRe.exec(E),g="";for(;o;){g+=E.substring(s,o.index);const d=D.case_insensitive?o[0].toLowerCase():o[0],w=I(f,d);if(w){const[C,zt]=w;if(N.addText(g),g="",O[d]=(O[d]||0)+1,O[d]<=It&&(re+=zt),C.startsWith("_"))g+=o[0];else{const Yt=D.classNameAliases[C]||C;k(o[0],Yt)}}else g+=o[0];s=f.keywordPatternRe.lastIndex,o=f.keywordPatternRe.exec(E)}g+=E.substring(s),N.addText(g)}function ie(){if(E==="")return;let s=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){N.addText(E);return}s=z(f.subLanguage,E,!0,Ge[f.subLanguage]),Ge[f.subLanguage]=s._top}else s=he(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(re+=s.relevance),N.__addSublanguage(s._emitter,s.language)}function y(){f.subLanguage!=null?ie():P(),E=""}function k(s,o){s!==""&&(N.startScope(o),N.addText(s),N.endScope())}function Pe(s,o){let g=1;const d=o.length-1;for(;g<=d;){if(!s._emit[g]){g++;continue}const w=D.classNameAliases[s[g]]||s[g],C=o[g];w?k(C,w):(E=C,P(),E=""),g++}}function Ue(s,o){return s.scope&&typeof s.scope=="string"&&N.openNode(D.classNameAliases[s.scope]||s.scope),s.beginScope&&(s.beginScope._wrap?(k(E,D.classNameAliases[s.beginScope._wrap]||s.beginScope._wrap),E=""):s.beginScope._multi&&(Pe(s.beginScope,o),E="")),f=Object.create(s,{parent:{value:f}}),f}function He(s,o,g){let d=ze(s.endRe,g);if(d){if(s["on:end"]){const w=new A(s);s["on:end"](o,w),w.isMatchIgnored&&(d=!1)}if(d){for(;s.endsParent&&s.parent;)s=s.parent;return s}}if(s.endsWithParent)return He(s.parent,o,g)}function $t(s){return f.matcher.regexIndex===0?(E+=s[0],1):(be=!0,0)}function Wt(s){const o=s[0],g=s.rule,d=new A(g),w=[g.__beforeBegin,g["on:begin"]];for(const C of w)if(C&&(C(s,d),d.isMatchIgnored))return $t(o);return g.skip?E+=o:(g.excludeBegin&&(E+=o),y(),!g.returnBegin&&!g.excludeBegin&&(E=o)),Ue(g,s),g.returnBegin?0:o.length}function Ft(s){const o=s[0],g=a.substring(s.index),d=He(f,s,g);if(!d)return De;const w=f;f.endScope&&f.endScope._wrap?(y(),k(o,f.endScope._wrap)):f.endScope&&f.endScope._multi?(y(),Pe(f.endScope,s)):w.skip?E+=o:(w.returnEnd||w.excludeEnd||(E+=o),y(),w.excludeEnd&&(E=o));do f.scope&&N.closeNode(),!f.skip&&!f.subLanguage&&(re+=f.relevance),f=f.parent;while(f!==d.parent);return d.starts&&Ue(d.starts,s),w.returnEnd?0:o.length}function Kt(){const s=[];for(let o=f;o!==D;o=o.parent)o.scope&&s.unshift(o.scope);s.forEach(o=>N.openNode(o))}let se={};function je(s,o){const g=o&&o[0];if(E+=s,g==null)return y(),0;if(se.type==="begin"&&o.type==="end"&&se.index===o.index&&g===""){if(E+=a.slice(o.index,o.index+1),!b){const d=new Error(`0 width match regex (${n})`);throw d.languageName=n,d.badRule=se.rule,d}return 1}if(se=o,o.type==="begin")return Wt(o);if(o.type==="illegal"&&!h){const d=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"<unnamed>")+'"');throw d.mode=f,d}else if(o.type==="end"){const d=Ft(o);if(d!==De)return d}if(o.type==="illegal"&&g==="")return E+=`
3
+ `,1;if(Ee>1e5&&Ee>o.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const D=v(n);if(!D)throw H(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const Xt=xt(D);let pe="",f=p||Xt;const Ge={},N=new r.__emitter(r);Kt();let E="",re=0,j=0,Ee=0,be=!1;try{if(D.__emitTokens)D.__emitTokens(a,N);else{for(f.matcher.considerAll();;){Ee++,be?be=!1:f.matcher.considerAll(),f.matcher.lastIndex=j;const s=f.matcher.exec(a);if(!s)break;const o=a.substring(j,s.index),g=je(o,s);j=s.index+g}je(a.substring(j))}return N.finalize(),pe=N.toHTML(),{language:n,value:pe,relevance:re,illegal:!1,_emitter:N,_top:f}}catch(s){if(s.message&&s.message.includes("Illegal"))return{language:n,value:fe(a),illegal:!0,relevance:0,_illegalBy:{message:s.message,index:j,context:a.slice(j-100,j+100),mode:s.mode,resultSoFar:pe},_emitter:N};if(b)return{language:n,value:fe(a),illegal:!1,relevance:0,errorRaised:s,_emitter:N,_top:f};throw s}}function ge(n){const a={value:fe(n),illegal:!1,relevance:0,_top:c,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function he(n,a){a=a||r.languages||Object.keys(t);const h=ge(n),p=a.filter(v).filter(ve).map(y=>z(y,n,!1));p.unshift(h);const O=p.sort((y,k)=>{if(y.relevance!==k.relevance)return k.relevance-y.relevance;if(y.language&&k.language){if(v(y.language).supersetOf===k.language)return 1;if(v(k.language).supersetOf===y.language)return-1}return 0}),[I,P]=O,ie=I;return ie.secondBest=P,ie}function kt(n,a,h){const p=a&&i[a]||h;n.classList.add("hljs"),n.classList.add(`language-${p}`)}function de(n){let a=null;const h=R(n);if(l(h))return;if(ne("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new Tt("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const p=a.textContent,O=h?M(p,{language:h,ignoreIllegals:!0}):he(p);n.innerHTML=O.value,n.dataset.highlighted="yes",kt(n,h,O.language),n.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(n.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),ne("after:highlightElement",{el:n,result:O,text:p})}function Dt(n){r=ke(r,n)}const Ct=()=>{te(),$("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Bt(){te(),$("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Be=!1;function te(){function n(){te()}if(document.readyState==="loading"){Be||window.addEventListener("DOMContentLoaded",n,!1),Be=!0;return}document.querySelectorAll(r.cssSelector).forEach(de)}function Lt(n,a){let h=null;try{h=a(e)}catch(p){if(H("Language definition for '{}' could not be registered.".replace("{}",n)),b)H(p);else throw p;h=c}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&Le(h.aliases,{languageName:n})}function vt(n){delete t[n];for(const a of Object.keys(i))i[a]===n&&delete i[a]}function Pt(){return Object.keys(t)}function v(n){return n=(n||"").toLowerCase(),t[n]||t[i[n]]}function Le(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{i[h.toLowerCase()]=a})}function ve(n){const a=v(n);return a&&!a.disableAutodetect}function Ut(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function Ht(n){Ut(n),u.push(n)}function jt(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function ne(n,a){const h=n;u.forEach(function(p){p[h]&&p[h](a)})}function Gt(n){return $("10.7.0","highlightBlock will be removed entirely in v12.0"),$("10.7.0","Please use highlightElement now."),de(n)}Object.assign(e,{highlight:M,highlightAuto:he,highlightAll:te,highlightElement:de,highlightBlock:Gt,configure:Dt,initHighlighting:Ct,initHighlightingOnLoad:Bt,registerLanguage:Lt,unregisterLanguage:vt,listLanguages:Pt,getLanguage:v,registerAliases:Le,autoDetection:ve,inherit:ke,addPlugin:Ht,removePlugin:jt}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=At,e.regex={concat:T,lookahead:Q,either:ae,optional:oe,anyNumberOfTimes:K};for(const n in q)typeof q[n]=="object"&&S(q[n]);return Object.assign(e,q),e},W=Ce({});return W.newInstance=()=>Ce({}),ce=W,W.HighlightJS=W,W.default=W,ce}var Fe=We(),Me=$e(Fe);function Ke(S){const A=S.regex,Y={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},x=/\b/;function B(K,oe){if(K.index===0)return;const T=K.input[K.index-1];T>="0"&&T<="9"||T!=="_"&&oe.ignoreMatch()}const U=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,Z=/[GM]\s*\d+(\.\d+)?/,m=/T\s*\d+/,F=/O\s*\d+/,G=/O<.+>/,J=/[ABCUVWXYZ]\s*/,L=/[FHIJKPQRS]\s*/,Q=[S.COMMENT(/\(/,/\)/),S.COMMENT(/;/,/$/),S.APOS_STRING_MODE,S.QUOTE_STRING_MODE,S.C_NUMBER_MODE,{scope:"title.function",variants:[{match:A.concat(x,Z)},{begin:Z,"on:begin":B},{match:A.concat(x,m)},{begin:m,"on:begin":B}]},{scope:"symbol",variants:[{match:A.concat(x,F)},{begin:F,"on:begin":B},{match:A.concat(x,G)},{begin:G,"on:begin":B},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:A.concat(x,J,U)},{begin:A.concat(J,U),"on:begin":B}]},{scope:"params",variants:[{match:A.concat(x,L,U)},{begin:A.concat(L,U),"on:begin":B}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:Y,contains:Q}}Me.registerLanguage("gcode",Ke),self.onmessage=function(S){self.postMessage(Me.highlight(S.data,{language:"gcode"}).value)}})();
Binary file