const n=-1;function t(n){return"number"==typeof n?{value:n,label:n.toString()}:n}function e(n){return[...n].sort(((n,t)=>-1===n.value?1:-1===t.value?-1:n.value-t.value))}function r(n,t){return-1===n?t:n}function u(n){return n.some((n=>"object"==typeof n&&-1===n.value))}function o(n,t){return n.some((n=>("number"==typeof n?n:n.value)===t))}export{n as P,u as h,o as i,t as n,r,e as s}