{"id":"i1A+","dependencies":[{"name":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/intl-messageformat/package.json","includedInParent":true,"mtime":1533713806935},{"name":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/package.json","includedInParent":true,"mtime":1534170011202}],"generated":{"js":"\"use strict\";function t(t,e,r){this.locales=t,this.formats=e,this.pluralFn=r}function e(t){this.id=t}function r(t,e,r,o,s){this.id=t,this.useOrdinal=e,this.offset=r,this.options=o,this.pluralFn=s}function o(t,e,r,o){this.id=t,this.offset=e,this.numberFormat=r,this.string=o}function s(t,e){this.id=t,this.options=e}exports.default=t,t.prototype.compile=function(t){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(t)},t.prototype.compileMessage=function(t){if(!t||\"messageFormatPattern\"!==t.type)throw new Error('Message AST is not of type: \"messageFormatPattern\"');var e,r,o,s=t.elements,i=[];for(e=0,r=s.length;e<r;e+=1)switch((o=s[e]).type){case\"messageTextElement\":i.push(this.compileMessageText(o));break;case\"argumentElement\":i.push(this.compileArgument(o));break;default:throw new Error(\"Message element does not have a valid type\")}return i},t.prototype.compileMessageText=function(t){return this.currentPlural&&/(^|[^\\\\])#/g.test(t.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new o(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,t.value)):t.value.replace(/\\\\#/g,\"#\")},t.prototype.compileArgument=function(t){var o=t.format;if(!o)return new e(t.id);var i,a=this.formats,n=this.locales,l=this.pluralFn;switch(o.type){case\"numberFormat\":return i=a.number[o.style],{id:t.id,format:new Intl.NumberFormat(n,i).format};case\"dateFormat\":return i=a.date[o.style],{id:t.id,format:new Intl.DateTimeFormat(n,i).format};case\"timeFormat\":return i=a.time[o.style],{id:t.id,format:new Intl.DateTimeFormat(n,i).format};case\"pluralFormat\":return i=this.compileOptions(t),new r(t.id,o.ordinal,o.offset,i,l);case\"selectFormat\":return i=this.compileOptions(t),new s(t.id,i);default:throw new Error(\"Message element does not have a valid format type\")}},t.prototype.compileOptions=function(t){var e,r,o,s=t.format,i=s.options,a={};for(this.pluralStack.push(this.currentPlural),this.currentPlural=\"pluralFormat\"===s.type?t:null,e=0,r=i.length;e<r;e+=1)a[(o=i[e]).selector]=this.compileMessage(o.value);return this.currentPlural=this.pluralStack.pop(),a},e.prototype.format=function(t){return t||\"number\"==typeof t?\"string\"==typeof t?t:String(t):\"\"},r.prototype.getOption=function(t){var e=this.options;return e[\"=\"+t]||e[this.pluralFn(t-this.offset,this.useOrdinal)]||e.other},o.prototype.format=function(t){var e=this.numberFormat.format(t-this.offset);return this.string.replace(/(^|[^\\\\])#/g,\"$1\"+e).replace(/\\\\#/g,\"#\")},s.prototype.getOption=function(t){var e=this.options;return e[t]||e.other};","map":null},"hash":"3782bbe7d876879ef3a2caf1e576eab9","cacheData":{"env":{}}}