123456 |
- /*!
- * core-base v9.13.1
- * (c) 2024 kazuya kawaguchi
- * Released under the MIT License.
- */
- var IntlifyCoreBase=function(e){"use strict";const t=/\{([0-9a-zA-Z]+)\}/g;const n=(e,t,n)=>r({l:e,k:t,s:n}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),a=e=>"[object Date]"===p(e),s=e=>"[object RegExp]"===p(e),c=e=>T(e)&&0===Object.keys(e).length,l=Object.assign;function i(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const u=Array.isArray,f=e=>"function"==typeof e,E=e=>"string"==typeof e,_=e=>"boolean"==typeof e,m=e=>null!==e&&"object"==typeof e,d=e=>m(e)&&f(e.then)&&f(e.catch),N=Object.prototype.toString,p=e=>N.call(e),T=e=>{if(!m(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function L(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function A(e){let t=e;return()=>++t}function C(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function k(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const h={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2};const O={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function I(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}O.EXPECTED_TOKEN,O.INVALID_TOKEN_IN_PLACEHOLDER,O.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,O.UNKNOWN_ESCAPE_SEQUENCE,O.INVALID_UNICODE_ESCAPE_SEQUENCE,O.UNBALANCED_CLOSING_BRACE,O.UNTERMINATED_CLOSING_BRACE,O.EMPTY_PLACEHOLDER,O.NOT_ALLOW_NEST_PLACEHOLDER,O.INVALID_LINKED_FORMAT,O.MUST_HAVE_MESSAGES_IN_PLURAL,O.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.UNEXPECTED_EMPTY_LINKED_KEY,O.UNEXPECTED_LEXICAL_ANALYSIS,O.UNHANDLED_CODEGEN_NODE_TYPE,O.UNHANDLED_MINIFIER_NODE_TYPE;const S=" ",y="\r",b="\n",P=String.fromCharCode(8232),D=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,o=1,a=0;const s=e=>t[e]===y&&t[e+1]===b,c=e=>t[e]===D,l=e=>t[e]===P,i=e=>s(e)||(e=>t[e]===b)(e)||c(e)||l(e),u=e=>s(e)||c(e)||l(e)?b:t[e];function f(){return a=0,i(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>a,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(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 R=void 0,U="'";function v(e,t={}){const n=!1!==t.location,r=M(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:""},i=()=>l,{onError:u}=t;function f(e,t,r){e.endLoc=a(),e.currentType=t;const o={type:t};return n&&(o.loc=k(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const E=e=>f(e,14);function _(e,t){return e.currentChar()===t?(e.next(),t):(O.EXPECTED_TOKEN,a(),"")}function m(e){let t="";for(;e.currentPeek()===S||e.currentPeek()===b;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=m(e);return e.skipToPeek(),t}function N(e){if(e===R)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function p(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===R)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){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function L(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===S||r===b):a===S?(e.peek(),n(!0,S,o)):a!==b||(e.peek(),n(!0,b,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function A(e,t){const n=e.currentChar();return n===R?R:t(n)?(e.next(),n):null}function C(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function h(e){return A(e,C)}function I(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function g(e){return A(e,I)}function y(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function P(e){return A(e,y)}function D(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function v(e){return A(e,D)}function F(e){let t="",n="";for(;t=P(e);)n+=t;return n}function x(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===S||n===b)if(L(e))t+=n,e.next();else{if(T(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function w(e){return e!==U&&e!==b}function W(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 O.UNKNOWN_ESCAPE_SEQUENCE,a(),""}}function X(e,t,n){_(e,t);let r="";for(let o=0;o<n;o++){const t=v(e);if(!t){O.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),e.currentChar();break}r+=t}return`\\${t}${r}`}function Y(e){return"{"!==e&&"}"!==e&&e!==S&&e!==b}function G(e){d(e);const t=_(e,"|");return d(e),t}function K(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(O.NOT_ALLOW_NEST_PLACEHOLDER,a()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(O.EMPTY_PLACEHOLDER,a()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,a()),n=$(e,t)||E(t),t.braceNest=0,n;default:{let r=!0,o=!0,s=!0;if(T(e))return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,a()),n=f(t,1,G(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return O.UNTERMINATED_CLOSING_BRACE,a(),t.braceNest=0,V(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=N(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){d(e);let t="",n="";for(;t=g(e);)n+=t;return e.currentChar()===R&&(O.UNTERMINATED_CLOSING_BRACE,a()),n}(e)),d(e),n;if(o=p(e,t))return n=f(t,6,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${F(e)}`):t+=F(e),e.currentChar()===R&&(O.UNTERMINATED_CLOSING_BRACE,a()),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=e.currentPeek()===U;return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){d(e),_(e,"'");let t="",n="";for(;t=A(e,w);)n+="\\"===t?W(e):t;const r=e.currentChar();return r===b||r===R?(O.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),r===b&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){d(e);let t="",n="";for(;t=A(e,Y);)n+=t;return n}(e)),O.INVALID_TOKEN_IN_PLACEHOLDER,a(),n.value,d(e),n;break}}return n}function $(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==b&&o!==S||(O.INVALID_LINKED_FORMAT,a()),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,9,".");case":":return d(e),e.next(),f(t,10,":");default:return T(e)?(r=f(t,1,G(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(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;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),$(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=N(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,12,function(e){let t="",n="";for(;t=h(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?N(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===S||!t)&&(t===b?(e.peek(),r()):L(e,!1))},o=r();return e.resetPeek(),o}(e,t)?(d(e),"{"===o?K(e,t)||r:f(t,11,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===S?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(8===n&&(O.INVALID_LINKED_FORMAT,a()),t.braceNest=0,t.inLinked=!1,V(e,t))}}function V(e,t){let n={type:14};if(t.braceNest>0)return K(e,t)||E(t);if(t.inLinked)return $(e,t)||E(t);switch(e.currentChar()){case"{":return K(e,t)||E(t);case"}":return O.UNBALANCED_CLOSING_BRACE,a(),e.next(),f(t,3,"}");case"@":return $(e,t)||E(t);default:{if(T(e))return n=f(t,1,G(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=m(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?f(t,0,x(e)):f(t,4,function(e){d(e);const t=e.currentChar();return"%"!==t&&(O.EXPECTED_TOKEN,a()),e.next(),"%"}(e));if(L(e))return f(t,0,x(e));break}}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()===R?f(l,14):V(r,l)},currentOffset:o,currentPosition:a,context:i}}const F=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function x(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 w(e={}){const t=!1!==e.location,{onError:n,onWarn:r}=e;function o(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function a(e,n,r,o){o&&(e.type=o),t&&(e.end=n,e.loc&&(e.loc.end=r))}function s(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,c=o(5,r,s);return c.index=parseInt(t,10),e.nextToken(),a(c,e.currentOffset(),e.currentPosition()),c}function i(e,t,n){const r=e.context(),{lastOffset:s,lastStartLoc:c}=r,l=o(4,s,c);return l.key=t,!0===n&&(l.modulo=!0),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function u(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,c=o(9,r,s);return c.value=t.replace(F,x),e.nextToken(),a(c,e.currentOffset(),e.currentPosition()),c}function f(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:s}=n,c=o(8,r,s);return 12!==t.type?(O.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,c.value="",a(c,r,s),{nextConsumeToken:t,node:c}):(null==t.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,W(t)),c.value=t.value||"",a(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(r)),n.key=function(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 5:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(r)),n.key=i(e,r.value||"");break;case 6:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(r)),n.key=c(e,r.value||"");break;case 7:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(r)),n.key=u(e,r.value||"");break;default:{O.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),c=o(7,s.offset,s.startLoc);return c.value="",a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:r,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function E(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let r=null,l=null;do{const o=r||e.nextToken();switch(r=null,o.type){case 0:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(o)),n.items.push(s(e,o.value||""));break;case 6:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(o)),n.items.push(c(e,o.value||""));break;case 4:l=!0;break;case 5:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(o)),n.items.push(i(e,o.value||"",!!l)),l&&(h.USE_MODULO_SYNTAX,t.lastStartLoc,W(o),l=null);break;case 7:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,W(o)),n.items.push(u(e,o.value||""));break;case 8:{const t=f(e);n.items.push(t.node),r=t.nextConsumeToken||null;break}}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function _(e){const t=e.context(),{offset:n,startLoc:r}=t,s=E(e);return 14===t.currentType?s:function(e,t,n,r){const s=e.context();let c=0===r.items.length;const l=o(1,t,n);l.cases=[],l.cases.push(r);do{const t=E(e);c||(c=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return c&&O.MUST_HAVE_MESSAGES_IN_PLURAL,a(l,e.currentOffset(),e.currentPosition()),l}(e,n,r,s)}return{parse:function(n){const r=v(n,l({},e)),s=r.context(),c=o(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=_(r),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),14!==s.currentType&&(O.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(c,r.currentOffset(),r.currentPosition()),c}}}function W(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 X(e,t){for(let n=0;n<e.length;n++)Y(e[n],t)}function Y(e,t){switch(e.type){case 1:X(e.cases,t),t.helper("plural");break;case 2:X(e.items,t);break;case 6:Y(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function G(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&&Y(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function K(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=L(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function $(e){switch(e.t=e.type,e.type){case 0:{const t=e;$(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)$(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)$(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;$(t.key),t.k=t.key,delete t.key,t.modifier&&($(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function V(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?V(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&&(V(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 a=0;a<o&&(V(e,t.items[a]),a!==o-1);a++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),V(e,t.key),t.modifier?(e.push(", "),V(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}const H=(e,t={})=>{const n=E(t.mode)?t.mode:"normal",r=E(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=!1!==t.location,c={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};function l(e,t){c.code+=e}function i(e,t=!0){const n=t?o:"";l(a?n+" ".repeat(e):n)}return s&&e.loc&&(c.source=e.loc.source),{context:()=>c,push:l,indent:function(e=!0){const t=++c.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--c.indentLevel;e&&i(t)},newline:function(){i(c.indentLevel)},helper:e=>`_${e}`,needIndent:()=>c.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 { ${L(c.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),V(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:i,map:u}=l.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function B(e,t={}){const n=l({},t),r=!!n.jit,o=!!n.minify,a=null==n.optimize||n.optimize,s=w(n).parse(e);return r?(a&&function(e){const t=e.body;2===t.type?K(t):t.cases.forEach((e=>K(e)))}(s),o&&$(s),{ast:s,code:""}):(G(s,n),H(s,n))}const j=[];j[0]={w:[0],i:[3,0],"[":[4],o:[7]},j[1]={w:[1],".":[2],"[":[4],o:[7]},j[2]={w:[2],i:[3,0],0:[3,0]},j[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},j[5]={"'":[4,0],o:8,l:[5,0]},j[6]={'"':[4,0],o:8,l:[6,0]};const z=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Q(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 J(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,z.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 Z(e){const t=[];let n,r,o,a,s,c,l,i=-1,u=0,f=0;const E=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,o="\\"+t,E[0](),!0}for(E[0]=()=>{void 0===r?r=o:r+=o},E[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},E[2]=()=>{E[0](),f++},E[3]=()=>{if(f>0)f--,u=4,E[0]();else{if(f=0,void 0===r)return!1;if(r=J(r),!1===r)return!1;E[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(a=Q(n),l=j[u],s=l[a]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(c=E[s[1]],c&&(o=n,!1===c())))return;if(7===u)return t}}const q=new Map;function ee(e,t){return m(e)?e[t]:null}const te=e=>e,ne=e=>"",re="text",oe=e=>0===e.length?"":L(e),ae=e=>null==e?"":u(e)||T(e)&&e.toString===N?JSON.stringify(e,null,2):String(e);function se(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ce(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=m(e.pluralRules)&&E(t)&&f(e.pluralRules[t])?e.pluralRules[t]:se,a=m(e.pluralRules)&&E(t)&&f(e.pluralRules[t])?se:void 0,s=e.list||[],c=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,c);function i(t){const n=f(e.messages)?e.messages(t):!!m(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):ne)}const _=T(e.processor)&&f(e.processor.normalize)?e.processor.normalize:oe,d=T(e.processor)&&f(e.processor.interpolate)?e.processor.interpolate:ae,N={list:e=>s[e],named:e=>c[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,o]=n;let a="text",s="";1===n.length?m(r)?(s=r.modifier||s,a=r.type||a):E(r)&&(s=r||s):2===n.length&&(E(r)&&(s=r||s),E(o)&&(a=o||a));const c=i(t)(N),l="vnode"===a&&u(c)&&s?c[0]:c;return s?(f=s,e.modifiers?e.modifiers[f]:te)(l,a):l;var f},message:i,type:T(e.processor)&&E(e.processor.type)?e.processor.type:re,interpolate:d,normalize:_,values:l({},s,c)};return N}let le=null;const ie=ue("function:translate");function ue(e){return t=>le&&le.emit(e,t)}const fe=h.__EXTEND_POINT__,Ee=A(fe),_e={NOT_FOUND_KEY:fe,FALLBACK_TO_TRANSLATE:Ee(),CANNOT_FORMAT_NUMBER:Ee(),FALLBACK_TO_NUMBER_FORMAT:Ee(),CANNOT_FORMAT_DATE:Ee(),FALLBACK_TO_DATE_FORMAT:Ee(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Ee(),__EXTEND_POINT__:Ee()},me={[_e.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[_e.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[_e.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[_e.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[_e.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[_e.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};const de=O.__EXTEND_POINT__,Ne=A(de),pe={INVALID_ARGUMENT:de,INVALID_DATE_ARGUMENT:Ne(),INVALID_ISO_DATE_ARGUMENT:Ne(),NOT_SUPPORT_NON_STRING_MESSAGE:Ne(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ne(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ne(),NOT_SUPPORT_LOCALE_TYPE:Ne(),__EXTEND_POINT__:Ne()};function Te(e,t){return null!=t.locale?Ae(t.locale):Ae(e.locale)}let Le;function Ae(e){if(E(e))return e;if(f(e)){if(e.resolvedOnce&&null!=Le)return Le;if("Function"===e.constructor.name){const t=e();if(d(t))throw Error(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Le=t}throw Error(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(pe.NOT_SUPPORT_LOCALE_TYPE)}function Ce(e,t,n){return[...new Set([n,...u(t)?t:m(t)?Object.keys(t):E(t)?[t]:[n]])]}function ke(e,t,n){let r=!0;for(let o=0;o<t.length&&_(r);o++){const a=t[o];E(a)&&(r=he(e,t[o],n))}return r}function he(e,t,n){let r;const o=t.split("-");do{r=Oe(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function Oe(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)||T(n))&&n[o]&&(r=n[o])}return r}pe.INVALID_ARGUMENT,pe.INVALID_DATE_ARGUMENT,pe.INVALID_ISO_DATE_ARGUMENT,pe.NOT_SUPPORT_NON_STRING_MESSAGE,pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE,pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,pe.NOT_SUPPORT_LOCALE_TYPE;const Ie="9.13.1",ge="en-US",Se=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let ye,be,Pe;let De=null;let Me=null;let Re=0;function Ue(e,t,n,r,o){const{missing:a,onWarn:s}=e;if(null!==a){const r=a(e,n,t,o);return E(r)?r:t}return t}function ve(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function Fe(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(ve(e,t[r]))return!0;return!1}function xe(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,we(e,n)]),[]))}return we(e,n)}(t,e)}function we(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,We(e,n)]),[]);return e.normalize(n)}}function We(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,r=n.m||n.modifier;return e.linked(We(e,n.k||n.key),r?We(e,r):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const Xe=e=>e;let Ye=Object.create(null);const Ge=e=>m(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function Ke(e,t={}){let n=!1;const r=t.onError||g;return t.onError=e=>{n=!0,r(e)},{...B(e,t),detectError:n}}const $e=()=>"",Ve=e=>f(e);function He(e,t,n,r,o,a){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:i}=e,u=i(e,r,n);let f,_={},m=null;for(let d=0;d<u.length&&(f=u[d],_=s[f]||{},null===(m=l(_,t))&&(m=_[t]),!(E(m)||Ge(m)||Ve(m)));d++)if(!Fe(f,u)){const n=Ue(e,t,f,0,"translate");n!==t&&(m=n)}return[m,f,_]}function Be(e,t,r,o,a,s){const{messageCompiler:c,warnHtmlMessage:l}=e;if(Ve(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==c){const e=()=>o;return e.locale=r,e.key=t,e}const i=c(o,function(e,t,r,o,a,s){return{locale:t,key:r,warnHtmlMessage:a,onError:e=>{throw s&&s(e),e},onCacheKey:e=>n(t,r,e)}}(0,r,a,0,l,s));return i.locale=r,i.key=t,i.source=o,i}function je(...e){const[t,n,r]=e,a={};if(!(E(t)||o(t)||Ve(t)||Ge(t)))throw Error(pe.INVALID_ARGUMENT);const s=o(t)?String(t):(Ve(t),t);return o(n)?a.plural=n:E(n)?a.default=n:T(n)&&!c(n)?a.named=n:u(n)&&(a.list=n),o(r)?a.plural=r:E(r)?a.default=r:T(r)&&l(a,r),[s,a]}const ze=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Qe(...e){const[t,n,r,s]=e,c={};let l,i={};if(E(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(pe.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(u){throw Error(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(a(t)){if(isNaN(t.getTime()))throw Error(pe.INVALID_DATE_ARGUMENT);l=t}else{if(!o(t))throw Error(pe.INVALID_ARGUMENT);l=t}return E(n)?c.key=n:T(n)&&Object.keys(n).forEach((e=>{ze.includes(e)?i[e]=n[e]:c[e]=n[e]})),E(r)?c.locale=r:T(r)&&(i=r),T(s)&&(i=s),[c.key||"",l,c,i]}const Je=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ze(...e){const[t,n,r,a]=e,s={};let c={};if(!o(t))throw Error(pe.INVALID_ARGUMENT);const l=t;return E(n)?s.key=n:T(n)&&Object.keys(n).forEach((e=>{Je.includes(e)?c[e]=n[e]:s[e]=n[e]})),E(r)?s.locale=r:T(r)&&(c=r),T(a)&&(c=a),[s.key||"",l,s,c]}return e.CompileErrorCodes=O,e.CoreErrorCodes=pe,e.CoreWarnCodes=_e,e.DATETIME_FORMAT_OPTIONS_KEYS=ze,e.DEFAULT_LOCALE=ge,e.DEFAULT_MESSAGE_DATA_TYPE=re,e.MISSING_RESOLVE_VALUE="",e.NOT_REOSLVED=-1,e.NUMBER_FORMAT_OPTIONS_KEYS=Je,e.VERSION=Ie,e.clearCompileCache=function(){Ye=Object.create(null)},e.clearDateTimeFormat=function(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}},e.clearNumberFormat=function(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}},e.compile=function(e,t){if(E(e)){!_(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Xe)(e),r=Ye[n];if(r)return r;const{ast:o,detectError:a}=Ke(e,{...t,location:!1,jit:!0}),s=xe(o);return a?s:Ye[n]=s}{const t=e.cacheKey;if(t){const n=Ye[t];return n||(Ye[t]=xe(e))}return xe(e)}},e.compileToFunction=(e,t)=>{if(!E(e))throw Error(pe.NOT_SUPPORT_NON_STRING_MESSAGE);{!_(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Xe)(e),r=Ye[n];if(r)return r;const{code:o,detectError:a}=Ke(e,t),s=new Function(`return ${o}`)();return a?s:Ye[n]=s}},e.createCompileError=I,e.createCoreContext=function(e={}){const t=f(e.onWarn)?e.onWarn:C,n=E(e.version)?e.version:Ie,r=E(e.locale)||f(e.locale)?e.locale:ge,o=f(r)?ge:r,a=u(e.fallbackLocale)||T(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o,c=T(e.messages)?e.messages:{[o]:{}},i=T(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},d=T(e.numberFormats)?e.numberFormats:{[o]:{}},N=l({},e.modifiers||{},{upper:(e,t)=>"text"===t&&E(e)?e.toUpperCase():"vnode"===t&&m(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&E(e)?e.toLowerCase():"vnode"===t&&m(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&E(e)?Se(e):"vnode"===t&&m(e)&&"__v_isVNode"in e?Se(e.children):e}),p=e.pluralRules||{},L=f(e.missing)?e.missing:null,A=!_(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,k=!_(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,O=!!e.unresolving,I=f(e.postTranslation)?e.postTranslation:null,g=T(e.processor)?e.processor:null,S=!_(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,b=f(e.messageCompiler)?e.messageCompiler:ye,P=f(e.messageResolver)?e.messageResolver:be||ee,D=f(e.localeFallbacker)?e.localeFallbacker:Pe||Ce,M=m(e.fallbackContext)?e.fallbackContext:void 0,R=e,U=m(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,v=m(R.__numberFormatters)?R.__numberFormatters:new Map,F=m(R.__meta)?R.__meta:{};Re++;const x={version:n,cid:Re,locale:r,fallbackLocale:a,messages:c,modifiers:N,pluralRules:p,missing:L,missingWarn:A,fallbackWarn:k,fallbackFormat:h,unresolving:O,postTranslation:I,processor:g,warnHtmlMessage:S,escapeParameter:y,messageCompiler:b,messageResolver:P,localeFallbacker:D,fallbackContext:M,onWarn:t,__meta:F};return x.datetimeFormats=i,x.numberFormats=d,x.__datetimeFormatters=U,x.__numberFormatters=v,x},e.createCoreError=function(e){return I(e,null,void 0)},e.createMessageContext=ce,e.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:i}=e,[u,f,m,d]=Qe(...t);_(m.missingWarn)?m.missingWarn:e.missingWarn,_(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const N=!!m.part,p=Te(e,m),L=s(e,o,p);if(!E(u)||""===u)return new Intl.DateTimeFormat(p,d).format(f);let A,C={},k=null;for(let c=0;c<L.length&&(A=L[c],C=n[A]||{},k=C[u],!T(k));c++)Ue(e,u,A,0,"datetime format");if(!T(k)||!E(A))return r?-1:u;let h=`${A}__${u}`;c(d)||(h=`${h}__${JSON.stringify(d)}`);let O=i.get(h);return O||(O=new Intl.DateTimeFormat(A,l({},k,d)),i.set(h,O)),N?O.formatToParts(f):O.format(f)},e.fallbackWithLocaleChain=function(e,t,n){const r=E(n)?n:ge,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;u(e);)e=ke(a,e,t);const s=u(t)||!T(t)?t:t.default?t.default:null;e=E(s)?[s]:s,u(e)&&ke(a,e,!1),o.__localeChainCache.set(r,a)}return a},e.fallbackWithSimple=Ce,e.getAdditionalMeta=()=>De,e.getDevToolsHook=function(){return le},e.getFallbackContext=()=>Me,e.getLocale=Te,e.getWarnMessage=function(e,...n){return function(e,...n){return 1===n.length&&m(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(t,((e,t)=>n.hasOwnProperty(t)?n[t]:""))}(me[e],...n)},e.handleMissing=Ue,e.initI18nDevTools=function(e,t,n){le&&le.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})},e.isAlmostSameLocale=ve,e.isImplicitFallback=Fe,e.isMessageAST=Ge,e.isMessageFunction=Ve,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:a,localeFallbacker:s}=e,{__numberFormatters:i}=e,[u,f,m,d]=Ze(...t);_(m.missingWarn)?m.missingWarn:e.missingWarn,_(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const N=!!m.part,p=Te(e,m),L=s(e,o,p);if(!E(u)||""===u)return new Intl.NumberFormat(p,d).format(f);let A,C={},k=null;for(let c=0;c<L.length&&(A=L[c],C=n[A]||{},k=C[u],!T(k));c++)Ue(e,u,A,0,"number format");if(!T(k)||!E(A))return r?-1:u;let h=`${A}__${u}`;c(d)||(h=`${h}__${JSON.stringify(d)}`);let O=i.get(h);return O||(O=new Intl.NumberFormat(A,l({},k,d)),i.set(h,O)),N?O.formatToParts(f):O.format(f)},e.parse=Z,e.parseDateTimeArgs=Qe,e.parseNumberArgs=Ze,e.parseTranslateArgs=je,e.registerLocaleFallbacker=function(e){Pe=e},e.registerMessageCompiler=function(e){ye=e},e.registerMessageResolver=function(e){be=e},e.resolveLocale=Ae,e.resolveValue=function(e,t){if(!m(e))return null;let n=q.get(t);if(n||(n=Z(t),n&&q.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;if(f(o))return null;o=e,a++}return o},e.resolveWithKeyValue=ee,e.setAdditionalMeta=e=>{De=e},e.setDevToolsHook=function(e){le=e},e.setFallbackContext=e=>{Me=e},e.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:c,messages:l}=e,[f,d]=je(...t),N=_(d.missingWarn)?d.missingWarn:e.missingWarn,p=_(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,T=_(d.escapeParameter)?d.escapeParameter:e.escapeParameter,L=!!d.resolvedMessage,A=E(d.default)||_(d.default)?_(d.default)?s?f:()=>f:d.default:n?s?f:()=>f:"",C=n||""!==A,k=Te(e,d);T&&function(e){u(e.list)?e.list=e.list.map((e=>E(e)?i(e):e)):m(e.named)&&Object.keys(e.named).forEach((t=>{E(e.named[t])&&(e.named[t]=i(e.named[t]))}))}(d);let[h,O,I]=L?[f,k,l[k]||{}]:He(e,f,k,c,p,N),g=h,S=f;if(L||E(g)||Ge(g)||Ve(g)||C&&(g=A,S=g),!(L||(E(g)||Ge(g)||Ve(g))&&E(O)))return a?-1:f;let y=!1;const b=Ve(g)?g:Be(e,f,O,g,S,(()=>{y=!0}));if(y)return g;const P=function(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:c,fallbackLocale:l,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,_=r=>{let o=c(n,r);if(null==o&&f){const[,,e]=He(f,r,t,l,i,u);o=c(e,r)}if(E(o)||Ge(o)){let n=!1;const a=Be(e,r,t,o,r,(()=>{n=!0}));return n?$e:a}return Ve(o)?o:$e},m={locale:t,modifiers:a,pluralRules:s,messages:_};e.processor&&(m.processor=e.processor);r.list&&(m.list=r.list);r.named&&(m.named=r.named);o(r.plural)&&(m.pluralIndex=r.plural);return m}(e,O,I,d),D=function(e,t,n){const r=t(n);return r}(0,b,ce(P));return r?r(D,f):D},e.translateDevTools=ie,e.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)},e}({});
|