@jsb188/app 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/package.json +57 -42
  2. package/src/constants/agent.ts +74 -0
  3. package/src/constants/app.ts +389 -0
  4. package/src/constants/emoji.ts +9153 -0
  5. package/src/constants/other.ts +13 -0
  6. package/src/constants/user.ts +27 -0
  7. package/src/constants/wsActions.ts +49 -0
  8. package/src/i18n/account.ts +139 -0
  9. package/src/i18n/agent.ts +397 -0
  10. package/src/i18n/agentToolBusiness.ts +196 -0
  11. package/src/i18n/agentToolGrid.ts +137 -0
  12. package/src/i18n/agentToolWorkflow.ts +101 -0
  13. package/src/i18n/agent_note.ts +109 -0
  14. package/src/i18n/app.ts +124 -0
  15. package/src/i18n/auth.ts +128 -0
  16. package/src/i18n/billing.ts +7 -0
  17. package/src/i18n/c.ts +907 -0
  18. package/src/i18n/campaign.ts +919 -0
  19. package/src/i18n/country.ts +249 -0
  20. package/src/i18n/datetime.ts +66 -0
  21. package/src/i18n/editor.ts +58 -0
  22. package/src/i18n/error.ts +579 -0
  23. package/src/i18n/field_doc_editor.ts +21 -0
  24. package/src/i18n/field_doc_programs.ts +52 -0
  25. package/src/i18n/field_docs.ts +190 -0
  26. package/src/i18n/index.ts +64 -0
  27. package/src/i18n/log.ts +566 -0
  28. package/src/i18n/memory.ts +59 -0
  29. package/src/i18n/message.ts +13 -0
  30. package/src/i18n/note.ts +19 -0
  31. package/src/i18n/org.ts +306 -0
  32. package/src/i18n/schedule.ts +209 -0
  33. package/src/i18n/sheet.ts +339 -0
  34. package/src/i18n/sheet_formula.ts +165 -0
  35. package/src/i18n/workflow.ts +111 -0
  36. package/src/main.ts +89 -0
  37. package/src/platform.ts +166 -0
  38. package/src/types/ai.d.ts +63 -0
  39. package/src/types/app.d.ts +127 -0
  40. package/src/types/auth.d.ts +94 -0
  41. package/src/types/console.d.ts +3 -0
  42. package/src/types/node-polyglot.d.ts +23 -0
  43. package/src/types/other.d.ts +66 -0
  44. package/src/types.d.ts +29 -0
  45. package/src/utils/account.ts +97 -0
  46. package/src/utils/api.ts +358 -0
  47. package/src/utils/authSession.ts +24 -0
  48. package/src/utils/clientIP.ts +213 -0
  49. package/src/utils/color.ts +279 -0
  50. package/src/utils/cron.ts +310 -0
  51. package/src/utils/csv.ts +19 -0
  52. package/src/utils/datetime.ts +1394 -0
  53. package/src/utils/deferredSave.ts +89 -0
  54. package/src/utils/email.ts +39 -0
  55. package/src/utils/emoji.ts +174 -0
  56. package/src/utils/expression.helpers.ts +470 -0
  57. package/src/utils/expression.test.ts +793 -0
  58. package/src/utils/expression.ts +2261 -0
  59. package/src/utils/interval.ts +80 -0
  60. package/src/utils/language.ts +9 -0
  61. package/src/utils/logic.ts +299 -0
  62. package/src/utils/managedSession.ts +34 -0
  63. package/src/utils/managedSessionBff.test.ts +60 -0
  64. package/src/utils/managedSessionBff.ts +117 -0
  65. package/src/utils/number.ts +338 -0
  66. package/src/utils/object.ts +916 -0
  67. package/src/utils/promise.ts +98 -0
  68. package/src/utils/queryReset.ts +266 -0
  69. package/src/utils/recurringTask.ts +60 -0
  70. package/src/utils/schema.ts +293 -0
  71. package/src/utils/string.test.ts +278 -0
  72. package/src/utils/string.ts +709 -0
  73. package/{utils → src/utils}/timeZone.ts +531 -852
  74. package/src/utils/url_client.ts +206 -0
  75. package/tsconfig.json +12 -0
  76. package/constants/app.ts +0 -47
  77. package/constants/billing.ts +0 -146
  78. package/constants/emoji.ts +0 -8945
  79. package/constants/journal.ts +0 -74
  80. package/constants/user.ts +0 -36
  81. package/constants/ws.ts +0 -47
  82. package/i18n/app.ts +0 -101
  83. package/i18n/auth.ts +0 -63
  84. package/i18n/billing.ts +0 -94
  85. package/i18n/datetime.ts +0 -21
  86. package/i18n/error.ts +0 -143
  87. package/i18n/form.ts +0 -74
  88. package/i18n/index.ts +0 -5
  89. package/i18n/user.ts +0 -101
  90. package/main.ts +0 -94
  91. package/platform.ts +0 -125
  92. package/types/ai.d.ts +0 -30
  93. package/types/app.d.ts +0 -48
  94. package/types/auth.d.ts +0 -63
  95. package/types/form.d.ts +0 -56
  96. package/types/journal.d.ts +0 -24
  97. package/types/organization.d.ts +0 -38
  98. package/types/user.d.ts +0 -52
  99. package/types.d.ts +0 -31
  100. package/utils/api.ts +0 -99
  101. package/utils/billing.ts +0 -134
  102. package/utils/datetime.ts +0 -542
  103. package/utils/emoji.ts +0 -151
  104. package/utils/journal.ts +0 -17
  105. package/utils/logic.ts +0 -118
  106. package/utils/number.ts +0 -139
  107. package/utils/object.ts +0 -425
  108. package/utils/string.ts +0 -323
  109. package/utils/url_client.ts +0 -138
  110. package/utils/user.ts +0 -273
package/package.json CHANGED
@@ -1,44 +1,59 @@
1
1
  {
2
- "name": "@jsb188/app",
3
- "version": "1.1.1",
4
- "description": "Contains all the basic requirements for all @jsb188 apps.",
5
- "license": "ISC",
6
- "author": "jsb188",
7
- "type": "module",
8
- "main": "main.ts",
9
- "types": "types.d.ts",
10
- "exports": {
11
- ".": "./main.ts",
12
- "./platform": "./platform.ts",
13
- "./i18n": "./i18n/index.ts",
14
- "./constants/app": "./constants/app.ts",
15
- "./constants/billing": "./constants/billing.ts",
16
- "./constants/emoji": "./constants/emoji.ts",
17
- "./constants/user": "./constants/user.ts",
18
- "./constants/ws": "./constants/ws.ts",
19
- "./utils/api": "./utils/api.ts",
20
- "./utils/billing": "./utils/billing.ts",
21
- "./utils/datetime": "./utils/datetime.ts",
22
- "./utils/emoji": "./utils/emoji.ts",
23
- "./utils/journal": "./utils/journal.ts",
24
- "./utils/logic": "./utils/logic.ts",
25
- "./utils/number": "./utils/number.ts",
26
- "./utils/object": "./utils/object.ts",
27
- "./utils/string": "./utils/string.ts",
28
- "./utils/url_client": "./utils/url_client.ts",
29
- "./utils/user": "./utils/user.ts",
30
- "./types/ai.d": "./types/ai.d.ts",
31
- "./types/app.d": "./types/app.d.ts",
32
- "./types/auth.d": "./types/auth.d.ts",
33
- "./types/form.d": "./types/form.d.ts",
34
- "./types/journal.d": "./types/journal.d.ts",
35
- "./types/organization.d": "./types/organization.d.ts",
36
- "./types/user.d": "./types/user.d.ts"
37
- },
38
- "dependencies": {
39
- "node-polyglot": "^2.6.0"
40
- },
41
- "scripts": {
42
- "test": "echo \"Error: no test specified\" && exit 1"
43
- }
2
+ "name": "@jsb188/app",
3
+ "version": "1.1.2",
4
+ "description": "Contains all the basic requirements for all @jsb188 apps.",
5
+ "license": "ISC",
6
+ "author": "jsb188",
7
+ "type": "module",
8
+ "main": "src/main.ts",
9
+ "types": "src/types.d.ts",
10
+ "exports": {
11
+ ".": "./src/main.ts",
12
+ "./platform.ts": "./src/platform.ts",
13
+ "./i18n/index.ts": "./src/i18n/index.ts",
14
+ "./constants/agent.ts": "./src/constants/agent.ts",
15
+ "./constants/app.ts": "./src/constants/app.ts",
16
+ "./constants/emoji.ts": "./src/constants/emoji.ts",
17
+ "./constants/other.ts": "./src/constants/other.ts",
18
+ "./constants/user.ts": "./src/constants/user.ts",
19
+ "./constants/wsActions.ts": "./src/constants/wsActions.ts",
20
+ "./utils/account.ts": "./src/utils/account.ts",
21
+ "./utils/api.ts": "./src/utils/api.ts",
22
+ "./utils/authSession.ts": "./src/utils/authSession.ts",
23
+ "./utils/clientIP.ts": "./src/utils/clientIP.ts",
24
+ "./utils/managedSession.ts": "./src/utils/managedSession.ts",
25
+ "./utils/managedSessionBff.ts": "./src/utils/managedSessionBff.ts",
26
+ "./utils/color.ts": "./src/utils/color.ts",
27
+ "./utils/csv.ts": "./src/utils/csv.ts",
28
+ "./utils/datetime.ts": "./src/utils/datetime.ts",
29
+ "./utils/deferredSave.ts": "./src/utils/deferredSave.ts",
30
+ "./utils/email.ts": "./src/utils/email.ts",
31
+ "./utils/expression.helpers.ts": "./src/utils/expression.helpers.ts",
32
+ "./utils/emoji.ts": "./src/utils/emoji.ts",
33
+ "./utils/cron.ts": "./src/utils/cron.ts",
34
+ "./utils/interval.ts": "./src/utils/interval.ts",
35
+ "./utils/language.ts": "./src/utils/language.ts",
36
+ "./utils/logic.ts": "./src/utils/logic.ts",
37
+ "./utils/number.ts": "./src/utils/number.ts",
38
+ "./utils/object.ts": "./src/utils/object.ts",
39
+ "./utils/promise.ts": "./src/utils/promise.ts",
40
+ "./utils/queryReset.ts": "./src/utils/queryReset.ts",
41
+ "./utils/recurringTask.ts": "./src/utils/recurringTask.ts",
42
+ "./utils/schema.ts": "./src/utils/schema.ts",
43
+ "./utils/string.ts": "./src/utils/string.ts",
44
+ "./utils/timeZone.ts": "./src/utils/timeZone.ts",
45
+ "./utils/url_client.ts": "./src/utils/url_client.ts",
46
+ "./types/ai.d.ts": "./src/types/ai.d.ts",
47
+ "./types/app.d.ts": "./src/types/app.d.ts",
48
+ "./types/auth.d.ts": "./src/types/auth.d.ts",
49
+ "./types/other.d.ts": "./src/types/other.d.ts"
50
+ },
51
+ "dependencies": {
52
+ "node-polyglot": "^2.6.0",
53
+ "luxon": "^3.7.2",
54
+ "cron-parser": "^5.6.2"
55
+ },
56
+ "scripts": {
57
+ "test": "echo \"Error: no test specified\" && exit 1"
58
+ }
44
59
  }
@@ -0,0 +1,74 @@
1
+ // AI agent inboxes
2
+
3
+ export const EMAIL_BASE_DOMAINS = ['marketday.ai'] as const;
4
+ export const ALLOWED_EMAIL_SUBDOMAINS = ['orders', 'outbound', 'assistant', 'do-not-reply'] as const;
5
+ // Organization handles belong only on these purpose-specific domains; the root is reserved for platform addresses.
6
+ export const ALLOWED_EMAIL_DOMAINS = ALLOWED_EMAIL_SUBDOMAINS.flatMap(getEmailDomains);
7
+ export const ALLOWED_EMAIL_SENDER_DOMAINS = [...EMAIL_BASE_DOMAINS, ...ALLOWED_EMAIL_DOMAINS];
8
+
9
+ /*
10
+ * Return every full email domain for one hard-coded inbox prefix.
11
+ */
12
+ function getEmailDomains(prefix: (typeof ALLOWED_EMAIL_SUBDOMAINS)[number]): string[] {
13
+ return EMAIL_BASE_DOMAINS.map((baseDomain) => `${prefix}.${baseDomain}`);
14
+ }
15
+
16
+ // Domain used as the per-org broadcast/outbound From address:
17
+ // <org emailHandle>@outbound.<primary base domain>. Verified once in Postmark
18
+ // at the domain level, so every org handle sends as an authenticated sender.
19
+ export const OUTBOUND_EMAIL_DOMAINS = getEmailDomains('outbound');
20
+ export const OUTBOUND_EMAIL_DOMAIN = OUTBOUND_EMAIL_DOMAINS[0];
21
+ export const DO_NOT_REPLY_EMAIL_DOMAINS = getEmailDomains('do-not-reply');
22
+ export const DO_NOT_REPLY_EMAIL_DOMAIN = DO_NOT_REPLY_EMAIL_DOMAINS[0];
23
+
24
+ const GROUP_TO_INBOX_DOMAINS = {
25
+ vendor: [
26
+ ...getEmailDomains('orders'),
27
+ ...getEmailDomains('assistant'),
28
+ ],
29
+ default: [
30
+ ...getEmailDomains('assistant'),
31
+ ],
32
+ };
33
+
34
+ export const OPERATION_INBOX_DOMAINS = {
35
+ ARABLE: GROUP_TO_INBOX_DOMAINS.vendor,
36
+ RESTAURANT: GROUP_TO_INBOX_DOMAINS.vendor,
37
+ DEFAULT: GROUP_TO_INBOX_DOMAINS.default,
38
+ };
39
+
40
+ export const DOMAIN_TO_INBOX = Object.fromEntries([
41
+ // Assistant
42
+ ...getEmailDomains('assistant').map((domain) => [domain, 'ASSISTANT'] as const),
43
+
44
+ // Orders
45
+ ...getEmailDomains('orders').map((domain) => [domain, 'ORDERS'] as const),
46
+ ]) as Record<string, 'ASSISTANT' | 'GENERAL_INQUIRY' | 'ORDERS'>;
47
+
48
+ // Inboxes that are NOT ready for production yet. Inbound mail to them is rejected, and campaigns show their
49
+ // addresses as disabled From options. Remove an inbox here to enable it everywhere.
50
+ export const DISABLED_INBOXES: ReadonlyArray<'ASSISTANT' | 'GENERAL_INQUIRY' | 'ORDERS'> = [];
51
+
52
+ // Agent inbox domains that are fully wired for field-doc email replies.
53
+ // Add future domains here only after their inbound agent implementation is ready.
54
+ export const FIELD_DOC_REPLY_TO_AGENT_DOMAINS = getEmailDomains('orders');
55
+
56
+ export const CAMPAIGN_REPLY_TO_AGENT_DOMAINS = [
57
+ ...new Set([...Object.values(OPERATION_INBOX_DOMAINS).flat(), ...DO_NOT_REPLY_EMAIL_DOMAINS]),
58
+ ];
59
+
60
+ export const REQUEST_SOURCE_ENUMS = ['SMS', 'WEB', 'EMAIL', 'WORKFLOW'] as const;
61
+
62
+ export const WORKFLOW_RUN_STATUS_ENUMS = ['STARTED', 'COMPLETED', 'COMPLETED_PARTIAL', 'ERRORED', 'QUEUED', 'CANCELED'];
63
+
64
+ export const WORKFLOW_KIND_ENUMS = ['WORKFLOW', 'REMINDER'];
65
+
66
+ export const WORKFLOW_TRIGGER_TYPE_ENUMS = ['LOG', 'SCHEDULE', 'ONCE'];
67
+
68
+ export const WORKFLOW_WAIT_CHANNEL_ENUMS = ['SMS', 'EMAIL'];
69
+
70
+ export const WORKFLOW_LIFECYCLE_STATUS_ENUMS = ['INACTIVE', 'ACTIVE', 'SCHEDULED', 'IN_PROGRESS', 'COMPLETED'];
71
+
72
+ export const WORKFLOW_SORT_ENUMS = ['CREATED_DESC', 'LAST_RUN_DESC', 'TITLE_ASC'];
73
+
74
+ export const WORKFLOW_RUN_SORT_ENUMS = ['LATEST_ACTIVITY_DESC'];
@@ -0,0 +1,389 @@
1
+ export const APP_NAME = 'Marketday';
2
+
3
+ // Max file size (client)
4
+
5
+ export const MAX_FILE_SIZE_CLIENT = 20 * 1024 * 1024; // 20 MB
6
+
7
+ // DOM element names (ids)
8
+
9
+ export const DOM_IDS = {
10
+ sidebarInput: 'sidebar_input',
11
+ mainFocusTextarea: 'main_tx',
12
+ mainBodyScrollArea: 'main_scr',
13
+ popOverScrollArea: 'pop_over_scr',
14
+ };
15
+
16
+ // Common style variables
17
+
18
+ export const END_BUTTON_WIDTH = '40px';
19
+ export const DATE_WIDTH = '100px';
20
+ export const DATE_AND_TIME_WIDTH = '180px';
21
+ export const DATE_AND_BUTTON_WIDTH = DATE_WIDTH + ' ' + END_BUTTON_WIDTH;
22
+
23
+ // Common, repeatable classnames
24
+
25
+ export const COMMON_CLASSNAMES = {
26
+ listContainerFlushRight: 'cw lg responsive pl_lg pr_10 pt_md pb_lg',
27
+ leftSidebarContainer: 'cw lg pr_md',
28
+ modalScreenSplitForm: 'h_top px_lg pb_md gap_lg',
29
+ modalScreenSplitContent: 'h_top px_md pb_md gap_lg',
30
+ modalScreenHeading: 'pt_lg pb_df ft_normal ft_xs cl_darker_2 ls_2',
31
+
32
+ // These are x-paddings used for consistency around content
33
+ tableRowXPadding: 'px_20',
34
+ contentXPadding: 'px_28',
35
+ contentPadding_shadow_offset: 'p_27',
36
+ contentXPadding_shadow_offset: 'px_27',
37
+ contentLeftPadding: 'pl_28',
38
+ contentSidebarClosedPadding: 'pl_8',
39
+ contentXMargin: 'mx_28',
40
+ };
41
+
42
+ // Local storage
43
+
44
+ export const STORAGE_KEYS = {
45
+ // Authentication
46
+ AUTH_TOKEN: 'AT', // There's no ":", so this is used as-is
47
+ LAST_VERSION: 'LV:', // ":" at end means it's a prefix
48
+ CURRENT_ACCOUNT_ID: 'CU:',
49
+
50
+ // Personalization
51
+ TABLE_COLUMNS_WIDTH: 'TC:',
52
+
53
+ // Settings
54
+ LIGHT_MODE: 'LM:',
55
+ } as Record<string, string>;
56
+
57
+ // Company address
58
+
59
+ export const COMPANY_ADDRESS = {
60
+ line1: '3053 Fillmore St.',
61
+ line2: '#231',
62
+ city: 'San Francisco',
63
+ state: 'CA',
64
+ postalCode: '94123',
65
+ country: 'US',
66
+ };
67
+
68
+ // Support emails
69
+
70
+ export const APP_EMAILS = {
71
+ assistant: 'assistant@marketday.ai',
72
+ support: 'hello@marketday.ai',
73
+ } as Record<string, string>;
74
+
75
+ // Social media
76
+
77
+ export const SOCIAL_URLS = {
78
+ MARKETDAY: {
79
+ x: 'https://x.com/?',
80
+ x_username: '?',
81
+ },
82
+ } as Record<
83
+ string,
84
+ {
85
+ x: string;
86
+ x_username: string;
87
+ }
88
+ >;
89
+
90
+ // Colors
91
+
92
+ export const COLORS = [
93
+ 'red',
94
+ 'orange',
95
+ 'brown',
96
+ 'amber',
97
+ 'yellow',
98
+ 'lime',
99
+ 'green',
100
+ 'emerald',
101
+ 'teal',
102
+ 'cyan',
103
+ 'sky',
104
+ 'blue',
105
+ 'indigo',
106
+ 'violet',
107
+ 'purple',
108
+ 'fuchsia',
109
+ 'pink',
110
+ 'rose',
111
+ 'slate',
112
+ 'zinc',
113
+ 'stone',
114
+ ];
115
+
116
+ // Major colors where limited color options are preferred
117
+
118
+ export const MAJOR_COLORS = [
119
+ 'red',
120
+ 'amber',
121
+ 'yellow',
122
+ 'emerald', // Using "emerald" instead of "green" because its closer to brand color
123
+ 'blue',
124
+ 'purple',
125
+ 'stone',
126
+ ];
127
+
128
+ // Languages
129
+
130
+ export const SUPPORTED_LANGUAGES = ['en', 'es'];
131
+
132
+ export const SUPPORTED_LOG_LANGUAGES = ['en', 'es', 'fr', 'pt', 'de', 'it', 'vi', 'zh-Hans'] as const;
133
+
134
+ export type SupportedLogLanguage = (typeof SUPPORTED_LOG_LANGUAGES)[number];
135
+
136
+ /*
137
+ * Return whether a value is one of the languages supported for log translation.
138
+ */
139
+ export function isSupportedLogLanguage(value: unknown): value is SupportedLogLanguage {
140
+ return typeof value === 'string' && (SUPPORTED_LOG_LANGUAGES as readonly string[]).includes(value);
141
+ }
142
+
143
+ // Countries
144
+
145
+ export const SUPPORTED_COUNTRIES = [
146
+ 'AF',
147
+ 'AX',
148
+ 'AL',
149
+ 'DZ',
150
+ 'AS',
151
+ 'AD',
152
+ 'AO',
153
+ 'AI',
154
+ 'AQ',
155
+ 'AG',
156
+ 'AR',
157
+ 'AM',
158
+ 'AW',
159
+ 'AU',
160
+ 'AT',
161
+ 'AZ',
162
+ 'BS',
163
+ 'BH',
164
+ 'BD',
165
+ 'BB',
166
+ 'BY',
167
+ 'BE',
168
+ 'BZ',
169
+ 'BJ',
170
+ 'BM',
171
+ 'BT',
172
+ 'BO',
173
+ 'BA',
174
+ 'BW',
175
+ 'BV',
176
+ 'BR',
177
+ 'IO',
178
+ 'BN',
179
+ 'BG',
180
+ 'BF',
181
+ 'BI',
182
+ 'KH',
183
+ 'CM',
184
+ 'CA',
185
+ 'CV',
186
+ 'KY',
187
+ 'CF',
188
+ 'TD',
189
+ 'CL',
190
+ 'CN',
191
+ 'CX',
192
+ 'CC',
193
+ 'CO',
194
+ 'KM',
195
+ 'CG',
196
+ 'CD',
197
+ 'CK',
198
+ 'CR',
199
+ 'CI',
200
+ 'HR',
201
+ 'CU',
202
+ 'CY',
203
+ 'CZ',
204
+ 'DK',
205
+ 'DJ',
206
+ 'DM',
207
+ 'DO',
208
+ 'EC',
209
+ 'EG',
210
+ 'SV',
211
+ 'GQ',
212
+ 'ER',
213
+ 'EE',
214
+ 'ET',
215
+ 'FK',
216
+ 'FO',
217
+ 'FJ',
218
+ 'FI',
219
+ 'FR',
220
+ 'GF',
221
+ 'PF',
222
+ 'TF',
223
+ 'GA',
224
+ 'GM',
225
+ 'GE',
226
+ 'DE',
227
+ 'GH',
228
+ 'GI',
229
+ 'GR',
230
+ 'GL',
231
+ 'GD',
232
+ 'GP',
233
+ 'GU',
234
+ 'GT',
235
+ 'GG',
236
+ 'GN',
237
+ 'GW',
238
+ 'GY',
239
+ 'HT',
240
+ 'HM',
241
+ 'VA',
242
+ 'HN',
243
+ 'HK',
244
+ 'HU',
245
+ 'IS',
246
+ 'IN',
247
+ 'ID',
248
+ 'IR',
249
+ 'IQ',
250
+ 'IE',
251
+ 'IM',
252
+ 'IL',
253
+ 'IT',
254
+ 'JM',
255
+ 'JP',
256
+ 'JE',
257
+ 'JO',
258
+ 'KZ',
259
+ 'KE',
260
+ 'KI',
261
+ 'KP',
262
+ 'KR',
263
+ 'KW',
264
+ 'KG',
265
+ 'LA',
266
+ 'LV',
267
+ 'LB',
268
+ 'LS',
269
+ 'LR',
270
+ 'LY',
271
+ 'LI',
272
+ 'LT',
273
+ 'LU',
274
+ 'MO',
275
+ 'MK',
276
+ 'MG',
277
+ 'MW',
278
+ 'MY',
279
+ 'MV',
280
+ 'ML',
281
+ 'MT',
282
+ 'MH',
283
+ 'MQ',
284
+ 'MR',
285
+ 'MU',
286
+ 'YT',
287
+ 'MX',
288
+ 'FM',
289
+ 'MD',
290
+ 'MC',
291
+ 'MN',
292
+ 'MS',
293
+ 'MA',
294
+ 'MZ',
295
+ 'MM',
296
+ 'NA',
297
+ 'NR',
298
+ 'NP',
299
+ 'NL',
300
+ 'AN',
301
+ 'NC',
302
+ 'NZ',
303
+ 'NI',
304
+ 'NE',
305
+ 'NG',
306
+ 'NU',
307
+ 'NF',
308
+ 'MP',
309
+ 'NO',
310
+ 'OM',
311
+ 'PK',
312
+ 'PW',
313
+ 'PS',
314
+ 'PA',
315
+ 'PG',
316
+ 'PY',
317
+ 'PE',
318
+ 'PH',
319
+ 'PN',
320
+ 'PL',
321
+ 'PT',
322
+ 'PR',
323
+ 'QA',
324
+ 'RE',
325
+ 'RO',
326
+ 'RU',
327
+ 'RW',
328
+ 'SH',
329
+ 'KN',
330
+ 'LC',
331
+ 'PM',
332
+ 'VC',
333
+ 'WS',
334
+ 'SM',
335
+ 'ST',
336
+ 'SA',
337
+ 'SN',
338
+ 'CS',
339
+ 'SC',
340
+ 'SL',
341
+ 'SG',
342
+ 'SK',
343
+ 'SI',
344
+ 'SB',
345
+ 'SO',
346
+ 'ZA',
347
+ 'GS',
348
+ 'ES',
349
+ 'LK',
350
+ 'SD',
351
+ 'SR',
352
+ 'SJ',
353
+ 'SZ',
354
+ 'SE',
355
+ 'CH',
356
+ 'SY',
357
+ 'TW',
358
+ 'TJ',
359
+ 'TZ',
360
+ 'TH',
361
+ 'TL',
362
+ 'TG',
363
+ 'TK',
364
+ 'TO',
365
+ 'TT',
366
+ 'TN',
367
+ 'TR',
368
+ 'TM',
369
+ 'TC',
370
+ 'TV',
371
+ 'UG',
372
+ 'UA',
373
+ 'AE',
374
+ 'GB',
375
+ 'US',
376
+ 'UM',
377
+ 'UY',
378
+ 'UZ',
379
+ 'VU',
380
+ 'VE',
381
+ 'VN',
382
+ 'VG',
383
+ 'VI',
384
+ 'WF',
385
+ 'EH',
386
+ 'YE',
387
+ 'ZM',
388
+ 'ZW',
389
+ ];