@geekron/strapi 0.1.6 → 0.2.1

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 (3) hide show
  1. package/dist/admin/index.js +1076 -2241
  2. package/dist/admin/index.mjs +1076 -2241
  3. package/package.json +11 -10
@@ -74,6 +74,7 @@ var require_tslib = __commonJS((exports2, module2) => {
74
74
  var __createBinding;
75
75
  var __addDisposableResource;
76
76
  var __disposeResources;
77
+ var __rewriteRelativeImportExtension;
77
78
  (function(factory) {
78
79
  var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
79
80
  if (typeof define === "function" && define.amd) {
@@ -245,8 +246,8 @@ var require_tslib = __commonJS((exports2, module2) => {
245
246
  if (t2[0] & 1)
246
247
  throw t2[1];
247
248
  return t2[1];
248
- }, trys: [], ops: [] }, f2, y2, t2, g2;
249
- return g2 = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
249
+ }, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
250
+ return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
250
251
  return this;
251
252
  }), g2;
252
253
  function verb(n2) {
@@ -402,16 +403,24 @@ var require_tslib = __commonJS((exports2, module2) => {
402
403
  if (!Symbol.asyncIterator)
403
404
  throw new TypeError("Symbol.asyncIterator is not defined.");
404
405
  var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
405
- return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
406
+ return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
406
407
  return this;
407
408
  }, i2;
408
- function verb(n2) {
409
- if (g2[n2])
409
+ function awaitReturn(f2) {
410
+ return function(v2) {
411
+ return Promise.resolve(v2).then(f2, reject);
412
+ };
413
+ }
414
+ function verb(n2, f2) {
415
+ if (g2[n2]) {
410
416
  i2[n2] = function(v2) {
411
417
  return new Promise(function(a2, b2) {
412
418
  q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
413
419
  });
414
420
  };
421
+ if (f2)
422
+ i2[n2] = f2(i2[n2]);
423
+ }
415
424
  }
416
425
  function resume(n2, v2) {
417
426
  try {
@@ -480,14 +489,24 @@ var require_tslib = __commonJS((exports2, module2) => {
480
489
  } : function(o2, v2) {
481
490
  o2["default"] = v2;
482
491
  };
492
+ var ownKeys = function(o2) {
493
+ ownKeys = Object.getOwnPropertyNames || function(o3) {
494
+ var ar = [];
495
+ for (var k in o3)
496
+ if (Object.prototype.hasOwnProperty.call(o3, k))
497
+ ar[ar.length] = k;
498
+ return ar;
499
+ };
500
+ return ownKeys(o2);
501
+ };
483
502
  __importStar = function(mod) {
484
503
  if (mod && mod.__esModule)
485
504
  return mod;
486
505
  var result = {};
487
506
  if (mod != null) {
488
- for (var k in mod)
489
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
490
- __createBinding(result, mod, k);
507
+ for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
508
+ if (k[i2] !== "default")
509
+ __createBinding(result, mod, k[i2]);
491
510
  }
492
511
  __setModuleDefault(result, mod);
493
512
  return result;
@@ -520,7 +539,7 @@ var require_tslib = __commonJS((exports2, module2) => {
520
539
  if (value !== null && value !== undefined) {
521
540
  if (typeof value !== "object" && typeof value !== "function")
522
541
  throw new TypeError("Object expected.");
523
- var dispose;
542
+ var dispose, inner;
524
543
  if (async) {
525
544
  if (!Symbol.asyncDispose)
526
545
  throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -530,9 +549,19 @@ var require_tslib = __commonJS((exports2, module2) => {
530
549
  if (!Symbol.dispose)
531
550
  throw new TypeError("Symbol.dispose is not defined.");
532
551
  dispose = value[Symbol.dispose];
552
+ if (async)
553
+ inner = dispose;
533
554
  }
534
555
  if (typeof dispose !== "function")
535
556
  throw new TypeError("Object not disposable.");
557
+ if (inner)
558
+ dispose = function() {
559
+ try {
560
+ inner.call(this);
561
+ } catch (e2) {
562
+ return Promise.reject(e2);
563
+ }
564
+ };
536
565
  env.stack.push({ value, dispose, async });
537
566
  } else if (async) {
538
567
  env.stack.push({ async: true });
@@ -548,25 +577,40 @@ var require_tslib = __commonJS((exports2, module2) => {
548
577
  env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
549
578
  env.hasError = true;
550
579
  }
580
+ var r2, s2 = 0;
551
581
  function next() {
552
- while (env.stack.length) {
553
- var rec = env.stack.pop();
582
+ while (r2 = env.stack.pop()) {
554
583
  try {
555
- var result = rec.dispose && rec.dispose.call(rec.value);
556
- if (rec.async)
557
- return Promise.resolve(result).then(next, function(e2) {
558
- fail(e2);
559
- return next();
560
- });
584
+ if (!r2.async && s2 === 1)
585
+ return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
586
+ if (r2.dispose) {
587
+ var result = r2.dispose.call(r2.value);
588
+ if (r2.async)
589
+ return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
590
+ fail(e2);
591
+ return next();
592
+ });
593
+ } else
594
+ s2 |= 1;
561
595
  } catch (e2) {
562
596
  fail(e2);
563
597
  }
564
598
  }
599
+ if (s2 === 1)
600
+ return env.hasError ? Promise.reject(env.error) : Promise.resolve();
565
601
  if (env.hasError)
566
602
  throw env.error;
567
603
  }
568
604
  return next();
569
605
  };
606
+ __rewriteRelativeImportExtension = function(path, preserveJsx) {
607
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
608
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
609
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
610
+ });
611
+ }
612
+ return path;
613
+ };
570
614
  exporter("__extends", __extends);
571
615
  exporter("__assign", __assign);
572
616
  exporter("__rest", __rest);
@@ -598,6 +642,7 @@ var require_tslib = __commonJS((exports2, module2) => {
598
642
  exporter("__classPrivateFieldIn", __classPrivateFieldIn);
599
643
  exporter("__addDisposableResource", __addDisposableResource);
600
644
  exporter("__disposeResources", __disposeResources);
645
+ exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
601
646
  });
602
647
  });
603
648
 
@@ -3123,622 +3168,17 @@ var require_CanonicalizeLocaleList2 = __commonJS((exports2) => {
3123
3168
  exports2.CanonicalizeLocaleList = CanonicalizeLocaleList;
3124
3169
  });
3125
3170
 
3126
- // node_modules/@formatjs/intl-localematcher/node_modules/tslib/tslib.js
3127
- var require_tslib2 = __commonJS((exports2, module2) => {
3128
- var __extends;
3129
- var __assign;
3130
- var __rest;
3131
- var __decorate;
3132
- var __param;
3133
- var __esDecorate;
3134
- var __runInitializers;
3135
- var __propKey;
3136
- var __setFunctionName;
3137
- var __metadata;
3138
- var __awaiter;
3139
- var __generator;
3140
- var __exportStar;
3141
- var __values;
3142
- var __read;
3143
- var __spread;
3144
- var __spreadArrays;
3145
- var __spreadArray;
3146
- var __await;
3147
- var __asyncGenerator;
3148
- var __asyncDelegator;
3149
- var __asyncValues;
3150
- var __makeTemplateObject;
3151
- var __importStar;
3152
- var __importDefault;
3153
- var __classPrivateFieldGet;
3154
- var __classPrivateFieldSet;
3155
- var __classPrivateFieldIn;
3156
- var __createBinding;
3157
- var __addDisposableResource;
3158
- var __disposeResources;
3159
- var __rewriteRelativeImportExtension;
3160
- (function(factory) {
3161
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
3162
- if (typeof define === "function" && define.amd) {
3163
- define("tslib", ["exports"], function(exports3) {
3164
- factory(createExporter(root, createExporter(exports3)));
3165
- });
3166
- } else if (typeof module2 === "object" && typeof module2.exports === "object") {
3167
- factory(createExporter(root, createExporter(module2.exports)));
3168
- } else {
3169
- factory(createExporter(root));
3170
- }
3171
- function createExporter(exports3, previous) {
3172
- if (exports3 !== root) {
3173
- if (typeof Object.create === "function") {
3174
- Object.defineProperty(exports3, "__esModule", { value: true });
3175
- } else {
3176
- exports3.__esModule = true;
3177
- }
3178
- }
3179
- return function(id, v2) {
3180
- return exports3[id] = previous ? previous(id, v2) : v2;
3181
- };
3182
- }
3183
- })(function(exporter) {
3184
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
3185
- d2.__proto__ = b2;
3186
- } || function(d2, b2) {
3187
- for (var p2 in b2)
3188
- if (Object.prototype.hasOwnProperty.call(b2, p2))
3189
- d2[p2] = b2[p2];
3190
- };
3191
- __extends = function(d2, b2) {
3192
- if (typeof b2 !== "function" && b2 !== null)
3193
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
3194
- extendStatics(d2, b2);
3195
- function __() {
3196
- this.constructor = d2;
3197
- }
3198
- d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
3199
- };
3200
- __assign = Object.assign || function(t2) {
3201
- for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
3202
- s2 = arguments[i2];
3203
- for (var p2 in s2)
3204
- if (Object.prototype.hasOwnProperty.call(s2, p2))
3205
- t2[p2] = s2[p2];
3206
- }
3207
- return t2;
3208
- };
3209
- __rest = function(s2, e2) {
3210
- var t2 = {};
3211
- for (var p2 in s2)
3212
- if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
3213
- t2[p2] = s2[p2];
3214
- if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
3215
- for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
3216
- if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
3217
- t2[p2[i2]] = s2[p2[i2]];
3218
- }
3219
- return t2;
3220
- };
3221
- __decorate = function(decorators, target, key, desc) {
3222
- var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
3223
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
3224
- r2 = Reflect.decorate(decorators, target, key, desc);
3225
- else
3226
- for (var i2 = decorators.length - 1;i2 >= 0; i2--)
3227
- if (d2 = decorators[i2])
3228
- r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
3229
- return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
3230
- };
3231
- __param = function(paramIndex, decorator) {
3232
- return function(target, key) {
3233
- decorator(target, key, paramIndex);
3234
- };
3235
- };
3236
- __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3237
- function accept(f2) {
3238
- if (f2 !== undefined && typeof f2 !== "function")
3239
- throw new TypeError("Function expected");
3240
- return f2;
3241
- }
3242
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
3243
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
3244
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
3245
- var _2, done = false;
3246
- for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
3247
- var context = {};
3248
- for (var p2 in contextIn)
3249
- context[p2] = p2 === "access" ? {} : contextIn[p2];
3250
- for (var p2 in contextIn.access)
3251
- context.access[p2] = contextIn.access[p2];
3252
- context.addInitializer = function(f2) {
3253
- if (done)
3254
- throw new TypeError("Cannot add initializers after decoration has completed");
3255
- extraInitializers.push(accept(f2 || null));
3256
- };
3257
- var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
3258
- if (kind === "accessor") {
3259
- if (result === undefined)
3260
- continue;
3261
- if (result === null || typeof result !== "object")
3262
- throw new TypeError("Object expected");
3263
- if (_2 = accept(result.get))
3264
- descriptor.get = _2;
3265
- if (_2 = accept(result.set))
3266
- descriptor.set = _2;
3267
- if (_2 = accept(result.init))
3268
- initializers.unshift(_2);
3269
- } else if (_2 = accept(result)) {
3270
- if (kind === "field")
3271
- initializers.unshift(_2);
3272
- else
3273
- descriptor[key] = _2;
3274
- }
3275
- }
3276
- if (target)
3277
- Object.defineProperty(target, contextIn.name, descriptor);
3278
- done = true;
3279
- };
3280
- __runInitializers = function(thisArg, initializers, value) {
3281
- var useValue = arguments.length > 2;
3282
- for (var i2 = 0;i2 < initializers.length; i2++) {
3283
- value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
3284
- }
3285
- return useValue ? value : undefined;
3286
- };
3287
- __propKey = function(x2) {
3288
- return typeof x2 === "symbol" ? x2 : "".concat(x2);
3289
- };
3290
- __setFunctionName = function(f2, name, prefix) {
3291
- if (typeof name === "symbol")
3292
- name = name.description ? "[".concat(name.description, "]") : "";
3293
- return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
3294
- };
3295
- __metadata = function(metadataKey, metadataValue) {
3296
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
3297
- return Reflect.metadata(metadataKey, metadataValue);
3298
- };
3299
- __awaiter = function(thisArg, _arguments, P, generator) {
3300
- function adopt(value) {
3301
- return value instanceof P ? value : new P(function(resolve) {
3302
- resolve(value);
3303
- });
3304
- }
3305
- return new (P || (P = Promise))(function(resolve, reject) {
3306
- function fulfilled(value) {
3307
- try {
3308
- step(generator.next(value));
3309
- } catch (e2) {
3310
- reject(e2);
3311
- }
3312
- }
3313
- function rejected(value) {
3314
- try {
3315
- step(generator["throw"](value));
3316
- } catch (e2) {
3317
- reject(e2);
3318
- }
3319
- }
3320
- function step(result) {
3321
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
3322
- }
3323
- step((generator = generator.apply(thisArg, _arguments || [])).next());
3324
- });
3325
- };
3326
- __generator = function(thisArg, body) {
3327
- var _2 = { label: 0, sent: function() {
3328
- if (t2[0] & 1)
3329
- throw t2[1];
3330
- return t2[1];
3331
- }, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
3332
- return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
3333
- return this;
3334
- }), g2;
3335
- function verb(n2) {
3336
- return function(v2) {
3337
- return step([n2, v2]);
3338
- };
3339
- }
3340
- function step(op) {
3341
- if (f2)
3342
- throw new TypeError("Generator is already executing.");
3343
- while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
3344
- try {
3345
- if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
3346
- return t2;
3347
- if (y2 = 0, t2)
3348
- op = [op[0] & 2, t2.value];
3349
- switch (op[0]) {
3350
- case 0:
3351
- case 1:
3352
- t2 = op;
3353
- break;
3354
- case 4:
3355
- _2.label++;
3356
- return { value: op[1], done: false };
3357
- case 5:
3358
- _2.label++;
3359
- y2 = op[1];
3360
- op = [0];
3361
- continue;
3362
- case 7:
3363
- op = _2.ops.pop();
3364
- _2.trys.pop();
3365
- continue;
3366
- default:
3367
- if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
3368
- _2 = 0;
3369
- continue;
3370
- }
3371
- if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
3372
- _2.label = op[1];
3373
- break;
3374
- }
3375
- if (op[0] === 6 && _2.label < t2[1]) {
3376
- _2.label = t2[1];
3377
- t2 = op;
3378
- break;
3379
- }
3380
- if (t2 && _2.label < t2[2]) {
3381
- _2.label = t2[2];
3382
- _2.ops.push(op);
3383
- break;
3384
- }
3385
- if (t2[2])
3386
- _2.ops.pop();
3387
- _2.trys.pop();
3388
- continue;
3389
- }
3390
- op = body.call(thisArg, _2);
3391
- } catch (e2) {
3392
- op = [6, e2];
3393
- y2 = 0;
3394
- } finally {
3395
- f2 = t2 = 0;
3396
- }
3397
- if (op[0] & 5)
3398
- throw op[1];
3399
- return { value: op[0] ? op[1] : undefined, done: true };
3400
- }
3401
- };
3402
- __exportStar = function(m2, o2) {
3403
- for (var p2 in m2)
3404
- if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
3405
- __createBinding(o2, m2, p2);
3406
- };
3407
- __createBinding = Object.create ? function(o2, m2, k, k2) {
3408
- if (k2 === undefined)
3409
- k2 = k;
3410
- var desc = Object.getOwnPropertyDescriptor(m2, k);
3411
- if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
3412
- desc = { enumerable: true, get: function() {
3413
- return m2[k];
3414
- } };
3415
- }
3416
- Object.defineProperty(o2, k2, desc);
3417
- } : function(o2, m2, k, k2) {
3418
- if (k2 === undefined)
3419
- k2 = k;
3420
- o2[k2] = m2[k];
3421
- };
3422
- __values = function(o2) {
3423
- var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
3424
- if (m2)
3425
- return m2.call(o2);
3426
- if (o2 && typeof o2.length === "number")
3427
- return {
3428
- next: function() {
3429
- if (o2 && i2 >= o2.length)
3430
- o2 = undefined;
3431
- return { value: o2 && o2[i2++], done: !o2 };
3432
- }
3433
- };
3434
- throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
3435
- };
3436
- __read = function(o2, n2) {
3437
- var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
3438
- if (!m2)
3439
- return o2;
3440
- var i2 = m2.call(o2), r2, ar = [], e2;
3441
- try {
3442
- while ((n2 === undefined || n2-- > 0) && !(r2 = i2.next()).done)
3443
- ar.push(r2.value);
3444
- } catch (error) {
3445
- e2 = { error };
3446
- } finally {
3447
- try {
3448
- if (r2 && !r2.done && (m2 = i2["return"]))
3449
- m2.call(i2);
3450
- } finally {
3451
- if (e2)
3452
- throw e2.error;
3453
- }
3454
- }
3455
- return ar;
3456
- };
3457
- __spread = function() {
3458
- for (var ar = [], i2 = 0;i2 < arguments.length; i2++)
3459
- ar = ar.concat(__read(arguments[i2]));
3460
- return ar;
3461
- };
3462
- __spreadArrays = function() {
3463
- for (var s2 = 0, i2 = 0, il = arguments.length;i2 < il; i2++)
3464
- s2 += arguments[i2].length;
3465
- for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
3466
- for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
3467
- r2[k] = a2[j];
3468
- return r2;
3469
- };
3470
- __spreadArray = function(to, from, pack) {
3471
- if (pack || arguments.length === 2)
3472
- for (var i2 = 0, l2 = from.length, ar;i2 < l2; i2++) {
3473
- if (ar || !(i2 in from)) {
3474
- if (!ar)
3475
- ar = Array.prototype.slice.call(from, 0, i2);
3476
- ar[i2] = from[i2];
3477
- }
3478
- }
3479
- return to.concat(ar || Array.prototype.slice.call(from));
3480
- };
3481
- __await = function(v2) {
3482
- return this instanceof __await ? (this.v = v2, this) : new __await(v2);
3483
- };
3484
- __asyncGenerator = function(thisArg, _arguments, generator) {
3485
- if (!Symbol.asyncIterator)
3486
- throw new TypeError("Symbol.asyncIterator is not defined.");
3487
- var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
3488
- return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
3489
- return this;
3490
- }, i2;
3491
- function awaitReturn(f2) {
3492
- return function(v2) {
3493
- return Promise.resolve(v2).then(f2, reject);
3494
- };
3495
- }
3496
- function verb(n2, f2) {
3497
- if (g2[n2]) {
3498
- i2[n2] = function(v2) {
3499
- return new Promise(function(a2, b2) {
3500
- q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
3501
- });
3502
- };
3503
- if (f2)
3504
- i2[n2] = f2(i2[n2]);
3505
- }
3506
- }
3507
- function resume(n2, v2) {
3508
- try {
3509
- step(g2[n2](v2));
3510
- } catch (e2) {
3511
- settle(q2[0][3], e2);
3512
- }
3513
- }
3514
- function step(r2) {
3515
- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
3516
- }
3517
- function fulfill(value) {
3518
- resume("next", value);
3519
- }
3520
- function reject(value) {
3521
- resume("throw", value);
3522
- }
3523
- function settle(f2, v2) {
3524
- if (f2(v2), q2.shift(), q2.length)
3525
- resume(q2[0][0], q2[0][1]);
3526
- }
3527
- };
3528
- __asyncDelegator = function(o2) {
3529
- var i2, p2;
3530
- return i2 = {}, verb("next"), verb("throw", function(e2) {
3531
- throw e2;
3532
- }), verb("return"), i2[Symbol.iterator] = function() {
3533
- return this;
3534
- }, i2;
3535
- function verb(n2, f2) {
3536
- i2[n2] = o2[n2] ? function(v2) {
3537
- return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2;
3538
- } : f2;
3539
- }
3540
- };
3541
- __asyncValues = function(o2) {
3542
- if (!Symbol.asyncIterator)
3543
- throw new TypeError("Symbol.asyncIterator is not defined.");
3544
- var m2 = o2[Symbol.asyncIterator], i2;
3545
- return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
3546
- return this;
3547
- }, i2);
3548
- function verb(n2) {
3549
- i2[n2] = o2[n2] && function(v2) {
3550
- return new Promise(function(resolve, reject) {
3551
- v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
3552
- });
3553
- };
3554
- }
3555
- function settle(resolve, reject, d2, v2) {
3556
- Promise.resolve(v2).then(function(v3) {
3557
- resolve({ value: v3, done: d2 });
3558
- }, reject);
3559
- }
3560
- };
3561
- __makeTemplateObject = function(cooked, raw) {
3562
- if (Object.defineProperty) {
3563
- Object.defineProperty(cooked, "raw", { value: raw });
3564
- } else {
3565
- cooked.raw = raw;
3566
- }
3567
- return cooked;
3568
- };
3569
- var __setModuleDefault = Object.create ? function(o2, v2) {
3570
- Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
3571
- } : function(o2, v2) {
3572
- o2["default"] = v2;
3573
- };
3574
- var ownKeys = function(o2) {
3575
- ownKeys = Object.getOwnPropertyNames || function(o3) {
3576
- var ar = [];
3577
- for (var k in o3)
3578
- if (Object.prototype.hasOwnProperty.call(o3, k))
3579
- ar[ar.length] = k;
3580
- return ar;
3581
- };
3582
- return ownKeys(o2);
3583
- };
3584
- __importStar = function(mod) {
3585
- if (mod && mod.__esModule)
3586
- return mod;
3587
- var result = {};
3588
- if (mod != null) {
3589
- for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
3590
- if (k[i2] !== "default")
3591
- __createBinding(result, mod, k[i2]);
3592
- }
3593
- __setModuleDefault(result, mod);
3594
- return result;
3595
- };
3596
- __importDefault = function(mod) {
3597
- return mod && mod.__esModule ? mod : { default: mod };
3598
- };
3599
- __classPrivateFieldGet = function(receiver, state, kind, f2) {
3600
- if (kind === "a" && !f2)
3601
- throw new TypeError("Private accessor was defined without a getter");
3602
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
3603
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
3604
- return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
3605
- };
3606
- __classPrivateFieldSet = function(receiver, state, value, kind, f2) {
3607
- if (kind === "m")
3608
- throw new TypeError("Private method is not writable");
3609
- if (kind === "a" && !f2)
3610
- throw new TypeError("Private accessor was defined without a setter");
3611
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
3612
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
3613
- return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
3614
- };
3615
- __classPrivateFieldIn = function(state, receiver) {
3616
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
3617
- throw new TypeError("Cannot use 'in' operator on non-object");
3618
- return typeof state === "function" ? receiver === state : state.has(receiver);
3619
- };
3620
- __addDisposableResource = function(env, value, async) {
3621
- if (value !== null && value !== undefined) {
3622
- if (typeof value !== "object" && typeof value !== "function")
3623
- throw new TypeError("Object expected.");
3624
- var dispose, inner;
3625
- if (async) {
3626
- if (!Symbol.asyncDispose)
3627
- throw new TypeError("Symbol.asyncDispose is not defined.");
3628
- dispose = value[Symbol.asyncDispose];
3629
- }
3630
- if (dispose === undefined) {
3631
- if (!Symbol.dispose)
3632
- throw new TypeError("Symbol.dispose is not defined.");
3633
- dispose = value[Symbol.dispose];
3634
- if (async)
3635
- inner = dispose;
3636
- }
3637
- if (typeof dispose !== "function")
3638
- throw new TypeError("Object not disposable.");
3639
- if (inner)
3640
- dispose = function() {
3641
- try {
3642
- inner.call(this);
3643
- } catch (e2) {
3644
- return Promise.reject(e2);
3645
- }
3646
- };
3647
- env.stack.push({ value, dispose, async });
3648
- } else if (async) {
3649
- env.stack.push({ async: true });
3650
- }
3651
- return value;
3652
- };
3653
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
3654
- var e2 = new Error(message);
3655
- return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
3656
- };
3657
- __disposeResources = function(env) {
3658
- function fail(e2) {
3659
- env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
3660
- env.hasError = true;
3661
- }
3662
- var r2, s2 = 0;
3663
- function next() {
3664
- while (r2 = env.stack.pop()) {
3665
- try {
3666
- if (!r2.async && s2 === 1)
3667
- return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
3668
- if (r2.dispose) {
3669
- var result = r2.dispose.call(r2.value);
3670
- if (r2.async)
3671
- return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
3672
- fail(e2);
3673
- return next();
3674
- });
3675
- } else
3676
- s2 |= 1;
3677
- } catch (e2) {
3678
- fail(e2);
3679
- }
3680
- }
3681
- if (s2 === 1)
3682
- return env.hasError ? Promise.reject(env.error) : Promise.resolve();
3683
- if (env.hasError)
3684
- throw env.error;
3685
- }
3686
- return next();
3687
- };
3688
- __rewriteRelativeImportExtension = function(path, preserveJsx) {
3689
- if (typeof path === "string" && /^\.\.?\//.test(path)) {
3690
- return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
3691
- return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
3692
- });
3693
- }
3694
- return path;
3695
- };
3696
- exporter("__extends", __extends);
3697
- exporter("__assign", __assign);
3698
- exporter("__rest", __rest);
3699
- exporter("__decorate", __decorate);
3700
- exporter("__param", __param);
3701
- exporter("__esDecorate", __esDecorate);
3702
- exporter("__runInitializers", __runInitializers);
3703
- exporter("__propKey", __propKey);
3704
- exporter("__setFunctionName", __setFunctionName);
3705
- exporter("__metadata", __metadata);
3706
- exporter("__awaiter", __awaiter);
3707
- exporter("__generator", __generator);
3708
- exporter("__exportStar", __exportStar);
3709
- exporter("__createBinding", __createBinding);
3710
- exporter("__values", __values);
3711
- exporter("__read", __read);
3712
- exporter("__spread", __spread);
3713
- exporter("__spreadArrays", __spreadArrays);
3714
- exporter("__spreadArray", __spreadArray);
3715
- exporter("__await", __await);
3716
- exporter("__asyncGenerator", __asyncGenerator);
3717
- exporter("__asyncDelegator", __asyncDelegator);
3718
- exporter("__asyncValues", __asyncValues);
3719
- exporter("__makeTemplateObject", __makeTemplateObject);
3720
- exporter("__importStar", __importStar);
3721
- exporter("__importDefault", __importDefault);
3722
- exporter("__classPrivateFieldGet", __classPrivateFieldGet);
3723
- exporter("__classPrivateFieldSet", __classPrivateFieldSet);
3724
- exporter("__classPrivateFieldIn", __classPrivateFieldIn);
3725
- exporter("__addDisposableResource", __addDisposableResource);
3726
- exporter("__disposeResources", __disposeResources);
3727
- exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
3728
- });
3729
- });
3730
-
3731
- // node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
3732
- var require_languageMatching = __commonJS((exports2) => {
3733
- Object.defineProperty(exports2, "__esModule", { value: true });
3734
- exports2.data = undefined;
3735
- exports2.data = {
3736
- supplemental: {
3737
- languageMatching: {
3738
- "written-new": [
3739
- {
3740
- paradigmLocales: {
3741
- _locales: "en en_GB es es_419 pt_BR pt_PT"
3171
+ // node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
3172
+ var require_languageMatching = __commonJS((exports2) => {
3173
+ Object.defineProperty(exports2, "__esModule", { value: true });
3174
+ exports2.data = undefined;
3175
+ exports2.data = {
3176
+ supplemental: {
3177
+ languageMatching: {
3178
+ "written-new": [
3179
+ {
3180
+ paradigmLocales: {
3181
+ _locales: "en en_GB es es_419 pt_BR pt_PT"
3742
3182
  }
3743
3183
  },
3744
3184
  {
@@ -7620,1637 +7060,1032 @@ var require_regions_generated = __commonJS((exports2) => {
7620
7060
  "MX",
7621
7061
  "MY",
7622
7062
  "MZ",
7623
- "NA",
7624
- "NE",
7625
- "NG",
7626
- "NI",
7627
- "NL",
7628
- "NO",
7629
- "NP",
7630
- "NR",
7631
- "NZ",
7632
- "OM",
7633
- "PA",
7634
- "PE",
7635
- "PG",
7636
- "PH",
7637
- "PK",
7638
- "PL",
7639
- "PT",
7640
- "PW",
7641
- "PY",
7642
- "QA",
7643
- "RO",
7644
- "RS",
7645
- "RU",
7646
- "RW",
7647
- "SA",
7648
- "SB",
7649
- "SC",
7650
- "SD",
7651
- "SE",
7652
- "SG",
7653
- "SI",
7654
- "SK",
7655
- "SL",
7656
- "SM",
7657
- "SN",
7658
- "SO",
7659
- "SR",
7660
- "SS",
7661
- "ST",
7662
- "SV",
7663
- "SY",
7664
- "SZ",
7665
- "TD",
7666
- "TG",
7667
- "TH",
7668
- "TJ",
7669
- "TL",
7670
- "TM",
7671
- "TN",
7672
- "TO",
7673
- "TR",
7674
- "TT",
7675
- "TV",
7676
- "TZ",
7677
- "UA",
7678
- "UG",
7679
- "UN",
7680
- "US",
7681
- "UY",
7682
- "UZ",
7683
- "VC",
7684
- "VE",
7685
- "VN",
7686
- "VU",
7687
- "WS",
7688
- "YE",
7689
- "ZA",
7690
- "ZM",
7691
- "ZW"
7692
- ]
7693
- };
7694
- });
7695
-
7696
- // node_modules/@formatjs/intl-localematcher/abstract/utils.js
7697
- var require_utils2 = __commonJS((exports2) => {
7698
- Object.defineProperty(exports2, "__esModule", { value: true });
7699
- exports2.findBestMatch = exports2.findMatchingDistance = exports2.invariant = exports2.UNICODE_EXTENSION_SEQUENCE_REGEX = undefined;
7700
- var tslib_1 = require_tslib2();
7701
- var languageMatching_1 = require_languageMatching();
7702
- var regions_generated_1 = require_regions_generated();
7703
- exports2.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
7704
- function invariant(condition, message, Err) {
7705
- if (Err === undefined) {
7706
- Err = Error;
7707
- }
7708
- if (!condition) {
7709
- throw new Err(message);
7710
- }
7711
- }
7712
- exports2.invariant = invariant;
7713
- var DEFAULT_MATCHING_THRESHOLD = 838;
7714
- var PROCESSED_DATA;
7715
- function processData() {
7716
- var _a, _b;
7717
- if (!PROCESSED_DATA) {
7718
- var paradigmLocales = (_b = (_a = languageMatching_1.data.supplemental.languageMatching["written-new"][0]) === null || _a === undefined ? undefined : _a.paradigmLocales) === null || _b === undefined ? undefined : _b._locales.split(" ");
7719
- var matchVariables = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(1, 5);
7720
- var data = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(5);
7721
- var matches = data.map(function(d2) {
7722
- var key = Object.keys(d2)[0];
7723
- var value = d2[key];
7724
- return {
7725
- supported: key,
7726
- desired: value._desired,
7727
- distance: +value._distance,
7728
- oneway: value.oneway === "true" ? true : false
7729
- };
7730
- }, {});
7731
- PROCESSED_DATA = {
7732
- matches,
7733
- matchVariables: matchVariables.reduce(function(all, d2) {
7734
- var key = Object.keys(d2)[0];
7735
- var value = d2[key];
7736
- all[key.slice(1)] = value._value.split("+");
7737
- return all;
7738
- }, {}),
7739
- paradigmLocales: tslib_1.__spreadArray(tslib_1.__spreadArray([], paradigmLocales, true), paradigmLocales.map(function(l2) {
7740
- return new Intl.Locale(l2.replace(/_/g, "-")).maximize().toString();
7741
- }), true)
7742
- };
7743
- }
7744
- return PROCESSED_DATA;
7745
- }
7746
- function isMatched(locale, languageMatchInfoLocale, matchVariables) {
7747
- var _a = languageMatchInfoLocale.split("-"), language = _a[0], script = _a[1], region = _a[2];
7748
- var matches = true;
7749
- if (region && region[0] === "$") {
7750
- var shouldInclude = region[1] !== "!";
7751
- var matchRegions = shouldInclude ? matchVariables[region.slice(1)] : matchVariables[region.slice(2)];
7752
- var expandedMatchedRegions = matchRegions.map(function(r2) {
7753
- return regions_generated_1.regions[r2] || [r2];
7754
- }).reduce(function(all, list) {
7755
- return tslib_1.__spreadArray(tslib_1.__spreadArray([], all, true), list, true);
7756
- }, []);
7757
- matches && (matches = !(expandedMatchedRegions.indexOf(locale.region || "") > 1 != shouldInclude));
7758
- } else {
7759
- matches && (matches = locale.region ? region === "*" || region === locale.region : true);
7760
- }
7761
- matches && (matches = locale.script ? script === "*" || script === locale.script : true);
7762
- matches && (matches = locale.language ? language === "*" || language === locale.language : true);
7763
- return matches;
7764
- }
7765
- function serializeLSR(lsr) {
7766
- return [lsr.language, lsr.script, lsr.region].filter(Boolean).join("-");
7767
- }
7768
- function findMatchingDistanceForLSR(desired, supported, data) {
7769
- for (var _i = 0, _a = data.matches;_i < _a.length; _i++) {
7770
- var d2 = _a[_i];
7771
- var matches = isMatched(desired, d2.desired, data.matchVariables) && isMatched(supported, d2.supported, data.matchVariables);
7772
- if (!d2.oneway && !matches) {
7773
- matches = isMatched(desired, d2.supported, data.matchVariables) && isMatched(supported, d2.desired, data.matchVariables);
7774
- }
7775
- if (matches) {
7776
- var distance = d2.distance * 10;
7777
- if (data.paradigmLocales.indexOf(serializeLSR(desired)) > -1 != data.paradigmLocales.indexOf(serializeLSR(supported)) > -1) {
7778
- return distance - 1;
7779
- }
7780
- return distance;
7781
- }
7782
- }
7783
- throw new Error("No matching distance found");
7784
- }
7785
- function findMatchingDistance(desired, supported) {
7786
- var desiredLocale = new Intl.Locale(desired).maximize();
7787
- var supportedLocale = new Intl.Locale(supported).maximize();
7788
- var desiredLSR = {
7789
- language: desiredLocale.language,
7790
- script: desiredLocale.script || "",
7791
- region: desiredLocale.region || ""
7792
- };
7793
- var supportedLSR = {
7794
- language: supportedLocale.language,
7795
- script: supportedLocale.script || "",
7796
- region: supportedLocale.region || ""
7797
- };
7798
- var matchingDistance = 0;
7799
- var data = processData();
7800
- if (desiredLSR.language !== supportedLSR.language) {
7801
- matchingDistance += findMatchingDistanceForLSR({
7802
- language: desiredLocale.language,
7803
- script: "",
7804
- region: ""
7805
- }, {
7806
- language: supportedLocale.language,
7807
- script: "",
7808
- region: ""
7809
- }, data);
7810
- }
7811
- if (desiredLSR.script !== supportedLSR.script) {
7812
- matchingDistance += findMatchingDistanceForLSR({
7813
- language: desiredLocale.language,
7814
- script: desiredLSR.script,
7815
- region: ""
7816
- }, {
7817
- language: supportedLocale.language,
7818
- script: desiredLSR.script,
7819
- region: ""
7820
- }, data);
7821
- }
7822
- if (desiredLSR.region !== supportedLSR.region) {
7823
- matchingDistance += findMatchingDistanceForLSR(desiredLSR, supportedLSR, data);
7824
- }
7825
- return matchingDistance;
7826
- }
7827
- exports2.findMatchingDistance = findMatchingDistance;
7828
- function findBestMatch(requestedLocales, supportedLocales, threshold) {
7829
- if (threshold === undefined) {
7830
- threshold = DEFAULT_MATCHING_THRESHOLD;
7831
- }
7832
- var lowestDistance = Infinity;
7833
- var result = {
7834
- matchedDesiredLocale: "",
7835
- distances: {}
7836
- };
7837
- requestedLocales.forEach(function(desired, i2) {
7838
- if (!result.distances[desired]) {
7839
- result.distances[desired] = {};
7840
- }
7841
- supportedLocales.forEach(function(supported) {
7842
- var distance = findMatchingDistance(desired, supported) + 0 + i2 * 40;
7843
- result.distances[desired][supported] = distance;
7844
- if (distance < lowestDistance) {
7845
- lowestDistance = distance;
7846
- result.matchedDesiredLocale = desired;
7847
- result.matchedSupportedLocale = supported;
7848
- }
7849
- });
7850
- });
7851
- if (lowestDistance >= threshold) {
7852
- result.matchedDesiredLocale = undefined;
7853
- result.matchedSupportedLocale = undefined;
7854
- }
7855
- return result;
7856
- }
7857
- exports2.findBestMatch = findBestMatch;
7858
- });
7859
-
7860
- // node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js
7861
- var require_BestFitMatcher = __commonJS((exports2) => {
7862
- Object.defineProperty(exports2, "__esModule", { value: true });
7863
- exports2.BestFitMatcher = undefined;
7864
- var utils_1 = require_utils2();
7865
- function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
7866
- var foundLocale;
7867
- var extension;
7868
- var noExtensionLocales = [];
7869
- var noExtensionLocaleMap = requestedLocales.reduce(function(all, l2) {
7870
- var noExtensionLocale = l2.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
7871
- noExtensionLocales.push(noExtensionLocale);
7872
- all[noExtensionLocale] = l2;
7873
- return all;
7874
- }, {});
7875
- var result = (0, utils_1.findBestMatch)(noExtensionLocales, availableLocales);
7876
- if (result.matchedSupportedLocale && result.matchedDesiredLocale) {
7877
- foundLocale = result.matchedSupportedLocale;
7878
- extension = noExtensionLocaleMap[result.matchedDesiredLocale].slice(result.matchedDesiredLocale.length) || undefined;
7879
- }
7880
- if (!foundLocale) {
7881
- return { locale: getDefaultLocale() };
7882
- }
7883
- return {
7884
- locale: foundLocale,
7885
- extension
7886
- };
7887
- }
7888
- exports2.BestFitMatcher = BestFitMatcher;
7889
- });
7890
-
7891
- // node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js
7892
- var require_BestAvailableLocale = __commonJS((exports2) => {
7893
- Object.defineProperty(exports2, "__esModule", { value: true });
7894
- exports2.BestAvailableLocale = undefined;
7895
- function BestAvailableLocale(availableLocales, locale) {
7896
- var candidate = locale;
7897
- while (true) {
7898
- if (availableLocales.indexOf(candidate) > -1) {
7899
- return candidate;
7900
- }
7901
- var pos = candidate.lastIndexOf("-");
7902
- if (!~pos) {
7903
- return;
7904
- }
7905
- if (pos >= 2 && candidate[pos - 2] === "-") {
7906
- pos -= 2;
7907
- }
7908
- candidate = candidate.slice(0, pos);
7909
- }
7910
- }
7911
- exports2.BestAvailableLocale = BestAvailableLocale;
7912
- });
7913
-
7914
- // node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js
7915
- var require_LookupMatcher = __commonJS((exports2) => {
7916
- Object.defineProperty(exports2, "__esModule", { value: true });
7917
- exports2.LookupMatcher = undefined;
7918
- var BestAvailableLocale_1 = require_BestAvailableLocale();
7919
- var utils_1 = require_utils2();
7920
- function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
7921
- var result = { locale: "" };
7922
- for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
7923
- var locale = requestedLocales_1[_i];
7924
- var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
7925
- var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
7926
- if (availableLocale) {
7927
- result.locale = availableLocale;
7928
- if (locale !== noExtensionLocale) {
7929
- result.extension = locale.slice(noExtensionLocale.length, locale.length);
7930
- }
7931
- return result;
7932
- }
7933
- }
7934
- result.locale = getDefaultLocale();
7935
- return result;
7936
- }
7937
- exports2.LookupMatcher = LookupMatcher;
7938
- });
7939
-
7940
- // node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionValue.js
7941
- var require_UnicodeExtensionValue = __commonJS((exports2) => {
7942
- Object.defineProperty(exports2, "__esModule", { value: true });
7943
- exports2.UnicodeExtensionValue = undefined;
7944
- var utils_1 = require_utils2();
7945
- function UnicodeExtensionValue(extension, key) {
7946
- (0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
7947
- var size = extension.length;
7948
- var searchValue = "-".concat(key, "-");
7949
- var pos = extension.indexOf(searchValue);
7950
- if (pos !== -1) {
7951
- var start = pos + 4;
7952
- var end = start;
7953
- var k = start;
7954
- var done = false;
7955
- while (!done) {
7956
- var e2 = extension.indexOf("-", k);
7957
- var len = undefined;
7958
- if (e2 === -1) {
7959
- len = size - k;
7960
- } else {
7961
- len = e2 - k;
7962
- }
7963
- if (len === 2) {
7964
- done = true;
7965
- } else if (e2 === -1) {
7966
- end = size;
7967
- done = true;
7968
- } else {
7969
- end = e2;
7970
- k = e2 + 1;
7971
- }
7972
- }
7973
- return extension.slice(start, end);
7974
- }
7975
- searchValue = "-".concat(key);
7976
- pos = extension.indexOf(searchValue);
7977
- if (pos !== -1 && pos + 3 === size) {
7978
- return "";
7979
- }
7980
- return;
7981
- }
7982
- exports2.UnicodeExtensionValue = UnicodeExtensionValue;
7983
- });
7984
-
7985
- // node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js
7986
- var require_ResolveLocale = __commonJS((exports2) => {
7987
- Object.defineProperty(exports2, "__esModule", { value: true });
7988
- exports2.ResolveLocale = undefined;
7989
- var BestFitMatcher_1 = require_BestFitMatcher();
7990
- var LookupMatcher_1 = require_LookupMatcher();
7991
- var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
7992
- var utils_1 = require_utils2();
7993
- function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
7994
- var matcher = options.localeMatcher;
7995
- var r2;
7996
- if (matcher === "lookup") {
7997
- r2 = (0, LookupMatcher_1.LookupMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
7998
- } else {
7999
- r2 = (0, BestFitMatcher_1.BestFitMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
8000
- }
8001
- var foundLocale = r2.locale;
8002
- var result = { locale: "", dataLocale: foundLocale };
8003
- var supportedExtension = "-u";
8004
- for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys;_i < relevantExtensionKeys_1.length; _i++) {
8005
- var key = relevantExtensionKeys_1[_i];
8006
- (0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
8007
- var foundLocaleData = localeData[foundLocale];
8008
- (0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
8009
- var keyLocaleData = foundLocaleData[key];
8010
- (0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
8011
- var value = keyLocaleData[0];
8012
- (0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
8013
- var supportedExtensionAddition = "";
8014
- if (r2.extension) {
8015
- var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r2.extension, key);
8016
- if (requestedValue !== undefined) {
8017
- if (requestedValue !== "") {
8018
- if (~keyLocaleData.indexOf(requestedValue)) {
8019
- value = requestedValue;
8020
- supportedExtensionAddition = "-".concat(key, "-").concat(value);
8021
- }
8022
- } else if (~requestedValue.indexOf("true")) {
8023
- value = "true";
8024
- supportedExtensionAddition = "-".concat(key);
8025
- }
8026
- }
8027
- }
8028
- if (key in options) {
8029
- var optionsValue = options[key];
8030
- (0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
8031
- if (~keyLocaleData.indexOf(optionsValue)) {
8032
- if (optionsValue !== value) {
8033
- value = optionsValue;
8034
- supportedExtensionAddition = "";
8035
- }
8036
- }
8037
- }
8038
- result[key] = value;
8039
- supportedExtension += supportedExtensionAddition;
8040
- }
8041
- if (supportedExtension.length > 2) {
8042
- var privateIndex = foundLocale.indexOf("-x-");
8043
- if (privateIndex === -1) {
8044
- foundLocale = foundLocale + supportedExtension;
8045
- } else {
8046
- var preExtension = foundLocale.slice(0, privateIndex);
8047
- var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
8048
- foundLocale = preExtension + supportedExtension + postExtension;
8049
- }
8050
- foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
8051
- }
8052
- result.locale = foundLocale;
8053
- return result;
8054
- }
8055
- exports2.ResolveLocale = ResolveLocale;
8056
- });
8057
-
8058
- // node_modules/@formatjs/intl-localematcher/abstract/LookupSupportedLocales.js
8059
- var require_LookupSupportedLocales = __commonJS((exports2) => {
8060
- Object.defineProperty(exports2, "__esModule", { value: true });
8061
- exports2.LookupSupportedLocales = undefined;
8062
- var BestAvailableLocale_1 = require_BestAvailableLocale();
8063
- var utils_1 = require_utils2();
8064
- function LookupSupportedLocales(availableLocales, requestedLocales) {
8065
- var subset = [];
8066
- for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
8067
- var locale = requestedLocales_1[_i];
8068
- var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
8069
- var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
8070
- if (availableLocale) {
8071
- subset.push(availableLocale);
8072
- }
8073
- }
8074
- return subset;
8075
- }
8076
- exports2.LookupSupportedLocales = LookupSupportedLocales;
8077
- });
8078
-
8079
- // node_modules/@formatjs/intl-localematcher/index.js
8080
- var require_intl_localematcher = __commonJS((exports2) => {
8081
- Object.defineProperty(exports2, "__esModule", { value: true });
8082
- exports2.ResolveLocale = exports2.LookupSupportedLocales = exports2.match = undefined;
8083
- var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList2();
8084
- var ResolveLocale_1 = require_ResolveLocale();
8085
- function match(requestedLocales, availableLocales, defaultLocale, opts) {
8086
- return (0, ResolveLocale_1.ResolveLocale)(availableLocales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
8087
- localeMatcher: (opts === null || opts === undefined ? undefined : opts.algorithm) || "best fit"
8088
- }, [], {}, function() {
8089
- return defaultLocale;
8090
- }).locale;
8091
- }
8092
- exports2.match = match;
8093
- var LookupSupportedLocales_1 = require_LookupSupportedLocales();
8094
- Object.defineProperty(exports2, "LookupSupportedLocales", { enumerable: true, get: function() {
8095
- return LookupSupportedLocales_1.LookupSupportedLocales;
8096
- } });
8097
- var ResolveLocale_2 = require_ResolveLocale();
8098
- Object.defineProperty(exports2, "ResolveLocale", { enumerable: true, get: function() {
8099
- return ResolveLocale_2.ResolveLocale;
8100
- } });
8101
- });
8102
-
8103
- // node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
8104
- var require_SetNumberFormatDigitOptions = __commonJS((exports2) => {
8105
- Object.defineProperty(exports2, "__esModule", { value: true });
8106
- exports2.SetNumberFormatDigitOptions = undefined;
8107
- var DefaultNumberOption_1 = require_DefaultNumberOption();
8108
- var GetNumberOption_1 = require_GetNumberOption();
8109
- var GetOption_1 = require_GetOption();
8110
- function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
8111
- var mnid = (0, GetNumberOption_1.GetNumberOption)(opts, "minimumIntegerDigits", 1, 21, 1);
8112
- var mnfd = opts.minimumFractionDigits;
8113
- var mxfd = opts.maximumFractionDigits;
8114
- var mnsd = opts.minimumSignificantDigits;
8115
- var mxsd = opts.maximumSignificantDigits;
8116
- internalSlots.minimumIntegerDigits = mnid;
8117
- var roundingPriority = (0, GetOption_1.GetOption)(opts, "roundingPriority", "string", ["auto", "morePrecision", "lessPrecision"], "auto");
8118
- var hasSd = mnsd !== undefined || mxsd !== undefined;
8119
- var hasFd = mnfd !== undefined || mxfd !== undefined;
8120
- var needSd = true;
8121
- var needFd = true;
8122
- if (roundingPriority === "auto") {
8123
- needSd = hasSd;
8124
- if (hasSd || !hasFd && notation === "compact") {
8125
- needFd = false;
8126
- }
8127
- }
8128
- if (needSd) {
8129
- if (hasSd) {
8130
- mnsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnsd, 1, 21, 1);
8131
- mxsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxsd, mnsd, 21, 21);
8132
- internalSlots.minimumSignificantDigits = mnsd;
8133
- internalSlots.maximumSignificantDigits = mxsd;
8134
- } else {
8135
- internalSlots.minimumSignificantDigits = 1;
8136
- internalSlots.maximumSignificantDigits = 21;
8137
- }
8138
- }
8139
- if (needFd) {
8140
- if (hasFd) {
8141
- mnfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnfd, 0, 20, undefined);
8142
- mxfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxfd, 0, 20, undefined);
8143
- if (mnfd === undefined) {
8144
- mnfd = Math.min(mnfdDefault, mxfd);
8145
- } else if (mxfd === undefined) {
8146
- mxfd = Math.max(mxfdDefault, mnfd);
8147
- } else if (mnfd > mxfd) {
8148
- throw new RangeError("Invalid range, ".concat(mnfd, " > ").concat(mxfd));
8149
- }
8150
- internalSlots.minimumFractionDigits = mnfd;
8151
- internalSlots.maximumFractionDigits = mxfd;
8152
- } else {
8153
- internalSlots.minimumFractionDigits = mnfdDefault;
8154
- internalSlots.maximumFractionDigits = mxfdDefault;
8155
- }
8156
- }
8157
- if (needSd || needFd) {
8158
- if (roundingPriority === "morePrecision") {
8159
- internalSlots.roundingType = "morePrecision";
8160
- } else if (roundingPriority === "lessPrecision") {
8161
- internalSlots.roundingType = "lessPrecision";
8162
- } else if (hasSd) {
8163
- internalSlots.roundingType = "significantDigits";
8164
- } else {
8165
- internalSlots.roundingType = "fractionDigits";
8166
- }
8167
- } else {
8168
- internalSlots.roundingType = "morePrecision";
8169
- internalSlots.minimumFractionDigits = 0;
8170
- internalSlots.maximumFractionDigits = 0;
8171
- internalSlots.minimumSignificantDigits = 1;
8172
- internalSlots.maximumSignificantDigits = 2;
8173
- }
8174
- }
8175
- exports2.SetNumberFormatDigitOptions = SetNumberFormatDigitOptions;
8176
- });
8177
-
8178
- // node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js
8179
- var require_SetNumberFormatUnitOptions = __commonJS((exports2) => {
8180
- Object.defineProperty(exports2, "__esModule", { value: true });
8181
- exports2.SetNumberFormatUnitOptions = undefined;
8182
- var GetOption_1 = require_GetOption();
8183
- var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
8184
- var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
8185
- function SetNumberFormatUnitOptions(nf, options, _a) {
8186
- if (options === undefined) {
8187
- options = Object.create(null);
8188
- }
8189
- var getInternalSlots = _a.getInternalSlots;
8190
- var internalSlots = getInternalSlots(nf);
8191
- var style = (0, GetOption_1.GetOption)(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
8192
- internalSlots.style = style;
8193
- var currency = (0, GetOption_1.GetOption)(options, "currency", "string", undefined, undefined);
8194
- if (currency !== undefined && !(0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency)) {
8195
- throw RangeError("Malformed currency code");
8196
- }
8197
- if (style === "currency" && currency === undefined) {
8198
- throw TypeError("currency cannot be undefined");
8199
- }
8200
- var currencyDisplay = (0, GetOption_1.GetOption)(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
8201
- var currencySign = (0, GetOption_1.GetOption)(options, "currencySign", "string", ["standard", "accounting"], "standard");
8202
- var unit = (0, GetOption_1.GetOption)(options, "unit", "string", undefined, undefined);
8203
- if (unit !== undefined && !(0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit)) {
8204
- throw RangeError("Invalid unit argument for Intl.NumberFormat()");
8205
- }
8206
- if (style === "unit" && unit === undefined) {
8207
- throw TypeError("unit cannot be undefined");
8208
- }
8209
- var unitDisplay = (0, GetOption_1.GetOption)(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
8210
- if (style === "currency") {
8211
- internalSlots.currency = currency.toUpperCase();
8212
- internalSlots.currencyDisplay = currencyDisplay;
8213
- internalSlots.currencySign = currencySign;
8214
- }
8215
- if (style === "unit") {
8216
- internalSlots.unit = unit;
8217
- internalSlots.unitDisplay = unitDisplay;
8218
- }
8219
- }
8220
- exports2.SetNumberFormatUnitOptions = SetNumberFormatUnitOptions;
8221
- });
8222
-
8223
- // node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.js
8224
- var require_InitializeNumberFormat = __commonJS((exports2) => {
8225
- Object.defineProperty(exports2, "__esModule", { value: true });
8226
- exports2.InitializeNumberFormat = undefined;
8227
- var intl_localematcher_1 = require_intl_localematcher();
8228
- var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
8229
- var CoerceOptionsToObject_1 = require_CoerceOptionsToObject();
8230
- var GetNumberOption_1 = require_GetNumberOption();
8231
- var GetOption_1 = require_GetOption();
8232
- var GetStringOrBooleanOption_1 = require_GetStringOrBooleanOption();
8233
- var utils_1 = require_utils();
8234
- var CurrencyDigits_1 = require_CurrencyDigits();
8235
- var SetNumberFormatDigitOptions_1 = require_SetNumberFormatDigitOptions();
8236
- var SetNumberFormatUnitOptions_1 = require_SetNumberFormatUnitOptions();
8237
- var VALID_ROUND_INCREMENT_VALUES = [
8238
- 1,
8239
- 2,
8240
- 5,
8241
- 10,
8242
- 20,
8243
- 25,
8244
- 50,
8245
- 100,
8246
- 200,
8247
- 250,
8248
- 500,
8249
- 1000,
8250
- 2000
8251
- ];
8252
- function InitializeNumberFormat(nf, locales, opts, _a) {
8253
- var { getInternalSlots, localeData, availableLocales, numberingSystemNames, getDefaultLocale, currencyDigitsData } = _a;
8254
- var requestedLocales = (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(locales);
8255
- var options = (0, CoerceOptionsToObject_1.CoerceOptionsToObject)(opts);
8256
- var opt = Object.create(null);
8257
- var matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
8258
- opt.localeMatcher = matcher;
8259
- var numberingSystem = (0, GetOption_1.GetOption)(options, "numberingSystem", "string", undefined, undefined);
8260
- if (numberingSystem !== undefined && numberingSystemNames.indexOf(numberingSystem) < 0) {
8261
- throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
8262
- }
8263
- opt.nu = numberingSystem;
8264
- var r2 = (0, intl_localematcher_1.ResolveLocale)(Array.from(availableLocales), requestedLocales, opt, ["nu"], localeData, getDefaultLocale);
8265
- var dataLocaleData = localeData[r2.dataLocale];
8266
- (0, utils_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(r2.dataLocale));
8267
- var internalSlots = getInternalSlots(nf);
8268
- internalSlots.locale = r2.locale;
8269
- internalSlots.dataLocale = r2.dataLocale;
8270
- internalSlots.numberingSystem = r2.nu;
8271
- internalSlots.dataLocaleData = dataLocaleData;
8272
- (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots });
8273
- var style = internalSlots.style;
8274
- var mnfdDefault;
8275
- var mxfdDefault;
8276
- if (style === "currency") {
8277
- var currency = internalSlots.currency;
8278
- var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData });
8279
- mnfdDefault = cDigits;
8280
- mxfdDefault = cDigits;
8281
- } else {
8282
- mnfdDefault = 0;
8283
- mxfdDefault = style === "percent" ? 0 : 3;
8284
- }
8285
- var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
8286
- internalSlots.notation = notation;
8287
- (0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
8288
- var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
8289
- if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
8290
- throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
8291
- Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
8292
- }
8293
- if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
8294
- throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
8295
- }
8296
- if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
8297
- throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
8298
- }
8299
- internalSlots.roundingIncrement = roundingIncrement;
8300
- var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
8301
- internalSlots.trailingZeroDisplay = trailingZeroDisplay;
8302
- var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
8303
- var defaultUseGrouping = "auto";
8304
- if (notation === "compact") {
8305
- internalSlots.compactDisplay = compactDisplay;
8306
- defaultUseGrouping = "min2";
8307
- }
8308
- internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
8309
- internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
8310
- internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
8311
- "ceil",
8312
- "floor",
8313
- "expand",
8314
- "trunc",
8315
- "halfCeil",
8316
- "halfFloor",
8317
- "halfExpand",
8318
- "halfTrunc",
8319
- "halfEven"
8320
- ], "halfExpand");
8321
- return nf;
8322
- }
8323
- exports2.InitializeNumberFormat = InitializeNumberFormat;
8324
- });
8325
-
8326
- // node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
8327
- var require_PartitionPattern = __commonJS((exports2) => {
8328
- Object.defineProperty(exports2, "__esModule", { value: true });
8329
- exports2.PartitionPattern = undefined;
8330
- var utils_1 = require_utils();
8331
- function PartitionPattern(pattern) {
8332
- var result = [];
8333
- var beginIndex = pattern.indexOf("{");
8334
- var endIndex = 0;
8335
- var nextIndex = 0;
8336
- var length = pattern.length;
8337
- while (beginIndex < pattern.length && beginIndex > -1) {
8338
- endIndex = pattern.indexOf("}", beginIndex);
8339
- (0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
8340
- if (beginIndex > nextIndex) {
8341
- result.push({
8342
- type: "literal",
8343
- value: pattern.substring(nextIndex, beginIndex)
8344
- });
8345
- }
8346
- result.push({
8347
- type: pattern.substring(beginIndex + 1, endIndex),
8348
- value: undefined
8349
- });
8350
- nextIndex = endIndex + 1;
8351
- beginIndex = pattern.indexOf("{", nextIndex);
8352
- }
8353
- if (nextIndex < length) {
8354
- result.push({
8355
- type: "literal",
8356
- value: pattern.substring(nextIndex, length)
8357
- });
8358
- }
8359
- return result;
8360
- }
8361
- exports2.PartitionPattern = PartitionPattern;
8362
- });
8363
-
8364
- // node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
8365
- var require_SupportedLocales = __commonJS((exports2) => {
8366
- Object.defineProperty(exports2, "__esModule", { value: true });
8367
- exports2.SupportedLocales = undefined;
8368
- var intl_localematcher_1 = require_intl_localematcher();
8369
- var _262_1 = require_262();
8370
- var GetOption_1 = require_GetOption();
8371
- function SupportedLocales(availableLocales, requestedLocales, options) {
8372
- var matcher = "best fit";
8373
- if (options !== undefined) {
8374
- options = (0, _262_1.ToObject)(options);
8375
- matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
8376
- }
8377
- if (matcher === "best fit") {
8378
- return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
8379
- }
8380
- return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
8381
- }
8382
- exports2.SupportedLocales = SupportedLocales;
8383
- });
8384
-
8385
- // node_modules/@formatjs/ecma402-abstract/data.js
8386
- var require_data = __commonJS((exports2) => {
8387
- Object.defineProperty(exports2, "__esModule", { value: true });
8388
- exports2.isMissingLocaleDataError = undefined;
8389
- var tslib_1 = require_tslib();
8390
- var MissingLocaleDataError = function(_super) {
8391
- tslib_1.__extends(MissingLocaleDataError2, _super);
8392
- function MissingLocaleDataError2() {
8393
- var _this = _super !== null && _super.apply(this, arguments) || this;
8394
- _this.type = "MISSING_LOCALE_DATA";
8395
- return _this;
8396
- }
8397
- return MissingLocaleDataError2;
8398
- }(Error);
8399
- function isMissingLocaleDataError(e2) {
8400
- return e2.type === "MISSING_LOCALE_DATA";
8401
- }
8402
- exports2.isMissingLocaleDataError = isMissingLocaleDataError;
8403
- });
8404
-
8405
- // node_modules/@formatjs/ecma402-abstract/types/relative-time.js
8406
- var require_relative_time = __commonJS((exports2) => {
8407
- Object.defineProperty(exports2, "__esModule", { value: true });
8408
- });
8409
-
8410
- // node_modules/@formatjs/ecma402-abstract/types/date-time.js
8411
- var require_date_time = __commonJS((exports2) => {
8412
- Object.defineProperty(exports2, "__esModule", { value: true });
8413
- exports2.RangePatternType = undefined;
8414
- var RangePatternType;
8415
- (function(RangePatternType2) {
8416
- RangePatternType2["startRange"] = "startRange";
8417
- RangePatternType2["shared"] = "shared";
8418
- RangePatternType2["endRange"] = "endRange";
8419
- })(RangePatternType || (exports2.RangePatternType = RangePatternType = {}));
8420
- });
8421
-
8422
- // node_modules/@formatjs/ecma402-abstract/types/list.js
8423
- var require_list = __commonJS((exports2) => {
8424
- Object.defineProperty(exports2, "__esModule", { value: true });
8425
- });
8426
-
8427
- // node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
8428
- var require_plural_rules = __commonJS((exports2) => {
8429
- Object.defineProperty(exports2, "__esModule", { value: true });
8430
- });
8431
-
8432
- // node_modules/@formatjs/ecma402-abstract/types/number.js
8433
- var require_number = __commonJS((exports2) => {
8434
- Object.defineProperty(exports2, "__esModule", { value: true });
8435
- });
8436
-
8437
- // node_modules/@formatjs/ecma402-abstract/types/displaynames.js
8438
- var require_displaynames = __commonJS((exports2) => {
8439
- Object.defineProperty(exports2, "__esModule", { value: true });
8440
- });
8441
-
8442
- // node_modules/@formatjs/ecma402-abstract/index.js
8443
- var require_ecma402_abstract = __commonJS((exports2) => {
8444
- Object.defineProperty(exports2, "__esModule", { value: true });
8445
- exports2.invariant = exports2.isMissingLocaleDataError = exports2.defineProperty = exports2.getMagnitude = exports2.setMultiInternalSlots = exports2.setInternalSlot = exports2.isLiteralPart = exports2.getMultiInternalSlots = exports2.getInternalSlot = exports2._formatToParts = undefined;
8446
- var tslib_1 = require_tslib();
8447
- tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports2);
8448
- tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports2);
8449
- tslib_1.__exportStar(require_CoerceOptionsToObject(), exports2);
8450
- tslib_1.__exportStar(require_GetNumberOption(), exports2);
8451
- tslib_1.__exportStar(require_GetOption(), exports2);
8452
- tslib_1.__exportStar(require_GetOptionsObject(), exports2);
8453
- tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports2);
8454
- tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports2);
8455
- tslib_1.__exportStar(require_IsValidTimeZoneName(), exports2);
8456
- tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports2);
8457
- tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports2);
8458
- tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports2);
8459
- tslib_1.__exportStar(require_CollapseNumberRange(), exports2);
8460
- tslib_1.__exportStar(require_ComputeExponent(), exports2);
8461
- tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports2);
8462
- tslib_1.__exportStar(require_CurrencyDigits(), exports2);
8463
- tslib_1.__exportStar(require_FormatApproximately(), exports2);
8464
- tslib_1.__exportStar(require_FormatNumericRange(), exports2);
8465
- tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports2);
8466
- tslib_1.__exportStar(require_FormatNumericToParts(), exports2);
8467
- tslib_1.__exportStar(require_FormatNumericToString(), exports2);
8468
- tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports2);
8469
- tslib_1.__exportStar(require_InitializeNumberFormat(), exports2);
8470
- tslib_1.__exportStar(require_PartitionNumberPattern(), exports2);
8471
- tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports2);
8472
- tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports2);
8473
- tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports2);
8474
- tslib_1.__exportStar(require_ToRawFixed(), exports2);
8475
- tslib_1.__exportStar(require_ToRawPrecision(), exports2);
8476
- var format_to_parts_1 = require_format_to_parts();
8477
- Object.defineProperty(exports2, "_formatToParts", { enumerable: true, get: function() {
8478
- return tslib_1.__importDefault(format_to_parts_1).default;
8479
- } });
8480
- tslib_1.__exportStar(require_PartitionPattern(), exports2);
8481
- tslib_1.__exportStar(require_SupportedLocales(), exports2);
8482
- var utils_1 = require_utils();
8483
- Object.defineProperty(exports2, "getInternalSlot", { enumerable: true, get: function() {
8484
- return utils_1.getInternalSlot;
8485
- } });
8486
- Object.defineProperty(exports2, "getMultiInternalSlots", { enumerable: true, get: function() {
8487
- return utils_1.getMultiInternalSlots;
8488
- } });
8489
- Object.defineProperty(exports2, "isLiteralPart", { enumerable: true, get: function() {
8490
- return utils_1.isLiteralPart;
8491
- } });
8492
- Object.defineProperty(exports2, "setInternalSlot", { enumerable: true, get: function() {
8493
- return utils_1.setInternalSlot;
8494
- } });
8495
- Object.defineProperty(exports2, "setMultiInternalSlots", { enumerable: true, get: function() {
8496
- return utils_1.setMultiInternalSlots;
8497
- } });
8498
- Object.defineProperty(exports2, "getMagnitude", { enumerable: true, get: function() {
8499
- return utils_1.getMagnitude;
8500
- } });
8501
- Object.defineProperty(exports2, "defineProperty", { enumerable: true, get: function() {
8502
- return utils_1.defineProperty;
8503
- } });
8504
- var data_1 = require_data();
8505
- Object.defineProperty(exports2, "isMissingLocaleDataError", { enumerable: true, get: function() {
8506
- return data_1.isMissingLocaleDataError;
8507
- } });
8508
- tslib_1.__exportStar(require_relative_time(), exports2);
8509
- tslib_1.__exportStar(require_date_time(), exports2);
8510
- tslib_1.__exportStar(require_list(), exports2);
8511
- tslib_1.__exportStar(require_plural_rules(), exports2);
8512
- tslib_1.__exportStar(require_number(), exports2);
8513
- tslib_1.__exportStar(require_displaynames(), exports2);
8514
- var utils_2 = require_utils();
8515
- Object.defineProperty(exports2, "invariant", { enumerable: true, get: function() {
8516
- return utils_2.invariant;
8517
- } });
8518
- tslib_1.__exportStar(require_262(), exports2);
8519
- });
8520
-
8521
- // node_modules/@formatjs/intl/src/types.js
8522
- var require_types = __commonJS((exports2) => {
8523
- Object.defineProperty(exports2, "__esModule", { value: true });
8524
- });
8525
-
8526
- // node_modules/@formatjs/icu-messageformat-parser/error.js
8527
- var require_error = __commonJS((exports2) => {
8528
- Object.defineProperty(exports2, "__esModule", { value: true });
8529
- exports2.ErrorKind = undefined;
8530
- var ErrorKind;
8531
- (function(ErrorKind2) {
8532
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
8533
- ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
8534
- ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
8535
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
8536
- ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
8537
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
8538
- ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
8539
- ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
8540
- ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
8541
- ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
8542
- ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
8543
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
8544
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
8545
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
8546
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
8547
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
8548
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
8549
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
8550
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
8551
- ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
8552
- ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
8553
- ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
8554
- ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
8555
- ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
8556
- ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
8557
- ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
8558
- })(ErrorKind || (exports2.ErrorKind = ErrorKind = {}));
8559
- });
8560
-
8561
- // node_modules/@formatjs/icu-messageformat-parser/types.js
8562
- var require_types2 = __commonJS((exports2) => {
8563
- Object.defineProperty(exports2, "__esModule", { value: true });
8564
- exports2.createNumberElement = exports2.createLiteralElement = exports2.isDateTimeSkeleton = exports2.isNumberSkeleton = exports2.isTagElement = exports2.isPoundElement = exports2.isPluralElement = exports2.isSelectElement = exports2.isTimeElement = exports2.isDateElement = exports2.isNumberElement = exports2.isArgumentElement = exports2.isLiteralElement = exports2.SKELETON_TYPE = exports2.TYPE = undefined;
8565
- var TYPE;
8566
- (function(TYPE2) {
8567
- TYPE2[TYPE2["literal"] = 0] = "literal";
8568
- TYPE2[TYPE2["argument"] = 1] = "argument";
8569
- TYPE2[TYPE2["number"] = 2] = "number";
8570
- TYPE2[TYPE2["date"] = 3] = "date";
8571
- TYPE2[TYPE2["time"] = 4] = "time";
8572
- TYPE2[TYPE2["select"] = 5] = "select";
8573
- TYPE2[TYPE2["plural"] = 6] = "plural";
8574
- TYPE2[TYPE2["pound"] = 7] = "pound";
8575
- TYPE2[TYPE2["tag"] = 8] = "tag";
8576
- })(TYPE || (exports2.TYPE = TYPE = {}));
8577
- var SKELETON_TYPE;
8578
- (function(SKELETON_TYPE2) {
8579
- SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
8580
- SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
8581
- })(SKELETON_TYPE || (exports2.SKELETON_TYPE = SKELETON_TYPE = {}));
8582
- function isLiteralElement(el) {
8583
- return el.type === TYPE.literal;
8584
- }
8585
- exports2.isLiteralElement = isLiteralElement;
8586
- function isArgumentElement(el) {
8587
- return el.type === TYPE.argument;
8588
- }
8589
- exports2.isArgumentElement = isArgumentElement;
8590
- function isNumberElement(el) {
8591
- return el.type === TYPE.number;
8592
- }
8593
- exports2.isNumberElement = isNumberElement;
8594
- function isDateElement(el) {
8595
- return el.type === TYPE.date;
8596
- }
8597
- exports2.isDateElement = isDateElement;
8598
- function isTimeElement(el) {
8599
- return el.type === TYPE.time;
8600
- }
8601
- exports2.isTimeElement = isTimeElement;
8602
- function isSelectElement(el) {
8603
- return el.type === TYPE.select;
8604
- }
8605
- exports2.isSelectElement = isSelectElement;
8606
- function isPluralElement(el) {
8607
- return el.type === TYPE.plural;
8608
- }
8609
- exports2.isPluralElement = isPluralElement;
8610
- function isPoundElement(el) {
8611
- return el.type === TYPE.pound;
8612
- }
8613
- exports2.isPoundElement = isPoundElement;
8614
- function isTagElement(el) {
8615
- return el.type === TYPE.tag;
8616
- }
8617
- exports2.isTagElement = isTagElement;
8618
- function isNumberSkeleton(el) {
8619
- return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
8620
- }
8621
- exports2.isNumberSkeleton = isNumberSkeleton;
8622
- function isDateTimeSkeleton(el) {
8623
- return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
8624
- }
8625
- exports2.isDateTimeSkeleton = isDateTimeSkeleton;
8626
- function createLiteralElement(value) {
8627
- return {
8628
- type: TYPE.literal,
8629
- value
8630
- };
8631
- }
8632
- exports2.createLiteralElement = createLiteralElement;
8633
- function createNumberElement(value, style) {
8634
- return {
8635
- type: TYPE.number,
8636
- value,
8637
- style
8638
- };
8639
- }
8640
- exports2.createNumberElement = createNumberElement;
8641
- });
8642
-
8643
- // node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
8644
- var require_regex_generated2 = __commonJS((exports2) => {
8645
- Object.defineProperty(exports2, "__esModule", { value: true });
8646
- exports2.WHITE_SPACE_REGEX = exports2.SPACE_SEPARATOR_REGEX = undefined;
8647
- exports2.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
8648
- exports2.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
8649
- });
8650
-
8651
- // node_modules/@formatjs/icu-skeleton-parser/node_modules/tslib/tslib.js
8652
- var require_tslib3 = __commonJS((exports2, module2) => {
8653
- var __extends;
8654
- var __assign;
8655
- var __rest;
8656
- var __decorate;
8657
- var __param;
8658
- var __esDecorate;
8659
- var __runInitializers;
8660
- var __propKey;
8661
- var __setFunctionName;
8662
- var __metadata;
8663
- var __awaiter;
8664
- var __generator;
8665
- var __exportStar;
8666
- var __values;
8667
- var __read;
8668
- var __spread;
8669
- var __spreadArrays;
8670
- var __spreadArray;
8671
- var __await;
8672
- var __asyncGenerator;
8673
- var __asyncDelegator;
8674
- var __asyncValues;
8675
- var __makeTemplateObject;
8676
- var __importStar;
8677
- var __importDefault;
8678
- var __classPrivateFieldGet;
8679
- var __classPrivateFieldSet;
8680
- var __classPrivateFieldIn;
8681
- var __createBinding;
8682
- var __addDisposableResource;
8683
- var __disposeResources;
8684
- var __rewriteRelativeImportExtension;
8685
- (function(factory) {
8686
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
8687
- if (typeof define === "function" && define.amd) {
8688
- define("tslib", ["exports"], function(exports3) {
8689
- factory(createExporter(root, createExporter(exports3)));
8690
- });
8691
- } else if (typeof module2 === "object" && typeof module2.exports === "object") {
8692
- factory(createExporter(root, createExporter(module2.exports)));
8693
- } else {
8694
- factory(createExporter(root));
8695
- }
8696
- function createExporter(exports3, previous) {
8697
- if (exports3 !== root) {
8698
- if (typeof Object.create === "function") {
8699
- Object.defineProperty(exports3, "__esModule", { value: true });
8700
- } else {
8701
- exports3.__esModule = true;
8702
- }
8703
- }
8704
- return function(id, v2) {
8705
- return exports3[id] = previous ? previous(id, v2) : v2;
8706
- };
8707
- }
8708
- })(function(exporter) {
8709
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
8710
- d2.__proto__ = b2;
8711
- } || function(d2, b2) {
8712
- for (var p2 in b2)
8713
- if (Object.prototype.hasOwnProperty.call(b2, p2))
8714
- d2[p2] = b2[p2];
8715
- };
8716
- __extends = function(d2, b2) {
8717
- if (typeof b2 !== "function" && b2 !== null)
8718
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
8719
- extendStatics(d2, b2);
8720
- function __() {
8721
- this.constructor = d2;
8722
- }
8723
- d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
8724
- };
8725
- __assign = Object.assign || function(t2) {
8726
- for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
8727
- s2 = arguments[i2];
8728
- for (var p2 in s2)
8729
- if (Object.prototype.hasOwnProperty.call(s2, p2))
8730
- t2[p2] = s2[p2];
8731
- }
8732
- return t2;
8733
- };
8734
- __rest = function(s2, e2) {
8735
- var t2 = {};
8736
- for (var p2 in s2)
8737
- if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
8738
- t2[p2] = s2[p2];
8739
- if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
8740
- for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
8741
- if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
8742
- t2[p2[i2]] = s2[p2[i2]];
8743
- }
8744
- return t2;
8745
- };
8746
- __decorate = function(decorators, target, key, desc) {
8747
- var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
8748
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
8749
- r2 = Reflect.decorate(decorators, target, key, desc);
8750
- else
8751
- for (var i2 = decorators.length - 1;i2 >= 0; i2--)
8752
- if (d2 = decorators[i2])
8753
- r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
8754
- return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
8755
- };
8756
- __param = function(paramIndex, decorator) {
8757
- return function(target, key) {
8758
- decorator(target, key, paramIndex);
8759
- };
8760
- };
8761
- __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
8762
- function accept(f2) {
8763
- if (f2 !== undefined && typeof f2 !== "function")
8764
- throw new TypeError("Function expected");
8765
- return f2;
8766
- }
8767
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
8768
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
8769
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
8770
- var _2, done = false;
8771
- for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
8772
- var context = {};
8773
- for (var p2 in contextIn)
8774
- context[p2] = p2 === "access" ? {} : contextIn[p2];
8775
- for (var p2 in contextIn.access)
8776
- context.access[p2] = contextIn.access[p2];
8777
- context.addInitializer = function(f2) {
8778
- if (done)
8779
- throw new TypeError("Cannot add initializers after decoration has completed");
8780
- extraInitializers.push(accept(f2 || null));
8781
- };
8782
- var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
8783
- if (kind === "accessor") {
8784
- if (result === undefined)
8785
- continue;
8786
- if (result === null || typeof result !== "object")
8787
- throw new TypeError("Object expected");
8788
- if (_2 = accept(result.get))
8789
- descriptor.get = _2;
8790
- if (_2 = accept(result.set))
8791
- descriptor.set = _2;
8792
- if (_2 = accept(result.init))
8793
- initializers.unshift(_2);
8794
- } else if (_2 = accept(result)) {
8795
- if (kind === "field")
8796
- initializers.unshift(_2);
8797
- else
8798
- descriptor[key] = _2;
8799
- }
8800
- }
8801
- if (target)
8802
- Object.defineProperty(target, contextIn.name, descriptor);
8803
- done = true;
8804
- };
8805
- __runInitializers = function(thisArg, initializers, value) {
8806
- var useValue = arguments.length > 2;
8807
- for (var i2 = 0;i2 < initializers.length; i2++) {
8808
- value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
8809
- }
8810
- return useValue ? value : undefined;
8811
- };
8812
- __propKey = function(x2) {
8813
- return typeof x2 === "symbol" ? x2 : "".concat(x2);
8814
- };
8815
- __setFunctionName = function(f2, name, prefix) {
8816
- if (typeof name === "symbol")
8817
- name = name.description ? "[".concat(name.description, "]") : "";
8818
- return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
8819
- };
8820
- __metadata = function(metadataKey, metadataValue) {
8821
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
8822
- return Reflect.metadata(metadataKey, metadataValue);
8823
- };
8824
- __awaiter = function(thisArg, _arguments, P, generator) {
8825
- function adopt(value) {
8826
- return value instanceof P ? value : new P(function(resolve) {
8827
- resolve(value);
8828
- });
8829
- }
8830
- return new (P || (P = Promise))(function(resolve, reject) {
8831
- function fulfilled(value) {
8832
- try {
8833
- step(generator.next(value));
8834
- } catch (e2) {
8835
- reject(e2);
8836
- }
8837
- }
8838
- function rejected(value) {
8839
- try {
8840
- step(generator["throw"](value));
8841
- } catch (e2) {
8842
- reject(e2);
8843
- }
8844
- }
8845
- function step(result) {
8846
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
8847
- }
8848
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8849
- });
8850
- };
8851
- __generator = function(thisArg, body) {
8852
- var _2 = { label: 0, sent: function() {
8853
- if (t2[0] & 1)
8854
- throw t2[1];
8855
- return t2[1];
8856
- }, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
8857
- return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
8858
- return this;
8859
- }), g2;
8860
- function verb(n2) {
8861
- return function(v2) {
8862
- return step([n2, v2]);
8863
- };
8864
- }
8865
- function step(op) {
8866
- if (f2)
8867
- throw new TypeError("Generator is already executing.");
8868
- while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
8869
- try {
8870
- if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
8871
- return t2;
8872
- if (y2 = 0, t2)
8873
- op = [op[0] & 2, t2.value];
8874
- switch (op[0]) {
8875
- case 0:
8876
- case 1:
8877
- t2 = op;
8878
- break;
8879
- case 4:
8880
- _2.label++;
8881
- return { value: op[1], done: false };
8882
- case 5:
8883
- _2.label++;
8884
- y2 = op[1];
8885
- op = [0];
8886
- continue;
8887
- case 7:
8888
- op = _2.ops.pop();
8889
- _2.trys.pop();
8890
- continue;
8891
- default:
8892
- if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
8893
- _2 = 0;
8894
- continue;
8895
- }
8896
- if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
8897
- _2.label = op[1];
8898
- break;
8899
- }
8900
- if (op[0] === 6 && _2.label < t2[1]) {
8901
- _2.label = t2[1];
8902
- t2 = op;
8903
- break;
8904
- }
8905
- if (t2 && _2.label < t2[2]) {
8906
- _2.label = t2[2];
8907
- _2.ops.push(op);
8908
- break;
8909
- }
8910
- if (t2[2])
8911
- _2.ops.pop();
8912
- _2.trys.pop();
8913
- continue;
8914
- }
8915
- op = body.call(thisArg, _2);
8916
- } catch (e2) {
8917
- op = [6, e2];
8918
- y2 = 0;
8919
- } finally {
8920
- f2 = t2 = 0;
8921
- }
8922
- if (op[0] & 5)
8923
- throw op[1];
8924
- return { value: op[0] ? op[1] : undefined, done: true };
8925
- }
8926
- };
8927
- __exportStar = function(m2, o2) {
8928
- for (var p2 in m2)
8929
- if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
8930
- __createBinding(o2, m2, p2);
8931
- };
8932
- __createBinding = Object.create ? function(o2, m2, k, k2) {
8933
- if (k2 === undefined)
8934
- k2 = k;
8935
- var desc = Object.getOwnPropertyDescriptor(m2, k);
8936
- if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
8937
- desc = { enumerable: true, get: function() {
8938
- return m2[k];
8939
- } };
8940
- }
8941
- Object.defineProperty(o2, k2, desc);
8942
- } : function(o2, m2, k, k2) {
8943
- if (k2 === undefined)
8944
- k2 = k;
8945
- o2[k2] = m2[k];
8946
- };
8947
- __values = function(o2) {
8948
- var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
8949
- if (m2)
8950
- return m2.call(o2);
8951
- if (o2 && typeof o2.length === "number")
7063
+ "NA",
7064
+ "NE",
7065
+ "NG",
7066
+ "NI",
7067
+ "NL",
7068
+ "NO",
7069
+ "NP",
7070
+ "NR",
7071
+ "NZ",
7072
+ "OM",
7073
+ "PA",
7074
+ "PE",
7075
+ "PG",
7076
+ "PH",
7077
+ "PK",
7078
+ "PL",
7079
+ "PT",
7080
+ "PW",
7081
+ "PY",
7082
+ "QA",
7083
+ "RO",
7084
+ "RS",
7085
+ "RU",
7086
+ "RW",
7087
+ "SA",
7088
+ "SB",
7089
+ "SC",
7090
+ "SD",
7091
+ "SE",
7092
+ "SG",
7093
+ "SI",
7094
+ "SK",
7095
+ "SL",
7096
+ "SM",
7097
+ "SN",
7098
+ "SO",
7099
+ "SR",
7100
+ "SS",
7101
+ "ST",
7102
+ "SV",
7103
+ "SY",
7104
+ "SZ",
7105
+ "TD",
7106
+ "TG",
7107
+ "TH",
7108
+ "TJ",
7109
+ "TL",
7110
+ "TM",
7111
+ "TN",
7112
+ "TO",
7113
+ "TR",
7114
+ "TT",
7115
+ "TV",
7116
+ "TZ",
7117
+ "UA",
7118
+ "UG",
7119
+ "UN",
7120
+ "US",
7121
+ "UY",
7122
+ "UZ",
7123
+ "VC",
7124
+ "VE",
7125
+ "VN",
7126
+ "VU",
7127
+ "WS",
7128
+ "YE",
7129
+ "ZA",
7130
+ "ZM",
7131
+ "ZW"
7132
+ ]
7133
+ };
7134
+ });
7135
+
7136
+ // node_modules/@formatjs/intl-localematcher/abstract/utils.js
7137
+ var require_utils2 = __commonJS((exports2) => {
7138
+ Object.defineProperty(exports2, "__esModule", { value: true });
7139
+ exports2.findBestMatch = exports2.findMatchingDistance = exports2.invariant = exports2.UNICODE_EXTENSION_SEQUENCE_REGEX = undefined;
7140
+ var tslib_1 = require_tslib();
7141
+ var languageMatching_1 = require_languageMatching();
7142
+ var regions_generated_1 = require_regions_generated();
7143
+ exports2.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
7144
+ function invariant(condition, message, Err) {
7145
+ if (Err === undefined) {
7146
+ Err = Error;
7147
+ }
7148
+ if (!condition) {
7149
+ throw new Err(message);
7150
+ }
7151
+ }
7152
+ exports2.invariant = invariant;
7153
+ var DEFAULT_MATCHING_THRESHOLD = 838;
7154
+ var PROCESSED_DATA;
7155
+ function processData() {
7156
+ var _a, _b;
7157
+ if (!PROCESSED_DATA) {
7158
+ var paradigmLocales = (_b = (_a = languageMatching_1.data.supplemental.languageMatching["written-new"][0]) === null || _a === undefined ? undefined : _a.paradigmLocales) === null || _b === undefined ? undefined : _b._locales.split(" ");
7159
+ var matchVariables = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(1, 5);
7160
+ var data = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(5);
7161
+ var matches = data.map(function(d2) {
7162
+ var key = Object.keys(d2)[0];
7163
+ var value = d2[key];
8952
7164
  return {
8953
- next: function() {
8954
- if (o2 && i2 >= o2.length)
8955
- o2 = undefined;
8956
- return { value: o2 && o2[i2++], done: !o2 };
8957
- }
7165
+ supported: key,
7166
+ desired: value._desired,
7167
+ distance: +value._distance,
7168
+ oneway: value.oneway === "true" ? true : false
8958
7169
  };
8959
- throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
8960
- };
8961
- __read = function(o2, n2) {
8962
- var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
8963
- if (!m2)
8964
- return o2;
8965
- var i2 = m2.call(o2), r2, ar = [], e2;
8966
- try {
8967
- while ((n2 === undefined || n2-- > 0) && !(r2 = i2.next()).done)
8968
- ar.push(r2.value);
8969
- } catch (error) {
8970
- e2 = { error };
8971
- } finally {
8972
- try {
8973
- if (r2 && !r2.done && (m2 = i2["return"]))
8974
- m2.call(i2);
8975
- } finally {
8976
- if (e2)
8977
- throw e2.error;
7170
+ }, {});
7171
+ PROCESSED_DATA = {
7172
+ matches,
7173
+ matchVariables: matchVariables.reduce(function(all, d2) {
7174
+ var key = Object.keys(d2)[0];
7175
+ var value = d2[key];
7176
+ all[key.slice(1)] = value._value.split("+");
7177
+ return all;
7178
+ }, {}),
7179
+ paradigmLocales: tslib_1.__spreadArray(tslib_1.__spreadArray([], paradigmLocales, true), paradigmLocales.map(function(l2) {
7180
+ return new Intl.Locale(l2.replace(/_/g, "-")).maximize().toString();
7181
+ }), true)
7182
+ };
7183
+ }
7184
+ return PROCESSED_DATA;
7185
+ }
7186
+ function isMatched(locale, languageMatchInfoLocale, matchVariables) {
7187
+ var _a = languageMatchInfoLocale.split("-"), language = _a[0], script = _a[1], region = _a[2];
7188
+ var matches = true;
7189
+ if (region && region[0] === "$") {
7190
+ var shouldInclude = region[1] !== "!";
7191
+ var matchRegions = shouldInclude ? matchVariables[region.slice(1)] : matchVariables[region.slice(2)];
7192
+ var expandedMatchedRegions = matchRegions.map(function(r2) {
7193
+ return regions_generated_1.regions[r2] || [r2];
7194
+ }).reduce(function(all, list) {
7195
+ return tslib_1.__spreadArray(tslib_1.__spreadArray([], all, true), list, true);
7196
+ }, []);
7197
+ matches && (matches = !(expandedMatchedRegions.indexOf(locale.region || "") > 1 != shouldInclude));
7198
+ } else {
7199
+ matches && (matches = locale.region ? region === "*" || region === locale.region : true);
7200
+ }
7201
+ matches && (matches = locale.script ? script === "*" || script === locale.script : true);
7202
+ matches && (matches = locale.language ? language === "*" || language === locale.language : true);
7203
+ return matches;
7204
+ }
7205
+ function serializeLSR(lsr) {
7206
+ return [lsr.language, lsr.script, lsr.region].filter(Boolean).join("-");
7207
+ }
7208
+ function findMatchingDistanceForLSR(desired, supported, data) {
7209
+ for (var _i = 0, _a = data.matches;_i < _a.length; _i++) {
7210
+ var d2 = _a[_i];
7211
+ var matches = isMatched(desired, d2.desired, data.matchVariables) && isMatched(supported, d2.supported, data.matchVariables);
7212
+ if (!d2.oneway && !matches) {
7213
+ matches = isMatched(desired, d2.supported, data.matchVariables) && isMatched(supported, d2.desired, data.matchVariables);
7214
+ }
7215
+ if (matches) {
7216
+ var distance = d2.distance * 10;
7217
+ if (data.paradigmLocales.indexOf(serializeLSR(desired)) > -1 != data.paradigmLocales.indexOf(serializeLSR(supported)) > -1) {
7218
+ return distance - 1;
8978
7219
  }
7220
+ return distance;
8979
7221
  }
8980
- return ar;
8981
- };
8982
- __spread = function() {
8983
- for (var ar = [], i2 = 0;i2 < arguments.length; i2++)
8984
- ar = ar.concat(__read(arguments[i2]));
8985
- return ar;
8986
- };
8987
- __spreadArrays = function() {
8988
- for (var s2 = 0, i2 = 0, il = arguments.length;i2 < il; i2++)
8989
- s2 += arguments[i2].length;
8990
- for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
8991
- for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
8992
- r2[k] = a2[j];
8993
- return r2;
7222
+ }
7223
+ throw new Error("No matching distance found");
7224
+ }
7225
+ function findMatchingDistance(desired, supported) {
7226
+ var desiredLocale = new Intl.Locale(desired).maximize();
7227
+ var supportedLocale = new Intl.Locale(supported).maximize();
7228
+ var desiredLSR = {
7229
+ language: desiredLocale.language,
7230
+ script: desiredLocale.script || "",
7231
+ region: desiredLocale.region || ""
8994
7232
  };
8995
- __spreadArray = function(to, from, pack) {
8996
- if (pack || arguments.length === 2)
8997
- for (var i2 = 0, l2 = from.length, ar;i2 < l2; i2++) {
8998
- if (ar || !(i2 in from)) {
8999
- if (!ar)
9000
- ar = Array.prototype.slice.call(from, 0, i2);
9001
- ar[i2] = from[i2];
9002
- }
9003
- }
9004
- return to.concat(ar || Array.prototype.slice.call(from));
7233
+ var supportedLSR = {
7234
+ language: supportedLocale.language,
7235
+ script: supportedLocale.script || "",
7236
+ region: supportedLocale.region || ""
9005
7237
  };
9006
- __await = function(v2) {
9007
- return this instanceof __await ? (this.v = v2, this) : new __await(v2);
7238
+ var matchingDistance = 0;
7239
+ var data = processData();
7240
+ if (desiredLSR.language !== supportedLSR.language) {
7241
+ matchingDistance += findMatchingDistanceForLSR({
7242
+ language: desiredLocale.language,
7243
+ script: "",
7244
+ region: ""
7245
+ }, {
7246
+ language: supportedLocale.language,
7247
+ script: "",
7248
+ region: ""
7249
+ }, data);
7250
+ }
7251
+ if (desiredLSR.script !== supportedLSR.script) {
7252
+ matchingDistance += findMatchingDistanceForLSR({
7253
+ language: desiredLocale.language,
7254
+ script: desiredLSR.script,
7255
+ region: ""
7256
+ }, {
7257
+ language: supportedLocale.language,
7258
+ script: desiredLSR.script,
7259
+ region: ""
7260
+ }, data);
7261
+ }
7262
+ if (desiredLSR.region !== supportedLSR.region) {
7263
+ matchingDistance += findMatchingDistanceForLSR(desiredLSR, supportedLSR, data);
7264
+ }
7265
+ return matchingDistance;
7266
+ }
7267
+ exports2.findMatchingDistance = findMatchingDistance;
7268
+ function findBestMatch(requestedLocales, supportedLocales, threshold) {
7269
+ if (threshold === undefined) {
7270
+ threshold = DEFAULT_MATCHING_THRESHOLD;
7271
+ }
7272
+ var lowestDistance = Infinity;
7273
+ var result = {
7274
+ matchedDesiredLocale: "",
7275
+ distances: {}
9008
7276
  };
9009
- __asyncGenerator = function(thisArg, _arguments, generator) {
9010
- if (!Symbol.asyncIterator)
9011
- throw new TypeError("Symbol.asyncIterator is not defined.");
9012
- var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
9013
- return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
9014
- return this;
9015
- }, i2;
9016
- function awaitReturn(f2) {
9017
- return function(v2) {
9018
- return Promise.resolve(v2).then(f2, reject);
9019
- };
9020
- }
9021
- function verb(n2, f2) {
9022
- if (g2[n2]) {
9023
- i2[n2] = function(v2) {
9024
- return new Promise(function(a2, b2) {
9025
- q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
9026
- });
9027
- };
9028
- if (f2)
9029
- i2[n2] = f2(i2[n2]);
9030
- }
7277
+ requestedLocales.forEach(function(desired, i2) {
7278
+ if (!result.distances[desired]) {
7279
+ result.distances[desired] = {};
9031
7280
  }
9032
- function resume(n2, v2) {
9033
- try {
9034
- step(g2[n2](v2));
9035
- } catch (e2) {
9036
- settle(q2[0][3], e2);
7281
+ supportedLocales.forEach(function(supported) {
7282
+ var distance = findMatchingDistance(desired, supported) + 0 + i2 * 40;
7283
+ result.distances[desired][supported] = distance;
7284
+ if (distance < lowestDistance) {
7285
+ lowestDistance = distance;
7286
+ result.matchedDesiredLocale = desired;
7287
+ result.matchedSupportedLocale = supported;
9037
7288
  }
7289
+ });
7290
+ });
7291
+ if (lowestDistance >= threshold) {
7292
+ result.matchedDesiredLocale = undefined;
7293
+ result.matchedSupportedLocale = undefined;
7294
+ }
7295
+ return result;
7296
+ }
7297
+ exports2.findBestMatch = findBestMatch;
7298
+ });
7299
+
7300
+ // node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js
7301
+ var require_BestFitMatcher = __commonJS((exports2) => {
7302
+ Object.defineProperty(exports2, "__esModule", { value: true });
7303
+ exports2.BestFitMatcher = undefined;
7304
+ var utils_1 = require_utils2();
7305
+ function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
7306
+ var foundLocale;
7307
+ var extension;
7308
+ var noExtensionLocales = [];
7309
+ var noExtensionLocaleMap = requestedLocales.reduce(function(all, l2) {
7310
+ var noExtensionLocale = l2.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
7311
+ noExtensionLocales.push(noExtensionLocale);
7312
+ all[noExtensionLocale] = l2;
7313
+ return all;
7314
+ }, {});
7315
+ var result = (0, utils_1.findBestMatch)(noExtensionLocales, availableLocales);
7316
+ if (result.matchedSupportedLocale && result.matchedDesiredLocale) {
7317
+ foundLocale = result.matchedSupportedLocale;
7318
+ extension = noExtensionLocaleMap[result.matchedDesiredLocale].slice(result.matchedDesiredLocale.length) || undefined;
7319
+ }
7320
+ if (!foundLocale) {
7321
+ return { locale: getDefaultLocale() };
7322
+ }
7323
+ return {
7324
+ locale: foundLocale,
7325
+ extension
7326
+ };
7327
+ }
7328
+ exports2.BestFitMatcher = BestFitMatcher;
7329
+ });
7330
+
7331
+ // node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js
7332
+ var require_BestAvailableLocale = __commonJS((exports2) => {
7333
+ Object.defineProperty(exports2, "__esModule", { value: true });
7334
+ exports2.BestAvailableLocale = undefined;
7335
+ function BestAvailableLocale(availableLocales, locale) {
7336
+ var candidate = locale;
7337
+ while (true) {
7338
+ if (availableLocales.indexOf(candidate) > -1) {
7339
+ return candidate;
9038
7340
  }
9039
- function step(r2) {
9040
- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
9041
- }
9042
- function fulfill(value) {
9043
- resume("next", value);
7341
+ var pos = candidate.lastIndexOf("-");
7342
+ if (!~pos) {
7343
+ return;
9044
7344
  }
9045
- function reject(value) {
9046
- resume("throw", value);
7345
+ if (pos >= 2 && candidate[pos - 2] === "-") {
7346
+ pos -= 2;
9047
7347
  }
9048
- function settle(f2, v2) {
9049
- if (f2(v2), q2.shift(), q2.length)
9050
- resume(q2[0][0], q2[0][1]);
7348
+ candidate = candidate.slice(0, pos);
7349
+ }
7350
+ }
7351
+ exports2.BestAvailableLocale = BestAvailableLocale;
7352
+ });
7353
+
7354
+ // node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js
7355
+ var require_LookupMatcher = __commonJS((exports2) => {
7356
+ Object.defineProperty(exports2, "__esModule", { value: true });
7357
+ exports2.LookupMatcher = undefined;
7358
+ var BestAvailableLocale_1 = require_BestAvailableLocale();
7359
+ var utils_1 = require_utils2();
7360
+ function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
7361
+ var result = { locale: "" };
7362
+ for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
7363
+ var locale = requestedLocales_1[_i];
7364
+ var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
7365
+ var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
7366
+ if (availableLocale) {
7367
+ result.locale = availableLocale;
7368
+ if (locale !== noExtensionLocale) {
7369
+ result.extension = locale.slice(noExtensionLocale.length, locale.length);
7370
+ }
7371
+ return result;
9051
7372
  }
9052
- };
9053
- __asyncDelegator = function(o2) {
9054
- var i2, p2;
9055
- return i2 = {}, verb("next"), verb("throw", function(e2) {
9056
- throw e2;
9057
- }), verb("return"), i2[Symbol.iterator] = function() {
9058
- return this;
9059
- }, i2;
9060
- function verb(n2, f2) {
9061
- i2[n2] = o2[n2] ? function(v2) {
9062
- return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2;
9063
- } : f2;
7373
+ }
7374
+ result.locale = getDefaultLocale();
7375
+ return result;
7376
+ }
7377
+ exports2.LookupMatcher = LookupMatcher;
7378
+ });
7379
+
7380
+ // node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionValue.js
7381
+ var require_UnicodeExtensionValue = __commonJS((exports2) => {
7382
+ Object.defineProperty(exports2, "__esModule", { value: true });
7383
+ exports2.UnicodeExtensionValue = undefined;
7384
+ var utils_1 = require_utils2();
7385
+ function UnicodeExtensionValue(extension, key) {
7386
+ (0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
7387
+ var size = extension.length;
7388
+ var searchValue = "-".concat(key, "-");
7389
+ var pos = extension.indexOf(searchValue);
7390
+ if (pos !== -1) {
7391
+ var start = pos + 4;
7392
+ var end = start;
7393
+ var k = start;
7394
+ var done = false;
7395
+ while (!done) {
7396
+ var e2 = extension.indexOf("-", k);
7397
+ var len = undefined;
7398
+ if (e2 === -1) {
7399
+ len = size - k;
7400
+ } else {
7401
+ len = e2 - k;
7402
+ }
7403
+ if (len === 2) {
7404
+ done = true;
7405
+ } else if (e2 === -1) {
7406
+ end = size;
7407
+ done = true;
7408
+ } else {
7409
+ end = e2;
7410
+ k = e2 + 1;
7411
+ }
9064
7412
  }
9065
- };
9066
- __asyncValues = function(o2) {
9067
- if (!Symbol.asyncIterator)
9068
- throw new TypeError("Symbol.asyncIterator is not defined.");
9069
- var m2 = o2[Symbol.asyncIterator], i2;
9070
- return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
9071
- return this;
9072
- }, i2);
9073
- function verb(n2) {
9074
- i2[n2] = o2[n2] && function(v2) {
9075
- return new Promise(function(resolve, reject) {
9076
- v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
9077
- });
9078
- };
7413
+ return extension.slice(start, end);
7414
+ }
7415
+ searchValue = "-".concat(key);
7416
+ pos = extension.indexOf(searchValue);
7417
+ if (pos !== -1 && pos + 3 === size) {
7418
+ return "";
7419
+ }
7420
+ return;
7421
+ }
7422
+ exports2.UnicodeExtensionValue = UnicodeExtensionValue;
7423
+ });
7424
+
7425
+ // node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js
7426
+ var require_ResolveLocale = __commonJS((exports2) => {
7427
+ Object.defineProperty(exports2, "__esModule", { value: true });
7428
+ exports2.ResolveLocale = undefined;
7429
+ var BestFitMatcher_1 = require_BestFitMatcher();
7430
+ var LookupMatcher_1 = require_LookupMatcher();
7431
+ var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
7432
+ var utils_1 = require_utils2();
7433
+ function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
7434
+ var matcher = options.localeMatcher;
7435
+ var r2;
7436
+ if (matcher === "lookup") {
7437
+ r2 = (0, LookupMatcher_1.LookupMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
7438
+ } else {
7439
+ r2 = (0, BestFitMatcher_1.BestFitMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
7440
+ }
7441
+ var foundLocale = r2.locale;
7442
+ var result = { locale: "", dataLocale: foundLocale };
7443
+ var supportedExtension = "-u";
7444
+ for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys;_i < relevantExtensionKeys_1.length; _i++) {
7445
+ var key = relevantExtensionKeys_1[_i];
7446
+ (0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
7447
+ var foundLocaleData = localeData[foundLocale];
7448
+ (0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
7449
+ var keyLocaleData = foundLocaleData[key];
7450
+ (0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
7451
+ var value = keyLocaleData[0];
7452
+ (0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
7453
+ var supportedExtensionAddition = "";
7454
+ if (r2.extension) {
7455
+ var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r2.extension, key);
7456
+ if (requestedValue !== undefined) {
7457
+ if (requestedValue !== "") {
7458
+ if (~keyLocaleData.indexOf(requestedValue)) {
7459
+ value = requestedValue;
7460
+ supportedExtensionAddition = "-".concat(key, "-").concat(value);
7461
+ }
7462
+ } else if (~requestedValue.indexOf("true")) {
7463
+ value = "true";
7464
+ supportedExtensionAddition = "-".concat(key);
7465
+ }
7466
+ }
9079
7467
  }
9080
- function settle(resolve, reject, d2, v2) {
9081
- Promise.resolve(v2).then(function(v3) {
9082
- resolve({ value: v3, done: d2 });
9083
- }, reject);
7468
+ if (key in options) {
7469
+ var optionsValue = options[key];
7470
+ (0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
7471
+ if (~keyLocaleData.indexOf(optionsValue)) {
7472
+ if (optionsValue !== value) {
7473
+ value = optionsValue;
7474
+ supportedExtensionAddition = "";
7475
+ }
7476
+ }
9084
7477
  }
9085
- };
9086
- __makeTemplateObject = function(cooked, raw) {
9087
- if (Object.defineProperty) {
9088
- Object.defineProperty(cooked, "raw", { value: raw });
7478
+ result[key] = value;
7479
+ supportedExtension += supportedExtensionAddition;
7480
+ }
7481
+ if (supportedExtension.length > 2) {
7482
+ var privateIndex = foundLocale.indexOf("-x-");
7483
+ if (privateIndex === -1) {
7484
+ foundLocale = foundLocale + supportedExtension;
9089
7485
  } else {
9090
- cooked.raw = raw;
7486
+ var preExtension = foundLocale.slice(0, privateIndex);
7487
+ var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
7488
+ foundLocale = preExtension + supportedExtension + postExtension;
9091
7489
  }
9092
- return cooked;
9093
- };
9094
- var __setModuleDefault = Object.create ? function(o2, v2) {
9095
- Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
9096
- } : function(o2, v2) {
9097
- o2["default"] = v2;
9098
- };
9099
- var ownKeys = function(o2) {
9100
- ownKeys = Object.getOwnPropertyNames || function(o3) {
9101
- var ar = [];
9102
- for (var k in o3)
9103
- if (Object.prototype.hasOwnProperty.call(o3, k))
9104
- ar[ar.length] = k;
9105
- return ar;
9106
- };
9107
- return ownKeys(o2);
9108
- };
9109
- __importStar = function(mod) {
9110
- if (mod && mod.__esModule)
9111
- return mod;
9112
- var result = {};
9113
- if (mod != null) {
9114
- for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
9115
- if (k[i2] !== "default")
9116
- __createBinding(result, mod, k[i2]);
7490
+ foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
7491
+ }
7492
+ result.locale = foundLocale;
7493
+ return result;
7494
+ }
7495
+ exports2.ResolveLocale = ResolveLocale;
7496
+ });
7497
+
7498
+ // node_modules/@formatjs/intl-localematcher/abstract/LookupSupportedLocales.js
7499
+ var require_LookupSupportedLocales = __commonJS((exports2) => {
7500
+ Object.defineProperty(exports2, "__esModule", { value: true });
7501
+ exports2.LookupSupportedLocales = undefined;
7502
+ var BestAvailableLocale_1 = require_BestAvailableLocale();
7503
+ var utils_1 = require_utils2();
7504
+ function LookupSupportedLocales(availableLocales, requestedLocales) {
7505
+ var subset = [];
7506
+ for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
7507
+ var locale = requestedLocales_1[_i];
7508
+ var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
7509
+ var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
7510
+ if (availableLocale) {
7511
+ subset.push(availableLocale);
9117
7512
  }
9118
- __setModuleDefault(result, mod);
9119
- return result;
9120
- };
9121
- __importDefault = function(mod) {
9122
- return mod && mod.__esModule ? mod : { default: mod };
9123
- };
9124
- __classPrivateFieldGet = function(receiver, state, kind, f2) {
9125
- if (kind === "a" && !f2)
9126
- throw new TypeError("Private accessor was defined without a getter");
9127
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
9128
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
9129
- return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
9130
- };
9131
- __classPrivateFieldSet = function(receiver, state, value, kind, f2) {
9132
- if (kind === "m")
9133
- throw new TypeError("Private method is not writable");
9134
- if (kind === "a" && !f2)
9135
- throw new TypeError("Private accessor was defined without a setter");
9136
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
9137
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
9138
- return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
9139
- };
9140
- __classPrivateFieldIn = function(state, receiver) {
9141
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
9142
- throw new TypeError("Cannot use 'in' operator on non-object");
9143
- return typeof state === "function" ? receiver === state : state.has(receiver);
9144
- };
9145
- __addDisposableResource = function(env, value, async) {
9146
- if (value !== null && value !== undefined) {
9147
- if (typeof value !== "object" && typeof value !== "function")
9148
- throw new TypeError("Object expected.");
9149
- var dispose, inner;
9150
- if (async) {
9151
- if (!Symbol.asyncDispose)
9152
- throw new TypeError("Symbol.asyncDispose is not defined.");
9153
- dispose = value[Symbol.asyncDispose];
9154
- }
9155
- if (dispose === undefined) {
9156
- if (!Symbol.dispose)
9157
- throw new TypeError("Symbol.dispose is not defined.");
9158
- dispose = value[Symbol.dispose];
9159
- if (async)
9160
- inner = dispose;
9161
- }
9162
- if (typeof dispose !== "function")
9163
- throw new TypeError("Object not disposable.");
9164
- if (inner)
9165
- dispose = function() {
9166
- try {
9167
- inner.call(this);
9168
- } catch (e2) {
9169
- return Promise.reject(e2);
9170
- }
9171
- };
9172
- env.stack.push({ value, dispose, async });
9173
- } else if (async) {
9174
- env.stack.push({ async: true });
7513
+ }
7514
+ return subset;
7515
+ }
7516
+ exports2.LookupSupportedLocales = LookupSupportedLocales;
7517
+ });
7518
+
7519
+ // node_modules/@formatjs/intl-localematcher/index.js
7520
+ var require_intl_localematcher = __commonJS((exports2) => {
7521
+ Object.defineProperty(exports2, "__esModule", { value: true });
7522
+ exports2.ResolveLocale = exports2.LookupSupportedLocales = exports2.match = undefined;
7523
+ var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList2();
7524
+ var ResolveLocale_1 = require_ResolveLocale();
7525
+ function match(requestedLocales, availableLocales, defaultLocale, opts) {
7526
+ return (0, ResolveLocale_1.ResolveLocale)(availableLocales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
7527
+ localeMatcher: (opts === null || opts === undefined ? undefined : opts.algorithm) || "best fit"
7528
+ }, [], {}, function() {
7529
+ return defaultLocale;
7530
+ }).locale;
7531
+ }
7532
+ exports2.match = match;
7533
+ var LookupSupportedLocales_1 = require_LookupSupportedLocales();
7534
+ Object.defineProperty(exports2, "LookupSupportedLocales", { enumerable: true, get: function() {
7535
+ return LookupSupportedLocales_1.LookupSupportedLocales;
7536
+ } });
7537
+ var ResolveLocale_2 = require_ResolveLocale();
7538
+ Object.defineProperty(exports2, "ResolveLocale", { enumerable: true, get: function() {
7539
+ return ResolveLocale_2.ResolveLocale;
7540
+ } });
7541
+ });
7542
+
7543
+ // node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
7544
+ var require_SetNumberFormatDigitOptions = __commonJS((exports2) => {
7545
+ Object.defineProperty(exports2, "__esModule", { value: true });
7546
+ exports2.SetNumberFormatDigitOptions = undefined;
7547
+ var DefaultNumberOption_1 = require_DefaultNumberOption();
7548
+ var GetNumberOption_1 = require_GetNumberOption();
7549
+ var GetOption_1 = require_GetOption();
7550
+ function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
7551
+ var mnid = (0, GetNumberOption_1.GetNumberOption)(opts, "minimumIntegerDigits", 1, 21, 1);
7552
+ var mnfd = opts.minimumFractionDigits;
7553
+ var mxfd = opts.maximumFractionDigits;
7554
+ var mnsd = opts.minimumSignificantDigits;
7555
+ var mxsd = opts.maximumSignificantDigits;
7556
+ internalSlots.minimumIntegerDigits = mnid;
7557
+ var roundingPriority = (0, GetOption_1.GetOption)(opts, "roundingPriority", "string", ["auto", "morePrecision", "lessPrecision"], "auto");
7558
+ var hasSd = mnsd !== undefined || mxsd !== undefined;
7559
+ var hasFd = mnfd !== undefined || mxfd !== undefined;
7560
+ var needSd = true;
7561
+ var needFd = true;
7562
+ if (roundingPriority === "auto") {
7563
+ needSd = hasSd;
7564
+ if (hasSd || !hasFd && notation === "compact") {
7565
+ needFd = false;
9175
7566
  }
9176
- return value;
9177
- };
9178
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
9179
- var e2 = new Error(message);
9180
- return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
9181
- };
9182
- __disposeResources = function(env) {
9183
- function fail(e2) {
9184
- env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
9185
- env.hasError = true;
7567
+ }
7568
+ if (needSd) {
7569
+ if (hasSd) {
7570
+ mnsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnsd, 1, 21, 1);
7571
+ mxsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxsd, mnsd, 21, 21);
7572
+ internalSlots.minimumSignificantDigits = mnsd;
7573
+ internalSlots.maximumSignificantDigits = mxsd;
7574
+ } else {
7575
+ internalSlots.minimumSignificantDigits = 1;
7576
+ internalSlots.maximumSignificantDigits = 21;
9186
7577
  }
9187
- var r2, s2 = 0;
9188
- function next() {
9189
- while (r2 = env.stack.pop()) {
9190
- try {
9191
- if (!r2.async && s2 === 1)
9192
- return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
9193
- if (r2.dispose) {
9194
- var result = r2.dispose.call(r2.value);
9195
- if (r2.async)
9196
- return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
9197
- fail(e2);
9198
- return next();
9199
- });
9200
- } else
9201
- s2 |= 1;
9202
- } catch (e2) {
9203
- fail(e2);
9204
- }
7578
+ }
7579
+ if (needFd) {
7580
+ if (hasFd) {
7581
+ mnfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnfd, 0, 20, undefined);
7582
+ mxfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxfd, 0, 20, undefined);
7583
+ if (mnfd === undefined) {
7584
+ mnfd = Math.min(mnfdDefault, mxfd);
7585
+ } else if (mxfd === undefined) {
7586
+ mxfd = Math.max(mxfdDefault, mnfd);
7587
+ } else if (mnfd > mxfd) {
7588
+ throw new RangeError("Invalid range, ".concat(mnfd, " > ").concat(mxfd));
9205
7589
  }
9206
- if (s2 === 1)
9207
- return env.hasError ? Promise.reject(env.error) : Promise.resolve();
9208
- if (env.hasError)
9209
- throw env.error;
7590
+ internalSlots.minimumFractionDigits = mnfd;
7591
+ internalSlots.maximumFractionDigits = mxfd;
7592
+ } else {
7593
+ internalSlots.minimumFractionDigits = mnfdDefault;
7594
+ internalSlots.maximumFractionDigits = mxfdDefault;
7595
+ }
7596
+ }
7597
+ if (needSd || needFd) {
7598
+ if (roundingPriority === "morePrecision") {
7599
+ internalSlots.roundingType = "morePrecision";
7600
+ } else if (roundingPriority === "lessPrecision") {
7601
+ internalSlots.roundingType = "lessPrecision";
7602
+ } else if (hasSd) {
7603
+ internalSlots.roundingType = "significantDigits";
7604
+ } else {
7605
+ internalSlots.roundingType = "fractionDigits";
7606
+ }
7607
+ } else {
7608
+ internalSlots.roundingType = "morePrecision";
7609
+ internalSlots.minimumFractionDigits = 0;
7610
+ internalSlots.maximumFractionDigits = 0;
7611
+ internalSlots.minimumSignificantDigits = 1;
7612
+ internalSlots.maximumSignificantDigits = 2;
7613
+ }
7614
+ }
7615
+ exports2.SetNumberFormatDigitOptions = SetNumberFormatDigitOptions;
7616
+ });
7617
+
7618
+ // node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js
7619
+ var require_SetNumberFormatUnitOptions = __commonJS((exports2) => {
7620
+ Object.defineProperty(exports2, "__esModule", { value: true });
7621
+ exports2.SetNumberFormatUnitOptions = undefined;
7622
+ var GetOption_1 = require_GetOption();
7623
+ var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
7624
+ var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
7625
+ function SetNumberFormatUnitOptions(nf, options, _a) {
7626
+ if (options === undefined) {
7627
+ options = Object.create(null);
7628
+ }
7629
+ var getInternalSlots = _a.getInternalSlots;
7630
+ var internalSlots = getInternalSlots(nf);
7631
+ var style = (0, GetOption_1.GetOption)(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
7632
+ internalSlots.style = style;
7633
+ var currency = (0, GetOption_1.GetOption)(options, "currency", "string", undefined, undefined);
7634
+ if (currency !== undefined && !(0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency)) {
7635
+ throw RangeError("Malformed currency code");
7636
+ }
7637
+ if (style === "currency" && currency === undefined) {
7638
+ throw TypeError("currency cannot be undefined");
7639
+ }
7640
+ var currencyDisplay = (0, GetOption_1.GetOption)(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
7641
+ var currencySign = (0, GetOption_1.GetOption)(options, "currencySign", "string", ["standard", "accounting"], "standard");
7642
+ var unit = (0, GetOption_1.GetOption)(options, "unit", "string", undefined, undefined);
7643
+ if (unit !== undefined && !(0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit)) {
7644
+ throw RangeError("Invalid unit argument for Intl.NumberFormat()");
7645
+ }
7646
+ if (style === "unit" && unit === undefined) {
7647
+ throw TypeError("unit cannot be undefined");
7648
+ }
7649
+ var unitDisplay = (0, GetOption_1.GetOption)(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
7650
+ if (style === "currency") {
7651
+ internalSlots.currency = currency.toUpperCase();
7652
+ internalSlots.currencyDisplay = currencyDisplay;
7653
+ internalSlots.currencySign = currencySign;
7654
+ }
7655
+ if (style === "unit") {
7656
+ internalSlots.unit = unit;
7657
+ internalSlots.unitDisplay = unitDisplay;
7658
+ }
7659
+ }
7660
+ exports2.SetNumberFormatUnitOptions = SetNumberFormatUnitOptions;
7661
+ });
7662
+
7663
+ // node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.js
7664
+ var require_InitializeNumberFormat = __commonJS((exports2) => {
7665
+ Object.defineProperty(exports2, "__esModule", { value: true });
7666
+ exports2.InitializeNumberFormat = undefined;
7667
+ var intl_localematcher_1 = require_intl_localematcher();
7668
+ var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
7669
+ var CoerceOptionsToObject_1 = require_CoerceOptionsToObject();
7670
+ var GetNumberOption_1 = require_GetNumberOption();
7671
+ var GetOption_1 = require_GetOption();
7672
+ var GetStringOrBooleanOption_1 = require_GetStringOrBooleanOption();
7673
+ var utils_1 = require_utils();
7674
+ var CurrencyDigits_1 = require_CurrencyDigits();
7675
+ var SetNumberFormatDigitOptions_1 = require_SetNumberFormatDigitOptions();
7676
+ var SetNumberFormatUnitOptions_1 = require_SetNumberFormatUnitOptions();
7677
+ var VALID_ROUND_INCREMENT_VALUES = [
7678
+ 1,
7679
+ 2,
7680
+ 5,
7681
+ 10,
7682
+ 20,
7683
+ 25,
7684
+ 50,
7685
+ 100,
7686
+ 200,
7687
+ 250,
7688
+ 500,
7689
+ 1000,
7690
+ 2000
7691
+ ];
7692
+ function InitializeNumberFormat(nf, locales, opts, _a) {
7693
+ var { getInternalSlots, localeData, availableLocales, numberingSystemNames, getDefaultLocale, currencyDigitsData } = _a;
7694
+ var requestedLocales = (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(locales);
7695
+ var options = (0, CoerceOptionsToObject_1.CoerceOptionsToObject)(opts);
7696
+ var opt = Object.create(null);
7697
+ var matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
7698
+ opt.localeMatcher = matcher;
7699
+ var numberingSystem = (0, GetOption_1.GetOption)(options, "numberingSystem", "string", undefined, undefined);
7700
+ if (numberingSystem !== undefined && numberingSystemNames.indexOf(numberingSystem) < 0) {
7701
+ throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
7702
+ }
7703
+ opt.nu = numberingSystem;
7704
+ var r2 = (0, intl_localematcher_1.ResolveLocale)(Array.from(availableLocales), requestedLocales, opt, ["nu"], localeData, getDefaultLocale);
7705
+ var dataLocaleData = localeData[r2.dataLocale];
7706
+ (0, utils_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(r2.dataLocale));
7707
+ var internalSlots = getInternalSlots(nf);
7708
+ internalSlots.locale = r2.locale;
7709
+ internalSlots.dataLocale = r2.dataLocale;
7710
+ internalSlots.numberingSystem = r2.nu;
7711
+ internalSlots.dataLocaleData = dataLocaleData;
7712
+ (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots });
7713
+ var style = internalSlots.style;
7714
+ var mnfdDefault;
7715
+ var mxfdDefault;
7716
+ if (style === "currency") {
7717
+ var currency = internalSlots.currency;
7718
+ var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData });
7719
+ mnfdDefault = cDigits;
7720
+ mxfdDefault = cDigits;
7721
+ } else {
7722
+ mnfdDefault = 0;
7723
+ mxfdDefault = style === "percent" ? 0 : 3;
7724
+ }
7725
+ var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
7726
+ internalSlots.notation = notation;
7727
+ (0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
7728
+ var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
7729
+ if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
7730
+ throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
7731
+ Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
7732
+ }
7733
+ if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
7734
+ throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
7735
+ }
7736
+ if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
7737
+ throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
7738
+ }
7739
+ internalSlots.roundingIncrement = roundingIncrement;
7740
+ var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
7741
+ internalSlots.trailingZeroDisplay = trailingZeroDisplay;
7742
+ var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
7743
+ var defaultUseGrouping = "auto";
7744
+ if (notation === "compact") {
7745
+ internalSlots.compactDisplay = compactDisplay;
7746
+ defaultUseGrouping = "min2";
7747
+ }
7748
+ internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
7749
+ internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
7750
+ internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
7751
+ "ceil",
7752
+ "floor",
7753
+ "expand",
7754
+ "trunc",
7755
+ "halfCeil",
7756
+ "halfFloor",
7757
+ "halfExpand",
7758
+ "halfTrunc",
7759
+ "halfEven"
7760
+ ], "halfExpand");
7761
+ return nf;
7762
+ }
7763
+ exports2.InitializeNumberFormat = InitializeNumberFormat;
7764
+ });
7765
+
7766
+ // node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
7767
+ var require_PartitionPattern = __commonJS((exports2) => {
7768
+ Object.defineProperty(exports2, "__esModule", { value: true });
7769
+ exports2.PartitionPattern = undefined;
7770
+ var utils_1 = require_utils();
7771
+ function PartitionPattern(pattern) {
7772
+ var result = [];
7773
+ var beginIndex = pattern.indexOf("{");
7774
+ var endIndex = 0;
7775
+ var nextIndex = 0;
7776
+ var length = pattern.length;
7777
+ while (beginIndex < pattern.length && beginIndex > -1) {
7778
+ endIndex = pattern.indexOf("}", beginIndex);
7779
+ (0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
7780
+ if (beginIndex > nextIndex) {
7781
+ result.push({
7782
+ type: "literal",
7783
+ value: pattern.substring(nextIndex, beginIndex)
7784
+ });
9210
7785
  }
9211
- return next();
7786
+ result.push({
7787
+ type: pattern.substring(beginIndex + 1, endIndex),
7788
+ value: undefined
7789
+ });
7790
+ nextIndex = endIndex + 1;
7791
+ beginIndex = pattern.indexOf("{", nextIndex);
7792
+ }
7793
+ if (nextIndex < length) {
7794
+ result.push({
7795
+ type: "literal",
7796
+ value: pattern.substring(nextIndex, length)
7797
+ });
7798
+ }
7799
+ return result;
7800
+ }
7801
+ exports2.PartitionPattern = PartitionPattern;
7802
+ });
7803
+
7804
+ // node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
7805
+ var require_SupportedLocales = __commonJS((exports2) => {
7806
+ Object.defineProperty(exports2, "__esModule", { value: true });
7807
+ exports2.SupportedLocales = undefined;
7808
+ var intl_localematcher_1 = require_intl_localematcher();
7809
+ var _262_1 = require_262();
7810
+ var GetOption_1 = require_GetOption();
7811
+ function SupportedLocales(availableLocales, requestedLocales, options) {
7812
+ var matcher = "best fit";
7813
+ if (options !== undefined) {
7814
+ options = (0, _262_1.ToObject)(options);
7815
+ matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
7816
+ }
7817
+ if (matcher === "best fit") {
7818
+ return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
7819
+ }
7820
+ return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
7821
+ }
7822
+ exports2.SupportedLocales = SupportedLocales;
7823
+ });
7824
+
7825
+ // node_modules/@formatjs/ecma402-abstract/data.js
7826
+ var require_data = __commonJS((exports2) => {
7827
+ Object.defineProperty(exports2, "__esModule", { value: true });
7828
+ exports2.isMissingLocaleDataError = undefined;
7829
+ var tslib_1 = require_tslib();
7830
+ var MissingLocaleDataError = function(_super) {
7831
+ tslib_1.__extends(MissingLocaleDataError2, _super);
7832
+ function MissingLocaleDataError2() {
7833
+ var _this = _super !== null && _super.apply(this, arguments) || this;
7834
+ _this.type = "MISSING_LOCALE_DATA";
7835
+ return _this;
7836
+ }
7837
+ return MissingLocaleDataError2;
7838
+ }(Error);
7839
+ function isMissingLocaleDataError(e2) {
7840
+ return e2.type === "MISSING_LOCALE_DATA";
7841
+ }
7842
+ exports2.isMissingLocaleDataError = isMissingLocaleDataError;
7843
+ });
7844
+
7845
+ // node_modules/@formatjs/ecma402-abstract/types/relative-time.js
7846
+ var require_relative_time = __commonJS((exports2) => {
7847
+ Object.defineProperty(exports2, "__esModule", { value: true });
7848
+ });
7849
+
7850
+ // node_modules/@formatjs/ecma402-abstract/types/date-time.js
7851
+ var require_date_time = __commonJS((exports2) => {
7852
+ Object.defineProperty(exports2, "__esModule", { value: true });
7853
+ exports2.RangePatternType = undefined;
7854
+ var RangePatternType;
7855
+ (function(RangePatternType2) {
7856
+ RangePatternType2["startRange"] = "startRange";
7857
+ RangePatternType2["shared"] = "shared";
7858
+ RangePatternType2["endRange"] = "endRange";
7859
+ })(RangePatternType || (exports2.RangePatternType = RangePatternType = {}));
7860
+ });
7861
+
7862
+ // node_modules/@formatjs/ecma402-abstract/types/list.js
7863
+ var require_list = __commonJS((exports2) => {
7864
+ Object.defineProperty(exports2, "__esModule", { value: true });
7865
+ });
7866
+
7867
+ // node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
7868
+ var require_plural_rules = __commonJS((exports2) => {
7869
+ Object.defineProperty(exports2, "__esModule", { value: true });
7870
+ });
7871
+
7872
+ // node_modules/@formatjs/ecma402-abstract/types/number.js
7873
+ var require_number = __commonJS((exports2) => {
7874
+ Object.defineProperty(exports2, "__esModule", { value: true });
7875
+ });
7876
+
7877
+ // node_modules/@formatjs/ecma402-abstract/types/displaynames.js
7878
+ var require_displaynames = __commonJS((exports2) => {
7879
+ Object.defineProperty(exports2, "__esModule", { value: true });
7880
+ });
7881
+
7882
+ // node_modules/@formatjs/ecma402-abstract/index.js
7883
+ var require_ecma402_abstract = __commonJS((exports2) => {
7884
+ Object.defineProperty(exports2, "__esModule", { value: true });
7885
+ exports2.invariant = exports2.isMissingLocaleDataError = exports2.defineProperty = exports2.getMagnitude = exports2.setMultiInternalSlots = exports2.setInternalSlot = exports2.isLiteralPart = exports2.getMultiInternalSlots = exports2.getInternalSlot = exports2._formatToParts = undefined;
7886
+ var tslib_1 = require_tslib();
7887
+ tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports2);
7888
+ tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports2);
7889
+ tslib_1.__exportStar(require_CoerceOptionsToObject(), exports2);
7890
+ tslib_1.__exportStar(require_GetNumberOption(), exports2);
7891
+ tslib_1.__exportStar(require_GetOption(), exports2);
7892
+ tslib_1.__exportStar(require_GetOptionsObject(), exports2);
7893
+ tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports2);
7894
+ tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports2);
7895
+ tslib_1.__exportStar(require_IsValidTimeZoneName(), exports2);
7896
+ tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports2);
7897
+ tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports2);
7898
+ tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports2);
7899
+ tslib_1.__exportStar(require_CollapseNumberRange(), exports2);
7900
+ tslib_1.__exportStar(require_ComputeExponent(), exports2);
7901
+ tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports2);
7902
+ tslib_1.__exportStar(require_CurrencyDigits(), exports2);
7903
+ tslib_1.__exportStar(require_FormatApproximately(), exports2);
7904
+ tslib_1.__exportStar(require_FormatNumericRange(), exports2);
7905
+ tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports2);
7906
+ tslib_1.__exportStar(require_FormatNumericToParts(), exports2);
7907
+ tslib_1.__exportStar(require_FormatNumericToString(), exports2);
7908
+ tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports2);
7909
+ tslib_1.__exportStar(require_InitializeNumberFormat(), exports2);
7910
+ tslib_1.__exportStar(require_PartitionNumberPattern(), exports2);
7911
+ tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports2);
7912
+ tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports2);
7913
+ tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports2);
7914
+ tslib_1.__exportStar(require_ToRawFixed(), exports2);
7915
+ tslib_1.__exportStar(require_ToRawPrecision(), exports2);
7916
+ var format_to_parts_1 = require_format_to_parts();
7917
+ Object.defineProperty(exports2, "_formatToParts", { enumerable: true, get: function() {
7918
+ return tslib_1.__importDefault(format_to_parts_1).default;
7919
+ } });
7920
+ tslib_1.__exportStar(require_PartitionPattern(), exports2);
7921
+ tslib_1.__exportStar(require_SupportedLocales(), exports2);
7922
+ var utils_1 = require_utils();
7923
+ Object.defineProperty(exports2, "getInternalSlot", { enumerable: true, get: function() {
7924
+ return utils_1.getInternalSlot;
7925
+ } });
7926
+ Object.defineProperty(exports2, "getMultiInternalSlots", { enumerable: true, get: function() {
7927
+ return utils_1.getMultiInternalSlots;
7928
+ } });
7929
+ Object.defineProperty(exports2, "isLiteralPart", { enumerable: true, get: function() {
7930
+ return utils_1.isLiteralPart;
7931
+ } });
7932
+ Object.defineProperty(exports2, "setInternalSlot", { enumerable: true, get: function() {
7933
+ return utils_1.setInternalSlot;
7934
+ } });
7935
+ Object.defineProperty(exports2, "setMultiInternalSlots", { enumerable: true, get: function() {
7936
+ return utils_1.setMultiInternalSlots;
7937
+ } });
7938
+ Object.defineProperty(exports2, "getMagnitude", { enumerable: true, get: function() {
7939
+ return utils_1.getMagnitude;
7940
+ } });
7941
+ Object.defineProperty(exports2, "defineProperty", { enumerable: true, get: function() {
7942
+ return utils_1.defineProperty;
7943
+ } });
7944
+ var data_1 = require_data();
7945
+ Object.defineProperty(exports2, "isMissingLocaleDataError", { enumerable: true, get: function() {
7946
+ return data_1.isMissingLocaleDataError;
7947
+ } });
7948
+ tslib_1.__exportStar(require_relative_time(), exports2);
7949
+ tslib_1.__exportStar(require_date_time(), exports2);
7950
+ tslib_1.__exportStar(require_list(), exports2);
7951
+ tslib_1.__exportStar(require_plural_rules(), exports2);
7952
+ tslib_1.__exportStar(require_number(), exports2);
7953
+ tslib_1.__exportStar(require_displaynames(), exports2);
7954
+ var utils_2 = require_utils();
7955
+ Object.defineProperty(exports2, "invariant", { enumerable: true, get: function() {
7956
+ return utils_2.invariant;
7957
+ } });
7958
+ tslib_1.__exportStar(require_262(), exports2);
7959
+ });
7960
+
7961
+ // node_modules/@formatjs/intl/src/types.js
7962
+ var require_types = __commonJS((exports2) => {
7963
+ Object.defineProperty(exports2, "__esModule", { value: true });
7964
+ });
7965
+
7966
+ // node_modules/@formatjs/icu-messageformat-parser/error.js
7967
+ var require_error = __commonJS((exports2) => {
7968
+ Object.defineProperty(exports2, "__esModule", { value: true });
7969
+ exports2.ErrorKind = undefined;
7970
+ var ErrorKind;
7971
+ (function(ErrorKind2) {
7972
+ ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
7973
+ ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
7974
+ ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
7975
+ ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
7976
+ ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
7977
+ ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
7978
+ ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
7979
+ ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
7980
+ ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
7981
+ ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
7982
+ ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
7983
+ ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
7984
+ ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
7985
+ ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
7986
+ ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
7987
+ ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
7988
+ ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
7989
+ ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
7990
+ ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
7991
+ ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
7992
+ ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
7993
+ ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
7994
+ ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
7995
+ ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
7996
+ ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
7997
+ ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
7998
+ })(ErrorKind || (exports2.ErrorKind = ErrorKind = {}));
7999
+ });
8000
+
8001
+ // node_modules/@formatjs/icu-messageformat-parser/types.js
8002
+ var require_types2 = __commonJS((exports2) => {
8003
+ Object.defineProperty(exports2, "__esModule", { value: true });
8004
+ exports2.createNumberElement = exports2.createLiteralElement = exports2.isDateTimeSkeleton = exports2.isNumberSkeleton = exports2.isTagElement = exports2.isPoundElement = exports2.isPluralElement = exports2.isSelectElement = exports2.isTimeElement = exports2.isDateElement = exports2.isNumberElement = exports2.isArgumentElement = exports2.isLiteralElement = exports2.SKELETON_TYPE = exports2.TYPE = undefined;
8005
+ var TYPE;
8006
+ (function(TYPE2) {
8007
+ TYPE2[TYPE2["literal"] = 0] = "literal";
8008
+ TYPE2[TYPE2["argument"] = 1] = "argument";
8009
+ TYPE2[TYPE2["number"] = 2] = "number";
8010
+ TYPE2[TYPE2["date"] = 3] = "date";
8011
+ TYPE2[TYPE2["time"] = 4] = "time";
8012
+ TYPE2[TYPE2["select"] = 5] = "select";
8013
+ TYPE2[TYPE2["plural"] = 6] = "plural";
8014
+ TYPE2[TYPE2["pound"] = 7] = "pound";
8015
+ TYPE2[TYPE2["tag"] = 8] = "tag";
8016
+ })(TYPE || (exports2.TYPE = TYPE = {}));
8017
+ var SKELETON_TYPE;
8018
+ (function(SKELETON_TYPE2) {
8019
+ SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
8020
+ SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
8021
+ })(SKELETON_TYPE || (exports2.SKELETON_TYPE = SKELETON_TYPE = {}));
8022
+ function isLiteralElement(el) {
8023
+ return el.type === TYPE.literal;
8024
+ }
8025
+ exports2.isLiteralElement = isLiteralElement;
8026
+ function isArgumentElement(el) {
8027
+ return el.type === TYPE.argument;
8028
+ }
8029
+ exports2.isArgumentElement = isArgumentElement;
8030
+ function isNumberElement(el) {
8031
+ return el.type === TYPE.number;
8032
+ }
8033
+ exports2.isNumberElement = isNumberElement;
8034
+ function isDateElement(el) {
8035
+ return el.type === TYPE.date;
8036
+ }
8037
+ exports2.isDateElement = isDateElement;
8038
+ function isTimeElement(el) {
8039
+ return el.type === TYPE.time;
8040
+ }
8041
+ exports2.isTimeElement = isTimeElement;
8042
+ function isSelectElement(el) {
8043
+ return el.type === TYPE.select;
8044
+ }
8045
+ exports2.isSelectElement = isSelectElement;
8046
+ function isPluralElement(el) {
8047
+ return el.type === TYPE.plural;
8048
+ }
8049
+ exports2.isPluralElement = isPluralElement;
8050
+ function isPoundElement(el) {
8051
+ return el.type === TYPE.pound;
8052
+ }
8053
+ exports2.isPoundElement = isPoundElement;
8054
+ function isTagElement(el) {
8055
+ return el.type === TYPE.tag;
8056
+ }
8057
+ exports2.isTagElement = isTagElement;
8058
+ function isNumberSkeleton(el) {
8059
+ return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
8060
+ }
8061
+ exports2.isNumberSkeleton = isNumberSkeleton;
8062
+ function isDateTimeSkeleton(el) {
8063
+ return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
8064
+ }
8065
+ exports2.isDateTimeSkeleton = isDateTimeSkeleton;
8066
+ function createLiteralElement(value) {
8067
+ return {
8068
+ type: TYPE.literal,
8069
+ value
9212
8070
  };
9213
- __rewriteRelativeImportExtension = function(path, preserveJsx) {
9214
- if (typeof path === "string" && /^\.\.?\//.test(path)) {
9215
- return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
9216
- return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
9217
- });
9218
- }
9219
- return path;
8071
+ }
8072
+ exports2.createLiteralElement = createLiteralElement;
8073
+ function createNumberElement(value, style) {
8074
+ return {
8075
+ type: TYPE.number,
8076
+ value,
8077
+ style
9220
8078
  };
9221
- exporter("__extends", __extends);
9222
- exporter("__assign", __assign);
9223
- exporter("__rest", __rest);
9224
- exporter("__decorate", __decorate);
9225
- exporter("__param", __param);
9226
- exporter("__esDecorate", __esDecorate);
9227
- exporter("__runInitializers", __runInitializers);
9228
- exporter("__propKey", __propKey);
9229
- exporter("__setFunctionName", __setFunctionName);
9230
- exporter("__metadata", __metadata);
9231
- exporter("__awaiter", __awaiter);
9232
- exporter("__generator", __generator);
9233
- exporter("__exportStar", __exportStar);
9234
- exporter("__createBinding", __createBinding);
9235
- exporter("__values", __values);
9236
- exporter("__read", __read);
9237
- exporter("__spread", __spread);
9238
- exporter("__spreadArrays", __spreadArrays);
9239
- exporter("__spreadArray", __spreadArray);
9240
- exporter("__await", __await);
9241
- exporter("__asyncGenerator", __asyncGenerator);
9242
- exporter("__asyncDelegator", __asyncDelegator);
9243
- exporter("__asyncValues", __asyncValues);
9244
- exporter("__makeTemplateObject", __makeTemplateObject);
9245
- exporter("__importStar", __importStar);
9246
- exporter("__importDefault", __importDefault);
9247
- exporter("__classPrivateFieldGet", __classPrivateFieldGet);
9248
- exporter("__classPrivateFieldSet", __classPrivateFieldSet);
9249
- exporter("__classPrivateFieldIn", __classPrivateFieldIn);
9250
- exporter("__addDisposableResource", __addDisposableResource);
9251
- exporter("__disposeResources", __disposeResources);
9252
- exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
9253
- });
8079
+ }
8080
+ exports2.createNumberElement = createNumberElement;
8081
+ });
8082
+
8083
+ // node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
8084
+ var require_regex_generated2 = __commonJS((exports2) => {
8085
+ Object.defineProperty(exports2, "__esModule", { value: true });
8086
+ exports2.WHITE_SPACE_REGEX = exports2.SPACE_SEPARATOR_REGEX = undefined;
8087
+ exports2.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
8088
+ exports2.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
9254
8089
  });
9255
8090
 
9256
8091
  // node_modules/@formatjs/icu-skeleton-parser/date-time.js
@@ -9370,7 +8205,7 @@ var require_regex_generated3 = __commonJS((exports2) => {
9370
8205
  var require_number2 = __commonJS((exports2) => {
9371
8206
  Object.defineProperty(exports2, "__esModule", { value: true });
9372
8207
  exports2.parseNumberSkeleton = exports2.parseNumberSkeletonFromString = undefined;
9373
- var tslib_1 = require_tslib3();
8208
+ var tslib_1 = require_tslib();
9374
8209
  var regex_generated_1 = require_regex_generated3();
9375
8210
  function parseNumberSkeletonFromString(skeleton) {
9376
8211
  if (skeleton.length === 0) {
@@ -9664,7 +8499,7 @@ var require_number2 = __commonJS((exports2) => {
9664
8499
  // node_modules/@formatjs/icu-skeleton-parser/index.js
9665
8500
  var require_icu_skeleton_parser = __commonJS((exports2) => {
9666
8501
  Object.defineProperty(exports2, "__esModule", { value: true });
9667
- var tslib_1 = require_tslib3();
8502
+ var tslib_1 = require_tslib();
9668
8503
  tslib_1.__exportStar(require_date_time2(), exports2);
9669
8504
  tslib_1.__exportStar(require_number2(), exports2);
9670
8505
  });