@eldrajs/sdk 0.2.8 → 0.3.0
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.
- package/CHANGELOG.md +36 -0
- package/README.md +49 -0
- package/THIRD-PARTY-NOTICES.md +18 -0
- package/dist/{client-t66vCzJf.js → client-COQ5N834.js} +55 -0
- package/dist/format/date.d.ts +4 -0
- package/dist/format/date.js +12214 -0
- package/dist/format/display-names.d.ts +4 -0
- package/dist/format/display-names.js +4905 -0
- package/dist/format/list.d.ts +4 -0
- package/dist/format/list.js +902 -0
- package/dist/format/relative-time.d.ts +4 -0
- package/dist/format/relative-time.js +1546 -0
- package/dist/format.d.ts +12 -0
- package/dist/format.js +72 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/locale-DOZdbAbY.js +4011 -0
- package/dist/number-D3Vt6TOL.js +9585 -0
- package/dist/{types-B40H01uK.d.ts → types-Cs5t0rx7.d.ts} +102 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +1 -1
- package/package.json +32 -3
|
@@ -0,0 +1,1546 @@
|
|
|
1
|
+
import { r as withOurNumberFormat } from "../number-D3Vt6TOL.js";
|
|
2
|
+
import { i as ResolveLocale, n as usesBundledData, r as LookupSupportedLocales, t as cached } from "../locale-DOZdbAbY.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@formatjs+intl-relativetimeformat@12.3.15/node_modules/@formatjs/intl-relativetimeformat/index.js
|
|
4
|
+
const defaultContent = {
|
|
5
|
+
"aa": ["aa-ET"],
|
|
6
|
+
"ab": ["ab-GE"],
|
|
7
|
+
"af": ["af-ZA"],
|
|
8
|
+
"agq": ["agq-CM"],
|
|
9
|
+
"ak": ["ak-GH"],
|
|
10
|
+
"am": ["am-ET"],
|
|
11
|
+
"an": ["an-ES"],
|
|
12
|
+
"ann": ["ann-NG"],
|
|
13
|
+
"apc": ["apc-SY"],
|
|
14
|
+
"ar": ["ar-001"],
|
|
15
|
+
"arn": ["arn-CL"],
|
|
16
|
+
"as": ["as-IN"],
|
|
17
|
+
"asa": ["asa-TZ"],
|
|
18
|
+
"ast": ["ast-ES"],
|
|
19
|
+
"az-Arab": ["az-Arab-IR"],
|
|
20
|
+
"az-Cyrl": ["az-Cyrl-AZ"],
|
|
21
|
+
"az-Latn": ["az-Latn-AZ"],
|
|
22
|
+
"ba": ["ba-RU"],
|
|
23
|
+
"bal-Arab": ["bal-Arab-PK"],
|
|
24
|
+
"bal-Latn": ["bal-Latn-PK"],
|
|
25
|
+
"bas": ["bas-CM"],
|
|
26
|
+
"be": ["be-BY"],
|
|
27
|
+
"bem": ["bem-ZM"],
|
|
28
|
+
"bew": ["bew-ID"],
|
|
29
|
+
"bez": ["bez-TZ"],
|
|
30
|
+
"bg": ["bg-BG"],
|
|
31
|
+
"bgc": ["bgc-IN"],
|
|
32
|
+
"bgn": ["bgn-PK"],
|
|
33
|
+
"bho": ["bho-IN"],
|
|
34
|
+
"blo": ["blo-BJ"],
|
|
35
|
+
"blt": ["blt-VN"],
|
|
36
|
+
"bm": ["bm-ML"],
|
|
37
|
+
"bm-Nkoo": ["bm-Nkoo-ML"],
|
|
38
|
+
"bn": ["bn-BD"],
|
|
39
|
+
"bo": ["bo-CN"],
|
|
40
|
+
"bqi": ["bqi-IR"],
|
|
41
|
+
"br": ["br-FR"],
|
|
42
|
+
"brx": ["brx-IN"],
|
|
43
|
+
"bs-Cyrl": ["bs-Cyrl-BA"],
|
|
44
|
+
"bs-Latn": ["bs-Latn-BA"],
|
|
45
|
+
"bss": ["bss-CM"],
|
|
46
|
+
"bua": ["bua-RU"],
|
|
47
|
+
"byn": ["byn-ER"],
|
|
48
|
+
"ca": ["ca-ES"],
|
|
49
|
+
"cad": ["cad-US"],
|
|
50
|
+
"cch": ["cch-NG"],
|
|
51
|
+
"ccp": ["ccp-BD"],
|
|
52
|
+
"ce": ["ce-RU"],
|
|
53
|
+
"ceb": ["ceb-PH"],
|
|
54
|
+
"cgg": ["cgg-UG"],
|
|
55
|
+
"cho": ["cho-US"],
|
|
56
|
+
"chr": ["chr-US"],
|
|
57
|
+
"cic": ["cic-US"],
|
|
58
|
+
"ckb": ["ckb-IQ"],
|
|
59
|
+
"co": ["co-FR"],
|
|
60
|
+
"cop": ["cop-EG"],
|
|
61
|
+
"cs": ["cs-CZ"],
|
|
62
|
+
"csw": ["csw-CA"],
|
|
63
|
+
"cu": ["cu-RU"],
|
|
64
|
+
"cv": ["cv-RU"],
|
|
65
|
+
"cy": ["cy-GB"],
|
|
66
|
+
"da": ["da-DK"],
|
|
67
|
+
"dav": ["dav-KE"],
|
|
68
|
+
"de": ["de-DE"],
|
|
69
|
+
"dje": ["dje-NE"],
|
|
70
|
+
"doi": ["doi-IN"],
|
|
71
|
+
"dsb": ["dsb-DE"],
|
|
72
|
+
"dua": ["dua-CM"],
|
|
73
|
+
"dv": ["dv-MV"],
|
|
74
|
+
"dyo": ["dyo-SN"],
|
|
75
|
+
"dz": ["dz-BT"],
|
|
76
|
+
"ebu": ["ebu-KE"],
|
|
77
|
+
"ee": ["ee-GH"],
|
|
78
|
+
"el": ["el-GR"],
|
|
79
|
+
"en-Dsrt": ["en-Dsrt-US"],
|
|
80
|
+
"en-Shaw": ["en-Shaw-GB"],
|
|
81
|
+
"en": ["en-US"],
|
|
82
|
+
"eo": ["eo-001"],
|
|
83
|
+
"es": ["es-ES"],
|
|
84
|
+
"et": ["et-EE"],
|
|
85
|
+
"eu": ["eu-ES"],
|
|
86
|
+
"ewo": ["ewo-CM"],
|
|
87
|
+
"fa": ["fa-IR"],
|
|
88
|
+
"ff-Adlm": ["ff-Adlm-GN"],
|
|
89
|
+
"ff-Latn": ["ff-Latn-SN"],
|
|
90
|
+
"fi": ["fi-FI"],
|
|
91
|
+
"fil": ["fil-PH"],
|
|
92
|
+
"fo": ["fo-FO"],
|
|
93
|
+
"fr": ["fr-FR"],
|
|
94
|
+
"frr": ["frr-DE"],
|
|
95
|
+
"fur": ["fur-IT"],
|
|
96
|
+
"fy": ["fy-NL"],
|
|
97
|
+
"ga": ["ga-IE"],
|
|
98
|
+
"gaa": ["gaa-GH"],
|
|
99
|
+
"gd": ["gd-GB"],
|
|
100
|
+
"gez": ["gez-ET"],
|
|
101
|
+
"gl": ["gl-ES"],
|
|
102
|
+
"gn": ["gn-PY"],
|
|
103
|
+
"gsw": ["gsw-CH"],
|
|
104
|
+
"gu": ["gu-IN"],
|
|
105
|
+
"guz": ["guz-KE"],
|
|
106
|
+
"gv": ["gv-IM"],
|
|
107
|
+
"ha-Arab": ["ha-Arab-NG"],
|
|
108
|
+
"ha": ["ha-NG"],
|
|
109
|
+
"haw": ["haw-US"],
|
|
110
|
+
"he": ["he-IL"],
|
|
111
|
+
"hi": ["hi-IN"],
|
|
112
|
+
"hi-Latn": ["hi-Latn-IN"],
|
|
113
|
+
"hnj-Hmnp": ["hnj-Hmnp-US"],
|
|
114
|
+
"hr": ["hr-HR"],
|
|
115
|
+
"hsb": ["hsb-DE"],
|
|
116
|
+
"ht": ["ht-HT"],
|
|
117
|
+
"hu": ["hu-HU"],
|
|
118
|
+
"hy": ["hy-AM"],
|
|
119
|
+
"ia": ["ia-001"],
|
|
120
|
+
"id": ["id-ID"],
|
|
121
|
+
"ie": ["ie-EE"],
|
|
122
|
+
"ig": ["ig-NG"],
|
|
123
|
+
"ii": ["ii-CN"],
|
|
124
|
+
"io": ["io-001"],
|
|
125
|
+
"is": ["is-IS"],
|
|
126
|
+
"it": ["it-IT"],
|
|
127
|
+
"iu": ["iu-CA"],
|
|
128
|
+
"iu-Latn": ["iu-Latn-CA"],
|
|
129
|
+
"ja": ["ja-JP"],
|
|
130
|
+
"jbo": ["jbo-001"],
|
|
131
|
+
"jgo": ["jgo-CM"],
|
|
132
|
+
"jmc": ["jmc-TZ"],
|
|
133
|
+
"jv": ["jv-ID"],
|
|
134
|
+
"ka": ["ka-GE"],
|
|
135
|
+
"kaa-Cyrl": ["kaa-Cyrl-UZ"],
|
|
136
|
+
"kaa-Latn": ["kaa-Latn-UZ"],
|
|
137
|
+
"kab": ["kab-DZ"],
|
|
138
|
+
"kaj": ["kaj-NG"],
|
|
139
|
+
"kam": ["kam-KE"],
|
|
140
|
+
"kcg": ["kcg-NG"],
|
|
141
|
+
"kde": ["kde-TZ"],
|
|
142
|
+
"kea": ["kea-CV"],
|
|
143
|
+
"kek": ["kek-GT"],
|
|
144
|
+
"ken": ["ken-CM"],
|
|
145
|
+
"kgp": ["kgp-BR"],
|
|
146
|
+
"khq": ["khq-ML"],
|
|
147
|
+
"ki": ["ki-KE"],
|
|
148
|
+
"kk-Arab": ["kk-Arab-CN"],
|
|
149
|
+
"kk-Cyrl": ["kk-Cyrl-KZ"],
|
|
150
|
+
"kkj": ["kkj-CM"],
|
|
151
|
+
"kl": ["kl-GL"],
|
|
152
|
+
"kln": ["kln-KE"],
|
|
153
|
+
"km": ["km-KH"],
|
|
154
|
+
"kn": ["kn-IN"],
|
|
155
|
+
"ko": ["ko-KR"],
|
|
156
|
+
"kok-Deva": ["kok-Deva-IN"],
|
|
157
|
+
"kok-Latn": ["kok-Latn-IN"],
|
|
158
|
+
"kpe": ["kpe-LR"],
|
|
159
|
+
"ks-Arab": ["ks-Arab-IN"],
|
|
160
|
+
"ks-Deva": ["ks-Deva-IN"],
|
|
161
|
+
"ksb": ["ksb-TZ"],
|
|
162
|
+
"ksf": ["ksf-CM"],
|
|
163
|
+
"ksh": ["ksh-DE"],
|
|
164
|
+
"ku-Arab": ["ku-Arab-IQ"],
|
|
165
|
+
"ku-Latn": ["ku-Latn-TR"],
|
|
166
|
+
"kw": ["kw-GB"],
|
|
167
|
+
"kxv-Deva": ["kxv-Deva-IN"],
|
|
168
|
+
"kxv-Latn": ["kxv-Latn-IN"],
|
|
169
|
+
"kxv-Orya": ["kxv-Orya-IN"],
|
|
170
|
+
"kxv-Telu": ["kxv-Telu-IN"],
|
|
171
|
+
"ky": ["ky-KG"],
|
|
172
|
+
"la": ["la-VA"],
|
|
173
|
+
"lag": ["lag-TZ"],
|
|
174
|
+
"lb": ["lb-LU"],
|
|
175
|
+
"lg": ["lg-UG"],
|
|
176
|
+
"lij": ["lij-IT"],
|
|
177
|
+
"lkt": ["lkt-US"],
|
|
178
|
+
"lld": ["lld-IT"],
|
|
179
|
+
"lmo": ["lmo-IT"],
|
|
180
|
+
"ln": ["ln-CD"],
|
|
181
|
+
"lo": ["lo-LA"],
|
|
182
|
+
"lrc": ["lrc-IR"],
|
|
183
|
+
"lt": ["lt-LT"],
|
|
184
|
+
"ltg": ["ltg-LV"],
|
|
185
|
+
"lu": ["lu-CD"],
|
|
186
|
+
"luo": ["luo-KE"],
|
|
187
|
+
"luy": ["luy-KE"],
|
|
188
|
+
"lv": ["lv-LV"],
|
|
189
|
+
"lzz": ["lzz-TR"],
|
|
190
|
+
"mai": ["mai-IN"],
|
|
191
|
+
"mas": ["mas-KE"],
|
|
192
|
+
"mdf": ["mdf-RU"],
|
|
193
|
+
"mer": ["mer-KE"],
|
|
194
|
+
"mfe": ["mfe-MU"],
|
|
195
|
+
"mg": ["mg-MG"],
|
|
196
|
+
"mgh": ["mgh-MZ"],
|
|
197
|
+
"mgo": ["mgo-CM"],
|
|
198
|
+
"mhn": ["mhn-IT"],
|
|
199
|
+
"mi": ["mi-NZ"],
|
|
200
|
+
"mic": ["mic-CA"],
|
|
201
|
+
"mk": ["mk-MK"],
|
|
202
|
+
"ml": ["ml-IN"],
|
|
203
|
+
"mn": ["mn-MN"],
|
|
204
|
+
"mn-Mong": ["mn-Mong-CN"],
|
|
205
|
+
"mni-Beng": ["mni-Beng-IN"],
|
|
206
|
+
"mni-Mtei": ["mni-Mtei-IN"],
|
|
207
|
+
"moh": ["moh-CA"],
|
|
208
|
+
"mr": ["mr-IN"],
|
|
209
|
+
"ms-Arab": ["ms-Arab-MY"],
|
|
210
|
+
"ms": ["ms-MY"],
|
|
211
|
+
"mt": ["mt-MT"],
|
|
212
|
+
"mua": ["mua-CM"],
|
|
213
|
+
"mus": ["mus-US"],
|
|
214
|
+
"mww-Hmnp": ["mww-Hmnp-US"],
|
|
215
|
+
"my": ["my-MM"],
|
|
216
|
+
"myv": ["myv-RU"],
|
|
217
|
+
"mzn": ["mzn-IR"],
|
|
218
|
+
"naq": ["naq-NA"],
|
|
219
|
+
"nb": ["nb-NO"],
|
|
220
|
+
"nd": ["nd-ZW"],
|
|
221
|
+
"nds": ["nds-DE"],
|
|
222
|
+
"ne": ["ne-NP"],
|
|
223
|
+
"nl": ["nl-NL"],
|
|
224
|
+
"nmg": ["nmg-CM"],
|
|
225
|
+
"nn": ["nn-NO"],
|
|
226
|
+
"nnh": ["nnh-CM"],
|
|
227
|
+
"nqo": ["nqo-GN"],
|
|
228
|
+
"nr": ["nr-ZA"],
|
|
229
|
+
"nso": ["nso-ZA"],
|
|
230
|
+
"nus": ["nus-SS"],
|
|
231
|
+
"nv": ["nv-US"],
|
|
232
|
+
"ny": ["ny-MW"],
|
|
233
|
+
"nyn": ["nyn-UG"],
|
|
234
|
+
"oc": ["oc-FR"],
|
|
235
|
+
"oka": ["oka-CA"],
|
|
236
|
+
"om": ["om-ET"],
|
|
237
|
+
"or": ["or-IN"],
|
|
238
|
+
"os": ["os-GE"],
|
|
239
|
+
"osa": ["osa-US"],
|
|
240
|
+
"pa-Arab": ["pa-Arab-PK"],
|
|
241
|
+
"pa-Guru": ["pa-Guru-IN"],
|
|
242
|
+
"pap": ["pap-CW"],
|
|
243
|
+
"pcm": ["pcm-NG"],
|
|
244
|
+
"pi-Latn": ["pi-Latn-GB"],
|
|
245
|
+
"pis": ["pis-SB"],
|
|
246
|
+
"pl": ["pl-PL"],
|
|
247
|
+
"pms": ["pms-IT"],
|
|
248
|
+
"prg": ["prg-PL"],
|
|
249
|
+
"ps": ["ps-AF"],
|
|
250
|
+
"pt": ["pt-BR"],
|
|
251
|
+
"qu": ["qu-PE"],
|
|
252
|
+
"quc": ["quc-GT"],
|
|
253
|
+
"raj": ["raj-IN"],
|
|
254
|
+
"rhg-Rohg": ["rhg-Rohg-MM"],
|
|
255
|
+
"rif": ["rif-MA"],
|
|
256
|
+
"rm": ["rm-CH"],
|
|
257
|
+
"rn": ["rn-BI"],
|
|
258
|
+
"ro": ["ro-RO"],
|
|
259
|
+
"rof": ["rof-TZ"],
|
|
260
|
+
"ru": ["ru-RU"],
|
|
261
|
+
"rw": ["rw-RW"],
|
|
262
|
+
"rwk": ["rwk-TZ"],
|
|
263
|
+
"sa": ["sa-IN"],
|
|
264
|
+
"sah": ["sah-RU"],
|
|
265
|
+
"saq": ["saq-KE"],
|
|
266
|
+
"sat-Deva": ["sat-Deva-IN"],
|
|
267
|
+
"sat-Olck": ["sat-Olck-IN"],
|
|
268
|
+
"sbp": ["sbp-TZ"],
|
|
269
|
+
"sc": ["sc-IT"],
|
|
270
|
+
"scn": ["scn-IT"],
|
|
271
|
+
"sd-Arab": ["sd-Arab-PK"],
|
|
272
|
+
"sd-Deva": ["sd-Deva-IN"],
|
|
273
|
+
"sdh": ["sdh-IR"],
|
|
274
|
+
"se": ["se-NO"],
|
|
275
|
+
"seh": ["seh-MZ"],
|
|
276
|
+
"ses": ["ses-ML"],
|
|
277
|
+
"sg": ["sg-CF"],
|
|
278
|
+
"sgs": ["sgs-LT"],
|
|
279
|
+
"shi-Latn": ["shi-Latn-MA"],
|
|
280
|
+
"shi-Tfng": ["shi-Tfng-MA"],
|
|
281
|
+
"shn": ["shn-MM"],
|
|
282
|
+
"si": ["si-LK"],
|
|
283
|
+
"sid": ["sid-ET"],
|
|
284
|
+
"sk": ["sk-SK"],
|
|
285
|
+
"skr": ["skr-PK"],
|
|
286
|
+
"sl": ["sl-SI"],
|
|
287
|
+
"sma": ["sma-SE"],
|
|
288
|
+
"smj": ["smj-SE"],
|
|
289
|
+
"smn": ["smn-FI"],
|
|
290
|
+
"sms": ["sms-FI"],
|
|
291
|
+
"sn": ["sn-ZW"],
|
|
292
|
+
"so": ["so-SO"],
|
|
293
|
+
"sq": ["sq-AL"],
|
|
294
|
+
"sr-Cyrl": ["sr-Cyrl-RS"],
|
|
295
|
+
"sr-Latn": ["sr-Latn-RS"],
|
|
296
|
+
"ss": ["ss-ZA"],
|
|
297
|
+
"ssy": ["ssy-ER"],
|
|
298
|
+
"st": ["st-ZA"],
|
|
299
|
+
"su-Latn": ["su-Latn-ID"],
|
|
300
|
+
"suz-Deva": ["suz-Deva-NP"],
|
|
301
|
+
"suz-Sunu": ["suz-Sunu-NP"],
|
|
302
|
+
"sv": ["sv-SE"],
|
|
303
|
+
"sw": ["sw-TZ"],
|
|
304
|
+
"syr": ["syr-IQ"],
|
|
305
|
+
"szl": ["szl-PL"],
|
|
306
|
+
"ta": ["ta-IN"],
|
|
307
|
+
"te": ["te-IN"],
|
|
308
|
+
"teo": ["teo-UG"],
|
|
309
|
+
"tg": ["tg-TJ"],
|
|
310
|
+
"th": ["th-TH"],
|
|
311
|
+
"ti": ["ti-ET"],
|
|
312
|
+
"tig": ["tig-ER"],
|
|
313
|
+
"tk": ["tk-TM"],
|
|
314
|
+
"tn": ["tn-ZA"],
|
|
315
|
+
"to": ["to-TO"],
|
|
316
|
+
"tok": ["tok-001"],
|
|
317
|
+
"tpi": ["tpi-PG"],
|
|
318
|
+
"tr": ["tr-TR"],
|
|
319
|
+
"trv": ["trv-TW"],
|
|
320
|
+
"trw": ["trw-PK"],
|
|
321
|
+
"ts": ["ts-ZA"],
|
|
322
|
+
"tt": ["tt-RU"],
|
|
323
|
+
"twq": ["twq-NE"],
|
|
324
|
+
"tyv": ["tyv-RU"],
|
|
325
|
+
"tzm": ["tzm-MA"],
|
|
326
|
+
"ug": ["ug-CN"],
|
|
327
|
+
"uk": ["uk-UA"],
|
|
328
|
+
"ur": ["ur-PK"],
|
|
329
|
+
"uz-Arab": ["uz-Arab-AF"],
|
|
330
|
+
"uz-Cyrl": ["uz-Cyrl-UZ"],
|
|
331
|
+
"uz-Latn": ["uz-Latn-UZ"],
|
|
332
|
+
"vai-Latn": ["vai-Latn-LR"],
|
|
333
|
+
"vai-Vaii": ["vai-Vaii-LR"],
|
|
334
|
+
"ve": ["ve-ZA"],
|
|
335
|
+
"vec": ["vec-IT"],
|
|
336
|
+
"vi": ["vi-VN"],
|
|
337
|
+
"vmw": ["vmw-MZ"],
|
|
338
|
+
"vo": ["vo-001"],
|
|
339
|
+
"vun": ["vun-TZ"],
|
|
340
|
+
"wa": ["wa-BE"],
|
|
341
|
+
"wae": ["wae-CH"],
|
|
342
|
+
"wal": ["wal-ET"],
|
|
343
|
+
"wbp": ["wbp-AU"],
|
|
344
|
+
"wo": ["wo-SN"],
|
|
345
|
+
"xh": ["xh-ZA"],
|
|
346
|
+
"xnr": ["xnr-IN"],
|
|
347
|
+
"xog": ["xog-UG"],
|
|
348
|
+
"yav": ["yav-CM"],
|
|
349
|
+
"yi": ["yi-UA"],
|
|
350
|
+
"yo": ["yo-NG"],
|
|
351
|
+
"yrl": ["yrl-BR"],
|
|
352
|
+
"yue-Hans": ["yue-Hans-CN"],
|
|
353
|
+
"yue-Hant": ["yue-Hant-HK"],
|
|
354
|
+
"za": ["za-CN"],
|
|
355
|
+
"zgh": ["zgh-MA"],
|
|
356
|
+
"zh-Hans": ["zh-Hans-CN"],
|
|
357
|
+
"zh-Hant": ["zh-Hant-TW"],
|
|
358
|
+
"zh-Latn": ["zh-Latn-CN"],
|
|
359
|
+
"zu": ["zu-ZA"]
|
|
360
|
+
};
|
|
361
|
+
const explicitLocales = /* @__PURE__ */ new WeakMap();
|
|
362
|
+
function registerLocaleData(locale, data, localeData, availableLocales) {
|
|
363
|
+
let loaded = explicitLocales.get(localeData);
|
|
364
|
+
if (!loaded) {
|
|
365
|
+
loaded = /* @__PURE__ */ new Set();
|
|
366
|
+
explicitLocales.set(localeData, loaded);
|
|
367
|
+
}
|
|
368
|
+
loaded.add(locale);
|
|
369
|
+
const locales = [locale, ...defaultContent[locale] || []];
|
|
370
|
+
for (const tag of locales) {
|
|
371
|
+
if (tag === locale || !loaded.has(tag) || localeData[tag] === void 0) localeData[tag] = data;
|
|
372
|
+
availableLocales.add(tag);
|
|
373
|
+
}
|
|
374
|
+
for (const tag of locales) {
|
|
375
|
+
const parts = tag.split("-");
|
|
376
|
+
const fallbacks = [];
|
|
377
|
+
while (parts.length > 1) {
|
|
378
|
+
if (parts.length > 2 && parts[1].length === 4) fallbacks.push([parts[0], ...parts.slice(2)].join("-"));
|
|
379
|
+
parts.pop();
|
|
380
|
+
fallbacks.push(parts.join("-"));
|
|
381
|
+
}
|
|
382
|
+
for (const fallback of fallbacks) {
|
|
383
|
+
if (localeData[fallback] === void 0) localeData[fallback] = localeData[tag];
|
|
384
|
+
availableLocales.add(fallback);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* https://tc39.es/ecma262/#sec-tostring
|
|
390
|
+
*/
|
|
391
|
+
function ToString(o) {
|
|
392
|
+
if (typeof o === "symbol") throw TypeError("Cannot convert a Symbol value to a string");
|
|
393
|
+
return String(o);
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
397
|
+
* @param locales
|
|
398
|
+
*/
|
|
399
|
+
function CanonicalizeLocaleList(locales) {
|
|
400
|
+
return Intl.getCanonicalLocales(locales);
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* https://tc39.es/ecma262/#sec-toobject
|
|
404
|
+
*/
|
|
405
|
+
function ToObject(arg) {
|
|
406
|
+
if (arg == null) throw new TypeError("undefined/null cannot be converted to object");
|
|
407
|
+
return Object(arg);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* https://tc39.es/ecma402/#sec-getoption
|
|
411
|
+
* @param opts
|
|
412
|
+
* @param prop
|
|
413
|
+
* @param type
|
|
414
|
+
* @param values
|
|
415
|
+
* @param fallback
|
|
416
|
+
*/
|
|
417
|
+
function GetOption(opts, prop, type, values, fallback) {
|
|
418
|
+
if (opts === null || typeof opts !== "object" && typeof opts !== "function") throw new TypeError("Options must be an object");
|
|
419
|
+
let value = opts[prop];
|
|
420
|
+
if (value !== void 0) {
|
|
421
|
+
if (type !== "boolean" && type !== "string") throw new TypeError("invalid type");
|
|
422
|
+
if (type === "boolean") value = Boolean(value);
|
|
423
|
+
if (type === "string") value = ToString(value);
|
|
424
|
+
if (values !== void 0 && !values.filter((val) => val == value).length) throw new RangeError(`${value} is not within ${values.join(", ")}`);
|
|
425
|
+
return value;
|
|
426
|
+
}
|
|
427
|
+
return fallback;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* https://tc39.es/ecma402/#sec-supportedlocales
|
|
431
|
+
* @param availableLocales
|
|
432
|
+
* @param requestedLocales
|
|
433
|
+
* @param options
|
|
434
|
+
*/
|
|
435
|
+
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
436
|
+
let matcher = "best fit";
|
|
437
|
+
if (options !== void 0) {
|
|
438
|
+
options = ToObject(options);
|
|
439
|
+
matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
440
|
+
}
|
|
441
|
+
if (matcher === "best fit") return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
442
|
+
return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
443
|
+
}
|
|
444
|
+
/** Tests the Unicode locale identifier `type` grammar, not locale support. */
|
|
445
|
+
function IsUnicodeLocaleIdentifierType(value) {
|
|
446
|
+
return /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*(?![\s\S])/i.test(value);
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* https://tc39.es/ecma402/#sec-coerceoptionstoobject
|
|
450
|
+
* @param options
|
|
451
|
+
* @returns
|
|
452
|
+
*/
|
|
453
|
+
function CoerceOptionsToObject(options) {
|
|
454
|
+
if (typeof options === "undefined") return Object.create(null);
|
|
455
|
+
return ToObject(options);
|
|
456
|
+
}
|
|
457
|
+
function memoize(fn, options) {
|
|
458
|
+
const cache = options && options.cache ? options.cache : cacheDefault;
|
|
459
|
+
const serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
460
|
+
return (options && options.strategy ? options.strategy : strategyDefault)(fn, {
|
|
461
|
+
cache,
|
|
462
|
+
serializer
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
function isPrimitive(value) {
|
|
466
|
+
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
467
|
+
}
|
|
468
|
+
function monadic(fn, cache, serializer, arg) {
|
|
469
|
+
const cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
470
|
+
let computedValue = cache.get(cacheKey);
|
|
471
|
+
if (typeof computedValue === "undefined") {
|
|
472
|
+
computedValue = fn.call(this, arg);
|
|
473
|
+
cache.set(cacheKey, computedValue);
|
|
474
|
+
}
|
|
475
|
+
return computedValue;
|
|
476
|
+
}
|
|
477
|
+
function variadic(fn, cache, serializer) {
|
|
478
|
+
const args = Array.prototype.slice.call(arguments, 3);
|
|
479
|
+
const cacheKey = serializer(args);
|
|
480
|
+
let computedValue = cache.get(cacheKey);
|
|
481
|
+
if (typeof computedValue === "undefined") {
|
|
482
|
+
computedValue = fn.apply(this, args);
|
|
483
|
+
cache.set(cacheKey, computedValue);
|
|
484
|
+
}
|
|
485
|
+
return computedValue;
|
|
486
|
+
}
|
|
487
|
+
function assemble(fn, context, strategy, cache, serialize) {
|
|
488
|
+
return strategy.bind(context, fn, cache, serialize);
|
|
489
|
+
}
|
|
490
|
+
function strategyDefault(fn, options) {
|
|
491
|
+
const strategy = fn.length === 1 ? monadic : variadic;
|
|
492
|
+
return assemble(fn, this, strategy, options.cache.create(), options.serializer);
|
|
493
|
+
}
|
|
494
|
+
function strategyVariadic(fn, options) {
|
|
495
|
+
return assemble(fn, this, variadic, options.cache.create(), options.serializer);
|
|
496
|
+
}
|
|
497
|
+
function strategyMonadic(fn, options) {
|
|
498
|
+
return assemble(fn, this, monadic, options.cache.create(), options.serializer);
|
|
499
|
+
}
|
|
500
|
+
const serializerDefault = function() {
|
|
501
|
+
return JSON.stringify(arguments);
|
|
502
|
+
};
|
|
503
|
+
var ObjectWithoutPrototypeCache = class {
|
|
504
|
+
constructor() {
|
|
505
|
+
this.cache = Object.create(null);
|
|
506
|
+
}
|
|
507
|
+
get(key) {
|
|
508
|
+
return this.cache[key];
|
|
509
|
+
}
|
|
510
|
+
set(key, value) {
|
|
511
|
+
this.cache[key] = value;
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
const cacheDefault = { create: function create() {
|
|
515
|
+
return new ObjectWithoutPrototypeCache();
|
|
516
|
+
} };
|
|
517
|
+
const strategies = {
|
|
518
|
+
variadic: strategyVariadic,
|
|
519
|
+
monadic: strategyMonadic
|
|
520
|
+
};
|
|
521
|
+
function invariant(condition, message, Err = Error) {
|
|
522
|
+
if (!condition) throw new Err(message);
|
|
523
|
+
}
|
|
524
|
+
const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });
|
|
525
|
+
const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });
|
|
526
|
+
memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });
|
|
527
|
+
function InitializeRelativeTimeFormat(rtf, locales, options, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale }) {
|
|
528
|
+
const internalSlots = getInternalSlots(rtf);
|
|
529
|
+
internalSlots.initializedRelativeTimeFormat = true;
|
|
530
|
+
const requestedLocales = CanonicalizeLocaleList(locales);
|
|
531
|
+
const opt = Object.create(null);
|
|
532
|
+
const opts = CoerceOptionsToObject(options);
|
|
533
|
+
opt.localeMatcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
|
|
534
|
+
const numberingSystem = GetOption(opts, "numberingSystem", "string", void 0, void 0);
|
|
535
|
+
if (numberingSystem !== void 0) {
|
|
536
|
+
if (!IsUnicodeLocaleIdentifierType(numberingSystem)) throw new RangeError(`Invalid numbering system ${numberingSystem}`);
|
|
537
|
+
}
|
|
538
|
+
opt.nu = numberingSystem;
|
|
539
|
+
const r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
|
|
540
|
+
const { locale, nu } = r;
|
|
541
|
+
internalSlots.locale = locale;
|
|
542
|
+
internalSlots.style = GetOption(opts, "style", "string", [
|
|
543
|
+
"long",
|
|
544
|
+
"narrow",
|
|
545
|
+
"short"
|
|
546
|
+
], "long");
|
|
547
|
+
internalSlots.numeric = GetOption(opts, "numeric", "string", ["always", "auto"], "always");
|
|
548
|
+
const fields = localeData[r.dataLocale];
|
|
549
|
+
invariant(!!fields, `Missing locale data for ${r.dataLocale}`);
|
|
550
|
+
internalSlots.fields = fields;
|
|
551
|
+
const nfOptions = Object.create(null);
|
|
552
|
+
nfOptions.numberingSystem = nu;
|
|
553
|
+
internalSlots.numberFormat = createMemoizedNumberFormat(locale, nfOptions);
|
|
554
|
+
internalSlots.pluralRules = createMemoizedPluralRules(locale);
|
|
555
|
+
internalSlots.numberingSystem = nu;
|
|
556
|
+
return rtf;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-samevalue
|
|
560
|
+
*/
|
|
561
|
+
function SameValue(x, y) {
|
|
562
|
+
if (Object.is) return Object.is(x, y);
|
|
563
|
+
if (x === y) return x !== 0 || 1 / x === 1 / y;
|
|
564
|
+
return x !== x && y !== y;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-type
|
|
568
|
+
*/
|
|
569
|
+
function Type(x) {
|
|
570
|
+
if (x === null) return "Null";
|
|
571
|
+
if (typeof x === "undefined") return "Undefined";
|
|
572
|
+
if (typeof x === "function" || typeof x === "object") return "Object";
|
|
573
|
+
if (typeof x === "number") return "Number";
|
|
574
|
+
if (typeof x === "boolean") return "Boolean";
|
|
575
|
+
if (typeof x === "string") return "String";
|
|
576
|
+
if (typeof x === "symbol") return "Symbol";
|
|
577
|
+
if (typeof x === "bigint") return "BigInt";
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* https://tc39.es/proposal-intl-relative-time/#sec-singularrelativetimeunit
|
|
581
|
+
* @param unit
|
|
582
|
+
*/
|
|
583
|
+
function SingularRelativeTimeUnit(unit) {
|
|
584
|
+
invariant(Type(unit) === "String", "unit must be a string");
|
|
585
|
+
if (unit === "seconds") return "second";
|
|
586
|
+
if (unit === "minutes") return "minute";
|
|
587
|
+
if (unit === "hours") return "hour";
|
|
588
|
+
if (unit === "days") return "day";
|
|
589
|
+
if (unit === "weeks") return "week";
|
|
590
|
+
if (unit === "months") return "month";
|
|
591
|
+
if (unit === "quarters") return "quarter";
|
|
592
|
+
if (unit === "years") return "year";
|
|
593
|
+
if (unit !== "second" && unit !== "minute" && unit !== "hour" && unit !== "day" && unit !== "week" && unit !== "month" && unit !== "quarter" && unit !== "year") throw new RangeError("invalid unit");
|
|
594
|
+
return unit;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Partition a pattern into a list of literals and placeholders
|
|
598
|
+
* https://tc39.es/ecma402/#sec-partitionpattern
|
|
599
|
+
* @param pattern
|
|
600
|
+
*/
|
|
601
|
+
function PartitionPattern(pattern) {
|
|
602
|
+
const result = [];
|
|
603
|
+
let beginIndex = pattern.indexOf("{");
|
|
604
|
+
let endIndex = 0;
|
|
605
|
+
let nextIndex = 0;
|
|
606
|
+
const length = pattern.length;
|
|
607
|
+
while (beginIndex < pattern.length && beginIndex > -1) {
|
|
608
|
+
endIndex = pattern.indexOf("}", beginIndex);
|
|
609
|
+
invariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);
|
|
610
|
+
if (beginIndex > nextIndex) result.push({
|
|
611
|
+
type: "literal",
|
|
612
|
+
value: pattern.substring(nextIndex, beginIndex)
|
|
613
|
+
});
|
|
614
|
+
result.push({
|
|
615
|
+
type: pattern.substring(beginIndex + 1, endIndex),
|
|
616
|
+
value: void 0
|
|
617
|
+
});
|
|
618
|
+
nextIndex = endIndex + 1;
|
|
619
|
+
beginIndex = pattern.indexOf("{", nextIndex);
|
|
620
|
+
}
|
|
621
|
+
if (nextIndex < length) result.push({
|
|
622
|
+
type: "literal",
|
|
623
|
+
value: pattern.substring(nextIndex, length)
|
|
624
|
+
});
|
|
625
|
+
return result;
|
|
626
|
+
}
|
|
627
|
+
function MakePartsList(pattern, unit, parts) {
|
|
628
|
+
const patternParts = PartitionPattern(pattern);
|
|
629
|
+
const result = [];
|
|
630
|
+
for (const patternPart of patternParts) if (patternPart.type === "literal") result.push({
|
|
631
|
+
type: "literal",
|
|
632
|
+
value: patternPart.value
|
|
633
|
+
});
|
|
634
|
+
else {
|
|
635
|
+
invariant(patternPart.type === "0", `Malformed pattern ${pattern}`);
|
|
636
|
+
for (const part of parts) result.push({
|
|
637
|
+
type: part.type,
|
|
638
|
+
value: part.value,
|
|
639
|
+
unit
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
return result;
|
|
643
|
+
}
|
|
644
|
+
function PartitionRelativeTimePattern(rtf, value, unit, { getInternalSlots }) {
|
|
645
|
+
invariant(Type(value) === "Number", `value must be number, instead got ${typeof value}`, TypeError);
|
|
646
|
+
invariant(Type(unit) === "String", `unit must be number, instead got ${typeof value}`, TypeError);
|
|
647
|
+
if (isNaN(value) || !isFinite(value)) throw new RangeError(`Invalid value ${value}`);
|
|
648
|
+
const resolvedUnit = SingularRelativeTimeUnit(unit);
|
|
649
|
+
const { fields, style, numeric, pluralRules, numberFormat } = getInternalSlots(rtf);
|
|
650
|
+
let entry = resolvedUnit;
|
|
651
|
+
if (style === "short") entry = `${resolvedUnit}-short`;
|
|
652
|
+
else if (style === "narrow") entry = `${resolvedUnit}-narrow`;
|
|
653
|
+
if (!(entry in fields)) entry = resolvedUnit;
|
|
654
|
+
const patterns = fields[entry];
|
|
655
|
+
if (numeric === "auto") {
|
|
656
|
+
if (ToString(value) in patterns) return [{
|
|
657
|
+
type: "literal",
|
|
658
|
+
value: patterns[ToString(value)]
|
|
659
|
+
}];
|
|
660
|
+
}
|
|
661
|
+
let tl = "future";
|
|
662
|
+
if (SameValue(value, -0) || value < 0) tl = "past";
|
|
663
|
+
const po = patterns[tl];
|
|
664
|
+
const fv = typeof numberFormat.formatToParts === "function" ? numberFormat.formatToParts(Math.abs(value)) : [{
|
|
665
|
+
type: "literal",
|
|
666
|
+
value: numberFormat.format(Math.abs(value)),
|
|
667
|
+
unit
|
|
668
|
+
}];
|
|
669
|
+
const pattern = po[pluralRules.select(value)];
|
|
670
|
+
return MakePartsList(pattern, resolvedUnit, fv);
|
|
671
|
+
}
|
|
672
|
+
const internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
673
|
+
function getInternalSlots(x) {
|
|
674
|
+
let internalSlots = internalSlotMap.get(x);
|
|
675
|
+
if (!internalSlots) {
|
|
676
|
+
internalSlots = Object.create(null);
|
|
677
|
+
internalSlotMap.set(x, internalSlots);
|
|
678
|
+
}
|
|
679
|
+
return internalSlots;
|
|
680
|
+
}
|
|
681
|
+
var RelativeTimeFormat = class RelativeTimeFormat {
|
|
682
|
+
constructor(locales, options) {
|
|
683
|
+
if (!(this && this instanceof RelativeTimeFormat ? this.constructor : void 0)) throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");
|
|
684
|
+
return InitializeRelativeTimeFormat(this, locales, options, {
|
|
685
|
+
getInternalSlots,
|
|
686
|
+
availableLocales: RelativeTimeFormat.availableLocales,
|
|
687
|
+
relevantExtensionKeys: RelativeTimeFormat.relevantExtensionKeys,
|
|
688
|
+
localeData: RelativeTimeFormat.localeData,
|
|
689
|
+
getDefaultLocale: RelativeTimeFormat.getDefaultLocale
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
format(value, unit) {
|
|
693
|
+
if (typeof this !== "object") throw new TypeError("format was called on a non-object");
|
|
694
|
+
if (!getInternalSlots(this).initializedRelativeTimeFormat) throw new TypeError("format was called on a invalid context");
|
|
695
|
+
return PartitionRelativeTimePattern(this, +value, ToString(unit), { getInternalSlots }).map((el) => el.value).join("");
|
|
696
|
+
}
|
|
697
|
+
formatToParts(value, unit) {
|
|
698
|
+
if (typeof this !== "object") throw new TypeError("formatToParts was called on a non-object");
|
|
699
|
+
if (!getInternalSlots(this).initializedRelativeTimeFormat) throw new TypeError("formatToParts was called on a invalid context");
|
|
700
|
+
return PartitionRelativeTimePattern(this, +value, ToString(unit), { getInternalSlots });
|
|
701
|
+
}
|
|
702
|
+
resolvedOptions() {
|
|
703
|
+
if (typeof this !== "object") throw new TypeError("resolvedOptions was called on a non-object");
|
|
704
|
+
const internalSlots = getInternalSlots(this);
|
|
705
|
+
if (!internalSlots.initializedRelativeTimeFormat) throw new TypeError("resolvedOptions was called on a invalid context");
|
|
706
|
+
return {
|
|
707
|
+
locale: internalSlots.locale,
|
|
708
|
+
style: internalSlots.style,
|
|
709
|
+
numeric: internalSlots.numeric,
|
|
710
|
+
numberingSystem: internalSlots.numberingSystem
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
static supportedLocalesOf(locales, options) {
|
|
714
|
+
return SupportedLocales(RelativeTimeFormat.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
715
|
+
}
|
|
716
|
+
static __addLocaleData(...data) {
|
|
717
|
+
for (const { data: d, locale } of data) {
|
|
718
|
+
registerLocaleData(locale, d, RelativeTimeFormat.localeData, RelativeTimeFormat.availableLocales);
|
|
719
|
+
if (!RelativeTimeFormat.__defaultLocale) RelativeTimeFormat.__defaultLocale = locale;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
static {
|
|
723
|
+
this.localeData = {};
|
|
724
|
+
}
|
|
725
|
+
static {
|
|
726
|
+
this.availableLocales = /* @__PURE__ */ new Set();
|
|
727
|
+
}
|
|
728
|
+
static {
|
|
729
|
+
this.__defaultLocale = "";
|
|
730
|
+
}
|
|
731
|
+
static getDefaultLocale() {
|
|
732
|
+
return RelativeTimeFormat.__defaultLocale;
|
|
733
|
+
}
|
|
734
|
+
static {
|
|
735
|
+
this.relevantExtensionKeys = ["nu"];
|
|
736
|
+
}
|
|
737
|
+
static {
|
|
738
|
+
this.polyfilled = true;
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
try {
|
|
742
|
+
if (typeof Symbol !== "undefined") Object.defineProperty(RelativeTimeFormat.prototype, Symbol.toStringTag, {
|
|
743
|
+
value: "Intl.RelativeTimeFormat",
|
|
744
|
+
writable: false,
|
|
745
|
+
enumerable: false,
|
|
746
|
+
configurable: true
|
|
747
|
+
});
|
|
748
|
+
Object.defineProperty(RelativeTimeFormat.prototype.constructor, "length", {
|
|
749
|
+
value: 0,
|
|
750
|
+
writable: false,
|
|
751
|
+
enumerable: false,
|
|
752
|
+
configurable: true
|
|
753
|
+
});
|
|
754
|
+
Object.defineProperty(RelativeTimeFormat.supportedLocalesOf, "length", {
|
|
755
|
+
value: 1,
|
|
756
|
+
writable: false,
|
|
757
|
+
enumerable: false,
|
|
758
|
+
configurable: true
|
|
759
|
+
});
|
|
760
|
+
} catch {}
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region src/format/data/relative-time-en.json
|
|
763
|
+
var relative_time_en_default = {
|
|
764
|
+
data: {
|
|
765
|
+
"day": {
|
|
766
|
+
"0": "today",
|
|
767
|
+
"1": "tomorrow",
|
|
768
|
+
"-1": "yesterday",
|
|
769
|
+
"future": {
|
|
770
|
+
"one": "in {0} day",
|
|
771
|
+
"other": "in {0} days"
|
|
772
|
+
},
|
|
773
|
+
"past": {
|
|
774
|
+
"one": "{0} day ago",
|
|
775
|
+
"other": "{0} days ago"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"day-narrow": {
|
|
779
|
+
"0": "today",
|
|
780
|
+
"1": "tomorrow",
|
|
781
|
+
"-1": "yesterday",
|
|
782
|
+
"future": {
|
|
783
|
+
"one": "in {0}d",
|
|
784
|
+
"other": "in {0}d"
|
|
785
|
+
},
|
|
786
|
+
"past": {
|
|
787
|
+
"one": "{0}d ago",
|
|
788
|
+
"other": "{0}d ago"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"day-short": {
|
|
792
|
+
"0": "today",
|
|
793
|
+
"1": "tomorrow",
|
|
794
|
+
"-1": "yesterday",
|
|
795
|
+
"future": {
|
|
796
|
+
"one": "in {0} day",
|
|
797
|
+
"other": "in {0} days"
|
|
798
|
+
},
|
|
799
|
+
"past": {
|
|
800
|
+
"one": "{0} day ago",
|
|
801
|
+
"other": "{0} days ago"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"hour": {
|
|
805
|
+
"0": "this hour",
|
|
806
|
+
"future": {
|
|
807
|
+
"one": "in {0} hour",
|
|
808
|
+
"other": "in {0} hours"
|
|
809
|
+
},
|
|
810
|
+
"past": {
|
|
811
|
+
"one": "{0} hour ago",
|
|
812
|
+
"other": "{0} hours ago"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
"hour-narrow": {
|
|
816
|
+
"0": "this hour",
|
|
817
|
+
"future": {
|
|
818
|
+
"one": "in {0}h",
|
|
819
|
+
"other": "in {0}h"
|
|
820
|
+
},
|
|
821
|
+
"past": {
|
|
822
|
+
"one": "{0}h ago",
|
|
823
|
+
"other": "{0}h ago"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"hour-short": {
|
|
827
|
+
"0": "this hour",
|
|
828
|
+
"future": {
|
|
829
|
+
"one": "in {0} hr.",
|
|
830
|
+
"other": "in {0} hr."
|
|
831
|
+
},
|
|
832
|
+
"past": {
|
|
833
|
+
"one": "{0} hr. ago",
|
|
834
|
+
"other": "{0} hr. ago"
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"minute": {
|
|
838
|
+
"0": "this minute",
|
|
839
|
+
"future": {
|
|
840
|
+
"one": "in {0} minute",
|
|
841
|
+
"other": "in {0} minutes"
|
|
842
|
+
},
|
|
843
|
+
"past": {
|
|
844
|
+
"one": "{0} minute ago",
|
|
845
|
+
"other": "{0} minutes ago"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
"minute-narrow": {
|
|
849
|
+
"0": "this minute",
|
|
850
|
+
"future": {
|
|
851
|
+
"one": "in {0}m",
|
|
852
|
+
"other": "in {0}m"
|
|
853
|
+
},
|
|
854
|
+
"past": {
|
|
855
|
+
"one": "{0}m ago",
|
|
856
|
+
"other": "{0}m ago"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"minute-short": {
|
|
860
|
+
"0": "this minute",
|
|
861
|
+
"future": {
|
|
862
|
+
"one": "in {0} min.",
|
|
863
|
+
"other": "in {0} min."
|
|
864
|
+
},
|
|
865
|
+
"past": {
|
|
866
|
+
"one": "{0} min. ago",
|
|
867
|
+
"other": "{0} min. ago"
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
"month": {
|
|
871
|
+
"0": "this month",
|
|
872
|
+
"1": "next month",
|
|
873
|
+
"-1": "last month",
|
|
874
|
+
"future": {
|
|
875
|
+
"one": "in {0} month",
|
|
876
|
+
"other": "in {0} months"
|
|
877
|
+
},
|
|
878
|
+
"past": {
|
|
879
|
+
"one": "{0} month ago",
|
|
880
|
+
"other": "{0} months ago"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"month-narrow": {
|
|
884
|
+
"0": "this mo.",
|
|
885
|
+
"1": "next mo.",
|
|
886
|
+
"-1": "last mo.",
|
|
887
|
+
"future": {
|
|
888
|
+
"one": "in {0}mo",
|
|
889
|
+
"other": "in {0}mo"
|
|
890
|
+
},
|
|
891
|
+
"past": {
|
|
892
|
+
"one": "{0}mo ago",
|
|
893
|
+
"other": "{0}mo ago"
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"month-short": {
|
|
897
|
+
"0": "this mo.",
|
|
898
|
+
"1": "next mo.",
|
|
899
|
+
"-1": "last mo.",
|
|
900
|
+
"future": {
|
|
901
|
+
"one": "in {0} mo.",
|
|
902
|
+
"other": "in {0} mo."
|
|
903
|
+
},
|
|
904
|
+
"past": {
|
|
905
|
+
"one": "{0} mo. ago",
|
|
906
|
+
"other": "{0} mo. ago"
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
"nu": [
|
|
910
|
+
"latn",
|
|
911
|
+
"adlm",
|
|
912
|
+
"ahom",
|
|
913
|
+
"arab",
|
|
914
|
+
"arabext",
|
|
915
|
+
"bali",
|
|
916
|
+
"beng",
|
|
917
|
+
"bhks",
|
|
918
|
+
"brah",
|
|
919
|
+
"cakm",
|
|
920
|
+
"cham",
|
|
921
|
+
"deva",
|
|
922
|
+
"diak",
|
|
923
|
+
"fullwide",
|
|
924
|
+
"gara",
|
|
925
|
+
"gong",
|
|
926
|
+
"gonm",
|
|
927
|
+
"gujr",
|
|
928
|
+
"gukh",
|
|
929
|
+
"guru",
|
|
930
|
+
"hanidec",
|
|
931
|
+
"hmng",
|
|
932
|
+
"hmnp",
|
|
933
|
+
"java",
|
|
934
|
+
"kali",
|
|
935
|
+
"kawi",
|
|
936
|
+
"khmr",
|
|
937
|
+
"knda",
|
|
938
|
+
"krai",
|
|
939
|
+
"lana",
|
|
940
|
+
"lanatham",
|
|
941
|
+
"laoo",
|
|
942
|
+
"lepc",
|
|
943
|
+
"limb",
|
|
944
|
+
"mathbold",
|
|
945
|
+
"mathdbl",
|
|
946
|
+
"mathmono",
|
|
947
|
+
"mathsanb",
|
|
948
|
+
"mathsans",
|
|
949
|
+
"mlym",
|
|
950
|
+
"modi",
|
|
951
|
+
"mong",
|
|
952
|
+
"mroo",
|
|
953
|
+
"mtei",
|
|
954
|
+
"mymr",
|
|
955
|
+
"mymrepka",
|
|
956
|
+
"mymrpao",
|
|
957
|
+
"mymrshan",
|
|
958
|
+
"mymrtlng",
|
|
959
|
+
"nagm",
|
|
960
|
+
"newa",
|
|
961
|
+
"nkoo",
|
|
962
|
+
"olck",
|
|
963
|
+
"onao",
|
|
964
|
+
"orya",
|
|
965
|
+
"osma",
|
|
966
|
+
"outlined",
|
|
967
|
+
"rohg",
|
|
968
|
+
"saur",
|
|
969
|
+
"segment",
|
|
970
|
+
"shrd",
|
|
971
|
+
"sind",
|
|
972
|
+
"sinh",
|
|
973
|
+
"sora",
|
|
974
|
+
"sund",
|
|
975
|
+
"sunu",
|
|
976
|
+
"takr",
|
|
977
|
+
"talu",
|
|
978
|
+
"tamldec",
|
|
979
|
+
"telu",
|
|
980
|
+
"thai",
|
|
981
|
+
"tibt",
|
|
982
|
+
"tirh",
|
|
983
|
+
"tnsa",
|
|
984
|
+
"tols",
|
|
985
|
+
"vaii",
|
|
986
|
+
"wara",
|
|
987
|
+
"wcho"
|
|
988
|
+
],
|
|
989
|
+
"quarter": {
|
|
990
|
+
"0": "this quarter",
|
|
991
|
+
"1": "next quarter",
|
|
992
|
+
"-1": "last quarter",
|
|
993
|
+
"future": {
|
|
994
|
+
"one": "in {0} quarter",
|
|
995
|
+
"other": "in {0} quarters"
|
|
996
|
+
},
|
|
997
|
+
"past": {
|
|
998
|
+
"one": "{0} quarter ago",
|
|
999
|
+
"other": "{0} quarters ago"
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
"quarter-narrow": {
|
|
1003
|
+
"0": "this qtr.",
|
|
1004
|
+
"1": "next qtr.",
|
|
1005
|
+
"-1": "last qtr.",
|
|
1006
|
+
"future": {
|
|
1007
|
+
"one": "in {0}q",
|
|
1008
|
+
"other": "in {0}q"
|
|
1009
|
+
},
|
|
1010
|
+
"past": {
|
|
1011
|
+
"one": "{0}q ago",
|
|
1012
|
+
"other": "{0}q ago"
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
"quarter-short": {
|
|
1016
|
+
"0": "this qtr.",
|
|
1017
|
+
"1": "next qtr.",
|
|
1018
|
+
"-1": "last qtr.",
|
|
1019
|
+
"future": {
|
|
1020
|
+
"one": "in {0} qtr.",
|
|
1021
|
+
"other": "in {0} qtrs."
|
|
1022
|
+
},
|
|
1023
|
+
"past": {
|
|
1024
|
+
"one": "{0} qtr. ago",
|
|
1025
|
+
"other": "{0} qtrs. ago"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"second": {
|
|
1029
|
+
"0": "now",
|
|
1030
|
+
"future": {
|
|
1031
|
+
"one": "in {0} second",
|
|
1032
|
+
"other": "in {0} seconds"
|
|
1033
|
+
},
|
|
1034
|
+
"past": {
|
|
1035
|
+
"one": "{0} second ago",
|
|
1036
|
+
"other": "{0} seconds ago"
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
"second-narrow": {
|
|
1040
|
+
"0": "now",
|
|
1041
|
+
"future": {
|
|
1042
|
+
"one": "in {0}s",
|
|
1043
|
+
"other": "in {0}s"
|
|
1044
|
+
},
|
|
1045
|
+
"past": {
|
|
1046
|
+
"one": "{0}s ago",
|
|
1047
|
+
"other": "{0}s ago"
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"second-short": {
|
|
1051
|
+
"0": "now",
|
|
1052
|
+
"future": {
|
|
1053
|
+
"one": "in {0} sec.",
|
|
1054
|
+
"other": "in {0} sec."
|
|
1055
|
+
},
|
|
1056
|
+
"past": {
|
|
1057
|
+
"one": "{0} sec. ago",
|
|
1058
|
+
"other": "{0} sec. ago"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"week": {
|
|
1062
|
+
"0": "this week",
|
|
1063
|
+
"1": "next week",
|
|
1064
|
+
"-1": "last week",
|
|
1065
|
+
"future": {
|
|
1066
|
+
"one": "in {0} week",
|
|
1067
|
+
"other": "in {0} weeks"
|
|
1068
|
+
},
|
|
1069
|
+
"past": {
|
|
1070
|
+
"one": "{0} week ago",
|
|
1071
|
+
"other": "{0} weeks ago"
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
"week-narrow": {
|
|
1075
|
+
"0": "this wk.",
|
|
1076
|
+
"1": "next wk.",
|
|
1077
|
+
"-1": "last wk.",
|
|
1078
|
+
"future": {
|
|
1079
|
+
"one": "in {0}w",
|
|
1080
|
+
"other": "in {0}w"
|
|
1081
|
+
},
|
|
1082
|
+
"past": {
|
|
1083
|
+
"one": "{0}w ago",
|
|
1084
|
+
"other": "{0}w ago"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"week-short": {
|
|
1088
|
+
"0": "this wk.",
|
|
1089
|
+
"1": "next wk.",
|
|
1090
|
+
"-1": "last wk.",
|
|
1091
|
+
"future": {
|
|
1092
|
+
"one": "in {0} wk.",
|
|
1093
|
+
"other": "in {0} wk."
|
|
1094
|
+
},
|
|
1095
|
+
"past": {
|
|
1096
|
+
"one": "{0} wk. ago",
|
|
1097
|
+
"other": "{0} wk. ago"
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"year": {
|
|
1101
|
+
"0": "this year",
|
|
1102
|
+
"1": "next year",
|
|
1103
|
+
"-1": "last year",
|
|
1104
|
+
"future": {
|
|
1105
|
+
"one": "in {0} year",
|
|
1106
|
+
"other": "in {0} years"
|
|
1107
|
+
},
|
|
1108
|
+
"past": {
|
|
1109
|
+
"one": "{0} year ago",
|
|
1110
|
+
"other": "{0} years ago"
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
"year-narrow": {
|
|
1114
|
+
"0": "this yr.",
|
|
1115
|
+
"1": "next yr.",
|
|
1116
|
+
"-1": "last yr.",
|
|
1117
|
+
"future": {
|
|
1118
|
+
"one": "in {0}y",
|
|
1119
|
+
"other": "in {0}y"
|
|
1120
|
+
},
|
|
1121
|
+
"past": {
|
|
1122
|
+
"one": "{0}y ago",
|
|
1123
|
+
"other": "{0}y ago"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
"year-short": {
|
|
1127
|
+
"0": "this yr.",
|
|
1128
|
+
"1": "next yr.",
|
|
1129
|
+
"-1": "last yr.",
|
|
1130
|
+
"future": {
|
|
1131
|
+
"one": "in {0} yr.",
|
|
1132
|
+
"other": "in {0} yr."
|
|
1133
|
+
},
|
|
1134
|
+
"past": {
|
|
1135
|
+
"one": "{0} yr. ago",
|
|
1136
|
+
"other": "{0} yr. ago"
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
locale: "en"
|
|
1141
|
+
};
|
|
1142
|
+
//#endregion
|
|
1143
|
+
//#region src/format/data/relative-time-is.json
|
|
1144
|
+
var relative_time_is_default = {
|
|
1145
|
+
data: {
|
|
1146
|
+
"day": {
|
|
1147
|
+
"0": "í dag",
|
|
1148
|
+
"1": "á morgun",
|
|
1149
|
+
"2": "eftir tvo daga",
|
|
1150
|
+
"-1": "í gær",
|
|
1151
|
+
"-2": "í fyrradag",
|
|
1152
|
+
"future": {
|
|
1153
|
+
"one": "eftir {0} dag",
|
|
1154
|
+
"other": "eftir {0} daga"
|
|
1155
|
+
},
|
|
1156
|
+
"past": {
|
|
1157
|
+
"one": "fyrir {0} degi",
|
|
1158
|
+
"other": "fyrir {0} dögum"
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"day-narrow": {
|
|
1162
|
+
"0": "í dag",
|
|
1163
|
+
"1": "á morgun",
|
|
1164
|
+
"2": "eftir tvo daga",
|
|
1165
|
+
"-1": "í gær",
|
|
1166
|
+
"-2": "í fyrradag",
|
|
1167
|
+
"future": {
|
|
1168
|
+
"one": "eftir {0} dag",
|
|
1169
|
+
"other": "eftir {0} daga"
|
|
1170
|
+
},
|
|
1171
|
+
"past": {
|
|
1172
|
+
"one": "fyrir {0} degi",
|
|
1173
|
+
"other": "fyrir {0} dögum"
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
"day-short": {
|
|
1177
|
+
"0": "í dag",
|
|
1178
|
+
"1": "á morgun",
|
|
1179
|
+
"2": "eftir tvo daga",
|
|
1180
|
+
"-1": "í gær",
|
|
1181
|
+
"-2": "í fyrradag",
|
|
1182
|
+
"future": {
|
|
1183
|
+
"one": "eftir {0} dag",
|
|
1184
|
+
"other": "eftir {0} daga"
|
|
1185
|
+
},
|
|
1186
|
+
"past": {
|
|
1187
|
+
"one": "fyrir {0} degi",
|
|
1188
|
+
"other": "fyrir {0} dögum"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
"hour": {
|
|
1192
|
+
"0": "þessa stundina",
|
|
1193
|
+
"future": {
|
|
1194
|
+
"one": "eftir {0} klukkustund",
|
|
1195
|
+
"other": "eftir {0} klukkustundir"
|
|
1196
|
+
},
|
|
1197
|
+
"past": {
|
|
1198
|
+
"one": "fyrir {0} klukkustund",
|
|
1199
|
+
"other": "fyrir {0} klukkustundum"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"hour-narrow": {
|
|
1203
|
+
"0": "þessa stundina",
|
|
1204
|
+
"future": {
|
|
1205
|
+
"one": "+{0} klst.",
|
|
1206
|
+
"other": "+{0} klst."
|
|
1207
|
+
},
|
|
1208
|
+
"past": {
|
|
1209
|
+
"one": "-{0} klst.",
|
|
1210
|
+
"other": "-{0} klst."
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
"hour-short": {
|
|
1214
|
+
"0": "þessa stundina",
|
|
1215
|
+
"future": {
|
|
1216
|
+
"one": "eftir {0} klst.",
|
|
1217
|
+
"other": "eftir {0} klst."
|
|
1218
|
+
},
|
|
1219
|
+
"past": {
|
|
1220
|
+
"one": "fyrir {0} klst.",
|
|
1221
|
+
"other": "fyrir {0} klst."
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
"minute": {
|
|
1225
|
+
"0": "á þessari mínútu",
|
|
1226
|
+
"future": {
|
|
1227
|
+
"one": "eftir {0} mínútu",
|
|
1228
|
+
"other": "eftir {0} mínútur"
|
|
1229
|
+
},
|
|
1230
|
+
"past": {
|
|
1231
|
+
"one": "fyrir {0} mínútu",
|
|
1232
|
+
"other": "fyrir {0} mínútum"
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
"minute-narrow": {
|
|
1236
|
+
"0": "á þessari mínútu",
|
|
1237
|
+
"future": {
|
|
1238
|
+
"one": "+{0} mín.",
|
|
1239
|
+
"other": "+{0} mín."
|
|
1240
|
+
},
|
|
1241
|
+
"past": {
|
|
1242
|
+
"one": "-{0} mín.",
|
|
1243
|
+
"other": "-{0} mín."
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
"minute-short": {
|
|
1247
|
+
"0": "á þessari mínútu",
|
|
1248
|
+
"future": {
|
|
1249
|
+
"one": "eftir {0} mín.",
|
|
1250
|
+
"other": "eftir {0} mín."
|
|
1251
|
+
},
|
|
1252
|
+
"past": {
|
|
1253
|
+
"one": "fyrir {0} mín.",
|
|
1254
|
+
"other": "fyrir {0} mín."
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"month": {
|
|
1258
|
+
"0": "í þessum mánuði",
|
|
1259
|
+
"1": "í næsta mánuði",
|
|
1260
|
+
"-1": "í síðasta mánuði",
|
|
1261
|
+
"future": {
|
|
1262
|
+
"one": "eftir {0} mánuð",
|
|
1263
|
+
"other": "eftir {0} mánuði"
|
|
1264
|
+
},
|
|
1265
|
+
"past": {
|
|
1266
|
+
"one": "fyrir {0} mánuði",
|
|
1267
|
+
"other": "fyrir {0} mánuðum"
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
"month-narrow": {
|
|
1271
|
+
"0": "í þessum mán.",
|
|
1272
|
+
"1": "í næsta mán.",
|
|
1273
|
+
"-1": "í síðasta mán.",
|
|
1274
|
+
"future": {
|
|
1275
|
+
"one": "eftir {0} mán.",
|
|
1276
|
+
"other": "eftir {0} mán."
|
|
1277
|
+
},
|
|
1278
|
+
"past": {
|
|
1279
|
+
"one": "fyrir {0} mán.",
|
|
1280
|
+
"other": "fyrir {0} mán."
|
|
1281
|
+
}
|
|
1282
|
+
},
|
|
1283
|
+
"month-short": {
|
|
1284
|
+
"0": "í þessum mán.",
|
|
1285
|
+
"1": "í næsta mán.",
|
|
1286
|
+
"-1": "í síðasta mán.",
|
|
1287
|
+
"future": {
|
|
1288
|
+
"one": "eftir {0} mán.",
|
|
1289
|
+
"other": "eftir {0} mán."
|
|
1290
|
+
},
|
|
1291
|
+
"past": {
|
|
1292
|
+
"one": "fyrir {0} mán.",
|
|
1293
|
+
"other": "fyrir {0} mán."
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
"nu": [
|
|
1297
|
+
"latn",
|
|
1298
|
+
"adlm",
|
|
1299
|
+
"ahom",
|
|
1300
|
+
"arab",
|
|
1301
|
+
"arabext",
|
|
1302
|
+
"bali",
|
|
1303
|
+
"beng",
|
|
1304
|
+
"bhks",
|
|
1305
|
+
"brah",
|
|
1306
|
+
"cakm",
|
|
1307
|
+
"cham",
|
|
1308
|
+
"deva",
|
|
1309
|
+
"diak",
|
|
1310
|
+
"fullwide",
|
|
1311
|
+
"gara",
|
|
1312
|
+
"gong",
|
|
1313
|
+
"gonm",
|
|
1314
|
+
"gujr",
|
|
1315
|
+
"gukh",
|
|
1316
|
+
"guru",
|
|
1317
|
+
"hanidec",
|
|
1318
|
+
"hmng",
|
|
1319
|
+
"hmnp",
|
|
1320
|
+
"java",
|
|
1321
|
+
"kali",
|
|
1322
|
+
"kawi",
|
|
1323
|
+
"khmr",
|
|
1324
|
+
"knda",
|
|
1325
|
+
"krai",
|
|
1326
|
+
"lana",
|
|
1327
|
+
"lanatham",
|
|
1328
|
+
"laoo",
|
|
1329
|
+
"lepc",
|
|
1330
|
+
"limb",
|
|
1331
|
+
"mathbold",
|
|
1332
|
+
"mathdbl",
|
|
1333
|
+
"mathmono",
|
|
1334
|
+
"mathsanb",
|
|
1335
|
+
"mathsans",
|
|
1336
|
+
"mlym",
|
|
1337
|
+
"modi",
|
|
1338
|
+
"mong",
|
|
1339
|
+
"mroo",
|
|
1340
|
+
"mtei",
|
|
1341
|
+
"mymr",
|
|
1342
|
+
"mymrepka",
|
|
1343
|
+
"mymrpao",
|
|
1344
|
+
"mymrshan",
|
|
1345
|
+
"mymrtlng",
|
|
1346
|
+
"nagm",
|
|
1347
|
+
"newa",
|
|
1348
|
+
"nkoo",
|
|
1349
|
+
"olck",
|
|
1350
|
+
"onao",
|
|
1351
|
+
"orya",
|
|
1352
|
+
"osma",
|
|
1353
|
+
"outlined",
|
|
1354
|
+
"rohg",
|
|
1355
|
+
"saur",
|
|
1356
|
+
"segment",
|
|
1357
|
+
"shrd",
|
|
1358
|
+
"sind",
|
|
1359
|
+
"sinh",
|
|
1360
|
+
"sora",
|
|
1361
|
+
"sund",
|
|
1362
|
+
"sunu",
|
|
1363
|
+
"takr",
|
|
1364
|
+
"talu",
|
|
1365
|
+
"tamldec",
|
|
1366
|
+
"telu",
|
|
1367
|
+
"thai",
|
|
1368
|
+
"tibt",
|
|
1369
|
+
"tirh",
|
|
1370
|
+
"tnsa",
|
|
1371
|
+
"tols",
|
|
1372
|
+
"vaii",
|
|
1373
|
+
"wara",
|
|
1374
|
+
"wcho"
|
|
1375
|
+
],
|
|
1376
|
+
"quarter": {
|
|
1377
|
+
"0": "þessi ársfjórðungur",
|
|
1378
|
+
"1": "næsti ársfjórðungur",
|
|
1379
|
+
"-1": "síðasti ársfjórðungur",
|
|
1380
|
+
"future": {
|
|
1381
|
+
"one": "eftir {0} ársfjórðung",
|
|
1382
|
+
"other": "eftir {0} ársfjórðunga"
|
|
1383
|
+
},
|
|
1384
|
+
"past": {
|
|
1385
|
+
"one": "fyrir {0} ársfjórðungi",
|
|
1386
|
+
"other": "fyrir {0} ársfjórðungum"
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
"quarter-narrow": {
|
|
1390
|
+
"0": "þessi ársfj.",
|
|
1391
|
+
"1": "næsti ársfj.",
|
|
1392
|
+
"-1": "síðasti ársfj.",
|
|
1393
|
+
"future": {
|
|
1394
|
+
"one": "eftir {0} ársfj.",
|
|
1395
|
+
"other": "eftir {0} ársfj."
|
|
1396
|
+
},
|
|
1397
|
+
"past": {
|
|
1398
|
+
"one": "fyrir {0} ársfj.",
|
|
1399
|
+
"other": "fyrir {0} ársfj."
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"quarter-short": {
|
|
1403
|
+
"0": "þessi ársfj.",
|
|
1404
|
+
"1": "næsti ársfj.",
|
|
1405
|
+
"-1": "síðasti ársfj.",
|
|
1406
|
+
"future": {
|
|
1407
|
+
"one": "eftir {0} ársfj.",
|
|
1408
|
+
"other": "eftir {0} ársfj."
|
|
1409
|
+
},
|
|
1410
|
+
"past": {
|
|
1411
|
+
"one": "fyrir {0} ársfj.",
|
|
1412
|
+
"other": "fyrir {0} ársfj."
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
"second": {
|
|
1416
|
+
"0": "núna",
|
|
1417
|
+
"future": {
|
|
1418
|
+
"one": "eftir {0} sekúndu",
|
|
1419
|
+
"other": "eftir {0} sekúndur"
|
|
1420
|
+
},
|
|
1421
|
+
"past": {
|
|
1422
|
+
"one": "fyrir {0} sekúndu",
|
|
1423
|
+
"other": "fyrir {0} sekúndum"
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
"second-narrow": {
|
|
1427
|
+
"0": "núna",
|
|
1428
|
+
"future": {
|
|
1429
|
+
"one": "+{0} sek.",
|
|
1430
|
+
"other": "+{0} sek."
|
|
1431
|
+
},
|
|
1432
|
+
"past": {
|
|
1433
|
+
"one": "-{0} sek.",
|
|
1434
|
+
"other": "-{0} sek."
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1437
|
+
"second-short": {
|
|
1438
|
+
"0": "núna",
|
|
1439
|
+
"future": {
|
|
1440
|
+
"one": "eftir {0} sek.",
|
|
1441
|
+
"other": "eftir {0} sek."
|
|
1442
|
+
},
|
|
1443
|
+
"past": {
|
|
1444
|
+
"one": "fyrir {0} sek.",
|
|
1445
|
+
"other": "fyrir {0} sek."
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"week": {
|
|
1449
|
+
"0": "í þessari viku",
|
|
1450
|
+
"1": "í næstu viku",
|
|
1451
|
+
"-1": "í síðustu viku",
|
|
1452
|
+
"future": {
|
|
1453
|
+
"one": "eftir {0} viku",
|
|
1454
|
+
"other": "eftir {0} vikur"
|
|
1455
|
+
},
|
|
1456
|
+
"past": {
|
|
1457
|
+
"one": "fyrir {0} viku",
|
|
1458
|
+
"other": "fyrir {0} vikum"
|
|
1459
|
+
}
|
|
1460
|
+
},
|
|
1461
|
+
"week-narrow": {
|
|
1462
|
+
"0": "í þessari viku",
|
|
1463
|
+
"1": "í næstu viku",
|
|
1464
|
+
"-1": "í síðustu viku",
|
|
1465
|
+
"future": {
|
|
1466
|
+
"one": "eftir {0} viku",
|
|
1467
|
+
"other": "eftir {0} vikur"
|
|
1468
|
+
},
|
|
1469
|
+
"past": {
|
|
1470
|
+
"one": "fyrir {0} viku",
|
|
1471
|
+
"other": "fyrir {0} vikum"
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
"week-short": {
|
|
1475
|
+
"0": "í þessari viku",
|
|
1476
|
+
"1": "í næstu viku",
|
|
1477
|
+
"-1": "í síðustu viku",
|
|
1478
|
+
"future": {
|
|
1479
|
+
"one": "eftir {0} viku",
|
|
1480
|
+
"other": "eftir {0} vikur"
|
|
1481
|
+
},
|
|
1482
|
+
"past": {
|
|
1483
|
+
"one": "fyrir {0} viku",
|
|
1484
|
+
"other": "fyrir {0} vikum"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
"year": {
|
|
1488
|
+
"0": "á þessu ári",
|
|
1489
|
+
"1": "á næsta ári",
|
|
1490
|
+
"-1": "á síðasta ári",
|
|
1491
|
+
"future": {
|
|
1492
|
+
"one": "eftir {0} ár",
|
|
1493
|
+
"other": "eftir {0} ár"
|
|
1494
|
+
},
|
|
1495
|
+
"past": {
|
|
1496
|
+
"one": "fyrir {0} ári",
|
|
1497
|
+
"other": "fyrir {0} árum"
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
"year-narrow": {
|
|
1501
|
+
"0": "á þessu ári",
|
|
1502
|
+
"1": "á næsta ári",
|
|
1503
|
+
"-1": "á síðasta ári",
|
|
1504
|
+
"future": {
|
|
1505
|
+
"one": "eftir {0} ár",
|
|
1506
|
+
"other": "eftir {0} ár"
|
|
1507
|
+
},
|
|
1508
|
+
"past": {
|
|
1509
|
+
"one": "fyrir {0} ári",
|
|
1510
|
+
"other": "fyrir {0} árum"
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
"year-short": {
|
|
1514
|
+
"0": "á þessu ári",
|
|
1515
|
+
"1": "á næsta ári",
|
|
1516
|
+
"-1": "á síðasta ári",
|
|
1517
|
+
"future": {
|
|
1518
|
+
"one": "eftir {0} ár",
|
|
1519
|
+
"other": "eftir {0} ár"
|
|
1520
|
+
},
|
|
1521
|
+
"past": {
|
|
1522
|
+
"one": "fyrir {0} ári",
|
|
1523
|
+
"other": "fyrir {0} árum"
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
},
|
|
1527
|
+
locale: "is"
|
|
1528
|
+
};
|
|
1529
|
+
//#endregion
|
|
1530
|
+
//#region src/format/relative-time.ts
|
|
1531
|
+
let loaded = false;
|
|
1532
|
+
const formats = /* @__PURE__ */ new Map();
|
|
1533
|
+
/** `new Intl.RelativeTimeFormat(locale, options)` with the same text everywhere: `fyrir 3 dögum`. */
|
|
1534
|
+
function relativeTimeFormat(locale, options = {}) {
|
|
1535
|
+
return cached(formats, locale, options, () => {
|
|
1536
|
+
if (!usesBundledData(locale)) return new Intl.RelativeTimeFormat(locale, options);
|
|
1537
|
+
new Intl.RelativeTimeFormat("en", options);
|
|
1538
|
+
if (!loaded) {
|
|
1539
|
+
RelativeTimeFormat.__addLocaleData(relative_time_en_default, relative_time_is_default);
|
|
1540
|
+
loaded = true;
|
|
1541
|
+
}
|
|
1542
|
+
return withOurNumberFormat(() => new RelativeTimeFormat(locale, options));
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
//#endregion
|
|
1546
|
+
export { relativeTimeFormat };
|