generaltranslation 8.2.6 → 8.2.7

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 (162) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/ApiError-4zIP-twr.cjs +24 -0
  3. package/dist/ApiError-4zIP-twr.cjs.map +1 -0
  4. package/dist/ApiError-Bv7vlzyQ.mjs +19 -0
  5. package/dist/ApiError-Bv7vlzyQ.mjs.map +1 -0
  6. package/dist/errors.cjs +3 -0
  7. package/dist/errors.d.cts +11 -0
  8. package/dist/errors.d.mts +11 -0
  9. package/dist/errors.mjs +2 -0
  10. package/dist/id-CPbVYREY.mjs +74 -0
  11. package/dist/id-CPbVYREY.mjs.map +1 -0
  12. package/dist/id-VXBgyXu2.cjs +89 -0
  13. package/dist/id-VXBgyXu2.cjs.map +1 -0
  14. package/dist/id.cjs +5 -0
  15. package/dist/{id/hashSource.d.ts → id.d.cts} +20 -5
  16. package/dist/id.d.mts +40 -0
  17. package/dist/id.mjs +2 -0
  18. package/dist/index.cjs +3354 -0
  19. package/dist/index.cjs.map +1 -0
  20. package/dist/index.d.cts +1157 -0
  21. package/dist/index.d.mts +1157 -0
  22. package/dist/index.mjs +3305 -0
  23. package/dist/index.mjs.map +1 -0
  24. package/dist/internal-CTeI8uLd.mjs +774 -0
  25. package/dist/internal-CTeI8uLd.mjs.map +1 -0
  26. package/dist/internal-PCKq4YMW.cjs +1012 -0
  27. package/dist/internal-PCKq4YMW.cjs.map +1 -0
  28. package/dist/internal.cjs +43 -0
  29. package/dist/{internal.d.ts → internal.d.cts} +62 -114
  30. package/dist/internal.d.mts +242 -0
  31. package/dist/internal.mjs +3 -0
  32. package/dist/sha2-DKowBr6H.cjs +747 -0
  33. package/dist/sha2-DKowBr6H.cjs.map +1 -0
  34. package/dist/stableStringify-DgDlE_pD.mjs +53 -0
  35. package/dist/stableStringify-DgDlE_pD.mjs.map +1 -0
  36. package/dist/types-D2fTTTvZ.d.cts +737 -0
  37. package/dist/types-fUW4_Ole.d.mts +737 -0
  38. package/dist/types.cjs +17 -0
  39. package/dist/types.cjs.map +1 -0
  40. package/dist/types.d.cts +2 -0
  41. package/dist/types.d.mts +2 -0
  42. package/dist/types.mjs +16 -0
  43. package/dist/types.mjs.map +1 -0
  44. package/package.json +52 -32
  45. package/dist/backwards-compatability/dataConversion.d.ts +0 -23
  46. package/dist/backwards-compatability/oldHashJsxChildren.d.ts +0 -23
  47. package/dist/backwards-compatability/oldTypes.d.ts +0 -21
  48. package/dist/backwards-compatability/typeChecking.d.ts +0 -21
  49. package/dist/cache/IntlCache.d.ts +0 -26
  50. package/dist/cache/types.d.ts +0 -32
  51. package/dist/derive/condenseVars.d.ts +0 -7
  52. package/dist/derive/declareVar.d.ts +0 -26
  53. package/dist/derive/decodeVars.d.ts +0 -9
  54. package/dist/derive/derive.d.ts +0 -38
  55. package/dist/derive/extractVars.d.ts +0 -9
  56. package/dist/derive/index.d.ts +0 -7
  57. package/dist/derive/indexVars.d.ts +0 -6
  58. package/dist/derive/utils/constants.d.ts +0 -2
  59. package/dist/derive/utils/regex.d.ts +0 -2
  60. package/dist/derive/utils/sanitizeVar.d.ts +0 -12
  61. package/dist/derive/utils/traverseHelpers.d.ts +0 -4
  62. package/dist/derive/utils/traverseIcu.d.ts +0 -20
  63. package/dist/derive/utils/types.d.ts +0 -23
  64. package/dist/errors/ApiError.d.ts +0 -7
  65. package/dist/errors/formattingErrors.d.ts +0 -1
  66. package/dist/errors.cjs.min.cjs +0 -2
  67. package/dist/errors.cjs.min.cjs.map +0 -1
  68. package/dist/errors.d.ts +0 -9
  69. package/dist/errors.esm.min.mjs +0 -2
  70. package/dist/errors.esm.min.mjs.map +0 -1
  71. package/dist/formatting/custom-formats/CutoffFormat/CutoffFormat.d.ts +0 -59
  72. package/dist/formatting/custom-formats/CutoffFormat/constants.d.ts +0 -4
  73. package/dist/formatting/custom-formats/CutoffFormat/types.d.ts +0 -48
  74. package/dist/formatting/format.d.ts +0 -1
  75. package/dist/id/hashTemplate.d.ts +0 -4
  76. package/dist/id/types.d.ts +0 -7
  77. package/dist/id.cjs.min.cjs +0 -2
  78. package/dist/id.cjs.min.cjs.map +0 -1
  79. package/dist/id.d.ts +0 -86
  80. package/dist/id.esm.min.mjs +0 -2
  81. package/dist/id.esm.min.mjs.map +0 -1
  82. package/dist/index.cjs.min.cjs +0 -2
  83. package/dist/index.cjs.min.cjs.map +0 -1
  84. package/dist/index.d.ts +0 -1627
  85. package/dist/index.esm.min.mjs +0 -2
  86. package/dist/index.esm.min.mjs.map +0 -1
  87. package/dist/internal.cjs.min.cjs +0 -2
  88. package/dist/internal.cjs.min.cjs.map +0 -1
  89. package/dist/internal.esm.min.mjs +0 -2
  90. package/dist/internal.esm.min.mjs.map +0 -1
  91. package/dist/locales/customLocaleMapping.d.ts +0 -11
  92. package/dist/locales/determineLocale.d.ts +0 -1
  93. package/dist/locales/getLocaleDirection.d.ts +0 -1
  94. package/dist/locales/getLocaleEmoji.d.ts +0 -2
  95. package/dist/locales/getLocaleName.d.ts +0 -1
  96. package/dist/locales/getLocaleProperties.d.ts +0 -32
  97. package/dist/locales/getPluralForm.d.ts +0 -9
  98. package/dist/locales/getRegionProperties.d.ts +0 -7
  99. package/dist/locales/isSameDialect.d.ts +0 -1
  100. package/dist/locales/isSameLanguage.d.ts +0 -1
  101. package/dist/locales/isSupersetLocale.d.ts +0 -1
  102. package/dist/locales/isValidLocale.d.ts +0 -1
  103. package/dist/locales/requiresTranslation.d.ts +0 -1
  104. package/dist/locales/resolveAliasLocale.d.ts +0 -8
  105. package/dist/locales/resolveCanonicalLocale.d.ts +0 -8
  106. package/dist/logging/errors.d.ts +0 -10
  107. package/dist/logging/logger.d.ts +0 -117
  108. package/dist/logging/warnings.d.ts +0 -2
  109. package/dist/projects/getProjectData.d.ts +0 -1
  110. package/dist/settings/plurals.d.ts +0 -3
  111. package/dist/settings/settings.d.ts +0 -2
  112. package/dist/settings/settingsUrls.d.ts +0 -3
  113. package/dist/translate/api.d.ts +0 -1
  114. package/dist/translate/awaitJobs.d.ts +0 -19
  115. package/dist/translate/checkJobStatus.d.ts +0 -8
  116. package/dist/translate/createBranch.d.ts +0 -10
  117. package/dist/translate/createTag.d.ts +0 -19
  118. package/dist/translate/downloadFileBatch.d.ts +0 -1
  119. package/dist/translate/enqueueFiles.d.ts +0 -8
  120. package/dist/translate/getOrphanedFiles.d.ts +0 -8
  121. package/dist/translate/processFileMoves.d.ts +0 -25
  122. package/dist/translate/publishFiles.d.ts +0 -17
  123. package/dist/translate/queryBranchData.d.ts +0 -3
  124. package/dist/translate/queryFileData.d.ts +0 -42
  125. package/dist/translate/querySourceFile.d.ts +0 -1
  126. package/dist/translate/setupProject.d.ts +0 -11
  127. package/dist/translate/submitUserEditDiffs.d.ts +0 -12
  128. package/dist/translate/translateMany.d.ts +0 -1
  129. package/dist/translate/uploadSourceFiles.d.ts +0 -1
  130. package/dist/translate/uploadTranslations.d.ts +0 -1
  131. package/dist/translate/utils/apiRequest.d.ts +0 -1
  132. package/dist/translate/utils/batch.d.ts +0 -52
  133. package/dist/translate/utils/fetchWithTimeout.d.ts +0 -1
  134. package/dist/translate/utils/generateRequestHeaders.d.ts +0 -2
  135. package/dist/translate/utils/handleFetchError.d.ts +0 -1
  136. package/dist/translate/utils/validateResponse.d.ts +0 -1
  137. package/dist/types-dir/api/branch.d.ts +0 -10
  138. package/dist/types-dir/api/checkFileTranslations.d.ts +0 -37
  139. package/dist/types-dir/api/downloadFile.d.ts +0 -3
  140. package/dist/types-dir/api/downloadFileBatch.d.ts +0 -34
  141. package/dist/types-dir/api/enqueueEntries.d.ts +0 -21
  142. package/dist/types-dir/api/enqueueFiles.d.ts +0 -56
  143. package/dist/types-dir/api/entry.d.ts +0 -36
  144. package/dist/types-dir/api/fetchTranslations.d.ts +0 -11
  145. package/dist/types-dir/api/file.d.ts +0 -54
  146. package/dist/types-dir/api/project.d.ts +0 -7
  147. package/dist/types-dir/api/translate.d.ts +0 -34
  148. package/dist/types-dir/api/translateMany.d.ts +0 -5
  149. package/dist/types-dir/api/translationStatus.d.ts +0 -9
  150. package/dist/types-dir/api/uploadFiles.d.ts +0 -43
  151. package/dist/types-dir/jsx/content.d.ts +0 -61
  152. package/dist/types-dir/jsx/variables.d.ts +0 -9
  153. package/dist/types-dir/transformations.d.ts +0 -8
  154. package/dist/types.cjs.min.cjs +0 -2
  155. package/dist/types.cjs.min.cjs.map +0 -1
  156. package/dist/types.d.ts +0 -652
  157. package/dist/types.esm.min.mjs +0 -2
  158. package/dist/types.esm.min.mjs.map +0 -1
  159. package/dist/utils/base64.d.ts +0 -2
  160. package/dist/utils/isVariable.d.ts +0 -2
  161. package/dist/utils/minify.d.ts +0 -2
  162. package/dist/utils/stableStringify.d.ts +0 -1
@@ -1,2 +0,0 @@
1
- import{sha256 as e}from"@noble/hashes/sha2.js";import{bytesToHex as t,utf8ToBytes as r}from"@noble/hashes/utils.js";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,h=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var d={};for(var v in n)d[v]="access"===v?{}:n[v];for(var v in n.access)d.access[v]=n.access[v];d.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[p])("accessor"===c?{get:h.get,set:h.set}:h[u],d);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(h.get=s),(s=a(m.set))&&(h.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===c?o.unshift(s):h[u]=s)}l&&Object.defineProperty(l,n.name,h),f=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function h(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function v(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function E(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function _(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function T(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function L(e){return this instanceof L?(this.v=e,this):new L(e)}function A(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof L?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function N(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:L(e[n](t)),done:!1}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=E(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},P=function(e){return P=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},P(e)};function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=P(e),n=0;n<r.length;n++)"default"!==r[n]&&m(t,e,r[n]);return C(t,e),t}function H(e){return e&&e.__esModule?e:{default:e}}function M(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function B(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function O(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var U="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function G(e){function t(t){e.error=e.hasError?new U(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function D(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e}):e}var F,j,x,k,K,V,X={__extends:o,__assign:i,__rest:a,__decorate:s,__param:c,__esDecorate:u,__runInitializers:l,__propKey:h,__setFunctionName:f,__metadata:p,__awaiter:d,__generator:v,__createBinding:m,__exportStar:g,__values:E,__read:y,__spread:b,__spreadArrays:_,__spreadArray:T,__await:L,__asyncGenerator:A,__asyncDelegator:N,__asyncValues:S,__makeTemplateObject:I,__importStar:w,__importDefault:H,__classPrivateFieldGet:M,__classPrivateFieldSet:B,__classPrivateFieldIn:R,__addDisposableResource:O,__disposeResources:G,__rewriteRelativeImportExtension:D},z=Object.freeze({__proto__:null,__addDisposableResource:O,get __assign(){return i},__asyncDelegator:N,__asyncGenerator:A,__asyncValues:S,__await:L,__awaiter:d,__classPrivateFieldGet:M,__classPrivateFieldIn:R,__classPrivateFieldSet:B,__createBinding:m,__decorate:s,__disposeResources:G,__esDecorate:u,__exportStar:g,__extends:o,__generator:v,__importDefault:H,__importStar:w,__makeTemplateObject:I,__metadata:p,__param:c,__propKey:h,__read:y,__rest:a,__rewriteRelativeImportExtension:D,__runInitializers:l,__setFunctionName:f,__spread:b,__spreadArray:T,__spreadArrays:_,__values:E,default:X}),Y="en",W=6e4,Z="ellipsis",J="DEFAULT_TERMINATOR_KEY",q={ellipsis:(F={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},F[J]={terminator:"…",separator:void 0},F),none:(j={},j[J]={terminator:void 0,separator:void 0},j)},Q=function(){function e(e,t){var r,n,o,i,a,s,c,u,l;void 0===t&&(t={});try{var h=e?Array.isArray(e)?e.map(function(e){return String(e)}):[String(e)]:[Y],f=Intl.getCanonicalLocales(h);this.locale=f.length?f[0]:Y}catch(e){this.locale=Y}if(!q[null!==(r=t.style)&&void 0!==r?r:Z])throw new Error(function(e){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(e,".")}(null!==(n=t.style)&&void 0!==n?n:Z));if(void 0!==t.maxChars){u=null!==(o=t.style)&&void 0!==o?o:Z;var p=new Intl.Locale(this.locale).language;l=q[u][p]||q[u][J]}var d=null!==(i=t.terminator)&&void 0!==i?i:null==l?void 0:l.terminator,v=null!=d?null!==(a=t.separator)&&void 0!==a?a:null==l?void 0:l.separator:void 0;this.additionLength=(null!==(s=null==d?void 0:d.length)&&void 0!==s?s:0)+(null!==(c=null==v?void 0:v.length)&&void 0!==c?c:0),void 0!==t.maxChars&&Math.abs(t.maxChars)<this.additionLength&&(d=void 0,v=void 0),this.options={maxChars:t.maxChars,style:u,terminator:d,separator:v}}return e.prototype.format=function(e){return this.formatToParts(e).join("")},e.prototype.formatToParts=function(e){var t=this.options,r=t.maxChars,n=t.terminator,o=t.separator,i=void 0===r||Math.abs(r)>=e.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==i&&i>-1?e.slice(0,i):e.slice(i);return null==r||null==i||0===i||null==n||e.length<=Math.abs(r)?[a]:i>0?null!=o?[a,o,n]:[a,n]:null!=o?[n,o,a]:[n,a]},e.prototype.resolvedOptions=function(){return this.options},e}(),$={Collator:Intl.Collator,DateTimeFormat:Intl.DateTimeFormat,DisplayNames:Intl.DisplayNames,ListFormat:Intl.ListFormat,Locale:Intl.Locale,NumberFormat:Intl.NumberFormat,PluralRules:Intl.PluralRules,RelativeTimeFormat:Intl.RelativeTimeFormat,Segmenter:Intl.Segmenter,CutoffFormat:Q},ee=function(){function e(){this.cache={}}return e.prototype._generateKey=function(e,t){void 0===t&&(t={});var r=e?Array.isArray(e)?e.map(function(e){return String(e)}).join(","):String(e):"undefined",n=t?JSON.stringify(t,Object.keys(t).sort()):"{}";return"".concat(r,":").concat(n)},e.prototype.get=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=n[0],a=void 0===i?Y:i,s=n[1],c=void 0===s?{}:s,u=this._generateKey(a,c),l=null===(r=this.cache[e])||void 0===r?void 0:r[u];return void 0===l&&(l=new((t=$[e]).bind.apply(t,T([void 0],n,!1))),this.cache[e]||(this.cache[e]={}),this.cache[e][u]=l),l},e}(),te=new ee,re="https://api2.gtx.dev";function ne(e){if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64");for(var t=(new TextEncoder).encode(e),r="",n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}function oe(e){if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");for(var t=atob(e),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return(new TextDecoder).decode(r)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(x||(x={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(k||(k={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(K||(K={}));try{"a"===(null===(V=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===V?void 0:V[0])}catch(e){0}function ie(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ae,se={};function ce(){if(ae)return se;var e,t;return ae=1,Object.defineProperty(se,"__esModule",{value:!0}),se.SKELETON_TYPE=se.TYPE=void 0,se.isLiteralElement=function(t){return t.type===e.literal},se.isArgumentElement=function(t){return t.type===e.argument},se.isNumberElement=function(t){return t.type===e.number},se.isDateElement=function(t){return t.type===e.date},se.isTimeElement=function(t){return t.type===e.time},se.isSelectElement=function(t){return t.type===e.select},se.isPluralElement=function(t){return t.type===e.plural},se.isPoundElement=function(t){return t.type===e.pound},se.isTagElement=function(t){return t.type===e.tag},se.isNumberSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.number)},se.isDateTimeSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.dateTime)},se.createLiteralElement=function(t){return{type:e.literal,value:t}},se.createNumberElement=function(t,r){return{type:e.number,value:t,style:r}},function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(e||(se.TYPE=e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(t||(se.SKELETON_TYPE=t={})),se}ce();var ue,le={},he=ie(z);function fe(e){if(void 0!==e){if(null===e)return"null";if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e)){for(var t="[",r=0;r<e.length;r++)r&&(t+=","),t+=fe(e[r])||"null";return t+"]"}for(var n="",o=0,i=Object.keys(e).sort();o<i.length;o++){var a=i[o],s=fe(e[a]);s&&(n&&(n+=","),n+=JSON.stringify(a)+":"+s)}return"{"+n+"}"}}function pe(e){var t;return null!==(t=fe(e))&&void 0!==t?t:""}!function(){if(ue)return le;ue=1,Object.defineProperty(le,"__esModule",{value:!0}),le.printAST=r,le.doPrintAST=n,le.printDateTimeSkeleton=a;var e=he,t=ce();function r(e){return n(e,!1)}function n(s,c){var u=s.map(function(u,l){return(0,t.isLiteralElement)(u)?function(e,t,r,n){var i=e.value,a=i;r||"'"!==a[0]||(a="''".concat(a.slice(1)));n||"'"!==a[a.length-1]||(a="".concat(a.slice(0,a.length-1),"''"));return a=o(a),t?a.replace("#","'#'"):a}(u,c,0===l,l===s.length-1):(0,t.isArgumentElement)(u)?function(e){var t=e.value;return"{".concat(t,"}")}(u):(0,t.isDateElement)(u)||(0,t.isTimeElement)(u)||(0,t.isNumberElement)(u)?function(e){return"{".concat(e.value,", ").concat(t.TYPE[e.type]).concat(e.style?", ".concat((r=e.style,"string"==typeof r?o(r):r.type===t.SKELETON_TYPE.dateTime?"::".concat(a(r)):"::".concat(r.tokens.map(i).join(" ")))):"","}");var r}(u):(0,t.isPluralElement)(u)?function(t){var r="cardinal"===t.pluralType?"plural":"selectordinal",o=[t.value,r,e.__spreadArray([t.offset?"offset:".concat(t.offset):""],Object.keys(t.options).map(function(e){return"".concat(e,"{").concat(n(t.options[e].value,!0),"}")}),!0).filter(Boolean).join(" ")].join(",");return"{".concat(o,"}")}(u):(0,t.isSelectElement)(u)?function(e){var t=[e.value,"select",Object.keys(e.options).map(function(t){return"".concat(t,"{").concat(n(e.options[t].value,!1),"}")}).join(" ")].join(",");return"{".concat(t,"}")}(u):(0,t.isPoundElement)(u)?"#":(0,t.isTagElement)(u)?function(e){return"<".concat(e.value,">").concat(r(e.children),"</").concat(e.value,">")}(u):void 0});return u.join("")}function o(e){return e.replace(/([{}](?:[\s\S]*[{}])?)/,"'$1'")}function i(e){var t=e.stem,r=e.options;return 0===r.length?t:"".concat(t).concat(r.map(function(e){return"/".concat(e)}).join(""))}function a(e){return e.pattern}}();var de=["Cham","Jamo","Kawi","Lisu","Toto","Thai"],ve=function(e,t){(null==t?void 0:t[e])&&"object"==typeof t[e]&&"code"in t[e]&&t[e].code&&(e=t[e].code);try{var r=te.get("Locale",e),n=r.language,o=r.region,i=r.script;if(e.split("-").length!==(a=1,o&&(a+=1),i&&(a+=1),a))return!1;if(te.get("DisplayNames",[Y],{type:"language"}).of(n)===n&&!function(e){return e>="qaa"&&e<="qtz"}(n))return!1;if(o)if(te.get("DisplayNames",[Y],{type:"region"}).of(o)===o)return!1;if(i)if(te.get("DisplayNames",[Y],{type:"script"}).of(i)===i&&!de.includes(i))return!1;return!0}catch(e){return!1}var a},me=function(e){try{return Intl.getCanonicalLocales(e)[0]}catch(t){return e}};function ge(e,t){var r=te.get("Locale",e),n=r.language,o=r.region,i=r.script,a=te.get("Locale",t),s=a.language,c=a.region,u=a.script;return n===s&&((!o||!c||o===c)&&(!i||!u||i===u))}function Ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{for(var r=e.flat().map(me),n=0;n<r.length;n++)for(var o=n+1;o<r.length;o++)if(!ge(r[n],r[o]))return!1;return!0}catch(e){return console.error(e),!1}}function ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{var r=e.flat().map(function(e){return te.get("Locale",e).language});return r.every(function(e){return e===r[0]})}catch(e){return console.error(e),!1}}function be(e,t,r,n){return!(!ve(e,n)||!ve(t,n)||r&&r.some(function(e){return!ve(e,n)}))&&(!Ee(e,t)&&!(r&&!r.some(function(e){return ye(t,e)})))}var _e=function(e,t,r){if(null==e?void 0:e[t])return"string"==typeof e[t]?"name"===r?e[t]:void 0:e[t][r]},Te=function(e,t){return!!((null==t?void 0:t[e])&&"object"==typeof t[e]&&"code"in t[e]&&t[e].code&&ve(t[e].code))};function Le(e,t){var r=e;t&&Te(e,t)&&(e=t[e].code);try{var n=me(e),o=te.get("Locale",n),i=o.language,a=o.region;if(t)for(var s=0,c=[r,e,n,i];s<c.length;s++){var u=_e(t,c[s],"emoji");if(u)return u}if(a&&Ie[a])return Ie[a];var l=o.maximize(),h=l.region||"";return Se[l.language]||Ie[h]||Ne}catch(e){return Ne}}var Ae="🌍",Ne=Ae,Se={ca:Ae,eu:Ae,ku:Ae,bo:"🌏",ug:"🌏",gd:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",cy:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",gv:"🇮🇲",grc:"🏺"},Ie={AF:"🇦🇫",AX:"🇦🇽",AL:"🇦🇱",DZ:"🇩🇿",AS:"🇦🇸",AD:"🇦🇩",AO:"🇦🇴",AI:"🇦🇮",AQ:"🇦🇶",AG:"🇦🇬",AR:"🇦🇷",AM:"🇦🇲",AW:"🇦🇼",AU:"🇦🇺",AT:"🇦🇹",AZ:"🇦🇿",BS:"🇧🇸",BH:"🇧🇭",BD:"🇧🇩",BB:"🇧🇧",BY:"🇧🇾",BE:"🇧🇪",BZ:"🇧🇿",BJ:"🇧🇯",BM:"🇧🇲",BT:"🇧🇹",BO:"🇧🇴",BQ:"🇧🇶",BA:"🇧🇦",BW:"🇧🇼",BV:"🇧🇻",BR:"🇧🇷",IO:"🇮🇴",BN:"🇧🇳",BG:"🇧🇬",BF:"🇧🇫",BI:"🇧🇮",CV:"🇨🇻",KH:"🇰🇭",CM:"🇨🇲",CA:"🇨🇦",KY:"🇰🇾",CF:"🇨🇫",TD:"🇹🇩",CL:"🇨🇱",CN:"🇨🇳",CX:"🇨🇽",CC:"🇨🇨",CO:"🇨🇴",KM:"🇰🇲",CD:"🇨🇩",CG:"🇨🇬",CK:"🇨🇰",CR:"🇨🇷",CI:"🇨🇮",HR:"🇭🇷",CU:"🇨🇺",CW:"🇨🇼",CY:"🇨🇾",CZ:"🇨🇿",DK:"🇩🇰",DJ:"🇩🇯",DM:"🇩🇲",DO:"🇩🇴",EC:"🇪🇨",EG:"🇪🇬",SV:"🇸🇻",GQ:"🇬🇶",ER:"🇪🇷",EE:"🇪🇪",SZ:"🇸🇿",ET:"🇪🇹",FK:"🇫🇰",FO:"🇫🇴",FJ:"🇫🇯",FI:"🇫🇮",FR:"🇫🇷",GF:"🇬🇫",PF:"🇵🇫",TF:"🇹🇫",GA:"🇬🇦",GM:"🇬🇲",GE:"🇬🇪",DE:"🇩🇪",GH:"🇬🇭",GI:"🇬🇮",GR:"🇬🇷",GL:"🇬🇱",GD:"🇬🇩",GP:"🇬🇵",GU:"🇬🇺",GT:"🇬🇹",GG:"🇬🇬",GN:"🇬🇳",GW:"🇬🇼",GY:"🇬🇾",HT:"🇭🇹",HM:"🇭🇲",VA:"🇻🇦",HN:"🇭🇳",HK:"🇭🇰",HU:"🇭🇺",IS:"🇮🇸",IN:"🇮🇳",ID:"🇮🇩",IR:"🇮🇷",IQ:"🇮🇶",IE:"🇮🇪",IM:"🇮🇲",IL:"🇮🇱",IT:"🇮🇹",JM:"🇯🇲",JP:"🇯🇵",JE:"🇯🇪",JO:"🇯🇴",KZ:"🇰🇿",KE:"🇰🇪",KI:"🇰🇮",KP:"🇰🇵",KR:"🇰🇷",KW:"🇰🇼",KG:"🇰🇬",LA:"🇱🇦",LV:"🇱🇻",LB:"🇱🇧",LS:"🇱🇸",LR:"🇱🇷",LY:"🇱🇾",LI:"🇱🇮",LT:"🇱🇹",LU:"🇱🇺",MO:"🇲🇴",MG:"🇲🇬",MW:"🇲🇼",MY:"🇲🇾",MV:"🇲🇻",ML:"🇲🇱",MT:"🇲🇹",MH:"🇲🇭",MQ:"🇲🇶",MR:"🇲🇷",MU:"🇲🇺",YT:"🇾🇹",MX:"🇲🇽",FM:"🇫🇲",MD:"🇲🇩",MC:"🇲🇨",MN:"🇲🇳",ME:"🇲🇪",MS:"🇲🇸",MA:"🇲🇦",MZ:"🇲🇿",MM:"🇲🇲",NA:"🇳🇦",NR:"🇳🇷",NP:"🇳🇵",NL:"🇳🇱",NC:"🇳🇨",NZ:"🇳🇿",NI:"🇳🇮",NE:"🇳🇪",NG:"🇳🇬",NU:"🇳🇺",NF:"🇳🇫",MK:"🇲🇰",MP:"🇲🇵",NO:"🇳🇴",OM:"🇴🇲",PK:"🇵🇰",PW:"🇵🇼",PS:"🇵🇸",PA:"🇵🇦",PG:"🇵🇬",PY:"🇵🇾",PE:"🇵🇪",PH:"🇵🇭",PN:"🇵🇳",PL:"🇵🇱",PT:"🇵🇹",PR:"🇵🇷",QA:"🇶🇦",RE:"🇷🇪",RO:"🇷🇴",RU:"🇷🇺",RW:"🇷🇼",BL:"🇧🇱",SH:"🇸🇭",KN:"🇰🇳",LC:"🇱🇨",MF:"🇲🇫",PM:"🇵🇲",VC:"🇻🇨",WS:"🇼🇸",SM:"🇸🇲",ST:"🇸🇹",SA:"🇸🇦",SN:"🇸🇳",RS:"🇷🇸",SC:"🇸🇨",SL:"🇸🇱",SG:"🇸🇬",SX:"🇸🇽",SK:"🇸🇰",SI:"🇸🇮",SB:"🇸🇧",SO:"🇸🇴",ZA:"🇿🇦",GS:"🇬🇸",SS:"🇸🇸",ES:"🇪🇸",LK:"🇱🇰",SD:"🇸🇩",SR:"🇸🇷",SJ:"🇸🇯",SE:"🇸🇪",CH:"🇨🇭",SY:"🇸🇾",TW:"🇹🇼",TJ:"🇹🇯",TZ:"🇹🇿",TH:"🇹🇭",TL:"🇹🇱",TG:"🇹🇬",TK:"🇹🇰",TO:"🇹🇴",TT:"🇹🇹",TN:"🇹🇳",TR:"🇹🇷",TM:"🇹🇲",TC:"🇹🇨",TV:"🇹🇻",UG:"🇺🇬",UA:"🇺🇦",AE:"🇦🇪",GB:"🇬🇧",US:"🇺🇸",UM:"🇺🇲",UY:"🇺🇾",UZ:"🇺🇿",VU:"🇻🇺",VE:"🇻🇪",VN:"🇻🇳",VG:"🇻🇬",VI:"🇻🇮",WF:"🇼🇫",EH:"🇪🇭",YE:"🇾🇪",ZM:"🇿🇲",ZW:"🇿🇼",EU:"🇪🇺",419:"🌎"};function Ce(e,t){if(t){for(var r={},n=0,o=e;n<o.length;n++){var a=t[o[n]];a&&("string"==typeof a?r.name||(r.name=a):a&&(r=i(i({},a),r)))}return r}}function Pe(e,t,r){void 0===t&&(t=Y);var n=e;r&&Te(e,r)&&(e=r[e].code),t||(t=Y);try{var o=me(e),i=te.get("Locale",e),a=Ce([n,e,o,G=i.language],r),s=i.region,c=i.maximize(),u=c.toString(),l=i.region||(null==a?void 0:a.regionCode)||c.region||"",h=i.script||(null==a?void 0:a.scriptCode)||c.script||"",f=i.minimize().toString(),p=[t,e,Y],d=[e,t,Y],v=te.get("DisplayNames",p,{type:"language"}),m=te.get("DisplayNames",d,{type:"language"}),g=null==a?void 0:a.name,E=(null==a?void 0:a.nativeName)||(null==a?void 0:a.name),y=g||v.of(e)||e,b=E||m.of(e)||e,_=(null==a?void 0:a.maximizedName)||g||v.of(u)||e,T=(null==a?void 0:a.nativeMaximizedName)||E||m.of(u)||e,L=(null==a?void 0:a.minimizedName)||g||v.of(f)||e,A=(null==a?void 0:a.nativeMinimizedName)||E||m.of(f)||e,N=(null==a?void 0:a.languageName)||g||v.of(G)||e,S=(null==a?void 0:a.nativeLanguageName)||E||m.of(G)||e,I=(null==a?void 0:a.nameWithRegionCode)||s?"".concat(N," (").concat(s,")"):y,C=(null==a?void 0:a.nativeNameWithRegionCode)||(s?"".concat(S," (").concat(s,")"):b)||I,P=te.get("DisplayNames",p,{type:"region"}),w=te.get("DisplayNames",d,{type:"region"}),H=(null==a?void 0:a.regionName)||(l?P.of(l):"")||"",M=(null==a?void 0:a.nativeRegionName)||(l?w.of(l):"")||"",B=te.get("DisplayNames",p,{type:"script"}),R=te.get("DisplayNames",d,{type:"script"});return{code:o,name:y,nativeName:b,maximizedCode:u,maximizedName:_,nativeMaximizedName:T,minimizedCode:f,minimizedName:L,nativeMinimizedName:A,languageCode:G,languageName:N,nativeLanguageName:S,nameWithRegionCode:I,nativeNameWithRegionCode:C,regionCode:l,regionName:H,nativeRegionName:M,scriptCode:h,scriptName:D=(null==a?void 0:a.scriptName)||(h?B.of(h):"")||"",nativeScriptName:F=(null==a?void 0:a.nativeScriptName)||(h?R.of(h):"")||"",emoji:(null==a?void 0:a.emoji)||Le(o,r)}}catch(t){var O=ve(e)?me(e):e,U=null==O?void 0:O.split("-"),G=(null==U?void 0:U[0])||O||"";l=U.length>2?null==U?void 0:U[2]:(null==U?void 0:U[1])||"",h=(null==U?void 0:U[3])||"";O=(null==(a=Ce([O,G],r))?void 0:a.code)||O;y=(null==a?void 0:a.name)||O,b=(null==a?void 0:a.nativeName)||y,u=(null==a?void 0:a.maximizedCode)||O,_=(null==a?void 0:a.maximizedName)||y,T=(null==a?void 0:a.nativeMaximizedName)||b,f=(null==a?void 0:a.minimizedCode)||O,L=(null==a?void 0:a.minimizedName)||y,A=(null==a?void 0:a.nativeMinimizedName)||b;G=(null==a?void 0:a.languageCode)||G;N=(null==a?void 0:a.languageName)||y,S=(null==a?void 0:a.nativeLanguageName)||b;l=(null==a?void 0:a.regionCode)||l;H=(null==a?void 0:a.regionName)||"",M=(null==a?void 0:a.nativeRegionName)||"";h=(null==a?void 0:a.scriptCode)||h;var D=(null==a?void 0:a.scriptName)||"",F=(null==a?void 0:a.nativeScriptName)||"";return{code:O,name:y,nativeName:b,maximizedCode:u,maximizedName:_,nativeMaximizedName:T,minimizedCode:f,minimizedName:L,nativeMinimizedName:A,languageCode:G,languageName:N,nativeLanguageName:S,nameWithRegionCode:I=(null==a?void 0:a.nameWithRegionCode)||(H?"".concat(N," (").concat(H,")"):y),nativeNameWithRegionCode:C=(null==a?void 0:a.nativeNameWithRegionCode)||(M?"".concat(S," (").concat(M,")"):b),regionCode:l,regionName:H,nativeRegionName:M,scriptCode:h,scriptName:D,nativeScriptName:F,emoji:(null==a?void 0:a.emoji)||Ne}}}function we(e,t,r){"string"==typeof e&&(e=[e]),e=e.filter(function(e){return ve(e,r)}).map(me),t=t.filter(function(e){return ve(e,r)}).map(me);for(var n=function(e){var r=t.filter(function(t){return ye(e,t)}),n=function(e){for(var t=e.locale,n=e.languageCode,o=e.minimizedCode,i=e.regionCode,a=e.scriptCode,s=0,c=[t,"".concat(n,"-").concat(i),"".concat(n,"-").concat(a),o];s<c.length;s++){var u=c[s];if(r.includes(u))return u}return null},o=Pe(e),s=o.languageCode,c=a(o,["languageCode"]),u=n(i({locale:e,languageCode:s},c))||n(i({locale:s},Pe(s)));if(u)return{value:u}},o=0,s=e;o<s.length;o++){var c=n(s[o]);if("object"==typeof c)return c.value}}function He(e,t){var r=t&&t.cache?t.cache:xe,n=t&&t.serializer?t.serializer:Fe;return(t&&t.strategy?t.strategy:Oe)(e,{cache:r,serializer:n})}function Me(e,t,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function Be(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function Re(e,t,r,n,o){return r.bind(t,e,n,o)}function Oe(e,t){return Re(e,this,1===e.length?Me:Be,t.cache.create(),t.serializer)}var Ue,Ge,De,Fe=function(){return JSON.stringify(arguments)},je=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),xe={create:function(){return new je}},ke={variadic:function(e,t){return Re(e,this,Be,t.cache.create(),t.serializer)}};function Ke(e){return e.type===Ge.literal}function Ve(e){return e.type===Ge.argument}function Xe(e){return e.type===Ge.number}function ze(e){return e.type===Ge.date}function Ye(e){return e.type===Ge.time}function We(e){return e.type===Ge.select}function Ze(e){return e.type===Ge.plural}function Je(e){return e.type===Ge.pound}function qe(e){return e.type===Ge.tag}function Qe(e){return!(!e||"object"!=typeof e||e.type!==De.number)}function $e(e){return!(!e||"object"!=typeof e||e.type!==De.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Ue||(Ue={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Ge||(Ge={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(De||(De={}));var et=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,tt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function rt(e){var t={};return e.replace(tt,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var nt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ot(e){return e.replace(/^(.*?)-/,"")}var it=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,at=/^(@+)?(\+|#+)?[rs]?$/g,st=/(\*)(0+)|(#+)(0+)|(0+)/g,ct=/^(0+)$/;function ut(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(at,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function lt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ht(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ct.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ft(e){var t=lt(e);return t||{}}function pt(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ot(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=i(i(i({},t),{notation:"scientific"}),o.options.reduce(function(e,t){return i(i({},e),ft(t))},{}));continue;case"engineering":t=i(i(i({},t),{notation:"engineering"}),o.options.reduce(function(e,t){return i(i({},e),ft(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(st,function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ct.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(it.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(it,function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var a=o.options[0];"w"===a?t=i(i({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=i(i({},t),ut(a)))}else if(at.test(o.stem))t=i(i({},t),ut(o.stem));else{var s=lt(o.stem);s&&(t=i(i({},t),s));var c=ht(o.stem);c&&(t=i(i({},t),c))}}return t}var dt,vt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function mt(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(vt[r||""]||vt[n||""]||vt["".concat(n,"-001")]||vt["001"])[0]}var gt=new RegExp("^".concat(et.source,"*")),Et=new RegExp("".concat(et.source,"*$"));function yt(e,t){return{start:e,end:t}}var bt=!!String.prototype.startsWith&&"_a".startsWith("a",1),_t=!!String.fromCodePoint,Tt=!!Object.fromEntries,Lt=!!String.prototype.codePointAt,At=!!String.prototype.trimStart,Nt=!!String.prototype.trimEnd,St=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},It=!0;try{It="a"===(null===(dt=Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===dt?void 0:dt[0])}catch(e){It=!1}var Ct,Pt=bt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},wt=_t?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ht=Tt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},Mt=Lt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Bt=At?function(e){return e.trimStart()}:function(e){return e.replace(gt,"")},Rt=Nt?function(e){return e.trimEnd()}:function(e){return e.replace(Et,"")};function Ot(e,t){return new RegExp(e,t)}if(It){var Ut=Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ct=function(e,t){var r;return Ut.lastIndex=t,null!==(r=Ut.exec(e)[1])&&void 0!==r?r:""}}else Ct=function(e,t){for(var r=[];;){var n=Mt(e,t);if(void 0===n||xt(n)||kt(n))break;r.push(n),t+=n>=65536?2:1}return wt.apply(void 0,r)};var Gt,Dt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Ue.UNMATCHED_CLOSING_TAG,yt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ft(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Ge.pound,location:yt(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ge.literal,value:"<".concat(n,"/>"),location:yt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ft(this.char()))return this.error(Ue.INVALID_TAG,yt(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(Ue.UNMATCHED_CLOSING_TAG,yt(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ge.tag,value:n,children:i,location:yt(r,this.clonePosition())},err:null}:this.error(Ue.INVALID_TAG,yt(a,this.clonePosition())))}return this.error(Ue.UNCLOSED_TAG,yt(r,this.clonePosition()))}return this.error(Ue.INVALID_TAG,yt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&jt(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=yt(r,this.clonePosition());return{val:{type:Ge.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ft(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return wt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),wt(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ue.EXPECT_ARGUMENT_CLOSING_BRACE,yt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ue.EMPTY_ARGUMENT,yt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ue.MALFORMED_ARGUMENT,yt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ue.EXPECT_ARGUMENT_CLOSING_BRACE,yt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ge.argument,value:n,location:yt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ue.EXPECT_ARGUMENT_CLOSING_BRACE,yt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Ue.MALFORMED_ARGUMENT,yt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ct(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:yt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(Ue.EXPECT_ARGUMENT_TYPE,yt(a,c));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((E=this.parseSimpleArgStyleIfPossible()).err)return E;if(0===(d=Rt(E.val)).length)return this.error(Ue.EXPECT_ARGUMENT_STYLE,yt(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:yt(l,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var h=yt(n,this.clonePosition());if(u&&Pt(null==u?void 0:u.style,"::",0)){var f=Bt(u.style.slice(2));if("number"===s)return(E=this.parseNumberSkeletonFromString(f,u.styleLocation)).err?E:{val:{type:Ge.number,value:r,location:h,style:E.val},err:null};if(0===f.length)return this.error(Ue.EXPECT_DATE_TIME_SKELETON,h);var p=f;this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=mt(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var d={type:De.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?rt(p):{}};return{val:{type:"date"===s?Ge.date:Ge.time,value:r,location:h,style:d},err:null}}return{val:{type:"number"===s?Ge.number:"date"===s?Ge.date:Ge.time,value:r,location:h,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ue.EXPECT_SELECT_ARGUMENT_OPTIONS,yt(v,i({},v)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,yt(this.clonePosition(),this.clonePosition()));var E;if(this.bumpSpace(),(E=this.tryParseDecimalInteger(Ue.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ue.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return E;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=E.val}var y,b=this.tryParsePluralOrSelectOptions(e,s,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(n)).err)return y;var _=yt(n,this.clonePosition());return"select"===s?{val:{type:Ge.select,value:r,options:Ht(b.val),location:_},err:null}:{val:{type:Ge.plural,value:r,options:Ht(b.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(Ue.INVALID_ARGUMENT_TYPE,yt(a,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Ue.EXPECT_ARGUMENT_CLOSING_BRACE,yt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ue.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,yt(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(nt).filter(function(e){return e.length>0});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(Ue.INVALID_NUMBER_SKELETON,t)}return{val:{type:De.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?pt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(Ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ue.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=yt(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?Ue.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ue.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ue.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ue.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,yt(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([c,{value:p.val,location:yt(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?Ue.EXPECT_SELECT_ARGUMENT_SELECTOR:Ue.EXPECT_PLURAL_ARGUMENT_SELECTOR,yt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Ue.MISSING_OTHER_CLAUSE,yt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=yt(n,this.clonePosition());return o?St(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Mt(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Pt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&xt(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Ft(e){return e>=97&&e<=122||e>=65&&e<=90}function jt(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function xt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function kt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Kt(e){e.forEach(function(e){if(delete e.location,We(e)||Ze(e))for(var t in e.options)delete e.options[t].location,Kt(e.options[t].value);else Xe(e)&&Qe(e.style)||(ze(e)||Ye(e))&&$e(e.style)?delete e.style.location:qe(e)&&Kt(e.children)})}function Vt(e,t){void 0===t&&(t={}),t=i({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Dt(e,t).parse();if(r.err){var n=SyntaxError(Ue[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Kt(r.val),r.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Gt||(Gt={}));var Xt,zt=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return o(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Yt=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Gt.INVALID_VALUE,o)||this}return o(t,e),t}(zt),Wt=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Gt.INVALID_VALUE,n)||this}return o(t,e),t}(zt),Zt=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Gt.MISSING_VALUE,r)||this}return o(t,e),t}(zt);function Jt(e){return"function"==typeof e}function qt(e,t,r,n,o,i,a){if(1===e.length&&Ke(e[0]))return[{type:Xt.literal,value:e[0].value}];for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Ke(l))s.push({type:Xt.literal,value:l.value});else if(Je(l))"number"==typeof i&&s.push({type:Xt.literal,value:r.getNumberFormat(t).format(i)});else{var h=l.value;if(!o||!(h in o))throw new Zt(h,a);var f=o[h];if(Ve(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?Xt.literal:Xt.object,value:f});else if(ze(l)){var p="string"==typeof l.style?n.date[l.style]:$e(l.style)?l.style.parsedOptions:void 0;s.push({type:Xt.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(Ye(l)){p="string"==typeof l.style?n.time[l.style]:$e(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:Xt.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(Xe(l)){(p="string"==typeof l.style?n.number[l.style]:Qe(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),s.push({type:Xt.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(qe(l)){var d=l.children,v=l.value,m=o[v];if(!Jt(m))throw new Wt(v,"function",a);var g=m(qt(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(g)||(g=[g]),s.push.apply(s,g.map(function(e){return{type:"string"==typeof e?Xt.literal:Xt.object,value:e}}))}if(We(l)){if(!(E=l.options[f]||l.options.other))throw new Yt(l.value,f,Object.keys(l.options),a);s.push.apply(s,qt(E.value,t,r,n,o))}else if(Ze(l)){var E;if(!(E=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new zt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gt.MISSING_INTL_API,a);var y=r.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));E=l.options[y]||l.options.other}if(!E)throw new Yt(l.value,f,Object.keys(l.options),a);s.push.apply(s,qt(E.value,t,r,n,o,f-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Xt.literal&&t.type===Xt.literal?r.value+=t.value:e.push(t),e},[])}(s)}function Qt(e,t){return t?Object.keys(e).reduce(function(r,n){var o,a;return r[n]=(o=e[n],(a=t[n])?i(i(i({},o||{}),a||{}),Object.keys(o).reduce(function(e,t){return e[t]=i(i({},o[t]),a[t]||{}),e},{})):o),r},i({},e)):e}function $t(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Xt||(Xt={}));var er=function(){function e(t,r,n,o){void 0===r&&(r=e.defaultLocale);var s,c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=c.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===Xt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return qt(c.ast,c.locales,c.formatters,c.formats,e,void 0,c.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=c.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=o||{};u.formatters;var l=a(u,["formatters"]);this.ast=e.__parse(t,i(i({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Qt(e.formats,n),this.formatters=o&&o.formatters||(void 0===(s=this.formatterCache)&&(s={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:He(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,T([void 0],t,!1)))},{cache:$t(s.number),strategy:ke.variadic}),getDateTimeFormat:He(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,T([void 0],t,!1)))},{cache:$t(s.dateTime),strategy:ke.variadic}),getPluralRules:He(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,T([void 0],t,!1)))},{cache:$t(s.pluralRules),strategy:ke.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Vt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),tr={debug:0,info:1,warn:2,error:3,off:4},rr={debug:"",info:"",warn:"",error:"",off:""};function nr(){var e;if("undefined"!=typeof process&&(null===(e=process.env)||void 0===e?void 0:e._GT_LOG_LEVEL)){var t=process.env._GT_LOG_LEVEL.toLowerCase();if(t in tr)return t}return"warn"}var or=function(){function e(e){this.config=e}return e.prototype.handle=function(e){var t=[];this.config.includeTimestamp&&t.push("[".concat(e.timestamp.toISOString(),"]"));var r=rr[e.level],n="[".concat(e.level.toUpperCase(),"]");t.push("".concat(r).concat(n).concat("")),this.config.prefix&&t.push("[".concat(this.config.prefix,"]")),this.config.includeContext&&e.context&&t.push("[".concat(e.context,"]")),t.push(e.message),e.metadata&&Object.keys(e.metadata).length>0&&t.push("\n Metadata: ".concat(JSON.stringify(e.metadata,null,2)));var o=t.join(" ");switch(e.level){case"debug":console.debug(o);break;case"info":console.info(o);break;case"warn":console.warn(o);break;case"error":console.error(o)}},e}(),ir=function(){function e(e){void 0===e&&(e={}),this.config=i({level:nr(),includeTimestamp:!0,includeContext:!0,enableConsole:!0,handlers:[]},e),this.handlers=T([],this.config.handlers||[],!0),this.config.enableConsole&&this.handlers.push(new or(this.config))}return e.prototype.addHandler=function(e){this.handlers.push(e)},e.prototype.removeHandler=function(e){var t=this.handlers.indexOf(e);t>-1&&this.handlers.splice(t,1)},e.prototype.configure=function(e){this.config=i(i({},this.config),e)},e.prototype.shouldLog=function(e){return tr[e]>=tr[this.config.level]},e.prototype.log=function(e,t,r,n){if(this.shouldLog(e)){var o={level:e,message:t,timestamp:new Date,context:r,metadata:n};this.handlers.forEach(function(e){try{e.handle(o)}catch(e){console.error("Error in log handler:",e)}})}},e.prototype.debug=function(e,t,r){this.log("debug",e,t,r)},e.prototype.info=function(e,t,r){this.log("info",e,t,r)},e.prototype.warn=function(e,t,r){this.log("warn",e,t,r)},e.prototype.error=function(e,t,r){this.log("error",e,t,r)},e.prototype.child=function(e){return new ar(this,e)},e.prototype.getConfig=function(){return i({},this.config)},e}(),ar=function(){function e(e,t){this.logger=e,this.context=t}return e.prototype.debug=function(e,t){this.logger.debug(e,this.context,t)},e.prototype.info=function(e,t){this.logger.info(e,this.context,t)},e.prototype.warn=function(e,t){this.logger.warn(e,this.context,t)},e.prototype.error=function(e,t){this.logger.error(e,this.context,t)},e.prototype.child=function(t){return new e(this.logger,"".concat(this.context,":").concat(t))},e}(),sr=new ir({level:nr(),includeTimestamp:!0,includeContext:!0,prefix:"GT"}),cr=sr.child("fetch");sr.child("validation"),sr.child("formatting"),sr.child("locale");var ur=sr.child("GT instance");function lr(e){var t=e.value,r=e.locales,n=void 0===r?[Y]:r,o=e.options,a=void 0===o?{}:o;return te.get("ListFormat",n,i({type:"conjunction",style:"long"},a)).format(t)}function hr(e){var t=e.value,r=e.locales,n=void 0===r?[Y]:r,o=e.options,a=void 0===o?{}:o,s=te.get("ListFormat",n,i({type:"conjunction",style:"long"},a)).formatToParts(t.map(function(){return"1"})),c=0;return s.map(function(e){return"element"===e.type?t[c++]:e.value})}function fr(e){var t=e.date,r=e.baseDate,n=e.locales,o=void 0===n?[Y]:n,i=e.options,a=void 0===i?{}:i,s=function(e,t){var r=t.getTime(),n=e.getTime()-r,o=Math.abs(n),i=n<0?-1:1,a=Math.floor(o/1e3),s=Math.floor(o/6e4),c=Math.floor(o/36e5),u=Math.floor(o/864e5),l=Math.floor(o/6048e5),h=Math.floor(o/2592e6),f=Math.floor(o/31536e6);return a<60?{value:i*a,unit:"second"}:s<60?{value:i*s,unit:"minute"}:c<24?{value:i*c,unit:"hour"}:u<7?{value:i*u,unit:"day"}:u<28||h<1?{value:i*l,unit:"week"}:h<12||f<1?{value:i*h,unit:"month"}:{value:i*f,unit:"year"}}(t,r);return pr({value:s.value,unit:s.unit,locales:o,options:a})}function pr(e){var t=e.value,r=e.unit,n=e.locales,o=void 0===n?[Y]:n,a=e.options,s=void 0===a?{}:a;return te.get("RelativeTimeFormat",o,i({style:"long",numeric:"auto"},s)).format(t,r)}function dr(e,t,r){void 0===t&&(t=Y);var n=e;r&&Te(e,r)&&(e=r[e].code),t||(t=Y);try{var o=me(e);if(r)for(var i=0,a=[n,e,o,te.get("Locale",o).language];i<a.length;i++){var s=_e(r,a[i],"name");if(s)return s}return te.get("DisplayNames",[t,o,Y],{type:"language"}).of(o)||""}catch(e){return""}}function vr(e){try{var t=function(e){var t,r,n;if("textInfo"in e&&"object"==typeof e.textInfo&&null!==e.textInfo&&"direction"in e.textInfo&&("rtl"===(null===(t=e.textInfo)||void 0===t?void 0:t.direction)||"ltr"===(null===(r=e.textInfo)||void 0===r?void 0:r.direction)))return null===(n=e.textInfo)||void 0===n?void 0:n.direction;return}(te.get("Locale",e));if(t)return t}catch(e){}var r,n,o=Pe(e),i=o.scriptCode,a=o.languageCode;return i?(r=i)&&mr.has(r.toLowerCase())?"rtl":"ltr":a?(n=a)&&gr.has(n.toLowerCase())?"rtl":"ltr":"ltr"}var mr=new Set(["arab","adlm","hebr","nkoo","rohg","samr","syrc","thaa","yezi"]),gr=new Set(["ar","arc","ckb","dv","fa","he","iw","ku","lrc","nqo","ps","pnb","sd","syr","ug","ur","yi"]);var Er="GT Error:",yr=function(e){return"".concat(Er," Translation request timed out after ").concat(e,"ms.")},br=function(e){return"".concat(Er," Cannot call `").concat(e,"` without a specified locale. Either pass a locale to the `").concat(e,"` function or specify a targetLocale in the GT constructor.")},_r=function(e){return"".concat(Er," Cannot call `").concat(e,"` without a specified locale. Either pass a locale to the `").concat(e,"` function or specify a sourceLocale in the GT constructor.")},Tr=function(e){return"".concat(Er," Invalid locale: ").concat(e,".")};function Lr(e,t,r){return d(this,void 0,void 0,function(){var n,o,a,s;return v(this,function(c){switch(c.label){case 0:n=new AbortController,o=n.signal,a=(r=r||W)?setTimeout(function(){return n.abort()},r):null,c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,fetch(e,i(i({},t),{signal:o}))];case 2:return[2,c.sent()];case 3:if((s=c.sent())instanceof Error&&"AbortError"===s.name)throw yr(r);throw s;case 4:return a&&clearTimeout(a),[7];case 5:return[2]}})})}var Ar=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.name="ApiError",o.code=r,o.message=n,o}return o(t,e),t.prototype.getCode=function(){return this.code},t.prototype.getMessage=function(){return this.message},t}(Error);function Nr(e){return d(this,void 0,void 0,function(){var t,r,n,o;return v(this,function(i){switch(i.label){case 0:if(e.ok)return[3,5];t="Unknown error",i.label=1;case 1:return i.trys.push([1,3,,4]),[4,e.text()];case 2:r=i.sent();try{n=JSON.parse(r),t=n.error}catch(e){t=r||"Unknown error"}return[3,4];case 3:return i.sent(),[3,4];case 4:throw o=function(e,t,r){return"".concat(Er," API returned error status. Status: ").concat(e,", Status Text: ").concat(t,", Error: ").concat(r)}(e.status,e.statusText,t),new Ar(o,e.status,t);case 5:return[2]}})})}function Sr(e,t){if(e instanceof Error&&"AbortError"===e.name){var r=yr(t);throw cr.error(r),new Error(r)}var n=function(e){return"".concat(Er," Translation request failed. Error: ").concat(e)}(e instanceof Error?e.message:String(e));throw cr.error(n),e}var Ir="2026-03-06.v1";function Cr(e,t){void 0===t&&(t=!1);var r=i(i({},!t&&{"Content-Type":"application/json"}),{"x-gt-project-id":e.projectId});return e.apiKey&&(e.apiKey.startsWith("gtx-internal-")?r["x-gt-internal-api-key"]=e.apiKey:r["x-gt-api-key"]=e.apiKey),r["gt-api-version"]=Ir,r}function Pr(e){return new Promise(function(t){return setTimeout(t,e)})}function wr(e,t){switch(e){case"linear":return 500*(t+1);case"exponential":return 500*Math.pow(2,t);default:return 0}}function Hr(e,t,r){return d(this,void 0,void 0,function(){var n,o,i,a,s,c,u,l,h,f,p,d;return v(this,function(v){switch(v.label){case 0:n=null!==(f=null==r?void 0:r.timeout)&&void 0!==f?f:W,o="".concat(e.baseUrl||re).concat(t),i=null!==(p=null==r?void 0:r.method)&&void 0!==p?p:"POST",a=null!==(d=null==r?void 0:r.retryPolicy)&&void 0!==d?d:"exponential",s="none"===a?0:3,c={method:i,headers:Cr(e)},void 0!==(null==r?void 0:r.body)&&(c.body=JSON.stringify(r.body)),u=0,v.label=1;case 1:if(!(u<=s))return[3,13];l=void 0,v.label=2;case 2:return v.trys.push([2,4,,7]),[4,Lr(o,c,n)];case 3:return l=v.sent(),[3,7];case 4:return h=v.sent(),u<s?[4,Pr(wr(a,u))]:[3,6];case 5:return v.sent(),[3,12];case 6:return Sr(h,n),[3,7];case 7:return l.status>=500&&u<s?[4,Pr(wr(a,u))]:[3,9];case 8:return v.sent(),[3,12];case 9:return[4,Nr(l)];case 10:return v.sent(),[4,l.json()];case 11:return[2,v.sent()];case 12:return u++,[3,1];case 13:throw new Error("Max retries exceeded")}})})}function Mr(n){return t(e(r(n))).slice(0,16)}function Br(e,t){var r,n=e.source,o=e.context,a=e.id,s=e.maxChars,c=e.dataFormat;return void 0===t&&(t=Mr),r="JSX"===c?Or(n):n,t(pe(i(i(i(i({source:r},a&&{id:a}),o&&{context:o}),null!=s&&{maxChars:Math.abs(s)}),c&&{dataFormat:c})))}var Rr=function(e){if(e&&"object"==typeof e){var t={};if("c"in e&&e.c&&(t.c=Or(e.c)),"d"in e){var r=null==e?void 0:e.d;(null==r?void 0:r.b)&&(t.b=Object.fromEntries(Object.entries(r.b).map(function(e){return[e[0],Or(e[1])]}))),(null==r?void 0:r.t)&&(t.t=r.t)}return function(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(e)?i({k:e.k},e.v&&{v:e.v}):t}return e};function Or(e){return Array.isArray(e)?e.map(Rr):Rr(e)}function Ur(e,t,r,n){return d(this,void 0,void 0,function(){var o,a,s,c,u,l,h,f,p,d,m,g,E,y,b,_;return v(this,function(v){switch(v.label){case 0:for(o=Array.isArray(e),a=o?[]:void 0,s={},c=o?e.map(function(e){return[void 0,e]}):Object.entries(e),u=0,l=c;u<l.length;u++)h=l[u],f=h[0],p=h[1],m=(d="string"==typeof p?{source:p}:p).source,g=d.metadata,E=null!==(b=null!=f?f:null==g?void 0:g.hash)&&void 0!==b?b:Br(i({source:m,dataFormat:null!==(_=null==g?void 0:g.dataFormat)&&void 0!==_?_:"STRING"},null!=g?g:{})),null==a||a.push(E),s[E]={source:m,metadata:g};return[4,Hr(i(i({},r),{baseUrl:r.baseUrl||"https://runtime2.gtx.dev"}),"/v2/translate",{body:{requests:s,targetLocale:t.targetLocale,sourceLocale:t.sourceLocale,metadata:t},timeout:n,retryPolicy:"none"})];case 1:return y=v.sent(),a?[2,a.map(function(e){var t;return null!==(t=y[e])&&void 0!==t?t:{success:!1,error:"No translation returned",code:500}})]:[2,y]}})})}function Gr(e,t,r){return d(this,void 0,void 0,function(){return v(this,function(n){return[2,Hr(t,"/v2/project/setup/generate",{body:{files:e.map(function(e){return{branchId:e.branchId,fileId:e.fileId,versionId:e.versionId}}),locales:null==r?void 0:r.locales,force:null==r?void 0:r.force},timeout:null==r?void 0:r.timeoutMs})]})})}function Dr(e,t){for(var r=[],n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}function Fr(e,t){return d(this,arguments,void 0,function(e,t,r){var n,o,i,a,s,c,u,l,h,f,p,d,m;return void 0===r&&(r={}),v(this,function(v){switch(v.label){case 0:return n=r.batchSize,o=void 0===n?100:n,i=r.parallel,a=void 0===i||i,0===e.length?[2,{data:[],count:0,batchCount:0}]:(s=Dr(e,o),c=[],a?[4,Promise.all(s.map(function(e){return t(e)}))]:[3,2]);case 1:for(u=v.sent(),l=0,h=u;l<h.length;l++)(m=h[l])&&c.push.apply(c,m);return[3,6];case 2:f=0,p=s,v.label=3;case 3:return f<p.length?(d=p[f],[4,t(d)]):[3,6];case 4:(m=v.sent())&&c.push.apply(c,m),v.label=5;case 5:return f++,[3,3];case 6:return[2,{data:c,count:c.length,batchCount:s.length}]}})})}function jr(e,t,r){return d(this,void 0,void 0,function(){var n,o,i=this;return v(this,function(a){switch(a.label){case 0:return[4,Fr(e,function(e){return d(i,void 0,void 0,function(){var n,o;return v(this,function(i){switch(i.label){case 0:return n={files:e.map(function(e){return{branchId:e.branchId,fileId:e.fileId,versionId:e.versionId,fileName:e.fileName}}),targetLocales:t.targetLocales,sourceLocale:t.sourceLocale,requireApproval:t.requireApproval,modelProvider:t.modelProvider,force:t.force},[4,Hr(r,"/v2/project/translations/enqueue",{body:n,timeout:t.timeout})];case 1:return o=i.sent(),[2,Array.from(Object.entries(o.jobData))]}})})},{batchSize:100})];case 1:return n=a.sent(),o=Object.fromEntries(n.data.map(function(e){return[e[0],e[1]]})),[2,{jobData:o,locales:t.targetLocales,message:"Successfully enqueued ".concat(n.count," file translation jobs in ").concat(n.batchCount," batch(es)")}]}})})}function xr(e,t){return d(this,void 0,void 0,function(){return v(this,function(r){switch(r.label){case 0:return[4,Hr(t,"/v2/project/tags/create",{body:i({tagId:e.tagId,files:e.files},e.message&&{message:e.message})})];case 1:return[2,r.sent()]}})})}function kr(e,t,r){return d(this,void 0,void 0,function(){var n=this;return v(this,function(o){return[2,Fr(e,function(e){return d(n,void 0,void 0,function(){var n;return v(this,function(o){switch(o.label){case 0:return[4,Hr(r,"/v2/project/files/download",{body:e,timeout:t.timeout})];case 1:return n=o.sent(),[2,n.files.map(function(e){return i(i({},e),{data:oe(e.data)})})]}})})},{batchSize:100})]})})}function Kr(e,t){return d(this,arguments,void 0,function(e,t,r){var n=this;return void 0===r&&(r={}),v(this,function(o){switch(o.label){case 0:return[4,Fr(e.diffs,function(e){return d(n,void 0,void 0,function(){return v(this,function(n){switch(n.label){case 0:return[4,Hr(t,"/v2/project/files/diffs",{body:{diffs:e},timeout:r.timeout})];case 1:return n.sent(),[2,[{success:!0}]]}})})},{batchSize:100})];case 1:return o.sent(),[2,{success:!0}]}})})}function Vr(e,t,r){void 0===t&&(t=Y),t||(t=Y);try{var n=te.get("DisplayNames",[t,Y],{type:"region"});return i({code:e,name:n.of(e)||e,emoji:Ie[e]||Ne},null==r?void 0:r[e])}catch(t){return i({code:e,name:e,emoji:Ne},null==r?void 0:r[e])}}function Xr(e,t){var r;return t&&(r=Object.fromEntries(Object.entries(t).filter(function(e){var t=e[1];return t&&"object"==typeof t&&"code"in t}).map(function(e){var t=e[0];return[e[1].code,t]}))),(null==r?void 0:r[e])||e}function zr(e,t){return t&&Te(e,t)?t[e].code:e}function Yr(e,t,r){return d(this,void 0,void 0,function(){var n=this;return v(this,function(o){return[2,Fr(e,function(e){return d(n,void 0,void 0,function(){var n;return v(this,function(o){switch(o.label){case 0:return n={data:e.map(function(e){var t=e.source;return{source:{content:ne(t.content),fileName:t.fileName,fileFormat:t.fileFormat,locale:t.locale,dataFormat:t.dataFormat,formatMetadata:t.formatMetadata,fileId:t.fileId,versionId:t.versionId,branchId:t.branchId,incomingBranchId:t.incomingBranchId,checkedOutBranchId:t.checkedOutBranchId}}}),sourceLocale:t.sourceLocale},[4,Hr(r,"/v2/project/files/upload-files",{body:n,timeout:t.timeout})];case 1:return[2,o.sent().uploadedFiles||[]]}})})},{batchSize:100})]})})}function Wr(e,t,r){return d(this,void 0,void 0,function(){var n=this;return v(this,function(o){return[2,Fr(e,function(e){return d(n,void 0,void 0,function(){var n;return v(this,function(o){switch(o.label){case 0:return n={data:e.map(function(e){var t=e.source,r=e.translations;return{source:{content:ne(t.content),fileName:t.fileName,fileFormat:t.fileFormat,locale:t.locale,dataFormat:t.dataFormat,formatMetadata:t.formatMetadata,fileId:t.fileId,versionId:t.versionId,branchId:t.branchId},translations:r.map(function(e){return{content:ne(e.content),fileName:e.fileName,fileFormat:e.fileFormat,locale:e.locale,dataFormat:e.dataFormat,fileId:e.fileId,versionId:e.versionId,branchId:e.branchId}})}}),sourceLocale:t.sourceLocale},[4,Hr(r,"/v2/project/files/upload-translations",{body:n,timeout:t.timeout})];case 1:return[2,o.sent().uploadedFiles||[]]}})})},{batchSize:100})]})})}function Zr(e,t,r){return d(this,void 0,void 0,function(){var n,o,i,a,s;return v(this,function(c){return n=e.branchId,o=e.versionId,i=e.fileId,a=new URLSearchParams,n&&a.set("branchId",n),o&&a.set("versionId",o),s="/v2/project/translations/files/status/".concat(encodeURIComponent(i),"?").concat(a.toString()),[2,Hr(r,s,{method:"GET",timeout:t.timeout})]})})}function Jr(e,t,r){return d(this,void 0,void 0,function(){var n,o,i,a;return v(this,function(s){switch(s.label){case 0:n=r.baseUrl,o=t.timeout?t.timeout:W,i="".concat(n||re,"/v2/project/info/").concat(encodeURIComponent(e)),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Lr(i,{method:"GET",headers:Cr(r)},o)];case 2:return a=s.sent(),[3,4];case 3:return Sr(s.sent(),o),[3,4];case 4:return[4,Nr(a)];case 5:return s.sent(),[4,a.json()];case 6:return[2,s.sent()]}})})}function qr(e,t,r){return d(this,void 0,void 0,function(){return v(this,function(n){return[2,Hr(t,"/v2/project/jobs/info",{body:{jobIds:e},timeout:r})]})})}function Qr(e,t,r){return d(this,void 0,void 0,function(){var n,o,a,s,c,u,l,h,f,p,d;return v(this,function(v){switch(v.label){case 0:if(n=1e3*(null!==(d=null==t?void 0:t.pollingIntervalSeconds)&&void 0!==d?d:5),o=void 0!==(null==t?void 0:t.timeoutSeconds)?1e3*t.timeoutSeconds:6e5,0===(a=Object.keys(e.jobData)).length)return[2,{complete:!0,jobs:[]}];s=Date.now(),c=new Map(a.map(function(e){return[e,{jobId:e,status:"unknown"}]})),u=new Set(a),v.label=1;case 1:return u.size>0?[4,qr(Array.from(u),r)]:[3,4];case 2:for(l=v.sent(),h=0,f=l;h<f.length;h++)"completed"===(p=f[h]).status||"failed"===p.status||"unknown"===p.status?(c.set(p.jobId,i({jobId:p.jobId,status:p.status},p.error?{error:p.error}:{})),u.delete(p.jobId)):c.set(p.jobId,{jobId:p.jobId,status:p.status});return 0===u.size||Date.now()-s>=o?[3,4]:[4,new Promise(function(e){return setTimeout(e,n)})];case 3:return v.sent(),[3,1];case 4:return[2,{complete:0===u.size,jobs:Array.from(c.values())}]}})})}function $r(e){return d(this,arguments,void 0,function(e,t,r){var n,o,i;return void 0===t&&(t={}),v(this,function(a){return n={sourceFiles:null===(o=e.sourceFiles)||void 0===o?void 0:o.map(function(e){return{fileId:e.fileId,versionId:e.versionId,branchId:e.branchId}}),translatedFiles:null===(i=e.translatedFiles)||void 0===i?void 0:i.map(function(e){return{fileId:e.fileId,versionId:e.versionId,branchId:e.branchId,locale:e.locale}})},[2,Hr(r,"/v2/project/files/info",{body:n,timeout:t.timeout})]})})}function en(e,t){return d(this,void 0,void 0,function(){return v(this,function(r){return[2,Hr(t,"/v2/project/branches/info",{body:e})]})})}function tn(e,t){return d(this,void 0,void 0,function(){return v(this,function(r){return[2,Hr(t,"/v2/project/branches/create",{body:e})]})})}function rn(e,t,r){return d(this,void 0,void 0,function(){var n,o,i,a=this;return v(this,function(s){switch(s.label){case 0:return 0===e.length?[2,{results:[],summary:{total:0,succeeded:0,failed:0}}]:[4,Fr(e,function(e){return d(a,void 0,void 0,function(){return v(this,function(n){switch(n.label){case 0:return[4,Hr(r,"/v2/project/files/moves",{body:{branchId:t.branchId,moves:e},timeout:t.timeout})];case 1:return[2,n.sent().results]}})})},{batchSize:100})];case 1:return n=s.sent(),o=n.data.filter(function(e){return e.success}).length,i=n.data.filter(function(e){return!e.success}).length,[2,{results:n.data,summary:{total:e.length,succeeded:o,failed:i}}]}})})}function nn(e,t){return d(this,arguments,void 0,function(e,t,r,n){var o,i,a,s,c,u,l,h,f;return void 0===r&&(r={}),v(this,function(p){switch(p.label){case 0:return o=function(t){return Hr(n,"/v2/project/files/orphaned",{body:{branchId:e,fileIds:t},timeout:r.timeout})},0===t.length?[2,o([])]:(i=Dr(t,100),[4,Promise.all(i.map(function(e){return o(e)}))]);case 1:if(1===(a=p.sent()).length)return[2,a[0]];for(s=new Map,c=0,u=a[0].orphanedFiles;c<u.length;c++)l=u[c],s.set(l.fileId,l);for(h=function(e){var t=new Set(a[e].orphanedFiles.map(function(e){return e.fileId}));Array.from(s.keys()).forEach(function(e){t.has(e)||s.delete(e)})},f=1;f<a.length;f++)h(f);return[2,{orphanedFiles:Array.from(s.values())}]}})})}function on(e,t){return d(this,void 0,void 0,function(){return v(this,function(r){switch(r.label){case 0:return[4,Hr(t,"/v2/project/files/publish",{body:{files:e}})];case 1:return[2,r.sent()]}})})}var an=function(){function e(e){var t,r,n;void 0===e&&(e={}),this._renderingLocales=[],"undefined"!=typeof process&&(this.apiKey||(this.apiKey=null===(t=process.env)||void 0===t?void 0:t.GT_API_KEY),this.devApiKey||(this.devApiKey=null===(r=process.env)||void 0===r?void 0:r.GT_DEV_API_KEY),this.projectId||(this.projectId=null===(n=process.env)||void 0===n?void 0:n.GT_PROJECT_ID)),this.setConfig(e)}return e.prototype.setConfig=function(e){var t=e.apiKey,r=e.devApiKey,n=e.sourceLocale,o=e.targetLocale,i=e.locales,a=e.projectId,s=e.customMapping,c=e.baseUrl;if(t&&(this.apiKey=t),r&&(this.devApiKey=r),a&&(this.projectId=a),n&&(this.sourceLocale=me(n),!ve(this.sourceLocale,s)))throw new Error(Tr(this.sourceLocale));if(o&&(this.targetLocale=me(o),!ve(this.targetLocale,s)))throw new Error(Tr(this.targetLocale));if(this._renderingLocales=[],this.sourceLocale&&this._renderingLocales.push(this.sourceLocale),this.targetLocale&&this._renderingLocales.push(this.targetLocale),this._renderingLocales.push(Y),i){var u=[],l=[];if(i.forEach(function(e){var t=me(e);ve(t)?u.push(t):l.push(e)}),l.length>0)throw new Error(function(e){return"".concat(Er," Invalid locales: ").concat(e.join(", "),".")}(l));this.locales=u}c&&(this.baseUrl=c),s&&(this.customMapping=s,this.reverseCustomMapping=Object.fromEntries(Object.entries(s).filter(function(e){var t=e[1];return t&&"object"==typeof t&&"code"in t}).map(function(e){var t=e[0];return[e[1].code,t]})))},e.prototype._getTranslationConfig=function(){return{baseUrl:this.baseUrl,apiKey:this.apiKey||this.devApiKey,projectId:this.projectId||""}},e.prototype._validateAuth=function(e){var t=[];if(!this.apiKey&&!this.devApiKey){var r=function(e){return"".concat(Er," Cannot call `").concat(e,"` without a specified API key. Either pass an API key to the `").concat(e,"` function or specify an apiKey in the GT constructor.")}(e);t.push(r)}if(!this.projectId){r=function(e){return"".concat(Er," Cannot call `").concat(e,"` without a specified project ID. Either pass a project ID to the `").concat(e,"` function or specify a projectId in the GT constructor.")}(e);t.push(r)}if(t.length)throw new Error(t.join("\n"))},e.prototype.queryBranchData=function(e){return d(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:return this._validateAuth("queryBranchData"),[4,en(e,this._getTranslationConfig())];case 1:return[2,t.sent()]}})})},e.prototype.createBranch=function(e){return d(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:return this._validateAuth("createBranch"),[4,tn(e,this._getTranslationConfig())];case 1:return[2,t.sent()]}})})},e.prototype.processFileMoves=function(e){return d(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),v(this,function(r){switch(r.label){case 0:return this._validateAuth("processFileMoves"),[4,rn(e,t,this._getTranslationConfig())];case 1:return[2,r.sent()]}})})},e.prototype.getOrphanedFiles=function(e,t){return d(this,arguments,void 0,function(e,t,r){return void 0===r&&(r={}),v(this,function(n){switch(n.label){case 0:return this._validateAuth("getOrphanedFiles"),[4,nn(e,t,r,this._getTranslationConfig())];case 1:return[2,n.sent()]}})})},e.prototype.setupProject=function(e,t){return d(this,void 0,void 0,function(){var r,n=this;return v(this,function(o){switch(o.label){case 0:return this._validateAuth("setupProject"),t=i(i({},t),{locales:null===(r=null==t?void 0:t.locales)||void 0===r?void 0:r.map(function(e){return n.resolveCanonicalLocale(e)})}),[4,Gr(e,this._getTranslationConfig(),t)];case 1:return[2,o.sent()]}})})},e.prototype.checkJobStatus=function(e,t){return d(this,void 0,void 0,function(){return v(this,function(r){switch(r.label){case 0:return this._validateAuth("checkJobStatus"),[4,qr(e,this._getTranslationConfig(),t)];case 1:return[2,r.sent()]}})})},e.prototype.awaitJobs=function(e,t){return d(this,void 0,void 0,function(){return v(this,function(r){switch(r.label){case 0:return this._validateAuth("awaitJobs"),[4,Qr(e,t,this._getTranslationConfig())];case 1:return[2,r.sent()]}})})},e.prototype.enqueueFiles=function(e,t){return d(this,void 0,void 0,function(){var r,n,o,a,s=this;return v(this,function(c){switch(c.label){case 0:if(this._validateAuth("enqueueFiles"),!(r=i(i({},t),{sourceLocale:null!==(o=t.sourceLocale)&&void 0!==o?o:this.sourceLocale,targetLocales:null!==(a=t.targetLocales)&&void 0!==a?a:[this.targetLocale]})).sourceLocale)throw n=_r("enqueueFiles"),ur.error(n),new Error(n);if(!r.targetLocales||0===r.targetLocales.length)throw n=br("enqueueFiles"),ur.error(n),new Error(n);return r=i(i({},r),{targetLocales:r.targetLocales.map(function(e){return s.resolveCanonicalLocale(e)})}),[4,jr(e,r,this._getTranslationConfig())];case 1:return[2,c.sent()]}})})},e.prototype.createTag=function(e){return d(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:return this._validateAuth("createTag"),[4,xr(e,this._getTranslationConfig())];case 1:return[2,t.sent()]}})})},e.prototype.publishFiles=function(e){return d(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:return this._validateAuth("publishFiles"),[4,on(e,this._getTranslationConfig())];case 1:return[2,t.sent()]}})})},e.prototype.submitUserEditDiffs=function(e){return d(this,void 0,void 0,function(){var t=this;return v(this,function(r){switch(r.label){case 0:return this._validateAuth("submitUserEditDiffs"),[4,Kr(i(i({},e),{diffs:(e.diffs||[]).map(function(e){return i(i({},e),{locale:t.resolveCanonicalLocale(e.locale)})})}),this._getTranslationConfig())];case 1:return r.sent(),[2]}})})},e.prototype.queryFileData=function(e){return d(this,arguments,void 0,function(e,t){var r,n,o,a,s=this;return void 0===t&&(t={}),v(this,function(c){switch(c.label){case 0:return this._validateAuth("queryFileData"),e.translatedFiles=null===(n=e.translatedFiles)||void 0===n?void 0:n.map(function(e){return i(i({},e),{locale:s.resolveCanonicalLocale(e.locale)})}),[4,$r(e,t,this._getTranslationConfig())];case 1:return(r=c.sent()).translatedFiles=null===(o=r.translatedFiles)||void 0===o?void 0:o.map(function(e){return i(i({},e),e.locale&&{locale:s.resolveAliasLocale(e.locale)})}),r.sourceFiles=null===(a=r.sourceFiles)||void 0===a?void 0:a.map(function(e){return i(i(i({},e),e.sourceLocale&&{sourceLocale:s.resolveAliasLocale(e.sourceLocale)}),{locales:e.locales.map(function(e){return s.resolveAliasLocale(e)})})}),[2,r]}})})},e.prototype.querySourceFile=function(e){return d(this,arguments,void 0,function(e,t){var r,n=this;return void 0===t&&(t={}),v(this,function(o){switch(o.label){case 0:return this._validateAuth("querySourceFile"),[4,Zr(e,t,this._getTranslationConfig())];case 1:return(r=o.sent()).translations=r.translations.map(function(e){return i(i({},e),e.locale&&{locale:n.resolveAliasLocale(e.locale)})}),r.sourceFile.locales=r.sourceFile.locales.map(function(e){return n.resolveAliasLocale(e)}),r.sourceFile.sourceLocale&&(r.sourceFile.sourceLocale=this.resolveAliasLocale(r.sourceFile.sourceLocale)),[2,r]}})})},e.prototype.getProjectData=function(e){return d(this,arguments,void 0,function(e,t){var r,n=this;return void 0===t&&(t={}),v(this,function(o){switch(o.label){case 0:return this._validateAuth("getProjectData"),[4,Jr(e,t,this._getTranslationConfig())];case 1:return(r=o.sent()).currentLocales=r.currentLocales.map(function(e){return n.resolveAliasLocale(e)}),r.defaultLocale=this.resolveAliasLocale(r.defaultLocale),[2,r]}})})},e.prototype.downloadFile=function(e){return d(this,arguments,void 0,function(e,t){var r,n,o,i;return void 0===t&&(t={}),v(this,function(a){switch(a.label){case 0:return this._validateAuth("downloadTranslatedFile"),[4,kr([{fileId:e.fileId,branchId:e.branchId,locale:e.locale?this.resolveCanonicalLocale(e.locale):void 0,versionId:e.versionId,useLatestAvailableVersion:e.useLatestAvailableVersion}],t,this._getTranslationConfig())];case 1:return r=a.sent(),[2,null!==(i=null===(o=null===(n=r.data)||void 0===n?void 0:n[0])||void 0===o?void 0:o.data)&&void 0!==i?i:""]}})})},e.prototype.downloadFileBatch=function(e){return d(this,arguments,void 0,function(e,t){var r,n=this;return void 0===t&&(t={}),v(this,function(o){switch(o.label){case 0:return this._validateAuth("downloadFileBatch"),[4,kr(e=e.map(function(e){return i(i({},e),{locale:e.locale?n.resolveCanonicalLocale(e.locale):void 0})}),t,this._getTranslationConfig())];case 1:return[2,{files:(r=o.sent()).data.map(function(e){return i(i({},e),e.locale&&{locale:n.resolveAliasLocale(e.locale)})}),count:r.count}]}})})},e.prototype.translate=function(e,t,r){return d(this,void 0,void 0,function(){var n,o,a;return v(this,function(s){switch(s.label){case 0:if("string"==typeof t&&(t={targetLocale:t}),this._validateAuth("translate"),!(n=(null==t?void 0:t.targetLocale)||this.targetLocale))throw o=br("translate"),ur.error(o),new Error(o);return n=this.resolveCanonicalLocale(n),a=this.resolveCanonicalLocale((null==t?void 0:t.sourceLocale)||this.sourceLocale||Y),[4,Ur([e],i(i({},t),{targetLocale:n,sourceLocale:a}),this._getTranslationConfig(),r)];case 1:return[2,s.sent()[0]]}})})},e.prototype.translateMany=function(e,t,r){return d(this,void 0,void 0,function(){var n,o,a;return v(this,function(s){switch(s.label){case 0:if("string"==typeof t&&(t={targetLocale:t}),this._validateAuth("translateMany"),!(n=(null==t?void 0:t.targetLocale)||this.targetLocale))throw o=br("translateMany"),ur.error(o),new Error(o);return n=this.resolveCanonicalLocale(n),a=this.resolveCanonicalLocale((null==t?void 0:t.sourceLocale)||this.sourceLocale||Y),[4,Ur(e,i(i({},t),{targetLocale:n,sourceLocale:a}),this._getTranslationConfig(),r)];case 1:return[2,s.sent()]}})})},e.prototype.uploadSourceFiles=function(e,t){return d(this,void 0,void 0,function(){var r,n,o,a,s=this;return v(this,function(c){switch(c.label){case 0:return this._validateAuth("uploadSourceFiles"),r=i(i({},t),{sourceLocale:this.resolveCanonicalLocale(null!==(a=null!==(o=t.sourceLocale)&&void 0!==o?o:this.sourceLocale)&&void 0!==a?a:Y)}),[4,Yr(e=e.map(function(e){return i(i({},e),{source:i(i({},e.source),{locale:s.resolveCanonicalLocale(e.source.locale)})})}),r,this._getTranslationConfig())];case 1:return[2,{uploadedFiles:(n=c.sent()).data,count:n.count,message:"Successfully uploaded ".concat(n.count," files in ").concat(n.batchCount," batch(es)")}]}})})},e.prototype.uploadTranslations=function(e,t){return d(this,void 0,void 0,function(){var r,n,o,a,s=this;return v(this,function(c){switch(c.label){case 0:if(this._validateAuth("uploadTranslations"),!(r=i(i({},t),{sourceLocale:null!==(a=t.sourceLocale)&&void 0!==a?a:this.sourceLocale})).sourceLocale)throw n=_r("uploadTranslations"),ur.error(n),new Error(n);return[4,Wr(e.map(function(e){return i(i({},e),{translations:e.translations.map(function(e){return i(i({},e),{locale:s.resolveCanonicalLocale(e.locale)})})})}),r,this._getTranslationConfig())];case 1:return[2,{uploadedFiles:(o=c.sent()).data,count:o.count,message:"Successfully uploaded ".concat(o.count," files in ").concat(o.batchCount," batch(es)")}]}})})},e.prototype.formatCutoff=function(e,t){return sn(e,i({locales:this._renderingLocales},t))},e.prototype.formatMessage=function(e,t){return cn(e,i({locales:this._renderingLocales},t))},e.prototype.formatNum=function(e,t){return un(e,i({locales:this._renderingLocales},t))},e.prototype.formatDateTime=function(e,t){return ln(e,i({locales:this._renderingLocales},t))},e.prototype.formatCurrency=function(e,t,r){return hn(e,t,i({locales:this._renderingLocales},r))},e.prototype.formatList=function(e,t){return lr({value:e,locales:(null==t?void 0:t.locales)||this._renderingLocales,options:t})},e.prototype.formatListToParts=function(e,t){return hr({value:e,locales:(null==t?void 0:t.locales)||this._renderingLocales,options:t})},e.prototype.formatRelativeTime=function(e,t,r){return dn(e,t,i({locales:this._renderingLocales},r))},e.prototype.formatRelativeTimeFromDate=function(e,t){return vn(e,i({locales:this._renderingLocales},t))},e.prototype.getLocaleName=function(e){if(void 0===e&&(e=this.targetLocale),!e)throw new Error(br("getLocaleName"));return dr(e,this.sourceLocale,this.customMapping)},e.prototype.getLocaleEmoji=function(e){if(void 0===e&&(e=this.targetLocale),!e)throw new Error(br("getLocaleEmoji"));return gn(e,this.customMapping)},e.prototype.getLocaleProperties=function(e){if(void 0===e&&(e=this.targetLocale),!e)throw new Error(br("getLocaleProperties"));return En(e,this.sourceLocale,this.customMapping)},e.prototype.getRegionProperties=function(e,t){if(void 0===e&&(e=this.getLocaleProperties().regionCode),!t){if(this.customMapping&&!this.customRegionMapping){for(var r={},n=0,o=Object.entries(this.customMapping);n<o.length;n++){var a=o[n],s=a[0],c=a[1];if(c&&"object"==typeof c&&c.regionCode&&!r[c.regionCode]){var u=c.regionName,l=c.emoji;r[c.regionCode]=i(i({locale:s},u&&{name:u}),l&&{emoji:l})}}this.customRegionMapping=r}t=this.customRegionMapping}return Vr(e,this.targetLocale,t)},e.prototype.requiresTranslation=function(e,t,r,n){if(void 0===e&&(e=this.sourceLocale),void 0===t&&(t=this.targetLocale),void 0===r&&(r=this.locales),void 0===n&&(n=this.customMapping),!e)throw new Error(_r("requiresTranslation"));if(!t)throw new Error(br("requiresTranslation"));return be(e,t,r,n)},e.prototype.determineLocale=function(e,t,r){return void 0===t&&(t=this.locales||[]),void 0===r&&(r=this.customMapping),we(e,t,r)},e.prototype.getLocaleDirection=function(e){if(void 0===e&&(e=this.targetLocale),!e)throw new Error(br("getLocaleDirection"));return Tn(e)},e.prototype.isValidLocale=function(e,t){if(void 0===e&&(e=this.targetLocale),void 0===t&&(t=this.customMapping),!e)throw new Error(br("isValidLocale"));return Ln(e,t)},e.prototype.resolveCanonicalLocale=function(e,t){if(void 0===e&&(e=this.targetLocale),void 0===t&&(t=this.customMapping),!e)throw new Error(br("resolveCanonicalLocale"));return zr(e,t)},e.prototype.resolveAliasLocale=function(e,t){if(void 0===t&&(t=this.customMapping),!e)throw new Error(br("resolveAliasLocale"));return Xr(e,t)},e.prototype.standardizeLocale=function(e){if(void 0===e&&(e=this.targetLocale),!e)throw new Error(br("standardizeLocale"));return me(e)},e.prototype.isSameDialect=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return In.apply(void 0,e)},e.prototype.isSameLanguage=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ye.apply(void 0,e)},e.prototype.isSupersetLocale=function(e,t){return Pn(e,t)},e}();function sn(e,t){return function(e){var t=e.value,r=e.locales,n=void 0===r?Y:r,o=e.options,i=void 0===o?{}:o;return te.get("CutoffFormat",n,i).format(t)}({value:e,locales:null==t?void 0:t.locales,options:t})}function cn(e,t){return"STRING"===(null==t?void 0:t.dataFormat)?e:function(e,t,r){var n,o;return void 0===t&&(t=Y),void 0===r&&(r={}),null!==(o=null===(n=new er(e,t).format(r))||void 0===n?void 0:n.toString())&&void 0!==o?o:""}(e,null==t?void 0:t.locales,null==t?void 0:t.variables)}function un(e,t){return function(e){var t=e.value,r=e.locales,n=void 0===r?[Y]:r,o=e.options,a=void 0===o?{}:o;return te.get("NumberFormat",n,i({numberingSystem:"latn"},a)).format(t)}({value:e,locales:t.locales,options:t})}function ln(e,t){return function(e){var t=e.value,r=e.locales,n=void 0===r?[Y]:r,o=e.options,a=void 0===o?{}:o;return te.get("DateTimeFormat",n,i({calendar:"gregory",numberingSystem:"latn"},a)).format(t)}({value:e,locales:null==t?void 0:t.locales,options:t})}function hn(e,t,r){return function(e){var t=e.value,r=e.locales,n=void 0===r?[Y]:r,o=e.currency,a=void 0===o?"USD":o,s=e.options,c=void 0===s?{}:s;return te.get("NumberFormat",n,i({style:"currency",currency:a,numberingSystem:"latn"},c)).format(t)}({value:e,currency:t,locales:r.locales,options:r})}function fn(e,t){return lr({value:e,locales:t.locales,options:t})}function pn(e,t){return hr({value:e,locales:null==t?void 0:t.locales,options:t})}function dn(e,t,r){return pr({value:e,unit:t,locales:r.locales,options:r})}function vn(e,t){var r=t.locales,n=t.baseDate,o=a(t,["locales","baseDate"]);return fr({date:e,baseDate:null!=n?n:new Date,locales:r,options:o})}function mn(e,t,r){return dr(e,t,r)}function gn(e,t){return Le(e,t)}function En(e,t,r){return Pe(e,t,r)}function yn(e,t,r){return Vr(e,t,r)}function bn(e,t,r,n){return be(e,t,r,n)}function _n(e,t,r){return void 0===t&&(t=[]),void 0===r&&(r=void 0),we(e,t,r)}function Tn(e){return vr(e)}function Ln(e,t){return ve(e,t)}function An(e,t){return Xr(e,t)}function Nn(e,t){return zr(e,t)}function Sn(e){return me(e)}function In(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ee.apply(void 0,e)}function Cn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ye.apply(void 0,e)}function Pn(e,t){return function(e,t){try{var r=te.get("Locale",me(e)),n=r.language,o=r.region,i=r.script,a=te.get("Locale",me(t)),s=a.language,c=a.region,u=a.script;return!(n!==s||o&&o!==c||i&&i!==u)}catch(e){return console.error(e),!1}}(e,t)}var wn=Ir;export{wn as API_VERSION,an as GT,_n as determineLocale,hn as formatCurrency,sn as formatCutoff,ln as formatDateTime,fn as formatList,pn as formatListToParts,cn as formatMessage,un as formatNum,dn as formatRelativeTime,vn as formatRelativeTimeFromDate,Tn as getLocaleDirection,gn as getLocaleEmoji,mn as getLocaleName,En as getLocaleProperties,yn as getRegionProperties,In as isSameDialect,Cn as isSameLanguage,Pn as isSupersetLocale,Ln as isValidLocale,bn as requiresTranslation,An as resolveAliasLocale,Nn as resolveCanonicalLocale,Sn as standardizeLocale};
2
- //# sourceMappingURL=index.esm.min.mjs.map