@equinor/roma-framework 4.0.0 → 5.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -266,7 +266,7 @@ function arrRemove(arr, item) {
266
266
  0 <= index && arr.splice(index, 1);
267
267
  }
268
268
  }
269
- var Subscription = function() {
269
+ var Subscription = (function() {
270
270
  function Subscription2(initialTeardown) {
271
271
  this.initialTeardown = initialTeardown;
272
272
  this.closed = false;
@@ -379,13 +379,13 @@ var Subscription = function() {
379
379
  teardown._removeParent(this);
380
380
  }
381
381
  };
382
- Subscription2.EMPTY = function() {
382
+ Subscription2.EMPTY = (function() {
383
383
  var empty = new Subscription2();
384
384
  empty.closed = true;
385
385
  return empty;
386
- }();
386
+ })();
387
387
  return Subscription2;
388
- }();
388
+ })();
389
389
  var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
390
390
  function isSubscription(value) {
391
391
  return value instanceof Subscription || value && "closed" in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);
@@ -427,7 +427,7 @@ function errorContext(cb) {
427
427
  cb();
428
428
  }
429
429
  }
430
- var Subscriber = function(_super) {
430
+ var Subscriber = (function(_super) {
431
431
  __extends(Subscriber2, _super);
432
432
  function Subscriber2(destination) {
433
433
  var _this = _super.call(this) || this;
@@ -490,8 +490,8 @@ var Subscriber = function(_super) {
490
490
  }
491
491
  };
492
492
  return Subscriber2;
493
- }(Subscription);
494
- var ConsumerObserver = function() {
493
+ })(Subscription);
494
+ var ConsumerObserver = (function() {
495
495
  function ConsumerObserver2(partialObserver) {
496
496
  this.partialObserver = partialObserver;
497
497
  }
@@ -528,8 +528,8 @@ var ConsumerObserver = function() {
528
528
  }
529
529
  };
530
530
  return ConsumerObserver2;
531
- }();
532
- var SafeSubscriber = function(_super) {
531
+ })();
532
+ var SafeSubscriber = (function(_super) {
533
533
  __extends(SafeSubscriber2, _super);
534
534
  function SafeSubscriber2(observerOrNext, error, complete) {
535
535
  var _this = _super.call(this) || this;
@@ -549,7 +549,7 @@ var SafeSubscriber = function(_super) {
549
549
  return _this;
550
550
  }
551
551
  return SafeSubscriber2;
552
- }(Subscriber);
552
+ })(Subscriber);
553
553
  function handleUnhandledError(error) {
554
554
  {
555
555
  reportUnhandledError(error);
@@ -564,9 +564,9 @@ var EMPTY_OBSERVER = {
564
564
  error: defaultErrorHandler$1,
565
565
  complete: noop
566
566
  };
567
- var observable = function() {
567
+ var observable = (function() {
568
568
  return typeof Symbol === "function" && Symbol.observable || "@@observable";
569
- }();
569
+ })();
570
570
  function identity(x) {
571
571
  return x;
572
572
  }
@@ -583,7 +583,7 @@ function pipeFromArray(fns) {
583
583
  }, input);
584
584
  };
585
585
  }
586
- var Observable = function() {
586
+ var Observable = (function() {
587
587
  function Observable2(subscribe) {
588
588
  if (subscribe) {
589
589
  this._subscribe = subscribe;
@@ -662,7 +662,7 @@ var Observable = function() {
662
662
  return new Observable2(subscribe);
663
663
  };
664
664
  return Observable2;
665
- }();
665
+ })();
666
666
  function getPromiseCtor(promiseCtor) {
667
667
  var _a2;
668
668
  return (_a2 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a2 !== void 0 ? _a2 : Promise;
@@ -693,7 +693,7 @@ function operate(init) {
693
693
  function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
694
694
  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
695
695
  }
696
- var OperatorSubscriber = function(_super) {
696
+ var OperatorSubscriber = (function(_super) {
697
697
  __extends(OperatorSubscriber2, _super);
698
698
  function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
699
699
  var _this = _super.call(this, destination) || this;
@@ -735,7 +735,7 @@ var OperatorSubscriber = function(_super) {
735
735
  }
736
736
  };
737
737
  return OperatorSubscriber2;
738
- }(Subscriber);
738
+ })(Subscriber);
739
739
  var ObjectUnsubscribedError = createErrorClass(function(_super) {
740
740
  return function ObjectUnsubscribedErrorImpl() {
741
741
  _super(this);
@@ -743,7 +743,7 @@ var ObjectUnsubscribedError = createErrorClass(function(_super) {
743
743
  this.message = "object unsubscribed";
744
744
  };
745
745
  });
746
- var Subject = function(_super) {
746
+ var Subject = (function(_super) {
747
747
  __extends(Subject2, _super);
748
748
  function Subject2() {
749
749
  var _this = _super.call(this) || this;
@@ -869,8 +869,8 @@ var Subject = function(_super) {
869
869
  return new AnonymousSubject(destination, source);
870
870
  };
871
871
  return Subject2;
872
- }(Observable);
873
- var AnonymousSubject = function(_super) {
872
+ })(Observable);
873
+ var AnonymousSubject = (function(_super) {
874
874
  __extends(AnonymousSubject2, _super);
875
875
  function AnonymousSubject2(destination, source) {
876
876
  var _this = _super.call(this) || this;
@@ -895,8 +895,8 @@ var AnonymousSubject = function(_super) {
895
895
  return (_b = (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
896
896
  };
897
897
  return AnonymousSubject2;
898
- }(Subject);
899
- var BehaviorSubject = function(_super) {
898
+ })(Subject);
899
+ var BehaviorSubject = (function(_super) {
900
900
  __extends(BehaviorSubject2, _super);
901
901
  function BehaviorSubject2(_value) {
902
902
  var _this = _super.call(this) || this;
@@ -927,7 +927,7 @@ var BehaviorSubject = function(_super) {
927
927
  _super.prototype.next.call(this, this._value = value);
928
928
  };
929
929
  return BehaviorSubject2;
930
- }(Subject);
930
+ })(Subject);
931
931
  function isScheduler(value) {
932
932
  return value && isFunction(value.schedule);
933
933
  }
@@ -937,9 +937,9 @@ function last(arr) {
937
937
  function popScheduler(args) {
938
938
  return isScheduler(last(args)) ? args.pop() : void 0;
939
939
  }
940
- var isArrayLike = function(x) {
940
+ var isArrayLike = (function(x) {
941
941
  return x && typeof x.length === "number" && typeof x !== "function";
942
- };
942
+ });
943
943
  function isPromise(value) {
944
944
  return isFunction(value === null || value === void 0 ? void 0 : value.then);
945
945
  }
@@ -1323,19 +1323,11 @@ function getDefaultExportFromCjs(x) {
1323
1323
  }
1324
1324
  var reactIs = { exports: {} };
1325
1325
  var reactIs_production_min = {};
1326
- /** @license React v16.13.1
1327
- * react-is.production.min.js
1328
- *
1329
- * Copyright (c) Facebook, Inc. and its affiliates.
1330
- *
1331
- * This source code is licensed under the MIT license found in the
1332
- * LICENSE file in the root directory of this source tree.
1333
- */
1334
1326
  var hasRequiredReactIs_production_min;
1335
1327
  function requireReactIs_production_min() {
1336
1328
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
1337
1329
  hasRequiredReactIs_production_min = 1;
1338
- var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1330
+ var b = "function" === typeof Symbol && Symbol.for, c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1339
1331
  function z(a) {
1340
1332
  if ("object" === typeof a && null !== a) {
1341
1333
  var u = a.$$typeof;
@@ -1426,14 +1418,6 @@ function requireReactIs_production_min() {
1426
1418
  return reactIs_production_min;
1427
1419
  }
1428
1420
  var reactIs_development = {};
1429
- /** @license React v16.13.1
1430
- * react-is.development.js
1431
- *
1432
- * Copyright (c) Facebook, Inc. and its affiliates.
1433
- *
1434
- * This source code is licensed under the MIT license found in the
1435
- * LICENSE file in the root directory of this source tree.
1436
- */
1437
1421
  var hasRequiredReactIs_development;
1438
1422
  function requireReactIs_development() {
1439
1423
  if (hasRequiredReactIs_development) return reactIs_development;
@@ -1441,24 +1425,24 @@ function requireReactIs_development() {
1441
1425
  if (process.env.NODE_ENV !== "production") {
1442
1426
  (function() {
1443
1427
  var hasSymbol = typeof Symbol === "function" && Symbol.for;
1444
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
1445
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
1446
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
1447
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
1448
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
1449
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
1450
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
1451
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
1452
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
1453
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
1454
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
1455
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
1456
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
1457
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
1458
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
1459
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
1460
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
1461
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
1428
+ var REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
1429
+ var REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
1430
+ var REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
1431
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
1432
+ var REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
1433
+ var REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
1434
+ var REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
1435
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
1436
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
1437
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
1438
+ var REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
1439
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
1440
+ var REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
1441
+ var REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
1442
+ var REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
1443
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
1444
+ var REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
1445
+ var REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1462
1446
  function isValidElementType(type) {
1463
1447
  return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1464
1448
  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
@@ -3762,7 +3746,7 @@ if (REGEX_SUPPORTS_U_AND_Y) {
3762
3746
  }
3763
3747
  var Parser = (
3764
3748
  /** @class */
3765
- function() {
3749
+ (function() {
3766
3750
  function Parser2(message, options) {
3767
3751
  if (options === void 0) {
3768
3752
  options = {};
@@ -4414,7 +4398,7 @@ var Parser = (
4414
4398
  return nextCode !== null && nextCode !== void 0 ? nextCode : null;
4415
4399
  };
4416
4400
  return Parser2;
4417
- }()
4401
+ })()
4418
4402
  );
4419
4403
  function _isAlpha(codepoint) {
4420
4404
  return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90;
@@ -4534,7 +4518,7 @@ var ErrorCode;
4534
4518
  })(ErrorCode || (ErrorCode = {}));
4535
4519
  var FormatError = (
4536
4520
  /** @class */
4537
- function(_super) {
4521
+ (function(_super) {
4538
4522
  __extends(FormatError2, _super);
4539
4523
  function FormatError2(msg, code, originalMessage) {
4540
4524
  var _this = _super.call(this, msg) || this;
@@ -4546,37 +4530,37 @@ var FormatError = (
4546
4530
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
4547
4531
  };
4548
4532
  return FormatError2;
4549
- }(Error)
4533
+ })(Error)
4550
4534
  );
4551
4535
  var InvalidValueError = (
4552
4536
  /** @class */
4553
- function(_super) {
4537
+ (function(_super) {
4554
4538
  __extends(InvalidValueError2, _super);
4555
4539
  function InvalidValueError2(variableId, value, options, originalMessage) {
4556
4540
  return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
4557
4541
  }
4558
4542
  return InvalidValueError2;
4559
- }(FormatError)
4543
+ })(FormatError)
4560
4544
  );
4561
4545
  var InvalidValueTypeError = (
4562
4546
  /** @class */
4563
- function(_super) {
4547
+ (function(_super) {
4564
4548
  __extends(InvalidValueTypeError2, _super);
4565
4549
  function InvalidValueTypeError2(value, type, originalMessage) {
4566
4550
  return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
4567
4551
  }
4568
4552
  return InvalidValueTypeError2;
4569
- }(FormatError)
4553
+ })(FormatError)
4570
4554
  );
4571
4555
  var MissingValueError = (
4572
4556
  /** @class */
4573
- function(_super) {
4557
+ (function(_super) {
4574
4558
  __extends(MissingValueError2, _super);
4575
4559
  function MissingValueError2(variableId, originalMessage) {
4576
4560
  return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
4577
4561
  }
4578
4562
  return MissingValueError2;
4579
- }(FormatError)
4563
+ })(FormatError)
4580
4564
  );
4581
4565
  var PART_TYPE;
4582
4566
  (function(PART_TYPE2) {
@@ -4794,7 +4778,7 @@ function createDefaultFormatters(cache) {
4794
4778
  }
4795
4779
  var IntlMessageFormat = (
4796
4780
  /** @class */
4797
- function() {
4781
+ (function() {
4798
4782
  function IntlMessageFormat2(message, locales, overrideFormats, opts) {
4799
4783
  if (locales === void 0) {
4800
4784
  locales = IntlMessageFormat2.defaultLocale;
@@ -4937,7 +4921,7 @@ var IntlMessageFormat = (
4937
4921
  }
4938
4922
  };
4939
4923
  return IntlMessageFormat2;
4940
- }()
4924
+ })()
4941
4925
  );
4942
4926
  var IntlErrorCode;
4943
4927
  (function(IntlErrorCode2) {
@@ -4949,7 +4933,7 @@ var IntlErrorCode;
4949
4933
  })(IntlErrorCode || (IntlErrorCode = {}));
4950
4934
  var IntlError = (
4951
4935
  /** @class */
4952
- function(_super) {
4936
+ (function(_super) {
4953
4937
  __extends(IntlError2, _super);
4954
4938
  function IntlError2(code, message, exception) {
4955
4939
  var _this = this;
@@ -4962,41 +4946,41 @@ var IntlError = (
4962
4946
  return _this;
4963
4947
  }
4964
4948
  return IntlError2;
4965
- }(Error)
4949
+ })(Error)
4966
4950
  );
4967
4951
  var UnsupportedFormatterError = (
4968
4952
  /** @class */
4969
- function(_super) {
4953
+ (function(_super) {
4970
4954
  __extends(UnsupportedFormatterError2, _super);
4971
4955
  function UnsupportedFormatterError2(message, exception) {
4972
4956
  return _super.call(this, IntlErrorCode.UNSUPPORTED_FORMATTER, message, exception) || this;
4973
4957
  }
4974
4958
  return UnsupportedFormatterError2;
4975
- }(IntlError)
4959
+ })(IntlError)
4976
4960
  );
4977
4961
  var InvalidConfigError = (
4978
4962
  /** @class */
4979
- function(_super) {
4963
+ (function(_super) {
4980
4964
  __extends(InvalidConfigError2, _super);
4981
4965
  function InvalidConfigError2(message, exception) {
4982
4966
  return _super.call(this, IntlErrorCode.INVALID_CONFIG, message, exception) || this;
4983
4967
  }
4984
4968
  return InvalidConfigError2;
4985
- }(IntlError)
4969
+ })(IntlError)
4986
4970
  );
4987
4971
  var MissingDataError = (
4988
4972
  /** @class */
4989
- function(_super) {
4973
+ (function(_super) {
4990
4974
  __extends(MissingDataError2, _super);
4991
4975
  function MissingDataError2(message, exception) {
4992
4976
  return _super.call(this, IntlErrorCode.MISSING_DATA, message, exception) || this;
4993
4977
  }
4994
4978
  return MissingDataError2;
4995
- }(IntlError)
4979
+ })(IntlError)
4996
4980
  );
4997
4981
  var IntlFormatError = (
4998
4982
  /** @class */
4999
- function(_super) {
4983
+ (function(_super) {
5000
4984
  __extends(IntlFormatError2, _super);
5001
4985
  function IntlFormatError2(message, locale, exception) {
5002
4986
  var _this = _super.call(this, IntlErrorCode.FORMAT_ERROR, "".concat(message, "\nLocale: ").concat(locale, "\n"), exception) || this;
@@ -5004,11 +4988,11 @@ var IntlFormatError = (
5004
4988
  return _this;
5005
4989
  }
5006
4990
  return IntlFormatError2;
5007
- }(IntlError)
4991
+ })(IntlError)
5008
4992
  );
5009
4993
  var MessageFormatError = (
5010
4994
  /** @class */
5011
- function(_super) {
4995
+ (function(_super) {
5012
4996
  __extends(MessageFormatError2, _super);
5013
4997
  function MessageFormatError2(message, locale, descriptor, exception) {
5014
4998
  var _this = _super.call(this, "".concat(message, "\nMessageID: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.id, "\nDefault Message: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage, "\nDescription: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.description, "\n"), locale, exception) || this;
@@ -5017,11 +5001,11 @@ var MessageFormatError = (
5017
5001
  return _this;
5018
5002
  }
5019
5003
  return MessageFormatError2;
5020
- }(IntlFormatError)
5004
+ })(IntlFormatError)
5021
5005
  );
5022
5006
  var MissingTranslationError = (
5023
5007
  /** @class */
5024
- function(_super) {
5008
+ (function(_super) {
5025
5009
  __extends(MissingTranslationError2, _super);
5026
5010
  function MissingTranslationError2(descriptor, locale) {
5027
5011
  var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, 'Missing message: "'.concat(descriptor.id, '" for locale "').concat(locale, '", using ').concat(descriptor.defaultMessage ? "default message (".concat(typeof descriptor.defaultMessage === "string" ? descriptor.defaultMessage : descriptor.defaultMessage.map(function(e) {
@@ -5032,7 +5016,7 @@ var MissingTranslationError = (
5032
5016
  return _this;
5033
5017
  }
5034
5018
  return MissingTranslationError2;
5035
- }(IntlError)
5019
+ })(IntlError)
5036
5020
  );
5037
5021
  function filterProps(props, allowlist, defaults) {
5038
5022
  if (defaults === void 0) {
@@ -5743,7 +5727,7 @@ var createIntl = function(_a2, cache) {
5743
5727
  };
5744
5728
  var IntlProvider = (
5745
5729
  /** @class */
5746
- function(_super) {
5730
+ (function(_super) {
5747
5731
  __extends(IntlProvider2, _super);
5748
5732
  function IntlProvider2() {
5749
5733
  var _this = _super !== null && _super.apply(this, arguments) || this;
@@ -5773,7 +5757,7 @@ var IntlProvider = (
5773
5757
  IntlProvider2.displayName = "IntlProvider";
5774
5758
  IntlProvider2.defaultProps = DEFAULT_INTL_CONFIG;
5775
5759
  return IntlProvider2;
5776
- }(React.PureComponent)
5760
+ })(React.PureComponent)
5777
5761
  );
5778
5762
  createFormattedComponent("formatDate");
5779
5763
  createFormattedComponent("formatTime");
@@ -5782,16 +5766,6 @@ createFormattedComponent("formatList");
5782
5766
  createFormattedComponent("formatDisplayName");
5783
5767
  createFormattedDateTimePartsComponent("formatDate");
5784
5768
  createFormattedDateTimePartsComponent("formatTime");
5785
- /**
5786
- * @remix-run/router v1.8.0
5787
- *
5788
- * Copyright (c) Remix Software Inc.
5789
- *
5790
- * This source code is licensed under the MIT license found in the
5791
- * LICENSE.md file in the root directory of this source tree.
5792
- *
5793
- * @license MIT
5794
- */
5795
5769
  function _extends() {
5796
5770
  _extends = Object.assign ? Object.assign.bind() : function(target) {
5797
5771
  for (var i = 1; i < arguments.length; i++) {
@@ -5862,6 +5836,73 @@ var ResultType;
5862
5836
  ResultType2["redirect"] = "redirect";
5863
5837
  ResultType2["error"] = "error";
5864
5838
  })(ResultType || (ResultType = {}));
5839
+ function matchPath(pattern, pathname) {
5840
+ if (typeof pattern === "string") {
5841
+ pattern = {
5842
+ path: pattern,
5843
+ caseSensitive: false,
5844
+ end: true
5845
+ };
5846
+ }
5847
+ let [matcher, compiledParams] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);
5848
+ let match = pathname.match(matcher);
5849
+ if (!match) return null;
5850
+ let matchedPathname = match[0];
5851
+ let pathnameBase = matchedPathname.replace(/(.)\/+$/, "$1");
5852
+ let captureGroups = match.slice(1);
5853
+ let params = compiledParams.reduce((memo, _ref, index) => {
5854
+ let {
5855
+ paramName,
5856
+ isOptional
5857
+ } = _ref;
5858
+ if (paramName === "*") {
5859
+ let splatValue = captureGroups[index] || "";
5860
+ pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\/+$/, "$1");
5861
+ }
5862
+ const value = captureGroups[index];
5863
+ if (isOptional && !value) {
5864
+ memo[paramName] = void 0;
5865
+ } else {
5866
+ memo[paramName] = (value || "").replace(/%2F/g, "/");
5867
+ }
5868
+ return memo;
5869
+ }, {});
5870
+ return {
5871
+ params,
5872
+ pathname: matchedPathname,
5873
+ pathnameBase,
5874
+ pattern
5875
+ };
5876
+ }
5877
+ function compilePath(path, caseSensitive, end) {
5878
+ if (caseSensitive === void 0) {
5879
+ caseSensitive = false;
5880
+ }
5881
+ if (end === void 0) {
5882
+ end = true;
5883
+ }
5884
+ warning(path === "*" || !path.endsWith("*") || path.endsWith("/*"), 'Route path "' + path + '" will be treated as if it were ' + ('"' + path.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + path.replace(/\*$/, "/*") + '".'));
5885
+ let params = [];
5886
+ let regexpSource = "^" + path.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (_, paramName, isOptional) => {
5887
+ params.push({
5888
+ paramName,
5889
+ isOptional: isOptional != null
5890
+ });
5891
+ return isOptional ? "/?([^\\/]+)?" : "/([^\\/]+)";
5892
+ });
5893
+ if (path.endsWith("*")) {
5894
+ params.push({
5895
+ paramName: "*"
5896
+ });
5897
+ regexpSource += path === "*" || path === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$";
5898
+ } else if (end) {
5899
+ regexpSource += "\\/*$";
5900
+ } else if (path !== "" && path !== "/") {
5901
+ regexpSource += "(?:(?=\\/|$))";
5902
+ } else ;
5903
+ let matcher = new RegExp(regexpSource, caseSensitive ? void 0 : "i");
5904
+ return [matcher, params];
5905
+ }
5865
5906
  function stripBasename(pathname, basename) {
5866
5907
  if (basename === "/") return pathname;
5867
5908
  if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {
@@ -5874,6 +5915,8 @@ function stripBasename(pathname, basename) {
5874
5915
  }
5875
5916
  return pathname.slice(startIndex) || "/";
5876
5917
  }
5918
+ const ABSOLUTE_URL_REGEX$1 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
5919
+ const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX$1.test(url);
5877
5920
  function resolvePath(to, fromPathname) {
5878
5921
  if (fromPathname === void 0) {
5879
5922
  fromPathname = "/";
@@ -5883,7 +5926,25 @@ function resolvePath(to, fromPathname) {
5883
5926
  search = "",
5884
5927
  hash = ""
5885
5928
  } = typeof to === "string" ? parsePath(to) : to;
5886
- let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;
5929
+ let pathname;
5930
+ if (toPathname) {
5931
+ if (isAbsoluteUrl(toPathname)) {
5932
+ pathname = toPathname;
5933
+ } else {
5934
+ if (toPathname.includes("//")) {
5935
+ let oldPathname = toPathname;
5936
+ toPathname = toPathname.replace(/\/\/+/g, "/");
5937
+ warning(false, "Pathnames cannot have embedded double slashes - normalizing " + (oldPathname + " -> " + toPathname));
5938
+ }
5939
+ if (toPathname.startsWith("/")) {
5940
+ pathname = resolvePathname(toPathname.substring(1), "/");
5941
+ } else {
5942
+ pathname = resolvePathname(toPathname, fromPathname);
5943
+ }
5944
+ }
5945
+ } else {
5946
+ pathname = fromPathname;
5947
+ }
5887
5948
  return {
5888
5949
  pathname,
5889
5950
  search: normalizeSearch(search),
@@ -5908,6 +5969,13 @@ function getInvalidPathError(char, field, dest, path) {
5908
5969
  function getPathContributingMatches(matches) {
5909
5970
  return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);
5910
5971
  }
5972
+ function getResolveToMatches(matches, v7_relativeSplatPath) {
5973
+ let pathMatches = getPathContributingMatches(matches);
5974
+ if (v7_relativeSplatPath) {
5975
+ return pathMatches.map((match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase);
5976
+ }
5977
+ return pathMatches.map((match) => match.pathnameBase);
5978
+ }
5911
5979
  function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {
5912
5980
  if (isPathRelative === void 0) {
5913
5981
  isPathRelative = false;
@@ -5924,11 +5992,11 @@ function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {
5924
5992
  let isEmptyPath = toArg === "" || to.pathname === "";
5925
5993
  let toPathname = isEmptyPath ? "/" : to.pathname;
5926
5994
  let from2;
5927
- if (isPathRelative || toPathname == null) {
5995
+ if (toPathname == null) {
5928
5996
  from2 = locationPathname;
5929
5997
  } else {
5930
5998
  let routePathnameIndex = routePathnames.length - 1;
5931
- if (toPathname.startsWith("..")) {
5999
+ if (!isPathRelative && toPathname.startsWith("..")) {
5932
6000
  let toSegments = toPathname.split("/");
5933
6001
  while (toSegments[0] === "..") {
5934
6002
  toSegments.shift();
@@ -5967,18 +6035,19 @@ export {
5967
6035
  invariant as d,
5968
6036
  createPath as e,
5969
6037
  firstValueFrom as f,
5970
- getPathContributingMatches as g,
6038
+ getResolveToMatches as g,
5971
6039
  getDefaultExportFromCjs as h,
5972
6040
  innerFrom as i,
5973
6041
  joinPaths as j,
5974
6042
  of as k,
5975
6043
  from as l,
5976
- __spreadArray as m,
5977
- __read as n,
6044
+ matchPath as m,
6045
+ __spreadArray as n,
5978
6046
  operate as o,
5979
- arrRemove as p,
5980
- isScheduler as q,
6047
+ __read as p,
6048
+ arrRemove as q,
5981
6049
  resolveTo as r,
5982
6050
  stripBasename as s,
6051
+ isScheduler as t,
5983
6052
  warning as w
5984
6053
  };
@@ -1,3 +0,0 @@
1
- import { FrameworkConfigurator } from '@equinor/fusion-framework';
2
- export declare const configure: (config: FrameworkConfigurator) => Promise<void>;
3
- export default configure;
@@ -1,3 +0,0 @@
1
- import { FrameworkConfigurator } from '@equinor/fusion-framework';
2
- export declare const configure: (config: FrameworkConfigurator) => Promise<void>;
3
- export default configure;