import{u as i}from"./chunk-Bzmka5Fh.js";import{Z as s}from"./app-CPb3bToC.js";import{g as r,O as d,w as e,a as l}from"./chunk-DhYw-kuD.js";function m(u){return u??null}function t(u,n){return u??(n===!0?`f_${i()}`:null)}function v({getValue:u,required:n=!0}={}){if(s.value===!0){const o=u!==void 0?r(m(u())):r(null);return n===!0&&o.value===null&&d(()=>{o.value=`f_${i()}`}),u!==void 0&&e(u,f=>{o.value=t(f,n)}),o}return u!==void 0?l(()=>t(u(),n)):r(`f_${i()}`)}export{v as u};
