1import{S as e,y as t}from"./B9Ui1xjL.js";import{t as n}from"./N7tdaRuU2.js";import{t as r}from"./C5PhpYdX.js";var i=/^\{([^{}]+)}$/,a=/^\{\{value:(\d+)}}$/i,o=/(<span\b[^>]*data-property-token=(['"])(.*?)\2[^>]*>)([\s\S]*?)(<\/span>)/gi,s=/<p([^>]*)>\s*<div data-rte-html-value>([\s\S]*)<\/div>\s*<\/p>/gi,c=(e,t)=>e.id===t||e.names?.propertyId===t||e.names?.id===t||e.values?.id===t,l=(e,t)=>e?.flatMap(e=>e.properties??[]).find(e=>c(e,t)),u=(e,t)=>e.match(RegExp(`${t}=(['"])(.*?)\\1`,`i`))?.[2]??null,d=e=>!!e&&Object.keys(e).length>0,f=e=>e.replace(/^\{|}$/g,``).split(`.`).join(` ⺠`),p=(e,t)=>{if(t?.trim())return t;let n=e?.trim()??``,r=n.match(i);return r?.[1]?r[1]:n},m=(n,r)=>{let i=t.getPropertyGroups(r);if(i?.length){let t=e.getProperty(n,i);if(t)return t;let r=l(i,n);if(r)return r}return l(r.variationProperties,n)},h=(t,i)=>t?t.replace(o,(...t)=>{let[o,s,c,l,f,h]=t,g=u(s,`data-property-label`),_=u(s,`data-property-kind`),v=u(s,`data-property-cast`),y=u(s,`data-property-id`),b=y?Number(y):NaN,x=Number(l?.match(a)?.[1]),S=Number.isFinite(b)?b:x,C=p(l,g);if(_===`property-value`&&Number.isFinite(S)&&d(i)){let t=m(S,i),a=t?e.getPropertyValue(t)??``:C;return v===`html`?`<div data-rte-html-value>${r(a)}</div>`:`${s}${n(a)}${h}`}return`${s}${n(C)}${h}`}).replace(s,`<div$1>$2</div>`):``;export{p as n,h as r,f as t};
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.