const r=e=>JSON.stringify(e.value.getOption()),l=e=>{const a=e.value.getRule(),s=[];return a.forEach(t=>{s.push(JSON.stringify(t))}),s},u=e=>{const a=[];return e.forEach(s=>{a.push(JSON.parse(s))}),a},n=(e,a,s)=>{e.value.setOption(JSON.parse(a)),e.value.setRule(u(s))},o=(e,a,s,t)=>{e.value.option=JSON.parse(a),e.value.rule=u(s),t&&(e.value.value=t)};export{l as a,o as b,r as e,n as s};