const e=Symbol(`singleComment`),t=Symbol(`multiComment`),n=()=>``,r=(e,t,n)=>e.slice(t,n).replace(/[^ \t\r\n]/g,` `),i=(e,t)=>{let n=t-1,r=0;for(;e[n]===`\\`;)--n,r+=1;return!!(r%2)};function a(a,{whitespace:o=!0,trailingCommas:s=!1}={}){if(typeof a!=`string`)throw TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof a}\``);let c=o?r:n,l=!1,u=!1,d=0,f=``,p=``,m=-1;for(let n=0;n