@forsakringskassan/docs-generator 2.28.7 → 2.28.9

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.
@@ -26023,13 +26023,13 @@ class I18n extends EventEmitter {
26023
26023
  dir(lng) {
26024
26024
  if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);
26025
26025
  if (!lng) return 'rtl';
26026
- if (Intl.Locale) {
26026
+ try {
26027
26027
  const l = new Intl.Locale(lng);
26028
26028
  if (l && l.getTextInfo) {
26029
26029
  const ti = l.getTextInfo();
26030
26030
  if (ti && ti.direction) return ti.direction;
26031
26031
  }
26032
- }
26032
+ } catch (e) {}
26033
26033
  const rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];
26034
26034
  const languageUtils = this.services?.languageUtils || new LanguageUtil(get$1());
26035
26035
  if (lng.toLowerCase().indexOf('-latn') > 1) return 'ltr';
@@ -56131,4 +56131,4 @@ var srcExports = requireSrc();
56131
56131
  var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
56132
56132
 
56133
56133
  export { HighlightJS as H, MarkdownIt as M, createTwoFilesPatch as a, deflist_plugin as b, commonjsRequire as c, dedent as d, closest as e, distance as f, globSync as g, fm as h, isCI as i, glob as j, moduleImporter as k, cliProgress as l, minimatch as m, createInstance as n, fse as o, tinylr as t, watch$1 as w };
56134
- //# sourceMappingURL=vendor-D-BtdwMT.mjs.map
56134
+ //# sourceMappingURL=vendor-B8uiqaoK.mjs.map