qsharp-widgets 1.30.2.dev0__py2.py3-none-any.whl → 1.30.3.dev0__py2.py3-none-any.whl
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.
- qsharp_widgets/static/index.js +1 -1
- {qsharp_widgets-1.30.2.dev0.dist-info → qsharp_widgets-1.30.3.dev0.dist-info}/METADATA +1 -1
- qsharp_widgets-1.30.3.dev0.dist-info/RECORD +6 -0
- qsharp_widgets-1.30.2.dev0.dist-info/RECORD +0 -6
- {qsharp_widgets-1.30.2.dev0.dist-info → qsharp_widgets-1.30.3.dev0.dist-info}/WHEEL +0 -0
qsharp_widgets/static/index.js
CHANGED
|
@@ -1843,7 +1843,7 @@ l0,-`+(c+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
1843
1843
|
`:">",o};ss.prototype.renderInline=function(e,t,r){let n="",a=this.rules;for(let o=0,u=e.length;o<u;o++){let f=e[o].type;typeof a[f]<"u"?n+=a[f](e,o,t,r,this):n+=this.renderToken(e,o,t)}return n};ss.prototype.renderInlineAsText=function(e,t,r){let n="";for(let a=0,o=e.length;a<o;a++)switch(e[a].type){case"text":n+=e[a].content;break;case"image":n+=this.renderInlineAsText(e[a].children,t,r);break;case"html_inline":case"html_block":n+=e[a].content;break;case"softbreak":case"hardbreak":n+=`
|
|
1844
1844
|
`;break;default:}return n};ss.prototype.render=function(e,t,r){let n="",a=this.rules;for(let o=0,u=e.length;o<u;o++){let f=e[o].type;f==="inline"?n+=this.renderInline(e[o].children,t,r):typeof a[f]<"u"?n+=a[f](e,o,t,r,this):n+=this.renderToken(e,o,t,r)}return n};var Ad=ss;function ln(){this.__rules__=[],this.__cache__=null}ln.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};ln.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})};ln.prototype.at=function(e,t,r){let n=this.__find__(e),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=a.alt||[],this.__cache__=null};ln.prototype.before=function(e,t,r,n){let a=this.__find__(e),o=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};ln.prototype.after=function(e,t,r,n){let a=this.__find__(e),o=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};ln.prototype.push=function(e,t,r){let n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};ln.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(n){let a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!0,r.push(n)},this),this.__cache__=null,r};ln.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};ln.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(n){let a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!1,r.push(n)},this),this.__cache__=null,r};ln.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var vi=ln;function as(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}as.prototype.attrIndex=function(t){if(!this.attrs)return-1;let r=this.attrs;for(let n=0,a=r.length;n<a;n++)if(r[n][0]===t)return n;return-1};as.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};as.prototype.attrSet=function(t,r){let n=this.attrIndex(t),a=[t,r];n<0?this.attrPush(a):this.attrs[n]=a};as.prototype.attrGet=function(t){let r=this.attrIndex(t),n=null;return r>=0&&(n=this.attrs[r][1]),n};as.prototype.attrJoin=function(t,r){let n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};var kn=as;function Sd(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}Sd.prototype.Token=kn;var Md=Sd;var Gp=/\r\n?|\n/g,Np=/\0/g;function lu(e){let t;t=e.src.replace(Gp,`
|
|
1845
1845
|
`),t=t.replace(Np,"\uFFFD"),e.src=t}function uu(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function cu(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let a=t[r];a.type==="inline"&&e.md.inline.parse(a.content,e.md,e.env,a.children)}}function Up(e){return/^<a[>\s]/i.test(e)}function Wp(e){return/^<\/a\s*>/i.test(e)}function hu(e){let t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if(t[r].type!=="inline"||!e.md.linkify.pretest(t[r].content))continue;let a=t[r].children,o=0;for(let u=a.length-1;u>=0;u--){let f=a[u];if(f.type==="link_close"){for(u--;a[u].level!==f.level&&a[u].type!=="link_open";)u--;continue}if(f.type==="html_inline"&&(Up(f.content)&&o>0&&o--,Wp(f.content)&&o++),!(o>0)&&f.type==="text"&&e.md.linkify.test(f.content)){let h=f.content,x=e.md.linkify.match(h),v=[],y=f.level,T=0;x.length>0&&x[0].index===0&&u>0&&a[u-1].type==="text_special"&&(x=x.slice(1));for(let E=0;E<x.length;E++){let w=x[E].url,d=e.md.normalizeLink(w);if(!e.md.validateLink(d))continue;let l=x[E].text;x[E].schema?x[E].schema==="mailto:"&&!/^mailto:/i.test(l)?l=e.md.normalizeLinkText("mailto:"+l).replace(/^mailto:/,""):l=e.md.normalizeLinkText(l):l=e.md.normalizeLinkText("http://"+l).replace(/^http:\/\//,"");let s=x[E].index;if(s>T){let S=new e.Token("text","",0);S.content=h.slice(T,s),S.level=y,v.push(S)}let b=new e.Token("link_open","a",1);b.attrs=[["href",d]],b.level=y++,b.markup="linkify",b.info="auto",v.push(b);let M=new e.Token("text","",0);M.content=l,M.level=y,v.push(M);let C=new e.Token("link_close","a",-1);C.level=--y,C.markup="linkify",C.info="auto",v.push(C),T=x[E].lastIndex}if(T<h.length){let E=new e.Token("text","",0);E.content=h.slice(T),E.level=y,v.push(E)}t[r].children=a=ru(a,u,v)}}}}var Td=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Vp=/\((c|tm|r)\)/i,Hp=/\((c|tm|r)\)/ig,qp={c:"\xA9",r:"\xAE",tm:"\u2122"};function jp(e,t){return qp[t.toLowerCase()]}function $p(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(Hp,jp)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function Kp(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];n.type==="text"&&!t&&Td.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function du(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Vp.test(e.tokens[t].content)&&$p(e.tokens[t].children),Td.test(e.tokens[t].content)&&Kp(e.tokens[t].children))}var Zp=/['"]/,Dd=/['"]/g,kd="\u2019";function a0(e,t,r,n){e[t]||(e[t]=[]),e[t].push({pos:r,ch:n})}function Xp(e,t){let r="",n=0;t.sort((a,o)=>a.pos-o.pos);for(let a=0;a<t.length;a++){let o=t[a];r+=e.slice(n,o.pos)+o.ch,n=o.pos+1}return r+e.slice(n)}function Yp(e,t){let r,n=[],a={};for(let o=0;o<e.length;o++){let u=e[o],f=e[o].level;for(r=n.length-1;r>=0&&!(n[r].level<=f);r--);if(n.length=r+1,u.type!=="text")continue;let h=u.content,x=0,v=h.length;e:for(;x<v;){Dd.lastIndex=x;let y=Dd.exec(h);if(!y)break;let T=!0,E=!0;x=y.index+1;let w=y[0]==="'",d=32;if(y.index-1>=0)d=h.charCodeAt(y.index-1);else for(r=o-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){d=e[r].content.charCodeAt(e[r].content.length-1);break}let l=32;if(x<v)l=h.charCodeAt(x);else for(r=o+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){l=e[r].content.charCodeAt(0);break}let s=gi(d)||pi(d),b=gi(l)||pi(l),M=mi(d),C=mi(l);if(C?T=!1:b&&(M||s||(T=!1)),M?E=!1:s&&(C||b||(E=!1)),l===34&&y[0]==='"'&&d>=48&&d<=57&&(E=T=!1),T&&E&&(T=s,E=b),!T&&!E){w&&a0(a,o,y.index,kd);continue}if(E)for(r=n.length-1;r>=0;r--){let S=n[r];if(n[r].level<f)break;if(S.single===w&&n[r].level===f){S=n[r];let O,m;w?(O=t.md.options.quotes[2],m=t.md.options.quotes[3]):(O=t.md.options.quotes[0],m=t.md.options.quotes[1]),a0(a,o,y.index,m),a0(a,S.token,S.pos,O),n.length=r;continue e}}T?n.push({token:o,pos:y.index,single:w,level:f}):E&&w&&a0(a,o,y.index,kd)}}Object.keys(a).forEach(function(o){e[o].content=Xp(e[o].content,a[o])})}function fu(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Zp.test(e.tokens[t].content)||Yp(e.tokens[t].children,e)}function mu(e){let t,r,n=e.tokens,a=n.length;for(let o=0;o<a;o++){if(n[o].type!=="inline")continue;let u=n[o].children,f=u.length;for(t=0;t<f;t++)u[t].type==="text_special"&&(u[t].type="text");for(t=r=0;t<f;t++)u[t].type==="text"&&t+1<f&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==r&&(u[r]=u[t]),r++);t!==r&&(u.length=r)}}var pu=[["normalize",lu],["block",uu],["inline",cu],["linkify",hu],["replacements",du],["smartquotes",fu],["text_join",mu]];function gu(){this.ruler=new vi;for(let e=0;e<pu.length;e++)this.ruler.push(pu[e][0],pu[e][1])}gu.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)};gu.prototype.State=Md;var Ld=gu;function gn(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let a=this.src;for(let o=0,u=0,f=0,h=0,x=a.length,v=!1;u<x;u++){let y=a.charCodeAt(u);if(!v)if(Ft(y)){f++,y===9?h+=4-h%4:h++;continue}else v=!0;(y===10||u===x-1)&&(y!==10&&u++,this.bMarks.push(o),this.eMarks.push(u),this.tShift.push(f),this.sCount.push(h),this.bsCount.push(0),v=!1,f=0,h=0,o=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}gn.prototype.push=function(e,t,r){let n=new kn(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};gn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};gn.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};gn.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){let n=this.src.charCodeAt(t);if(!Ft(n))break}return t};gn.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!Ft(this.src.charCodeAt(--t)))return t+1;return t};gn.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};gn.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};gn.prototype.getLines=function(t,r,n,a){if(t>=r)return"";let o=new Array(r-t);for(let u=0,f=t;f<r;f++,u++){let h=0,x=this.bMarks[f],v=x,y;for(f+1<r||a?y=this.eMarks[f]+1:y=this.eMarks[f];v<y&&h<n;){let T=this.src.charCodeAt(v);if(Ft(T))T===9?h+=4-(h+this.bsCount[f])%4:h++;else if(v-x<this.tShift[f])h++;else break;v++}h>n?o[u]=new Array(h-n+1).join(" ")+this.src.slice(v,y):o[u]=this.src.slice(v,y)}return o.join("")};gn.prototype.Token=kn;var Od=gn;var Qp=65536;function bu(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function zd(e){let t=[],r=e.length,n=0,a=e.charCodeAt(n),o=!1,u=0,f="";for(;n<r;)a===124&&(o?(f+=e.substring(u,n-1),u=n):(t.push(f+e.substring(u,n)),f="",u=n+1)),o=a===92,n++,a=e.charCodeAt(n);return t.push(f+e.substring(u)),t}function xu(e,t,r,n){if(t+2>r)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let o=e.bMarks[a]+e.tShift[a];if(o>=e.eMarks[a])return!1;let u=e.src.charCodeAt(o++);if(u!==124&&u!==45&&u!==58||o>=e.eMarks[a])return!1;let f=e.src.charCodeAt(o++);if(f!==124&&f!==45&&f!==58&&!Ft(f)||u===45&&Ft(f))return!1;for(;o<e.eMarks[a];){let C=e.src.charCodeAt(o);if(C!==124&&C!==45&&C!==58&&!Ft(C))return!1;o++}let h=bu(e,t+1),x=h.split("|"),v=[];for(let C=0;C<x.length;C++){let S=x[C].trim();if(!S){if(C===0||C===x.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?v.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?v.push("left"):v.push("")}if(h=bu(e,t).trim(),h.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;x=zd(h),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.pop();let y=x.length;if(y===0||y!==v.length)return!1;if(n)return!0;let T=e.parentType;e.parentType="table";let E=e.md.block.ruler.getRules("blockquote"),w=e.push("table_open","table",1),d=[t,0];w.map=d;let l=e.push("thead_open","thead",1);l.map=[t,t+1];let s=e.push("tr_open","tr",1);s.map=[t,t+1];for(let C=0;C<x.length;C++){let S=e.push("th_open","th",1);v[C]&&(S.attrs=[["style","text-align:"+v[C]]]);let O=e.push("inline","",0);O.content=x[C].trim(),O.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b,M=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let C=!1;for(let O=0,m=E.length;O<m;O++)if(E[O](e,a,r,!0)){C=!0;break}if(C||(h=bu(e,a).trim(),!h)||e.sCount[a]-e.blkIndent>=4||(x=zd(h),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.pop(),M+=y-x.length,M>Qp))break;if(a===t+2){let O=e.push("tbody_open","tbody",1);O.map=b=[t+2,0]}let S=e.push("tr_open","tr",1);S.map=[a,a+1];for(let O=0;O<y;O++){let m=e.push("td_open","td",1);v[O]&&(m.attrs=[["style","text-align:"+v[O]]]);let p=e.push("inline","",0);p.content=x[O]?x[O].trim():"",p.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=a),e.push("table_close","table",-1),d[1]=a,e.parentType=T,e.line=a,!0}function vu(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,a=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,a=n;continue}break}e.line=a;let o=e.push("code_block","code",0);return o.content=e.getLines(t,a,4+e.blkIndent,!1)+`
|
|
1846
|
-
`,o.map=[t,e.line],!0}function yu(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>o)return!1;let u=e.src.charCodeAt(a);if(u!==126&&u!==96)return!1;let f=a;a=e.skipChars(a,u);let h=a-f;if(h<3)return!1;let x=e.src.slice(f,a),v=e.src.slice(a,o);if(u===96&&v.indexOf(String.fromCharCode(u))>=0)return!1;if(n)return!0;let y=t,T=!1;for(;y++,!(y>=r||(a=f=e.bMarks[y]+e.tShift[y],o=e.eMarks[y],a<o&&e.sCount[y]<e.blkIndent));)if(e.src.charCodeAt(a)===u&&!(e.sCount[y]-e.blkIndent>=4)&&(a=e.skipChars(a,u),!(a-f<h)&&(a=e.skipSpaces(a),!(a<o)))){T=!0;break}h=e.sCount[t],e.line=y+(T?1:0);let E=e.push("fence","code",0);return E.info=v,E.content=e.getLines(t+1,y,h,!0),E.markup=x,E.map=[t,e.line],!0}function _u(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],u=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(n)return!0;let f=[],h=[],x=[],v=[],y=e.md.block.ruler.getRules("blockquote"),T=e.parentType;e.parentType="blockquote";let E=!1,w;for(w=t;w<r;w++){let M=e.sCount[w]<e.blkIndent;if(a=e.bMarks[w]+e.tShift[w],o=e.eMarks[w],a>=o)break;if(e.src.charCodeAt(a++)===62&&!M){let S=e.sCount[w]+1,O,m;e.src.charCodeAt(a)===32?(a++,S++,m=!1,O=!0):e.src.charCodeAt(a)===9?(O=!0,(e.bsCount[w]+S)%4===3?(a++,S++,m=!1):m=!0):O=!1;let p=S;for(f.push(e.bMarks[w]),e.bMarks[w]=a;a<o;){let k=e.src.charCodeAt(a);if(Ft(k))k===9?p+=4-(p+e.bsCount[w]+(m?1:0))%4:p++;else break;a++}E=a>=o,h.push(e.bsCount[w]),e.bsCount[w]=e.sCount[w]+1+(O?1:0),x.push(e.sCount[w]),e.sCount[w]=p-S,v.push(e.tShift[w]),e.tShift[w]=a-e.bMarks[w];continue}if(E)break;let C=!1;for(let S=0,O=y.length;S<O;S++)if(y[S](e,w,r,!0)){C=!0;break}if(C){e.lineMax=w,e.blkIndent!==0&&(f.push(e.bMarks[w]),h.push(e.bsCount[w]),v.push(e.tShift[w]),x.push(e.sCount[w]),e.sCount[w]-=e.blkIndent);break}f.push(e.bMarks[w]),h.push(e.bsCount[w]),v.push(e.tShift[w]),x.push(e.sCount[w]),e.sCount[w]=-1}let d=e.blkIndent;e.blkIndent=0;let l=e.push("blockquote_open","blockquote",1);l.markup=">";let s=[t,0];l.map=s,e.md.block.tokenize(e,t,w);let b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=u,e.parentType=T,s[1]=e.line;for(let M=0;M<v.length;M++)e.bMarks[M+t]=f[M],e.tShift[M+t]=v[M],e.sCount[M+t]=x[M],e.bsCount[M+t]=h[M];return e.blkIndent=d,!0}function wu(e,t,r,n){let a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],u=e.src.charCodeAt(o++);if(u!==42&&u!==45&&u!==95)return!1;let f=1;for(;o<a;){let x=e.src.charCodeAt(o++);if(x!==u&&!Ft(x))return!1;x===u&&f++}if(f<3)return!1;if(n)return!0;e.line=t+1;let h=e.push("hr","hr",0);return h.map=[t,e.line],h.markup=Array(f+1).join(String.fromCharCode(u)),!0}function Rd(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(n++);if(a!==42&&a!==45&&a!==43)return-1;if(n<r){let o=e.src.charCodeAt(n);if(!Ft(o))return-1}return n}function Pd(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],a=r;if(a+1>=n)return-1;let o=e.src.charCodeAt(a++);if(o<48||o>57)return-1;for(;;){if(a>=n)return-1;if(o=e.src.charCodeAt(a++),o>=48&&o<=57){if(a-r>=10)return-1;continue}if(o===41||o===46)break;return-1}return a<n&&(o=e.src.charCodeAt(a),!Ft(o))?-1:a}function Jp(e,t){let r=e.level+2;for(let n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function Eu(e,t,r,n){let a,o,u,f,h=t,x=!0;if(e.sCount[h]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[h]-e.listIndent>=4&&e.sCount[h]<e.blkIndent)return!1;let v=!1;n&&e.parentType==="paragraph"&&e.sCount[h]>=e.blkIndent&&(v=!0);let y,T,E;if((E=Pd(e,h))>=0){if(y=!0,u=e.bMarks[h]+e.tShift[h],T=Number(e.src.slice(u,E-1)),v&&T!==1)return!1}else if((E=Rd(e,h))>=0)y=!1;else return!1;if(v&&e.skipSpaces(E)>=e.eMarks[h])return!1;if(n)return!0;let w=e.src.charCodeAt(E-1),d=e.tokens.length;y?(f=e.push("ordered_list_open","ol",1),T!==1&&(f.attrs=[["start",T]])):f=e.push("bullet_list_open","ul",1);let l=[h,0];f.map=l,f.markup=String.fromCharCode(w);let s=!1,b=e.md.block.ruler.getRules("list"),M=e.parentType;for(e.parentType="list";h<r;){o=E,a=e.eMarks[h];let C=e.sCount[h]+E-(e.bMarks[h]+e.tShift[h]),S=C;for(;o<a;){let W=e.src.charCodeAt(o);if(W===9)S+=4-(S+e.bsCount[h])%4;else if(W===32)S++;else break;o++}let O=o,m;O>=a?m=1:m=S-C,m>4&&(m=1);let p=C+m;f=e.push("list_item_open","li",1),f.markup=String.fromCharCode(w);let k=[h,0];f.map=k,y&&(f.info=e.src.slice(u,E-1));let L=e.tight,z=e.tShift[h],G=e.sCount[h],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=p,e.tight=!0,e.tShift[h]=O-e.bMarks[h],e.sCount[h]=S,O>=a&&e.isEmpty(h+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,h,r,!0),(!e.tight||s)&&(x=!1),s=e.line-h>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[h]=z,e.sCount[h]=G,e.tight=L,f=e.push("list_item_close","li",-1),f.markup=String.fromCharCode(w),h=e.line,k[1]=h,h>=r||e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4)break;let U=!1;for(let W=0,q=b.length;W<q;W++)if(b[W](e,h,r,!0)){U=!0;break}if(U)break;if(y){if(E=Pd(e,h),E<0)break;u=e.bMarks[h]+e.tShift[h]}else if(E=Rd(e,h),E<0)break;if(w!==e.src.charCodeAt(E-1))break}return y?f=e.push("ordered_list_close","ol",-1):f=e.push("bullet_list_close","ul",-1),f.markup=String.fromCharCode(w),l[1]=h,e.line=h,e.parentType=M,x&&Jp(e,d),!0}function Cu(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],u=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function f(b){let M=e.lineMax;if(b>=M||e.isEmpty(b))return null;let C=!1;if(e.sCount[b]-e.blkIndent>3&&(C=!0),e.sCount[b]<0&&(C=!0),!C){let m=e.md.block.ruler.getRules("reference"),p=e.parentType;e.parentType="reference";let k=!1;for(let L=0,z=m.length;L<z;L++)if(m[L](e,b,M,!0)){k=!0;break}if(e.parentType=p,k)return null}let S=e.bMarks[b]+e.tShift[b],O=e.eMarks[b];return e.src.slice(S,O+1)}let h=e.src.slice(a,o+1);o=h.length;let x=-1;for(a=1;a<o;a++){let b=h.charCodeAt(a);if(b===91)return!1;if(b===93){x=a;break}else if(b===10){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}else if(b===92&&(a++,a<o&&h.charCodeAt(a)===10)){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}}if(x<0||h.charCodeAt(x+1)!==58)return!1;for(a=x+2;a<o;a++){let b=h.charCodeAt(a);if(b===10){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}else if(!Ft(b))break}let v=e.md.helpers.parseLinkDestination(h,a,o);if(!v.ok)return!1;let y=e.md.normalizeLink(v.str);if(!e.md.validateLink(y))return!1;a=v.pos;let T=a,E=u,w=a;for(;a<o;a++){let b=h.charCodeAt(a);if(b===10){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}else if(!Ft(b))break}let d=e.md.helpers.parseLinkTitle(h,a,o);for(;d.can_continue;){let b=f(u);if(b===null)break;h+=b,a=o,o=h.length,u++,d=e.md.helpers.parseLinkTitle(h,a,o,d)}let l;for(a<o&&w!==a&&d.ok?(l=d.str,a=d.pos):(l="",a=T,u=E);a<o;){let b=h.charCodeAt(a);if(!Ft(b))break;a++}if(a<o&&h.charCodeAt(a)!==10&&l)for(l="",a=T,u=E;a<o;){let b=h.charCodeAt(a);if(!Ft(b))break;a++}if(a<o&&h.charCodeAt(a)!==10)return!1;let s=bi(h.slice(1,x));return s?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[s]>"u"&&(e.env.references[s]={title:l,href:y}),e.line=u),!0):!1}var Id=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var eg="[a-zA-Z_:][a-zA-Z0-9:._-]*",tg="[^\"'=<>`\\x00-\\x20]+",rg="'[^']*'",ng='"[^"]*"',ig="(?:"+tg+"|"+rg+"|"+ng+")",sg="(?:\\s+"+eg+"(?:\\s*=\\s*"+ig+")?)",Fd="<[A-Za-z][A-Za-z0-9\\-]*"+sg+"*\\s*\\/?>",Bd="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ag="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",og="<[?][\\s\\S]*?[?]>",lg="<![A-Za-z][^>]*>",ug="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Gd=new RegExp("^(?:"+Fd+"|"+Bd+"|"+ag+"|"+og+"|"+lg+"|"+ug+")"),Nd=new RegExp("^(?:"+Fd+"|"+Bd+")");var yi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Id.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Nd.source+"\\s*$"),/^$/,!1]];function Au(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let u=e.src.slice(a,o),f=0;for(;f<yi.length&&!yi[f][0].test(u);f++);if(f===yi.length)return!1;if(n)return yi[f][2];let h=t+1,x=yi[f][1].test("");if(!yi[f][1].test(u)){for(;h<r&&!(e.sCount[h]<e.blkIndent&&(x||!e.isEmpty(h)));h++)if(a=e.bMarks[h]+e.tShift[h],o=e.eMarks[h],u=e.src.slice(a,o),yi[f][1].test(u)){u.length!==0&&h++;break}}e.line=h;let v=e.push("html_block","",0);return v.map=[t,h],v.content=e.getLines(t,h,e.blkIndent,!0),!0}function Su(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=e.src.charCodeAt(a);if(u!==35||a>=o)return!1;let f=1;for(u=e.src.charCodeAt(++a);u===35&&a<o&&f<=6;)f++,u=e.src.charCodeAt(++a);if(f>6||a<o&&!Ft(u))return!1;if(n)return!0;o=e.skipSpacesBack(o,a);let h=e.skipCharsBack(o,35,a);h>a&&Ft(e.src.charCodeAt(h-1))&&(o=h),e.line=t+1;let x=e.push("heading_open","h"+String(f),1);x.markup="########".slice(0,f),x.map=[t,e.line];let v=e.push("inline","",0);v.content=xi(e.src.slice(a,o)),v.map=[t,e.line],v.children=[];let y=e.push("heading_close","h"+String(f),-1);return y.markup="########".slice(0,f),!0}function Mu(e,t,r){let n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.parentType;e.parentType="paragraph";let o=0,u,f=t+1;for(;f<r&&!e.isEmpty(f);f++){if(e.sCount[f]-e.blkIndent>3)continue;if(e.sCount[f]>=e.blkIndent){let E=e.bMarks[f]+e.tShift[f],w=e.eMarks[f];if(E<w&&(u=e.src.charCodeAt(E),(u===45||u===61)&&(E=e.skipChars(E,u),E=e.skipSpaces(E),E>=w))){o=u===61?1:2;break}}if(e.sCount[f]<0)continue;let T=!1;for(let E=0,w=n.length;E<w;E++)if(n[E](e,f,r,!0)){T=!0;break}if(T)break}if(!o)return e.parentType=a,!1;let h=xi(e.getLines(t,f,e.blkIndent,!1));e.line=f+1;let x=e.push("heading_open","h"+String(o),1);x.markup=String.fromCharCode(u),x.map=[t,e.line];let v=e.push("inline","",0);v.content=h,v.map=[t,e.line-1],v.children=[];let y=e.push("heading_close","h"+String(o),-1);return y.markup=String.fromCharCode(u),e.parentType=a,!0}function Tu(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),a=e.parentType,o=t+1;for(e.parentType="paragraph";o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let x=!1;for(let v=0,y=n.length;v<y;v++)if(n[v](e,o,r,!0)){x=!0;break}if(x)break}let u=xi(e.getLines(t,o,e.blkIndent,!1));e.line=o;let f=e.push("paragraph_open","p",1);f.map=[t,e.line];let h=e.push("inline","",0);return h.content=u,h.map=[t,e.line],h.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}var o0=[["table",xu,["paragraph","reference"]],["code",vu],["fence",yu,["paragraph","reference","blockquote","list"]],["blockquote",_u,["paragraph","reference","blockquote","list"]],["hr",wu,["paragraph","reference","blockquote","list"]],["list",Eu,["paragraph","reference","blockquote"]],["reference",Cu],["html_block",Au,["paragraph","reference","blockquote"]],["heading",Su,["paragraph","reference","blockquote"]],["lheading",Mu],["paragraph",Tu]];function l0(){this.ruler=new vi;for(let e=0;e<o0.length;e++)this.ruler.push(o0[e][0],o0[e][1],{alt:(o0[e][2]||[]).slice()})}l0.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),a=n.length,o=e.md.options.maxNesting,u=t,f=!1;for(;u<r&&(e.line=u=e.skipEmptyLines(u),!(u>=r||e.sCount[u]<e.blkIndent));){if(e.level>=o){e.line=r;break}let h=e.line,x=!1;for(let v=0;v<a;v++)if(x=n[v](e,u,r,!1),x){if(h>=e.line)throw new Error("block rule didn't increment state.line");break}if(!x)throw new Error("none of the block rules matched");e.tight=!f,e.isEmpty(e.line-1)&&(f=!0),u=e.line,u<r&&e.isEmpty(u)&&(f=!0,u++,e.line=u)}};l0.prototype.parse=function(e,t,r,n){if(!e)return;let a=new this.State(e,t,r,n);this.tokenize(a,a.line,a.lineMax)};l0.prototype.State=Od;var Ud=l0;function fa(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}fa.prototype.pushPending=function(){let e=new kn("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};fa.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new kn(e,t,r),a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n};fa.prototype.scanDelims=function(e,t){let r=this.posMax,n=this.src.charCodeAt(e),a;if(e===0)a=32;else if(e===1)a=this.src.charCodeAt(0),(a&63488)===55296&&(a=65533);else if(a=this.src.charCodeAt(e-1),(a&64512)===56320){let l=this.src.charCodeAt(e-2);a=(l&64512)===55296?65536+(l-55296<<10)+(a-56320):65533}else(a&64512)===55296&&(a=65533);let o=e;for(;o<r&&this.src.charCodeAt(o)===n;)o++;let u=o-e,f=o<r?this.src.charCodeAt(o):32;if((f&64512)===55296){let l=this.src.charCodeAt(o+1);f=(l&64512)===56320?65536+(f-55296<<10)+(l-56320):65533}else(f&64512)===56320&&(f=65533);let h=gi(a)||pi(a),x=gi(f)||pi(f),v=mi(a),y=mi(f),T=!y&&(!x||v||h),E=!v&&(!h||y||x);return{can_open:T&&(t||!E||h),can_close:E&&(t||!T||x),length:u}};fa.prototype.Token=kn;var Wd=fa;function cg(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Du(e,t){let r=e.pos;for(;r<e.posMax&&!cg(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}var hg=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function ku(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;let a=e.pending.match(hg);if(!a)return!1;let o=a[1],u=e.md.linkify.matchAtStart(e.src.slice(r-o.length));if(!u)return!1;let f=u.url;if(f.length<=o.length)return!1;let h=f.length;for(;h>0&&f.charCodeAt(h-1)===42;)h--;h!==f.length&&(f=f.slice(0,h));let x=e.md.normalizeLink(f);if(!e.md.validateLink(x))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);let v=e.push("link_open","a",1);v.attrs=[["href",x]],v.markup="linkify",v.info="auto";let y=e.push("text","",0);y.content=e.md.normalizeLinkText(f);let T=e.push("link_close","a",-1);T.markup="linkify",T.info="auto"}return e.pos+=f.length-o.length,!0}function Lu(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;let n=e.pending.length-1,a=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<a&&Ft(e.src.charCodeAt(r));)r++;return e.pos=r,!0}var Ou=[];for(let e=0;e<256;e++)Ou.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ou[e.charCodeAt(0)]=1});function zu(e,t){let r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(a=e.src.charCodeAt(r),!!Ft(a));)r++;return e.pos=r,!0}let o=e.src[r];if(a>=55296&&a<=56319&&r+1<n){let f=e.src.charCodeAt(r+1);f>=56320&&f<=57343&&(o+=e.src[r+1],r++)}let u="\\"+o;if(!t){let f=e.push("text_special","",0);a<256&&Ou[a]!==0?f.content=o:f.content=u,f.markup=u,f.info="escape"}return e.pos=r+1,!0}function Ru(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;let a=r;r++;let o=e.posMax;for(;r<o&&e.src.charCodeAt(r)===96;)r++;let u=e.src.slice(a,r),f=u.length;if(e.backticksScanned&&(e.backticks[f]||0)<=a)return t||(e.pending+=u),e.pos+=f,!0;let h=r,x;for(;(x=e.src.indexOf("`",h))!==-1;){for(h=x+1;h<o&&e.src.charCodeAt(h)===96;)h++;let v=h-x;if(v===f){if(!t){let y=e.push("code_inline","code",0);y.markup=u,y.content=e.src.slice(r,x).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=h,!0}e.backticks[v]=x}return e.backticksScanned=!0,t||(e.pending+=u),e.pos+=f,!0}function dg(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;let a=e.scanDelims(e.pos,!0),o=a.length,u=String.fromCharCode(n);if(o<2)return!1;let f;o%2&&(f=e.push("text","",0),f.content=u,o--);for(let h=0;h<o;h+=2)f=e.push("text","",0),f.content=u+u,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0}function Vd(e,t){let r,n=[],a=t.length;for(let o=0;o<a;o++){let u=t[o];if(u.marker!==126||u.end===-1)continue;let f=t[u.end];r=e.tokens[u.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[f.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[f.token-1].type==="text"&&e.tokens[f.token-1].content==="~"&&n.push(f.token-1)}for(;n.length;){let o=n.pop(),u=o+1;for(;u<e.tokens.length&&e.tokens[u].type==="s_close";)u++;u--,o!==u&&(r=e.tokens[u],e.tokens[u]=e.tokens[o],e.tokens[o]=r)}}function fg(e){let t=e.tokens_meta,r=e.tokens_meta.length;Vd(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&Vd(e,t[n].delimiters)}var Pu={tokenize:dg,postProcess:fg};function mg(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;let a=e.scanDelims(e.pos,n===42);for(let o=0;o<a.length;o++){let u=e.push("text","",0);u.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0}function Hd(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let a=t[n];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;let o=t[a.end],u=n>0&&t[n-1].end===a.end+1&&t[n-1].marker===a.marker&&t[n-1].token===a.token-1&&t[a.end+1].token===o.token+1,f=String.fromCharCode(a.marker),h=e.tokens[a.token];h.type=u?"strong_open":"em_open",h.tag=u?"strong":"em",h.nesting=1,h.markup=u?f+f:f,h.content="";let x=e.tokens[o.token];x.type=u?"strong_close":"em_close",x.tag=u?"strong":"em",x.nesting=-1,x.markup=u?f+f:f,x.content="",u&&(e.tokens[t[n-1].token].content="",e.tokens[t[a.end+1].token].content="",n--)}}function pg(e){let t=e.tokens_meta,r=e.tokens_meta.length;Hd(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&Hd(e,t[n].delimiters)}var Iu={tokenize:mg,postProcess:pg};function Fu(e,t){let r,n,a,o,u="",f="",h=e.pos,x=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let v=e.pos,y=e.posMax,T=e.pos+1,E=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(E<0)return!1;let w=E+1;if(w<y&&e.src.charCodeAt(w)===40){for(x=!1,w++;w<y&&(r=e.src.charCodeAt(w),!(!Ft(r)&&r!==10));w++);if(w>=y)return!1;if(h=w,a=e.md.helpers.parseLinkDestination(e.src,w,e.posMax),a.ok){for(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?w=a.pos:u="",h=w;w<y&&(r=e.src.charCodeAt(w),!(!Ft(r)&&r!==10));w++);if(a=e.md.helpers.parseLinkTitle(e.src,w,e.posMax),w<y&&h!==w&&a.ok)for(f=a.str,w=a.pos;w<y&&(r=e.src.charCodeAt(w),!(!Ft(r)&&r!==10));w++);}(w>=y||e.src.charCodeAt(w)!==41)&&(x=!0),w++}if(x){if(typeof e.env.references>"u")return!1;if(w<y&&e.src.charCodeAt(w)===91?(h=w+1,w=e.md.helpers.parseLinkLabel(e,w),w>=0?n=e.src.slice(h,w++):w=E+1):w=E+1,n||(n=e.src.slice(T,E)),o=e.env.references[bi(n)],!o)return e.pos=v,!1;u=o.href,f=o.title}if(!t){e.pos=T,e.posMax=E;let d=e.push("link_open","a",1),l=[["href",u]];d.attrs=l,f&&l.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=w,e.posMax=y,!0}function Bu(e,t){let r,n,a,o,u,f,h,x,v="",y=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let E=e.pos+2,w=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(w<0)return!1;if(o=w+1,o<T&&e.src.charCodeAt(o)===40){for(o++;o<T&&(r=e.src.charCodeAt(o),!(!Ft(r)&&r!==10));o++);if(o>=T)return!1;for(x=o,f=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),f.ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?o=f.pos:v=""),x=o;o<T&&(r=e.src.charCodeAt(o),!(!Ft(r)&&r!==10));o++);if(f=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<T&&x!==o&&f.ok)for(h=f.str,o=f.pos;o<T&&(r=e.src.charCodeAt(o),!(!Ft(r)&&r!==10));o++);else h="";if(o>=T||e.src.charCodeAt(o)!==41)return e.pos=y,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<T&&e.src.charCodeAt(o)===91?(x=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?a=e.src.slice(x,o++):o=w+1):o=w+1,a||(a=e.src.slice(E,w)),u=e.env.references[bi(a)],!u)return e.pos=y,!1;v=u.href,h=u.title}if(!t){n=e.src.slice(E,w);let d=[];e.md.inline.parse(n,e.md,e.env,d);let l=e.push("image","img",0),s=[["src",v],["alt",""]];l.attrs=s,l.children=d,l.content=n,h&&s.push(["title",h])}return e.pos=o,e.posMax=T,!0}var gg=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,bg=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Gu(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;let n=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;let u=e.src.charCodeAt(r);if(u===60)return!1;if(u===62)break}let o=e.src.slice(n+1,r);if(bg.test(o)){let u=e.md.normalizeLink(o);if(!e.md.validateLink(u))return!1;if(!t){let f=e.push("link_open","a",1);f.attrs=[["href",u]],f.markup="autolink",f.info="auto";let h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);let x=e.push("link_close","a",-1);x.markup="autolink",x.info="auto"}return e.pos+=o.length+2,!0}if(gg.test(o)){let u=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(u))return!1;if(!t){let f=e.push("link_open","a",1);f.attrs=[["href",u]],f.markup="autolink",f.info="auto";let h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);let x=e.push("link_close","a",-1);x.markup="autolink",x.info="auto"}return e.pos+=o.length+2,!0}return!1}function xg(e){return/^<a[>\s]/i.test(e)}function vg(e){return/^<\/a\s*>/i.test(e)}function yg(e){let t=e|32;return t>=97&&t<=122}function Nu(e,t){if(!e.md.options.html)return!1;let r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;let a=e.src.charCodeAt(n+1);if(a!==33&&a!==63&&a!==47&&!yg(a))return!1;let o=e.src.slice(n).match(Gd);if(!o)return!1;if(!t){let u=e.push("html_inline","",0);u.content=o[0],xg(u.content)&&e.linkLevel++,vg(u.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}var _g=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,wg=/^&([a-z][a-z0-9]{1,31});/i;function Uu(e,t){let r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){let o=e.src.slice(r).match(_g);if(o){if(!t){let u=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),f=e.push("text_special","",0);f.content=s0(u)?is(u):is(65533),f.markup=o[0],f.info="entity"}return e.pos+=o[0].length,!0}}else{let o=e.src.slice(r).match(wg);if(o){let u=da(o[0]);if(u!==o[0]){if(!t){let f=e.push("text_special","",0);f.content=u,f.markup=o[0],f.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function qd(e){let t={},r=e.length;if(!r)return;let n=0,a=-2,o=[];for(let u=0;u<r;u++){let f=e[u];if(o.push(0),(e[n].marker!==f.marker||a!==f.token-1)&&(n=u),a=f.token,f.length=f.length||0,!f.close)continue;t.hasOwnProperty(f.marker)||(t[f.marker]=[-1,-1,-1,-1,-1,-1]);let h=t[f.marker][(f.open?3:0)+f.length%3],x=n-o[n]-1,v=x;for(;x>h;x-=o[x]+1){let y=e[x];if(y.marker===f.marker&&y.open&&y.end<0){let T=!1;if((y.close||f.open)&&(y.length+f.length)%3===0&&(y.length%3!==0||f.length%3!==0)&&(T=!0),!T){let E=x>0&&!e[x-1].open?o[x-1]+1:0;o[u]=u-x+E,o[x]=E,f.open=!1,y.end=u,y.close=!1,v=-1,a=-2;break}}}v!==-1&&(t[f.marker][(f.open?3:0)+(f.length||0)%3]=v)}}function Wu(e){let t=e.tokens_meta,r=e.tokens_meta.length;qd(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&qd(t[n].delimiters)}function Vu(e){let t,r,n=0,a=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)a[t].nesting<0&&n--,a[t].level=n,a[t].nesting>0&&n++,a[t].type==="text"&&t+1<o&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}var Hu=[["text",Du],["linkify",ku],["newline",Lu],["escape",zu],["backticks",Ru],["strikethrough",Pu.tokenize],["emphasis",Iu.tokenize],["link",Fu],["image",Bu],["autolink",Gu],["html_inline",Nu],["entity",Uu]],qu=[["balance_pairs",Wu],["strikethrough",Pu.postProcess],["emphasis",Iu.postProcess],["fragments_join",Vu]];function ma(){this.ruler=new vi;for(let e=0;e<Hu.length;e++)this.ruler.push(Hu[e][0],Hu[e][1]);this.ruler2=new vi;for(let e=0;e<qu.length;e++)this.ruler2.push(qu[e][0],qu[e][1])}ma.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,a=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let u=!1;if(e.level<a){for(let f=0;f<n;f++)if(e.level++,u=r[f](e,!0),e.level--,u){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;u||e.pos++,o[t]=e.pos};ma.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,a=e.md.options.maxNesting;for(;e.pos<n;){let o=e.pos,u=!1;if(e.level<a){for(let f=0;f<r;f++)if(u=t[f](e,!1),u){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(u){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ma.prototype.parse=function(e,t,r,n){let a=new this.State(e,t,r,n);this.tokenize(a);let o=this.ruler2.getRules(""),u=o.length;for(let f=0;f<u;f++)o[f](a)};ma.prototype.State=Wd;var jd=ma;function $d(e){let t={};e=e||{},t.src_Any=Qo.source,t.src_Cc=Jo.source,t.src_Z=t0.source,t.src_P=ts.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ju(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function c0(e){return Object.prototype.toString.call(e)}function Eg(e){return c0(e)==="[object String]"}function Cg(e){return c0(e)==="[object Object]"}function Ag(e){return c0(e)==="[object RegExp]"}function Kd(e){return c0(e)==="[object Function]"}function Sg(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Xd={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Mg(e){return Object.keys(e||{}).reduce(function(t,r){return t||Xd.hasOwnProperty(r)},!1)}var Tg={"http:":{validate:function(e,t,r){let n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Dg="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",kg="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Lg(e){return function(t,r){let n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function Zd(){return function(e,t){t.normalize(e)}}function u0(e){let t=e.re=$d(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(Dg),r.push(t.src_xn),t.src_tlds=r.join("|");function n(f){return f.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let a=[];e.__compiled__={};function o(f,h){throw new Error('(LinkifyIt) Invalid schema "'+f+'": '+h)}Object.keys(e.__schemas__).forEach(function(f){let h=e.__schemas__[f];if(h===null)return;let x={validate:null,link:null};if(e.__compiled__[f]=x,Cg(h)){Ag(h.validate)?x.validate=Lg(h.validate):Kd(h.validate)?x.validate=h.validate:o(f,h),Kd(h.normalize)?x.normalize=h.normalize:h.normalize?o(f,h):x.normalize=Zd();return}if(Eg(h)){a.push(f);return}o(f,h)}),a.forEach(function(f){e.__compiled__[e.__schemas__[f]]&&(e.__compiled__[f].validate=e.__compiled__[e.__schemas__[f]].validate,e.__compiled__[f].normalize=e.__compiled__[e.__schemas__[f]].normalize)}),e.__compiled__[""]={validate:null,normalize:Zd()};let u=Object.keys(e.__compiled__).filter(function(f){return f.length>0&&e.__compiled__[f]}).map(Sg).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function Yd(e,t,r,n){let a=e.slice(r,n);this.schema=t.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=a,this.text=a,this.url=a}function qr(e,t){if(!(this instanceof qr))return new qr(e,t);t||Mg(e)&&(t=e,e={}),this.__opts__=ju({},Xd,t),this.__schemas__=ju({},Tg,e),this.__compiled__={},this.__tlds__=kg,this.__tlds_replaced__=!1,this.re={},u0(this)}qr.prototype.add=function(t,r){return this.__schemas__[t]=r,u0(this),this};qr.prototype.set=function(t){return this.__opts__=ju(this.__opts__,t),this};qr.prototype.test=function(t){if(!t.length)return!1;let r,n;if(this.re.schema_test.test(t)){for(n=this.re.schema_search,n.lastIndex=0;(r=n.exec(t))!==null;)if(this.testSchemaAt(t,r[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};qr.prototype.pretest=function(t){return this.re.pretest.test(t)};qr.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};qr.prototype.match=function(t){let r=[],n=[],a=[],o=[],u,f,h;function x(T,E){return T?E?T.index!==E.index?T.index<E.index?T:E:T.lastIndex>=E.lastIndex?T:E:T:E}if(!t.length)return null;if(this.re.schema_test.test(t))for(h=this.re.schema_search,h.lastIndex=0;(u=h.exec(t))!==null;)f=this.testSchemaAt(t,u[2],h.lastIndex),f&&n.push({schema:u[2],index:u.index+u[1].length,lastIndex:u.index+u[0].length+f});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(h=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,h.lastIndex=0;(u=h.exec(t))!==null;)a.push({schema:"",index:u.index+u[1].length,lastIndex:u.index+u[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(h=this.re.email_fuzzy_global,h.lastIndex=0;(u=h.exec(t))!==null;)o.push({schema:"mailto:",index:u.index+u[1].length,lastIndex:u.index+u[0].length});let v=[0,0,0],y=0;for(;;){let T=[n[v[0]],o[v[1]],a[v[2]]],E=x(x(T[0],T[1]),T[2]);if(!E)break;if(E===T[0]?v[0]++:E===T[1]?v[1]++:v[2]++,E.index<y)continue;let w=new Yd(t,E.schema,E.index,E.lastIndex);this.__compiled__[w.schema].normalize(w,this),r.push(w),y=E.lastIndex}return r.length?r:null};qr.prototype.matchAtStart=function(t){if(!t.length)return null;let r=this.re.schema_at_start.exec(t);if(!r)return null;let n=this.testSchemaAt(t,r[2],r[0].length);if(!n)return null;let a=new Yd(t,r[2],r.index+r[1].length,r.index+r[0].length+n);return this.__compiled__[a.schema].normalize(a,this),a};qr.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,o){return n!==o[a-1]}).reverse(),u0(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u0(this),this)};qr.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};qr.prototype.onCompile=function(){};var Qd=qr;var Og=/^xn--/,zg=/[^\0-\x7F]/,Rg=/[\x2E\u3002\uFF0E\uFF61]/g,Pg={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$u=35,bn=Math.floor,Ku=String.fromCharCode;function $n(e){throw new RangeError(Pg[e])}function Ig(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function ef(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(Rg,".");let a=e.split("."),o=Ig(a,t).join(".");return n+o}function tf(e){let t=[],r=0,n=e.length;for(;r<n;){let a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){let o=e.charCodeAt(r++);(o&64512)==56320?t.push(((a&1023)<<10)+(o&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}var Fg=e=>String.fromCodePoint(...e),Bg=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},Jd=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},rf=function(e,t,r){let n=0;for(e=r?bn(e/700):e>>1,e+=bn(e/t);e>$u*26>>1;n+=36)e=bn(e/$u);return bn(n+($u+1)*e/(e+38))},nf=function(e){let t=[],r=e.length,n=0,a=128,o=72,u=e.lastIndexOf("-");u<0&&(u=0);for(let f=0;f<u;++f)e.charCodeAt(f)>=128&&$n("not-basic"),t.push(e.charCodeAt(f));for(let f=u>0?u+1:0;f<r;){let h=n;for(let v=1,y=36;;y+=36){f>=r&&$n("invalid-input");let T=Bg(e.charCodeAt(f++));T>=36&&$n("invalid-input"),T>bn((2147483647-n)/v)&&$n("overflow"),n+=T*v;let E=y<=o?1:y>=o+26?26:y-o;if(T<E)break;let w=36-E;v>bn(2147483647/w)&&$n("overflow"),v*=w}let x=t.length+1;o=rf(n-h,x,h==0),bn(n/x)>2147483647-a&&$n("overflow"),a+=bn(n/x),n%=x,t.splice(n++,0,a)}return String.fromCodePoint(...t)},sf=function(e){let t=[];e=tf(e);let r=e.length,n=128,a=0,o=72;for(let h of e)h<128&&t.push(Ku(h));let u=t.length,f=u;for(u&&t.push("-");f<r;){let h=2147483647;for(let v of e)v>=n&&v<h&&(h=v);let x=f+1;h-n>bn((2147483647-a)/x)&&$n("overflow"),a+=(h-n)*x,n=h;for(let v of e)if(v<n&&++a>2147483647&&$n("overflow"),v===n){let y=a;for(let T=36;;T+=36){let E=T<=o?1:T>=o+26?26:T-o;if(y<E)break;let w=y-E,d=36-E;t.push(Ku(Jd(E+w%d,0))),y=bn(w/d)}t.push(Ku(Jd(y,0))),o=rf(a,x,f===u),a=0,++f}++a,++n}return t.join("")},Gg=function(e){return ef(e,function(t){return Og.test(t)?nf(t.slice(4).toLowerCase()):t})},Ng=function(e){return ef(e,function(t){return zg.test(t)?"xn--"+sf(t):t})},Ug={version:"2.3.1",ucs2:{decode:tf,encode:Fg},decode:nf,encode:sf,toASCII:Ng,toUnicode:Gg};var Zu=Ug;var af={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var of={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var lf={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var Wg={default:af,zero:of,commonmark:lf},Vg=/^(vbscript|javascript|file|data):/,Hg=/^data:image\/(gif|png|jpeg|webp);/;function qg(e){let t=e.trim().toLowerCase();return Vg.test(t)?Hg.test(t):!0}var uf=["http:","https:","mailto:"];function jg(e){let t=ha(e,!0);if(t.hostname&&(!t.protocol||uf.indexOf(t.protocol)>=0))try{t.hostname=Zu.toASCII(t.hostname)}catch{}return Zo(es(t))}function $g(e){let t=ha(e,!0);if(t.hostname&&(!t.protocol||uf.indexOf(t.protocol)>=0))try{t.hostname=Zu.toUnicode(t.hostname)}catch{}return ca(es(t),ca.defaultChars+"%")}function Yr(e,t){if(!(this instanceof Yr))return new Yr(e,t);t||i0(e)||(t=e||{},e="default"),this.inline=new jd,this.block=new Ud,this.core=new Ld,this.renderer=new Ad,this.linkify=new Qd,this.validateLink=qg,this.normalizeLink=jg,this.normalizeLinkText=$g,this.utils=nu,this.helpers=ns({},ou),this.options={},this.configure(e),t&&this.set(t)}Yr.prototype.set=function(e){return ns(this.options,e),this};Yr.prototype.configure=function(e){let t=this;if(i0(e)){let r=e;if(e=Wg[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};Yr.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Yr.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Yr.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Yr.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};Yr.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Yr.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Yr.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Xu=Yr;var xf=rc(bf());var Qu=Xu();Qu.use(xf.default);al(e=>Qu.render(e));function vf(e){return Qu.render(e.replace(/\\\\/g,"\\"))}function t2({model:e,el:t}){let r=e.get("comp");if(!t.ownerDocument.head.lastChild?.textContent?.includes("widget-css-fix")){let n=t.ownerDocument.createElement("style");n.textContent="/* widget-css-fix */ .cell-output-ipywidget-background {background-color: transparent !important;}",t.ownerDocument.head.appendChild(n)}switch(r){case"SpaceChart":n2({model:e,el:t});break;case"EstimatesOverview":i2({model:e,el:t});break;case"EstimateDetails":r2({model:e,el:t});break;case"Histogram":a2({model:e,el:t});break;case"EstimatesPanel":s2({model:e,el:t});break;case"Circuit":o2({model:e,el:t});break;case"Atoms":l2({model:e,el:t});break;case"MoleculeViewer":c2({model:e,el:t});break;case"Entanglement":u2({model:e,el:t});break;default:throw new Error(`Unknown component type ${r}`)}}var M5={render:t2};function r2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("index"),o=Un(n,a);Sn(ce(Zs,{estimatesData:o,mdRenderer:vf}),t)};r(),e.on("change:estimates",r),e.on("change:index",r)}function n2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("index"),o=Un(n,a);Sn(ce(Xs,{estimatesData:o}),t)};r(),e.on("change:estimates",r),e.on("change:index",r)}function i2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("colors"),o=e.get("runNames"),u=[];if(n[0]==null)u.push(n);else for(let h of Object.values(n))u.push(h);let f=yf(u,h=>{u=h,e.set("estimates",u)});Sn(ce(Ys,{estimatesData:u,runNames:o,colors:a,isSimplifiedView:!0,onRowDeleted:f,setEstimate:()=>{},allowSaveImage:!0}),t)};r(),e.on("change:estimates",r),e.on("change:colors",r),e.on("change:runNames",r)}function s2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("colors"),o=e.get("runNames"),u=[];if(n[0]==null)u.push(n);else for(let h of Object.values(n))u.push(h);let f=yf(u,h=>{u=h,e.set("estimates",u)});Sn(ce(cl,{estimatesData:u,runNames:o,colors:a,renderer:vf,calculating:!1,onRowDeleted:f,allowSaveImage:!0}),t)};r(),e.on("change:estimates",r),e.on("change:colors",r),e.on("change:runNames",r)}function yf(e,t){return r=>{let n=JSON.parse(JSON.stringify(e)),a=n.findIndex(o=>o.jobParams.runName===r);a>=0&&n.splice(a,1),t(n)}}function a2({model:e,el:t}){let r=()=>{let n=e.get("buckets"),a=new Map(Object.entries(n)),o=e.get("shot_count"),u=e.get("shot_header"),f=e.get("labels"),h=e.get("items"),x=e.get("sort");Sn(ce(sl,{data:a,shotCount:o,filter:"",onFilter:()=>{},shotsHeader:u,labels:f,items:h,sort:x}),t)};r(),e.on("change:buckets",r),e.on("change:shot_count",r),e.on("change:shot_header",r),e.on("change:labels",r),e.on("change:items",r),e.on("change:sort",r)}function o2({model:e,el:t}){let r=()=>{let n=e.get("circuit_json");Sn(ce(Bl,{circuit:JSON.parse(n),renderLocations:a=>({title:a.map(o=>`${o.file}:${o.line}:${o.column}`).join(`
|
|
1846
|
+
`,o.map=[t,e.line],!0}function yu(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>o)return!1;let u=e.src.charCodeAt(a);if(u!==126&&u!==96)return!1;let f=a;a=e.skipChars(a,u);let h=a-f;if(h<3)return!1;let x=e.src.slice(f,a),v=e.src.slice(a,o);if(u===96&&v.indexOf(String.fromCharCode(u))>=0)return!1;if(n)return!0;let y=t,T=!1;for(;y++,!(y>=r||(a=f=e.bMarks[y]+e.tShift[y],o=e.eMarks[y],a<o&&e.sCount[y]<e.blkIndent));)if(e.src.charCodeAt(a)===u&&!(e.sCount[y]-e.blkIndent>=4)&&(a=e.skipChars(a,u),!(a-f<h)&&(a=e.skipSpaces(a),!(a<o)))){T=!0;break}h=e.sCount[t],e.line=y+(T?1:0);let E=e.push("fence","code",0);return E.info=v,E.content=e.getLines(t+1,y,h,!0),E.markup=x,E.map=[t,e.line],!0}function _u(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],u=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(n)return!0;let f=[],h=[],x=[],v=[],y=e.md.block.ruler.getRules("blockquote"),T=e.parentType;e.parentType="blockquote";let E=!1,w;for(w=t;w<r;w++){let M=e.sCount[w]<e.blkIndent;if(a=e.bMarks[w]+e.tShift[w],o=e.eMarks[w],a>=o)break;if(e.src.charCodeAt(a++)===62&&!M){let S=e.sCount[w]+1,O,m;e.src.charCodeAt(a)===32?(a++,S++,m=!1,O=!0):e.src.charCodeAt(a)===9?(O=!0,(e.bsCount[w]+S)%4===3?(a++,S++,m=!1):m=!0):O=!1;let p=S;for(f.push(e.bMarks[w]),e.bMarks[w]=a;a<o;){let k=e.src.charCodeAt(a);if(Ft(k))k===9?p+=4-(p+e.bsCount[w]+(m?1:0))%4:p++;else break;a++}E=a>=o,h.push(e.bsCount[w]),e.bsCount[w]=e.sCount[w]+1+(O?1:0),x.push(e.sCount[w]),e.sCount[w]=p-S,v.push(e.tShift[w]),e.tShift[w]=a-e.bMarks[w];continue}if(E)break;let C=!1;for(let S=0,O=y.length;S<O;S++)if(y[S](e,w,r,!0)){C=!0;break}if(C){e.lineMax=w,e.blkIndent!==0&&(f.push(e.bMarks[w]),h.push(e.bsCount[w]),v.push(e.tShift[w]),x.push(e.sCount[w]),e.sCount[w]-=e.blkIndent);break}f.push(e.bMarks[w]),h.push(e.bsCount[w]),v.push(e.tShift[w]),x.push(e.sCount[w]),e.sCount[w]=-1}let d=e.blkIndent;e.blkIndent=0;let l=e.push("blockquote_open","blockquote",1);l.markup=">";let s=[t,0];l.map=s,e.md.block.tokenize(e,t,w);let b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=u,e.parentType=T,s[1]=e.line;for(let M=0;M<v.length;M++)e.bMarks[M+t]=f[M],e.tShift[M+t]=v[M],e.sCount[M+t]=x[M],e.bsCount[M+t]=h[M];return e.blkIndent=d,!0}function wu(e,t,r,n){let a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],u=e.src.charCodeAt(o++);if(u!==42&&u!==45&&u!==95)return!1;let f=1;for(;o<a;){let x=e.src.charCodeAt(o++);if(x!==u&&!Ft(x))return!1;x===u&&f++}if(f<3)return!1;if(n)return!0;e.line=t+1;let h=e.push("hr","hr",0);return h.map=[t,e.line],h.markup=Array(f+1).join(String.fromCharCode(u)),!0}function Rd(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(n++);if(a!==42&&a!==45&&a!==43)return-1;if(n<r){let o=e.src.charCodeAt(n);if(!Ft(o))return-1}return n}function Pd(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],a=r;if(a+1>=n)return-1;let o=e.src.charCodeAt(a++);if(o<48||o>57)return-1;for(;;){if(a>=n)return-1;if(o=e.src.charCodeAt(a++),o>=48&&o<=57){if(a-r>=10)return-1;continue}if(o===41||o===46)break;return-1}return a<n&&(o=e.src.charCodeAt(a),!Ft(o))?-1:a}function Jp(e,t){let r=e.level+2;for(let n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function Eu(e,t,r,n){let a,o,u,f,h=t,x=!0;if(e.sCount[h]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[h]-e.listIndent>=4&&e.sCount[h]<e.blkIndent)return!1;let v=!1;n&&e.parentType==="paragraph"&&e.sCount[h]>=e.blkIndent&&(v=!0);let y,T,E;if((E=Pd(e,h))>=0){if(y=!0,u=e.bMarks[h]+e.tShift[h],T=Number(e.src.slice(u,E-1)),v&&T!==1)return!1}else if((E=Rd(e,h))>=0)y=!1;else return!1;if(v&&e.skipSpaces(E)>=e.eMarks[h])return!1;if(n)return!0;let w=e.src.charCodeAt(E-1),d=e.tokens.length;y?(f=e.push("ordered_list_open","ol",1),T!==1&&(f.attrs=[["start",T]])):f=e.push("bullet_list_open","ul",1);let l=[h,0];f.map=l,f.markup=String.fromCharCode(w);let s=!1,b=e.md.block.ruler.getRules("list"),M=e.parentType;for(e.parentType="list";h<r;){o=E,a=e.eMarks[h];let C=e.sCount[h]+E-(e.bMarks[h]+e.tShift[h]),S=C;for(;o<a;){let W=e.src.charCodeAt(o);if(W===9)S+=4-(S+e.bsCount[h])%4;else if(W===32)S++;else break;o++}let O=o,m;O>=a?m=1:m=S-C,m>4&&(m=1);let p=C+m;f=e.push("list_item_open","li",1),f.markup=String.fromCharCode(w);let k=[h,0];f.map=k,y&&(f.info=e.src.slice(u,E-1));let L=e.tight,z=e.tShift[h],G=e.sCount[h],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=p,e.tight=!0,e.tShift[h]=O-e.bMarks[h],e.sCount[h]=S,O>=a&&e.isEmpty(h+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,h,r,!0),(!e.tight||s)&&(x=!1),s=e.line-h>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[h]=z,e.sCount[h]=G,e.tight=L,f=e.push("list_item_close","li",-1),f.markup=String.fromCharCode(w),h=e.line,k[1]=h,h>=r||e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4)break;let U=!1;for(let W=0,q=b.length;W<q;W++)if(b[W](e,h,r,!0)){U=!0;break}if(U)break;if(y){if(E=Pd(e,h),E<0)break;u=e.bMarks[h]+e.tShift[h]}else if(E=Rd(e,h),E<0)break;if(w!==e.src.charCodeAt(E-1))break}return y?f=e.push("ordered_list_close","ol",-1):f=e.push("bullet_list_close","ul",-1),f.markup=String.fromCharCode(w),l[1]=h,e.line=h,e.parentType=M,x&&Jp(e,d),!0}function Cu(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],u=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function f(b){let M=e.lineMax;if(b>=M||e.isEmpty(b))return null;let C=!1;if(e.sCount[b]-e.blkIndent>3&&(C=!0),e.sCount[b]<0&&(C=!0),!C){let m=e.md.block.ruler.getRules("reference"),p=e.parentType;e.parentType="reference";let k=!1;for(let L=0,z=m.length;L<z;L++)if(m[L](e,b,M,!0)){k=!0;break}if(e.parentType=p,k)return null}let S=e.bMarks[b]+e.tShift[b],O=e.eMarks[b];return e.src.slice(S,O+1)}let h=e.src.slice(a,o+1);o=h.length;let x=-1;for(a=1;a<o;a++){let b=h.charCodeAt(a);if(b===91)return!1;if(b===93){x=a;break}else if(b===10){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}else if(b===92&&(a++,a<o&&h.charCodeAt(a)===10)){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}}if(x<0||h.charCodeAt(x+1)!==58)return!1;for(a=x+2;a<o;a++){let b=h.charCodeAt(a);if(b===10){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}else if(!Ft(b))break}let v=e.md.helpers.parseLinkDestination(h,a,o);if(!v.ok)return!1;let y=e.md.normalizeLink(v.str);if(!e.md.validateLink(y))return!1;a=v.pos;let T=a,E=u,w=a;for(;a<o;a++){let b=h.charCodeAt(a);if(b===10){let M=f(u);M!==null&&(h+=M,o=h.length,u++)}else if(!Ft(b))break}let d=e.md.helpers.parseLinkTitle(h,a,o);for(;d.can_continue;){let b=f(u);if(b===null)break;h+=b,a=o,o=h.length,u++,d=e.md.helpers.parseLinkTitle(h,a,o,d)}let l;for(a<o&&w!==a&&d.ok?(l=d.str,a=d.pos):(l="",a=T,u=E);a<o;){let b=h.charCodeAt(a);if(!Ft(b))break;a++}if(a<o&&h.charCodeAt(a)!==10&&l)for(l="",a=T,u=E;a<o;){let b=h.charCodeAt(a);if(!Ft(b))break;a++}if(a<o&&h.charCodeAt(a)!==10)return!1;let s=bi(h.slice(1,x));return s?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[s]>"u"&&(e.env.references[s]={title:l,href:y}),e.line=u),!0):!1}var Id=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var eg="[a-zA-Z_:][a-zA-Z0-9:._-]*",tg="[^\"'=<>`\\x00-\\x20]+",rg="'[^']*'",ng='"[^"]*"',ig="(?:"+tg+"|"+rg+"|"+ng+")",sg="(?:\\s+"+eg+"(?:\\s*=\\s*"+ig+")?)",Fd="<[A-Za-z][A-Za-z0-9\\-]*"+sg+"*\\s*\\/?>",Bd="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ag="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",og="<[?][\\s\\S]*?[?]>",lg="<![A-Za-z][^>]*>",ug="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Gd=new RegExp("^(?:"+Fd+"|"+Bd+"|"+ag+"|"+og+"|"+lg+"|"+ug+")"),Nd=new RegExp("^(?:"+Fd+"|"+Bd+")");var yi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Id.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Nd.source+"\\s*$"),/^$/,!1]];function Au(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let u=e.src.slice(a,o),f=0;for(;f<yi.length&&!yi[f][0].test(u);f++);if(f===yi.length)return!1;if(n)return yi[f][2];let h=t+1,x=yi[f][1].test("");if(!yi[f][1].test(u)){for(;h<r&&!(e.sCount[h]<e.blkIndent&&(x||!e.isEmpty(h)));h++)if(a=e.bMarks[h]+e.tShift[h],o=e.eMarks[h],u=e.src.slice(a,o),yi[f][1].test(u)){u.length!==0&&h++;break}}e.line=h;let v=e.push("html_block","",0);return v.map=[t,h],v.content=e.getLines(t,h,e.blkIndent,!0),!0}function Su(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=e.src.charCodeAt(a);if(u!==35||a>=o)return!1;let f=1;for(u=e.src.charCodeAt(++a);u===35&&a<o&&f<=6;)f++,u=e.src.charCodeAt(++a);if(f>6||a<o&&!Ft(u))return!1;if(n)return!0;o=e.skipSpacesBack(o,a);let h=e.skipCharsBack(o,35,a);h>a&&Ft(e.src.charCodeAt(h-1))&&(o=h),e.line=t+1;let x=e.push("heading_open","h"+String(f),1);x.markup="########".slice(0,f),x.map=[t,e.line];let v=e.push("inline","",0);v.content=xi(e.src.slice(a,o)),v.map=[t,e.line],v.children=[];let y=e.push("heading_close","h"+String(f),-1);return y.markup="########".slice(0,f),!0}function Mu(e,t,r){let n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.parentType;e.parentType="paragraph";let o=0,u,f=t+1;for(;f<r&&!e.isEmpty(f);f++){if(e.sCount[f]-e.blkIndent>3)continue;if(e.sCount[f]>=e.blkIndent){let E=e.bMarks[f]+e.tShift[f],w=e.eMarks[f];if(E<w&&(u=e.src.charCodeAt(E),(u===45||u===61)&&(E=e.skipChars(E,u),E=e.skipSpaces(E),E>=w))){o=u===61?1:2;break}}if(e.sCount[f]<0)continue;let T=!1;for(let E=0,w=n.length;E<w;E++)if(n[E](e,f,r,!0)){T=!0;break}if(T)break}if(!o)return e.parentType=a,!1;let h=xi(e.getLines(t,f,e.blkIndent,!1));e.line=f+1;let x=e.push("heading_open","h"+String(o),1);x.markup=String.fromCharCode(u),x.map=[t,e.line];let v=e.push("inline","",0);v.content=h,v.map=[t,e.line-1],v.children=[];let y=e.push("heading_close","h"+String(o),-1);return y.markup=String.fromCharCode(u),e.parentType=a,!0}function Tu(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),a=e.parentType,o=t+1;for(e.parentType="paragraph";o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let x=!1;for(let v=0,y=n.length;v<y;v++)if(n[v](e,o,r,!0)){x=!0;break}if(x)break}let u=xi(e.getLines(t,o,e.blkIndent,!1));e.line=o;let f=e.push("paragraph_open","p",1);f.map=[t,e.line];let h=e.push("inline","",0);return h.content=u,h.map=[t,e.line],h.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}var o0=[["table",xu,["paragraph","reference"]],["code",vu],["fence",yu,["paragraph","reference","blockquote","list"]],["blockquote",_u,["paragraph","reference","blockquote","list"]],["hr",wu,["paragraph","reference","blockquote","list"]],["list",Eu,["paragraph","reference","blockquote"]],["reference",Cu],["html_block",Au,["paragraph","reference","blockquote"]],["heading",Su,["paragraph","reference","blockquote"]],["lheading",Mu],["paragraph",Tu]];function l0(){this.ruler=new vi;for(let e=0;e<o0.length;e++)this.ruler.push(o0[e][0],o0[e][1],{alt:(o0[e][2]||[]).slice()})}l0.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),a=n.length,o=e.md.options.maxNesting,u=t,f=!1;for(;u<r&&(e.line=u=e.skipEmptyLines(u),!(u>=r||e.sCount[u]<e.blkIndent));){if(e.level>=o){e.line=r;break}let h=e.line,x=!1;for(let v=0;v<a;v++)if(x=n[v](e,u,r,!1),x){if(h>=e.line)throw new Error("block rule didn't increment state.line");break}if(!x)throw new Error("none of the block rules matched");e.tight=!f,e.isEmpty(e.line-1)&&(f=!0),u=e.line,u<r&&e.isEmpty(u)&&(f=!0,u++,e.line=u)}};l0.prototype.parse=function(e,t,r,n){if(!e)return;let a=new this.State(e,t,r,n);this.tokenize(a,a.line,a.lineMax)};l0.prototype.State=Od;var Ud=l0;function fa(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}fa.prototype.pushPending=function(){let e=new kn("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};fa.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new kn(e,t,r),a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n};fa.prototype.scanDelims=function(e,t){let r=this.posMax,n=this.src.charCodeAt(e),a;if(e===0)a=32;else if(e===1)a=this.src.charCodeAt(0),(a&63488)===55296&&(a=65533);else if(a=this.src.charCodeAt(e-1),(a&64512)===56320){let l=this.src.charCodeAt(e-2);a=(l&64512)===55296?65536+(l-55296<<10)+(a-56320):65533}else(a&64512)===55296&&(a=65533);let o=e;for(;o<r&&this.src.charCodeAt(o)===n;)o++;let u=o-e,f=o<r?this.src.charCodeAt(o):32;if((f&64512)===55296){let l=this.src.charCodeAt(o+1);f=(l&64512)===56320?65536+(f-55296<<10)+(l-56320):65533}else(f&64512)===56320&&(f=65533);let h=gi(a)||pi(a),x=gi(f)||pi(f),v=mi(a),y=mi(f),T=!y&&(!x||v||h),E=!v&&(!h||y||x);return{can_open:T&&(t||!E||h),can_close:E&&(t||!T||x),length:u}};fa.prototype.Token=kn;var Wd=fa;function cg(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Du(e,t){let r=e.pos;for(;r<e.posMax&&!cg(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}var hg=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function ku(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;let a=e.pending.match(hg);if(!a)return!1;let o=a[1],u=e.md.linkify.matchAtStart(e.src.slice(r-o.length));if(!u)return!1;let f=u.url;if(f.length<=o.length)return!1;let h=f.length;for(;h>0&&f.charCodeAt(h-1)===42;)h--;h!==f.length&&(f=f.slice(0,h));let x=e.md.normalizeLink(f);if(!e.md.validateLink(x))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);let v=e.push("link_open","a",1);v.attrs=[["href",x]],v.markup="linkify",v.info="auto";let y=e.push("text","",0);y.content=e.md.normalizeLinkText(f);let T=e.push("link_close","a",-1);T.markup="linkify",T.info="auto"}return e.pos+=f.length-o.length,!0}function Lu(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;let n=e.pending.length-1,a=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<a&&Ft(e.src.charCodeAt(r));)r++;return e.pos=r,!0}var Ou=[];for(let e=0;e<256;e++)Ou.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ou[e.charCodeAt(0)]=1});function zu(e,t){let r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(a=e.src.charCodeAt(r),!!Ft(a));)r++;return e.pos=r,!0}let o=e.src[r];if(a>=55296&&a<=56319&&r+1<n){let f=e.src.charCodeAt(r+1);f>=56320&&f<=57343&&(o+=e.src[r+1],r++)}let u="\\"+o;if(!t){let f=e.push("text_special","",0);a<256&&Ou[a]!==0?f.content=o:f.content=u,f.markup=u,f.info="escape"}return e.pos=r+1,!0}function Ru(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;let a=r;r++;let o=e.posMax;for(;r<o&&e.src.charCodeAt(r)===96;)r++;let u=e.src.slice(a,r),f=u.length;if(e.backticksScanned&&(e.backticks[f]||0)<=a)return t||(e.pending+=u),e.pos+=f,!0;let h=r,x;for(;(x=e.src.indexOf("`",h))!==-1;){for(h=x+1;h<o&&e.src.charCodeAt(h)===96;)h++;let v=h-x;if(v===f){if(!t){let y=e.push("code_inline","code",0);y.markup=u,y.content=e.src.slice(r,x).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=h,!0}e.backticks[v]=x}return e.backticksScanned=!0,t||(e.pending+=u),e.pos+=f,!0}function dg(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;let a=e.scanDelims(e.pos,!0),o=a.length,u=String.fromCharCode(n);if(o<2)return!1;let f;o%2&&(f=e.push("text","",0),f.content=u,o--);for(let h=0;h<o;h+=2)f=e.push("text","",0),f.content=u+u,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0}function Vd(e,t){let r,n=[],a=t.length;for(let o=0;o<a;o++){let u=t[o];if(u.marker!==126||u.end===-1)continue;let f=t[u.end];r=e.tokens[u.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[f.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[f.token-1].type==="text"&&e.tokens[f.token-1].content==="~"&&n.push(f.token-1)}for(;n.length;){let o=n.pop(),u=o+1;for(;u<e.tokens.length&&e.tokens[u].type==="s_close";)u++;u--,o!==u&&(r=e.tokens[u],e.tokens[u]=e.tokens[o],e.tokens[o]=r)}}function fg(e){let t=e.tokens_meta,r=e.tokens_meta.length;Vd(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&Vd(e,t[n].delimiters)}var Pu={tokenize:dg,postProcess:fg};function mg(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;let a=e.scanDelims(e.pos,n===42);for(let o=0;o<a.length;o++){let u=e.push("text","",0);u.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0}function Hd(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let a=t[n];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;let o=t[a.end],u=n>0&&t[n-1].end===a.end+1&&t[n-1].marker===a.marker&&t[n-1].token===a.token-1&&t[a.end+1].token===o.token+1,f=String.fromCharCode(a.marker),h=e.tokens[a.token];h.type=u?"strong_open":"em_open",h.tag=u?"strong":"em",h.nesting=1,h.markup=u?f+f:f,h.content="";let x=e.tokens[o.token];x.type=u?"strong_close":"em_close",x.tag=u?"strong":"em",x.nesting=-1,x.markup=u?f+f:f,x.content="",u&&(e.tokens[t[n-1].token].content="",e.tokens[t[a.end+1].token].content="",n--)}}function pg(e){let t=e.tokens_meta,r=e.tokens_meta.length;Hd(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&Hd(e,t[n].delimiters)}var Iu={tokenize:mg,postProcess:pg};function Fu(e,t){let r,n,a,o,u="",f="",h=e.pos,x=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let v=e.pos,y=e.posMax,T=e.pos+1,E=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(E<0)return!1;let w=E+1;if(w<y&&e.src.charCodeAt(w)===40){for(x=!1,w++;w<y&&(r=e.src.charCodeAt(w),!(!Ft(r)&&r!==10));w++);if(w>=y)return!1;if(h=w,a=e.md.helpers.parseLinkDestination(e.src,w,e.posMax),a.ok){for(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?w=a.pos:u="",h=w;w<y&&(r=e.src.charCodeAt(w),!(!Ft(r)&&r!==10));w++);if(a=e.md.helpers.parseLinkTitle(e.src,w,e.posMax),w<y&&h!==w&&a.ok)for(f=a.str,w=a.pos;w<y&&(r=e.src.charCodeAt(w),!(!Ft(r)&&r!==10));w++);}(w>=y||e.src.charCodeAt(w)!==41)&&(x=!0),w++}if(x){if(typeof e.env.references>"u")return!1;if(w<y&&e.src.charCodeAt(w)===91?(h=w+1,w=e.md.helpers.parseLinkLabel(e,w),w>=0?n=e.src.slice(h,w++):w=E+1):w=E+1,n||(n=e.src.slice(T,E)),o=e.env.references[bi(n)],!o)return e.pos=v,!1;u=o.href,f=o.title}if(!t){e.pos=T,e.posMax=E;let d=e.push("link_open","a",1),l=[["href",u]];d.attrs=l,f&&l.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=w,e.posMax=y,!0}function Bu(e,t){let r,n,a,o,u,f,h,x,v="",y=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let E=e.pos+2,w=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(w<0)return!1;if(o=w+1,o<T&&e.src.charCodeAt(o)===40){for(o++;o<T&&(r=e.src.charCodeAt(o),!(!Ft(r)&&r!==10));o++);if(o>=T)return!1;for(x=o,f=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),f.ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?o=f.pos:v=""),x=o;o<T&&(r=e.src.charCodeAt(o),!(!Ft(r)&&r!==10));o++);if(f=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<T&&x!==o&&f.ok)for(h=f.str,o=f.pos;o<T&&(r=e.src.charCodeAt(o),!(!Ft(r)&&r!==10));o++);else h="";if(o>=T||e.src.charCodeAt(o)!==41)return e.pos=y,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<T&&e.src.charCodeAt(o)===91?(x=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?a=e.src.slice(x,o++):o=w+1):o=w+1,a||(a=e.src.slice(E,w)),u=e.env.references[bi(a)],!u)return e.pos=y,!1;v=u.href,h=u.title}if(!t){n=e.src.slice(E,w);let d=[];e.md.inline.parse(n,e.md,e.env,d);let l=e.push("image","img",0),s=[["src",v],["alt",""]];l.attrs=s,l.children=d,l.content=n,h&&s.push(["title",h])}return e.pos=o,e.posMax=T,!0}var gg=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,bg=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Gu(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;let n=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;let u=e.src.charCodeAt(r);if(u===60)return!1;if(u===62)break}let o=e.src.slice(n+1,r);if(bg.test(o)){let u=e.md.normalizeLink(o);if(!e.md.validateLink(u))return!1;if(!t){let f=e.push("link_open","a",1);f.attrs=[["href",u]],f.markup="autolink",f.info="auto";let h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);let x=e.push("link_close","a",-1);x.markup="autolink",x.info="auto"}return e.pos+=o.length+2,!0}if(gg.test(o)){let u=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(u))return!1;if(!t){let f=e.push("link_open","a",1);f.attrs=[["href",u]],f.markup="autolink",f.info="auto";let h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);let x=e.push("link_close","a",-1);x.markup="autolink",x.info="auto"}return e.pos+=o.length+2,!0}return!1}function xg(e){return/^<a[>\s]/i.test(e)}function vg(e){return/^<\/a\s*>/i.test(e)}function yg(e){let t=e|32;return t>=97&&t<=122}function Nu(e,t){if(!e.md.options.html)return!1;let r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;let a=e.src.charCodeAt(n+1);if(a!==33&&a!==63&&a!==47&&!yg(a))return!1;let o=e.src.slice(n).match(Gd);if(!o)return!1;if(!t){let u=e.push("html_inline","",0);u.content=o[0],xg(u.content)&&e.linkLevel++,vg(u.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}var _g=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,wg=/^&([a-z][a-z0-9]{1,31});/i;function Uu(e,t){let r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){let o=e.src.slice(r).match(_g);if(o){if(!t){let u=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),f=e.push("text_special","",0);f.content=s0(u)?is(u):is(65533),f.markup=o[0],f.info="entity"}return e.pos+=o[0].length,!0}}else{let o=e.src.slice(r).match(wg);if(o){let u=da(o[0]);if(u!==o[0]){if(!t){let f=e.push("text_special","",0);f.content=u,f.markup=o[0],f.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function qd(e){let t={},r=e.length;if(!r)return;let n=0,a=-2,o=[];for(let u=0;u<r;u++){let f=e[u];if(o.push(0),(e[n].marker!==f.marker||a!==f.token-1)&&(n=u),a=f.token,f.length=f.length||0,!f.close)continue;t.hasOwnProperty(f.marker)||(t[f.marker]=[-1,-1,-1,-1,-1,-1]);let h=t[f.marker][(f.open?3:0)+f.length%3],x=n-o[n]-1,v=x;for(;x>h;x-=o[x]+1){let y=e[x];if(y.marker===f.marker&&y.open&&y.end<0){let T=!1;if((y.close||f.open)&&(y.length+f.length)%3===0&&(y.length%3!==0||f.length%3!==0)&&(T=!0),!T){let E=x>0&&!e[x-1].open?o[x-1]+1:0;o[u]=u-x+E,o[x]=E,f.open=!1,y.end=u,y.close=!1,v=-1,a=-2;break}}}v!==-1&&(t[f.marker][(f.open?3:0)+(f.length||0)%3]=v)}}function Wu(e){let t=e.tokens_meta,r=e.tokens_meta.length;qd(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&qd(t[n].delimiters)}function Vu(e){let t,r,n=0,a=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)a[t].nesting<0&&n--,a[t].level=n,a[t].nesting>0&&n++,a[t].type==="text"&&t+1<o&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}var Hu=[["text",Du],["linkify",ku],["newline",Lu],["escape",zu],["backticks",Ru],["strikethrough",Pu.tokenize],["emphasis",Iu.tokenize],["link",Fu],["image",Bu],["autolink",Gu],["html_inline",Nu],["entity",Uu]],qu=[["balance_pairs",Wu],["strikethrough",Pu.postProcess],["emphasis",Iu.postProcess],["fragments_join",Vu]];function ma(){this.ruler=new vi;for(let e=0;e<Hu.length;e++)this.ruler.push(Hu[e][0],Hu[e][1]);this.ruler2=new vi;for(let e=0;e<qu.length;e++)this.ruler2.push(qu[e][0],qu[e][1])}ma.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,a=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let u=!1;if(e.level<a){for(let f=0;f<n;f++)if(e.level++,u=r[f](e,!0),e.level--,u){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;u||e.pos++,o[t]=e.pos};ma.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,a=e.md.options.maxNesting;for(;e.pos<n;){let o=e.pos,u=!1;if(e.level<a){for(let f=0;f<r;f++)if(u=t[f](e,!1),u){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(u){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ma.prototype.parse=function(e,t,r,n){let a=new this.State(e,t,r,n);this.tokenize(a);let o=this.ruler2.getRules(""),u=o.length;for(let f=0;f<u;f++)o[f](a)};ma.prototype.State=Wd;var jd=ma;function $d(e){let t={};e=e||{},t.src_Any=Qo.source,t.src_Cc=Jo.source,t.src_Z=t0.source,t.src_P=ts.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let r="[><\uFF5C]";return t.src_pseudo_letter=`(?:(?!${r}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${r}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${r}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${r}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${t.src_ZPCc}))((?![$+<=>^\`|\uFF5C])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${t.src_ZPCc}))((?![$+<=>^\`|\uFF5C])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function ju(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function c0(e){return Object.prototype.toString.call(e)}function Eg(e){return c0(e)==="[object String]"}function Cg(e){return c0(e)==="[object Object]"}function Ag(e){return c0(e)==="[object RegExp]"}function Kd(e){return c0(e)==="[object Function]"}function Sg(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Xd={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Mg(e){return Object.keys(e||{}).reduce(function(t,r){return t||Xd.hasOwnProperty(r)},!1)}var Tg={"http:":{validate:function(e,t,r){let n=e.slice(t);return r.re.http||(r.re.http=new RegExp(`^\\/\\/${r.re.src_auth}${r.re.src_host_port_strict}${r.re.src_path}`,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+`(?:localhost|(?:(?:${r.re.src_domain})\\.)+${r.re.src_domain_root})`+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp(`^${r.re.src_email_name}@${r.re.src_host_strict}`,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Dg="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",kg="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Lg(e){return function(t,r){let n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function Zd(){return function(e,t){t.normalize(e)}}function u0(e){let t=e.re=$d(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(Dg),r.push(t.src_xn),t.src_tlds=r.join("|");function n(f){return f.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let a=[];e.__compiled__={};function o(f,h){throw new Error(`(LinkifyIt) Invalid schema "${f}": ${h}`)}Object.keys(e.__schemas__).forEach(function(f){let h=e.__schemas__[f];if(h===null)return;let x={validate:null,link:null};if(e.__compiled__[f]=x,Cg(h)){Ag(h.validate)?x.validate=Lg(h.validate):Kd(h.validate)?x.validate=h.validate:o(f,h),Kd(h.normalize)?x.normalize=h.normalize:h.normalize?o(f,h):x.normalize=Zd();return}if(Eg(h)){a.push(f);return}o(f,h)}),a.forEach(function(f){e.__compiled__[e.__schemas__[f]]&&(e.__compiled__[f].validate=e.__compiled__[e.__schemas__[f]].validate,e.__compiled__[f].normalize=e.__compiled__[e.__schemas__[f]].normalize)}),e.__compiled__[""]={validate:null,normalize:Zd()};let u=Object.keys(e.__compiled__).filter(function(f){return f.length>0&&e.__compiled__[f]}).map(Sg).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uFF5C]|${t.src_ZPCc}))(${u})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uFF5C]|${t.src_ZPCc}))(${u})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function Yd(e,t,r,n){let a=e.slice(r,n);this.schema=t.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=a,this.text=a,this.url=a}function qr(e,t){if(!(this instanceof qr))return new qr(e,t);t||Mg(e)&&(t=e,e={}),this.__opts__=ju({},Xd,t),this.__schemas__=ju({},Tg,e),this.__compiled__={},this.__tlds__=kg,this.__tlds_replaced__=!1,this.re={},u0(this)}qr.prototype.add=function(t,r){return this.__schemas__[t]=r,u0(this),this};qr.prototype.set=function(t){return this.__opts__=ju(this.__opts__,t),this};qr.prototype.test=function(t){if(!t.length)return!1;let r,n;if(this.re.schema_test.test(t)){for(n=this.re.schema_search,n.lastIndex=0;(r=n.exec(t))!==null;)if(this.testSchemaAt(t,r[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};qr.prototype.pretest=function(t){return this.re.pretest.test(t)};qr.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};qr.prototype.match=function(t){let r=[],n=[],a=[],o=[],u,f,h;function x(T,E){return T?E?T.index!==E.index?T.index<E.index?T:E:T.lastIndex>=E.lastIndex?T:E:T:E}if(!t.length)return null;if(this.re.schema_test.test(t))for(h=this.re.schema_search,h.lastIndex=0;(u=h.exec(t))!==null;)f=this.testSchemaAt(t,u[2],h.lastIndex),f&&n.push({schema:u[2],index:u.index+u[1].length,lastIndex:u.index+u[0].length+f});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(h=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,h.lastIndex=0;(u=h.exec(t))!==null;)a.push({schema:"",index:u.index+u[1].length,lastIndex:u.index+u[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(h=this.re.email_fuzzy_global,h.lastIndex=0;(u=h.exec(t))!==null;)o.push({schema:"mailto:",index:u.index+u[1].length,lastIndex:u.index+u[0].length});let v=[0,0,0],y=0;for(;;){let T=[n[v[0]],o[v[1]],a[v[2]]],E=x(x(T[0],T[1]),T[2]);if(!E)break;if(E===T[0]?v[0]++:E===T[1]?v[1]++:v[2]++,E.index<y)continue;let w=new Yd(t,E.schema,E.index,E.lastIndex);this.__compiled__[w.schema].normalize(w,this),r.push(w),y=E.lastIndex}return r.length?r:null};qr.prototype.matchAtStart=function(t){if(!t.length)return null;let r=this.re.schema_at_start.exec(t);if(!r)return null;let n=this.testSchemaAt(t,r[2],r[0].length);if(!n)return null;let a=new Yd(t,r[2],r.index+r[1].length,r.index+r[0].length+n);return this.__compiled__[a.schema].normalize(a,this),a};qr.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,o){return n!==o[a-1]}).reverse(),u0(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u0(this),this)};qr.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};qr.prototype.onCompile=function(){};var Qd=qr;var Og=/^xn--/,zg=/[^\0-\x7F]/,Rg=/[\x2E\u3002\uFF0E\uFF61]/g,Pg={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$u=35,bn=Math.floor,Ku=String.fromCharCode;function $n(e){throw new RangeError(Pg[e])}function Ig(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function ef(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(Rg,".");let a=e.split("."),o=Ig(a,t).join(".");return n+o}function tf(e){let t=[],r=0,n=e.length;for(;r<n;){let a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){let o=e.charCodeAt(r++);(o&64512)==56320?t.push(((a&1023)<<10)+(o&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}var Fg=e=>String.fromCodePoint(...e),Bg=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},Jd=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},rf=function(e,t,r){let n=0;for(e=r?bn(e/700):e>>1,e+=bn(e/t);e>$u*26>>1;n+=36)e=bn(e/$u);return bn(n+($u+1)*e/(e+38))},nf=function(e){let t=[],r=e.length,n=0,a=128,o=72,u=e.lastIndexOf("-");u<0&&(u=0);for(let f=0;f<u;++f)e.charCodeAt(f)>=128&&$n("not-basic"),t.push(e.charCodeAt(f));for(let f=u>0?u+1:0;f<r;){let h=n;for(let v=1,y=36;;y+=36){f>=r&&$n("invalid-input");let T=Bg(e.charCodeAt(f++));T>=36&&$n("invalid-input"),T>bn((2147483647-n)/v)&&$n("overflow"),n+=T*v;let E=y<=o?1:y>=o+26?26:y-o;if(T<E)break;let w=36-E;v>bn(2147483647/w)&&$n("overflow"),v*=w}let x=t.length+1;o=rf(n-h,x,h==0),bn(n/x)>2147483647-a&&$n("overflow"),a+=bn(n/x),n%=x,t.splice(n++,0,a)}return String.fromCodePoint(...t)},sf=function(e){let t=[];e=tf(e);let r=e.length,n=128,a=0,o=72;for(let h of e)h<128&&t.push(Ku(h));let u=t.length,f=u;for(u&&t.push("-");f<r;){let h=2147483647;for(let v of e)v>=n&&v<h&&(h=v);let x=f+1;h-n>bn((2147483647-a)/x)&&$n("overflow"),a+=(h-n)*x,n=h;for(let v of e)if(v<n&&++a>2147483647&&$n("overflow"),v===n){let y=a;for(let T=36;;T+=36){let E=T<=o?1:T>=o+26?26:T-o;if(y<E)break;let w=y-E,d=36-E;t.push(Ku(Jd(E+w%d,0))),y=bn(w/d)}t.push(Ku(Jd(y,0))),o=rf(a,x,f===u),a=0,++f}++a,++n}return t.join("")},Gg=function(e){return ef(e,function(t){return Og.test(t)?nf(t.slice(4).toLowerCase()):t})},Ng=function(e){return ef(e,function(t){return zg.test(t)?"xn--"+sf(t):t})},Ug={version:"2.3.1",ucs2:{decode:tf,encode:Fg},decode:nf,encode:sf,toASCII:Ng,toUnicode:Gg};var Zu=Ug;var af={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var of={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var lf={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var Wg={default:af,zero:of,commonmark:lf},Vg=/^(vbscript|javascript|file|data):/,Hg=/^data:image\/(gif|png|jpeg|webp);/;function qg(e){let t=e.trim().toLowerCase();return Vg.test(t)?Hg.test(t):!0}var uf=["http:","https:","mailto:"];function jg(e){let t=ha(e,!0);if(t.hostname&&(!t.protocol||uf.indexOf(t.protocol)>=0))try{t.hostname=Zu.toASCII(t.hostname)}catch{}return Zo(es(t))}function $g(e){let t=ha(e,!0);if(t.hostname&&(!t.protocol||uf.indexOf(t.protocol)>=0))try{t.hostname=Zu.toUnicode(t.hostname)}catch{}return ca(es(t),ca.defaultChars+"%")}function Yr(e,t){if(!(this instanceof Yr))return new Yr(e,t);t||i0(e)||(t=e||{},e="default"),this.inline=new jd,this.block=new Ud,this.core=new Ld,this.renderer=new Ad,this.linkify=new Qd,this.validateLink=qg,this.normalizeLink=jg,this.normalizeLinkText=$g,this.utils=nu,this.helpers=ns({},ou),this.options={},this.configure(e),t&&this.set(t)}Yr.prototype.set=function(e){return ns(this.options,e),this};Yr.prototype.configure=function(e){let t=this;if(i0(e)){let r=e;if(e=Wg[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};Yr.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Yr.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Yr.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Yr.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};Yr.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Yr.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Yr.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Xu=Yr;var xf=rc(bf());var Qu=Xu();Qu.use(xf.default);al(e=>Qu.render(e));function vf(e){return Qu.render(e.replace(/\\\\/g,"\\"))}function t2({model:e,el:t}){let r=e.get("comp");if(!t.ownerDocument.head.lastChild?.textContent?.includes("widget-css-fix")){let n=t.ownerDocument.createElement("style");n.textContent="/* widget-css-fix */ .cell-output-ipywidget-background {background-color: transparent !important;}",t.ownerDocument.head.appendChild(n)}switch(r){case"SpaceChart":n2({model:e,el:t});break;case"EstimatesOverview":i2({model:e,el:t});break;case"EstimateDetails":r2({model:e,el:t});break;case"Histogram":a2({model:e,el:t});break;case"EstimatesPanel":s2({model:e,el:t});break;case"Circuit":o2({model:e,el:t});break;case"Atoms":l2({model:e,el:t});break;case"MoleculeViewer":c2({model:e,el:t});break;case"Entanglement":u2({model:e,el:t});break;default:throw new Error(`Unknown component type ${r}`)}}var M5={render:t2};function r2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("index"),o=Un(n,a);Sn(ce(Zs,{estimatesData:o,mdRenderer:vf}),t)};r(),e.on("change:estimates",r),e.on("change:index",r)}function n2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("index"),o=Un(n,a);Sn(ce(Xs,{estimatesData:o}),t)};r(),e.on("change:estimates",r),e.on("change:index",r)}function i2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("colors"),o=e.get("runNames"),u=[];if(n[0]==null)u.push(n);else for(let h of Object.values(n))u.push(h);let f=yf(u,h=>{u=h,e.set("estimates",u)});Sn(ce(Ys,{estimatesData:u,runNames:o,colors:a,isSimplifiedView:!0,onRowDeleted:f,setEstimate:()=>{},allowSaveImage:!0}),t)};r(),e.on("change:estimates",r),e.on("change:colors",r),e.on("change:runNames",r)}function s2({model:e,el:t}){let r=()=>{let n=e.get("estimates"),a=e.get("colors"),o=e.get("runNames"),u=[];if(n[0]==null)u.push(n);else for(let h of Object.values(n))u.push(h);let f=yf(u,h=>{u=h,e.set("estimates",u)});Sn(ce(cl,{estimatesData:u,runNames:o,colors:a,renderer:vf,calculating:!1,onRowDeleted:f,allowSaveImage:!0}),t)};r(),e.on("change:estimates",r),e.on("change:colors",r),e.on("change:runNames",r)}function yf(e,t){return r=>{let n=JSON.parse(JSON.stringify(e)),a=n.findIndex(o=>o.jobParams.runName===r);a>=0&&n.splice(a,1),t(n)}}function a2({model:e,el:t}){let r=()=>{let n=e.get("buckets"),a=new Map(Object.entries(n)),o=e.get("shot_count"),u=e.get("shot_header"),f=e.get("labels"),h=e.get("items"),x=e.get("sort");Sn(ce(sl,{data:a,shotCount:o,filter:"",onFilter:()=>{},shotsHeader:u,labels:f,items:h,sort:x}),t)};r(),e.on("change:buckets",r),e.on("change:shot_count",r),e.on("change:shot_header",r),e.on("change:labels",r),e.on("change:items",r),e.on("change:sort",r)}function o2({model:e,el:t}){let r=()=>{let n=e.get("circuit_json");Sn(ce(Bl,{circuit:JSON.parse(n),renderLocations:a=>({title:a.map(o=>`${o.file}:${o.line}:${o.column}`).join(`
|
|
1847
1847
|
`),href:"#"})}),t)};r(),e.on("change:circuit_json",r)}function l2({model:e,el:t}){let r=()=>{let n=e.get("machine_layout"),a=e.get("trace_data");!n||!a||Ul(t,n,a)};r(),e.on("change:machine_layout",r),e.on("change:trace_data",r)}function u2({model:e,el:t}){function r(a){let o=e.get("s1_entropies"),u=e.get("mutual_information"),f=e.get("labels"),h=e.get("selected_indices"),x=e.get("groups"),v=e.get("options")||{},y={};for(let[T,E]of Object.entries(v))y[T.replace(/_([a-z])/g,(w,d)=>d.toUpperCase())]=E;return{s1Entropies:o,mutualInformation:u,labels:f,selectedIndices:h??void 0,groups:x??void 0,...y,...a}}let n=()=>{Sn(ce(Kl,{...r()}),t)};n(),e.on("change:s1_entropies",n),e.on("change:mutual_information",n),e.on("change:labels",n),e.on("change:selected_indices",n),e.on("change:groups",n),e.on("change:options",n)}function c2({model:e,el:t}){let r=()=>{let n=e.get("molecule_data"),a=e.get("cube_data"),o=e.get("isoval");Sn(ce(jl,{moleculeData:n,cubeData:a||{},isoValue:o}),t)};r(),e.on("change:molecule_data",r),e.on("change:cube_data",r),e.on("change:isoval",r)}export{M5 as default,vf as mdRenderer};
|
|
1848
1848
|
/*! Bundled license information:
|
|
1849
1849
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
qsharp_widgets/__init__.py,sha256=nTXS6XydpNcWU-bxu-6XquCyQdef8vc31_LVQajm93c,16716
|
|
2
|
+
qsharp_widgets/static/index.css,sha256=OH8wspI9vwJD6kRgdCwg3CfcU9wIrGx8ETrJxl5eSb0,24743
|
|
3
|
+
qsharp_widgets/static/index.js,sha256=YKw2WXArvxSHMWPkmnBboOWiDSWbuxpIYUPTtVIMyfQ,1181747
|
|
4
|
+
qsharp_widgets-1.30.3.dev0.dist-info/METADATA,sha256=YNQM1ItxpbKDfxFYoauhss2aU7Yvq9HzXnCc8yxtwTE,1960
|
|
5
|
+
qsharp_widgets-1.30.3.dev0.dist-info/WHEEL,sha256=QzEo54-UZrE9UYFkp71YQxN7B7ZqQByJkpywraEnP2s,105
|
|
6
|
+
qsharp_widgets-1.30.3.dev0.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
qsharp_widgets/__init__.py,sha256=nTXS6XydpNcWU-bxu-6XquCyQdef8vc31_LVQajm93c,16716
|
|
2
|
-
qsharp_widgets/static/index.css,sha256=OH8wspI9vwJD6kRgdCwg3CfcU9wIrGx8ETrJxl5eSb0,24743
|
|
3
|
-
qsharp_widgets/static/index.js,sha256=mGd971AcmtsulaQFklgGv4ESYlexKPmu_G4aqSubH1g,1181764
|
|
4
|
-
qsharp_widgets-1.30.2.dev0.dist-info/METADATA,sha256=AdvSNkEfqFz39GQSlQ-0eYH_JjrlBqx8TY6CyGv410I,1960
|
|
5
|
-
qsharp_widgets-1.30.2.dev0.dist-info/WHEEL,sha256=QzEo54-UZrE9UYFkp71YQxN7B7ZqQByJkpywraEnP2s,105
|
|
6
|
-
qsharp_widgets-1.30.2.dev0.dist-info/RECORD,,
|
|
File without changes
|