@dogsbay/artifact-viewer 0.2.0-beta.172 → 0.2.0-beta.174
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/dist/viewer/viewer.mjs +41 -41
- package/dist/viewer.version +1 -1
- package/package.json +2 -2
package/dist/viewer/viewer.mjs
CHANGED
|
@@ -3131,77 +3131,77 @@ ${e.mark.snippet}`),`${e.reason} ${r}`):e.reason}var Wn=class extends Error{reas
|
|
|
3131
3131
|
`.repeat(p):s+=`
|
|
3132
3132
|
`.repeat(c?1+p:p),s+=b,c=!0,p=0}return i===3?s+=`
|
|
3133
3133
|
`.repeat(c?1+p:p):i!==2&&c&&(s+=`
|
|
3134
|
-
`),s}function yv(e,t){if(t.valueStart===fv)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case 2:return kv(e,r,n);case 3:return vv(e,r,n);case 4:return t0(e,r,n,t.indent,t.chomping,!1);case 5:return t0(e,r,n,t.indent,t.chomping,!0);default:return bv(e,r,n)}}var wv={"!":"!","!!":"tag:yaml.org,2002:"};function hu(e){return encodeURI(e).replace(/!/g,"%21")}function Td(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));let r=e.indexOf("!",1),n=r===-1?"!":e.slice(0,r+1),i=t?.[n]??wv[n]??n;return decodeURIComponent(i)+decodeURIComponent(e.slice(n.length))}function Ld(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${hu(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${hu(t.slice(18))}`:`!<${hu(t)}>`}var Zr=-1,Oa={filename:"",schema:cv,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function xv(e){return"tagStart"in e&&e.tagStart!==Zr?e.tagStart:"anchorStart"in e&&e.anchorStart!==Zr?e.anchorStart:"valueStart"in e&&e.valueStart!==Zr?e.valueStart:"start"in e?e.start:0}function ht(e,t){Eo(e.source,e.position,t,e.filename)}function Md(e,t,r,n){try{return r.finalize(n)}catch(i){if(i instanceof Wn)throw i;Eo(e.source,t,i instanceof Error?i.message:String(i),e.filename)}}function Ii(e,t,r){let n=e[r];if(n)return n;for(let i of t)if(r.startsWith(i.tagName))return i}function Cv(e,t,r,n,i){let o=Ii(t,r,n);if(o)return o;ht(e,`unknown ${i} tag !<${n}>`)}function Dv(e,t){let r=yv(e.source,t),n=t.tagStart===Zr?"":e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:i};let o=Td(n,e.tagHandlers),u=Ii(e.schema.exact.scalar,e.schema.prefix.scalar,o);if(u){let l=u.resolve(r,!0,o);return l===Be&&ht(e,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:u}}let a=Ii(e.schema.exact.mapping,e.schema.prefix.mapping,o)??Ii(e.schema.exact.sequence,e.schema.prefix.sequence,o);if(a){r!==""&&ht(e,`cannot resolve a node with !<${o}> explicit tag`);let l=a.create(o);return{value:a.carrierIsResult?l:Md(e,e.position,a,l),tag:a}}ht(e,`unknown scalar tag !<${o}>`)}if(t.style===1){let o=e.schema.implicitScalarByFirstChar.get(r.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(let u of o){let a=u.resolve(r,!1,u.tagName);if(a!==Be)return{value:a,tag:u}}}return{value:i.resolve(r,!1,i.tagName),tag:i}}function r0(e,t,r,n,i,o){let u=t.tagStart===Zr?"":e.source.slice(t.tagStart,t.tagEnd),a=u===""||u==="!"?i:Td(u,e.tagHandlers);return{tagName:a,tag:Cv(e,r,n,a,o)}}function Nd(e){return e.nodeKind==="mapping"}function n0(e,t,r,n){for(let i of n.keys(r)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&ht(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,i))continue;let o=t.tag.addPair(t.value,i,n.get(r,i));o&&ht(e,o),(t.overridable??=new Set).add(i)}}function Ev(e,t,r,n){if(e.position=t.keyPosition,Nd(n))n0(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let i of r)n0(e,t,i,t.tag);else ht(e,"cannot merge mappings; the provided source object is unacceptable")}function Bv(e,t,r,n,i){if(e.position=t.keyPosition,r===Na){Ev(e,t,n,i);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&ht(e,"duplicated mapping key");let o=t.tag.addPair(t.value,r,n);o&&ht(e,o),t.overridable?.delete(r)}function fu(e,t,r){let n=e.frames[e.frames.length-1];if(n.kind==="document")n.value=t,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(Nd(r)||ht(e,"cannot merge mappings; the provided source object is unacceptable"));let i=n.tag.addItem(n.value,t,n.index++);i&&ht(e,i)}else if(n.hasKey){let i=n.key;n.key=void 0,n.hasKey=!1,Bv(e,n,i,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0}function mu(e,t,r,n,i){if(t.anchorStart!==Zr){let o={value:r,tag:n,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),o),o}return null}function Fv(e,t){let r={...Oa,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=xv(n),n.type){case 1:r.anchors=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let i of n.directives)i.kind==="tag"&&(r.tagHandlers[i.handle]=i.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case 4:{let{value:i,tag:o}=Dv(r,n);mu(r,n,i,o,!0),fu(r,i,o);break}case 2:{let i=r0(r,n,r.schema.exact.sequence,r.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),o=i.tag.create(i.tagName),u=mu(r,n,o,i.tag,i.tag.carrierIsResult),a=r.frames[r.frames.length-1],l=a!==void 0&&a.kind==="mapping"&&a.hasKey&&a.key===Na;r.frames.push({kind:"sequence",position:r.position,value:o,tag:i.tag,anchor:u,index:0,merge:l});break}case 3:{let i=r0(r,n,r.schema.exact.mapping,r.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),o=i.tag.create(i.tagName),u=mu(r,n,o,i.tag,i.tag.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:o,tag:i.tag,anchor:u,key:void 0,keyPosition:r.position,hasKey:!1,overridable:null});break}case 5:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&ht(r,`aliases exceeded maxAliases (${r.maxAliases})`);let i=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(i);o||ht(r,`unidentified alias "${i}"`),o.isValueFinal||ht(r,`recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),fu(r,o.value,o.tag);break}case 6:{let i=r.frames.pop();if(i.kind==="document")r.documents.push(i.value);else{let o=i.tag.carrierIsResult?i.value:Md(r,i.position,i.tag,i.value);i.anchor&&(i.anchor.value=o,i.anchor.isValueFinal=!0),fu(r,o,i.tag)}break}}}return r.documents}var Ce=-1,zd=Object.prototype.hasOwnProperty,sr=1,Vu=2,jd=3,Zi=4,$v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_v=/[,\[\]{}]/,Rd=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Pu=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Od=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Sv=new RegExp(`^(?:${Pu})*$`),Iv=new RegExp(`^(?:${Od})+$`),Tv=new RegExp(`^(?:!(?:${Pu})*|${Od}(?:${Pu})*)$`),Ka={filename:"",maxDepth:100};function Lv(e,t,r){e.events.push({type:1,explicitStart:t,explicitEnd:r,directives:e.directives})}function Kd(e,t,r,n,i,o,u){e.events.push({type:2,start:t,anchorStart:r,anchorEnd:n,tagStart:i,tagEnd:o,style:u})}function Sn(e,t,r,n,i,o,u){e.events.push({type:3,start:t,anchorStart:r,anchorEnd:n,tagStart:i,tagEnd:o,style:u})}function cn(e,t,r,n,i,o,u,a,l=1,s=-1,c=!1){e.events.push({type:4,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:i,tagStart:o,tagEnd:u,style:a,chomping:l,indent:s,fast:c})}function Mv(e,t,r){e.events.push({type:5,anchorStart:t,anchorEnd:r})}function Yr(e){e.events.push({type:6})}function dt(e){cn(e,Ce,Ce,Ce,Ce,Ce,Ce,1)}function i0(){return{anchorStart:Ce,anchorEnd:Ce,tagStart:Ce,tagEnd:Ce}}function In(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function fr(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function le(e,t){Eo(e.input.slice(0,e.length),e.position,t,e.filename)}function Qe(e){return e===10||e===13}function Sr(e){return e===9||e===32}function _t(e){return Sr(e)||Qe(e)}function Pt(e){return e===0||_t(e)}function Ir(e){return e===44||e===91||e===93||e===123||e===125}function Nv(e){return e>=48&&e<=57?e-48:-1}function zv(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function jv(e){return e===120?2:e===117?4:e===85?8:0}function Rv(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function Yi(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function lt(e,t){let r=0,n=e.input.charCodeAt(e.position),i=e.position===e.lineStart||_t(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;Sr(n);)i=!0,n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&i&&n===35)do n=e.input.charCodeAt(++e.position);while(!Qe(n)&&n!==0);if(!Qe(n))break;for(Yi(e),r++,i=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function mr(e,t=e.position){let r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||_t(n)}return!1}function o0(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Qe(t);)t=e.input.charCodeAt(++e.position)}function qd(e,t,r){$v.test(e.input.slice(t,r))&&le(e,"the stream contains non-printable characters")}function Ov(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Ce&&le(e,"duplication of a tag property");let n=e.position,i=!1,o=!1,u="!",a=e.input.charCodeAt(++e.position);a===60?(i=!0,a=e.input.charCodeAt(++e.position)):a===33&&(o=!0,u="!!",a=e.input.charCodeAt(++e.position));let l=e.position,s;if(i){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&le(e,"unexpected end of the stream within a verbatim tag"),s=e.input.slice(l,e.position),e.position++}else{for(;a!==0&&!_t(a)&&!(r&&Ir(a));)a===33&&(o?le(e,"tag suffix cannot contain exclamation marks"):(u=e.input.slice(l-1,e.position+1),Rd.test(u)||le(e,"named tag handle cannot contain such characters"),o=!0,l=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(l,e.position),_v.test(s)&&le(e,"tag suffix cannot contain flow indicator characters")}return s&&!(i?Sv.test(s):Iv.test(s))&&le(e,`tag name cannot contain such characters: ${s}`),!i&&u!=="!"&&u!=="!!"&&!zd.call(e.tagHandlers,u)&&le(e,`undeclared tag handle "${u}"`),t.tagStart=n,t.tagEnd=e.position,!0}function Kv(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Ce&&le(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position))&&!Ir(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&le(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function qv(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Ce||t.tagStart!==Ce)&&le(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position))&&!Ir(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&le(e,"name of an alias node must contain at least one character"),Mv(e,r,e.position),!0}function Gu(e,t){lt(e,!1),e.lineIndent<t&&le(e,"deficient indentation")}function Wv(e,t,r){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let n=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let o=e.input.charCodeAt(e.position);if(o===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}let u=e.position;return e.position++,cn(e,n,u,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2,1,-1,i),!0}Qe(o)?(i=!1,Gu(e,t)):e.position===e.lineStart&&mr(e)?le(e,"unexpected end of the document within a single quoted scalar"):o!==9&&o<32?le(e,"expected valid JSON character"):e.position++}le(e,"unexpected end of the stream within a single quoted scalar")}function Uv(e,t,r){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let n=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let o=e.input.charCodeAt(e.position);if(o===34){let u=e.position;return e.position++,cn(e,n,u,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,3,1,-1,i),!0}if(o===92){i=!1;let u=e.input.charCodeAt(++e.position);if(Qe(u))Gu(e,t);else if(Rv(u))e.position++;else{let a=jv(u);for(a===0&&le(e,"unknown escape sequence");a-- >0;)e.position++,zv(e.input.charCodeAt(e.position))<0&&le(e,"expected hexadecimal character");e.position++}}else Qe(o)?(i=!1,Gu(e,t)):e.position===e.lineStart&&mr(e)?le(e,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?le(e,"expected valid JSON character"):e.position++}le(e,"unexpected end of the stream within a double quoted scalar")}function Hv(e,t,r){let n=e.input.charCodeAt(e.position),i=1,o=-1,u=!1;if(n!==124&&n!==62)return!1;let a=n===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){let f=e.input.charCodeAt(e.position),g=Nv(f);if(f===43||f===45)i!==1&&le(e,"repeat of a chomping mode identifier"),i=f===43?3:2,e.position++;else if(g>=0)g===0&&le(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),u&&le(e,"repeat of an indentation width identifier"),o=t+g-1,u=!0,e.position++;else break}let l=!1;for(;Sr(e.input.charCodeAt(e.position));)l=!0,e.position++;l&&e.input.charCodeAt(e.position)===35&&o0(e),Qe(e.input.charCodeAt(e.position))?Yi(e):e.input.charCodeAt(e.position)!==0&&le(e,"a line break is expected");let s=u?o:-1,c=0,p=e.position,h=e.position;for(;e.input.charCodeAt(e.position)!==0;){let f=e.position,g=0;for(;e.input.charCodeAt(f+g)===32;)g++;let b=e.input.charCodeAt(f+g);if(b===0){s>=0?g>s&&(h=f+g):g>0&&(h=f+g);break}if(f===e.lineStart&&mr(e,f))break;if(!u&&s===-1&&Qe(b)&&(c=Math.max(c,g)),!u&&s===-1&&!Qe(b)&&(b===9&&g<t&&(e.position=f+g,le(e,"tab characters must not be used in indentation")),g<c&&(e.position=f+g,le(e,"bad indentation of a mapping entry"))),s===-1&&b!==0&&!Qe(b)&&g<t){e.lineIndent=g,e.position=f+g;break}!u&&b!==0&&!Qe(b)&&s===-1&&(s=g);let D=s===-1?t+1:s;if(b!==0&&!Qe(b)&&g<D){e.lineIndent=g,e.position=f+g;break}o0(e),h=e.position,Qe(e.input.charCodeAt(e.position))&&(Yi(e),h=e.position)}return qd(e,p,h),cn(e,p,h,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,i,s),!0}function Qv(e,t){let r=e.input.charCodeAt(e.position),n=t===sr;if(r===0||_t(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&Ir(r))return!1;if(r===63||r===45){let i=e.input.charCodeAt(e.position+1);if(Pt(i)||n&&Ir(i))return!1}return!0}function Vv(e,t,r,n){if(!Qv(e,r))return!1;let i=e.position,o=e.position,u=e.input.charCodeAt(e.position),a=r===sr,l=!1;for(;u!==0&&!(e.position===e.lineStart&&mr(e));){if(u===58){let s=e.input.charCodeAt(e.position+1);if(Pt(s)||a&&Ir(s))break}else if(u===35){if(_t(e.input.charCodeAt(e.position-1)))break}else{if(a&&Ir(u))break;if(Qe(u)){let s=e.position,c=e.line,p=e.lineStart,h=e.lineIndent;if(lt(e,!1),e.lineIndent>=t){l=!0,u=e.input.charCodeAt(e.position);continue}e.position=s,e.line=c,e.lineStart=p,e.lineIndent=h;break}}Sr(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return o===i?!1:(qd(e,i,o),cn(e,i,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1,1,-1,!l),!0)}function yr(e,t){let r=e.line;lt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&le(e,"deficient indentation")}function Pv(e,t,r){let n=e.input.charCodeAt(e.position),i=n===123,o=e.position,u=!0;if(n!==91&&n!==123)return!1;let a=i?125:93;for(i?Sn(e,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2):Kd(e,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){yr(e,t);let l=e.input.charCodeAt(e.position);if(l===a)return e.position++,Yr(e),!0;u?l===44&&le(e,"expected the node content, but found ','"):le(e,"missed comma between flow collection entries");let s=!1,c=!1;l===63&&_t(e.input.charCodeAt(e.position+1))&&(s=c=!0,e.position+=1,yr(e,t));let p=e.line,h=In(e),f=Gt(e,t,sr,!1,!0);yr(e,t),l=e.input.charCodeAt(e.position),(i||c||e.line===p)&&l===58?(s=!0,e.position++,yr(e,t),i?f||dt(e):(fr(e,h),Sn(e,h.position,Ce,Ce,Ce,Ce,2),Gt(e,t,sr,!1,!0)||dt(e),yr(e,t),e.position++,yr(e,t)),Gt(e,t,sr,!1,!0)||dt(e),yr(e,t),i||Yr(e)):i&&s?(f||dt(e),dt(e)):i?dt(e):s&&(fr(e,h),Sn(e,h.position,Ce,Ce,Ce,Ce,2),Gt(e,t,sr,!1,!0),dt(e),Yr(e)),l=e.input.charCodeAt(e.position),l===44?(u=!0,e.position++):u=!1}le(e,"unexpected end of the stream within a flow collection")}function u0(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Pt(e.input.charCodeAt(e.position+1)))return!1;for(Kd(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1);e.input.charCodeAt(e.position)===45&&Pt(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,le(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let i=lt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Pt(e.input.charCodeAt(e.position+1))&&le(e,"bad indentation of a sequence entry"),i&&e.lineIndent<=t?dt(e):Gt(e,t,jd,!1,!0),lt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&le(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&Pt(e.input.charCodeAt(e.position+1))&&le(e,"bad indentation of a sequence entry")}return Yr(e),!0}function gu(e,t,r,n){let i=!1,o=!1,u=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let l=e.input.charCodeAt(e.position);for(;l!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,le(e,"tab characters must not be used in indentation"));let s=e.input.charCodeAt(e.position+1),c=e.line;if((l===63||l===58)&&Pt(s))u||(Sn(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),u=!0),l===63?(i&&dt(e),o=!0,i=!0):(i||(dt(e),o=!0),i=!1),e.position+=1,a=!0;else{i&&(dt(e),i=!1);let p=In(e);if(!Gt(e,r,Vu,!1,!0))break;if(e.line===c){for(l=e.input.charCodeAt(e.position);Sr(l);)l=e.input.charCodeAt(++e.position);if(l===58){if(l=e.input.charCodeAt(++e.position),Pt(l)||le(e,"a whitespace character is expected after the key-value separator within a block mapping"),!u){for(fr(e,p),Sn(e,p.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),u=!0,Gt(e,r,Vu,!1,!0),l=e.input.charCodeAt(e.position);Sr(l);)l=e.input.charCodeAt(++e.position);e.position++}o=!0,i=!1,a=!1}else if(o)le(e,"expected ':' after a mapping key");else return n.anchorStart!==Ce||n.tagStart!==Ce?(fr(e,p),!1):!0}else if(o)le(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==Ce||n.tagStart!==Ce?(fr(e,p),!1):!0}if(Gt(e,t,Zi,!0,a)&&(a=!1),i||a&&(dt(e),a=!1),lt(e,!0),l=e.input.charCodeAt(e.position),(e.line===c||e.lineIndent>t)&&l!==0)le(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return o?(i&&dt(e),u&&Yr(e),!0):!1}function Gt(e,t,r,n,i,o=!0){e.depth>=e.maxDepth&&le(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let u=1,a=!1,l=!1,s=null,c=i0(),p=r===Zi||r===jd,h=p,f=p;if(n&<(e,!0)&&(a=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:u=-1),e.position===e.lineStart&&mr(e))return e.depth--,!1;if(u===1)for(;;){let g=e.input.charCodeAt(e.position),b=In(e);if(a&&u!==1&&(g===33||g===38))break;if(a&&f&&(c.tagStart!==Ce||c.anchorStart!==Ce)&&(g===33||g===38)){let D=In(e),I=t+1;if(gu(e,e.position-e.lineStart,I,c)&&e.events[D.eventsLength]?.type===3)return e.depth--,!0;fr(e,D)}if(a&&(g===33&&c.tagStart!==Ce||g===38&&c.anchorStart!==Ce)||!Ov(e,c,r===sr)&&!Kv(e,c))break;s===null&&(s=b),lt(e,!0)?(a=!0,h=f,e.lineIndent>t?u=1:e.lineIndent===t?u=0:u=-1):h=!1}if(h&&(h=a||i),u===1||r===Zi){let g=r===sr||r===Vu?t:t+1,b=e.position-e.lineStart;if(u===1)if(h&&(u0(e,b,c)||gu(e,b,g,c))||Pv(e,g,c))l=!0;else{let D=e.input.charCodeAt(e.position);if(s!==null&&o&&f&&!h&&D!==124&&D!==62){let I=In(e),x=s.position-s.lineStart;fr(e,s),gu(e,x,g,i0())&&e.events[I.eventsLength]?.type===3?l=!0:fr(e,I)}!l&&(p&&Hv(e,g,c)||Wv(e,g,c)||Uv(e,g,c)||qv(e,c)||Vv(e,g,r,c))&&(l=!0)}else u===0&&(l=h&&u0(e,b,c))}return p=p&&!l,!l&&(c.anchorStart!==Ce||c.tagStart!==Ce||p)&&(cn(e,Ce,Ce,c.anchorStart,c.anchorEnd,c.tagStart,c.tagEnd,1),l=!0),e.depth--,l||c.anchorStart!==Ce||c.tagStart!==Ce}function Gv(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&le(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Qe(e.input.charCodeAt(e.position));){for(;Sr(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Qe(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let i=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(i,e.position))}if(Qe(e.input.charCodeAt(e.position))&&Yi(e),r==="YAML"){e.directives.some(o=>o.kind==="yaml")&&le(e,"duplication of %YAML directive"),n.length!==1&&le(e,"YAML directive accepts exactly one argument");let i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);i===null&&le(e,"ill-formed argument of the YAML directive"),parseInt(i[1],10)!==1&&le(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&le(e,"TAG directive accepts exactly two arguments");let[i,o]=n;Rd.test(i)||le(e,"ill-formed tag handle (first argument) of the TAG directive"),zd.call(e.tagHandlers,i)&&le(e,`there is a previously declared suffix for "${i}" tag handle`),Tv.test(o)||le(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[i]=o,e.directives.push({kind:"tag",handle:i,prefix:o})}return!0}function Zv(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(lt(e,!0);Gv(e);)t=!0,lt(e,!0);let r=!1,n=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Pt(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,lt(e,!0),i=e.line>a}else t&&le(e,"directives end mark is expected");let o=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&mr(e)){e.position+=3,lt(e,!0);return}if(Lv(e,r,!1),Gt(e,e.lineIndent-1,Zi,!1,i,i)||dt(e),lt(e,!0),e.position===e.lineStart&&mr(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,lt(e,!0),e.line===a&&e.position<e.length&&le(e,"end of the stream or a document separator is expected")}let u=e.events[o];u?.type===1&&(u.explicitEnd=n),Yr(e),!n&&e.position<e.length&&!(e.position===e.lineStart&&mr(e))&&le(e,"end of the stream or a document separator is expected")}function Yv(e,t){let r=e.length,n={...Ka,...t,input:`${e}\0`,length:r,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf("\0");for(i!==-1&&Eo(e,i,"null byte is not allowed in input",n.filename),n.input.charCodeAt(n.position)===65279&&n.position++;n.position<n.length&&(lt(n,!0),!(n.position>=n.length));){let o=n.position;Zv(n),n.position===o&&le(n,"can not read a document")}return n.events}var Jv={...Ka,...Oa};function Xv(e,t={}){let r={...Jv,...t},n=String(e),i=Object.keys(Ka),o=Object.keys(Oa);return Fv(Yv(n,Qu(r,i)),{...Qu(r,o),source:n})}function dn(e,t){let r=Xv(e,t);if(r.length===0)throw new Wn("expected a document, but the input is empty");if(r.length===1)return r[0];throw new Wn("expected a single document in the stream, but found more")}var Ci=class{tagged=!1;flow=!1;singleQuoted=!1;doubleQuoted=!1;literal=!1;folded=!1},Pr=Symbol("INVALID");function e6(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(o=>o!==void 0)),r=e.implicitScalarTags,n=e.tags.filter(o=>!(o.nodeKind==="scalar"&&o.implicit)&&!t.has(o)),i=e.tags.filter(o=>t.has(o));return[...r.map(o=>({tag:o,implicitTag:!0})),...n.map(o=>({tag:o,implicitTag:!1})),...i.map(o=>({tag:o,implicitTag:!0}))]}function t6(e,t){for(let r=0,n=e.representTypes.length;r<n;r+=1){let{tag:i,implicitTag:o}=e.representTypes[r];if(i.identify&&i.identify(t)){let u;return i.matchByTagPrefix&&i.representTagName?u=i.representTagName(t):u=i.tagName,{tag:i,tagName:u,implicitTag:o}}}return null}function Bn(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){let c=e.refs.get(t);if(c)return c.anchor===void 0&&(c.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new Ci,anchor:c.anchor}}let r=t6(e,t);if(!r){if(t===void 0||e.skipInvalid)return Pr;throw new Wn(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:i,implicitTag:o}=r,u=o?i:Ld(i);if(n.nodeKind==="scalar"){let c=new Ci;return c.tagged=!o,{kind:"scalar",tag:u,style:c,value:n.represent(t)}}if(n.nodeKind==="sequence"){let c=n.represent(t),p=new Ci;p.tagged=!o;let h={kind:"sequence",tag:u,style:p,items:[]};e.noRefs||e.refs.set(t,h);for(let f=0,g=c.length;f<g;f+=1){let b=Bn(e,c[f]);b===Pr&&c[f]===void 0&&(b=Bn(e,null)),b!==Pr&&h.items.push(b)}return h}let a=n.represent(t),l=new Ci;l.tagged=!o;let s={kind:"mapping",tag:u,style:l,items:[]};e.noRefs||e.refs.set(t,s);for(let[c,p]of a){let h=Bn(e,c);if(h===Pr)continue;let f=Bn(e,p);f!==Pr&&s.items.push({key:h,value:f})}return s}function r6(e,t,r={}){let n=Bn({representTypes:e6(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===Pr?null:n,directives:[]}]}var n6=Symbol("visit:break"),Wd=Symbol("visit:skip");function Ti(e,t,r){let n=t(e,r);if(n===n6)return!0;if(n===Wd)return!1;let i=r.depth+1;switch(e.kind){case"sequence":for(let o of e.items)if(Ti(o,t,{depth:i,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:o,value:u}of e.items)if(Ti(o,t,{depth:i,parent:e,isKey:!0})||Ti(u,t,{depth:i,parent:e,isKey:!1}))return!0;break}return!1}function i6(e,t){for(let r of e)if(r.contents&&Ti(r.contents,t,{depth:0,parent:null,isKey:!1}))return}var qa=65279,o6=9,Tr=10,Ud=13,u6=32,a6=33,Hd=34,Zu=35,l6=37,s6=38,Qd=39,c6=42,Vd=44,Wa=45,Un=58,d6=61,p6=62,Pd=63,h6=64,Gd=91,Zd=93,f6=96,Yd=123,m6=124,Jd=125,ut={};ut[0]="\\0";ut[7]="\\a";ut[8]="\\b";ut[9]="\\t";ut[10]="\\n";ut[11]="\\v";ut[12]="\\f";ut[13]="\\r";ut[27]="\\e";ut[34]='\\"';ut[92]="\\\\";ut[133]="\\N";ut[160]="\\_";ut[8232]="\\L";ut[8233]="\\P";var Ua={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function g6(e){return e.style.tagged?e.tag:Ld(e.tag)}function A6(e){let t={...Ua,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function b6(e){let t=e.toString(16).toUpperCase(),r=e<=255?"x":"u",n=e<=255?2:4;return`\\${r}${"0".repeat(n-t.length)}${t}`}function a0(e,t){let r=" ".repeat(t),n=0,i="",o=e.length;for(;n<o;){let u,a=e.indexOf(`
|
|
3134
|
+
`),s}function yv(e,t){if(t.valueStart===fv)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case 2:return kv(e,r,n);case 3:return vv(e,r,n);case 4:return t0(e,r,n,t.indent,t.chomping,!1);case 5:return t0(e,r,n,t.indent,t.chomping,!0);default:return bv(e,r,n)}}var wv={"!":"!","!!":"tag:yaml.org,2002:"};function hu(e){return encodeURI(e).replace(/!/g,"%21")}function Td(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));let r=e.indexOf("!",1),n=r===-1?"!":e.slice(0,r+1),i=t?.[n]??wv[n]??n;return decodeURIComponent(i)+decodeURIComponent(e.slice(n.length))}function Ld(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${hu(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${hu(t.slice(18))}`:`!<${hu(t)}>`}var Zr=-1,Oa={filename:"",schema:cv,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function xv(e){return"tagStart"in e&&e.tagStart!==Zr?e.tagStart:"anchorStart"in e&&e.anchorStart!==Zr?e.anchorStart:"valueStart"in e&&e.valueStart!==Zr?e.valueStart:"start"in e?e.start:0}function ht(e,t){Eo(e.source,e.position,t,e.filename)}function Md(e,t,r,n){try{return r.finalize(n)}catch(i){if(i instanceof Wn)throw i;Eo(e.source,t,i instanceof Error?i.message:String(i),e.filename)}}function Ii(e,t,r){let n=e[r];if(n)return n;for(let i of t)if(r.startsWith(i.tagName))return i}function Cv(e,t,r,n,i){let o=Ii(t,r,n);if(o)return o;ht(e,`unknown ${i} tag !<${n}>`)}function Dv(e,t){let r=yv(e.source,t),n=t.tagStart===Zr?"":e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:i};let o=Td(n,e.tagHandlers),u=Ii(e.schema.exact.scalar,e.schema.prefix.scalar,o);if(u){let l=u.resolve(r,!0,o);return l===Be&&ht(e,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:u}}let a=Ii(e.schema.exact.mapping,e.schema.prefix.mapping,o)??Ii(e.schema.exact.sequence,e.schema.prefix.sequence,o);if(a){r!==""&&ht(e,`cannot resolve a node with !<${o}> explicit tag`);let l=a.create(o);return{value:a.carrierIsResult?l:Md(e,e.position,a,l),tag:a}}ht(e,`unknown scalar tag !<${o}>`)}if(t.style===1){let o=e.schema.implicitScalarByFirstChar.get(r.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(let u of o){let a=u.resolve(r,!1,u.tagName);if(a!==Be)return{value:a,tag:u}}}return{value:i.resolve(r,!1,i.tagName),tag:i}}function r0(e,t,r,n,i,o){let u=t.tagStart===Zr?"":e.source.slice(t.tagStart,t.tagEnd),a=u===""||u==="!"?i:Td(u,e.tagHandlers);return{tagName:a,tag:Cv(e,r,n,a,o)}}function Nd(e){return e.nodeKind==="mapping"}function n0(e,t,r,n){for(let i of n.keys(r)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&ht(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,i))continue;let o=t.tag.addPair(t.value,i,n.get(r,i));o&&ht(e,o),(t.overridable??=new Set).add(i)}}function Ev(e,t,r,n){if(e.position=t.keyPosition,Nd(n))n0(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let i of r)n0(e,t,i,t.tag);else ht(e,"cannot merge mappings; the provided source object is unacceptable")}function Bv(e,t,r,n,i){if(e.position=t.keyPosition,r===Na){Ev(e,t,n,i);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&ht(e,"duplicated mapping key");let o=t.tag.addPair(t.value,r,n);o&&ht(e,o),t.overridable?.delete(r)}function fu(e,t,r){let n=e.frames[e.frames.length-1];if(n.kind==="document")n.value=t,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(Nd(r)||ht(e,"cannot merge mappings; the provided source object is unacceptable"));let i=n.tag.addItem(n.value,t,n.index++);i&&ht(e,i)}else if(n.hasKey){let i=n.key;n.key=void 0,n.hasKey=!1,Bv(e,n,i,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0}function mu(e,t,r,n,i){if(t.anchorStart!==Zr){let o={value:r,tag:n,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),o),o}return null}function Fv(e,t){let r={...Oa,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=xv(n),n.type){case 1:r.anchors=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let i of n.directives)i.kind==="tag"&&(r.tagHandlers[i.handle]=i.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case 4:{let{value:i,tag:o}=Dv(r,n);mu(r,n,i,o,!0),fu(r,i,o);break}case 2:{let i=r0(r,n,r.schema.exact.sequence,r.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),o=i.tag.create(i.tagName),u=mu(r,n,o,i.tag,i.tag.carrierIsResult),a=r.frames[r.frames.length-1],l=a!==void 0&&a.kind==="mapping"&&a.hasKey&&a.key===Na;r.frames.push({kind:"sequence",position:r.position,value:o,tag:i.tag,anchor:u,index:0,merge:l});break}case 3:{let i=r0(r,n,r.schema.exact.mapping,r.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),o=i.tag.create(i.tagName),u=mu(r,n,o,i.tag,i.tag.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:o,tag:i.tag,anchor:u,key:void 0,keyPosition:r.position,hasKey:!1,overridable:null});break}case 5:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&ht(r,`aliases exceeded maxAliases (${r.maxAliases})`);let i=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(i);o||ht(r,`unidentified alias "${i}"`),o.isValueFinal||ht(r,`recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),fu(r,o.value,o.tag);break}case 6:{let i=r.frames.pop();if(i.kind==="document")r.documents.push(i.value);else{let o=i.tag.carrierIsResult?i.value:Md(r,i.position,i.tag,i.value);i.anchor&&(i.anchor.value=o,i.anchor.isValueFinal=!0),fu(r,o,i.tag)}break}}}return r.documents}var Ce=-1,zd=Object.prototype.hasOwnProperty,sr=1,Vu=2,jd=3,Zi=4,$v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_v=/[,\[\]{}]/,Rd=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Pu=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Od=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Sv=new RegExp(`^(?:${Pu})*$`),Iv=new RegExp(`^(?:${Od})+$`),Tv=new RegExp(`^(?:!(?:${Pu})*|${Od}(?:${Pu})*)$`),Ka={filename:"",maxDepth:100};function Lv(e,t,r){e.events.push({type:1,explicitStart:t,explicitEnd:r,directives:e.directives})}function Kd(e,t,r,n,i,o,u){e.events.push({type:2,start:t,anchorStart:r,anchorEnd:n,tagStart:i,tagEnd:o,style:u})}function Sn(e,t,r,n,i,o,u){e.events.push({type:3,start:t,anchorStart:r,anchorEnd:n,tagStart:i,tagEnd:o,style:u})}function cn(e,t,r,n,i,o,u,a,l=1,s=-1,c=!1){e.events.push({type:4,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:i,tagStart:o,tagEnd:u,style:a,chomping:l,indent:s,fast:c})}function Mv(e,t,r){e.events.push({type:5,anchorStart:t,anchorEnd:r})}function Yr(e){e.events.push({type:6})}function dt(e){cn(e,Ce,Ce,Ce,Ce,Ce,Ce,1)}function i0(){return{anchorStart:Ce,anchorEnd:Ce,tagStart:Ce,tagEnd:Ce}}function In(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function fr(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function le(e,t){Eo(e.input.slice(0,e.length),e.position,t,e.filename)}function Qe(e){return e===10||e===13}function Sr(e){return e===9||e===32}function _t(e){return Sr(e)||Qe(e)}function Pt(e){return e===0||_t(e)}function Ir(e){return e===44||e===91||e===93||e===123||e===125}function Nv(e){return e>=48&&e<=57?e-48:-1}function zv(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function jv(e){return e===120?2:e===117?4:e===85?8:0}function Rv(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function Yi(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function lt(e,t){let r=0,n=e.input.charCodeAt(e.position),i=e.position===e.lineStart||_t(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;Sr(n);)i=!0,n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&i&&n===35)do n=e.input.charCodeAt(++e.position);while(!Qe(n)&&n!==0);if(!Qe(n))break;for(Yi(e),r++,i=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function mr(e,t=e.position){let r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||_t(n)}return!1}function o0(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Qe(t);)t=e.input.charCodeAt(++e.position)}function qd(e,t,r){$v.test(e.input.slice(t,r))&&le(e,"the stream contains non-printable characters")}function Ov(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Ce&&le(e,"duplication of a tag property");let n=e.position,i=!1,o=!1,u="!",a=e.input.charCodeAt(++e.position);a===60?(i=!0,a=e.input.charCodeAt(++e.position)):a===33&&(o=!0,u="!!",a=e.input.charCodeAt(++e.position));let l=e.position,s;if(i){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&le(e,"unexpected end of the stream within a verbatim tag"),s=e.input.slice(l,e.position),e.position++}else{for(;a!==0&&!_t(a)&&!(r&&Ir(a));)a===33&&(o?le(e,"tag suffix cannot contain exclamation marks"):(u=e.input.slice(l-1,e.position+1),Rd.test(u)||le(e,"named tag handle cannot contain such characters"),o=!0,l=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(l,e.position),_v.test(s)&&le(e,"tag suffix cannot contain flow indicator characters")}return s&&!(i?Sv.test(s):Iv.test(s))&&le(e,`tag name cannot contain such characters: ${s}`),!i&&u!=="!"&&u!=="!!"&&!zd.call(e.tagHandlers,u)&&le(e,`undeclared tag handle "${u}"`),t.tagStart=n,t.tagEnd=e.position,!0}function Kv(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Ce&&le(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position))&&!Ir(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&le(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function qv(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Ce||t.tagStart!==Ce)&&le(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position))&&!Ir(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&le(e,"name of an alias node must contain at least one character"),Mv(e,r,e.position),!0}function Gu(e,t){lt(e,!1),e.lineIndent<t&&le(e,"deficient indentation")}function Wv(e,t,r){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let n=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let o=e.input.charCodeAt(e.position);if(o===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}let u=e.position;return e.position++,cn(e,n,u,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2,1,-1,i),!0}Qe(o)?(i=!1,Gu(e,t)):e.position===e.lineStart&&mr(e)?le(e,"unexpected end of the document within a single quoted scalar"):o!==9&&o<32?le(e,"expected valid JSON character"):e.position++}le(e,"unexpected end of the stream within a single quoted scalar")}function Uv(e,t,r){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let n=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let o=e.input.charCodeAt(e.position);if(o===34){let u=e.position;return e.position++,cn(e,n,u,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,3,1,-1,i),!0}if(o===92){i=!1;let u=e.input.charCodeAt(++e.position);if(Qe(u))Gu(e,t);else if(Rv(u))e.position++;else{let a=jv(u);for(a===0&&le(e,"unknown escape sequence");a-- >0;)e.position++,zv(e.input.charCodeAt(e.position))<0&&le(e,"expected hexadecimal character");e.position++}}else Qe(o)?(i=!1,Gu(e,t)):e.position===e.lineStart&&mr(e)?le(e,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?le(e,"expected valid JSON character"):e.position++}le(e,"unexpected end of the stream within a double quoted scalar")}function Hv(e,t,r){let n=e.input.charCodeAt(e.position),i=1,o=-1,u=!1;if(n!==124&&n!==62)return!1;let a=n===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){let f=e.input.charCodeAt(e.position),g=Nv(f);if(f===43||f===45)i!==1&&le(e,"repeat of a chomping mode identifier"),i=f===43?3:2,e.position++;else if(g>=0)g===0&&le(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),u&&le(e,"repeat of an indentation width identifier"),o=t+g-1,u=!0,e.position++;else break}let l=!1;for(;Sr(e.input.charCodeAt(e.position));)l=!0,e.position++;l&&e.input.charCodeAt(e.position)===35&&o0(e),Qe(e.input.charCodeAt(e.position))?Yi(e):e.input.charCodeAt(e.position)!==0&&le(e,"a line break is expected");let s=u?o:-1,c=0,p=e.position,h=e.position;for(;e.input.charCodeAt(e.position)!==0;){let f=e.position,g=0;for(;e.input.charCodeAt(f+g)===32;)g++;let b=e.input.charCodeAt(f+g);if(b===0){s>=0?g>s&&(h=f+g):g>0&&(h=f+g);break}if(f===e.lineStart&&mr(e,f))break;if(!u&&s===-1&&Qe(b)&&(c=Math.max(c,g)),!u&&s===-1&&!Qe(b)&&(b===9&&g<t&&(e.position=f+g,le(e,"tab characters must not be used in indentation")),g<c&&(e.position=f+g,le(e,"bad indentation of a mapping entry"))),s===-1&&b!==0&&!Qe(b)&&g<t){e.lineIndent=g,e.position=f+g;break}!u&&b!==0&&!Qe(b)&&s===-1&&(s=g);let D=s===-1?t+1:s;if(b!==0&&!Qe(b)&&g<D){e.lineIndent=g,e.position=f+g;break}o0(e),h=e.position,Qe(e.input.charCodeAt(e.position))&&(Yi(e),h=e.position)}return qd(e,p,h),cn(e,p,h,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,i,s),!0}function Qv(e,t){let r=e.input.charCodeAt(e.position),n=t===sr;if(r===0||_t(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&Ir(r))return!1;if(r===63||r===45){let i=e.input.charCodeAt(e.position+1);if(Pt(i)||n&&Ir(i))return!1}return!0}function Vv(e,t,r,n){if(!Qv(e,r))return!1;let i=e.position,o=e.position,u=e.input.charCodeAt(e.position),a=r===sr,l=!1;for(;u!==0&&!(e.position===e.lineStart&&mr(e));){if(u===58){let s=e.input.charCodeAt(e.position+1);if(Pt(s)||a&&Ir(s))break}else if(u===35){if(_t(e.input.charCodeAt(e.position-1)))break}else{if(a&&Ir(u))break;if(Qe(u)){let s=e.position,c=e.line,p=e.lineStart,h=e.lineIndent;if(lt(e,!1),e.lineIndent>=t){l=!0,u=e.input.charCodeAt(e.position);continue}e.position=s,e.line=c,e.lineStart=p,e.lineIndent=h;break}}Sr(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return o===i?!1:(qd(e,i,o),cn(e,i,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1,1,-1,!l),!0)}function yr(e,t){let r=e.line;lt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&le(e,"deficient indentation")}function Pv(e,t,r){let n=e.input.charCodeAt(e.position),i=n===123,o=e.position,u=!0;if(n!==91&&n!==123)return!1;let a=i?125:93;for(i?Sn(e,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2):Kd(e,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){yr(e,t);let l=e.input.charCodeAt(e.position);if(l===a)return e.position++,Yr(e),!0;u?l===44&&le(e,"expected the node content, but found ','"):le(e,"missed comma between flow collection entries");let s=!1,c=!1;l===63&&_t(e.input.charCodeAt(e.position+1))&&(s=c=!0,e.position+=1,yr(e,t));let p=e.line,h=In(e),f=Gt(e,t,sr,!1,!0);yr(e,t),l=e.input.charCodeAt(e.position),(i||c||e.line===p)&&l===58?(s=!0,e.position++,yr(e,t),i?f||dt(e):(fr(e,h),Sn(e,h.position,Ce,Ce,Ce,Ce,2),Gt(e,t,sr,!1,!0)||dt(e),yr(e,t),e.position++,yr(e,t)),Gt(e,t,sr,!1,!0)||dt(e),yr(e,t),i||Yr(e)):i&&s?(f||dt(e),dt(e)):i?dt(e):s&&(fr(e,h),Sn(e,h.position,Ce,Ce,Ce,Ce,2),Gt(e,t,sr,!1,!0),dt(e),Yr(e)),l=e.input.charCodeAt(e.position),l===44?(u=!0,e.position++):u=!1}le(e,"unexpected end of the stream within a flow collection")}function u0(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Pt(e.input.charCodeAt(e.position+1)))return!1;for(Kd(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1);e.input.charCodeAt(e.position)===45&&Pt(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,le(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let i=lt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Pt(e.input.charCodeAt(e.position+1))&&le(e,"bad indentation of a sequence entry"),i&&e.lineIndent<=t?dt(e):Gt(e,t,jd,!1,!0),lt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&le(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&Pt(e.input.charCodeAt(e.position+1))&&le(e,"bad indentation of a sequence entry")}return Yr(e),!0}function gu(e,t,r,n){let i=!1,o=!1,u=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let l=e.input.charCodeAt(e.position);for(;l!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,le(e,"tab characters must not be used in indentation"));let s=e.input.charCodeAt(e.position+1),c=e.line;if((l===63||l===58)&&Pt(s))u||(Sn(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),u=!0),l===63?(i&&dt(e),o=!0,i=!0):(i||(dt(e),o=!0),i=!1),e.position+=1,a=!0;else{i&&(dt(e),i=!1);let p=In(e);if(!Gt(e,r,Vu,!1,!0))break;if(e.line===c){for(l=e.input.charCodeAt(e.position);Sr(l);)l=e.input.charCodeAt(++e.position);if(l===58){if(l=e.input.charCodeAt(++e.position),Pt(l)||le(e,"a whitespace character is expected after the key-value separator within a block mapping"),!u){for(fr(e,p),Sn(e,p.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),u=!0,Gt(e,r,Vu,!1,!0),l=e.input.charCodeAt(e.position);Sr(l);)l=e.input.charCodeAt(++e.position);e.position++}o=!0,i=!1,a=!1}else if(o)le(e,"expected ':' after a mapping key");else return n.anchorStart!==Ce||n.tagStart!==Ce?(fr(e,p),!1):!0}else if(o)le(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==Ce||n.tagStart!==Ce?(fr(e,p),!1):!0}if(Gt(e,t,Zi,!0,a)&&(a=!1),i||a&&(dt(e),a=!1),lt(e,!0),l=e.input.charCodeAt(e.position),(e.line===c||e.lineIndent>t)&&l!==0)le(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return o?(i&&dt(e),u&&Yr(e),!0):!1}function Gt(e,t,r,n,i,o=!0){e.depth>=e.maxDepth&&le(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let u=1,a=!1,l=!1,s=null,c=i0(),p=r===Zi||r===jd,h=p,f=p;if(n&<(e,!0)&&(a=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:u=-1),e.position===e.lineStart&&mr(e))return e.depth--,!1;if(u===1)for(;;){let g=e.input.charCodeAt(e.position),b=In(e);if(a&&u!==1&&(g===33||g===38))break;if(a&&f&&(c.tagStart!==Ce||c.anchorStart!==Ce)&&(g===33||g===38)){let D=In(e),I=t+1;if(gu(e,e.position-e.lineStart,I,c)&&e.events[D.eventsLength]?.type===3)return e.depth--,!0;fr(e,D)}if(a&&(g===33&&c.tagStart!==Ce||g===38&&c.anchorStart!==Ce)||!Ov(e,c,r===sr)&&!Kv(e,c))break;s===null&&(s=b),lt(e,!0)?(a=!0,h=f,e.lineIndent>t?u=1:e.lineIndent===t?u=0:u=-1):h=!1}if(h&&(h=a||i),u===1||r===Zi){let g=r===sr||r===Vu?t:t+1,b=e.position-e.lineStart;if(u===1)if(h&&(u0(e,b,c)||gu(e,b,g,c))||Pv(e,g,c))l=!0;else{let D=e.input.charCodeAt(e.position);if(s!==null&&o&&f&&!h&&D!==124&&D!==62){let I=In(e),x=s.position-s.lineStart;fr(e,s),gu(e,x,g,i0())&&e.events[I.eventsLength]?.type===3?l=!0:fr(e,I)}!l&&(p&&Hv(e,g,c)||Wv(e,g,c)||Uv(e,g,c)||qv(e,c)||Vv(e,g,r,c))&&(l=!0)}else u===0&&(l=h&&u0(e,b,c))}return p=p&&!l,!l&&(c.anchorStart!==Ce||c.tagStart!==Ce||p)&&(cn(e,Ce,Ce,c.anchorStart,c.anchorEnd,c.tagStart,c.tagEnd,1),l=!0),e.depth--,l||c.anchorStart!==Ce||c.tagStart!==Ce}function Gv(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&le(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Qe(e.input.charCodeAt(e.position));){for(;Sr(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Qe(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let i=e.position;for(;e.input.charCodeAt(e.position)!==0&&!_t(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(i,e.position))}if(Qe(e.input.charCodeAt(e.position))&&Yi(e),r==="YAML"){e.directives.some(o=>o.kind==="yaml")&&le(e,"duplication of %YAML directive"),n.length!==1&&le(e,"YAML directive accepts exactly one argument");let i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);i===null&&le(e,"ill-formed argument of the YAML directive"),parseInt(i[1],10)!==1&&le(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&le(e,"TAG directive accepts exactly two arguments");let[i,o]=n;Rd.test(i)||le(e,"ill-formed tag handle (first argument) of the TAG directive"),zd.call(e.tagHandlers,i)&&le(e,`there is a previously declared suffix for "${i}" tag handle`),Tv.test(o)||le(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[i]=o,e.directives.push({kind:"tag",handle:i,prefix:o})}return!0}function Zv(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(lt(e,!0);Gv(e);)t=!0,lt(e,!0);let r=!1,n=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Pt(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,lt(e,!0),i=e.line>a}else t&&le(e,"directives end mark is expected");let o=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&mr(e)){e.position+=3,lt(e,!0);return}if(Lv(e,r,!1),Gt(e,e.lineIndent-1,Zi,!1,i,i)||dt(e),lt(e,!0),e.position===e.lineStart&&mr(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,lt(e,!0),e.line===a&&e.position<e.length&&le(e,"end of the stream or a document separator is expected")}let u=e.events[o];u?.type===1&&(u.explicitEnd=n),Yr(e),!n&&e.position<e.length&&!(e.position===e.lineStart&&mr(e))&&le(e,"end of the stream or a document separator is expected")}function Yv(e,t){let r=e.length,n={...Ka,...t,input:`${e}\0`,length:r,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf("\0");for(i!==-1&&Eo(e,i,"null byte is not allowed in input",n.filename),n.input.charCodeAt(n.position)===65279&&n.position++;n.position<n.length&&(lt(n,!0),!(n.position>=n.length));){let o=n.position;Zv(n),n.position===o&&le(n,"can not read a document")}return n.events}var Jv={...Ka,...Oa};function Xv(e,t={}){let r={...Jv,...t},n=String(e),i=Object.keys(Ka),o=Object.keys(Oa);return Fv(Yv(n,Qu(r,i)),{...Qu(r,o),source:n})}function dn(e,t){let r=Xv(e,t);if(r.length===0)throw new Wn("expected a document, but the input is empty");if(r.length===1)return r[0];throw new Wn("expected a single document in the stream, but found more")}var Ci=class{tagged=!1;flow=!1;singleQuoted=!1;doubleQuoted=!1;literal=!1;folded=!1},Pr=Symbol("INVALID");function ey(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(o=>o!==void 0)),r=e.implicitScalarTags,n=e.tags.filter(o=>!(o.nodeKind==="scalar"&&o.implicit)&&!t.has(o)),i=e.tags.filter(o=>t.has(o));return[...r.map(o=>({tag:o,implicitTag:!0})),...n.map(o=>({tag:o,implicitTag:!1})),...i.map(o=>({tag:o,implicitTag:!0}))]}function ty(e,t){for(let r=0,n=e.representTypes.length;r<n;r+=1){let{tag:i,implicitTag:o}=e.representTypes[r];if(i.identify&&i.identify(t)){let u;return i.matchByTagPrefix&&i.representTagName?u=i.representTagName(t):u=i.tagName,{tag:i,tagName:u,implicitTag:o}}}return null}function Bn(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){let c=e.refs.get(t);if(c)return c.anchor===void 0&&(c.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new Ci,anchor:c.anchor}}let r=ty(e,t);if(!r){if(t===void 0||e.skipInvalid)return Pr;throw new Wn(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:i,implicitTag:o}=r,u=o?i:Ld(i);if(n.nodeKind==="scalar"){let c=new Ci;return c.tagged=!o,{kind:"scalar",tag:u,style:c,value:n.represent(t)}}if(n.nodeKind==="sequence"){let c=n.represent(t),p=new Ci;p.tagged=!o;let h={kind:"sequence",tag:u,style:p,items:[]};e.noRefs||e.refs.set(t,h);for(let f=0,g=c.length;f<g;f+=1){let b=Bn(e,c[f]);b===Pr&&c[f]===void 0&&(b=Bn(e,null)),b!==Pr&&h.items.push(b)}return h}let a=n.represent(t),l=new Ci;l.tagged=!o;let s={kind:"mapping",tag:u,style:l,items:[]};e.noRefs||e.refs.set(t,s);for(let[c,p]of a){let h=Bn(e,c);if(h===Pr)continue;let f=Bn(e,p);f!==Pr&&s.items.push({key:h,value:f})}return s}function ry(e,t,r={}){let n=Bn({representTypes:ey(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===Pr?null:n,directives:[]}]}var ny=Symbol("visit:break"),Wd=Symbol("visit:skip");function Ti(e,t,r){let n=t(e,r);if(n===ny)return!0;if(n===Wd)return!1;let i=r.depth+1;switch(e.kind){case"sequence":for(let o of e.items)if(Ti(o,t,{depth:i,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:o,value:u}of e.items)if(Ti(o,t,{depth:i,parent:e,isKey:!0})||Ti(u,t,{depth:i,parent:e,isKey:!1}))return!0;break}return!1}function iy(e,t){for(let r of e)if(r.contents&&Ti(r.contents,t,{depth:0,parent:null,isKey:!1}))return}var qa=65279,oy=9,Tr=10,Ud=13,uy=32,ay=33,Hd=34,Zu=35,ly=37,sy=38,Qd=39,cy=42,Vd=44,Wa=45,Un=58,dy=61,py=62,Pd=63,hy=64,Gd=91,Zd=93,fy=96,Yd=123,my=124,Jd=125,ut={};ut[0]="\\0";ut[7]="\\a";ut[8]="\\b";ut[9]="\\t";ut[10]="\\n";ut[11]="\\v";ut[12]="\\f";ut[13]="\\r";ut[27]="\\e";ut[34]='\\"';ut[92]="\\\\";ut[133]="\\N";ut[160]="\\_";ut[8232]="\\L";ut[8233]="\\P";var Ua={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function gy(e){return e.style.tagged?e.tag:Ld(e.tag)}function Ay(e){let t={...Ua,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function by(e){let t=e.toString(16).toUpperCase(),r=e<=255?"x":"u",n=e<=255?2:4;return`\\${r}${"0".repeat(n-t.length)}${t}`}function a0(e,t){let r=" ".repeat(t),n=0,i="",o=e.length;for(;n<o;){let u,a=e.indexOf(`
|
|
3135
3135
|
`,n);a===-1?(u=e.slice(n),n=o):(u=e.slice(n,a+1),n=a+1),u.length&&u!==`
|
|
3136
3136
|
`&&(i+=r),i+=u}return i}function Yu(e,t){return`
|
|
3137
|
-
${" ".repeat(e.indent*t)}`}function
|
|
3137
|
+
${" ".repeat(e.indent*t)}`}function ky(e,t){let r=e.indent*Math.max(1,t);return{indent:r,blockIndent:t===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r)}}function l0(e,t){for(let r=0,n=e.implicitResolvers.length;r<n;r+=1){let i=e.implicitResolvers[r];if(i.resolve(t,!1,i.tagName)!==Be)return i.tagName}return e.defaultScalarTagName}function on(e){return e===uy||e===oy}function vy(e){let t=e.charCodeAt(0);if(t!==Wa&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;let r=e.charCodeAt(3);return on(r)||r===Ud||r===Tr}function Hn(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==qa||e>=65536&&e<=1114111}function s0(e){return Hn(e)&&e!==qa&&e!==Ud&&e!==Tr}function Ju(e,t,r){let n=s0(e),i=n&&!on(e);return(r?n:n&&e!==Vd&&e!==Gd&&e!==Zd&&e!==Yd&&e!==Jd)&&e!==Zu&&!(t===Un&&!i)||s0(t)&&!on(t)&&e===Zu||t===Un&&i}function yy(e){return Hn(e)&&e!==qa&&!on(e)&&e!==Wa&&e!==Pd&&e!==Un&&e!==Vd&&e!==Gd&&e!==Zd&&e!==Yd&&e!==Jd&&e!==Zu&&e!==sy&&e!==cy&&e!==ay&&e!==my&&e!==dy&&e!==py&&e!==Qd&&e!==Hd&&e!==ly&&e!==hy&&e!==fy}function wy(e,t){let r=Jr(e,0);if(yy(r))return!0;if(e.length>1&&(r===Wa||r===Pd||r===Un)){let n=Jr(e,1);return!on(n)&&Ju(n,r,t)}return!1}function xy(e){return!on(e)&&e!==Un}function Jr(e,t){let r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Xd(e){return/^\n* /.test(e)}var Qn=1,Tn=2,Ha=3,Qa=4,cr=5;function Cy(e,t,r,n,i,o){let{blockIndent:u,lineWidth:a}=r,l,s=0,c=-1,p=!1,h=!1,f=a!==-1,g=-1,b=!vy(t)&&wy(t,o)&&xy(Jr(t,t.length-1));if(n||i)for(l=0;l<t.length;s>=65536?l+=2:l++){if(s=Jr(t,l),!Hn(s))return cr;b=b&&Ju(s,c,o),c=s}else{for(l=0;l<t.length;s>=65536?l+=2:l++){if(s=Jr(t,l),s===Tr)p=!0,f&&(h=h||l-g-1>a&&t[g+1]!==" ",g=l);else if(!Hn(s))return cr;b=b&&Ju(s,c,o),c=s}h=h||f&&l-g-1>a&&t[g+1]!==" "}return!p&&!h?b&&!i?Qn:e.quoteStyle==="double"?cr:Tn:u>9&&Xd(t)?cr:h?Qa:Ha}function Dy(e,t,r){let{indent:n,blockIndent:i,lineWidth:o}=r;switch(t){case Qn:return d0(e,n);case Tn:return`'${d0(e,n).replace(/'/g,"''")}'`;case Ha:return"|"+c0(e,i)+p0(a0(e,n));case Qa:return">"+c0(e,i)+p0(a0(By(e,o),n));case cr:return`"${Fy(e)}"`}}function Ey(e,t,r,n,i){let o=n||!i;if(t.style.singleQuoted)return Tn;if(t.style.doubleQuoted)return cr;if(!o){if(t.style.literal)return Ha;if(t.style.folded)return Qa}let u=t.value;if(u.length===0)return t.style.tagged||l0(e,u)===t.tag?Qn:e.quoteStyle==="double"?cr:Tn;let a=Cy(e,u,r,o,e.forceQuotes&&!n,i);return a===Qn&&!t.style.tagged&&l0(e,u)!==t.tag?e.quoteStyle==="double"?cr:Tn:a}function c0(e,t){let r=Xd(e)?String(t):"",n=e[e.length-1]===`
|
|
3138
3138
|
`;return`${r}${n&&(e[e.length-2]===`
|
|
3139
3139
|
`||e===`
|
|
3140
3140
|
`)?"+":n?"":"-"}
|
|
3141
3141
|
`}function d0(e,t){let r=e.indexOf(`
|
|
3142
3142
|
`);if(r===-1)return e;let n=" ".repeat(t),i=e.slice(0,r),o=/(\n+)([^\n]*)/g;o.lastIndex=r;let u;for(;u=o.exec(e);){let a=u[1].length,l=u[2];i+=`
|
|
3143
3143
|
`.repeat(a+1)+n+l}return i}function p0(e){return e[e.length-1]===`
|
|
3144
|
-
`?e.slice(0,-1):e}function
|
|
3144
|
+
`?e.slice(0,-1):e}function By(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
|
|
3145
3145
|
`);n===-1&&(n=e.length),r.lastIndex=n;let i=h0(e.slice(0,n),t),o=e[0]===`
|
|
3146
3146
|
`||e[0]===" ",u,a;for(;a=r.exec(e);){let l=a[1],s=a[2];u=s[0]===" ",i+=l+(!o&&!u&&s!==""?`
|
|
3147
3147
|
`:"")+h0(s,t),o=u}return i}function h0(e,t){if(e===""||e[0]===" ")return e;let r=/ [^ ]/g,n,i=0,o,u=0,a=0,l="";for(;n=r.exec(e);)a=n.index,a-i>t&&(o=u>i?u:a,l+=`
|
|
3148
3148
|
${e.slice(i,o)}`,i=o+1),u=a;return l+=`
|
|
3149
3149
|
`,e.length-i>t&&u>i?l+=`${e.slice(i,u)}
|
|
3150
|
-
${e.slice(u+1)}`:l+=e.slice(i),l.slice(1)}function
|
|
3151
|
-
`)!==-1,g=p||f||h.length>1024;g&&(h&&Tr===h.charCodeAt(0)?l+="?":l+="? "),l+=h,g&&(l+=Yu(e,t));let b=Yt(e,t+1,c,{block:!0,compact:g,isblockseq:g&&!Xu(e,c,t+1)}),D=s.kind==="scalar"&&s.value===""&&h!==""&&h.charCodeAt(h.length-1)!==Qd&&h.charCodeAt(h.length-1)!==Hd,I=!g&&(s.kind==="alias"||D)?" ":"";b===""||Tr===b.charCodeAt(0)?l+=`${I}:`:l+=`${I}: `,l+=b,i+=l}return i}function Xu(e,t,r){return t.style.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Yt(e,t,r,n){if(r.kind==="alias")return`*${r.anchor}`;let{block:i=!1,iskey:o=!1,isblockseq:u=!1}=n,a=n.compact??!1,l=r.anchor!==void 0;Xu(e,r,t)&&(a=!1);let s,c=r.style.tagged,p=i&&(r.kind==="mapping"||r.kind==="sequence")&&!r.style.flow&&r.items.length!==0;if(r.kind==="mapping")p?s=
|
|
3150
|
+
${e.slice(u+1)}`:l+=e.slice(i),l.slice(1)}function Fy(e){let t="",r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=Jr(e,n);let i=ut[r];if(i){t+=i;continue}if(Hn(r)){t+=e[n],r>=65536&&(t+=e[n+1]);continue}t+=by(r)}return t}function $y(e,t,r){let n="";for(let o=0,u=r.items.length;o<u;o+=1){let a=Yt(e,t,r.items[o],{});n!==""&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let i=e.flowBracketPadding&&n!==""?" ":"";return`[${i}${n}${i}]`}function f0(e,t,r,n){let i="";for(let o=0,u=r.items.length;o<u;o+=1){let a=Yt(e,t+1,r.items[o],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!n||i!=="")&&(i+=Yu(e,t)),a===""||Tr===a.charCodeAt(0)?i+="-":i+="- ",i+=a}return i}function _y(e,t,r){let n="",i=ep(e,r.items);for(let{key:u,value:a}of i){let l="";n!==""&&(l+=`,${e.flowSkipCommaSpace?"":" "}`);let s=Yt(e,t,u,{iskey:!0}),c=s.length>1024;c?l+="? ":e.quoteFlowKeys&&(l+='"');let p=Yt(e,t,a,{}),h=e.flowSkipColonSpace||p===""?"":" ";l+=`${s}${e.quoteFlowKeys&&!c?'"':""}:${h}${p}`,n+=l}let o=e.flowBracketPadding&&n!==""?" ":"";return`{${o}${n}${o}}`}function Di(e){return e.kind==="scalar"?e.value:e}function ep(e,t){if(!e.sortKeys)return t;let r=t.slice();if(e.sortKeys===!0)r.sort((n,i)=>{let o=Di(n.key),u=Di(i.key);return o<u?-1:o>u?1:0});else{let n=e.sortKeys;r.sort((i,o)=>n(Di(i.key),Di(o.key)))}return r}function Sy(e,t,r,n){let i="",o=ep(e,r.items);for(let u=0,a=o.length;u<a;u+=1){let l="";(!n||i!=="")&&(l+=Yu(e,t));let{key:s,value:c}=o[u],p=(s.kind==="mapping"||s.kind==="sequence")&&!s.style.flow&&s.items.length!==0||s.kind==="scalar"&&(s.style.literal||s.style.folded),h=p?Yt(e,t+1,s,{block:!0,compact:!0,isblockseq:!Xu(e,s,t+1)}):Yt(e,t+1,s,{block:!0,compact:!0,iskey:!0}),f=s.kind==="scalar"&&s.value.indexOf(`
|
|
3151
|
+
`)!==-1,g=p||f||h.length>1024;g&&(h&&Tr===h.charCodeAt(0)?l+="?":l+="? "),l+=h,g&&(l+=Yu(e,t));let b=Yt(e,t+1,c,{block:!0,compact:g,isblockseq:g&&!Xu(e,c,t+1)}),D=s.kind==="scalar"&&s.value===""&&h!==""&&h.charCodeAt(h.length-1)!==Qd&&h.charCodeAt(h.length-1)!==Hd,I=!g&&(s.kind==="alias"||D)?" ":"";b===""||Tr===b.charCodeAt(0)?l+=`${I}:`:l+=`${I}: `,l+=b,i+=l}return i}function Xu(e,t,r){return t.style.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Yt(e,t,r,n){if(r.kind==="alias")return`*${r.anchor}`;let{block:i=!1,iskey:o=!1,isblockseq:u=!1}=n,a=n.compact??!1,l=r.anchor!==void 0;Xu(e,r,t)&&(a=!1);let s,c=r.style.tagged,p=i&&(r.kind==="mapping"||r.kind==="sequence")&&!r.style.flow&&r.items.length!==0;if(r.kind==="mapping")p?s=Sy(e,t,r,a):s=_y(e,t,r);else if(r.kind==="sequence")p?e.seqNoIndent&&!u&&t>0?s=f0(e,t-1,r,a):s=f0(e,t,r,a):s=$y(e,t,r);else{let h=ky(e,t),f=Ey(e,r,h,o,i);s=Dy(r.value,f,h),c=r.style.tagged||f!==Qn&&r.tag!==e.defaultScalarTagName}if(p&&a&&t>0&&e.indent>2&&(s=`${" ".repeat(e.indent-2)}${s}`),c||l){let h=[],f=c?gy(r):null,g=l?`&${r.anchor}`:null;e.tagBeforeAnchor?(f!==null&&h.push(f),g!==null&&h.push(g)):(g!==null&&h.push(g),f!==null&&h.push(f));let b=s===""||s.charCodeAt(0)===Tr?"":" ";s=`${h.join(" ")}${b}${s}`}return s}function Iy(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function Ty(e){let t=e;for(;(t.kind==="sequence"||t.kind==="mapping")&&!t.style.flow&&t.items.length!==0;)t=t.kind==="sequence"?t.items[t.items.length-1]:t.items[t.items.length-1].value;if(t.kind!=="scalar"||!(t.style.literal||t.style.folded))return!1;let{value:r}=t;return r.endsWith(`
|
|
3152
3152
|
|
|
3153
3153
|
`)||r===`
|
|
3154
|
-
`}function
|
|
3154
|
+
`}function Ly(e){let t="";for(let r of e.directives){if(r.kind==="yaml"){t+=`%YAML ${r.version}
|
|
3155
3155
|
`;continue}let{handle:n,prefix:i}=r;t+=`%TAG ${n} ${i}
|
|
3156
|
-
`}return t}function
|
|
3157
|
-
`);else if(s){let c=Yt(r,0,u.contents,{block:!0,compact:!0}),p=c===""?"":l||
|
|
3156
|
+
`}return t}function My(e,t){let r=Ay(t),n="",i=!1;for(let o=0;o<e.length;o+=1){let u=e[o],a=Ly(u),l=a!=="",s=u.explicitStart||l||o>0&&!i;if(n+=a,u.contents===null)s&&(n+=`---
|
|
3157
|
+
`);else if(s){let c=Yt(r,0,u.contents,{block:!0,compact:!0}),p=c===""?"":l||Iy(u.contents)?`
|
|
3158
3158
|
`:" ";n+=`---${p}${c}
|
|
3159
3159
|
`}else n+=Yt(r,0,u.contents,{block:!0,compact:!0})+`
|
|
3160
|
-
`;i=u.explicitEnd||u.contents!==null&&
|
|
3161
|
-
`)}return n}var
|
|
3160
|
+
`;i=u.explicitEnd||u.contents!==null&&Ty(u.contents),i&&(n+=`...
|
|
3161
|
+
`)}return n}var Ny=dv.withTags({...Uu,resolve:(e,t,r)=>{let n=Uu.resolve(e,t,r);return n===Be?Bd.resolve(e,t,r):n}},{...Hu,resolve:(e,t,r)=>{let n=Hu.resolve(e,t,r);return n===Be?Fd.resolve(e,t,r):n}}),zy={...Ua,schema:Ny,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function ea(e,t={}){let r={...zy,...t},n=ry(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});return r.flowLevel>=0&&iy(n,(i,o)=>{if(!(o.depth<r.flowLevel))return i.style.flow=!0,Wd}),r.transform(n),My(n,{...Qu(r,Object.keys(Ua)),schema:r.schema})}var tp=/^\s*(?:[:~][ \t]{1,3})?(`{3,}|~{3,})(.*?)\r?$/,jy=/^\s*(`{3,}|~{3,})\s*$/,Bo=(e,t)=>{if(e.open)if(e.hosted&&/^ {0,3}\S/.test(t))e.open=!1,e.info="",e.hosted=!1;else{let n=t.match(jy);return n&&n[1][0]===e.marker&&n[1].length>=e.length?(e.open=!1,e.info="",e.hosted=!1,"fence"):"code"}let r=t.match(tp);return r?(e.open=!0,e.marker=r[1][0],e.length=r[1].length,e.info=r[2].trim(),e.hosted=/^\s*[:~][ \t]/.test(t),"fence"):"prose"},Fo=()=>({open:!1,marker:"",length:0,info:"",hosted:!1});function $o(){let e=Fo();return{step:t=>Bo(e,t),open:()=>e.open}}function Ry(e,t){let r=Fo();return e.split(`
|
|
3162
3162
|
`).map(n=>{let i=r.open;if(Bo(r,n)==="fence"&&!i){let o=n.match(tp);if(o){let u=n.indexOf(o[1])+o[1].length,a=n.endsWith("\r"),l=n.substring(u,a?n.length-1:n.length),s=t(l);return s===l?n:n.substring(0,u)+s+(a?"\r":"")}}return n}).join(`
|
|
3163
3163
|
`)}function rp(e,t){let r=Fo();return e.split(`
|
|
3164
3164
|
`).map(n=>{if(Bo(r,n)!=="prose")return n;let i=[],o=0;for(let u of n.matchAll(/(`+)[^`]*?\1/g))i.push(t(n.slice(o,u.index))),i.push(u[0]),o=u.index+u[0].length;return i.push(t(n.slice(o))),i.join("")}).join(`
|
|
3165
|
-
`)}function
|
|
3166
|
-
`))r.push(t.open),Bo(t,n);return r.push(t.open),r}function Ji(e,t=0,r=!1){let n=" ".repeat(t),i=[];for(let[o,u]of Object.entries(e)){if(u===void 0)continue;let a=/^[A-Za-z_][\w.-]*$/.test(o)?o:JSON.stringify(o);if(u===null){i.push(`${n}${a}: null`);continue}if(typeof u=="boolean"){i.push(`${n}${a}: ${u}`);continue}if(typeof u=="number"){i.push(`${n}${a}: ${u}`);continue}if(typeof u=="string"){i.push(`${n}${a}: ${r?JSON.stringify(u):np(u,t)}`);continue}if(u instanceof Date){i.push(`${n}${a}: ${_o(u)}`);continue}if(Array.isArray(u)){if(u.length===0){i.push(`${n}${a}: []`);continue}i.push(`${n}${a}:`);for(let l of u)l===null||typeof l!="object"||Array.isArray(l)||l instanceof Date?i.push(`${n} - ${r&&typeof l=="string"?JSON.stringify(l):ip(l,t+2)}`):i.push(`${n} - ${
|
|
3165
|
+
`)}function Oy(e){let t=Fo(),r=[];for(let n of e.split(`
|
|
3166
|
+
`))r.push(t.open),Bo(t,n);return r.push(t.open),r}function Ji(e,t=0,r=!1){let n=" ".repeat(t),i=[];for(let[o,u]of Object.entries(e)){if(u===void 0)continue;let a=/^[A-Za-z_][\w.-]*$/.test(o)?o:JSON.stringify(o);if(u===null){i.push(`${n}${a}: null`);continue}if(typeof u=="boolean"){i.push(`${n}${a}: ${u}`);continue}if(typeof u=="number"){i.push(`${n}${a}: ${u}`);continue}if(typeof u=="string"){i.push(`${n}${a}: ${r?JSON.stringify(u):np(u,t)}`);continue}if(u instanceof Date){i.push(`${n}${a}: ${_o(u)}`);continue}if(Array.isArray(u)){if(u.length===0){i.push(`${n}${a}: []`);continue}i.push(`${n}${a}:`);for(let l of u)l===null||typeof l!="object"||Array.isArray(l)||l instanceof Date?i.push(`${n} - ${r&&typeof l=="string"?JSON.stringify(l):ip(l,t+2)}`):i.push(`${n} - ${Ky(l)}`);continue}if(typeof u=="object"){i.push(`${n}${a}:`),i.push(Ji(u,t+2,r));continue}}return i.join(`
|
|
3167
3167
|
`)}function np(e,t=0){if(e.includes(`
|
|
3168
3168
|
`)){let r=e.endsWith(`
|
|
3169
3169
|
`)?"":"-",n=(e.endsWith(`
|
|
3170
3170
|
`)?e.slice(0,-1):e).split(`
|
|
3171
3171
|
`),i=" ".repeat(t+2);return`|${n[0]===""||/^\s/.test(n[0])?"2":""}${r}
|
|
3172
3172
|
${n.map(o=>o===""?"":i+o).join(`
|
|
3173
|
-
`)}`}return up(e)?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:e}function _o(e){if(Number.isNaN(e.getTime()))return"null";let t=e.toISOString();return t.endsWith("T00:00:00.000Z")?t.slice(0,10):t}function ip(e,t=0){return e==null?"null":e instanceof Date?_o(e):typeof e=="boolean"||typeof e=="number"?String(e):typeof e=="string"?np(e,t):JSON.stringify(e)}function
|
|
3174
|
-
`)||/[,{}\[\]]/.test(e)||up(e)?JSON.stringify(e):e:e!==null&&typeof e=="object"&&!(e instanceof Date)?JSON.stringify(e):ip(e)}function
|
|
3175
|
-
`)?e.slice(0,-1):e}function up(e){return!!(e===""||/^(true|false|null|yes|no|on|off)$/i.test(e)||/^-?\d+(\.\d+)?$/.test(e)||/^[[\]{}|>!&*@`%"']/.test(e)||/[:#]\s/.test(e)||/:$/.test(e)||/^\d{4}-\d{2}-\d{2}([Tt ].*)?$/.test(e)||e.trim()!==e)}var m0=1e5;function So(e,t,r=new Map,n=0){if(e===null||typeof e!="object"||e instanceof Date)return 1;let i=r.get(e);if(i!==void 0)return i;if(n>1e3)return t+1;let o=1;for(let u of Array.isArray(e)?e:Object.values(e))if(o+=So(u,t,r,n+1),o>t)break;return r.set(e,o),o}function
|
|
3173
|
+
`)}`}return up(e)?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:e}function _o(e){if(Number.isNaN(e.getTime()))return"null";let t=e.toISOString();return t.endsWith("T00:00:00.000Z")?t.slice(0,10):t}function ip(e,t=0){return e==null?"null":e instanceof Date?_o(e):typeof e=="boolean"||typeof e=="number"?String(e):typeof e=="string"?np(e,t):JSON.stringify(e)}function Ky(e){return`{ ${Object.entries(e).filter(([,t])=>t!==void 0).map(([t,r])=>`${/^[\w.-]+$/.test(t)?t:JSON.stringify(t)}: ${qy(r)}`).join(", ")} }`}function qy(e){return typeof e=="string"?e.includes(`
|
|
3174
|
+
`)||/[,{}\[\]]/.test(e)||up(e)?JSON.stringify(e):e:e!==null&&typeof e=="object"&&!(e instanceof Date)?JSON.stringify(e):ip(e)}function Wy(e){let t=Ji(e);if(ta(t,e))return t;let r=op(ea(Vn(e),{lineWidth:-1,noRefs:!0,skipInvalid:!0}));return ta(r,e)?r:Ji(e,0,!0)}function op(e){return e.endsWith(`
|
|
3175
|
+
`)?e.slice(0,-1):e}function up(e){return!!(e===""||/^(true|false|null|yes|no|on|off)$/i.test(e)||/^-?\d+(\.\d+)?$/.test(e)||/^[[\]{}|>!&*@`%"']/.test(e)||/[:#]\s/.test(e)||/:$/.test(e)||/^\d{4}-\d{2}-\d{2}([Tt ].*)?$/.test(e)||e.trim()!==e)}var m0=1e5;function So(e,t,r=new Map,n=0){if(e===null||typeof e!="object"||e instanceof Date)return 1;let i=r.get(e);if(i!==void 0)return i;if(n>1e3)return t+1;let o=1;for(let u of Array.isArray(e)?e:Object.values(e))if(o+=So(u,t,r,n+1),o>t)break;return r.set(e,o),o}function Uy(e){if(So(e,m0)>m0)return`---
|
|
3176
3176
|
${op(ea(e,{lineWidth:-1,noRefs:!1,skipInvalid:!0}))}
|
|
3177
3177
|
---`;let t=Ji(e);return ta(t,e)?`---
|
|
3178
3178
|
${t}
|
|
3179
3179
|
---`:`---
|
|
3180
3180
|
${ea(Vn(e),{lineWidth:-1,noRefs:!0,skipInvalid:!0}).trimEnd()}
|
|
3181
|
-
---`}function ta(e,t){let r;try{r=dn(e)}catch{return!1}return ra(r,Vn(t))}function Vn(e){if(e instanceof Date)return Number.isNaN(e.getTime())?null:_o(e);if(Array.isArray(e))return e.map(Vn);if(e&&typeof e=="object"){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=Vn(n));return t}return e}function ra(e,t){if(e instanceof Date&&(e=_o(e)),typeof e=="number"&&typeof t=="number")return Object.is(e,t);if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((r,n)=>ra(r,t[n]));if(e&&t&&typeof e=="object"&&typeof t=="object"){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&n.every(i=>ra(e[i],t[i]))}return e===t}var
|
|
3182
|
-
`,w);k=K<0?n.length:K,F.__dbLineEnd={src:n,from:w,at:k}}let _=F.__dbNoAttrClose&&F.__dbNoAttrClose.max===k&&w>=F.__dbNoAttrClose.from,L=_?-1:lp(n,w,k);if(L>=0)b=n.slice(w,L),a=L+1;else if(_||(F.__dbNoAttrClose={max:k,from:w}),h)return!1}if(t)return e.pos=a,!0;let D=h&&!
|
|
3183
|
-
`).replace(/&/gi,"&")}function Xr(e,t="link"){let r=e.replace(/[\u0000-\u0020\u007f]+/g,"").toLowerCase();return/^(?:javascript|vbscript):/.test(r)?!1:/^data:/.test(r)?t==="image"&&/^data:image\/(?:gif|png|jpeg|webp);/.test(r):!0}function
|
|
3181
|
+
---`}function ta(e,t){let r;try{r=dn(e)}catch{return!1}return ra(r,Vn(t))}function Vn(e){if(e instanceof Date)return Number.isNaN(e.getTime())?null:_o(e);if(Array.isArray(e))return e.map(Vn);if(e&&typeof e=="object"){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=Vn(n));return t}return e}function ra(e,t){if(e instanceof Date&&(e=_o(e)),typeof e=="number"&&typeof t=="number")return Object.is(e,t);if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((r,n)=>ra(r,t[n]));if(e&&t&&typeof e=="object"&&typeof t=="object"){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&n.every(i=>ra(e[i],t[i]))}return e===t}var Hy=new Set(["variable","conditional-span","directive-raw-inline"]),ap=e=>Hy.has(e.type),Qy=["draft","preview","stable","deprecated"],n8={title:{type:"string"},description:{type:"string"},tags:{type:"string|string[]"},category:{type:"string|string[]"},type:{type:"string"},status:{type:"string",values:[...Qy]},audience:{type:"string|string[]"},weight:{type:"number"},updated:{type:"date"},created:{type:"date"},lastUpdated:{type:"date"},lastmod:{type:"date"},date:{type:"date"},props:{type:"object"},keyword:{type:"string"},targetKeyword:{type:"string"},draft:{type:"boolean"},unlisted:{type:"boolean"},noindex:{type:"boolean"},nofollow:{type:"boolean"},excludeFromSearch:{type:"boolean"},pagefindExclude:{type:"boolean"},ogImage:{type:"string"},ogType:{type:"string"},canonicalUrl:{type:"string"},slug:{type:"string"},redirect:{type:"string"},aliases:{type:"string[]"},llmActions:{type:"boolean|object"},preprocess:{type:"boolean"},autoH1:{type:"boolean"},autoLede:{type:"boolean"},fragment:{type:"boolean"},_fragment:{type:"boolean"},"single-page":{type:"string",values:["yes","children","no"]},product:{type:"scalar|scalar[]"},platform:{type:"scalar|scalar[]"},edition:{type:"scalar|scalar[]"},rev:{type:"scalar|scalar[]"},otherprops:{type:"scalar|scalar[]"},granularity:{type:"string"}},i8=Object.freeze({fileBytes:16e6,folderFiles:2e4,importBytes:1e9,catalogueBytes:256e6,catalogueRows:2e4,cellChars:1e4,exampleBytes:1e6}),o8=Object.freeze({fileBytes:"bytes in one data file",folderFiles:"files in one data folder",importBytes:"data read in one import",catalogueBytes:"data one catalogue reads",catalogueRows:"rows in one catalogue",cellChars:"characters in one table cell",exampleBytes:"bytes in one code example to transform"}),u8=Object.freeze({fileBytes:1/0,folderFiles:1/0,importBytes:1/0,catalogueBytes:1/0,catalogueRows:1/0,cellChars:1/0,exampleBytes:1/0});function Vy(e){return{segments:e>0?[{kind:"copy",lines:e,from:1}]:[]}}function Py(e){let t=0;for(let r of e.segments)t+=r.lines;return t}function Gy(e,t){return e.branch===t.branch&&e.test===t.test&&e.from===t.from&&e.to===t.to&&e.block.from===t.block.from&&e.block.to===t.block.to}function Zy(e,t){return(e??[]).map(r=>t!==void 0?{...r,file:t}:{...r})}function Yy(e){let t=[],r=(n,i,o,u,a)=>{let l=t.length,s=()=>({kind:"generated",...i!==void 0?{file:i}:{},via:o,...a.length?{conditions:a}:{}});for(let c of n.segments){let p=u-(t.length-l);if(p<=0)break;let h=Math.min(c.lines,p);if(h<=0)continue;let f=c.conditions?.length?[...a,...Zy(c.conditions,i)]:a,g=f.length?{conditions:f}:{};if(c.kind==="copy")for(let b=0;b<h;b++)t.push({kind:"copy",...i!==void 0?{file:i}:{},line:c.from+b,from:c.from+b,to:c.from+b,via:o,...g});else if(c.kind==="include"&&c.map)r(c.map,c.file,[...o,{...i!==void 0?{file:i}:{},from:c.from,to:c.to}],h,f);else{let b={kind:c.kind,...i!==void 0?{file:i}:{},...c.from!==void 0?{from:c.from,to:c.to??c.from}:{},...c.kind==="include"?{included:c.file}:{},via:o,...g};for(let D=0;D<h;D++)t.push(b)}}for(;o.length>0&&t.length-l<u;)t.push(s())};return r(e,void 0,[],Py(e),[]),t}var g0={copy:0,include:1,expr:2,generated:3};function Jy(e){if(e.length===0)return;let t=(h,f)=>h.file===f.file&&h.from===f.from&&h.to===f.to,r=e[0].via.length;for(let h of e){let f=0;for(;f<r&&f<h.via.length&&t(h.via[f],e[0].via[f]);)f++;r=f}let n=e[0].via.slice(0,r),i,o="copy",u,a,l=new Set,s=[],c=[];for(let h of e){for(let x of h.conditions??[])s.some(w=>w.file===x.file&&Gy(w,x))||s.push(x);let f=h.via.length>r?h.via[r]:void 0,g=f?"include":h.kind,b=f?f.file:h.file,D=f?f.from:h.from,I=f?f.to:h.to;i=b,g0[g]>g0[o]&&(o=g),h.kind==="include"&&!f&&h.included&&l.add(h.included),D!==void 0&&(u=u===void 0?D:Math.min(u,D)),I!==void 0&&(a=a===void 0?I:Math.max(a,I)),D!==void 0&&c.push([D,I??D])}let p=!1;if(u!==void 0&&a!==void 0){c.sort((f,g)=>f[0]-g[0]);let h=u-1;for(let[f,g]of c)f>h+1&&(p=!0),h=Math.max(h,g)}return{kind:o,...i!==void 0?{file:i}:{},...o==="copy"&&u===a&&u!==void 0?{line:u}:{},...u!==void 0?{from:u,to:a??u}:{},...o==="include"&&l.size===1?{included:[...l][0]}:{},via:n,...s.length?{conditions:s}:{},...p?{gaps:!0}:{}}}function Xy(e){let t=[];for(let r of e){let n=t[t.length-1];if(typeof r=="number"){n?.kind==="copy"&&n.from+n.lines===r?n.lines++:t.push({kind:"copy",lines:1,from:r});continue}if(r.kind==="expr"&&r.from!==void 0){let i=r.to??r.from;n?.kind==="expr"&&n.from===r.from&&n.to===i?n.lines++:t.push({kind:"expr",lines:1,from:r.from,to:i})}else{let i=r.from!==void 0?{from:r.from,to:r.to??r.from}:{};n?.kind==="generated"&&n.from===i.from&&n.to===i.to?n.lines++:t.push({kind:"generated",lines:1,...i})}}return{segments:t}}var e6=/^(?:id|class|style|role|data-[\w-]+|aria-[\w-]+)$/,t6=["type","title","icon","collapsed","collapsible","open","tone","variant","href"],r6=["callout","note","tip","info","important","warning","caution","danger","success","hint","attention","error","failure","bug","question","abstract","quote"],Va={...Object.fromEntries(r6.map(e=>[e,t6])),details:["title","summary","icon","open","variant","type","sheet"],tabs:["variant","sync","syncKey","group","title","value","label"],tab:["title","label","icon","value"],steps:["title"],step:["title"],cards:["cols","tone","variant"],card:["title","href","icon","description","tone","variant","image","alt"],"link-card":["href","title","description","icon"],grid:["cols","gap","rows"],"grid-item":["span","rowSpan","start","label","tone"],figure:["caption","src","alt"],files:[],button:["href","variant","label","size"],youtube:["id","title","poster"],avatar:["src","alt","fallback","source","size"],accordion:["type","defaultValue","variant"],"accordion-item":["title","label","value","open"],math:["latex"],"data-table":["src","path","columns","headers","links","code"],"data-cards":["src","path","title","description","href","icon"],"child-links":["depth","title"]};function n6(e,t){let r=Va[e];if(!r)return[];let n=new Set(r),i=[];for(let o of t)!n.has(o)&&!e6.test(o)&&o!=="__yaml__"&&i.push(o);return i}function Io(e){let t={classes:[],props:{}},r=0,n=e.length;for(;r<n;){for(;r<n&&/\s/.test(e[r]);)r++;if(r>=n)break;let i=e[r];if(i==="#"){r++;let o=r;for(;r<n&&!/[\s=}]/.test(e[r]);)r++;t.id=e.slice(o,r)}else if(i==="."){r++;let o=r;for(;r<n&&!/[\s=}]/.test(e[r]);)r++;let u=e.slice(o,r);u&&t.classes.push(u)}else{let o=r;for(;r<n&&!/[\s=}]/.test(e[r]);)r++;let u=e.slice(o,r);if(!u){r++;continue}if(e[r]!=="="){t.props[u]=!0;continue}if(r++,r>=n)break;if(e[r]==='"'){r++;let a=r,l="";for(;r<n&&e[r]!=='"';)e[r]==="\\"&&r+1<n?(l+=e[r+1],r+=2):(l+=e[r],r++);r<n&&r++,t.props[u]=l}else if(e[r]==="'"){r++;let a=r;for(;r<n&&e[r]!=="'";)r++;t.props[u]=e.slice(a,r),r<n&&r++}else{let a=r;for(;r<n&&!/[\s}]/.test(e[r]);)r++;t.props[u]=e.slice(a,r)}}}return t}var Ei=/\s*(?:[#.][\w-]+|[A-Za-z_][\w-]*(?:=(?:"(?:[^"\\]|\\.)*"|'[^']*'|[^\s"'=]+))?)(?=\s|$)/y;function i6(e){let t=0;for(Ei.lastIndex=0;Ei.lastIndex<e.length;){if(!Ei.test(e))return/^\s*$/.test(e.slice(t));t=Ei.lastIndex}return!0}function Pa(e){let t={};e.id&&(t.id=e.id),e.classes.length>0&&(t.class=e.classes.join(" "));for(let[r,n]of Object.entries(e.props))t[r]=n;return t}function lp(e,t,r){let n=1,i=!1;for(let o=t;o<r;o++){let u=e.charCodeAt(o);if(i)u===92?o++:u===34&&(i=!1);else if(u===34&&o>t&&e.charCodeAt(o-1)===61)i=!0;else if(u===123)n++;else if(u===125&&--n===0)return o}return-1}var sp=/[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}0-9:]/u,cp=new Set(["kbd","icon","math","mark","highlight","button","badge"]),dr={kbd:"value",icon:"name",badge:"label",button:"label",mark:"text",highlight:"text",math:"latex"};function o6(e){e.inline.ruler.before("emphasis","dogsbay_inline_directive",u6)}function u6(e,t){let r=e.pos,n=e.src;if(n.charCodeAt(r)!==58||r>0&&sp.test(n[r-1]))return!1;let i=n.charCodeAt(r+1)===58,o=i?r+2:r+1,u=n.charCodeAt(o);if(!(u>=65&&u<=90||u>=97&&u<=122))return!1;let a=o;for(;a<n.length;){let w=n.charCodeAt(a);if(w>=65&&w<=90||w>=97&&w<=122||w>=48&&w<=57||w===45)a++;else break}if(a===o)return!1;let l=n.slice(o,a),s="",c=-1,p=-1,h=!1,f=i&&n.charCodeAt(a)===91&&cp.has(l),g=i&&!f;if(!g&&n.charCodeAt(a)===123)h=!0;else if(!g){if(n.charCodeAt(a)!==91)return!1;a++,c=a;let w=e.env.__dbNoLabelClose;if(w!==void 0&&c>=w)return!1;let F=1;for(;a<n.length;){let C=n.charCodeAt(a);if(C===92&&a+1<n.length){a+=2;continue}if(C===91)F++;else if(C===93&&(F--,F===0))break;a++}if(a>=n.length)return e.env.__dbNoLabelClose=c,!1;p=a,s=n.slice(c,p),a++}let b="";if(n.charCodeAt(a)===123){let w=a+1,F=e.env,C=F.__dbLineEnd,k;if(C&&C.src===n&&w>=C.from&&w<=C.at)k=C.at;else{let K=n.indexOf(`
|
|
3182
|
+
`,w);k=K<0?n.length:K,F.__dbLineEnd={src:n,from:w,at:k}}let _=F.__dbNoAttrClose&&F.__dbNoAttrClose.max===k&&w>=F.__dbNoAttrClose.from,L=_?-1:lp(n,w,k);if(L>=0)b=n.slice(w,L),a=L+1;else if(_||(F.__dbNoAttrClose={max:k,from:w}),h)return!1}if(t)return e.pos=a,!0;let D=h&&!i6(b),I=D?{classes:[],props:{}}:Io(b),x=JSON.stringify(I);if(f){let w=e.push("dogsbay_literal","",0);w.tag=l,w.content=n.slice(r,a)}else if(g){let w=e.push("dogsbay_leaf_directive","",0);w.tag=l,w.info=x}else{let w=e.push("dogsbay_inline_directive_open","",1);if(w.tag=l,w.info=x,h&&(w.meta={labelless:!0,literal:D,source:n.slice(r,a)}),!h){let C=e.pos,k=e.posMax;e.pos=c,e.posMax=p,e.md.inline.tokenize(e),e.pos=C,e.posMax=k}let F=e.push("dogsbay_inline_directive_close","",-1);F.tag=l}return e.pos=a,!0}var a6=/^(?:[ \t]*|[ \t]*(<!--(?:(?!-->)[\s\S])*-->)[ \t]*)$/,dp="__dogsbayNoContainers",A0="__dogsbayCodeLines",b0="__dogsbayContainerRetries",k0="__dogsbayContainerNotOpeners";function l6(e){let t=e.env,r=t?.[A0];if(r&&r.src===e.src&&r.md===e.md)return r.lines;let n=[];e.md.block.parse(e.src,e.md,{[dp]:!0},n);let i=e.src.split(/\r\n|\r|\n/),o=new Set;for(let u of n)if(!(u.type!=="fence"||!u.map||!s6(i[u.map[1]-1],u.markup,u.map[1]-1>u.map[0])))for(let a=u.map[0]+1;a<u.map[1];a++)o.add(a);return t&&(t[A0]={src:e.src,md:e.md,lines:o}),o}function s6(e,t,r){if(!r||e===void 0)return!1;let n=/^[ \t>]*(`{3,}|~{3,})[ \t]*$/.exec(e);return n!==null&&n[1][0]===t[0]&&n[1].length>=t.length}var pp=new Set;function c6(e){let t=/^\s*([A-Za-z][\w-]*)(?=$|[\s{[])/.exec(e);return t!==null&&pp.has(t[1])}function d6(e){pp.add(e)}var p6=new Set(["paragraph_open","heading_open","html_block","fence","code_block","math_block","hr","table_open"]);function h6(e){let t=e.env;if(!t)return new Map;let r=t[k0];if(r&&r.src===e.src)return r.map;let n=new Map;return t[k0]={src:e.src,map:n},n}function f6(e){let t=e.env,r={lines:4*e.bMarks.length+1e3};if(!t)return r;let n=t[b0];return n&&n.src===e.src?n.budget:(t[b0]={src:e.src,budget:r},r)}function v0(e,t,r){function n(u,a,l,s){let c=u.bMarks[a]+u.tShift[a],p=u.eMarks[a];if(u.src.charCodeAt(c)!==58||u.env?.[dp])return!1;let h=c+1;for(;h<=p&&u.src.charCodeAt(h)===58;)h++;let f=h-c;if(f<3)return!1;let g=u.src.slice(c,h),b=u.src.slice(h,p);if(!r.validate(b,g))return!1;if(s)return!0;let D=u.parentType,I=u.lineMax;u.parentType="container";let x=u.tokens.length,w=h6(u),F=new Set(w.get(a)),C;for(;;){C=i(u,a,l,f,F),u.lineMax=C.nextLine;let k=u.push(`container_${t}_open`,"div",1);k.markup=g,k.block=!0,k.info=b,k.map=[a,C.nextLine],!C.autoClosed&&(C.skippedCloser!==void 0||C.legacyCloser!==void 0)&&(k.meta={...k.meta??{},...C.skippedCloser!==void 0?{skippedCloser:C.skippedCloser}:{},...C.legacyCloser!==void 0?{legacyCloser:C.legacyCloser}:{}}),u.md.block.tokenize(u,a+1,C.nextLine);let _=u.push(`container_${t}_close`,"div",-1);_.markup=C.closeMarkup,_.block=!0,_.info=C.closeComment,C.autoClosed&&(k.meta={...k.meta??{},closerLine:C.nextLine});let L=new Set(C.pushed),K=[],U=[];if(L.size>0||F.size>0)for(let M=x+1;M<u.tokens.length;M++){let q=u.tokens[M];if(q.map)if(p6.has(q.type))for(let m=q.map[0];m<q.map[1];m++)L.delete(m)&&K.push(m);else q.nesting===1&&q.type.startsWith("container_")&&F.has(q.map[0])&&U.push(q.map[0])}if(K.length===0&&U.length===0)break;let N=f6(u);if(N.lines<C.nextLine-a){k.meta={...k.meta??{},unverified:!0};break}N.lines-=C.nextLine-a;for(let M of K)F.add(M);for(let M of U)F.delete(M);u.tokens.length=x}return F.size>0?w.set(a,new Set(F)):w.delete(a),u.parentType=D,u.lineMax=I,u.line=C.nextLine+(C.autoClosed?1:0),!0}function i(u,a,l,s,c){let p,h=a,f={nextLine:h,autoClosed:!1,closeMarkup:"",closeComment:"",pushed:[]},g=[],b=new Map,D=I=>{for(let x=I;x<g.length;x++)b.set(g[x].colons,b.get(g[x].colons)-1);g.length=I};for(;h++,!(h>=l);){let I=u.bMarks[h]+u.tShift[h],x=u.eMarks[h];if(I>=x)continue;if(u.sCount[h]<u.blkIndent)break;for(;g.length>0&&u.sCount[h]<g[g.length-1].indent;)D(g.length-1);if(u.src.charCodeAt(I)!==58||u.sCount[h]-u.blkIndent>=4)continue;let w=I+1;for(;w<x&&u.src.charCodeAt(w)===58;)w++;let F=w-I;if(F<3)continue;let C=u.src.slice(w,x),k=a6.exec(C),_=!k&&c6(C);if(!k&&!_)continue;if((p??=l6(u)).has(h)){k&&F>=s&&(f.skippedCloser??=h);continue}if(_){if(c.has(h))continue;let M=Math.min(F,g.length>0?g[g.length-1].least:F);g.push({colons:F,indent:u.sCount[h],least:M}),b.set(F,(b.get(F)??0)+1),f.pushed.push(h);continue}F>=s&&(f.legacyCloser??=h);let L=M=>{for(let q=g.length-1;q>=0;q--)if(M(g[q].colons))return q;return M(s)?-1:void 0},K=(b.get(F)??0)>0||s===F,U=s<F||g.length>0&&g[g.length-1].least<F,N=K?L(M=>M===F):U?L(M=>M<F):void 0;if(N!==void 0){if(N>=0){D(N);continue}f.autoClosed=!0,f.closeMarkup=u.src.slice(I,w),f.closeComment=k?.[1]??"";break}}return f.nextLine=h,f}e.block.ruler.before("fence",`container_${t}`,n,{alt:["paragraph","reference","blockquote","list"]});let o=r.render??(()=>"");e.renderer.rules[`container_${t}_open`]=o,e.renderer.rules[`container_${t}_close`]=o}var Pn=["tabs","tab","steps","step","cards","card","grid","grid-item","details","callout","note","tip","info","important","warning","caution","danger","success","hint","attention","error","failure","bug","question","abstract","quote","button","figure","math","api-endpoint","api-params","api-response","config","files","example","accordion","accordion-item","link-card","autodoc","api-class","api-member","api-doc","api-source","youtube","openapi","theme"],hp=["youtube","avatar","child-links","data-table","data-cards"],Ga=[...Pn,...hp.filter(e=>!Pn.includes(e))],xr="dogsbay_generic";function m6(e){for(let r of Pn)d6(r),v0(e,r,{validate:n=>{let i=n.trim();if(!i.startsWith(r))return!1;let o=i[r.length];return o===void 0||o==="{"||o==="["||/\s/.test(o)},render:(n,i)=>{let o=n[i];if(o.nesting===1){let u=o.info.trim().slice(r.length).trim().match(/^\{(.*)\}$/s),a=u?u[1]:"",l=Io(a);o.meta={name:r,attrs:l}}return""}});let t=new Set(Pn);v0(e,xr,{validate:r=>{let n=/^([A-Za-z][\w-]*)(?=$|[\s{[])/.exec(r.trim());return n!==null&&!t.has(n[1])},render:()=>""})}function et(e){let t=[];if(e.id&&t.push(`#${e.id}`),e.classes)for(let r of e.classes)r&&t.push(`.${r}`);if(e.props){for(let[r,n]of Object.entries(e.props))if(!(n==null||n===!1)){if(n===!0){t.push(r);continue}typeof n!="object"&&t.push(`${r}=${Fr(String(n))}`)}}return t.length===0?"":`{${t.join(" ")}}`}function Fr(e){return`"${e.replace(/\r?\n/g," ").replace(/\s+/g," ").replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function pt(e,t=[]){let r={};if(!e)return r;let n=new Set(t),i={};for(let[o,u]of Object.entries(e))if(!n.has(o)){if(o==="id"&&typeof u=="string"){r.id=u;continue}if((o==="class"||o==="className")&&typeof u=="string"){r.classes=u.split(/\s+/).filter(Boolean);continue}u!=null&&(i[o]=u)}return Object.keys(i).length>0&&(r.props=i),r}function fp(e){if(e.inline)return e.inline;if(e.children?.length===1&&e.children[0].type==="prose"&&e.children[0].inline)return e.children[0].inline}function g6(e){if(!(e.inline&&e.inline.length>0)){if(e.html)return e.html;if(e.children?.length===1&&e.children[0].type==="prose"&&!e.children[0].inline&&e.children[0].html)return e.children[0].html}}function A6(e){let t=typeof e.props?.title=="string"?e.props.title.trim():"";if(!t)return;let r=e.inline?.length?e.inline:void 0,n=e.children?.[0],i=a=>(a??[]).map(l=>"text"in l&&typeof l.text=="string"?l.text:"children"in l&&Array.isArray(l.children)?i(l.children):"").join(""),o=n&&!r?g6(n):void 0,u=(r?i(r):o!==void 0?k6(o.replace(/<[^>]*>/g,"")):n?i(fp(n)):"").trim();return u.startsWith(t)&&!/^[\p{L}\p{N}_]/u.test(u.slice(t.length))?void 0:t}function b6(e){if(!e?.length)return;let t=h=>"text"in h&&typeof h.text=="string"?h.text:void 0,r=(h,f)=>h[f]===!0,n=h=>{if(h.type==="link"){let f=h.children.filter(g=>g.type==="text");return f.length>0&&f.every(g=>r(g,"bold"))}return r(h,"bold")},i=0;for(;i<e.length&&t(e[i])===""&&!n(e[i]);)i++;let o=i;for(;i<e.length&&n(e[i]);)i++;if(i===o)return;let u=i;for(;u<e.length&&t(e[u])==="";)u++;let a=e[u]?.type==="break";if(!r(e[i-1],"lineEnd")&&!a)return;let l=h=>h.type==="link"?{...h,lineEnd:void 0,children:h.children.map(f=>({...f,bold:void 0}))}:{...h,bold:void 0,lineEnd:void 0},s=e.slice(o,i).map(l),c=e.slice(a?u+1:i),p=c[0]&&t(c[0]);if(p!==void 0&&(c[0]={...c[0],text:p.replace(/^\s+/,"")}),!!c.some(h=>t(h)!==""))return{title:s,rest:c}}function k6(e){return e.replace(/&#(\d+);/g,(t,r)=>String.fromCodePoint(Number(r))).replace(/&#x([0-9a-f]+);/gi,(t,r)=>String.fromCodePoint(parseInt(r,16))).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'|'/g,"'").replace(/&/g,"&")}function v6(e,t="`"){let r=t==="`"?/`+/g:/~+/g,n=2;for(let i of e.matchAll(r))i[0].length>n&&(n=i[0].length);return t.repeat(n+1)}function y6(e){let t=2;for(let r of e.matchAll(/:{3,}/g))r[0].length>t&&(t=r[0].length);return":".repeat(t+1)}function w6(e){return e.replace(/&#x([0-9a-f]+);?/gi,(t,r)=>String.fromCodePoint(parseInt(r,16))).replace(/&#(\d+);?/g,(t,r)=>String.fromCodePoint(Number(r))).replace(/:/gi,":").replace(/&tab;/gi," ").replace(/&newline;/gi,`
|
|
3183
|
+
`).replace(/&/gi,"&")}function Xr(e,t="link"){let r=e.replace(/[\u0000-\u0020\u007f]+/g,"").toLowerCase();return/^(?:javascript|vbscript):/.test(r)?!1:/^data:/.test(r)?t==="image"&&/^data:image\/(?:gif|png|jpeg|webp);/.test(r):!0}function x6(e){let t=[],r=C6(e,n=>`\0M${t.push(n)-1}\0`);return r=mp(r,n=>n.replace(/\]\(\s*<([^<>\n]*)>/g,(i,o)=>Xr(Bi(o))?`](${D6(Bi(o))}`:`\\](${o}`).replace(/(?<!\\)\](\(\s*)([^\s)<>]*)/g,(i,o,u)=>Xr(Bi(u))?i:`\\]${o}${u}`).replace(/^(\s{0,3}\[[^\]\n]*)\](:\s*<?)(\S*)/gm,(i,o,u,a)=>Xr(Bi(a))?i:`${o}\\]${u}${a}`).replace(/<(?=[A-Za-z/!?])/g,"<")),r.replace(/\u0000M(\d+)\u0000/g,(n,i)=>t[Number(i)])}function C6(e,t){let r=e.split(`
|
|
3184
3184
|
`),n=[];for(let i=0;i<r.length;i++){let o=/^ {0,3}(`{3,}|~{3,})/.exec(r[i]);if(!o||o[1][0]==="`"&&r[i].slice(o[0].length).includes("`")){n.push(r[i]);continue}let u=o[1],a=i+1;for(;a<r.length;){let l=/^ {0,3}(`+|~+)[ \t]*$/.exec(r[a]);if(l&&l[1][0]===u[0]&&l[1].length>=u.length)break;a++}n.push(t(r.slice(i,Math.min(a,r.length-1)+1).join(`
|
|
3185
3185
|
`))),i=a}return n.join(`
|
|
3186
|
-
`)}function mp(e,t){let r=[];for(let a=0;a<e.length;){if(e[a]!=="`"){a++;continue}let l=a;for(;e[l]==="`";)l++;let s=0;for(let c=a-1;c>=0&&e[c]==="\\";c--)s++;s%2?l-a>1&&r.push({at:a+1,len:l-a-1}):r.push({at:a,len:l-a}),a=l}let n=new Map;r.forEach((a,l)=>{let s=n.get(a.len);s?s.push(l):n.set(a.len,[l])});let i=new Map,o="",u=0;for(let a=0;a<r.length;a++){let l=r[a];if(l.at<u)continue;let s=n.get(l.len),c=i.get(l.len)??0;for(;c<s.length&&s[c]<=a;)c++;if(i.set(l.len,c),c>=s.length)continue;let p=r[s[c]];o+=t(e.slice(u,l.at))+e.slice(l.at,p.at+p.len),u=p.at+p.len,a=s[c]}return o+t(e.slice(u))}function Bi(e){return
|
|
3187
|
-
`;case"html-inline":return e.html;case"footnote-ref":return t(`[^${e.label}]`);case"image":return t(e.alt??"");case"link":case"highlight":return e.children.map(r=>gp(r,t)).join("");default:return""}}function Ap(e,t){let r=t.escape??(u=>u),n=t.report??(()=>{}),i={recurse:u=>Ap(u,t),escape:r,report:n},o=t.onUnsupported??((u,a)=>(a.report(u.type,"no emitter for this inline type \u2014 rendered as plain text"),gp(u,a.escape)));return e.map(u=>{let a=t.emitters[u.type];return a?a(u,i):o(u,i)}).join("")}function
|
|
3188
|
-
`)){let r=
|
|
3189
|
-
`)){if(t.step(i)==="code"){r.push(i),n=0;continue}let o=
|
|
3186
|
+
`)}function mp(e,t){let r=[];for(let a=0;a<e.length;){if(e[a]!=="`"){a++;continue}let l=a;for(;e[l]==="`";)l++;let s=0;for(let c=a-1;c>=0&&e[c]==="\\";c--)s++;s%2?l-a>1&&r.push({at:a+1,len:l-a-1}):r.push({at:a,len:l-a}),a=l}let n=new Map;r.forEach((a,l)=>{let s=n.get(a.len);s?s.push(l):n.set(a.len,[l])});let i=new Map,o="",u=0;for(let a=0;a<r.length;a++){let l=r[a];if(l.at<u)continue;let s=n.get(l.len),c=i.get(l.len)??0;for(;c<s.length&&s[c]<=a;)c++;if(i.set(l.len,c),c>=s.length)continue;let p=r[s[c]];o+=t(e.slice(u,l.at))+e.slice(l.at,p.at+p.len),u=p.at+p.len,a=s[c]}return o+t(e.slice(u))}function Bi(e){return w6(e.replace(/\\([!-/:-@[-`{-~])/g,"$1"))}function D6(e){return e.replace(/&(?=#?[A-Za-z0-9]+;)/g,"&").replace(/\\/g,"\\\\").replace(/[\u0000-\u0020\u007f()<>]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function gp(e,t){switch(e.type){case"text":return t(e.text);case"code":return t(e.text);case"math":return t(e.latex);case"kbd":return t(e.keys.join("+"));case"icon":return t(e.library?`${e.library}:${e.name}`:e.name);case"badge":return t(e.text);case"break":return`
|
|
3187
|
+
`;case"html-inline":return e.html;case"footnote-ref":return t(`[^${e.label}]`);case"image":return t(e.alt??"");case"link":case"highlight":return e.children.map(r=>gp(r,t)).join("");default:return""}}function Ap(e,t){let r=t.escape??(u=>u),n=t.report??(()=>{}),i={recurse:u=>Ap(u,t),escape:r,report:n},o=t.onUnsupported??((u,a)=>(a.report(u.type,"no emitter for this inline type \u2014 rendered as plain text"),gp(u,a.escape)));return e.map(u=>{let a=t.emitters[u.type];return a?a(u,i):o(u,i)}).join("")}function E6(e,t,r){let n=e;return t.bold&&(n=r.bold(n)),t.italic&&(n=r.italic(n)),t.strikethrough&&(n=r.strike(n)),n}function B6(e,t){let r=e??[],n=r.findIndex(u=>u.type===t);if(n<0)return{before:[...r],items:[],after:[]};let i=r.length-1;for(;r[i].type!==t;)i--;let o=[];for(let u of r.slice(n,i+1))if(u.type===t)o.push(u);else{let a=o[o.length-1];o[o.length-1]={...a,children:[...a.children??[],u]}}return{before:r.slice(0,n),items:o,after:r.slice(i+1)}}function Xi(e,t,r,n,i){let{before:o,items:u,after:a}=B6(e.children,t);return!o.length&&!a.length?r({...e,children:u}):[...o.map(n),u.length?r({...e,children:u}):"",...a.map(n)].filter(Boolean).join(i)}function y0(e){let t=e?.sheet;return t!=null&&t!==!1&&t!=="false"}var a8=Symbol("section");function F6(e){let t=new Set(["text","code","html-inline","html"]),r=new Set(["thead","tr","th","td","prose","paragraph","link","break","hardbreak","softbreak"]),n=!1,i=o=>{if(n)return;if(Array.isArray(o))return o.forEach(i);if(!o||typeof o!="object")return;let u=o,a=typeof u.type=="string"?u.type:void 0;if(a!=="image"){if(a&&!t.has(a)&&!r.has(a)){n=!0;return}typeof u.text=="string"&&u.text.trim()&&(n=!0),typeof u.html=="string"&&u.html.replace(/<[^>]*>/g,"").replace(/&(nbsp|#160|#xa0);/gi," ").trim()&&(n=!0);for(let[l,s]of Object.entries(u))l!=="props"&&typeof s=="object"&&i(s)}};return i(e),!n}function na(e){if(Array.isArray(e))return e.some(na);if(!e||typeof e!="object")return!1;let t=e;return t.type==="link"||t.type==="link-card"||t.type==="link-button"?!0:t.type==="code"||t.type==="code-group"||t.type==="math-block"?!1:typeof t.html=="string"&&/<a\b/i.test(t.html)?!0:Object.entries(t).some(([r,n])=>r!=="props"&&typeof n=="object"&&na(n))}var $6=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g;function _6(e,t){if(!e.includes("{{")&&!e.includes("{%")&&!e.includes("{#"))return t(e);let r=[],n=0;for(let i of e.matchAll($6)){let o=i.index??0;o>n&&r.push(t(e.slice(n,o))),r.push(i[0]),n=o+i[0].length}return n<e.length&&r.push(t(e.slice(n))),r.join("")}var bp=v6;function kp(e){if(!e.includes(":::"))return":::";for(let t of e.split(`
|
|
3188
|
+
`)){let r=S6.exec(t);if(r&&!I6.has(r[1]))return y6(e)}return":::"}var S6=/^(?:[ \t>]|:[ \t]|[-*+][ \t]|\d{1,9}[.)][ \t])*:{3,}([A-Za-z][\w-]*)/,I6=new Set(Pn);function T6(e){let t=$o(),r=[],n=0;for(let i of e.split(`
|
|
3189
|
+
`)){if(t.step(i)==="code"){r.push(i),n=0;continue}let o=L6(i);n=o===""?n+1:0,n<2&&r.push(o)}return r.join(`
|
|
3190
3190
|
`).trimEnd()+`
|
|
3191
|
-
`}function
|
|
3192
|
-
`;default:return""}}function
|
|
3193
|
-
`:"")+e.getLines(t+1,l,e.tShift[t],!0)+(s||""),c.content=c.content.replace(/\n+$/,""),c.map=[t,e.line],c.markup="$$",!0}function
|
|
3194
|
-
---`;function
|
|
3191
|
+
`}function L6(e){let t=e.length;for(;t>0&&(e.charCodeAt(t-1)===32||e.charCodeAt(t-1)===9);)t--;return t===e.length?e:e.slice(0,t)}function en(e,t){let r=["{%","%}","{{","}}","{#","#}"].find(n=>t.includes(n));if(r)throw new Error(`cannot serialize ${e} containing "${r}": ${JSON.stringify(t)}`);return t}var M6=["strikethrough","italic","bold"],N6={strikethrough:"~~",italic:"*",bold:"**"},z6={strikethrough:"~~",italic:"_",bold:"__"};function vp(e){switch(e.type){case"variable":return`{{ ${en("variable expr",e.expr)} }}`;case"conditional-span":return`{% if ${en("if test",e.test)} %}${To(e.children,!1)}{% endif %}`;case"directive-raw-inline":return e.source}}function tt(e,t={}){return To(e,t.blockEnd!==!1)}function To(e,t){if(!e||e.length===0)return"";let r=[],n=[],i=()=>{for(let a=r.length-1;a>=0;a--)if(r[a].length>0)return r[a][r[a].length-1];return""},o=!1,u=e.length-1;for(;u>0&&e[u].type==="text"&&!e[u].text.trim();)u--;for(let[a,l]of e.entries()){let s=ap(l)?l:null,c=l.type==="code"&&!!(l.bold||l.italic||l.strikethrough);if(l.type==="text"||c||s){let p=j6(l),h=0;for(;h<n.length&&p.has(n[h].fmt);)h++;for(;n.length>h;)r.push(n.pop().mark),o=!1;for(let g of M6)if(p.has(g)&&!n.some(b=>b.fmt===g)){let b=N6[g],D=!o&&b[0]===i()?z6[g]:b;r.push(D),n.push({fmt:g,mark:D}),o=!0}let f=s?vp(s):c?yp(l.text)+(l.minja?"{minja}":""):Lo(l.text,t&&a===u);r.push(f),f.length>0&&(o=!1)}else{let p=R6(l);r.push(p),p.length>0&&(o=!1)}}for(;n.length>0;)r.push(n.pop().mark);return r.join("")}function j6(e){let t=new Set;return e.strikethrough&&t.add("strikethrough"),e.italic&&t.add("italic"),e.bold&&t.add("bold"),t}function R6(e){if(ap(e)){let t=e,r=vp(t);return t.bold&&(r=`**${r}**`),t.italic&&(r=`*${r}*`),t.strikethrough&&(r=`~~${r}~~`),r}switch(e.type){case"text":return O6(e);case"link":return K6(e);case"image":return q6(e);case"code":return yp(e.text)+(e.minja?"{minja}":"");case"highlight":return`==${To(e.children,!1)}==`;case"kbd":return`:kbd[${e.keys.join("+").replace(/[\\[\]]/g,"\\$&")}]`;case"badge":return`:badge[${Lo(e.text)}]${eo(e.variant!==void 0?{variant:e.variant,...e.attrs}:e.attrs)}`;case"icon":return W6(e);case"math":return e.latex.includes("$")?`:math[${e.latex.replace(/[\\[\]]/g,"\\$&")}]`:`$${e.latex}$`;case"footnote-ref":return`[^${e.label}]`;case"html-inline":return e.html;case"break":return`
|
|
3192
|
+
`;default:return""}}function O6(e){let t=Lo(e.text);return e.bold&&(t=`**${t}**`),e.italic&&(t=`*${t}*`),e.strikethrough&&(t=`~~${t}~~`),t}function K6(e){let t=To(e.children,!1);if(e.button){let o={href:e.href,...e.button.variant!==void 0?{variant:e.button.variant}:{},...e.attrs};return`:button[${t}]${eo(o)}`}let r=wp(e.href),n=e.title?` ${Fr(e.title)}`:"",i=eo(e.attrs);return`[${t}](${r}${n})${i}`}function eo(e){if(!e)return"";let t=[];if(e.id&&t.push(`#${e.id}`),e.class)for(let r of e.class.split(/\s+/))r&&t.push(`.${r}`);for(let[r,n]of Object.entries(e))n!==void 0&&(r==="id"||r==="class"||t.push(`${r}=${Fr(String(n))}`));return t.length===0?"":`{${t.join(" ")}}`}function q6(e){let t=e.alt?Lo(e.alt):"",r=wp(e.src),n=e.title?` ${Fr(e.title)}`:"",i=eo(e.attrs);return`${i}`}function yp(e){let t=0;for(let i of e.matchAll(/`+/g))i[0].length>t&&(t=i[0].length);let r="`".repeat(t+1),n=e.startsWith("`")||e.endsWith("`")?` ${e} `:e;return`${r}${n}${r}`}function W6(e){let t=[e.name];e.library&&t.unshift(e.library);let r=t.join(":"),n=[];if(e.size&&n.push(`size=${Fr(e.size)}`),e.variant&&n.push(`variant=${Fr(e.variant)}`),e.attrs)for(let[i,o]of Object.entries(e.attrs))n.push(`${i}=${Fr(o)}`);return n.length===0?`:icon[${r.replace(/[\\[\]]/g,"\\$&")}]`:`:icon[${r.replace(/[\\[\]]/g,"\\$&")}]{${n.join(" ")}}`}function Lo(e,t=!1){let r=_6(e,U6);return t?r.replace(/(?<=(?:^|[^\\])(?:\\\\)*)\{(?![{%])(?!#[^}]*#\})(?=[^{}\n]*\}[ \t]*$)/,"\\{"):r}function U6(e){return e.replace(/\\/g,"\\\\").replace(/([*`\[\]])/g,"\\$1").replace(/(^|[^\w:]):([A-Za-z][\w-]*)\{/g,"$1:$2\\{").replace(/::(?=[A-Za-z])/g,(t,r,n)=>r>0&&sp.test(n[r-1])?t:"\\::").replace(/<(?=[A-Za-z/!?])/g,"\\<").replace(/_/g,(t,r,n)=>r===0||/[\W_]/.test(n[r-1])||r===n.length-1||/[\W_]/.test(n[r+1])?"\\_":t).replace(/={2,}/g,(t,r,n)=>{let i=n[r-1]??" ",o=n[r+t.length]??" ",u=l=>/[\p{L}\p{N}]/u.test(l),a=l=>/\s/.test(l);return u(i)&&u(o)||a(i)&&a(o)?t:t.replace(/=/g,"\\=")})}function wp(e){return/[\s()]/.test(e)?`<${e}>`:e}function H6(e,t){if(t||e.src.charCodeAt(e.pos)!==61)return!1;let r=e.scanDelims(e.pos,!1),n=r.length;if(n<2)return!1;n%2&&(e.push("text","",0).content="=",n--);for(let i=0;i<n;i+=2)e.push("text","",0).content="==",!(!r.can_open&&!r.can_close)&&e.delimiters.push({marker:61,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function w0(e,t){let r=[];for(let n of t){if(n.marker!==61||n.end===-1)continue;let i=t[n.end],o=e.tokens[n.token];o.type="mark_open",o.tag="mark",o.nesting=1,o.markup="==",o.content="";let u=e.tokens[i.token];u.type="mark_close",u.tag="mark",u.nesting=-1,u.markup="==",u.content="";let a=e.tokens[i.token-1];a.type==="text"&&a.content==="="&&r.push(i.token-1)}for(;r.length;){let n=r.pop(),i=n+1;for(;i<e.tokens.length&&e.tokens[i].type==="mark_close";)i++;i--,n!==i&&([e.tokens[n],e.tokens[i]]=[e.tokens[i],e.tokens[n]])}}function Q6(e){e.inline.ruler.before("emphasis","mark",H6),e.inline.ruler2.before("emphasis","mark",t=>{w0(t,t.delimiters);for(let r of t.tokens_meta)r?.delimiters&&w0(t,r.delimiters);return!1})}var V6=new Set(Object.keys(dr).filter(e=>!Ga.includes(e)));function P6(e){e.block.ruler.before("paragraph","dogsbay_block_leaf_directive",G6)}function G6(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==58||e.src.charCodeAt(i+2)===58)return!1;let u=i+2;if(u>=o)return!1;let a=e.src.charCodeAt(u);if(!(a>=65&&a<=90||a>=97&&a<=122))return!1;for(;u<o;){let h=e.src.charCodeAt(u);if(h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||h===45)u++;else break}let l=e.src.slice(i+2,u);if(!l||V6.has(l))return!1;let s="";if(e.src.charCodeAt(u)===123){let h=u+1,f=lp(e.src,h,o);if(f<0)return!1;s=e.src.slice(h,f),u=f+1}for(;u<o;){let h=e.src.charCodeAt(u);if(h!==32&&h!==9)return!1;u++}if(n)return!0;let c=Io(s),p=e.push("dogsbay_block_leaf_directive","",0);return p.tag=l,p.info=JSON.stringify(c),p.block=!0,p.map=[t,t+1],e.line=t+1,!0}function Z6(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||e.src.slice(i,i+2)!=="$$")return!1;i+=2;let u=e.src.slice(i,o);if(n)return!0;let a=!1;u.trimEnd().endsWith("$$")&&(u=u.trimEnd().slice(0,-2),a=!0);let l=t,s="";for(;!a&&(l++,!(l>=r||(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],i<o&&e.tShift[l]<e.blkIndent)));){let p=e.src.slice(i,o);p.trimEnd().endsWith("$$")&&(s=p.trimEnd().slice(0,-2),a=!0)}if(!a)return!1;e.line=l+1;let c=e.push("math_block","math",0);return c.block=!0,c.content=(u?u+`
|
|
3193
|
+
`:"")+e.getLines(t+1,l,e.tShift[t],!0)+(s||""),c.content=c.content.replace(/\n+$/,""),c.map=[t,e.line],c.markup="$$",!0}function Y6(e,t){let r=e.pos,n=e.src,i=e.posMax;if(n[r]!=="$"||n[r+1]==="$"||r+1>=i||/\s/.test(n[r+1]))return!1;let o=r+1;for(;o<i&&!(n[o]==="$"&&n[o-1]!=="\\");)o++;if(o>=i||o===r+1||/\s/.test(n[o-1])||o+1<i&&/[0-9]/.test(n[o+1]))return!1;if(!t){let u=e.push("math_inline","math",0);u.markup="$",u.content=n.slice(r+1,o)}return e.pos=o+1,!0}function J6(e){e.block.ruler.before("fence","math_block",Z6,{alt:["paragraph","reference","blockquote","list"]}),e.inline.ruler.before("escape","math_inline",Y6)}var kn="---",x0=`
|
|
3194
|
+
---`;function X6(e){if(e==="")return{data:{},content:""};if(e.slice(0,kn.length)!==kn)return{data:{},content:e};if(e.charAt(kn.length)===kn.slice(-1))return{data:{},content:e};let t=e.slice(kn.length),r=t.length,n=t.indexOf(x0);n===-1&&(n=r);let i=t.slice(0,n),o;if(n===r?o="":(o=t.slice(n+x0.length),o[0]==="\r"&&(o=o.slice(1)),o[0]===`
|
|
3195
3195
|
`&&(o=o.slice(1))),i.replace(/^\s*#[^\n]+/gm,"").trim()==="")return{data:{},content:o};let u=dn(i);return{data:u!==null&&typeof u=="object"?u:{},content:o}}var e5=()=>/\{\{-?([\s\S]*?)-?\}\}/g,t5=()=>/\{%-?\s*([A-Za-z_][A-Za-z0-9_]*)([\s\S]*?)-?%\}/g,r5=()=>/\{#[\s\S]*?#\}/g,n5=()=>/\{%-?\s*raw\s*-?%\}([\s\S]*?)\{%-?\s*endraw\s*-?%\}/g,i5="\uE000",o5="\uE001",u5=/\uE000(\d+)\uE001/,xp=/\uE000(\d+)\uE001/g,a5=/(?:\uE000|%EE%80%80)(\d+)(?:\uE001|%EE%80%81)/gi;function l5(e,t={}){let r=[],n=f=>(r.push(f),`${i5}${r.length-1}${o5}`),i=t.stashRaw===!1?e:s5(e,n),o=rp(i,f=>f.replace(r5(),g=>n({raw:g,form:"comment"})).replace(t5(),(g,b,D)=>n({raw:g,form:"tag",keyword:b,rest:D})).replace(e5(),(g,b)=>n({raw:g,form:"variable",rest:b}))),u=o.split(`
|
|
3196
3196
|
`),a=[],l=[],s=0;for(let f of u){a.push(s);for(let g of f.matchAll(/\uE000(\d+)\uE001/g))s+=(r[Number(g[1])]?.raw.match(/\n/g)??[]).length;l.push(s),s+=1}let c=[],p=[],h=[];for(let f=0;f<u.length;f++){let g=u[f],b=g.match(/^\s*\uE000(\d+)\uE001\s*$/),D=b?r[Number(b[1])]:void 0,I=D!==void 0&&D.form!=="variable"&&((t.isolate??"all")==="all"||D.keyword==="include");I&&c.length&&c[c.length-1].trim()!==""&&(c.push(""),p.push(a[f]),h.push(a[f])),c.push(g),p.push(a[f]),h.push(l[f]),I&&f+1<u.length&&u[f+1].trim()!==""&&(c.push(""),p.push(a[f+1]),h.push(a[f+1]))}return o=c.join(`
|
|
3197
|
-
`),{source:o,table:r,lineMap:p,endLineMap:h}}function s5(e,t){let r=
|
|
3197
|
+
`),{source:o,table:r,lineMap:p,endLineMap:h}}function s5(e,t){let r=Oy(e),n="",i=0;for(let o of e.matchAll(n5())){let u=o.index,a=e.slice(0,u).split(`
|
|
3198
3198
|
`).length-1;if(r[a])continue;let l=e.lastIndexOf(`
|
|
3199
3199
|
`,u-1)+1;(e.slice(l,u).match(/`/g)??[]).length%2!==1&&(n+=e.slice(i,u)+t({raw:o[0],form:"tag",keyword:"raw"}),i=u+o[0].length)}return n+e.slice(i)}function c5(e,t){if(e.type!=="paragraph"||!e.inline||e.inline.length!==1)return null;let r=e.inline[0];if(r.type!=="text")return null;let n=r.text.match(/^\uE000(\d+)\uE001$/);if(!n)return null;let i=Number(n[1]),o=t[i];return!o||o.form==="variable"?null:i}var tn=e=>({type:"directive-raw",props:{source:e.raw,...e.keyword?{kind:e.keyword}:{}}});function d5(e){if(e.form==="comment")return{type:"directive-raw",props:{source:e.raw,kind:"comment"}};switch(e.keyword){case"include":{let t=e.raw.match(/\{%-?\s*include\s+["']([^"']+)["']\s*-?%\}/);return t?{type:"include",props:{src:t[1]}}:tn(e)}case"set":{let t=(e.rest??"").match(/^\s+([A-Za-z_][A-Za-z0-9_]*)\s*=\s*([\s\S]*?)\s*$/);return t?{type:"var-def",props:{name:t[1],value:t[2]}}:tn(e)}default:return tn(e)}}function Cp(e,t,r="all"){let n=[],i=[],o=()=>i.length?i[i.length-1].node.children:n;for(let u of e){let a=c5(u,t);if(a===null){u.children&&(u.children=Cp(u.children,t,r)),u.inline&&(u.inline=Dp(u.inline,t,r)),o().push(u);continue}let l=t[a],s=u.meta?.line,c=u.meta?.endLine,p=f=>s===void 0?f:{...f,meta:{...f.meta,line:s,...c!==void 0?{endLine:c}:{}}};if(r==="include"&&l.keyword!=="include"){o().push(p({type:"paragraph",inline:[{type:"text",text:l.raw}]}));continue}let h=(l.rest??"").trim();if(l.keyword==="if"&&h)i.push({node:p({type:"conditional",props:{test:h},children:[]}),opener:l});else if(l.keyword==="endif"){let f=i.pop();f&&c!==void 0&&f.node.meta&&(f.node.meta={...f.node.meta,endLine:c}),f?o().push(f.node):o().push(p(tn(l)))}else l.keyword==="elif"||l.keyword==="else"?o().push(p(tn(l))):o().push(p(d5(l)))}for(;i.length;){let u=i.pop();(i.length?i[i.length-1].node.children:n).push(tn(u.opener),...u.node.children)}return n}var p5=e=>{let t={},r=e;return r.bold&&(t.bold=!0),r.italic&&(t.italic=!0),r.strikethrough&&(t.strikethrough=!0),t},Ur=(e,t)=>({type:"text",text:e,...t});function Dp(e,t,r="all"){let n=[];for(let a of e){let l=a;if(l.children&&(l.children=Dp(l.children,t,r)),a.type!=="text"||!u5.test(a.text)){n.push(a);continue}let s=p5(a),c=0;for(let p of a.text.matchAll(xp)){p.index>c&&n.push(Ur(a.text.slice(c,p.index),s));let h=t[Number(p[1])];h?n.push({entry:h,flags:s}):n.push(Ur(p[0],s)),c=p.index+p[0].length}c<a.text.length&&n.push(Ur(a.text.slice(c),s))}let i=[],o=[],u=()=>o.length?o[o.length-1].children:i;for(let a of n){if(!("entry"in a)){u().push(a);continue}let{entry:l,flags:s}=a;if(r==="include"){u().push(Ur(l.raw,s));continue}let c=(l.rest??"").trim();if(l.form==="variable")u().push({type:"variable",expr:c,...s});else if(l.form==="tag"&&l.keyword==="if"&&c)o.push({children:[],test:c,opener:a});else if(l.form==="tag"&&l.keyword==="endif"&&o.length){let p=o.pop();u().push({type:"conditional-span",test:p.test,children:p.children,...p.opener.flags})}else u().push(Ur(l.raw,s))}for(;o.length;){let a=o.pop();(o.length?o[o.length-1].children:i).push(Ur(a.opener.entry.raw,a.opener.flags),...a.children)}return i}var Za=(e,t)=>e.replace(xp,(r,n)=>t[Number(n)]?.raw??r),Ep=(e,t)=>e.replace(a5,(r,n)=>t[Number(n)]?.raw??r);function to(e,t,r=new WeakSet,n=!1){if(typeof e=="string")return n?Ep(e,t):Za(e,t);if(e===null||typeof e!="object"||r.has(e))return e;if(r.add(e),Array.isArray(e)){for(let i=0;i<e.length;i++)e[i]=to(e[i],t,r,n);return e}for(let[i,o]of Object.entries(e))e[i]=to(o,t,r,Bp.has(i));return e}var Bp=new Set(["href","src","url","poster","action"]),h5=["text","html","title","alt","latex"],f5=["href","src"];function Fp(e,t){for(let r of e){let n=r;for(let i of h5)typeof n[i]=="string"&&(n[i]=Za(n[i],t));for(let i of f5)typeof n[i]=="string"&&(n[i]=Ep(n[i],t));n.attrs&&typeof n.attrs=="object"&&(n.attrs=to(n.attrs,t)),n.children&&Fp(n.children,t)}}function $p(e,t){if(e.html&&(e.html=Za(e.html,t)),e.props)for(let[r,n]of Object.entries(e.props))e.props[r]=to(n,t,new WeakSet,Bp.has(r));e.inline&&Fp(e.inline,t);for(let r of e.children??[])$p(r,t)}function m5(e,t,r={}){let n=Cp(e,t,r.nodesFor??"all");for(let i of n)$p(i,t);return n}function or(e,t){let r=(n,i)=>{let o=new RegExp(e.source,e.flags.includes("g")?e.flags:`${e.flags}g`);o.lastIndex=i;let u=o.exec(t?t(n):n);if(!u||u[0].length===0)return;let a=u.groups?.at,l=a!==void 0?u.index+u[0].indexOf(a):u.index;return[l,l+(a??u[0]).length]};return r.pattern=e.source,r}var Hr=e=>e.replace(/(`+)[\s\S]*?\1/g,t=>" ".repeat(t.length)),g5=e=>e.replace(/"[^"]*"|'[^']*'/g,t=>" ".repeat(t.length));function Au(e,t=/^\{[^{}]*\}?$/){let r=e.trimEnd(),n=r.lastIndexOf("{");return n>=0&&t.test(r.slice(n))?[n,r.length]:void 0}var C0=/^\{\s*(?:[#.][^{}]*|[\w-]+\s*=[^{}]*)\}?$/,Dt=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),_p=(e,t)=>e!==void 0&&new RegExp(`^:{${t},}[ \\t]*(?:<!--(?:(?!-->)[\\s\\S])*-->[ \\t]*)?$`).test(e.replace(/^[\s>]*/,""));function A5(e){return/^<!--\s*(?:end\s+|\/)?:*([A-Za-z][\w-]*)\s*-->$/.exec(e.trim())?.[1]}function D0(e,t,r,n,i=!1){let o=l=>!t.has(l)&&/^[\s>]*\{[^{}]*\}\s*$/.test(e[l]??""),u=l=>!t.has(l)&&/\{[^{}]*\}\s*$/.test(e[l]??""),a=Math.min(n,e.length-1);for(let l=a;l>=r;l--)if(o(l))return l;for(let l=a;l>=r;l--)if(u(l))return l;if(i){let l=n;for(;l<e.length&&(e[l]??"").trim()==="";)l++;if(o(l))return l}return r}function b5(e){let t=new Set,r=n=>{for(let i of n){if((i.type==="fence"||i.type==="code_block")&&i.map)for(let o=i.map[0];o<i.map[1];o++)t.add(o);i.children&&r(i.children)}};return r(e),t}var bu=cp,E0=new Set(Ga);function k5(e,t){if(t<0||e[t-1]==="\\")return!0;let r=e.lastIndexOf(`
|
|
3200
|
-
`,t-1)+1;return(e.slice(r,t).match(/`/g)??[]).length%2===1}function v5(e){if(hp.includes(e))return`Write ::${e}{\u2026} on a line of its own`;let t=Va[e]??[],r=(e==="tab"||e==="accordion-item")&&t.includes("label")?"label":t.includes("title")?"title":t.includes("label")?"label":void 0,n=`Write :::${e}${r?`{${r}="\u2026"}`:"{\u2026}"}, its content, then a ::: closer`;return e==="tab"?`${n} (inside :::tabs), or a definition list: the term is the tab's name`:n}var y5={strong_open:"bold text",em_open:"italic text",s_open:"struck-through text",code_inline:"inline code"};function B0(e){if(!e.trimEnd().endsWith("}"))return"has no closing }";let t=e.trim().slice(1,-1),r;for(let n of t)r?n===r&&(r=void 0):(n==='"'||n==="'")&&(r=n);if(r)return`has an unterminated ${r==='"'?"double":"single"} quote`}function w5(e,t,r,n,i){if(!t)return"is never closed, so it takes in everything after it";if(r.slice(e[0]+1,e[1]).some(u=>u.replace(/^[\s>]*/,"")!==""))return"is a block, and the lines up to its closer are dropped (a video shows no content)";let o=n[n.length-1];if(n.some(u=>u.map[1]===e[1]))return`has no closer of its own: it ends with the :::${o?.name??"block"} around it`;if(o&&!o.closed)return`takes the closer on line ${i(e[1])??"?"}, which leaves :::${o.name} open`}var ku=e=>{let t=(e??"").trim();return t.length>60?`${t.slice(0,59)}\u2026`:t};function x5(e){let t=Object.keys(e).filter(n=>n!=="__yaml__"),r=e.__yaml__;if(typeof r=="string")try{let n=dn(decodeURIComponent(r));n&&typeof n=="object"&&!Array.isArray(n)&&t.push(...Object.keys(n))}catch{}return t}function C5(e,t,r,n){let i=[],o=new Map,u=(f,g,b,D,I)=>{let x=f===void 0?void 0:r(f);if(x===void 0)return;let w=I&&n?.(x),F;if(w!==void 0&&I){let C=I instanceof RegExp?or(I):I,k=`${x}\0${g}\0${C.pattern??""}`;F=C(w,o.get(k)??0),F&&o.set(k,F[1])}i.push({line:x,code:g,message:b,...D===void 0?{}:{name:D},...F?{column:F[0]+1,endColumn:F[1]+1}:{}})},a=f=>new RegExp(`:{3,}[ \\t]*${Dt(f)}(?![\\w-])`),l=f=>Au(f),s=f=>{let g=0;return f.map(b=>b.type==="softbreak"||b.type==="hardbreak"?g++:g)},c=b5(e),p,h=[];return(f=>{for(let g=0;g<f.length;g++){let b=f[g];/^container_.+_close$/.test(b.type)&&h.pop();let D=/^container_(.+)_open$/.exec(b.type);if(D&&b.map){let x=D[1]===xr,w=(b.info??"").trim(),F=x?/^[A-Za-z][\w-]*/.exec(w)?.[0]??w:D[1],C=(b.markup??":::").length,k=_p(t[b.map[1]],C),_=b.meta?.skippedCloser,L=b.meta?.legacyCloser,K=F==="youtube"?w5(b.map,k,t,h,r):void 0;if(K)u(b.map[0],"leaf-as-block",`a video has no body: write ::youtube{\u2026} on one line, with no closer \u2014 as :::youtube it ${K}`,void 0,a(F));else if(!k&&L!==void 0&&!x)u(b.map[0],"unclosed-container",`:::${F} is never closed \u2014 the ${ku(t[L])} on line ${r(L)??"?"} closes only the innermost open block; each block needs its own closer (one \`:::\` used to close several)`,void 0,a(F));else if(!k&&_!==void 0)u(b.map[0],"unclosed-container",`:::${F} is never closed \u2014 the ${ku(t[_])} on line ${r(_)??"?"} is inside a code block, so it does not close it (add a closer after the code)`,void 0,a(F));else if(!k)u(b.map[0],"unclosed-container",x?`:::${F} is never closed \u2014 it is shown as text (close it with a line of ${":".repeat(C)})`:`:::${F} is never closed \u2014 it takes in everything after it, to the end of the page or of the block it sits in (close it with a line of ${":".repeat(C)})`,void 0,a(F));else if(x)u(b.map[0],"unknown-container",`:::${F} is not a known directive \u2014 it is shown as a plain box`,F,a(F));else{let N=b.attrs??[],M=new Set(N.map(([q])=>q));for(let q of
|
|
3200
|
+
`,t-1)+1;return(e.slice(r,t).match(/`/g)??[]).length%2===1}function v5(e){if(hp.includes(e))return`Write ::${e}{\u2026} on a line of its own`;let t=Va[e]??[],r=(e==="tab"||e==="accordion-item")&&t.includes("label")?"label":t.includes("title")?"title":t.includes("label")?"label":void 0,n=`Write :::${e}${r?`{${r}="\u2026"}`:"{\u2026}"}, its content, then a ::: closer`;return e==="tab"?`${n} (inside :::tabs), or a definition list: the term is the tab's name`:n}var y5={strong_open:"bold text",em_open:"italic text",s_open:"struck-through text",code_inline:"inline code"};function B0(e){if(!e.trimEnd().endsWith("}"))return"has no closing }";let t=e.trim().slice(1,-1),r;for(let n of t)r?n===r&&(r=void 0):(n==='"'||n==="'")&&(r=n);if(r)return`has an unterminated ${r==='"'?"double":"single"} quote`}function w5(e,t,r,n,i){if(!t)return"is never closed, so it takes in everything after it";if(r.slice(e[0]+1,e[1]).some(u=>u.replace(/^[\s>]*/,"")!==""))return"is a block, and the lines up to its closer are dropped (a video shows no content)";let o=n[n.length-1];if(n.some(u=>u.map[1]===e[1]))return`has no closer of its own: it ends with the :::${o?.name??"block"} around it`;if(o&&!o.closed)return`takes the closer on line ${i(e[1])??"?"}, which leaves :::${o.name} open`}var ku=e=>{let t=(e??"").trim();return t.length>60?`${t.slice(0,59)}\u2026`:t};function x5(e){let t=Object.keys(e).filter(n=>n!=="__yaml__"),r=e.__yaml__;if(typeof r=="string")try{let n=dn(decodeURIComponent(r));n&&typeof n=="object"&&!Array.isArray(n)&&t.push(...Object.keys(n))}catch{}return t}function C5(e,t,r,n){let i=[],o=new Map,u=(f,g,b,D,I)=>{let x=f===void 0?void 0:r(f);if(x===void 0)return;let w=I&&n?.(x),F;if(w!==void 0&&I){let C=I instanceof RegExp?or(I):I,k=`${x}\0${g}\0${C.pattern??""}`;F=C(w,o.get(k)??0),F&&o.set(k,F[1])}i.push({line:x,code:g,message:b,...D===void 0?{}:{name:D},...F?{column:F[0]+1,endColumn:F[1]+1}:{}})},a=f=>new RegExp(`:{3,}[ \\t]*${Dt(f)}(?![\\w-])`),l=f=>Au(f),s=f=>{let g=0;return f.map(b=>b.type==="softbreak"||b.type==="hardbreak"?g++:g)},c=b5(e),p,h=[];return(f=>{for(let g=0;g<f.length;g++){let b=f[g];/^container_.+_close$/.test(b.type)&&h.pop();let D=/^container_(.+)_open$/.exec(b.type);if(D&&b.map){let x=D[1]===xr,w=(b.info??"").trim(),F=x?/^[A-Za-z][\w-]*/.exec(w)?.[0]??w:D[1],C=(b.markup??":::").length,k=_p(t[b.map[1]],C),_=b.meta?.skippedCloser,L=b.meta?.legacyCloser,K=F==="youtube"?w5(b.map,k,t,h,r):void 0;if(K)u(b.map[0],"leaf-as-block",`a video has no body: write ::youtube{\u2026} on one line, with no closer \u2014 as :::youtube it ${K}`,void 0,a(F));else if(!k&&L!==void 0&&!x)u(b.map[0],"unclosed-container",`:::${F} is never closed \u2014 the ${ku(t[L])} on line ${r(L)??"?"} closes only the innermost open block; each block needs its own closer (one \`:::\` used to close several)`,void 0,a(F));else if(!k&&_!==void 0)u(b.map[0],"unclosed-container",`:::${F} is never closed \u2014 the ${ku(t[_])} on line ${r(_)??"?"} is inside a code block, so it does not close it (add a closer after the code)`,void 0,a(F));else if(!k)u(b.map[0],"unclosed-container",x?`:::${F} is never closed \u2014 it is shown as text (close it with a line of ${":".repeat(C)})`:`:::${F} is never closed \u2014 it takes in everything after it, to the end of the page or of the block it sits in (close it with a line of ${":".repeat(C)})`,void 0,a(F));else if(x)u(b.map[0],"unknown-container",`:::${F} is not a known directive \u2014 it is shown as a plain box`,F,a(F));else{let N=b.attrs??[],M=new Set(N.map(([q])=>q));for(let q of n6(F,x5(Object.fromEntries(N))))u(b.map[0],"unknown-prop",`${q} is not a prop of :::${F} \u2014 it is kept but not drawn`,F,M.has(q)?or(new RegExp(`(?<![\\w-])(?<at>${Dt(q)})\\s*=`),g5):void 0)}if(b.meta?.unverified&&u(b.map[0],"nesting-unchecked",`the parser stopped re-checking the nested blocks on this page here, so where :::${F} ends may be wrong \u2014 check that each block inside it has its own closer, or split the page`,void 0,a(F)),k){let N=A5((t[b.map[1]]??"").replace(/^[\s>]*:+/,""));N&&N!==F&&u(b.map[1],"closer-mismatch",`this closer is labelled ${N}, but it closes :::${F} (opened on line ${r(b.map[0])??"?"}) \u2014 check which block you meant to end here`,void 0,/<!--[\s\S]*?-->/)}let U=w.slice(F.length).trim();if(U.startsWith("{")){let N=B0(U);N&&u(b.map[0],"bad-attributes",`the attributes of :::${F} ${N} \u2014 they are ignored`,void 0,/\{.*$/)}h.push({map:b.map,closed:k||x&&b.meta?.unclosed===!0,name:F})}if(b.type==="inline"&&b.map&&(b.content??"").split(`
|
|
3201
3201
|
`).forEach((x,w)=>{/^\s*:{3,}[ \t]*(?:<!--(?:(?!-->)[\s\S])*-->[ \t]*)?$/.test(x)&&u(b.map[0]+w,"stray-closer",`stray \`${ku(x)}\` \u2014 it closes nothing and is shown as text: every block before it is already closed (each block takes one closer)`,void 0,/:{3,}/)}),b.type==="inline"&&(b.map||p!==void 0)&&b.children){let x=b.map?b.map[0]:p,w=b.content??"",F=0;for(let C of b.children){if(C.type==="dogsbay_literal"){let M=w.indexOf(C.content,F);F=M>=0?M+C.content.length:F;let q=M>=0?(w.slice(0,M).match(/\n/g)??[]).length:0;u(x+q,"inline-as-leaf",`::${C.tag}[\u2026] is shown as text: an inline directive takes one colon \u2014 write :${C.tag}[\u2026]`,C.tag,or(new RegExp(`::${Dt(C.tag)}\\[[^\\]]*\\]?(?:\\{[^{}\\n]*\\})?`),Hr));continue}if(C.type!=="dogsbay_inline_directive_open"&&C.type!=="dogsbay_leaf_directive")continue;let k=C.type==="dogsbay_leaf_directive";if((k?dr[C.tag]:C.meta?.labelless)&&bu.has(C.tag)){let M=dr[C.tag],q={};try{q=JSON.parse(C.info||"{}").props??{}}catch{}if(M&&typeof q[M]!="string"){let m=k?"::":":",v=`${m}${C.tag}{`,E=w.indexOf(v,F);F=E>=0?E+v.length:F;let O=E>=0?(w.slice(0,E).match(/\n/g)??[]).length:0;u(x+O,"missing-label",`${m}${C.tag}{\u2026} has no label \u2014 it is shown as text; write :${C.tag}[\u2026]{\u2026} or :${C.tag}{${M}="\u2026"}`,void 0,or(new RegExp(k?`::${Dt(C.tag)}\\{[^{}]*\\}?`:`(?<!:):${Dt(C.tag)}\\{[^{}]*\\}?`),Hr))}continue}if(bu.has(C.tag)||C.type==="dogsbay_inline_directive_open"&&C.meta?.labelless)continue;let _=C.type==="dogsbay_leaf_directive"?`::${C.tag}`:`:${C.tag}[`,L=w.indexOf(_,F),K=!1;if(C.type==="dogsbay_leaf_directive"&&E0.has(C.tag)&&b.map){let M=new RegExp(`(^|\\n)[ \\t]*::${C.tag}\\[`,"g");M.lastIndex=F;let q=M.exec(w),m=q?q.index+q[0].indexOf("::"):-1;m>=0&&(m===L||k5(w,L))&&(L=m,K=!0)}F=L>=0?L+_.length:F;let U=L>=0?(w.slice(0,L).match(/\n/g)??[]).length:0,N=C.type==="dogsbay_leaf_directive"?`::${C.tag}`:`:${C.tag}[\u2026]`;C.type==="dogsbay_leaf_directive"&&E0.has(C.tag)?K?u(x+U,"block-directive-inline",`${N}[\u2026] is shown as text: a block directive takes no [label]. ${v5(C.tag)}`,void 0,or(new RegExp(`::${Dt(C.tag)}\\[[^\\]]*\\]?`),Hr)):u(x+U,"block-directive-inline",`${N} is a block directive \u2014 inside a line of text it is shown as text; put it on a line of its own`,void 0,or(new RegExp(`::${Dt(C.tag)}(?![\\w-])`),Hr)):u(x+U,"unknown-inline",`${N} is not a known inline directive \u2014 it is shown as text`,C.tag,or(C.type==="dogsbay_leaf_directive"?new RegExp(`::${Dt(C.tag)}(?![\\w-])`):new RegExp(`(?<!:):${Dt(C.tag)}\\[[^\\]]*\\]?`),Hr))}}if(b.type==="list_item_open"&&b.map&&b.attrs?.length&&u(D0(t,c,b.map[0],b.map[1]-1),"dropped-attributes","the attribute block on this list item is dropped \u2014 list items take no attributes",void 0,l),b.type==="tr_open"&&b.map){let x=[];for(let F=g+1;F<f.length&&f[F].type!=="tr_close";F++)x.push(f[F]);let w=x.filter(F=>F.type==="inline");x[0]?.attrs?.length&&/^\{[^{}]*\}$/.test((w[0]?.content??"").trim())&&w.slice(1).every(F=>F.content.trim()==="")&&u(b.map[0],"dropped-attributes","this attribute block is read as an empty table row \u2014 put it on the line directly under the table's last row, or after a blank line",void 0,l)}let I=b.attrs?.filter(([x])=>x!=="start")??[];if((b.type==="bullet_list_open"||b.type==="ordered_list_open")&&b.map&&I.length>0&&I.every(([x])=>/^[A-Za-z_][\w:.-]*$/.test(x))&&u(D0(t,c,b.map[0],b.map[1],!0),"dropped-attributes","the attribute block on this list is dropped \u2014 lists take no attributes",void 0,l),b.type==="paragraph_open"&&b.map&&b.attrs?.length){let x=f[g+1],w=/^\{\s*(?:[#.][^\s{}]|[\w-]+\s*=)/.test(x?.content.trim()??"");x?.type==="inline"&&w&&(x.children??[]).every(F=>F.type==="text"&&F.content.trim()==="")&&u(b.map[0],"dropped-attributes","this attribute block is on a line of its own and applies to nothing \u2014 put it at the end of the block's last line",void 0,l)}if(b.type==="inline"&&b.map&&b.children){let x=s(b.children);for(let[w,F]of b.children.entries()){let C=y5[F.type];C&&F.attrs?.length&&u(b.map[0]+x[w],"dropped-attributes",`the attribute block on ${C} is dropped \u2014 only links, images and inline directives take attributes`,void 0,/(?<=[*_`~])\{[^{}]*\}/)}for(let[w,F]of b.children.entries()){let C=F.type==="dogsbay_leaf_directive";if(F.type!=="dogsbay_inline_directive_open"&&!(C&&dr[F.tag])||F.tag==="badge"||F.tag==="button"||!bu.has(F.tag))continue;let k={};try{k=JSON.parse(F.info||"{}")}catch{}let _={...k.props??{}};if(C||F.meta?.labelless){let L=dr[F.tag];if(L&&typeof _[L]!="string")continue;L&&delete _[L]}(k.id||k.classes?.length||Object.keys(_).length)&&u(b.map[0]+x[w],"dropped-attributes",`the attribute block on :${F.tag}[\u2026] is dropped \u2014 of the inline directives only :badge and :button take attributes`,void 0,or(new RegExp(C?`::${Dt(F.tag)}(?<at>\\{[^{}]*\\})`:`:${Dt(F.tag)}\\[[^\\]]*\\](?<at>\\{[^{}]*\\})`),Hr))}}if(b.type==="tr_open"&&b.map&&(p=b.map[0]),b.type==="heading_open"&&b.map){let x=[...f[g+1]?.children??[]].reverse().find(F=>F.type==="text")?.content??"",w=Au(x,C0);if(w){let F=B0(x.slice(w[0]))??"could not be read";u(b.map[0],"bad-attributes",`the heading's attribute block ${F} \u2014 it is shown as text`,void 0,C=>Au(C,C0))}}}})(e),i.sort((f,g)=>f.line-g.line)}var F0=["source","same","sequential"],$0=["long","none","all"];function D5(e){let t={},r=[];if(e==null)return{style:t,errors:r};if(typeof e!="object"||Array.isArray(e))return{style:t,errors:["style: must be a mapping (listNumbers, listIndent, closerLabels)"]};for(let[n,i]of Object.entries(e))n==="listNumbers"?F0.includes(i)?t.listNumbers=i:r.push(`style.listNumbers: ${JSON.stringify(i)} is not one of ${F0.join(", ")}`):n==="listIndent"?i===4||i==="4"?t.listIndent=4:i==="marker"||i==="aligned"?t.listIndent=i:r.push(`style.listIndent: ${JSON.stringify(i)} is not 4, marker or aligned`):n==="closerLabels"?$0.includes(i)?t.closerLabels=i:r.push(`style.closerLabels: ${JSON.stringify(i)} is not one of ${$0.join(", ")}`):r.push(`style.${n}: not a style setting (listNumbers, listIndent, closerLabels)`);return{style:t,errors:r}}function E5(e){let t={};for(let n of["listNumbers","listIndent","closerLabels"])e?.[n]!==void 0&&(t[n]=e[n]);let{style:r}=D5(t);return{listNumbers:r.listNumbers??"source",listIndent:r.listIndent??4,closerLabels:r.closerLabels??"long"}}function B5(e){return{githubCallouts:e?.githubCallouts??!0,indentNested:e?.indentNested??!1,yamlThreshold:e?.yamlThreshold??3,literalBlockStarts:e?.literalBlockStarts??!0,...E5(e),yamlComponents:new Set(e?.yamlComponents??["card","api-endpoint","autodoc","api-class","api-member","api-doc","api-params","api-source"]),unknownNodes:e?.unknownNodes??"html"}}var F5=new Set(Ga);function Le(e,t){let{name:r,props:n,excludeProps:i=[],body:o=""}=e,u=e.yamlEligible??t.yamlComponents.has(r),a=pt(n,i),l=u&&_5(a,t)||$5(a),s=kp(l?o+`
|
|
3202
3202
|
---`:o);if(!l){let f=et(a);return!o.trim()&&F5.has(r)?`::${r}${f}`:`${f?`${s}${r}${f}`:`${s}${r}`}
|
|
3203
3203
|
${Mo(o)}
|
|
3204
|
-
${s}`}let c=S5(a),p=
|
|
3204
|
+
${s}`}let c=S5(a),p=Wy(c),h=p.length>0?`---
|
|
3205
3205
|
${p}
|
|
3206
3206
|
---`:"";return o?`${s}${r}
|
|
3207
3207
|
${h}
|
|
@@ -3211,9 +3211,9 @@ ${h}
|
|
|
3211
3211
|
${s}`}function $5(e){return Object.values(e.props??{}).some(t=>t!==null&&typeof t=="object"||typeof t=="string"&&t.includes(`
|
|
3212
3212
|
`))}function Mo(e){return/^---[ \t]*(\r?\n|$)/.test(e)?`
|
|
3213
3213
|
${e}`:e}function _5(e,t){if((e.id?1:0)+(e.classes?.length??0)+Object.keys(e.props??{}).length>t.yamlThreshold)return!0;if(e.props){for(let r of Object.values(e.props))if(typeof r=="string"&&r.includes(`
|
|
3214
|
-
`)||typeof r=="boolean"||r!==null&&typeof r=="object")return!0}return!1}function S5(e){let t={};if(e.id&&(t.id=e.id),e.classes&&e.classes.length>0&&(t.class=e.classes.join(" ")),e.props)for(let[r,n]of Object.entries(e.props))n!==void 0&&(t[r]=n);return t}function Sp(e,t){let r=B5(t),n=e.map(o=>De(o,r)),i=
|
|
3214
|
+
`)||typeof r=="boolean"||r!==null&&typeof r=="object")return!0}return!1}function S5(e){let t={};if(e.id&&(t.id=e.id),e.classes&&e.classes.length>0&&(t.class=e.classes.join(" ")),e.props)for(let[r,n]of Object.entries(e.props))n!==void 0&&(t[r]=n);return t}function Sp(e,t){let r=B5(t),n=e.map(o=>De(o,r)),i=T6(n.filter(Boolean).join(`
|
|
3215
3215
|
|
|
3216
|
-
`));return t?.frontmatter&&Object.keys(t.frontmatter).length>0?`${
|
|
3216
|
+
`));return t?.frontmatter&&Object.keys(t.frontmatter).length>0?`${Uy(t.frontmatter)}
|
|
3217
3217
|
|
|
3218
3218
|
${i}`:i}function De(e,t){let r=N5(e,t),n=e.meta?.closer;if(typeof n=="string")return/^<!--(?:(?!-->)[\s\S])*-->$/.test(n)&&/\n:{3,}$/.test(r)?`${r} ${n}`:r;let i=t.closerLabels==="none"?void 0:M5(r,t.closerLabels==="all");return i?`${r} <!-- end ${i} -->`:r}var I5=20,T5=/^(?:[ \t>]|:[ \t]|[-*+][ \t]|\d{1,9}[.)][ \t])*:{3,}[A-Za-z]/,L5=/^(?:[ \t>]|:[ \t])*:{3,}[ \t]*(?:<!--(?:(?!-->).)*-->[ \t]*)?$/;function M5(e,t=!1){let r=/^:{3,}([A-Za-z][\w-]*)/.exec(e);if(!r||!/\n:{3,}$/.test(e))return;let n=e.split(`
|
|
3219
3219
|
`),i=$o(),o=0,u=0;for(let a=1;a<n.length-1;a++)i.step(n[a].trimStart())==="prose"&&(T5.test(n[a])?u=Math.max(u,++o):L5.test(n[a])&&o>0&&o--);if(u!==0)return t||n.length>I5||u>=2?r[1]:void 0}function N5(e,t){switch(e.type){case"heading":return W5(e);case"paragraph":case"prose":return H5(e,t);case"code":return Ip(e);case"hr":case"thematic-break":case"separator":return"---";case"blockquote":return Q5(e,t);case"html":return e.html??"";case"html-container":return e.html||(e.children??[]).map(r=>De(r,t)).filter(Boolean).join(`
|
|
@@ -3243,9 +3243,9 @@ ${n}
|
|
|
3243
3243
|
|
|
3244
3244
|
{% endif %}`:`${r}
|
|
3245
3245
|
|
|
3246
|
-
{% endif %}`}function j5(e){let t=
|
|
3246
|
+
{% endif %}`}function j5(e){let t=Ry(e,n=>n.replace(/\s*\{[^{}]*\}[\s\S]*$/,""));t=rp(t,n=>n.replace(/\{(?=[%{#])/g,"{"));let r=new Set;for(let n of R5.parse(t,{}))if((n.type==="fence"||n.type==="code_block")&&n.map)for(let i=n.map[0];i<n.map[1];i++)r.add(i);return t.split(`
|
|
3247
3247
|
`).map((n,i)=>r.has(i)?n:mp(n,o=>o.replace(/:(?=:)|(?<=:):|(?<![\p{L}\p{N}:]):(?=[A-Za-z])/gu,":"))).join(`
|
|
3248
|
-
`)}var R5=new wo,O5=8,K5=400,vu=8e3;function q5(e){let t=e.props??{},r=String(t.method??"get").toUpperCase(),n=String(t.path??""),i=String(t.baseUrl??""),o=t.summary,u=t.description,a=t.deprecated===!0,l=t.parameters??[],s=t.requestBody??[],c=t.responses??[],p=t.codeSamples??[],h=_=>j5(
|
|
3248
|
+
`)}var R5=new wo,O5=8,K5=400,vu=8e3;function q5(e){let t=e.props??{},r=String(t.method??"get").toUpperCase(),n=String(t.path??""),i=String(t.baseUrl??""),o=t.summary,u=t.description,a=t.deprecated===!0,l=t.parameters??[],s=t.requestBody??[],c=t.responses??[],p=t.codeSamples??[],h=_=>j5(x6(String(_??"").replace(/\r\n?/g,`
|
|
3249
3249
|
`))),f=_=>h(String(_??"").replace(/\s*[\r\n]+\s*/g," ").trim()),g=_=>f(_).replace(/\|/g,"\\|"),b=_=>String(_??"").replace(/[`\r\n]/g," "),D=_=>b(_).replace(/\|/g,"\\|"),I=_=>b(typeof _=="string"?_:JSON.stringify(_)),x=_=>{let L=[];if(_.description&&L.push(f(_.description)),_.format&&L.push(`Format: \`${b(_.format)}\`.`),Array.isArray(_.enum)&&_.enum.length){let K=_.enum.slice(0,20).map(U=>`\`${I(U)}\``).join(", ");L.push(`One of: ${K}${_.enum.length>20?`, \u2026 (${_.enum.length} values)`:""}.`)}return _.default!==void 0&&_.default!==""&&L.push(`Default: \`${I(_.default)}\`.`),_.nullable===!0&&L.push("Nullable."),_.deprecated===!0&&L.push("Deprecated."),L.join(" ")},w=K5,F=_=>{let L=[],K=0,U=(M,q)=>{if(!(!Array.isArray(M)||K>=1e5||q>64))for(let m of M)!m||typeof m!="object"||(K++,U(m.properties,q+1),U(m.items,q+1))},N=(M,q,m)=>{if(Array.isArray(M)){if(m>O5)return U(M,m);for(let v of M){if(!v||typeof v!="object")continue;if(w<=0){U([v],m);continue}w--;let E=`${q}${String(v.name??"")}`;L.push({name:E,field:v}),N(v.properties,`${E}.`,m+1),N(v.items,`${E}[].`,m+1)}}};return N(_,"",0),{rows:L,more:K}},C=(_,L,K)=>{if(_===void 0)return;let U=typeof _=="string"?_:JSON.stringify(_,null,2);if(U===void 0)return;let N=U.length>vu;N&&(U=U.slice(0,vu)),K.push(Ip({type:"code",props:{code:U,language:typeof _=="string"?"":"json",title:N?`${L} (first ${vu} characters)`:L}}),"")},k=[];if(k.push(`## ${r.replace(/[^A-Z]/g,"")} ${f(n)}`),k.push(""),a&&(k.push("> [!WARNING]"),k.push("> This endpoint is deprecated."),k.push("")),i&&(k.push(`**Base URL**: \`${b(i)}\``),k.push("")),o&&(k.push(h(o)),k.push("")),u&&u!==o&&(k.push(h(u)),k.push("")),l.length>0){k.push("### Parameters"),k.push(""),k.push("| Name | In | Type | Required | Description |"),k.push("| --- | --- | --- | --- | --- |");for(let _ of l)k.push(`| \`${D(_.name)}\` | ${g(_.in)} | \`${D(_.type)}\` | ${_.required?"yes":"no"} | ${x(_).replace(/\|/g,"\\|")} |`);k.push("")}if(s.length>0||t.requestBodyExample!==void 0){k.push("### Request body"),k.push("");let{rows:_,more:L}=F(s);for(let{name:K,field:U}of _){let N=x(U);k.push(`- \`${b(K)}\` (\`${b(U.type)}\`)${U.required?" \u2014 required":""}${N?` \u2014 ${N}`:""}`)}L&&k.push(`- \u2026 ${L} more field${L===1?"":"s"} not shown`),(_.length||L)&&k.push(""),C(t.requestBodyExample,"Request example",k)}if(c.length>0){k.push("### Responses"),k.push("");for(let _ of c){let L=f(_.status),K=f(_.description);k.push(`- **${L}** \u2014 ${K}`)}k.push("");for(let _ of c){let L=Array.isArray(_.schema)?_.schema:[];if(!L.length&&_.example===void 0)continue;k.push(`#### ${f(_.status)}${_.contentType?` (\`${b(_.contentType)}\`)`:""}`),k.push("");let{rows:K,more:U}=F(L);if(K.length){k.push("| Field | Type | Required | Description |"),k.push("| --- | --- | --- | --- |");for(let{name:N,field:M}of K)k.push(`| \`${D(N)}\` | \`${D(M.type)}\` | ${M.required?"yes":"no"} | ${x(M).replace(/\|/g,"\\|")} |`);k.push("")}U&&k.push(`\u2026 ${U} more field${U===1?"":"s"} not shown.`,""),C(_.example,`Response example (${f(_.status)})`,k)}}if(p.length>0){k.push("### Code samples"),k.push("");for(let _ of p){let L=String(_.language??"").replace(/[^\w+#.-]/g,""),K=_.label?` (${f(_.label)})`:"",U=String(_.code??""),N="`".repeat(Math.max(3,...[...U.matchAll(/`+/g)].map(M=>M[0].length+1)));k.push(`#### ${L}${K}`),k.push(""),k.push(N+L),k.push(U),k.push(N),k.push("")}}return k.join(`
|
|
3250
3250
|
`).trimEnd()}function W5(e){let t=Math.min(6,Math.max(1,Number(e.props?.level)||1)),r="#".repeat(t),n=tt(e.inline)||(e.html??"")||(typeof e.props?.text=="string"?e.props.text:""),i=pt(e.props,["level","slug","text"]),o=e.props?.slug;o&&!i.id&&(i.id=o);let u=et(i);return u?`${r} ${n} ${u}`:`${r} ${n}`}function U5(e){return e.replace(/^[ \t]+/,"").replace(/^([-+])(?=[ \t]|$)/,"\\$1").replace(/^(\d{1,9})([.)])(?=[ \t]|$)/,"$1\\$2").replace(/^(#{1,6})(?=[ \t]|$)/,"\\$1").replace(/^>/,"\\>").replace(/^(:{2,})/,"\\$1").replace(/^([-_=])(?=(?:[ \t]*\1){2,}[ \t]*(?:\n|$))/,"\\$1").replace(/^(~{3,})/,"\\$1")}function H5(e,t){if(e.inline&&e.inline.length>0){let r=tt(e.inline);return e.inline[0].type==="text"&&t?.literalBlockStarts!==!1?U5(r):r}return e.children&&e.children.length>0&&t?e.children.map(r=>De(r,t)).filter(Boolean).join(""):e.html?e.html:""}function Ip(e){let t=e.html??e.props?.code??"",r=e.props?.language??e.props?.lang??"",n=bp(t),i=["title","highlights","lineNumbers","ins","del","mark","collapse","frame","minja"],o=[];if(e.props?.id&&o.push(`#${e.props.id}`),e.props?.class){let a=String(e.props.class).split(/\s+/).filter(Boolean);for(let l of a)o.push(`.${l}`)}for(let a of i){let l=e.props?.[a];if(l==null||l===!1)continue;if(l===!0){o.push(a);continue}let s=String(l).replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/`/g,"");o.push(`${a}="${s}"`)}let u=r;return o.length>0&&(u=`${u}${u?" ":""}{${o.join(" ")}}`),`${n}${u}
|
|
3251
3251
|
${t.replace(/\n$/,"")}
|
|
@@ -3281,7 +3281,7 @@ ${Mo(i)}
|
|
|
3281
3281
|
${u}`}function e4(e,t){let r=e.children??[],n=[],i=[];for(let b of r)b.type==="thead"?n.push(...b.children??[]):b.type==="tbody"||b.type==="tfoot"?i.push(...b.children??[]):b.type==="tr"&&(n.length?i:n).push(b);if(n.length===0&&i.length===0)return"";let o=[...n,...i],u=n.length===0&&e.meta?.headerless===!0,a=i.some(b=>(b.children??[]).some(D=>D.type==="th"));if(u||a||o.some(b=>(b.children??[]).some(t4)))return r4(n,i,e.props?.caption);let l=n[0]??i.shift();if(!l)return"";let s=(l.children??[]).map(b=>_0(b)),c=b=>{for(let D of[l,...i]){let I=(D.children??[])[b]?.props?.align;if(typeof I=="string")return I}},p=s.map((b,D)=>{switch(c(D)){case"left":return":---";case"center":return":---:";case"right":return"---:";default:return"---"}}),h=["| "+s.join(" | ")+" |","| "+p.join(" | ")+" |"];for(let b of i)h.push("| "+(b.children??[]).map(D=>_0(D)).join(" | ")+" |");let f=h.join(`
|
|
3282
3282
|
`),g=et(pt(e.props));return g?`${f}
|
|
3283
3283
|
|
|
3284
|
-
${g}`:f}function t4(e){let t=Number(e.props?.colspan??1),r=Number(e.props?.rowspan??1);if(t>1||r>1)return!0;let n=new Set(["unordered-list","ordered-list","code","table","blockquote","deflist","callout","details","steps","heading","figure"]),i=e.children??[];if(i.filter(u=>u.type==="paragraph").length>1)return!0;let o=u=>u.some(a=>n.has(a.type)||(a.children?o(a.children):!1));return o(i)}function r4(e,t,r){let n=u=>{let a=u.type==="th"?"th":"td",l=Number(u.props?.colspan??1),s=Number(u.props?.rowspan??1),c=(l>1?` colspan="${l}"`:"")+(s>1?` rowspan="${s}"`:""),p=typeof u.props?.align=="string"?` style="text-align: ${$r(u.props.align)}"`:"",h=u.children?.length?u.children.map(ur).join(""):u.inline?.length?Gn(u.inline):"";return`<${a}${c}${p}>${h}</${a}>`},i=u=>u.map(a=>`<tr>${(a.children??[]).map(n).join("")}</tr>`).join(""),o="<table>";return r&&(o+=`<caption>${Gn(Rp(r))}</caption>`),e.length&&(o+=`<thead>${i(e)}</thead>`),t.length&&(o+=`<tbody>${i(t)}</tbody>`),o+="</table>",o}function Ya(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function $r(e){return Ya(e).replace(/"/g,""")}var n4={text:(e,t)=>
|
|
3284
|
+
${g}`:f}function t4(e){let t=Number(e.props?.colspan??1),r=Number(e.props?.rowspan??1);if(t>1||r>1)return!0;let n=new Set(["unordered-list","ordered-list","code","table","blockquote","deflist","callout","details","steps","heading","figure"]),i=e.children??[];if(i.filter(u=>u.type==="paragraph").length>1)return!0;let o=u=>u.some(a=>n.has(a.type)||(a.children?o(a.children):!1));return o(i)}function r4(e,t,r){let n=u=>{let a=u.type==="th"?"th":"td",l=Number(u.props?.colspan??1),s=Number(u.props?.rowspan??1),c=(l>1?` colspan="${l}"`:"")+(s>1?` rowspan="${s}"`:""),p=typeof u.props?.align=="string"?` style="text-align: ${$r(u.props.align)}"`:"",h=u.children?.length?u.children.map(ur).join(""):u.inline?.length?Gn(u.inline):"";return`<${a}${c}${p}>${h}</${a}>`},i=u=>u.map(a=>`<tr>${(a.children??[]).map(n).join("")}</tr>`).join(""),o="<table>";return r&&(o+=`<caption>${Gn(Rp(r))}</caption>`),e.length&&(o+=`<thead>${i(e)}</thead>`),t.length&&(o+=`<tbody>${i(t)}</tbody>`),o+="</table>",o}function Ya(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function $r(e){return Ya(e).replace(/"/g,""")}var n4={text:(e,t)=>E6(t.escape(e.text),e,{bold:r=>`<strong>${r}</strong>`,italic:r=>`<em>${r}</em>`,strike:r=>`<del>${r}</del>`}),code:(e,t)=>`<code>${t.escape(e.text)}</code>`,link:(e,t)=>`<a href="${$r(e.href)}">${t.recurse(e.children)}</a>`,image:e=>`<img src="${$r(e.src)}"${e.alt?` alt="${$r(e.alt)}"`:""}>`,highlight:(e,t)=>`<mark>${t.recurse(e.children)}</mark>`,break:()=>"<br>","html-inline":e=>e.html};function Gn(e){return e?Ap(e,{emitters:n4,escape:Ya}):""}function vn(e){return(e.inline?.length?Gn(e.inline):"")+(e.children??[]).map(ur).join("")}function ur(e){switch(e.type){case"prose":return e.inline?Gn(e.inline):e.html??"";case"paragraph":return`<p>${vn(e)}</p>`;case"unordered-list":return`<ul>${(e.children??[]).map(ur).join("")}</ul>`;case"ordered-list":return`<ol>${(e.children??[]).map(ur).join("")}</ol>`;case"list-item":return`<li>${vn(e)}</li>`;case"code":return`<pre><code${typeof e.props?.language=="string"?` class="language-${$r(e.props.language)}"`:""}>${Ya(String(e.html??e.props?.code??""))}</code></pre>`;case"heading":return`<strong>${vn(e)}</strong>`;case"callout":{let t=String(e.props?.type??e.props?.variant??"note"),r=typeof e.props?.title=="string"?` data-title="${$r(e.props.title)}"`:"";return`<div role="note" data-callout="${$r(t)}"${r}>${vn(e)}</div>`}case"table":return`<table>${(e.children??[]).map(ur).join("")}</table>`;case"thead":case"tbody":case"tfoot":return`<${e.type}>${(e.children??[]).map(ur).join("")}</${e.type}>`;case"tr":return`<tr>${(e.children??[]).map(ur).join("")}</tr>`;case"th":case"td":return`<${e.type}>${e.children?.length?e.children.map(ur).join(""):Gn(e.inline)}</${e.type}>`;default:return vn(e)}}function _0(e){let t=tt(e.inline);if(!t&&e.children){let r=[];for(let n of e.children)if(n.inline&&n.inline.length>0)r.push(tt(n.inline));else if(n.html)r.push(n.html);else if(n.children)for(let i of n.children)i.inline?r.push(tt(i.inline)):i.html&&r.push(i.html);t=r.join(" ")}return!t&&e.html&&(t=e.html),t.replace(/\|/g,"\\|").replace(/\\\n/g,"<br>").replace(/ {2,}\n/g,"<br>").replace(/\n/g," ").replace(/[ \t]{2,}/g," ").trim()}function i4(e,t){let r=e.props?.caption,n=(e.children??[]).map(o=>De(o,t)).join(`
|
|
3285
3285
|
|
|
3286
3286
|
`);if(!r)return n;let i=kp(n);return`${i}figure${et({props:{caption:r}})}
|
|
3287
3287
|
${n}
|
|
@@ -3367,22 +3367,22 @@ ${Mo(n)}
|
|
|
3367
3367
|
:::`}switch(t.unknownNodes){case"skip":return"";case"comment":return`<!-- unsupported: ${e.type} -->`;case"html":default:return e.html?e.html:e.children?e.children.map(n=>De(n,t)).join(`
|
|
3368
3368
|
|
|
3369
3369
|
`):`<!-- unsupported: ${e.type} -->`}}function E4(e){let t;return r=>(t??=e.split(/\r\n|\n/))[r-1]}function ro(e,t){if(t?.diagnostics&&/\r(?!\n)/.test(e)){let{diagnostics:F}=ro(e.replace(/\r(?!\n)/g,`
|
|
3370
|
-
`),{...t,sourceLines:!1});return{...ro(e,{...t,diagnostics:!1}),...F?{diagnostics:F}:{}}}let r=e,n={};try{let F=
|
|
3370
|
+
`),{...t,sourceLines:!1});return{...ro(e,{...t,diagnostics:!1}),...F?{diagnostics:F}:{}}}let r=e,n={};try{let F=X6(e);r=F.content,n=F.data}catch{}let i=null,o=r,u=[],a=[],l=(t?.sourceLines===!0||t?.diagnostics===!0)&&!/\r(?!\n)/.test(e),s=l?(e.slice(0,e.length-r.length).match(/\n/g)??[]).length:0,c=null,p=t?.directives==="preserve";{let F=l5(r,{stashRaw:p,isolate:p?"all":"include"});r=F.source,i=F.table,u=F.lineMap,a=F.endLineMap,l&&(c=F.lineMap)}let h=_4(r);r=h.source;let f=c?F=>{let C=h.lineMap[F],k=C===void 0?void 0:c[C];return k===void 0?void 0:s+k+1}:void 0,g=l?a:null,b=g?F=>{let C=h.lineMap[F];if(C===void 0)return;let k=h.lineMap[F+1],_=k!==void 0&&k>C+1?k-1:C,L=g[_];return L===void 0?void 0:s+L+1}:void 0,D=Op().parse(r,{});N4(D,r),M4(D,r),L4(D,r);let I=t?.diagnostics?C5(D,r.split(/\r\n|\n/),f??(()=>{}),E4(e)):void 0;if(I&&f&&h.badProps.length){for(let F of h.badProps){let C=f(F.line0+F.offset);C!==void 0&&I.push({line:C,code:"props-yaml",message:`This reads like a props block, but its YAML does not load (line ${C}: ${F.message}), so it is read as a rule and text`})}I=I.sort((F,C)=>F.line-C.line)}let x=/\r(?!\n)/.test(o)?void 0:{lines:o.split(/\r\n|\n/),at:F=>{let C=h.lineMap[F];return C===void 0?void 0:u[C]}},w=zp(z4(D,t?.sourceLines?f:void 0,r.split(/\r\n|\n/),x,t?.sourceLines?b:void 0));return i&&(w=m5(w,i,{nodesFor:p?"all":"include"})),t?.sourceLines&&f&&(qp(w),t.sourceMap&&Wp(w,Yy(t.sourceMap))),{tree:w,frontmatter:n,...I?{diagnostics:I}:{}}}var B4=new Set(["_additional-resources"]);function zp(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];n.children&&(n.children=zp(n.children));let i=(n.type==="paragraph"||n.type==="heading")&&typeof n.props?.class=="string"?n.props.class:void 0,o=i&&i.split(/\s+/).some(a=>B4.has(a)),u=e[r+1];if(o&&u&&(u.type==="unordered-list"||u.type==="ordered-list")){t.push({type:"related",props:{title:Ar(n.inline??[]).trim(),class:i},children:[u]}),r++;continue}t.push(n)}return t}var jp=/^:{3,}/,no=2e4;function F4(e,t,r){for(let i=t;i<r;i++)if(jp.test(e[i]))return!1;let n=e.slice(t,r).join(`
|
|
3371
3371
|
`);if(n.trim()==="")return!1;try{let i=dn(n);if(!i||typeof i!="object"||Array.isArray(i)||So(i,no)>no)return!1;let o=Object.keys(i),u=new Set([...n.matchAll(/^(?:"((?:[^"\\]|\\.)*)"|'([^']*)'):/gm)].map(a=>a[1]!==void 0?JSON.parse(`"${a[1]}"`):a[2]));return o.length>0&&o.every(a=>/^[A-Za-z_][\w.-]*$/.test(a)||u.has(a))}catch{return!1}}var $4=new Set(["card","api-endpoint","autodoc","api-class","api-member","api-doc","api-params","api-source"]);function _4(e){let t=e.split(`
|
|
3372
3372
|
`),r=[],n=[],i=[],o=$o(),u=t.map(l=>o.step(l)!=="prose"),a=0;for(;a<t.length;){let l=t[a],s=u[a]?null:l.match(/^(:{3,})([a-zA-Z][\w-]*)(\{.*\})?\s*$/);if(s&&a+1<t.length&&t[a+1].trim()==="---"){let c=a+2;for(;c<t.length&&!(/^---[ \t]*\r?$/.test(t[c])&&!u[c]);)c++;let p=t.slice(a+2,c).some((f,g)=>u[a+2+g]);if(c<t.length&&!p&&($4.has(s[2])||F4(t,a+2,c))){let f=t.slice(a+2,c).join(`
|
|
3373
3373
|
`),g=encodeURIComponent(f),b=s[1],D=s[2],I=s[3],x;I?x=I.replace(/\}$/,` __yaml__="${g}"}`):x=`{__yaml__="${g}"}`,r.push(`${b}${D}${x}`),n.push(a),a=c+1;continue}let h=c<t.length&&!p?S4(t,a+2,c):void 0;h&&i.push({line0:r.length,offset:2+h.line,message:h.message})}r.push(l),n.push(a),a++}return{source:r.join(`
|
|
3374
3374
|
`),lineMap:n,badProps:i}}function S4(e,t,r){if(!(t>=r||!/^(?:[a-z_][\w.-]*|"[^"]*"|'[^']*'):(?:[ \t]|\r?$)/.test(e[t]))){for(let n=t;n<r;n++)if(jp.test(e[n]))return;try{dn(e.slice(t,r).join(`
|
|
3375
|
-
`));return}catch(n){let i=n;return{line:Math.min(Math.max(i.mark?.line??0,0),r-t-1),message:i.reason??"it is not YAML"}}}}function Rp(e){let t=Op().parseInline(e,{});return t.length===0?[]:Jt(t[0].children??[])}var I4;function Op(){return I4??=T4()}function T4(){let e=new wo({html:!0});return e.use(Z3.default,{leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]}),e.use(Y3),e.use(uk),e.use(Qy),e.use(oy),e.use(Py),e.use(my),e.use(Jy),e.core.ruler.push("dogsbay_attr_unescape",t=>{let r=n=>{for(let i of n){for(let o of i.attrs??[])!((i.type==="link_open"||i.type==="image")&&["href","src","title","alt"].includes(o[0]))&&typeof o[1]=="string"&&(o[1]=o[1].replace(/\\(["\\])/g,"$1"));i.children&&r(i.children)}};r(t.tokens)}),e}function L4(e,t){let r=t.split(/\r\n|\r|\n/);for(let n=0;n<e.length;n++){if(e[n].type!=="table_close")continue;let i=n-1;for(;i>=0&&e[i].type!=="table_open";)i--;if(e[n-1]?.type!=="tbody_close"||e[n-2]?.type!=="tr_close")continue;let o=n-2;for(;o>i&&e[o].type!=="tr_open";)o--;let u=e[o].map;if(!u||/^[\s>]*\|/.test(r[u[0]]??""))continue;let a=e.slice(o+1,n-2),l=a.filter(f=>f.type==="inline"),s=a[0];if(!s?.attrs?.length||!/^\{[^{}]*\}$/.test((l[0]?.content??"").trim())||l.slice(1).some(f=>f.content.trim()!==""))continue;let c=new Map((e[i].attrs??[]).map(([f,g])=>[f,g]));for(let[f,g]of s.attrs)c.set(f,f==="class"&&c.has("class")?`${c.get("class")} ${g}`:g);e[i].attrs=[...c];let p=e[o-1]?.type==="tbody_open",h=p?o-1:o;e.splice(h,(p?n:n-1)-h),n=h}}function M4(e,t){let r=t.split(/\r\n|\r|\n/);e.forEach((n,i)=>{if(n.type!=="list_item_open"||!n.attrs?.length)return;if(e[i+1]?.type==="heading_open"){let c=e[i+1];c.attrs=[...c.attrs??[],...n.attrs],n.attrs=null;return}if(e[i+1]?.type!=="paragraph_open")return;let o=e.slice(i+1).find(c=>c.type==="inline"||c.type==="list_item_open"||c.type==="list_item_close"),u=o?.map;if(o?.type!=="inline"||!u)return;let a=/\s*\{[^{}]*\}[ \t]*$/.exec(r[u[1]-1]??""),l=[...o.children??[]].reverse().find(c=>c.type==="text");if(!a||!l)return;let s=a[0].trimEnd();l.content=l.content.trimEnd()+s,o.content=o.content.trimEnd()+s,n.attrs=null})}function N4(e,t){let r=t.split(/\r\n|\r|\n/),n=`container_${xr}_open`;for(let i of e){let o=i.map;i.type!==n||!o||_p(r[o[1]],(i.markup??":::").length)||(i.meta={...i.meta??{},unclosed:!0})}}function z4(e,t,r,n,i){let o=[],u={tokens:e,i:0,...t?{lineOf:t}:{},...i?{endOf:i}:{},...r?{lines:r}:{},...n?{written:n}:{}};for(;u.i<u.tokens.length;){let a=Lr(u);a?Array.isArray(a)?o.push(...a):o.push(a):u.i++}return o}function Lr(e){let t=e.tokens[e.i],r=j4(e),n=e.lineOf&&t?.map?e.lineOf(t.map[0]):void 0;if(n!==void 0&&r){let i=t.meta,o=i?.unclosed?void 0:i?.closerLine,u=(typeof o=="number"?e.lineOf(o):void 0)??Kp(e,t.map,t.type)??n;for(let a of Array.isArray(r)?r:[r])a.meta?.line===void 0&&(a.meta={...a.meta,line:n,endLine:u})}return r}function Kp(e,t,r){let n=r==="html_block"||r==="code_block"||r==="fence"||r==="blockquote_open"?/^\s*$/:/^[\s>]*$/,i=r==="list_item_open"?/^(?:> ?)*\{[^{}]*\}\s*$/:void 0;for(let o=t[1]-1;o>=t[0];o--){if(o>t[0]&&e.lines&&(n.test(e.lines[o]??"")||i?.test(e.lines[o]??"")))continue;let u=(e.endOf??e.lineOf)(o);if(u!==void 0)return u}}function qp(e){for(let t of e)typeof t.meta?.line=="number"&&t.meta.endLine===void 0&&(t.meta={...t.meta,endLine:t.meta.line}),t.children&&qp(t.children)}function Wp(e,t){for(let r of e){let n=r.meta?.line;if(typeof n=="number"){let i=typeof r.meta?.endLine=="number"?r.meta.endLine:n,o=J6(t.slice(n-1,i));o&&(r.meta={...r.meta,source:o})}r.children&&Wp(r.children,t)}}function j4(e){let t=e.tokens[e.i];if(!t)return null;if(t.type.startsWith("container_")&&t.type.endsWith("_open"))return tw(e);switch(t.type){case"heading_open":return q4(e);case"paragraph_open":return W4(e);case"bullet_list_open":return I0(e,!1);case"ordered_list_open":return I0(e,!0);case"blockquote_open":return V4(e);case"fence":case"code_block":return G4(e);case"hr":return e.i++,{type:"hr"};case"html_block":return Z4(e);case"table_open":return Y4(e);case"dl_open":return ew(e);case"front_matter":return e.i++,null;case"dogsbay_block_leaf_directive":return K4(e);case"math_block":return e.i++,{type:"math-block",props:{latex:t.content}};case"footnote_block_open":return R4(e);default:return null}}function R4(e){e.i++;let t=[];for(;e.i<e.tokens.length;){let r=e.tokens[e.i];if(r.type==="footnote_block_close"){e.i++;break}r.type==="footnote_open"?t.push(O4(e)):e.i++}return{type:"footnote-list",children:t}}function O4(e){let t=e.tokens[e.i].meta??{},r=t.label??String((t.id??0)+1);e.i++;let n=e.i;for(;n<e.tokens.length&&e.tokens[n].type!=="footnote_close";)n++;if(e.tokens.slice(e.i,n).some(u=>u.nesting===1&&u.type!=="paragraph_open"||u.type==="fence"||u.type==="code_block")){let u=[];for(;e.i<n;){let a=Lr(e);Array.isArray(a)?u.push(...a):a?u.push(a):e.i++}return e.i=n+1,{type:"footnote-def",props:{id:`fn-${r}`,backrefId:`fnref-${r}`,label:r},children:u}}let i=[],o=!0;for(;e.i<e.tokens.length;){let u=e.tokens[e.i];if(u.type==="footnote_close"){e.i++;break}if(u.type==="paragraph_open"){o||i.push({type:"break"}),o=!1,e.i++;continue}if(u.type==="paragraph_close"){e.i++;continue}if(u.type==="inline"&&u.children){i.push(...Jt(u.children)),e.i++;continue}if(u.type==="footnote_anchor"){e.i++;continue}e.i++}return{type:"footnote-def",props:{id:`fn-${r}`,backrefId:`fnref-${r}`,label:r},inline:i}}function K4(e){let t=e.tokens[e.i];e.i++;let r=t.tag,n=t.info?JSON.parse(t.info):void 0;return Vp(r,n,[])}function q4(e){let t=e.tokens[e.i],r=parseInt(t.tag.slice(1),10);e.i++;let n=e.tokens[e.i],i=n?.children?Jt(n.children):[];e.i++,e.i++;let o={type:"heading",props:{level:r},inline:i},u=Ja(t);u.id&&(o.props||(o.props={level:r}),o.props.slug=u.id),u.classes.length>0&&(o.props.class=u.classes.join(" "));for(let[a,l]of Object.entries(u.props))o.props[a]=l;return o}function W4(e){let t=e.tokens[e.i];e.i++;let r=e.tokens[e.i],n=[];if(r?.children&&(n=Jt(r.children)),e.i++,e.tokens[e.i]?.type==="paragraph_close"&&e.i++,n.length===0)return null;let i={type:"paragraph",inline:n},o=Ja(t);if(o){let u=Pa(o);Object.keys(u).length>0&&(i.props=u)}return i}function I0(e,t){let r=e.tokens[e.i];e.i++;let n=[],i=new Set;for(;e.i<e.tokens.length;){let u=e.tokens[e.i];if(u.type===(t?"ordered_list_close":"bullet_list_close")){e.i++;break}u.type==="list_item_open"?(t&&i.add(u.info),n.push(U4(e))):e.i++}let o={type:t?"ordered-list":"unordered-list",children:n};if(t){let u=r.attrs?.find(([a])=>a==="start");u&&(o.props={start:parseInt(u[1],10)}),n.length>1&&i.size===1&&(o.meta={...o.meta,sameNumbers:!0})}return o}function U4(e){let t=e.tokens[e.i],r=e.tokens[e.i+1]?.type==="paragraph_open"&&e.tokens[e.i+2]?.type==="inline"?e.tokens[e.i+2].content??"":"",n=Q4(e),i=/^\[[ xX]\](?:[ \t]|$)/.test(r)?H4(n):n,o=e.lineOf&&t?.map?e.lineOf(t.map[0]):void 0;return o!==void 0&&i.meta?.line===void 0&&(i.meta={...i.meta,line:o,endLine:Kp(e,t.map,t.type)??o}),i}function H4(e){let t=e.inline?.[0];if(!t||t.type!=="text"||t.bold||t.italic||t.strikethrough)return e;let r=/^\[([ xX])\](?:[ \t]+|$)/.exec(t.text);if(!r)return e;let n=t.text.slice(r[0].length),i=n?[{...t,text:n},...e.inline.slice(1)]:e.inline.slice(1);return{...e,inline:i,props:{...e.props??{},checked:r[1]!==" "}}}function Q4(e){e.i++;let t=[],r=1;for(;e.i<e.tokens.length&&r>0;){let n=e.tokens[e.i];if(n.type==="list_item_open"){r++;let o=Lr(e);o?Array.isArray(o)?t.push(...o):t.push(o):e.i++;continue}if(n.type==="list_item_close"){if(r--,e.i++,r===0)break;continue}let i=Lr(e);i?Array.isArray(i)?t.push(...i):t.push(i):e.i++}return t.length===1&&t[0].type==="paragraph"&&t[0].inline?{type:"list-item",inline:t[0].inline}:t.length>=2&&t[0].type==="paragraph"&&t[0].inline?{type:"list-item",inline:t[0].inline,children:t.slice(1)}:{type:"list-item",children:t}}function V4(e){e.i++;let t=[];for(;e.i<e.tokens.length;){if(e.tokens[e.i].type==="blockquote_close"){e.i++;break}let n=Lr(e);n?Array.isArray(n)?t.push(...n):t.push(n):e.i++}let r=t[0];if(r?.type==="paragraph"&&r.inline){let n=P4(r.inline);if(n){let{type:i,rest:o}=n,u=o.length>0?{type:"paragraph",inline:o}:null,a=[...u?[u]:[],...t.slice(1)];return{type:"callout",props:{type:i.toLowerCase()},children:a}}}return{type:"blockquote",children:t}}function P4(e){if(e.length===0||e[0].type!=="text")return null;let t=e[0].text.match(/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*\n?/);if(!t)return null;let r=t[1],n=[{...e[0],text:e[0].text.slice(t[0].length)},...e.slice(1)].filter(i=>!(i.type==="text"&&i.text===""));for(;n.length>0&&n[0].type==="text"&&n[0].text.trim()==="";)n.shift();return n.length>0&&n[0].type==="text"&&(n[0]={...n[0],text:n[0].text.replace(/^\s+/,"")}),{type:r,rest:n}}function G4(e){let t=e.tokens[e.i];e.i++;let r=t.info.trim(),[n,...i]=r.split(/\s+/),o=i.join(" "),u={};n&&(u.language=n);let a=o.match(/title\s*=\s*"([^"]*)"/);if(a&&(u.title=a[1]),t.attrs)for(let[l,s]of t.attrs)s===""&&/^[\d,\-\s]+$/.test(l)?u.highlights=l:l==="class"?u.class=s:l==="id"?u.id=s:u[l]=s===""?!0:s;return{type:"code",props:u,html:t.content.replace(/\n$/,"")}}function Z4(e){let t=e.tokens[e.i];e.i++;let r=t.content.match(/^<details[^>]*>\s*<summary[^>]*>([\s\S]*?)<\/summary>\s*([\s\S]*?)<\/details>\s*$/);if(r){let n=r[1].trim(),i=r[2].trim();return{type:"details",props:{title:n},children:[{type:"html-container",html:i}]}}return{type:"html",html:t.content}}function Y4(e){let t=e.tokens[e.i];e.i++;let r=[];for(;e.i<e.tokens.length;){let i=e.tokens[e.i];if(i.type==="table_close"){e.i++;break}i.type==="thead_open"?r.push(T0(e,"thead","thead_close")):i.type==="tbody_open"?r.push(T0(e,"tbody","tbody_close")):e.i++}let n={type:"table",children:r};if(t.attrs&&t.attrs.length>0){let i={};for(let[o,u]of t.attrs)i[o]=u;n.props=i}return n}function T0(e,t,r){e.i++;let n=[];for(;e.i<e.tokens.length;){let i=e.tokens[e.i];if(i.type===r){e.i++;break}i.type==="tr_open"?n.push(X4(e)):e.i++}return{type:t,children:n}}function J4(e){let t=e.attrs?.find(([n])=>n==="style")?.[1]??"",r=/text-align\s*:\s*(left|center|right)/i.exec(t);return r?r[1].toLowerCase():void 0}function X4(e){e.i++;let t=[];for(;e.i<e.tokens.length;){let r=e.tokens[e.i];if(r.type==="tr_close"){e.i++;break}if(r.type==="th_open"||r.type==="td_open"){let n=r.type==="th_open"?"th":"td",i=r.type==="th_open"?"th_close":"td_close",o=J4(r);e.i++;let u=e.tokens[e.i],a=u?.children?Jt(u.children):[];for(e.i++;e.i<e.tokens.length&&e.tokens[e.i].type!==i;)e.i++;e.i<e.tokens.length&&e.i++,t.push(o?{type:n,inline:a,props:{align:o}}:{type:n,inline:a})}else e.i++}return{type:"tr",children:t}}function ew(e){e.i++;let t=[];for(;e.i<e.tokens.length;){let r=e.tokens[e.i];if(r.type==="dl_close"){e.i++;break}if(r.type==="dt_open"){e.i++;let n=e.tokens[e.i],i=n?.children?Jt(n.children):[];for(e.i++;e.i<e.tokens.length&&e.tokens[e.i].type!=="dt_close";)e.i++;e.i<e.tokens.length&&e.i++,t.push({type:"dt",inline:i})}else if(r.type==="dd_open"){e.i++;let n=[];for(;e.i<e.tokens.length&&e.tokens[e.i].type!=="dd_close";){let i=Lr(e);i?Array.isArray(i)?n.push(...i):n.push(i):e.i++}e.i<e.tokens.length&&e.i++,t.push({type:"dd",children:n})}else e.i++}return{type:"deflist",children:t}}function tw(e){let t=e.tokens[e.i],r=t.type.replace(/^container_/,"").replace(/_open$/,""),n=r===xr?/^[A-Za-z][\w-]*/.exec((t.info??"").trim())?.[0]??r:r,i=Ja(t),o=(t.info??"").trim().slice(n.length).trim();if(o.startsWith("[")&&i.props.title===void 0){let h=o.lastIndexOf("]");h>1&&(i.props.title=o.slice(1,h))}else if(r!==xr&&i.props.title===void 0&&o&&!o.startsWith("{")&&Va[n]?.includes("title")){let h=o.replace(/\{[\s\S]*\}\s*$/,"").replace(/\s*:{3,}\s*$/,"").trim();h&&(i.props.title=h)}e.i++;let u=[],a=`container_${r}_close`,l="";for(;e.i<e.tokens.length;){let h=e.tokens[e.i];if(h.type===a){l=h.info??"",e.i++;break}let f=Lr(e);f?Array.isArray(f)?u.push(...f):u.push(f):e.i++}if(n==="math"&&r!==xr)return{type:"math-block",props:{latex:t.map&&e.lines?Up(e.lines,t.map):u.map(Hp).join(`
|
|
3375
|
+
`));return}catch(n){let i=n;return{line:Math.min(Math.max(i.mark?.line??0,0),r-t-1),message:i.reason??"it is not YAML"}}}}function Rp(e){let t=Op().parseInline(e,{});return t.length===0?[]:Jt(t[0].children??[])}var I4;function Op(){return I4??=T4()}function T4(){let e=new wo({html:!0});return e.use(Z3.default,{leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]}),e.use(Y3),e.use(uk),e.use(Q6),e.use(o6),e.use(P6),e.use(m6),e.use(J6),e.core.ruler.push("dogsbay_attr_unescape",t=>{let r=n=>{for(let i of n){for(let o of i.attrs??[])!((i.type==="link_open"||i.type==="image")&&["href","src","title","alt"].includes(o[0]))&&typeof o[1]=="string"&&(o[1]=o[1].replace(/\\(["\\])/g,"$1"));i.children&&r(i.children)}};r(t.tokens)}),e}function L4(e,t){let r=t.split(/\r\n|\r|\n/);for(let n=0;n<e.length;n++){if(e[n].type!=="table_close")continue;let i=n-1;for(;i>=0&&e[i].type!=="table_open";)i--;if(e[n-1]?.type!=="tbody_close"||e[n-2]?.type!=="tr_close")continue;let o=n-2;for(;o>i&&e[o].type!=="tr_open";)o--;let u=e[o].map;if(!u||/^[\s>]*\|/.test(r[u[0]]??""))continue;let a=e.slice(o+1,n-2),l=a.filter(f=>f.type==="inline"),s=a[0];if(!s?.attrs?.length||!/^\{[^{}]*\}$/.test((l[0]?.content??"").trim())||l.slice(1).some(f=>f.content.trim()!==""))continue;let c=new Map((e[i].attrs??[]).map(([f,g])=>[f,g]));for(let[f,g]of s.attrs)c.set(f,f==="class"&&c.has("class")?`${c.get("class")} ${g}`:g);e[i].attrs=[...c];let p=e[o-1]?.type==="tbody_open",h=p?o-1:o;e.splice(h,(p?n:n-1)-h),n=h}}function M4(e,t){let r=t.split(/\r\n|\r|\n/);e.forEach((n,i)=>{if(n.type!=="list_item_open"||!n.attrs?.length)return;if(e[i+1]?.type==="heading_open"){let c=e[i+1];c.attrs=[...c.attrs??[],...n.attrs],n.attrs=null;return}if(e[i+1]?.type!=="paragraph_open")return;let o=e.slice(i+1).find(c=>c.type==="inline"||c.type==="list_item_open"||c.type==="list_item_close"),u=o?.map;if(o?.type!=="inline"||!u)return;let a=/\s*\{[^{}]*\}[ \t]*$/.exec(r[u[1]-1]??""),l=[...o.children??[]].reverse().find(c=>c.type==="text");if(!a||!l)return;let s=a[0].trimEnd();l.content=l.content.trimEnd()+s,o.content=o.content.trimEnd()+s,n.attrs=null})}function N4(e,t){let r=t.split(/\r\n|\r|\n/),n=`container_${xr}_open`;for(let i of e){let o=i.map;i.type!==n||!o||_p(r[o[1]],(i.markup??":::").length)||(i.meta={...i.meta??{},unclosed:!0})}}function z4(e,t,r,n,i){let o=[],u={tokens:e,i:0,...t?{lineOf:t}:{},...i?{endOf:i}:{},...r?{lines:r}:{},...n?{written:n}:{}};for(;u.i<u.tokens.length;){let a=Lr(u);a?Array.isArray(a)?o.push(...a):o.push(a):u.i++}return o}function Lr(e){let t=e.tokens[e.i],r=j4(e),n=e.lineOf&&t?.map?e.lineOf(t.map[0]):void 0;if(n!==void 0&&r){let i=t.meta,o=i?.unclosed?void 0:i?.closerLine,u=(typeof o=="number"?e.lineOf(o):void 0)??Kp(e,t.map,t.type)??n;for(let a of Array.isArray(r)?r:[r])a.meta?.line===void 0&&(a.meta={...a.meta,line:n,endLine:u})}return r}function Kp(e,t,r){let n=r==="html_block"||r==="code_block"||r==="fence"||r==="blockquote_open"?/^\s*$/:/^[\s>]*$/,i=r==="list_item_open"?/^(?:> ?)*\{[^{}]*\}\s*$/:void 0;for(let o=t[1]-1;o>=t[0];o--){if(o>t[0]&&e.lines&&(n.test(e.lines[o]??"")||i?.test(e.lines[o]??"")))continue;let u=(e.endOf??e.lineOf)(o);if(u!==void 0)return u}}function qp(e){for(let t of e)typeof t.meta?.line=="number"&&t.meta.endLine===void 0&&(t.meta={...t.meta,endLine:t.meta.line}),t.children&&qp(t.children)}function Wp(e,t){for(let r of e){let n=r.meta?.line;if(typeof n=="number"){let i=typeof r.meta?.endLine=="number"?r.meta.endLine:n,o=Jy(t.slice(n-1,i));o&&(r.meta={...r.meta,source:o})}r.children&&Wp(r.children,t)}}function j4(e){let t=e.tokens[e.i];if(!t)return null;if(t.type.startsWith("container_")&&t.type.endsWith("_open"))return tw(e);switch(t.type){case"heading_open":return q4(e);case"paragraph_open":return W4(e);case"bullet_list_open":return I0(e,!1);case"ordered_list_open":return I0(e,!0);case"blockquote_open":return V4(e);case"fence":case"code_block":return G4(e);case"hr":return e.i++,{type:"hr"};case"html_block":return Z4(e);case"table_open":return Y4(e);case"dl_open":return ew(e);case"front_matter":return e.i++,null;case"dogsbay_block_leaf_directive":return K4(e);case"math_block":return e.i++,{type:"math-block",props:{latex:t.content}};case"footnote_block_open":return R4(e);default:return null}}function R4(e){e.i++;let t=[];for(;e.i<e.tokens.length;){let r=e.tokens[e.i];if(r.type==="footnote_block_close"){e.i++;break}r.type==="footnote_open"?t.push(O4(e)):e.i++}return{type:"footnote-list",children:t}}function O4(e){let t=e.tokens[e.i].meta??{},r=t.label??String((t.id??0)+1);e.i++;let n=e.i;for(;n<e.tokens.length&&e.tokens[n].type!=="footnote_close";)n++;if(e.tokens.slice(e.i,n).some(u=>u.nesting===1&&u.type!=="paragraph_open"||u.type==="fence"||u.type==="code_block")){let u=[];for(;e.i<n;){let a=Lr(e);Array.isArray(a)?u.push(...a):a?u.push(a):e.i++}return e.i=n+1,{type:"footnote-def",props:{id:`fn-${r}`,backrefId:`fnref-${r}`,label:r},children:u}}let i=[],o=!0;for(;e.i<e.tokens.length;){let u=e.tokens[e.i];if(u.type==="footnote_close"){e.i++;break}if(u.type==="paragraph_open"){o||i.push({type:"break"}),o=!1,e.i++;continue}if(u.type==="paragraph_close"){e.i++;continue}if(u.type==="inline"&&u.children){i.push(...Jt(u.children)),e.i++;continue}if(u.type==="footnote_anchor"){e.i++;continue}e.i++}return{type:"footnote-def",props:{id:`fn-${r}`,backrefId:`fnref-${r}`,label:r},inline:i}}function K4(e){let t=e.tokens[e.i];e.i++;let r=t.tag,n=t.info?JSON.parse(t.info):void 0;return Vp(r,n,[])}function q4(e){let t=e.tokens[e.i],r=parseInt(t.tag.slice(1),10);e.i++;let n=e.tokens[e.i],i=n?.children?Jt(n.children):[];e.i++,e.i++;let o={type:"heading",props:{level:r},inline:i},u=Ja(t);u.id&&(o.props||(o.props={level:r}),o.props.slug=u.id),u.classes.length>0&&(o.props.class=u.classes.join(" "));for(let[a,l]of Object.entries(u.props))o.props[a]=l;return o}function W4(e){let t=e.tokens[e.i];e.i++;let r=e.tokens[e.i],n=[];if(r?.children&&(n=Jt(r.children)),e.i++,e.tokens[e.i]?.type==="paragraph_close"&&e.i++,n.length===0)return null;let i={type:"paragraph",inline:n},o=Ja(t);if(o){let u=Pa(o);Object.keys(u).length>0&&(i.props=u)}return i}function I0(e,t){let r=e.tokens[e.i];e.i++;let n=[],i=new Set;for(;e.i<e.tokens.length;){let u=e.tokens[e.i];if(u.type===(t?"ordered_list_close":"bullet_list_close")){e.i++;break}u.type==="list_item_open"?(t&&i.add(u.info),n.push(U4(e))):e.i++}let o={type:t?"ordered-list":"unordered-list",children:n};if(t){let u=r.attrs?.find(([a])=>a==="start");u&&(o.props={start:parseInt(u[1],10)}),n.length>1&&i.size===1&&(o.meta={...o.meta,sameNumbers:!0})}return o}function U4(e){let t=e.tokens[e.i],r=e.tokens[e.i+1]?.type==="paragraph_open"&&e.tokens[e.i+2]?.type==="inline"?e.tokens[e.i+2].content??"":"",n=Q4(e),i=/^\[[ xX]\](?:[ \t]|$)/.test(r)?H4(n):n,o=e.lineOf&&t?.map?e.lineOf(t.map[0]):void 0;return o!==void 0&&i.meta?.line===void 0&&(i.meta={...i.meta,line:o,endLine:Kp(e,t.map,t.type)??o}),i}function H4(e){let t=e.inline?.[0];if(!t||t.type!=="text"||t.bold||t.italic||t.strikethrough)return e;let r=/^\[([ xX])\](?:[ \t]+|$)/.exec(t.text);if(!r)return e;let n=t.text.slice(r[0].length),i=n?[{...t,text:n},...e.inline.slice(1)]:e.inline.slice(1);return{...e,inline:i,props:{...e.props??{},checked:r[1]!==" "}}}function Q4(e){e.i++;let t=[],r=1;for(;e.i<e.tokens.length&&r>0;){let n=e.tokens[e.i];if(n.type==="list_item_open"){r++;let o=Lr(e);o?Array.isArray(o)?t.push(...o):t.push(o):e.i++;continue}if(n.type==="list_item_close"){if(r--,e.i++,r===0)break;continue}let i=Lr(e);i?Array.isArray(i)?t.push(...i):t.push(i):e.i++}return t.length===1&&t[0].type==="paragraph"&&t[0].inline?{type:"list-item",inline:t[0].inline}:t.length>=2&&t[0].type==="paragraph"&&t[0].inline?{type:"list-item",inline:t[0].inline,children:t.slice(1)}:{type:"list-item",children:t}}function V4(e){e.i++;let t=[];for(;e.i<e.tokens.length;){if(e.tokens[e.i].type==="blockquote_close"){e.i++;break}let n=Lr(e);n?Array.isArray(n)?t.push(...n):t.push(n):e.i++}let r=t[0];if(r?.type==="paragraph"&&r.inline){let n=P4(r.inline);if(n){let{type:i,rest:o}=n,u=o.length>0?{type:"paragraph",inline:o}:null,a=[...u?[u]:[],...t.slice(1)];return{type:"callout",props:{type:i.toLowerCase()},children:a}}}return{type:"blockquote",children:t}}function P4(e){if(e.length===0||e[0].type!=="text")return null;let t=e[0].text.match(/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*\n?/);if(!t)return null;let r=t[1],n=[{...e[0],text:e[0].text.slice(t[0].length)},...e.slice(1)].filter(i=>!(i.type==="text"&&i.text===""));for(;n.length>0&&n[0].type==="text"&&n[0].text.trim()==="";)n.shift();return n.length>0&&n[0].type==="text"&&(n[0]={...n[0],text:n[0].text.replace(/^\s+/,"")}),{type:r,rest:n}}function G4(e){let t=e.tokens[e.i];e.i++;let r=t.info.trim(),[n,...i]=r.split(/\s+/),o=i.join(" "),u={};n&&(u.language=n);let a=o.match(/title\s*=\s*"([^"]*)"/);if(a&&(u.title=a[1]),t.attrs)for(let[l,s]of t.attrs)s===""&&/^[\d,\-\s]+$/.test(l)?u.highlights=l:l==="class"?u.class=s:l==="id"?u.id=s:u[l]=s===""?!0:s;return{type:"code",props:u,html:t.content.replace(/\n$/,"")}}function Z4(e){let t=e.tokens[e.i];e.i++;let r=t.content.match(/^<details[^>]*>\s*<summary[^>]*>([\s\S]*?)<\/summary>\s*([\s\S]*?)<\/details>\s*$/);if(r){let n=r[1].trim(),i=r[2].trim();return{type:"details",props:{title:n},children:[{type:"html-container",html:i}]}}return{type:"html",html:t.content}}function Y4(e){let t=e.tokens[e.i];e.i++;let r=[];for(;e.i<e.tokens.length;){let i=e.tokens[e.i];if(i.type==="table_close"){e.i++;break}i.type==="thead_open"?r.push(T0(e,"thead","thead_close")):i.type==="tbody_open"?r.push(T0(e,"tbody","tbody_close")):e.i++}let n={type:"table",children:r};if(t.attrs&&t.attrs.length>0){let i={};for(let[o,u]of t.attrs)i[o]=u;n.props=i}return n}function T0(e,t,r){e.i++;let n=[];for(;e.i<e.tokens.length;){let i=e.tokens[e.i];if(i.type===r){e.i++;break}i.type==="tr_open"?n.push(X4(e)):e.i++}return{type:t,children:n}}function J4(e){let t=e.attrs?.find(([n])=>n==="style")?.[1]??"",r=/text-align\s*:\s*(left|center|right)/i.exec(t);return r?r[1].toLowerCase():void 0}function X4(e){e.i++;let t=[];for(;e.i<e.tokens.length;){let r=e.tokens[e.i];if(r.type==="tr_close"){e.i++;break}if(r.type==="th_open"||r.type==="td_open"){let n=r.type==="th_open"?"th":"td",i=r.type==="th_open"?"th_close":"td_close",o=J4(r);e.i++;let u=e.tokens[e.i],a=u?.children?Jt(u.children):[];for(e.i++;e.i<e.tokens.length&&e.tokens[e.i].type!==i;)e.i++;e.i<e.tokens.length&&e.i++,t.push(o?{type:n,inline:a,props:{align:o}}:{type:n,inline:a})}else e.i++}return{type:"tr",children:t}}function ew(e){e.i++;let t=[];for(;e.i<e.tokens.length;){let r=e.tokens[e.i];if(r.type==="dl_close"){e.i++;break}if(r.type==="dt_open"){e.i++;let n=e.tokens[e.i],i=n?.children?Jt(n.children):[];for(e.i++;e.i<e.tokens.length&&e.tokens[e.i].type!=="dt_close";)e.i++;e.i<e.tokens.length&&e.i++,t.push({type:"dt",inline:i})}else if(r.type==="dd_open"){e.i++;let n=[];for(;e.i<e.tokens.length&&e.tokens[e.i].type!=="dd_close";){let i=Lr(e);i?Array.isArray(i)?n.push(...i):n.push(i):e.i++}e.i<e.tokens.length&&e.i++,t.push({type:"dd",children:n})}else e.i++}return{type:"deflist",children:t}}function tw(e){let t=e.tokens[e.i],r=t.type.replace(/^container_/,"").replace(/_open$/,""),n=r===xr?/^[A-Za-z][\w-]*/.exec((t.info??"").trim())?.[0]??r:r,i=Ja(t),o=(t.info??"").trim().slice(n.length).trim();if(o.startsWith("[")&&i.props.title===void 0){let h=o.lastIndexOf("]");h>1&&(i.props.title=o.slice(1,h))}else if(r!==xr&&i.props.title===void 0&&o&&!o.startsWith("{")&&Va[n]?.includes("title")){let h=o.replace(/\{[\s\S]*\}\s*$/,"").replace(/\s*:{3,}\s*$/,"").trim();h&&(i.props.title=h)}e.i++;let u=[],a=`container_${r}_close`,l="";for(;e.i<e.tokens.length;){let h=e.tokens[e.i];if(h.type===a){l=h.info??"",e.i++;break}let f=Lr(e);f?Array.isArray(f)?u.push(...f):u.push(f):e.i++}if(n==="math"&&r!==xr)return{type:"math-block",props:{latex:t.map&&e.lines?Up(e.lines,t.map):u.map(Hp).join(`
|
|
3376
3376
|
`)}};if(r===xr){if(t.meta?.unclosed){let g=e.lineOf&&t.map?e.lineOf(t.map[0]):void 0;return[{type:"paragraph",inline:[{type:"text",text:(t.markup??":::")+(t.info??"")}],...g!==void 0?{meta:{line:g,endLine:e.endOf?.(t.map[0])??g}}:{}},...u]}let h=o.startsWith("[")?"":o.replace(/\{[\s\S]*\}\s*$/,"").replace(/\s*:{3,}\s*$/,"").trim(),f=i?Pa(i):{};return Qp(f),{type:"container",props:f,children:u,meta:{container:!0,name:n,...h?{title:h}:{},...l?{closer:l}:{}}}}let s=Vp(n,i,u),c=!Array.isArray(s)&&s.meta?.sourcePinned===!0,p=n==="example"&&!Array.isArray(s)&&!c?nw(e,t):void 0;return p!==void 0&&!Array.isArray(s)&&(s.props={...s.props,source:p}),l&&!Array.isArray(s)?{...s,meta:{...s.meta??{},closer:l}}:s}function Up(e,t){let r=e[t[0]]??"",n=r.search(/:{3,}/),i=n>0?r.slice(0,n):"",o=e.slice(t[0]+1,Math.min(t[1],e.length)).map(u=>rw(u,i));for(;o.length&&o[0].trim()==="";)o.shift();for(;o.length&&o[o.length-1].trim()==="";)o.pop();return o.join(`
|
|
3377
3377
|
`)}function rw(e,t){let r=0;for(let n=0;n<t.length&&r<e.length;n++)if(t[n]===">"){if(e[r]!==">")break;r++}else if(e[r]===" "||e[r]===" ")r++;else break;return e.slice(r)}function nw(e,t){let r=t.map;if(!e.written||!r||!e.lines)return;let n=e.written.at(r[0]),i=r[1]>=e.lines.length?e.written.lines.length:e.written.at(r[1]);if(n===void 0||i===void 0||i<=n)return;let o=Up(e.written.lines,[n,i]);if(t.attrs?.some(([u])=>u==="__yaml__")){let u=o.split(`
|
|
3378
3378
|
`),a=u[0]==="---"?u.indexOf("---",1):-1;a>0&&(o=u.slice(a+1).join(`
|
|
3379
3379
|
`).replace(/^(\s*\n)+/,""))}return o?`${o}
|
|
3380
3380
|
`:void 0}function Hp(e){let t=e.inline;return t?t.map(r=>r.text??r.latex??"").join(""):(e.children??[]).map(Hp).join(`
|
|
3381
|
-
`)}function Qp(e){if(typeof e.__yaml__!="string")return;let t=e.__yaml__;delete e.__yaml__;try{let r=decodeURIComponent(t),n=dn(r);if(n&&typeof n=="object"&&!Array.isArray(n)&&So(n,no)<=no)for(let[i,o]of Object.entries(n))e[i]=o}catch{}}function Vp(e,t,r){let n=t?Pa(t):{};Qp(n);let i=new Set(["note","tip","info","important","warning","caution","danger","success","hint","attention","error","failure","bug","question","abstract","quote","callout"]);if(e==="math"&&typeof n.latex=="string"&&r.length===0)return{type:"math-block",props:{latex:n.latex}};if(i.has(e)){let o={...n};return e!=="callout"&&(o.type=e),{type:"callout",props:o,children:r}}if(e==="tabs")return aw(n,r);if(e==="steps")return lw(n,r);if(e==="cards")return sw(n,r);if(e==="grid")return{type:"grid",props:n,children:r};if(e==="grid-item")return{type:"grid-item",props:n,children:r};if(e==="details")return{type:"details",props:n,children:r};if(e==="youtube")return{type:"youtube",props:n};if(e==="button")return{type:"link-button",props:n,children:r};if(e==="example"){let o=mA(n[Ou]);if(o!==void 0){let{[Ou]:a,...l}=n;return{type:"example",props:{...l,source:o},children:r,meta:{sourcePinned:!0}}}let u=Sp(r);return{type:"example",props:{...n,source:u},children:r}}return e==="accordion"?iw(n,r):e==="accordion-item"?{type:"accordion-item",props:n,children:r}:e==="link-card"?uw(n,r):e==="child-links"?{type:"child-links",props:n}:e==="avatar"?{type:"avatar",props:n}:e==="autodoc"?{type:"autodoc-ref",props:n,children:r}:e==="openapi"?{type:"openapi-ref",props:n,children:r}:{type:e,props:n,children:r}}function iw(e,t){if(t.length===1&&t[0].type==="deflist"){let r=t[0],n=[],i=r.children??[],o=new Set,u=1;for(let a=0;a<i.length;a++)if(i[a].type==="dt"){let l=Ar(i[a].inline??[]),s=i[a+1]?.type==="dd"?i[a+1]:null;if(s){let c=ow(l,o,()=>`item-${u++}`);o.add(c),n.push({type:"accordion-item",props:{value:c,label:l},children:s.children??[]}),a++}}return{type:"accordion",props:e,children:n}}return{type:"accordion",props:e,children:t}}function ow(e,t,r){let n=e.toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-");if(!n)return r();if(!t.has(n))return n;let i=2;for(;t.has(`${n}-${i}`);)i++;return`${n}-${i}`}function uw(e,t){if(t.length===1&&t[0].type==="paragraph"){let r=t[0];if(r.inline&&r.inline.length>0){let n=Ar(r.inline).trim(),i={...e};return n&&!i.description&&(i.description=n),{type:"link-card",props:i}}}return{type:"link-card",props:e,children:t}}function aw(e,t){let r=t.filter(n=>n.type==="deflist");if(r.length===1&&!t.some(n=>n.type==="tab")){let n=r[0],i=[],o=n.children??[];for(let u=0;u<o.length;u++)if(o[u].type==="dt"){let a=Ar(o[u].inline??[]),l=o[u+1]?.type==="dd"?o[u+1]:null;l&&(i.push({type:"tab",props:{label:a},children:l.children??[]}),u++)}return{type:"tabs",props:e,children:t.flatMap(u=>u===n?i:[u])}}return{type:"tabs",props:e,children:t}}function Pp(e){let t=e.props?.checked;if(typeof t!="boolean")return e;let{checked:r,...n}=e.props,i=t?"[x] ":"[ ] ",o=e.inline??[],u=o[0],a=u&&u.type==="text"&&!u.bold&&!u.italic&&!u.strikethrough?[{...u,text:i+u.text},...o.slice(1)]:[{type:"text",text:i.trimEnd()+(o.length?" ":"")},...o],{props:l,...s}=e;return{...s,inline:a,...Object.keys(n).length?{props:n}:{}}}function lw(e,t){if(t.length===1&&t[0].type==="ordered-list"){let n=t[0],i=[];for(let o of n.children??[]){let u=Pp(o);u.type==="list-item"&&i.push({type:"step",inline:u.inline,children:u.children,...u.meta?{meta:u.meta}:{}})}return{type:"steps",props:e,children:i}}let r=t.filter(n=>n.type==="step");return r.length>0?{type:"steps",props:e,children:r}:{type:"steps",props:e,children:t}}function sw(e,t){if(t.length===1&&t[0].type==="unordered-list"){let n=t[0],i=[];for(let o of n.children??[]){let u=Pp(o);if(u.type==="list-item"){let a=cw(u);a&&i.push(a)}}if(i.length>0)return{type:"cards",props:e,children:i}}let r=t.filter(n=>n.type==="card");return r.length>0?{type:"cards",props:e,children:r}:{type:"cards",props:e,children:t}}function cw(e){let t=e.inline??[];if(t.length===0)return null;let r=0;for(;r<t.length;){let c=t[r];if(c.type==="text"&&c.text==="")r++;else break}let n=t[r];if(!n||n.type!=="link")return null;let i={title:Ar(n.children),href:n.href};for(let[c,p]of Object.entries(n.attrs??{}))c!=="title"&&c!=="href"&&(i[c]=p);let o=t.slice(r+1),{attrs:u,rest:a}=hw(o);for(let[c,p]of Object.entries(u))c!=="title"&&c!=="href"&&(i[c]=p);let l=pw(a),s=[...l.length?[{type:"paragraph",inline:l}]:[],...e.children??[]];if(s.length===1&&s[0].type==="paragraph"&&(s[0].inline??[]).every(dw)){let c=Ar(s[0].inline??[]).trim();return c&&(i.description=c),{type:"card",props:i}}return s.length?{type:"card",props:i,children:s}:{type:"card",props:i}}function dw(e){if(e.type!=="text")return!1;let t=e;return!t.bold&&!t.italic&&!t.strikethrough&&!t.attrs}function pw(e){let t=[...e],r=i=>!!i&&(i.type==="break"||i.type==="text"&&!i.text.trim());for(;r(t[0]);)t.shift();for(;r(t[t.length-1]);)t.pop();t[0]?.type==="text"&&(t[0]={...t[0],text:t[0].text.trimStart()});let n=t.length-1;return t[n]?.type==="text"&&(t[n]={...t[n],text:t[n].text.trimEnd()}),t}function hw(e){let t={},r=0;for(;r<e.length;){let n=e[r];if(n.type!=="text")break;let i=n.text.match(/^\s*\{([^}]+)\}\s*(.*)$/s);if(!i)break;let[,o,u]=i;if(fw(o,t),u.length>0){let a=e.slice(r+1);return{attrs:t,rest:[{type:"text",text:u},...a]}}r++}return{attrs:t,rest:e.slice(r)}}function fw(e,t){let r=/(\S+?)=("([^"]*)"|'([^']*)'|(\S+))|(\S+)/g,n;for(;(n=r.exec(e))!==null;){let i=n[1]??n[6];if(!i)continue;let o=n[3]??n[4]??n[5]??"true";t[i]=o}}function Ar(e){let t="";for(let r of e)r.type==="text"?t+=r.text:r.type==="link"||r.type==="highlight"?t+=Ar(r.children):r.type==="code"&&(t+=r.text);return t}function Ja(e){let t={classes:[],props:{}};if(!e.attrs)return t;for(let[r,n]of e.attrs)r==="id"?t.id=n:r==="class"?t.classes.push(...n.split(/\s+/).filter(Boolean)):t.props[r]=n;return t}function L0(e,t){if(!e||e.length===0)return;let r=new Set(t),n;for(let[i,o]of e)r.has(i)||(n||(n={}),n[i]=o);return n}function Jt(e,t=[]){let r=[],n=[...t],i=0;for(;i<e.length;){let o=e[i];switch(o.type){case"text":{r.push(M0(o.content,n));break}case"softbreak":{let u=r.length-1;for(;u>0&&r[u].type==="text"&&r[u].text==="";)u--;let a=r[u];a&&!n.includes("bold")&&gw(a)&&(a.lineEnd=!0),r.push(M0(" ",n));break}case"hardbreak":{r.push({type:"break"});break}case"strong_open":n.push("bold");break;case"strong_close":n.pop();break;case"em_open":n.push("italic");break;case"em_close":n.pop();break;case"s_open":n.push("strike");break;case"s_close":n.pop();break;case"code_inline":{let u=o.attrs?.some(([a])=>a==="minja")?{type:"code",text:o.content,minja:!0}:{type:"code",text:o.content};n.includes("bold")&&(u.bold=!0),n.includes("italic")&&(u.italic=!0),n.includes("strike")&&(u.strikethrough=!0),r.push(u);break}case"math_inline":{r.push({type:"math",latex:o.content});break}case"mark_open":{let u=[],a=1;for(i++;i<e.length;){if(e[i].type==="mark_open")a++;else if(e[i].type==="mark_close"&&--a===0)break;u.push(e[i]),i++}let l=Jt(u,n).filter(s=>s.type!=="text"||s.text!=="");r.push({type:"highlight",children:l});break}case"link_open":{let u=o.attrs?.find(([h])=>h==="href")?.[1]??"",a=o.attrs?.find(([h])=>h==="title")?.[1],l=L0(o.attrs,["href","title"]),s=[];for(i++;i<e.length&&e[i].type!=="link_close";)s.push(e[i]),i++;let c=Jt(s,n),p={type:"link",href:u,children:c};a&&(p.title=a),l&&(p.attrs=l),r.push(p);break}case"image":{let u=o.attrs?.find(([p])=>p==="src")?.[1]??"",a=o.content,l=o.attrs?.find(([p])=>p==="title")?.[1],s=L0(o.attrs,["src","alt","title"]),c={type:"image",src:u,alt:a};l&&(c.title=l),s&&(c.attrs=s),r.push(c);break}case"dogsbay_inline_directive_open":{let u=o.tag,a=o.info?JSON.parse(o.info):null,l=[];i++;let s=1;for(;i<e.length&&s>0;){let b=e[i];if(b.type==="dogsbay_inline_directive_open")s++;else if(b.type==="dogsbay_inline_directive_close"&&(s--,s===0))break;l.push(b),i++}let c=Jt(l),p=Ar(c),h=o.meta,f=h?.labelless===!0,g=h?.literal&&h.source?{type:"text",text:h.source}:z0(u,p,c,a,f);f&&h?.source&&(g?.type==="html-inline"&&g.html.startsWith(`:${u}[]`)||g?.type==="text"&&g.text.startsWith(`:${u}{`))&&(g={type:"text",text:h.source}),g&&r.push(g);break}case"dogsbay_literal":{r.push({type:"text",text:o.content});break}case"dogsbay_leaf_directive":{let u=o.tag,a=o.info?JSON.parse(o.info):null,l=z0(u,"",[],a,!!dr[u]);dr[u]&&l?.type==="text"&&l.text.startsWith(`:${u}{`)&&(l.text=`:${l.text}`),l?.type==="html-inline"&&l.html.startsWith(`:${u}[]`)&&(l.html=`::${u}${l.html.slice(u.length+3)}`),l&&r.push(l);break}case"html_inline":{r.push({type:"html-inline",html:o.content});break}case"footnote_ref":{let u=o.meta??{},a=u.label??String((u.id??0)+1);r.push({type:"footnote-ref",label:a});break}default:break}i++}return mw(r)}function mw(e){if(e.length<2)return e;let t=[];for(let r of e){let n=t[t.length-1];r.type==="text"&&n&&n.type==="text"&&!!n.bold==!!r.bold&&!!n.italic==!!r.italic&&!!n.strikethrough==!!r.strikethrough?t[t.length-1]={...n,text:n.text+r.text,...r.lineEnd?{lineEnd:!0}:{}}:t.push(r)}return t}function gw(e){if(e.type==="text")return e.bold===!0&&e.text!=="";if(e.type!=="link")return!1;let t=(e.children??[]).filter(r=>r.type==="text");return t.length>0&&t.every(r=>r.type==="text"&&r.bold===!0)}function M0(e,t){let r={type:"text",text:e};return t.includes("bold")&&(r.bold=!0),t.includes("italic")&&(r.italic=!0),t.includes("strike")&&(r.strikethrough=!0),r}function N0(e,t){let r={};e?.id&&(r.id=e.id),e?.classes.length&&(r.class=e.classes.join(" "));for(let[n,i]of Object.entries(t))r[n]=i===!0?"":String(i);return Object.keys(r).length?r:void 0}function z0(e,t,r,n,i=!1){let o=dr[e];if(i&&o)if(n&&typeof n.props[o]=="string"){t=n.props[o],r=[{type:"text",text:t}];let{[o]:u,...a}=n.props;n={...n,props:a}}else{let u=n?et({id:n.id,classes:n.classes,props:n.props}).trim():"";return{type:"text",text:`:${e}${u||"{}"}`}}switch(e){case"kbd":return{type:"kbd",keys:t.split(/\s*\+\s*/).filter(Boolean)};case"icon":{let[u,...a]=t.split(":");return a.length===0?{type:"icon",name:u}:{type:"icon",name:a.join(":"),library:u}}case"math":return{type:"math",latex:t};case"mark":case"highlight":return{type:"highlight",children:[{type:"text",text:t}]};case"button":{let{href:u,variant:a,...l}=n?.props??{},s={type:"link",href:typeof u=="string"?u:"",button:typeof a=="string"?{variant:a}:{},children:r.some(p=>p.type!=="text"||p.text)?r.filter(p=>p.type!=="text"||p.text):[{type:"text",text:t}]},c=N0(n,l);return c&&(s.attrs=c),s}case"badge":{let{variant:u,...a}=n?.props??{},l={type:"badge",text:t};typeof u=="string"&&(l.variant=u);let s=N0(n,a);return s&&(l.attrs=s),l}default:{let u=n?et({id:n.id,classes:n.classes,props:n.props}).trim():"";return{type:"html-inline",html:`:${e}[${tt(r)}]${u}`}}}}var it=e=>`Callout: ${e}. \`title\`, \`collapsed\` for a fold`,a8={tabs:"Tab group; each `:::tab[Label]` is one tab. `syncKey` syncs groups across the site",tab:"One tab of a `:::tabs` group, named by its label",steps:"Numbered procedure; each `:::step[Title]` is one step",step:"One step of a `:::steps` procedure",cards:"Card grid; `:::card` children, or a list of links. `cols` sets the columns",card:"Card with a title, optional `href`, `icon` and `image`","link-card":"Card that is one link: `href`, `title`, `description`",grid:"Layout grid of `::grid-item` cells. `cols`, `gap`","grid-item":"One cell of a `:::grid`; `span`, `rowSpan`",details:"Collapsible section; the label is the summary. `open` starts expanded",callout:"Callout of a given `type` (note, tip, warning, \u2026)",note:it("note"),tip:it("tip"),info:it("info"),important:it("important"),warning:it("warning"),caution:it("caution"),danger:it("danger"),success:it("success"),hint:it("hint"),attention:it("attention"),error:it("error"),failure:it("failure"),bug:it("bug"),question:it("question"),abstract:it("abstract"),quote:it("quote"),button:"Link styled as a button: `href`, `variant`, `size`",figure:"Image or content with a `caption`",math:'Display math: the LaTeX as its body, or `::math{latex="\u2026"}`; same as `$$\u2026$$`',"api-endpoint":"API operation card (method, path, description)","api-params":"API parameter table","api-response":"API response with status and schema",config:"Configuration reference block",files:"File tree, from a nested list",example:"Example: rendered output beside its source",accordion:"Accordion; `:::accordion-item` children. `type` single or multiple","accordion-item":"One fold of an `:::accordion`, titled by its label",autodoc:"Python API reference generated from source at build time","api-class":"Generated API reference: a class","api-member":"Generated API reference: a member","api-doc":"Generated API reference: a docstring","api-source":"Generated API reference: source code",youtube:'YouTube video, loaded on click: `::youtube{#id title="\u2026"}`',openapi:'API reference from an OpenAPI spec: `spec="/path/openapi.yaml"`',theme:'Content in another theme\'s tokens: `name="dark"`',avatar:"Avatar image with a fallback: `src`, `alt`, `fallback`, `size`","child-links":"Links to this page's children in the menu; `depth`","data-table":"Table from a data file: `src`, `path` to a list in it, `columns`, `headers`, `links` (column=field), `code`","data-cards":"Cards from a data file: `src`, `path`; `title`, `description`, `href`, `icon` name its keys"},l8=sv.withTags($d),Aw=class extends Error{file;line;constructor(e,t,r){super(r?`${t}:${r}: ${e}`:`${t}: ${e}`),this.file=t,this.line=r,this.name="DataFileError"}},s8={maxFileBytes:8*1024*1024,maxTotalBytes:64*1024*1024,maxValues:1e6,maxDepth:64,maxRows:1e5,maxColumns:256,maxCellChars:64*1024},c8={maxFileBytes:1024*1024,maxTotalBytes:8*1024*1024,maxValues:1e5,maxDepth:32,maxRows:1e4,maxColumns:64,maxCellChars:8*1024},Gp="data files need a project: this page is rendered on its own, with no data folder to read",bw=/^((?:[ \t]*>)*[ \t]*(?::[ \t]+)?)::(data-table|data-cards)(\{.*\})?[ \t]*$/,j0=e=>e===void 0||/^[\s>]*$/.test(e);function kw(e){return e.includes("::data-")}async function vw(e,t){let r=[],n=[];if(!kw(e))return{text:e,reads:r,problems:n,map:V6(e.split(`
|
|
3381
|
+
`)}function Qp(e){if(typeof e.__yaml__!="string")return;let t=e.__yaml__;delete e.__yaml__;try{let r=decodeURIComponent(t),n=dn(r);if(n&&typeof n=="object"&&!Array.isArray(n)&&So(n,no)<=no)for(let[i,o]of Object.entries(n))e[i]=o}catch{}}function Vp(e,t,r){let n=t?Pa(t):{};Qp(n);let i=new Set(["note","tip","info","important","warning","caution","danger","success","hint","attention","error","failure","bug","question","abstract","quote","callout"]);if(e==="math"&&typeof n.latex=="string"&&r.length===0)return{type:"math-block",props:{latex:n.latex}};if(i.has(e)){let o={...n};return e!=="callout"&&(o.type=e),{type:"callout",props:o,children:r}}if(e==="tabs")return aw(n,r);if(e==="steps")return lw(n,r);if(e==="cards")return sw(n,r);if(e==="grid")return{type:"grid",props:n,children:r};if(e==="grid-item")return{type:"grid-item",props:n,children:r};if(e==="details")return{type:"details",props:n,children:r};if(e==="youtube")return{type:"youtube",props:n};if(e==="button")return{type:"link-button",props:n,children:r};if(e==="example"){let o=mA(n[Ou]);if(o!==void 0){let{[Ou]:a,...l}=n;return{type:"example",props:{...l,source:o},children:r,meta:{sourcePinned:!0}}}let u=Sp(r);return{type:"example",props:{...n,source:u},children:r}}return e==="accordion"?iw(n,r):e==="accordion-item"?{type:"accordion-item",props:n,children:r}:e==="link-card"?uw(n,r):e==="child-links"?{type:"child-links",props:n}:e==="avatar"?{type:"avatar",props:n}:e==="autodoc"?{type:"autodoc-ref",props:n,children:r}:e==="openapi"?{type:"openapi-ref",props:n,children:r}:{type:e,props:n,children:r}}function iw(e,t){if(t.length===1&&t[0].type==="deflist"){let r=t[0],n=[],i=r.children??[],o=new Set,u=1;for(let a=0;a<i.length;a++)if(i[a].type==="dt"){let l=Ar(i[a].inline??[]),s=i[a+1]?.type==="dd"?i[a+1]:null;if(s){let c=ow(l,o,()=>`item-${u++}`);o.add(c),n.push({type:"accordion-item",props:{value:c,label:l},children:s.children??[]}),a++}}return{type:"accordion",props:e,children:n}}return{type:"accordion",props:e,children:t}}function ow(e,t,r){let n=e.toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-");if(!n)return r();if(!t.has(n))return n;let i=2;for(;t.has(`${n}-${i}`);)i++;return`${n}-${i}`}function uw(e,t){if(t.length===1&&t[0].type==="paragraph"){let r=t[0];if(r.inline&&r.inline.length>0){let n=Ar(r.inline).trim(),i={...e};return n&&!i.description&&(i.description=n),{type:"link-card",props:i}}}return{type:"link-card",props:e,children:t}}function aw(e,t){let r=t.filter(n=>n.type==="deflist");if(r.length===1&&!t.some(n=>n.type==="tab")){let n=r[0],i=[],o=n.children??[];for(let u=0;u<o.length;u++)if(o[u].type==="dt"){let a=Ar(o[u].inline??[]),l=o[u+1]?.type==="dd"?o[u+1]:null;l&&(i.push({type:"tab",props:{label:a},children:l.children??[]}),u++)}return{type:"tabs",props:e,children:t.flatMap(u=>u===n?i:[u])}}return{type:"tabs",props:e,children:t}}function Pp(e){let t=e.props?.checked;if(typeof t!="boolean")return e;let{checked:r,...n}=e.props,i=t?"[x] ":"[ ] ",o=e.inline??[],u=o[0],a=u&&u.type==="text"&&!u.bold&&!u.italic&&!u.strikethrough?[{...u,text:i+u.text},...o.slice(1)]:[{type:"text",text:i.trimEnd()+(o.length?" ":"")},...o],{props:l,...s}=e;return{...s,inline:a,...Object.keys(n).length?{props:n}:{}}}function lw(e,t){if(t.length===1&&t[0].type==="ordered-list"){let n=t[0],i=[];for(let o of n.children??[]){let u=Pp(o);u.type==="list-item"&&i.push({type:"step",inline:u.inline,children:u.children,...u.meta?{meta:u.meta}:{}})}return{type:"steps",props:e,children:i}}let r=t.filter(n=>n.type==="step");return r.length>0?{type:"steps",props:e,children:r}:{type:"steps",props:e,children:t}}function sw(e,t){if(t.length===1&&t[0].type==="unordered-list"){let n=t[0],i=[];for(let o of n.children??[]){let u=Pp(o);if(u.type==="list-item"){let a=cw(u);a&&i.push(a)}}if(i.length>0)return{type:"cards",props:e,children:i}}let r=t.filter(n=>n.type==="card");return r.length>0?{type:"cards",props:e,children:r}:{type:"cards",props:e,children:t}}function cw(e){let t=e.inline??[];if(t.length===0)return null;let r=0;for(;r<t.length;){let c=t[r];if(c.type==="text"&&c.text==="")r++;else break}let n=t[r];if(!n||n.type!=="link")return null;let i={title:Ar(n.children),href:n.href};for(let[c,p]of Object.entries(n.attrs??{}))c!=="title"&&c!=="href"&&(i[c]=p);let o=t.slice(r+1),{attrs:u,rest:a}=hw(o);for(let[c,p]of Object.entries(u))c!=="title"&&c!=="href"&&(i[c]=p);let l=pw(a),s=[...l.length?[{type:"paragraph",inline:l}]:[],...e.children??[]];if(s.length===1&&s[0].type==="paragraph"&&(s[0].inline??[]).every(dw)){let c=Ar(s[0].inline??[]).trim();return c&&(i.description=c),{type:"card",props:i}}return s.length?{type:"card",props:i,children:s}:{type:"card",props:i}}function dw(e){if(e.type!=="text")return!1;let t=e;return!t.bold&&!t.italic&&!t.strikethrough&&!t.attrs}function pw(e){let t=[...e],r=i=>!!i&&(i.type==="break"||i.type==="text"&&!i.text.trim());for(;r(t[0]);)t.shift();for(;r(t[t.length-1]);)t.pop();t[0]?.type==="text"&&(t[0]={...t[0],text:t[0].text.trimStart()});let n=t.length-1;return t[n]?.type==="text"&&(t[n]={...t[n],text:t[n].text.trimEnd()}),t}function hw(e){let t={},r=0;for(;r<e.length;){let n=e[r];if(n.type!=="text")break;let i=n.text.match(/^\s*\{([^}]+)\}\s*(.*)$/s);if(!i)break;let[,o,u]=i;if(fw(o,t),u.length>0){let a=e.slice(r+1);return{attrs:t,rest:[{type:"text",text:u},...a]}}r++}return{attrs:t,rest:e.slice(r)}}function fw(e,t){let r=/(\S+?)=("([^"]*)"|'([^']*)'|(\S+))|(\S+)/g,n;for(;(n=r.exec(e))!==null;){let i=n[1]??n[6];if(!i)continue;let o=n[3]??n[4]??n[5]??"true";t[i]=o}}function Ar(e){let t="";for(let r of e)r.type==="text"?t+=r.text:r.type==="link"||r.type==="highlight"?t+=Ar(r.children):r.type==="code"&&(t+=r.text);return t}function Ja(e){let t={classes:[],props:{}};if(!e.attrs)return t;for(let[r,n]of e.attrs)r==="id"?t.id=n:r==="class"?t.classes.push(...n.split(/\s+/).filter(Boolean)):t.props[r]=n;return t}function L0(e,t){if(!e||e.length===0)return;let r=new Set(t),n;for(let[i,o]of e)r.has(i)||(n||(n={}),n[i]=o);return n}function Jt(e,t=[]){let r=[],n=[...t],i=0;for(;i<e.length;){let o=e[i];switch(o.type){case"text":{r.push(M0(o.content,n));break}case"softbreak":{let u=r.length-1;for(;u>0&&r[u].type==="text"&&r[u].text==="";)u--;let a=r[u];a&&!n.includes("bold")&&gw(a)&&(a.lineEnd=!0),r.push(M0(" ",n));break}case"hardbreak":{r.push({type:"break"});break}case"strong_open":n.push("bold");break;case"strong_close":n.pop();break;case"em_open":n.push("italic");break;case"em_close":n.pop();break;case"s_open":n.push("strike");break;case"s_close":n.pop();break;case"code_inline":{let u=o.attrs?.some(([a])=>a==="minja")?{type:"code",text:o.content,minja:!0}:{type:"code",text:o.content};n.includes("bold")&&(u.bold=!0),n.includes("italic")&&(u.italic=!0),n.includes("strike")&&(u.strikethrough=!0),r.push(u);break}case"math_inline":{r.push({type:"math",latex:o.content});break}case"mark_open":{let u=[],a=1;for(i++;i<e.length;){if(e[i].type==="mark_open")a++;else if(e[i].type==="mark_close"&&--a===0)break;u.push(e[i]),i++}let l=Jt(u,n).filter(s=>s.type!=="text"||s.text!=="");r.push({type:"highlight",children:l});break}case"link_open":{let u=o.attrs?.find(([h])=>h==="href")?.[1]??"",a=o.attrs?.find(([h])=>h==="title")?.[1],l=L0(o.attrs,["href","title"]),s=[];for(i++;i<e.length&&e[i].type!=="link_close";)s.push(e[i]),i++;let c=Jt(s,n),p={type:"link",href:u,children:c};a&&(p.title=a),l&&(p.attrs=l),r.push(p);break}case"image":{let u=o.attrs?.find(([p])=>p==="src")?.[1]??"",a=o.content,l=o.attrs?.find(([p])=>p==="title")?.[1],s=L0(o.attrs,["src","alt","title"]),c={type:"image",src:u,alt:a};l&&(c.title=l),s&&(c.attrs=s),r.push(c);break}case"dogsbay_inline_directive_open":{let u=o.tag,a=o.info?JSON.parse(o.info):null,l=[];i++;let s=1;for(;i<e.length&&s>0;){let b=e[i];if(b.type==="dogsbay_inline_directive_open")s++;else if(b.type==="dogsbay_inline_directive_close"&&(s--,s===0))break;l.push(b),i++}let c=Jt(l),p=Ar(c),h=o.meta,f=h?.labelless===!0,g=h?.literal&&h.source?{type:"text",text:h.source}:z0(u,p,c,a,f);f&&h?.source&&(g?.type==="html-inline"&&g.html.startsWith(`:${u}[]`)||g?.type==="text"&&g.text.startsWith(`:${u}{`))&&(g={type:"text",text:h.source}),g&&r.push(g);break}case"dogsbay_literal":{r.push({type:"text",text:o.content});break}case"dogsbay_leaf_directive":{let u=o.tag,a=o.info?JSON.parse(o.info):null,l=z0(u,"",[],a,!!dr[u]);dr[u]&&l?.type==="text"&&l.text.startsWith(`:${u}{`)&&(l.text=`:${l.text}`),l?.type==="html-inline"&&l.html.startsWith(`:${u}[]`)&&(l.html=`::${u}${l.html.slice(u.length+3)}`),l&&r.push(l);break}case"html_inline":{r.push({type:"html-inline",html:o.content});break}case"footnote_ref":{let u=o.meta??{},a=u.label??String((u.id??0)+1);r.push({type:"footnote-ref",label:a});break}default:break}i++}return mw(r)}function mw(e){if(e.length<2)return e;let t=[];for(let r of e){let n=t[t.length-1];r.type==="text"&&n&&n.type==="text"&&!!n.bold==!!r.bold&&!!n.italic==!!r.italic&&!!n.strikethrough==!!r.strikethrough?t[t.length-1]={...n,text:n.text+r.text,...r.lineEnd?{lineEnd:!0}:{}}:t.push(r)}return t}function gw(e){if(e.type==="text")return e.bold===!0&&e.text!=="";if(e.type!=="link")return!1;let t=(e.children??[]).filter(r=>r.type==="text");return t.length>0&&t.every(r=>r.type==="text"&&r.bold===!0)}function M0(e,t){let r={type:"text",text:e};return t.includes("bold")&&(r.bold=!0),t.includes("italic")&&(r.italic=!0),t.includes("strike")&&(r.strikethrough=!0),r}function N0(e,t){let r={};e?.id&&(r.id=e.id),e?.classes.length&&(r.class=e.classes.join(" "));for(let[n,i]of Object.entries(t))r[n]=i===!0?"":String(i);return Object.keys(r).length?r:void 0}function z0(e,t,r,n,i=!1){let o=dr[e];if(i&&o)if(n&&typeof n.props[o]=="string"){t=n.props[o],r=[{type:"text",text:t}];let{[o]:u,...a}=n.props;n={...n,props:a}}else{let u=n?et({id:n.id,classes:n.classes,props:n.props}).trim():"";return{type:"text",text:`:${e}${u||"{}"}`}}switch(e){case"kbd":return{type:"kbd",keys:t.split(/\s*\+\s*/).filter(Boolean)};case"icon":{let[u,...a]=t.split(":");return a.length===0?{type:"icon",name:u}:{type:"icon",name:a.join(":"),library:u}}case"math":return{type:"math",latex:t};case"mark":case"highlight":return{type:"highlight",children:[{type:"text",text:t}]};case"button":{let{href:u,variant:a,...l}=n?.props??{},s={type:"link",href:typeof u=="string"?u:"",button:typeof a=="string"?{variant:a}:{},children:r.some(p=>p.type!=="text"||p.text)?r.filter(p=>p.type!=="text"||p.text):[{type:"text",text:t}]},c=N0(n,l);return c&&(s.attrs=c),s}case"badge":{let{variant:u,...a}=n?.props??{},l={type:"badge",text:t};typeof u=="string"&&(l.variant=u);let s=N0(n,a);return s&&(l.attrs=s),l}default:{let u=n?et({id:n.id,classes:n.classes,props:n.props}).trim():"";return{type:"html-inline",html:`:${e}[${tt(r)}]${u}`}}}}var it=e=>`Callout: ${e}. \`title\`, \`collapsed\` for a fold`,l8={tabs:"Tab group; each `:::tab[Label]` is one tab. `syncKey` syncs groups across the site",tab:"One tab of a `:::tabs` group, named by its label",steps:"Numbered procedure; each `:::step[Title]` is one step",step:"One step of a `:::steps` procedure",cards:"Card grid; `:::card` children, or a list of links. `cols` sets the columns",card:"Card with a title, optional `href`, `icon` and `image`","link-card":"Card that is one link: `href`, `title`, `description`",grid:"Layout grid of `::grid-item` cells. `cols`, `gap`","grid-item":"One cell of a `:::grid`; `span`, `rowSpan`",details:"Collapsible section; the label is the summary. `open` starts expanded",callout:"Callout of a given `type` (note, tip, warning, \u2026)",note:it("note"),tip:it("tip"),info:it("info"),important:it("important"),warning:it("warning"),caution:it("caution"),danger:it("danger"),success:it("success"),hint:it("hint"),attention:it("attention"),error:it("error"),failure:it("failure"),bug:it("bug"),question:it("question"),abstract:it("abstract"),quote:it("quote"),button:"Link styled as a button: `href`, `variant`, `size`",figure:"Image or content with a `caption`",math:'Display math: the LaTeX as its body, or `::math{latex="\u2026"}`; same as `$$\u2026$$`',"api-endpoint":"API operation card (method, path, description)","api-params":"API parameter table","api-response":"API response with status and schema",config:"Configuration reference block",files:"File tree, from a nested list",example:"Example: rendered output beside its source",accordion:"Accordion; `:::accordion-item` children. `type` single or multiple","accordion-item":"One fold of an `:::accordion`, titled by its label",autodoc:"Python API reference generated from source at build time","api-class":"Generated API reference: a class","api-member":"Generated API reference: a member","api-doc":"Generated API reference: a docstring","api-source":"Generated API reference: source code",youtube:'YouTube video, loaded on click: `::youtube{#id title="\u2026"}`',openapi:'API reference from an OpenAPI spec: `spec="/path/openapi.yaml"`',theme:'Content in another theme\'s tokens: `name="dark"`',avatar:"Avatar image with a fallback: `src`, `alt`, `fallback`, `size`","child-links":"Links to this page's children in the menu; `depth`","data-table":"Table from a data file: `src`, `path` to a list in it, `columns`, `headers`, `links` (column=field), `code`","data-cards":"Cards from a data file: `src`, `path`; `title`, `description`, `href`, `icon` name its keys"},s8=sv.withTags($d),Aw=class extends Error{file;line;constructor(e,t,r){super(r?`${t}:${r}: ${e}`:`${t}: ${e}`),this.file=t,this.line=r,this.name="DataFileError"}},c8={maxFileBytes:8*1024*1024,maxTotalBytes:64*1024*1024,maxValues:1e6,maxDepth:64,maxRows:1e5,maxColumns:256,maxCellChars:64*1024},d8={maxFileBytes:1024*1024,maxTotalBytes:8*1024*1024,maxValues:1e5,maxDepth:32,maxRows:1e4,maxColumns:64,maxCellChars:8*1024},Gp="data files need a project: this page is rendered on its own, with no data folder to read",bw=/^((?:[ \t]*>)*[ \t]*(?::[ \t]+)?)::(data-table|data-cards)(\{.*\})?[ \t]*$/,j0=e=>e===void 0||/^[\s>]*$/.test(e);function kw(e){return e.includes("::data-")}async function vw(e,t){let r=[],n=[];if(!kw(e))return{text:e,reads:r,problems:n,map:Vy(e.split(`
|
|
3382
3382
|
`).length)};let i=$o(),o=e.split(`
|
|
3383
3383
|
`),u=[],a=[],l=(c,p)=>{u.push(c),a.push(p+1)},s=!1;for(let c=0;c<o.length;c++){let p=o[c],h=i.step(p),f=h==="prose"&&s;h==="prose"&&(s=yw(p,s));let g=h==="prose"&&!f?bw.exec(p.replace(/\r$/,"")):null;if(!g){l(p,c);continue}let[,b,D,I]=g;if(!t){n.push({line:c+1,message:`::${D}: ${Gp}`}),l(p,c);continue}try{let x=Io(I?I.slice(1,-1):"").props,{path:w,value:F}=await t.read(ww(x,"src"));r.includes(w)||r.push(w);let C=xw(F,w,x.path,D),k=D==="data-table"?Dw(C,x,w):Bw(C,x,w),_=Sp([k]).replace(/\n+$/,""),L=b.replace(":"," "),K=L.trimEnd(),U={kind:"generated",from:c+1,to:c+1},N=M=>{u.push(M),a.push(U)};!b.includes(":")&&!j0(u[u.length-1])&&u.length>0&&N(K),_.split(`
|
|
3384
3384
|
`).forEach((M,q)=>N(M?(q===0?b:L)+M:K)),c+1<o.length&&!j0(o[c+1])&&N(K)}catch(x){if(x instanceof Aw)n.push({line:c+1,message:`::${D}: ${x.message}`,file:x.file,fileLine:x.line});else if(x instanceof Xe)n.push({line:c+1,message:`::${D}: ${x.message}`});else throw x;l(p,c)}}return{text:u.join(`
|
|
3385
|
-
`),reads:r,problems:n,map:X6(a)}}var Xe=class extends Error{};function yw(e,t){let r=0;for(;;)if(t){let n=e.indexOf("-->",r);if(n<0)return!0;t=!1,r=n+3}else{let n=e.indexOf("<!--",r);if(n<0)return!1;t=!0,r=n+4}}function ww(e,t){let r=e[t];if(typeof r!="string"||r.trim()==="")throw new Xe(`needs ${t}="\u2026"`);return r}var Cr=(e,t)=>e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;function xw(e,t,r,n){let i=e;if(typeof r=="string"&&r.trim()){for(let o of r.trim().split("."))if(i=Array.isArray(i)&&/^\d+$/.test(o)?i[Number(o)]:Cr(i,o),i===void 0)throw new Xe(`${t} has nothing at path "${r}"`)}if(!Array.isArray(i)){let o=i!==null&&typeof i=="object"?"an object":`a ${typeof i}`;throw new Xe(`${t}${typeof r=="string"?` at "${r}"`:""} is ${o}, not a list${o==="an object"?'; name the list in it with path="\u2026"':""}`)}return i.forEach((o,u)=>{if(o===null||typeof o!="object"||Array.isArray(o))throw new Xe(`${t}: item ${u+1} is not an object with named fields, so ::${n} cannot read columns from it`)}),i}function Gr(e,t,r){if(e==null)return"";if(typeof e=="string")return e.replace(/\s+/g," ").trim();if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)&&e.every(n=>n===null||["string","number","boolean"].includes(typeof n)))return e.map(n=>n===null?"":String(n).replace(/\s+/g," ").trim()).join(", ");throw new Xe(`${t}: "${r}" holds ${Array.isArray(e)?"a list of objects":"an object"}, which a cell cannot show`)}var Cw={"&":"&","{":"{","}":"}",$:"$","~":"~","|":"|"},oa=e=>({type:"text",text:e.replace(/[&{}$~|]/g,t=>Cw[t])}),Li=e=>typeof e=="string"&&e.trim()?e.split(",").map(t=>t.trim()):void 0;function Dw(e,t,r){if(e.length===0)throw new Xe(`${r} has no entries to show`);let n=Li(t.columns)??[...new Set(e.flatMap(p=>Object.keys(p)))];if(n.length===0)throw new Xe(`${r} has no columns to show`);let i=[...new Set(e.flatMap(p=>Object.keys(p)))],o=n.filter(p=>!i.includes(p));if(o.length>0){let p=i.length===0?"it has no fields":`it has ${i.slice(0,12).join(", ")}${i.length>12?`, \u2026 ${i.length-12} more`:""}`;throw new Xe(`${r} has no ${o.map(h=>`"${h}"`).join(", ")} column (${p})`)}let u=Li(t.headers)??n;if(u.length!==n.length)throw new Xe(`headers names ${u.length} column(s), columns ${n.length}`);let a=Ew(t.links,n),l=new Set(Li(t.code)??[]);for(let p of l)if(!n.includes(p))throw new Xe(`code names "${p}", which is not one of the columns shown`);for(let p of a.values())if(!i.includes(p))throw new Xe(`links reads "${p}", which ${r} has no entry with`);let s={type:"tr",children:u.map(p=>({type:"th",inline:p?[oa(p)]:[]}))},c=(p,h)=>({type:"tr",children:n.map(f=>{let g=Gr(Cr(p,f),r,f);if(!g)return{type:"td",inline:[]};let b=l.has(f)?{type:"code",text:g}:oa(g),D=a.get(f),I=D===void 0?"":Gr(Cr(p,D),r,D);if(I&&!Xr(I))throw new Xe(`${r}: item ${h+1}'s "${D}" is not a link a page may carry`);return{type:"td",inline:[I?{type:"link",href:I,children:[b]}:b]}})});return{type:"table",children:[s,...e.map(c)]}}function Ew(e,t){let r=new Map;for(let n of Li(e)??[]){let i=/^([^=\s]+)\s*=\s*([^=\s]+)$/.exec(n);if(!i)throw new Xe(`links takes column=field pairs, not "${n}"`);if(!t.includes(i[1]))throw new Xe(`links names "${i[1]}", which is not one of the columns shown`);r.set(i[1],i[2])}return r}function Bw(e,t,r){let n=typeof t.title=="string"?t.title:"title",i=typeof t.description=="string"?t.description:"description",o=typeof t.href=="string"?t.href:"href",u=typeof t.icon=="string"?t.icon:"icon";return{type:"cards",children:e.map((a,l)=>{let s=Gr(Cr(a,n),r,n);if(!s)throw new Xe(`${r}: item ${l+1} has no "${n}" for the card title`);let c={title:s},p=Gr(Cr(a,o),r,o);if(p){if(!Xr(p))throw new Xe(`${r}: item ${l+1}'s "${o}" is not a link a page may carry`);c.href=p}let h=Gr(Cr(a,u),r,u);h&&(c.icon=h);let f=Gr(Cr(a,i),r,i);return{type:"card",props:c,children:f?[{type:"paragraph",inline:[oa(f)]}]:[]}})}}var Fw=(e,t="db-icon")=>`<svg class="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${e}</svg>`,Zp={info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',lightbulb:'<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/>',"alert-triangle":'<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',"alert-octagon":'<path d="M12 16h.01"/><path d="M12 8v4"/><path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>',"message-square-warning":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v2"/><path d="M12 13h.01"/>',"circle-check":'<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',"circle-x":'<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',"circle-help":'<circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>',bug:'<path d="m8 2 1.88 1.88"/><path d="M14.12 3.88 16 2"/><path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1"/><path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6"/><path d="M12 20v-9"/>',"file-code":'<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5m-10 4.5L8 15l2 2.5m4-5l2 2.5l-2 2.5"/>',"file-text":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M16 13H8"/><path d="M16 17H8"/>',quote:'<path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"/><path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"/>',"flask-conical":'<path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"/><path d="M8.5 2h7"/><path d="M7 16h10"/>',flame:'<path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',check:'<path d="M20 6 9 17l-5-5"/>',"chevron-right":'<path d="m9 18 6-6-6-6"/>',"chevron-left":'<path d="m15 18-6-6 6-6"/>',"chevron-down":'<path d="m6 9 6 6 6-6"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/>',moon:'<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/>',"external-link":'<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',rocket:'<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/>',book:'<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/>',globe:'<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>',"git-branch":'<line x1="6" x2="6" y1="3" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/>',"list-tree":'<path d="M21 12h-8"/><path d="M21 6H8"/><path d="M21 18h-8"/><path d="M3 6v4c0 1.1.9 2 2 2h3"/><path d="M3 10v6c0 1.1.9 2 2 2h3"/>',printer:'<path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"/><path d="M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6"/><rect x="6" y="14" width="12" height="8" rx="1"/>',"chevron-up":'<path d="m18 15l-6-6l-6 6"/>',"arrow-up":'<path d="m5 12l7-7l7 7m-7 7V5"/>',"arrow-down":'<path d="M12 5v14m7-7l-7 7l-7-7"/>',"arrow-right":'<path d="M5 12h14m-7-7l7 7l-7 7"/>',"arrow-left":'<path d="m12 19l-7-7l7-7m7 7H5"/>',languages:'<path d="m5 8l6 6m-7 0l6-6l2-3M2 5h12M7 2h1m14 20l-5-10l-5 10m2-4h6"/>',pencil:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4"/>',pen:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>',"file-plus":'<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5M9 15h6m-3 3v-6"/>',settings:'<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/>',download:'<path d="M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10l5 5l5-5"/>',"cloud-download":'<path d="M12 13v8l-4-4m4 4l4-4"/><path d="M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284"/>',laptop:'<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2zm2.054 10.987H3.946"/>',"book-open":'<path d="M12 7v14m-9-3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4a4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3a3 3 0 0 0-3-3z"/>',slash:'<path d="M22 2L2 22"/>',"triangle-alert":'<path d="m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01"/>',star:'<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"/>',puzzle:'<path d="M15.39 4.39a1 1 0 0 0 1.68-.474a2.5 2.5 0 1 1 3.014 3.015a1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474a2.5 2.5 0 1 0-3.014 3.015a1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474a2.5 2.5 0 1 1-3.014-3.015a1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474a2.5 2.5 0 1 0 3.014-3.015a1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"/>',list:'<path d="M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13"/>',shuffle:'<path d="m18 14l4 4l-4 4m0-20l4 4l-4 4"/><path d="M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22M2 6h1.972a4 4 0 0 1 3.6 2.2M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45"/>',"message-square":'<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"/>',"message-circle":'<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092a10 10 0 1 0-4.777-4.719"/>',heart:'<path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676a.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"/>',mail:'<path d="m22 7l-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect width="20" height="16" x="2" y="4" rx="2"/>',phone:'<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233a14 14 0 0 0 6.392 6.384"/>',rss:'<path d="M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16"/><circle cx="5" cy="19" r="1"/>',sparkles:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4"/><circle cx="4" cy="20" r="2"/>'};function Yp(e,t){let r=Xa(e)?Zp[e]:void 0;return r?Fw(r,t):""}function Xa(e){return Object.hasOwn(Zp,e)}var $w={note:{variant:"note",icon:"info",label:"Note"},info:{variant:"info",icon:"info",label:"Info"},tip:{variant:"tip",icon:"lightbulb",label:"Tip"},hint:{variant:"tip",icon:"lightbulb",label:"Hint"},success:{variant:"success",icon:"circle-check",label:"Success"},important:{variant:"important",icon:"message-square-warning",label:"Important"},warning:{variant:"warning",icon:"alert-triangle",label:"Warning"},attention:{variant:"warning",icon:"alert-triangle",label:"Attention"},caution:{variant:"caution",icon:"alert-octagon",label:"Caution"},danger:{variant:"danger",icon:"flame",label:"Danger"},error:{variant:"danger",icon:"circle-x",label:"Error"},failure:{variant:"danger",icon:"circle-x",label:"Failure"},question:{variant:"question",icon:"circle-help",label:"Question"},bug:{variant:"danger",icon:"bug",label:"Bug"},example:{variant:"example",icon:"flask-conical",label:"Example"},abstract:{variant:"note",icon:"file-text",label:"Abstract"},quote:{variant:"quote",icon:"quote",label:"Quote"}},R0="inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",O0={default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",info:"border-transparent bg-info/15 text-[color:color-mix(in_oklab,var(--info)_60%,var(--foreground))]",success:"border-transparent bg-success/15 text-[color:color-mix(in_oklab,var(--success)_60%,var(--foreground))]",warning:"border-transparent bg-warning/15 text-[color:color-mix(in_oklab,var(--warning)_60%,var(--foreground))]",danger:"border-transparent bg-danger/15 text-[color:color-mix(in_oklab,var(--danger)_60%,var(--foreground))]"};function _w(e){let t=e??"default",r=Object.prototype.hasOwnProperty.call(O0,t)?O0[t]:void 0;return r?`${R0} ${r}`:R0}var Sw="pointer-events-none inline-flex h-5 items-center justify-center gap-1 rounded border bg-muted px-1.5 font-mono text-xs font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-muted",K0={primary:"bg-primary text-primary-foreground","primary-strong":"bg-primary/80 text-primary-foreground","primary-medium":"bg-primary/60 text-primary-foreground","primary-half":"bg-primary/50 text-primary-foreground","primary-light":"bg-primary/20 text-primary","primary-soft":"bg-primary/10 text-primary",muted:"bg-muted text-muted-foreground",blue:"bg-blue-500/15 text-blue-700 dark:text-blue-300",amber:"bg-amber-500/15 text-amber-700 dark:text-amber-300",green:"bg-green-500/15 text-green-700 dark:text-green-300",purple:"bg-purple-500/15 text-purple-700 dark:text-purple-300",red:"bg-red-500/15 text-red-700 dark:text-red-300"},Iw={info:"border-info/50 bg-info/5",success:"border-success/50 bg-success/5",warning:"border-warning/50 bg-warning/5",danger:"border-danger/50 bg-danger/5"},Tw={pills:{list:"flex flex-wrap items-center gap-2 border-b-0 border-transparent bg-transparent p-0 px-3 pt-3 pb-1 text-muted-foreground",trigger:"inline-flex items-center justify-center whitespace-nowrap rounded-full border border-border px-4 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 aria-selected:border-primary aria-selected:bg-primary aria-selected:text-primary-foreground aria-selected:shadow-none"},underline:{list:"flex items-center gap-6 border-b border-border bg-transparent p-0 px-4 text-muted-foreground",trigger:"-mb-px inline-flex items-center justify-center whitespace-nowrap rounded-none border-b-2 border-transparent p-0 px-0.5 pt-3 pb-2 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:text-foreground aria-selected:border-primary aria-selected:bg-transparent aria-selected:text-foreground aria-selected:shadow-none"}},Lw={dark:"dark my-6 rounded-xl border border-border bg-background p-6 text-foreground [&>:first-child]:mt-0! [&>:last-child]:mb-0!"};function rn(e,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}var Jp=e=>`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-4 shrink-0 text-muted-foreground" aria-hidden="true" focusable="false">${e}</svg>`,Mw=Jp('<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>'),Nw=Jp('<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/>');function Xp(e,t){return`<ul class="${t?"m-0 ml-2 list-none border-l border-border pl-4":"m-0 list-none p-0"}">${e.map(r=>`<li class="my-0.5" data-kind="${r.folder?"folder":"file"}"><span class="inline-flex items-center gap-1.5">${r.folder?Mw:Nw}<span>${r.label}</span></span>${r.children.length?Xp(r.children,!0):""}</li>`).join("")}</ul>`}function zw(e,t=""){return`<div class="not-prose my-4 overflow-x-auto rounded-lg border bg-card p-3 font-mono text-sm${t?` ${t}`:""}" data-component="files">${Xp(e,!1)}</div>`}var jw={note:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m3.1 5.07c.14 0 .28.05.4.16l1.27 1.27c.23.22.23.57 0 .78l-1 1-2.05-2.05 1-1c.1-.11.24-.16.38-.16m-1.97 1.74 2.06 2.06-6.06 6.06H7.07v-2.06z"/></svg>',abstract:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"/></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2"/></svg>',tip:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.6.6 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27"/></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59z"/></svg>',question:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z"/></svg>',failure:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',danger:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m11.5 20 4.86-9.73H13V4l-5 9.73h3.5zM12 2c2.75 0 5.1 1 7.05 2.95S22 9.25 22 12s-1 5.1-2.95 7.05S14.75 22 12 22s-5.1-1-7.05-2.95S2 14.75 2 12s1-5.1 2.95-7.05S9.25 2 12 2"/></svg>',bug:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m11 13h2v1h-2zm10-8v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4zm-4 5h-2.2c-.2-.6-.6-1.1-1.1-1.5l1.2-1.2-.7-.7L12.8 8H12c-.2 0-.5 0-.7.1L9.9 6.6l-.8.8 1.2 1.2c-.5.3-.9.8-1.1 1.4H7v1h2v1H7v1h2v1H7v1h2.2c.4 1.2 1.5 2 2.8 2s2.4-.8 2.8-2H17v-1h-2v-1h2v-1h-2v-1h2zm-6 2h2v-1h-2z"/></svg>',example:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M7 2v2h1v14a4 4 0 0 0 4 4 4 4 0 0 0 4-4V4h1V2zm4 14c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m2-4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m1-5h-4V4h4z"/></svg>',quote:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3z"/></svg>'},Rw='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>',ti=e=>e;function eh(e){let t=ti(e);return!!(t.diff||t.diffInline)}var Ow=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\{/g,"{").replace(/\}/g,"}");function Kw(e){return e.map(t=>{let r=Ow(t.text);return t.op==="ins"?`<ins class="db-diff-ins">${r}</ins>`:t.op==="del"?`<del class="db-diff-del">${r}</del>`:r}).join("")}var q0=1500;function qw(e,t){let r=e.split(`
|
|
3385
|
+
`),reads:r,problems:n,map:Xy(a)}}var Xe=class extends Error{};function yw(e,t){let r=0;for(;;)if(t){let n=e.indexOf("-->",r);if(n<0)return!0;t=!1,r=n+3}else{let n=e.indexOf("<!--",r);if(n<0)return!1;t=!0,r=n+4}}function ww(e,t){let r=e[t];if(typeof r!="string"||r.trim()==="")throw new Xe(`needs ${t}="\u2026"`);return r}var Cr=(e,t)=>e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;function xw(e,t,r,n){let i=e;if(typeof r=="string"&&r.trim()){for(let o of r.trim().split("."))if(i=Array.isArray(i)&&/^\d+$/.test(o)?i[Number(o)]:Cr(i,o),i===void 0)throw new Xe(`${t} has nothing at path "${r}"`)}if(!Array.isArray(i)){let o=i!==null&&typeof i=="object"?"an object":`a ${typeof i}`;throw new Xe(`${t}${typeof r=="string"?` at "${r}"`:""} is ${o}, not a list${o==="an object"?'; name the list in it with path="\u2026"':""}`)}return i.forEach((o,u)=>{if(o===null||typeof o!="object"||Array.isArray(o))throw new Xe(`${t}: item ${u+1} is not an object with named fields, so ::${n} cannot read columns from it`)}),i}function Gr(e,t,r){if(e==null)return"";if(typeof e=="string")return e.replace(/\s+/g," ").trim();if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)&&e.every(n=>n===null||["string","number","boolean"].includes(typeof n)))return e.map(n=>n===null?"":String(n).replace(/\s+/g," ").trim()).join(", ");throw new Xe(`${t}: "${r}" holds ${Array.isArray(e)?"a list of objects":"an object"}, which a cell cannot show`)}var Cw={"&":"&","{":"{","}":"}",$:"$","~":"~","|":"|"},oa=e=>({type:"text",text:e.replace(/[&{}$~|]/g,t=>Cw[t])}),Li=e=>typeof e=="string"&&e.trim()?e.split(",").map(t=>t.trim()):void 0;function Dw(e,t,r){if(e.length===0)throw new Xe(`${r} has no entries to show`);let n=Li(t.columns)??[...new Set(e.flatMap(p=>Object.keys(p)))];if(n.length===0)throw new Xe(`${r} has no columns to show`);let i=[...new Set(e.flatMap(p=>Object.keys(p)))],o=n.filter(p=>!i.includes(p));if(o.length>0){let p=i.length===0?"it has no fields":`it has ${i.slice(0,12).join(", ")}${i.length>12?`, \u2026 ${i.length-12} more`:""}`;throw new Xe(`${r} has no ${o.map(h=>`"${h}"`).join(", ")} column (${p})`)}let u=Li(t.headers)??n;if(u.length!==n.length)throw new Xe(`headers names ${u.length} column(s), columns ${n.length}`);let a=Ew(t.links,n),l=new Set(Li(t.code)??[]);for(let p of l)if(!n.includes(p))throw new Xe(`code names "${p}", which is not one of the columns shown`);for(let p of a.values())if(!i.includes(p))throw new Xe(`links reads "${p}", which ${r} has no entry with`);let s={type:"tr",children:u.map(p=>({type:"th",inline:p?[oa(p)]:[]}))},c=(p,h)=>({type:"tr",children:n.map(f=>{let g=Gr(Cr(p,f),r,f);if(!g)return{type:"td",inline:[]};let b=l.has(f)?{type:"code",text:g}:oa(g),D=a.get(f),I=D===void 0?"":Gr(Cr(p,D),r,D);if(I&&!Xr(I))throw new Xe(`${r}: item ${h+1}'s "${D}" is not a link a page may carry`);return{type:"td",inline:[I?{type:"link",href:I,children:[b]}:b]}})});return{type:"table",children:[s,...e.map(c)]}}function Ew(e,t){let r=new Map;for(let n of Li(e)??[]){let i=/^([^=\s]+)\s*=\s*([^=\s]+)$/.exec(n);if(!i)throw new Xe(`links takes column=field pairs, not "${n}"`);if(!t.includes(i[1]))throw new Xe(`links names "${i[1]}", which is not one of the columns shown`);r.set(i[1],i[2])}return r}function Bw(e,t,r){let n=typeof t.title=="string"?t.title:"title",i=typeof t.description=="string"?t.description:"description",o=typeof t.href=="string"?t.href:"href",u=typeof t.icon=="string"?t.icon:"icon";return{type:"cards",children:e.map((a,l)=>{let s=Gr(Cr(a,n),r,n);if(!s)throw new Xe(`${r}: item ${l+1} has no "${n}" for the card title`);let c={title:s},p=Gr(Cr(a,o),r,o);if(p){if(!Xr(p))throw new Xe(`${r}: item ${l+1}'s "${o}" is not a link a page may carry`);c.href=p}let h=Gr(Cr(a,u),r,u);h&&(c.icon=h);let f=Gr(Cr(a,i),r,i);return{type:"card",props:c,children:f?[{type:"paragraph",inline:[oa(f)]}]:[]}})}}var Fw=(e,t="db-icon")=>`<svg class="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${e}</svg>`,Zp={info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',lightbulb:'<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/>',"alert-triangle":'<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',"alert-octagon":'<path d="M12 16h.01"/><path d="M12 8v4"/><path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>',"message-square-warning":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v2"/><path d="M12 13h.01"/>',"circle-check":'<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',"circle-x":'<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',"circle-help":'<circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>',bug:'<path d="m8 2 1.88 1.88"/><path d="M14.12 3.88 16 2"/><path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1"/><path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6"/><path d="M12 20v-9"/>',"file-code":'<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5m-10 4.5L8 15l2 2.5m4-5l2 2.5l-2 2.5"/>',"file-text":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M16 13H8"/><path d="M16 17H8"/>',quote:'<path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"/><path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"/>',"flask-conical":'<path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"/><path d="M8.5 2h7"/><path d="M7 16h10"/>',flame:'<path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',check:'<path d="M20 6 9 17l-5-5"/>',"chevron-right":'<path d="m9 18 6-6-6-6"/>',"chevron-left":'<path d="m15 18-6-6 6-6"/>',"chevron-down":'<path d="m6 9 6 6 6-6"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/>',moon:'<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/>',"external-link":'<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',rocket:'<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/>',book:'<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/>',globe:'<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>',"git-branch":'<line x1="6" x2="6" y1="3" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/>',"list-tree":'<path d="M21 12h-8"/><path d="M21 6H8"/><path d="M21 18h-8"/><path d="M3 6v4c0 1.1.9 2 2 2h3"/><path d="M3 10v6c0 1.1.9 2 2 2h3"/>',printer:'<path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"/><path d="M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6"/><rect x="6" y="14" width="12" height="8" rx="1"/>',"chevron-up":'<path d="m18 15l-6-6l-6 6"/>',"arrow-up":'<path d="m5 12l7-7l7 7m-7 7V5"/>',"arrow-down":'<path d="M12 5v14m7-7l-7 7l-7-7"/>',"arrow-right":'<path d="M5 12h14m-7-7l7 7l-7 7"/>',"arrow-left":'<path d="m12 19l-7-7l7-7m7 7H5"/>',languages:'<path d="m5 8l6 6m-7 0l6-6l2-3M2 5h12M7 2h1m14 20l-5-10l-5 10m2-4h6"/>',pencil:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4"/>',pen:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>',"file-plus":'<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5M9 15h6m-3 3v-6"/>',settings:'<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/>',download:'<path d="M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10l5 5l5-5"/>',"cloud-download":'<path d="M12 13v8l-4-4m4 4l4-4"/><path d="M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284"/>',laptop:'<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2zm2.054 10.987H3.946"/>',"book-open":'<path d="M12 7v14m-9-3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4a4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3a3 3 0 0 0-3-3z"/>',slash:'<path d="M22 2L2 22"/>',"triangle-alert":'<path d="m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01"/>',star:'<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"/>',puzzle:'<path d="M15.39 4.39a1 1 0 0 0 1.68-.474a2.5 2.5 0 1 1 3.014 3.015a1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474a2.5 2.5 0 1 0-3.014 3.015a1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474a2.5 2.5 0 1 1-3.014-3.015a1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474a2.5 2.5 0 1 0 3.014-3.015a1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"/>',list:'<path d="M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13"/>',shuffle:'<path d="m18 14l4 4l-4 4m0-20l4 4l-4 4"/><path d="M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22M2 6h1.972a4 4 0 0 1 3.6 2.2M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45"/>',"message-square":'<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"/>',"message-circle":'<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092a10 10 0 1 0-4.777-4.719"/>',heart:'<path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676a.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"/>',mail:'<path d="m22 7l-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect width="20" height="16" x="2" y="4" rx="2"/>',phone:'<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233a14 14 0 0 0 6.392 6.384"/>',rss:'<path d="M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16"/><circle cx="5" cy="19" r="1"/>',sparkles:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4"/><circle cx="4" cy="20" r="2"/>'};function Yp(e,t){let r=Xa(e)?Zp[e]:void 0;return r?Fw(r,t):""}function Xa(e){return Object.hasOwn(Zp,e)}var $w={note:{variant:"note",icon:"info",label:"Note"},info:{variant:"info",icon:"info",label:"Info"},tip:{variant:"tip",icon:"lightbulb",label:"Tip"},hint:{variant:"tip",icon:"lightbulb",label:"Hint"},success:{variant:"success",icon:"circle-check",label:"Success"},important:{variant:"important",icon:"message-square-warning",label:"Important"},warning:{variant:"warning",icon:"alert-triangle",label:"Warning"},attention:{variant:"warning",icon:"alert-triangle",label:"Attention"},caution:{variant:"caution",icon:"alert-octagon",label:"Caution"},danger:{variant:"danger",icon:"flame",label:"Danger"},error:{variant:"danger",icon:"circle-x",label:"Error"},failure:{variant:"danger",icon:"circle-x",label:"Failure"},question:{variant:"question",icon:"circle-help",label:"Question"},bug:{variant:"danger",icon:"bug",label:"Bug"},example:{variant:"example",icon:"flask-conical",label:"Example"},abstract:{variant:"note",icon:"file-text",label:"Abstract"},quote:{variant:"quote",icon:"quote",label:"Quote"}},R0="inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",O0={default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",info:"border-transparent bg-info/15 text-[color:color-mix(in_oklab,var(--info)_60%,var(--foreground))]",success:"border-transparent bg-success/15 text-[color:color-mix(in_oklab,var(--success)_60%,var(--foreground))]",warning:"border-transparent bg-warning/15 text-[color:color-mix(in_oklab,var(--warning)_60%,var(--foreground))]",danger:"border-transparent bg-danger/15 text-[color:color-mix(in_oklab,var(--danger)_60%,var(--foreground))]"};function _w(e){let t=e??"default",r=Object.prototype.hasOwnProperty.call(O0,t)?O0[t]:void 0;return r?`${R0} ${r}`:R0}var Sw="pointer-events-none inline-flex h-5 items-center justify-center gap-1 rounded border bg-muted px-1.5 font-mono text-xs font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-muted",K0={primary:"bg-primary text-primary-foreground","primary-strong":"bg-primary/80 text-primary-foreground","primary-medium":"bg-primary/60 text-primary-foreground","primary-half":"bg-primary/50 text-primary-foreground","primary-light":"bg-primary/20 text-primary","primary-soft":"bg-primary/10 text-primary",muted:"bg-muted text-muted-foreground",blue:"bg-blue-500/15 text-blue-700 dark:text-blue-300",amber:"bg-amber-500/15 text-amber-700 dark:text-amber-300",green:"bg-green-500/15 text-green-700 dark:text-green-300",purple:"bg-purple-500/15 text-purple-700 dark:text-purple-300",red:"bg-red-500/15 text-red-700 dark:text-red-300"},Iw={info:"border-info/50 bg-info/5",success:"border-success/50 bg-success/5",warning:"border-warning/50 bg-warning/5",danger:"border-danger/50 bg-danger/5"},Tw={pills:{list:"flex flex-wrap items-center gap-2 border-b-0 border-transparent bg-transparent p-0 px-3 pt-3 pb-1 text-muted-foreground",trigger:"inline-flex items-center justify-center whitespace-nowrap rounded-full border border-border px-4 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 aria-selected:border-primary aria-selected:bg-primary aria-selected:text-primary-foreground aria-selected:shadow-none"},underline:{list:"flex items-center gap-6 border-b border-border bg-transparent p-0 px-4 text-muted-foreground",trigger:"-mb-px inline-flex items-center justify-center whitespace-nowrap rounded-none border-b-2 border-transparent p-0 px-0.5 pt-3 pb-2 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:text-foreground aria-selected:border-primary aria-selected:bg-transparent aria-selected:text-foreground aria-selected:shadow-none"}},Lw={dark:"dark my-6 rounded-xl border border-border bg-background p-6 text-foreground [&>:first-child]:mt-0! [&>:last-child]:mb-0!"};function rn(e,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}var Jp=e=>`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-4 shrink-0 text-muted-foreground" aria-hidden="true" focusable="false">${e}</svg>`,Mw=Jp('<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>'),Nw=Jp('<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/>');function Xp(e,t){return`<ul class="${t?"m-0 ml-2 list-none border-l border-border pl-4":"m-0 list-none p-0"}">${e.map(r=>`<li class="my-0.5" data-kind="${r.folder?"folder":"file"}"><span class="inline-flex items-center gap-1.5">${r.folder?Mw:Nw}<span>${r.label}</span></span>${r.children.length?Xp(r.children,!0):""}</li>`).join("")}</ul>`}function zw(e,t=""){return`<div class="not-prose my-4 overflow-x-auto rounded-lg border bg-card p-3 font-mono text-sm${t?` ${t}`:""}" data-component="files">${Xp(e,!1)}</div>`}var jw={note:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m3.1 5.07c.14 0 .28.05.4.16l1.27 1.27c.23.22.23.57 0 .78l-1 1-2.05-2.05 1-1c.1-.11.24-.16.38-.16m-1.97 1.74 2.06 2.06-6.06 6.06H7.07v-2.06z"/></svg>',abstract:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"/></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2"/></svg>',tip:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.6.6 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27"/></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59z"/></svg>',question:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z"/></svg>',failure:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',danger:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m11.5 20 4.86-9.73H13V4l-5 9.73h3.5zM12 2c2.75 0 5.1 1 7.05 2.95S22 9.25 22 12s-1 5.1-2.95 7.05S14.75 22 12 22s-5.1-1-7.05-2.95S2 14.75 2 12s1-5.1 2.95-7.05S9.25 2 12 2"/></svg>',bug:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m11 13h2v1h-2zm10-8v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4zm-4 5h-2.2c-.2-.6-.6-1.1-1.1-1.5l1.2-1.2-.7-.7L12.8 8H12c-.2 0-.5 0-.7.1L9.9 6.6l-.8.8 1.2 1.2c-.5.3-.9.8-1.1 1.4H7v1h2v1H7v1h2v1H7v1h2.2c.4 1.2 1.5 2 2.8 2s2.4-.8 2.8-2H17v-1h-2v-1h2v-1h-2v-1h2zm-6 2h2v-1h-2z"/></svg>',example:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M7 2v2h1v14a4 4 0 0 0 4 4 4 4 0 0 0 4-4V4h1V2zm4 14c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m2-4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m1-5h-4V4h4z"/></svg>',quote:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3z"/></svg>'},Rw='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>',ti=e=>e;function eh(e){let t=ti(e);return!!(t.diff||t.diffInline)}var Ow=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\{/g,"{").replace(/\}/g,"}");function Kw(e){return e.map(t=>{let r=Ow(t.text);return t.op==="ins"?`<ins class="db-diff-ins">${r}</ins>`:t.op==="del"?`<del class="db-diff-del">${r}</del>`:r}).join("")}var q0=1500;function qw(e,t){let r=e.split(`
|
|
3386
3386
|
`),n=t.split(`
|
|
3387
3387
|
`);if(r.length>q0||n.length>q0)return null;let i=r.length,o=n.length,u=Array.from({length:i+1},()=>new Array(o+1).fill(0));for(let f=i-1;f>=0;f--)for(let g=o-1;g>=0;g--)u[f][g]=r[f]===n[g]?u[f+1][g+1]+1:Math.max(u[f+1][g],u[f][g+1]);let a=[],l=[],s=[],c=0,p=0,h=(f,g)=>{a.push(f),g==="add"?l.push(a.length):g==="remove"&&s.push(a.length)};for(;c<i&&p<o;)r[c]===n[p]?(h(n[p]),c++,p++):u[c+1][p]>=u[c][p+1]?(h(r[c],"remove"),c++):(h(n[p],"add"),p++);for(;c<i;)h(r[c++],"remove");for(;p<o;)h(n[p++],"add");return{code:a.join(`
|
|
3388
3388
|
`),addLines:l,removeLines:s}}var W0=e=>{let t=[];for(let r=0;r<e.length;){let n=r;for(;n+1<e.length&&e[n+1]===e[n]+1;)n++;t.push(r===n?String(e[r]):`${e[r]}-${e[n]}`),r=n+1}return t.join(",")},U0=e=>e.props?.code??e.html??"",Ww=(e,t)=>e!==t&&e.replace(/\s+/g,"")===t.replace(/\s+/g,"");function Uw(e){let t=ti(e).diffPeer;if(!t)return null;let r=U0(t),n=U0(e),i=qw(r,n);return i===null?null:{node:{...e,html:void 0,props:{...e.props,code:i.code,copyText:n,diffAdd:W0(i.addLines),diffRemove:W0(i.removeLines)}},whitespaceOnly:Ww(r,n)}}var Hw={added:"+",changed:"\u2022",removed:"\u2212",moved:"\u2192"};function Qw(e){let t=ti(e).diff;if(t)return t;let r=n=>eh(n)||(n.children??[]).some(r);return(e.children??[]).some(r)?"changed":void 0}function yu(e,t){let r=e.match(/<([A-Za-z][\w.-]*)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/);if(!r||r.index===void 0)return e;let n=r.index+1+r[1].length;return`${e.slice(0,n)} ${t}${e.slice(n)}`}var H0=e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<");function Vw(e,t,r){let n=ti(e);if(!n.diff&&!n.diffInline)return t;if(n.diff==="changed"&&n.diffPeer&&e.type==="code"){let o=Uw(e);return o?`<div data-diff="changed" class="db-diff-code${o.whitespaceOnly?" db-diff-code-ws":""}"><div class="db-diff-code-merged">${r(o.node)}</div><div class="db-diff-code-clean">${t}</div></div>
|
|
@@ -3732,9 +3732,9 @@ html:not([data-diff-hidden]) .db-diff-code-ws .db-diff-code-merged::before {
|
|
|
3732
3732
|
`;case"list-item":return Cu(e,t);case"blockquote":return`<blockquote${me(ve(r,"border-l-4 border-border pl-4 italic text-muted-foreground"))}>${we(e.children,t)}</blockquote>
|
|
3733
3733
|
`;case"hr":return`<hr class="my-8 border-border">
|
|
3734
3734
|
`;case"html":return pr(e.html??"",t)+`
|
|
3735
|
-
`;case"code":return la(e,t);case"table":return Nx(e,t);case"thead":return
|
|
3735
|
+
`;case"code":return la(e,t);case"table":return Nx(e,t);case"thead":return F6(e)?"":`<thead class="[&_tr]:border-b">${we(e.children,t)}</thead>`;case"tbody":return`<tbody class="[&_tr:last-child]:border-0">${we(e.children,t)}</tbody>`;case"tr":return`<tr${me(ve(r,"border-b transition-colors hover:bg-muted/50"))}>${we(e.children,t)}</tr>`;case"th":case"td":{let n=/^(left|center|right)$/i.test(ie(r.align)??"")?ie(r.align).toLowerCase():void 0,i=e.type==="th"?"px-2 py-2 text-left align-bottom font-semibold text-muted-foreground":"p-2 align-top",o=`${Oe(e.inline,t)}${we(e.children,t)}`,u=e.type==="th"&&!o.trim()?"td":e.type;return`<${u}${me({...ve(r,i),colspan:r.colspan,rowspan:r.rowspan,style:n?`text-align:${n}`:r.style})}>${o}</${u}>`}case"deflist":return`<dl${me(ve(r,"my-4 space-y-2"))}>${we(e.children,t)}</dl>
|
|
3736
3736
|
`;case"dt":return`<dt class="font-semibold">${Oe(e.inline,t)}</dt>`;case"dd":return`<dd class="ml-6 text-muted-foreground">${Ix(e,t)}</dd>`;case"footnote-list":return`<section class="footnotes mt-12 border-t pt-6 text-sm text-muted-foreground" role="doc-endnotes" aria-label="Footnotes"><ol>${we(e.children,t)}</ol></section>
|
|
3737
|
-
`;case"footnote-def":{let n=ne(ie(r.label)??""),i=e.inline?.length?`<p>${Oe(e.inline,t)} <a href="#fnref-${n}" class="text-primary no-underline" role="doc-backlink" aria-label="${ne(t.t("backToContent"))}">\u21A9</a></p>`:"";return`<li id="fn-${n}">${i}${we(e.children,t)}</li>`}case"callout":return Rx(e,t);case"steps":return Qx(e,t);case"step":{let n=
|
|
3737
|
+
`;case"footnote-def":{let n=ne(ie(r.label)??""),i=e.inline?.length?`<p>${Oe(e.inline,t)} <a href="#fnref-${n}" class="text-primary no-underline" role="doc-backlink" aria-label="${ne(t.t("backToContent"))}">\u21A9</a></p>`:"";return`<li id="fn-${n}">${i}${we(e.children,t)}</li>`}case"callout":return Rx(e,t);case"steps":return Qx(e,t);case"step":{let n=A6(e),i=n?void 0:b6(e.inline),o=n?`<strong class="step-title">${ne(n)}</strong>`:i?`<strong class="step-title">${Oe(i.title,t)}</strong>`:"",u=Oe(i?i.rest:e.inline,t);return`<li${Ro(e,t)}>${o}${o&&u?" ":""}${u}${we(e.children,t)}</li>`}case"tabs":return Xi(e,"tab",n=>Gx(n,t),n=>we([n],t),"");case"tab":return we(e.children,t);case"accordion":return Xi(e,"accordion-item",n=>J0(n,t),n=>we([n],t),"");case"accordion-item":{let{line:n,block:i,...o}=e.meta??{};return J0({type:"accordion",children:[{...e,meta:o}]},t)}case"details":return Zx(e,t);case"figure":return Yx(e,t);case"substeps":{let n=(e.children??[]).map(i=>i.type==="step"?Dr(i,t):`<li>${Dr(i,t)}</li>`).join("");return`<ol${me({...ve(r,"sub-steps-list"),role:"list"})}>${n}</ol>
|
|
3738
3738
|
`}case"annotation-list":return`<div${me(ve(r,"my-2 rounded-md border-l-4 border-info/50 bg-info/5 p-4"))}>${we(e.children,t)}</div>
|
|
3739
3739
|
`;case"avatar":return Wx(r,t);case"example":return Hx(e,t);case"cards":{let n=ie(r.tone),i=n?(e.children??[]).map(u=>u.type==="card"&&!u.props?.tone?{...u,props:{...u.props,tone:n}}:u):e.children,o=Math.min(6,Math.max(1,Math.round(Number(String(r.cols??"").replace(/[[\]\s]/g,"").split(",").pop())||2)));return`<div${me(ve(r,`my-4 grid grid-cols-1 gap-4 ${G0[o]}`))}>${we(i,t)}</div>
|
|
3740
3740
|
`}case"theme":{let n=rn(Lw,ie(r.name));return n?`<div${me({...ve(r,n),"data-theme":ie(r.name)})}>${we(e.children,t)}</div>
|
|
@@ -3766,7 +3766,7 @@ html:not([data-diff-hidden]) .db-diff-code-ws .db-diff-code-merged::before {
|
|
|
3766
3766
|
`:u}function Yx(e,t){let r=e.props??{},n=ie(r.caption),i=e.children??[],o=i.length===1&&i[0].type==="paragraph"&&i[0].inline?.every(u=>u.type==="image"||u.type==="text"&&!u.text.trim())?Oe(i[0].inline,t):we(i,t);return`<figure${me(ve(r,"my-4"))}>${o}${n?`<figcaption class="mt-2 text-center text-sm text-muted-foreground">${Oo(n,t)}</figcaption>`:""}</figure>
|
|
3767
3767
|
`}function nl(e,t,r){if(!e)return r();let n=t.inLink;t.inLink=!0;try{return r()}finally{t.inLink=n}}function Jx(e,t){let r=t.icons?.(e);if(r)return r.startsWith("<")?r:`<span aria-hidden="true" class="inline-block w-[1em] text-center leading-none">${ne(r)}</span>`;let n=e.replace(/^lucide:/,"");return Xa(n)?Yp(n):void 0}function il(e,t,r){let n=r.icons?.(e);if(n)return`<span class="inline-flex shrink-0 ${t}" aria-hidden="true" data-icon="${ne(e)}">${n.startsWith("<")?n:ne(n)}</span>`;let i=e.replace(/^lucide:/,"");return Xa(i)?Yp(i,t):((r.missingIcons??=new Set).add(e),`<span class="db-icon-missing" data-icon="${ne(e)}"></span>`)}function yh(e,t){return(e?.children??[]).filter(r=>r.type==="list-item").map(r=>{let n=r.inline??(r.children??[]).find(u=>u.type==="paragraph")?.inline??[],i=(r.children??[]).find(u=>u.type==="unordered-list"||u.type==="ordered-list"),o=n.map(u=>u.type==="text"||u.type==="code"?u.text:"").join("");return{label:Oe(n,t),folder:!!i||/\/\s*$/.test(o),children:yh(i,t)}})}function wh(e,t){let r=e.props??{},n=ie(r.title),i=ie(r.href),o=ie(r.description),u=ie(r.icon),a=u?/\.(svg|png|jpe?g|webp|avif)$/i.test(u)?`<img src="${ne(zo(u,t))}" alt="" class="size-5 mb-2" loading="lazy">`:il(u,"mb-2 size-5 text-muted-foreground",t):"",l=t.lastHeadingLevel,s=!!i&&(!n||!na(e.children)),c=n&&i&&!s?`<a href="${ne(Zn(i,t))}">${ne(n)}</a>`:ne(n??""),p=nl(s,t,()=>a+(n?`<div class="not-prose m-0 border-0 p-0 text-base font-semibold" data-card-title>${c}</div>`:"")+(o?`<p class="m-0 mt-1 text-sm text-muted-foreground [text-decoration:none]">${ne(o)}</p>`:"")+(e.children?.length?`<div class="text-sm text-muted-foreground mt-1 [text-decoration:none]">${we(e.children,t)}</div>`:""));t.lastHeadingLevel=l;let h=rn(Iw,ie(r.tone)),f=`rounded-lg border ${h??"bg-card"} p-4 text-card-foreground shadow-sm${s?` transition-colors ${h?"hover:shadow-md":"hover:border-foreground/20"}`:""}`;return s?`<div${me(ve(r,f))}><div class="p-0"><a href="${ne(Zn(i,t))}" data-variant="card" class="block text-foreground [text-decoration:none]">${p}</a></div></div>`:`<div${me(ve(r,f))}><div class="p-0">${p}</div></div>`}function Xx(e,t){if(e.children?.length)return wh(e,t);let r=e.props??{},n=ie(r.title)??"",i=ie(r.href)??"#",o=ie(r.description),u='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"/></svg>',a=ie(r.icon),l=a?il(a,"size-4 shrink-0 text-muted-foreground",t):"";return`<a${me({...ve(r,"group not-prose my-4 flex flex-col gap-1 rounded-lg border bg-card p-4 text-card-foreground no-underline shadow-sm transition-colors hover:bg-accent/50"),href:Zn(i,t)})}><div class="flex items-center justify-between"><span class="flex min-w-0 items-center gap-2">${l}<span class="text-sm font-semibold group-hover:underline">${ne(n)}</span></span>${u}</div>${o?`<p class="m-0 text-sm text-muted-foreground">${ne(o)}</p>`:""}</a>`}var eC={backToContent:"Back to content",close:"Close",collapsedLine:"1 collapsed line",collapsedLines:"{n} collapsed lines",copyCode:"Copy code",details:"Details",related:"Related links"};function tC(e={}){let{t,reservedIds:r,...n}=e;return{...n,link:n.link??(i=>i),asset:n.asset??(i=>i),headings:[],ids:new Set(r??[]),unknown:new Set,missingIcons:new Set,unknownVariants:new Set,unsafeUrls:new Set,seq:0,t:i=>t?.(i)||eC[i]||""}}var rC='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><style> .paw { fill: #1e6e7d; } @media (prefers-color-scheme: dark) { .paw { fill: #7fd3e0; } } </style><g class="paw"><ellipse cx="14.5" cy="29.5" rx="6.3" ry="8.6" transform="rotate(-22 14.5 29.5)"/><ellipse cx="26" cy="17.5" rx="6.3" ry="9.2" transform="rotate(-8 26 17.5)"/><ellipse cx="40" cy="17.5" rx="6.3" ry="9.2" transform="rotate(8 40 17.5)"/><ellipse cx="51.5" cy="29.5" rx="6.3" ry="8.6" transform="rotate(22 51.5 29.5)"/><path d="M32 36c9.8 0 16.8 6.8 16.8 13.8S41.8 59.5 32 59.5 15.2 54.3 15.2 47.3 22.2 36 32 36Z"/></g></svg>',nC=`data:image/svg+xml,${encodeURIComponent(rC)}`;function xh(e){return e.replace(/&#(\d+);/g,(t,r)=>{let n=Number(r);return n<=1114111?String.fromCodePoint(n):t}).replace(/&#x([0-9a-f]+);/gi,(t,r)=>{let n=parseInt(r,16);return n<=1114111?String.fromCodePoint(n):t})}function ar(e){let t=[];e.inline?t.push(ao(e.inline)):typeof e.html=="string"&&t.push(xh(e.html.replace(/<[^>]+>/g,"")));for(let r of e.children??[])t.push(ar(r));return t.join(" ").replace(/\s+/g," ").trim()}function ao(e){return e.map(t=>{switch(t.type){case"text":case"code":return t.text??"";case"link":return ao(t.children??[]);default:return t.text??""}}).join("")}function X0(e){return e.match(/\S+\s*/g)??[]}var ec=1500;function tc(e,t){let r=X0(e),n=X0(t),i=r.length,o=n.length;if(i>ec||o>ec)return null;let u=Array.from({length:i+1},()=>new Array(o+1).fill(0));for(let p=i-1;p>=0;p--)for(let h=o-1;h>=0;h--)u[p][h]=r[p].trim()===n[h].trim()?u[p+1][h+1]+1:Math.max(u[p+1][h],u[p][h+1]);let a=[],l=(p,h)=>{let f=a[a.length-1];f&&f.op===p?f.text+=h:a.push({op:p,text:h})},s=0,c=0;for(;s<i&&c<o;)r[s].trim()===n[c].trim()?(l("eq",n[c]),s++,c++):u[s+1][c]>=u[s][c+1]?(l("del",r[s]),s++):(l("ins",n[c]),c++);for(;s<i;)l("del",r[s++]);for(;c<o;)l("ins",n[c++]);return a}function rc(e,t){if(e===t)return 1;let r=new Set(e.toLowerCase().split(/\s+/).filter(Boolean)),n=new Set(t.toLowerCase().split(/\s+/).filter(Boolean));if(r.size===0&&n.size===0)return 1;let i=0;for(let o of r)n.has(o)&&i++;return i/Math.max(r.size,n.size)}var iC=new Set(["paragraph","blockquote","list-item","li"]),nc=new Set(["callout","tabs","tab","steps","step","details","blockquote","unordered-list","ordered-list"]),ic=.5;function oC(e){return ar(e)}function oc(e){let t={path:[],heading:null,level:0,blocks:[],children:[]},r=[t];for(let n of e)if(n.type==="heading"){let i=Number(n.props?.level??1);for(;r.length>1&&r[r.length-1].level>=i;)r.pop();let o=r[r.length-1],u={path:[...o.path,oC(n)],heading:n,level:i,blocks:[],children:[]};o.children.push(u),r.push(u)}else r[r.length-1].blocks.push(n);return t}var uc=(e,t)=>{if(e!=="meta"||!t||typeof t!="object"||!("line"in t||"endLine"in t||"source"in t))return t;let{line:r,endLine:n,source:i,...o}=t;return Object.keys(o).length?o:void 0},ac=(e,t)=>JSON.stringify(e,uc)===JSON.stringify(t,uc);function Mi(e){let t=[e.blocks.map(ar).join("")];for(let r of e.children)t.push(r.path[r.path.length-1]??"",Mi(r));return t.join("")}var ct=(e,t,r)=>({...e,diff:t,...r}),ca=e=>!!(e.diff||e.diffInline)||(e.children??[]).some(ca),uC=new Set(["tabs","tab","details"]),Ch=e=>{let t=e.type==="code"||!e.diffInline,r={...e,...e.children?{children:e.children.map(Ch)}:{}};return!t&&r.diff==="changed"&&delete r.diff,r},aC=class{stats={sectionsAdded:0,sectionsRemoved:0,sectionsChanged:0,sectionsMoved:0,blocksChanged:0};removedByFingerprint=new Map;removedByHeading=new Map;moveClaims=new Map;diff(e,t){let r=oc(e),n=oc(t);return this.indexRemoved(r,n),this.claimMoves(r,n),this.diffSectionInto(r,n)}childKeys(e){let t=new Map,r=new Map;for(let n of e.children){let i=n.path[n.path.length-1]??"",o=t.get(i)??0;t.set(i,o+1),r.set(`${i}#${o}`,n)}return r}claimMoves(e,t){let r=this.childKeys(e),n=this.childKeys(t);for(let[i,o]of n){let u=r.get(i);if(u){this.claimMoves(u,o);continue}let a=o.path[o.path.length-1]??"",l=Mi(o),s=this.removedByFingerprint.get(l);if(s?.claimedAsMove&&(s=void 0),!s){let c,p=0;for(let h of this.removedByHeading.get(a)??[]){if(h.claimedAsMove)continue;let f=rc(Mi(h),l);f>p&&(c=h,p=f)}c&&p>=ic&&(s=c)}s&&(s.claimedAsMove=!0,this.moveClaims.set(o,s),this.claimMoves(s,o))}}indexRemoved(e,t){let r=this.childKeys(e),n=this.childKeys(t);for(let[i,o]of r){let u=n.get(i);if(u)this.indexRemoved(o,u);else{let a=o.path[o.path.length-1]??"";this.removedByFingerprint.set(Mi(o),o);let l=this.removedByHeading.get(a)??[];l.push(o),this.removedByHeading.set(a,l)}}}diffSectionInto(e,t){let r=[],n=this.stats.blocksChanged;r.push(...this.diffBlocks(e.blocks,t.blocks)),this.stats.blocksChanged!==n&&this.stats.sectionsChanged++;let i=this.childKeys(e),o=this.childKeys(t);for(let[u,a]of i)o.has(u)||a.claimedAsMove||(this.stats.sectionsRemoved++,r.push(...this.emitSection(a,"removed")));for(let[u,a]of o){let l=i.get(u);if(l){let s=this.diffSectionInto(l,a),c=s.some(ca);a.heading&&r.push(c?ct(a.heading,"changed"):{...a.heading}),r.push(...s)}else{let s=this.moveClaims.get(a);s?(this.stats.sectionsMoved++,a.heading&&r.push(ct(a.heading,"moved",{diffMovedFrom:s.path})),r.push(...this.diffSectionInto(s,a))):(this.stats.sectionsAdded++,r.push(...this.emitSection(a,"added")))}}return r}emitSection(e,t){let r=[];e.heading&&r.push(ct(e.heading,t));for(let n of e.blocks)r.push(ct(n,t));for(let n of e.children)r.push(...this.emitSection(n,t));return r}coalesceHtml(e){let t=[];for(let r of e){let n=t[t.length-1];r.type==="html"&&n?.type==="html"?t[t.length-1]={...n,html:`${n.html??""}
|
|
3768
3768
|
${r.html??""}`}:t.push(r)}return t}diffBlocks(e,t){let r=this.coalesceHtml(e),n=this.coalesceHtml(t),i=[],o=new Set,u=this.blockKeys(r),a=this.blockKeys(n),l=new Map;u.forEach((x,w)=>{x&&!l.has(x)&&l.set(x,w)});let s=new Map;a.forEach((x,w)=>{if(!x)return;let F=l.get(x);F!==void 0&&!o.has(F)&&(s.set(w,F),o.add(F))});let c=r.map(x=>ar(x)),p=n.map(x=>ar(x)),h=r.map((x,w)=>w).filter(x=>!o.has(x)&&!u[x]),f=n.map((x,w)=>w).filter(x=>!s.has(x)&&!a[x]),g=0;for(let x of f)for(let w=g;w<h.length;w++){let F=h[w];if(r[F].type===n[x].type&&rc(c[F],p[x])>=ic){s.set(x,F),o.add(F),g=w+1;break}}let b=new Map,D=[];for(let x=0;x<r.length;x++)o.has(x)?(D.length&&b.set(x,D),D=[]):D.push(r[x]);let I=D;for(let x=0;x<n.length;x++){let w=s.get(x);if(w!==void 0){for(let F of b.get(w)??[])this.stats.blocksChanged++,i.push(ct(F,"removed"));i.push(this.diffMatchedBlock(r[w],n[x]))}else this.stats.blocksChanged++,i.push(ct(n[x],"added"))}for(let x of I)this.stats.blocksChanged++,i.push(ct(x,"removed"));return i}blockKeys(e){let t=new Map;return e.map(r=>{let n="";if(r.type==="code")n=`code${r.props?.language??""}${r.props?.title??""}`;else if(r.type==="table")n="table";else if(nc.has(r.type))n=`container${r.type}${r.props?.type??""}`;else return"";let i=t.get(n)??0;return t.set(n,i+1),`${n}#${i}`})}diffMatchedBlock(e,t){if(ac(e,t))return{...t};if(t.type==="code")return this.stats.blocksChanged++,ct(t,"changed",{diffPeer:e});if(t.type==="table")return this.diffTable(e,t);if(nc.has(t.type)){let r=this.diffBlocks(e.children??[],t.children??[]),n=JSON.stringify(e.props??{})!==JSON.stringify(t.props??{}),i=r.some(ca),o=e.inline?ao(e.inline):"",u=t.inline?ao(t.inline):"";if(o!==u){this.stats.blocksChanged++;let a=tc(o,u);return{...t,diff:"changed",...a?{diffInline:a}:{},diffPeer:e,children:r}}return uC.has(t.type)&&(i||n)?(this.stats.blocksChanged++,{...t,diff:"changed",children:r}):t.type==="callout"&&(i||n)?(this.stats.blocksChanged++,{...t,diff:"changed",children:r.map(Ch)}):n?(this.stats.blocksChanged++,{...t,diff:"changed",children:r}):{...t,children:r}}if(t.type==="html"){let r=n=>{let i=xh(n);return i.includes("<pre")?i:i.replace(/\s+/g," ").trim()};return r(String(e.html??""))===r(String(t.html??""))?{...t}:(this.stats.blocksChanged++,ct(t,"changed",{diffPeer:e}))}if(iC.has(t.type)||t.inline){this.stats.blocksChanged++;let r=tc(ar(e),ar(t));return ct(t,"changed",{...r?{diffInline:r}:{},diffPeer:e})}return this.stats.blocksChanged++,ct(t,"changed",{diffPeer:e})}diffTable(e,t){let r=c=>{let p=new Map,h=new Map;for(let f of c.children??[])if(!(f.type!=="tbody"&&f.type!=="thead"))for(let g of f.children??[]){let b=`${f.type}:${ar((g.children??[])[0]??g)}`,D=p.get(b)??0;p.set(b,D+1),h.set(`${b}#${D}`,g)}return h},n=r(e),i=r(t),o=new Map;for(let[c,p]of i)o.set(p,c);let u=!1,a=c=>{if(c.type!=="tbody"&&c.type!=="thead")return{...c};let p=(c.children??[]).map(h=>{let f=o.get(h),g=n.get(f);return g?(n.delete(f),ac(g,h)?{...h}:(u=!0,ct(h,"changed",{diffPeer:g}))):(u=!0,ct(h,"added"))});return{...c,children:p}},l=(t.children??[]).map(a),s=[...n.values()];if(s.length){u=!0;let c=[...l].reverse().find(p=>p.type==="tbody");c||(c={type:"tbody",children:[]},l=[...l,c]),c.children=[...c.children??[],...s.map(p=>ct(p,"removed"))]}return u&&this.stats.blocksChanged++,u?{...t,diff:"changed",children:l}:{...t,children:l}}};function lC(e,t){let r=new aC,n=r.diff(e,t),i=r.stats,o=i.sectionsAdded===0&&i.sectionsRemoved===0&&i.sectionsChanged===0&&i.sectionsMoved===0&&i.blocksChanged===0;return{tree:n,stats:i,unchanged:o}}function sC(e){return e.replace(/<db-code-block\b([^>]*)>([\s\S]*?)<\/db-code-block>/g,(t,r,n)=>{let i=/\sdata-lang="([^"]*)"/.exec(r)?.[1],o=/<span[^>]*data-part="title"[^>]*>([^<]*)<\/span>/.exec(n)?.[1],u=/<pre\b[^>]*>\s*<code\b[^>]*>([\s\S]*?)<\/code>\s*<\/pre>/.exec(n)?.[1]??"";return`${o?`<p>${o}</p>
|
|
3769
|
-
`:""}<pre><code${i?` class="language-${i}"`:""}>${u.replace(/<[^>]*>/g,"")}</code></pre>`}).replace(/<a href="#[^"]*"[^>]*aria-hidden="true"[^>]*>¶<\/a>/g,"").replace(/(<img\b[^>]*?)\ssrc="(?:https?:)?\/\/[^"]*"/gi,"$1")}function da(e){return e.flatMap(t=>{let r=t.children?da(t.children):void 0;if(t.type==="tabs")return(r??[]).flatMap((i,o)=>[...i.type==="tab"?[{type:"paragraph",inline:[{type:"text",text:String(i.props?.label??i.props?.title??i.props?.value??`Tab ${o+1}`),bold:!0}]}]:[],...i.type==="tab"?i.children??[]:[i]]);let n=(i,o)=>({type:"details",props:{title:i.props?.label??i.props?.title??`Item ${o+1}`,open:!0},children:i.children??[]});if(t.type==="details"&&t.props&&"sheet"in t.props){let{sheet:i,...o}=t.props;return[{...t,props:o,...r?{children:r}:{}}]}return t.type==="accordion"?(r??[]).map((i,o)=>i.type==="accordion-item"?n(i,o):i):t.type==="accordion-item"?[n({...t,children:r},0)]:[{...t,...r?{children:r}:{}}]})}function cC(){let e=[],t=new Set;return{warnings:e,warn(r,n,i){let o=`${r}\0${n}\0${i??""}`;t.has(o)||(t.add(o),e.push(i===void 0?{code:r,message:n}:{code:r,message:n,line:i}))}}}var Du,dC=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),lc=(Du=String.fromCodePoint)!==null&&Du!==void 0?Du:(e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function pC(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=dC.get(e))!==null&&t!==void 0?t:e}function Dh(e){let t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),r=t.length&-2,n=new Uint16Array(r/2);for(let i=0,o=0;i<r;i+=2){let u=t.charCodeAt(i),a=t.charCodeAt(i+1);n[o++]=u|a<<8}return n}var hC=Dh("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0A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sudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg"),fC=Dh("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg"),at;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(at||(at={}));var Ne;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ne||(Ne={}));var sc=32;function pa(e){return e>=Ne.ZERO&&e<=Ne.NINE}function mC(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_F||e>=Ne.LOWER_A&&e<=Ne.LOWER_F}function gC(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_Z||e>=Ne.LOWER_A&&e<=Ne.LOWER_Z||pa(e)}function AC(e){return e===Ne.EQUALS||gC(e)}var He;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(He||(He={}));var Nt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Nt||(Nt={}));var bC=class{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=He.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nt.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=He.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case He.EntityStart:return e.charCodeAt(t)===Ne.NUM?(this.state=He.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=He.NamedEntity,this.stateNamedEntity(e,t));case He.NumericStart:return this.stateNumericStart(e,t);case He.NumericDecimal:return this.stateNumericDecimal(e,t);case He.NumericHex:return this.stateNumericHex(e,t);case He.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|sc)===Ne.LOWER_X?(this.state=He.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=He.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(pa(r)||mC(r)){let n=r<=Ne.NINE?r-Ne.ZERO:(r|sc)-Ne.LOWER_A+10;this.result=this.result*16+n,this.consumed++,t++}else return this.emitNumericEntity(r,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(pa(r))this.result=this.result*10+(r-Ne.ZERO),this.consumed++,t++;else return this.emitNumericEntity(r,2)}return-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ne.SEMI)this.consumed+=1;else if(this.decodeMode===Nt.Strict)return 0;return this.emitCodePoint(pC(this.result),this.consumed),this.errors&&(e!==Ne.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&at.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(n&at.FLAG13)!==0){let u=(n&at.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let a=n&at.JUMP_TABLE;if(e.charCodeAt(t)!==a)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<u;){if(t>=e.length)return-1;let a=this.runConsumed-1,l=r[this.treeIndex+1+(a>>1)],s=a%2===0?l&255:l>>8&255;if(e.charCodeAt(t)!==s)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(u>>1),n=r[this.treeIndex],i=(n&at.VALUE_LENGTH)>>14}if(t>=e.length)break;let o=e.charCodeAt(t);if(o===Ne.SEMI&&i!==0&&(n&at.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=kC(r,n,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===Nt.Attribute&&(i===0||AC(o))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&at.VALUE_LENGTH)>>14,i!==0){if(o===Ne.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Nt.Strict&&(n&at.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&at.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(t===1?n[e]&~(at.VALUE_LENGTH|at.FLAG13):n[e+1],r),t===3&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case He.NamedEntity:return this.result!==0&&(this.decodeMode!==Nt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case He.NumericDecimal:return this.emitNumericEntity(0,2);case He.NumericHex:return this.emitNumericEntity(0,3);case He.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case He.EntityStart:return 0}}};function kC(e,t,r,n){let i=(t&at.BRANCH_LENGTH)>>7,o=t&at.JUMP_TABLE;if(i===0)return o!==0&&n===o?r:-1;if(o){let s=n-o;return s<0||s>=i?-1:e[r+s]-1}let u=i+1>>1,a=0,l=i-1;for(;a<=l;){let s=a+l>>>1,c=s>>1,p=e[r+c]>>(s&1)*8&255;if(p<n)a=s+1;else if(p>n)l=s-1;else return e[r+u+s]}return-1}var ce;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(ce||(ce={}));var J;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(J||(J={}));function Ut(e){return e===ce.Space||e===ce.NewLine||e===ce.Tab||e===ce.FormFeed||e===ce.CarriageReturn}function Fi(e){return e===ce.Slash||e===ce.Gt||Ut(e)}function vC(e){return e>=ce.LowerA&&e<=ce.LowerZ||e>=ce.UpperA&&e<=ce.UpperZ}var zt;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(zt||(zt={}));var Ke={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},yC=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},r){this.cbs=r,this.state=J.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=J.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new bC(e?fC:hC,(n,i)=>this.emitCodePoint(n,i))}reset(){this.state=J.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=J.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===ce.Lt||!this.decodeEntities&&this.fastForwardTo(ce.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=J.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===ce.Amp&&this.startEntity()}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?Fi(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=J.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===ce.Gt||Ut(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let r=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=r}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ke.TitleEnd?this.decodeEntities&&e===ce.Amp&&this.startEntity():this.fastForwardTo(ce.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===ce.Lt)}stateCDATASequence(e){e===Ke.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ke.Cdata.length&&(this.state=J.InCommentLike,this.currentSequence=Ke.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=J.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=J.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!Fi(e):vC(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=J.SpecialStartSequence}stateBeforeTagName(e){if(e===ce.ExclamationMark)this.state=J.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===ce.Questionmark)this.state=J.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=e|32;this.sectionStart=this.index,this.xmlMode?this.state=J.InTagName:t===Ke.ScriptEnd[2]?this.state=J.BeforeSpecialS:t===Ke.TitleEnd[2]||t===Ke.XmpEnd[2]?this.state=J.BeforeSpecialT:this.state=J.InTagName}else e===ce.Slash?this.state=J.BeforeClosingTagName:(this.state=J.Text,this.stateText(e))}stateInTagName(e){Fi(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){Ut(e)||(e===ce.Gt?this.state=J.Text:(this.state=this.isTagStartChar(e)?J.InClosingTagName:J.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===ce.Gt||Ut(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.state=J.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===ce.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=J.InSpecialTag,this.sequenceIndex=0):this.state=J.Text,this.sectionStart=this.index+1):e===ce.Slash?this.state=J.InSelfClosingTag:Ut(e)||(this.state=J.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===ce.Gt?(this.cbs.onselfclosingtag(this.index),this.state=J.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ut(e)||(this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===ce.Eq||Fi(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=J.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===ce.Eq?this.state=J.BeforeAttributeValue:e===ce.Slash||e===ce.Gt?(this.cbs.onattribend(zt.NoValue,this.sectionStart),this.sectionStart=-1,this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):Ut(e)||(this.cbs.onattribend(zt.NoValue,this.sectionStart),this.state=J.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===ce.DoubleQuote?(this.state=J.InAttributeValueDq,this.sectionStart=this.index+1):e===ce.SingleQuote?(this.state=J.InAttributeValueSq,this.sectionStart=this.index+1):Ut(e)||(this.sectionStart=this.index,this.state=J.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===ce.DoubleQuote?zt.Double:zt.Single,this.index+1),this.state=J.BeforeAttributeName):this.decodeEntities&&e===ce.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,ce.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,ce.SingleQuote)}stateInAttributeValueNoQuotes(e){Ut(e)||e===ce.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(zt.Unquoted,this.index),this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===ce.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===ce.OpeningSquareBracket?(this.state=J.CDATASequence,this.sequenceIndex=0):this.state=e===ce.Dash?J.BeforeComment:J.InDeclaration}stateInDeclaration(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===ce.Dash?(this.state=J.InCommentLike,this.currentSequence=Ke.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=J.InDeclaration}stateInSpecialComment(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=J.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=e|32;t===Ke.ScriptEnd[3]?this.startSpecial(Ke.ScriptEnd,4):t===Ke.StyleEnd[3]?this.startSpecial(Ke.StyleEnd,4):(this.state=J.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){switch(e|32){case Ke.TitleEnd[3]:{this.startSpecial(Ke.TitleEnd,4);break}case Ke.TextareaEnd[3]:{this.startSpecial(Ke.TextareaEnd,4);break}case Ke.XmpEnd[3]:{this.startSpecial(Ke.XmpEnd,4);break}default:this.state=J.InTagName,this.stateInTagName(e)}}startEntity(){this.baseState=this.state,this.state=J.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Nt.Strict:this.baseState===J.Text||this.baseState===J.InSpecialTag?Nt.Legacy:Nt.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&(this.index-=1);else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===ce.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===J.Text||this.state===J.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===J.InAttributeValueDq||this.state===J.InAttributeValueSq||this.state===J.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case J.Text:{this.stateText(e);break}case J.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case J.InSpecialTag:{this.stateInSpecialTag(e);break}case J.CDATASequence:{this.stateCDATASequence(e);break}case J.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case J.InAttributeName:{this.stateInAttributeName(e);break}case J.InCommentLike:{this.stateInCommentLike(e);break}case J.InSpecialComment:{this.stateInSpecialComment(e);break}case J.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case J.InTagName:{this.stateInTagName(e);break}case J.InClosingTagName:{this.stateInClosingTagName(e);break}case J.BeforeTagName:{this.stateBeforeTagName(e);break}case J.AfterAttributeName:{this.stateAfterAttributeName(e);break}case J.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case J.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case J.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case J.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case J.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case J.BeforeSpecialT:{this.stateBeforeSpecialT(e);break}case J.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case J.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case J.InDeclaration:{this.stateInDeclaration(e);break}case J.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case J.BeforeComment:{this.stateBeforeComment(e);break}case J.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case J.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===J.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===J.InCommentLike?this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===J.InTagName||this.state===J.BeforeAttributeName||this.state===J.BeforeAttributeValue||this.state===J.AfterAttributeName||this.state===J.InAttributeName||this.state===J.InAttributeValueSq||this.state===J.InAttributeValueDq||this.state===J.InAttributeValueNq||this.state===J.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==J.Text&&this.baseState!==J.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}},Qr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Ie=new Set(["p"]),cc=new Set(["thead","tbody"]),dc=new Set(["dd","dt"]),pc=new Set(["rt","rp"]),wC=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Ie],["h1",Ie],["h2",Ie],["h3",Ie],["h4",Ie],["h5",Ie],["h6",Ie],["select",Qr],["input",Qr],["output",Qr],["button",Qr],["datalist",Qr],["textarea",Qr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",dc],["dt",dc],["address",Ie],["article",Ie],["aside",Ie],["blockquote",Ie],["details",Ie],["div",Ie],["dl",Ie],["fieldset",Ie],["figcaption",Ie],["figure",Ie],["footer",Ie],["form",Ie],["header",Ie],["hr",Ie],["main",Ie],["nav",Ie],["ol",Ie],["pre",Ie],["section",Ie],["table",Ie],["ul",Ie],["rt",pc],["rp",pc],["tbody",cc],["tfoot",cc]]),xC=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),hc=new Set(["math","svg"]),fc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),CC=/\s|\//,DC=class{constructor(e,t={}){var r,n,i,o,u,a;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(n=t.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(i=t.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((o=t.Tokenizer)!==null&&o!==void 0?o:yC)(this.options,this),this.foreignContext=[!this.htmlMode],(a=(u=this.cbs).onparserinit)===null||a===void 0||a.call(u,this)}ontext(e,t){var r,n;let i=this.getSlice(e,t);this.endIndex=t-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,i),this.startIndex=t}ontextentity(e,t){var r,n;this.endIndex=t-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,lc(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&xC.has(e)}onopentagname(e,t){this.endIndex=t;let r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(e){var t,r,n,i;this.openTagStart=this.startIndex,this.tagname=e;let o=this.htmlMode&&wC.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){let u=this.stack.shift();(r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,u,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(hc.has(e)?this.foreignContext.unshift(!0):fc.has(e)&&this.foreignContext.unshift(!1))),(i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&((r=(t=this.cbs).onopentag)===null||r===void 0||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var r,n,i,o,u,a,l,s;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),this.htmlMode&&(hc.has(c)||fc.has(c))&&this.foreignContext.shift(),this.isVoidElement(c))this.htmlMode&&c==="br"&&((o=(i=this.cbs).onopentagname)===null||o===void 0||o.call(i,"br"),(a=(u=this.cbs).onopentag)===null||a===void 0||a.call(u,"br",{},!0),(s=(l=this.cbs).onclosetag)===null||s===void 0||s.call(l,"br",!1));else{let p=this.stack.indexOf(c);if(p!==-1)for(let h=0;h<=p;h++){let f=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,f,h!==p)}else this.htmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,r;let n=this.tagname;this.endOpenTag(e),this.stack[0]===n&&((r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,n,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;let r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=lc(e)}onattribend(e,t){var r,n;this.endIndex=t,(n=(r=this.cbs).onattribute)===null||n===void 0||n.call(r,this.attribname,this.attribvalue,e===zt.Double?'"':e===zt.Single?"'":e===zt.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let t=e.search(CC),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${n}`,`!${r}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${n}`,`?${r}`)}this.startIndex=t+1}oncomment(e,t,r){var n,i,o,u;this.endIndex=t,(i=(n=this.cbs).oncomment)===null||i===void 0||i.call(n,this.getSlice(e,t-r)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=t+1}oncdata(e,t,r){var n,i,o,u,a,l,s,c,p,h;this.endIndex=t;let f=this.getSlice(e,t-r);!this.htmlMode||this.options.recognizeCDATA?((i=(n=this.cbs).oncdatastart)===null||i===void 0||i.call(n),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,f),(l=(a=this.cbs).oncdataend)===null||l===void 0||l.call(a)):((c=(s=this.cbs).oncomment)===null||c===void 0||c.call(s,`[CDATA[${f}]]`),(h=(p=this.cbs).oncommentend)===null||h===void 0||h.call(p)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)}reset(){var e,t,r,n;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(r=this.cbs).onparserinit)===null||n===void 0||n.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}},St;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(St||(St={}));var d8=St.Root,p8=St.Text,h8=St.Directive,f8=St.Comment,m8=St.Script,g8=St.Style,A8=St.Tag,b8=St.CDATA,k8=St.Doctype,v8=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),y8=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),mc;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(mc||(mc={}));var Eu=new Set(["a","abbr","b","bdi","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","mark","ol","p","pre","q","rp","rt","ruby","s","samp","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","wbr"]),Eh=new Set(["script","style","iframe","object","embed","template","noscript","svg","math","frame","frameset","noembed","textarea","select","button","form","input"]),$i=new Set(["br","col","hr","img","wbr"]),EC=new Set(["id","title","lang","dir"]),BC={a:new Set(["href","rel"]),img:new Set(["src","alt","width","height"]),td:new Set(["colspan","rowspan","headers"]),th:new Set(["colspan","rowspan","headers","scope"]),col:new Set(["span"]),colgroup:new Set(["span"]),ol:new Set(["start","reversed","type"]),li:new Set(["value"]),time:new Set(["datetime"]),details:new Set(["open"]),q:new Set(["cite"]),blockquote:new Set(["cite"]),del:new Set(["cite","datetime"]),ins:new Set(["cite","datetime"])},FC=new Set(["href","src","cite"]),$C=new Set(["code","math","math-block","diagram"]),_C=new Set(["href","src","url","link","poster","image","logo"]),SC=e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),IC=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Bh=/^(db-|tab-\d|tabpanel-\d|acc-\d|accpanel-\d|fn-|fnref-)/;function un(e,t){let r=e.replace(/[\u0000- \u007f-\u009f]/g,"").toLowerCase(),n=/^([a-z][a-z0-9+.-]*):/.exec(r)?.[1];return n?n==="http"||n==="https"||(n==="mailto"||n==="tel")&&t==="link"?!0:n==="data"&&t==="image"?/^data:image\/(png|jpeg|gif|webp);/.test(r):!1:!r.startsWith("//")||t==="link"}function ol(e,t){let r=/^\s*<\/([a-zA-Z][a-zA-Z0-9]*)\s*>\s*$/.exec(e);if(r){let a=r[1].toLowerCase();return Eu.has(a)&&!$i.has(a)?`</${a}>`:""}let n="",i=0,o=new Set,u=new DC({onopentag(a,l){if(i>0||Eh.has(a)){$i.has(a)||i++,o.add(a);return}if(!Eu.has(a)){o.add(a);return}let s=BC[a],c="";for(let[p,h]of Object.entries(l)){let f=p.toLowerCase();if(!EC.has(f)&&!s?.has(f)){(f.startsWith("on")||f==="style"||f==="class"||f==="srcset")&&o.add(`${a}[${f}]`);continue}if(f==="id"&&Bh.test(h)){o.add(`${a}[id=${h.slice(0,40)}]`);continue}if(FC.has(f)&&!un(h,a==="img"&&f==="src"?"image":"link")){o.add(`${a}[${f}=${h.slice(0,40)}]`);continue}a==="img"&&f==="src"&&/^(https?:)?\/\//i.test(h)&&t("image-remote",`"${h.slice(0,80)}" (raw HTML): remote images are not loaded`),c+=` ${f}="${SC(h)}"`}n+=`<${a}${c}>`},ontext(a){i===0&&(n+=IC(a))},onclosetag(a,l){if(i>0){$i.has(a)||i--;return}Eu.has(a)&&!$i.has(a)&&!l&&(n+=`</${a}>`)}},{decodeEntities:!0,lowerCaseTags:!0,lowerCaseAttributeNames:!0,recognizeSelfClosing:!0});return u.write(e),u.end(),o.size&&t("html-sanitized",`raw HTML: removed ${[...o].join(", ")}`),n}function Fh(e,t,r){if(!e)return e;let n={};for(let[i,o]of Object.entries(e)){if(i==="class"||i==="className"||i==="style"||i==="svg"||i.startsWith("on")||i==="copyText"||i.startsWith("data-")||i.startsWith("aria-")){r("attribute-dropped",`${t}: dropped the "${i}" attribute (not allowed in a sanitized page)`);continue}if(i==="id"&&typeof o=="string"&&Bh.test(o)&&!t.startsWith("footnote")){r("attribute-dropped",`${t}: dropped id="${o.slice(0,40)}" (reserved for the page's own components)`);continue}if(_C.has(i)&&typeof o=="string"&&!un(o,i==="src"||i==="poster"||i==="image"||i==="logo"?"image":"link")){r("unsafe-url",`${t}: removed ${i}="${o.slice(0,60)}" (only http, https, mailto and relative links are allowed)`);continue}n[i]=o}return n}function TC(e){let t=/^\s*<([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.exec(e);if(!t)return;let r=t[1].toLowerCase();if(!(!Eh.has(r)||/\/>\s*$/.test(t[0])))return new RegExp(`</${r}\\s*>`,"i").test(e)?void 0:r}function $h(e,t){if(!e)return e;let r;return e.filter(n=>{let i=n.type==="html-inline"?String(n.html??""):"";if(r)return new RegExp(`^\\s*</${r}\\s*>`,"i").test(i)&&(r=void 0),!1;if(i){let o=TC(i);if(o)return t("html-sanitized",`raw HTML: removed ${o}`),r=o,!1}return!0}).map(n=>{let i={...n};return i.type==="html-inline"&&typeof i.html=="string"&&(i.html=ol(i.html,t)),i.type==="link"&&typeof i.href=="string"&&!un(i.href,"link")&&(t("unsafe-url",`link: removed href="${i.href.slice(0,60)}"`),i.href="#"),i.type==="image"&&typeof i.src=="string"&&!un(i.src,"image")&&(t("unsafe-url",`image: removed src="${i.src.slice(0,60)}"`),i.src=""),i.attrs&&typeof i.attrs=="object"&&(i.attrs=Fh(i.attrs,i.type,t)),Array.isArray(i.children)&&(i.children=$h(i.children,t)),i})}function ha(e,t){return e.map(r=>{let n={...r};return typeof n.html=="string"&&!$C.has(n.type)&&(n.html=ol(n.html,t)),n.props=Fh(n.props,n.type,t),n.inline&&(n.inline=$h(n.inline,t)),n.children&&(n.children=ha(n.children,t)),n})}var _h="0.2.0-beta.172",yn=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),LC=15e5,gc=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Ac="(function(){var r=document.documentElement,m=matchMedia('(prefers-color-scheme: dark)');function a(){var t=r.getAttribute('data-theme');r.classList.toggle('dark',t?t==='dark':m.matches)}a();try{m.addEventListener('change',a);new MutationObserver(a).observe(r,{attributes:true,attributeFilter:['data-theme']})}catch(e){}})()";function Sh(e){let t="";for(let r=0;r<e.length;r+=32768)t+=String.fromCharCode(...e.subarray(r,r+32768));return btoa(t)}async function bc(e){let t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Sh(new Uint8Array(t))}function Ih(e){return(e??[]).map(t=>"text"in t&&typeof t.text=="string"?t.text:"children"in t?Ih(t.children):"").join("")}function fa(e,t){return(e??[]).some(r=>t.has(r.type)||fa(r.children,t)||(r.inline??[]).some(n=>t.has(n.type)))}async function pn(e,t={}){let r={highlight:!1,math:!1,theme:"default",js:"auto",sanitize:!0,...Object.fromEntries(Object.entries(t).filter(([,m])=>m!==void 0))};r.exportable&&Object.assign(r,{js:"none",sanitize:!0});let{warn:n,warnings:i}=cC(),o=ro(e,{diagnostics:!0,sourceLines:r.sourceLines===!0}),u=new Set;for(let m of[...o.diagnostics??[]].sort((v,E)=>v.line-E.line))n(`syntax-${m.code}`,m.message,m.line),m.code==="unknown-container"&&m.name&&u.add(`:::${m.name}`);let a=o.frontmatter??{},l=o.tree;r.sanitize&&(l=ha(l,n)),r.js==="none"&&(l=da(l));let s;if(typeof r.compareWith=="string"){let m=ro(r.compareWith).tree;r.sanitize&&(m=ha(m,()=>{})),r.js==="none"&&(m=da(m));let v=lC(m,l);l=v.tree,s={unchanged:v.unchanged,...v.stats}}let c=e.replace(/^(`{3,}|~{3,})[^\n]*\n[\s\S]*?^\1[^\n]*$/gm,"").replace(/`[^`\n]*`/g,"");/\{\{[^}]*\}\}|\{%[^%]*%\}/.test(c)&&n("template-raw","template syntax ({{ }} or {% %}) is left as text: a single page runs no templates");let p=await MC(e);for(let[m,v]of p)n("data-needs-project",`::${v}: ${Gp}`,m);!r.math&&fa(l,new Set(["math","math-block"]))&&n("math-raw",'math is left as LaTeX source (pass math: "mathml" to render it)');let h;r.highlight&&(h=await(await import("./chunks/highlight-L4SOPVFD-IJKQUO2Y.mjs")).createHighlighter({cacheChars:0,langs:Mx(l)}));let f;if(r.math==="mathml"){let m=(await import("./chunks/katex-7RASWIHN-GFN7OKEB.mjs")).default;f=(v,E)=>m.renderToString(v,{displayMode:E,throwOnError:!1,output:"mathml"})}let g=tC({link(m){return r.sanitize&&!un(m,"link")?(n("unsafe-url",`removed href="${m.slice(0,60)}"`),"#"):(/^(https?:|mailto:|tel:)/i.test(m)||m.startsWith("#")||n("link-unresolvable",`"${m}": a single page has no other pages; use an absolute https:// URL or an #anchor`),m)},asset(m){if(!m)return m;if(r.sanitize&&!un(m,"image"))return n("unsafe-url",`removed src="${m.slice(0,60)}"`),"";if(/^data:/i.test(m))return m;if(/^(https?:)?\/\//i.test(m))return n("image-remote",`"${m}": remote images are not loaded (the page fetches nothing); download it next to the document`),"";let v=/\.([a-z0-9]+)(?:[?#].*)?$/i.exec(m)?.[1]?.toLowerCase();if(v&&!gc.has(v))return n("image-type",`"${m}" is not an image type the page can embed (${[...gc].join(", ")})`),"";let E=r.readAsset?.(m);return E?(E.bytes.length>LC&&n("image-large",`"${m}" is ${Math.round(E.bytes.length/1024)} KB, embedded in the page`),`data:${E.mime};base64,${Sh(E.bytes)}`):(n("image-missing",`"${m}" was not found next to the document, or may not be read`),"")},highlighter:h,math:f,reservedIds:["db-content"],codeBlockTitle:"auto",dataLines:r.sourceLines===!0,rawHtml:r.sanitize?m=>ol(m,n):void 0}),b=l.find(m=>m.type==="heading"&&Number(m.props?.level)===1),D=typeof a.title=="string"?a.title:b?Ih(b.inline):"Document",I=typeof a.description=="string"?a.description:void 0,x=we(l,g);b||(x=`<h1 class="mb-2 text-3xl font-bold tracking-tight">${yn(D)}</h1>
|
|
3769
|
+
`:""}<pre><code${i?` class="language-${i}"`:""}>${u.replace(/<[^>]*>/g,"")}</code></pre>`}).replace(/<a href="#[^"]*"[^>]*aria-hidden="true"[^>]*>¶<\/a>/g,"").replace(/(<img\b[^>]*?)\ssrc="(?:https?:)?\/\/[^"]*"/gi,"$1")}function da(e){return e.flatMap(t=>{let r=t.children?da(t.children):void 0;if(t.type==="tabs")return(r??[]).flatMap((i,o)=>[...i.type==="tab"?[{type:"paragraph",inline:[{type:"text",text:String(i.props?.label??i.props?.title??i.props?.value??`Tab ${o+1}`),bold:!0}]}]:[],...i.type==="tab"?i.children??[]:[i]]);let n=(i,o)=>({type:"details",props:{title:i.props?.label??i.props?.title??`Item ${o+1}`,open:!0},children:i.children??[]});if(t.type==="details"&&t.props&&"sheet"in t.props){let{sheet:i,...o}=t.props;return[{...t,props:o,...r?{children:r}:{}}]}return t.type==="accordion"?(r??[]).map((i,o)=>i.type==="accordion-item"?n(i,o):i):t.type==="accordion-item"?[n({...t,children:r},0)]:[{...t,...r?{children:r}:{}}]})}function cC(){let e=[],t=new Set;return{warnings:e,warn(r,n,i){let o=`${r}\0${n}\0${i??""}`;t.has(o)||(t.add(o),e.push(i===void 0?{code:r,message:n}:{code:r,message:n,line:i}))}}}var Du,dC=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),lc=(Du=String.fromCodePoint)!==null&&Du!==void 0?Du:(e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function pC(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=dC.get(e))!==null&&t!==void 0?t:e}function Dh(e){let t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),r=t.length&-2,n=new Uint16Array(r/2);for(let i=0,o=0;i<r;i+=2){let u=t.charCodeAt(i),a=t.charCodeAt(i+1);n[o++]=u|a<<8}return n}var hC=Dh("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA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AOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg"),fC=Dh("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg"),at;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(at||(at={}));var Ne;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ne||(Ne={}));var sc=32;function pa(e){return e>=Ne.ZERO&&e<=Ne.NINE}function mC(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_F||e>=Ne.LOWER_A&&e<=Ne.LOWER_F}function gC(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_Z||e>=Ne.LOWER_A&&e<=Ne.LOWER_Z||pa(e)}function AC(e){return e===Ne.EQUALS||gC(e)}var He;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(He||(He={}));var Nt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Nt||(Nt={}));var bC=class{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=He.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nt.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=He.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case He.EntityStart:return e.charCodeAt(t)===Ne.NUM?(this.state=He.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=He.NamedEntity,this.stateNamedEntity(e,t));case He.NumericStart:return this.stateNumericStart(e,t);case He.NumericDecimal:return this.stateNumericDecimal(e,t);case He.NumericHex:return this.stateNumericHex(e,t);case He.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|sc)===Ne.LOWER_X?(this.state=He.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=He.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(pa(r)||mC(r)){let n=r<=Ne.NINE?r-Ne.ZERO:(r|sc)-Ne.LOWER_A+10;this.result=this.result*16+n,this.consumed++,t++}else return this.emitNumericEntity(r,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(pa(r))this.result=this.result*10+(r-Ne.ZERO),this.consumed++,t++;else return this.emitNumericEntity(r,2)}return-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ne.SEMI)this.consumed+=1;else if(this.decodeMode===Nt.Strict)return 0;return this.emitCodePoint(pC(this.result),this.consumed),this.errors&&(e!==Ne.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&at.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(n&at.FLAG13)!==0){let u=(n&at.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let a=n&at.JUMP_TABLE;if(e.charCodeAt(t)!==a)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<u;){if(t>=e.length)return-1;let a=this.runConsumed-1,l=r[this.treeIndex+1+(a>>1)],s=a%2===0?l&255:l>>8&255;if(e.charCodeAt(t)!==s)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(u>>1),n=r[this.treeIndex],i=(n&at.VALUE_LENGTH)>>14}if(t>=e.length)break;let o=e.charCodeAt(t);if(o===Ne.SEMI&&i!==0&&(n&at.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=kC(r,n,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===Nt.Attribute&&(i===0||AC(o))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&at.VALUE_LENGTH)>>14,i!==0){if(o===Ne.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Nt.Strict&&(n&at.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&at.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(t===1?n[e]&~(at.VALUE_LENGTH|at.FLAG13):n[e+1],r),t===3&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case He.NamedEntity:return this.result!==0&&(this.decodeMode!==Nt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case He.NumericDecimal:return this.emitNumericEntity(0,2);case He.NumericHex:return this.emitNumericEntity(0,3);case He.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case He.EntityStart:return 0}}};function kC(e,t,r,n){let i=(t&at.BRANCH_LENGTH)>>7,o=t&at.JUMP_TABLE;if(i===0)return o!==0&&n===o?r:-1;if(o){let s=n-o;return s<0||s>=i?-1:e[r+s]-1}let u=i+1>>1,a=0,l=i-1;for(;a<=l;){let s=a+l>>>1,c=s>>1,p=e[r+c]>>(s&1)*8&255;if(p<n)a=s+1;else if(p>n)l=s-1;else return e[r+u+s]}return-1}var ce;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(ce||(ce={}));var J;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(J||(J={}));function Ut(e){return e===ce.Space||e===ce.NewLine||e===ce.Tab||e===ce.FormFeed||e===ce.CarriageReturn}function Fi(e){return e===ce.Slash||e===ce.Gt||Ut(e)}function vC(e){return e>=ce.LowerA&&e<=ce.LowerZ||e>=ce.UpperA&&e<=ce.UpperZ}var zt;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(zt||(zt={}));var Ke={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},yC=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},r){this.cbs=r,this.state=J.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=J.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new bC(e?fC:hC,(n,i)=>this.emitCodePoint(n,i))}reset(){this.state=J.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=J.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===ce.Lt||!this.decodeEntities&&this.fastForwardTo(ce.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=J.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===ce.Amp&&this.startEntity()}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?Fi(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=J.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===ce.Gt||Ut(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let r=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=r}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ke.TitleEnd?this.decodeEntities&&e===ce.Amp&&this.startEntity():this.fastForwardTo(ce.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===ce.Lt)}stateCDATASequence(e){e===Ke.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ke.Cdata.length&&(this.state=J.InCommentLike,this.currentSequence=Ke.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=J.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=J.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!Fi(e):vC(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=J.SpecialStartSequence}stateBeforeTagName(e){if(e===ce.ExclamationMark)this.state=J.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===ce.Questionmark)this.state=J.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=e|32;this.sectionStart=this.index,this.xmlMode?this.state=J.InTagName:t===Ke.ScriptEnd[2]?this.state=J.BeforeSpecialS:t===Ke.TitleEnd[2]||t===Ke.XmpEnd[2]?this.state=J.BeforeSpecialT:this.state=J.InTagName}else e===ce.Slash?this.state=J.BeforeClosingTagName:(this.state=J.Text,this.stateText(e))}stateInTagName(e){Fi(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){Ut(e)||(e===ce.Gt?this.state=J.Text:(this.state=this.isTagStartChar(e)?J.InClosingTagName:J.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===ce.Gt||Ut(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.state=J.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===ce.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=J.InSpecialTag,this.sequenceIndex=0):this.state=J.Text,this.sectionStart=this.index+1):e===ce.Slash?this.state=J.InSelfClosingTag:Ut(e)||(this.state=J.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===ce.Gt?(this.cbs.onselfclosingtag(this.index),this.state=J.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ut(e)||(this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===ce.Eq||Fi(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=J.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===ce.Eq?this.state=J.BeforeAttributeValue:e===ce.Slash||e===ce.Gt?(this.cbs.onattribend(zt.NoValue,this.sectionStart),this.sectionStart=-1,this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):Ut(e)||(this.cbs.onattribend(zt.NoValue,this.sectionStart),this.state=J.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===ce.DoubleQuote?(this.state=J.InAttributeValueDq,this.sectionStart=this.index+1):e===ce.SingleQuote?(this.state=J.InAttributeValueSq,this.sectionStart=this.index+1):Ut(e)||(this.sectionStart=this.index,this.state=J.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===ce.DoubleQuote?zt.Double:zt.Single,this.index+1),this.state=J.BeforeAttributeName):this.decodeEntities&&e===ce.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,ce.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,ce.SingleQuote)}stateInAttributeValueNoQuotes(e){Ut(e)||e===ce.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(zt.Unquoted,this.index),this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===ce.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===ce.OpeningSquareBracket?(this.state=J.CDATASequence,this.sequenceIndex=0):this.state=e===ce.Dash?J.BeforeComment:J.InDeclaration}stateInDeclaration(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===ce.Dash?(this.state=J.InCommentLike,this.currentSequence=Ke.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=J.InDeclaration}stateInSpecialComment(e){(e===ce.Gt||this.fastForwardTo(ce.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=J.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=e|32;t===Ke.ScriptEnd[3]?this.startSpecial(Ke.ScriptEnd,4):t===Ke.StyleEnd[3]?this.startSpecial(Ke.StyleEnd,4):(this.state=J.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){switch(e|32){case Ke.TitleEnd[3]:{this.startSpecial(Ke.TitleEnd,4);break}case Ke.TextareaEnd[3]:{this.startSpecial(Ke.TextareaEnd,4);break}case Ke.XmpEnd[3]:{this.startSpecial(Ke.XmpEnd,4);break}default:this.state=J.InTagName,this.stateInTagName(e)}}startEntity(){this.baseState=this.state,this.state=J.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Nt.Strict:this.baseState===J.Text||this.baseState===J.InSpecialTag?Nt.Legacy:Nt.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&(this.index-=1);else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===ce.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===J.Text||this.state===J.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===J.InAttributeValueDq||this.state===J.InAttributeValueSq||this.state===J.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case J.Text:{this.stateText(e);break}case J.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case J.InSpecialTag:{this.stateInSpecialTag(e);break}case J.CDATASequence:{this.stateCDATASequence(e);break}case J.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case J.InAttributeName:{this.stateInAttributeName(e);break}case J.InCommentLike:{this.stateInCommentLike(e);break}case J.InSpecialComment:{this.stateInSpecialComment(e);break}case J.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case J.InTagName:{this.stateInTagName(e);break}case J.InClosingTagName:{this.stateInClosingTagName(e);break}case J.BeforeTagName:{this.stateBeforeTagName(e);break}case J.AfterAttributeName:{this.stateAfterAttributeName(e);break}case J.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case J.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case J.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case J.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case J.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case J.BeforeSpecialT:{this.stateBeforeSpecialT(e);break}case J.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case J.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case J.InDeclaration:{this.stateInDeclaration(e);break}case J.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case J.BeforeComment:{this.stateBeforeComment(e);break}case J.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case J.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===J.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===J.InCommentLike?this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===J.InTagName||this.state===J.BeforeAttributeName||this.state===J.BeforeAttributeValue||this.state===J.AfterAttributeName||this.state===J.InAttributeName||this.state===J.InAttributeValueSq||this.state===J.InAttributeValueDq||this.state===J.InAttributeValueNq||this.state===J.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==J.Text&&this.baseState!==J.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}},Qr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Ie=new Set(["p"]),cc=new Set(["thead","tbody"]),dc=new Set(["dd","dt"]),pc=new Set(["rt","rp"]),wC=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Ie],["h1",Ie],["h2",Ie],["h3",Ie],["h4",Ie],["h5",Ie],["h6",Ie],["select",Qr],["input",Qr],["output",Qr],["button",Qr],["datalist",Qr],["textarea",Qr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",dc],["dt",dc],["address",Ie],["article",Ie],["aside",Ie],["blockquote",Ie],["details",Ie],["div",Ie],["dl",Ie],["fieldset",Ie],["figcaption",Ie],["figure",Ie],["footer",Ie],["form",Ie],["header",Ie],["hr",Ie],["main",Ie],["nav",Ie],["ol",Ie],["pre",Ie],["section",Ie],["table",Ie],["ul",Ie],["rt",pc],["rp",pc],["tbody",cc],["tfoot",cc]]),xC=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),hc=new Set(["math","svg"]),fc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),CC=/\s|\//,DC=class{constructor(e,t={}){var r,n,i,o,u,a;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(n=t.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(i=t.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((o=t.Tokenizer)!==null&&o!==void 0?o:yC)(this.options,this),this.foreignContext=[!this.htmlMode],(a=(u=this.cbs).onparserinit)===null||a===void 0||a.call(u,this)}ontext(e,t){var r,n;let i=this.getSlice(e,t);this.endIndex=t-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,i),this.startIndex=t}ontextentity(e,t){var r,n;this.endIndex=t-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,lc(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&xC.has(e)}onopentagname(e,t){this.endIndex=t;let r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(e){var t,r,n,i;this.openTagStart=this.startIndex,this.tagname=e;let o=this.htmlMode&&wC.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){let u=this.stack.shift();(r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,u,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(hc.has(e)?this.foreignContext.unshift(!0):fc.has(e)&&this.foreignContext.unshift(!1))),(i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&((r=(t=this.cbs).onopentag)===null||r===void 0||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var r,n,i,o,u,a,l,s;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),this.htmlMode&&(hc.has(c)||fc.has(c))&&this.foreignContext.shift(),this.isVoidElement(c))this.htmlMode&&c==="br"&&((o=(i=this.cbs).onopentagname)===null||o===void 0||o.call(i,"br"),(a=(u=this.cbs).onopentag)===null||a===void 0||a.call(u,"br",{},!0),(s=(l=this.cbs).onclosetag)===null||s===void 0||s.call(l,"br",!1));else{let p=this.stack.indexOf(c);if(p!==-1)for(let h=0;h<=p;h++){let f=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,f,h!==p)}else this.htmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,r;let n=this.tagname;this.endOpenTag(e),this.stack[0]===n&&((r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,n,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;let r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=lc(e)}onattribend(e,t){var r,n;this.endIndex=t,(n=(r=this.cbs).onattribute)===null||n===void 0||n.call(r,this.attribname,this.attribvalue,e===zt.Double?'"':e===zt.Single?"'":e===zt.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let t=e.search(CC),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${n}`,`!${r}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${n}`,`?${r}`)}this.startIndex=t+1}oncomment(e,t,r){var n,i,o,u;this.endIndex=t,(i=(n=this.cbs).oncomment)===null||i===void 0||i.call(n,this.getSlice(e,t-r)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=t+1}oncdata(e,t,r){var n,i,o,u,a,l,s,c,p,h;this.endIndex=t;let f=this.getSlice(e,t-r);!this.htmlMode||this.options.recognizeCDATA?((i=(n=this.cbs).oncdatastart)===null||i===void 0||i.call(n),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,f),(l=(a=this.cbs).oncdataend)===null||l===void 0||l.call(a)):((c=(s=this.cbs).oncomment)===null||c===void 0||c.call(s,`[CDATA[${f}]]`),(h=(p=this.cbs).oncommentend)===null||h===void 0||h.call(p)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)}reset(){var e,t,r,n;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(r=this.cbs).onparserinit)===null||n===void 0||n.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}},St;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(St||(St={}));var p8=St.Root,h8=St.Text,f8=St.Directive,m8=St.Comment,g8=St.Script,A8=St.Style,b8=St.Tag,k8=St.CDATA,v8=St.Doctype,y8=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),w8=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),mc;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(mc||(mc={}));var Eu=new Set(["a","abbr","b","bdi","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","mark","ol","p","pre","q","rp","rt","ruby","s","samp","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","wbr"]),Eh=new Set(["script","style","iframe","object","embed","template","noscript","svg","math","frame","frameset","noembed","textarea","select","button","form","input"]),$i=new Set(["br","col","hr","img","wbr"]),EC=new Set(["id","title","lang","dir"]),BC={a:new Set(["href","rel"]),img:new Set(["src","alt","width","height"]),td:new Set(["colspan","rowspan","headers"]),th:new Set(["colspan","rowspan","headers","scope"]),col:new Set(["span"]),colgroup:new Set(["span"]),ol:new Set(["start","reversed","type"]),li:new Set(["value"]),time:new Set(["datetime"]),details:new Set(["open"]),q:new Set(["cite"]),blockquote:new Set(["cite"]),del:new Set(["cite","datetime"]),ins:new Set(["cite","datetime"])},FC=new Set(["href","src","cite"]),$C=new Set(["code","math","math-block","diagram"]),_C=new Set(["href","src","url","link","poster","image","logo"]),SC=e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),IC=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Bh=/^(db-|tab-\d|tabpanel-\d|acc-\d|accpanel-\d|fn-|fnref-)/;function un(e,t){let r=e.replace(/[\u0000- \u007f-\u009f]/g,"").toLowerCase(),n=/^([a-z][a-z0-9+.-]*):/.exec(r)?.[1];return n?n==="http"||n==="https"||(n==="mailto"||n==="tel")&&t==="link"?!0:n==="data"&&t==="image"?/^data:image\/(png|jpeg|gif|webp);/.test(r):!1:!r.startsWith("//")||t==="link"}function ol(e,t){let r=/^\s*<\/([a-zA-Z][a-zA-Z0-9]*)\s*>\s*$/.exec(e);if(r){let a=r[1].toLowerCase();return Eu.has(a)&&!$i.has(a)?`</${a}>`:""}let n="",i=0,o=new Set,u=new DC({onopentag(a,l){if(i>0||Eh.has(a)){$i.has(a)||i++,o.add(a);return}if(!Eu.has(a)){o.add(a);return}let s=BC[a],c="";for(let[p,h]of Object.entries(l)){let f=p.toLowerCase();if(!EC.has(f)&&!s?.has(f)){(f.startsWith("on")||f==="style"||f==="class"||f==="srcset")&&o.add(`${a}[${f}]`);continue}if(f==="id"&&Bh.test(h)){o.add(`${a}[id=${h.slice(0,40)}]`);continue}if(FC.has(f)&&!un(h,a==="img"&&f==="src"?"image":"link")){o.add(`${a}[${f}=${h.slice(0,40)}]`);continue}a==="img"&&f==="src"&&/^(https?:)?\/\//i.test(h)&&t("image-remote",`"${h.slice(0,80)}" (raw HTML): remote images are not loaded`),c+=` ${f}="${SC(h)}"`}n+=`<${a}${c}>`},ontext(a){i===0&&(n+=IC(a))},onclosetag(a,l){if(i>0){$i.has(a)||i--;return}Eu.has(a)&&!$i.has(a)&&!l&&(n+=`</${a}>`)}},{decodeEntities:!0,lowerCaseTags:!0,lowerCaseAttributeNames:!0,recognizeSelfClosing:!0});return u.write(e),u.end(),o.size&&t("html-sanitized",`raw HTML: removed ${[...o].join(", ")}`),n}function Fh(e,t,r){if(!e)return e;let n={};for(let[i,o]of Object.entries(e)){if(i==="class"||i==="className"||i==="style"||i==="svg"||i.startsWith("on")||i==="copyText"||i.startsWith("data-")||i.startsWith("aria-")){r("attribute-dropped",`${t}: dropped the "${i}" attribute (not allowed in a sanitized page)`);continue}if(i==="id"&&typeof o=="string"&&Bh.test(o)&&!t.startsWith("footnote")){r("attribute-dropped",`${t}: dropped id="${o.slice(0,40)}" (reserved for the page's own components)`);continue}if(_C.has(i)&&typeof o=="string"&&!un(o,i==="src"||i==="poster"||i==="image"||i==="logo"?"image":"link")){r("unsafe-url",`${t}: removed ${i}="${o.slice(0,60)}" (only http, https, mailto and relative links are allowed)`);continue}n[i]=o}return n}function TC(e){let t=/^\s*<([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.exec(e);if(!t)return;let r=t[1].toLowerCase();if(!(!Eh.has(r)||/\/>\s*$/.test(t[0])))return new RegExp(`</${r}\\s*>`,"i").test(e)?void 0:r}function $h(e,t){if(!e)return e;let r;return e.filter(n=>{let i=n.type==="html-inline"?String(n.html??""):"";if(r)return new RegExp(`^\\s*</${r}\\s*>`,"i").test(i)&&(r=void 0),!1;if(i){let o=TC(i);if(o)return t("html-sanitized",`raw HTML: removed ${o}`),r=o,!1}return!0}).map(n=>{let i={...n};return i.type==="html-inline"&&typeof i.html=="string"&&(i.html=ol(i.html,t)),i.type==="link"&&typeof i.href=="string"&&!un(i.href,"link")&&(t("unsafe-url",`link: removed href="${i.href.slice(0,60)}"`),i.href="#"),i.type==="image"&&typeof i.src=="string"&&!un(i.src,"image")&&(t("unsafe-url",`image: removed src="${i.src.slice(0,60)}"`),i.src=""),i.attrs&&typeof i.attrs=="object"&&(i.attrs=Fh(i.attrs,i.type,t)),Array.isArray(i.children)&&(i.children=$h(i.children,t)),i})}function ha(e,t){return e.map(r=>{let n={...r};return typeof n.html=="string"&&!$C.has(n.type)&&(n.html=ol(n.html,t)),n.props=Fh(n.props,n.type,t),n.inline&&(n.inline=$h(n.inline,t)),n.children&&(n.children=ha(n.children,t)),n})}var _h="0.2.0-beta.174",yn=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),LC=15e5,gc=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Ac="(function(){var r=document.documentElement,m=matchMedia('(prefers-color-scheme: dark)');function a(){var t=r.getAttribute('data-theme');r.classList.toggle('dark',t?t==='dark':m.matches)}a();try{m.addEventListener('change',a);new MutationObserver(a).observe(r,{attributes:true,attributeFilter:['data-theme']})}catch(e){}})()";function Sh(e){let t="";for(let r=0;r<e.length;r+=32768)t+=String.fromCharCode(...e.subarray(r,r+32768));return btoa(t)}async function bc(e){let t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Sh(new Uint8Array(t))}function Ih(e){return(e??[]).map(t=>"text"in t&&typeof t.text=="string"?t.text:"children"in t?Ih(t.children):"").join("")}function fa(e,t){return(e??[]).some(r=>t.has(r.type)||fa(r.children,t)||(r.inline??[]).some(n=>t.has(n.type)))}async function pn(e,t={}){let r={highlight:!1,math:!1,theme:"default",js:"auto",sanitize:!0,...Object.fromEntries(Object.entries(t).filter(([,m])=>m!==void 0))};r.exportable&&Object.assign(r,{js:"none",sanitize:!0});let{warn:n,warnings:i}=cC(),o=ro(e,{diagnostics:!0,sourceLines:r.sourceLines===!0}),u=new Set;for(let m of[...o.diagnostics??[]].sort((v,E)=>v.line-E.line))n(`syntax-${m.code}`,m.message,m.line),m.code==="unknown-container"&&m.name&&u.add(`:::${m.name}`);let a=o.frontmatter??{},l=o.tree;r.sanitize&&(l=ha(l,n)),r.js==="none"&&(l=da(l));let s;if(typeof r.compareWith=="string"){let m=ro(r.compareWith).tree;r.sanitize&&(m=ha(m,()=>{})),r.js==="none"&&(m=da(m));let v=lC(m,l);l=v.tree,s={unchanged:v.unchanged,...v.stats}}let c=e.replace(/^(`{3,}|~{3,})[^\n]*\n[\s\S]*?^\1[^\n]*$/gm,"").replace(/`[^`\n]*`/g,"");/\{\{[^}]*\}\}|\{%[^%]*%\}/.test(c)&&n("template-raw","template syntax ({{ }} or {% %}) is left as text: a single page runs no templates");let p=await MC(e);for(let[m,v]of p)n("data-needs-project",`::${v}: ${Gp}`,m);!r.math&&fa(l,new Set(["math","math-block"]))&&n("math-raw",'math is left as LaTeX source (pass math: "mathml" to render it)');let h;r.highlight&&(h=await(await import("./chunks/highlight-L4SOPVFD-IJKQUO2Y.mjs")).createHighlighter({cacheChars:0,langs:Mx(l)}));let f;if(r.math==="mathml"){let m=(await import("./chunks/katex-7RASWIHN-GFN7OKEB.mjs")).default;f=(v,E)=>m.renderToString(v,{displayMode:E,throwOnError:!1,output:"mathml"})}let g=tC({link(m){return r.sanitize&&!un(m,"link")?(n("unsafe-url",`removed href="${m.slice(0,60)}"`),"#"):(/^(https?:|mailto:|tel:)/i.test(m)||m.startsWith("#")||n("link-unresolvable",`"${m}": a single page has no other pages; use an absolute https:// URL or an #anchor`),m)},asset(m){if(!m)return m;if(r.sanitize&&!un(m,"image"))return n("unsafe-url",`removed src="${m.slice(0,60)}"`),"";if(/^data:/i.test(m))return m;if(/^(https?:)?\/\//i.test(m))return n("image-remote",`"${m}": remote images are not loaded (the page fetches nothing); download it next to the document`),"";let v=/\.([a-z0-9]+)(?:[?#].*)?$/i.exec(m)?.[1]?.toLowerCase();if(v&&!gc.has(v))return n("image-type",`"${m}" is not an image type the page can embed (${[...gc].join(", ")})`),"";let E=r.readAsset?.(m);return E?(E.bytes.length>LC&&n("image-large",`"${m}" is ${Math.round(E.bytes.length/1024)} KB, embedded in the page`),`data:${E.mime};base64,${Sh(E.bytes)}`):(n("image-missing",`"${m}" was not found next to the document, or may not be read`),"")},highlighter:h,math:f,reservedIds:["db-content"],codeBlockTitle:"auto",dataLines:r.sourceLines===!0,rawHtml:r.sanitize?m=>ol(m,n):void 0}),b=l.find(m=>m.type==="heading"&&Number(m.props?.level)===1),D=typeof a.title=="string"?a.title:b?Ih(b.inline):"Document",I=typeof a.description=="string"?a.description:void 0,x=we(l,g);b||(x=`<h1 class="mb-2 text-3xl font-bold tracking-tight">${yn(D)}</h1>
|
|
3770
3770
|
`+(I?`<p class="text-lg text-muted-foreground">${yn(I)}</p>
|
|
3771
3771
|
`:"")+x),r.exportable&&(x=sC(x));for(let m of p.values())u.add(m);for(let m of g.unknown)u.has(m)||n("node-unsupported",`"${m}" is not a component this renderer knows; rendered as a plain container`);for(let m of g.unknownVariants??[])n("node-unsupported",`button variant "${m}" is not one this renderer knows; drawn as the default button`);for(let m of g.missingIcons??[])n("icon-unknown",`icon "${m}" is not built in`);for(let m of g.unsafeUrls??[])n("unsafe-url",`removed "${m.slice(0,60)}" (a script link)`);(fa(l,new Set(["diagram"]))||/data-lang="mermaid"/.test(x))&&n("diagram-raw","diagrams are shown as code (no diagram renderer in a single page)");let w=new Set([...x.matchAll(/\sid="([^"]+)"/g)].map(m=>tr(m[1])));for(let m of x.matchAll(/\shref="#([^"]+)"/g)){let v=tr(m[1]);w.has(v)||n("anchor-missing",`"#${v}" points to nothing on the page`)}r.tokens&&/url\(/i.test(r.tokens)&&n("tokens-external","the token file has a url(): the page's CSP blocks it, and it would fetch");let F=r.js==="none"?[]:[...new Set([...x.matchAll(/<(db-[a-z-]+)/g)].map(m=>m[1]))].filter(m=>Ss[m]).sort(),C=F.map(m=>Ss[m]),k=C.join(`
|
|
3772
3772
|
`),_=["default-src 'none'","img-src data:","style-src 'unsafe-inline'",`script-src ${[await bc(Ac),...await Promise.all(C.map(bc))].map(m=>`'sha256-${m}'`).join(" ")}`,"base-uri 'none'","form-action 'none'"].join("; "),L=typeof a.lang=="string"?a.lang:"en",K=m=>`<!doctype html>
|