/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
function t(t){const n=/{[^{]+?}/g,c=[...t.matchAll(n)];let e=0;const o=[],s=[];for(const l of c){const n=l[0];o.push(t.slice(e,l.index)),s.push(n),e=l.index+n.length}return o.push(t.slice(e)),{literals:o,templates:s}}function n(t,n){return n.reduce((n,c,e)=>n.concat(t.at(e),c),"").concat(t.at(-1))}export{n as assembleStringFromParts,t as splitStringIntoParts};
