'use strict';
import { jsBasicTypes } from '../../base-repo/constants/basic-types.js';
import { commonLowerCaseWords } from '../../base-repo/constants/internal-common-strings.js';
import { first } from '../server/collections/single-funcs.js';

var __defProp=Object['defineProperty'],__name=(_0x33fc21,_0x14c391)=>__defProp(_0x33fc21,'name',{'value':_0x14c391,'configurable':!![]});function ensureString(_0x1ce3df){let _0x31cd37;return isString(_0x1ce3df)?_0x31cd37=_0x1ce3df:_0x31cd37=String(_0x1ce3df),_0x31cd37;}__name(ensureString,'ensureString');function ensureNumber(_0x2e1c6d){let _0x55dd45=NaN;if(isNumber(_0x2e1c6d))_0x55dd45=_0x2e1c6d;else isString(_0x2e1c6d)&&(_0x55dd45=parseFloat(_0x2e1c6d));return _0x55dd45;}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x2a5ec9){let _0x51be1f=[];if(Array['isArray'](_0x2a5ec9)&&_0x2a5ec9['length']>0x12bd+-0x561+0x12*-0xbe&&isObject(first(_0x2a5ec9)))for(const _0x3db4f5 of _0x2a5ec9){if(isObject(_0x3db4f5))_0x51be1f['push'](_0x3db4f5);}return _0x51be1f;}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x77a279){let _0x3c920e={};return isWithIndexer(_0x77a279)&&(_0x3c920e=_0x77a279),_0x3c920e;}__name(ensureWithIndexer,'ensureWithIndexer');function ensureWithIndexerArray(_0x56a3b9){let _0x5f4960=[];if(Array['isArray'](_0x56a3b9))_0x5f4960=_0x56a3b9['filter'](isWithIndexer);else isWithIndexer(_0x56a3b9)&&(_0x5f4960=[_0x56a3b9]);return _0x5f4960;}__name(ensureWithIndexerArray,'ensureWithIndexerArray');const stripeConflictResponseProperties={'detail':commonLowerCaseWords['detail']};function isObject(_0x5615ec){return typeof _0x5615ec===jsBasicTypes['object']&&_0x5615ec!==void(0x2*0xa36+-0x775+-0xcf7);}__name(isObject,'isObject');function isString(_0x1c5338){return typeof _0x1c5338===jsBasicTypes['string'];}__name(isString,'isString');function isNumber(_0x37309b){return typeof _0x37309b===jsBasicTypes['number'];}__name(isNumber,'isNumber');function isError(_0x388b1c){return typeof _0x388b1c===jsBasicTypes['object'];}__name(isError,'isError');function isKeyof(_0x5c1f1b,_0x1a3500){return isObject(_0x5c1f1b)&&_0x1a3500 in _0x5c1f1b;}__name(isKeyof,'isKeyof');function isFunction(_0x403f5e){return typeof _0x403f5e===jsBasicTypes['function'];}__name(isFunction,'isFunction');function isWithIndexer(_0x3a8f8e){return isObject(_0x3a8f8e)&&!Array['isArray'](_0x3a8f8e);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x406eae){return isObject(_0x406eae)&&Array['isArray'](_0x406eae);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x6112ab){return isObject(_0x6112ab)&&stripeConflictResponseProperties['detail']in _0x6112ab;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0x4f7156){return typeof _0x4f7156===jsBasicTypes['boolean'];}__name(isBoolean,'isBoolean');function isDate(_0x1ea87c){return _0x1ea87c instanceof Date;}__name(isDate,'isDate');function isNumberArray(_0x4fea85){return Array['isArray'](_0x4fea85)&&(_0x4fea85['length']===-0xc1c+-0x74f+-0x136b*-0x1||typeof first(_0x4fea85)===jsBasicTypes['number']);}__name(isNumberArray,'isNumberArray');

export { ensureNumber, ensureObjectArray, ensureString, ensureWithIndexer, ensureWithIndexerArray, isArray, isBoolean, isDate, isError, isErrorResponseWithDetail, isFunction, isKeyof, isNumber, isNumberArray, isObject, isString, isWithIndexer, stripeConflictResponseProperties };
