import{l as o}from"./p-82ae0260.js";import{g as r}from"./p-3775d1fc.js";let t=[];function e(e,c,n){for(const r of(null==n?void 0:n.partials)||[])o.registerPartial(r.id,(null==r?void 0:r.html)||"");try{const e=Object.keys((null==n?void 0:n.helpers)||[]).length?n.helpers:r();for(const[r,c]of Object.entries(e))try{t.includes(r)&&o.unregisterHelper(r),o.registerHelper(r,c),t.includes(r)||(t=[...t,r])}catch(o){console.log(`Error setting helper ${r}.`,o)}}catch(o){console.log("Error setting helpers.")}return o.compile(e)(c)}export{e as r}