@grackle-ai/web 0.133.1 → 0.135.0
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.
- package/README.md +1 -0
- package/dist/assets/{KnowledgePage-DJ9NcB1C.js → KnowledgePage-Ctd5nc44.js} +2 -1
- package/dist/assets/KnowledgePage-Ctd5nc44.js.map +1 -0
- package/dist/assets/{McpAppWidget-bBtl27Gs.js → McpAppWidget-DsHebvaE.js} +3 -2
- package/dist/assets/McpAppWidget-DsHebvaE.js.map +1 -0
- package/dist/assets/SessionsListPage-BXXqe0t6.js +7 -0
- package/dist/assets/SessionsListPage-BXXqe0t6.js.map +1 -0
- package/dist/assets/SessionsListPage-DXffE_Gw.css +1 -0
- package/dist/assets/dagview-B70jDsRo.js +1 -0
- package/dist/assets/dagview-B70jDsRo.js.map +1 -0
- package/dist/assets/{grpc-CHXyF1mC.js → grpc-D84KWgEK.js} +6 -5
- package/dist/assets/grpc-D84KWgEK.js.map +1 -0
- package/dist/assets/index-DNZM43BD.js +761 -0
- package/dist/assets/index-DNZM43BD.js.map +1 -0
- package/dist/assets/index-DenpGfzN.css +1 -0
- package/dist/assets/markdown-CPoGw-1N.js +1 -0
- package/dist/assets/markdown-CPoGw-1N.js.map +1 -0
- package/dist/index.html +3 -3
- package/package.json +3 -3
- package/dist/assets/index-64ZshnVc.css +0 -1
- package/dist/assets/index-BYoJMBJg.js +0 -755
|
@@ -29,3 +29,4 @@ import{g as an,j as Rt}from"./dagview-B70jDsRo.js";function tr(e){const t=[],n=S
|
|
|
29
29
|
`,...a.current()});return/^[\t ]/.test(u)&&(u=Je(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),s(),o(),u}Vi.peek=ap;function Vi(e){return e.value||""}function ap(){return"<"}Wi.peek=lp;function Wi(e,t,n,r){const i=Wn(n),a=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(o=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),o()),u+=s.move(")"),l(),u}function lp(){return"!"}Yi.peek=op;function Yi(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let l=n.enter("label");const o=n.createTracker(r);let s=o.move("![");const u=n.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(u+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...o.current()});return l(),n.stack=p,a(),i==="full"||!u||u!==c?s+=o.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function op(){return"!"}Xi.peek=sp;function Xi(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const l=n.unsafe[a],o=n.compilePattern(l);let s;if(l.atBreak)for(;s=o.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function sp(){return"`"}function Zi(e,t){const n=pn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ki.peek=up;function Ki(e,t,n,r){const i=Wn(n),a=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let o,s;if(Zi(e,n)){const p=n.stack;n.stack=[],o=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),o(),n.stack=p,c}o=n.enter("link"),s=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),o(),u}function up(e,t,n){return Zi(e,n)?"<":"["}Qi.peek=cp;function Qi(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let l=n.enter("label");const o=n.createTracker(r);let s=o.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(u+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...o.current()});return l(),n.stack=p,a(),i==="full"||!u||u!==c?s+=o.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function cp(){return"["}function Yn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function pp(e){const t=Yn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function fp(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ji(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dp(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let l=e.ordered?fp(n):Yn(n);const o=e.ordered?l==="."?")":".":pp(n);let s=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Ji(n)===l&&p){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=o),n.bulletCurrent=l;const u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=a,i(),u}function hp(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function gp(e,t,n,r){const i=hp(n);let a=n.bulletCurrent||Yn(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let l=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(l-a.length)),o.shift(l);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),p);return s(),u;function p(c,d,f){return d?(f?"":" ".repeat(l))+c:(f?a:a+" ".repeat(l-a.length))+c}}function mp(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),l=n.containerPhrasing(e,r);return a(),i(),l}const bp=nt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function yp(e,t,n,r){return(e.children.some(function(l){return bp(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function kp(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ea.peek=xp;function ea(e,t,n,r){const i=kp(n),a=n.enter("strong"),l=n.createTracker(r),o=l.move(i+i);let s=l.move(n.containerPhrasing(e,{after:i,before:o,...l.current()}));const u=s.charCodeAt(0),p=yt(r.before.charCodeAt(r.before.length-1),u,i);p.inside&&(s=Je(u)+s.slice(1));const c=s.charCodeAt(s.length-1),d=yt(r.after.charCodeAt(0),c,i);d.inside&&(s=s.slice(0,-1)+Je(c));const f=l.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},o+s+f}function xp(e,t,n){return n.options.strong||"*"}function Ep(e,t,n,r){return n.safe(e.value,r)}function wp(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Sp(e,t,n){const r=(Ji(n)+(n.options.ruleSpaces?" ":"")).repeat(wp(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ta={blockquote:Vc,break:Yr,code:Qc,definition:ep,emphasis:qi,hardBreak:Yr,heading:ip,html:Vi,image:Wi,imageReference:Yi,inlineCode:Xi,link:Ki,linkReference:Qi,list:dp,listItem:gp,paragraph:mp,root:yp,strong:ea,text:Ep,thematicBreak:Sp};function Ap(){return{enter:{table:Tp,tableData:Xr,tableHeader:Xr,tableRow:Cp},exit:{codeText:Rp,table:Ip,tableData:qt,tableHeader:qt,tableRow:qt}}}function Tp(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Ip(e){this.exit(e),this.data.inTable=void 0}function Cp(e){this.enter({type:"tableRow",children:[]},e)}function qt(e){this.exit(e)}function Xr(e){this.enter({type:"tableCell",children:[]},e)}function Rp(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Np));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Np(e,t){return t==="|"?t:e}function Op(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
30
30
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:l,tableCell:s,tableRow:o}};function l(f,m,k,E){return u(p(f,k,E),f.align)}function o(f,m,k,E){const b=c(f,k,E),A=u([b]);return A.slice(0,A.indexOf(`
|
|
31
31
|
`))}function s(f,m,k,E){const b=k.enter("tableCell"),A=k.enter("phrasing"),w=k.containerPhrasing(f,{...E,before:a,after:a});return A(),b(),w}function u(f,m){return Gc(f,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function p(f,m,k){const E=f.children;let b=-1;const A=[],w=m.enter("table");for(;++b<E.length;)A[b]=c(E[b],m,k);return w(),A}function c(f,m,k){const E=f.children;let b=-1;const A=[],w=m.enter("tableRow");for(;++b<E.length;)A[b]=s(E[b],f,m,k);return w(),A}function d(f,m,k){let E=ta.inlineCode(f,m,k);return k.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function vp(){return{exit:{taskListCheckValueChecked:Zr,taskListCheckValueUnchecked:Zr,paragraph:_p}}}function Lp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Dp}}}function Zr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _p(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,l;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){l=o;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Dp(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(l);let s=ta.listItem(e,t,n,{...r,...o.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(p){return p+l}}function Fp(){return[dc(),Dc(),Bc(),Ap(),vp()]}function Mp(e){return{extensions:[hc(),Fc(e),Pc(),Op(e),Lp()]}}const zp={tokenize:Hp,partial:!0},na={tokenize:Gp,partial:!0},ra={tokenize:qp,partial:!0},ia={tokenize:Vp,partial:!0},Bp={tokenize:Wp,partial:!0},aa={name:"wwwAutolink",tokenize:Up,previous:oa},la={name:"protocolAutolink",tokenize:jp,previous:sa},ke={name:"emailAutolink",tokenize:$p,previous:ua},me={};function Pp(){return{text:me}}let Te=48;for(;Te<123;)me[Te]=ke,Te++,Te===58?Te=65:Te===91&&(Te=97);me[43]=ke;me[45]=ke;me[46]=ke;me[95]=ke;me[72]=[ke,la];me[104]=[ke,la];me[87]=[ke,aa];me[119]=[ke,aa];function $p(e,t,n){const r=this;let i,a;return l;function l(c){return!rn(c)||!ua.call(r,r.previous)||Xn(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return rn(c)?(e.consume(c),o):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(Bp,p,u)(c):c===45||c===95||J(c)?(a=!0,e.consume(c),s):p(c)}function u(c){return e.consume(c),i=!0,s}function p(c){return a&&i&&te(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Up(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!oa.call(r,r.previous)||Xn(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zp,e.attempt(na,e.attempt(ra,a),n),n)(l))}function a(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function jp(e,t,n){const r=this;let i="",a=!1;return l;function l(c){return(c===72||c===104)&&sa.call(r,r.previous)&&!Xn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),o):n(c)}function o(c){if(te(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),a?u:(a=!0,s)):n(c)}function u(c){return c===null||gt(c)||V(c)||Ie(c)||xt(c)?n(c):e.attempt(na,e.attempt(ra,p),n)(c)}function p(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Hp(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),a):n(l)}function a(l){return l===null?n(l):t(l)}}function Gp(e,t,n){let r,i,a;return l;function l(u){return u===46||u===95?e.check(ia,s,o)(u):u===null||V(u)||Ie(u)||u!==45&&xt(u)?s(u):(a=!0,e.consume(u),l)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!a?n(u):t(u)}}function qp(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?a(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(ia,t,a)(l):l===null||V(l)||Ie(l)?t(l):(e.consume(l),i)}function a(l){return l===41&&r++,e.consume(l),i}}function Vp(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||V(o)||Ie(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||V(o)||Ie(o)?t(o):r(o)}function a(o){return te(o)?l(o):n(o)}function l(o){return o===59?(e.consume(o),r):te(o)?(e.consume(o),l):n(o)}}function Wp(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return J(a)?n(a):t(a)}}function oa(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||V(e)}function sa(e){return!te(e)}function ua(e){return!(e===47||rn(e))}function rn(e){return e===43||e===45||e===46||e===95||J(e)}function Xn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Yp={tokenize:nf,partial:!0};function Xp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Jp,continuation:{tokenize:ef},exit:tf}},text:{91:{name:"gfmFootnoteCall",tokenize:Qp},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Zp,resolveTo:Kp}}}}function Zp(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return o;function o(s){if(!l||!l._balanced)return n(s);const u=de(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function Kp(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Qp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,l;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(a>999||c===93&&!l||c===null||c===91||V(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(de(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return V(c)||(l=!0),a++,e.consume(c),c===92?p:u}function p(c){return c===91||c===92||c===93?(e.consume(c),a++,u):u(c)}}function Jp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,l=0,o;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(m)}function p(m){if(l>999||m===93&&!o||m===null||m===91||V(m))return n(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return a=de(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return V(m)||(o=!0),l++,e.consume(m),m===92?c:p}function c(m){return m===91||m===92||m===93?(e.consume(m),l++,p):p(m)}function d(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),H(e,f,"gfmFootnoteDefinitionWhitespace")):n(m)}function f(m){return t(m)}}function ef(e,t,n){return e.check(tt,t,e.attempt(Yp,t,n))}function tf(e){e.exit("gfmFootnoteDefinition")}function nf(e,t,n){const r=this;return H(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(a):n(a)}}function rf(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,o){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},d=[["enter",p,o],["enter",l[u][1],o],["exit",l[u][1],o],["enter",c,o]],f=o.parser.constructs.insideSpan.null;f&&se(d,d.length,0,Et(f,l.slice(u+1,s),o)),se(d,d.length,0,[["exit",c,o],["enter",l[s][1],o],["exit",l[s][1],o],["exit",p,o]]),se(l,u-1,s-u+3,d),s=u+d.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function a(l,o,s){const u=this.previous,p=this.events;let c=0;return d;function d(m){return u===126&&p[p.length-1][1].type!=="characterEscape"?s(m):(l.enter("strikethroughSequenceTemporary"),f(m))}function f(m){const k=Fe(u);if(m===126)return c>1?s(m):(l.consume(m),c++,f);if(c<2&&!n)return s(m);const E=l.exit("strikethroughSequenceTemporary"),b=Fe(m);return E._open=!b||b===2&&!!k,E._close=!k||k===2&&!!b,o(m)}}}class af{constructor(){this.map=[]}add(t,n,r){lf(this,t,n,r)}consume(t){if(this.map.sort(function(a,l){return a[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function lf(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function of(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function sf(){return{flow:{null:{name:"table",tokenize:uf,resolveAll:cf}}}}function uf(e,t,n){const r=this;let i=0,a=0,l;return o;function o(y){let N=r.events.length-1;for(;N>-1;){const _=r.events[N][1].type;if(_==="lineEnding"||_==="linePrefix")N--;else break}const O=N>-1?r.events[N][1].type:null,L=O==="tableHead"||O==="tableRow"?x:s;return L===x&&r.parser.lazy[r.now().line]?n(y):L(y)}function s(y){return e.enter("tableHead"),e.enter("tableRow"),u(y)}function u(y){return y===124||(l=!0,a+=1),p(y)}function p(y){return y===null?n(y):F(y)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),f):n(y):U(y)?H(e,p,"whitespace")(y):(a+=1,l&&(l=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),c(y)))}function c(y){return y===null||y===124||V(y)?(e.exit("data"),p(y)):(e.consume(y),y===92?d:c)}function d(y){return y===92||y===124?(e.consume(y),c):c(y)}function f(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(y):(e.enter("tableDelimiterRow"),l=!1,U(y)?H(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):m(y))}function m(y){return y===45||y===58?E(y):y===124?(l=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),k):v(y)}function k(y){return U(y)?H(e,E,"whitespace")(y):E(y)}function E(y){return y===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),b):y===45?(a+=1,b(y)):y===null||F(y)?C(y):v(y)}function b(y){return y===45?(e.enter("tableDelimiterFiller"),A(y)):v(y)}function A(y){return y===45?(e.consume(y),A):y===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(y))}function w(y){return U(y)?H(e,C,"whitespace")(y):C(y)}function C(y){return y===124?m(y):y===null||F(y)?!l||i!==a?v(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(y)):v(y)}function v(y){return n(y)}function x(y){return e.enter("tableRow"),D(y)}function D(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),D):y===null||F(y)?(e.exit("tableRow"),t(y)):U(y)?H(e,D,"whitespace")(y):(e.enter("data"),z(y))}function z(y){return y===null||y===124||V(y)?(e.exit("data"),D(y)):(e.consume(y),y===92?P:z)}function P(y){return y===92||y===124?(e.consume(y),z):z(y)}}function cf(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],l=[0,0,0,0],o=!1,s=0,u,p,c;const d=new af;for(;++n<e.length;){const f=e[n],m=f[1];f[0]==="enter"?m.type==="tableHead"?(o=!1,s!==0&&(Kr(d,t,s,u,p),p=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],l=[0,n+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",p,t]])),i=m.type==="tableDelimiterRow"?2:p?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(a[1]!==0&&(l[0]=l[1],c=ft(d,t,a,i,void 0,c),a=[0,0,0,0]),l[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(l[0]=l[1],c=ft(d,t,a,i,void 0,c)),a=l,l=[a[1],n,0,0])):m.type==="tableHead"?(o=!0,s=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=n,a[1]!==0?(l[0]=l[1],c=ft(d,t,a,i,n,c)):l[1]!==0&&(c=ft(d,t,l,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&Kr(d,t,s,u,p),d.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=of(t.events,n))}return e}function ft(e,t,n,r,i,a){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},_e(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const s=_e(t.events,n[1]);if(a={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=_e(t.events,n[2]),p=_e(t.events,n[3]),c={type:o,start:Object.assign({},u),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],f=t.events[n[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,k=n[3]-n[2]-1;e.add(m,k,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(a.end=Object.assign({},_e(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Kr(e,t,n,r,i){const a=[],l=_e(t.events,n);i&&(i.end=Object.assign({},l),a.push(["exit",i,t])),r.end=Object.assign({},l),a.push(["exit",r,t]),e.add(n+1,0,a)}function _e(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const pf={name:"tasklistCheck",tokenize:df};function ff(){return{text:{91:pf}}}function df(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return V(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(s)}function o(s){return F(s)?t(s):U(s)?e.check({tokenize:hf},t,n)(s):n(s)}}function hf(e,t,n){return H(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function gf(e){return hi([Pp(),Xp(),rf(e),sf(),ff()])}const mf={};function wf(e){const t=this,n=e||mf,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(gf(n)),a.push(Fp()),l.push(Mp(n))}export{yf as M,wf as a,xf as f,Ef as i,M as r,kf as t,bn as v};
|
|
32
|
+
//# sourceMappingURL=markdown-CPoGw-1N.js.map
|