Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@intlify/core-base

Package Overview
Dependencies
Maintainers
2
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intlify/core-base - npm Package Compare versions

Comparing version 9.2.0-beta.33 to 9.2.0-beta.34

4

dist/core-base.cjs.js
/*!
* core-base v9.2.0-beta.33
* core-base v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi

@@ -546,3 +546,3 @@ * Released under the MIT License.

*/
const VERSION = '9.2.0-beta.33';
const VERSION = '9.2.0-beta.34';
const NOT_REOSLVED = -1;

@@ -549,0 +549,0 @@ const DEFAULT_LOCALE = 'en-US';

/*!
* core-base v9.2.0-beta.33
* core-base v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi

@@ -546,3 +546,3 @@ * Released under the MIT License.

*/
const VERSION = '9.2.0-beta.33';
const VERSION = '9.2.0-beta.34';
const NOT_REOSLVED = -1;

@@ -549,0 +549,0 @@ const DEFAULT_LOCALE = 'en-US';

/*!
* core-base v9.2.0-beta.33
* core-base v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
const e=/\{([0-9a-zA-Z]+)\}/g;const t=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),n=e=>"number"==typeof e&&isFinite(e),r=e=>"[object RegExp]"===d(e),o=e=>k(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const a=Object.assign;function s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const l=Array.isArray,u=e=>"function"==typeof e,i=e=>"string"==typeof e,f=e=>"boolean"==typeof e,m=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),k=e=>"[object Object]"===d(e),_={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,__EXTEND_POINT__:15};function h(e,t,n={}){const{domain:r,messages:o,args:c}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=r,a}function b(e){throw e}function T(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const L=String.fromCharCode(8232),g=String.fromCharCode(8233);function E(e){const t=e;let n=0,r=1,o=1,c=0;const a=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===g,l=e=>t[e]===L,u=e=>a(e)||(e=>"\n"===t[e])(e)||s(e)||l(e),i=e=>a(e)||s(e)||l(e)?"\n":t[e];function f(){return c=0,u(n)&&(r++,o=0),a(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>c,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+c),next:f,peek:function(){return a(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 N=void 0;function y(e,t={}){const n=!1!==t.location,r=E(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},a=c(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=T(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(c(),"")}function d(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function k(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function L(e,t=!0){const n=(t=!1,r="",o=!1)=>{const c=e.currentPeek();return"{"===c?"%"!==r&&t:"@"!==c&&c?"%"===c?(e.peek(),n(t,"%",!0)):"|"===c?!("%"!==r&&!o)||!(" "===r||"\n"===r):" "===c?(e.peek(),n(!0," ",o)):"\n"!==c||(e.peek(),n(!0,"\n",o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function g(e,t){const n=e.currentChar();return n===N?N:t(n)?(e.next(),n):null}function y(e){return g(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function A(e){return g(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function C(e){return g(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=A(e);)n+=t;return n}function x(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return c(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=C(e);if(!t){c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){k(e);const t=p(e,"|");return k(e),t}function v(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),k(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&k(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&c(),n=F(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(b(e))return t.braceNest>0&&c(),n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return c(),t.braceNest=0,w(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){k(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===N&&c(),n}(e)),k(e),n;if(o=h(e,t))return n=f(t,6,function(e){k(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===N&&c(),t}(e)),k(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){k(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=g(e,r);)n+="\\"===t?x(e):t;const o=e.currentChar();return"\n"===o||o===N?(c(),"\n"===o&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),k(e),n;if(!r&&!o&&!a)return n=f(t,13,function(e){k(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=g(e,r);)n+=t;return n}(e)),c(),n.value,k(e),n}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==o&&" "!==o||c(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return k(e),e.next(),f(t,9,".");case":":return k(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(k(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(k(e),f(t,12,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):_(t))},o=r();return e.resetPeek(),o}(e,t)?(k(e),"{"===o?v(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?" "===o?r:"\n"===o?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&c(),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return v(e,t)||m(t);if(t.inLinked)return F(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return v(e,t)||m(t);case"}":return c(),e.next(),f(t,3,"}");case"@":return F(e,t)||m(t);default:if(b(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(L(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!L(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(L(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=o(),l.startLoc=c(),r.currentChar()===N?f(l,14):w(r,l)},currentOffset:o,currentPosition:c,context:u}}const A=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function C(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 O(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&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,o(c,e.currentOffset(),e.currentPosition()),c}function s(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(5,c,a);return s.index=parseInt(t,10),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(4,c,a);return s.key=t,e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(9,c,a);return s.value=t.replace(A,C),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let c=e.nextToken();if(9===c.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(8,c,a);return 12!==t.type?(n.lastStartLoc,s.value="",o(s,c,a),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,x(t)),s.value=t.value||"",o(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(10!==c.type&&(t.lastStartLoc,x(c)),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 11:null==c.value&&(t.lastStartLoc,x(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 5:null==c.value&&(t.lastStartLoc,x(c)),n.key=l(e,c.value||"");break;case 6:null==c.value&&(t.lastStartLoc,x(c)),n.key=s(e,c.value||"");break;case 7:null==c.value&&(t.lastStartLoc,x(c)),n.key=u(e,c.value||"");break;default:t.lastStartLoc;const a=e.context(),i=r(7,a.offset,a.startLoc);return i.value="",o(i,a.offset,a.startLoc),n.key=i,o(n,a.offset,a.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 a=null;do{const r=a||e.nextToken();switch(a=null,r.type){case 0:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(c(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),a=o.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:c}=t,a=f(e);return 14===t.currentType?a:function(e,t,n,c){const a=e.context();let s=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);s||(s=0===t.items.length),l.cases.push(t)}while(14!==a.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,a)}return{parse:function(n){const c=y(n,a({},e)),s=c.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(c),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,c.currentOffset(),c.currentPosition()),l}}}function x(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function I(e,t){for(let n=0;n<e.length;n++)P(e[n],t)}function P(e,t){switch(e.type){case 1:I(e.cases,t),t.helper("plural");break;case 2:I(e.items,t);break;case 6:P(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function v(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&&P(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function F(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?F(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&&(F(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 n=0;n<o&&(F(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),F(e,t.key),t.modifier&&(e.push(", "),F(e,t.modifier)),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)}}function w(e,t={}){const n=a({},t),r=O(n).parse(e);return v(r,n),((e,t={})=>{const n=i(t.mode)?t.mode:"normal",r=i(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,c=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:c}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:c,indentLevel:0};function s(e,t){a.code+=e}function l(e,t=!0){const n=t?o:"";s(c?n+" ".repeat(e):n)}return{context:()=>a,push:s,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:c,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),F(l,e),l.deindent(a),l.push("}");const{code:u,map:f}=l.context();return{ast:e,code:u,map:f?f.toJSON():void 0}})(r,n)}const S=[];S[0]={w:[0],i:[3,0],"[":[4],o:[7]},S[1]={w:[1],".":[2],"[":[4],o:[7]},S[2]={w:[2],i:[3,0],0:[3,0]},S[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},S[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},S[5]={"'":[4,0],o:8,l:[5,0]},S[6]={'"':[4,0],o:8,l:[6,0]};const R=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function D(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 M(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,R.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 W(e){const t=[];let n,r,o,c,a,s,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=M(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(c=D(n),l=S[i],a=l[c]||l.l||8,8===a)return;if(i=a[0],void 0!==a[1]&&(s=m[a[1]],s&&(o=n,!1===s())))return;if(7===i)return t}}const $=new Map;function U(e,t){return m(e)?e[t]:null}function K(e,t){if(!m(e))return null;let n=$.get(t);if(n||(n=W(t),n&&$.set(t,n)),!n)return null;const r=n.length;let o=e,c=0;for(;c<r;){const e=o[n[c]];if(void 0===e)return null;o=e,c++}return o}const j=e=>e,B=e=>"",G="text",V=e=>0===e.length?"":e.join(""),H=e=>null==e?"":l(e)||k(e)&&e.toString===p?JSON.stringify(e,null,2):String(e);function X(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function z(e={}){const t=e.locale,r=function(e){const t=n(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(n(e.named.count)||n(e.named.n))?n(e.named.count)?e.named.count:n(e.named.n)?e.named.n:t:t}(e),o=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?e.pluralRules[t]:X,c=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?X:void 0,a=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function l(t){const n=u(e.messages)?e.messages(t):!!m(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):B)}const f=k(e.processor)&&u(e.processor.normalize)?e.processor.normalize:V,p=k(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:H,d={list:e=>a[e],named:e=>s[e],plural:e=>e[o(r,e.length,c)],linked:(t,n)=>{const r=l(t)(d);return i(n)?(o=n,e.modifiers?e.modifiers[o]:j)(r):r;var o},message:l,type:k(e.processor)&&i(e.processor.type)?e.processor.type:"text",interpolate:p,normalize:f};return d}const J="i18n:init";let Y=null;function Q(e){Y=e}function q(){return Y}function Z(e,t,n){Y&&Y.emit(J,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ee=te("function:translate");function te(e){return t=>Y&&Y.emit(e,t)}const ne={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,__EXTEND_POINT__:7},re={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function oe(t,...n){return function(t,...n){return 1===n.length&&m(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(re[t],...n)}function ce(e,t,n){return[...new Set([n,...l(t)?t:m(t)?Object.keys(t):i(t)?[t]:[n]])]}function ae(e,t,n){const r=i(n)?n:me,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let c=o.__localeChainCache.get(r);if(!c){c=[];let e=[n];for(;l(e);)e=se(c,e,t);const a=l(t)||!k(t)?t:t.default?t.default:null;e=i(a)?[a]:a,l(e)&&se(c,e,!1),o.__localeChainCache.set(r,c)}return c}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&f(r);o++){const c=t[o];i(c)&&(r=le(e,t[o],n))}return r}function le(e,t,n){let r;const o=t.split("-");do{r=ue(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function ue(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),(l(n)||k(n))&&n[o]&&(r=n[o])}return r}const ie="9.2.0-beta.33",fe=-1,me="en-US",pe="";let de,ke,_e;function he(e){de=e}function be(e){ke=e}function Te(e){_e=e}let Le=null;const ge=e=>{Le=e},Ee=()=>Le;let Ne=null;const ye=e=>{Ne=e},Ae=()=>Ne;let Ce=0;function Oe(e={}){const t=i(e.version)?e.version:"9.2.0-beta.33",n=i(e.locale)?e.locale:me,o=l(e.fallbackLocale)||k(e.fallbackLocale)||i(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=k(e.messages)?e.messages:{[n]:{}},p=k(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=k(e.numberFormats)?e.numberFormats:{[n]:{}},_=a({},e.modifiers||{},{upper:e=>i(e)?e.toUpperCase():e,lower:e=>i(e)?e.toLowerCase():e,capitalize:e=>i(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),h=e.pluralRules||{},b=u(e.missing)?e.missing:null,T=!f(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,L=!f(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,E=!!e.unresolving,N=u(e.postTranslation)?e.postTranslation:null,y=k(e.processor)?e.processor:null,A=!f(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,O=u(e.messageCompiler)?e.messageCompiler:de,x=u(e.messageResolver)?e.messageResolver:ke||U,I=u(e.localeFallbacker)?e.localeFallbacker:_e||ce,P=m(e.fallbackContext)?e.fallbackContext:void 0,v=u(e.onWarn)?e.onWarn:c,F=e,w=m(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,S=m(F.__numberFormatters)?F.__numberFormatters:new Map,R=m(F.__meta)?F.__meta:{};Ce++;const D={version:t,cid:Ce,locale:n,fallbackLocale:o,messages:s,modifiers:_,pluralRules:h,missing:b,missingWarn:T,fallbackWarn:L,fallbackFormat:g,unresolving:E,postTranslation:N,processor:y,warnHtmlMessage:A,escapeParameter:C,messageCompiler:O,messageResolver:x,localeFallbacker:I,fallbackContext:P,onWarn:v,__meta:R};return D.datetimeFormats=p,D.numberFormats=d,D.__datetimeFormatters=w,D.__numberFormatters=S,D}function xe(e,t){return e instanceof RegExp?e.test(t):e}function Ie(e,t){return e instanceof RegExp?e.test(t):e}function Pe(e,t,n,r,o){const{missing:c,onWarn:a}=e;if(null!==c){const r=c(e,n,t,o);return i(r)?r:t}return t}function ve(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Fe=e=>e;let we=Object.create(null);function Se(){we=Object.create(null)}function Re(e,t={}){{const n=(t.onCacheKey||Fe)(e),r=we[n];if(r)return r;let o=!1;const c=t.onError||b;t.onError=e=>{o=!0,c(e)};const{code:a}=w(e,t),s=new Function(`return ${a}`)();return o?s:we[n]=s}}let De=_.__EXTEND_POINT__;const Me=()=>++De,We={INVALID_ARGUMENT:De,INVALID_DATE_ARGUMENT:Me(),INVALID_ISO_DATE_ARGUMENT:Me(),__EXTEND_POINT__:Me()};function $e(e){return h(e,null,void 0)}const Ue=()=>"",Ke=e=>u(e);function je(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,messageCompiler:a,fallbackLocale:u,messages:p}=e,[d,k]=Ve(...t),_=f(k.missingWarn)?k.missingWarn:e.missingWarn,h=f(k.fallbackWarn)?k.fallbackWarn:e.fallbackWarn,b=f(k.escapeParameter)?k.escapeParameter:e.escapeParameter,T=!!k.resolvedMessage,L=i(k.default)||f(k.default)?f(k.default)?a?d:()=>d:k.default:r?a?d:()=>d:"",g=r||""!==L,E=i(k.locale)?k.locale:e.locale;b&&function(e){l(e.list)?e.list=e.list.map((e=>i(e)?s(e):e)):m(e.named)&&Object.keys(e.named).forEach((t=>{i(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(k);let[N,y,A]=T?[d,E,p[E]||{}]:Be(e,d,E,u,h,_),C=N,O=d;if(T||i(C)||Ke(C)||g&&(C=L,O=C),!(T||(i(C)||Ke(C))&&i(y)))return c?-1:d;let x=!1;const I=Ke(C)?C:Ge(e,d,y,C,O,(()=>{x=!0}));if(x)return C;const P=function(e,t,r,o){const{modifiers:c,pluralRules:a,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:f,fallbackContext:m}=e,p=n=>{let o=s(r,n);if(null==o&&m){const[,,e]=Be(m,n,t,l,u,f);o=s(e,n)}if(i(o)){let r=!1;const c=Ge(e,n,t,o,n,(()=>{r=!0}));return r?Ue:c}return Ke(o)?o:Ue},d={locale:t,modifiers:c,pluralRules:a,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);n(o.plural)&&(d.pluralIndex=o.plural);return d}(e,y,A,k),v=function(e,t,n){return t(n)}(0,I,z(P));return o?o(v):v}function Be(e,t,n,r,o,c){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:f}=e,m=f(e,r,n);let p,d={},k=null;for(let n=0;n<m.length&&(p=m[n],d=a[p]||{},null===(k=l(d,t))&&(k=d[t]),!i(k)&&!u(k));n++){const n=Pe(e,t,p,0,"translate");n!==t&&(k=n)}return[k,p,d]}function Ge(e,n,r,o,c,a){const{messageCompiler:s,warnHtmlMessage:l}=e;if(Ke(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}if(null==s){const e=()=>o;return e.locale=r,e.key=n,e}const u=s(o,function(e,n,r,o,c,a){return{warnHtmlMessage:c,onError:e=>{throw a&&a(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,l,a));return u.locale=r,u.key=n,u.source=o,u}function Ve(...e){const[t,r,c]=e,s={};if(!i(t)&&!n(t)&&!Ke(t))throw Error(We.INVALID_ARGUMENT);const u=n(t)?String(t):(Ke(t),t);return n(r)?s.plural=r:i(r)?s.default=r:k(r)&&!o(r)?s.named=r:l(r)&&(s.list=r),n(c)?s.plural=c:i(c)?s.default=c:k(c)&&a(s,c),[u,s]}function He(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[m,p,d,_]=Xe(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,b=i(d.locale)?d.locale:e.locale,T=l(e,c,b);if(!i(m)||""===m)return new Intl.DateTimeFormat(b).format(p);let L,g={},E=null;for(let t=0;t<T.length&&(L=T[t],g=n[L]||{},E=g[m],!k(E));t++)Pe(e,m,L,0,"datetime format");if(!k(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(_)||(N=`${N}__${JSON.stringify(_)}`);let y=u.get(N);return y||(y=new Intl.DateTimeFormat(L,a({},E,_)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function Xe(...e){const[t,r,o,c]=e;let a,s={},l={};if(i(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();a=new Date(n);try{a.toISOString()}catch(e){throw Error(We.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===d(t)){if(isNaN(t.getTime()))throw Error(We.INVALID_DATE_ARGUMENT);a=t}else{if(!n(t))throw Error(We.INVALID_ARGUMENT);a=t}return i(r)?s.key=r:k(r)&&(s=r),i(o)?s.locale=o:k(o)&&(l=o),k(c)&&(l=c),[s.key||"",a,s,l]}function ze(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Je(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[m,p,d,_]=Ye(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,b=i(d.locale)?d.locale:e.locale,T=l(e,c,b);if(!i(m)||""===m)return new Intl.NumberFormat(b).format(p);let L,g={},E=null;for(let t=0;t<T.length&&(L=T[t],g=n[L]||{},E=g[m],!k(E));t++)Pe(e,m,L,0,"number format");if(!k(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(_)||(N=`${N}__${JSON.stringify(_)}`);let y=u.get(N);return y||(y=new Intl.NumberFormat(L,a({},E,_)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function Ye(...e){const[t,r,o,c]=e;let a={},s={};if(!n(t))throw Error(We.INVALID_ARGUMENT);const l=t;return i(r)?a.key=r:k(r)&&(a=r),i(o)?a.locale=o:k(o)&&(s=o),k(c)&&(s=c),[a.key||"",l,a,s]}function Qe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}export{_ as CompileErrorCodes,We as CoreErrorCodes,ne as CoreWarnCodes,me as DEFAULT_LOCALE,G as DEFAULT_MESSAGE_DATA_TYPE,pe as MISSING_RESOLVE_VALUE,fe as NOT_REOSLVED,ie as VERSION,Se as clearCompileCache,ze as clearDateTimeFormat,Qe as clearNumberFormat,Re as compileToFunction,h as createCompileError,Oe as createCoreContext,$e as createCoreError,z as createMessageContext,He as datetime,ae as fallbackWithLocaleChain,ce as fallbackWithSimple,Ee as getAdditionalMeta,q as getDevToolsHook,Ae as getFallbackContext,oe as getWarnMessage,Pe as handleMissing,Z as initI18nDevTools,Ke as isMessageFunction,xe as isTranslateFallbackWarn,Ie as isTranslateMissingWarn,Je as number,W as parse,Xe as parseDateTimeArgs,Ye as parseNumberArgs,Ve as parseTranslateArgs,Te as registerLocaleFallbacker,he as registerMessageCompiler,be as registerMessageResolver,K as resolveValue,U as resolveWithKeyValue,ge as setAdditionalMeta,Q as setDevToolsHook,ye as setFallbackContext,je as translate,ee as translateDevTools,ve as updateFallbackLocale};
const e=/\{([0-9a-zA-Z]+)\}/g;const t=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),n=e=>"number"==typeof e&&isFinite(e),r=e=>"[object RegExp]"===d(e),o=e=>k(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const a=Object.assign;function s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const l=Array.isArray,u=e=>"function"==typeof e,i=e=>"string"==typeof e,f=e=>"boolean"==typeof e,m=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),k=e=>"[object Object]"===d(e),_={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,__EXTEND_POINT__:15};function h(e,t,n={}){const{domain:r,messages:o,args:c}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=r,a}function b(e){throw e}function T(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const L=String.fromCharCode(8232),g=String.fromCharCode(8233);function E(e){const t=e;let n=0,r=1,o=1,c=0;const a=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===g,l=e=>t[e]===L,u=e=>a(e)||(e=>"\n"===t[e])(e)||s(e)||l(e),i=e=>a(e)||s(e)||l(e)?"\n":t[e];function f(){return c=0,u(n)&&(r++,o=0),a(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>c,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+c),next:f,peek:function(){return a(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 N=void 0;function y(e,t={}){const n=!1!==t.location,r=E(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},a=c(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=c(),e.currentType=t;const o={type:t};return n&&(o.loc=T(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(c(),"")}function d(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function k(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===N)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function L(e,t=!0){const n=(t=!1,r="",o=!1)=>{const c=e.currentPeek();return"{"===c?"%"!==r&&t:"@"!==c&&c?"%"===c?(e.peek(),n(t,"%",!0)):"|"===c?!("%"!==r&&!o)||!(" "===r||"\n"===r):" "===c?(e.peek(),n(!0," ",o)):"\n"!==c||(e.peek(),n(!0,"\n",o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function g(e,t){const n=e.currentChar();return n===N?N:t(n)?(e.next(),n):null}function y(e){return g(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function A(e){return g(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function C(e){return g(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=A(e);)n+=t;return n}function x(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return c(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=C(e);if(!t){c(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){k(e);const t=p(e,"|");return k(e),t}function v(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),k(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&k(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&c(),n=F(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(b(e))return t.braceNest>0&&c(),n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return c(),t.braceNest=0,w(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){k(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===N&&c(),n}(e)),k(e),n;if(o=h(e,t))return n=f(t,6,function(e){k(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===N&&c(),t}(e)),k(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){k(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=g(e,r);)n+="\\"===t?x(e):t;const o=e.currentChar();return"\n"===o||o===N?(c(),"\n"===o&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),k(e),n;if(!r&&!o&&!a)return n=f(t,13,function(e){k(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=g(e,r);)n+=t;return n}(e)),c(),n.value,k(e),n}return n}function F(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==o&&" "!==o||c(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return k(e),e.next(),f(t,9,".");case":":return k(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(k(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(k(e),f(t,12,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):_(t))},o=r();return e.resetPeek(),o}(e,t)?(k(e),"{"===o?v(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?" "===o?r:"\n"===o?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&c(),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return v(e,t)||m(t);if(t.inLinked)return F(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return v(e,t)||m(t);case"}":return c(),e.next(),f(t,3,"}");case"@":return F(e,t)||m(t);default:if(b(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(L(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!L(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(L(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=o(),l.startLoc=c(),r.currentChar()===N?f(l,14):w(r,l)},currentOffset:o,currentPosition:c,context:u}}const A=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function C(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 O(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&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,o(c,e.currentOffset(),e.currentPosition()),c}function s(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(5,c,a);return s.index=parseInt(t,10),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(4,c,a);return s.key=t,e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(9,c,a);return s.value=t.replace(A,C),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let c=e.nextToken();if(9===c.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:c,lastStartLoc:a}=n,s=r(8,c,a);return 12!==t.type?(n.lastStartLoc,s.value="",o(s,c,a),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,x(t)),s.value=t.value||"",o(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(10!==c.type&&(t.lastStartLoc,x(c)),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 11:null==c.value&&(t.lastStartLoc,x(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 5:null==c.value&&(t.lastStartLoc,x(c)),n.key=l(e,c.value||"");break;case 6:null==c.value&&(t.lastStartLoc,x(c)),n.key=s(e,c.value||"");break;case 7:null==c.value&&(t.lastStartLoc,x(c)),n.key=u(e,c.value||"");break;default:t.lastStartLoc;const a=e.context(),i=r(7,a.offset,a.startLoc);return i.value="",o(i,a.offset,a.startLoc),n.key=i,o(n,a.offset,a.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 a=null;do{const r=a||e.nextToken();switch(a=null,r.type){case 0:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(c(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,x(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),a=o.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:c}=t,a=f(e);return 14===t.currentType?a:function(e,t,n,c){const a=e.context();let s=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);s||(s=0===t.items.length),l.cases.push(t)}while(14!==a.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,a)}return{parse:function(n){const c=y(n,a({},e)),s=c.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(c),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,c.currentOffset(),c.currentPosition()),l}}}function x(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function I(e,t){for(let n=0;n<e.length;n++)P(e[n],t)}function P(e,t){switch(e.type){case 1:I(e.cases,t),t.helper("plural");break;case 2:I(e.items,t);break;case 6:P(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function v(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&&P(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function F(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?F(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&&(F(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 n=0;n<o&&(F(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),F(e,t.key),t.modifier&&(e.push(", "),F(e,t.modifier)),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)}}function w(e,t={}){const n=a({},t),r=O(n).parse(e);return v(r,n),((e,t={})=>{const n=i(t.mode)?t.mode:"normal",r=i(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,c=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:c}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:c,indentLevel:0};function s(e,t){a.code+=e}function l(e,t=!0){const n=t?o:"";s(c?n+" ".repeat(e):n)}return{context:()=>a,push:s,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:c,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),F(l,e),l.deindent(a),l.push("}");const{code:u,map:f}=l.context();return{ast:e,code:u,map:f?f.toJSON():void 0}})(r,n)}const S=[];S[0]={w:[0],i:[3,0],"[":[4],o:[7]},S[1]={w:[1],".":[2],"[":[4],o:[7]},S[2]={w:[2],i:[3,0],0:[3,0]},S[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},S[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},S[5]={"'":[4,0],o:8,l:[5,0]},S[6]={'"':[4,0],o:8,l:[6,0]};const R=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function D(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 M(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,R.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 W(e){const t=[];let n,r,o,c,a,s,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=M(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(c=D(n),l=S[i],a=l[c]||l.l||8,8===a)return;if(i=a[0],void 0!==a[1]&&(s=m[a[1]],s&&(o=n,!1===s())))return;if(7===i)return t}}const $=new Map;function U(e,t){return m(e)?e[t]:null}function K(e,t){if(!m(e))return null;let n=$.get(t);if(n||(n=W(t),n&&$.set(t,n)),!n)return null;const r=n.length;let o=e,c=0;for(;c<r;){const e=o[n[c]];if(void 0===e)return null;o=e,c++}return o}const j=e=>e,B=e=>"",G="text",V=e=>0===e.length?"":e.join(""),H=e=>null==e?"":l(e)||k(e)&&e.toString===p?JSON.stringify(e,null,2):String(e);function X(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function z(e={}){const t=e.locale,r=function(e){const t=n(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(n(e.named.count)||n(e.named.n))?n(e.named.count)?e.named.count:n(e.named.n)?e.named.n:t:t}(e),o=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?e.pluralRules[t]:X,c=m(e.pluralRules)&&i(t)&&u(e.pluralRules[t])?X:void 0,a=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function l(t){const n=u(e.messages)?e.messages(t):!!m(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):B)}const f=k(e.processor)&&u(e.processor.normalize)?e.processor.normalize:V,p=k(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:H,d={list:e=>a[e],named:e=>s[e],plural:e=>e[o(r,e.length,c)],linked:(t,n)=>{const r=l(t)(d);return i(n)?(o=n,e.modifiers?e.modifiers[o]:j)(r):r;var o},message:l,type:k(e.processor)&&i(e.processor.type)?e.processor.type:"text",interpolate:p,normalize:f};return d}const J="i18n:init";let Y=null;function Q(e){Y=e}function q(){return Y}function Z(e,t,n){Y&&Y.emit(J,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ee=te("function:translate");function te(e){return t=>Y&&Y.emit(e,t)}const ne={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,__EXTEND_POINT__:7},re={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function oe(t,...n){return function(t,...n){return 1===n.length&&m(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(re[t],...n)}function ce(e,t,n){return[...new Set([n,...l(t)?t:m(t)?Object.keys(t):i(t)?[t]:[n]])]}function ae(e,t,n){const r=i(n)?n:me,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let c=o.__localeChainCache.get(r);if(!c){c=[];let e=[n];for(;l(e);)e=se(c,e,t);const a=l(t)||!k(t)?t:t.default?t.default:null;e=i(a)?[a]:a,l(e)&&se(c,e,!1),o.__localeChainCache.set(r,c)}return c}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&f(r);o++){const c=t[o];i(c)&&(r=le(e,t[o],n))}return r}function le(e,t,n){let r;const o=t.split("-");do{r=ue(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function ue(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),(l(n)||k(n))&&n[o]&&(r=n[o])}return r}const ie="9.2.0-beta.34",fe=-1,me="en-US",pe="";let de,ke,_e;function he(e){de=e}function be(e){ke=e}function Te(e){_e=e}let Le=null;const ge=e=>{Le=e},Ee=()=>Le;let Ne=null;const ye=e=>{Ne=e},Ae=()=>Ne;let Ce=0;function Oe(e={}){const t=i(e.version)?e.version:"9.2.0-beta.34",n=i(e.locale)?e.locale:me,o=l(e.fallbackLocale)||k(e.fallbackLocale)||i(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=k(e.messages)?e.messages:{[n]:{}},p=k(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=k(e.numberFormats)?e.numberFormats:{[n]:{}},_=a({},e.modifiers||{},{upper:e=>i(e)?e.toUpperCase():e,lower:e=>i(e)?e.toLowerCase():e,capitalize:e=>i(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),h=e.pluralRules||{},b=u(e.missing)?e.missing:null,T=!f(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,L=!f(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,E=!!e.unresolving,N=u(e.postTranslation)?e.postTranslation:null,y=k(e.processor)?e.processor:null,A=!f(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,O=u(e.messageCompiler)?e.messageCompiler:de,x=u(e.messageResolver)?e.messageResolver:ke||U,I=u(e.localeFallbacker)?e.localeFallbacker:_e||ce,P=m(e.fallbackContext)?e.fallbackContext:void 0,v=u(e.onWarn)?e.onWarn:c,F=e,w=m(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,S=m(F.__numberFormatters)?F.__numberFormatters:new Map,R=m(F.__meta)?F.__meta:{};Ce++;const D={version:t,cid:Ce,locale:n,fallbackLocale:o,messages:s,modifiers:_,pluralRules:h,missing:b,missingWarn:T,fallbackWarn:L,fallbackFormat:g,unresolving:E,postTranslation:N,processor:y,warnHtmlMessage:A,escapeParameter:C,messageCompiler:O,messageResolver:x,localeFallbacker:I,fallbackContext:P,onWarn:v,__meta:R};return D.datetimeFormats=p,D.numberFormats=d,D.__datetimeFormatters=w,D.__numberFormatters=S,D}function xe(e,t){return e instanceof RegExp?e.test(t):e}function Ie(e,t){return e instanceof RegExp?e.test(t):e}function Pe(e,t,n,r,o){const{missing:c,onWarn:a}=e;if(null!==c){const r=c(e,n,t,o);return i(r)?r:t}return t}function ve(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Fe=e=>e;let we=Object.create(null);function Se(){we=Object.create(null)}function Re(e,t={}){{const n=(t.onCacheKey||Fe)(e),r=we[n];if(r)return r;let o=!1;const c=t.onError||b;t.onError=e=>{o=!0,c(e)};const{code:a}=w(e,t),s=new Function(`return ${a}`)();return o?s:we[n]=s}}let De=_.__EXTEND_POINT__;const Me=()=>++De,We={INVALID_ARGUMENT:De,INVALID_DATE_ARGUMENT:Me(),INVALID_ISO_DATE_ARGUMENT:Me(),__EXTEND_POINT__:Me()};function $e(e){return h(e,null,void 0)}const Ue=()=>"",Ke=e=>u(e);function je(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,messageCompiler:a,fallbackLocale:u,messages:p}=e,[d,k]=Ve(...t),_=f(k.missingWarn)?k.missingWarn:e.missingWarn,h=f(k.fallbackWarn)?k.fallbackWarn:e.fallbackWarn,b=f(k.escapeParameter)?k.escapeParameter:e.escapeParameter,T=!!k.resolvedMessage,L=i(k.default)||f(k.default)?f(k.default)?a?d:()=>d:k.default:r?a?d:()=>d:"",g=r||""!==L,E=i(k.locale)?k.locale:e.locale;b&&function(e){l(e.list)?e.list=e.list.map((e=>i(e)?s(e):e)):m(e.named)&&Object.keys(e.named).forEach((t=>{i(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(k);let[N,y,A]=T?[d,E,p[E]||{}]:Be(e,d,E,u,h,_),C=N,O=d;if(T||i(C)||Ke(C)||g&&(C=L,O=C),!(T||(i(C)||Ke(C))&&i(y)))return c?-1:d;let x=!1;const I=Ke(C)?C:Ge(e,d,y,C,O,(()=>{x=!0}));if(x)return C;const P=function(e,t,r,o){const{modifiers:c,pluralRules:a,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:f,fallbackContext:m}=e,p=n=>{let o=s(r,n);if(null==o&&m){const[,,e]=Be(m,n,t,l,u,f);o=s(e,n)}if(i(o)){let r=!1;const c=Ge(e,n,t,o,n,(()=>{r=!0}));return r?Ue:c}return Ke(o)?o:Ue},d={locale:t,modifiers:c,pluralRules:a,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);n(o.plural)&&(d.pluralIndex=o.plural);return d}(e,y,A,k),v=function(e,t,n){return t(n)}(0,I,z(P));return o?o(v):v}function Be(e,t,n,r,o,c){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:f}=e,m=f(e,r,n);let p,d={},k=null;for(let n=0;n<m.length&&(p=m[n],d=a[p]||{},null===(k=l(d,t))&&(k=d[t]),!i(k)&&!u(k));n++){const n=Pe(e,t,p,0,"translate");n!==t&&(k=n)}return[k,p,d]}function Ge(e,n,r,o,c,a){const{messageCompiler:s,warnHtmlMessage:l}=e;if(Ke(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}if(null==s){const e=()=>o;return e.locale=r,e.key=n,e}const u=s(o,function(e,n,r,o,c,a){return{warnHtmlMessage:c,onError:e=>{throw a&&a(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,l,a));return u.locale=r,u.key=n,u.source=o,u}function Ve(...e){const[t,r,c]=e,s={};if(!i(t)&&!n(t)&&!Ke(t))throw Error(We.INVALID_ARGUMENT);const u=n(t)?String(t):(Ke(t),t);return n(r)?s.plural=r:i(r)?s.default=r:k(r)&&!o(r)?s.named=r:l(r)&&(s.list=r),n(c)?s.plural=c:i(c)?s.default=c:k(c)&&a(s,c),[u,s]}function He(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[m,p,d,_]=Xe(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,b=i(d.locale)?d.locale:e.locale,T=l(e,c,b);if(!i(m)||""===m)return new Intl.DateTimeFormat(b).format(p);let L,g={},E=null;for(let t=0;t<T.length&&(L=T[t],g=n[L]||{},E=g[m],!k(E));t++)Pe(e,m,L,0,"datetime format");if(!k(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(_)||(N=`${N}__${JSON.stringify(_)}`);let y=u.get(N);return y||(y=new Intl.DateTimeFormat(L,a({},E,_)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function Xe(...e){const[t,r,o,c]=e;let a,s={},l={};if(i(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();a=new Date(n);try{a.toISOString()}catch(e){throw Error(We.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===d(t)){if(isNaN(t.getTime()))throw Error(We.INVALID_DATE_ARGUMENT);a=t}else{if(!n(t))throw Error(We.INVALID_ARGUMENT);a=t}return i(r)?s.key=r:k(r)&&(s=r),i(o)?s.locale=o:k(o)&&(l=o),k(c)&&(l=c),[s.key||"",a,s,l]}function ze(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Je(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[m,p,d,_]=Ye(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,b=i(d.locale)?d.locale:e.locale,T=l(e,c,b);if(!i(m)||""===m)return new Intl.NumberFormat(b).format(p);let L,g={},E=null;for(let t=0;t<T.length&&(L=T[t],g=n[L]||{},E=g[m],!k(E));t++)Pe(e,m,L,0,"number format");if(!k(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(_)||(N=`${N}__${JSON.stringify(_)}`);let y=u.get(N);return y||(y=new Intl.NumberFormat(L,a({},E,_)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function Ye(...e){const[t,r,o,c]=e;let a={},s={};if(!n(t))throw Error(We.INVALID_ARGUMENT);const l=t;return i(r)?a.key=r:k(r)&&(a=r),i(o)?a.locale=o:k(o)&&(s=o),k(c)&&(s=c),[a.key||"",l,a,s]}function Qe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}export{_ as CompileErrorCodes,We as CoreErrorCodes,ne as CoreWarnCodes,me as DEFAULT_LOCALE,G as DEFAULT_MESSAGE_DATA_TYPE,pe as MISSING_RESOLVE_VALUE,fe as NOT_REOSLVED,ie as VERSION,Se as clearCompileCache,ze as clearDateTimeFormat,Qe as clearNumberFormat,Re as compileToFunction,h as createCompileError,Oe as createCoreContext,$e as createCoreError,z as createMessageContext,He as datetime,ae as fallbackWithLocaleChain,ce as fallbackWithSimple,Ee as getAdditionalMeta,q as getDevToolsHook,Ae as getFallbackContext,oe as getWarnMessage,Pe as handleMissing,Z as initI18nDevTools,Ke as isMessageFunction,xe as isTranslateFallbackWarn,Ie as isTranslateMissingWarn,Je as number,W as parse,Xe as parseDateTimeArgs,Ye as parseNumberArgs,Ve as parseTranslateArgs,Te as registerLocaleFallbacker,he as registerMessageCompiler,be as registerMessageResolver,K as resolveValue,U as resolveWithKeyValue,ge as setAdditionalMeta,Q as setDevToolsHook,ye as setFallbackContext,je as translate,ee as translateDevTools,ve as updateFallbackLocale};
/*!
* core-base v9.2.0-beta.33
* core-base v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi

@@ -543,3 +543,3 @@ * Released under the MIT License.

*/
const VERSION = '9.2.0-beta.33';
const VERSION = '9.2.0-beta.34';
const NOT_REOSLVED = -1;

@@ -546,0 +546,0 @@ const DEFAULT_LOCALE = 'en-US';

/*!
* core-base v9.2.0-beta.33
* core-base v9.2.0-beta.34
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var IntlifyCoreBase=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),r=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===k(e),a=e=>_(e)&&0===Object.keys(e).length;function s(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function l(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const u=Array.isArray,i=e=>"function"==typeof e,f=e=>"string"==typeof e,m=e=>"boolean"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,k=e=>d.call(e),_=e=>"[object Object]"===k(e),h={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,__EXTEND_POINT__:15};function T(e,t,n={}){const{domain:r,messages:o,args:a}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function b(e){throw e}function g(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const L=" ",E="\n",N=String.fromCharCode(8232),C=String.fromCharCode(8233);function A(e){const t=e;let n=0,r=1,o=1,a=0;const s=e=>"\r"===t[e]&&t[e+1]===E,c=e=>t[e]===C,l=e=>t[e]===N,u=e=>s(e)||(e=>t[e]===E)(e)||c(e)||l(e),i=e=>s(e)||c(e)||l(e)?E:t[e];function f(){return a=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>a,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+a),next:f,peek:function(){return s(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,r=1,o=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)f();a=0}}}const y=void 0;function O(e,t={}){const n=!1!==t.location,r=A(e),o=()=>r.index(),a=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=a(),c=o(),l={currentType:14,offset:c,startLoc:s,endLoc:s,lastType:14,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=a(),e.currentType=t;const o={type:t};return n&&(o.loc=g(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(a(),"")}function d(e){let t="";for(;e.currentPeek()===L||e.currentPeek()===E;)t+=e.currentPeek(),e.peek();return t}function k(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===y)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===y)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function T(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(e,t=!0){const n=(t=!1,r="",o=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!o)||!(r===L||r===E):a===L?(e.peek(),n(!0,L,o)):a!==E||(e.peek(),n(!0,E,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function N(e,t){const n=e.currentChar();return n===y?y:t(n)?(e.next(),n):null}function C(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function O(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function x(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function I(e){let t="",n="";for(;t=O(e);)n+=t;return n}function v(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return a(),""}}function F(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=x(e);if(!t){a(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){k(e);const t=p(e,"|");return k(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&a(),e.next(),n=f(t,2,"{"),k(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&a(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&k(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&a(),n=w(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(T(e))return t.braceNest>0&&a(),n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return a(),t.braceNest=0,D(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){k(e);let t="",n="";for(;t=C(e);)n+=t;return e.currentChar()===y&&a(),n}(e)),k(e),n;if(o=h(e,t))return n=f(t,6,function(e){k(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${I(e)}`):t+=I(e),e.currentChar()===y&&a(),t}(e)),k(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){k(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==E;for(;t=N(e,r);)n+="\\"===t?v(e):t;const o=e.currentChar();return o===E||o===y?(a(),o===E&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),k(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){k(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==L&&e!==E;for(;t=N(e,r);)n+=t;return n}(e)),a(),n.value,k(e),n}return n}function w(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==E&&o!==L||a(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return k(e),e.next(),f(t,9,".");case":":return k(e),e.next(),f(t,10,":");default:return T(e)?(r=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(k(e),w(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(k(e),f(t,12,function(e){let t="",n="";for(;t=C(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===L||!t)&&(t===E?(e.peek(),r()):_(t))},o=r();return e.resetPeek(),o}(e,t)?(k(e),"{"===o?S(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===L?r:o===E?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&a(),t.braceNest=0,t.inLinked=!1,D(e,t))}}function D(e,t){let n={type:14};if(t.braceNest>0)return S(e,t)||m(t);if(t.inLinked)return w(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return S(e,t)||m(t);case"}":return a(),e.next(),f(t,3,"}");case"@":return w(e,t)||m(t);default:if(T(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(b(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(n===L||n===E)if(b(e))t+=n,e.next();else{if(T(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}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=a(),r.currentChar()===y?f(l,14):D(r,l)},currentOffset:o,currentPosition:a,context:u}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function I(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 v(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function a(e,t){const n=e.context(),a=r(3,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}function s(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(5,a,s);return c.index=parseInt(t,10),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function l(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(4,a,s);return c.key=t,e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function u(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(9,a,s);return c.value=t.replace(x,I),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(8,a,s);return 12!==t.type?(n.lastStartLoc,c.value="",o(c,a,s),{nextConsumeToken:t,node:c}):(null==t.value&&(n.lastStartLoc,F(t)),c.value=t.value||"",o(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&(t.lastStartLoc,F(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&(t.lastStartLoc,F(a)),n.key=function(e,t){const n=e.context(),a=r(7,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}(e,a.value||"");break;case 5:null==a.value&&(t.lastStartLoc,F(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&(t.lastStartLoc,F(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&(t.lastStartLoc,F(a)),n.key=u(e,a.value||"");break;default:t.lastStartLoc;const c=e.context(),i=r(7,c.offset,c.startLoc);return i.value="",o(i,c.offset,c.startLoc),n.key=i,o(n,c.offset,c.startLoc),{nextConsumeToken:a,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 c=null;do{const r=c||e.nextToken();switch(c=null,r.type){case 0:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(a(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),c=o.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:a}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,a){const s=e.context();let c=0===a.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(a);do{const t=f(e);c||(c=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,a,s)}return{parse:function(n){const a=O(n,c({},e)),s=a.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(a),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,a.currentOffset(),a.currentPosition()),l}}}function F(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function P(e,t){for(let n=0;n<e.length;n++)S(e[n],t)}function S(e,t){switch(e.type){case 1:P(e.cases,t),t.helper("plural");break;case 2:P(e.items,t);break;case 6:S(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function w(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&&S(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function D(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?D(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&&(D(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 n=0;n<o&&(D(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),D(e,t.key),t.modifier&&(e.push(", "),D(e,t.modifier)),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)}}function M(e,t={}){const n=c({},t),r=v(n).parse(e);return w(r,n),((e,t={})=>{const n=f(t.mode)?t.mode:"normal",r=f(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:a}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};function c(e,t){s.code+=e}function l(e,t=!0){const n=t?o:"";c(a?n+" ".repeat(e):n)}return{context:()=>s,push:c,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,{mode:n,filename:r,sourceMap:o,breakLineCode:a,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),c.length>0&&(l.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),D(l,e),l.deindent(s),l.push("}");const{code:u,map:i}=l.context();return{ast:e,code:u,map:i?i.toJSON():void 0}})(r,n)}const R=[];R[0]={w:[0],i:[3,0],"[":[4],o:[7]},R[1]={w:[1],".":[2],"[":[4],o:[7]},R[2]={w:[2],i:[3,0],0:[3,0]},R[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},R[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},R[5]={"'":[4,0],o:8,l:[5,0]},R[6]={'"':[4,0],o:8,l:[6,0]};const W=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $(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 U(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,W.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 V(e){const t=[];let n,r,o,a,s,c,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=U(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(a=$(n),l=R[i],s=l[a]||l.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(c=m[s[1]],c&&(o=n,!1===c())))return;if(7===i)return t}}const K=new Map;function j(e,t){return p(e)?e[t]:null}const G=e=>e,B=e=>"",H="text",X=e=>0===e.length?"":e.join(""),Y=e=>null==e?"":u(e)||_(e)&&e.toString===d?JSON.stringify(e,null,2):String(e);function z(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function J(e={}){const t=e.locale,n=function(e){const t=r(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(r(e.named.count)||r(e.named.n))?r(e.named.count)?e.named.count:r(e.named.n)?e.named.n:t:t}(e),o=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?e.pluralRules[t]:z,a=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?z:void 0,s=e.list||[],c=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,c);function l(t){const n=i(e.messages)?e.messages(t):!!p(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):B)}const u=_(e.processor)&&i(e.processor.normalize)?e.processor.normalize:X,m=_(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:Y,d={list:e=>s[e],named:e=>c[e],plural:e=>e[o(n,e.length,a)],linked:(t,n)=>{const r=l(t)(d);return f(n)?(o=n,e.modifiers?e.modifiers[o]:G)(r):r;var o},message:l,type:_(e.processor)&&f(e.processor.type)?e.processor.type:H,interpolate:m,normalize:u};return d}const Q="i18n:init";let q=null;const Z=ee("function:translate");function ee(e){return t=>q&&q.emit(e,t)}const te={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,__EXTEND_POINT__:7},ne={[te.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[te.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[te.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[te.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[te.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[te.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function re(e,t,n){return[...new Set([n,...u(t)?t:p(t)?Object.keys(t):f(t)?[t]:[n]])]}function oe(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){const a=t[o];f(a)&&(r=ae(e,t[o],n))}return r}function ae(e,t,n){let r;const o=t.split("-");do{r=se(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function se(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),(u(n)||_(n))&&n[o]&&(r=n[o])}return r}const ce="9.2.0-beta.33",le="en-US";let ue,ie,fe;let me=null;let pe=null;let de=0;function ke(e,t,n,r,o){const{missing:a,onWarn:s}=e;if(null!==a){const r=a(e,n,t,o);return f(r)?r:t}return t}const _e=e=>e;let he=Object.create(null);let Te=h.__EXTEND_POINT__;const be=()=>++Te,ge={INVALID_ARGUMENT:Te,INVALID_DATE_ARGUMENT:be(),INVALID_ISO_DATE_ARGUMENT:be(),__EXTEND_POINT__:be()};const Le=()=>"",Ee=e=>i(e);function Ne(e,t,n,r,o,a){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,m=u(e,r,n);let p,d={},k=null;for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(k=l(d,t))&&(k=d[t]),!f(k)&&!i(k));n++){const n=ke(e,t,p,0,"translate");n!==t&&(k=n)}return[k,p,d]}function Ce(e,t,r,o,a,s){const{messageCompiler:c,warnHtmlMessage:l}=e;if(Ee(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==c){const e=()=>o;return e.locale=r,e.key=t,e}const u=c(o,function(e,t,r,o,a,s){return{warnHtmlMessage:a,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,a,0,l,s));return u.locale=r,u.key=t,u.source=o,u}function Ae(...e){const[t,n,o]=e,s={};if(!f(t)&&!r(t)&&!Ee(t))throw Error(ge.INVALID_ARGUMENT);const l=r(t)?String(t):(Ee(t),t);return r(n)?s.plural=n:f(n)?s.default=n:_(n)&&!a(n)?s.named=n:u(n)&&(s.list=n),r(o)?s.plural=o:f(o)?s.default=o:_(o)&&c(s,o),[l,s]}function ye(...e){const[t,n,o,a]=e;let s,c={},l={};if(f(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ge.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(e){throw Error(ge.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(ge.INVALID_DATE_ARGUMENT);s=t}else{if(!r(t))throw Error(ge.INVALID_ARGUMENT);s=t}return f(n)?c.key=n:_(n)&&(c=n),f(o)?c.locale=o:_(o)&&(l=o),_(a)&&(l=a),[c.key||"",s,c,l]}function Oe(...e){const[t,n,o,a]=e;let s={},c={};if(!r(t))throw Error(ge.INVALID_ARGUMENT);const l=t;return f(n)?s.key=n:_(n)&&(s=n),f(o)?s.locale=o:_(o)&&(c=o),_(a)&&(c=a),[s.key||"",l,s,c]}return e.CompileErrorCodes=h,e.CoreErrorCodes=ge,e.CoreWarnCodes=te,e.DEFAULT_LOCALE=le,e.DEFAULT_MESSAGE_DATA_TYPE=H,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION=ce,e.clearCompileCache=function(){he=Object.create(null)},e.clearDateTimeFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}},e.clearNumberFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}},e.compileToFunction=function(e,t={}){{const n=(t.onCacheKey||_e)(e),r=he[n];if(r)return r;let o=!1;const a=t.onError||b;t.onError=e=>{o=!0,a(e)};const{code:s}=M(e,t),c=new Function(`return ${s}`)();return o?c:he[n]=c}},e.createCompileError=T,e.createCoreContext=function(e={}){const t=f(e.version)?e.version:ce,n=f(e.locale)?e.locale:le,r=u(e.fallbackLocale)||_(e.fallbackLocale)||f(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=_(e.messages)?e.messages:{[n]:{}},l=_(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=_(e.numberFormats)?e.numberFormats:{[n]:{}},k=c({},e.modifiers||{},{upper:e=>f(e)?e.toUpperCase():e,lower:e=>f(e)?e.toLowerCase():e,capitalize:e=>f(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),h=e.pluralRules||{},T=i(e.missing)?e.missing:null,b=!m(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,g=!m(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,E=!!e.unresolving,N=i(e.postTranslation)?e.postTranslation:null,C=_(e.processor)?e.processor:null,A=!m(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,O=i(e.messageCompiler)?e.messageCompiler:ue,x=i(e.messageResolver)?e.messageResolver:ie||j,I=i(e.localeFallbacker)?e.localeFallbacker:fe||re,v=p(e.fallbackContext)?e.fallbackContext:void 0,F=i(e.onWarn)?e.onWarn:s,P=e,S=p(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,w=p(P.__numberFormatters)?P.__numberFormatters:new Map,D=p(P.__meta)?P.__meta:{};de++;const M={version:t,cid:de,locale:n,fallbackLocale:r,messages:a,modifiers:k,pluralRules:h,missing:T,missingWarn:b,fallbackWarn:g,fallbackFormat:L,unresolving:E,postTranslation:N,processor:C,warnHtmlMessage:A,escapeParameter:y,messageCompiler:O,messageResolver:x,localeFallbacker:I,fallbackContext:v,onWarn:F,__meta:D};return M.datetimeFormats=l,M.numberFormats=d,M.__datetimeFormatters=S,M.__numberFormatters=w,M},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=J,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[i,p,d,k]=ye(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=f(d.locale)?d.locale:e.locale,b=l(e,o,T);if(!f(i)||""===i)return new Intl.DateTimeFormat(T).format(p);let g,L={},E=null;for(let t=0;t<b.length&&(g=b[t],L=n[g]||{},E=L[i],!_(E));t++)ke(e,i,g,0,"datetime format");if(!_(E)||!f(g))return r?-1:i;let N=`${g}__${i}`;a(k)||(N=`${N}__${JSON.stringify(k)}`);let C=u.get(N);return C||(C=new Intl.DateTimeFormat(g,c({},E,k)),u.set(N,C)),h?C.formatToParts(p):C.format(p)},e.fallbackWithLocaleChain=function(e,t,n){const r=f(n)?n:le,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;u(e);)e=oe(a,e,t);const s=u(t)||!_(t)?t:t.default?t.default:null;e=f(s)?[s]:s,u(e)&&oe(a,e,!1),o.__localeChainCache.set(r,a)}return a},e.fallbackWithSimple=re,e.getAdditionalMeta=()=>me,e.getDevToolsHook=function(){return q},e.getFallbackContext=()=>pe,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&p(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(ne[e],...n)},e.handleMissing=ke,e.initI18nDevTools=function(e,t,n){q&&q.emit(Q,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=Ee,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,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[i,p,d,k]=Oe(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=f(d.locale)?d.locale:e.locale,b=l(e,o,T);if(!f(i)||""===i)return new Intl.NumberFormat(T).format(p);let g,L={},E=null;for(let t=0;t<b.length&&(g=b[t],L=n[g]||{},E=L[i],!_(E));t++)ke(e,i,g,0,"number format");if(!_(E)||!f(g))return r?-1:i;let N=`${g}__${i}`;a(k)||(N=`${N}__${JSON.stringify(k)}`);let C=u.get(N);return C||(C=new Intl.NumberFormat(g,c({},E,k)),u.set(N,C)),h?C.formatToParts(p):C.format(p)},e.parse=V,e.parseDateTimeArgs=ye,e.parseNumberArgs=Oe,e.parseTranslateArgs=Ae,e.registerLocaleFallbacker=function(e){fe=e},e.registerMessageCompiler=function(e){ue=e},e.registerMessageResolver=function(e){ie=e},e.resolveValue=function(e,t){if(!p(e))return null;let n=K.get(t);if(n||(n=V(t),n&&K.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const e=o[n[a]];if(void 0===e)return null;o=e,a++}return o},e.resolveWithKeyValue=j,e.setAdditionalMeta=e=>{me=e},e.setDevToolsHook=function(e){q=e},e.setFallbackContext=e=>{pe=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,messageCompiler:s,fallbackLocale:c,messages:i}=e,[d,k]=Ae(...t),_=m(k.missingWarn)?k.missingWarn:e.missingWarn,h=m(k.fallbackWarn)?k.fallbackWarn:e.fallbackWarn,T=m(k.escapeParameter)?k.escapeParameter:e.escapeParameter,b=!!k.resolvedMessage,g=f(k.default)||m(k.default)?m(k.default)?s?d:()=>d:k.default:n?s?d:()=>d:"",L=n||""!==g,E=f(k.locale)?k.locale:e.locale;T&&function(e){u(e.list)?e.list=e.list.map((e=>f(e)?l(e):e)):p(e.named)&&Object.keys(e.named).forEach((t=>{f(e.named[t])&&(e.named[t]=l(e.named[t]))}))}(k);let[N,C,A]=b?[d,E,i[E]||{}]:Ne(e,d,E,c,h,_),y=N,O=d;if(b||f(y)||Ee(y)||L&&(y=g,O=y),!(b||(f(y)||Ee(y))&&f(C)))return a?-1:d;let x=!1;const I=Ee(y)?y:Ce(e,d,C,y,O,(()=>{x=!0}));if(x)return y;const v=function(e,t,n,o){const{modifiers:a,pluralRules:s,messageResolver:c,fallbackLocale:l,fallbackWarn:u,missingWarn:i,fallbackContext:m}=e,p=r=>{let o=c(n,r);if(null==o&&m){const[,,e]=Ne(m,r,t,l,u,i);o=c(e,r)}if(f(o)){let n=!1;const a=Ce(e,r,t,o,r,(()=>{n=!0}));return n?Le:a}return Ee(o)?o:Le},d={locale:t,modifiers:a,pluralRules:s,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);r(o.plural)&&(d.pluralIndex=o.plural);return d}(e,C,A,k),F=function(e,t,n){return t(n)}(0,I,J(v));return o?o(F):F},e.translateDevTools=Z,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
var IntlifyCoreBase=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),r=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===k(e),a=e=>_(e)&&0===Object.keys(e).length;function s(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;function l(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const u=Array.isArray,i=e=>"function"==typeof e,f=e=>"string"==typeof e,m=e=>"boolean"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,k=e=>d.call(e),_=e=>"[object Object]"===k(e),h={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,__EXTEND_POINT__:15};function T(e,t,n={}){const{domain:r,messages:o,args:a}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function b(e){throw e}function g(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const L=" ",E="\n",N=String.fromCharCode(8232),C=String.fromCharCode(8233);function A(e){const t=e;let n=0,r=1,o=1,a=0;const s=e=>"\r"===t[e]&&t[e+1]===E,c=e=>t[e]===C,l=e=>t[e]===N,u=e=>s(e)||(e=>t[e]===E)(e)||c(e)||l(e),i=e=>s(e)||c(e)||l(e)?E:t[e];function f(){return a=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>a,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+a),next:f,peek:function(){return s(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,r=1,o=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)f();a=0}}}const y=void 0;function O(e,t={}){const n=!1!==t.location,r=A(e),o=()=>r.index(),a=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=a(),c=o(),l={currentType:14,offset:c,startLoc:s,endLoc:s,lastType:14,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r){e.endLoc=a(),e.currentType=t;const o={type:t};return n&&(o.loc=g(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(a(),"")}function d(e){let t="";for(;e.currentPeek()===L||e.currentPeek()===E;)t+=e.currentPeek(),e.peek();return t}function k(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===y)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===y)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function T(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(e,t=!0){const n=(t=!1,r="",o=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!o)||!(r===L||r===E):a===L?(e.peek(),n(!0,L,o)):a!==E||(e.peek(),n(!0,E,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function N(e,t){const n=e.currentChar();return n===y?y:t(n)?(e.next(),n):null}function C(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function O(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function x(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function I(e){let t="",n="";for(;t=O(e);)n+=t;return n}function v(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return a(),""}}function F(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=x(e);if(!t){a(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){k(e);const t=p(e,"|");return k(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&a(),e.next(),n=f(t,2,"{"),k(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&a(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&k(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&a(),n=w(e,t)||m(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(T(e))return t.braceNest>0&&a(),n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return a(),t.braceNest=0,D(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){k(e);let t="",n="";for(;t=C(e);)n+=t;return e.currentChar()===y&&a(),n}(e)),k(e),n;if(o=h(e,t))return n=f(t,6,function(e){k(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${I(e)}`):t+=I(e),e.currentChar()===y&&a(),t}(e)),k(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){k(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==E;for(;t=N(e,r);)n+="\\"===t?v(e):t;const o=e.currentChar();return o===E||o===y?(a(),o===E&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),k(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){k(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==L&&e!==E;for(;t=N(e,r);)n+=t;return n}(e)),a(),n.value,k(e),n}return n}function w(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==E&&o!==L||a(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return k(e),e.next(),f(t,9,".");case":":return k(e),e.next(),f(t,10,":");default:return T(e)?(r=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(k(e),w(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(k(e),f(t,12,function(e){let t="",n="";for(;t=C(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===L||!t)&&(t===E?(e.peek(),r()):_(t))},o=r();return e.resetPeek(),o}(e,t)?(k(e),"{"===o?S(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===L?r:o===E?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&a(),t.braceNest=0,t.inLinked=!1,D(e,t))}}function D(e,t){let n={type:14};if(t.braceNest>0)return S(e,t)||m(t);if(t.inLinked)return w(e,t)||m(t);const r=e.currentChar();switch(r){case"{":return S(e,t)||m(t);case"}":return a(),e.next(),f(t,3,"}");case"@":return w(e,t)||m(t);default:if(T(e))return n=f(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(b(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(n===L||n===E)if(b(e))t+=n,e.next();else{if(T(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),f(t,4,"%")}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=a(),r.currentChar()===y?f(l,14):D(r,l)},currentOffset:o,currentPosition:a,context:u}}const x=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function I(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 v(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function o(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function a(e,t){const n=e.context(),a=r(3,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}function s(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(5,a,s);return c.index=parseInt(t,10),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function l(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(4,a,s);return c.key=t,e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function u(e,t){const n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(9,a,s);return c.value=t.replace(x,I),e.nextToken(),o(c,e.currentOffset(),e.currentPosition()),c}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:s}=n,c=r(8,a,s);return 12!==t.type?(n.lastStartLoc,c.value="",o(c,a,s),{nextConsumeToken:t,node:c}):(null==t.value&&(n.lastStartLoc,F(t)),c.value=t.value||"",o(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&(t.lastStartLoc,F(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&(t.lastStartLoc,F(a)),n.key=function(e,t){const n=e.context(),a=r(7,n.offset,n.startLoc);return a.value=t,o(a,e.currentOffset(),e.currentPosition()),a}(e,a.value||"");break;case 5:null==a.value&&(t.lastStartLoc,F(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&(t.lastStartLoc,F(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&(t.lastStartLoc,F(a)),n.key=u(e,a.value||"");break;default:t.lastStartLoc;const c=e.context(),i=r(7,c.offset,c.startLoc);return i.value="",o(i,c.offset,c.startLoc),n.key=i,o(n,c.offset,c.startLoc),{nextConsumeToken:a,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 c=null;do{const r=c||e.nextToken();switch(c=null,r.type){case 0:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(a(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,F(r)),n.items.push(u(e,r.value||""));break;case 8:const o=i(e);n.items.push(o.node),c=o.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:a}=t,s=f(e);return 14===t.currentType?s:function(e,t,n,a){const s=e.context();let c=0===a.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(a);do{const t=f(e);c||(c=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,a,s)}return{parse:function(n){const a=O(n,c({},e)),s=a.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(a),14!==s.currentType&&(s.lastStartLoc,n[s.offset]),o(l,a.currentOffset(),a.currentPosition()),l}}}function F(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function P(e,t){for(let n=0;n<e.length;n++)S(e[n],t)}function S(e,t){switch(e.type){case 1:P(e.cases,t),t.helper("plural");break;case 2:P(e.items,t);break;case 6:S(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function w(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&&S(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function D(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?D(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&&(D(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 n=0;n<o&&(D(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),D(e,t.key),t.modifier&&(e.push(", "),D(e,t.modifier)),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)}}function M(e,t={}){const n=c({},t),r=v(n).parse(e);return w(r,n),((e,t={})=>{const n=f(t.mode)?t.mode:"normal",r=f(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:a}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};function c(e,t){s.code+=e}function l(e,t=!0){const n=t?o:"";c(a?n+" ".repeat(e):n)}return{context:()=>s,push:c,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,{mode:n,filename:r,sourceMap:o,breakLineCode:a,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),c.length>0&&(l.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),D(l,e),l.deindent(s),l.push("}");const{code:u,map:i}=l.context();return{ast:e,code:u,map:i?i.toJSON():void 0}})(r,n)}const R=[];R[0]={w:[0],i:[3,0],"[":[4],o:[7]},R[1]={w:[1],".":[2],"[":[4],o:[7]},R[2]={w:[2],i:[3,0],0:[3,0]},R[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},R[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},R[5]={"'":[4,0],o:8,l:[5,0]},R[6]={'"':[4,0],o:8,l:[6,0]};const W=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $(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 U(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,W.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 V(e){const t=[];let n,r,o,a,s,c,l,u=-1,i=0,f=0;const m=[];function p(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,i=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=U(r),!1===r)return!1;m[1]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!p()){if(a=$(n),l=R[i],s=l[a]||l.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(c=m[s[1]],c&&(o=n,!1===c())))return;if(7===i)return t}}const K=new Map;function j(e,t){return p(e)?e[t]:null}const G=e=>e,B=e=>"",H="text",X=e=>0===e.length?"":e.join(""),Y=e=>null==e?"":u(e)||_(e)&&e.toString===d?JSON.stringify(e,null,2):String(e);function z(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function J(e={}){const t=e.locale,n=function(e){const t=r(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(r(e.named.count)||r(e.named.n))?r(e.named.count)?e.named.count:r(e.named.n)?e.named.n:t:t}(e),o=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?e.pluralRules[t]:z,a=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?z:void 0,s=e.list||[],c=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,c);function l(t){const n=i(e.messages)?e.messages(t):!!p(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):B)}const u=_(e.processor)&&i(e.processor.normalize)?e.processor.normalize:X,m=_(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:Y,d={list:e=>s[e],named:e=>c[e],plural:e=>e[o(n,e.length,a)],linked:(t,n)=>{const r=l(t)(d);return f(n)?(o=n,e.modifiers?e.modifiers[o]:G)(r):r;var o},message:l,type:_(e.processor)&&f(e.processor.type)?e.processor.type:H,interpolate:m,normalize:u};return d}const Q="i18n:init";let q=null;const Z=ee("function:translate");function ee(e){return t=>q&&q.emit(e,t)}const te={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,__EXTEND_POINT__:7},ne={[te.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[te.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[te.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[te.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[te.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[te.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function re(e,t,n){return[...new Set([n,...u(t)?t:p(t)?Object.keys(t):f(t)?[t]:[n]])]}function oe(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){const a=t[o];f(a)&&(r=ae(e,t[o],n))}return r}function ae(e,t,n){let r;const o=t.split("-");do{r=se(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function se(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),(u(n)||_(n))&&n[o]&&(r=n[o])}return r}const ce="9.2.0-beta.34",le="en-US";let ue,ie,fe;let me=null;let pe=null;let de=0;function ke(e,t,n,r,o){const{missing:a,onWarn:s}=e;if(null!==a){const r=a(e,n,t,o);return f(r)?r:t}return t}const _e=e=>e;let he=Object.create(null);let Te=h.__EXTEND_POINT__;const be=()=>++Te,ge={INVALID_ARGUMENT:Te,INVALID_DATE_ARGUMENT:be(),INVALID_ISO_DATE_ARGUMENT:be(),__EXTEND_POINT__:be()};const Le=()=>"",Ee=e=>i(e);function Ne(e,t,n,r,o,a){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,m=u(e,r,n);let p,d={},k=null;for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(k=l(d,t))&&(k=d[t]),!f(k)&&!i(k));n++){const n=ke(e,t,p,0,"translate");n!==t&&(k=n)}return[k,p,d]}function Ce(e,t,r,o,a,s){const{messageCompiler:c,warnHtmlMessage:l}=e;if(Ee(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==c){const e=()=>o;return e.locale=r,e.key=t,e}const u=c(o,function(e,t,r,o,a,s){return{warnHtmlMessage:a,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,a,0,l,s));return u.locale=r,u.key=t,u.source=o,u}function Ae(...e){const[t,n,o]=e,s={};if(!f(t)&&!r(t)&&!Ee(t))throw Error(ge.INVALID_ARGUMENT);const l=r(t)?String(t):(Ee(t),t);return r(n)?s.plural=n:f(n)?s.default=n:_(n)&&!a(n)?s.named=n:u(n)&&(s.list=n),r(o)?s.plural=o:f(o)?s.default=o:_(o)&&c(s,o),[l,s]}function ye(...e){const[t,n,o,a]=e;let s,c={},l={};if(f(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ge.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(e){throw Error(ge.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(ge.INVALID_DATE_ARGUMENT);s=t}else{if(!r(t))throw Error(ge.INVALID_ARGUMENT);s=t}return f(n)?c.key=n:_(n)&&(c=n),f(o)?c.locale=o:_(o)&&(l=o),_(a)&&(l=a),[c.key||"",s,c,l]}function Oe(...e){const[t,n,o,a]=e;let s={},c={};if(!r(t))throw Error(ge.INVALID_ARGUMENT);const l=t;return f(n)?s.key=n:_(n)&&(s=n),f(o)?s.locale=o:_(o)&&(c=o),_(a)&&(c=a),[s.key||"",l,s,c]}return e.CompileErrorCodes=h,e.CoreErrorCodes=ge,e.CoreWarnCodes=te,e.DEFAULT_LOCALE=le,e.DEFAULT_MESSAGE_DATA_TYPE=H,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION=ce,e.clearCompileCache=function(){he=Object.create(null)},e.clearDateTimeFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}},e.clearNumberFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}},e.compileToFunction=function(e,t={}){{const n=(t.onCacheKey||_e)(e),r=he[n];if(r)return r;let o=!1;const a=t.onError||b;t.onError=e=>{o=!0,a(e)};const{code:s}=M(e,t),c=new Function(`return ${s}`)();return o?c:he[n]=c}},e.createCompileError=T,e.createCoreContext=function(e={}){const t=f(e.version)?e.version:ce,n=f(e.locale)?e.locale:le,r=u(e.fallbackLocale)||_(e.fallbackLocale)||f(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=_(e.messages)?e.messages:{[n]:{}},l=_(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=_(e.numberFormats)?e.numberFormats:{[n]:{}},k=c({},e.modifiers||{},{upper:e=>f(e)?e.toUpperCase():e,lower:e=>f(e)?e.toLowerCase():e,capitalize:e=>f(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),h=e.pluralRules||{},T=i(e.missing)?e.missing:null,b=!m(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,g=!m(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,E=!!e.unresolving,N=i(e.postTranslation)?e.postTranslation:null,C=_(e.processor)?e.processor:null,A=!m(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,O=i(e.messageCompiler)?e.messageCompiler:ue,x=i(e.messageResolver)?e.messageResolver:ie||j,I=i(e.localeFallbacker)?e.localeFallbacker:fe||re,v=p(e.fallbackContext)?e.fallbackContext:void 0,F=i(e.onWarn)?e.onWarn:s,P=e,S=p(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,w=p(P.__numberFormatters)?P.__numberFormatters:new Map,D=p(P.__meta)?P.__meta:{};de++;const M={version:t,cid:de,locale:n,fallbackLocale:r,messages:a,modifiers:k,pluralRules:h,missing:T,missingWarn:b,fallbackWarn:g,fallbackFormat:L,unresolving:E,postTranslation:N,processor:C,warnHtmlMessage:A,escapeParameter:y,messageCompiler:O,messageResolver:x,localeFallbacker:I,fallbackContext:v,onWarn:F,__meta:D};return M.datetimeFormats=l,M.numberFormats=d,M.__datetimeFormatters=S,M.__numberFormatters=w,M},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=J,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[i,p,d,k]=ye(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=f(d.locale)?d.locale:e.locale,b=l(e,o,T);if(!f(i)||""===i)return new Intl.DateTimeFormat(T).format(p);let g,L={},E=null;for(let t=0;t<b.length&&(g=b[t],L=n[g]||{},E=L[i],!_(E));t++)ke(e,i,g,0,"datetime format");if(!_(E)||!f(g))return r?-1:i;let N=`${g}__${i}`;a(k)||(N=`${N}__${JSON.stringify(k)}`);let C=u.get(N);return C||(C=new Intl.DateTimeFormat(g,c({},E,k)),u.set(N,C)),h?C.formatToParts(p):C.format(p)},e.fallbackWithLocaleChain=function(e,t,n){const r=f(n)?n:le,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;u(e);)e=oe(a,e,t);const s=u(t)||!_(t)?t:t.default?t.default:null;e=f(s)?[s]:s,u(e)&&oe(a,e,!1),o.__localeChainCache.set(r,a)}return a},e.fallbackWithSimple=re,e.getAdditionalMeta=()=>me,e.getDevToolsHook=function(){return q},e.getFallbackContext=()=>pe,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&p(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(ne[e],...n)},e.handleMissing=ke,e.initI18nDevTools=function(e,t,n){q&&q.emit(Q,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=Ee,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,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__numberFormatters:u}=e,[i,p,d,k]=Oe(...t);m(d.missingWarn)?d.missingWarn:e.missingWarn,m(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=f(d.locale)?d.locale:e.locale,b=l(e,o,T);if(!f(i)||""===i)return new Intl.NumberFormat(T).format(p);let g,L={},E=null;for(let t=0;t<b.length&&(g=b[t],L=n[g]||{},E=L[i],!_(E));t++)ke(e,i,g,0,"number format");if(!_(E)||!f(g))return r?-1:i;let N=`${g}__${i}`;a(k)||(N=`${N}__${JSON.stringify(k)}`);let C=u.get(N);return C||(C=new Intl.NumberFormat(g,c({},E,k)),u.set(N,C)),h?C.formatToParts(p):C.format(p)},e.parse=V,e.parseDateTimeArgs=ye,e.parseNumberArgs=Oe,e.parseTranslateArgs=Ae,e.registerLocaleFallbacker=function(e){fe=e},e.registerMessageCompiler=function(e){ue=e},e.registerMessageResolver=function(e){ie=e},e.resolveValue=function(e,t){if(!p(e))return null;let n=K.get(t);if(n||(n=V(t),n&&K.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const e=o[n[a]];if(void 0===e)return null;o=e,a++}return o},e.resolveWithKeyValue=j,e.setAdditionalMeta=e=>{me=e},e.setDevToolsHook=function(e){q=e},e.setFallbackContext=e=>{pe=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,messageCompiler:s,fallbackLocale:c,messages:i}=e,[d,k]=Ae(...t),_=m(k.missingWarn)?k.missingWarn:e.missingWarn,h=m(k.fallbackWarn)?k.fallbackWarn:e.fallbackWarn,T=m(k.escapeParameter)?k.escapeParameter:e.escapeParameter,b=!!k.resolvedMessage,g=f(k.default)||m(k.default)?m(k.default)?s?d:()=>d:k.default:n?s?d:()=>d:"",L=n||""!==g,E=f(k.locale)?k.locale:e.locale;T&&function(e){u(e.list)?e.list=e.list.map((e=>f(e)?l(e):e)):p(e.named)&&Object.keys(e.named).forEach((t=>{f(e.named[t])&&(e.named[t]=l(e.named[t]))}))}(k);let[N,C,A]=b?[d,E,i[E]||{}]:Ne(e,d,E,c,h,_),y=N,O=d;if(b||f(y)||Ee(y)||L&&(y=g,O=y),!(b||(f(y)||Ee(y))&&f(C)))return a?-1:d;let x=!1;const I=Ee(y)?y:Ce(e,d,C,y,O,(()=>{x=!0}));if(x)return y;const v=function(e,t,n,o){const{modifiers:a,pluralRules:s,messageResolver:c,fallbackLocale:l,fallbackWarn:u,missingWarn:i,fallbackContext:m}=e,p=r=>{let o=c(n,r);if(null==o&&m){const[,,e]=Ne(m,r,t,l,u,i);o=c(e,r)}if(f(o)){let n=!1;const a=Ce(e,r,t,o,r,(()=>{n=!0}));return n?Le:a}return Ee(o)?o:Le},d={locale:t,modifiers:a,pluralRules:s,messages:p};e.processor&&(d.processor=e.processor);o.list&&(d.list=o.list);o.named&&(d.named=o.named);r(o.plural)&&(d.pluralIndex=o.plural);return d}(e,C,A,k),F=function(e,t,n){return t(n)}(0,I,J(v));return o?o(F):F},e.translateDevTools=Z,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
{
"name": "@intlify/core-base",
"version": "9.2.0-beta.33",
"version": "9.2.0-beta.34",
"description": "@intlify/core-base",

@@ -37,6 +37,6 @@ "keywords": [

"dependencies": {
"@intlify/devtools-if": "9.2.0-beta.33",
"@intlify/message-compiler": "9.2.0-beta.33",
"@intlify/shared": "9.2.0-beta.33",
"@intlify/vue-devtools": "9.2.0-beta.33"
"@intlify/devtools-if": "9.2.0-beta.34",
"@intlify/message-compiler": "9.2.0-beta.34",
"@intlify/shared": "9.2.0-beta.34",
"@intlify/vue-devtools": "9.2.0-beta.34"
},

@@ -43,0 +43,0 @@ "engines": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc