@intlify/core 11.4.17 → 11.4.19

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * core v11.4.17
2
+ * core v11.4.19
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -193,17 +193,26 @@ var IntlifyCore = (function (exports) {
193
193
  const colonCharacterReferencePattern = /:?/gi;
194
194
  // eslint-disable-next-line no-control-regex -- URL scheme normalization requires the full control range
195
195
  const controlOrWhitespacePattern = /[\u0000-\u0020\u007f-\u009f]/g;
196
- const eventHandlerPattern = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i;
197
- const eventHandlerAttributePattern = /(^|[\s"'<>/])on(\w+\s*=)/gi;
196
+ const eventHandlerPattern = /^on\w/i;
198
197
  // `srcdoc` holds a whole HTML document: its value is entity-decoded and then parsed again,
199
198
  // so neither escaping the value nor neutralizing `on*` inside it makes it inert
200
- const srcdocPattern = /(?:^|[\s"'<>/])srcdoc\s*=/i;
201
- const srcdocAttributePattern = /(^|[\s"'<>/])s(rcdoc\s*=)/gi;
199
+ const srcdocPattern = /^srcdoc$/i;
202
200
  // `<base>` changes how the page resolves every relative URL after it, and SVG `<animate>` and `<set>`
203
- // can set `href` of an SVG `<a>` through `values` or `to`, which the URL check does not look at
204
- const dangerousElementPattern = /<(?:base|animate|set)(?=[\s/>]|$)/i;
205
- const dangerousElementStartTagPattern = /<(base|animate|set)(?=[\s/>]|$)/gi;
206
- const unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
201
+ // can set `href` of an SVG `<a>` through `values` or `to`, which the URL check does not look at.
202
+ // `<script>` does not run when inserted with `innerHTML`, but it runs when the HTML is rendered
203
+ // on the server (SSR) and the browser parses it as part of the page.
204
+ // `<plaintext>` turns the rest of the page into text
205
+ const dangerousElementPattern = /^(?:base|animate|set|script|plaintext)$/i;
206
+ // The content of these elements is text up to their end tag when they are HTML elements, and markup when
207
+ // they are SVG or MathML elements. Their content is turned into text, so that it reads the same in both
208
+ const textContentElementPattern = /^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i;
209
+ // The rules of the HTML tokenizer for tags, comments, and the end of a tag that is not closed (`$`):
210
+ // - `<` or `</`, and the tag name
211
+ const tagStartPattern = /<(\/?)([a-z][^\t\n\f\r />]*)/iy;
212
+ // - whitespace and `/`, and then `>` or an attribute: its name, and its value in quotes or without quotes
213
+ const tagStepPattern = /([\t\n\f\r /]*)(?:(>)|([^\t\n\f\r />][^\t\n\f\r />=]*)(?:[\t\n\f\r ]*=[\t\n\f\r ]*(?:(["'])([\s\S]*?)(\4|$)|([^\t\n\f\r >]*)))?)/y;
214
+ // - a comment, which ends with `-->` or `--!>`, or with `>` or `->` right after `<!--`
215
+ const commentPattern = /<!--(?:>|->|[\s\S]*?--!?>)/y;
207
216
  function decodeNumericCharacterReference(match, hex, decimal) {
208
217
  const digits = hex || decimal;
209
218
  if (!digits) {
@@ -275,42 +284,167 @@ var IntlifyCore = (function (exports) {
275
284
  const sanitizedValue = attrName.toLowerCase() === 'style' ? sanitizeStyleValue(value) : value;
276
285
  return escapeAttributeValue(sanitizedValue);
277
286
  }
287
+ function escapeLessThan(text) {
288
+ return text.replace(/</g, '&lt;');
289
+ }
290
+ function serializeAttribute(attrName, value, quote, neutralized) {
291
+ // Character references are not decoded in attribute names, so escaping a character renames the attribute
292
+ let name = attrName;
293
+ if (eventHandlerPattern.test(attrName)) {
294
+ neutralized.eventHandler = true;
295
+ name = `&#111;n${attrName.slice(2)}`;
296
+ }
297
+ else if (srcdocPattern.test(attrName)) {
298
+ neutralized.srcdoc = true;
299
+ name = `&#115;${attrName.slice(1)}`;
300
+ }
301
+ if (value === undefined) {
302
+ return name;
303
+ }
304
+ // An unquoted value stays unquoted: it has no whitespace or `>`, and escaping does not add them
305
+ const valueQuote = quote || '';
306
+ return `${name}=${valueQuote}${sanitizeAttributeValue(attrName, value)}${valueQuote}`;
307
+ }
308
+ /**
309
+ * Read a tag with the rules of the HTML tokenizer.
310
+ * A start tag is written again with its attributes sanitized, and an end tag is kept as it is
311
+ *
312
+ * @param html - The HTML
313
+ * @param start - The index of `<`
314
+ * @param neutralized - What has been neutralized
315
+ * @returns The tag, the tag name, and the index after the tag (-1 when the tag is not closed),
316
+ * or `undefined` when `<` does not start a tag
317
+ */
318
+ function readTag(html, start, neutralized) {
319
+ tagStartPattern.lastIndex = start;
320
+ const tagStart = tagStartPattern.exec(html);
321
+ if (!tagStart) {
322
+ return;
323
+ }
324
+ const [, slash, tagName] = tagStart;
325
+ let tag = tagStart[0];
326
+ let step;
327
+ tagStepPattern.lastIndex = tagStartPattern.lastIndex;
328
+ while ((step = tagStepPattern.exec(html))) {
329
+ const [raw, separator, close, attrName, quote, quotedValue, closingQuote, unquotedValue] = step;
330
+ if (close) {
331
+ const end = tagStepPattern.lastIndex;
332
+ // browsers ignore the attributes of end tags
333
+ return [slash ? html.slice(start, end) : tag + raw, tagName, end];
334
+ }
335
+ if (quote && !closingQuote) {
336
+ break;
337
+ }
338
+ if (!slash) {
339
+ const value = quote ? quotedValue : unquotedValue;
340
+ tag += separator + serializeAttribute(attrName, value, quote, neutralized);
341
+ }
342
+ }
343
+ return [tag, tagName, -1];
344
+ }
345
+ /**
346
+ * Find the end tag of an element whose content is text, as the HTML tokenizer does:
347
+ * the first `</` followed by the tag name, and by whitespace, `/` or `>`
348
+ *
349
+ * @returns The index of the end tag, or -1 when it is not found or not closed in the string
350
+ */
351
+ function findTextContentEnd(html, from, tagName) {
352
+ for (let index = html.indexOf('</', from); index !== -1; index = html.indexOf('</', index + 2)) {
353
+ const endTag = readTag(html, index, {});
354
+ if (endTag && endTag[1].toLowerCase() === tagName.toLowerCase()) {
355
+ return endTag[2] === -1 ? -1 : index;
356
+ }
357
+ }
358
+ return -1;
359
+ }
360
+ /**
361
+ * Sanitize the translated HTML
362
+ *
363
+ * @remarks
364
+ * Tags are read with the rules of the HTML tokenizer, so that the sanitizer and browsers agree on
365
+ * where each tag and each attribute starts and ends, and every attribute of every start tag is checked.
366
+ * What is still open at the end of the string (a tag, a comment, or an element whose content is text,
367
+ * like `<textarea>`) becomes text: on the server (SSR), the rest of the page follows the translation,
368
+ * and it would be read as a part of what is open
369
+ *
370
+ * @param html - The translated HTML
371
+ * @returns The sanitized HTML
372
+ */
278
373
  function sanitizeTranslatedHtml(html) {
279
- // Escape dangerous characters in attribute values
280
- // Process attributes with double quotes
281
- html = html.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (_, attrName, attrValue) => `${attrName}="${sanitizeAttributeValue(attrName, attrValue)}"`);
282
- // Process attributes with single quotes
283
- html = html.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (_, attrName, attrValue) => `${attrName}='${sanitizeAttributeValue(attrName, attrValue)}'`);
284
- // Detect and neutralize event handler attributes
285
- if (eventHandlerPattern.test(html)) {
286
- {
374
+ const neutralized = {};
375
+ let result = '';
376
+ let index = 0;
377
+ let lessThan;
378
+ while ((lessThan = html.indexOf('<', index)) !== -1) {
379
+ result += html.slice(index, lessThan);
380
+ index = lessThan + 1;
381
+ const read = readTag(html, lessThan, neutralized);
382
+ if (read) {
383
+ const [tag, tagName, end] = read;
384
+ if (end === -1) {
385
+ neutralized.unclosed = true;
386
+ result += escapeLessThan(html.slice(lessThan));
387
+ index = html.length;
388
+ break;
389
+ }
390
+ index = end;
391
+ if (tag[1] === '/') {
392
+ result += tag;
393
+ }
394
+ else if (dangerousElementPattern.test(tagName)) {
395
+ // the start tag becomes text
396
+ neutralized.element = true;
397
+ result += escapeLessThan(tag);
398
+ }
399
+ else if (textContentElementPattern.test(tagName)) {
400
+ const contentEnd = findTextContentEnd(html, end, tagName);
401
+ if (contentEnd === -1) {
402
+ // the start tag becomes text, and the content is read as HTML, as browsers do then
403
+ neutralized.unclosed = true;
404
+ result += escapeLessThan(tag);
405
+ }
406
+ else {
407
+ result += tag + escapeLessThan(html.slice(end, contentEnd));
408
+ index = contentEnd;
409
+ }
410
+ }
411
+ else {
412
+ result += tag;
413
+ }
414
+ continue;
415
+ }
416
+ commentPattern.lastIndex = lessThan;
417
+ if (commentPattern.test(html)) {
418
+ result += html.slice(lessThan, commentPattern.lastIndex);
419
+ index = commentPattern.lastIndex;
420
+ continue;
421
+ }
422
+ if (html.startsWith('<!--', lessThan)) {
423
+ neutralized.unclosed = true;
424
+ }
425
+ // `<!DOCTYPE`, `<![CDATA[`, `<?`, `</` without a tag name, `<` at the end and any other `<` become text
426
+ result += '&lt;';
427
+ }
428
+ result += html.slice(index);
429
+ {
430
+ if (neutralized.eventHandler) {
287
431
  warn('Potentially dangerous event handlers detected in translation. ' +
288
432
  'Consider removing onclick, onerror, etc. from your translation messages.');
289
433
  }
290
- // Neutralize event handler attributes by escaping 'on'
291
- html = html.replace(eventHandlerAttributePattern, '$1&#111;n$2');
292
- }
293
- // Detect and neutralize `srcdoc` attributes
294
- if (srcdocPattern.test(html)) {
295
- {
434
+ if (neutralized.srcdoc) {
296
435
  warn('Potentially dangerous srcdoc attribute detected in translation. ' +
297
436
  'Consider removing srcdoc from your translation messages.');
298
437
  }
299
- // Neutralize `srcdoc` by escaping 's': character references are not decoded in attribute names
300
- html = html.replace(srcdocAttributePattern, '$1&#115;$2');
301
- }
302
- // Detect and neutralize `<base>`, `<animate>` and `<set>` elements
303
- if (dangerousElementPattern.test(html)) {
304
- {
305
- warn('Potentially dangerous element (<base>, <animate> or <set>) detected in translation. ' +
306
- 'Consider removing it from your translation messages.');
438
+ if (neutralized.element) {
439
+ warn('Potentially dangerous element (<base>, <animate>, <set>, <script> or <plaintext>) ' +
440
+ 'detected in translation. Consider removing it from your translation messages.');
441
+ }
442
+ if (neutralized.unclosed) {
443
+ warn('Unclosed tag, comment or element (such as <textarea>) detected in translation. ' +
444
+ 'Consider closing it in your translation messages.');
307
445
  }
308
- // Neutralize these elements by escaping '<': the start tag becomes text
309
- html = html.replace(dangerousElementStartTagPattern, '&lt;$1');
310
446
  }
311
- // Disable javascript: URLs in unquoted attributes
312
- html = html.replace(unquotedUrlAttributePattern, (match, boundary, prefix, attrValue) => hasJavascriptScheme(attrValue) ? `${boundary}${prefix}about:blank` : match);
313
- return html;
447
+ return result;
314
448
  }
315
449
 
316
450
  function createPosition(line, column, offset) {
@@ -2614,7 +2748,7 @@ var IntlifyCore = (function (exports) {
2614
2748
  * Intlify core-base version
2615
2749
  * @internal
2616
2750
  */
2617
- const VERSION = '11.4.17';
2751
+ const VERSION = '11.4.19';
2618
2752
  const NOT_REOSLVED = -1;
2619
2753
  const DEFAULT_LOCALE = 'en-US';
2620
2754
  const MISSING_RESOLVE_VALUE = '';
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * core v11.4.17
2
+ * core v11.4.19
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
6
- var IntlifyCore=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=(e,t,n)=>r({l:e,k:t,s:n}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),c=e=>"[object Date]"===C(e),s=e=>"[object RegExp]"===C(e),a=e=>h(e)&&0===Object.keys(e).length,l=Object.assign,i=Object.create,u=(e=null)=>i(e),f=Object.prototype.hasOwnProperty;function E(e,t){return f.call(e,t)}function _(e,t){const n=e[t];return E(e,t)?n:void 0}const m=Array.isArray,p=e=>"function"==typeof e,d=e=>"string"==typeof e,N=e=>"boolean"==typeof e,L=e=>null!==e&&"object"==typeof e,T=e=>L(e)&&p(e.then)&&p(e.catch),A=Object.prototype.toString,C=e=>A.call(e),h=e=>"[object Object]"===C(e);function k(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function g(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function I(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}const O=/^javascript:/i,b=/^(?:href|xlink:href|src|action|formaction)$/i,S=/&#(?:x([0-9a-f]+)|(\d+));?/gi,y=/&(?:Tab|NewLine);/g,D=/&colon;?/gi,P=/[\u0000-\u0020\u007f-\u009f]/g,R=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,M=/(^|[\s"'<>/])on(\w+\s*=)/gi,U=/(?:^|[\s"'<>/])srcdoc\s*=/i,v=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,x=/<(?:base|animate|set)(?=[\s/>]|$)/i,F=/<(base|animate|set)(?=[\s/>]|$)/gi,w=/(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function W(e,t,n){const r=t||n;if(!r)return e;const o=Number.parseInt(r,t?16:10);return o<=127?String.fromCharCode(o):e}function $(e){const t=e.replace(S,W).replace(y,"").replace(D,":").replace(P,"");return O.test(t)}function G(e,t){if(b.test(e)&&$(t))return"about:blank";const n="style"===e.toLowerCase()?function(e){const t=/url\s*\(/gi;let n,r="",o=0;for(;null!==(n=t.exec(e));){const c=n.index,s=t.lastIndex-1;let a=s+1,l=1,i=null;for(;a<e.length;a++){const t=e[a];if(i)t===i&&(i=null);else if('"'===t||"'"===t)i=t;else if("("===t)l++;else if(")"===t&&(l--,0===l))break}if(0!==l)break;const u=e.slice(s+1,a).trim(),f=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;r+=e.slice(o,c),r+=$(f)?"url(about:blank)":e.slice(c,a+1),o=a+1}return r+e.slice(o)}(t):t;return function(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(n)}function V(e,t,n){return{start:e,end:t}}const K={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function Y(e,t,n={}){const{domain:r,messages:o,args:c}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function X(e){throw e}K.EXPECTED_TOKEN,K.INVALID_TOKEN_IN_PLACEHOLDER,K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,K.UNKNOWN_ESCAPE_SEQUENCE,K.INVALID_UNICODE_ESCAPE_SEQUENCE,K.UNBALANCED_CLOSING_BRACE,K.UNTERMINATED_CLOSING_BRACE,K.EMPTY_PLACEHOLDER,K.NOT_ALLOW_NEST_PLACEHOLDER,K.INVALID_LINKED_FORMAT,K.MUST_HAVE_MESSAGES_IN_PLURAL,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,K.UNEXPECTED_EMPTY_LINKED_KEY,K.UNEXPECTED_LEXICAL_ANALYSIS,K.UNHANDLED_CODEGEN_NODE_TYPE,K.UNHANDLED_MINIFIER_NODE_TYPE;const H=" ",B="\r",j="\n",z=String.fromCharCode(8232),Q=String.fromCharCode(8233);function J(e){const t=e;let n=0,r=1,o=1,c=0;const s=e=>t[e]===B&&t[e+1]===j,a=e=>t[e]===Q,l=e=>t[e]===z,i=e=>s(e)||(e=>t[e]===j)(e)||a(e)||l(e),u=e=>s(e)||a(e)||l(e)?j:t[e];function f(){return c=0,i(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>c,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+c),next:f,peek:function(){return s(n+c)&&c++,c++,t[n+c]},reset:function(){n=0,r=1,o=1,c=0},resetPeek:function(e=0){c=e},skipToPeek:function(){const e=n+c;for(;e!==n;)f();c=0}}}const Z=void 0,q="'";function ee(e,t={}){const n=!1!==t.location,r=J(e),o=()=>r.index(),c=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=c(),a=o(),l={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>l,{onError:u}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=V(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const E=e=>f(e,13);function _(e,t){return e.currentChar()===t?(e.next(),t):(K.EXPECTED_TOKEN,c(),"")}function m(e){let t="";for(;e.currentPeek()===H||e.currentPeek()===j;)t+=e.currentPeek(),e.peek();return t}function p(e){const t=m(e);return e.skipToPeek(),t}function d(e){if(e===Z)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function N(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===Z)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function L(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(e,t=!0){const n=(t=!1,r="")=>{const o=e.currentPeek();return"{"===o?t:"@"!==o&&o?"|"===o?!(r===H||r===j):o===H?(e.peek(),n(!0,H)):o!==j||(e.peek(),n(!0,j)):t},r=n();return t&&e.resetPeek(),r}function A(e,t){const n=e.currentChar();return n===Z?Z:t(n)?(e.next(),n):null}function C(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function h(e){return A(e,C)}function k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function g(e){return A(e,k)}function I(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function O(e){return A(e,I)}function b(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function S(e){return A(e,b)}function y(e){let t="",n="";for(;t=O(e);)n+=t;return n}function D(e){return e!==q&&e!==j}function P(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return R(e,t,4);case"U":return R(e,t,6);default:return K.UNKNOWN_ESCAPE_SEQUENCE,c(),""}}function R(e,t,n){_(e,t);let r="";for(let o=0;o<n;o++){const t=S(e);if(!t){K.INVALID_UNICODE_ESCAPE_SEQUENCE,c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function M(e){return"{"!==e&&"}"!==e&&e!==H&&e!==j}function U(e){p(e);let t="",n="";for(;t=A(e,M);)n+=t;return n}function v(e){p(e);const t=_(e,"|");return p(e),t}function x(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(K.NOT_ALLOW_NEST_PLACEHOLDER,c()),e.next(),n=f(t,2,"{"),p(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(K.EMPTY_PLACEHOLDER,c()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&p(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(K.UNTERMINATED_CLOSING_BRACE,c()),n=F(e,t)||E(t),t.braceNest=0,n;default:{let r=!0,o=!0,s=!0;if(L(e))return t.braceNest>0&&(K.UNTERMINATED_CLOSING_BRACE,c()),n=f(t,1,v(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return K.UNTERMINATED_CLOSING_BRACE,c(),t.braceNest=0,w(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){p(e);let t="",n="";for(;t=g(e);)n+=t;const r=e.currentChar();if(r&&"}"!==r&&r!==Z&&r!==H&&r!==j&&" "!==r){const t=U(e);return K.INVALID_TOKEN_IN_PLACEHOLDER,c(),n+t}return e.currentChar()===Z&&(K.UNTERMINATED_CLOSING_BRACE,c()),n}(e)),p(e),n;if(o=N(e,t))return n=f(t,5,function(e){p(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${y(e)}`):t+=y(e),e.currentChar()===Z&&(K.UNTERMINATED_CLOSING_BRACE,c()),t}(e)),p(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=e.currentPeek()===q;return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){p(e),_(e,"'");let t="",n="";for(;t=A(e,D);)n+="\\"===t?P(e):t;const r=e.currentChar();return r===j||r===Z?(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,c(),r===j&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),p(e),n;if(!r&&!o&&!s)return n=f(t,12,U(e)),K.INVALID_TOKEN_IN_PLACEHOLDER,c(),n.value,p(e),n;break}}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||o!==j&&o!==H||(K.INVALID_LINKED_FORMAT,c()),o){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return p(e),e.next(),f(t,8,".");case":":return p(e),e.next(),f(t,9,":");default:return L(e)?(r=f(t,1,v(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(p(e),F(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(p(e),f(t,11,function(e){let t="",n="";for(;t=h(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?d(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===H||!t)&&(t===j?(e.peek(),r()):T(e,!1))},o=r();return e.resetPeek(),o}(e,t)?(p(e),"{"===o?x(e,t)||r:f(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===H?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(K.INVALID_LINKED_FORMAT,c()),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:13};if(t.braceNest>0)return x(e,t)||E(t);if(t.inLinked)return F(e,t)||E(t);switch(e.currentChar()){case"{":return x(e,t)||E(t);case"}":return K.UNBALANCED_CLOSING_BRACE,c(),e.next(),f(t,3,"}");case"@":return F(e,t)||E(t);default:if(L(e))return n=f(t,1,v(e)),t.braceNest=0,t.inLinked=!1,n;if(T(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("\\"===n){const r=e.peek();"{"===r||"}"===r||"@"===r||"|"===r||"\\"===r?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else{if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===H||n===j)if(T(e))t+=n,e.next();else{if(L(e))break;t+=n,e.next()}else t+=n,e.next()}}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=o(),l.startLoc=c(),r.currentChar()===Z?f(l,13):w(r,l)},currentOffset:o,currentPosition:c,context:i}}const te=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,ne=/\\([\\@{}|])/g;function re(e,t){return t}function oe(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ce(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function o(e,n,r,o){t&&(e.end=n,e.loc&&(e.loc.end=r))}function c(e,t){const n=e.context(),c=r(3,n.offset,n.startLoc);return c.value=t.replace(ne,re),o(c,e.currentOffset(),e.currentPosition()),c}function s(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(5,c,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function a(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(4,c,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function i(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(9,c,s);return a.value=t.replace(te,oe),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let c=e.nextToken();if(8===c.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(8,c,s);return 11!==t.type?(K.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,a.value="",o(a,c,s),{nextConsumeToken:t,node:a}):(null==t.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,se(t)),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(9!==c.type&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(c)),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 10:null==c.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(c)),n.key=function(e,t){const n=e.context(),c=r(7,n.offset,n.startLoc);return c.value=t,o(c,e.currentOffset(),e.currentPosition()),c}(e,c.value||"");break;case 4:null==c.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(c)),n.key=a(e,c.value||"");break;case 5:null==c.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(c)),n.key=s(e,c.value||"");break;case 6:null==c.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(c)),n.key=i(e,c.value||"");break;default:{K.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),a=r(7,s.offset,s.startLoc);return a.value="",o(a,s.offset,s.startLoc),n.key=a,o(n,s.offset,s.startLoc),{nextConsumeToken:c,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let l=null;do{const r=l||e.nextToken();switch(l=null,r.type){case 0:null==r.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(r)),n.items.push(c(e,r.value||""));break;case 5:null==r.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(r)),n.items.push(a(e,r.value||""));break;case 6:null==r.value&&(K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,se(r)),n.items.push(i(e,r.value||""));break;case 7:{const t=u(e);n.items.push(t.node),l=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function E(e){const t=e.context(),{offset:n,startLoc:c}=t,s=f(e);return 13===t.currentType?s:function(e,t,n,c){const s=e.context();let a=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);a||(a=0===t.items.length),l.cases.push(t)}while(13!==s.currentType);return a&&K.MUST_HAVE_MESSAGES_IN_PLURAL,o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,s)}return{parse:function(n){const c=ee(n,l({},e)),s=c.context(),a=r(0,s.offset,s.startLoc);return t&&a.loc&&(a.loc.source=n),a.body=E(c),e.onCacheKey&&(a.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(K.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),o(a,c.currentOffset(),c.currentPosition()),a}}}function se(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ae(e,t){for(let n=0;n<e.length;n++)le(e[n],t)}function le(e,t){switch(e.type){case 1:ae(e.cases,t),t.helper("plural");break;case 2:ae(e.items,t);break;case 6:le(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function ie(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&le(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ue(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=k(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function fe(e){switch(e.t=e.type,e.type){case 0:{const t=e;fe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)fe(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)fe(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;fe(t.key),t.k=t.key,delete t.key,t.modifier&&(fe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Ee(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Ee(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(Ee(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let c=0;c<o&&(Ee(e,t.items[c]),c!==o-1);c++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ee(e,t.key),t.modifier?(e.push(", "),Ee(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}const _e=(e,t={})=>{const n=d(t.mode)?t.mode:"normal",r=d(t.filename)?t.filename:"message.intl";t.sourceMap;const o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",c=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],a=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,c=!1!==t.location,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function a(e,t){s.code+=e}function l(e,t=!0){const n=t?r:"";a(o?n+" ".repeat(e):n)}return c&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:a,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{filename:r,breakLineCode:o,needIndent:c});a.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(c),s.length>0&&(a.push(`const { ${k(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),a.newline()),a.push("return "),Ee(a,e),a.deindent(c),a.push("}"),delete e.helpers;const{code:l,map:i}=a.context();return{ast:e,code:l,map:i?i.toJSON():void 0}};function me(e,t={}){const n=l({},t),r=!!n.jit,o=!!n.minify,c=null==n.optimize||n.optimize,s=ce(n).parse(e);return r?(c&&function(e){const t=e.body;2===t.type?ue(t):t.cases.forEach((e=>ue(e)))}(s),o&&fe(s),{ast:s,code:""}):(ie(s,n),_e(s,n))}function pe(e){return L(e)&&0===Ce(e)&&(E(e,"b")||E(e,"body"))}const de=["b","body"];const Ne=["c","cases"];const Le=["s","static"];const Te=["i","items"];const Ae=["t","type"];function Ce(e){return Oe(e,Ae)}const he=["v","value"];function ke(e,t){const n=Oe(e,he);if(null!=n)return n;throw Se(t)}const ge=["m","modifier"];const Ie=["k","key"];function Oe(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(E(e,n)&&null!=e[n])return e[n]}return n}const be=[...de,...Ne,...Le,...Te,...Ie,...ge,...he,...Ae];function Se(e){return new Error(`unhandled node type: ${e}`)}function ye(e){return t=>function(e,t){const n=(r=t,Oe(r,de));var r;if(null==n)throw Se(0);if(1===Ce(n)){const t=function(e){return Oe(e,Ne,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,De(e,n)]),[]))}return De(e,n)}(t,e)}function De(e,t){const n=function(e){return Oe(e,Le)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return Oe(e,Te,[])}(t).reduce(((t,n)=>[...t,Pe(e,n)]),[]);return e.normalize(n)}}function Pe(e,t){const n=Ce(t);switch(n){case 3:case 9:case 7:case 8:return ke(t,n);case 4:{const r=t;if(E(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(E(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Se(n)}case 5:{const r=t;if(E(r,"i")&&o(r.i))return e.interpolate(e.list(r.i));if(E(r,"index")&&o(r.index))return e.interpolate(e.list(r.index));throw Se(n)}case 6:{const n=t,r=function(e){return Oe(e,ge)}(n),o=function(e){const t=Oe(e,Ie);if(t)return t;throw Se(6)}(n);return e.linked(Pe(e,o),r?Pe(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const Re=e=>e;let Me=u();function Ue(e,t){if(d(e)){!N(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Re)(e),r=Me[n];if(r)return r;const{ast:o,detectError:c}=function(e,t={}){let n=!1;const r=t.onError||X;return t.onError=e=>{n=!0,r(e)},{...me(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=ye(o);return c?s:Me[n]=s}{if(!pe(e))return()=>e;const t=e.cacheKey;if(t){const n=Me[t];return n||(Me[t]=ye(e))}return ye(e)}}let ve=null;const xe=Fe("function:translate");function Fe(e){return t=>ve&&ve.emit(e,t)}const we={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function We(e,t){return null!=t.locale?Ge(t.locale):Ge(e.locale)}let $e;function Ge(e){if(d(e))return e;if(p(e)){if(e.resolvedOnce&&null!=$e)return $e;if("Function"===e.constructor.name){const t=e();if(T(t))throw Error(we.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return $e=t}throw Error(we.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(we.NOT_SUPPORT_LOCALE_TYPE)}function Ve(e,t,n){return[...new Set([n,...m(t)?t:L(t)?Object.keys(t).filter((e=>"default"!==e)):d(t)?[t]:[n]])]}function Ke(e,t,n){const r=d(n)?n:ot,o=e;let c;L(t)?(o.__localeChainObjectCache||(o.__localeChainObjectCache=new WeakMap),c=o.__localeChainObjectCache.get(t),c||(c=new Map,o.__localeChainObjectCache.set(t,c))):(o.__localeChainCache||(o.__localeChainCache=new Map),c=o.__localeChainCache.get(t),c||(c=new Map,o.__localeChainCache.set(t,c)));const s=c.get(r);if(s)return s;const a=[];let l=[n];for(;m(l);)l=Ye(a,l,t);const i=m(t)||!h(t)?t:t.default?t.default:null;return l=d(i)?[i]:i,m(l)&&Ye(a,l,!1),c.set(r,a),a}function Ye(e,t,n){let r=!0;for(let o=0;o<t.length&&N(r);o++){const c=t[o];d(c)&&(r=Xe(e,t[o],n))}return r}function Xe(e,t,n){let r;const o=t.split("-");do{r=He(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function He(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(m(n)||h(n))&&n[o]&&(r=n[o])}return r}we.INVALID_ARGUMENT,we.INVALID_DATE_ARGUMENT,we.INVALID_ISO_DATE_ARGUMENT,we.NOT_SUPPORT_NON_STRING_MESSAGE,we.NOT_SUPPORT_LOCALE_PROMISE_VALUE,we.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,we.NOT_SUPPORT_LOCALE_TYPE;const Be=[];Be[0]={w:[0],i:[3,0],"[":[4],o:[7]},Be[1]={w:[1],".":[2],"[":[4],o:[7]},Be[2]={w:[2],i:[3,0],0:[3,0]},Be[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Be[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Be[5]={"'":[4,0],o:8,l:[5,0]},Be[6]={'"':[4,0],o:8,l:[6,0]};const je=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ze(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Qe(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,je.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function Je(e){const t=[];let n,r,o,c,s,a,l,i=-1,u=0,f=0;const E=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,o="\\"+t,E[0](),!0}for(E[0]=()=>{void 0===r?r=o:r+=o},E[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},E[2]=()=>{E[0](),f++},E[3]=()=>{if(f>0)f--,u=4,E[0]();else{if(f=0,void 0===r)return!1;if(r=Qe(r),!1===r)return!1;E[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(c=ze(n),l=Be[u],s=l[c]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(a=E[s[1]],a&&(o=n,!1===a())))return;if(7===u)return t}}const Ze=new Map;function qe(e,t){return L(e)?_(e,t):null}function et(e,t){if(!L(e))return null;let n=Ze.get(t);if(n||(n=Je(t),n&&Ze.set(t,n)),!n)return null;const r=n.length;let o=e,c=0;for(;c<r;){const e=n[c];if(be.includes(e)&&pe(o))return null;if(!L(o))return null;if(!E(o,e))return null;const t=o[e];if(void 0===t)return null;if(p(o))return null;o=t,c++}return o}const tt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},nt={[tt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale {resource}.",[tt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[tt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[tt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[tt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[tt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[tt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[tt.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[tt.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};const rt="11.4.17",ot="en-US",ct=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let st,at,lt;function it(e){st=e}function ut(e){at=e}function ft(e){lt=e}let Et=null;let _t=null;let mt=0;const pt=e=>({[e]:u()});function dt(e,t,n,r,o){const{missing:c,onWarn:s}=e;if(null!==c){const r=c(e,n,t,o);return d(r)?r:t}return t}function Nt(e,t){const n=e;L(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function Lt(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function Tt(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(Lt(e,t[r]))return!0;return!1}function At(e,t,n,r,o,c,s){const{fallbackLocale:a,localeFallbacker:l,onWarn:i}=e,u=l(e,a,n);for(let f=0;f<u.length;f++){const n=u[f],o=_(_(r,n)||{},t);if(h(o)&&d(n))return n;dt(e,t,n,0,s)}return null}function Ct(e,t,n){let r=`${e}__${t}`;return h(n)&&!a(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function ht(e,t,n){for(const r in n){const n=`${t}__${r}`;for(const t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function kt(e,t,n,r){const[,o,c,s]=e;let a=n;return d(o)?t.key=o:h(o)&&Object.keys(o).forEach((e=>{r.includes(e)?a[e]=o[e]:t[e]=o[e]})),d(c)?t.locale=c:h(c)&&(a=c),h(s)&&(a=s),a}const gt=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function It(...e){const[t]=e,n=u(),r=u();let s;if(d(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(we.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Error(we.INVALID_ISO_DATE_ARGUMENT)}}else if(c(t)){if(isNaN(t.getTime()))throw Error(we.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(we.INVALID_ARGUMENT);s=t}const a=kt(e,n,r,gt);return[n.key||"",s,n,a]}const Ot=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function bt(...e){const[t]=e,n=u(),r=u();if(!o(t))throw Error(we.INVALID_ARGUMENT);const c=t,s=kt(e,n,r,Ot);return[n.key||"",c,n,s]}const St=e=>e,yt=e=>"",Dt="text",Pt=e=>0===e.length?"":k(e),Rt=e=>null==e?"":m(e)||h(e)&&e.toString===A?JSON.stringify(e,null,2):String(e);function Mt(e,t){return e=Math.abs(e),2===t?1===e?0:1:Math.min(e,2)}function Ut(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return o(e.named?.count)?e.named.count:o(e.named?.n)?e.named.n:t}(e),r=d(t)&&e.pluralRules&&p(_(e.pluralRules,t))?e.pluralRules[t]:Mt,c=r===Mt?void 0:Mt,s=e.list||[],a=e.named||u(),i=o(e.pluralIndex),f=t=>{const n=function(e){return E(Object.prototype,e)}(t)?_(a,t):a[t];return!i||n||"count"!==t&&"n"!==t?n:e.pluralIndex};function N(t,n){const r=p(e.messages)?e.messages(t,!!n):!!L(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):yt)}const T=p(e.processor?.normalize)?e.processor.normalize:Pt,A=p(e.processor?.interpolate)?e.processor.interpolate:Rt,C={list:e=>s[e],named:f,plural:e=>e[r(n,e.length,c)],linked:(t,...n)=>{const[r,o]=n;let c="text",s="";1===n.length?L(r)?(s=r.modifier||s,c=r.type||c):d(r)&&(s=r||s):2===n.length&&(d(r)&&(s=r||s),d(o)&&(c=o||c));const a=N(t,!0)(C),l=""===a||void 0===a?t:a,i="vnode"===c&&m(l)&&s?l[0]:l;if(!s)return i;const u=(f=s,e.modifiers?_(e.modifiers,f):St);var f;return p(u)?u(i,c):i},message:N,type:d(e.processor?.type)?e.processor.type:Dt,interpolate:A,normalize:T,values:l(u(),s,a,i?{count:f("count"),n:f("n")}:{})};return C}const vt=()=>"",xt=e=>p(e),Ft=e=>d(e)||pe(e)||xt(e);function wt(e,t,n,r,o,c){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:i}=e,f=i(e,r,n);let E,m=u(),p=null;for(let d=0;d<f.length&&(E=f[d],m=_(s,E)||u(),null===(p=l(m,t))&&(p=_(m,t)),!Ft(p));d++)if(!Tt(E,f)){const n=dt(e,t,E,0,"translate");n!==t&&(p=n)}return[p,E,m]}function Wt(e,t,r,o,c,s){const{messageCompiler:a,warnHtmlMessage:l}=e;if(xt(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==a){const e=()=>o;return e.locale=r,e.key=t,e}const i=a(o,function(e,t,r,o,c,s){return{locale:t,key:r,warnHtmlMessage:c,onError:e=>{throw s&&s(e),e},onCacheKey:e=>n(t,r,e)}}(0,r,c,0,l,s));return i.locale=r,i.key=t,i.source=o,i}function $t(...e){const[t,n,r]=e,c=u();if(!(d(t)||o(t)||xt(t)||pe(t)))throw Error(we.INVALID_ARGUMENT);const s=o(t)?String(t):(xt(t),t);return o(n)?c.plural=n:d(n)?c.default=n:h(n)&&!a(n)?c.named=n:m(n)&&(c.list=n),o(r)?c.plural=r:d(r)?c.default=r:h(r)&&l(c,r),[s,c]}return it(Ue),ut(et),ft(Ke),e.AST_NODE_PROPS_KEYS=be,e.CORE_ERROR_CODES_EXTEND_POINT=24,e.CORE_WARN_CODES_EXTEND_POINT=10,e.CompileErrorCodes=K,e.CoreErrorCodes=we,e.CoreWarnCodes=tt,e.DATETIME_FORMAT_OPTIONS_KEYS=gt,e.DEFAULT_LOCALE=ot,e.DEFAULT_MESSAGE_DATA_TYPE=Dt,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=Ot,e.VERSION=rt,e.clearCompileCache=function(){Me=u()},e.clearDateTimeFormat=function(e,t,n){ht(e.__datetimeFormatters,t,n)},e.clearNumberFormat=function(e,t,n){ht(e.__numberFormatters,t,n)},e.compile=Ue,e.createCompileError=Y,e.createCoreContext=function(e={}){const t=p(e.onWarn)?e.onWarn:g,n=d(e.version)?e.version:rt,r=d(e.locale)||p(e.locale)?e.locale:ot,o=p(r)?ot:r,c=m(e.fallbackLocale)||h(e.fallbackLocale)||d(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o,a=h(e.messages)?e.messages:pt(o),i=h(e.datetimeFormats)?e.datetimeFormats:pt(o),f=h(e.numberFormats)?e.numberFormats:pt(o),E=l(u(),e.modifiers,{upper:(e,t)=>"text"===t&&d(e)?e.toUpperCase():"vnode"===t&&L(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&d(e)?e.toLowerCase():"vnode"===t&&L(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&d(e)?ct(e):"vnode"===t&&L(e)&&"__v_isVNode"in e?ct(e.children):e}),_=e.pluralRules||u(),T=p(e.missing)?e.missing:null,A=!N(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,C=!N(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,I=!!e.unresolving,O=p(e.postTranslation)?e.postTranslation:null,b=h(e.processor)?e.processor:null,S=!N(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,D=p(e.messageCompiler)?e.messageCompiler:st,P=p(e.messageResolver)?e.messageResolver:at||qe,R=p(e.localeFallbacker)?e.localeFallbacker:lt||Ve,M=L(e.fallbackContext)?e.fallbackContext:void 0,U=e,v=L(U.__datetimeFormatters)?U.__datetimeFormatters:new Map,x=L(U.__numberFormatters)?U.__numberFormatters:new Map,F=L(U.__meta)?U.__meta:{};mt++;const w={version:n,cid:mt,locale:r,fallbackLocale:c,messages:a,modifiers:E,pluralRules:_,missing:T,missingWarn:A,fallbackWarn:C,fallbackFormat:k,unresolving:I,postTranslation:O,processor:b,warnHtmlMessage:S,escapeParameter:y,messageCompiler:D,messageResolver:P,localeFallbacker:R,fallbackContext:M,onWarn:t,__meta:F};return w.datetimeFormats=i,w.numberFormats=f,w.__datetimeFormatters=v,w.__numberFormatters=x,w},e.createCoreError=function(e){return Y(e,null,void 0)},e.createMessageContext=Ut,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:s}=e,{__datetimeFormatters:a}=e;if(!d(t[0])&&!c(t[0])&&!o(t[0]))return"";const[i,u,f,E]=It(...t),_=(N(f.missingWarn)?f.missingWarn:e.missingWarn,N(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,!!f.part),m=We(e,f);if(!d(i)||""===i){const e=new Intl.DateTimeFormat(m.replace(/!/g,""),E);return _?e.formatToParts(u):e.format(u)}const p=At(e,i,m,n,0,0,"datetime format");if(!d(p))return r?-1:i;const L=n[p][i],T=Ct(p,i,E);let A=a.get(T);return A||(A=new Intl.DateTimeFormat(p,l({},L,E)),a.set(T,A)),_?A.formatToParts(u):A.format(u)},e.fallbackWithLocaleChain=Ke,e.fallbackWithSimple=Ve,e.getAdditionalMeta=()=>Et,e.getDevToolsHook=function(){return ve},e.getFallbackContext=()=>_t,e.getLocale=We,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&L(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(nt[e],...n)},e.handleMissing=dt,e.initI18nDevTools=function(e,t,n){ve&&ve.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isAlmostSameLocale=Lt,e.isImplicitFallback=Tt,e.isMessageAST=pe,e.isMessageFormat=Ft,e.isMessageFunction=xt,e.isTranslateFallbackWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.isTranslateMissingWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.number=function(e,...t){const{numberFormats:n,unresolving:r,onWarn:c}=e,{__numberFormatters:s}=e;if(!o(t[0]))return"";const[a,i,u,f]=bt(...t),E=(N(u.missingWarn)?u.missingWarn:e.missingWarn,N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),_=We(e,u);if(!d(a)||""===a){const e=new Intl.NumberFormat(_.replace(/!/g,""),f);return E?e.formatToParts(i):e.format(i)}const m=At(e,a,_,n,0,0,"number format");if(!d(m))return r?-1:a;const p=n[m][a],L=Ct(m,a,f);let T=s.get(L);return T||(T=new Intl.NumberFormat(m,l({},p,f)),s.set(L,T)),E?T.formatToParts(i):T.format(i)},e.parse=Je,e.parseDateTimeArgs=It,e.parseNumberArgs=bt,e.parseTranslateArgs=$t,e.registerLocaleFallbacker=ft,e.registerMessageCompiler=it,e.registerMessageResolver=ut,e.resolveLocale=Ge,e.resolveValue=et,e.resolveWithKeyValue=qe,e.setAdditionalMeta=e=>{Et=e},e.setDevToolsHook=function(e){ve=e},e.setFallbackContext=e=>{_t=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:c,messageCompiler:s,fallbackLocale:a,messages:l}=e,[i,f]=$t(...t),E=N(f.missingWarn)?f.missingWarn:e.missingWarn,T=N(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,A=N(f.escapeParameter)?f.escapeParameter:e.escapeParameter,C=!!f.resolvedMessage,h=d(f.default)||N(f.default)?N(f.default)?s?i:()=>i:f.default:n?s?i:()=>i:null,k=n||null!=h&&(d(h)||p(h)),g=We(e,f);A&&function(e){m(e.list)&&(e.list=e.list.map((e=>d(e)?I(e):e)));if(L(e.named)){const t=e.named,n=u();for(const e of Object.keys(t)){const r=t[e];n[e]=d(r)?I(r):r}e.named=n}}(f);let[O,b,S]=C?[i,g,_(l,g)||u()]:wt(e,i,g,a,T,E),y=O,D=i;if(C||Ft(y)||k&&(y=h,D=y),!(C||Ft(y)&&d(b)))return c?-1:i;let P=!1;const W=xt(y)?y:Wt(e,i,b,y,D,(()=>{P=!0}));if(P)return y;const V=function(e,t,n,r){const{modifiers:c,pluralRules:s,messageResolver:a,fallbackLocale:l,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,E=(r,o)=>{let c=a(n,r);if(null==c&&(f||o)){const[n,,o]=wt(f||e,r,t,l,i,u);c=n??a(o,r)}if(d(c)||pe(c)){let n=!1;const o=Wt(e,r,t,c,r,(()=>{n=!0}));return n?vt:o}return xt(c)?c:vt},_={locale:t,modifiers:c,pluralRules:s,messages:E};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);o(r.plural)&&(_.pluralIndex=r.plural);return _}(e,b,S,f),K=function(e,t,n){const r=t(n);return r}(0,W,Ut(V));let Y=r?r(K,i):K;var X;return A&&d(Y)&&(X=(X=(X=Y).replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,((e,t,n)=>`${t}="${G(t,n)}"`))).replace(/([\w:-]+)\s*=\s*'([^']*)'/g,((e,t,n)=>`${t}='${G(t,n)}'`)),R.test(X)&&(X=X.replace(M,"$1&#111;n$2")),U.test(X)&&(X=X.replace(v,"$1&#115;$2")),x.test(X)&&(X=X.replace(F,"&lt;$1")),Y=X.replace(w,((e,t,n,r)=>$(r)?`${t}${n}about:blank`:e))),Y},e.translateDevTools=xe,e.updateFallbackLocale=function(e,t,n){Nt(e,n),e.fallbackContext&&Nt(e.fallbackContext,n),e.localeFallbacker(e,n,t)},e}({});
6
+ var IntlifyCore=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=(e,t,n)=>r({l:e,k:t,s:n}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),c=e=>"[object Date]"===C(e),s=e=>"[object RegExp]"===C(e),a=e=>h(e)&&0===Object.keys(e).length,l=Object.assign,i=Object.create,u=(e=null)=>i(e),f=Object.prototype.hasOwnProperty;function E(e,t){return f.call(e,t)}function _(e,t){const n=e[t];return E(e,t)?n:void 0}const m=Array.isArray,d=e=>"function"==typeof e,p=e=>"string"==typeof e,N=e=>"boolean"==typeof e,L=e=>null!==e&&"object"==typeof e,T=e=>L(e)&&d(e.then)&&d(e.catch),A=Object.prototype.toString,C=e=>A.call(e),h=e=>"[object Object]"===C(e);function k(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function I(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function O(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}const g=/^javascript:/i,b=/^(?:href|xlink:href|src|action|formaction)$/i,S=/&#(?:x([0-9a-f]+)|(\d+));?/gi,y=/&(?:Tab|NewLine);/g,D=/&colon;?/gi,P=/[\u0000-\u0020\u007f-\u009f]/g,R=/^on\w/i,x=/^srcdoc$/i,M=/^(?:base|animate|set|script|plaintext)$/i,U=/^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i,v=/<(\/?)([a-z][^\t\n\f\r />]*)/iy,F=/([\t\n\f\r /]*)(?:(>)|([^\t\n\f\r />][^\t\n\f\r />=]*)(?:[\t\n\f\r ]*=[\t\n\f\r ]*(?:(["'])([\s\S]*?)(\4|$)|([^\t\n\f\r >]*)))?)/y,w=/<!--(?:>|->|[\s\S]*?--!?>)/y;function W(e,t,n){const r=t||n;if(!r)return e;const o=Number.parseInt(r,t?16:10);return o<=127?String.fromCharCode(o):e}function $(e){const t=e.replace(S,W).replace(y,"").replace(D,":").replace(P,"");return g.test(t)}function G(e,t){if(b.test(e)&&$(t))return"about:blank";const n="style"===e.toLowerCase()?function(e){const t=/url\s*\(/gi;let n,r="",o=0;for(;null!==(n=t.exec(e));){const c=n.index,s=t.lastIndex-1;let a=s+1,l=1,i=null;for(;a<e.length;a++){const t=e[a];if(i)t===i&&(i=null);else if('"'===t||"'"===t)i=t;else if("("===t)l++;else if(")"===t&&(l--,0===l))break}if(0!==l)break;const u=e.slice(s+1,a).trim(),f=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;r+=e.slice(o,c),r+=$(f)?"url(about:blank)":e.slice(c,a+1),o=a+1}return r+e.slice(o)}(t):t;return function(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(n)}function V(e){return e.replace(/</g,"&lt;")}function K(e,t,n,r){let o=e;if(R.test(e)?(r.eventHandler=!0,o=`&#111;n${e.slice(2)}`):x.test(e)&&(r.srcdoc=!0,o=`&#115;${e.slice(1)}`),void 0===t)return o;const c=n||"";return`${o}=${c}${G(e,t)}${c}`}function Y(e,t,n){v.lastIndex=t;const r=v.exec(e);if(!r)return;const[,o,c]=r;let s,a=r[0];for(F.lastIndex=v.lastIndex;s=F.exec(e);){const[r,l,i,u,f,E,_,m]=s;if(i){const n=F.lastIndex;return[o?e.slice(t,n):a+r,c,n]}if(f&&!_)break;if(!o){a+=l+K(u,f?E:m,f,n)}}return[a,c,-1]}function X(e,t,n){for(let r=e.indexOf("</",t);-1!==r;r=e.indexOf("</",r+2)){const t=Y(e,r,{});if(t&&t[1].toLowerCase()===n.toLowerCase())return-1===t[2]?-1:r}return-1}function H(e,t,n){return{start:e,end:t}}const B={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function j(e,t,n={}){const{domain:r,messages:o,args:c}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function z(e){throw e}B.EXPECTED_TOKEN,B.INVALID_TOKEN_IN_PLACEHOLDER,B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,B.UNKNOWN_ESCAPE_SEQUENCE,B.INVALID_UNICODE_ESCAPE_SEQUENCE,B.UNBALANCED_CLOSING_BRACE,B.UNTERMINATED_CLOSING_BRACE,B.EMPTY_PLACEHOLDER,B.NOT_ALLOW_NEST_PLACEHOLDER,B.INVALID_LINKED_FORMAT,B.MUST_HAVE_MESSAGES_IN_PLURAL,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,B.UNEXPECTED_EMPTY_LINKED_KEY,B.UNEXPECTED_LEXICAL_ANALYSIS,B.UNHANDLED_CODEGEN_NODE_TYPE,B.UNHANDLED_MINIFIER_NODE_TYPE;const Q=" ",J="\r",Z="\n",q=String.fromCharCode(8232),ee=String.fromCharCode(8233);function te(e){const t=e;let n=0,r=1,o=1,c=0;const s=e=>t[e]===J&&t[e+1]===Z,a=e=>t[e]===ee,l=e=>t[e]===q,i=e=>s(e)||(e=>t[e]===Z)(e)||a(e)||l(e),u=e=>s(e)||a(e)||l(e)?Z:t[e];function f(){return c=0,i(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>c,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+c),next:f,peek:function(){return s(n+c)&&c++,c++,t[n+c]},reset:function(){n=0,r=1,o=1,c=0},resetPeek:function(e=0){c=e},skipToPeek:function(){const e=n+c;for(;e!==n;)f();c=0}}}const ne=void 0,re="'";function oe(e,t={}){const n=!1!==t.location,r=te(e),o=()=>r.index(),c=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=c(),a=o(),l={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>l,{onError:u}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=H(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const E=e=>f(e,13);function _(e,t){return e.currentChar()===t?(e.next(),t):(B.EXPECTED_TOKEN,c(),"")}function m(e){let t="";for(;e.currentPeek()===Q||e.currentPeek()===Z;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=m(e);return e.skipToPeek(),t}function p(e){if(e===ne)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function N(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===ne)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function L(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(e,t=!0){const n=(t=!1,r="")=>{const o=e.currentPeek();return"{"===o?t:"@"!==o&&o?"|"===o?!(r===Q||r===Z):o===Q?(e.peek(),n(!0,Q)):o!==Z||(e.peek(),n(!0,Z)):t},r=n();return t&&e.resetPeek(),r}function A(e,t){const n=e.currentChar();return n===ne?ne:t(n)?(e.next(),n):null}function C(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function h(e){return A(e,C)}function k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function I(e){return A(e,k)}function O(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function g(e){return A(e,O)}function b(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function S(e){return A(e,b)}function y(e){let t="",n="";for(;t=g(e);)n+=t;return n}function D(e){return e!==re&&e!==Z}function P(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return R(e,t,4);case"U":return R(e,t,6);default:return B.UNKNOWN_ESCAPE_SEQUENCE,c(),""}}function R(e,t,n){_(e,t);let r="";for(let o=0;o<n;o++){const t=S(e);if(!t){B.INVALID_UNICODE_ESCAPE_SEQUENCE,c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function x(e){return"{"!==e&&"}"!==e&&e!==Q&&e!==Z}function M(e){d(e);let t="",n="";for(;t=A(e,x);)n+=t;return n}function U(e){d(e);const t=_(e,"|");return d(e),t}function v(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(B.NOT_ALLOW_NEST_PLACEHOLDER,c()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(B.EMPTY_PLACEHOLDER,c()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(B.UNTERMINATED_CLOSING_BRACE,c()),n=F(e,t)||E(t),t.braceNest=0,n;default:{let r=!0,o=!0,s=!0;if(L(e))return t.braceNest>0&&(B.UNTERMINATED_CLOSING_BRACE,c()),n=f(t,1,U(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return B.UNTERMINATED_CLOSING_BRACE,c(),t.braceNest=0,w(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=p(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){d(e);let t="",n="";for(;t=I(e);)n+=t;const r=e.currentChar();if(r&&"}"!==r&&r!==ne&&r!==Q&&r!==Z&&" "!==r){const t=M(e);return B.INVALID_TOKEN_IN_PLACEHOLDER,c(),n+t}return e.currentChar()===ne&&(B.UNTERMINATED_CLOSING_BRACE,c()),n}(e)),d(e),n;if(o=N(e,t))return n=f(t,5,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${y(e)}`):t+=y(e),e.currentChar()===ne&&(B.UNTERMINATED_CLOSING_BRACE,c()),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=e.currentPeek()===re;return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){d(e),_(e,"'");let t="",n="";for(;t=A(e,D);)n+="\\"===t?P(e):t;const r=e.currentChar();return r===Z||r===ne?(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,c(),r===Z&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!o&&!s)return n=f(t,12,M(e)),B.INVALID_TOKEN_IN_PLACEHOLDER,c(),n.value,d(e),n;break}}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||o!==Z&&o!==Q||(B.INVALID_LINKED_FORMAT,c()),o){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,8,".");case":":return d(e),e.next(),f(t,9,":");default:return L(e)?(r=f(t,1,U(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),F(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r=p(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,11,function(e){let t="",n="";for(;t=h(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?p(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===Q||!t)&&(t===Z?(e.peek(),r()):T(e,!1))},o=r();return e.resetPeek(),o}(e,t)?(d(e),"{"===o?v(e,t)||r:f(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===Q?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(B.INVALID_LINKED_FORMAT,c()),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:13};if(t.braceNest>0)return v(e,t)||E(t);if(t.inLinked)return F(e,t)||E(t);switch(e.currentChar()){case"{":return v(e,t)||E(t);case"}":return B.UNBALANCED_CLOSING_BRACE,c(),e.next(),f(t,3,"}");case"@":return F(e,t)||E(t);default:if(L(e))return n=f(t,1,U(e)),t.braceNest=0,t.inLinked=!1,n;if(T(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("\\"===n){const r=e.peek();"{"===r||"}"===r||"@"===r||"|"===r||"\\"===r?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else{if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===Q||n===Z)if(T(e))t+=n,e.next();else{if(L(e))break;t+=n,e.next()}else t+=n,e.next()}}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=o(),l.startLoc=c(),r.currentChar()===ne?f(l,13):w(r,l)},currentOffset:o,currentPosition:c,context:i}}const ce=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,se=/\\([\\@{}|])/g;function ae(e,t){return t}function le(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ie(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function o(e,n,r,o){t&&(e.end=n,e.loc&&(e.loc.end=r))}function c(e,t){const n=e.context(),c=r(3,n.offset,n.startLoc);return c.value=t.replace(se,ae),o(c,e.currentOffset(),e.currentPosition()),c}function s(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(5,c,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function a(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(4,c,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function i(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(9,c,s);return a.value=t.replace(ce,le),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let c=e.nextToken();if(8===c.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(8,c,s);return 11!==t.type?(B.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,a.value="",o(a,c,s),{nextConsumeToken:t,node:a}):(null==t.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,ue(t)),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(9!==c.type&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(c)),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 10:null==c.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(c)),n.key=function(e,t){const n=e.context(),c=r(7,n.offset,n.startLoc);return c.value=t,o(c,e.currentOffset(),e.currentPosition()),c}(e,c.value||"");break;case 4:null==c.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(c)),n.key=a(e,c.value||"");break;case 5:null==c.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(c)),n.key=s(e,c.value||"");break;case 6:null==c.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(c)),n.key=i(e,c.value||"");break;default:{B.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),a=r(7,s.offset,s.startLoc);return a.value="",o(a,s.offset,s.startLoc),n.key=a,o(n,s.offset,s.startLoc),{nextConsumeToken:c,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let l=null;do{const r=l||e.nextToken();switch(l=null,r.type){case 0:null==r.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(r)),n.items.push(c(e,r.value||""));break;case 5:null==r.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(r)),n.items.push(a(e,r.value||""));break;case 6:null==r.value&&(B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,ue(r)),n.items.push(i(e,r.value||""));break;case 7:{const t=u(e);n.items.push(t.node),l=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function E(e){const t=e.context(),{offset:n,startLoc:c}=t,s=f(e);return 13===t.currentType?s:function(e,t,n,c){const s=e.context();let a=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);a||(a=0===t.items.length),l.cases.push(t)}while(13!==s.currentType);return a&&B.MUST_HAVE_MESSAGES_IN_PLURAL,o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,s)}return{parse:function(n){const c=oe(n,l({},e)),s=c.context(),a=r(0,s.offset,s.startLoc);return t&&a.loc&&(a.loc.source=n),a.body=E(c),e.onCacheKey&&(a.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(B.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),o(a,c.currentOffset(),c.currentPosition()),a}}}function ue(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function fe(e,t){for(let n=0;n<e.length;n++)Ee(e[n],t)}function Ee(e,t){switch(e.type){case 1:fe(e.cases,t),t.helper("plural");break;case 2:fe(e.items,t);break;case 6:Ee(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function _e(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Ee(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function me(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=k(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function de(e){switch(e.t=e.type,e.type){case 0:{const t=e;de(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)de(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)de(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;de(t.key),t.k=t.key,delete t.key,t.modifier&&(de(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function pe(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?pe(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(pe(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let c=0;c<o&&(pe(e,t.items[c]),c!==o-1);c++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),pe(e,t.key),t.modifier?(e.push(", "),pe(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}const Ne=(e,t={})=>{const n=p(t.mode)?t.mode:"normal",r=p(t.filename)?t.filename:"message.intl";t.sourceMap;const o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",c=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],a=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,c=!1!==t.location,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function a(e,t){s.code+=e}function l(e,t=!0){const n=t?r:"";a(o?n+" ".repeat(e):n)}return c&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:a,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{filename:r,breakLineCode:o,needIndent:c});a.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(c),s.length>0&&(a.push(`const { ${k(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),a.newline()),a.push("return "),pe(a,e),a.deindent(c),a.push("}"),delete e.helpers;const{code:l,map:i}=a.context();return{ast:e,code:l,map:i?i.toJSON():void 0}};function Le(e,t={}){const n=l({},t),r=!!n.jit,o=!!n.minify,c=null==n.optimize||n.optimize,s=ie(n).parse(e);return r?(c&&function(e){const t=e.body;2===t.type?me(t):t.cases.forEach((e=>me(e)))}(s),o&&de(s),{ast:s,code:""}):(_e(s,n),Ne(s,n))}function Te(e){return L(e)&&0===Oe(e)&&(E(e,"b")||E(e,"body"))}const Ae=["b","body"];const Ce=["c","cases"];const he=["s","static"];const ke=["i","items"];const Ie=["t","type"];function Oe(e){return De(e,Ie)}const ge=["v","value"];function be(e,t){const n=De(e,ge);if(null!=n)return n;throw Re(t)}const Se=["m","modifier"];const ye=["k","key"];function De(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(E(e,n)&&null!=e[n])return e[n]}return n}const Pe=[...Ae,...Ce,...he,...ke,...ye,...Se,...ge,...Ie];function Re(e){return new Error(`unhandled node type: ${e}`)}function xe(e){return t=>function(e,t){const n=(r=t,De(r,Ae));var r;if(null==n)throw Re(0);if(1===Oe(n)){const t=function(e){return De(e,Ce,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,Me(e,n)]),[]))}return Me(e,n)}(t,e)}function Me(e,t){const n=function(e){return De(e,he)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return De(e,ke,[])}(t).reduce(((t,n)=>[...t,Ue(e,n)]),[]);return e.normalize(n)}}function Ue(e,t){const n=Oe(t);switch(n){case 3:case 9:case 7:case 8:return be(t,n);case 4:{const r=t;if(E(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(E(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Re(n)}case 5:{const r=t;if(E(r,"i")&&o(r.i))return e.interpolate(e.list(r.i));if(E(r,"index")&&o(r.index))return e.interpolate(e.list(r.index));throw Re(n)}case 6:{const n=t,r=function(e){return De(e,Se)}(n),o=function(e){const t=De(e,ye);if(t)return t;throw Re(6)}(n);return e.linked(Ue(e,o),r?Ue(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const ve=e=>e;let Fe=u();function we(e,t){if(p(e)){!N(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||ve)(e),r=Fe[n];if(r)return r;const{ast:o,detectError:c}=function(e,t={}){let n=!1;const r=t.onError||z;return t.onError=e=>{n=!0,r(e)},{...Le(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=xe(o);return c?s:Fe[n]=s}{if(!Te(e))return()=>e;const t=e.cacheKey;if(t){const n=Fe[t];return n||(Fe[t]=xe(e))}return xe(e)}}let We=null;const $e=Ge("function:translate");function Ge(e){return t=>We&&We.emit(e,t)}const Ve={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Ke(e,t){return null!=t.locale?Xe(t.locale):Xe(e.locale)}let Ye;function Xe(e){if(p(e))return e;if(d(e)){if(e.resolvedOnce&&null!=Ye)return Ye;if("Function"===e.constructor.name){const t=e();if(T(t))throw Error(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ye=t}throw Error(Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(Ve.NOT_SUPPORT_LOCALE_TYPE)}function He(e,t,n){return[...new Set([n,...m(t)?t:L(t)?Object.keys(t).filter((e=>"default"!==e)):p(t)?[t]:[n]])]}function Be(e,t,n){const r=p(n)?n:lt,o=e;let c;L(t)?(o.__localeChainObjectCache||(o.__localeChainObjectCache=new WeakMap),c=o.__localeChainObjectCache.get(t),c||(c=new Map,o.__localeChainObjectCache.set(t,c))):(o.__localeChainCache||(o.__localeChainCache=new Map),c=o.__localeChainCache.get(t),c||(c=new Map,o.__localeChainCache.set(t,c)));const s=c.get(r);if(s)return s;const a=[];let l=[n];for(;m(l);)l=je(a,l,t);const i=m(t)||!h(t)?t:t.default?t.default:null;return l=p(i)?[i]:i,m(l)&&je(a,l,!1),c.set(r,a),a}function je(e,t,n){let r=!0;for(let o=0;o<t.length&&N(r);o++){const c=t[o];p(c)&&(r=ze(e,t[o],n))}return r}function ze(e,t,n){let r;const o=t.split("-");do{r=Qe(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function Qe(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(m(n)||h(n))&&n[o]&&(r=n[o])}return r}Ve.INVALID_ARGUMENT,Ve.INVALID_DATE_ARGUMENT,Ve.INVALID_ISO_DATE_ARGUMENT,Ve.NOT_SUPPORT_NON_STRING_MESSAGE,Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Ve.NOT_SUPPORT_LOCALE_TYPE;const Je=[];Je[0]={w:[0],i:[3,0],"[":[4],o:[7]},Je[1]={w:[1],".":[2],"[":[4],o:[7]},Je[2]={w:[2],i:[3,0],0:[3,0]},Je[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Je[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Je[5]={"'":[4,0],o:8,l:[5,0]},Je[6]={'"':[4,0],o:8,l:[6,0]};const Ze=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function qe(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function et(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Ze.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}function tt(e){const t=[];let n,r,o,c,s,a,l,i=-1,u=0,f=0;const E=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,o="\\"+t,E[0](),!0}for(E[0]=()=>{void 0===r?r=o:r+=o},E[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},E[2]=()=>{E[0](),f++},E[3]=()=>{if(f>0)f--,u=4,E[0]();else{if(f=0,void 0===r)return!1;if(r=et(r),!1===r)return!1;E[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(c=qe(n),l=Je[u],s=l[c]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(a=E[s[1]],a&&(o=n,!1===a())))return;if(7===u)return t}}const nt=new Map;function rt(e,t){return L(e)?_(e,t):null}function ot(e,t){if(!L(e))return null;let n=nt.get(t);if(n||(n=tt(t),n&&nt.set(t,n)),!n)return null;const r=n.length;let o=e,c=0;for(;c<r;){const e=n[c];if(Pe.includes(e)&&Te(o))return null;if(!L(o))return null;if(!E(o,e))return null;const t=o[e];if(void 0===t)return null;if(d(o))return null;o=t,c++}return o}const ct={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},st={[ct.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale {resource}.",[ct.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ct.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ct.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ct.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ct.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ct.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[ct.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[ct.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};const at="11.4.19",lt="en-US",it=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let ut,ft,Et;function _t(e){ut=e}function mt(e){ft=e}function dt(e){Et=e}let pt=null;let Nt=null;let Lt=0;const Tt=e=>({[e]:u()});function At(e,t,n,r,o){const{missing:c,onWarn:s}=e;if(null!==c){const r=c(e,n,t,o);return p(r)?r:t}return t}function Ct(e,t){const n=e;L(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function ht(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function kt(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(ht(e,t[r]))return!0;return!1}function It(e,t,n,r,o,c,s){const{fallbackLocale:a,localeFallbacker:l,onWarn:i}=e,u=l(e,a,n);for(let f=0;f<u.length;f++){const n=u[f],o=_(_(r,n)||{},t);if(h(o)&&p(n))return n;At(e,t,n,0,s)}return null}function Ot(e,t,n){let r=`${e}__${t}`;return h(n)&&!a(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function gt(e,t,n){for(const r in n){const n=`${t}__${r}`;for(const t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function bt(e,t,n,r){const[,o,c,s]=e;let a=n;return p(o)?t.key=o:h(o)&&Object.keys(o).forEach((e=>{r.includes(e)?a[e]=o[e]:t[e]=o[e]})),p(c)?t.locale=c:h(c)&&(a=c),h(s)&&(a=s),a}const St=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function yt(...e){const[t]=e,n=u(),r=u();let s;if(p(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Ve.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Error(Ve.INVALID_ISO_DATE_ARGUMENT)}}else if(c(t)){if(isNaN(t.getTime()))throw Error(Ve.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(Ve.INVALID_ARGUMENT);s=t}const a=bt(e,n,r,St);return[n.key||"",s,n,a]}const Dt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Pt(...e){const[t]=e,n=u(),r=u();if(!o(t))throw Error(Ve.INVALID_ARGUMENT);const c=t,s=bt(e,n,r,Dt);return[n.key||"",c,n,s]}const Rt=e=>e,xt=e=>"",Mt="text",Ut=e=>0===e.length?"":k(e),vt=e=>null==e?"":m(e)||h(e)&&e.toString===A?JSON.stringify(e,null,2):String(e);function Ft(e,t){return e=Math.abs(e),2===t?1===e?0:1:Math.min(e,2)}function wt(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return o(e.named?.count)?e.named.count:o(e.named?.n)?e.named.n:t}(e),r=p(t)&&e.pluralRules&&d(_(e.pluralRules,t))?e.pluralRules[t]:Ft,c=r===Ft?void 0:Ft,s=e.list||[],a=e.named||u(),i=o(e.pluralIndex),f=t=>{const n=function(e){return E(Object.prototype,e)}(t)?_(a,t):a[t];return!i||n||"count"!==t&&"n"!==t?n:e.pluralIndex};function N(t,n){const r=d(e.messages)?e.messages(t,!!n):!!L(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):xt)}const T=d(e.processor?.normalize)?e.processor.normalize:Ut,A=d(e.processor?.interpolate)?e.processor.interpolate:vt,C={list:e=>s[e],named:f,plural:e=>e[r(n,e.length,c)],linked:(t,...n)=>{const[r,o]=n;let c="text",s="";1===n.length?L(r)?(s=r.modifier||s,c=r.type||c):p(r)&&(s=r||s):2===n.length&&(p(r)&&(s=r||s),p(o)&&(c=o||c));const a=N(t,!0)(C),l=""===a||void 0===a?t:a,i="vnode"===c&&m(l)&&s?l[0]:l;if(!s)return i;const u=(f=s,e.modifiers?_(e.modifiers,f):Rt);var f;return d(u)?u(i,c):i},message:N,type:p(e.processor?.type)?e.processor.type:Mt,interpolate:A,normalize:T,values:l(u(),s,a,i?{count:f("count"),n:f("n")}:{})};return C}const Wt=()=>"",$t=e=>d(e),Gt=e=>p(e)||Te(e)||$t(e);function Vt(e,t,n,r,o,c){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:i}=e,f=i(e,r,n);let E,m=u(),d=null;for(let p=0;p<f.length&&(E=f[p],m=_(s,E)||u(),null===(d=l(m,t))&&(d=_(m,t)),!Gt(d));p++)if(!kt(E,f)){const n=At(e,t,E,0,"translate");n!==t&&(d=n)}return[d,E,m]}function Kt(e,t,r,o,c,s){const{messageCompiler:a,warnHtmlMessage:l}=e;if($t(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==a){const e=()=>o;return e.locale=r,e.key=t,e}const i=a(o,function(e,t,r,o,c,s){return{locale:t,key:r,warnHtmlMessage:c,onError:e=>{throw s&&s(e),e},onCacheKey:e=>n(t,r,e)}}(0,r,c,0,l,s));return i.locale=r,i.key=t,i.source=o,i}function Yt(...e){const[t,n,r]=e,c=u();if(!(p(t)||o(t)||$t(t)||Te(t)))throw Error(Ve.INVALID_ARGUMENT);const s=o(t)?String(t):($t(t),t);return o(n)?c.plural=n:p(n)?c.default=n:h(n)&&!a(n)?c.named=n:m(n)&&(c.list=n),o(r)?c.plural=r:p(r)?c.default=r:h(r)&&l(c,r),[s,c]}return _t(we),mt(ot),dt(Be),e.AST_NODE_PROPS_KEYS=Pe,e.CORE_ERROR_CODES_EXTEND_POINT=24,e.CORE_WARN_CODES_EXTEND_POINT=10,e.CompileErrorCodes=B,e.CoreErrorCodes=Ve,e.CoreWarnCodes=ct,e.DATETIME_FORMAT_OPTIONS_KEYS=St,e.DEFAULT_LOCALE=lt,e.DEFAULT_MESSAGE_DATA_TYPE=Mt,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=Dt,e.VERSION=at,e.clearCompileCache=function(){Fe=u()},e.clearDateTimeFormat=function(e,t,n){gt(e.__datetimeFormatters,t,n)},e.clearNumberFormat=function(e,t,n){gt(e.__numberFormatters,t,n)},e.compile=we,e.createCompileError=j,e.createCoreContext=function(e={}){const t=d(e.onWarn)?e.onWarn:I,n=p(e.version)?e.version:at,r=p(e.locale)||d(e.locale)?e.locale:lt,o=d(r)?lt:r,c=m(e.fallbackLocale)||h(e.fallbackLocale)||p(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o,a=h(e.messages)?e.messages:Tt(o),i=h(e.datetimeFormats)?e.datetimeFormats:Tt(o),f=h(e.numberFormats)?e.numberFormats:Tt(o),E=l(u(),e.modifiers,{upper:(e,t)=>"text"===t&&p(e)?e.toUpperCase():"vnode"===t&&L(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&p(e)?e.toLowerCase():"vnode"===t&&L(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&p(e)?it(e):"vnode"===t&&L(e)&&"__v_isVNode"in e?it(e.children):e}),_=e.pluralRules||u(),T=d(e.missing)?e.missing:null,A=!N(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,C=!N(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,O=!!e.unresolving,g=d(e.postTranslation)?e.postTranslation:null,b=h(e.processor)?e.processor:null,S=!N(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,D=d(e.messageCompiler)?e.messageCompiler:ut,P=d(e.messageResolver)?e.messageResolver:ft||rt,R=d(e.localeFallbacker)?e.localeFallbacker:Et||He,x=L(e.fallbackContext)?e.fallbackContext:void 0,M=e,U=L(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,v=L(M.__numberFormatters)?M.__numberFormatters:new Map,F=L(M.__meta)?M.__meta:{};Lt++;const w={version:n,cid:Lt,locale:r,fallbackLocale:c,messages:a,modifiers:E,pluralRules:_,missing:T,missingWarn:A,fallbackWarn:C,fallbackFormat:k,unresolving:O,postTranslation:g,processor:b,warnHtmlMessage:S,escapeParameter:y,messageCompiler:D,messageResolver:P,localeFallbacker:R,fallbackContext:x,onWarn:t,__meta:F};return w.datetimeFormats=i,w.numberFormats=f,w.__datetimeFormatters=U,w.__numberFormatters=v,w},e.createCoreError=function(e){return j(e,null,void 0)},e.createMessageContext=wt,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:s}=e,{__datetimeFormatters:a}=e;if(!p(t[0])&&!c(t[0])&&!o(t[0]))return"";const[i,u,f,E]=yt(...t),_=(N(f.missingWarn)?f.missingWarn:e.missingWarn,N(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,!!f.part),m=Ke(e,f);if(!p(i)||""===i){const e=new Intl.DateTimeFormat(m.replace(/!/g,""),E);return _?e.formatToParts(u):e.format(u)}const d=It(e,i,m,n,0,0,"datetime format");if(!p(d))return r?-1:i;const L=n[d][i],T=Ot(d,i,E);let A=a.get(T);return A||(A=new Intl.DateTimeFormat(d,l({},L,E)),a.set(T,A)),_?A.formatToParts(u):A.format(u)},e.fallbackWithLocaleChain=Be,e.fallbackWithSimple=He,e.getAdditionalMeta=()=>pt,e.getDevToolsHook=function(){return We},e.getFallbackContext=()=>Nt,e.getLocale=Ke,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&L(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(st[e],...n)},e.handleMissing=At,e.initI18nDevTools=function(e,t,n){We&&We.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isAlmostSameLocale=ht,e.isImplicitFallback=kt,e.isMessageAST=Te,e.isMessageFormat=Gt,e.isMessageFunction=$t,e.isTranslateFallbackWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.isTranslateMissingWarn=function(e,t){return e instanceof RegExp?e.test(t):e},e.number=function(e,...t){const{numberFormats:n,unresolving:r,onWarn:c}=e,{__numberFormatters:s}=e;if(!o(t[0]))return"";const[a,i,u,f]=Pt(...t),E=(N(u.missingWarn)?u.missingWarn:e.missingWarn,N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),_=Ke(e,u);if(!p(a)||""===a){const e=new Intl.NumberFormat(_.replace(/!/g,""),f);return E?e.formatToParts(i):e.format(i)}const m=It(e,a,_,n,0,0,"number format");if(!p(m))return r?-1:a;const d=n[m][a],L=Ot(m,a,f);let T=s.get(L);return T||(T=new Intl.NumberFormat(m,l({},d,f)),s.set(L,T)),E?T.formatToParts(i):T.format(i)},e.parse=tt,e.parseDateTimeArgs=yt,e.parseNumberArgs=Pt,e.parseTranslateArgs=Yt,e.registerLocaleFallbacker=dt,e.registerMessageCompiler=_t,e.registerMessageResolver=mt,e.resolveLocale=Xe,e.resolveValue=ot,e.resolveWithKeyValue=rt,e.setAdditionalMeta=e=>{pt=e},e.setDevToolsHook=function(e){We=e},e.setFallbackContext=e=>{Nt=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:c,messageCompiler:s,fallbackLocale:a,messages:l}=e,[i,f]=Yt(...t),E=N(f.missingWarn)?f.missingWarn:e.missingWarn,T=N(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,A=N(f.escapeParameter)?f.escapeParameter:e.escapeParameter,C=!!f.resolvedMessage,h=p(f.default)||N(f.default)?N(f.default)?s?i:()=>i:f.default:n?s?i:()=>i:null,k=n||null!=h&&(p(h)||d(h)),I=Ke(e,f);A&&function(e){m(e.list)&&(e.list=e.list.map((e=>p(e)?O(e):e)));if(L(e.named)){const t=e.named,n=u();for(const e of Object.keys(t)){const r=t[e];n[e]=p(r)?O(r):r}e.named=n}}(f);let[g,b,S]=C?[i,I,_(l,I)||u()]:Vt(e,i,I,a,T,E),y=g,D=i;if(C||Gt(y)||k&&(y=h,D=y),!(C||Gt(y)&&p(b)))return c?-1:i;let P=!1;const R=$t(y)?y:Kt(e,i,b,y,D,(()=>{P=!0}));if(P)return y;const x=function(e,t,n,r){const{modifiers:c,pluralRules:s,messageResolver:a,fallbackLocale:l,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,E=(r,o)=>{let c=a(n,r);if(null==c&&(f||o)){const[n,,o]=Vt(f||e,r,t,l,i,u);c=n??a(o,r)}if(p(c)||Te(c)){let n=!1;const o=Kt(e,r,t,c,r,(()=>{n=!0}));return n?Wt:o}return $t(c)?c:Wt},_={locale:t,modifiers:c,pluralRules:s,messages:E};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);o(r.plural)&&(_.pluralIndex=r.plural);return _}(e,b,S,f),v=function(e,t,n){const r=t(n);return r}(0,R,wt(x));let F=r?r(v,i):v;return A&&p(F)&&(F=function(e){const t={};let n,r="",o=0;for(;-1!==(n=e.indexOf("<",o));){r+=e.slice(o,n),o=n+1;const c=Y(e,n,t);if(c){const[s,a,l]=c;if(-1===l){t.unclosed=!0,r+=V(e.slice(n)),o=e.length;break}if(o=l,"/"===s[1])r+=s;else if(M.test(a))t.element=!0,r+=V(s);else if(U.test(a)){const n=X(e,l,a);-1===n?(t.unclosed=!0,r+=V(s)):(r+=s+V(e.slice(l,n)),o=n)}else r+=s}else w.lastIndex=n,w.test(e)?(r+=e.slice(n,w.lastIndex),o=w.lastIndex):(e.startsWith("\x3c!--",n)&&(t.unclosed=!0),r+="&lt;")}return r+=e.slice(o),r}(F)),F},e.translateDevTools=$e,e.updateFallbackLocale=function(e,t,n){Ct(e,n),e.fallbackContext&&Ct(e.fallbackContext,n),e.localeFallbacker(e,n,t)},e}({});
package/dist/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * core v11.4.17
2
+ * core v11.4.19
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * core v11.4.17
2
+ * core v11.4.19
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * core v11.4.17
2
+ * core v11.4.19
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */