"use strict";(self.webpackChunkpowerwiki=self.webpackChunkpowerwiki||[]).push([[9294],{89294(e,t,n){n.d(t,{exportPagesToPdf:()=>o});var r=n(22278);async function o(e,t,n){const o=document.createElement("div");o.className=(t.themeMode,"pw-print-root markdown-preview");const i=e.length>1;for(const a of e){const e=await(0,r.z)(a.content,{...t,currentPath:a.path}),p=document.createElement("section");if(p.className="pw-print-page",i){const e=document.createElement("h1");e.textContent=a.title,p.appendChild(e)}for(;e.firstChild;)p.appendChild(e.firstChild);e.remove(),o.appendChild(p),n?.()}const a=document.createElement("style");a.id="pw-print-style",a.textContent="\n@media screen { .pw-print-root { display: none !important; } }\n@media print {\n  html, body { background: #ffffff !important; }\n  body > *:not(.pw-print-root) { display: none !important; }\n  .pw-print-root { display: block !important; position: static !important; margin: 0; padding: 0; color: #000; }\n  .pw-print-page { break-after: page; page-break-after: always; }\n  .pw-print-page:last-child { break-after: auto; page-break-after: auto; }\n  .pw-print-page img, .pw-print-page svg, .pw-print-page table, .pw-print-page pre { break-inside: avoid; page-break-inside: avoid; max-width: 100%; }\n  .powerwiki-heading-anchor, .powerwiki-copy-code, .powerwiki-mermaid-tools { display: none !important; }\n}",document.head.appendChild(a),document.body.appendChild(o);const p=()=>{o.remove(),a.remove(),window.removeEventListener("afterprint",p)};window.addEventListener("afterprint",p),await new Promise(e=>setTimeout(e,150));try{window.print()}finally{setTimeout(p,6e4)}}},22278(e,t,n){n.d(t,{z:()=>w});var r=n(82474),o=n(45292),i=n(79646),a=n(58712),p=n(5363),c=n(13052),s=n(12273),d=n(2489);const l=(0,i.X)();async function w(e,t){let n=(0,d.S)(l.render(e));t.resolveImageSrc&&(n=function(e,t,n){const r=document.createElement("template");r.innerHTML=e;for(const e of Array.from(r.content.querySelectorAll("img"))){const r=e.getAttribute("src");if(!r)continue;e.setAttribute("data-export-src",r);const o=n(r,t);o&&e.setAttribute("src",o)}return r.innerHTML}(n,t.currentPath,t.resolveImageSrc));const i=document.createElement("div");return i.className="dark"===t.themeMode?"markdown-preview pw-dark":"markdown-preview",i.innerHTML=n,i.style.position="fixed",i.style.left="-100000px",i.style.top="0",i.style.width="780px",document.body.appendChild(i),await async function(e,t){for(const n of Array.from(e.querySelectorAll(o.YZ))){const e=n.getAttribute(o.sw);if(e)if(t)try{(0,p.g4)(n,await t(e),{initiallyCollapsed:!1})}catch{(0,p.IM)(n,"Unable to load query.")}else(0,p.IM)(n,"Azure Boards query rendering is unavailable.")}}(i,t.loadQueryTable),await async function(e,t){const n=Array.from(e.querySelectorAll(`${o.Yo}:not(.powerwiki-query-id-link):not(.powerwiki-query-title-link)`));for(const e of n){const n=Number(e.getAttribute(o.mu));if(Number.isInteger(n)&&!(n<=0)&&((0,p.O$)(e,{id:n}),t))try{(0,p.O$)(e,await t(n))}catch{}}}(i,t.loadWorkItemBadge),await async function(e,t){const n=new Map;for(const o of Array.from(e.querySelectorAll(r.DU))){const e=o.getAttribute(r.D3);if(e){if(!n.has(e))try{n.set(e,t?await t(e):void 0)}catch{n.set(e,void 0)}(0,p.Fe)(o,n.get(e))}}}(i,t.loadMention),await(0,s.C)(i,t.themeMode,{htmlLabels:!t.plainDiagramLabels}),await(0,c.L)(i),await(0,a.E)(i),i.querySelectorAll(".powerwiki-heading-anchor, .powerwiki-copy-code, .powerwiki-mermaid-tools").forEach(e=>e.remove()),i}}}]);