"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.namingFunction = void 0;
const Naming_js_1 = require("../../Naming.js");
const Strings_js_1 = require("../../support/Strings.js");
exports.namingFunction = (0, Naming_js_1.funPrefixNamer)("namer", jsonNameStyle);
const legalizeName = (0, Strings_js_1.legalizeCharacters)((cp) => cp >= 32 && cp < 128 && cp !== 0x2f /* slash */);
function jsonNameStyle(original) {
    const words = (0, Strings_js_1.splitIntoWords)(original);
    return (0, Strings_js_1.combineWords)(words, legalizeName, Strings_js_1.firstUpperWordStyle, Strings_js_1.firstUpperWordStyle, Strings_js_1.allUpperWordStyle, Strings_js_1.allUpperWordStyle, "", (_) => true);
}
