The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import"./DsnmJJEf.js";import"./69_IOA4Y.js";import{o as Qe,C as Ke,D as Fe,az as an,bb as cn,P as Xe,Q as on,a6 as ln,bc as un,bd as fn,aL as Ye,I as gn,be as hn,N as oe,e as dn,h as Ze,r as qe,d as ue,c as et,f as tt,t as pn,q as _n,p as En,bf as bn,bg as Mn,g as le,Y as wn,bh as xn,l as yn,al as ye,bi as On,a as Rn,ac as Nn}from"./BKFspo1J.js";import{s as Sn}from"./BZdMRyxh.js";import{i as An}from"./CbajjPbm.js";import{l as fe,p as Y,s as vn}from"./CARHnQ8P.js";import{g as Tn}from"./CqkleIqs.js";import{i as kn}from"./COK9M2N0.js";import{d as In,C as Cn,a as Dn}from"./DwMHXN8q.js";function Bn($,O,B=!1,S=!1,I=!1){var v=$,L="";Qe(()=>{var H=an;if(L===(L=O()??"")){Ke&&Fe();return}if(H.nodes!==null&&(cn(H.nodes.start,H.nodes.end),H.nodes=null),L!==""){if(Ke){Xe.data;for(var E=Fe(),T=E;E!==null&&(E.nodeType!==on||E.data!=="");)T=E,E=ln(E);if(E===null)throw un(),fn;Ye(Xe,T),v=gn(E);return}var C=L+"";B?C=`<svg>${C}</svg>`:S&&(C=`<math>${C}</math>`);var R=hn(C);if((B||S)&&(R=oe(R)),Ye(oe(R),R.lastChild),B||S)for(;oe(R);)v.before(oe(R));else v.before(R)}})}var Oe,Je;function Ln(){if(Je)return Oe;Je=1;function $(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)&&$(i)}),e}class O{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function B(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function S(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 I="</span>",v=e=>!!e.scope,L=(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 H{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=B(t)}openNode(t){if(!v(t))return;const i=L(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){v(t)&&(this.buffer+=I)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const E=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class T{constructor(){this.rootNode=E(),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=E({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=>{T._collapse(i)}))}}class C extends T{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 H(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function R(e){return e?typeof e=="string"?e:e.source:null}function Q(e){return U("(?=",e,")")}function G(e){return U("(?:",e,")*")}function K(e){return U("(?:",e,")?")}function U(...e){return e.map(i=>R(i)).join("")}function nt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ge(...e){return"("+(nt(e).capture?"":"?:")+e.map(u=>R(u)).join("|")+")"}function Re(e){return new RegExp(e.toString()+"|").exec("").length-1}function it(e,t){const i=e&&e.exec(t);return i&&i.index===0}const st=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function he(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let M=R(u),a="";for(;M.length>0;){const r=st.exec(M);if(!r){a+=M;break}a+=M.substring(0,r.index),M=M.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?a+="\\"+String(Number(r[1])+b):(a+=r[0],r[0]==="("&&i++)}return a}).map(u=>`(${u})`).join(t)}const rt=/\b\B/,Ne="[a-zA-Z]\\w*",de="[a-zA-Z_]\\w*",Se="\\b\\d+(\\.\\d+)?",Ae="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ve="\\b(0b[01]+)",at="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ct=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=U(t,/.*\b/,e.binary,/\b.*/)),S({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},J={begin:"\\\\[\\s\\S]",relevance:0},ot={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[J]},lt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[J]},ut={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/},ee=function(e,t,i={}){const u=S({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=ge("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:U(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},ft=ee("//","$"),gt=ee("/\\*","\\*/"),ht=ee("#","$"),dt={scope:"number",begin:Se,relevance:0},pt={scope:"number",begin:Ae,relevance:0},_t={scope:"number",begin:ve,relevance:0},Et={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[J,{begin:/\[/,end:/\]/,relevance:0,contains:[J]}]},bt={scope:"title",begin:Ne,relevance:0},Mt={scope:"title",begin:de,relevance:0},wt={begin:"\\.\\s*"+de,relevance:0};var te=Object.freeze({__proto__:null,APOS_STRING_MODE:ot,BACKSLASH_ESCAPE:J,BINARY_NUMBER_MODE:_t,BINARY_NUMBER_RE:ve,COMMENT:ee,C_BLOCK_COMMENT_MODE:gt,C_LINE_COMMENT_MODE:ft,C_NUMBER_MODE:pt,C_NUMBER_RE:Ae,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:ht,IDENT_RE:Ne,MATCH_NOTHING_RE:rt,METHOD_GUARD:wt,NUMBER_MODE:dt,NUMBER_RE:Se,PHRASAL_WORDS_MODE:ut,QUOTE_STRING_MODE:lt,REGEXP_MODE:Et,RE_STARTERS_RE:at,SHEBANG:ct,TITLE_MODE:bt,UNDERSCORE_IDENT_RE:de,UNDERSCORE_TITLE_MODE:Mt});function xt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function yt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Ot(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=xt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Rt(e,t){Array.isArray(e.illegal)&&(e.illegal=ge(...e.illegal))}function Nt(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 St(e,t){e.relevance===void 0&&(e.relevance=1)}const At=(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=U(i.beforeMatch,Q(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},vt=["of","and","for","in","not","or","if","then","parent","list","value"],Tt="keyword";function Te(e,t,i=Tt){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(M){Object.assign(u,Te(e[M],t,M))}),u;function b(M,a){t&&(a=a.map(r=>r.toLowerCase())),a.forEach(function(r){const l=r.split("|");u[l[0]]=[M,kt(l[0],l[1])]})}}function kt(e,t){return t?Number(t):It(e)?0:1}function It(e){return vt.includes(e.toLowerCase())}const ke={},F=e=>{console.error(e)},Ie=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Z=(e,t)=>{ke[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ke[`${e}/${t}`]=!0)},ne=new Error;function Ce(e,t,{key:i}){let u=0;const b=e[i],M={},a={};for(let r=1;r<=t.length;r++)a[r+u]=b[r],M[r+u]=!0,u+=Re(t[r-1]);e[i]=a,e[i]._emit=M,e[i]._multi=!0}function Ct(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw F("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ne;if(typeof e.beginScope!="object"||e.beginScope===null)throw F("beginScope must be object"),ne;Ce(e,e.begin,{key:"beginScope"}),e.begin=he(e.begin,{joinWith:""})}}function Dt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw F("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ne;if(typeof e.endScope!="object"||e.endScope===null)throw F("endScope must be object"),ne;Ce(e,e.end,{key:"endScope"}),e.end=he(e.end,{joinWith:""})}}function Bt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Lt(e){Bt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Ct(e),Dt(e)}function Ht(e){function t(a,r){return new RegExp(R(a),"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+=Re(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(he(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const y=l.findIndex((V,_e)=>_e>0&&V!==void 0),w=this.matchIndexes[y];return l.splice(0,y),Object.assign(l,w)}}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(([y,w])=>l.addRule(y,w)),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 y=l.exec(r);if(this.resumingScanAtSamePosition()&&!(y&&y.index===this.lastIndex)){const w=this.getMatcher(0);w.lastIndex=this.lastIndex+1,y=w.exec(r)}return y&&(this.regexIndex+=y.position+1,this.regexIndex===this.count&&this.considerAll()),y}}function b(a){const r=new u;return a.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&r.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&r.addRule(a.illegal,{type:"illegal"}),r}function M(a,r){const l=a;if(a.isCompiled)return l;[yt,Nt,Lt,At].forEach(w=>w(a,r)),e.compilerExtensions.forEach(w=>w(a,r)),a.__beforeBegin=null,[Ot,Rt,St].forEach(w=>w(a,r)),a.isCompiled=!0;let y=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),y=a.keywords.$pattern,delete a.keywords.$pattern),y=y||/\w+/,a.keywords&&(a.keywords=Te(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(y,!0),r&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=R(l.end)||"",a.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+r.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(w){return Pt(w==="self"?a:w)})),a.contains.forEach(function(w){M(w,l)}),a.starts&&M(a.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=S(e.classNameAliases||{}),M(e)}function De(e){return e?e.endsWithParent||De(e.starts):!1}function Pt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return S(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:De(e)?S(e,{starts:e.starts?S(e.starts):null}):Object.isFrozen(e)?S(e):e}var jt="11.11.1";class Ut extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const pe=B,Be=S,Le=Symbol("nomatch"),mt=7,He=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const M="Could not find the language '{}', did you forget to load/include a language module?",a={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:C};function l(n){return r.noHighlightRe.test(n)}function y(n){let o=n.className+" ";o+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(o);if(h){const p=W(h[1]);return p||(Ie(M.replace("{}",h[1])),Ie("Falling back to no-highlight mode for this block.",n)),p?h[1]:"no-highlight"}return o.split(/\s+/).find(p=>l(p)||W(p))}function w(n,o,h){let p="",x="";typeof o=="object"?(p=n,h=o.ignoreIllegals,x=o.language):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."),Z("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),x=n,p=o),h===void 0&&(h=!0);const D={code:p,language:x};se("before:highlight",D);const z=D.result?D.result:V(D.language,D.code,h);return z.code=D.code,se("after:highlight",z),z}function V(n,o,h,p){const x=Object.create(null);function D(s,c){return s.keywords[c]}function z(){if(!f.keywords){N.addText(_);return}let s=0;f.keywordPatternRe.lastIndex=0;let c=f.keywordPatternRe.exec(_),g="";for(;c;){g+=_.substring(s,c.index);const d=j.case_insensitive?c[0].toLowerCase():c[0],A=D(f,d);if(A){const[m,sn]=A;if(N.addText(g),g="",x[d]=(x[d]||0)+1,x[d]<=mt&&(ce+=sn),m.startsWith("_"))g+=c[0];else{const rn=j.classNameAliases[m]||m;P(c[0],rn)}}else g+=c[0];s=f.keywordPatternRe.lastIndex,c=f.keywordPatternRe.exec(_)}g+=_.substring(s),N.addText(g)}function re(){if(_==="")return;let s=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){N.addText(_);return}s=V(f.subLanguage,_,!0,ze[f.subLanguage]),ze[f.subLanguage]=s._top}else s=Ee(_,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(ce+=s.relevance),N.__addSublanguage(s._emitter,s.language)}function k(){f.subLanguage!=null?re():z(),_=""}function P(s,c){s!==""&&(N.startScope(c),N.addText(s),N.endScope())}function me(s,c){let g=1;const d=c.length-1;for(;g<=d;){if(!s._emit[g]){g++;continue}const A=j.classNameAliases[s[g]]||s[g],m=c[g];A?P(m,A):(_=m,z(),_=""),g++}}function $e(s,c){return s.scope&&typeof s.scope=="string"&&N.openNode(j.classNameAliases[s.scope]||s.scope),s.beginScope&&(s.beginScope._wrap?(P(_,j.classNameAliases[s.beginScope._wrap]||s.beginScope._wrap),_=""):s.beginScope._multi&&(me(s.beginScope,c),_="")),f=Object.create(s,{parent:{value:f}}),f}function Ge(s,c,g){let d=it(s.endRe,g);if(d){if(s["on:end"]){const A=new O(s);s["on:end"](c,A),A.isMatchIgnored&&(d=!1)}if(d){for(;s.endsParent&&s.parent;)s=s.parent;return s}}if(s.endsWithParent)return Ge(s.parent,c,g)}function Vt(s){return f.matcher.regexIndex===0?(_+=s[0],1):(xe=!0,0)}function Qt(s){const c=s[0],g=s.rule,d=new O(g),A=[g.__beforeBegin,g["on:begin"]];for(const m of A)if(m&&(m(s,d),d.isMatchIgnored))return Vt(c);return g.skip?_+=c:(g.excludeBegin&&(_+=c),k(),!g.returnBegin&&!g.excludeBegin&&(_=c)),$e(g,s),g.returnBegin?0:c.length}function en(s){const c=s[0],g=o.substring(s.index),d=Ge(f,s,g);if(!d)return Le;const A=f;f.endScope&&f.endScope._wrap?(k(),P(c,f.endScope._wrap)):f.endScope&&f.endScope._multi?(k(),me(f.endScope,s)):A.skip?_+=c:(A.returnEnd||A.excludeEnd||(_+=c),k(),A.excludeEnd&&(_=c));do f.scope&&N.closeNode(),!f.skip&&!f.subLanguage&&(ce+=f.relevance),f=f.parent;while(f!==d.parent);return d.starts&&$e(d.starts,s),A.returnEnd?0:c.length}function tn(){const s=[];for(let c=f;c!==j;c=c.parent)c.scope&&s.unshift(c.scope);s.forEach(c=>N.openNode(c))}let ae={};function We(s,c){const g=c&&c[0];if(_+=s,g==null)return k(),0;if(ae.type==="begin"&&c.type==="end"&&ae.index===c.index&&g===""){if(_+=o.slice(c.index,c.index+1),!b){const d=new Error(`0 width match regex (${n})`);throw d.languageName=n,d.badRule=ae.rule,d}return 1}if(ae=c,c.type==="begin")return Qt(c);if(c.type==="illegal"&&!h){const d=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"<unnamed>")+'"');throw d.mode=f,d}else if(c.type==="end"){const d=en(c);if(d!==Le)return d}if(c.type==="illegal"&&g==="")return _+=`
`,1;if(we>1e5&&we>c.index*3)throw new Error("potential infinite loop, way more iterations than matches");return _+=g,g.length}const j=W(n);if(!j)throw F(M.replace("{}",n)),new Error('Unknown language: "'+n+'"');const nn=Ht(j);let Me="",f=p||nn;const ze={},N=new r.__emitter(r);tn();let _="",ce=0,X=0,we=0,xe=!1;try{if(j.__emitTokens)j.__emitTokens(o,N);else{for(f.matcher.considerAll();;){we++,xe?xe=!1:f.matcher.considerAll(),f.matcher.lastIndex=X;const s=f.matcher.exec(o);if(!s)break;const c=o.substring(X,s.index),g=We(c,s);X=s.index+g}We(o.substring(X))}return N.finalize(),Me=N.toHTML(),{language:n,value:Me,relevance:ce,illegal:!1,_emitter:N,_top:f}}catch(s){if(s.message&&s.message.includes("Illegal"))return{language:n,value:pe(o),illegal:!0,relevance:0,_illegalBy:{message:s.message,index:X,context:o.slice(X-100,X+100),mode:s.mode,resultSoFar:Me},_emitter:N};if(b)return{language:n,value:pe(o),illegal:!1,relevance:0,errorRaised:s,_emitter:N,_top:f};throw s}}function _e(n){const o={value:pe(n),illegal:!1,relevance:0,_top:a,_emitter:new r.__emitter(r)};return o._emitter.addText(n),o}function Ee(n,o){o=o||r.languages||Object.keys(t);const h=_e(n),p=o.filter(W).filter(Ue).map(k=>V(k,n,!1));p.unshift(h);const x=p.sort((k,P)=>{if(k.relevance!==P.relevance)return P.relevance-k.relevance;if(k.language&&P.language){if(W(k.language).supersetOf===P.language)return 1;if(W(P.language).supersetOf===k.language)return-1}return 0}),[D,z]=x,re=D;return re.secondBest=z,re}function $t(n,o,h){const p=o&&i[o]||h;n.classList.add("hljs"),n.classList.add(`language-${p}`)}function be(n){let o=null;const h=y(n);if(l(h))return;if(se("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 Ut("One of your code blocks includes unescaped HTML.",n.innerHTML);o=n;const p=o.textContent,x=h?w(p,{language:h,ignoreIllegals:!0}):Ee(p);n.innerHTML=x.value,n.dataset.highlighted="yes",$t(n,h,x.language),n.result={language:x.language,re:x.relevance,relevance:x.relevance},x.secondBest&&(n.secondBest={language:x.secondBest.language,relevance:x.secondBest.relevance}),se("after:highlightElement",{el:n,result:x,text:p})}function Gt(n){r=Be(r,n)}const Wt=()=>{ie(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function zt(){ie(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Pe=!1;function ie(){function n(){ie()}if(document.readyState==="loading"){Pe||window.addEventListener("DOMContentLoaded",n,!1),Pe=!0;return}document.querySelectorAll(r.cssSelector).forEach(be)}function Kt(n,o){let h=null;try{h=o(e)}catch(p){if(F("Language definition for '{}' could not be registered.".replace("{}",n)),b)F(p);else throw p;h=a}h.name||(h.name=n),t[n]=h,h.rawDefinition=o.bind(null,e),h.aliases&&je(h.aliases,{languageName:n})}function Ft(n){delete t[n];for(const o of Object.keys(i))i[o]===n&&delete i[o]}function Xt(){return Object.keys(t)}function W(n){return n=(n||"").toLowerCase(),t[n]||t[i[n]]}function je(n,{languageName:o}){typeof n=="string"&&(n=[n]),n.forEach(h=>{i[h.toLowerCase()]=o})}function Ue(n){const o=W(n);return o&&!o.disableAutodetect}function Yt(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=o=>{n["before:highlightBlock"](Object.assign({block:o.el},o))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=o=>{n["after:highlightBlock"](Object.assign({block:o.el},o))})}function Zt(n){Yt(n),u.push(n)}function qt(n){const o=u.indexOf(n);o!==-1&&u.splice(o,1)}function se(n,o){const h=n;u.forEach(function(p){p[h]&&p[h](o)})}function Jt(n){return Z("10.7.0","highlightBlock will be removed entirely in v12.0"),Z("10.7.0","Please use highlightElement now."),be(n)}Object.assign(e,{highlight:w,highlightAuto:Ee,highlightAll:ie,highlightElement:be,highlightBlock:Jt,configure:Gt,initHighlighting:Wt,initHighlightingOnLoad:zt,registerLanguage:Kt,unregisterLanguage:Ft,listLanguages:Xt,getLanguage:W,registerAliases:je,autoDetection:Ue,inherit:Be,addPlugin:Zt,removePlugin:qt}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=jt,e.regex={concat:U,lookahead:Q,either:ge,optional:K,anyNumberOfTimes:G};for(const n in te)typeof te[n]=="object"&&$(te[n]);return Object.assign(e,te),e},q=He({});return q.newInstance=()=>He({}),Oe=q,q.HighlightJS=q,q.default=q,Oe}var Hn=Ln();const Ve=Tn(Hn);var Pn=dn("<pre><code><!></code></pre>");function jn($,O){const B=fe(O,["children","$$slots","$$events","$$legacy"]),S=fe(B,["code","highlighted","languageName","langtag"]);let I=Y(O,"code",8),v=Y(O,"highlighted",8),L=Y(O,"languageName",8,"plaintext"),H=Y(O,"langtag",8,!1);var E=Pn();In(E,()=>({"data-language":L(),...S,[Cn]:{langtag:H()}}),void 0,void 0,void 0,"svelte-167dipq");var T=Ze(E);Dn(T,1,"",null,{},{hljs:!0});var C=Ze(T);{var R=G=>{var K=et(),U=tt(K);Bn(U,v),ue(G,K)},Q=G=>{var K=pn();Qe(()=>_n(K,I())),ue(G,K)};kn(C,G=>{v()?G(R):G(Q,!1)})}qe(T),qe(E),ue($,E)}function Zn($,O){const B=fe(O,["children","$$slots","$$events","$$legacy"]),S=fe(B,["language","code","langtag"]);En(O,!1);let I=Y(O,"language",8),v=Y(O,"code",8),L=Y(O,"langtag",8,!1);const H=bn();let E=wn("");Mn(()=>{le(E)&&H("highlight",{highlighted:le(E)})}),xn(()=>(ye(I()),ye(v())),()=>{Ve.registerLanguage(I().name,I().register),yn(E,Ve.highlight(v(),{language:I().name}).value)}),On(),An();var T=et(),C=tt(T);Sn(C,O,"default",{get highlighted(){return le(E)}},R=>{jn(R,vn(()=>S,{get languageName(){return ye(I()),Nn(()=>I().name)},get langtag(){return L()},get highlighted(){return le(E)},get code(){return v()}}))}),ue($,T),Rn()}export{Zn as H};