devmoji
Version:
Enhance your conventional commits with gitmoji
16 lines (14 loc) โข 55.6 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("chalk"),o=require("commander"),i=require("fs"),a=require("path"),n=require("readline"),t=require("ts-interface-checker"),r=require("os");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var o=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}})),o.default=e,o}var l=s(e),_=s(o),d=c(i),m=c(a),g=c(n),u=c(t);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function p(e,o,i,a){return new(i||(i=Promise))((function(n,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(e){var o;e.done?n(e.value):(o=e.value,o instanceof i?o:new i((function(e){e(o)}))).then(r,s)}c((a=a.apply(e,o||[])).next())}))}const h={types:["feat","fix","docs","style","refactor","perf","test","chore","build","ci"],devmoji:[{code:"feat",description:"a new feature",emoji:"sparkles"},{code:"fix",description:"a bug fix",emoji:"bug"},{code:"docs",description:"documentation only changes",emoji:"books"},{code:"style",description:"changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",emoji:"art"},{code:"refactor",description:"a code change that neither fixes a bug nor adds a feature",emoji:"recycle"},{code:"perf",description:"a code change that improves performance",emoji:"zap"},{code:"test",description:"adding missing or correcting existing tests",emoji:"rotating_light"},{code:"chore",description:"changes to the build process or auxiliary tools and libraries such as documentation generation",emoji:"wrench"},{code:"chore-release",description:"code deployment or publishing to external repositories",emoji:"rocket"},{code:"chore-deps",description:"add or delete dependencies",emoji:"link"},{code:"build",description:"changes related to build processes",emoji:"package"},{code:"ci",description:"updates to the continuous integration system",emoji:"construction_worker"},{code:"release",description:"code deployment or publishing to external repositories",emoji:"rocket"},{code:"security",gitmoji:"lock"},{code:"i18n",gitmoji:"globe_with_meridians"},{code:"breaking",gitmoji:"boom"},{code:"config",gitmoji:"wrench",emoji:"gear"},{code:"add",emoji:"heavy_plus_sign",description:"add something"},{code:"remove",emoji:"heavy_minus_sign",description:"remove something"}]},f={TDevmoji:u.iface([],{code:"string",emoji:u.opt("string"),gitmoji:u.opt("string"),description:u.opt("string")}),ConfigOptions:u.iface([],{types:u.array("string"),devmoji:u.array("TDevmoji")})};class b{constructor(){this.codes=new Map,this.emojis=new Map,this.emojiVariation=String.fromCodePoint(65039)}add(e){e.code=this.unwrap(e.code),this.codes.set(e.code,e),this.emojis.set(e.emoji,[...this.emojis.get(e.emoji)||[],e])}wrap(e){return e.startsWith(":")?e:`:${e}:`}unwrap(e){return e.replace(/^:|:$/g,"")}getCodes(e){let o=this.emojis.get(e);return o||(o=this.emojis.get(e+this.emojiVariation)),o}getCode(e){const o=this.getCodes(e);return(null==o?void 0:o.length)?this.wrap(o[0].code):void 0}get(e){return this.codes.get(this.unwrap(e))}}const w=new b;for(const[e,o]of[["100","๐ฏ"],["1234","๐ข"],["+1","๐๏ธ"],["-1","๐๏ธ"],["1st_place_medal","๐ฅ"],["2nd_place_medal","๐ฅ"],["3rd_place_medal","๐ฅ"],["8ball","๐ฑ"],["a","๐
ฐ๏ธ"],["ab","๐"],["abc","๐ค"],["abcd","๐ก"],["accept","๐"],["aerial_tramway","๐ก"],["afghanistan","๐ฆโ๐ซ"],["airplane","โ๏ธ"],["aland_islands","๐ฆโ๐ฝ"],["alarm_clock","โฐ"],["albania","๐ฆโ๐ฑ"],["alembic","โ๏ธ"],["algeria","๐ฉโ๐ฟ"],["alien","๐ฝ๏ธ"],["ambulance","๐๏ธ"],["american_samoa","๐ฆโ๐ธ"],["amphora","๐บ"],["anchor","โ๏ธ"],["andorra","๐ฆโ๐ฉ"],["angel","๐ผ"],["anger","๐ข"],["angola","๐ฆโ๐ด"],["angry","๐ "],["anguilla","๐ฆโ๐ฎ"],["anguished","๐ง"],["ant","๐"],["antarctica","๐ฆโ๐ถ"],["antigua_barbuda","๐ฆโ๐ฌ"],["apple","๐"],["aquarius","โ๏ธ"],["argentina","๐ฆโ๐ท"],["aries","โ๏ธ"],["armenia","๐ฆโ๐ฒ"],["arrow_backward","โ๏ธ"],["arrow_double_down","โฌ"],["arrow_double_up","โซ"],["arrow_down","โฌ๏ธ"],["arrow_down_small","๐ฝ"],["arrow_forward","โถ๏ธ"],["arrow_heading_down","โคต๏ธ"],["arrow_heading_up","โคด๏ธ"],["arrow_left","โฌ
๏ธ"],["arrow_lower_left","โ๏ธ"],["arrow_lower_right","โ๏ธ"],["arrow_right","โก๏ธ"],["arrow_right_hook","โช๏ธ"],["arrow_up","โฌ๏ธ"],["arrow_up_down","โ๏ธ"],["arrow_up_small","๐ผ"],["arrow_upper_left","โ๏ธ"],["arrow_upper_right","โ๏ธ"],["arrows_clockwise","๐"],["arrows_counterclockwise","๐"],["art","๐จ"],["articulated_lorry","๐"],["artificial_satellite","๐ฐ๏ธ"],["aruba","๐ฆโ๐ผ"],["asterisk","*๏ธโโฃ"],["astonished","๐ฒ"],["athletic_shoe","๐"],["atm","๐ง"],["atom_symbol","โ๏ธ"],["australia","๐ฆโ๐บ"],["austria","๐ฆโ๐น"],["avocado","๐ฅ"],["azerbaijan","๐ฆโ๐ฟ"],["b","๐
ฑ๏ธ"],["baby","๐ถ"],["baby_bottle","๐ผ"],["baby_chick","๐ค"],["baby_symbol","๐ผ๏ธ"],["back","๐"],["bacon","๐ฅ"],["badminton","๐ธ"],["baggage_claim","๐"],["baguette_bread","๐ฅ"],["bahamas","๐งโ๐ธ"],["bahrain","๐งโ๐ญ"],["balance_scale","โ๏ธ"],["balloon","๐"],["ballot_box","๐ณ๏ธ"],["ballot_box_with_check","โ๏ธ"],["bamboo","๐"],["banana","๐"],["bangbang","โผ๏ธ"],["bangladesh","๐งโ๐ฉ"],["bank","๐ฆ"],["bar_chart","๐"],["barbados","๐งโ๐ง"],["barber","๐"],["baseball","โพ๏ธ"],["basketball","๐"],["basketball_man","โน๏ธ"],["basketball_woman","โน๏ธโโ๏ธ"],["bat","๐ฆ"],["bath","๐"],["bathtub","๐"],["battery","๐"],["beach_umbrella","๐๏ธ"],["bear","๐ป"],["bed","๐๏ธ"],["bee","๐"],["beer","๐บ"],["beers","๐ป"],["beetle","๐"],["beginner","๐ฐ"],["belarus","๐งโ๐พ"],["belgium","๐งโ๐ช"],["belize","๐งโ๐ฟ"],["bell","๐"],["bellhop_bell","๐๏ธ"],["benin","๐งโ๐ฏ"],["bento","๐ฑ"],["bermuda","๐งโ๐ฒ"],["bhutan","๐งโ๐น"],["bicyclist","๐ด"],["bike","๐ฒ๏ธ"],["biking_man","๐ด"],["biking_woman","๐ดโโ๏ธ"],["bikini","๐"],["biohazard","โฃ๏ธ"],["bird","๐ฆ๏ธ"],["birthday","๐"],["black_circle","โซ๏ธ"],["black_flag","๐ด"],["black_heart","๐ค"],["black_joker","๐"],["black_large_square","โฌ๏ธ"],["black_medium_small_square","โพ๏ธ"],["black_medium_square","โผ๏ธ"],["black_nib","โ๏ธ"],["black_small_square","โช๏ธ"],["black_square_button","๐ฒ"],["blonde_man","๐ฑ"],["blonde_woman","๐ฑโโ๏ธ"],["blossom","๐ผ"],["blowfish","๐ก"],["blue_book","๐"],["blue_car","๐"],["blue_heart","๐"],["blush","๐"],["boar","๐"],["boat","โต๏ธ"],["bolivia","๐งโ๐ด"],["bomb","๐ฃ๏ธ"],["book","๐"],["bookmark","๐"],["bookmark_tabs","๐"],["books","๐๏ธ"],["boom","๐ฅ"],["boot","๐ข"],["bosnia_herzegovina","๐งโ๐ฆ"],["botswana","๐งโ๐ผ"],["bouquet","๐"],["bow","๐"],["bow_and_arrow","๐น"],["bowing_man","๐"],["bowing_woman","๐โโ๏ธ"],["bowling","๐ณ"],["boxing_glove","๐ฅ"],["boy","๐ฆ"],["brazil","๐งโ๐ท"],["bread","๐"],["bride_with_veil","๐ฐ"],["bridge_at_night","๐"],["briefcase","๐ผ"],["british_indian_ocean_territory","๐ฎโ๐ด"],["british_virgin_islands","๐ปโ๐ฌ"],["broken_heart","๐"],["brunei","๐งโ๐ณ"],["bug","๐"],["building_construction","๐๏ธ"],["bulb","๐ก"],["bulgaria","๐งโ๐ฌ"],["bullettrain_front","๐
"],["bullettrain_side","๐"],["burkina_faso","๐งโ๐ซ"],["burrito","๐ฏ"],["burundi","๐งโ๐ฎ"],["bus","๐"],["business_suit_levitating","๐ด๏ธ"],["busstop","๐"],["bust_in_silhouette","๐ค"],["busts_in_silhouette","๐ฅ"],["butterfly","๐ฆ"],["cactus","๐ต"],["cake","๐ฐ"],["calendar","๐"],["call_me_hand","๐ค"],["calling","๐ฒ"],["cambodia","๐ฐโ๐ญ"],["camel","๐ซ"],["camera","๐ท๏ธ"],["camera_flash","๐ธ"],["cameroon","๐จโ๐ฒ"],["camping","๐๏ธ"],["canada","๐จโ๐ฆ"],["canary_islands","๐ฎโ๐จ"],["cancer","โ๏ธ"],["candle","๐ฏ๏ธ"],["candy","๐ฌ"],["canoe","๐ถ"],["cape_verde","๐จโ๐ป"],["capital_abcd","๐ "],["capricorn","โ๏ธ"],["car","๐"],["card_file_box","๐๏ธ"],["card_index","๐"],["card_index_dividers","๐๏ธ"],["caribbean_netherlands","๐งโ๐ถ"],["carousel_horse","๐ "],["carrot","๐ฅ"],["cat","๐ฑ"],["cat2","๐๏ธ"],["cayman_islands","๐ฐโ๐พ"],["cd","๐ฟ๏ธ"],["central_african_republic","๐จโ๐ซ"],["chad","๐นโ๐ฉ"],["chains","โ๏ธ"],["champagne","๐พ"],["chart","๐น"],["chart_with_downwards_trend","๐"],["chart_with_upwards_trend","๐"],["checkered_flag","๐"],["cheese","๐ง"],["cherries","๐"],["cherry_blossom","๐ธ"],["chestnut","๐ฐ"],["chicken","๐"],["children_crossing","๐ธ"],["chile","๐จโ๐ฑ"],["chipmunk","๐ฟ๏ธ"],["chocolate_bar","๐ซ"],["christmas_island","๐จโ๐ฝ"],["christmas_tree","๐"],["church","โช๏ธ"],["cinema","๐ฆ"],["circus_tent","๐ช"],["city_sunrise","๐"],["city_sunset","๐"],["cityscape","๐๏ธ"],["cl","๐"],["clamp","๐๏ธ"],["clap","๐"],["clapper","๐ฌ๏ธ"],["classical_building","๐๏ธ"],["clinking_glasses","๐ฅ"],["clipboard","๐๏ธ"],["clock1","๐๏ธ"],["clock10","๐๏ธ"],["clock1030","๐ฅ๏ธ"],["clock11","๐๏ธ"],["clock1130","๐ฆ๏ธ"],["clock12","๐๏ธ"],["clock1230","๐ง๏ธ"],["clock130","๐๏ธ"],["clock2","๐๏ธ"],["clock230","๐๏ธ"],["clock3","๐๏ธ"],["clock330","๐๏ธ"],["clock4","๐๏ธ"],["clock430","๐๏ธ"],["clock5","๐๏ธ"],["clock530","๐ ๏ธ"],["clock6","๐๏ธ"],["clock630","๐ก๏ธ"],["clock7","๐๏ธ"],["clock730","๐ข๏ธ"],["clock8","๐๏ธ"],["clock830","๐ฃ๏ธ"],["clock9","๐๏ธ"],["clock930","๐ค๏ธ"],["closed_book","๐"],["closed_lock_with_key","๐"],["closed_umbrella","๐"],["cloud","โ๏ธ"],["cloud_with_lightning","๐ฉ๏ธ"],["cloud_with_lightning_and_rain","โ๏ธ"],["cloud_with_rain","๐ง๏ธ"],["cloud_with_snow","๐จ๏ธ"],["clown_face","๐คก"],["clubs","โฃ๏ธ"],["cn","๐จโ๐ณ"],["cocktail","๐ธ๏ธ"],["cocos_islands","๐จโ๐จ"],["coffee","โ๏ธ"],["coffin","โฐ๏ธ"],["cold_sweat","๐ฐ"],["collision","๐ฅ"],["colombia","๐จโ๐ด"],["comet","โ๏ธ"],["comoros","๐ฐโ๐ฒ"],["computer","๐ป๏ธ"],["computer_mouse","๐ฑ๏ธ"],["confetti_ball","๐"],["confounded","๐"],["confused","๐"],["congo_brazzaville","๐จโ๐ฌ"],["congo_kinshasa","๐จโ๐ฉ"],["congratulations","ใ๏ธ"],["construction","๐ง"],["construction_worker","๐ท"],["construction_worker_man","๐ท"],["construction_worker_woman","๐ทโโ๏ธ"],["control_knobs","๐๏ธ"],["convenience_store","๐ช"],["cook_islands","๐จโ๐ฐ"],["cookie","๐ช"],["cool","๐"],["cop","๐ฎ"],["copyright","ยฉ๏ธ"],["corn","๐ฝ"],["costa_rica","๐จโ๐ท"],["cote_divoire","๐จโ๐ฎ"],["couch_and_lamp","๐๏ธ"],["couple","๐ซ"],["couple_with_heart","๐"],["couple_with_heart_man_man","๐จโโค๏ธโ๐จ"],["couple_with_heart_woman_man","๐"],["couple_with_heart_woman_woman","๐ฉโโค๏ธโ๐ฉ"],["couplekiss_man_man","๐จโโค๏ธโ๐โ๐จ"],["couplekiss_man_woman","๐"],["couplekiss_woman_woman","๐ฉโโค๏ธโ๐โ๐ฉ"],["cow","๐ฎ"],["cow2","๐"],["cowboy_hat_face","๐ค "],["crab","๐ฆ"],["crayon","๐๏ธ"],["credit_card","๐ณ๏ธ"],["crescent_moon","๐"],["cricket","๐"],["croatia","๐ญโ๐ท"],["crocodile","๐"],["croissant","๐ฅ"],["crossed_fingers","๐ค"],["crossed_flags","๐"],["crossed_swords","โ๏ธ"],["crown","๐"],["cry","๐ข"],["crying_cat_face","๐ฟ"],["crystal_ball","๐ฎ"],["cuba","๐จโ๐บ"],["cucumber","๐ฅ"],["cupid","๐"],["curacao","๐จโ๐ผ"],["curly_loop","โฐ"],["currency_exchange","๐ฑ"],["curry","๐"],["custard","๐ฎ"],["customs","๐"],["cyclone","๐"],["cyprus","๐จโ๐พ"],["czech_republic","๐จโ๐ฟ"],["dagger","๐ก๏ธ"],["dancer","๐"],["dancers","๐ฏ"],["dancing_men","๐ฏโโ๏ธ"],["dancing_women","๐ฏ"],["dango","๐ก"],["dark_sunglasses","๐ถ๏ธ"],["dart","๐ฏ"],["dash","๐จ"],["date","๐
"],["de","๐ฉโ๐ช"],["deciduous_tree","๐ณ"],["deer","๐ฆ"],["denmark","๐ฉโ๐ฐ"],["department_store","๐ฌ"],["derelict_house","๐๏ธ"],["desert","๐๏ธ"],["desert_island","๐๏ธ"],["desktop_computer","๐ฅ๏ธ"],["detective","๐ต๏ธ"],["diamond_shape_with_a_dot_inside","๐ "],["diamonds","โฆ๏ธ"],["disappointed","๐"],["disappointed_relieved","๐ฅ"],["dizzy","๐ซ"],["dizzy_face","๐ต"],["djibouti","๐ฉโ๐ฏ"],["do_not_litter","๐ฏ"],["dog","๐ถ"],["dog2","๐๏ธ"],["dollar","๐ต"],["dolls","๐"],["dolphin","๐ฌ"],["dominica","๐ฉโ๐ฒ"],["dominican_republic","๐ฉโ๐ด"],["door","๐ช"],["doughnut","๐ฉ"],["dove","๐๏ธ"],["dragon","๐"],["dragon_face","๐ฒ"],["dress","๐"],["dromedary_camel","๐ช"],["drooling_face","๐คค"],["droplet","๐ง"],["drum","๐ฅ"],["duck","๐ฆ"],["dvd","๐"],["e-mail","๐ง"],["eagle","๐ฆ
"],["ear","๐๏ธ"],["ear_of_rice","๐พ"],["earth_africa","๐๏ธ"],["earth_americas","๐๏ธ"],["earth_asia","๐๏ธ"],["ecuador","๐ชโ๐จ"],["egg","๐ฅ"],["eggplant","๐"],["egypt","๐ชโ๐ฌ"],["eight","8๏ธโโฃ"],["eight_pointed_black_star","โด๏ธ"],["eight_spoked_asterisk","โณ๏ธ"],["el_salvador","๐ธโ๐ป"],["electric_plug","๐"],["elephant","๐"],["email","โ๏ธ"],["end","๐"],["envelope","โ๏ธ"],["envelope_with_arrow","๐ฉ"],["equatorial_guinea","๐ฌโ๐ถ"],["eritrea","๐ชโ๐ท"],["es","๐ชโ๐ธ"],["estonia","๐ชโ๐ช"],["ethiopia","๐ชโ๐น"],["eu","๐ชโ๐บ"],["euro","๐ถ"],["european_castle","๐ฐ"],["european_post_office","๐ค"],["european_union","๐ชโ๐บ"],["evergreen_tree","๐ฒ"],["exclamation","โ๏ธ"],["expressionless","๐"],["eye","๐๏ธ"],["eye_speech_bubble","๐๏ธโ๐จ๏ธ"],["eyeglasses","๐๏ธ"],["eyes","๐"],["face_with_head_bandage","๐ค"],["face_with_thermometer","๐ค"],["facepunch","๐"],["factory","๐ญ๏ธ"],["falkland_islands","๐ซโ๐ฐ"],["fallen_leaf","๐"],["family","๐ช๏ธ"],["family_man_boy","๐จโ๐ฆ"],["family_man_boy_boy","๐จโ๐ฆโ๐ฆ"],["family_man_girl","๐จโ๐ง"],["family_man_girl_boy","๐จโ๐งโ๐ฆ"],["family_man_girl_girl","๐จโ๐งโ๐ง"],["family_man_man_boy","๐จโ๐จโ๐ฆ"],["family_man_man_boy_boy","๐จโ๐จโ๐ฆโ๐ฆ"],["family_man_man_girl","๐จโ๐จโ๐ง"],["family_man_man_girl_boy","๐จโ๐จโ๐งโ๐ฆ"],["family_man_man_girl_girl","๐จโ๐จโ๐งโ๐ง"],["family_man_woman_boy","๐ช๏ธ"],["family_man_woman_boy_boy","๐จโ๐ฉโ๐ฆโ๐ฆ"],["family_man_woman_girl","๐จโ๐ฉโ๐ง"],["family_man_woman_girl_boy","๐จโ๐ฉโ๐งโ๐ฆ"],["family_man_woman_girl_girl","๐จโ๐ฉโ๐งโ๐ง"],["family_woman_boy","๐ฉโ๐ฆ"],["family_woman_boy_boy","๐ฉโ๐ฆโ๐ฆ"],["family_woman_girl","๐ฉโ๐ง"],["family_woman_girl_boy","๐ฉโ๐งโ๐ฆ"],["family_woman_girl_girl","๐ฉโ๐งโ๐ง"],["family_woman_woman_boy","๐ฉโ๐ฉโ๐ฆ"],["family_woman_woman_boy_boy","๐ฉโ๐ฉโ๐ฆโ๐ฆ"],["family_woman_woman_girl","๐ฉโ๐ฉโ๐ง"],["family_woman_woman_girl_boy","๐ฉโ๐ฉโ๐งโ๐ฆ"],["family_woman_woman_girl_girl","๐ฉโ๐ฉโ๐งโ๐ง"],["faroe_islands","๐ซโ๐ด"],["fast_forward","โฉ๏ธ"],["fax","๐ "],["fearful","๐จ"],["feet","๐พ"],["female_detective","๐ต๏ธโโ๏ธ"],["ferris_wheel","๐ก"],["ferry","โด๏ธ"],["field_hockey","๐"],["fiji","๐ซโ๐ฏ"],["file_cabinet","๐๏ธ"],["file_folder","๐"],["film_projector","๐ฝ๏ธ"],["film_strip","๐๏ธ"],["finland","๐ซโ๐ฎ"],["fire","๐ฅ"],["fire_engine","๐"],["fireworks","๐"],["first_quarter_moon","๐"],["first_quarter_moon_with_face","๐"],["fish","๐๏ธ"],["fish_cake","๐ฅ"],["fishing_pole_and_fish","๐ฃ"],["fist","โ"],["fist_left","๐ค"],["fist_oncoming","๐"],["fist_raised","โ"],["fist_right","๐ค"],["five","5๏ธโโฃ"],["flags","๐"],["flashlight","๐ฆ"],["fleur_de_lis","โ๏ธ"],["flight_arrival","๐ฌ"],["flight_departure","๐ซ"],["flipper","๐ฌ"],["floppy_disk","๐พ"],["flower_playing_cards","๐ด"],["flushed","๐ณ"],["fog","๐ซ๏ธ"],["foggy","๐"],["football","๐"],["footprints","๐ฃ"],["fork_and_knife","๐ด"],["fountain","โฒ๏ธ"],["fountain_pen","๐๏ธ"],["four","4๏ธโโฃ"],["four_leaf_clover","๐"],["fox_face","๐ฆ"],["fr","๐ซโ๐ท"],["framed_picture","๐ผ๏ธ"],["free","๐"],["french_guiana","๐ฌโ๐ซ"],["french_polynesia","๐ตโ๐ซ"],["french_southern_territories","๐นโ๐ซ"],["fried_egg","๐ณ"],["fried_shrimp","๐ค"],["fries","๐"],["frog","๐ธ"],["frowning","๐ฆ"],["frowning_face","โน๏ธ"],["frowning_man","๐โโ๏ธ"],["frowning_woman","๐"],["fu","๐"],["fuelpump","โฝ๏ธ"],["full_moon","๐๏ธ"],["full_moon_with_face","๐"],["funeral_urn","โฑ๏ธ"],["gabon","๐ฌโ๐ฆ"],["gambia","๐ฌโ๐ฒ"],["game_die","๐ฒ"],["gb","๐ฌโ๐ง"],["gear","โ๏ธ"],["gem","๐"],["gemini","โ๏ธ"],["georgia","๐ฌโ๐ช"],["ghana","๐ฌโ๐ญ"],["ghost","๐ป"],["gibraltar","๐ฌโ๐ฎ"],["gift","๐"],["gift_heart","๐"],["girl","๐ง"],["globe_with_meridians","๐"],["goal_net","๐ฅ
"],["goat","๐"],["golf","โณ๏ธ"],["golfing_man","๐๏ธ"],["golfing_woman","๐๏ธโโ๏ธ"],["gorilla","๐ฆ"],["grapes","๐"],["greece","๐ฌโ๐ท"],["green_apple","๐"],["green_book","๐"],["green_heart","๐"],["green_salad","๐ฅ"],["greenland","๐ฌโ๐ฑ"],["grenada","๐ฌโ๐ฉ"],["grey_exclamation","โ"],["grey_question","โ"],["grimacing","๐ฌ"],["grin","๐"],["grinning","๐"],["guadeloupe","๐ฌโ๐ต"],["guam","๐ฌโ๐บ"],["guardsman","๐"],["guardswoman","๐โโ๏ธ"],["guatemala","๐ฌโ๐น"],["guernsey","๐ฌโ๐ฌ"],["guinea","๐ฌโ๐ณ"],["guinea_bissau","๐ฌโ๐ผ"],["guitar","๐ธ"],["gun","๐ซ"],["guyana","๐ฌโ๐พ"],["haircut","๐"],["haircut_man","๐โโ๏ธ"],["haircut_woman","๐"],["haiti","๐ญโ๐น"],["hamburger","๐"],["hammer","๐จ"],["hammer_and_pick","โ๏ธ"],["hammer_and_wrench","๐ ๏ธ"],["hamster","๐น"],["hand","โ"],["handbag","๐"],["handshake","๐ค"],["hankey","๐ฉ"],["hash","#๏ธโโฃ"],["hatched_chick","๐ฅ"],["hatching_chick","๐ฃ"],["headphones","๐ง๏ธ"],["hear_no_evil","๐"],["heart","โค๏ธ"],["heart_decoration","๐"],["heart_eyes","๐"],["heart_eyes_cat","๐ป"],["heartbeat","๐"],["heartpulse","๐"],["hearts","โฅ๏ธ"],["heavy_check_mark","โ๏ธ"],["heavy_division_sign","โ"],["heavy_dollar_sign","๐ฒ"],["heavy_exclamation_mark","โ๏ธ"],["heavy_heart_exclamation","โฃ๏ธ"],["heavy_minus_sign","โ"],["heavy_multiplication_x","โ๏ธ"],["heavy_plus_sign","โ"],["helicopter","๐"],["herb","๐ฟ"],["hibiscus","๐บ"],["high_brightness","๐"],["high_heel","๐ "],["hocho","๐ช"],["hole","๐ณ๏ธ"],["honduras","๐ญโ๐ณ"],["honey_pot","๐ฏ"],["honeybee","๐"],["hong_kong","๐ญโ๐ฐ"],["horse","๐ด"],["horse_racing","๐"],["hospital","๐ฅ"],["hot_pepper","๐ถ๏ธ"],["hotdog","๐ญ"],["hotel","๐จ"],["hotsprings","โจ๏ธ"],["hourglass","โ๏ธ"],["hourglass_flowing_sand","โณ๏ธ"],["house","๐ ๏ธ"],["house_with_garden","๐ก"],["houses","๐๏ธ"],["hugs","๐ค"],["hungary","๐ญโ๐บ"],["hushed","๐ฏ"],["ice_cream","๐จ"],["ice_hockey","๐"],["ice_skate","โธ๏ธ"],["icecream","๐ฆ"],["iceland","๐ฎโ๐ธ"],["id","๐"],["ideograph_advantage","๐"],["imp","๐ฟ"],["inbox_tray","๐ฅ๏ธ"],["incoming_envelope","๐จ"],["india","๐ฎโ๐ณ"],["indonesia","๐ฎโ๐ฉ"],["information_desk_person","๐"],["information_source","โน๏ธ"],["innocent","๐"],["interrobang","โ๏ธ"],["iphone","๐ฑ"],["iran","๐ฎโ๐ท"],["iraq","๐ฎโ๐ถ"],["ireland","๐ฎโ๐ช"],["isle_of_man","๐ฎโ๐ฒ"],["israel","๐ฎโ๐ฑ"],["it","๐ฎโ๐น"],["izakaya_lantern","๐ฎ"],["jack_o_lantern","๐"],["jamaica","๐ฏโ๐ฒ"],["japan","๐พ"],["japanese_castle","๐ฏ"],["japanese_goblin","๐บ"],["japanese_ogre","๐น"],["jeans","๐"],["jersey","๐ฏโ๐ช"],["jordan","๐ฏโ๐ด"],["joy","๐"],["joy_cat","๐น"],["joystick","๐น๏ธ"],["jp","๐ฏโ๐ต"],["kaaba","๐"],["kazakhstan","๐ฐโ๐ฟ"],["kenya","๐ฐโ๐ช"],["key","๐"],["keyboard","โจ๏ธ"],["keycap_ten","๐"],["kick_scooter","๐ด"],["kimono","๐"],["kiribati","๐ฐโ๐ฎ"],["kiss","๐"],["kissing","๐"],["kissing_cat","๐ฝ"],["kissing_closed_eyes","๐"],["kissing_heart","๐"],["kissing_smiling_eyes","๐"],["kiwi_fruit","๐ฅ"],["knife","๐ช"],["koala","๐จ"],["koko","๐"],["kosovo","๐ฝโ๐ฐ"],["kr","๐ฐโ๐ท"],["kuwait","๐ฐโ๐ผ"],["kyrgyzstan","๐ฐโ๐ฌ"],["label","๐ท๏ธ"],["lantern","๐ฎ"],["laos","๐ฑโ๐ฆ"],["large_blue_circle","๐ต"],["large_blue_diamond","๐ท"],["large_orange_diamond","๐ถ"],["last_quarter_moon","๐"],["last_quarter_moon_with_face","๐๏ธ"],["latin_cross","โ๏ธ"],["latvia","๐ฑโ๐ป"],["laughing","๐"],["leaves","๐"],["lebanon","๐ฑโ๐ง"],["ledger","๐"],["left_luggage","๐
"],["left_right_arrow","โ๏ธ"],["leftwards_arrow_with_hook","โฉ๏ธ"],["lemon","๐"],["leo","โ๏ธ"],["leopard","๐"],["lesotho","๐ฑโ๐ธ"],["level_slider","๐๏ธ"],["liberia","๐ฑโ๐ท"],["libra","โ๏ธ"],["libya","๐ฑโ๐พ"],["liechtenstein","๐ฑโ๐ฎ"],["light_rail","๐"],["link","๐"],["lion","๐ฆ"],["lips","๐"],["lipstick","๐"],["lithuania","๐ฑโ๐น"],["lizard","๐ฆ"],["lock","๐๏ธ"],["lock_with_ink_pen","๐"],["lollipop","๐ญ"],["loop","โฟ"],["loud_sound","๐"],["loudspeaker","๐ข"],["love_hotel","๐ฉ"],["love_letter","๐"],["low_brightness","๐
"],["luxembourg","๐ฑโ๐บ"],["lying_face","๐คฅ"],["m","โ๏ธ"],["macau","๐ฒโ๐ด"],["macedonia","๐ฒโ๐ฐ"],["madagascar","๐ฒโ๐ฌ"],["mag","๐๏ธ"],["mag_right","๐"],["mahjong","๐๏ธ"],["mailbox","๐ซ๏ธ"],["mailbox_closed","๐ช๏ธ"],["mailbox_with_mail","๐ฌ๏ธ"],["mailbox_with_no_mail","๐ญ๏ธ"],["malawi","๐ฒโ๐ผ"],["malaysia","๐ฒโ๐พ"],["maldives","๐ฒโ๐ป"],["male_detective","๐ต๏ธ"],["mali","๐ฒโ๐ฑ"],["malta","๐ฒโ๐น"],["man","๐จ"],["man_artist","๐จโ๐จ"],["man_astronaut","๐จโ๐"],["man_cartwheeling","๐คธโโ๏ธ"],["man_cook","๐จโ๐ณ"],["man_dancing","๐บ"],["man_facepalming","๐คฆโโ๏ธ"],["man_factory_worker","๐จโ๐ญ๏ธ"],["man_farmer","๐จโ๐พ"],["man_firefighter","๐จโ๐"],["man_health_worker","๐จโโ๏ธ"],["man_in_tuxedo","๐คต"],["man_judge","๐จโโ๏ธ"],["man_juggling","๐คนโโ๏ธ"],["man_mechanic","๐จโ๐ง"],["man_office_worker","๐จโ๐ผ"],["man_pilot","๐จโโ๏ธ"],["man_playing_handball","๐คพโโ๏ธ"],["man_playing_water_polo","๐คฝโโ๏ธ"],["man_scientist","๐จโ๐ฌ"],["man_shrugging","๐คทโโ๏ธ"],["man_singer","๐จโ๐ค"],["man_student","๐จโ๐๏ธ"],["man_teacher","๐จโ๐ซ"],["man_technologist","๐จโ๐ป๏ธ"],["man_with_gua_pi_mao","๐ฒ"],["man_with_turban","๐ณ"],["mandarin","๐"],["mans_shoe","๐"],["mantelpiece_clock","๐ฐ๏ธ"],["maple_leaf","๐"],["marshall_islands","๐ฒโ๐ญ"],["martial_arts_uniform","๐ฅ"],["martinique","๐ฒโ๐ถ"],["mask","๐ท"],["massage","๐"],["massage_man","๐โโ๏ธ"],["massage_woman","๐"],["mauritania","๐ฒโ๐ท"],["mauritius","๐ฒโ๐บ"],["mayotte","๐พโ๐น"],["meat_on_bone","๐"],["medal_military","๐๏ธ"],["medal_sports","๐
"],["mega","๐ฃ"],["melon","๐"],["memo","๐"],["men_wrestling","๐คผโโ๏ธ"],["menorah","๐"],["mens","๐น๏ธ"],["metal","๐ค"],["metro","๐๏ธ"],["mexico","๐ฒโ๐ฝ"],["micronesia","๐ซโ๐ฒ"],["microphone","๐ค"],["microscope","๐ฌ"],["middle_finger","๐"],["milk_glass","๐ฅ"],["milky_way","๐"],["minibus","๐"],["minidisc","๐ฝ"],["mobile_phone_off","๐ด"],["moldova","๐ฒโ๐ฉ"],["monaco","๐ฒโ๐จ"],["money_mouth_face","๐ค"],["money_with_wings","๐ธ"],["moneybag","๐ฐ๏ธ"],["mongolia","๐ฒโ๐ณ"],["monkey","๐"],["monkey_face","๐ต"],["monorail","๐"],["montenegro","๐ฒโ๐ช"],["montserrat","๐ฒโ๐ธ"],["moon","๐"],["morocco","๐ฒโ๐ฆ"],["mortar_board","๐๏ธ"],["mosque","๐"],["motor_boat","๐ฅ๏ธ"],["motor_scooter","๐ต"],["motorcycle","๐๏ธ"],["motorway","๐ฃ๏ธ"],["mount_fuji","๐ป"],["mountain","โฐ๏ธ"],["mountain_bicyclist","๐ต"],["mountain_biking_man","๐ต"],["mountain_biking_woman","๐ตโโ๏ธ"],["mountain_cableway","๐ "],["mountain_railway","๐"],["mountain_snow","๐๏ธ"],["mouse","๐ญ"],["mouse2","๐"],["movie_camera","๐ฅ"],["moyai","๐ฟ"],["mozambique","๐ฒโ๐ฟ"],["mrs_claus","๐คถ"],["muscle","๐ช"],["mushroom","๐"],["musical_keyboard","๐น"],["musical_note","๐ต"],["musical_score","๐ผ"],["mute","๐"],["myanmar","๐ฒโ๐ฒ"],["nail_care","๐
"],["name_badge","๐"],["namibia","๐ณโ๐ฆ"],["national_park","๐๏ธ"],["nauru","๐ณโ๐ท"],["nauseated_face","๐คข"],["necktie","๐"],["negative_squared_cross_mark","โ"],["nepal","๐ณโ๐ต"],["nerd_face","๐ค"],["netherlands","๐ณโ๐ฑ"],["neutral_face","๐๏ธ"],["new","๐"],["new_caledonia","๐ณโ๐จ"],["new_moon","๐"],["new_moon_with_face","๐"],["new_zealand","๐ณโ๐ฟ"],["newspaper","๐ฐ"],["newspaper_roll","๐๏ธ"],["next_track_button","โญ๏ธ"],["ng","๐"],["ng_man","๐
โโ๏ธ"],["ng_woman","๐
"],["nicaragua","๐ณโ๐ฎ"],["niger","๐ณโ๐ช"],["nigeria","๐ณโ๐ฌ"],["night_with_stars","๐"],["nine","9๏ธโโฃ"],["niue","๐ณโ๐บ"],["no_bell","๐"],["no_bicycles","๐ณ"],["no_entry","โ๏ธ"],["no_entry_sign","๐ซ"],["no_good","๐
"],["no_good_man","๐
โโ๏ธ"],["no_good_woman","๐
"],["no_mobile_phones","๐ต"],["no_mouth","๐ถ"],["no_pedestrians","๐ท"],["no_smoking","๐ญ๏ธ"],["non-potable_water","๐ฑ"],["norfolk_island","๐ณโ๐ซ"],["north_korea","๐ฐโ๐ต"],["northern_mariana_islands","๐ฒโ๐ต"],["norway","๐ณโ๐ด"],["nose","๐"],["notebook","๐"],["notebook_with_decorative_cover","๐"],["notes","๐ถ"],["nut_and_bolt","๐ฉ"],["o","โญ๏ธ"],["o2","๐
พ๏ธ"],["ocean","๐"],["octopus","๐"],["oden","๐ข"],["office","๐ข"],["oil_drum","๐ข๏ธ"],["ok","๐"],["ok_hand","๐"],["ok_man","๐โโ๏ธ"],["ok_woman","๐"],["old_key","๐๏ธ"],["older_man","๐ด"],["older_woman","๐ต"],["om","๐๏ธ"],["oman","๐ดโ๐ฒ"],["on","๐"],["oncoming_automobile","๐๏ธ"],["oncoming_bus","๐๏ธ"],["oncoming_police_car","๐๏ธ"],["oncoming_taxi","๐"],["one","1๏ธโโฃ"],["open_book","๐"],["open_file_folder","๐"],["open_hands","๐"],["open_mouth","๐ฎ"],["open_umbrella","โ๏ธ"],["ophiuchus","โ"],["orange","๐"],["orange_book","๐"],["orthodox_cross","โฆ๏ธ"],["outbox_tray","๐ค๏ธ"],["owl","๐ฆ"],["ox","๐"],["package","๐ฆ๏ธ"],["page_facing_up","๐"],["page_with_curl","๐"],["pager","๐๏ธ"],["paintbrush","๐๏ธ"],["pakistan","๐ตโ๐ฐ"],["palau","๐ตโ๐ผ"],["palestinian_territories","๐ตโ๐ธ"],["palm_tree","๐ด"],["panama","๐ตโ๐ฆ"],["pancakes","๐ฅ"],["panda_face","๐ผ"],["paperclip","๐"],["paperclips","๐๏ธ"],["papua_new_guinea","๐ตโ๐ฌ"],["paraguay","๐ตโ๐พ"],["parasol_on_ground","โฑ๏ธ"],["parking","๐
ฟ๏ธ"],["part_alternation_mark","ใฝ๏ธ"],["partly_sunny","โ
๏ธ"],["passenger_ship","๐ณ๏ธ"],["passport_control","๐"],["pause_button","โธ๏ธ"],["paw_prints","๐พ"],["peace_symbol","โฎ๏ธ"],["peach","๐"],["peanuts","๐ฅ"],["pear","๐"],["pen","๐๏ธ"],["pencil","๐"],["pencil2","โ๏ธ"],["penguin","๐ง"],["pensive","๐"],["performing_arts","๐ญ๏ธ"],["persevere","๐ฃ"],["person_fencing","๐คบ"],["person_frowning","๐"],["person_with_blond_hair","๐ฑ"],["person_with_pouting_face","๐"],["peru","๐ตโ๐ช"],["philippines","๐ตโ๐ญ"],["phone","โ๏ธ"],["pick","โ๏ธ"],["pig","๐ท"],["pig2","๐"],["pig_nose","๐ฝ"],["pill","๐"],["pineapple","๐"],["ping_pong","๐"],["pisces","โ๏ธ"],["pitcairn_islands","๐ตโ๐ณ"],["pizza","๐"],["place_of_worship","๐"],["plate_with_cutlery","๐ฝ๏ธ"],["play_or_pause_button","โฏ๏ธ"],["point_down","๐๏ธ"],["point_left","๐๏ธ"],["point_right","๐๏ธ"],["point_up","โ๏ธ"],["point_up_2","๐๏ธ"],["poland","๐ตโ๐ฑ"],["police_car","๐"],["policeman","๐ฎ"],["policewoman","๐ฎโโ๏ธ"],["poodle","๐ฉ"],["poop","๐ฉ"],["popcorn","๐ฟ"],["portugal","๐ตโ๐น"],["post_office","๐ฃ"],["postal_horn","๐ฏ"],["postbox","๐ฎ"],["potable_water","๐ฐ"],["potato","๐ฅ"],["pouch","๐"],["poultry_leg","๐"],["pound","๐ท"],["pout","๐ก"],["pouting_cat","๐พ"],["pouting_man","๐โโ๏ธ"],["pouting_woman","๐"],["pray","๐"],["prayer_beads","๐ฟ"],["pregnant_woman","๐คฐ"],["previous_track_button","โฎ๏ธ"],["prince","๐คด"],["princess","๐ธ"],["printer","๐จ๏ธ"],["puerto_rico","๐ตโ๐ท"],["punch","๐"],["purple_heart","๐"],["purse","๐"],["pushpin","๐"],["put_litter_in_its_place","๐ฎ"],["qatar","๐ถโ๐ฆ"],["question","โ๏ธ"],["rabbit","๐ฐ"],["rabbit2","๐"],["racehorse","๐"],["racing_car","๐๏ธ"],["radio","๐ป๏ธ"],["radio_button","๐"],["radioactive","โข๏ธ"],["rage","๐ก"],["railway_car","๐"],["railway_track","๐ค๏ธ"],["rainbow","๐"],["rainbow_flag","๐ณ๏ธโ๐"],["raised_back_of_hand","๐ค"],["raised_hand","โ"],["raised_hand_with_fingers_splayed","๐๏ธ"],["raised_hands","๐"],["raising_hand","๐"],["raising_hand_man","๐โโ๏ธ"],["raising_hand_woman","๐"],["ram","๐"],["ramen","๐"],["rat","๐"],["record_button","โบ๏ธ"],["recycle","โป๏ธ"],["red_car","๐"],["red_circle","๐ด"],["registered","ยฎ๏ธ"],["relaxed","โบ๏ธ"],["relieved","๐"],["reminder_ribbon","๐๏ธ"],["repeat","๐"],["repeat_one","๐"],["rescue_worker_helmet","โ๏ธ"],["restroom","๐ป"],["reunion","๐ทโ๐ช"],["revolving_hearts","๐"],["rewind","โช๏ธ"],["rhinoceros","๐ฆ"],["ribbon","๐"],["rice","๐"],["rice_ball","๐"],["rice_cracker","๐"],["rice_scene","๐"],["right_anger_bubble","๐ฏ๏ธ"],["ring","๐"],["robot","๐ค"],["rocket","๐"],["rofl","๐คฃ"],["roll_eyes","๐"],["roller_coaster","๐ข"],["romania","๐ทโ๐ด"],["rooster","๐"],["rose","๐น"],["rosette","๐ต๏ธ"],["rotating_light","๐จ"],["round_pushpin","๐"],["rowboat","๐ฃ"],["rowing_man","๐ฃ"],["rowing_woman","๐ฃโโ๏ธ"],["ru","๐ทโ๐บ"],["rugby_football","๐"],["runner","๐"],["running","๐"],["running_man","๐"],["running_shirt_with_sash","๐ฝ"],["running_woman","๐โโ๏ธ"],["rwanda","๐ทโ๐ผ"],["sa","๐๏ธ"],["sagittarius","โ๏ธ"],["sailboat","โต๏ธ"],["sake","๐ถ"],["samoa","๐ผโ๐ธ"],["san_marino","๐ธโ๐ฒ"],["sandal","๐ก"],["santa","๐
"],["sao_tome_principe","๐ธโ๐น"],["sassy_man","๐โโ๏ธ"],["sassy_woman","๐"],["satellite","๐ก"],["satisfied","๐"],["saudi_arabia","๐ธโ๐ฆ"],["saxophone","๐ท"],["school","๐ซ"],["school_satchel","๐"],["scissors","โ๏ธ"],["scorpion","๐ฆ"],["scorpius","โ๏ธ"],["scream","๐ฑ"],["scream_cat","๐"],["scroll","๐"],["seat","๐บ"],["secret","ใ๏ธ"],["see_no_evil","๐"],["seedling","๐ฑ"],["selfie","๐คณ"],["senegal","๐ธโ๐ณ"],["serbia","๐ทโ๐ธ"],["seven","7๏ธโโฃ"],["seychelles","๐ธโ๐จ"],["shallow_pan_of_food","๐ฅ"],["shamrock","โ๏ธ"],["shark","๐ฆ"],["shaved_ice","๐ง"],["sheep","๐"],["shell","๐"],["shield","๐ก๏ธ"],["shinto_shrine","โฉ๏ธ"],["ship","๐ข"],["shirt","๐"],["shit","๐ฉ"],["shoe","๐"],["shopping","๐๏ธ"],["shopping_cart","๐"],["shower","๐ฟ"],["shrimp","๐ฆ"],["sierra_leone","๐ธโ๐ฑ"],["signal_strength","๐ถ"],["singapore","๐ธโ๐ฌ"],["sint_maarten","๐ธโ๐ฝ"],["six","6๏ธโโฃ"],["six_pointed_star","๐ฏ"],["ski","๐ฟ"],["skier","โท๏ธ"],["skull","๐"],["skull_and_crossbones","โ ๏ธ"],["sleeping","๐ด"],["sleeping_bed","๐"],["sleepy","๐ช"],["slightly_frowning_face","๐"],["slightly_smiling_face","๐"],["slot_machine","๐ฐ"],["slovakia","๐ธโ๐ฐ"],["slovenia","๐ธโ๐ฎ"],["small_airplane","๐ฉ๏ธ"],["small_blue_diamond","๐น"],["small_orange_diamond","๐ธ"],["small_red_triangle","๐บ"],["small_red_triangle_down","๐ป"],["smile","๐"],["smile_cat","๐ธ"],["smiley","๐"],["smiley_cat","๐บ"],["smiling_imp","๐"],["smirk","๐"],["smirk_cat","๐ผ"],["smoking","๐ฌ"],["snail","๐"],["snake","๐"],["sneezing_face","๐คง"],["snowboarder","๐๏ธ"],["snowflake","โ๏ธ"],["snowman","โ๏ธ"],["snowman_with_snow","โ๏ธ"],["sob","๐ญ"],["soccer","โฝ๏ธ"],["solomon_islands","๐ธโ๐ง"],["somalia","๐ธโ๐ด"],["soon","๐"],["sos","๐"],["sound","๐"],["south_africa","๐ฟโ๐ฆ"],["south_georgia_south_sandwich_islands","๐ฌโ๐ธ"],["south_sudan","๐ธโ๐ธ"],["space_invader","๐พ"],["spades","โ ๏ธ"],["spaghetti","๐"],["sparkle","โ๏ธ"],["sparkler","๐"],["sparkles","โจ"],["sparkling_heart","๐"],["speak_no_evil","๐"],["speaker","๐๏ธ"],["speaking_head","๐ฃ๏ธ"],["speech_balloon","๐ฌ"],["speedboat","๐ค"],["spider","๐ท๏ธ"],["spider_web","๐ธ๏ธ"],["spiral_calendar","๐๏ธ"],["spiral_notepad","๐๏ธ"],["spoon","๐ฅ"],["squid","๐ฆ"],["sri_lanka","๐ฑโ๐ฐ"],["st_barthelemy","๐งโ๐ฑ"],["st_helena","๐ธโ๐ญ"],["st_kitts_nevis","๐ฐโ๐ณ"],["st_lucia","๐ฑโ๐จ"],["st_pierre_miquelon","๐ตโ๐ฒ"],["st_vincent_grenadines","๐ปโ๐จ"],["stadium","๐๏ธ"],["star","โญ๏ธ"],["star2","๐"],["star_and_crescent","โช๏ธ"],["star_of_david","โก๏ธ"],["stars","๐ "],["station","๐"],["statue_of_liberty","๐ฝ"],["steam_locomotive","๐"],["stew","๐ฒ"],["stop_button","โน๏ธ"],["stop_sign","๐"],["stopwatch","โฑ๏ธ"],["straight_ruler","๐"],["strawberry","๐"],["stuck_out_tongue","๐"],["stuck_out_tongue_closed_eyes","๐"],["stuck_out_tongue_winking_eye","๐"],["studio_microphone","๐๏ธ"],["stuffed_flatbread","๐ฅ"],["sudan","๐ธโ๐ฉ"],["sun_behind_large_cloud","๐ฅ๏ธ"],["sun_behind_rain_cloud","๐ฆ๏ธ"],["sun_behind_small_cloud","๐ค๏ธ"],["sun_with_face","๐"],["sunflower","๐ป"],["sunglasses","๐"],["sunny","โ๏ธ"],["sunrise","๐
"],["sunrise_over_mountains","๐"],["surfer","๐๏ธ"],["surfing_man","๐๏ธ"],["surfing_woman","๐๏ธโโ๏ธ"],["suriname","๐ธโ๐ท"],["sushi","๐ฃ"],["suspension_railway","๐"],["swaziland","๐ธโ๐ฟ"],["sweat","๐"],["sweat_drops","๐ฆ"],["sweat_smile","๐
"],["sweden","๐ธโ๐ช"],["sweet_potato","๐ "],["swimmer","๐๏ธ"],["swimming_man","๐๏ธ"],["swimming_woman","๐๏ธโโ๏ธ"],["switzerland","๐จโ๐ญ"],["symbols","๐ฃ"],["synagogue","๐"],["syria","๐ธโ๐พ"],["syringe","๐"],["taco","๐ฎ"],["tada","๐"],["taiwan","๐นโ๐ผ"],["tajikistan","๐นโ๐ฏ"],["tanabata_tree","๐"],["tangerine","๐"],["tanzania","๐นโ๐ฟ"],["taurus","โ๏ธ"],["taxi","๐"],["tea","๐ต"],["telephone","โ๏ธ"],["telephone_receiver","๐"],["telescope","๐ญ"],["tennis","๐พ"],["tent","โบ๏ธ"],["thailand","๐นโ๐ญ"],["thermometer","๐ก๏ธ"],["thinking","๐ค"],["thought_balloon","๐ญ"],["three","3๏ธโโฃ"],["thumbsdown","๐๏ธ"],["thumbsup","๐๏ธ"],["ticket","๐ซ"],["tickets","๐๏ธ"],["tiger","๐ฏ"],["tiger2","๐
"],["timer_clock","โฒ๏ธ"],["timor_leste","๐นโ๐ฑ"],["tipping_hand_man","๐โโ๏ธ"],["tipping_hand_woman","๐"],["tired_face","๐ซ"],["tm","โข๏ธ"],["togo","๐นโ๐ฌ"],["toilet","๐ฝ"],["tokelau","๐นโ๐ฐ"],["tokyo_tower","๐ผ"],["tomato","๐
"],["tonga","๐นโ๐ด"],["tongue","๐
"],["top","๐"],["tophat","๐ฉ"],["tornado","๐ช๏ธ"],["tr","๐นโ๐ท"],["trackball","๐ฒ๏ธ"],["tractor","๐"],["traffic_light","๐ฅ"],["train","๐"],["train2","๐"],["tram","๐"],["triangular_flag_on_post","๐ฉ"],["triangular_ruler","๐"],["trident","๐ฑ"],["trinidad_tobago","๐นโ๐น"],["triumph","๐ค"],["trolleybus","๐"],["trophy","๐๏ธ"],["tropical_drink","๐น"],["tropical_fish","๐ "],["truck","๐"],["trumpet","๐บ"],["tshirt","๐"],["tulip","๐ท"],["tumbler_glass","๐ฅ"],["tunisia","๐นโ๐ณ"],["turkey","๐ฆ"],["turkmenistan","๐นโ๐ฒ"],["turks_caicos_islands","๐นโ๐จ"],["turtle","๐ข"],["tuvalu","๐นโ๐ป"],["tv","๐บ๏ธ"],["twisted_rightwards_arrows","๐"],["two","2๏ธโโฃ"],["two_hearts","๐"],["two_men_holding_hands","๐ฌ"],["two_women_holding_hands","๐ญ"],["u5272","๐น"],["u5408","๐ด"],["u55b6","๐บ"],["u6307","๐ฏ๏ธ"],["u6708","๐ท๏ธ"],["u6709","๐ถ"],["u6e80","๐ต"],["u7121","๐๏ธ"],["u7533","๐ธ"],["u7981","๐ฒ"],["u7a7a","๐ณ"],["uganda","๐บโ๐ฌ"],["uk","๐ฌโ๐ง"],["ukraine","๐บโ๐ฆ"],["umbrella","โ๏ธ"],["unamused","๐"],["underage","๐"],["unicorn","๐ฆ"],["united_arab_emirates","๐ฆโ๐ช"],["unlock","๐๏ธ"],["up","๐"],["upside_down_face","๐"],["uruguay","๐บโ๐พ"],["us","๐บโ๐ธ"],["us_virgin_islands","๐ปโ๐ฎ"],["uzbekistan","๐บโ๐ฟ"],["v","โ๏ธ"],["vanuatu","๐ปโ๐บ"],["vatican_city","๐ปโ๐ฆ"],["venezuela","๐ปโ๐ช"],["vertical_traffic_light","๐ฆ"],["vhs","๐ผ"],["vibration_mode","๐ณ"],["video_camera","๐น๏ธ"],["video_game","๐ฎ๏ธ"],["vietnam","๐ปโ๐ณ"],["violin","๐ป"],["virgo","โ๏ธ"],["volcano","๐"],["volleyball","๐"],["vs","๐"],["vulcan_salute","๐"],["walking","๐ถ"],["walking_man","๐ถ"],["walking_woman","๐ถโโ๏ธ"],["wallis_futuna","๐ผโ๐ซ"],["waning_crescent_moon","๐"],["waning_gibbous_moon","๐"],["warning","โ ๏ธ"],["wastebasket","๐๏ธ"],["watch","โ๏ธ"],["water_buffalo","๐"],["watermelon","๐"],["wave","๐"],["wavy_dash","ใฐ๏ธ"],["waxing_crescent_moon","๐"],["waxing_gibbous_moon","๐"],["wc","๐พ"],["weary","๐ฉ"],["wedding","๐"],["weight_lifting_man","๐๏ธ"],["weight_lifting_woman","๐๏ธโโ๏ธ"],["western_sahara","๐ชโ๐ญ"],["whale","๐ณ"],["whale2","๐"],["wheel_of_dharma","โธ๏ธ"],["wheelchair","โฟ๏ธ"],["white_check_mark","โ
"],["white_circle","โช๏ธ"],["white_flag","๐ณ๏ธ"],["white_flower","๐ฎ"],["white_large_square","โฌ๏ธ"],["white_medium_small_square","โฝ๏ธ"],["white_medium_square","โป๏ธ"],["white_small_square","โซ๏ธ"],["white_square_button","๐ณ"],["wilted_flower","๐ฅ"],["wind_chime","๐"],["wind_face","๐ฌ๏ธ"],["wine_glass","๐ท"],["wink","๐"],["wolf","๐บ"],["woman","๐ฉ"],["woman_artist","๐ฉโ๐จ"],["woman_astronaut","๐ฉโ๐"],["woman_cartwheeling","๐คธโโ๏ธ"],["woman_cook","๐ฉโ๐ณ"],["woman_facepalming","๐คฆโโ๏ธ"],["woman_factory_worker","๐ฉโ๐ญ๏ธ"],["woman_farmer","๐ฉโ๐พ"],["woman_firefighter","๐ฉโ๐"],["woman_health_worker","๐ฉโโ๏ธ"],["woman_judge","๐ฉโโ๏ธ"],["woman_juggling","๐คนโโ๏ธ"],["woman_mechanic","๐ฉโ๐ง"],["woman_office_worker","๐ฉโ๐ผ"],["woman_pilot","๐ฉโโ๏ธ"],["woman_playing_handball","๐คพโโ๏ธ"],["woman_playing_water_polo","๐คฝโโ๏ธ"],["woman_scientist","๐ฉโ๐ฌ"],["woman_shrugging","๐คทโโ๏ธ"],["woman_singer","๐ฉโ๐ค"],["woman_student","๐ฉโ๐๏ธ"],["woman_teacher","๐ฉโ๐ซ"],["woman_technologist","๐ฉโ๐ป๏ธ"],["woman_with_turban","๐ณโโ๏ธ"],["womans_clothes","๐"],["womans_hat","๐"],["women_wrestling","๐คผโโ๏ธ"],["womens","๐บ๏ธ"],["world_map","๐บ๏ธ"],["worried","๐"],["wrench","๐ง"],["writing_hand","โ๏ธ"],["x","โ"],["yellow_heart","๐"],["yemen","๐พโ๐ช"],["yen","๐ด"],["yin_yang","โฏ๏ธ"],["yum","๐"],["zambia","๐ฟโ๐ฒ"],["zap","โก๏ธ"],["zero","0๏ธโโฃ"],["zimbabwe","๐ฟโ๐ผ"],["zipper_mouth_face","๐ค"],["zzz","๐ค"]])w.add({code:e,emoji:o});const y=new b;for(const e of[{emoji:"๐จ",entity:"🎨",code:":art:",description:"Improving structure / format of the code.",name:"art"},{emoji:"โก๏ธ",entity:"⚡",code:":zap:",description:"Improving performance.",name:"zap"},{emoji:"๐ฅ",entity:"🔥",code:":fire:",description:"Removing code or files.",name:"fire"},{emoji:"๐",entity:"🐛",code:":bug:",description:"Fixing a bug.",name:"bug"},{emoji:"๐",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance"},{emoji:"โจ",entity:"✨",code:":sparkles:",description:"Introducing new features.",name:"sparkles"},{emoji:"๐",entity:"📝",code:":pencil:",description:"Writing docs.",name:"pencil"},{emoji:"๐",entity:"🚀",code:":rocket:",description:"Deploying stuff.",name:"rocket"},{emoji:"๐",entity:"&#ff99cc;",code:":lipstick:",description:"Updating the UI and style files.",name:"lipstick"},{emoji:"๐",entity:"🎉",code:":tada:",description:"Initial commit.",name:"tada"},{emoji:"โ
",entity:"✅",code:":white_check_mark:",description:"Updating tests.",name:"white-check-mark"},{emoji:"๐",entity:"🔒",code:":lock:",description:"Fixing security issues.",name:"lock"},{emoji:"๐",entity:"🍎",code:":apple:",description:"Fixing something on macOS.",name:"apple"},{emoji:"๐ง",entity:"🐧",code:":penguin:",description:"Fixing something on Linux.",name:"penguin"},{emoji:"๐",entity:"🏁",code:":checkered_flag:",description:"Fixing something on Windows.",name:"checkered-flag"},{emoji:"๐ค",entity:"🤖",code:":robot:",description:"Fixing something on Android.",name:"robot"},{emoji:"๐",entity:"🍏",code:":green_apple:",description:"Fixing something on iOS.",name:"green-apple"},{emoji:"๐",entity:"🔖",code:":bookmark:",description:"Releasing / Version tags.",name:"bookmark"},{emoji:"๐จ",entity:"🚨",code:":rotating_light:",description:"Removing linter warnings.",name:"rotating-light"},{emoji:"๐ง",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction"},{emoji:"๐",entity:"💚",code:":green_heart:",description:"Fixing CI Build.",name:"green-heart"},{emoji:"โฌ๏ธ",entity:"โฌ๏ธ",code:":arrow_down:",description:"Downgrading dependencies.",name:"arrow-down"},{emoji:"โฌ๏ธ",entity:"โฌ๏ธ",code:":arrow_up:",description:"Upgrading dependencies.",name:"arrow-up"},{emoji:"๐",entity:"📌",code:":pushpin:",description:"Pinning dependencies to specific versions.",name:"pushpin"},{emoji:"๐ท",entity:"👷",code:":construction_worker:",description:"Adding CI build system.",name:"construction-worker"},{emoji:"๐",code:":chart_with_upwards_trend:",description:"Adding analytics or tracking code.",name:"chart-with-upwards-trend"},{emoji:"โป๏ธ",entity:"♲",code:":recycle:",description:"Refactoring code.",name:"recycle"},{emoji:"๐ณ",entity:"🐳",code:":whale:",description:"Work about Docker.",name:"whale"},{emoji:"โ",entity:"➕",code:":heavy_plus_sign:",description:"Adding a dependency.",name:"heavy-plus-sign"},{emoji:"โ",entity:"➖",code:":heavy_minus_sign:",description:"Removing a dependency.",name:"heavy-minus-sign"},{emoji:"๐ง",entity:"🔧",code:":wrench:",description:"Changing configuration files.",name:"wrench"},{emoji:"๐",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians"},{emoji:"โ๏ธ",entity:"",code:":pencil2:",description:"Fixing typos.",name:"pencil"},{emoji:"๐ฉ",entity:"",code:":poop:",description:"Writing bad code that needs to be improved.",name:"poop"},{emoji:"โช",entity:"⏪",code:":rewind:",description:"Reverting changes.",name:"rewind"},{emoji:"๐",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merging branches.",name:"twisted-rightwards-arrows"},{emoji:"๐ฆ",entity:"F4E6;",code:":package:",description:"Updating compiled files or packages.",name:"package"},{emoji:"๐ฝ",entity:"F47D;",code:":alien:",description:"Updating code due to external API changes.",name:"alien"},{emoji:"๐",entity:"F69A;",code:":truck:",description:"Moving or renaming files.",name:"truck"},{emoji:"๐",entity:"F4C4;",code:":page_facing_up:",description:"Adding or updating license.",name:"page-facing-up"},{emoji:"๐ฅ",entity:"💥",code:":boom:",description:"Introducing breaking changes.",name:"boom"},{emoji:"๐ฑ",entity:"F371",code:":bento:",description:"Adding or updating assets.",name:"bento"},{emoji:"๐",entity:"👌",code:":ok_hand:",description:"Updating code due to code review changes.",name:"ok-hand"},{emoji:"โฟ๏ธ",entity:"♿",code:":wheelchair:",description:"Improving accessibility.",name:"wheelchair"},{emoji:"๐ก",entity:"💡",code:":bulb:",description:"Documenting source code.",name:"bulb"},{emoji:"๐ป",entity:"🍻",code:":beers:",description:"Writing code drunkenly.",name:"beers"},{emoji:"๐ฌ",entity:"💬",code:":speech_balloon:",description:"Updating text and literals.",name:"speech-balloon"},{emoji:"๐",entity:"🗃",code:":card_file_box:",description:"Performing database related changes.",name:"card-file-box"},{emoji:"๐",entity:"🔊",code:":loud_sound:",description:"Adding logs.",name:"loud-sound"},{emoji:"๐",entity:"🔇",code:":mute:",description:"Removing logs.",name:"mute"},{emoji:"๐ฅ",entity:"👥",code:":busts_in_silhouette:",description:"Adding contributor(s).",name:"busts-in-silhouette"},{emoji:"๐ธ",entity:"🚸",code:":children_crossing:",description:"Improving user experience / usability.",name:"children-crossing"},{emoji:"๐",entity:"f3d7;",code:":building_construction:",description:"Making architectural changes.",name:"building-construction"},{emoji:"๐ฑ",entity:"📱",code:":iphone:",description:"Working on responsive design.",name:"iphone"},{emoji:"๐คก",entity:"🤡",code:":clown_face:",description:"Mocking things.",name:"clown-face"},{emoji:"๐ฅ",entity:"🥚",code:":egg:",description:"Adding an easter egg.",name:"egg"},{emoji:"๐",entity:"bdfe7;",code:":see_no_evil:",description:"Adding or updating a .gitignore file",name:"see-no-evil"},{emoji:"๐ธ",entity:"📸",code:":camera_flash:",description:"Adding or updating snapshots",name:"camera-flash"},{emoji:"โ",entity:"📸",code:":alembic:",description:"Experimenting new things",name:"alembic"},{emoji:"๐",entity:"🔍",code:":mag:",description:"Improving SEO",name:"mag"},{emoji:"โธ๏ธ",entity:"☸",code:":wheel_of_dharma:",description:"Work about Kubernetes",name:"wheel-of-dharma"},{emoji:"๐ท๏ธ",entity:"🏷",code:":label:",description:"Adding or updating types (Flow, TypeScript)",name:"label"},{emoji:"๐ฑ",entity:"🌱",code:":seedling:",description:"Adding or updating seed files",name:"seedling"},{emoji:"๐ฉ",entity:"🚩",code:":triangular_flag_on_post:",description:"Adding, updating, or removing feature flags",name:"triangular-flag-on-post"},{emoji:"๐ฅ
",entity:"🥅",code:":goal_net:",description:"Catching errors",name:"goal-net"},{emoji:"๐ซ",entity:"💫",code:":dizzy:",description:"Adding or updating animations and transitions",name:"animation"},{emoji:"๐",entity:"🗑",code:":wastebasket:",description:"Deprecating code that needs to be cleaned up.",name:"wastebasket"}])y.add(e);class k{constructor(e){this.options={types:[],devmoji:[]},this.pack=new b,this._load(h),e&&(e.types||(e.types=[]),e.devmoji||(e.devmoji=[]),this.validate(e),this._load(e))}_load(e){const o=[...this.options.types,...e.types];this.options.types=[...new Set(o)];for(const o of e.devmoji){if(o.gitmoji){const e=y.get(o.gitmoji);if(!e)throw`Gitmoji '${o.gitmoji}' not found`;o.emoji||(o.emoji=o.gitmoji),o.description||(o.description=e.description)}if(!o.emoji)throw`Missing 'emoji' or 'gitmoji' for ${o.code} in config file`;this.pack.add(Object.assign(Object.assign({},this.pack.get(o.code)),o)),this.options.devmoji.push(o)}}validate(e){t.createCheckers(f).ConfigOptions.check(e)}static findRoot(e,o=process.cwd()){const i=m.resolve(o,e);if(d.existsSync(i))return o;const a=m.resolve(o,"../");return a!=o?k.findRoot(e,a):void 0}static load(e,o=process.cwd()){return p(this,void 0,void 0,(function*(){if(e&&!d.existsSync(e))throw`Config file not found ${e}`;if(!e){const i=[o,k.findRoot("./package.json"),k.findRoot("./.git"),r.homedir()];for(const o of i)if(o){const i=m.resolve(o,"./devmoji.config.js");if(d.existsSync(i)){e=i;break}}}if(e){e=m.resolve(o,e);const i=yield Promise.resolve().then((function(){return c(require(e))}));return new k(i)}return new k}))}}class v{constructor(e){this.devmoji=e,this.regex=/(?<type>:?[a-z-]+)(?:\((?<scope>[a-z-0-9]+)\))?(!?):\s*(?:(?<other>(?::[a-z-]+:\s*)+)\s*)?/gimu}formatCommit(e,o=!1){return this.format(e,!0,o)}formatLog(e,o=!1){return this.format(e,!1,o)}formatEmoji(e,o,i,a=!1){let n,t=this.devmoji.config.pack.get(e);if(o){const i=this.devmoji.config.pack.get(`${e}-${o}`);i?t=i:n=this.devmoji.config.pack.get(o)}const r=[a?"boom":void 0,null==t?void 0:t.emoji,null==n?void 0:n.emoji];if(i){let e;do{e=this.devmoji.shortcodeRegex.exec(i),e&&r.push(e[1])}while(e)}const s=[];return r.map((e=>{if(e){const o=this.devmoji.get(e);s.includes(o)||s.push(o)}})),s.join(" ")}format(e,o=!1,i=!1){e=this.devmoji.devmojify(e);const a=/^\s*BREAKING CHANGE/mu.test(e);return this.devmoji.emojify(e.replace(this.regex,((e,n,t,r,s,c)=>{if(o&&c>0)return e;if(n.startsWith(":"))return e;const _=this.formatEmoji(n,t,s,!(!r&&!a));if(!_.length)return e;let d=n;t&&(d+=i?l.default.bold(`(${t})`):`(${t})`),r&&(d+="!"),d+=":",d=i?l.default.blue(d):d,d+=` ${_}`;const m=e.search(/\s*$/);return m>0&&(d+=e.substring(m)),d})))}}class j{constructor(e){this.config=e,this.shortcodeRegex=/:([a-zA-Z0-9_\-+]+):/g,this.shortcodeSpaceRegex=/\s?:([a-zA-Z0-9_\-+]+):/g,this.unicodeRegex=/((?:\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])\ufe0f?)/g}get(e){var o,i;const a=this.config.pack.get(e);return a?this.get(a.emoji):null!==(i=null===(o=w.get(e))||void 0===o?void 0:o.emoji)&&void 0!==i?i:w.wrap(e)}emojify(e){return(e=this.demojify(e)).replace(this.shortcodeRegex,((e,o)=>this.get(o)))}strip(e){return(e=this.demojify(e)).replace(this.shortcodeSpaceRegex,(()=>""))}demojify(e){return e.replace(this.unicodeRegex,(e=>{const o=w.getCode(e);return o?w.wrap(o):e}))}devmojify(e){return(e=this.demojify(e)).replace(this.shortcodeRegex,((e,o)=>{var i;const a=null===(i=w.get(o))||void 0===i?void 0:i.emoji;if(a){const e=[...y.getCodes(a)||[],...w.getCodes(a)||[]];for(const o of e){const e=this.config.pack.getCode(o.code);if(e)return e}}return e}))}}class x{constructor(e,o){this.program=e,this.devmoji=o,this.commits=new v(o),this.opts=e.opts()}lint(e){var o,i,a;if((e=e.split("\n")[0]).startsWith("Merge branch"))return[];if(/^(fixup|squash)!/.test(e))return[];if(/^([rR]evert)/.test(e))return[];const n=[],t=/^(?<type>:?[a-z-]+)(?:\((?<scope>[a-z-0-9]+)\))?(!?):\s+(?<description>.*)/iu.exec(e);if(t){const e=null!==(i=null===(o=t.groups)||void 0===o?void 0:o.type)&&void 0!==i?i:"",r=null===(a=t.groups)||void 0===a?void 0:a.description;this.devmoji.config.options.types.includes(e)||n.push(`Type should be one of: ${l.default.grey(this.devmoji.config.options.types.join(", "))}`),r&&0!=r.trim().length||n.push("Missing description")}else n.push("Expecting a commit message like:"),n.push(` ${l.default.blue("type"+l.default.bold("(scope):"))+l.default.dim(" description")}`);return n.length&&n.push("Get help at https://www.conventionalcommits.org/"),n}format(e,o="unicode",i=!1,a=!1,n=this.opts.color){if(i&&this.opts.lint&&!a){const o=this.lint(e);o.length&&(o.forEach((e=>console.error(l.default.red("โ"),e))),process.exit(1))}switch(a?e=this.commits.formatLog(e,!!n):i&&(e=this.commits.formatCommit(e,!!n)),o){case"unicode":return this.devmoji.emojify(e);case"shortcode":return this.devmoji.demojify(e);case"devmoji":return this.devmoji.devmojify(e);case"strip":return this.devmoji.strip(e)}throw`Invalid format '${o}'`}list(){var e;console.log(l.default.blue.dim.underline("Available Devmoji"));for(const o of this.devmoji.config.pack.codes.values()){let i="";if(this.devmoji.config.options.types.includes(o.code)&&(i=`${o.code}: `),o.code.includes("-")){const[e,a]=o.code.split("-");this.devmoji.config.options.types.includes(e)&&(i=`${e}(${a}): `)}console.log(this.devmoji.get(o.emoji)," ",l.default.blue(`:${o.code}:`.padEnd(15)),l.default.green(i)+(null!==(e=o.description)&&void 0!==e?e:""))}}error(e){console.error(l.default.red("error ")+e),process.exit(1)}gitRoot(e=process.cwd()){const o=m.resolve(e,"./.git");if(d.existsSync(o)&&d.lstatSync(o).isDirectory())return o;const i=m.resolve(e,"../");return i!=e?this.gitRoot(i):void 0}static create(e=process.argv,o=!1){return p(this,void 0,void 0,(function*(){const i=new _.default.Command;o&&i.exitOverride(),i.option("-c|--config <file>","location of the devmoji.config.js file").option("-l|--list","list all known devmojis").option("-t|--text <text>","text to format. reads from stdin when omitted").option("--lint","lint the conventional commit. disabled for --log").option("-f|--format <format>","format should be one of: unicode, shortcode, devmoji","unicode").option("--commit","automatically add a devmoji to the conventional commit header",!0).option("--no-commit","do not process conventional commit headers").option("-e|--edit","read last commit message from .git/COMMIT_EDITMSG in the git root").option("--log","format conventional commits in text similar to git log").option("--color","use colors for formatting. Colors are enabled by default, unless output is piped to another command",l.default.level>0).option("--no-color","don't use colors").version(require("../package.json").version,"--version").parse(e);const a=yield k.load(i.opts().config);return new x(i,new j(a))}))}run(){const e=this.program.opts();if(e.list)return this.list();if(e.text)return console.log(this.format(e.text,e.format,e.commit,e.log));if(e.edit){let o=this.gitRoot();if(o&&(o=m.resolve(o,"COMMIT_EDITMSG")),o&&d.existsSync(o)){let i=d.readFileSync(o,"utf-8");i=this.format(i,e.format,e.commit,!1,!1);const a=this.format(i,e.format,e.commit,!1,!0);return d.writeFileSync(o,i,"utf-8"),console.log(l.default.green("โ"),a)}this.error("Couldn't find .git/COMMIT_EDITMSG")}else{if(process.stdin.isTTY)return this.program.outputHelp(),process.exit(1);{const o=g.createInterface({input:process.stdin,terminal:!1});let i=!0;o.on("line",(o=>{try{console.log(this.format(o,e.format,e.commit&&i,e.log)),i=!1}catch(e){this.error(e)}}))}}}}function z(e=process.argv){return p(this,void 0,void 0,(function*(){return x.create(e).then((e=>e.run(