/*! * Globalize v1.4.2 2019-03-07T13:47Z Released under the MIT license * http://git.io/TrdQbw */ !function(t,e){"function"==typeof define&&define.amd?define(["cldr","../globalize","cldr/event"],e):"object"==typeof exports?module.exports=e(require("cldrjs"),require("../globalize")):e(t.Cldr,t.Globalize)}(this,function(t,e){var r,n=e._alwaysArray,o=e._createError,i=e._isPlainObject,a=e._runtimeBind,u=e._validateDefaultLocale,s=e._validate,l=e._validateParameterPresence,c=e._validateParameterType,p=e._validateParameterTypePlainObject;r=function(){function t(t,e){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(t))return e?e+"."+t:t;var r=JSON.stringify(t);return e?e+"["+r+"]":r}function e(t,e,r){if(this.lc=[t],this.runtime.pluralFuncs={},this.runtime.pluralFuncs[this.lc[0]]=e,this.runtime.fmt={},r)for(var n in r)this.runtime.fmt[n]=r[n]}return e._parse=function(){function t(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}function e(t,e,r,n,o,i){this.message=t,this.expected=e,this.found=r,this.offset=n,this.line=o,this.column=i,this.name="SyntaxError"}function r(t){function r(e){function r(e,r,n){var o,i;for(o=r;oe&&(Tt=0,Vt={line:1,column:1,seenCR:!1}),r(Vt,Tt,e),Tt=e),Vt}function n(t){UtHt&&(Ht=Ut,Kt=[]),Kt.push(t))}function o(n,o,i){function a(t){var e=1;for(t.sort(function(t,e){return t.descriptione.description?1:0});e1?a.slice(0,-1).join(", ")+" or "+a[t.length-1]:a[0],o=e?'"'+r(e)+'"':"end of input","Expected "+n+" but "+o+" found."}var s=r(i),l=i1?arguments[1]:{},C={},E={start:i},P=i,k=function(t){return{type:"messageFormatPattern",statements:t}},I=C,O="{",N={type:"literal",value:"{",description:'"{"'},G=null,M=",",R={type:"literal",value:",",description:'","'},z="}",$={type:"literal",value:"}",description:'"}"'},J=function(t,e){var r={type:"messageFormatElement",argumentIndex:t};return e&&e.length?r.elementFormat=e[1]:r.output=!0,r},L="plural",Z={type:"literal",value:"plural",description:'"plural"'},B=function(t,e){return{type:"elementFormat",key:t,val:e}},D="selectordinal",U={type:"literal",value:"selectordinal",description:'"selectordinal"'},q="select",T={type:"literal",value:"select",description:'"select"'},V=function(t,e){return{type:"elementFormat",key:t,val:e}},H=function(t,e){return{type:"pluralFormatPattern",pluralForms:e,offset:t||0}},K="offset",Q={type:"literal",value:"offset",description:'"offset"'},W=":",X={type:"literal",value:":",description:'":"'},Y=function(t){return t},tt=function(t,e){return{key:t,val:e}},et=function(t){return t},rt="=",nt={type:"literal",value:"=",description:'"="'},ot=function(t){return{type:"selectFormatPattern",pluralForms:t}},it=function(t){return t},at="#",ut={type:"literal",value:"#",description:'"#"'},st=function(){return{type:"octothorpe"}},lt=function(t){return{type:"string",val:t.join("")}},ct={type:"other",description:"identifier"},pt=/^[0-9a-zA-Z$_]/,ft={type:"class",value:"[0-9a-zA-Z$_]",description:"[0-9a-zA-Z$_]"},ht=/^[^ \t\n\r,.+={}]/,mt={type:"class",value:"[^ \\t\\n\\r,.+={}]",description:"[^ \\t\\n\\r,.+={}]"},dt=function(t){return t},vt=function(t){return t.join("")},yt=/^[^{}#\\\0-\x1F\x7f \t\n\r]/,gt={type:"class",value:"[^{}#\\\\\\0-\\x1F\x7f \\t\\n\\r]",description:"[^{}#\\\\\\0-\\x1F\x7f \\t\\n\\r]"},At=function(t){return t},Ft="\\\\",_t={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},bt=function(){return"\\"},wt="\\#",xt={type:"literal",value:"\\#",description:'"\\\\#"'},St=function(){return"#"},jt="\\{",Ct={type:"literal",value:"\\{",description:'"\\\\{"'},Et=function(){return"{"},Pt="\\}",kt={type:"literal",value:"\\}",description:'"\\\\}"'},It=function(){return"}"},Ot="\\u",Nt={type:"literal",value:"\\u",description:'"\\\\u"'},Gt=function(t,e,r,n){return String.fromCharCode(parseInt("0x"+t+e+r+n))},Mt=/^[0-9]/,Rt={type:"class",value:"[0-9]",description:"[0-9]"},zt=function(t){return parseInt(t.join(""),10)},$t=/^[0-9a-fA-F]/,Jt={type:"class",value:"[0-9a-fA-F]",description:"[0-9a-fA-F]"},Lt={type:"other",description:"whitespace"},Zt=function(t){return t.join("")},Bt=/^[ \t\n\r]/,Dt={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},Ut=0,qt=0,Tt=0,Vt={line:1,column:1,seenCR:!1},Ht=0,Kt=[],Qt=0;if("startRule"in j){if(!(j.startRule in E))throw new Error("Can't start parsing from rule \""+j.startRule+'".');P=E[j.startRule]}if(S=P(),S!==C&&Ut===t.length)return S;throw S!==C&&Ut