"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["vendors-node_modules_hast-util-to-text_lib_index_js"],{6537:(e,t,n)=>{n.d(t,{f:()=>d});var r=n(6220),a=n(9747);const o=/\n/g,i=/[\t ]+/g,s=(0,a.a)("br"),p=(0,a.a)(function(e){return"td"===e.tagName||"th"===e.tagName}),u=(0,a.a)("p"),h=(0,a.a)("tr"),c=(0,a.a)(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),l=(0,a.a)(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function d(e,t){const n=t||{},r="children"in e?e.children:[],a=l(e),o=b(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),i=[];"text"!==e.type&&"comment"!==e.type||i.push(...g(e,{whitespace:o,breakBefore:!0,breakAfter:!0}));let p=-1;for(;++p<r.length;)i.push(...f(r[p],e,{whitespace:o,breakBefore:p?void 0:a,breakAfter:p<r.length-1?s(r[p+1]):a}));const u=[];let h;for(p=-1;++p<i.length;){const e=i[p];"number"==typeof e?void 0!==h&&e>h&&(h=e):e&&(void 0!==h&&h>-1&&u.push("\n".repeat(h)||" "),h=-1,u.push(e))}return u.join("")}function f(e,t,n){return"element"===e.type?function(e,t,n){const a=b(e,n),o=e.children||[];let i,d,g=-1,m=[];if(c(e))return m;s(e)||h(e)&&(0,r.o)(t,e,h)?d="\n":u(e)?(i=2,d=2):l(e)&&(i=1,d=1);for(;++g<o.length;)m=m.concat(f(o[g],e,{whitespace:a,breakBefore:g?void 0:i,breakAfter:g<o.length-1?s(o[g+1]):d}));p(e)&&(0,r.o)(t,e,p)&&m.push("\t");i&&m.unshift(i);d&&m.push(d);return m}(e,t,n):"text"===e.type?"normal"===n.whitespace?g(e,n):function(e){return[String(e.value)]}(e):[]}function g(e,t){const n=String(e.value),r=[],a=[];let i=0;for(;i<=n.length;){o.lastIndex=i;const e=o.exec(n),a=e&&"index"in e?e.index:n.length;r.push(m(n.slice(i,a).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==i||t.breakBefore,a!==n.length||t.breakAfter)),i=a+1}let s,p=-1;for(;++p<r.length;)8203===r[p].charCodeAt(r[p].length-1)||p<r.length-1&&8203===r[p+1].charCodeAt(0)?(a.push(r[p]),s=void 0):r[p]?("number"==typeof s&&a.push(s),a.push(r[p]),s=0):0!==p&&p!==r.length-1||a.push(0);return a}function m(e,t,n){const r=[];let a,o=0;for(;o<e.length;){i.lastIndex=o;const n=i.exec(e);a=n?n.index:e.length,o||a||!n||t||r.push(""),o!==a&&r.push(e.slice(o,a)),o=n?a+n[0].length:a}return o===a||n||r.push(""),r.join(" ")}function b(e,t){if("element"===e.type){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}}}]);