[{"data":1,"prerenderedAt":4925},["ShallowReactive",2],{"msfe-doc:\u002Fguide\u002Fexport-nodes":3,"msfe-source:export-nodes\u002Fnative.ts":882,"msfe-source:export-nodes\u002Fimage.ts":883,"mdc--r0xwm7-key":884,"mdc--vdunua-key":3364},{"id":4,"title":5,"body":6,"description":865,"extension":866,"keywords":867,"locale":874,"meta":875,"navigation":368,"order":876,"path":877,"section":878,"seo":879,"stem":880,"__hash__":881},"docs\u002Fguide\u002Fexport-nodes.zh-CN.md","自定义节点导出为 Word、PDF 与 OFD",{"type":7,"value":8,"toc":853},"minimark",[9,24,29,36,86,95,98,174,177,180,217,235,238,241,270,285,289,302,477,497,501,521,614,658,663,666,681,684,713,731,736,749,753,818,829,833,836,846,849],[10,11,12,13,17,18,23],"p",{},"导出适配器读取 Markdown 源码快照，与你的 Vue\u002FReact 节点视图分开。节点的屏幕外观不会自动\n进入文件；需要明确把它转换为可打印内容。Word、PDF 与 OFD 可以复用同一份 ",[14,15,16],"code",{},"extensions","。\n模板的选择方式见 ",[19,20,22],"a",{"href":21},"\u002Fguide\u002Fmd-editor#%E5%AF%BC%E5%87%BA%E6%A8%A1%E6%9D%BF","MD Editor","。",[25,26,28],"h2",{"id":27},"quire-render-与多格式导出","Quire Render 与多格式导出",[10,30,31,35],{},[32,33,34],"strong",{},"Quire Render"," 是 QuireKit 的统一渲染引擎。Word、PDF 与 OFD 先复用节点的语义转换和\n模板；Word 将结果编译为可编辑 DOCX，PDF\u002FOFD 则通过 Classic 完成分页，再把逐页内容\n交给 Quire Render 的对应后端。",[37,38,39,52],"table",{},[40,41,42],"thead",{},[43,44,45,49],"tr",{},[46,47,48],"th",{},"名称",[46,50,51],{},"职责",[53,54,55,66,78],"tbody",{},[43,56,57,63],{},[58,59,60],"td",{},[14,61,62],{},"qkView",[58,64,65],{},"声明式组合组件，处理组件内部的局部布局",[43,67,68,71],{},[58,69,70],{},"Quire Display List",[58,72,73,74,77],{},"用 ",[14,75,76],{},"QuireDisplayList"," 表达文字、路径、图片、裁剪等绘制指令",[43,79,80,83],{},[58,81,82],{},"Render Backend",[58,84,85],{},"把绘制指令输出到 Canvas、SVG、PDF 或 OFD",[10,87,88,89,91,92,94],{},"文档分页由专门的排版引擎负责，",[14,90,62],{}," 是生成绘制指令的一种入口。当前 Markdown\n导出接入点仍是下面的原生内容或图片转换；Vue\u002FDOM 视图、",[14,93,62],{}," 交互控件不会自动转换为\nWord 或固定版式文件。各后端的字体、资源和损失报告也需要分别处理。",[25,96,97],{"id":97},"选择输出方式",[37,99,100,116],{},[40,101,102],{},[43,103,104,107,110,113],{},[46,105,106],{},"需求",[46,108,109],{},"转换器输出",[46,111,112],{},"Word",[46,114,115],{},"PDF \u002F OFD",[53,117,118,132,146,160],{},[43,119,120,123,126,129],{},[58,121,122],{},"提示块、业务卡片、可阅读的业务字段",[58,124,125],{},"原生段落、列表、表格、底纹和边框",[58,127,128],{},"可编辑文字",[58,130,131],{},"可选择文字，使用 Classic 分页",[43,133,134,137,140,143],{},[58,135,136],{},"图表或复杂图形",[58,138,139],{},"宿主生成的 PNG\u002FJPEG",[58,141,142],{},"图片，可附恢复元数据",[58,144,145],{},"图片，保持比例并限制宽高",[43,147,148,151,154,157],{},[58,149,150],{},"下次导入恢复业务数据",[58,152,153],{},"带版本的 Custom XML 元数据和可见内容",[58,155,156],{},"校验通过后恢复",[58,158,159],{},"不保存这套恢复数据",[43,161,162,165,168,171],{},[58,163,164],{},"自定义 PDF\u002FOFD 矢量绘制或分页算法",[58,166,167],{},"当前没有专用公开接口",[58,169,170],{},"—",[58,172,173],{},"需要另行扩展共享排版能力",[10,175,176],{},"PDF\u002FOFD 消费现有 Classic 能识别的可见 LitAST；它不会执行 DOCX 的 package pass，也不加载\n任意第三方 Classic schema。只写私有 XML 或返回一个未知 LitAST 类型，不能让 PDF\u002FOFD 显示节点。",[25,178,179],{"id":179},"转换生命周期",[181,182,183,190,196,214],"ol",{},[184,185,186,189],"li",{},[14,187,188],{},"parse(source, next)","：仅当需要新 Markdown 语法时扩展解析。已有代码围栏可直接复用。",[184,191,192,195],{},[14,193,194],{},"prepare(root, context)","：校验业务数据、获取资源，把匹配节点投影为临时节点。异步工作在此完成。",[184,197,198,201,202,205,206,209,210,213],{},[14,199,200],{},"addDocx()","：返回与 Classic 相同的 ",[14,203,204],{},"docx.codec.node()"," 贡献。",[14,207,208],{},"convertChildren"," 复用已有转换，\n",[14,211,212],{},"resolveService(markdownExportTemplateService)"," 读取本次已解析模板。",[184,215,216],{},"公共呈现阶段约束表格、图片和页边距；Word 编译为 DOCX，PDF\u002FOFD 转入临时 Classic 文档并分页编码。",[10,218,219,220,223,224,226,227,230,231,234],{},"每个 ",[14,221,222],{},"modelType"," 只有一个转换所有者。不要直接认领所有 ",[14,225,14],{}," 节点后丢弃不认识的语言。\n下面先把验证成功的 ",[14,228,229],{},"approval-card"," 围栏改成独立的 ",[14,232,233],{},"exampleApprovalCard","，其他代码继续使用默认转换。",[25,236,237],{"id":237},"原生业务卡片",[10,239,240],{},"这是独立的导出接入示例，没有给编辑器新增卡片视图或插入菜单。业务数据保存在普通围栏中：",[242,243,248],"pre",{"className":244,"code":245,"language":246,"meta":247,"style":247},"language-markdown shiki shiki-themes github-light github-light github-dark","```approval-card\n{\"title\":\"Approval card\",\"paragraphs\":[\"Review release scope.\",\"Confirm rollback plan.\"]}\n```\n","markdown","",[14,249,250,258,264],{"__ignoreMap":247},[251,252,255],"span",{"class":253,"line":254},"line",1,[251,256,257],{},"```approval-card\n",[251,259,261],{"class":253,"line":260},2,[251,262,263],{},"{\"title\":\"Approval card\",\"paragraphs\":[\"Review release scope.\",\"Confirm rollback plan.\"]}\n",[251,265,267],{"class":253,"line":266},3,[251,268,269],{},"```\n",[10,271,272,273,276,277,280,281,284],{},"完整实现使用公开包入口。TypeScript 消费者需要 ",[14,274,275],{},"@types\u002Fmdast","；通过 ",[14,278,279],{},"declare module 'mdast'","\n声明临时节点。卡片复用模板的 ",[14,282,283],{},"containers.note"," 外观，单元格内距使用 Word 的 twips，\n边线宽度使用八分之一磅；正文样式、字体和分页仍由公共导出链决定。",[286,287],"msfe-recipe",{"name":288},"export-nodes\u002Fnative",[10,290,291,294,295,298,299,301],{},[14,292,293],{},"title"," 和 ",[14,296,297],{},"paragraphs"," 都是纯文本。示例限制字段、长度和数量，无效数据保留代码并产生诊断。\n长卡片允许跨页，不设置固定行高。需要富文本正文时应定义清晰的子节点合同，使用\n",[14,300,208],{},"；不要把用户 HTML 直接拼进 XML。",[242,303,307],{"className":304,"code":305,"language":306,"meta":247,"style":247},"language-ts shiki shiki-themes github-light github-light github-dark","import { exportMarkdownDocx } from '@quirekit\u002Fmarkdown-docx'\nimport { exportMarkdownPdf } from '@quirekit\u002Fmd-editor-export\u002Fpdf'\nimport { createApprovalCardExtension } from '.\u002Fexport-nodes\u002Fnative'\nimport { approvalCardMarkdown } from '.\u002Fexport-nodes\u002Fdata'\n\nconst markdown = approvalCardMarkdown({ title: 'Approval card', paragraphs: ['Ready for review.'] })\nconst extensions = [createApprovalCardExtension()]\nconst template = { fonts: { body: { latin: 'Arial' } } }\nconst word = await exportMarkdownDocx(markdown, { extensions, template })\nconst pdf = await exportMarkdownPdf(markdown, { extensions, template, ownerDocument: document })\n","ts",[14,308,309,326,338,350,363,370,402,421,440,459],{"__ignoreMap":247},[251,310,311,315,319,322],{"class":253,"line":254},[251,312,314],{"class":313},"sDD9d","import",[251,316,318],{"class":317},"sVPnS"," { exportMarkdownDocx } ",[251,320,321],{"class":313},"from",[251,323,325],{"class":324},"s-HEn"," '@quirekit\u002Fmarkdown-docx'\n",[251,327,328,330,333,335],{"class":253,"line":260},[251,329,314],{"class":313},[251,331,332],{"class":317}," { exportMarkdownPdf } ",[251,334,321],{"class":313},[251,336,337],{"class":324}," '@quirekit\u002Fmd-editor-export\u002Fpdf'\n",[251,339,340,342,345,347],{"class":253,"line":266},[251,341,314],{"class":313},[251,343,344],{"class":317}," { createApprovalCardExtension } ",[251,346,321],{"class":313},[251,348,349],{"class":324}," '.\u002Fexport-nodes\u002Fnative'\n",[251,351,353,355,358,360],{"class":253,"line":352},4,[251,354,314],{"class":313},[251,356,357],{"class":317}," { approvalCardMarkdown } ",[251,359,321],{"class":313},[251,361,362],{"class":324}," '.\u002Fexport-nodes\u002Fdata'\n",[251,364,366],{"class":253,"line":365},5,[251,367,369],{"emptyLinePlaceholder":368},true,"\n",[251,371,373,376,380,383,387,390,393,396,399],{"class":253,"line":372},6,[251,374,375],{"class":313},"const",[251,377,379],{"class":378},"sUNQB"," markdown",[251,381,382],{"class":313}," =",[251,384,386],{"class":385},"sgQzM"," approvalCardMarkdown",[251,388,389],{"class":317},"({ title: ",[251,391,392],{"class":324},"'Approval card'",[251,394,395],{"class":317},", paragraphs: [",[251,397,398],{"class":324},"'Ready for review.'",[251,400,401],{"class":317},"] })\n",[251,403,405,407,410,412,415,418],{"class":253,"line":404},7,[251,406,375],{"class":313},[251,408,409],{"class":378}," extensions",[251,411,382],{"class":313},[251,413,414],{"class":317}," [",[251,416,417],{"class":385},"createApprovalCardExtension",[251,419,420],{"class":317},"()]\n",[251,422,424,426,429,431,434,437],{"class":253,"line":423},8,[251,425,375],{"class":313},[251,427,428],{"class":378}," template",[251,430,382],{"class":313},[251,432,433],{"class":317}," { fonts: { body: { latin: ",[251,435,436],{"class":324},"'Arial'",[251,438,439],{"class":317}," } } }\n",[251,441,443,445,448,450,453,456],{"class":253,"line":442},9,[251,444,375],{"class":313},[251,446,447],{"class":378}," word",[251,449,382],{"class":313},[251,451,452],{"class":313}," await",[251,454,455],{"class":385}," exportMarkdownDocx",[251,457,458],{"class":317},"(markdown, { extensions, template })\n",[251,460,462,464,467,469,471,474],{"class":253,"line":461},10,[251,463,375],{"class":313},[251,465,466],{"class":378}," pdf",[251,468,382],{"class":313},[251,470,452],{"class":313},[251,472,473],{"class":385}," exportMarkdownPdf",[251,475,476],{"class":317},"(markdown, { extensions, template, ownerDocument: document })\n",[10,478,479,480,484,485,488,489,492,493,496],{},"这段最小调用使用拉丁文字。中文与自定义字体必须按 ",[19,481,483],{"href":482},"\u002Fguide\u002Fmd-editor#pdf-%E4%B8%8E-ofd-%E5%AF%BC%E5%87%BA","PDF 与 OFD 导出","\n准备可嵌入字节，并在度量前加载相同字体。",[14,486,487],{},"word.data"," \u002F ",[14,490,491],{},"pdf.data"," 是下载内容，诊断通过\n",[14,494,495],{},"diagnostics"," 返回；代码本身不触发下载或修改编辑器。",[25,498,500],{"id":499},"使用同一转换器导出-ofd","使用同一转换器导出 OFD",[10,502,503,504,507,508,511,512,514,515,514,517,520],{},"商业包 ",[14,505,506],{},"@quirekit\u002Fmd-editor-export"," 的 ",[14,509,510],{},"\u002Fofd"," 入口与 PDF 共享临时文档准备和 Classic 分页，\n直接生成 OFD。保留上面的 ",[14,513,246],{},"、",[14,516,16],{},[14,518,519],{},"template","，显式传入宿主字体：",[242,522,524],{"className":304,"code":523,"language":306,"meta":247,"style":247},"import { exportMarkdownOfd, type MarkdownOfdOptions } from '@quirekit\u002Fmd-editor-export\u002Fofd'\n\nasync function exportCardOfd(fonts: NonNullable\u003CMarkdownOfdOptions['fonts']>, ownerDocument: Document) {\n  return exportMarkdownOfd(markdown, { extensions, template, fonts, ownerDocument })\n}\n",[14,525,526,544,548,598,609],{"__ignoreMap":247},[251,527,528,530,533,536,539,541],{"class":253,"line":254},[251,529,314],{"class":313},[251,531,532],{"class":317}," { exportMarkdownOfd, ",[251,534,535],{"class":313},"type",[251,537,538],{"class":317}," MarkdownOfdOptions } ",[251,540,321],{"class":313},[251,542,543],{"class":324}," '@quirekit\u002Fmd-editor-export\u002Fofd'\n",[251,545,546],{"class":253,"line":260},[251,547,369],{"emptyLinePlaceholder":368},[251,549,550,553,556,559,562,566,569,572,575,578,581,584,587,590,592,595],{"class":253,"line":266},[251,551,552],{"class":313},"async",[251,554,555],{"class":313}," function",[251,557,558],{"class":385}," exportCardOfd",[251,560,561],{"class":317},"(",[251,563,565],{"class":564},"sde8i","fonts",[251,567,568],{"class":313},":",[251,570,571],{"class":385}," NonNullable",[251,573,574],{"class":317},"\u003C",[251,576,577],{"class":385},"MarkdownOfdOptions",[251,579,580],{"class":317},"[",[251,582,583],{"class":324},"'fonts'",[251,585,586],{"class":317},"]>, ",[251,588,589],{"class":564},"ownerDocument",[251,591,568],{"class":313},[251,593,594],{"class":385}," Document",[251,596,597],{"class":317},") {\n",[251,599,600,603,606],{"class":253,"line":352},[251,601,602],{"class":313},"  return",[251,604,605],{"class":385}," exportMarkdownOfd",[251,607,608],{"class":317},"(markdown, { extensions, template, fonts, ownerDocument })\n",[251,610,611],{"class":253,"line":365},[251,612,613],{"class":317},"}\n",[10,615,616,617,507,619,622,623,626,627,630,631,634,635,638,639,642,643,514,646,514,649,651,652,294,655,23],{},"OFD 没有 PDF 的标准字体，拉丁文字也必须提供完整 TTF\u002FOTF 字节；",[14,618,565],{},[14,620,621],{},"family","、\n",[14,624,625],{},"aliases"," 或 ",[14,628,629],{},"acceptedSubstitutions"," 应覆盖模板字体，并在调用前将相同物理字体加载到\n浏览器用于度量。默认嵌入 Unicode 子集，",[14,632,633],{},"fontEmbedding: 'full'"," 可选择完整字体。\n无浏览器环境提供 ",[14,636,637],{},"textMeasurer","，公式另提供 ",[14,640,641],{},"rasterizeFormula","。OFD 同样返回\n",[14,644,645],{},"data",[14,647,648],{},"pageCount",[14,650,495],{},"，支持 ",[14,653,654],{},"signal",[14,656,657],{},"lossPolicy",[10,659,660,661,23],{},"原生卡片保持文字，图片节点和公式仍为图片；DOCX 的 Custom XML 恢复数据不会写入 OFD。\n图片资源、模板宽度、失败降级与下面的取消约定都与 PDF 相同。OFD 字体和阅读器支持边界见\n",[19,662,483],{"href":482},[25,664,665],{"id":665},"图片节点",[10,667,668,669,672,673,676,677,680],{},"下面把 ",[14,670,671],{},"progress-chart"," 围栏中的 JSON 数组（例如 ",[14,674,675],{},"[25,50,75]","）绘制为有界 PNG。\n它只使用显式传入的 ",[14,678,679],{},"Document"," 创建离屏 canvas，不读取实时节点或请求外部资源。\n图像颜色与文字由渲染器决定；若要跟随导出模板，宿主应把解析后的颜色、字体传给自己的渲染器。",[286,682],{"name":683},"export-nodes\u002Fimage",[10,685,686,687,690,691,693,694,697,698,700,701,704,705,708,709,712],{},"为每次导出创建一个 ",[14,688,689],{},"AbortController","，将它的 ",[14,692,654],{}," 同时传入资源回调和 PDF 选项。\n把 ",[14,695,696],{},"createProgressChartExtension(document, controller.signal)"," 加入同一份 ",[14,699,16],{},"，\n并调用 ",[14,702,703],{},"exportMarkdownPdf(markdown, { extensions, ownerDocument: document, signal: controller.signal })","。\n关闭对话框或更换文档时调用 ",[14,706,707],{},"abort()","。不支持 ",[14,710,711],{},"AbortSignal"," 的第三方渲染器可能继续计算，\n宿主仍须在完成后检查信号并丢弃过期结果。Word 宿主也应在发布结果前检查信号。",[10,714,715,718,719,722,723,726,727,730],{},[14,716,717],{},"render"," 返回有效 PNG\u002FJPEG data URI；返回 ",[14,720,721],{},"null","、无效内容或抛出异常时，内置转换器保留\n原代码并报告 ",[14,724,725],{},"code-image-unavailable","。PDF 中的图表文字不可单独选择。",[14,728,729],{},"metadata: false","\n明确关闭 Word 源码恢复并产生损失诊断；PDF 即使接收开启元数据的同一转换器，也只保留可见图片。",[732,733,735],"h3",{"id":734},"与-mermaid-组合","与 Mermaid 组合",[10,737,738,741,742,744,745,748],{},[14,739,740],{},"createMarkdownDocxCodeImageExtension"," 的多个实例会认领相同临时节点，不能各注册一个。\nMD Editor 会用同名宿主扩展替换内置图片转换器，因此只注册 ",[14,743,671],{}," 也会替换默认 Mermaid\n配置。需要两种语言时，用一个 ",[14,746,747],{},"languages: ['mermaid', 'progress-chart']"," 和一个分派回调，\n由宿主同时提供 Mermaid 与业务图表渲染；不要改扩展名称来绕过所有权检查。",[25,750,752],{"id":751},"在-md-editor-中接入","在 MD Editor 中接入",[242,754,758],{"className":755,"code":756,"language":757,"meta":247,"style":247},"language-vue shiki shiki-themes github-light github-light github-dark","\u003CMdEditor :docx=\"{ extensions: [createApprovalCardExtension()] }\" :exporters=\"[mdPdfExport(), mdOfdExport()]\" \u002F>\n","vue",[14,759,760],{"__ignoreMap":247},[251,761,762,764,768,771,774,777,780,783,785,788,790,792,795,797,799,801,804,807,810,813,815],{"class":253,"line":254},[251,763,574],{"class":317},[251,765,767],{"class":766},"su0ou","MdEditor",[251,769,770],{"class":317}," :",[251,772,773],{"class":385},"docx",[251,775,776],{"class":317},"=",[251,778,779],{"class":324},"\"",[251,781,782],{"class":317},"{ extensions: [",[251,784,417],{"class":385},[251,786,787],{"class":317},"()] }",[251,789,779],{"class":324},[251,791,770],{"class":317},[251,793,794],{"class":385},"exporters",[251,796,776],{"class":317},[251,798,779],{"class":324},[251,800,580],{"class":317},[251,802,803],{"class":385},"mdPdfExport",[251,805,806],{"class":317},"(), ",[251,808,809],{"class":385},"mdOfdExport",[251,811,812],{"class":317},"()]",[251,814,779],{"class":324},[251,816,817],{"class":317}," \u002F>\n",[10,819,820,821,824,825,828],{},"导出插件收到的 ",[14,822,823],{},"options"," 已包含当前模板、内置与自定义转换器，自定义节点在 Word、PDF、OFD 中\n使用同一份转换器。仅传 ",[14,826,827],{},"docx.extensions"," 不会安装商业 PDF\u002FOFD 能力；未安装的格式不出现在菜单中。\n非 Vue 宿主直接调用各格式的导出函数，显式传同一模板与转换器即可。",[25,830,832],{"id":831},"恢复诊断与验收","恢复、诊断与验收",[10,834,835],{},"Word 导入先验证内容指纹，再由扩展检查 payload 版本和字段。用户修改了 Word 中的文字、\n图片或相关样式后，导入保留新内容，不恢复旧业务数据。未安装扩展、无效元数据或未知版本\n同样使用可见回退。恢复的是校验后的业务数据，示例会规范化 JSON 排版，不保证逐字符恢复原围栏。",[10,837,838,841,842,845],{},[14,839,840],{},"best-effort"," 返回结果和诊断，",[14,843,844],{},"strict"," 遇到任意警告拒绝导出；圆角近似、图片化或缺字体\n都可能使严格模式拒绝。PDF 本身不承诺源码恢复，调用方不能将 Word 的 metadata 信息当成\nPDF 可逆性的证明。",[10,847,848],{},"交付自己的转换器前，至少验证：普通节点不受影响；缺资源时保留内容；实际 DOCX\u002FPDF\u002FOFD 有\n可见文字或图像；长内容跨页及嵌套图片不越界；不同模板生效；取消不下载旧结果；修改 Word\n后不会恢复过期数据。公开 recipe 的测试直接执行同一份源码，而不是另一份近似实现。",[850,851,852],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sgQzM, html code.shiki .sgQzM{--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sde8i, html code.shiki .sde8i{--shiki-default:#E36209;--shiki-light:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .su0ou, html code.shiki .su0ou{--shiki-default:#22863A;--shiki-light:#22863A;--shiki-dark:#85E89D}",{"title":247,"searchDepth":260,"depth":260,"links":854},[855,856,857,858,859,860,863,864],{"id":27,"depth":260,"text":28},{"id":97,"depth":260,"text":97},{"id":179,"depth":260,"text":179},{"id":237,"depth":260,"text":237},{"id":499,"depth":260,"text":500},{"id":665,"depth":260,"text":665,"children":861},[862],{"id":734,"depth":266,"text":735},{"id":751,"depth":260,"text":752},{"id":831,"depth":260,"text":832},"共用原生内容转换和图片渲染，处理模板、资源失败、取消与 Word 元数据恢复。","md",[868,869,112,870,871,872,873],"PDF","OFD","DOCX","addDocx","自定义节点","模板","zh-CN",{},12,"\u002Fguide\u002Fexport-nodes","接入指南",{"title":5,"description":865},"guide\u002Fexport-nodes.zh-CN","SnNYKpzI0wLnhqfYQsg73_GimCHKGNUgwDKh1GzZcrE","import { docx } from '@quirekit\u002Flit-docx';\nimport type { Nodes } from 'mdast';\nimport { markdownExportTemplateService, type MarkdownDocxExtension } from '@quirekit\u002Fmarkdown-docx';\nimport { defaultExportTemplate } from '@quirekit\u002Fexport-template';\nimport { approvalCardMarkdown, readApprovalCard } from '.\u002Fdata';\nimport type { ApprovalCardNode } from '.\u002Ftypes';\n\nconst tag = 'example:approval-card';\n\n\u002F** @returns A standalone converter shared by Word and PDF; no editor or browser required. *\u002F\nexport function createApprovalCardExtension(): MarkdownDocxExtension {\n  return {\n    name: 'example.approval-card',\n    prepare(root, context) {\n      \u002F\u002F Claim only validated fences. Invalid input remains ordinary code, with\n      \u002F\u002F a loss report; unrelated code and the caller's source are unchanged.\n      \u002F** @param node - Source subtree. @returns A fresh export-only projection. *\u002F\n      function visit(node: Nodes): Nodes {\n        if (node.type === 'code' && node.lang === 'approval-card') {\n          try {\n            if (node.value.length > 24_000) throw new Error('Card source exceeds its budget.');\n            const data = readApprovalCard(JSON.parse(node.value));\n            const card: ApprovalCardNode = { type: 'exampleApprovalCard', card: data, position: node.position,\n              children: data.paragraphs.map(text => ({ type: 'paragraph', children: [{ type: 'text', value: text }] })) };\n            return card;\n          } catch {\n            context.report({ code: 'approval-card-invalid', path: `\u002Fsource\u002F${node.position?.start.offset ?? 0}`,\n              severity: 'warning', disposition: 'approximated', message: 'Invalid card data was retained as source code.' });\n            return node;\n          }\n        }\n        return 'children' in node ? { ...node, children: node.children.map(visit) } as Nodes : node;\n      }\n      return { ...root, children: root.children.map(node => visit(node) as typeof node) };\n    },\n    addDocx: () => docx.codec.node\u003CNodes, never>({\n      id: 'example.approval-card', modelType: 'exampleApprovalCard',\n      export: { convert: ({ node, docx: api, convertChildren, resolveService }) => {\n        if (node.type !== 'exampleApprovalCard') throw new Error('Unexpected card node.');\n        \u002F\u002F Use the resolved template, then let the common projector constrain\n        \u002F\u002F the table width and Classic paginate it. Never set a fixed row height.\n        const style = (resolveService(markdownExportTemplateService) ?? defaultExportTemplate.style).containers.note;\n        const border = { val: style.border ? 'single' : 'nil', color: style.border?.color ?? 'auto',\n          sz: Math.round((style.border?.width ?? 0) * 8), space: 0 };\n        const padding = Math.round(style.padding * 20); \u002F\u002F Template pt → native cell twips.\n        const children = [api.blocks.paragraph({ properties: { keepNext: true },\n          children: [api.inline.text(node.card.title, { marks: [api.marks.bold()] })] }), ...convertChildren(node.children)];\n        const styled = children.map(child => ({ ...child, attrs: { ...child.attrs, styleId: 'QuireKitContainer_note' } }));\n        const cell = api.tables.cell({ children: styled, width: { value: 5000, type: 'pct' },\n          shading: { val: style.fill ? 'clear' : 'nil', fill: style.fill ?? 'auto' },\n          borders: { top: border, bottom: border, left: border, right: border } });\n        const table = api.tables.table({ width: { value: 5000, type: 'pct' }, rows: [api.tables.row({ cells: [\n          { ...cell, attrs: { ...cell.attrs, cellMargins: { top: padding, bottom: padding, left: padding, right: padding } } },\n        ] })] });\n        return [api.roundTrip.taggedBlock({ tag, alias: node.card.title, children: [table],\n          metadata: { version: 1, data: { title: node.card.title, paragraphs: [...node.card.paragraphs] } } })];\n      } },\n      import: { from: docx.roundTrip.matchTag(tag), creates: ['docxSource', 'paragraph', 'heading', 'list', 'blockquote', 'code', 'table', 'thematicBreak'],\n        convert: ({ node, docx: api, convertChildren, report }) => {\n          \u002F\u002F The shared codec first verifies visible-content fingerprints. Then\n          \u002F\u002F validate our own payload\u002Fversion; never resurrect stale Word text.\n          const metadata = api.roundTrip.readMetadata(node);\n          if (metadata?.version === 1) {\n            try { return [{ type: 'docxSource', value: approvalCardMarkdown(readApprovalCard(metadata.data)) }]; }\n            catch { \u002F* Invalid business data must use the current visible content. *\u002F }\n          }\n          report({ code: 'approval-card-source-unavailable', severity: 'warning', disposition: 'approximated',\n            message: 'Card metadata is unavailable; current visible content was retained.' });\n          const children = (node.children ?? []).flatMap(child => child.type === 'table' && child.children?.length === 1\n            && child.children[0]?.children?.length === 1 ? child.children[0].children[0]!.children ?? [] : [child]);\n          return convertChildren(children);\n        } },\n    }),\n  };\n}\n","import { createMarkdownDocxCodeImageExtension, type MarkdownDocxCodeImageRequest, type MarkdownDocxExtension } from '@quirekit\u002Fmarkdown-docx';\n\n\u002F**\n * Draws a bounded chart from source data without reading a mounted editor view.\n * @param request - A progress-chart fence containing a JSON number array.\n * @param ownerDocument - Explicit browser capability owned by this export.\n * @param signal - Cancellation of this export, not a global editor signal.\n * @returns A complete PNG data URI; malformed data throws for the shared source fallback.\n *\u002F\nexport async function renderProgressChart(request: MarkdownDocxCodeImageRequest, ownerDocument: Document, signal?: AbortSignal): Promise\u003Cstring> {\n  signal?.throwIfAborted();\n  if (request.language !== 'progress-chart' || request.value.length > 2000) throw new Error('Unsupported chart input.');\n  const values: unknown = JSON.parse(request.value);\n  if (!Array.isArray(values) || !values.length || values.length > 12\n    || values.some(value => typeof value !== 'number' || !Number.isFinite(value) || value \u003C 0 || value > 100)) throw new Error('Expected 1–12 values between 0 and 100.');\n  const canvas = ownerDocument.createElement('canvas');\n  \u002F\u002F Raster dimensions are fixed and bounded. The common exporter separately\n  \u002F\u002F fits this image to the current page\u002Fcell width without changing its ratio.\n  canvas.width = 1200; canvas.height = 480;\n  try {\n    const context = canvas.getContext('2d');\n    if (!context) throw new Error('Canvas 2D is unavailable.');\n    context.fillStyle = '#FFFFFF'; context.fillRect(0, 0, canvas.width, canvas.height);\n    context.fillStyle = '#172033'; context.font = 'bold 32px sans-serif'; context.fillText('Progress', 40, 52);\n    const step = 1120 \u002F values.length;\n    values.forEach((value: number, index: number) => {\n      const height = value * 3;\n      context.fillStyle = '#4F63D8'; context.fillRect(40 + step * index, 410 - height, step * .65, height);\n      context.fillStyle = '#172033'; context.font = '24px sans-serif'; context.fillText(String(value), 40 + step * index, 444);\n    });\n    signal?.throwIfAborted();\n    return canvas.toDataURL('image\u002Fpng');\n  } finally { canvas.width = 0; canvas.height = 0; }\n}\n\n\u002F**\n * Registers the image recipe for a standalone conversion operation.\n * @param ownerDocument - Browser capability used for offscreen rendering.\n * @param signal - Optional operation cancellation.\n * @param metadata - Word source recovery; PDF has no round-trip store.\n * @returns The one code-image owner. Merge other languages into its renderer when composing with Mermaid.\n *\u002F\nexport function createProgressChartExtension(ownerDocument: Document, signal?: AbortSignal, metadata = true): MarkdownDocxExtension {\n  return createMarkdownDocxCodeImageExtension({ languages: ['progress-chart'], metadata,\n    render: request => renderProgressChart(request, ownerDocument, signal) });\n}\n",{"data":885,"body":886},{},{"type":887,"children":888},"root",[889,3359],{"type":890,"tag":242,"props":891,"children":893},"element",{"className":304,"code":892,"language":306,"meta":247,"style":247},"import { docx } from '@quirekit\u002Flit-docx';\nimport type { Nodes } from 'mdast';\nimport { markdownExportTemplateService, type MarkdownDocxExtension } from '@quirekit\u002Fmarkdown-docx';\nimport { defaultExportTemplate } from '@quirekit\u002Fexport-template';\nimport { approvalCardMarkdown, readApprovalCard } from '.\u002Fdata';\nimport type { ApprovalCardNode } from '.\u002Ftypes';\n\nconst tag = 'example:approval-card';\n\n\u002F** @returns A standalone converter shared by Word and PDF; no editor or browser required. *\u002F\nexport function createApprovalCardExtension(): MarkdownDocxExtension {\n  return {\n    name: 'example.approval-card',\n    prepare(root, context) {\n      \u002F\u002F Claim only validated fences. Invalid input remains ordinary code, with\n      \u002F\u002F a loss report; unrelated code and the caller's source are unchanged.\n      \u002F** @param node - Source subtree. @returns A fresh export-only projection. *\u002F\n      function visit(node: Nodes): Nodes {\n        if (node.type === 'code' && node.lang === 'approval-card') {\n          try {\n            if (node.value.length > 24_000) throw new Error('Card source exceeds its budget.');\n            const data = readApprovalCard(JSON.parse(node.value));\n            const card: ApprovalCardNode = { type: 'exampleApprovalCard', card: data, position: node.position,\n              children: data.paragraphs.map(text => ({ type: 'paragraph', children: [{ type: 'text', value: text }] })) };\n            return card;\n          } catch {\n            context.report({ code: 'approval-card-invalid', path: `\u002Fsource\u002F${node.position?.start.offset ?? 0}`,\n              severity: 'warning', disposition: 'approximated', message: 'Invalid card data was retained as source code.' });\n            return node;\n          }\n        }\n        return 'children' in node ? { ...node, children: node.children.map(visit) } as Nodes : node;\n      }\n      return { ...root, children: root.children.map(node => visit(node) as typeof node) };\n    },\n    addDocx: () => docx.codec.node\u003CNodes, never>({\n      id: 'example.approval-card', modelType: 'exampleApprovalCard',\n      export: { convert: ({ node, docx: api, convertChildren, resolveService }) => {\n        if (node.type !== 'exampleApprovalCard') throw new Error('Unexpected card node.');\n        \u002F\u002F Use the resolved template, then let the common projector constrain\n        \u002F\u002F the table width and Classic paginate it. Never set a fixed row height.\n        const style = (resolveService(markdownExportTemplateService) ?? defaultExportTemplate.style).containers.note;\n        const border = { val: style.border ? 'single' : 'nil', color: style.border?.color ?? 'auto',\n          sz: Math.round((style.border?.width ?? 0) * 8), space: 0 };\n        const padding = Math.round(style.padding * 20); \u002F\u002F Template pt → native cell twips.\n        const children = [api.blocks.paragraph({ properties: { keepNext: true },\n          children: [api.inline.text(node.card.title, { marks: [api.marks.bold()] })] }), ...convertChildren(node.children)];\n        const styled = children.map(child => ({ ...child, attrs: { ...child.attrs, styleId: 'QuireKitContainer_note' } }));\n        const cell = api.tables.cell({ children: styled, width: { value: 5000, type: 'pct' },\n          shading: { val: style.fill ? 'clear' : 'nil', fill: style.fill ?? 'auto' },\n          borders: { top: border, bottom: border, left: border, right: border } });\n        const table = api.tables.table({ width: { value: 5000, type: 'pct' }, rows: [api.tables.row({ cells: [\n          { ...cell, attrs: { ...cell.attrs, cellMargins: { top: padding, bottom: padding, left: padding, right: padding } } },\n        ] })] });\n        return [api.roundTrip.taggedBlock({ tag, alias: node.card.title, children: [table],\n          metadata: { version: 1, data: { title: node.card.title, paragraphs: [...node.card.paragraphs] } } })];\n      } },\n      import: { from: docx.roundTrip.matchTag(tag), creates: ['docxSource', 'paragraph', 'heading', 'list', 'blockquote', 'code', 'table', 'thematicBreak'],\n        convert: ({ node, docx: api, convertChildren, report }) => {\n          \u002F\u002F The shared codec first verifies visible-content fingerprints. Then\n          \u002F\u002F validate our own payload\u002Fversion; never resurrect stale Word text.\n          const metadata = api.roundTrip.readMetadata(node);\n          if (metadata?.version === 1) {\n            try { return [{ type: 'docxSource', value: approvalCardMarkdown(readApprovalCard(metadata.data)) }]; }\n            catch { \u002F* Invalid business data must use the current visible content. *\u002F }\n          }\n          report({ code: 'approval-card-source-unavailable', severity: 'warning', disposition: 'approximated',\n            message: 'Card metadata is unavailable; current visible content was retained.' });\n          const children = (node.children ?? []).flatMap(child => child.type === 'table' && child.children?.length === 1\n            && child.children[0]?.children?.length === 1 ? child.children[0].children[0]!.children ?? [] : [child]);\n          return convertChildren(children);\n        } },\n    }),\n  };\n}\n\n",[894],{"type":890,"tag":14,"props":895,"children":896},{"__ignoreMap":247},[897,927,957,991,1016,1041,1070,1077,1103,1110,1129,1167,1178,1197,1229,1238,1247,1280,1329,1376,1389,1452,1499,1540,1592,1606,1624,1709,1748,1761,1770,1779,1849,1858,1919,1928,1979,2005,2076,2127,2136,2145,2187,2245,2301,2351,2393,2434,2506,2557,2600,2609,2666,2693,2702,2725,2753,2762,2853,2914,2923,2932,2965,2992,3043,3066,3074,3113,3131,3215,3305,3324,3333,3342,3351],{"type":890,"tag":251,"props":898,"children":899},{"class":253,"line":254},[900,906,912,916,922],{"type":890,"tag":251,"props":901,"children":903},{"style":902},"--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583",[904],{"type":905,"value":314},"text",{"type":890,"tag":251,"props":907,"children":909},{"style":908},"--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8",[910],{"type":905,"value":911}," { docx } ",{"type":890,"tag":251,"props":913,"children":914},{"style":902},[915],{"type":905,"value":321},{"type":890,"tag":251,"props":917,"children":919},{"style":918},"--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF",[920],{"type":905,"value":921}," '@quirekit\u002Flit-docx'",{"type":890,"tag":251,"props":923,"children":924},{"style":908},[925],{"type":905,"value":926},";\n",{"type":890,"tag":251,"props":928,"children":929},{"class":253,"line":260},[930,934,939,944,948,953],{"type":890,"tag":251,"props":931,"children":932},{"style":902},[933],{"type":905,"value":314},{"type":890,"tag":251,"props":935,"children":936},{"style":902},[937],{"type":905,"value":938}," type",{"type":890,"tag":251,"props":940,"children":941},{"style":908},[942],{"type":905,"value":943}," { Nodes } ",{"type":890,"tag":251,"props":945,"children":946},{"style":902},[947],{"type":905,"value":321},{"type":890,"tag":251,"props":949,"children":950},{"style":918},[951],{"type":905,"value":952}," 'mdast'",{"type":890,"tag":251,"props":954,"children":955},{"style":908},[956],{"type":905,"value":926},{"type":890,"tag":251,"props":958,"children":959},{"class":253,"line":266},[960,964,969,973,978,982,987],{"type":890,"tag":251,"props":961,"children":962},{"style":902},[963],{"type":905,"value":314},{"type":890,"tag":251,"props":965,"children":966},{"style":908},[967],{"type":905,"value":968}," { markdownExportTemplateService, ",{"type":890,"tag":251,"props":970,"children":971},{"style":902},[972],{"type":905,"value":535},{"type":890,"tag":251,"props":974,"children":975},{"style":908},[976],{"type":905,"value":977}," MarkdownDocxExtension } ",{"type":890,"tag":251,"props":979,"children":980},{"style":902},[981],{"type":905,"value":321},{"type":890,"tag":251,"props":983,"children":984},{"style":918},[985],{"type":905,"value":986}," '@quirekit\u002Fmarkdown-docx'",{"type":890,"tag":251,"props":988,"children":989},{"style":908},[990],{"type":905,"value":926},{"type":890,"tag":251,"props":992,"children":993},{"class":253,"line":352},[994,998,1003,1007,1012],{"type":890,"tag":251,"props":995,"children":996},{"style":902},[997],{"type":905,"value":314},{"type":890,"tag":251,"props":999,"children":1000},{"style":908},[1001],{"type":905,"value":1002}," { defaultExportTemplate } ",{"type":890,"tag":251,"props":1004,"children":1005},{"style":902},[1006],{"type":905,"value":321},{"type":890,"tag":251,"props":1008,"children":1009},{"style":918},[1010],{"type":905,"value":1011}," '@quirekit\u002Fexport-template'",{"type":890,"tag":251,"props":1013,"children":1014},{"style":908},[1015],{"type":905,"value":926},{"type":890,"tag":251,"props":1017,"children":1018},{"class":253,"line":365},[1019,1023,1028,1032,1037],{"type":890,"tag":251,"props":1020,"children":1021},{"style":902},[1022],{"type":905,"value":314},{"type":890,"tag":251,"props":1024,"children":1025},{"style":908},[1026],{"type":905,"value":1027}," { approvalCardMarkdown, readApprovalCard } ",{"type":890,"tag":251,"props":1029,"children":1030},{"style":902},[1031],{"type":905,"value":321},{"type":890,"tag":251,"props":1033,"children":1034},{"style":918},[1035],{"type":905,"value":1036}," '.\u002Fdata'",{"type":890,"tag":251,"props":1038,"children":1039},{"style":908},[1040],{"type":905,"value":926},{"type":890,"tag":251,"props":1042,"children":1043},{"class":253,"line":372},[1044,1048,1052,1057,1061,1066],{"type":890,"tag":251,"props":1045,"children":1046},{"style":902},[1047],{"type":905,"value":314},{"type":890,"tag":251,"props":1049,"children":1050},{"style":902},[1051],{"type":905,"value":938},{"type":890,"tag":251,"props":1053,"children":1054},{"style":908},[1055],{"type":905,"value":1056}," { ApprovalCardNode } ",{"type":890,"tag":251,"props":1058,"children":1059},{"style":902},[1060],{"type":905,"value":321},{"type":890,"tag":251,"props":1062,"children":1063},{"style":918},[1064],{"type":905,"value":1065}," '.\u002Ftypes'",{"type":890,"tag":251,"props":1067,"children":1068},{"style":908},[1069],{"type":905,"value":926},{"type":890,"tag":251,"props":1071,"children":1072},{"class":253,"line":404},[1073],{"type":890,"tag":251,"props":1074,"children":1075},{"emptyLinePlaceholder":368},[1076],{"type":905,"value":369},{"type":890,"tag":251,"props":1078,"children":1079},{"class":253,"line":423},[1080,1084,1090,1094,1099],{"type":890,"tag":251,"props":1081,"children":1082},{"style":902},[1083],{"type":905,"value":375},{"type":890,"tag":251,"props":1085,"children":1087},{"style":1086},"--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF",[1088],{"type":905,"value":1089}," tag",{"type":890,"tag":251,"props":1091,"children":1092},{"style":902},[1093],{"type":905,"value":382},{"type":890,"tag":251,"props":1095,"children":1096},{"style":918},[1097],{"type":905,"value":1098}," 'example:approval-card'",{"type":890,"tag":251,"props":1100,"children":1101},{"style":908},[1102],{"type":905,"value":926},{"type":890,"tag":251,"props":1104,"children":1105},{"class":253,"line":442},[1106],{"type":890,"tag":251,"props":1107,"children":1108},{"emptyLinePlaceholder":368},[1109],{"type":905,"value":369},{"type":890,"tag":251,"props":1111,"children":1112},{"class":253,"line":461},[1113,1119,1124],{"type":890,"tag":251,"props":1114,"children":1116},{"style":1115},"--shiki-default:#6A737D;--shiki-light:#6A737D;--shiki-dark:#6A737D",[1117],{"type":905,"value":1118},"\u002F** ",{"type":890,"tag":251,"props":1120,"children":1121},{"style":902},[1122],{"type":905,"value":1123},"@returns",{"type":890,"tag":251,"props":1125,"children":1126},{"style":1115},[1127],{"type":905,"value":1128}," A standalone converter shared by Word and PDF; no editor or browser required. *\u002F\n",{"type":890,"tag":251,"props":1130,"children":1132},{"class":253,"line":1131},11,[1133,1138,1142,1148,1153,1157,1162],{"type":890,"tag":251,"props":1134,"children":1135},{"style":902},[1136],{"type":905,"value":1137},"export",{"type":890,"tag":251,"props":1139,"children":1140},{"style":902},[1141],{"type":905,"value":555},{"type":890,"tag":251,"props":1143,"children":1145},{"style":1144},"--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0",[1146],{"type":905,"value":1147}," createApprovalCardExtension",{"type":890,"tag":251,"props":1149,"children":1150},{"style":908},[1151],{"type":905,"value":1152},"()",{"type":890,"tag":251,"props":1154,"children":1155},{"style":902},[1156],{"type":905,"value":568},{"type":890,"tag":251,"props":1158,"children":1159},{"style":1144},[1160],{"type":905,"value":1161}," MarkdownDocxExtension",{"type":890,"tag":251,"props":1163,"children":1164},{"style":908},[1165],{"type":905,"value":1166}," {\n",{"type":890,"tag":251,"props":1168,"children":1169},{"class":253,"line":876},[1170,1174],{"type":890,"tag":251,"props":1171,"children":1172},{"style":902},[1173],{"type":905,"value":602},{"type":890,"tag":251,"props":1175,"children":1176},{"style":908},[1177],{"type":905,"value":1166},{"type":890,"tag":251,"props":1179,"children":1181},{"class":253,"line":1180},13,[1182,1187,1192],{"type":890,"tag":251,"props":1183,"children":1184},{"style":908},[1185],{"type":905,"value":1186},"    name: ",{"type":890,"tag":251,"props":1188,"children":1189},{"style":918},[1190],{"type":905,"value":1191},"'example.approval-card'",{"type":890,"tag":251,"props":1193,"children":1194},{"style":908},[1195],{"type":905,"value":1196},",\n",{"type":890,"tag":251,"props":1198,"children":1200},{"class":253,"line":1199},14,[1201,1206,1210,1215,1220,1225],{"type":890,"tag":251,"props":1202,"children":1203},{"style":1144},[1204],{"type":905,"value":1205},"    prepare",{"type":890,"tag":251,"props":1207,"children":1208},{"style":908},[1209],{"type":905,"value":561},{"type":890,"tag":251,"props":1211,"children":1213},{"style":1212},"--shiki-default:#E36209;--shiki-light:#E36209;--shiki-dark:#FFAB70",[1214],{"type":905,"value":887},{"type":890,"tag":251,"props":1216,"children":1217},{"style":908},[1218],{"type":905,"value":1219},", ",{"type":890,"tag":251,"props":1221,"children":1222},{"style":1212},[1223],{"type":905,"value":1224},"context",{"type":890,"tag":251,"props":1226,"children":1227},{"style":908},[1228],{"type":905,"value":597},{"type":890,"tag":251,"props":1230,"children":1232},{"class":253,"line":1231},15,[1233],{"type":890,"tag":251,"props":1234,"children":1235},{"style":1115},[1236],{"type":905,"value":1237},"      \u002F\u002F Claim only validated fences. Invalid input remains ordinary code, with\n",{"type":890,"tag":251,"props":1239,"children":1241},{"class":253,"line":1240},16,[1242],{"type":890,"tag":251,"props":1243,"children":1244},{"style":1115},[1245],{"type":905,"value":1246},"      \u002F\u002F a loss report; unrelated code and the caller's source are unchanged.\n",{"type":890,"tag":251,"props":1248,"children":1250},{"class":253,"line":1249},17,[1251,1256,1261,1266,1271,1275],{"type":890,"tag":251,"props":1252,"children":1253},{"style":1115},[1254],{"type":905,"value":1255},"      \u002F** ",{"type":890,"tag":251,"props":1257,"children":1258},{"style":902},[1259],{"type":905,"value":1260},"@param",{"type":890,"tag":251,"props":1262,"children":1263},{"style":908},[1264],{"type":905,"value":1265}," node",{"type":890,"tag":251,"props":1267,"children":1268},{"style":1115},[1269],{"type":905,"value":1270}," - Source subtree. ",{"type":890,"tag":251,"props":1272,"children":1273},{"style":902},[1274],{"type":905,"value":1123},{"type":890,"tag":251,"props":1276,"children":1277},{"style":1115},[1278],{"type":905,"value":1279}," A fresh export-only projection. *\u002F\n",{"type":890,"tag":251,"props":1281,"children":1283},{"class":253,"line":1282},18,[1284,1289,1294,1298,1303,1307,1312,1317,1321,1325],{"type":890,"tag":251,"props":1285,"children":1286},{"style":902},[1287],{"type":905,"value":1288},"      function",{"type":890,"tag":251,"props":1290,"children":1291},{"style":1144},[1292],{"type":905,"value":1293}," visit",{"type":890,"tag":251,"props":1295,"children":1296},{"style":908},[1297],{"type":905,"value":561},{"type":890,"tag":251,"props":1299,"children":1300},{"style":1212},[1301],{"type":905,"value":1302},"node",{"type":890,"tag":251,"props":1304,"children":1305},{"style":902},[1306],{"type":905,"value":568},{"type":890,"tag":251,"props":1308,"children":1309},{"style":1144},[1310],{"type":905,"value":1311}," Nodes",{"type":890,"tag":251,"props":1313,"children":1314},{"style":908},[1315],{"type":905,"value":1316},")",{"type":890,"tag":251,"props":1318,"children":1319},{"style":902},[1320],{"type":905,"value":568},{"type":890,"tag":251,"props":1322,"children":1323},{"style":1144},[1324],{"type":905,"value":1311},{"type":890,"tag":251,"props":1326,"children":1327},{"style":908},[1328],{"type":905,"value":1166},{"type":890,"tag":251,"props":1330,"children":1332},{"class":253,"line":1331},19,[1333,1338,1343,1348,1353,1358,1363,1367,1372],{"type":890,"tag":251,"props":1334,"children":1335},{"style":902},[1336],{"type":905,"value":1337},"        if",{"type":890,"tag":251,"props":1339,"children":1340},{"style":908},[1341],{"type":905,"value":1342}," (node.type ",{"type":890,"tag":251,"props":1344,"children":1345},{"style":902},[1346],{"type":905,"value":1347},"===",{"type":890,"tag":251,"props":1349,"children":1350},{"style":918},[1351],{"type":905,"value":1352}," 'code'",{"type":890,"tag":251,"props":1354,"children":1355},{"style":902},[1356],{"type":905,"value":1357}," &&",{"type":890,"tag":251,"props":1359,"children":1360},{"style":908},[1361],{"type":905,"value":1362}," node.lang ",{"type":890,"tag":251,"props":1364,"children":1365},{"style":902},[1366],{"type":905,"value":1347},{"type":890,"tag":251,"props":1368,"children":1369},{"style":918},[1370],{"type":905,"value":1371}," 'approval-card'",{"type":890,"tag":251,"props":1373,"children":1374},{"style":908},[1375],{"type":905,"value":597},{"type":890,"tag":251,"props":1377,"children":1379},{"class":253,"line":1378},20,[1380,1385],{"type":890,"tag":251,"props":1381,"children":1382},{"style":902},[1383],{"type":905,"value":1384},"          try",{"type":890,"tag":251,"props":1386,"children":1387},{"style":908},[1388],{"type":905,"value":1166},{"type":890,"tag":251,"props":1390,"children":1392},{"class":253,"line":1391},21,[1393,1398,1403,1408,1413,1418,1423,1428,1433,1438,1442,1447],{"type":890,"tag":251,"props":1394,"children":1395},{"style":902},[1396],{"type":905,"value":1397},"            if",{"type":890,"tag":251,"props":1399,"children":1400},{"style":908},[1401],{"type":905,"value":1402}," (node.value.",{"type":890,"tag":251,"props":1404,"children":1405},{"style":1086},[1406],{"type":905,"value":1407},"length",{"type":890,"tag":251,"props":1409,"children":1410},{"style":902},[1411],{"type":905,"value":1412}," >",{"type":890,"tag":251,"props":1414,"children":1415},{"style":1086},[1416],{"type":905,"value":1417}," 24_000",{"type":890,"tag":251,"props":1419,"children":1420},{"style":908},[1421],{"type":905,"value":1422},") ",{"type":890,"tag":251,"props":1424,"children":1425},{"style":902},[1426],{"type":905,"value":1427},"throw",{"type":890,"tag":251,"props":1429,"children":1430},{"style":902},[1431],{"type":905,"value":1432}," new",{"type":890,"tag":251,"props":1434,"children":1435},{"style":1144},[1436],{"type":905,"value":1437}," Error",{"type":890,"tag":251,"props":1439,"children":1440},{"style":908},[1441],{"type":905,"value":561},{"type":890,"tag":251,"props":1443,"children":1444},{"style":918},[1445],{"type":905,"value":1446},"'Card source exceeds its budget.'",{"type":890,"tag":251,"props":1448,"children":1449},{"style":908},[1450],{"type":905,"value":1451},");\n",{"type":890,"tag":251,"props":1453,"children":1455},{"class":253,"line":1454},22,[1456,1461,1466,1470,1475,1479,1484,1489,1494],{"type":890,"tag":251,"props":1457,"children":1458},{"style":902},[1459],{"type":905,"value":1460},"            const",{"type":890,"tag":251,"props":1462,"children":1463},{"style":1086},[1464],{"type":905,"value":1465}," data",{"type":890,"tag":251,"props":1467,"children":1468},{"style":902},[1469],{"type":905,"value":382},{"type":890,"tag":251,"props":1471,"children":1472},{"style":1144},[1473],{"type":905,"value":1474}," readApprovalCard",{"type":890,"tag":251,"props":1476,"children":1477},{"style":908},[1478],{"type":905,"value":561},{"type":890,"tag":251,"props":1480,"children":1481},{"style":1086},[1482],{"type":905,"value":1483},"JSON",{"type":890,"tag":251,"props":1485,"children":1486},{"style":908},[1487],{"type":905,"value":1488},".",{"type":890,"tag":251,"props":1490,"children":1491},{"style":1144},[1492],{"type":905,"value":1493},"parse",{"type":890,"tag":251,"props":1495,"children":1496},{"style":908},[1497],{"type":905,"value":1498},"(node.value));\n",{"type":890,"tag":251,"props":1500,"children":1502},{"class":253,"line":1501},23,[1503,1507,1512,1516,1521,1525,1530,1535],{"type":890,"tag":251,"props":1504,"children":1505},{"style":902},[1506],{"type":905,"value":1460},{"type":890,"tag":251,"props":1508,"children":1509},{"style":1086},[1510],{"type":905,"value":1511}," card",{"type":890,"tag":251,"props":1513,"children":1514},{"style":902},[1515],{"type":905,"value":568},{"type":890,"tag":251,"props":1517,"children":1518},{"style":1144},[1519],{"type":905,"value":1520}," ApprovalCardNode",{"type":890,"tag":251,"props":1522,"children":1523},{"style":902},[1524],{"type":905,"value":382},{"type":890,"tag":251,"props":1526,"children":1527},{"style":908},[1528],{"type":905,"value":1529}," { type: ",{"type":890,"tag":251,"props":1531,"children":1532},{"style":918},[1533],{"type":905,"value":1534},"'exampleApprovalCard'",{"type":890,"tag":251,"props":1536,"children":1537},{"style":908},[1538],{"type":905,"value":1539},", card: data, position: node.position,\n",{"type":890,"tag":251,"props":1541,"children":1543},{"class":253,"line":1542},24,[1544,1549,1554,1558,1562,1567,1572,1577,1582,1587],{"type":890,"tag":251,"props":1545,"children":1546},{"style":908},[1547],{"type":905,"value":1548},"              children: data.paragraphs.",{"type":890,"tag":251,"props":1550,"children":1551},{"style":1144},[1552],{"type":905,"value":1553},"map",{"type":890,"tag":251,"props":1555,"children":1556},{"style":908},[1557],{"type":905,"value":561},{"type":890,"tag":251,"props":1559,"children":1560},{"style":1212},[1561],{"type":905,"value":905},{"type":890,"tag":251,"props":1563,"children":1564},{"style":902},[1565],{"type":905,"value":1566}," =>",{"type":890,"tag":251,"props":1568,"children":1569},{"style":908},[1570],{"type":905,"value":1571}," ({ type: ",{"type":890,"tag":251,"props":1573,"children":1574},{"style":918},[1575],{"type":905,"value":1576},"'paragraph'",{"type":890,"tag":251,"props":1578,"children":1579},{"style":908},[1580],{"type":905,"value":1581},", children: [{ type: ",{"type":890,"tag":251,"props":1583,"children":1584},{"style":918},[1585],{"type":905,"value":1586},"'text'",{"type":890,"tag":251,"props":1588,"children":1589},{"style":908},[1590],{"type":905,"value":1591},", value: text }] })) };\n",{"type":890,"tag":251,"props":1593,"children":1595},{"class":253,"line":1594},25,[1596,1601],{"type":890,"tag":251,"props":1597,"children":1598},{"style":902},[1599],{"type":905,"value":1600},"            return",{"type":890,"tag":251,"props":1602,"children":1603},{"style":908},[1604],{"type":905,"value":1605}," card;\n",{"type":890,"tag":251,"props":1607,"children":1609},{"class":253,"line":1608},26,[1610,1615,1620],{"type":890,"tag":251,"props":1611,"children":1612},{"style":908},[1613],{"type":905,"value":1614},"          } ",{"type":890,"tag":251,"props":1616,"children":1617},{"style":902},[1618],{"type":905,"value":1619},"catch",{"type":890,"tag":251,"props":1621,"children":1622},{"style":908},[1623],{"type":905,"value":1166},{"type":890,"tag":251,"props":1625,"children":1627},{"class":253,"line":1626},27,[1628,1633,1638,1643,1648,1653,1658,1662,1666,1671,1676,1681,1685,1690,1695,1700,1705],{"type":890,"tag":251,"props":1629,"children":1630},{"style":908},[1631],{"type":905,"value":1632},"            context.",{"type":890,"tag":251,"props":1634,"children":1635},{"style":1144},[1636],{"type":905,"value":1637},"report",{"type":890,"tag":251,"props":1639,"children":1640},{"style":908},[1641],{"type":905,"value":1642},"({ code: ",{"type":890,"tag":251,"props":1644,"children":1645},{"style":918},[1646],{"type":905,"value":1647},"'approval-card-invalid'",{"type":890,"tag":251,"props":1649,"children":1650},{"style":908},[1651],{"type":905,"value":1652},", path: ",{"type":890,"tag":251,"props":1654,"children":1655},{"style":918},[1656],{"type":905,"value":1657},"`\u002Fsource\u002F${",{"type":890,"tag":251,"props":1659,"children":1660},{"style":908},[1661],{"type":905,"value":1302},{"type":890,"tag":251,"props":1663,"children":1664},{"style":918},[1665],{"type":905,"value":1488},{"type":890,"tag":251,"props":1667,"children":1668},{"style":908},[1669],{"type":905,"value":1670},"position",{"type":890,"tag":251,"props":1672,"children":1673},{"style":918},[1674],{"type":905,"value":1675},"?.",{"type":890,"tag":251,"props":1677,"children":1678},{"style":908},[1679],{"type":905,"value":1680},"start",{"type":890,"tag":251,"props":1682,"children":1683},{"style":918},[1684],{"type":905,"value":1488},{"type":890,"tag":251,"props":1686,"children":1687},{"style":908},[1688],{"type":905,"value":1689},"offset",{"type":890,"tag":251,"props":1691,"children":1692},{"style":902},[1693],{"type":905,"value":1694}," ??",{"type":890,"tag":251,"props":1696,"children":1697},{"style":1086},[1698],{"type":905,"value":1699}," 0",{"type":890,"tag":251,"props":1701,"children":1702},{"style":918},[1703],{"type":905,"value":1704},"}`",{"type":890,"tag":251,"props":1706,"children":1707},{"style":908},[1708],{"type":905,"value":1196},{"type":890,"tag":251,"props":1710,"children":1712},{"class":253,"line":1711},28,[1713,1718,1723,1728,1733,1738,1743],{"type":890,"tag":251,"props":1714,"children":1715},{"style":908},[1716],{"type":905,"value":1717},"              severity: ",{"type":890,"tag":251,"props":1719,"children":1720},{"style":918},[1721],{"type":905,"value":1722},"'warning'",{"type":890,"tag":251,"props":1724,"children":1725},{"style":908},[1726],{"type":905,"value":1727},", disposition: ",{"type":890,"tag":251,"props":1729,"children":1730},{"style":918},[1731],{"type":905,"value":1732},"'approximated'",{"type":890,"tag":251,"props":1734,"children":1735},{"style":908},[1736],{"type":905,"value":1737},", message: ",{"type":890,"tag":251,"props":1739,"children":1740},{"style":918},[1741],{"type":905,"value":1742},"'Invalid card data was retained as source code.'",{"type":890,"tag":251,"props":1744,"children":1745},{"style":908},[1746],{"type":905,"value":1747}," });\n",{"type":890,"tag":251,"props":1749,"children":1751},{"class":253,"line":1750},29,[1752,1756],{"type":890,"tag":251,"props":1753,"children":1754},{"style":902},[1755],{"type":905,"value":1600},{"type":890,"tag":251,"props":1757,"children":1758},{"style":908},[1759],{"type":905,"value":1760}," node;\n",{"type":890,"tag":251,"props":1762,"children":1764},{"class":253,"line":1763},30,[1765],{"type":890,"tag":251,"props":1766,"children":1767},{"style":908},[1768],{"type":905,"value":1769},"          }\n",{"type":890,"tag":251,"props":1771,"children":1773},{"class":253,"line":1772},31,[1774],{"type":890,"tag":251,"props":1775,"children":1776},{"style":908},[1777],{"type":905,"value":1778},"        }\n",{"type":890,"tag":251,"props":1780,"children":1782},{"class":253,"line":1781},32,[1783,1788,1793,1798,1803,1808,1813,1818,1823,1827,1832,1837,1841,1845],{"type":890,"tag":251,"props":1784,"children":1785},{"style":902},[1786],{"type":905,"value":1787},"        return",{"type":890,"tag":251,"props":1789,"children":1790},{"style":918},[1791],{"type":905,"value":1792}," 'children'",{"type":890,"tag":251,"props":1794,"children":1795},{"style":902},[1796],{"type":905,"value":1797}," in",{"type":890,"tag":251,"props":1799,"children":1800},{"style":908},[1801],{"type":905,"value":1802}," node ",{"type":890,"tag":251,"props":1804,"children":1805},{"style":902},[1806],{"type":905,"value":1807},"?",{"type":890,"tag":251,"props":1809,"children":1810},{"style":908},[1811],{"type":905,"value":1812}," { ",{"type":890,"tag":251,"props":1814,"children":1815},{"style":902},[1816],{"type":905,"value":1817},"...",{"type":890,"tag":251,"props":1819,"children":1820},{"style":908},[1821],{"type":905,"value":1822},"node, children: node.children.",{"type":890,"tag":251,"props":1824,"children":1825},{"style":1144},[1826],{"type":905,"value":1553},{"type":890,"tag":251,"props":1828,"children":1829},{"style":908},[1830],{"type":905,"value":1831},"(visit) } ",{"type":890,"tag":251,"props":1833,"children":1834},{"style":902},[1835],{"type":905,"value":1836},"as",{"type":890,"tag":251,"props":1838,"children":1839},{"style":1144},[1840],{"type":905,"value":1311},{"type":890,"tag":251,"props":1842,"children":1843},{"style":902},[1844],{"type":905,"value":770},{"type":890,"tag":251,"props":1846,"children":1847},{"style":908},[1848],{"type":905,"value":1760},{"type":890,"tag":251,"props":1850,"children":1852},{"class":253,"line":1851},33,[1853],{"type":890,"tag":251,"props":1854,"children":1855},{"style":908},[1856],{"type":905,"value":1857},"      }\n",{"type":890,"tag":251,"props":1859,"children":1861},{"class":253,"line":1860},34,[1862,1867,1871,1875,1880,1884,1888,1892,1896,1900,1905,1909,1914],{"type":890,"tag":251,"props":1863,"children":1864},{"style":902},[1865],{"type":905,"value":1866},"      return",{"type":890,"tag":251,"props":1868,"children":1869},{"style":908},[1870],{"type":905,"value":1812},{"type":890,"tag":251,"props":1872,"children":1873},{"style":902},[1874],{"type":905,"value":1817},{"type":890,"tag":251,"props":1876,"children":1877},{"style":908},[1878],{"type":905,"value":1879},"root, children: root.children.",{"type":890,"tag":251,"props":1881,"children":1882},{"style":1144},[1883],{"type":905,"value":1553},{"type":890,"tag":251,"props":1885,"children":1886},{"style":908},[1887],{"type":905,"value":561},{"type":890,"tag":251,"props":1889,"children":1890},{"style":1212},[1891],{"type":905,"value":1302},{"type":890,"tag":251,"props":1893,"children":1894},{"style":902},[1895],{"type":905,"value":1566},{"type":890,"tag":251,"props":1897,"children":1898},{"style":1144},[1899],{"type":905,"value":1293},{"type":890,"tag":251,"props":1901,"children":1902},{"style":908},[1903],{"type":905,"value":1904},"(node) ",{"type":890,"tag":251,"props":1906,"children":1907},{"style":902},[1908],{"type":905,"value":1836},{"type":890,"tag":251,"props":1910,"children":1911},{"style":902},[1912],{"type":905,"value":1913}," typeof",{"type":890,"tag":251,"props":1915,"children":1916},{"style":908},[1917],{"type":905,"value":1918}," node) };\n",{"type":890,"tag":251,"props":1920,"children":1922},{"class":253,"line":1921},35,[1923],{"type":890,"tag":251,"props":1924,"children":1925},{"style":908},[1926],{"type":905,"value":1927},"    },\n",{"type":890,"tag":251,"props":1929,"children":1931},{"class":253,"line":1930},36,[1932,1937,1942,1947,1952,1956,1960,1965,1969,1974],{"type":890,"tag":251,"props":1933,"children":1934},{"style":1144},[1935],{"type":905,"value":1936},"    addDocx",{"type":890,"tag":251,"props":1938,"children":1939},{"style":908},[1940],{"type":905,"value":1941},": () ",{"type":890,"tag":251,"props":1943,"children":1944},{"style":902},[1945],{"type":905,"value":1946},"=>",{"type":890,"tag":251,"props":1948,"children":1949},{"style":908},[1950],{"type":905,"value":1951}," docx.codec.",{"type":890,"tag":251,"props":1953,"children":1954},{"style":1144},[1955],{"type":905,"value":1302},{"type":890,"tag":251,"props":1957,"children":1958},{"style":908},[1959],{"type":905,"value":574},{"type":890,"tag":251,"props":1961,"children":1962},{"style":1144},[1963],{"type":905,"value":1964},"Nodes",{"type":890,"tag":251,"props":1966,"children":1967},{"style":908},[1968],{"type":905,"value":1219},{"type":890,"tag":251,"props":1970,"children":1971},{"style":1086},[1972],{"type":905,"value":1973},"never",{"type":890,"tag":251,"props":1975,"children":1976},{"style":908},[1977],{"type":905,"value":1978},">({\n",{"type":890,"tag":251,"props":1980,"children":1982},{"class":253,"line":1981},37,[1983,1988,1992,1997,2001],{"type":890,"tag":251,"props":1984,"children":1985},{"style":908},[1986],{"type":905,"value":1987},"      id: ",{"type":890,"tag":251,"props":1989,"children":1990},{"style":918},[1991],{"type":905,"value":1191},{"type":890,"tag":251,"props":1993,"children":1994},{"style":908},[1995],{"type":905,"value":1996},", modelType: ",{"type":890,"tag":251,"props":1998,"children":1999},{"style":918},[2000],{"type":905,"value":1534},{"type":890,"tag":251,"props":2002,"children":2003},{"style":908},[2004],{"type":905,"value":1196},{"type":890,"tag":251,"props":2006,"children":2008},{"class":253,"line":2007},38,[2009,2014,2019,2024,2028,2032,2036,2041,2046,2050,2054,2058,2063,2068,2072],{"type":890,"tag":251,"props":2010,"children":2011},{"style":908},[2012],{"type":905,"value":2013},"      export: { ",{"type":890,"tag":251,"props":2015,"children":2016},{"style":1144},[2017],{"type":905,"value":2018},"convert",{"type":890,"tag":251,"props":2020,"children":2021},{"style":908},[2022],{"type":905,"value":2023},": ({ ",{"type":890,"tag":251,"props":2025,"children":2026},{"style":1212},[2027],{"type":905,"value":1302},{"type":890,"tag":251,"props":2029,"children":2030},{"style":908},[2031],{"type":905,"value":1219},{"type":890,"tag":251,"props":2033,"children":2034},{"style":1212},[2035],{"type":905,"value":773},{"type":890,"tag":251,"props":2037,"children":2038},{"style":908},[2039],{"type":905,"value":2040},": ",{"type":890,"tag":251,"props":2042,"children":2043},{"style":1212},[2044],{"type":905,"value":2045},"api",{"type":890,"tag":251,"props":2047,"children":2048},{"style":908},[2049],{"type":905,"value":1219},{"type":890,"tag":251,"props":2051,"children":2052},{"style":1212},[2053],{"type":905,"value":208},{"type":890,"tag":251,"props":2055,"children":2056},{"style":908},[2057],{"type":905,"value":1219},{"type":890,"tag":251,"props":2059,"children":2060},{"style":1212},[2061],{"type":905,"value":2062},"resolveService",{"type":890,"tag":251,"props":2064,"children":2065},{"style":908},[2066],{"type":905,"value":2067}," }) ",{"type":890,"tag":251,"props":2069,"children":2070},{"style":902},[2071],{"type":905,"value":1946},{"type":890,"tag":251,"props":2073,"children":2074},{"style":908},[2075],{"type":905,"value":1166},{"type":890,"tag":251,"props":2077,"children":2079},{"class":253,"line":2078},39,[2080,2084,2088,2093,2098,2102,2106,2110,2114,2118,2123],{"type":890,"tag":251,"props":2081,"children":2082},{"style":902},[2083],{"type":905,"value":1337},{"type":890,"tag":251,"props":2085,"children":2086},{"style":908},[2087],{"type":905,"value":1342},{"type":890,"tag":251,"props":2089,"children":2090},{"style":902},[2091],{"type":905,"value":2092},"!==",{"type":890,"tag":251,"props":2094,"children":2095},{"style":918},[2096],{"type":905,"value":2097}," 'exampleApprovalCard'",{"type":890,"tag":251,"props":2099,"children":2100},{"style":908},[2101],{"type":905,"value":1422},{"type":890,"tag":251,"props":2103,"children":2104},{"style":902},[2105],{"type":905,"value":1427},{"type":890,"tag":251,"props":2107,"children":2108},{"style":902},[2109],{"type":905,"value":1432},{"type":890,"tag":251,"props":2111,"children":2112},{"style":1144},[2113],{"type":905,"value":1437},{"type":890,"tag":251,"props":2115,"children":2116},{"style":908},[2117],{"type":905,"value":561},{"type":890,"tag":251,"props":2119,"children":2120},{"style":918},[2121],{"type":905,"value":2122},"'Unexpected card node.'",{"type":890,"tag":251,"props":2124,"children":2125},{"style":908},[2126],{"type":905,"value":1451},{"type":890,"tag":251,"props":2128,"children":2130},{"class":253,"line":2129},40,[2131],{"type":890,"tag":251,"props":2132,"children":2133},{"style":1115},[2134],{"type":905,"value":2135},"        \u002F\u002F Use the resolved template, then let the common projector constrain\n",{"type":890,"tag":251,"props":2137,"children":2139},{"class":253,"line":2138},41,[2140],{"type":890,"tag":251,"props":2141,"children":2142},{"style":1115},[2143],{"type":905,"value":2144},"        \u002F\u002F the table width and Classic paginate it. Never set a fixed row height.\n",{"type":890,"tag":251,"props":2146,"children":2148},{"class":253,"line":2147},42,[2149,2154,2159,2163,2168,2172,2177,2182],{"type":890,"tag":251,"props":2150,"children":2151},{"style":902},[2152],{"type":905,"value":2153},"        const",{"type":890,"tag":251,"props":2155,"children":2156},{"style":1086},[2157],{"type":905,"value":2158}," style",{"type":890,"tag":251,"props":2160,"children":2161},{"style":902},[2162],{"type":905,"value":382},{"type":890,"tag":251,"props":2164,"children":2165},{"style":908},[2166],{"type":905,"value":2167}," (",{"type":890,"tag":251,"props":2169,"children":2170},{"style":1144},[2171],{"type":905,"value":2062},{"type":890,"tag":251,"props":2173,"children":2174},{"style":908},[2175],{"type":905,"value":2176},"(markdownExportTemplateService) ",{"type":890,"tag":251,"props":2178,"children":2179},{"style":902},[2180],{"type":905,"value":2181},"??",{"type":890,"tag":251,"props":2183,"children":2184},{"style":908},[2185],{"type":905,"value":2186}," defaultExportTemplate.style).containers.note;\n",{"type":890,"tag":251,"props":2188,"children":2190},{"class":253,"line":2189},43,[2191,2195,2200,2204,2209,2213,2218,2222,2227,2232,2236,2241],{"type":890,"tag":251,"props":2192,"children":2193},{"style":902},[2194],{"type":905,"value":2153},{"type":890,"tag":251,"props":2196,"children":2197},{"style":1086},[2198],{"type":905,"value":2199}," border",{"type":890,"tag":251,"props":2201,"children":2202},{"style":902},[2203],{"type":905,"value":382},{"type":890,"tag":251,"props":2205,"children":2206},{"style":908},[2207],{"type":905,"value":2208}," { val: style.border ",{"type":890,"tag":251,"props":2210,"children":2211},{"style":902},[2212],{"type":905,"value":1807},{"type":890,"tag":251,"props":2214,"children":2215},{"style":918},[2216],{"type":905,"value":2217}," 'single'",{"type":890,"tag":251,"props":2219,"children":2220},{"style":902},[2221],{"type":905,"value":770},{"type":890,"tag":251,"props":2223,"children":2224},{"style":918},[2225],{"type":905,"value":2226}," 'nil'",{"type":890,"tag":251,"props":2228,"children":2229},{"style":908},[2230],{"type":905,"value":2231},", color: style.border?.color ",{"type":890,"tag":251,"props":2233,"children":2234},{"style":902},[2235],{"type":905,"value":2181},{"type":890,"tag":251,"props":2237,"children":2238},{"style":918},[2239],{"type":905,"value":2240}," 'auto'",{"type":890,"tag":251,"props":2242,"children":2243},{"style":908},[2244],{"type":905,"value":1196},{"type":890,"tag":251,"props":2246,"children":2248},{"class":253,"line":2247},44,[2249,2254,2259,2264,2268,2272,2276,2281,2286,2291,2296],{"type":890,"tag":251,"props":2250,"children":2251},{"style":908},[2252],{"type":905,"value":2253},"          sz: Math.",{"type":890,"tag":251,"props":2255,"children":2256},{"style":1144},[2257],{"type":905,"value":2258},"round",{"type":890,"tag":251,"props":2260,"children":2261},{"style":908},[2262],{"type":905,"value":2263},"((style.border?.width ",{"type":890,"tag":251,"props":2265,"children":2266},{"style":902},[2267],{"type":905,"value":2181},{"type":890,"tag":251,"props":2269,"children":2270},{"style":1086},[2271],{"type":905,"value":1699},{"type":890,"tag":251,"props":2273,"children":2274},{"style":908},[2275],{"type":905,"value":1422},{"type":890,"tag":251,"props":2277,"children":2278},{"style":902},[2279],{"type":905,"value":2280},"*",{"type":890,"tag":251,"props":2282,"children":2283},{"style":1086},[2284],{"type":905,"value":2285}," 8",{"type":890,"tag":251,"props":2287,"children":2288},{"style":908},[2289],{"type":905,"value":2290},"), space: ",{"type":890,"tag":251,"props":2292,"children":2293},{"style":1086},[2294],{"type":905,"value":2295},"0",{"type":890,"tag":251,"props":2297,"children":2298},{"style":908},[2299],{"type":905,"value":2300}," };\n",{"type":890,"tag":251,"props":2302,"children":2304},{"class":253,"line":2303},45,[2305,2309,2314,2318,2323,2327,2332,2336,2341,2346],{"type":890,"tag":251,"props":2306,"children":2307},{"style":902},[2308],{"type":905,"value":2153},{"type":890,"tag":251,"props":2310,"children":2311},{"style":1086},[2312],{"type":905,"value":2313}," padding",{"type":890,"tag":251,"props":2315,"children":2316},{"style":902},[2317],{"type":905,"value":382},{"type":890,"tag":251,"props":2319,"children":2320},{"style":908},[2321],{"type":905,"value":2322}," Math.",{"type":890,"tag":251,"props":2324,"children":2325},{"style":1144},[2326],{"type":905,"value":2258},{"type":890,"tag":251,"props":2328,"children":2329},{"style":908},[2330],{"type":905,"value":2331},"(style.padding ",{"type":890,"tag":251,"props":2333,"children":2334},{"style":902},[2335],{"type":905,"value":2280},{"type":890,"tag":251,"props":2337,"children":2338},{"style":1086},[2339],{"type":905,"value":2340}," 20",{"type":890,"tag":251,"props":2342,"children":2343},{"style":908},[2344],{"type":905,"value":2345},"); ",{"type":890,"tag":251,"props":2347,"children":2348},{"style":1115},[2349],{"type":905,"value":2350},"\u002F\u002F Template pt → native cell twips.\n",{"type":890,"tag":251,"props":2352,"children":2354},{"class":253,"line":2353},46,[2355,2359,2364,2368,2373,2378,2383,2388],{"type":890,"tag":251,"props":2356,"children":2357},{"style":902},[2358],{"type":905,"value":2153},{"type":890,"tag":251,"props":2360,"children":2361},{"style":1086},[2362],{"type":905,"value":2363}," children",{"type":890,"tag":251,"props":2365,"children":2366},{"style":902},[2367],{"type":905,"value":382},{"type":890,"tag":251,"props":2369,"children":2370},{"style":908},[2371],{"type":905,"value":2372}," [api.blocks.",{"type":890,"tag":251,"props":2374,"children":2375},{"style":1144},[2376],{"type":905,"value":2377},"paragraph",{"type":890,"tag":251,"props":2379,"children":2380},{"style":908},[2381],{"type":905,"value":2382},"({ properties: { keepNext: ",{"type":890,"tag":251,"props":2384,"children":2385},{"style":1086},[2386],{"type":905,"value":2387},"true",{"type":890,"tag":251,"props":2389,"children":2390},{"style":908},[2391],{"type":905,"value":2392}," },\n",{"type":890,"tag":251,"props":2394,"children":2396},{"class":253,"line":2395},47,[2397,2402,2406,2411,2416,2421,2425,2429],{"type":890,"tag":251,"props":2398,"children":2399},{"style":908},[2400],{"type":905,"value":2401},"          children: [api.inline.",{"type":890,"tag":251,"props":2403,"children":2404},{"style":1144},[2405],{"type":905,"value":905},{"type":890,"tag":251,"props":2407,"children":2408},{"style":908},[2409],{"type":905,"value":2410},"(node.card.title, { marks: [api.marks.",{"type":890,"tag":251,"props":2412,"children":2413},{"style":1144},[2414],{"type":905,"value":2415},"bold",{"type":890,"tag":251,"props":2417,"children":2418},{"style":908},[2419],{"type":905,"value":2420},"()] })] }), ",{"type":890,"tag":251,"props":2422,"children":2423},{"style":902},[2424],{"type":905,"value":1817},{"type":890,"tag":251,"props":2426,"children":2427},{"style":1144},[2428],{"type":905,"value":208},{"type":890,"tag":251,"props":2430,"children":2431},{"style":908},[2432],{"type":905,"value":2433},"(node.children)];\n",{"type":890,"tag":251,"props":2435,"children":2437},{"class":253,"line":2436},48,[2438,2442,2447,2451,2456,2460,2464,2469,2473,2478,2482,2487,2491,2496,2501],{"type":890,"tag":251,"props":2439,"children":2440},{"style":902},[2441],{"type":905,"value":2153},{"type":890,"tag":251,"props":2443,"children":2444},{"style":1086},[2445],{"type":905,"value":2446}," styled",{"type":890,"tag":251,"props":2448,"children":2449},{"style":902},[2450],{"type":905,"value":382},{"type":890,"tag":251,"props":2452,"children":2453},{"style":908},[2454],{"type":905,"value":2455}," children.",{"type":890,"tag":251,"props":2457,"children":2458},{"style":1144},[2459],{"type":905,"value":1553},{"type":890,"tag":251,"props":2461,"children":2462},{"style":908},[2463],{"type":905,"value":561},{"type":890,"tag":251,"props":2465,"children":2466},{"style":1212},[2467],{"type":905,"value":2468},"child",{"type":890,"tag":251,"props":2470,"children":2471},{"style":902},[2472],{"type":905,"value":1566},{"type":890,"tag":251,"props":2474,"children":2475},{"style":908},[2476],{"type":905,"value":2477}," ({ ",{"type":890,"tag":251,"props":2479,"children":2480},{"style":902},[2481],{"type":905,"value":1817},{"type":890,"tag":251,"props":2483,"children":2484},{"style":908},[2485],{"type":905,"value":2486},"child, attrs: { ",{"type":890,"tag":251,"props":2488,"children":2489},{"style":902},[2490],{"type":905,"value":1817},{"type":890,"tag":251,"props":2492,"children":2493},{"style":908},[2494],{"type":905,"value":2495},"child.attrs, styleId: ",{"type":890,"tag":251,"props":2497,"children":2498},{"style":918},[2499],{"type":905,"value":2500},"'QuireKitContainer_note'",{"type":890,"tag":251,"props":2502,"children":2503},{"style":908},[2504],{"type":905,"value":2505}," } }));\n",{"type":890,"tag":251,"props":2507,"children":2509},{"class":253,"line":2508},49,[2510,2514,2519,2523,2528,2533,2538,2543,2548,2553],{"type":890,"tag":251,"props":2511,"children":2512},{"style":902},[2513],{"type":905,"value":2153},{"type":890,"tag":251,"props":2515,"children":2516},{"style":1086},[2517],{"type":905,"value":2518}," cell",{"type":890,"tag":251,"props":2520,"children":2521},{"style":902},[2522],{"type":905,"value":382},{"type":890,"tag":251,"props":2524,"children":2525},{"style":908},[2526],{"type":905,"value":2527}," api.tables.",{"type":890,"tag":251,"props":2529,"children":2530},{"style":1144},[2531],{"type":905,"value":2532},"cell",{"type":890,"tag":251,"props":2534,"children":2535},{"style":908},[2536],{"type":905,"value":2537},"({ children: styled, width: { value: ",{"type":890,"tag":251,"props":2539,"children":2540},{"style":1086},[2541],{"type":905,"value":2542},"5000",{"type":890,"tag":251,"props":2544,"children":2545},{"style":908},[2546],{"type":905,"value":2547},", type: ",{"type":890,"tag":251,"props":2549,"children":2550},{"style":918},[2551],{"type":905,"value":2552},"'pct'",{"type":890,"tag":251,"props":2554,"children":2555},{"style":908},[2556],{"type":905,"value":2392},{"type":890,"tag":251,"props":2558,"children":2560},{"class":253,"line":2559},50,[2561,2566,2570,2575,2579,2583,2588,2592,2596],{"type":890,"tag":251,"props":2562,"children":2563},{"style":908},[2564],{"type":905,"value":2565},"          shading: { val: style.fill ",{"type":890,"tag":251,"props":2567,"children":2568},{"style":902},[2569],{"type":905,"value":1807},{"type":890,"tag":251,"props":2571,"children":2572},{"style":918},[2573],{"type":905,"value":2574}," 'clear'",{"type":890,"tag":251,"props":2576,"children":2577},{"style":902},[2578],{"type":905,"value":770},{"type":890,"tag":251,"props":2580,"children":2581},{"style":918},[2582],{"type":905,"value":2226},{"type":890,"tag":251,"props":2584,"children":2585},{"style":908},[2586],{"type":905,"value":2587},", fill: style.fill ",{"type":890,"tag":251,"props":2589,"children":2590},{"style":902},[2591],{"type":905,"value":2181},{"type":890,"tag":251,"props":2593,"children":2594},{"style":918},[2595],{"type":905,"value":2240},{"type":890,"tag":251,"props":2597,"children":2598},{"style":908},[2599],{"type":905,"value":2392},{"type":890,"tag":251,"props":2601,"children":2603},{"class":253,"line":2602},51,[2604],{"type":890,"tag":251,"props":2605,"children":2606},{"style":908},[2607],{"type":905,"value":2608},"          borders: { top: border, bottom: border, left: border, right: border } });\n",{"type":890,"tag":251,"props":2610,"children":2612},{"class":253,"line":2611},52,[2613,2617,2622,2626,2630,2634,2639,2643,2647,2651,2656,2661],{"type":890,"tag":251,"props":2614,"children":2615},{"style":902},[2616],{"type":905,"value":2153},{"type":890,"tag":251,"props":2618,"children":2619},{"style":1086},[2620],{"type":905,"value":2621}," table",{"type":890,"tag":251,"props":2623,"children":2624},{"style":902},[2625],{"type":905,"value":382},{"type":890,"tag":251,"props":2627,"children":2628},{"style":908},[2629],{"type":905,"value":2527},{"type":890,"tag":251,"props":2631,"children":2632},{"style":1144},[2633],{"type":905,"value":37},{"type":890,"tag":251,"props":2635,"children":2636},{"style":908},[2637],{"type":905,"value":2638},"({ width: { value: ",{"type":890,"tag":251,"props":2640,"children":2641},{"style":1086},[2642],{"type":905,"value":2542},{"type":890,"tag":251,"props":2644,"children":2645},{"style":908},[2646],{"type":905,"value":2547},{"type":890,"tag":251,"props":2648,"children":2649},{"style":918},[2650],{"type":905,"value":2552},{"type":890,"tag":251,"props":2652,"children":2653},{"style":908},[2654],{"type":905,"value":2655}," }, rows: [api.tables.",{"type":890,"tag":251,"props":2657,"children":2658},{"style":1144},[2659],{"type":905,"value":2660},"row",{"type":890,"tag":251,"props":2662,"children":2663},{"style":908},[2664],{"type":905,"value":2665},"({ cells: [\n",{"type":890,"tag":251,"props":2667,"children":2669},{"class":253,"line":2668},53,[2670,2675,2679,2684,2688],{"type":890,"tag":251,"props":2671,"children":2672},{"style":908},[2673],{"type":905,"value":2674},"          { ",{"type":890,"tag":251,"props":2676,"children":2677},{"style":902},[2678],{"type":905,"value":1817},{"type":890,"tag":251,"props":2680,"children":2681},{"style":908},[2682],{"type":905,"value":2683},"cell, attrs: { ",{"type":890,"tag":251,"props":2685,"children":2686},{"style":902},[2687],{"type":905,"value":1817},{"type":890,"tag":251,"props":2689,"children":2690},{"style":908},[2691],{"type":905,"value":2692},"cell.attrs, cellMargins: { top: padding, bottom: padding, left: padding, right: padding } } },\n",{"type":890,"tag":251,"props":2694,"children":2696},{"class":253,"line":2695},54,[2697],{"type":890,"tag":251,"props":2698,"children":2699},{"style":908},[2700],{"type":905,"value":2701},"        ] })] });\n",{"type":890,"tag":251,"props":2703,"children":2705},{"class":253,"line":2704},55,[2706,2710,2715,2720],{"type":890,"tag":251,"props":2707,"children":2708},{"style":902},[2709],{"type":905,"value":1787},{"type":890,"tag":251,"props":2711,"children":2712},{"style":908},[2713],{"type":905,"value":2714}," [api.roundTrip.",{"type":890,"tag":251,"props":2716,"children":2717},{"style":1144},[2718],{"type":905,"value":2719},"taggedBlock",{"type":890,"tag":251,"props":2721,"children":2722},{"style":908},[2723],{"type":905,"value":2724},"({ tag, alias: node.card.title, children: [table],\n",{"type":890,"tag":251,"props":2726,"children":2728},{"class":253,"line":2727},56,[2729,2734,2739,2744,2748],{"type":890,"tag":251,"props":2730,"children":2731},{"style":908},[2732],{"type":905,"value":2733},"          metadata: { version: ",{"type":890,"tag":251,"props":2735,"children":2736},{"style":1086},[2737],{"type":905,"value":2738},"1",{"type":890,"tag":251,"props":2740,"children":2741},{"style":908},[2742],{"type":905,"value":2743},", data: { title: node.card.title, paragraphs: [",{"type":890,"tag":251,"props":2745,"children":2746},{"style":902},[2747],{"type":905,"value":1817},{"type":890,"tag":251,"props":2749,"children":2750},{"style":908},[2751],{"type":905,"value":2752},"node.card.paragraphs] } } })];\n",{"type":890,"tag":251,"props":2754,"children":2756},{"class":253,"line":2755},57,[2757],{"type":890,"tag":251,"props":2758,"children":2759},{"style":908},[2760],{"type":905,"value":2761},"      } },\n",{"type":890,"tag":251,"props":2763,"children":2765},{"class":253,"line":2764},58,[2766,2771,2776,2781,2786,2790,2794,2798,2803,2807,2812,2816,2821,2825,2830,2834,2839,2843,2848],{"type":890,"tag":251,"props":2767,"children":2768},{"style":908},[2769],{"type":905,"value":2770},"      import: { from: docx.roundTrip.",{"type":890,"tag":251,"props":2772,"children":2773},{"style":1144},[2774],{"type":905,"value":2775},"matchTag",{"type":890,"tag":251,"props":2777,"children":2778},{"style":908},[2779],{"type":905,"value":2780},"(tag), creates: [",{"type":890,"tag":251,"props":2782,"children":2783},{"style":918},[2784],{"type":905,"value":2785},"'docxSource'",{"type":890,"tag":251,"props":2787,"children":2788},{"style":908},[2789],{"type":905,"value":1219},{"type":890,"tag":251,"props":2791,"children":2792},{"style":918},[2793],{"type":905,"value":1576},{"type":890,"tag":251,"props":2795,"children":2796},{"style":908},[2797],{"type":905,"value":1219},{"type":890,"tag":251,"props":2799,"children":2800},{"style":918},[2801],{"type":905,"value":2802},"'heading'",{"type":890,"tag":251,"props":2804,"children":2805},{"style":908},[2806],{"type":905,"value":1219},{"type":890,"tag":251,"props":2808,"children":2809},{"style":918},[2810],{"type":905,"value":2811},"'list'",{"type":890,"tag":251,"props":2813,"children":2814},{"style":908},[2815],{"type":905,"value":1219},{"type":890,"tag":251,"props":2817,"children":2818},{"style":918},[2819],{"type":905,"value":2820},"'blockquote'",{"type":890,"tag":251,"props":2822,"children":2823},{"style":908},[2824],{"type":905,"value":1219},{"type":890,"tag":251,"props":2826,"children":2827},{"style":918},[2828],{"type":905,"value":2829},"'code'",{"type":890,"tag":251,"props":2831,"children":2832},{"style":908},[2833],{"type":905,"value":1219},{"type":890,"tag":251,"props":2835,"children":2836},{"style":918},[2837],{"type":905,"value":2838},"'table'",{"type":890,"tag":251,"props":2840,"children":2841},{"style":908},[2842],{"type":905,"value":1219},{"type":890,"tag":251,"props":2844,"children":2845},{"style":918},[2846],{"type":905,"value":2847},"'thematicBreak'",{"type":890,"tag":251,"props":2849,"children":2850},{"style":908},[2851],{"type":905,"value":2852},"],\n",{"type":890,"tag":251,"props":2854,"children":2856},{"class":253,"line":2855},59,[2857,2862,2866,2870,2874,2878,2882,2886,2890,2894,2898,2902,2906,2910],{"type":890,"tag":251,"props":2858,"children":2859},{"style":1144},[2860],{"type":905,"value":2861},"        convert",{"type":890,"tag":251,"props":2863,"children":2864},{"style":908},[2865],{"type":905,"value":2023},{"type":890,"tag":251,"props":2867,"children":2868},{"style":1212},[2869],{"type":905,"value":1302},{"type":890,"tag":251,"props":2871,"children":2872},{"style":908},[2873],{"type":905,"value":1219},{"type":890,"tag":251,"props":2875,"children":2876},{"style":1212},[2877],{"type":905,"value":773},{"type":890,"tag":251,"props":2879,"children":2880},{"style":908},[2881],{"type":905,"value":2040},{"type":890,"tag":251,"props":2883,"children":2884},{"style":1212},[2885],{"type":905,"value":2045},{"type":890,"tag":251,"props":2887,"children":2888},{"style":908},[2889],{"type":905,"value":1219},{"type":890,"tag":251,"props":2891,"children":2892},{"style":1212},[2893],{"type":905,"value":208},{"type":890,"tag":251,"props":2895,"children":2896},{"style":908},[2897],{"type":905,"value":1219},{"type":890,"tag":251,"props":2899,"children":2900},{"style":1212},[2901],{"type":905,"value":1637},{"type":890,"tag":251,"props":2903,"children":2904},{"style":908},[2905],{"type":905,"value":2067},{"type":890,"tag":251,"props":2907,"children":2908},{"style":902},[2909],{"type":905,"value":1946},{"type":890,"tag":251,"props":2911,"children":2912},{"style":908},[2913],{"type":905,"value":1166},{"type":890,"tag":251,"props":2915,"children":2917},{"class":253,"line":2916},60,[2918],{"type":890,"tag":251,"props":2919,"children":2920},{"style":1115},[2921],{"type":905,"value":2922},"          \u002F\u002F The shared codec first verifies visible-content fingerprints. Then\n",{"type":890,"tag":251,"props":2924,"children":2926},{"class":253,"line":2925},61,[2927],{"type":890,"tag":251,"props":2928,"children":2929},{"style":1115},[2930],{"type":905,"value":2931},"          \u002F\u002F validate our own payload\u002Fversion; never resurrect stale Word text.\n",{"type":890,"tag":251,"props":2933,"children":2935},{"class":253,"line":2934},62,[2936,2941,2946,2950,2955,2960],{"type":890,"tag":251,"props":2937,"children":2938},{"style":902},[2939],{"type":905,"value":2940},"          const",{"type":890,"tag":251,"props":2942,"children":2943},{"style":1086},[2944],{"type":905,"value":2945}," metadata",{"type":890,"tag":251,"props":2947,"children":2948},{"style":902},[2949],{"type":905,"value":382},{"type":890,"tag":251,"props":2951,"children":2952},{"style":908},[2953],{"type":905,"value":2954}," api.roundTrip.",{"type":890,"tag":251,"props":2956,"children":2957},{"style":1144},[2958],{"type":905,"value":2959},"readMetadata",{"type":890,"tag":251,"props":2961,"children":2962},{"style":908},[2963],{"type":905,"value":2964},"(node);\n",{"type":890,"tag":251,"props":2966,"children":2968},{"class":253,"line":2967},63,[2969,2974,2979,2983,2988],{"type":890,"tag":251,"props":2970,"children":2971},{"style":902},[2972],{"type":905,"value":2973},"          if",{"type":890,"tag":251,"props":2975,"children":2976},{"style":908},[2977],{"type":905,"value":2978}," (metadata?.version ",{"type":890,"tag":251,"props":2980,"children":2981},{"style":902},[2982],{"type":905,"value":1347},{"type":890,"tag":251,"props":2984,"children":2985},{"style":1086},[2986],{"type":905,"value":2987}," 1",{"type":890,"tag":251,"props":2989,"children":2990},{"style":908},[2991],{"type":905,"value":597},{"type":890,"tag":251,"props":2993,"children":2995},{"class":253,"line":2994},64,[2996,3001,3005,3010,3015,3019,3024,3029,3033,3038],{"type":890,"tag":251,"props":2997,"children":2998},{"style":902},[2999],{"type":905,"value":3000},"            try",{"type":890,"tag":251,"props":3002,"children":3003},{"style":908},[3004],{"type":905,"value":1812},{"type":890,"tag":251,"props":3006,"children":3007},{"style":902},[3008],{"type":905,"value":3009},"return",{"type":890,"tag":251,"props":3011,"children":3012},{"style":908},[3013],{"type":905,"value":3014}," [{ type: ",{"type":890,"tag":251,"props":3016,"children":3017},{"style":918},[3018],{"type":905,"value":2785},{"type":890,"tag":251,"props":3020,"children":3021},{"style":908},[3022],{"type":905,"value":3023},", value: ",{"type":890,"tag":251,"props":3025,"children":3026},{"style":1144},[3027],{"type":905,"value":3028},"approvalCardMarkdown",{"type":890,"tag":251,"props":3030,"children":3031},{"style":908},[3032],{"type":905,"value":561},{"type":890,"tag":251,"props":3034,"children":3035},{"style":1144},[3036],{"type":905,"value":3037},"readApprovalCard",{"type":890,"tag":251,"props":3039,"children":3040},{"style":908},[3041],{"type":905,"value":3042},"(metadata.data)) }]; }\n",{"type":890,"tag":251,"props":3044,"children":3046},{"class":253,"line":3045},65,[3047,3052,3056,3061],{"type":890,"tag":251,"props":3048,"children":3049},{"style":902},[3050],{"type":905,"value":3051},"            catch",{"type":890,"tag":251,"props":3053,"children":3054},{"style":908},[3055],{"type":905,"value":1812},{"type":890,"tag":251,"props":3057,"children":3058},{"style":1115},[3059],{"type":905,"value":3060},"\u002F* Invalid business data must use the current visible content. *\u002F",{"type":890,"tag":251,"props":3062,"children":3063},{"style":908},[3064],{"type":905,"value":3065}," }\n",{"type":890,"tag":251,"props":3067,"children":3069},{"class":253,"line":3068},66,[3070],{"type":890,"tag":251,"props":3071,"children":3072},{"style":908},[3073],{"type":905,"value":1769},{"type":890,"tag":251,"props":3075,"children":3077},{"class":253,"line":3076},67,[3078,3083,3087,3092,3097,3101,3105,3109],{"type":890,"tag":251,"props":3079,"children":3080},{"style":1144},[3081],{"type":905,"value":3082},"          report",{"type":890,"tag":251,"props":3084,"children":3085},{"style":908},[3086],{"type":905,"value":1642},{"type":890,"tag":251,"props":3088,"children":3089},{"style":918},[3090],{"type":905,"value":3091},"'approval-card-source-unavailable'",{"type":890,"tag":251,"props":3093,"children":3094},{"style":908},[3095],{"type":905,"value":3096},", severity: ",{"type":890,"tag":251,"props":3098,"children":3099},{"style":918},[3100],{"type":905,"value":1722},{"type":890,"tag":251,"props":3102,"children":3103},{"style":908},[3104],{"type":905,"value":1727},{"type":890,"tag":251,"props":3106,"children":3107},{"style":918},[3108],{"type":905,"value":1732},{"type":890,"tag":251,"props":3110,"children":3111},{"style":908},[3112],{"type":905,"value":1196},{"type":890,"tag":251,"props":3114,"children":3116},{"class":253,"line":3115},68,[3117,3122,3127],{"type":890,"tag":251,"props":3118,"children":3119},{"style":908},[3120],{"type":905,"value":3121},"            message: ",{"type":890,"tag":251,"props":3123,"children":3124},{"style":918},[3125],{"type":905,"value":3126},"'Card metadata is unavailable; current visible content was retained.'",{"type":890,"tag":251,"props":3128,"children":3129},{"style":908},[3130],{"type":905,"value":1747},{"type":890,"tag":251,"props":3132,"children":3134},{"class":253,"line":3133},69,[3135,3139,3143,3147,3152,3156,3161,3166,3170,3174,3178,3183,3187,3192,3196,3201,3205,3210],{"type":890,"tag":251,"props":3136,"children":3137},{"style":902},[3138],{"type":905,"value":2940},{"type":890,"tag":251,"props":3140,"children":3141},{"style":1086},[3142],{"type":905,"value":2363},{"type":890,"tag":251,"props":3144,"children":3145},{"style":902},[3146],{"type":905,"value":382},{"type":890,"tag":251,"props":3148,"children":3149},{"style":908},[3150],{"type":905,"value":3151}," (node.children ",{"type":890,"tag":251,"props":3153,"children":3154},{"style":902},[3155],{"type":905,"value":2181},{"type":890,"tag":251,"props":3157,"children":3158},{"style":908},[3159],{"type":905,"value":3160}," []).",{"type":890,"tag":251,"props":3162,"children":3163},{"style":1144},[3164],{"type":905,"value":3165},"flatMap",{"type":890,"tag":251,"props":3167,"children":3168},{"style":908},[3169],{"type":905,"value":561},{"type":890,"tag":251,"props":3171,"children":3172},{"style":1212},[3173],{"type":905,"value":2468},{"type":890,"tag":251,"props":3175,"children":3176},{"style":902},[3177],{"type":905,"value":1566},{"type":890,"tag":251,"props":3179,"children":3180},{"style":908},[3181],{"type":905,"value":3182}," child.type ",{"type":890,"tag":251,"props":3184,"children":3185},{"style":902},[3186],{"type":905,"value":1347},{"type":890,"tag":251,"props":3188,"children":3189},{"style":918},[3190],{"type":905,"value":3191}," 'table'",{"type":890,"tag":251,"props":3193,"children":3194},{"style":902},[3195],{"type":905,"value":1357},{"type":890,"tag":251,"props":3197,"children":3198},{"style":908},[3199],{"type":905,"value":3200}," child.children?.",{"type":890,"tag":251,"props":3202,"children":3203},{"style":1086},[3204],{"type":905,"value":1407},{"type":890,"tag":251,"props":3206,"children":3207},{"style":902},[3208],{"type":905,"value":3209}," ===",{"type":890,"tag":251,"props":3211,"children":3212},{"style":1086},[3213],{"type":905,"value":3214}," 1\n",{"type":890,"tag":251,"props":3216,"children":3218},{"class":253,"line":3217},70,[3219,3224,3229,3233,3238,3242,3246,3250,3255,3259,3263,3268,3272,3277,3282,3287,3291,3296,3300],{"type":890,"tag":251,"props":3220,"children":3221},{"style":902},[3222],{"type":905,"value":3223},"            &&",{"type":890,"tag":251,"props":3225,"children":3226},{"style":908},[3227],{"type":905,"value":3228}," child.children[",{"type":890,"tag":251,"props":3230,"children":3231},{"style":1086},[3232],{"type":905,"value":2295},{"type":890,"tag":251,"props":3234,"children":3235},{"style":908},[3236],{"type":905,"value":3237},"]?.children?.",{"type":890,"tag":251,"props":3239,"children":3240},{"style":1086},[3241],{"type":905,"value":1407},{"type":890,"tag":251,"props":3243,"children":3244},{"style":902},[3245],{"type":905,"value":3209},{"type":890,"tag":251,"props":3247,"children":3248},{"style":1086},[3249],{"type":905,"value":2987},{"type":890,"tag":251,"props":3251,"children":3252},{"style":902},[3253],{"type":905,"value":3254}," ?",{"type":890,"tag":251,"props":3256,"children":3257},{"style":908},[3258],{"type":905,"value":3228},{"type":890,"tag":251,"props":3260,"children":3261},{"style":1086},[3262],{"type":905,"value":2295},{"type":890,"tag":251,"props":3264,"children":3265},{"style":908},[3266],{"type":905,"value":3267},"].children[",{"type":890,"tag":251,"props":3269,"children":3270},{"style":1086},[3271],{"type":905,"value":2295},{"type":890,"tag":251,"props":3273,"children":3274},{"style":908},[3275],{"type":905,"value":3276},"]",{"type":890,"tag":251,"props":3278,"children":3279},{"style":902},[3280],{"type":905,"value":3281},"!",{"type":890,"tag":251,"props":3283,"children":3284},{"style":908},[3285],{"type":905,"value":3286},".children ",{"type":890,"tag":251,"props":3288,"children":3289},{"style":902},[3290],{"type":905,"value":2181},{"type":890,"tag":251,"props":3292,"children":3293},{"style":908},[3294],{"type":905,"value":3295}," [] ",{"type":890,"tag":251,"props":3297,"children":3298},{"style":902},[3299],{"type":905,"value":568},{"type":890,"tag":251,"props":3301,"children":3302},{"style":908},[3303],{"type":905,"value":3304}," [child]);\n",{"type":890,"tag":251,"props":3306,"children":3308},{"class":253,"line":3307},71,[3309,3314,3319],{"type":890,"tag":251,"props":3310,"children":3311},{"style":902},[3312],{"type":905,"value":3313},"          return",{"type":890,"tag":251,"props":3315,"children":3316},{"style":1144},[3317],{"type":905,"value":3318}," convertChildren",{"type":890,"tag":251,"props":3320,"children":3321},{"style":908},[3322],{"type":905,"value":3323},"(children);\n",{"type":890,"tag":251,"props":3325,"children":3327},{"class":253,"line":3326},72,[3328],{"type":890,"tag":251,"props":3329,"children":3330},{"style":908},[3331],{"type":905,"value":3332},"        } },\n",{"type":890,"tag":251,"props":3334,"children":3336},{"class":253,"line":3335},73,[3337],{"type":890,"tag":251,"props":3338,"children":3339},{"style":908},[3340],{"type":905,"value":3341},"    }),\n",{"type":890,"tag":251,"props":3343,"children":3345},{"class":253,"line":3344},74,[3346],{"type":890,"tag":251,"props":3347,"children":3348},{"style":908},[3349],{"type":905,"value":3350},"  };\n",{"type":890,"tag":251,"props":3352,"children":3354},{"class":253,"line":3353},75,[3355],{"type":890,"tag":251,"props":3356,"children":3357},{"style":908},[3358],{"type":905,"value":613},{"type":890,"tag":850,"props":3360,"children":3361},{},[3362],{"type":905,"value":3363},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"data":3365,"body":3366},{},{"type":887,"children":3367},[3368,4921],{"type":890,"tag":242,"props":3369,"children":3371},{"className":304,"code":3370,"language":306,"meta":247,"style":247},"import { createMarkdownDocxCodeImageExtension, type MarkdownDocxCodeImageRequest, type MarkdownDocxExtension } from '@quirekit\u002Fmarkdown-docx';\n\n\u002F**\n * Draws a bounded chart from source data without reading a mounted editor view.\n * @param request - A progress-chart fence containing a JSON number array.\n * @param ownerDocument - Explicit browser capability owned by this export.\n * @param signal - Cancellation of this export, not a global editor signal.\n * @returns A complete PNG data URI; malformed data throws for the shared source fallback.\n *\u002F\nexport async function renderProgressChart(request: MarkdownDocxCodeImageRequest, ownerDocument: Document, signal?: AbortSignal): Promise\u003Cstring> {\n  signal?.throwIfAborted();\n  if (request.language !== 'progress-chart' || request.value.length > 2000) throw new Error('Unsupported chart input.');\n  const values: unknown = JSON.parse(request.value);\n  if (!Array.isArray(values) || !values.length || values.length > 12\n    || values.some(value => typeof value !== 'number' || !Number.isFinite(value) || value \u003C 0 || value > 100)) throw new Error('Expected 1–12 values between 0 and 100.');\n  const canvas = ownerDocument.createElement('canvas');\n  \u002F\u002F Raster dimensions are fixed and bounded. The common exporter separately\n  \u002F\u002F fits this image to the current page\u002Fcell width without changing its ratio.\n  canvas.width = 1200; canvas.height = 480;\n  try {\n    const context = canvas.getContext('2d');\n    if (!context) throw new Error('Canvas 2D is unavailable.');\n    context.fillStyle = '#FFFFFF'; context.fillRect(0, 0, canvas.width, canvas.height);\n    context.fillStyle = '#172033'; context.font = 'bold 32px sans-serif'; context.fillText('Progress', 40, 52);\n    const step = 1120 \u002F values.length;\n    values.forEach((value: number, index: number) => {\n      const height = value * 3;\n      context.fillStyle = '#4F63D8'; context.fillRect(40 + step * index, 410 - height, step * .65, height);\n      context.fillStyle = '#172033'; context.font = '24px sans-serif'; context.fillText(String(value), 40 + step * index, 444);\n    });\n    signal?.throwIfAborted();\n    return canvas.toDataURL('image\u002Fpng');\n  } finally { canvas.width = 0; canvas.height = 0; }\n}\n\n\u002F**\n * Registers the image recipe for a standalone conversion operation.\n * @param ownerDocument - Browser capability used for offscreen rendering.\n * @param signal - Optional operation cancellation.\n * @param metadata - Word source recovery; PDF has no round-trip store.\n * @returns The one code-image owner. Merge other languages into its renderer when composing with Mermaid.\n *\u002F\nexport function createProgressChartExtension(ownerDocument: Document, signal?: AbortSignal, metadata = true): MarkdownDocxExtension {\n  return createMarkdownDocxCodeImageExtension({ languages: ['progress-chart'], metadata,\n    render: request => renderProgressChart(request, ownerDocument, signal) });\n}\n\n",[3372],{"type":890,"tag":14,"props":3373,"children":3374},{"__ignoreMap":247},[3375,3416,3423,3431,3439,3461,3482,3503,3519,3527,3627,3645,3719,3763,3834,3969,4008,4016,4024,4059,4071,4111,4157,4205,4275,4313,4373,4407,4488,4567,4575,4591,4621,4664,4671,4678,4685,4693,4713,4733,4753,4769,4776,4858,4885,4914],{"type":890,"tag":251,"props":3376,"children":3377},{"class":253,"line":254},[3378,3382,3387,3391,3396,3400,3404,3408,3412],{"type":890,"tag":251,"props":3379,"children":3380},{"style":902},[3381],{"type":905,"value":314},{"type":890,"tag":251,"props":3383,"children":3384},{"style":908},[3385],{"type":905,"value":3386}," { createMarkdownDocxCodeImageExtension, ",{"type":890,"tag":251,"props":3388,"children":3389},{"style":902},[3390],{"type":905,"value":535},{"type":890,"tag":251,"props":3392,"children":3393},{"style":908},[3394],{"type":905,"value":3395}," MarkdownDocxCodeImageRequest, ",{"type":890,"tag":251,"props":3397,"children":3398},{"style":902},[3399],{"type":905,"value":535},{"type":890,"tag":251,"props":3401,"children":3402},{"style":908},[3403],{"type":905,"value":977},{"type":890,"tag":251,"props":3405,"children":3406},{"style":902},[3407],{"type":905,"value":321},{"type":890,"tag":251,"props":3409,"children":3410},{"style":918},[3411],{"type":905,"value":986},{"type":890,"tag":251,"props":3413,"children":3414},{"style":908},[3415],{"type":905,"value":926},{"type":890,"tag":251,"props":3417,"children":3418},{"class":253,"line":260},[3419],{"type":890,"tag":251,"props":3420,"children":3421},{"emptyLinePlaceholder":368},[3422],{"type":905,"value":369},{"type":890,"tag":251,"props":3424,"children":3425},{"class":253,"line":266},[3426],{"type":890,"tag":251,"props":3427,"children":3428},{"style":1115},[3429],{"type":905,"value":3430},"\u002F**\n",{"type":890,"tag":251,"props":3432,"children":3433},{"class":253,"line":352},[3434],{"type":890,"tag":251,"props":3435,"children":3436},{"style":1115},[3437],{"type":905,"value":3438}," * Draws a bounded chart from source data without reading a mounted editor view.\n",{"type":890,"tag":251,"props":3440,"children":3441},{"class":253,"line":365},[3442,3447,3451,3456],{"type":890,"tag":251,"props":3443,"children":3444},{"style":1115},[3445],{"type":905,"value":3446}," * ",{"type":890,"tag":251,"props":3448,"children":3449},{"style":902},[3450],{"type":905,"value":1260},{"type":890,"tag":251,"props":3452,"children":3453},{"style":908},[3454],{"type":905,"value":3455}," request",{"type":890,"tag":251,"props":3457,"children":3458},{"style":1115},[3459],{"type":905,"value":3460}," - A progress-chart fence containing a JSON number array.\n",{"type":890,"tag":251,"props":3462,"children":3463},{"class":253,"line":372},[3464,3468,3472,3477],{"type":890,"tag":251,"props":3465,"children":3466},{"style":1115},[3467],{"type":905,"value":3446},{"type":890,"tag":251,"props":3469,"children":3470},{"style":902},[3471],{"type":905,"value":1260},{"type":890,"tag":251,"props":3473,"children":3474},{"style":908},[3475],{"type":905,"value":3476}," ownerDocument",{"type":890,"tag":251,"props":3478,"children":3479},{"style":1115},[3480],{"type":905,"value":3481}," - Explicit browser capability owned by this export.\n",{"type":890,"tag":251,"props":3483,"children":3484},{"class":253,"line":404},[3485,3489,3493,3498],{"type":890,"tag":251,"props":3486,"children":3487},{"style":1115},[3488],{"type":905,"value":3446},{"type":890,"tag":251,"props":3490,"children":3491},{"style":902},[3492],{"type":905,"value":1260},{"type":890,"tag":251,"props":3494,"children":3495},{"style":908},[3496],{"type":905,"value":3497}," signal",{"type":890,"tag":251,"props":3499,"children":3500},{"style":1115},[3501],{"type":905,"value":3502}," - Cancellation of this export, not a global editor signal.\n",{"type":890,"tag":251,"props":3504,"children":3505},{"class":253,"line":423},[3506,3510,3514],{"type":890,"tag":251,"props":3507,"children":3508},{"style":1115},[3509],{"type":905,"value":3446},{"type":890,"tag":251,"props":3511,"children":3512},{"style":902},[3513],{"type":905,"value":1123},{"type":890,"tag":251,"props":3515,"children":3516},{"style":1115},[3517],{"type":905,"value":3518}," A complete PNG data URI; malformed data throws for the shared source fallback.\n",{"type":890,"tag":251,"props":3520,"children":3521},{"class":253,"line":442},[3522],{"type":890,"tag":251,"props":3523,"children":3524},{"style":1115},[3525],{"type":905,"value":3526}," *\u002F\n",{"type":890,"tag":251,"props":3528,"children":3529},{"class":253,"line":461},[3530,3534,3539,3543,3548,3552,3557,3561,3566,3570,3574,3578,3582,3586,3590,3595,3600,3604,3608,3613,3617,3622],{"type":890,"tag":251,"props":3531,"children":3532},{"style":902},[3533],{"type":905,"value":1137},{"type":890,"tag":251,"props":3535,"children":3536},{"style":902},[3537],{"type":905,"value":3538}," async",{"type":890,"tag":251,"props":3540,"children":3541},{"style":902},[3542],{"type":905,"value":555},{"type":890,"tag":251,"props":3544,"children":3545},{"style":1144},[3546],{"type":905,"value":3547}," renderProgressChart",{"type":890,"tag":251,"props":3549,"children":3550},{"style":908},[3551],{"type":905,"value":561},{"type":890,"tag":251,"props":3553,"children":3554},{"style":1212},[3555],{"type":905,"value":3556},"request",{"type":890,"tag":251,"props":3558,"children":3559},{"style":902},[3560],{"type":905,"value":568},{"type":890,"tag":251,"props":3562,"children":3563},{"style":1144},[3564],{"type":905,"value":3565}," MarkdownDocxCodeImageRequest",{"type":890,"tag":251,"props":3567,"children":3568},{"style":908},[3569],{"type":905,"value":1219},{"type":890,"tag":251,"props":3571,"children":3572},{"style":1212},[3573],{"type":905,"value":589},{"type":890,"tag":251,"props":3575,"children":3576},{"style":902},[3577],{"type":905,"value":568},{"type":890,"tag":251,"props":3579,"children":3580},{"style":1144},[3581],{"type":905,"value":594},{"type":890,"tag":251,"props":3583,"children":3584},{"style":908},[3585],{"type":905,"value":1219},{"type":890,"tag":251,"props":3587,"children":3588},{"style":1212},[3589],{"type":905,"value":654},{"type":890,"tag":251,"props":3591,"children":3592},{"style":902},[3593],{"type":905,"value":3594},"?:",{"type":890,"tag":251,"props":3596,"children":3597},{"style":1144},[3598],{"type":905,"value":3599}," AbortSignal",{"type":890,"tag":251,"props":3601,"children":3602},{"style":908},[3603],{"type":905,"value":1316},{"type":890,"tag":251,"props":3605,"children":3606},{"style":902},[3607],{"type":905,"value":568},{"type":890,"tag":251,"props":3609,"children":3610},{"style":1144},[3611],{"type":905,"value":3612}," Promise",{"type":890,"tag":251,"props":3614,"children":3615},{"style":908},[3616],{"type":905,"value":574},{"type":890,"tag":251,"props":3618,"children":3619},{"style":1086},[3620],{"type":905,"value":3621},"string",{"type":890,"tag":251,"props":3623,"children":3624},{"style":908},[3625],{"type":905,"value":3626},"> {\n",{"type":890,"tag":251,"props":3628,"children":3629},{"class":253,"line":1131},[3630,3635,3640],{"type":890,"tag":251,"props":3631,"children":3632},{"style":908},[3633],{"type":905,"value":3634},"  signal?.",{"type":890,"tag":251,"props":3636,"children":3637},{"style":1144},[3638],{"type":905,"value":3639},"throwIfAborted",{"type":890,"tag":251,"props":3641,"children":3642},{"style":908},[3643],{"type":905,"value":3644},"();\n",{"type":890,"tag":251,"props":3646,"children":3647},{"class":253,"line":876},[3648,3653,3658,3662,3667,3672,3677,3681,3685,3690,3694,3698,3702,3706,3710,3715],{"type":890,"tag":251,"props":3649,"children":3650},{"style":902},[3651],{"type":905,"value":3652},"  if",{"type":890,"tag":251,"props":3654,"children":3655},{"style":908},[3656],{"type":905,"value":3657}," (request.language ",{"type":890,"tag":251,"props":3659,"children":3660},{"style":902},[3661],{"type":905,"value":2092},{"type":890,"tag":251,"props":3663,"children":3664},{"style":918},[3665],{"type":905,"value":3666}," 'progress-chart'",{"type":890,"tag":251,"props":3668,"children":3669},{"style":902},[3670],{"type":905,"value":3671}," ||",{"type":890,"tag":251,"props":3673,"children":3674},{"style":908},[3675],{"type":905,"value":3676}," request.value.",{"type":890,"tag":251,"props":3678,"children":3679},{"style":1086},[3680],{"type":905,"value":1407},{"type":890,"tag":251,"props":3682,"children":3683},{"style":902},[3684],{"type":905,"value":1412},{"type":890,"tag":251,"props":3686,"children":3687},{"style":1086},[3688],{"type":905,"value":3689}," 2000",{"type":890,"tag":251,"props":3691,"children":3692},{"style":908},[3693],{"type":905,"value":1422},{"type":890,"tag":251,"props":3695,"children":3696},{"style":902},[3697],{"type":905,"value":1427},{"type":890,"tag":251,"props":3699,"children":3700},{"style":902},[3701],{"type":905,"value":1432},{"type":890,"tag":251,"props":3703,"children":3704},{"style":1144},[3705],{"type":905,"value":1437},{"type":890,"tag":251,"props":3707,"children":3708},{"style":908},[3709],{"type":905,"value":561},{"type":890,"tag":251,"props":3711,"children":3712},{"style":918},[3713],{"type":905,"value":3714},"'Unsupported chart input.'",{"type":890,"tag":251,"props":3716,"children":3717},{"style":908},[3718],{"type":905,"value":1451},{"type":890,"tag":251,"props":3720,"children":3721},{"class":253,"line":1180},[3722,3727,3732,3736,3741,3745,3750,3754,3758],{"type":890,"tag":251,"props":3723,"children":3724},{"style":902},[3725],{"type":905,"value":3726},"  const",{"type":890,"tag":251,"props":3728,"children":3729},{"style":1086},[3730],{"type":905,"value":3731}," values",{"type":890,"tag":251,"props":3733,"children":3734},{"style":902},[3735],{"type":905,"value":568},{"type":890,"tag":251,"props":3737,"children":3738},{"style":1086},[3739],{"type":905,"value":3740}," unknown",{"type":890,"tag":251,"props":3742,"children":3743},{"style":902},[3744],{"type":905,"value":382},{"type":890,"tag":251,"props":3746,"children":3747},{"style":1086},[3748],{"type":905,"value":3749}," JSON",{"type":890,"tag":251,"props":3751,"children":3752},{"style":908},[3753],{"type":905,"value":1488},{"type":890,"tag":251,"props":3755,"children":3756},{"style":1144},[3757],{"type":905,"value":1493},{"type":890,"tag":251,"props":3759,"children":3760},{"style":908},[3761],{"type":905,"value":3762},"(request.value);\n",{"type":890,"tag":251,"props":3764,"children":3765},{"class":253,"line":1199},[3766,3770,3774,3778,3783,3788,3793,3798,3803,3808,3812,3816,3821,3825,3829],{"type":890,"tag":251,"props":3767,"children":3768},{"style":902},[3769],{"type":905,"value":3652},{"type":890,"tag":251,"props":3771,"children":3772},{"style":908},[3773],{"type":905,"value":2167},{"type":890,"tag":251,"props":3775,"children":3776},{"style":902},[3777],{"type":905,"value":3281},{"type":890,"tag":251,"props":3779,"children":3780},{"style":908},[3781],{"type":905,"value":3782},"Array.",{"type":890,"tag":251,"props":3784,"children":3785},{"style":1144},[3786],{"type":905,"value":3787},"isArray",{"type":890,"tag":251,"props":3789,"children":3790},{"style":908},[3791],{"type":905,"value":3792},"(values) ",{"type":890,"tag":251,"props":3794,"children":3795},{"style":902},[3796],{"type":905,"value":3797},"||",{"type":890,"tag":251,"props":3799,"children":3800},{"style":902},[3801],{"type":905,"value":3802}," !",{"type":890,"tag":251,"props":3804,"children":3805},{"style":908},[3806],{"type":905,"value":3807},"values.",{"type":890,"tag":251,"props":3809,"children":3810},{"style":1086},[3811],{"type":905,"value":1407},{"type":890,"tag":251,"props":3813,"children":3814},{"style":902},[3815],{"type":905,"value":3671},{"type":890,"tag":251,"props":3817,"children":3818},{"style":908},[3819],{"type":905,"value":3820}," values.",{"type":890,"tag":251,"props":3822,"children":3823},{"style":1086},[3824],{"type":905,"value":1407},{"type":890,"tag":251,"props":3826,"children":3827},{"style":902},[3828],{"type":905,"value":1412},{"type":890,"tag":251,"props":3830,"children":3831},{"style":1086},[3832],{"type":905,"value":3833}," 12\n",{"type":890,"tag":251,"props":3835,"children":3836},{"class":253,"line":1231},[3837,3842,3846,3851,3855,3860,3864,3868,3873,3877,3882,3886,3890,3895,3900,3905,3909,3913,3917,3921,3925,3929,3934,3939,3944,3948,3952,3956,3960,3965],{"type":890,"tag":251,"props":3838,"children":3839},{"style":902},[3840],{"type":905,"value":3841},"    ||",{"type":890,"tag":251,"props":3843,"children":3844},{"style":908},[3845],{"type":905,"value":3820},{"type":890,"tag":251,"props":3847,"children":3848},{"style":1144},[3849],{"type":905,"value":3850},"some",{"type":890,"tag":251,"props":3852,"children":3853},{"style":908},[3854],{"type":905,"value":561},{"type":890,"tag":251,"props":3856,"children":3857},{"style":1212},[3858],{"type":905,"value":3859},"value",{"type":890,"tag":251,"props":3861,"children":3862},{"style":902},[3863],{"type":905,"value":1566},{"type":890,"tag":251,"props":3865,"children":3866},{"style":902},[3867],{"type":905,"value":1913},{"type":890,"tag":251,"props":3869,"children":3870},{"style":908},[3871],{"type":905,"value":3872}," value ",{"type":890,"tag":251,"props":3874,"children":3875},{"style":902},[3876],{"type":905,"value":2092},{"type":890,"tag":251,"props":3878,"children":3879},{"style":918},[3880],{"type":905,"value":3881}," 'number'",{"type":890,"tag":251,"props":3883,"children":3884},{"style":902},[3885],{"type":905,"value":3671},{"type":890,"tag":251,"props":3887,"children":3888},{"style":902},[3889],{"type":905,"value":3802},{"type":890,"tag":251,"props":3891,"children":3892},{"style":908},[3893],{"type":905,"value":3894},"Number.",{"type":890,"tag":251,"props":3896,"children":3897},{"style":1144},[3898],{"type":905,"value":3899},"isFinite",{"type":890,"tag":251,"props":3901,"children":3902},{"style":908},[3903],{"type":905,"value":3904},"(value) ",{"type":890,"tag":251,"props":3906,"children":3907},{"style":902},[3908],{"type":905,"value":3797},{"type":890,"tag":251,"props":3910,"children":3911},{"style":908},[3912],{"type":905,"value":3872},{"type":890,"tag":251,"props":3914,"children":3915},{"style":902},[3916],{"type":905,"value":574},{"type":890,"tag":251,"props":3918,"children":3919},{"style":1086},[3920],{"type":905,"value":1699},{"type":890,"tag":251,"props":3922,"children":3923},{"style":902},[3924],{"type":905,"value":3671},{"type":890,"tag":251,"props":3926,"children":3927},{"style":908},[3928],{"type":905,"value":3872},{"type":890,"tag":251,"props":3930,"children":3931},{"style":902},[3932],{"type":905,"value":3933},">",{"type":890,"tag":251,"props":3935,"children":3936},{"style":1086},[3937],{"type":905,"value":3938}," 100",{"type":890,"tag":251,"props":3940,"children":3941},{"style":908},[3942],{"type":905,"value":3943},")) ",{"type":890,"tag":251,"props":3945,"children":3946},{"style":902},[3947],{"type":905,"value":1427},{"type":890,"tag":251,"props":3949,"children":3950},{"style":902},[3951],{"type":905,"value":1432},{"type":890,"tag":251,"props":3953,"children":3954},{"style":1144},[3955],{"type":905,"value":1437},{"type":890,"tag":251,"props":3957,"children":3958},{"style":908},[3959],{"type":905,"value":561},{"type":890,"tag":251,"props":3961,"children":3962},{"style":918},[3963],{"type":905,"value":3964},"'Expected 1–12 values between 0 and 100.'",{"type":890,"tag":251,"props":3966,"children":3967},{"style":908},[3968],{"type":905,"value":1451},{"type":890,"tag":251,"props":3970,"children":3971},{"class":253,"line":1240},[3972,3976,3981,3985,3990,3995,3999,4004],{"type":890,"tag":251,"props":3973,"children":3974},{"style":902},[3975],{"type":905,"value":3726},{"type":890,"tag":251,"props":3977,"children":3978},{"style":1086},[3979],{"type":905,"value":3980}," canvas",{"type":890,"tag":251,"props":3982,"children":3983},{"style":902},[3984],{"type":905,"value":382},{"type":890,"tag":251,"props":3986,"children":3987},{"style":908},[3988],{"type":905,"value":3989}," ownerDocument.",{"type":890,"tag":251,"props":3991,"children":3992},{"style":1144},[3993],{"type":905,"value":3994},"createElement",{"type":890,"tag":251,"props":3996,"children":3997},{"style":908},[3998],{"type":905,"value":561},{"type":890,"tag":251,"props":4000,"children":4001},{"style":918},[4002],{"type":905,"value":4003},"'canvas'",{"type":890,"tag":251,"props":4005,"children":4006},{"style":908},[4007],{"type":905,"value":1451},{"type":890,"tag":251,"props":4009,"children":4010},{"class":253,"line":1249},[4011],{"type":890,"tag":251,"props":4012,"children":4013},{"style":1115},[4014],{"type":905,"value":4015},"  \u002F\u002F Raster dimensions are fixed and bounded. The common exporter separately\n",{"type":890,"tag":251,"props":4017,"children":4018},{"class":253,"line":1282},[4019],{"type":890,"tag":251,"props":4020,"children":4021},{"style":1115},[4022],{"type":905,"value":4023},"  \u002F\u002F fits this image to the current page\u002Fcell width without changing its ratio.\n",{"type":890,"tag":251,"props":4025,"children":4026},{"class":253,"line":1331},[4027,4032,4036,4041,4046,4050,4055],{"type":890,"tag":251,"props":4028,"children":4029},{"style":908},[4030],{"type":905,"value":4031},"  canvas.width ",{"type":890,"tag":251,"props":4033,"children":4034},{"style":902},[4035],{"type":905,"value":776},{"type":890,"tag":251,"props":4037,"children":4038},{"style":1086},[4039],{"type":905,"value":4040}," 1200",{"type":890,"tag":251,"props":4042,"children":4043},{"style":908},[4044],{"type":905,"value":4045},"; canvas.height ",{"type":890,"tag":251,"props":4047,"children":4048},{"style":902},[4049],{"type":905,"value":776},{"type":890,"tag":251,"props":4051,"children":4052},{"style":1086},[4053],{"type":905,"value":4054}," 480",{"type":890,"tag":251,"props":4056,"children":4057},{"style":908},[4058],{"type":905,"value":926},{"type":890,"tag":251,"props":4060,"children":4061},{"class":253,"line":1378},[4062,4067],{"type":890,"tag":251,"props":4063,"children":4064},{"style":902},[4065],{"type":905,"value":4066},"  try",{"type":890,"tag":251,"props":4068,"children":4069},{"style":908},[4070],{"type":905,"value":1166},{"type":890,"tag":251,"props":4072,"children":4073},{"class":253,"line":1391},[4074,4079,4084,4088,4093,4098,4102,4107],{"type":890,"tag":251,"props":4075,"children":4076},{"style":902},[4077],{"type":905,"value":4078},"    const",{"type":890,"tag":251,"props":4080,"children":4081},{"style":1086},[4082],{"type":905,"value":4083}," context",{"type":890,"tag":251,"props":4085,"children":4086},{"style":902},[4087],{"type":905,"value":382},{"type":890,"tag":251,"props":4089,"children":4090},{"style":908},[4091],{"type":905,"value":4092}," canvas.",{"type":890,"tag":251,"props":4094,"children":4095},{"style":1144},[4096],{"type":905,"value":4097},"getContext",{"type":890,"tag":251,"props":4099,"children":4100},{"style":908},[4101],{"type":905,"value":561},{"type":890,"tag":251,"props":4103,"children":4104},{"style":918},[4105],{"type":905,"value":4106},"'2d'",{"type":890,"tag":251,"props":4108,"children":4109},{"style":908},[4110],{"type":905,"value":1451},{"type":890,"tag":251,"props":4112,"children":4113},{"class":253,"line":1454},[4114,4119,4123,4127,4132,4136,4140,4144,4148,4153],{"type":890,"tag":251,"props":4115,"children":4116},{"style":902},[4117],{"type":905,"value":4118},"    if",{"type":890,"tag":251,"props":4120,"children":4121},{"style":908},[4122],{"type":905,"value":2167},{"type":890,"tag":251,"props":4124,"children":4125},{"style":902},[4126],{"type":905,"value":3281},{"type":890,"tag":251,"props":4128,"children":4129},{"style":908},[4130],{"type":905,"value":4131},"context) ",{"type":890,"tag":251,"props":4133,"children":4134},{"style":902},[4135],{"type":905,"value":1427},{"type":890,"tag":251,"props":4137,"children":4138},{"style":902},[4139],{"type":905,"value":1432},{"type":890,"tag":251,"props":4141,"children":4142},{"style":1144},[4143],{"type":905,"value":1437},{"type":890,"tag":251,"props":4145,"children":4146},{"style":908},[4147],{"type":905,"value":561},{"type":890,"tag":251,"props":4149,"children":4150},{"style":918},[4151],{"type":905,"value":4152},"'Canvas 2D is unavailable.'",{"type":890,"tag":251,"props":4154,"children":4155},{"style":908},[4156],{"type":905,"value":1451},{"type":890,"tag":251,"props":4158,"children":4159},{"class":253,"line":1501},[4160,4165,4169,4174,4179,4184,4188,4192,4196,4200],{"type":890,"tag":251,"props":4161,"children":4162},{"style":908},[4163],{"type":905,"value":4164},"    context.fillStyle ",{"type":890,"tag":251,"props":4166,"children":4167},{"style":902},[4168],{"type":905,"value":776},{"type":890,"tag":251,"props":4170,"children":4171},{"style":918},[4172],{"type":905,"value":4173}," '#FFFFFF'",{"type":890,"tag":251,"props":4175,"children":4176},{"style":908},[4177],{"type":905,"value":4178},"; context.",{"type":890,"tag":251,"props":4180,"children":4181},{"style":1144},[4182],{"type":905,"value":4183},"fillRect",{"type":890,"tag":251,"props":4185,"children":4186},{"style":908},[4187],{"type":905,"value":561},{"type":890,"tag":251,"props":4189,"children":4190},{"style":1086},[4191],{"type":905,"value":2295},{"type":890,"tag":251,"props":4193,"children":4194},{"style":908},[4195],{"type":905,"value":1219},{"type":890,"tag":251,"props":4197,"children":4198},{"style":1086},[4199],{"type":905,"value":2295},{"type":890,"tag":251,"props":4201,"children":4202},{"style":908},[4203],{"type":905,"value":4204},", canvas.width, canvas.height);\n",{"type":890,"tag":251,"props":4206,"children":4207},{"class":253,"line":1542},[4208,4212,4216,4221,4226,4230,4235,4239,4244,4248,4253,4257,4262,4266,4271],{"type":890,"tag":251,"props":4209,"children":4210},{"style":908},[4211],{"type":905,"value":4164},{"type":890,"tag":251,"props":4213,"children":4214},{"style":902},[4215],{"type":905,"value":776},{"type":890,"tag":251,"props":4217,"children":4218},{"style":918},[4219],{"type":905,"value":4220}," '#172033'",{"type":890,"tag":251,"props":4222,"children":4223},{"style":908},[4224],{"type":905,"value":4225},"; context.font ",{"type":890,"tag":251,"props":4227,"children":4228},{"style":902},[4229],{"type":905,"value":776},{"type":890,"tag":251,"props":4231,"children":4232},{"style":918},[4233],{"type":905,"value":4234}," 'bold 32px sans-serif'",{"type":890,"tag":251,"props":4236,"children":4237},{"style":908},[4238],{"type":905,"value":4178},{"type":890,"tag":251,"props":4240,"children":4241},{"style":1144},[4242],{"type":905,"value":4243},"fillText",{"type":890,"tag":251,"props":4245,"children":4246},{"style":908},[4247],{"type":905,"value":561},{"type":890,"tag":251,"props":4249,"children":4250},{"style":918},[4251],{"type":905,"value":4252},"'Progress'",{"type":890,"tag":251,"props":4254,"children":4255},{"style":908},[4256],{"type":905,"value":1219},{"type":890,"tag":251,"props":4258,"children":4259},{"style":1086},[4260],{"type":905,"value":4261},"40",{"type":890,"tag":251,"props":4263,"children":4264},{"style":908},[4265],{"type":905,"value":1219},{"type":890,"tag":251,"props":4267,"children":4268},{"style":1086},[4269],{"type":905,"value":4270},"52",{"type":890,"tag":251,"props":4272,"children":4273},{"style":908},[4274],{"type":905,"value":1451},{"type":890,"tag":251,"props":4276,"children":4277},{"class":253,"line":1594},[4278,4282,4287,4291,4296,4301,4305,4309],{"type":890,"tag":251,"props":4279,"children":4280},{"style":902},[4281],{"type":905,"value":4078},{"type":890,"tag":251,"props":4283,"children":4284},{"style":1086},[4285],{"type":905,"value":4286}," step",{"type":890,"tag":251,"props":4288,"children":4289},{"style":902},[4290],{"type":905,"value":382},{"type":890,"tag":251,"props":4292,"children":4293},{"style":1086},[4294],{"type":905,"value":4295}," 1120",{"type":890,"tag":251,"props":4297,"children":4298},{"style":902},[4299],{"type":905,"value":4300}," \u002F",{"type":890,"tag":251,"props":4302,"children":4303},{"style":908},[4304],{"type":905,"value":3820},{"type":890,"tag":251,"props":4306,"children":4307},{"style":1086},[4308],{"type":905,"value":1407},{"type":890,"tag":251,"props":4310,"children":4311},{"style":908},[4312],{"type":905,"value":926},{"type":890,"tag":251,"props":4314,"children":4315},{"class":253,"line":1608},[4316,4321,4326,4331,4335,4339,4344,4348,4353,4357,4361,4365,4369],{"type":890,"tag":251,"props":4317,"children":4318},{"style":908},[4319],{"type":905,"value":4320},"    values.",{"type":890,"tag":251,"props":4322,"children":4323},{"style":1144},[4324],{"type":905,"value":4325},"forEach",{"type":890,"tag":251,"props":4327,"children":4328},{"style":908},[4329],{"type":905,"value":4330},"((",{"type":890,"tag":251,"props":4332,"children":4333},{"style":1212},[4334],{"type":905,"value":3859},{"type":890,"tag":251,"props":4336,"children":4337},{"style":902},[4338],{"type":905,"value":568},{"type":890,"tag":251,"props":4340,"children":4341},{"style":1086},[4342],{"type":905,"value":4343}," number",{"type":890,"tag":251,"props":4345,"children":4346},{"style":908},[4347],{"type":905,"value":1219},{"type":890,"tag":251,"props":4349,"children":4350},{"style":1212},[4351],{"type":905,"value":4352},"index",{"type":890,"tag":251,"props":4354,"children":4355},{"style":902},[4356],{"type":905,"value":568},{"type":890,"tag":251,"props":4358,"children":4359},{"style":1086},[4360],{"type":905,"value":4343},{"type":890,"tag":251,"props":4362,"children":4363},{"style":908},[4364],{"type":905,"value":1422},{"type":890,"tag":251,"props":4366,"children":4367},{"style":902},[4368],{"type":905,"value":1946},{"type":890,"tag":251,"props":4370,"children":4371},{"style":908},[4372],{"type":905,"value":1166},{"type":890,"tag":251,"props":4374,"children":4375},{"class":253,"line":1626},[4376,4381,4386,4390,4394,4398,4403],{"type":890,"tag":251,"props":4377,"children":4378},{"style":902},[4379],{"type":905,"value":4380},"      const",{"type":890,"tag":251,"props":4382,"children":4383},{"style":1086},[4384],{"type":905,"value":4385}," height",{"type":890,"tag":251,"props":4387,"children":4388},{"style":902},[4389],{"type":905,"value":382},{"type":890,"tag":251,"props":4391,"children":4392},{"style":908},[4393],{"type":905,"value":3872},{"type":890,"tag":251,"props":4395,"children":4396},{"style":902},[4397],{"type":905,"value":2280},{"type":890,"tag":251,"props":4399,"children":4400},{"style":1086},[4401],{"type":905,"value":4402}," 3",{"type":890,"tag":251,"props":4404,"children":4405},{"style":908},[4406],{"type":905,"value":926},{"type":890,"tag":251,"props":4408,"children":4409},{"class":253,"line":1711},[4410,4415,4419,4424,4428,4432,4436,4440,4445,4450,4454,4459,4464,4469,4474,4478,4483],{"type":890,"tag":251,"props":4411,"children":4412},{"style":908},[4413],{"type":905,"value":4414},"      context.fillStyle ",{"type":890,"tag":251,"props":4416,"children":4417},{"style":902},[4418],{"type":905,"value":776},{"type":890,"tag":251,"props":4420,"children":4421},{"style":918},[4422],{"type":905,"value":4423}," '#4F63D8'",{"type":890,"tag":251,"props":4425,"children":4426},{"style":908},[4427],{"type":905,"value":4178},{"type":890,"tag":251,"props":4429,"children":4430},{"style":1144},[4431],{"type":905,"value":4183},{"type":890,"tag":251,"props":4433,"children":4434},{"style":908},[4435],{"type":905,"value":561},{"type":890,"tag":251,"props":4437,"children":4438},{"style":1086},[4439],{"type":905,"value":4261},{"type":890,"tag":251,"props":4441,"children":4442},{"style":902},[4443],{"type":905,"value":4444}," +",{"type":890,"tag":251,"props":4446,"children":4447},{"style":908},[4448],{"type":905,"value":4449}," step ",{"type":890,"tag":251,"props":4451,"children":4452},{"style":902},[4453],{"type":905,"value":2280},{"type":890,"tag":251,"props":4455,"children":4456},{"style":908},[4457],{"type":905,"value":4458}," index, ",{"type":890,"tag":251,"props":4460,"children":4461},{"style":1086},[4462],{"type":905,"value":4463},"410",{"type":890,"tag":251,"props":4465,"children":4466},{"style":902},[4467],{"type":905,"value":4468}," -",{"type":890,"tag":251,"props":4470,"children":4471},{"style":908},[4472],{"type":905,"value":4473}," height, step ",{"type":890,"tag":251,"props":4475,"children":4476},{"style":902},[4477],{"type":905,"value":2280},{"type":890,"tag":251,"props":4479,"children":4480},{"style":1086},[4481],{"type":905,"value":4482}," .65",{"type":890,"tag":251,"props":4484,"children":4485},{"style":908},[4486],{"type":905,"value":4487},", height);\n",{"type":890,"tag":251,"props":4489,"children":4490},{"class":253,"line":1750},[4491,4495,4499,4503,4507,4511,4516,4520,4524,4528,4533,4538,4542,4546,4550,4554,4558,4563],{"type":890,"tag":251,"props":4492,"children":4493},{"style":908},[4494],{"type":905,"value":4414},{"type":890,"tag":251,"props":4496,"children":4497},{"style":902},[4498],{"type":905,"value":776},{"type":890,"tag":251,"props":4500,"children":4501},{"style":918},[4502],{"type":905,"value":4220},{"type":890,"tag":251,"props":4504,"children":4505},{"style":908},[4506],{"type":905,"value":4225},{"type":890,"tag":251,"props":4508,"children":4509},{"style":902},[4510],{"type":905,"value":776},{"type":890,"tag":251,"props":4512,"children":4513},{"style":918},[4514],{"type":905,"value":4515}," '24px sans-serif'",{"type":890,"tag":251,"props":4517,"children":4518},{"style":908},[4519],{"type":905,"value":4178},{"type":890,"tag":251,"props":4521,"children":4522},{"style":1144},[4523],{"type":905,"value":4243},{"type":890,"tag":251,"props":4525,"children":4526},{"style":908},[4527],{"type":905,"value":561},{"type":890,"tag":251,"props":4529,"children":4530},{"style":1144},[4531],{"type":905,"value":4532},"String",{"type":890,"tag":251,"props":4534,"children":4535},{"style":908},[4536],{"type":905,"value":4537},"(value), ",{"type":890,"tag":251,"props":4539,"children":4540},{"style":1086},[4541],{"type":905,"value":4261},{"type":890,"tag":251,"props":4543,"children":4544},{"style":902},[4545],{"type":905,"value":4444},{"type":890,"tag":251,"props":4547,"children":4548},{"style":908},[4549],{"type":905,"value":4449},{"type":890,"tag":251,"props":4551,"children":4552},{"style":902},[4553],{"type":905,"value":2280},{"type":890,"tag":251,"props":4555,"children":4556},{"style":908},[4557],{"type":905,"value":4458},{"type":890,"tag":251,"props":4559,"children":4560},{"style":1086},[4561],{"type":905,"value":4562},"444",{"type":890,"tag":251,"props":4564,"children":4565},{"style":908},[4566],{"type":905,"value":1451},{"type":890,"tag":251,"props":4568,"children":4569},{"class":253,"line":1763},[4570],{"type":890,"tag":251,"props":4571,"children":4572},{"style":908},[4573],{"type":905,"value":4574},"    });\n",{"type":890,"tag":251,"props":4576,"children":4577},{"class":253,"line":1772},[4578,4583,4587],{"type":890,"tag":251,"props":4579,"children":4580},{"style":908},[4581],{"type":905,"value":4582},"    signal?.",{"type":890,"tag":251,"props":4584,"children":4585},{"style":1144},[4586],{"type":905,"value":3639},{"type":890,"tag":251,"props":4588,"children":4589},{"style":908},[4590],{"type":905,"value":3644},{"type":890,"tag":251,"props":4592,"children":4593},{"class":253,"line":1781},[4594,4599,4603,4608,4612,4617],{"type":890,"tag":251,"props":4595,"children":4596},{"style":902},[4597],{"type":905,"value":4598},"    return",{"type":890,"tag":251,"props":4600,"children":4601},{"style":908},[4602],{"type":905,"value":4092},{"type":890,"tag":251,"props":4604,"children":4605},{"style":1144},[4606],{"type":905,"value":4607},"toDataURL",{"type":890,"tag":251,"props":4609,"children":4610},{"style":908},[4611],{"type":905,"value":561},{"type":890,"tag":251,"props":4613,"children":4614},{"style":918},[4615],{"type":905,"value":4616},"'image\u002Fpng'",{"type":890,"tag":251,"props":4618,"children":4619},{"style":908},[4620],{"type":905,"value":1451},{"type":890,"tag":251,"props":4622,"children":4623},{"class":253,"line":1851},[4624,4629,4634,4639,4643,4647,4651,4655,4659],{"type":890,"tag":251,"props":4625,"children":4626},{"style":908},[4627],{"type":905,"value":4628},"  } ",{"type":890,"tag":251,"props":4630,"children":4631},{"style":902},[4632],{"type":905,"value":4633},"finally",{"type":890,"tag":251,"props":4635,"children":4636},{"style":908},[4637],{"type":905,"value":4638}," { canvas.width ",{"type":890,"tag":251,"props":4640,"children":4641},{"style":902},[4642],{"type":905,"value":776},{"type":890,"tag":251,"props":4644,"children":4645},{"style":1086},[4646],{"type":905,"value":1699},{"type":890,"tag":251,"props":4648,"children":4649},{"style":908},[4650],{"type":905,"value":4045},{"type":890,"tag":251,"props":4652,"children":4653},{"style":902},[4654],{"type":905,"value":776},{"type":890,"tag":251,"props":4656,"children":4657},{"style":1086},[4658],{"type":905,"value":1699},{"type":890,"tag":251,"props":4660,"children":4661},{"style":908},[4662],{"type":905,"value":4663},"; }\n",{"type":890,"tag":251,"props":4665,"children":4666},{"class":253,"line":1860},[4667],{"type":890,"tag":251,"props":4668,"children":4669},{"style":908},[4670],{"type":905,"value":613},{"type":890,"tag":251,"props":4672,"children":4673},{"class":253,"line":1921},[4674],{"type":890,"tag":251,"props":4675,"children":4676},{"emptyLinePlaceholder":368},[4677],{"type":905,"value":369},{"type":890,"tag":251,"props":4679,"children":4680},{"class":253,"line":1930},[4681],{"type":890,"tag":251,"props":4682,"children":4683},{"style":1115},[4684],{"type":905,"value":3430},{"type":890,"tag":251,"props":4686,"children":4687},{"class":253,"line":1981},[4688],{"type":890,"tag":251,"props":4689,"children":4690},{"style":1115},[4691],{"type":905,"value":4692}," * Registers the image recipe for a standalone conversion operation.\n",{"type":890,"tag":251,"props":4694,"children":4695},{"class":253,"line":2007},[4696,4700,4704,4708],{"type":890,"tag":251,"props":4697,"children":4698},{"style":1115},[4699],{"type":905,"value":3446},{"type":890,"tag":251,"props":4701,"children":4702},{"style":902},[4703],{"type":905,"value":1260},{"type":890,"tag":251,"props":4705,"children":4706},{"style":908},[4707],{"type":905,"value":3476},{"type":890,"tag":251,"props":4709,"children":4710},{"style":1115},[4711],{"type":905,"value":4712}," - Browser capability used for offscreen rendering.\n",{"type":890,"tag":251,"props":4714,"children":4715},{"class":253,"line":2078},[4716,4720,4724,4728],{"type":890,"tag":251,"props":4717,"children":4718},{"style":1115},[4719],{"type":905,"value":3446},{"type":890,"tag":251,"props":4721,"children":4722},{"style":902},[4723],{"type":905,"value":1260},{"type":890,"tag":251,"props":4725,"children":4726},{"style":908},[4727],{"type":905,"value":3497},{"type":890,"tag":251,"props":4729,"children":4730},{"style":1115},[4731],{"type":905,"value":4732}," - Optional operation cancellation.\n",{"type":890,"tag":251,"props":4734,"children":4735},{"class":253,"line":2129},[4736,4740,4744,4748],{"type":890,"tag":251,"props":4737,"children":4738},{"style":1115},[4739],{"type":905,"value":3446},{"type":890,"tag":251,"props":4741,"children":4742},{"style":902},[4743],{"type":905,"value":1260},{"type":890,"tag":251,"props":4745,"children":4746},{"style":908},[4747],{"type":905,"value":2945},{"type":890,"tag":251,"props":4749,"children":4750},{"style":1115},[4751],{"type":905,"value":4752}," - Word source recovery; PDF has no round-trip store.\n",{"type":890,"tag":251,"props":4754,"children":4755},{"class":253,"line":2138},[4756,4760,4764],{"type":890,"tag":251,"props":4757,"children":4758},{"style":1115},[4759],{"type":905,"value":3446},{"type":890,"tag":251,"props":4761,"children":4762},{"style":902},[4763],{"type":905,"value":1123},{"type":890,"tag":251,"props":4765,"children":4766},{"style":1115},[4767],{"type":905,"value":4768}," The one code-image owner. Merge other languages into its renderer when composing with Mermaid.\n",{"type":890,"tag":251,"props":4770,"children":4771},{"class":253,"line":2147},[4772],{"type":890,"tag":251,"props":4773,"children":4774},{"style":1115},[4775],{"type":905,"value":3526},{"type":890,"tag":251,"props":4777,"children":4778},{"class":253,"line":2189},[4779,4783,4787,4792,4796,4800,4804,4808,4812,4816,4820,4824,4828,4833,4837,4842,4846,4850,4854],{"type":890,"tag":251,"props":4780,"children":4781},{"style":902},[4782],{"type":905,"value":1137},{"type":890,"tag":251,"props":4784,"children":4785},{"style":902},[4786],{"type":905,"value":555},{"type":890,"tag":251,"props":4788,"children":4789},{"style":1144},[4790],{"type":905,"value":4791}," createProgressChartExtension",{"type":890,"tag":251,"props":4793,"children":4794},{"style":908},[4795],{"type":905,"value":561},{"type":890,"tag":251,"props":4797,"children":4798},{"style":1212},[4799],{"type":905,"value":589},{"type":890,"tag":251,"props":4801,"children":4802},{"style":902},[4803],{"type":905,"value":568},{"type":890,"tag":251,"props":4805,"children":4806},{"style":1144},[4807],{"type":905,"value":594},{"type":890,"tag":251,"props":4809,"children":4810},{"style":908},[4811],{"type":905,"value":1219},{"type":890,"tag":251,"props":4813,"children":4814},{"style":1212},[4815],{"type":905,"value":654},{"type":890,"tag":251,"props":4817,"children":4818},{"style":902},[4819],{"type":905,"value":3594},{"type":890,"tag":251,"props":4821,"children":4822},{"style":1144},[4823],{"type":905,"value":3599},{"type":890,"tag":251,"props":4825,"children":4826},{"style":908},[4827],{"type":905,"value":1219},{"type":890,"tag":251,"props":4829,"children":4830},{"style":1212},[4831],{"type":905,"value":4832},"metadata",{"type":890,"tag":251,"props":4834,"children":4835},{"style":902},[4836],{"type":905,"value":382},{"type":890,"tag":251,"props":4838,"children":4839},{"style":1086},[4840],{"type":905,"value":4841}," true",{"type":890,"tag":251,"props":4843,"children":4844},{"style":908},[4845],{"type":905,"value":1316},{"type":890,"tag":251,"props":4847,"children":4848},{"style":902},[4849],{"type":905,"value":568},{"type":890,"tag":251,"props":4851,"children":4852},{"style":1144},[4853],{"type":905,"value":1161},{"type":890,"tag":251,"props":4855,"children":4856},{"style":908},[4857],{"type":905,"value":1166},{"type":890,"tag":251,"props":4859,"children":4860},{"class":253,"line":2247},[4861,4865,4870,4875,4880],{"type":890,"tag":251,"props":4862,"children":4863},{"style":902},[4864],{"type":905,"value":602},{"type":890,"tag":251,"props":4866,"children":4867},{"style":1144},[4868],{"type":905,"value":4869}," createMarkdownDocxCodeImageExtension",{"type":890,"tag":251,"props":4871,"children":4872},{"style":908},[4873],{"type":905,"value":4874},"({ languages: [",{"type":890,"tag":251,"props":4876,"children":4877},{"style":918},[4878],{"type":905,"value":4879},"'progress-chart'",{"type":890,"tag":251,"props":4881,"children":4882},{"style":908},[4883],{"type":905,"value":4884},"], metadata,\n",{"type":890,"tag":251,"props":4886,"children":4887},{"class":253,"line":2303},[4888,4893,4897,4901,4905,4909],{"type":890,"tag":251,"props":4889,"children":4890},{"style":1144},[4891],{"type":905,"value":4892},"    render",{"type":890,"tag":251,"props":4894,"children":4895},{"style":908},[4896],{"type":905,"value":2040},{"type":890,"tag":251,"props":4898,"children":4899},{"style":1212},[4900],{"type":905,"value":3556},{"type":890,"tag":251,"props":4902,"children":4903},{"style":902},[4904],{"type":905,"value":1566},{"type":890,"tag":251,"props":4906,"children":4907},{"style":1144},[4908],{"type":905,"value":3547},{"type":890,"tag":251,"props":4910,"children":4911},{"style":908},[4912],{"type":905,"value":4913},"(request, ownerDocument, signal) });\n",{"type":890,"tag":251,"props":4915,"children":4916},{"class":253,"line":2353},[4917],{"type":890,"tag":251,"props":4918,"children":4919},{"style":908},[4920],{"type":905,"value":613},{"type":890,"tag":850,"props":4922,"children":4923},{},[4924],{"type":905,"value":3363},1793046311419]