import{p as pipe,g as getOrElse,c as isSome,b as fromNullable}from"./index-6869168f.js";function assertSome(r){var e=fromNullable(r);if(isSome(e)){return e}throw new Error("Expected value")}function getOrDefault(r,e){return pipe(r,getOrElse((function(){return e})))}function getOrError(r,e){if(e===void 0){e="Option value is none."}return pipe(r,getOrElse((function(){throw new Error(e)})))}function toSelectInputOptionsArray(r){return r.map((function(r){return{label:String(r),value:r}}))}export{getOrError as a,assertSome as b,getOrDefault as g,toSelectInputOptionsArray as t};