| 620 | |
| 621 | `;while(_[w+2]==="\\"&&_[w+3]==="n"&&_[w+4]!=='"')A+=` |
| 622 | `,w+=2;if(A+=$,_[w+2]===" ")A+="\\";w+=1,O=w+1}break;default:w+=1}}return A=O?A+_.slice(O):_,z?A:r16.foldFlowLines(A,$,r16.FOLD_QUOTED,YG8(K,!1))}function WR1(q,K){if(K.options.singleQuote===!1||K.implicitKey&&q.includes(` |
| 623 | `)||/[ \t]\n|\n[ \t]/.test(q))return sl6(q,K);let _=K.indent||($G8(q)?" ":""),z="'"+q.replace(/'/g,"''").replace(/\n+/g,`$& |
| 624 | ${_}`)+"'";return K.implicitKey?z:r16.foldFlowLines(z,_,r16.FOLD_FLOW,YG8(K,!1))}function Av6(q,K){let{singleQuote:_}=K.options,z;if(_===!1)z=sl6;else{let Y=q.includes('"'),$=q.includes("'");if(Y&&!$)z=WR1;else if($&&!Y)z=sl6;else z=_?WR1:sl6}return z(q,K)}var DR1;try{DR1=new RegExp(`(^|(?<! |
| 625 | )) |
| 626 | +(?! |
| 627 | |$)`,"g")}catch{DR1=/\n+(?!\n|$)/g}function zG8({comment:q,type:K,value:_},z,Y,$){let{blockQuote:A,commentString:O,lineWidth:w}=z.options;if(!A||/\n[\t ]+$/.test(_))return Av6(_,z);let j=z.indent||(z.forceBlockIndent||$G8(_)?" ":""),H=A==="literal"?!0:A==="folded"||K===yu.Scalar.BLOCK_FOLDED?!1:K===yu.Scalar.BLOCK_LITERAL?!0:!Zk_(_,w,j.length);if(!_)return H?`| |