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

@intlify/core

Package Overview
Dependencies
Maintainers
2
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intlify/core - npm Package Compare versions

Comparing version 9.2.0-beta.14 to 9.2.0-beta.15

2

dist/core.cjs.js
/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 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=>_(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function a(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),_=e=>"[object Object]"===d(e),k={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function h(e,t,n={}){const{domain:r,messages:o,args:c}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function T(e){throw e}function b(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 s=e=>"\r"===t[e]&&"\n"===t[e+1],a=e=>t[e]===g,l=e=>t[e]===L,u=e=>s(e)||(e=>"\n"===t[e])(e)||a(e)||l(e),i=e=>s(e)||a(e)||l(e)?"\n":t[e];function f(){return c=0,u(n)&&(r++,o=0),s(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 s(n+c)&&c++,c++,t[n+c]},reset:function(){n=0,r=1,o=1,c=0},resetPeek:function(e=0){c=e},skipToPeek:function(){const e=n+c;for(;e!==n;)f();c=0}}}const 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},s=c(),a=o(),l={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,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=b(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 _(e){const t=d(e);return e.skipToPeek(),t}function k(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 T(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){_(e);const t=p(e,"|");return _(e),t}function v(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(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,s=!0;if(T(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=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===N&&c(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===N&&c(),t}(e)),_(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){_(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)),_(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){_(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,_(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 _(e),e.next(),f(t,9,".");case":":return _(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)?(_(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(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?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(_(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(T(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(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=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 a(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(5,c,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(4,c,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(9,c,s);return a.value=t.replace(A,C),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}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:s}=n,a=r(8,c,s);return 12!==t.type?(n.lastStartLoc,a.value="",o(a,c,s),{nextConsumeToken:t,node:a}):(null==t.value&&(n.lastStartLoc,x(t)),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(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=a(e,c.value||"");break;case 7:null==c.value&&(t.lastStartLoc,x(c)),n.key=u(e,c.value||"");break;default:t.lastStartLoc;const s=e.context(),i=r(7,s.offset,s.startLoc);return i.value="",o(i,s.offset,s.startLoc),n.key=i,o(n,s.offset,s.startLoc),{nextConsumeToken:c,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let s=null;do{const r=s||e.nextToken();switch(s=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(a(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),s=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,s=f(e);return 14===t.currentType?s:function(e,t,n,c){const s=e.context();let a=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);a||(a=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,s)}return{parse:function(n){const c=y(n,s({},e)),a=c.context(),l=r(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(c),14!==a.currentType&&(a.lastStartLoc,n[a.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=s({},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",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:c}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:c,indentLevel:0};function a(e,t){s.code+=e}function l(e,t=!0){const n=t?o:"";a(c?n+" ".repeat(e):n)}return{context:()=>s,push:a,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:c,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${a.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),F(l,e),l.deindent(s),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 $(e){const t=[];let n,r,o,c,s,a,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],s=l[c]||l.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(a=m[s[1]],a&&(o=n,!1===a())))return;if(7===i)return t}}const W=new Map;function U(e,t){return m(e)?e[t]:null}function K(e,t){if(!m(e))return null;let n=W.get(t);if(n||(n=$(t),n&&W.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)||_(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,s=e.list||[],a=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,a);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=_(e.processor)&&u(e.processor.normalize)?e.processor.normalize:V,p=_(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:H,d={list:e=>s[e],named:e=>a[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:_(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 se(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=ae(c,e,t);const s=l(t)||!_(t)?t:t.default?t.default:null;e=i(s)?[s]:s,l(e)&&ae(c,e,!1),o.__localeChainCache.set(r,c)}return c}function ae(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)||_(n))&&n[o]&&(r=n[o])}return r}const ie="9.2.0-beta.14",fe=-1,me="en-US",pe="";let de,_e,ke;function he(e){de=e}function Te(e){_e=e}function be(e){ke=e}let Le=null;const ge=e=>{Le=e},Ee=()=>Le;let Ne=0;function ye(e={}){const t=i(e.version)?e.version:"9.2.0-beta.14",n=i(e.locale)?e.locale:me,o=l(e.fallbackLocale)||_(e.fallbackLocale)||i(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=_(e.messages)?e.messages:{[n]:{}},p=_(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=_(e.numberFormats)?e.numberFormats:{[n]:{}},k=s({},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||{},T=u(e.missing)?e.missing:null,b=!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=_(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:_e||U,I=u(e.localeFallbacker)?e.localeFallbacker:ke||ce,P=u(e.onWarn)?e.onWarn:c,v=e,F=m(v.__datetimeFormatters)?v.__datetimeFormatters:new Map,w=m(v.__numberFormatters)?v.__numberFormatters:new Map,S=m(v.__meta)?v.__meta:{};Ne++;const R={version:t,cid:Ne,locale:n,fallbackLocale:o,messages:a,modifiers:k,pluralRules:h,missing:T,missingWarn:b,fallbackWarn:L,fallbackFormat:g,unresolving:E,postTranslation:N,processor:y,warnHtmlMessage:A,escapeParameter:C,messageCompiler:O,messageResolver:x,localeFallbacker:I,onWarn:P,__meta:S};return R.datetimeFormats=p,R.numberFormats=d,R.__datetimeFormatters=F,R.__numberFormatters=w,R}function Ae(e,t){return e instanceof RegExp?e.test(t):e}function Ce(e,t){return e instanceof RegExp?e.test(t):e}function Oe(e,t,n,r,o){const{missing:c,onWarn:s}=e;if(null!==c){const r=c(e,n,t,o);return i(r)?r:t}return t}function xe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Ie=e=>e;let Pe=Object.create(null);function ve(){Pe=Object.create(null)}function Fe(e,t={}){{const n=(t.onCacheKey||Ie)(e),r=Pe[n];if(r)return r;let o=!1;const c=t.onError||T;t.onError=e=>{o=!0,c(e)};const{code:s}=w(e,t),a=new Function(`return ${s}`)();return o?a:Pe[n]=a}}let we=k.__EXTEND_POINT__;const Se=()=>we++,Re={INVALID_ARGUMENT:we,INVALID_DATE_ARGUMENT:Se(),INVALID_ISO_DATE_ARGUMENT:Se(),__EXTEND_POINT__:Se()};function De(e){return h(e,null,void 0)}const Me=()=>"",$e=e=>u(e);function We(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,fallbackLocale:s,messages:p}=e,[d,_]=Ke(...t),k=(f(_.missingWarn)?_.missingWarn:e.missingWarn,f(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,f(_.escapeParameter)?_.escapeParameter:e.escapeParameter),h=!!_.resolvedMessage,T=i(_.default)||f(_.default)?f(_.default)?d:_.default:r?d:"",b=r||""!==T,L=i(_.locale)?_.locale:e.locale;k&&function(e){l(e.list)?e.list=e.list.map((e=>i(e)?a(e):e)):m(e.named)&&Object.keys(e.named).forEach((t=>{i(e.named[t])&&(e.named[t]=a(e.named[t]))}))}(_);let[g,E,N]=h?[d,L,p[L]||{}]:function(e,t,n,r,o,c){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:f}=e,m=f(e,r,n);let p,d={},_=null;const k="translate";for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(_=l(d,t))&&(_=d[t]),!i(_)&&!u(_));n++){const n=Oe(e,t,p,0,k);n!==t&&(_=n)}return[_,p,d]}(e,d,L,s),y=d;if(h||i(g)||$e(g)||b&&(g=T,y=g),!(h||(i(g)||$e(g))&&i(E)))return c?-1:d;let A=!1;const C=$e(g)?g:Ue(e,d,E,g,y,(()=>{A=!0}));if(A)return g;const O=function(e,t,r,o){const{modifiers:c,pluralRules:s,messageResolver:a}=e,l=n=>{const o=a(r,n);if(i(o)){let r=!1;const c=Ue(e,n,t,o,n,(()=>{r=!0}));return r?Me:c}return $e(o)?o:Me},u={locale:t,modifiers:c,pluralRules:s,messages:l};e.processor&&(u.processor=e.processor);o.list&&(u.list=o.list);o.named&&(u.named=o.named);n(o.plural)&&(u.pluralIndex=o.plural);return u}(e,E,N,_),x=function(e,t,n){return t(n)}(0,C,z(O));return o?o(x):x}function Ue(e,n,r,o,c,s){const{messageCompiler:a,warnHtmlMessage:l}=e;if($e(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}const u=a(o,function(e,n,r,o,c,s){return{warnHtmlMessage:c,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,l,s));return u.locale=r,u.key=n,u.source=o,u}function Ke(...e){const[t,r,c]=e,a={};if(!i(t)&&!n(t)&&!$e(t))throw Error(Re.INVALID_ARGUMENT);const u=n(t)?String(t):($e(t),t);return n(r)?a.plural=r:i(r)?a.default=r:_(r)&&!o(r)?a.named=r:l(r)&&(a.list=r),n(c)?a.plural=c:i(c)?a.default=c:_(c)&&s(a,c),[u,a]}function je(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c,onWarn:a,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[m,p,d,k]=Be(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=i(d.locale)?d.locale:e.locale,b=l(e,c,T);if(!i(m)||""===m)return new Intl.DateTimeFormat(T).format(p);let L,g={},E=null;for(let t=0;t<b.length&&(L=b[t],g=n[L]||{},E=g[m],!_(E));t++)Oe(e,m,L,0,"datetime format");if(!_(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let y=u.get(N);return y||(y=new Intl.DateTimeFormat(L,s({},E,k)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function Be(...e){const[t,r,o,c]=e;let s,a={},l={};if(i(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Re.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(Re.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===d(t)){if(isNaN(t.getTime()))throw Error(Re.INVALID_DATE_ARGUMENT);s=t}else{if(!n(t))throw Error(Re.INVALID_ARGUMENT);s=t}return i(r)?a.key=r:_(r)&&(a=r),i(o)?a.locale=o:_(o)&&(l=o),_(c)&&(l=c),[a.key||"",s,a,l]}function Ge(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ve(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c,onWarn:a,localeFallbacker:l}=e,{__numberFormatters:u}=e,[m,p,d,k]=He(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=i(d.locale)?d.locale:e.locale,b=l(e,c,T);if(!i(m)||""===m)return new Intl.NumberFormat(T).format(p);let L,g={},E=null;for(let t=0;t<b.length&&(L=b[t],g=n[L]||{},E=g[m],!_(E));t++)Oe(e,m,L,0,"number format");if(!_(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let y=u.get(N);return y||(y=new Intl.NumberFormat(L,s({},E,k)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function He(...e){const[t,r,o,c]=e;let s={},a={};if(!n(t))throw Error(Re.INVALID_ARGUMENT);const l=t;return i(r)?s.key=r:_(r)&&(s=r),i(o)?s.locale=o:_(o)&&(a=o),_(c)&&(a=c),[s.key||"",l,s,a]}function Xe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}he(Fe),Te(K),be(se);export{k as CompileErrorCodes,Re 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,ve as clearCompileCache,Ge as clearDateTimeFormat,Xe as clearNumberFormat,Fe as compileToFunction,h as createCompileError,ye as createCoreContext,De as createCoreError,z as createMessageContext,je as datetime,se as fallbackWithLocaleChain,ce as fallbackWithSimple,Ee as getAdditionalMeta,q as getDevToolsHook,oe as getWarnMessage,Oe as handleMissing,Z as initI18nDevTools,$e as isMessageFunction,Ae as isTranslateFallbackWarn,Ce as isTranslateMissingWarn,Ve as number,$ as parse,Be as parseDateTimeArgs,He as parseNumberArgs,Ke as parseTranslateArgs,be as registerLocaleFallbacker,he as registerMessageCompiler,Te as registerMessageResolver,K as resolveValue,U as resolveWithKeyValue,ge as setAdditionalMeta,Q as setDevToolsHook,We as translate,ee as translateDevTools,xe 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=>_(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function a(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),_=e=>"[object Object]"===d(e),k={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function h(e,t,n={}){const{domain:r,messages:o,args:c}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function T(e){throw e}function b(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 s=e=>"\r"===t[e]&&"\n"===t[e+1],a=e=>t[e]===g,l=e=>t[e]===L,u=e=>s(e)||(e=>"\n"===t[e])(e)||a(e)||l(e),i=e=>s(e)||a(e)||l(e)?"\n":t[e];function f(){return c=0,u(n)&&(r++,o=0),s(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 s(n+c)&&c++,c++,t[n+c]},reset:function(){n=0,r=1,o=1,c=0},resetPeek:function(e=0){c=e},skipToPeek:function(){const e=n+c;for(;e!==n;)f();c=0}}}const 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},s=c(),a=o(),l={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,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=b(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 _(e){const t=d(e);return e.skipToPeek(),t}function k(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 T(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){_(e);const t=p(e,"|");return _(e),t}function v(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&c(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&c(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(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,s=!0;if(T(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=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===N&&c(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===N&&c(),t}(e)),_(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){_(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)),_(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){_(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,_(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 _(e),e.next(),f(t,9,".");case":":return _(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)?(_(e),F(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(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?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(_(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(T(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(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=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 a(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(5,c,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(4,c,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:c,lastStartLoc:s}=n,a=r(9,c,s);return a.value=t.replace(A,C),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}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:s}=n,a=r(8,c,s);return 12!==t.type?(n.lastStartLoc,a.value="",o(a,c,s),{nextConsumeToken:t,node:a}):(null==t.value&&(n.lastStartLoc,x(t)),a.value=t.value||"",o(a,e.currentOffset(),e.currentPosition()),{node:a})}(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=a(e,c.value||"");break;case 7:null==c.value&&(t.lastStartLoc,x(c)),n.key=u(e,c.value||"");break;default:t.lastStartLoc;const s=e.context(),i=r(7,s.offset,s.startLoc);return i.value="",o(i,s.offset,s.startLoc),n.key=i,o(n,s.offset,s.startLoc),{nextConsumeToken:c,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let s=null;do{const r=s||e.nextToken();switch(s=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(a(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),s=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,s=f(e);return 14===t.currentType?s:function(e,t,n,c){const s=e.context();let a=0===c.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(c);do{const t=f(e);a||(a=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return o(l,e.currentOffset(),e.currentPosition()),l}(e,n,c,s)}return{parse:function(n){const c=y(n,s({},e)),a=c.context(),l=r(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(c),14!==a.currentType&&(a.lastStartLoc,n[a.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=s({},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",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:c}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:c,indentLevel:0};function a(e,t){s.code+=e}function l(e,t=!0){const n=t?o:"";a(c?n+" ".repeat(e):n)}return{context:()=>s,push:a,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:c,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${a.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),F(l,e),l.deindent(s),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 $(e){const t=[];let n,r,o,c,s,a,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],s=l[c]||l.l||8,8===s)return;if(i=s[0],void 0!==s[1]&&(a=m[s[1]],a&&(o=n,!1===a())))return;if(7===i)return t}}const W=new Map;function U(e,t){return m(e)?e[t]:null}function K(e,t){if(!m(e))return null;let n=W.get(t);if(n||(n=$(t),n&&W.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)||_(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,s=e.list||[],a=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,a);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=_(e.processor)&&u(e.processor.normalize)?e.processor.normalize:V,p=_(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:H,d={list:e=>s[e],named:e=>a[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:_(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 se(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=ae(c,e,t);const s=l(t)||!_(t)?t:t.default?t.default:null;e=i(s)?[s]:s,l(e)&&ae(c,e,!1),o.__localeChainCache.set(r,c)}return c}function ae(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)||_(n))&&n[o]&&(r=n[o])}return r}const ie="9.2.0-beta.15",fe=-1,me="en-US",pe="";let de,_e,ke;function he(e){de=e}function Te(e){_e=e}function be(e){ke=e}let Le=null;const ge=e=>{Le=e},Ee=()=>Le;let Ne=0;function ye(e={}){const t=i(e.version)?e.version:"9.2.0-beta.15",n=i(e.locale)?e.locale:me,o=l(e.fallbackLocale)||_(e.fallbackLocale)||i(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=_(e.messages)?e.messages:{[n]:{}},p=_(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=_(e.numberFormats)?e.numberFormats:{[n]:{}},k=s({},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||{},T=u(e.missing)?e.missing:null,b=!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=_(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:_e||U,I=u(e.localeFallbacker)?e.localeFallbacker:ke||ce,P=u(e.onWarn)?e.onWarn:c,v=e,F=m(v.__datetimeFormatters)?v.__datetimeFormatters:new Map,w=m(v.__numberFormatters)?v.__numberFormatters:new Map,S=m(v.__meta)?v.__meta:{};Ne++;const R={version:t,cid:Ne,locale:n,fallbackLocale:o,messages:a,modifiers:k,pluralRules:h,missing:T,missingWarn:b,fallbackWarn:L,fallbackFormat:g,unresolving:E,postTranslation:N,processor:y,warnHtmlMessage:A,escapeParameter:C,messageCompiler:O,messageResolver:x,localeFallbacker:I,onWarn:P,__meta:S};return R.datetimeFormats=p,R.numberFormats=d,R.__datetimeFormatters=F,R.__numberFormatters=w,R}function Ae(e,t){return e instanceof RegExp?e.test(t):e}function Ce(e,t){return e instanceof RegExp?e.test(t):e}function Oe(e,t,n,r,o){const{missing:c,onWarn:s}=e;if(null!==c){const r=c(e,n,t,o);return i(r)?r:t}return t}function xe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Ie=e=>e;let Pe=Object.create(null);function ve(){Pe=Object.create(null)}function Fe(e,t={}){{const n=(t.onCacheKey||Ie)(e),r=Pe[n];if(r)return r;let o=!1;const c=t.onError||T;t.onError=e=>{o=!0,c(e)};const{code:s}=w(e,t),a=new Function(`return ${s}`)();return o?a:Pe[n]=a}}let we=k.__EXTEND_POINT__;const Se=()=>we++,Re={INVALID_ARGUMENT:we,INVALID_DATE_ARGUMENT:Se(),INVALID_ISO_DATE_ARGUMENT:Se(),__EXTEND_POINT__:Se()};function De(e){return h(e,null,void 0)}const Me=()=>"",$e=e=>u(e);function We(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:c,fallbackLocale:s,messages:p}=e,[d,_]=Ke(...t),k=(f(_.missingWarn)?_.missingWarn:e.missingWarn,f(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,f(_.escapeParameter)?_.escapeParameter:e.escapeParameter),h=!!_.resolvedMessage,T=i(_.default)||f(_.default)?f(_.default)?d:_.default:r?d:"",b=r||""!==T,L=i(_.locale)?_.locale:e.locale;k&&function(e){l(e.list)?e.list=e.list.map((e=>i(e)?a(e):e)):m(e.named)&&Object.keys(e.named).forEach((t=>{i(e.named[t])&&(e.named[t]=a(e.named[t]))}))}(_);let[g,E,N]=h?[d,L,p[L]||{}]:function(e,t,n,r,o,c){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:f}=e,m=f(e,r,n);let p,d={},_=null;const k="translate";for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(_=l(d,t))&&(_=d[t]),!i(_)&&!u(_));n++){const n=Oe(e,t,p,0,k);n!==t&&(_=n)}return[_,p,d]}(e,d,L,s),y=d;if(h||i(g)||$e(g)||b&&(g=T,y=g),!(h||(i(g)||$e(g))&&i(E)))return c?-1:d;let A=!1;const C=$e(g)?g:Ue(e,d,E,g,y,(()=>{A=!0}));if(A)return g;const O=function(e,t,r,o){const{modifiers:c,pluralRules:s,messageResolver:a}=e,l=n=>{const o=a(r,n);if(i(o)){let r=!1;const c=Ue(e,n,t,o,n,(()=>{r=!0}));return r?Me:c}return $e(o)?o:Me},u={locale:t,modifiers:c,pluralRules:s,messages:l};e.processor&&(u.processor=e.processor);o.list&&(u.list=o.list);o.named&&(u.named=o.named);n(o.plural)&&(u.pluralIndex=o.plural);return u}(e,E,N,_),x=function(e,t,n){return t(n)}(0,C,z(O));return o?o(x):x}function Ue(e,n,r,o,c,s){const{messageCompiler:a,warnHtmlMessage:l}=e;if($e(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||n,e}const u=a(o,function(e,n,r,o,c,s){return{warnHtmlMessage:c,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,c,0,l,s));return u.locale=r,u.key=n,u.source=o,u}function Ke(...e){const[t,r,c]=e,a={};if(!i(t)&&!n(t)&&!$e(t))throw Error(Re.INVALID_ARGUMENT);const u=n(t)?String(t):($e(t),t);return n(r)?a.plural=r:i(r)?a.default=r:_(r)&&!o(r)?a.named=r:l(r)&&(a.list=r),n(c)?a.plural=c:i(c)?a.default=c:_(c)&&s(a,c),[u,a]}function je(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:c,onWarn:a,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[m,p,d,k]=Be(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=i(d.locale)?d.locale:e.locale,b=l(e,c,T);if(!i(m)||""===m)return new Intl.DateTimeFormat(T).format(p);let L,g={},E=null;for(let t=0;t<b.length&&(L=b[t],g=n[L]||{},E=g[m],!_(E));t++)Oe(e,m,L,0,"datetime format");if(!_(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let y=u.get(N);return y||(y=new Intl.DateTimeFormat(L,s({},E,k)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function Be(...e){const[t,r,o,c]=e;let s,a={},l={};if(i(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Re.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(Re.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===d(t)){if(isNaN(t.getTime()))throw Error(Re.INVALID_DATE_ARGUMENT);s=t}else{if(!n(t))throw Error(Re.INVALID_ARGUMENT);s=t}return i(r)?a.key=r:_(r)&&(a=r),i(o)?a.locale=o:_(o)&&(l=o),_(c)&&(l=c),[a.key||"",s,a,l]}function Ge(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Ve(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:c,onWarn:a,localeFallbacker:l}=e,{__numberFormatters:u}=e,[m,p,d,k]=He(...t);f(d.missingWarn)?d.missingWarn:e.missingWarn;f(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,T=i(d.locale)?d.locale:e.locale,b=l(e,c,T);if(!i(m)||""===m)return new Intl.NumberFormat(T).format(p);let L,g={},E=null;for(let t=0;t<b.length&&(L=b[t],g=n[L]||{},E=g[m],!_(E));t++)Oe(e,m,L,0,"number format");if(!_(E)||!i(L))return r?-1:m;let N=`${L}__${m}`;o(k)||(N=`${N}__${JSON.stringify(k)}`);let y=u.get(N);return y||(y=new Intl.NumberFormat(L,s({},E,k)),u.set(N,y)),h?y.formatToParts(p):y.format(p)}function He(...e){const[t,r,o,c]=e;let s={},a={};if(!n(t))throw Error(Re.INVALID_ARGUMENT);const l=t;return i(r)?s.key=r:_(r)&&(s=r),i(o)?s.locale=o:_(o)&&(a=o),_(c)&&(a=c),[s.key||"",l,s,a]}function Xe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}he(Fe),Te(K),be(se);export{k as CompileErrorCodes,Re 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,ve as clearCompileCache,Ge as clearDateTimeFormat,Xe as clearNumberFormat,Fe as compileToFunction,h as createCompileError,ye as createCoreContext,De as createCoreError,z as createMessageContext,je as datetime,se as fallbackWithLocaleChain,ce as fallbackWithSimple,Ee as getAdditionalMeta,q as getDevToolsHook,oe as getWarnMessage,Oe as handleMissing,Z as initI18nDevTools,$e as isMessageFunction,Ae as isTranslateFallbackWarn,Ce as isTranslateMissingWarn,Ve as number,$ as parse,Be as parseDateTimeArgs,He as parseNumberArgs,Ke as parseTranslateArgs,be as registerLocaleFallbacker,he as registerMessageCompiler,Te as registerMessageResolver,K as resolveValue,U as resolveWithKeyValue,ge as setAdditionalMeta,Q as setDevToolsHook,We as translate,ee as translateDevTools,xe as updateFallbackLocale};
/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
var IntlifyCore=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]"===_(e),a=e=>k(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,_=e=>d.call(e),k=e=>"[object Object]"===_(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 g(e){throw e}function L(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const b=" ",E="\n",N=String.fromCharCode(8232),A=String.fromCharCode(8233);function C(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]===A,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=C(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=L(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()===b||e.currentPeek()===E;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function k(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 g(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===b||r===E):a===b?(e.peek(),n(!0,b,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 A(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 I(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function v(e){let t="",n="";for(;t=O(e);)n+=t;return n}function F(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return x(e,t,4);case"U":return x(e,t,6);default:return a(),""}}function x(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=I(e);if(!t){a(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){_(e);const t=p(e,"|");return _(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&a(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&a(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(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=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=A(e);)n+=t;return e.currentChar()===y&&a(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${v(e)}`):t+=v(e),e.currentChar()===y&&a(),t}(e)),_(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){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==E;for(;t=N(e,r);)n+="\\"===t?F(e):t;const o=e.currentChar();return o===E||o===y?(a(),o===E&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==b&&e!==E;for(;t=N(e,r);)n+=t;return n}(e)),a(),n.value,_(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!==b||a(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(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)?(_(e),w(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),f(t,12,function(e){let t="",n="";for(;t=A(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?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===b||!t)&&(t===E?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(_(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===b?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(g(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!g(e))break;t+=n,e.next()}else if(n===b||n===E)if(g(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 I=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function v(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 F(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(I,v),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,x(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,x(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&(t.lastStartLoc,x(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,x(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&(t.lastStartLoc,x(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&(t.lastStartLoc,x(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,x(r)),n.items.push(a(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),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 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 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=F(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}function G(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}const B=e=>e,H=e=>"",X="text",Y=e=>0===e.length?"":e.join(""),z=e=>null==e?"":u(e)||k(e)&&e.toString===d?JSON.stringify(e,null,2):String(e);function J(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Q(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]:J,a=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?J: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):H)}const u=k(e.processor)&&i(e.processor.normalize)?e.processor.normalize:Y,m=k(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:z,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]:B)(r):r;var o},message:l,type:k(e.processor)&&f(e.processor.type)?e.processor.type:X,interpolate:m,normalize:u};return d}const q="i18n:init";let Z=null;const ee=te("function:translate");function te(e){return t=>Z&&Z.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(e,t,n){return[...new Set([n,...u(t)?t:p(t)?Object.keys(t):f(t)?[t]:[n]])]}function ae(e,t,n){const r=f(n)?n:ie,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;u(e);)e=se(a,e,t);const s=u(t)||!k(t)?t:t.default?t.default:null;e=f(s)?[s]:s,u(e)&&se(a,e,!1),o.__localeChainCache.set(r,a)}return a}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){const a=t[o];f(a)&&(r=ce(e,t[o],n))}return r}function ce(e,t,n){let r;const o=t.split("-");do{r=le(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function le(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)||k(n))&&n[o]&&(r=n[o])}return r}const ue="9.2.0-beta.14",ie="en-US";let fe,me,pe;function de(e){fe=e}function _e(e){me=e}function ke(e){pe=e}let he=null;let Te=0;function ge(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 Le=e=>e;let be=Object.create(null);function Ee(e,t={}){{const n=(t.onCacheKey||Le)(e),r=be[n];if(r)return r;let o=!1;const a=t.onError||g;t.onError=e=>{o=!0,a(e)};const{code:s}=M(e,t),c=new Function(`return ${s}`)();return o?c:be[n]=c}}let Ne=h.__EXTEND_POINT__;const Ae=()=>Ne++,Ce={INVALID_ARGUMENT:Ne,INVALID_DATE_ARGUMENT:Ae(),INVALID_ISO_DATE_ARGUMENT:Ae(),__EXTEND_POINT__:Ae()};const ye=()=>"",Oe=e=>i(e);function Ie(e,t,r,o,a,s){const{messageCompiler:c,warnHtmlMessage:l}=e;if(Oe(o)){const e=o;return e.locale=e.locale||r,e.key=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 ve(...e){const[t,n,o]=e,s={};if(!f(t)&&!r(t)&&!Oe(t))throw Error(Ce.INVALID_ARGUMENT);const l=r(t)?String(t):(Oe(t),t);return r(n)?s.plural=n:f(n)?s.default=n:k(n)&&!a(n)?s.named=n:u(n)&&(s.list=n),r(o)?s.plural=o:f(o)?s.default=o:k(o)&&c(s,o),[l,s]}function Fe(...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(Ce.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(Ce.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===_(t)){if(isNaN(t.getTime()))throw Error(Ce.INVALID_DATE_ARGUMENT);s=t}else{if(!r(t))throw Error(Ce.INVALID_ARGUMENT);s=t}return f(n)?c.key=n:k(n)&&(c=n),f(o)?c.locale=o:k(o)&&(l=o),k(a)&&(l=a),[c.key||"",s,c,l]}function xe(...e){const[t,n,o,a]=e;let s={},c={};if(!r(t))throw Error(Ce.INVALID_ARGUMENT);const l=t;return f(n)?s.key=n:k(n)&&(s=n),f(o)?s.locale=o:k(o)&&(c=o),k(a)&&(c=a),[s.key||"",l,s,c]}return de(Ee),_e(G),ke(ae),e.CompileErrorCodes=h,e.CoreErrorCodes=Ce,e.CoreWarnCodes=ne,e.DEFAULT_LOCALE=ie,e.DEFAULT_MESSAGE_DATA_TYPE=X,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION=ue,e.clearCompileCache=function(){be=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=Ee,e.createCompileError=T,e.createCoreContext=function(e={}){const t=f(e.version)?e.version:ue,n=f(e.locale)?e.locale:ie,r=u(e.fallbackLocale)||k(e.fallbackLocale)||f(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=k(e.messages)?e.messages:{[n]:{}},l=k(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=k(e.numberFormats)?e.numberFormats:{[n]:{}},_=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,g=!m(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,L=!m(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,E=!!e.unresolving,N=i(e.postTranslation)?e.postTranslation:null,A=k(e.processor)?e.processor:null,C=!m(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,O=i(e.messageCompiler)?e.messageCompiler:fe,I=i(e.messageResolver)?e.messageResolver:me||j,v=i(e.localeFallbacker)?e.localeFallbacker:pe||oe,F=i(e.onWarn)?e.onWarn:s,x=e,P=p(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,S=p(x.__numberFormatters)?x.__numberFormatters:new Map,w=p(x.__meta)?x.__meta:{};Te++;const D={version:t,cid:Te,locale:n,fallbackLocale:r,messages:a,modifiers:_,pluralRules:h,missing:T,missingWarn:g,fallbackWarn:L,fallbackFormat:b,unresolving:E,postTranslation:N,processor:A,warnHtmlMessage:C,escapeParameter:y,messageCompiler:O,messageResolver:I,localeFallbacker:v,onWarn:F,__meta:w};return D.datetimeFormats=l,D.numberFormats=d,D.__datetimeFormatters=P,D.__numberFormatters=S,D},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=Q,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[i,p,d,_]=Fe(...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,g=l(e,o,T);if(!f(i)||""===i)return new Intl.DateTimeFormat(T).format(p);let L,b={},E=null;for(let t=0;t<g.length&&(L=g[t],b=n[L]||{},E=b[i],!k(E));t++)ge(e,i,L,0,"datetime format");if(!k(E)||!f(L))return r?-1:i;let N=`${L}__${i}`;a(_)||(N=`${N}__${JSON.stringify(_)}`);let A=u.get(N);return A||(A=new Intl.DateTimeFormat(L,c({},E,_)),u.set(N,A)),h?A.formatToParts(p):A.format(p)},e.fallbackWithLocaleChain=ae,e.fallbackWithSimple=oe,e.getAdditionalMeta=()=>he,e.getDevToolsHook=function(){return Z},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]:""))}(re[e],...n)},e.handleMissing=ge,e.initI18nDevTools=function(e,t,n){Z&&Z.emit(q,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=Oe,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,_]=xe(...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,g=l(e,o,T);if(!f(i)||""===i)return new Intl.NumberFormat(T).format(p);let L,b={},E=null;for(let t=0;t<g.length&&(L=g[t],b=n[L]||{},E=b[i],!k(E));t++)ge(e,i,L,0,"number format");if(!k(E)||!f(L))return r?-1:i;let N=`${L}__${i}`;a(_)||(N=`${N}__${JSON.stringify(_)}`);let A=u.get(N);return A||(A=new Intl.NumberFormat(L,c({},E,_)),u.set(N,A)),h?A.formatToParts(p):A.format(p)},e.parse=V,e.parseDateTimeArgs=Fe,e.parseNumberArgs=xe,e.parseTranslateArgs=ve,e.registerLocaleFallbacker=ke,e.registerMessageCompiler=de,e.registerMessageResolver=_e,e.resolveValue=G,e.resolveWithKeyValue=j,e.setAdditionalMeta=e=>{he=e},e.setDevToolsHook=function(e){Z=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,fallbackLocale:s,messages:c}=e,[d,_]=ve(...t),k=(m(_.missingWarn)?_.missingWarn:e.missingWarn,m(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,m(_.escapeParameter)?_.escapeParameter:e.escapeParameter),h=!!_.resolvedMessage,T=f(_.default)||m(_.default)?m(_.default)?d:_.default:n?d:"",g=n||""!==T,L=f(_.locale)?_.locale:e.locale;k&&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]))}))}(_);let[b,E,N]=h?[d,L,c[L]||{}]:function(e,t,n,r,o,a){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,m=u(e,r,n);let p,d={},_=null;const k="translate";for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(_=l(d,t))&&(_=d[t]),!f(_)&&!i(_));n++){const n=ge(e,t,p,0,k);n!==t&&(_=n)}return[_,p,d]}(e,d,L,s),A=d;if(h||f(b)||Oe(b)||g&&(b=T,A=b),!(h||(f(b)||Oe(b))&&f(E)))return a?-1:d;let C=!1;const y=Oe(b)?b:Ie(e,d,E,b,A,(()=>{C=!0}));if(C)return b;const O=function(e,t,n,o){const{modifiers:a,pluralRules:s,messageResolver:c}=e,l=r=>{const o=c(n,r);if(f(o)){let n=!1;const a=Ie(e,r,t,o,r,(()=>{n=!0}));return n?ye:a}return Oe(o)?o:ye},u={locale:t,modifiers:a,pluralRules:s,messages:l};e.processor&&(u.processor=e.processor);o.list&&(u.list=o.list);o.named&&(u.named=o.named);r(o.plural)&&(u.pluralIndex=o.plural);return u}(e,E,N,_),I=function(e,t,n){return t(n)}(0,y,Q(O));return o?o(I):I},e.translateDevTools=ee,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
var IntlifyCore=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]"===_(e),a=e=>k(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,_=e=>d.call(e),k=e=>"[object Object]"===_(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 g(e){throw e}function L(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const b=" ",E="\n",N=String.fromCharCode(8232),A=String.fromCharCode(8233);function C(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]===A,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=C(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=L(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()===b||e.currentPeek()===E;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function k(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 g(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===b||r===E):a===b?(e.peek(),n(!0,b,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 A(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 I(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function v(e){let t="",n="";for(;t=O(e);)n+=t;return n}function F(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return x(e,t,4);case"U":return x(e,t,6);default:return a(),""}}function x(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=I(e);if(!t){a(),e.currentChar();break}r+=t}return`\\${t}${r}`}function P(e){_(e);const t=p(e,"|");return _(e),t}function S(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&a(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&a(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(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=k(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=A(e);)n+=t;return e.currentChar()===y&&a(),n}(e)),_(e),n;if(o=h(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${v(e)}`):t+=v(e),e.currentChar()===y&&a(),t}(e)),_(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){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==E;for(;t=N(e,r);)n+="\\"===t?F(e):t;const o=e.currentChar();return o===E||o===y?(a(),o===E&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==b&&e!==E;for(;t=N(e,r);)n+=t;return n}(e)),a(),n.value,_(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!==b||a(),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(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)?(_(e),w(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=k(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),f(t,12,function(e){let t="",n="";for(;t=A(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?k(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===b||!t)&&(t===E?(e.peek(),r()):k(t))},o=r();return e.resetPeek(),o}(e,t)?(_(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===b?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(g(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!g(e))break;t+=n,e.next()}else if(n===b||n===E)if(g(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 I=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function v(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 F(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(I,v),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,x(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,x(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&(t.lastStartLoc,x(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,x(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&(t.lastStartLoc,x(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&(t.lastStartLoc,x(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,x(r)),n.items.push(a(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),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 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 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=F(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}function G(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}const B=e=>e,H=e=>"",X="text",Y=e=>0===e.length?"":e.join(""),z=e=>null==e?"":u(e)||k(e)&&e.toString===d?JSON.stringify(e,null,2):String(e);function J(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Q(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]:J,a=p(e.pluralRules)&&f(t)&&i(e.pluralRules[t])?J: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):H)}const u=k(e.processor)&&i(e.processor.normalize)?e.processor.normalize:Y,m=k(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:z,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]:B)(r):r;var o},message:l,type:k(e.processor)&&f(e.processor.type)?e.processor.type:X,interpolate:m,normalize:u};return d}const q="i18n:init";let Z=null;const ee=te("function:translate");function te(e){return t=>Z&&Z.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(e,t,n){return[...new Set([n,...u(t)?t:p(t)?Object.keys(t):f(t)?[t]:[n]])]}function ae(e,t,n){const r=f(n)?n:ie,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;u(e);)e=se(a,e,t);const s=u(t)||!k(t)?t:t.default?t.default:null;e=f(s)?[s]:s,u(e)&&se(a,e,!1),o.__localeChainCache.set(r,a)}return a}function se(e,t,n){let r=!0;for(let o=0;o<t.length&&m(r);o++){const a=t[o];f(a)&&(r=ce(e,t[o],n))}return r}function ce(e,t,n){let r;const o=t.split("-");do{r=le(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function le(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)||k(n))&&n[o]&&(r=n[o])}return r}const ue="9.2.0-beta.15",ie="en-US";let fe,me,pe;function de(e){fe=e}function _e(e){me=e}function ke(e){pe=e}let he=null;let Te=0;function ge(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 Le=e=>e;let be=Object.create(null);function Ee(e,t={}){{const n=(t.onCacheKey||Le)(e),r=be[n];if(r)return r;let o=!1;const a=t.onError||g;t.onError=e=>{o=!0,a(e)};const{code:s}=M(e,t),c=new Function(`return ${s}`)();return o?c:be[n]=c}}let Ne=h.__EXTEND_POINT__;const Ae=()=>Ne++,Ce={INVALID_ARGUMENT:Ne,INVALID_DATE_ARGUMENT:Ae(),INVALID_ISO_DATE_ARGUMENT:Ae(),__EXTEND_POINT__:Ae()};const ye=()=>"",Oe=e=>i(e);function Ie(e,t,r,o,a,s){const{messageCompiler:c,warnHtmlMessage:l}=e;if(Oe(o)){const e=o;return e.locale=e.locale||r,e.key=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 ve(...e){const[t,n,o]=e,s={};if(!f(t)&&!r(t)&&!Oe(t))throw Error(Ce.INVALID_ARGUMENT);const l=r(t)?String(t):(Oe(t),t);return r(n)?s.plural=n:f(n)?s.default=n:k(n)&&!a(n)?s.named=n:u(n)&&(s.list=n),r(o)?s.plural=o:f(o)?s.default=o:k(o)&&c(s,o),[l,s]}function Fe(...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(Ce.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(Ce.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===_(t)){if(isNaN(t.getTime()))throw Error(Ce.INVALID_DATE_ARGUMENT);s=t}else{if(!r(t))throw Error(Ce.INVALID_ARGUMENT);s=t}return f(n)?c.key=n:k(n)&&(c=n),f(o)?c.locale=o:k(o)&&(l=o),k(a)&&(l=a),[c.key||"",s,c,l]}function xe(...e){const[t,n,o,a]=e;let s={},c={};if(!r(t))throw Error(Ce.INVALID_ARGUMENT);const l=t;return f(n)?s.key=n:k(n)&&(s=n),f(o)?s.locale=o:k(o)&&(c=o),k(a)&&(c=a),[s.key||"",l,s,c]}return de(Ee),_e(G),ke(ae),e.CompileErrorCodes=h,e.CoreErrorCodes=Ce,e.CoreWarnCodes=ne,e.DEFAULT_LOCALE=ie,e.DEFAULT_MESSAGE_DATA_TYPE=X,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION=ue,e.clearCompileCache=function(){be=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=Ee,e.createCompileError=T,e.createCoreContext=function(e={}){const t=f(e.version)?e.version:ue,n=f(e.locale)?e.locale:ie,r=u(e.fallbackLocale)||k(e.fallbackLocale)||f(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=k(e.messages)?e.messages:{[n]:{}},l=k(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=k(e.numberFormats)?e.numberFormats:{[n]:{}},_=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,g=!m(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,L=!m(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,E=!!e.unresolving,N=i(e.postTranslation)?e.postTranslation:null,A=k(e.processor)?e.processor:null,C=!m(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,O=i(e.messageCompiler)?e.messageCompiler:fe,I=i(e.messageResolver)?e.messageResolver:me||j,v=i(e.localeFallbacker)?e.localeFallbacker:pe||oe,F=i(e.onWarn)?e.onWarn:s,x=e,P=p(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,S=p(x.__numberFormatters)?x.__numberFormatters:new Map,w=p(x.__meta)?x.__meta:{};Te++;const D={version:t,cid:Te,locale:n,fallbackLocale:r,messages:a,modifiers:_,pluralRules:h,missing:T,missingWarn:g,fallbackWarn:L,fallbackFormat:b,unresolving:E,postTranslation:N,processor:A,warnHtmlMessage:C,escapeParameter:y,messageCompiler:O,messageResolver:I,localeFallbacker:v,onWarn:F,__meta:w};return D.datetimeFormats=l,D.numberFormats=d,D.__datetimeFormatters=P,D.__numberFormatters=S,D},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=Q,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[i,p,d,_]=Fe(...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,g=l(e,o,T);if(!f(i)||""===i)return new Intl.DateTimeFormat(T).format(p);let L,b={},E=null;for(let t=0;t<g.length&&(L=g[t],b=n[L]||{},E=b[i],!k(E));t++)ge(e,i,L,0,"datetime format");if(!k(E)||!f(L))return r?-1:i;let N=`${L}__${i}`;a(_)||(N=`${N}__${JSON.stringify(_)}`);let A=u.get(N);return A||(A=new Intl.DateTimeFormat(L,c({},E,_)),u.set(N,A)),h?A.formatToParts(p):A.format(p)},e.fallbackWithLocaleChain=ae,e.fallbackWithSimple=oe,e.getAdditionalMeta=()=>he,e.getDevToolsHook=function(){return Z},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]:""))}(re[e],...n)},e.handleMissing=ge,e.initI18nDevTools=function(e,t,n){Z&&Z.emit(q,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=Oe,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,_]=xe(...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,g=l(e,o,T);if(!f(i)||""===i)return new Intl.NumberFormat(T).format(p);let L,b={},E=null;for(let t=0;t<g.length&&(L=g[t],b=n[L]||{},E=b[i],!k(E));t++)ge(e,i,L,0,"number format");if(!k(E)||!f(L))return r?-1:i;let N=`${L}__${i}`;a(_)||(N=`${N}__${JSON.stringify(_)}`);let A=u.get(N);return A||(A=new Intl.NumberFormat(L,c({},E,_)),u.set(N,A)),h?A.formatToParts(p):A.format(p)},e.parse=V,e.parseDateTimeArgs=Fe,e.parseNumberArgs=xe,e.parseTranslateArgs=ve,e.registerLocaleFallbacker=ke,e.registerMessageCompiler=de,e.registerMessageResolver=_e,e.resolveValue=G,e.resolveWithKeyValue=j,e.setAdditionalMeta=e=>{he=e},e.setDevToolsHook=function(e){Z=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,fallbackLocale:s,messages:c}=e,[d,_]=ve(...t),k=(m(_.missingWarn)?_.missingWarn:e.missingWarn,m(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,m(_.escapeParameter)?_.escapeParameter:e.escapeParameter),h=!!_.resolvedMessage,T=f(_.default)||m(_.default)?m(_.default)?d:_.default:n?d:"",g=n||""!==T,L=f(_.locale)?_.locale:e.locale;k&&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]))}))}(_);let[b,E,N]=h?[d,L,c[L]||{}]:function(e,t,n,r,o,a){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,m=u(e,r,n);let p,d={},_=null;const k="translate";for(let n=0;n<m.length&&(p=m[n],d=s[p]||{},null===(_=l(d,t))&&(_=d[t]),!f(_)&&!i(_));n++){const n=ge(e,t,p,0,k);n!==t&&(_=n)}return[_,p,d]}(e,d,L,s),A=d;if(h||f(b)||Oe(b)||g&&(b=T,A=b),!(h||(f(b)||Oe(b))&&f(E)))return a?-1:d;let C=!1;const y=Oe(b)?b:Ie(e,d,E,b,A,(()=>{C=!0}));if(C)return b;const O=function(e,t,n,o){const{modifiers:a,pluralRules:s,messageResolver:c}=e,l=r=>{const o=c(n,r);if(f(o)){let n=!1;const a=Ie(e,r,t,o,r,(()=>{n=!0}));return n?ye:a}return Oe(o)?o:ye},u={locale:t,modifiers:a,pluralRules:s,messages:l};e.processor&&(u.processor=e.processor);o.list&&(u.list=o.list);o.named&&(u.named=o.named);r(o.plural)&&(u.pluralIndex=o.plural);return u}(e,E,N,_),I=function(e,t,n){return t(n)}(0,y,Q(O));return o?o(I):I},e.translateDevTools=ee,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi

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

*/
const VERSION = '9.2.0-beta.14';
const VERSION = '9.2.0-beta.15';
const NOT_REOSLVED = -1;

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

/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 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]"===p(e),a=e=>E(e)&&0===Object.keys(e).length;function o(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const l=Object.assign;function s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const c=Array.isArray,i=e=>"function"==typeof e,u=e=>"string"==typeof e,m=e=>"boolean"==typeof e,f=e=>null!==e&&"object"==typeof e,_=Object.prototype.toString,p=e=>_.call(e),E=e=>"[object Object]"===p(e),g={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 N(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const A=[];A[0]={w:[0],i:[3,0],"[":[4],o:[7]},A[1]={w:[1],".":[2],"[":[4],o:[7]},A[2]={w:[2],i:[3,0],0:[3,0]},A[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},A[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},A[5]={"'":[4,0],o:8,l:[5,0]},A[6]={'"':[4,0],o:8,l:[6,0]};const d=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function T(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 b(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,d.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 I(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,m=0;const f=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=b(r),!1===r)return!1;f[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=T(n),c=A[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const L=new Map;function F(e,t){return f(e)?e[t]:null}function O(e,t){if(!f(e))return null;let n=L.get(t);if(n||(n=I(t),n&&L.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const k=e=>e,h=e=>"",C="text",R=e=>0===e.length?"":e.join(""),D=e=>null==e?"":c(e)||E(e)&&e.toString===_?JSON.stringify(e,null,2):String(e);function M(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function w(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),a=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?e.pluralRules[t]:M,o=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?M:void 0,l=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function c(t){const n=i(e.messages)?e.messages(t):!!f(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):h)}const m=E(e.processor)&&i(e.processor.normalize)?e.processor.normalize:R,_=E(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:D,p={list:e=>l[e],named:e=>s[e],plural:e=>e[a(r,e.length,o)],linked:(t,n)=>{const r=c(t)(p);return u(n)?(a=n,e.modifiers?e.modifiers[a]:k)(r):r;var a},message:c,type:E(e.processor)&&u(e.processor.type)?e.processor.type:"text",interpolate:_,normalize:m};return p}const y="i18n:init";let W=null;function S(e){W=e}function U(){return W}function v(e,t,n){W&&W.emit(y,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const P=$("function:translate");function $(e){return t=>W&&W.emit(e,t)}const K={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},B={[K.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[K.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[K.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[K.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[K.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[K.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function G(t,...n){return function(t,...n){return 1===n.length&&f(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(B[t],...n)}function V(e,t,n){return[...new Set([n,...c(t)?t:f(t)?Object.keys(t):u(t)?[t]:[n]])]}function j(e,t,n){const r=u(n)?n:J,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;c(e);)e=x(o,e,t);const l=c(t)||!E(t)?t:t.default?t.default:null;e=u(l)?[l]:l,c(e)&&x(o,e,!1),a.__localeChainCache.set(r,o)}return o}function x(e,t,n){let r=!0;for(let a=0;a<t.length&&m(r);a++){const o=t[a];u(o)&&(r=H(e,t[a],n))}return r}function H(e,t,n){let r;const a=t.split("-");do{r=X(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function X(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(c(n)||E(n))&&n[a]&&(r=n[a])}return r}const Y="9.2.0-beta.14",z=-1,J="en-US",Q="";let q,Z,ee;function te(e){q=e}function ne(e){Z=e}function re(e){ee=e}let ae=null;const oe=e=>{ae=e},le=()=>ae;let se=0;function ce(e={}){const t=u(e.version)?e.version:"9.2.0-beta.14",n=u(e.locale)?e.locale:J,a=c(e.fallbackLocale)||E(e.fallbackLocale)||u(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=E(e.messages)?e.messages:{[n]:{}},_=E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},p=E(e.numberFormats)?e.numberFormats:{[n]:{}},g=l({},e.modifiers||{},{upper:e=>u(e)?e.toUpperCase():e,lower:e=>u(e)?e.toLowerCase():e,capitalize:e=>u(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),N=e.pluralRules||{},A=i(e.missing)?e.missing:null,d=!m(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,T=!m(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,I=!!e.unresolving,L=i(e.postTranslation)?e.postTranslation:null,O=E(e.processor)?e.processor:null,k=!m(e.warnHtmlMessage)||e.warnHtmlMessage,h=!!e.escapeParameter,C=i(e.messageCompiler)?e.messageCompiler:q,R=i(e.messageResolver)?e.messageResolver:Z||F,D=i(e.localeFallbacker)?e.localeFallbacker:ee||V,M=i(e.onWarn)?e.onWarn:o,w=e,y=f(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,W=f(w.__numberFormatters)?w.__numberFormatters:new Map,S=f(w.__meta)?w.__meta:{};se++;const U={version:t,cid:se,locale:n,fallbackLocale:a,messages:s,modifiers:g,pluralRules:N,missing:A,missingWarn:d,fallbackWarn:T,fallbackFormat:b,unresolving:I,postTranslation:L,processor:O,warnHtmlMessage:k,escapeParameter:h,messageCompiler:C,messageResolver:R,localeFallbacker:D,onWarn:M,__meta:S};return U.datetimeFormats=_,U.numberFormats=p,U.__datetimeFormatters=y,U.__numberFormatters=W,U}function ie(e,t){return e instanceof RegExp?e.test(t):e}function ue(e,t){return e instanceof RegExp?e.test(t):e}function me(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return u(r)?r:t}return t}function fe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function _e(){}function pe(e,t={}){return()=>e}let Ee=g.__EXTEND_POINT__;const ge=()=>Ee++,Ne={INVALID_ARGUMENT:Ee,INVALID_DATE_ARGUMENT:ge(),INVALID_ISO_DATE_ARGUMENT:ge(),__EXTEND_POINT__:ge()};function Ae(e){return N(e,null,void 0)}const de=()=>"",Te=e=>i(e);function be(e,...t){const{fallbackFormat:r,postTranslation:a,unresolving:o,fallbackLocale:l,messages:_}=e,[p,E]=Le(...t),g=(m(E.missingWarn)?E.missingWarn:e.missingWarn,m(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,m(E.escapeParameter)?E.escapeParameter:e.escapeParameter),N=!!E.resolvedMessage,A=u(E.default)||m(E.default)?m(E.default)?p:E.default:r?p:"",d=r||""!==A,T=u(E.locale)?E.locale:e.locale;g&&function(e){c(e.list)?e.list=e.list.map((e=>u(e)?s(e):e)):f(e.named)&&Object.keys(e.named).forEach((t=>{u(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(E);let[b,I,L]=N?[p,T,_[T]||{}]:function(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:m}=e,f=m(e,r,n);let _,p={},E=null;const g="translate";for(let n=0;n<f.length&&(_=f[n],p=l[_]||{},null===(E=c(p,t))&&(E=p[t]),!u(E)&&!i(E));n++){const n=me(e,t,_,0,g);n!==t&&(E=n)}return[E,_,p]}(e,p,T,l),F=p;if(N||u(b)||Te(b)||d&&(b=A,F=b),!(N||(u(b)||Te(b))&&u(I)))return o?-1:p;let O=!1;const k=Te(b)?b:Ie(e,p,I,b,F,(()=>{O=!0}));if(O)return b;const h=function(e,t,r,a){const{modifiers:o,pluralRules:l,messageResolver:s}=e,c=n=>{const a=s(r,n);if(u(a)){let r=!1;const o=Ie(e,n,t,a,n,(()=>{r=!0}));return r?de:o}return Te(a)?a:de},i={locale:t,modifiers:o,pluralRules:l,messages:c};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);n(a.plural)&&(i.pluralIndex=a.plural);return i}(e,I,L,E),C=function(e,t,n){return t(n)}(0,k,w(h));return a?a(C):C}function Ie(e,n,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Te(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||n,e}const i=s(a,function(e,n,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,o,0,c,l));return i.locale=r,i.key=n,i.source=a,i}function Le(...e){const[t,r,o]=e,s={};if(!u(t)&&!n(t)&&!Te(t))throw Error(Ne.INVALID_ARGUMENT);const i=n(t)?String(t):(Te(t),t);return n(r)?s.plural=r:u(r)?s.default=r:E(r)&&!a(r)?s.named=r:c(r)&&(s.list=r),n(o)?s.plural=o:u(o)?s.default=o:E(o)&&l(s,o),[i,s]}function Fe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__datetimeFormatters:i}=e,[f,_,p,g]=Oe(...t);m(p.missingWarn)?p.missingWarn:e.missingWarn;m(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const N=!!p.part,A=u(p.locale)?p.locale:e.locale,d=c(e,o,A);if(!u(f)||""===f)return new Intl.DateTimeFormat(A).format(_);let T,b={},I=null;for(let t=0;t<d.length&&(T=d[t],b=n[T]||{},I=b[f],!E(I));t++)me(e,f,T,0,"datetime format");if(!E(I)||!u(T))return r?-1:f;let L=`${T}__${f}`;a(g)||(L=`${L}__${JSON.stringify(g)}`);let F=i.get(L);return F||(F=new Intl.DateTimeFormat(T,l({},I,g)),i.set(L,F)),N?F.formatToParts(_):F.format(_)}function Oe(...e){const[t,r,a,o]=e;let l,s={},c={};if(u(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Ne.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Ne.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===p(t)){if(isNaN(t.getTime()))throw Error(Ne.INVALID_DATE_ARGUMENT);l=t}else{if(!n(t))throw Error(Ne.INVALID_ARGUMENT);l=t}return u(r)?s.key=r:E(r)&&(s=r),u(a)?s.locale=a:E(a)&&(c=a),E(o)&&(c=o),[s.key||"",l,s,c]}function ke(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function he(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__numberFormatters:i}=e,[f,_,p,g]=Ce(...t);m(p.missingWarn)?p.missingWarn:e.missingWarn;m(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const N=!!p.part,A=u(p.locale)?p.locale:e.locale,d=c(e,o,A);if(!u(f)||""===f)return new Intl.NumberFormat(A).format(_);let T,b={},I=null;for(let t=0;t<d.length&&(T=d[t],b=n[T]||{},I=b[f],!E(I));t++)me(e,f,T,0,"number format");if(!E(I)||!u(T))return r?-1:f;let L=`${T}__${f}`;a(g)||(L=`${L}__${JSON.stringify(g)}`);let F=i.get(L);return F||(F=new Intl.NumberFormat(T,l({},I,g)),i.set(L,F)),N?F.formatToParts(_):F.format(_)}function Ce(...e){const[t,r,a,o]=e;let l={},s={};if(!n(t))throw Error(Ne.INVALID_ARGUMENT);const c=t;return u(r)?l.key=r:E(r)&&(l=r),u(a)?l.locale=a:E(a)&&(s=a),E(o)&&(s=o),[l.key||"",c,l,s]}function Re(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}ne(O),re(j);export{g as CompileErrorCodes,Ne as CoreErrorCodes,K as CoreWarnCodes,J as DEFAULT_LOCALE,C as DEFAULT_MESSAGE_DATA_TYPE,Q as MISSING_RESOLVE_VALUE,z as NOT_REOSLVED,Y as VERSION,_e as clearCompileCache,ke as clearDateTimeFormat,Re as clearNumberFormat,pe as compileToFunction,N as createCompileError,ce as createCoreContext,Ae as createCoreError,w as createMessageContext,Fe as datetime,j as fallbackWithLocaleChain,V as fallbackWithSimple,le as getAdditionalMeta,U as getDevToolsHook,G as getWarnMessage,me as handleMissing,v as initI18nDevTools,Te as isMessageFunction,ie as isTranslateFallbackWarn,ue as isTranslateMissingWarn,he as number,I as parse,Oe as parseDateTimeArgs,Ce as parseNumberArgs,Le as parseTranslateArgs,re as registerLocaleFallbacker,te as registerMessageCompiler,ne as registerMessageResolver,O as resolveValue,F as resolveWithKeyValue,oe as setAdditionalMeta,S as setDevToolsHook,be as translate,P as translateDevTools,fe 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]"===p(e),a=e=>E(e)&&0===Object.keys(e).length;function o(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const l=Object.assign;function s(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const c=Array.isArray,i=e=>"function"==typeof e,u=e=>"string"==typeof e,m=e=>"boolean"==typeof e,f=e=>null!==e&&"object"==typeof e,_=Object.prototype.toString,p=e=>_.call(e),E=e=>"[object Object]"===p(e),g={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 N(e,t,n={}){const{domain:r,messages:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const A=[];A[0]={w:[0],i:[3,0],"[":[4],o:[7]},A[1]={w:[1],".":[2],"[":[4],o:[7]},A[2]={w:[2],i:[3,0],0:[3,0]},A[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},A[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},A[5]={"'":[4,0],o:8,l:[5,0]},A[6]={'"':[4,0],o:8,l:[6,0]};const d=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function T(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 b(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,d.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 I(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,m=0;const f=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=b(r),!1===r)return!1;f[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=T(n),c=A[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const L=new Map;function F(e,t){return f(e)?e[t]:null}function O(e,t){if(!f(e))return null;let n=L.get(t);if(n||(n=I(t),n&&L.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const k=e=>e,h=e=>"",C="text",R=e=>0===e.length?"":e.join(""),D=e=>null==e?"":c(e)||E(e)&&e.toString===_?JSON.stringify(e,null,2):String(e);function M(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function w(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),a=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?e.pluralRules[t]:M,o=f(e.pluralRules)&&u(t)&&i(e.pluralRules[t])?M:void 0,l=e.list||[],s=e.named||{};n(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(r,s);function c(t){const n=i(e.messages)?e.messages(t):!!f(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):h)}const m=E(e.processor)&&i(e.processor.normalize)?e.processor.normalize:R,_=E(e.processor)&&i(e.processor.interpolate)?e.processor.interpolate:D,p={list:e=>l[e],named:e=>s[e],plural:e=>e[a(r,e.length,o)],linked:(t,n)=>{const r=c(t)(p);return u(n)?(a=n,e.modifiers?e.modifiers[a]:k)(r):r;var a},message:c,type:E(e.processor)&&u(e.processor.type)?e.processor.type:"text",interpolate:_,normalize:m};return p}const y="i18n:init";let W=null;function S(e){W=e}function U(){return W}function v(e,t,n){W&&W.emit(y,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const P=$("function:translate");function $(e){return t=>W&&W.emit(e,t)}const K={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},B={[K.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[K.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[K.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[K.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[K.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[K.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function G(t,...n){return function(t,...n){return 1===n.length&&f(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(e,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(B[t],...n)}function V(e,t,n){return[...new Set([n,...c(t)?t:f(t)?Object.keys(t):u(t)?[t]:[n]])]}function j(e,t,n){const r=u(n)?n:J,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;c(e);)e=x(o,e,t);const l=c(t)||!E(t)?t:t.default?t.default:null;e=u(l)?[l]:l,c(e)&&x(o,e,!1),a.__localeChainCache.set(r,o)}return o}function x(e,t,n){let r=!0;for(let a=0;a<t.length&&m(r);a++){const o=t[a];u(o)&&(r=H(e,t[a],n))}return r}function H(e,t,n){let r;const a=t.split("-");do{r=X(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function X(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(c(n)||E(n))&&n[a]&&(r=n[a])}return r}const Y="9.2.0-beta.15",z=-1,J="en-US",Q="";let q,Z,ee;function te(e){q=e}function ne(e){Z=e}function re(e){ee=e}let ae=null;const oe=e=>{ae=e},le=()=>ae;let se=0;function ce(e={}){const t=u(e.version)?e.version:"9.2.0-beta.15",n=u(e.locale)?e.locale:J,a=c(e.fallbackLocale)||E(e.fallbackLocale)||u(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=E(e.messages)?e.messages:{[n]:{}},_=E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},p=E(e.numberFormats)?e.numberFormats:{[n]:{}},g=l({},e.modifiers||{},{upper:e=>u(e)?e.toUpperCase():e,lower:e=>u(e)?e.toLowerCase():e,capitalize:e=>u(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),N=e.pluralRules||{},A=i(e.missing)?e.missing:null,d=!m(e.missingWarn)&&!r(e.missingWarn)||e.missingWarn,T=!m(e.fallbackWarn)&&!r(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,I=!!e.unresolving,L=i(e.postTranslation)?e.postTranslation:null,O=E(e.processor)?e.processor:null,k=!m(e.warnHtmlMessage)||e.warnHtmlMessage,h=!!e.escapeParameter,C=i(e.messageCompiler)?e.messageCompiler:q,R=i(e.messageResolver)?e.messageResolver:Z||F,D=i(e.localeFallbacker)?e.localeFallbacker:ee||V,M=i(e.onWarn)?e.onWarn:o,w=e,y=f(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,W=f(w.__numberFormatters)?w.__numberFormatters:new Map,S=f(w.__meta)?w.__meta:{};se++;const U={version:t,cid:se,locale:n,fallbackLocale:a,messages:s,modifiers:g,pluralRules:N,missing:A,missingWarn:d,fallbackWarn:T,fallbackFormat:b,unresolving:I,postTranslation:L,processor:O,warnHtmlMessage:k,escapeParameter:h,messageCompiler:C,messageResolver:R,localeFallbacker:D,onWarn:M,__meta:S};return U.datetimeFormats=_,U.numberFormats=p,U.__datetimeFormatters=y,U.__numberFormatters=W,U}function ie(e,t){return e instanceof RegExp?e.test(t):e}function ue(e,t){return e instanceof RegExp?e.test(t):e}function me(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return u(r)?r:t}return t}function fe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function _e(){}function pe(e,t={}){return()=>e}let Ee=g.__EXTEND_POINT__;const ge=()=>Ee++,Ne={INVALID_ARGUMENT:Ee,INVALID_DATE_ARGUMENT:ge(),INVALID_ISO_DATE_ARGUMENT:ge(),__EXTEND_POINT__:ge()};function Ae(e){return N(e,null,void 0)}const de=()=>"",Te=e=>i(e);function be(e,...t){const{fallbackFormat:r,postTranslation:a,unresolving:o,fallbackLocale:l,messages:_}=e,[p,E]=Le(...t),g=(m(E.missingWarn)?E.missingWarn:e.missingWarn,m(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,m(E.escapeParameter)?E.escapeParameter:e.escapeParameter),N=!!E.resolvedMessage,A=u(E.default)||m(E.default)?m(E.default)?p:E.default:r?p:"",d=r||""!==A,T=u(E.locale)?E.locale:e.locale;g&&function(e){c(e.list)?e.list=e.list.map((e=>u(e)?s(e):e)):f(e.named)&&Object.keys(e.named).forEach((t=>{u(e.named[t])&&(e.named[t]=s(e.named[t]))}))}(E);let[b,I,L]=N?[p,T,_[T]||{}]:function(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:m}=e,f=m(e,r,n);let _,p={},E=null;const g="translate";for(let n=0;n<f.length&&(_=f[n],p=l[_]||{},null===(E=c(p,t))&&(E=p[t]),!u(E)&&!i(E));n++){const n=me(e,t,_,0,g);n!==t&&(E=n)}return[E,_,p]}(e,p,T,l),F=p;if(N||u(b)||Te(b)||d&&(b=A,F=b),!(N||(u(b)||Te(b))&&u(I)))return o?-1:p;let O=!1;const k=Te(b)?b:Ie(e,p,I,b,F,(()=>{O=!0}));if(O)return b;const h=function(e,t,r,a){const{modifiers:o,pluralRules:l,messageResolver:s}=e,c=n=>{const a=s(r,n);if(u(a)){let r=!1;const o=Ie(e,n,t,a,n,(()=>{r=!0}));return r?de:o}return Te(a)?a:de},i={locale:t,modifiers:o,pluralRules:l,messages:c};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);n(a.plural)&&(i.pluralIndex=a.plural);return i}(e,I,L,E),C=function(e,t,n){return t(n)}(0,k,w(h));return a?a(C):C}function Ie(e,n,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Te(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||n,e}const i=s(a,function(e,n,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,n,r)=>t({l:e,k:n,s:r}))(n,r,e)}}(0,r,o,0,c,l));return i.locale=r,i.key=n,i.source=a,i}function Le(...e){const[t,r,o]=e,s={};if(!u(t)&&!n(t)&&!Te(t))throw Error(Ne.INVALID_ARGUMENT);const i=n(t)?String(t):(Te(t),t);return n(r)?s.plural=r:u(r)?s.default=r:E(r)&&!a(r)?s.named=r:c(r)&&(s.list=r),n(o)?s.plural=o:u(o)?s.default=o:E(o)&&l(s,o),[i,s]}function Fe(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__datetimeFormatters:i}=e,[f,_,p,g]=Oe(...t);m(p.missingWarn)?p.missingWarn:e.missingWarn;m(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const N=!!p.part,A=u(p.locale)?p.locale:e.locale,d=c(e,o,A);if(!u(f)||""===f)return new Intl.DateTimeFormat(A).format(_);let T,b={},I=null;for(let t=0;t<d.length&&(T=d[t],b=n[T]||{},I=b[f],!E(I));t++)me(e,f,T,0,"datetime format");if(!E(I)||!u(T))return r?-1:f;let L=`${T}__${f}`;a(g)||(L=`${L}__${JSON.stringify(g)}`);let F=i.get(L);return F||(F=new Intl.DateTimeFormat(T,l({},I,g)),i.set(L,F)),N?F.formatToParts(_):F.format(_)}function Oe(...e){const[t,r,a,o]=e;let l,s={},c={};if(u(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Ne.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Ne.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===p(t)){if(isNaN(t.getTime()))throw Error(Ne.INVALID_DATE_ARGUMENT);l=t}else{if(!n(t))throw Error(Ne.INVALID_ARGUMENT);l=t}return u(r)?s.key=r:E(r)&&(s=r),u(a)?s.locale=a:E(a)&&(c=a),E(o)&&(c=o),[s.key||"",l,s,c]}function ke(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function he(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:c}=e,{__numberFormatters:i}=e,[f,_,p,g]=Ce(...t);m(p.missingWarn)?p.missingWarn:e.missingWarn;m(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const N=!!p.part,A=u(p.locale)?p.locale:e.locale,d=c(e,o,A);if(!u(f)||""===f)return new Intl.NumberFormat(A).format(_);let T,b={},I=null;for(let t=0;t<d.length&&(T=d[t],b=n[T]||{},I=b[f],!E(I));t++)me(e,f,T,0,"number format");if(!E(I)||!u(T))return r?-1:f;let L=`${T}__${f}`;a(g)||(L=`${L}__${JSON.stringify(g)}`);let F=i.get(L);return F||(F=new Intl.NumberFormat(T,l({},I,g)),i.set(L,F)),N?F.formatToParts(_):F.format(_)}function Ce(...e){const[t,r,a,o]=e;let l={},s={};if(!n(t))throw Error(Ne.INVALID_ARGUMENT);const c=t;return u(r)?l.key=r:E(r)&&(l=r),u(a)?l.locale=a:E(a)&&(s=a),E(o)&&(s=o),[l.key||"",c,l,s]}function Re(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}ne(O),re(j);export{g as CompileErrorCodes,Ne as CoreErrorCodes,K as CoreWarnCodes,J as DEFAULT_LOCALE,C as DEFAULT_MESSAGE_DATA_TYPE,Q as MISSING_RESOLVE_VALUE,z as NOT_REOSLVED,Y as VERSION,_e as clearCompileCache,ke as clearDateTimeFormat,Re as clearNumberFormat,pe as compileToFunction,N as createCompileError,ce as createCoreContext,Ae as createCoreError,w as createMessageContext,Fe as datetime,j as fallbackWithLocaleChain,V as fallbackWithSimple,le as getAdditionalMeta,U as getDevToolsHook,G as getWarnMessage,me as handleMissing,v as initI18nDevTools,Te as isMessageFunction,ie as isTranslateFallbackWarn,ue as isTranslateMissingWarn,he as number,I as parse,Oe as parseDateTimeArgs,Ce as parseNumberArgs,Le as parseTranslateArgs,re as registerLocaleFallbacker,te as registerMessageCompiler,ne as registerMessageResolver,O as resolveValue,F as resolveWithKeyValue,oe as setAdditionalMeta,S as setDevToolsHook,be as translate,P as translateDevTools,fe as updateFallbackLocale};
/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi

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

*/
const VERSION = '9.2.0-beta.14';
const VERSION = '9.2.0-beta.15';
const NOT_REOSLVED = -1;

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

/*!
* core v9.2.0-beta.14
* core v9.2.0-beta.15
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
var IntlifyCore=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),a=e=>"[object RegExp]"===p(e),o=e=>g(e)&&0===Object.keys(e).length;function l(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function c(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const i=Array.isArray,u=e=>"function"==typeof e,m=e=>"string"==typeof e,f=e=>"boolean"==typeof e,_=e=>null!==e&&"object"==typeof e,E=Object.prototype.toString,p=e=>E.call(e),g=e=>"[object Object]"===p(e),A={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:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const d=[];d[0]={w:[0],i:[3,0],"[":[4],o:[7]},d[1]={w:[1],".":[2],"[":[4],o:[7]},d[2]={w:[2],i:[3,0],0:[3,0]},d[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},d[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},d[5]={"'":[4,0],o:8,l:[5,0]},d[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function b(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 C(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,N.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 L(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,m=0;const f=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=C(r),!1===r)return!1;f[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=b(n),c=d[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const F=new Map;function I(e,t){return _(e)?e[t]:null}function k(e,t){if(!_(e))return null;let n=F.get(t);if(n||(n=L(t),n&&F.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const O=e=>e,D=e=>"",h="text",M=e=>0===e.length?"":e.join(""),R=e=>null==e?"":i(e)||g(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function y(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function W(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),a=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?e.pluralRules[t]:y,o=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?y:void 0,l=e.list||[],s=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=u(e.messages)?e.messages(t):!!_(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):D)}const i=g(e.processor)&&u(e.processor.normalize)?e.processor.normalize:M,f=g(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:R,E={list:e=>l[e],named:e=>s[e],plural:e=>e[a(n,e.length,o)],linked:(t,n)=>{const r=c(t)(E);return m(n)?(a=n,e.modifiers?e.modifiers[a]:O)(r):r;var a},message:c,type:g(e.processor)&&m(e.processor.type)?e.processor.type:h,interpolate:f,normalize:i};return E}const w="i18n:init";let S=null;const v=U("function:translate");function U(e){return t=>S&&S.emit(e,t)}const P={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},V={[P.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[P.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[P.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[P.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function $(e,t,n){return[...new Set([n,...i(t)?t:_(t)?Object.keys(t):m(t)?[t]:[n]])]}function K(e,t,n){const r=m(n)?n:x,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;i(e);)e=G(o,e,t);const l=i(t)||!g(t)?t:t.default?t.default:null;e=m(l)?[l]:l,i(e)&&G(o,e,!1),a.__localeChainCache.set(r,o)}return o}function G(e,t,n){let r=!0;for(let a=0;a<t.length&&f(r);a++){const o=t[a];m(o)&&(r=j(e,t[a],n))}return r}function j(e,t,n){let r;const a=t.split("-");do{r=B(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function B(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(i(n)||g(n))&&n[a]&&(r=n[a])}return r}const H="9.2.0-beta.14",x="en-US";let X,Y,z;function J(e){Y=e}function Q(e){z=e}let q=null;let Z=0;function ee(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return m(r)?r:t}return t}let te=A.__EXTEND_POINT__;const ne=()=>te++,re={INVALID_ARGUMENT:te,INVALID_DATE_ARGUMENT:ne(),INVALID_ISO_DATE_ARGUMENT:ne(),__EXTEND_POINT__:ne()};const ae=()=>"",oe=e=>u(e);function le(e,t,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(oe(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||t,e}const i=s(a,function(e,t,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,o,0,c,l));return i.locale=r,i.key=t,i.source=a,i}function se(...e){const[t,n,a]=e,l={};if(!m(t)&&!r(t)&&!oe(t))throw Error(re.INVALID_ARGUMENT);const c=r(t)?String(t):(oe(t),t);return r(n)?l.plural=n:m(n)?l.default=n:g(n)&&!o(n)?l.named=n:i(n)&&(l.list=n),r(a)?l.plural=a:m(a)?l.default=a:g(a)&&s(l,a),[c,l]}function ce(...e){const[t,n,a,o]=e;let l,s={},c={};if(m(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(re.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(re.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===p(t)){if(isNaN(t.getTime()))throw Error(re.INVALID_DATE_ARGUMENT);l=t}else{if(!r(t))throw Error(re.INVALID_ARGUMENT);l=t}return m(n)?s.key=n:g(n)&&(s=n),m(a)?s.locale=a:g(a)&&(c=a),g(o)&&(c=o),[s.key||"",l,s,c]}function ie(...e){const[t,n,a,o]=e;let l={},s={};if(!r(t))throw Error(re.INVALID_ARGUMENT);const c=t;return m(n)?l.key=n:g(n)&&(l=n),m(a)?l.locale=a:g(a)&&(s=a),g(o)&&(s=o),[l.key||"",c,l,s]}return J(k),Q(K),e.CompileErrorCodes=A,e.CoreErrorCodes=re,e.CoreWarnCodes=P,e.DEFAULT_LOCALE=x,e.DEFAULT_MESSAGE_DATA_TYPE=h,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION=H,e.clearCompileCache=function(){},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={}){return()=>e},e.createCompileError=T,e.createCoreContext=function(e={}){const t=m(e.version)?e.version:H,n=m(e.locale)?e.locale:x,r=i(e.fallbackLocale)||g(e.fallbackLocale)||m(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=g(e.messages)?e.messages:{[n]:{}},c=g(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},E=g(e.numberFormats)?e.numberFormats:{[n]:{}},p=s({},e.modifiers||{},{upper:e=>m(e)?e.toUpperCase():e,lower:e=>m(e)?e.toLowerCase():e,capitalize:e=>m(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),A=e.pluralRules||{},T=u(e.missing)?e.missing:null,d=!f(e.missingWarn)&&!a(e.missingWarn)||e.missingWarn,N=!f(e.fallbackWarn)&&!a(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,C=!!e.unresolving,L=u(e.postTranslation)?e.postTranslation:null,F=g(e.processor)?e.processor:null,k=!f(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,D=u(e.messageCompiler)?e.messageCompiler:X,h=u(e.messageResolver)?e.messageResolver:Y||I,M=u(e.localeFallbacker)?e.localeFallbacker:z||$,R=u(e.onWarn)?e.onWarn:l,y=e,W=_(y.__datetimeFormatters)?y.__datetimeFormatters:new Map,w=_(y.__numberFormatters)?y.__numberFormatters:new Map,S=_(y.__meta)?y.__meta:{};Z++;const v={version:t,cid:Z,locale:n,fallbackLocale:r,messages:o,modifiers:p,pluralRules:A,missing:T,missingWarn:d,fallbackWarn:N,fallbackFormat:b,unresolving:C,postTranslation:L,processor:F,warnHtmlMessage:k,escapeParameter:O,messageCompiler:D,messageResolver:h,localeFallbacker:M,onWarn:R,__meta:S};return v.datetimeFormats=c,v.numberFormats=E,v.__datetimeFormatters=W,v.__numberFormatters=w,v},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=W,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:c}=e,{__datetimeFormatters:i}=e,[u,_,E,p]=ce(...t);f(E.missingWarn)?E.missingWarn:e.missingWarn,f(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn;const A=!!E.part,T=m(E.locale)?E.locale:e.locale,d=c(e,a,T);if(!m(u)||""===u)return new Intl.DateTimeFormat(T).format(_);let N,b={},C=null;for(let t=0;t<d.length&&(N=d[t],b=n[N]||{},C=b[u],!g(C));t++)ee(e,u,N,0,"datetime format");if(!g(C)||!m(N))return r?-1:u;let L=`${N}__${u}`;o(p)||(L=`${L}__${JSON.stringify(p)}`);let F=i.get(L);return F||(F=new Intl.DateTimeFormat(N,s({},C,p)),i.set(L,F)),A?F.formatToParts(_):F.format(_)},e.fallbackWithLocaleChain=K,e.fallbackWithSimple=$,e.getAdditionalMeta=()=>q,e.getDevToolsHook=function(){return S},e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&_(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(V[e],...n)},e.handleMissing=ee,e.initI18nDevTools=function(e,t,n){S&&S.emit(w,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=oe,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:a,onWarn:l,localeFallbacker:c}=e,{__numberFormatters:i}=e,[u,_,E,p]=ie(...t);f(E.missingWarn)?E.missingWarn:e.missingWarn,f(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn;const A=!!E.part,T=m(E.locale)?E.locale:e.locale,d=c(e,a,T);if(!m(u)||""===u)return new Intl.NumberFormat(T).format(_);let N,b={},C=null;for(let t=0;t<d.length&&(N=d[t],b=n[N]||{},C=b[u],!g(C));t++)ee(e,u,N,0,"number format");if(!g(C)||!m(N))return r?-1:u;let L=`${N}__${u}`;o(p)||(L=`${L}__${JSON.stringify(p)}`);let F=i.get(L);return F||(F=new Intl.NumberFormat(N,s({},C,p)),i.set(L,F)),A?F.formatToParts(_):F.format(_)},e.parse=L,e.parseDateTimeArgs=ce,e.parseNumberArgs=ie,e.parseTranslateArgs=se,e.registerLocaleFallbacker=Q,e.registerMessageCompiler=function(e){X=e},e.registerMessageResolver=J,e.resolveValue=k,e.resolveWithKeyValue=I,e.setAdditionalMeta=e=>{q=e},e.setDevToolsHook=function(e){S=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:o,fallbackLocale:l,messages:s}=e,[E,p]=se(...t),g=(f(p.missingWarn)?p.missingWarn:e.missingWarn,f(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,f(p.escapeParameter)?p.escapeParameter:e.escapeParameter),A=!!p.resolvedMessage,T=m(p.default)||f(p.default)?f(p.default)?E:p.default:n?E:"",d=n||""!==T,N=m(p.locale)?p.locale:e.locale;g&&function(e){i(e.list)?e.list=e.list.map((e=>m(e)?c(e):e)):_(e.named)&&Object.keys(e.named).forEach((t=>{m(e.named[t])&&(e.named[t]=c(e.named[t]))}))}(p);let[b,C,L]=A?[E,N,s[N]||{}]:function(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,f=i(e,r,n);let _,E={},p=null;const g="translate";for(let n=0;n<f.length&&(_=f[n],E=l[_]||{},null===(p=c(E,t))&&(p=E[t]),!m(p)&&!u(p));n++){const n=ee(e,t,_,0,g);n!==t&&(p=n)}return[p,_,E]}(e,E,N,l),F=E;if(A||m(b)||oe(b)||d&&(b=T,F=b),!(A||(m(b)||oe(b))&&m(C)))return o?-1:E;let I=!1;const k=oe(b)?b:le(e,E,C,b,F,(()=>{I=!0}));if(I)return b;const O=function(e,t,n,a){const{modifiers:o,pluralRules:l,messageResolver:s}=e,c=r=>{const a=s(n,r);if(m(a)){let n=!1;const o=le(e,r,t,a,r,(()=>{n=!0}));return n?ae:o}return oe(a)?a:ae},i={locale:t,modifiers:o,pluralRules:l,messages:c};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);r(a.plural)&&(i.pluralIndex=a.plural);return i}(e,C,L,p),D=function(e,t,n){return t(n)}(0,k,W(O));return a?a(D):D},e.translateDevTools=v,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
var IntlifyCore=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),a=e=>"[object RegExp]"===p(e),o=e=>g(e)&&0===Object.keys(e).length;function l(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s=Object.assign;function c(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const i=Array.isArray,u=e=>"function"==typeof e,m=e=>"string"==typeof e,f=e=>"boolean"==typeof e,_=e=>null!==e&&"object"==typeof e,E=Object.prototype.toString,p=e=>E.call(e),g=e=>"[object Object]"===p(e),A={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:a,args:o}=n,l=new SyntaxError(String(e));return l.code=e,t&&(l.location=t),l.domain=r,l}const d=[];d[0]={w:[0],i:[3,0],"[":[4],o:[7]},d[1]={w:[1],".":[2],"[":[4],o:[7]},d[2]={w:[2],i:[3,0],0:[3,0]},d[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},d[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},d[5]={"'":[4,0],o:8,l:[5,0]},d[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function b(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 C(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,N.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 L(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,m=0;const f=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=C(r),!1===r)return!1;f[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=b(n),c=d[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const F=new Map;function I(e,t){return _(e)?e[t]:null}function k(e,t){if(!_(e))return null;let n=F.get(t);if(n||(n=L(t),n&&F.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;a=e,o++}return a}const O=e=>e,D=e=>"",h="text",M=e=>0===e.length?"":e.join(""),R=e=>null==e?"":i(e)||g(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function y(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function W(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),a=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?e.pluralRules[t]:y,o=_(e.pluralRules)&&m(t)&&u(e.pluralRules[t])?y:void 0,l=e.list||[],s=e.named||{};r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=u(e.messages)?e.messages(t):!!_(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):D)}const i=g(e.processor)&&u(e.processor.normalize)?e.processor.normalize:M,f=g(e.processor)&&u(e.processor.interpolate)?e.processor.interpolate:R,E={list:e=>l[e],named:e=>s[e],plural:e=>e[a(n,e.length,o)],linked:(t,n)=>{const r=c(t)(E);return m(n)?(a=n,e.modifiers?e.modifiers[a]:O)(r):r;var a},message:c,type:g(e.processor)&&m(e.processor.type)?e.processor.type:h,interpolate:f,normalize:i};return E}const w="i18n:init";let S=null;const v=U("function:translate");function U(e){return t=>S&&S.emit(e,t)}const P={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},V={[P.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[P.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[P.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[P.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[P.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function $(e,t,n){return[...new Set([n,...i(t)?t:_(t)?Object.keys(t):m(t)?[t]:[n]])]}function K(e,t,n){const r=m(n)?n:x,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;i(e);)e=G(o,e,t);const l=i(t)||!g(t)?t:t.default?t.default:null;e=m(l)?[l]:l,i(e)&&G(o,e,!1),a.__localeChainCache.set(r,o)}return o}function G(e,t,n){let r=!0;for(let a=0;a<t.length&&f(r);a++){const o=t[a];m(o)&&(r=j(e,t[a],n))}return r}function j(e,t,n){let r;const a=t.split("-");do{r=B(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function B(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(i(n)||g(n))&&n[a]&&(r=n[a])}return r}const H="9.2.0-beta.15",x="en-US";let X,Y,z;function J(e){Y=e}function Q(e){z=e}let q=null;let Z=0;function ee(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return m(r)?r:t}return t}let te=A.__EXTEND_POINT__;const ne=()=>te++,re={INVALID_ARGUMENT:te,INVALID_DATE_ARGUMENT:ne(),INVALID_ISO_DATE_ARGUMENT:ne(),__EXTEND_POINT__:ne()};const ae=()=>"",oe=e=>u(e);function le(e,t,r,a,o,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(oe(a)){const e=a;return e.locale=e.locale||r,e.key=e.key||t,e}const i=s(a,function(e,t,r,a,o,l){return{warnHtmlMessage:o,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,o,0,c,l));return i.locale=r,i.key=t,i.source=a,i}function se(...e){const[t,n,a]=e,l={};if(!m(t)&&!r(t)&&!oe(t))throw Error(re.INVALID_ARGUMENT);const c=r(t)?String(t):(oe(t),t);return r(n)?l.plural=n:m(n)?l.default=n:g(n)&&!o(n)?l.named=n:i(n)&&(l.list=n),r(a)?l.plural=a:m(a)?l.default=a:g(a)&&s(l,a),[c,l]}function ce(...e){const[t,n,a,o]=e;let l,s={},c={};if(m(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(re.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(re.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===p(t)){if(isNaN(t.getTime()))throw Error(re.INVALID_DATE_ARGUMENT);l=t}else{if(!r(t))throw Error(re.INVALID_ARGUMENT);l=t}return m(n)?s.key=n:g(n)&&(s=n),m(a)?s.locale=a:g(a)&&(c=a),g(o)&&(c=o),[s.key||"",l,s,c]}function ie(...e){const[t,n,a,o]=e;let l={},s={};if(!r(t))throw Error(re.INVALID_ARGUMENT);const c=t;return m(n)?l.key=n:g(n)&&(l=n),m(a)?l.locale=a:g(a)&&(s=a),g(o)&&(s=o),[l.key||"",c,l,s]}return J(k),Q(K),e.CompileErrorCodes=A,e.CoreErrorCodes=re,e.CoreWarnCodes=P,e.DEFAULT_LOCALE=x,e.DEFAULT_MESSAGE_DATA_TYPE=h,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.VERSION=H,e.clearCompileCache=function(){},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={}){return()=>e},e.createCompileError=T,e.createCoreContext=function(e={}){const t=m(e.version)?e.version:H,n=m(e.locale)?e.locale:x,r=i(e.fallbackLocale)||g(e.fallbackLocale)||m(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=g(e.messages)?e.messages:{[n]:{}},c=g(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},E=g(e.numberFormats)?e.numberFormats:{[n]:{}},p=s({},e.modifiers||{},{upper:e=>m(e)?e.toUpperCase():e,lower:e=>m(e)?e.toLowerCase():e,capitalize:e=>m(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),A=e.pluralRules||{},T=u(e.missing)?e.missing:null,d=!f(e.missingWarn)&&!a(e.missingWarn)||e.missingWarn,N=!f(e.fallbackWarn)&&!a(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,C=!!e.unresolving,L=u(e.postTranslation)?e.postTranslation:null,F=g(e.processor)?e.processor:null,k=!f(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,D=u(e.messageCompiler)?e.messageCompiler:X,h=u(e.messageResolver)?e.messageResolver:Y||I,M=u(e.localeFallbacker)?e.localeFallbacker:z||$,R=u(e.onWarn)?e.onWarn:l,y=e,W=_(y.__datetimeFormatters)?y.__datetimeFormatters:new Map,w=_(y.__numberFormatters)?y.__numberFormatters:new Map,S=_(y.__meta)?y.__meta:{};Z++;const v={version:t,cid:Z,locale:n,fallbackLocale:r,messages:o,modifiers:p,pluralRules:A,missing:T,missingWarn:d,fallbackWarn:N,fallbackFormat:b,unresolving:C,postTranslation:L,processor:F,warnHtmlMessage:k,escapeParameter:O,messageCompiler:D,messageResolver:h,localeFallbacker:M,onWarn:R,__meta:S};return v.datetimeFormats=c,v.numberFormats=E,v.__datetimeFormatters=W,v.__numberFormatters=w,v},e.createCoreError=function(e){return T(e,null,void 0)},e.createMessageContext=W,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:l,localeFallbacker:c}=e,{__datetimeFormatters:i}=e,[u,_,E,p]=ce(...t);f(E.missingWarn)?E.missingWarn:e.missingWarn,f(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn;const A=!!E.part,T=m(E.locale)?E.locale:e.locale,d=c(e,a,T);if(!m(u)||""===u)return new Intl.DateTimeFormat(T).format(_);let N,b={},C=null;for(let t=0;t<d.length&&(N=d[t],b=n[N]||{},C=b[u],!g(C));t++)ee(e,u,N,0,"datetime format");if(!g(C)||!m(N))return r?-1:u;let L=`${N}__${u}`;o(p)||(L=`${L}__${JSON.stringify(p)}`);let F=i.get(L);return F||(F=new Intl.DateTimeFormat(N,s({},C,p)),i.set(L,F)),A?F.formatToParts(_):F.format(_)},e.fallbackWithLocaleChain=K,e.fallbackWithSimple=$,e.getAdditionalMeta=()=>q,e.getDevToolsHook=function(){return S},e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&_(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(V[e],...n)},e.handleMissing=ee,e.initI18nDevTools=function(e,t,n){S&&S.emit(w,{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isMessageFunction=oe,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:a,onWarn:l,localeFallbacker:c}=e,{__numberFormatters:i}=e,[u,_,E,p]=ie(...t);f(E.missingWarn)?E.missingWarn:e.missingWarn,f(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn;const A=!!E.part,T=m(E.locale)?E.locale:e.locale,d=c(e,a,T);if(!m(u)||""===u)return new Intl.NumberFormat(T).format(_);let N,b={},C=null;for(let t=0;t<d.length&&(N=d[t],b=n[N]||{},C=b[u],!g(C));t++)ee(e,u,N,0,"number format");if(!g(C)||!m(N))return r?-1:u;let L=`${N}__${u}`;o(p)||(L=`${L}__${JSON.stringify(p)}`);let F=i.get(L);return F||(F=new Intl.NumberFormat(N,s({},C,p)),i.set(L,F)),A?F.formatToParts(_):F.format(_)},e.parse=L,e.parseDateTimeArgs=ce,e.parseNumberArgs=ie,e.parseTranslateArgs=se,e.registerLocaleFallbacker=Q,e.registerMessageCompiler=function(e){X=e},e.registerMessageResolver=J,e.resolveValue=k,e.resolveWithKeyValue=I,e.setAdditionalMeta=e=>{q=e},e.setDevToolsHook=function(e){S=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:o,fallbackLocale:l,messages:s}=e,[E,p]=se(...t),g=(f(p.missingWarn)?p.missingWarn:e.missingWarn,f(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,f(p.escapeParameter)?p.escapeParameter:e.escapeParameter),A=!!p.resolvedMessage,T=m(p.default)||f(p.default)?f(p.default)?E:p.default:n?E:"",d=n||""!==T,N=m(p.locale)?p.locale:e.locale;g&&function(e){i(e.list)?e.list=e.list.map((e=>m(e)?c(e):e)):_(e.named)&&Object.keys(e.named).forEach((t=>{m(e.named[t])&&(e.named[t]=c(e.named[t]))}))}(p);let[b,C,L]=A?[E,N,s[N]||{}]:function(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,f=i(e,r,n);let _,E={},p=null;const g="translate";for(let n=0;n<f.length&&(_=f[n],E=l[_]||{},null===(p=c(E,t))&&(p=E[t]),!m(p)&&!u(p));n++){const n=ee(e,t,_,0,g);n!==t&&(p=n)}return[p,_,E]}(e,E,N,l),F=E;if(A||m(b)||oe(b)||d&&(b=T,F=b),!(A||(m(b)||oe(b))&&m(C)))return o?-1:E;let I=!1;const k=oe(b)?b:le(e,E,C,b,F,(()=>{I=!0}));if(I)return b;const O=function(e,t,n,a){const{modifiers:o,pluralRules:l,messageResolver:s}=e,c=r=>{const a=s(n,r);if(m(a)){let n=!1;const o=le(e,r,t,a,r,(()=>{n=!0}));return n?ae:o}return oe(a)?a:ae},i={locale:t,modifiers:o,pluralRules:l,messages:c};e.processor&&(i.processor=e.processor);a.list&&(i.list=a.list);a.named&&(i.named=a.named);r(a.plural)&&(i.pluralIndex=a.plural);return i}(e,C,L,p),D=function(e,t,n){return t(n)}(0,k,W(O));return a?a(D):D},e.translateDevTools=v,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",
"version": "9.2.0-beta.14",
"version": "9.2.0-beta.15",
"description": "@intlify/core",

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

"dependencies": {
"@intlify/core-base": "9.2.0-beta.14"
"@intlify/core-base": "9.2.0-beta.15"
},

@@ -59,3 +59,2 @@ "engines": {

"node": "./index.mjs",
"browser": "./dist/core.esm-browser.prod.js",
"default": "./dist/core.esm-bundler.js"

@@ -62,0 +61,0 @@ },

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