function e(e=[],t="MultiPolygon"){let r,l=e=>Object.values(e).map(e=>Array.isArray(e[0])?l(e):[e[1],e[0]]),o=l(e);if("MultiPolygon"===t){let e=o[0]?.[0],t=o[0]?.[1];r=[[e||[],...t||[]]]}else r=o;return{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:t,coordinates:r}}]}}function t(e=[],t="MultiPolygon"){let r=e=>Object.values(e).map(e=>Array.isArray(e[0])?r(e):{lat:e[0],lng:e[1]}),l=r(e);if("MultiPolygon"===t){let e=l,t=e[0]?.[0],r=e[0]?.[1];return[t||[],...r||[]]}return l}export{t as n,e as t};
//# sourceMappingURL=utils-CjIvvA5e-DRv4kcQu.js.map