Xazn-app/node_modules/vue-i18n/dist/vue-i18n.global.prod.js

7 lines
56 KiB
JavaScript
Raw Permalink Normal View History

2025-05-22 16:37:43 +08:00
/*!
* vue-i18n v9.14.4
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===N(e),c=e=>"[object RegExp]"===N(e),u=e=>T(e)&&0===Object.keys(e).length,i=Object.assign,f=Object.create,m=(e=null)=>f(e);function _(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const p=Object.prototype.hasOwnProperty;function d(e,t){return p.call(e,t)}const g=Array.isArray,E=e=>"function"==typeof e,b=e=>"string"==typeof e,v=e=>"boolean"==typeof e,k=e=>null!==e&&"object"==typeof e,h=e=>k(e)&&E(e.then)&&E(e.catch),L=Object.prototype.toString,N=e=>L.call(e),T=e=>{if(!k(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function y(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function I(e){let t=e;return()=>++t}function O(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const C=e=>!k(e)||g(e);function P(e,t){if(C(e)||C(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{"__proto__"!==r&&(k(e[r])&&!k(t[r])&&(t[r]=Array.isArray(e[r])?[]:m()),C(t[r])||C(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}function A(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const R={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2};const F={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 S(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}function D(e){throw e}const M=" ",w="\r",x="\n",W=String.fromCharCode(8232),U=String.fromCharCode(8233);function $(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>t[e]===w&&t[e+1]===x,s=e=>t[e]===U,c=e=>t[e]===W,u=e=>l(e)||(e=>t[e]===x)(e)||s(e)||c(e),i=e=>l(e)||s(e)||c(e)?x:t[e];function f(){return o=0,u(n)&&(r++,a=0),l(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+o),next:f,peek:function(){return l(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const H=void 0,V="'";function j(e,t={}){const n=!1!==t.location,r=$(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=A(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function _(e,t){return e.currentChar()===t?(e.next(),t):(F.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===M||e.currentPeek()===x;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===H)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===H)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function v(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!