PageSourceSearch

https://www.vidilion.com/dist/wap/static/js/npm.html-to-text.js?v=640

js vidilion.com collected 2026-10-06 18:42:41 UTC 23,388 bytes, 1 lines download raw bytes

1(self["webpackChunkvue_front_shop"]=self["webpackChunkvue_front_shop"]||[]).push([[1488],{51047:function(e,t,n){e.exports=n(68503)},92580:function(e,t,n){n(21703);const{Picker:r}=n(78785),{trimCharacter:s}=n(2949),{StackItem:i,BlockStackItem:o,TableCellStackItem:a,TableRowStackItem:l,TableStackItem:c,TransformerStackItem:h}=n(16800),{tableToString:p}=n(1115),{WhitespaceProcessor:u}=n(40965);n(72353);class d{constructor(e,t){this.options=e,this.picker=t,this.whitespaceProcessor=new u(e),this._stackItem=new o(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new h(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;const e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}_getCombinedWordTransformer(){const e=(t,n)=>n?e(n.transform(t),n.next):t;return t=>e(t,this._wordTransformer)}_popStackItem(){const e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof o||this._stackItem instanceof a)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof o||this._stackItem instanceof a)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,t={}){"object"===typeof t?this._addInline(e,t):this._addInline(e,{noWordTransform:t})}_addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof o||this._stackItem instanceof a)if(this._stackItem.isPre)this._stackItem.rawText+=e;else if(0!==e.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){const t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0)return void this._stackItem.inlineTextBuilder.startNewLine(t)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,this._wordTransformer&&!t?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}openBlock(e={},t,n){"object"===typeof e?this._openBlock(e):this._openBlock({isPre:n,leadingLineBreaks:e,reservedLineLength:t})}_openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){const r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new o(this.options,this._stackItem,e,r),n&&(this._stackItem.isPre=!0)}closeBlock(e={},t){"object"===typeof e?this._closeBlock(e):this._closeBlock({trailingLineBreaks:e,blockTransform:t})}_closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){const n=this._popStackItem(),r=t?t(f(n)):f(n);m(this._stackItem,r,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openTable(){this._stackItem=new c(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof c))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new l(this._stackItem)}openTableCell(e={}){"object"===typeof e?this._openTableCell(e):this._openTableCell({maxColumnWidth:e})}_openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof l))throw new Error("Can't add table cell to something that is not a table row! Check the formatter.");this._stackItem=new a(this.options,this._stackItem,e)}closeTableCell(e={},t){"object"===typeof e?this._closeTableCell(e):this._closeTableCell({colspan:e,rowspan:t})}_closeTableCell({colspan:e=1,rowspan:t=1}={}){const n=this._popStackItem(),r=s(f(n),"\n");n.next.cells.push({colspan:e,rowspan:t,text:r})}closeTableRow(){const e=this._popStackItem();e.next.rows.push(e.cells)}closeTable(e={},t,n,r){"object"===typeof e?this._closeTable(e):this._closeTable({colSpacing:e,leadingLineBreaks:n,rowSpacing:t,trailingLineBreaks:r})}_closeTable({colSpacing:e=3,rowSpacing:t=0,leadingLineBreaks:n=2,trailingLineBreaks:r=2}={}){const s=this._popStackItem(),i=p(s.rows,t,e);i&&m(this._stackItem,i,n,r)}toString(){return f(this._stackItem.getRoot())}}function f(e){if(!(e instanceof o||e instanceof a))throw new Error("Only blocks and table cells can be requested for text contents.");return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function m(e,t,n,r){if(!(e instanceof o||e instanceof a))throw new Error("Only blocks and table cells can contain text.");const s=f(e),i=Math.max(e.stashedLineBreaks,n);
1e.inlineTextBuilder.clear(),s?e.rawText=s+"\n".repeat(i)+t:(e.rawText=t,e.leadingLineBreaks=i),e.stashedLineBreaks=r}e.exports={BlockTextBuilder:d}},71511:function(e,t,n){const r=n(79899),{get:s,numberToLetterSequence:i,numberToRoman:o,splitClassesAndIds:a,trimCharacter:l}=n(2949);function c(e,t,n,r){}function h(e,t,n,r){t(e.children,n)}function p(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks})}function u(e,t,n,r){n.addLineBreak()}function d(e,t,n,r){n.addWordBreakOpportunity()}function f(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addInline("-".repeat(r.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function m(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function g(e,t,n,r){n.openBlock({isPre:!0,leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function k(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),!1!==r.uppercase?(n.pushWordTransform((e=>e.toUpperCase())),t(e.children,n),n.popWordTransform()):t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function L(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2,blockTransform:e=>(!1!==r.trimEmptyLines?l(e,"\n"):e).split("\n").map((e=>"> "+e)).join("\n")})}function b(e,t){if(!t)return e;const n="string"===typeof t[0]?t[0]:"[",r="string"===typeof t[1]?t[1]:"]";return n+e+r}function B(e,t,n,s){const i=e.attribs||{},o=i.alt?r.decode(i.alt,n.options.decodeOptions):"",a=i.src?s.baseUrl&&0===i.src.indexOf("/")?s.baseUrl+i.src:i.src:"",l=a?o?o+" "+b(a,s.linkBrackets):b(a,s.linkBrackets):o;n.addInline(l)}function w(e,t,n,s){function i(){if(s.ignoreHref)return"";if(!e.attribs||!e.attribs.href)return"";let t=e.attribs.href.replace(/^mailto:/,"");return s.noAnchorUrl&&"#"===t[0]?"":(t=s.baseUrl&&"/"===t[0]?s.baseUrl+t:t,r.decode(t,n.options.decodeOptions))}const o=i();if(o){let r="";n.pushWordTransform((e=>(e&&(r+=e),e))),t(e.children,n),n.popWordTransform();const i=s.hideLinkHrefIfSameAsText&&o===r;i||n.addInline(r?" "+b(o,s.linkBrackets):o,{noWordTransform:!0})}else t(e.children,n)}function x(e,t,n,r,i){const o="li"===s(e,["parent","name"]);let a=0;const l=(e.children||[]).filter((e=>"text"!==e.type||!/^\s*$/.test(e.data))).map((function(e){if("li"!==e.name)return{node:e,prefix:""};const t=o?i().trimStart():i();return t.length>a&&(a=t.length),{node:e,prefix:t}}
1));if(!l.length)return;const c=a,h="\n"+" ".repeat(c);n.openBlock({leadingLineBreaks:o?1:r.leadingLineBreaks||2});for(const{node:s,prefix:p}of l)n.openBlock({leadingLineBreaks:1,reservedLineLength:c}),t([s],n),n.closeBlock({trailingLineBreaks:1,blockTransform:e=>p+" ".repeat(c-p.length)+e.replace(/\n/g,h)});n.closeBlock({trailingLineBreaks:o?1:r.trailingLineBreaks||2})}function T(e,t,n,r){const s=r.itemPrefix||" * ";return x(e,t,n,r,(()=>s))}function I(e,t,n,r){let s=Number(e.attribs.start||"1");const i=W(e.attribs.type),o=()=>" "+i(s++)+". ";return x(e,t,n,r,o)}function W(e="1"){switch(e){case"a":return e=>i(e,"a");case"A":return e=>i(e,"A");case"i":return e=>o(e).toLowerCase();case"I":return e=>o(e);case"1":default:return e=>e.toString()}}function _(e,t){if(!0===t)return!0;if(!e)return!1;const{classes:n,ids:r}=a(t),s=(e["class"]||"").split(" "),i=(e["id"]||"").split(" ");return s.some((e=>n.includes(e)))||i.some((e=>r.includes(e)))}function y(e,t,n,r){return _(e.attribs,n.options.tables)?C(e,t,n,r):p(e,t,n,r)}function C(e,t,n,r){function i(e){const i=+s(e,["attribs","colspan"])||1,o=+s(e,["attribs","rowspan"])||1;n.openTableCell({maxColumnWidth:r.maxColumnWidth}),t(e.children,n),n.closeTableCell({colspan:i,rowspan:o})}function o(e){if("tag"!==e.type)return;const t=!1!==r.uppercaseHeaderCells?e=>{n.pushWordTransform((e=>e.toUpperCase())),i(e),n.popWordTransform()}:i;switch(e.name){case"thead":case"tbody":case"tfoot":case"center":return void e.children.forEach(o);case"tr":n.openTableRow();for(const n of e.children)if("tag"===n.type)switch(n.name){case"th":t(n);break;case"td":i(n);break;default:}n.closeTableRow();break;default:}}n.openTable(),e.children.forEach(o),n.closeTable({colSpacing:r.colSpacing,leadingLineBreaks:r.leadingLineBreaks,rowSpacing:r.rowSpacing,trailingLineBreaks:r.trailingLineBreaks})}n(72353),e.exports={anchor:w,block:p,blockquote:L,dataTable:C,heading:k,horizontalLine:f,image:B,inline:h,lineBreak:u,orderedList:I,paragraph:m,pre:g,skip:c,table:y,unorderedList:T,wbr:d}},2949:function(e,t,n){const r=n(74392);function s(e){const t=[],n=[];for(const r of e)r.startsWith(".")?t.push(r.substring(1)):r.startsWith("#")&&n.push(r.substring(1));return{classes:t,ids:n}}function i(e,t,n=(()=>{})){if(void 0===e){const e=function(...n){return t(e,...n)};return e}return e>=0?function(...r){return t(i(e-1,t,n),...r)}:n}function o(e,t="a",n=26){const r=[];do{e-=1,r.push(e%n),e=e/n>>0}while(e>0);const s=t.charCodeAt(0);return r.reverse().map((e=>String.fromCharCode(s+e))).join("")}const a=["I","X","C","M"],l=["V","L","D"];function c(e){return[...e+""].map((e=>+e)).reverse().map(((e,t)=>e%5<4?(e<5?"":l[t])+a[t].repeat(e%5):a[t]+(e<5?l[t]:a[t+1]))).reverse().join("")}function h(e,t){let n=0,r=e.length;while(n<r&&e[n]===t)++n;while(r>n&&e[r-1]===t)--r;return n>0||r<e.length?e.substring(n,r):e}function p(e,t){for(const n of t){if(!e)return;e=e[n]}return e}function u(e,t){const n=new Map;for(let s=e.length;s-- >0;){const i=e[s],o=t(i);n.set(o,n.has(o)?r(i,n.get(o),{arrayMerge:d}):i)}return[...n.values()].reverse()}const d=(e,t,n)=>[...t];e.exports={get:p,limitedDepthRecursive:i,mergeDuplicatesPreferLast:u,numberToLetterSequence:o,numberToRoman:c,splitClassesAndIds:s,trimCharacter:h}},68503:function(e,t,n){n(21703);const{hp2Builder:r}=n(57659),s=n(74392),i=n(79899),o=n(62751),a=n(78785),{BlockTextBuilder:l}=n(92580),c=n(71511),{limitedDepthRecursive:h,mergeDuplicatesPreferLast:p,get:u}=n(2949);n(72353);const d={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeOptions:{isAttributeValue:!1,strict:!1},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block"},{selector:"aside",format:"block"},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block"},{selector:"footer",format:"block"},{selector:"form",format:"block"},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block"},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block"},{selector:"nav",format:"block"},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block"},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f​",wordwrap:80},f=(e,t,n)=>
1[...e,...t],m=(e,t,n)=>[...t],g=(e,t,n)=>e.some((e=>"object"===typeof e))?f(e,t,n):m(e,t,n);function k(e={}){e=s(d,e,{arrayMerge:m,customMerge:e=>"selectors"===e?g:void 0}),e.formatters=Object.assign({},c,e.formatters),e.selectors=p(e.selectors,(e=>e.selector)),B(e);const t=e.selectors.filter((e=>!e.format));if(t.length)throw new Error("Following selectors have no specified format: "+t.map((e=>`\`${e.selector}\``)).join(", "));const n=new a.DecisionTree(e.selectors.map((e=>[e.selector,e]))).build(r),i=new a.DecisionTree(e.baseElements.selectors.map(((e,t)=>[e,t+1]))).build(r);function o(t){return w(t,e,i)}const l=h(e.limits.maxDepth,x,(function(t,n){n.addInline(e.limits.ellipsis||"")}));return function(t){return L(t,e,n,o,l)}}function L(e,t,n,r,s){const i=t.limits.maxInputLength;i&&e&&e.length>i&&(console.warn(`Input length ${e.length} is above allowed limit of ${i}. Truncating without ellipsis.`),e=e.substring(0,i));const a=new o.DomHandler;new o.Parser(a,{decodeEntities:!1}).parseComplete(e);const c=r(a.dom),h=new l(t,n);return s(c,h),h.toString()}function b(e,t={}){return k(t)(e)}function B(e){const t=e.selectors;if(e.tags){const n=Object.entries(e.tags).map((([e,t])=>({...t,selector:e||"*"})));t.push(...n)}function n(e,t,n){const r=t.pop();for(const s of t){let t=e[s];t||(t={},e[s]=t),e=t}e[r]=n}function r(r,s,i){if(void 0!==e[r])for(const o of t)o.format===s&&n(o,["options",i],e[r])}if(r("hideLinkHrefIfSameAsText","anchor","hideLinkHrefIfSameAsText"),r("ignoreHref","anchor","ignoreHref"),r("linkHrefBaseUrl","anchor","baseUrl"),r("noAnchorUrl","anchor","noAnchorUrl"),r("noLinkBrackets","anchor","noLinkBrackets"),r("linkHrefBaseUrl","image","baseUrl"),r("unorderedListItemPrefix","unorderedList","itemPrefix"),r("uppercaseHeadings","heading","uppercase"),r("uppercaseHeadings","table","uppercaseHeadings"),r("uppercaseHeadings","dataTable","uppercaseHeadings"),e["ignoreImage"])for(const s of t)"image"===s.format&&(s.format="skip");if(e["singleNewLineParagraphs"])for(const s of t)"paragraph"!==s.format&&"pre"!==s.format||(n(s,["options","leadingLineBreaks"],1),n(s,["options","trailingLineBreaks"],1));if(e["baseElement"]){const t=e["baseElement"];n(e,["baseElements","selectors"],Array.isArray(t)?t:[t])}void 0!==e["returnDomByDefault"]&&n(e,["baseElements","returnDomByDefault"],e["returnDomByDefault"]);for(const s of t)"anchor"===s.format&&u(s,["options","noLinkBrackets"])&&n(s,["options","linkBrackets"],!1)}function w(e,t,n){const r=[];function s(e,s){s=s.slice(0,t.limits.maxChildNodes);for(const i of s){if("tag"!==i.type)continue;const s=n.pick1(i);if(s>0?r.push({selectorIndex:s,element:i}):i.children&&e(i.children),r.length>=t.limits.maxBaseElements)return}}const i=h(t.limits.maxDepth,s);return i(e),"occurrence"!==t.baseElements.orderBy&&r.sort(((e,t)=>e.selectorIndex-t.selectorIndex)),t.baseElements.returnDomByDefault&&0===r.length?e:r.map((e=>e.element))}function x(e,t,n){if(!t)return;const r=n.options,s=t.length>r.limits.maxChildNodes;s&&(t=t.slice(0,r.limits.maxChildNodes),t.push({data:r.limits.ellipsis,type:"text"}));for(const o of t)switch(o.type){case"text":n.addInline(i.decode(o.data,r.decodeOptions));break;case"tag":{const t=n.picker.pick1(o),s=r.formatters[t.format];s(o,e,n,t.options||{});break}default:break}}const T=(e,t={})=>b(e,t);e.exports={compile:k,convert:b,fromString:T,htmlToText:b}},75809:function(e,t,n){n(72353);class r{constructor(e,t){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=e.longWordSplit.wrapCharacters||[],this.forceWrapOnLimit=e.longWordSplit.forceWrapOnLimit||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e){this.nextLineAvailableChars<=0&&this.startNewLine();const t=0===this.nextLineWords.length,n=e.length+(t?0:1);if(n<=this.nextLineAvailableChars)this.nextLineWords.push(e),this.nextLineAvailableChars-=n;else{const[n,...r]=this.splitLongWord(e);t||this.startNewLine(),this.nextLineWords.push(n),this.nextLineAvailableChars-=n.length;for(const e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){const e=this.nextLineWords.pop();if(void 0!==e){const t=0===this.nextLineWords.length,n=e.length+(t?0:1);this.nextLineAvailableChars+=n}return e}concatWord(e){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e),this.wordBreakOpportunity=!1;else{const t=this.popWord();this.pushWord(t?t.concat(e):e)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},(()=>[]))),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((e=>e.join(" "))).join("\n")}splitLongWord(e){const t=[];let n=0;while(e.length>this.maxLineLength){const r=e.substring(0,this.maxLineLength),s=e.substring(this.maxLineLength),i=r.lastIndexOf(this.wrapCharacters[n]);if(i>-1)e=r.substring(i+1)+s,t.push(r.substring(0,i+1));else{if(n++,!(n<this.wrapCharacters.length)){if(this.forceWrapOnLimit){if(t.push(r),e=s,e.length>this.maxLineLength)continue}else e=r+s;break}e=r+s}}return t.push(e),t}}e.exports={InlineTextBuilder:r}},16800:function(e,t,n){const{InlineTextBuilder:r}=n(75809);class s{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class i extends s{constructor(e,t=null,n=1,s){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new r(e,s),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre}}class o extends s{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre}}class a extends s{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre}}class l extends s{constructor(e,t=null,n){super(t),this.inlineTextBuilder=new r(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre}}class c extends s{constructor(e=null,t){super(e),this.transform=t}}e.exports={BlockStackItem:i,StackItem:s,TableCellStackItem:l,TableRowStackItem:a,TableStackItem:o,TransformerStackItem:c}},1115:function(e){function t(e,t){return e[t]||(e[t]=[]),e[t]}function n(e,t=0){while(e[t])t++;return t}function r(e,n){for(let r=0;r<n;r++){const n=t(e,r);for(let s=0;s<r;s++){const i=t(e,s),o=n[s];n[s]=i[r],i[r]=o}}}
1function s(e,n,r,s){for(let i=0;i<e.rowspan;i++){const o=t(n,r+i);for(let t=0;t<e.colspan;t++)o[s+t]=e}}function i(e,t,n,r){e[t+n]=Math.max(e[t+n]||0,e[t]+r)}function o(e,o,a){const l=[];let c=0;const h=e.length,p=[0];for(let r=0;r<h;r++){const a=t(l,r),h=e[r];let u=0;for(let e=0;e<h.length;e++){const t=h[e];u=n(a,u),s(t,l,r,u),u+=t.colspan,t.lines=t.text.split("\n");const c=t.lines.length;i(p,r,t.rowspan,c+o)}c=a.length>c?a.length:c}r(l,h>c?h:c);const u=[],d=[0];for(let t=0;t<c;t++){let e,n=0;while(n<h&&(e=l[t][n])){if(!e.rendered){let r=0;for(let s=0;s<e.lines.length;s++){const i=e.lines[s],o=p[n]+s;u[o]=(u[o]||"").padEnd(d[t])+i,r=i.length>r?i.length:r}i(d,t,e.colspan,r+a),e.rendered=!0}n+=e.rowspan}}return u.join("\n")}e.exports={tableToString:o}},72353:function(){},40965:function(e,t,n){const{InlineTextBuilder:r}=n(75809);function s(e){return[...e].map((e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0"))).join("")}n(72353);class i{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;const t=s(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${t}]`),this.trailingWhitespaceRe=new RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${t}])`,"g"),e.preserveNewlines){const e=new RegExp(`\\n|[^\\n${t}]+`,"gm");this.shrinkWrapAdd=function(t,n,r=(e=>e)){if(!t)return;const s=n.stashedSpace;let i=!1,o=e.exec(t);if(o){i=!0,"\n"===o[0]?n.startNewLine():s||this.testLeadingWhitespace(t)?n.pushWord(r(o[0])):n.concatWord(r(o[0]));while(null!==(o=e.exec(t)))"\n"===o[0]?n.startNewLine():n.pushWord(r(o[0]))}n.stashedSpace=s&&!i||this.testTrailingWhitespace(t)}}else{const e=new RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,n,r=(e=>e)){if(!t)return;const s=n.stashedSpace;let i=!1,o=e.exec(t);if(o){i=!0,s||this.testLeadingWhitespace(t)?n.pushWord(r(o[0])):n.concatWord(r(o[0]));while(null!==(o=e.exec(t)))n.pushWord(r(o[0]))}n.stashedSpace=s&&!i||this.testTrailingWhitespace(t)}}}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t,n=0;while(null!==(t=this.newlineOrNonWhitespaceRe.exec(e))){if("\n"!==t[0])return 0;n++}return n}}e.exports={WhitespaceProcessor:i}},74392:function(e,t,n){"use strict";n(21703);var r=function(e){return s(e)&&!i(e)};function s(e){return!!e&&"object"===typeof e}function i(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var o="function"===typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===a}function c(e){return Array.isArray(e)?[]:{}}function h(e,t){return!1!==t.clone&&t.isMergeableObject(e)?L(c(e),e,t):e}function p(e,t,n){return e.concat(t).map((function(e){return h(e,n)}))}function u(e,t){if(!t.customMerge)return L;var n=t.customMerge(e);return"function"===typeof n?n:L}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}function f(e){return Object.keys(e).concat(d(e))}function m(e,t){try{return t in e}catch(n){return!1}}function g(e,t){return m(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function k(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach((function(t){r[t]=h(e[t],n)})),f(t).forEach((function(s){g(e,s)||(m(e,s)&&n.isMergeableObject(t[s])?r[s]=u(s,n)(e[s],t[s],n):r[s]=h(t[s],n))})),r}function L(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||p,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=h;var s=Array.isArray(t),i=Array.isArray(e),o=s===i;return o?s?n.arrayMerge(e,t,n):k(e,t,n):h(t,n)}L.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return L(e,n,t)}),{})};var b=L;e.exports=b}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.