You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
37 KiB

/*!
* vue-i18n v9.6.5
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18n=function(e,t){"use strict";const a="undefined"!=typeof window,n=(e,t=!1)=>t?Symbol.for(e):Symbol(e),l=(e,t,a)=>r({l:e,k:t,s:a}),r=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===h(e),i=e=>"[object RegExp]"===h(e),c=e=>E(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const g=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,d=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,k=Object.prototype.toString,h=e=>k.call(e),E=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function F(e){let t=e;return()=>++t}function y(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function L(e,t,a={}){const{domain:n,messages:l,args:r}=a,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=n,o}const I=[];I[0]={w:[0],i:[3,0],"[":[4],o:[7]},I[1]={w:[1],".":[2],"[":[4],o:[7]},I[2]={w:[2],i:[3,0],0:[3,0]},I[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},I[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},I[5]={"'":[4,0],o:8,l:[5,0]},I[6]={'"':[4,0],o:8,l:[6,0]};const T=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function N(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 R(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,T.test(a)?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 a}const O=new Map;function W(e,t){return b(e)?e[t]:null}const M=e=>e,w=e=>"",D="text",C=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}(e),P=e=>null==e?"":g(e)||E(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function A(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function $(e={}){const t=e.locale,a=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),n=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?e.pluralRules[t]:A,l=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?A:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,s);function i(t){const a=p(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):w)}const c=E(e.processor)&&p(e.processor.normalize)?e.processor.normalize:C,m=E(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:P,f={list:e=>r[e],named:e=>s[e],plural:e=>e[n(a,e.length,l)],linked:(t,...a)=>{const[n,l]=a;let r="text",o="";1===a.length?b(n)?(o=n.modifier||o,r=n.type||r):v(n)&&(o=n||o):2===a.length&&(v(n)&&(o=n||o),v(l)&&(r=l||r));const s=i(t)(f),c="vnode"===r&&g(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:M)(c,r):c;var u},message:i,type:E(e.processor)&&v(e.processor.type)?e.processor.type:D,interpolate:m,normalize:c,values:u({},r,s)};return f}function S(e,t){return null!=t.locale?x(t.locale):x(e.locale)}let U;function x(e){return v(e)?e:null!=U&&e.resolvedOnce?U:U=e()}function H(e,t,a){return[...new Set([a,...g(t)?t:b(t)?Object.keys(t):v(t)?[t]:[a]])]}function j(e,t,a){const n=v(a)?a:z,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=V(r,e,t);const o=g(t)||!E(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&V(r,e,!1),l.__localeChainCache.set(n,r)}return r}function V(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];v(r)&&(n=G(e,t[l],a))}return n}function G(e,t,a){let n;const l=t.split("-");do{n=B(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function