'use strict';
import { wordPluralSuffixes } from '../../../base-repo/constants/strings-constants.js';
import { first } from '../collections/single-funcs.js';

var __defProp=Object['defineProperty'],__name=(_0x201365,_0x4d6970)=>__defProp(_0x201365,'name',{'value':_0x4d6970,'configurable':!![]});function isNullOrEmpty(_0x2fb688){return !_0x2fb688;}__name(isNullOrEmpty,'isNullOrEmpty');function truncateWithElipsis(_0x3ad6cc,_0x3561a4){if(isNullOrEmpty(_0x3ad6cc))return '';else return _0x3ad6cc['length']<-0x3d*0x9+-0x15fc+0x1823?_0x3ad6cc['length']<=_0x3561a4?_0x3ad6cc:_0x3ad6cc['substring'](-0x2d5*-0x3+-0x1e6*-0xd+-0x1bf*0x13,_0x3561a4):_0x3ad6cc['length']<=_0x3561a4?_0x3ad6cc:_0x3ad6cc['substring'](0x1005+-0x1261+0x25c,_0x3561a4-(-0x2031+0x147*-0x18+0x3eda))+'…';}__name(truncateWithElipsis,'truncateWithElipsis');function pluralizeStrict(_0xb0ec3a){let _0x3f4271;const _0x416124={},_0x13da54=_0xb0ec3a['toLowerCase']();if(_0xb0ec3a['endsWith'](wordPluralSuffixes['s'])||_0xb0ec3a['endsWith'](wordPluralSuffixes['ies'])||_0xb0ec3a['endsWith'](wordPluralSuffixes['es']))_0x3f4271=_0xb0ec3a;else {if(_0x416124[_0x13da54])_0x3f4271=_0x416124[_0x13da54];else {if(_0xb0ec3a['endsWith'](wordPluralSuffixes['y'])&&!/[aeiou]y$/['test'](_0xb0ec3a)){const _0x23cf05=_0xb0ec3a['slice'](-0x483+0x1*0x1f6d+-0x1aea,-(0x447+-0x1106+-0x8*-0x198));_0x3f4271=''+_0x23cf05+wordPluralSuffixes['ies'];}else /s$|x$|z$|ch$|sh$/['test'](_0xb0ec3a)?_0x3f4271=''+_0xb0ec3a+wordPluralSuffixes['es']:_0x3f4271=''+_0xb0ec3a+wordPluralSuffixes['s'];}}return _0x3f4271;}__name(pluralizeStrict,'pluralizeStrict');function splitAndCapitalize(_0x108d36){return _0x108d36['replace'](/([A-Z])/g,'\x20$1')['trim']()['toLowerCase']()['replace'](/\b\w/g,_0x484c75=>_0x484c75['toUpperCase']());}__name(splitAndCapitalize,'splitAndCapitalize');function getRandomBase64UrlFriendlyString(_0x22ecc0=0x8e9*-0x2+0x2679+-0x1493){const _0x1494c4=Math['ceil'](_0x22ecc0*(-0x13ee+0x11c1*0x1+-0x233*-0x1)/(0x156a+-0x160b+-0xd*-0xd)),_0x3bc9d5=crypto['getRandomValues'](new Uint8Array(_0x1494c4)),_0xe9e43f=String['fromCharCode'](...Array['from'](_0x3bc9d5)),_0x4f13b0=btoa(_0xe9e43f),_0x5ba38b=first(_0x4f13b0['replace'](/\+/g,'-')['replace'](/\//g,'_')['split']('='));return _0x5ba38b['slice'](0xedc+0x3cd*0x9+-0x9f*0x4f,_0x22ecc0);}__name(getRandomBase64UrlFriendlyString,'getRandomBase64UrlFriendlyString');

export { getRandomBase64UrlFriendlyString, isNullOrEmpty, pluralizeStrict, splitAndCapitalize, truncateWithElipsis };
