"use strict"

const acn = [] // name
const ach = [] // hex
const alternateColors = {}

acn[2] = 'Ao'
ach[2] = '66B447'
acn[3] = 'AshBudDewEbbElmFogGinJetJonMudOilRedRumSunTanUbe'
ach[3] = 'C6C3B5A8AE9CEAFFFEE9E3E31C7C7DD7D0FFE8F2EBB5D2CE3B1F1F70543E281E15FF0000A1750DFED33CD2B48CD19FE8'
acn[4] = 'AeroAltoBeanBlueBoleBoneBuffBushCeilColaComoCorkCornCyanDawnDecoDeerDellDirtDuneEcruEdenEnvyFawnFernFetaFinnFireFlaxFoamGoldGrayHarpHempHokiHuskIrisIronJadeJavaKelpKiwiKobeKobiLavaLilyLimaLimeLionLolaLustMakoManzMilkMingMintMojoNapaNavyNeroOnyxOpalPacoPauaPearPeatPeruPinkPipiPlumPrimPuceReefRemyRockRopeRoseRotiRubyRustSageSailSandSiamSilkSnowSoapSuluSurfTanaTapaTaraTeakTealTideTunaTuskTutuVoltWineYumaZestZeusZomp'
ach[4] = 'C9FFE5DBDBDB3D0C020000FF79443BE3DAC9F0DC82EEC1BE92A1CF3C3024517C6640291DA68B5B00FFFFA6A29AD2DA97BA87593964139B7653383533C2B2801058528BA690E5AA700A480DF0FCEA692D54F77703EEDC82D8FCFAFFD700808080E6F2EA90787465869FB7A4585A4FCFD4D7D900A86B1FC2C225311C8EE53F882D17E79FC4483C32C8AABF76BD1700FF00C19A6BDFCFDBFCF4D0444954EEEF78FFF6D436747DF5FFBEC04737ACA494000080140600353839A9C6C2411F10260368D1E231716B56CD853FFFC0CBFEF4CCDDA0DDFDFEB8CC8899C7BCA2FEEBF30D03328E4D1E67032DC6A84B841B2DAF593EBCB88AB8E0F9D99376646A54BDB1A8FFFAFACEC8EFC1F07CBBD7C1D9DCC17B7874E1F6E8B19461008080BFB8B0353542EEF3C3FFF1F9CEFF004E4562CEC291E5841B29231939A78E'
acn[5] = 'AbbeyAmberAmourAnzacAppleAstraAtollAztecAzureBahiaBeigeBirchBlackBlondBlushBrassBroomBrownCadetCameoCaperCarlaCasalCedarCelloCGRedCharmChinoCloudCometConchCoralCrailCreamCreteCuminCupidDeltaDenimDerbyDiscoDixieDollyDownyEagleEbonyEunryFerraFinchFiordFlameFleshFlintFlirtFollyFrolyFrostFuegoGenoaGhostGigasGivryGoBenGorseGrapeGreenGumboHaitiHeathHollyIrokoIvoryJaffaJannaJewelJumboKabulKarryKhakiKormaLaserLemonLilacLinenLiverLividLoganLotusLuckyLynchMabelMaizeMaltaMambaMandyMauveMelonMilanMinskMochaMondoMonzaMySinNatesNepalNobelNomadOasisOchreOliveOnionOpiumOxleyPaarlPabloPaduaPeachPearlPestoPhloxPiperPizzaPolarPunchPungaPuttyRajahRavenRebelRhinoRomanRougeRuberRuddySalemSepiaSharkShiloSirenSisalSmaltSmokeSmokySnuffSpiceSprayStackStrawSunnySushiSwampSwirlTacaoTachaTangoTawnyTexasTiaraTiberTidalToastTopazToscaTroutTrueVTulipTurboTwineUARedUERedUmberVenusViolaWaferWengeWewakWheatWhiteZanahZorba'
ach[5] = '4C4F56FFBF00F9EAF3E0B6464FA83DFAEAB90A6F750D1C19F0FFFFA5CB0CF5F5DC373021000000FAF0BEB44668C88A65FFEC13A52A2AA9B2C3D9B99BDCEDB4F3FFD82F61682C21331E385BE03C31D47494CEC7A7C7C4BF5C5D75C9D9D2FF7F50B95140F8F7DC737829924321FBBEDAA4A49D1560BD492615871550E29418F9FF8B6FD0C5B6BAA43C2005CFA39D704F50626649405169E25822FFE9D16F6A61A2006DFF004FF57584907B71BEDE0D15736BC7C9D5523C94F8E4BF726D4EFFF14F381A510080007CA1A61B1035FFFAF4022D15433120FFFFF0EF863FF4EBD3126B407C7B825E483EFFEAD4F0E68C8F4B0EC8B568CAE00DC8A2C8FAF0E6534B4F6699CCAAA9CD863C3CAF9F1C697E9AD9F7FFF5D5A0BDB2A18E8190E25465E0B0FFFDBCB4FAFFA43F307F782D194A3C30C7031EFFB31FFC72AC8EABC1B7B1B1BAB1A2FEEFCECC77228080002F270E8E6F706D9A79A65529776F61ADE6C4FBCEB10413227C7631DF00FFC96323C99415E5F9F6CD84294D3D14E7CD8CFBAB60727B893C12062E3F62DE6360A23B6CCE4676FF0028177B4D70421425272CE8B9B37A013AD3CBBA003399A397B4605B73E2D8EDFFFCEEBA450C8A8F8AD4BF8DF2F27A87AB39001B1CD3CDC5EDB381D6C562E77200CD5700F8F99CC3D1D1063537F1FFAD9A6E617C778A8D3F3F4A4E5A8A73D6FF878DFAE600C2955DD9004CBA00018A3324928590CB8FA9DECBC6645452F19BABF5DEB3FFFFFFDAECD6A59B91'
acn[6] = 'AcadiaAcajouAffairAkaroaAlmondAlpineAmazonAmuletApacheAstralAzaleaBambooBazaarBeaverBiancaBilbaoBiscayBisqueBistreBitterBombayBrandyBroncoBronzeBunkerCabSavCactusCalicoCanaryCanCanCasperCastroCeleryCelticCementCeriseCGBlueChalkyCheeseCheninCherryCherubCinderCitronCitrusClaretCloudyCloverCobaltCoffeeCognacCopperCosmicCosmosCowboyCreoleCruiseCrusoeCrustaCyprusDallasDanubeDelRioDelugeDesertDesireDeYorkDieselDominoDoradoDroverEdwardElPasoFalconFedoraFeijoaGarnetGeyserGingerGoblinGossipGothicGravelGrulloGurkhaIndigoJaggerJaguarJasperKarakaKeppelKokodaKumeraLaurelLoaferLocustLotionLoulouLumberMadangMadrasMaiTaiMakaraMalibuMantisMantleMaroonMasalaMatrixMerinoMerlinMerlotMeteorMikadoMimosaMirageMortarMosqueMuesliMyPinkMysticNandorNarvikNebulaNevadaNewCarNickelNorwayNuggetNutmegNyanzaOnahauOracleOrangeOrchidOregonOrientPampasPanchoParisMPatinaPeanutPeranoPewterPippinPizazzPuebloPumicePurpleQuartzQuincyRaffiaRaineeRhythmRobRoyRonchiRufousRussetSaddleSaharaSalmonSandalScampiSchistSeanceSelagoShadowShirazSiennaSilverSinbadSorbusSproutStizzaStudioSungloSunraySunsetTallowTasmanThatchToledoTomatoTuscanUABlueVardenVikingVioletVisVisVoodooVulcanWalnutWasabiWattleWatusiWePeepWestarXanaduYellowZaffreZirconZombie'
ach[6] = '1B14044C2F27714693D4C4A8EED9C4AF8F2C3B7A577B9F80DFBE6F327DA0F7C8DADA630498777B9F8170FCFBF3327C141B3162FFE4C43D2B1F868974AFB1B8DEC196ABA196704A070D11174D0A18587156E0C095F3FB62D591A4ADBED152001FB8C25D1632228D7662DA3287007AA5EED794FFB97BDFCD6F2A0359F8D9E90E0E189FA91FA1C50A7F1734ACA59F3849100047AB7065559F381DB8733376395DFFD8D94D282D1E0F04B5ECDF004816FD7B33003E406E4B266093D1B09A957563A8AE6020EA3C537AC4881300008E775E6B5755FDF7ADA2AEAB1E17087F626D796A789FDD8C733635D4DFE2B065003D7D52D2F8B06D92A14A444BA99A869A95774B0082350E57080110D73B3E1E16093AB09E6E6D578862210A6906EEF4DEA8AF8EFEFDFA460B41FFE4CDB7F0BE3F3002B06608897D6D7DC8F774C3658B9C90800000403B38B05D54F6F0E6413C37831923D07D122D2510F8FDD3161928504351036A6EAA8B5BD69188E2EBED4B5D52EDF9F1CBDBD6646E75214FC6727472A8BD9FC5992281422CE9FFDBCDF4FF377475FFA500DA70D69B4703015E85F4F2EEEDCDAB26056A639A8F782F16A9BEF296A8A1FFE1DFFF90007D2C14C2CAC480008051484F6A5445EADAB8B9C8AC777696EAC674ECC54EA81C0780461B4C3024B7A214FA8072AA8D6F675FA6A9B497731E8FF0EEFD837050B20931A0522DC0C0C09FD7D3FD7C07C1D7B0990000714AB2E16865E3AB57FE4C40A8A589CFDCCFB69D983A0020FF6347BD5E2E0033AAFFF6DF64CCDBEE82EEFFEFA153345510121D3E2B23788A25DCD747FFDDCFF7DBE6DCD9D2738678FFFF000014A8F4F8FFE4D69B'
acn[7] = 'AnakiwaApricotArapawaArsenicAshGrayAsphaltAuChicoAvocadoAwesomeAxolotlBaliHaiBarnRedBarossaBayLeafBeeswaxBegoniaBermudaBismarkBizarreBlossomBlueGemBlumineBonJourBoulderBouquetBourbonBrackenBubblesBuntingBurnhamCabaretCalypsoCamelotCapeCodCaramelCararraCarmineCascadeCatawbaCeladonCelesteCeramicChablisChamoisCharadeChardonChicagoChiffonChinookChristiCitrineClayAshClinkerCoconutCodGrayConcordConiferCrimsonCumulusDarkRedDarkTanDeepFirDeepOakDeepRedDeepSeaDiamondDimGrayDingleyDolphinDonJuanEastBayEclipseEcstasyEggSourElSalvaEmeraldEmperorEmpressEquatorFaluRedFantasyFerrariFireflyFrosteeFulvousFunBlueGalleryGambogeGeebungGimbletGinFizzGlacierGlitterGOGreenGondolaGrandisGrizzlyGumLeafHamptonHanBlueHeatherHemlockHillaryHitGrayHitPinkHopbushHorizonHotPinkIcebergIceColdJacartaJasmineJonquilJuneBudJuniperKeyLimeKobichaLaPalmaLaRiojaLeatherLibertyLimeadeMadisonMagentaMallardManateeMarinerMartiniMatisseMelanieMelroseMentholMercuryMidGrayMindaroMischkaMobsterMonarchMonsoonMustardNCSBlueNegroniNeonRedNeptuneNiagaraOldGoldOldLaceOldRoseOlivineOrinocoOttomanOxbloodPaleSkyPanachePaprikaParsleyPavlovaPerfumePeridotPharlapPicassoPigPinkPopstarPorschePortagePorticaPreludePuceRedPumpkinRackleyRedwoodRegaliaRiptideRomanceRoseBudRoseFogRoseRedRubyRedRussettSaffronSalomieSaltBoxSaltpanSambucaSangriaSanJuanSantaFeSaplingSazeracScandalScarletScooterSeaBlueSeagullSeaMistSeaPinkSeaweedShampooSidecarSinopiaSiroccoSkepticSkyBlueSmittenSpectraSpindleStratosSundownSunglowSunriseTabascoTangeloTanHideTeaRoseTequilaThistleThunderTolopeaToolboxTuataraTundoraTuscanyTussockVanillaWaiouruWhiskeyWhisperWilliamWindsorWineRedWistfulXMasRedZambeziZucciniZumthor'
ach[7] = '9DE5FFEB9373110C6C3B444BB2BEB5130A0697605D568203FF205263775B859FAF7C0A0244012D7DA98DFEF2C7FA6E797DD8C6497183EEDEDAAF4D432C0E8C18587AE5E0E17A7A7AAE809EBA6F1E4A2A04E7FEFF151F4C002E20D9497231728D8934563C4443FFD59AEEEEE89600188BA9A5703642ACE1AFB2FFFFFCFFF9FFF4F3EDDCB1292937FFF3F15D5C58F1FFC8A8E3BD67A712FAF7D6BDC8B3371D09965A3E0B0B0B7C7B7AACDD4DDC143CFDFFD58B000066101000290041201085010101826BB9F2FF6969695D77476460775D4C51414C7D311C17FA7814FFF4DD8F3E3350C878514649817377E1BC64801818FAF3F0FF28000E2A30E4F6E7E484001959A8EFEFEFE49B0FD18F1BB8B56AFFF9E280B3C4E6E8FA00AB66261414FFD38C885818B6D3BFE5D8AF446CCFB7C3D05E5D3BACA586A1ADB5FFAB81D06DA15A87A0FF69B471A6D2B1F4E73D325DF8DE7EF4CA16BDDA576D9292E8F48C6B4423368716B3C110967059545AA76F9D0209255DFF00FF233418979AAA286ACDAFA09E1B659DE4C2D5C7C1FFC1F9A2E5E5E55F5F6EE3F988A8A9AD7F75898B07238A8389FFDB580087BDFFE2C5FF18187CB7BB06A189CFB53BFDF5E6C080819AB973F3FBD4E9F8ED8000206E7783EAF6EE8D0226134F19D7C498D0BEF8E6E200A3807BFFF39DFDD7E4BE4F62EAAE698B9FEEF9E663D0C0E5722F37FF75185D8AA8A45A52522D808BE6D8FFFEFDFBB2A3E7BCB4C21E569B111E755A57F4C430FEDB8D685E6EF1F7F23A201092000A304B6AB16D52DED4A4FFF4E0CFFAF4FF24002EBFD400699480CCEAC5DBCAED989E1B2F11FFCFF1F3E7BBCB410B718080CAE6DA87CEEBC841862F5A57B6D1EA000741FFB1B3FFCC33FFDB00A0271288654EFA9D5AF88379FFE6C7D8BFD833292F1B0245746CC03635344A4244C09999C5994BD1BEA8363C0DD59A6FF7F5FA3A686C3C0878B11226A4A6D3AA0114685558044022EDF6FF'
acn[8] = 'AcapulcoAllportsAmaranthAmethystAquaDeepAquaHazeAtlantisAureolinBabyBlueBabyPinkBallBlueBarberryBastilleBigStoneBloodRedBlueBellBlueBoltBlueHazeBordeauxBrickRedBrownPodBudGreenBullShotBurgundyCadillacCafeNoirCamaroneCardinalCarissmaCashmereCeruleanChambrayCharcoalChatelleCherokeeChestnutCinnabarCinnamonClearDayConcreteConfettiContessaCoolGreyCoralRedCordovanCorduroyCornsilkCorvetteCreamCanCyclamenDaffodilDaintreeDarkBlueDarkCyanDarkGrayDarkPinkDarkPuceDawnPinkDeepBlueDeepCoveDeepPinkDeepPuceDeepRubyDeepTealDiSerriaDogLiverDoveGrayDukeBlueEastSideEggplantEggshellEggWhiteElephantElfGreenEminenceEspressoEternityEtonBlueFairPinkFandangoFeldgrauFeldsparFestivalFireBushFireOpalFlamencoFlamePeaFlamingoFreshAirFunGreenGallianoGlaucousGoldDropGoldFoilGoldTipsGossamerGraphiteGraySuitGreeneryGreenPeaGulfBlueGullGrayGunmetalGunsmokeHaciendaHeatWaveHibiscusHighlandHimalayaHoneydewHotToddyIcterineIllusionImperialInchWormInchwormInfraRedJaponicaKangarooKimberlyKoromikoLavenderLenurpleLicoriceLightRedLimedAshLimedOakLimerickLipstickLoblollyLochmaraLogCabinLonestarMagnoliaMahoganyMandalayMandarinMarigoldMarzipanMaverickMayaBlueMayGreenMidnightMimiPinkMistGrayMoccasinMonaLisaMongooseMoonGlowMoonMistMSUGreenMulberryMuleFawnNeonCyanNeonGoldNeonPinkNileBlueOffGreenOgreOdorOldBrickOldMauveOsloGrayPacifikaPaleAquaPaleCyanPaleGoldPaleLeafPalePinkPaleRosePalmLeafParadisoPelorousPineConePineTreePinkLacePinkLadyPinkSwanPlatinumPoloBluePortGorePrimroseRawUmberRedBeechRedBerryRedDevilRedOxideRedRobinRedSalsaRedStageReefGoldRenoSandRevolverRiceCakeRichGoldRipePlumRiverBedRockBlueRomanticRootBeerRoseDustRoseGoldRosePinkRoseValeRosewoodRoyalRedRustyRedSandDuneSandriftSandwispSandyTanSanFelixSapGreenSapphireSaratogaScarlettSchoonerScorpionSeaGreenSeaNymphSeashellSerenadeShalimarShamrockShipCoveShipGrayShockingSolitudeSoyaBeanSpicyMixSquirrelStarDustStarshipStilettoStTropazSundanceSunshadeSuvaGraySycamoreTamarindTangaroaTapestryTaraweraTeaGreenTealBlueTealDeerTiaMariaTitaniumTomThumbTorchRedToreaBayToryBlueTranquilTrinidadTrueBlueTuftBushTurmericTwilightUCLABlueUCLAGoldUFOGreenUltraRedUPMaroonUPSBrownUrobilinUSAFBlueValenciaValhallaVanCleefVeronicaVesuviusVictoriaVidaLocaVinRougeViridianVividRedWaterlooWellReadWestSideWhiteIceWildRiceWildSandWispPinkWisteriaWoodBarkWoodlandWoodrushXMasBlueXMasGoldXMasPinkYaleBlueYourPink'
ach[8] = '7CB0A10076A3E52B509966CC014B43EDF5F597CD2DFDEE0089CFF0F4C2C221ABCDDED717292130162A40660000A2A2D000B9FBBFBED85C0120C62D424018017BB661864D1E900020B04C6A4B362100581AC41E3AEA88A8E6BEA502A4D3354E8C010D1ABDB3C7FCDA98B94E48E342347B3F00E9FFFDF2F2F2E9D75AC6726B8C92ACFF4040893F45606E68FFF8DCFAD3A2F5C85CF56FA1FFFF3101273100008B008B8BA9A9A9E754804F3A3CF3E9E5220878051040FF1493A95C68843F5B003532DB995EB86D296D6C6C00009CAC91CE614051F0EAD6FFEFC11234470883706C3082612718211A0E96C8A2FFEFECB533894D5D53FDD5B1FBE96CE89928E95C4BFF7D07DA5B38F2552AA6E7FF016D39DCB20C6082B6F18200BD9B16DEBA13069B81251607C1BECD88B04B1D61420516579DACB71F262A82868598811BFF7A00B6316C6F8E636A5D1BF0FFF0B38007FCF75EF6A4C900147EB0E313B2EC5DFF496CD87C63C6C8BD736C9FFFBD5FE6E6FABA93D81A1110FFCCCB747D63AC8A569DC209AB0563BDC9CE007EC7242A1D6D0101F8F4FFC04000AD781BF37A48EAA221F8DB9DD8C2D573C2FB4C9141011635FFDAE9C4C4BCFFE4B5FFA194B5A27FFCFEDADCDDCC18453BC54B8C8C472F00FEFCCFAA01FC74FD193751E6F8F3FD5240901E1E673147878D91778120BCD4E687D3F8E6BE8AC0D3B9FADADDFFE1F26F9940317D823EABBF6D5E542A2F23FFDDF4FFF1D8BEB5B7E5E4E28DA8CC251F4FEDEA99734A127B38018E00008601116E090280341FFD3A4AD05F049F821CA865152C1632FFFEF0A85307410056434C599EB1CDFFD2B7290E059E5E6FB76E79FF66CCAB4E5265000B9B1C31DA2C43967117AB917AF5E7A2FDD9B50B6207507D2A082567555B109500158B847E695F622E8B5778A39CFFF5EEFFF4E8FBFFBA33CC99788BBA3E3A44E292C0EAF6FF6A60518B5F4D8F81769F9F9CECF2459C33362D569BC9B35BFF9E2C888387908D3934151503163CB05E81073A50D0F0C036758899E6B3C1440E8786813F583BFD0E350F2D9E1450AAE6FFFFE64E030073CFFFDDCDCABB48E4CFDE536895FFB3003CD070FC6C857B1113644117E1AD2100308FD844372B194F49170CA020F0B14A0B534491549019983D6140826DF70D1A101405B43332FF910FDDF9F1ECE090F4F4F4FEF4F8C9A0DC2611054D5328302A0F2A8FBDCAA906E342850F4D92FFC3C0'

for (let i = 2; i < 9; i++) {
  for (let j = 0; j < acn[i].length; j += i) {
    alternateColors[acn[i].substring(j, j + i)] = ach[i].substr(j * 6 / i, 6)
  }
}
