react-intl 4.7.5 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/dist/components/message.d.ts.map +1 -1
- package/dist/components/message.js +4 -24
- package/dist/components/message.js.map +1 -1
- package/dist/formatters/message.d.ts +2 -0
- package/dist/formatters/message.d.ts.map +1 -1
- package/dist/formatters/message.js +15 -3
- package/dist/formatters/message.js.map +1 -1
- package/dist/react-intl.d.ts +1 -1
- package/dist/react-intl.js +30 -24
- package/dist/react-intl.js.map +1 -1
- package/dist/react-intl.min.js +1 -1
- package/dist/react-intl.min.js.map +1 -1
- package/dist/utils.d.ts +9 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +13 -0
- package/dist/utils.js.map +1 -1
- package/lib/components/message.d.ts.map +1 -1
- package/lib/components/message.js +5 -25
- package/lib/components/message.js.map +1 -1
- package/lib/formatters/message.d.ts +2 -0
- package/lib/formatters/message.d.ts.map +1 -1
- package/lib/formatters/message.js +15 -4
- package/lib/formatters/message.js.map +1 -1
- package/lib/utils.d.ts +9 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +12 -0
- package/lib/utils.js.map +1 -1
- package/package.json +12 -12
- package/src/components/message.tsx +4 -38
- package/src/formatters/message.ts +22 -3
- package/src/utils.ts +16 -1
package/dist/react-intl.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactIntl={},e.React)}(this,function(e,y){"use strict";var Yt,t,r,n;function F(e){return e.type===Yt.literal}function I(e){return e.type===Yt.select}function T(e){return e.type===Yt.plural}function E(e){return e&&"object"==typeof e&&1===e.type}(t=Yt=Yt||{})[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag",(n=r=r||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var o,a,i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),er=function(){return(er=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tr=(a=Error,i(u,a),u.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),0<n.length){for(r=t=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((i=t)?'"'+n(i)+'"':"end of input")+" found.";var i},u);function u(e,t,r,n){var o=a.call(this)||this;return o.message=e,o.expected=t,o.found=r,o.location=n,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,u),o}var f=function(f,e){var t,p={},r={start:Ft},n=Ft,o=function(e){return e.join("")},a=function(e){return er({type:Yt.literal,value:e},Qt())},i="#",u=gt("#",!1),s=function(){return er({type:Yt.pound},Qt())},c=bt("tagElement"),l="<",m=gt("<",!1),d="/>",h=gt("/>",!1),y=function(e){return er({type:Yt.literal,value:e.join("")},Qt())},g=function(e,t,r){return e!==r&&yt('Mismatch tag "'+e+'" !== "'+r+'"',ht()),er({type:Yt.tag,value:e,children:t},Qt())},v=function(){return Wt.push("openingTag"),!0},b=">",A=gt(">",!1),w=function(e){return Wt.pop(),!0},O=function(e){return e},F="</",I=gt("</",!1),T=function(){return Wt.push("closingTag"),!0},E=bt("argumentElement"),S="{",D=gt("{",!1),_="}",R=gt("}",!1),P=function(e){return er({type:Yt.argument,value:e},Qt())},N=bt("numberSkeletonId"),C=/^['\/{}]/,x=vt(["'","/","{","}"],!1,!1),j={type:"any"},M=bt("numberSkeletonTokenOption"),k="/",L=gt("/",!1),$=function(e){return e},U=bt("numberSkeletonToken"),V=function(e,t){return{stem:e,options:t}},G=function(e){return er({type:0,tokens:e},Qt())},Z="::",z=gt("::",!1),B=function(e){return e},q=function(){return Wt.push("numberArgStyle"),!0},H=function(e){return Wt.pop(),e.replace(/\s*$/,"")},W=",",J=gt(",",!1),K="number",Q=gt("number",!1),X=function(e,t,r){return er({type:"number"===t?Yt.number:"date"===t?Yt.date:Yt.time,style:r&&r[2],value:e},Qt())},Y="'",ee=gt("'",!1),te=/^[^']/,re=vt(["'"],!0,!1),ne=/^[^a-zA-Z'{}]/,oe=vt([["a","z"],["A","Z"],"'","{","}"],!0,!1),ae=/^[a-zA-Z]/,ie=vt([["a","z"],["A","Z"]],!1,!1),ue=function(e){return er({type:1,pattern:e},Qt())},se=function(){return Wt.push("dateOrTimeArgStyle"),!0},ce="date",le=gt("date",!1),fe="time",pe=gt("time",!1),me="plural",de=gt("plural",!1),he="selectordinal",ye=gt("selectordinal",!1),ge="offset:",ve=gt("offset:",!1),be=function(e,t,r,n){return er({type:Yt.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&yt('Duplicate option "'+r+'" in plural element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},Ae="select",we=gt("select",!1),Oe=function(e,t){return er({type:Yt.select,value:e,options:t.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&yt('Duplicate option "'+r+'" in select element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},Fe="=",Ie=gt("=",!1),Te=function(e){return Wt.push("select"),!0},Ee=function(e,t){return Wt.pop(),er({id:e,value:t},Qt())},Se=function(e){return Wt.push("plural"),!0},De=function(e,t){return Wt.pop(),er({id:e,value:t},Qt())},_e=bt("whitespace"),Re=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pe=vt([["\t","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),Ne=bt("syntax pattern"),Ce=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,xe=vt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),je=bt("optional whitespace"),Me=bt("number"),ke="-",Le=gt("-",!1),$e=function(e,t){return t?e?-t:t:0},Ue=bt("double apostrophes"),Ve="''",Ge=gt("''",!1),Ze=function(){return"'"},ze=function(e,t){return e+t.replace("''","'")},Be=function(e){return(Xt()||"<"!==e)&&"{"!==e&&!(Kt()&&"#"===e)&&!(Jt()&&"}"===e)&&!(!Xt()&&Jt()&&">"===e)},qe="\n",He=gt("\n",!1),We=function(e){return"<"===e||">"===e||"{"===e||"}"===e||Kt()&&"#"===e},Je=bt("argNameOrNumber"),Ke=bt("validTag"),Qe=bt("argNumber"),Xe="0",Ye=gt("0",!1),et=function(){return 0},tt=/^[1-9]/,rt=vt([["1","9"]],!1,!1),nt=/^[0-9]/,ot=vt([["0","9"]],!1,!1),at=function(e){return parseInt(e.join(""),10)},it=bt("argName"),ut=bt("tagName"),st=0,ct=0,lt=[{line:1,column:1}],ft=0,pt=[],mt=0;if(void 0!==(e=void 0!==e?e:{}).startRule){if(!(e.startRule in r))throw new Error("Can't start parsing from rule \""+e.startRule+'".');n=r[e.startRule]}function dt(){return f.substring(ct,st)}function ht(){return wt(ct,st)}function yt(e,t){throw t=void 0!==t?t:wt(ct,st),new tr(e,[],"",t)}function gt(e,t){return{type:"literal",text:e,ignoreCase:t}}function vt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function bt(e){return{type:"other",description:e}}function At(e){var t,r=lt[e];if(r)return r;for(t=e-1;!lt[t];)t--;for(r={line:(r=lt[t]).line,column:r.column};t<e;)10===f.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return lt[e]=r}function wt(e,t){var r=At(e),n=At(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ot(e){st<ft||(ft<st&&(ft=st,pt=[]),pt.push(e))}function Ft(){return It()}function It(){for(var e=[],t=Tt();t!==p;)e.push(t),t=Tt();return e}function Tt(){var e=function(){var e,t;e=st,(t=Et())!==p&&(ct=e,t=a(t));return e=t}();return e===p&&(e=function(){var e,t,r,n,o;mt++,e=st,123===f.charCodeAt(st)?(t=S,st++):(t=p,0===mt&&Ot(D));e=t!==p?(r=Mt(),r!==p?(n=Vt())!==p?Mt()!==p?(125===f.charCodeAt(st)?(o=_,st++):(o=p,0===mt&&Ot(R)),o!==p?(ct=e,t=P(n)):(st=e,p)):(st=e,p):(st=e,p):(st=e,p)):(st=e,p);mt--,e===p&&(t=p,0===mt&&Ot(E));return e}())===p&&(e=function(){var e;(e=function(){var e,t,r,n,o,a,i,u,s,c;e=st,123===f.charCodeAt(st)?(t=S,st++):(t=p,0===mt&&Ot(D));e=t!==p?(r=Mt(),r!==p?(n=Vt())!==p?Mt()!==p?(44===f.charCodeAt(st)?(o=W,st++):(o=p,0===mt&&Ot(J)),o!==p?Mt()!==p?(f.substr(st,6)===K?(a=K,st+=6):(a=p,0===mt&&Ot(Q)),a!==p?Mt()!==p?(i=st,44===f.charCodeAt(st)?(u=W,st++):(u=p,0===mt&&Ot(J)),(i=u!==p?(s=Mt())!==p?(c=function(){var e,t,r;e=st,f.substr(st,2)===Z?(t=Z,st+=2):(t=p,0===mt&&Ot(z));e=t!==p?(r=function(){var e,t,r;if(e=st,t=[],(r=_t())!==p)for(;r!==p;)t.push(r),r=_t();else t=p;t!==p&&(ct=e,t=G(t));return e=t}(),r!==p?(ct=e,t=B(r)):(st=e,p)):(st=e,p);e===p&&(ct=e=st,t=q(),e=(t=t?void 0:p)!==p?(r=Et())!==p?(ct=e,t=H(r)):(st=e,p):(st=e,p));return e}())!==p?u=[u,s,c]:(st=i,p):(st=i,p):(st=i,p))===p&&(i=null),i!==p?(u=Mt())!==p?(125===f.charCodeAt(st)?(s=_,st++):(s=p,0===mt&&Ot(R)),s!==p?(ct=e,t=X(n,a,i)):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p):(st=e,p):(st=e,p)):(st=e,p);return e}())===p&&(e=function(){var e,t,r,n,o,a,i,u,s,c;e=st,123===f.charCodeAt(st)?(t=S,st++):(t=p,0===mt&&Ot(D));e=t!==p?(r=Mt(),r!==p?(n=Vt())!==p?Mt()!==p?(44===f.charCodeAt(st)?(o=W,st++):(o=p,0===mt&&Ot(J)),o!==p?Mt()!==p?(f.substr(st,4)===ce?(a=ce,st+=4):(a=p,0===mt&&Ot(le)),a===p&&(f.substr(st,4)===fe?(a=fe,st+=4):(a=p,0===mt&&Ot(pe))),a!==p?Mt()!==p?(i=st,44===f.charCodeAt(st)?(u=W,st++):(u=p,0===mt&&Ot(J)),(i=u!==p?(s=Mt())!==p?(c=function(){var e,t,r;e=st,f.substr(st,2)===Z?(t=Z,st+=2):(t=p,0===mt&&Ot(z));e=t!==p?(r=function(){var e,t,r,n;t=e=st,r=[],(n=Rt())===p&&(n=Pt());if(n!==p)for(;n!==p;)r.push(n),(n=Rt())===p&&(n=Pt());else r=p;t=r!==p?f.substring(t,st):r;t!==p&&(ct=e,t=ue(t));return e=t}(),r!==p?(ct=e,t=B(r)):(st=e,p)):(st=e,p);e===p&&(ct=e=st,t=se(),e=(t=t?void 0:p)!==p?(r=Et())!==p?(ct=e,t=H(r)):(st=e,p):(st=e,p));return e}())!==p?u=[u,s,c]:(st=i,p):(st=i,p):(st=i,p))===p&&(i=null),i!==p?(u=Mt())!==p?(125===f.charCodeAt(st)?(s=_,st++):(s=p,0===mt&&Ot(R)),s!==p?(ct=e,t=X(n,a,i)):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p):(st=e,p):(st=e,p)):(st=e,p);return e}());return e}())===p&&(e=function(){var e,t,r,n,o,a,i,u,s,c,l;e=st,123===f.charCodeAt(st)?(t=S,st++):(t=p,0===mt&&Ot(D));if(t!==p)if(Mt()!==p)if((r=Vt())!==p)if(Mt()!==p)if(44===f.charCodeAt(st)?(n=W,st++):(n=p,0===mt&&Ot(J)),n!==p)if(Mt()!==p)if(f.substr(st,6)===me?(o=me,st+=6):(o=p,0===mt&&Ot(de)),o===p&&(f.substr(st,13)===he?(o=he,st+=13):(o=p,0===mt&&Ot(ye))),o!==p)if(Mt()!==p)if(44===f.charCodeAt(st)?(a=W,st++):(a=p,0===mt&&Ot(J)),a!==p)if(Mt()!==p)if(i=st,f.substr(st,7)===ge?(u=ge,st+=7):(u=p,0===mt&&Ot(ve)),(i=u!==p?(s=Mt())!==p?(c=kt())!==p?u=[u,s,c]:(st=i,p):(st=i,p):(st=i,p))===p&&(i=null),i!==p)if((u=Mt())!==p){if(s=[],(c=Ct())!==p)for(;c!==p;)s.push(c),c=Ct();else s=p;e=s!==p?(c=Mt())!==p?(125===f.charCodeAt(st)?(l=_,st++):(l=p,0===mt&&Ot(R)),l!==p?(ct=e,t=be(r,o,i,s)):(st=e,p)):(st=e,p):(st=e,p)}else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;return e}())===p&&(e=function(){var e,t,r,n,o,a,i,u,s;e=st,123===f.charCodeAt(st)?(t=S,st++):(t=p,0===mt&&Ot(D));if(t!==p)if(Mt()!==p)if((r=Vt())!==p)if(Mt()!==p)if(44===f.charCodeAt(st)?(n=W,st++):(n=p,0===mt&&Ot(J)),n!==p)if(Mt()!==p)if(f.substr(st,6)===Ae?(o=Ae,st+=6):(o=p,0===mt&&Ot(we)),o!==p)if(Mt()!==p)if(44===f.charCodeAt(st)?(a=W,st++):(a=p,0===mt&&Ot(J)),a!==p)if(Mt()!==p){if(i=[],(u=Nt())!==p)for(;u!==p;)i.push(u),u=Nt();else i=p;e=i!==p?(u=Mt())!==p?(125===f.charCodeAt(st)?(s=_,st++):(s=p,0===mt&&Ot(R)),s!==p?(ct=e,t=Oe(r,i)):(st=e,p)):(st=e,p):(st=e,p)}else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;else st=e,e=p;return e}())===p&&(e=function(){var e,t,r,n,o,a;mt++,t=e=st,60===f.charCodeAt(st)?(r=l,st++):(r=p,0===mt&&Ot(m));t=r!==p?(n=Gt(),n!==p?(o=Mt())!==p?(f.substr(st,2)===d?(a=d,st+=2):(a=p,0===mt&&Ot(h)),a!==p?r=[r,n,o,a]:(st=t,p)):(st=t,p):(st=t,p)):(st=t,p);t!==p&&(ct=e,t=y(t));(e=t)===p&&(e=st,t=function(){var e,t,r,n,o;e=st,60===f.charCodeAt(st)?(t=l,st++):(t=p,0===mt&&Ot(m));e=t!==p?(ct=st,r=v(),(r=r?void 0:p)!==p?(n=Gt())!==p?(62===f.charCodeAt(st)?(o=b,st++):(o=p,0===mt&&Ot(A)),o!==p?(ct=st,(w()?void 0:p)!==p?(ct=e,t=O(n)):(st=e,p)):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p);return e}(),e=t!==p?(r=It())!==p?(n=function(){var e,t,r,n,o;e=st,f.substr(st,2)===F?(t=F,st+=2):(t=p,0===mt&&Ot(I));e=t!==p?(ct=st,r=T(),(r=r?void 0:p)!==p?(n=Gt())!==p?(62===f.charCodeAt(st)?(o=b,st++):(o=p,0===mt&&Ot(A)),o!==p?(ct=st,(w()?void 0:p)!==p?(ct=e,t=O(n)):(st=e,p)):(st=e,p)):(st=e,p):(st=e,p)):(st=e,p);return e}())!==p?(ct=e,t=g(t,r,n)):(st=e,p):(st=e,p):(st=e,p));mt--,e===p&&(t=p,0===mt&&Ot(c));return e}())===p&&(e=function(){var e,t;e=st,35===f.charCodeAt(st)?(t=i,st++):(t=p,0===mt&&Ot(u));t!==p&&(ct=e,t=s());return e=t}()),e}function Et(){var e=st,t=[],r=Lt();if(r===p&&(r=$t())===p&&(r=Ut()),r!==p)for(;r!==p;)t.push(r),(r=Lt())===p&&(r=$t())===p&&(r=Ut());else t=p;return t!==p&&(ct=e,t=o(t)),e=t}function St(){var e,t,r,n,o;if(mt++,t=[],n=r=e=st,mt++,(o=xt())===p&&(C.test(f.charAt(st))?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(x))),mt--,(r=(n=o===p?void 0:(st=n,p))!==p?(f.length>st?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(st=r,p)):(st=r,p))!==p)for(;r!==p;)t.push(r),n=r=st,mt++,(o=xt())===p&&(C.test(f.charAt(st))?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(x))),mt--,r=(n=o===p?void 0:(st=n,p))!==p?(f.length>st?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(st=r,p)):(st=r,p);else t=p;return e=t!==p?f.substring(e,st):t,mt--,e===p&&(t=p,0===mt&&Ot(N)),e}function Dt(){var e,t,r;return mt++,e=st,47===f.charCodeAt(st)?(t=k,st++):(t=p,0===mt&&Ot(L)),e=t!==p&&(r=St())!==p?(ct=e,t=$(r)):(st=e,p),mt--,e===p&&(t=p,0===mt&&Ot(M)),e}function _t(){var e,t,r,n;if(mt++,e=st,Mt()!==p)if((t=St())!==p){for(r=[],n=Dt();n!==p;)r.push(n),n=Dt();e=r!==p?(ct=e,V(t,r)):(st=e,p)}else st=e,e=p;else st=e,e=p;return mt--,e===p&&(0===mt&&Ot(U)),e}function Rt(){var e,t,r,n=st;if(39===f.charCodeAt(st)?(e=Y,st++):(e=p,0===mt&&Ot(ee)),e!==p){if(t=[],(r=Lt())===p&&(te.test(f.charAt(st))?(r=f.charAt(st),st++):(r=p,0===mt&&Ot(re))),r!==p)for(;r!==p;)t.push(r),(r=Lt())===p&&(te.test(f.charAt(st))?(r=f.charAt(st),st++):(r=p,0===mt&&Ot(re)));else t=p;n=t!==p?(39===f.charCodeAt(st)?(r=Y,st++):(r=p,0===mt&&Ot(ee)),r!==p?e=[e,t,r]:(st=n,p)):(st=n,p)}else st=n,n=p;if(n===p)if(n=[],(e=Lt())===p&&(ne.test(f.charAt(st))?(e=f.charAt(st),st++):(e=p,0===mt&&Ot(oe))),e!==p)for(;e!==p;)n.push(e),(e=Lt())===p&&(ne.test(f.charAt(st))?(e=f.charAt(st),st++):(e=p,0===mt&&Ot(oe)));else n=p;return n}function Pt(){var e,t=[];if(ae.test(f.charAt(st))?(e=f.charAt(st),st++):(e=p,0===mt&&Ot(ie)),e!==p)for(;e!==p;)t.push(e),ae.test(f.charAt(st))?(e=f.charAt(st),st++):(e=p,0===mt&&Ot(ie));else t=p;return t}function Nt(){var e,t,r,n,o=st,a=Mt();return o=a!==p&&(e=zt())!==p&&Mt()!==p?(123===f.charCodeAt(st)?(t=S,st++):(t=p,0===mt&&Ot(D)),t!==p?(ct=st,(Te()?void 0:p)!==p&&(r=It())!==p?(125===f.charCodeAt(st)?(n=_,st++):(n=p,0===mt&&Ot(R)),n!==p?(ct=o,a=Ee(e,r)):(st=o,p)):(st=o,p)):(st=o,p)):(st=o,p)}function Ct(){var e,t,r,n,o,a,i,u,s=st,c=Mt();return s=c!==p?(u=i=st,61===f.charCodeAt(st)?(o=Fe,st++):(o=p,0===mt&&Ot(Ie)),(i=(u=o!==p&&(a=kt())!==p?o=[o,a]:(st=u,p))!==p?f.substring(i,st):u)===p&&(i=zt()),(e=i)!==p&&Mt()!==p?(123===f.charCodeAt(st)?(t=S,st++):(t=p,0===mt&&Ot(D)),t!==p?(ct=st,(Se()?void 0:p)!==p&&(r=It())!==p?(125===f.charCodeAt(st)?(n=_,st++):(n=p,0===mt&&Ot(R)),n!==p?(ct=s,c=De(e,r)):(st=s,p)):(st=s,p)):(st=s,p)):(st=s,p)):(st=s,p)}function xt(){var e;return mt++,Re.test(f.charAt(st))?(e=f.charAt(st),st++):(e=p,0===mt&&Ot(Pe)),mt--,e===p&&0===mt&&Ot(_e),e}function jt(){var e;return mt++,Ce.test(f.charAt(st))?(e=f.charAt(st),st++):(e=p,0===mt&&Ot(xe)),mt--,e===p&&0===mt&&Ot(Ne),e}function Mt(){var e,t,r;for(mt++,e=st,t=[],r=xt();r!==p;)t.push(r),r=xt();return e=t!==p?f.substring(e,st):t,mt--,e===p&&(t=p,0===mt&&Ot(je)),e}function kt(){var e,t,r;return mt++,e=st,45===f.charCodeAt(st)?(t=ke,st++):(t=p,0===mt&&Ot(Le)),t===p&&(t=null),e=t!==p&&(r=Zt())!==p?(ct=e,t=$e(t,r)):(st=e,p),mt--,e===p&&(t=p,0===mt&&Ot(Me)),e}function Lt(){var e,t;return mt++,e=st,f.substr(st,2)===Ve?(t=Ve,st+=2):(t=p,0===mt&&Ot(Ge)),t!==p&&(ct=e,t=Ze()),mt--,(e=t)===p&&(t=p,0===mt&&Ot(Ue)),e}function $t(){var e,t,r,n,o,a=st;if(39===f.charCodeAt(st)?(e=Y,st++):(e=p,0===mt&&Ot(ee)),e!==p)if((t=function(){var e,t,r,n;t=e=st,f.length>st?(r=f.charAt(st),st++):(r=p,0===mt&&Ot(j));t=r!==p?(ct=st,n=We(r),(n=n?void 0:p)!==p?r=[r,n]:(st=t,p)):(st=t,p);e=t!==p?f.substring(e,st):t;return e}())!==p){for(r=st,n=[],f.substr(st,2)===Ve?(o=Ve,st+=2):(o=p,0===mt&&Ot(Ge)),o===p&&(te.test(f.charAt(st))?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(re)));o!==p;)n.push(o),f.substr(st,2)===Ve?(o=Ve,st+=2):(o=p,0===mt&&Ot(Ge)),o===p&&(te.test(f.charAt(st))?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(re)));a=(r=n!==p?f.substring(r,st):n)!==p?(39===f.charCodeAt(st)?(n=Y,st++):(n=p,0===mt&&Ot(ee)),n===p&&(n=null),n!==p?(ct=a,e=ze(t,r)):(st=a,p)):(st=a,p)}else st=a,a=p;else st=a,a=p;return a}function Ut(){var e,t,r=st,n=st;return f.length>st?(e=f.charAt(st),st++):(e=p,0===mt&&Ot(j)),(n=e!==p?(ct=st,(t=(t=Be(e))?void 0:p)!==p?e=[e,t]:(st=n,p)):(st=n,p))===p&&(10===f.charCodeAt(st)?(n=qe,st++):(n=p,0===mt&&Ot(He))),r=n!==p?f.substring(r,st):n}function Vt(){var e,t;return mt++,e=st,(t=Zt())===p&&(t=zt()),e=t!==p?f.substring(e,st):t,mt--,e===p&&(t=p,0===mt&&Ot(Je)),e}function Gt(){var e,t;return mt++,e=st,(t=Zt())===p&&(t=function(){var e,t,r,n,o;mt++,e=st,t=[],45===f.charCodeAt(st)?(r=ke,st++):(r=p,0===mt&&Ot(Le));r===p&&(n=r=st,mt++,(o=xt())===p&&(o=jt()),mt--,n=o===p?void 0:(st=n,p),r=n!==p?(f.length>st?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(st=r,p)):(st=r,p));if(r!==p)for(;r!==p;)t.push(r),45===f.charCodeAt(st)?(r=ke,st++):(r=p,0===mt&&Ot(Le)),r===p&&(n=r=st,mt++,(o=xt())===p&&(o=jt()),mt--,n=o===p?void 0:(st=n,p),r=n!==p?(f.length>st?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(st=r,p)):(st=r,p));else t=p;e=t!==p?f.substring(e,st):t;mt--,e===p&&(t=p,0===mt&&Ot(ut));return e}()),e=t!==p?f.substring(e,st):t,mt--,e===p&&(t=p,0===mt&&Ot(Ke)),e}function Zt(){var e,t,r,n,o;if(mt++,e=st,48===f.charCodeAt(st)?(t=Xe,st++):(t=p,0===mt&&Ot(Ye)),t!==p&&(ct=e,t=et()),(e=t)===p){if(t=e=st,tt.test(f.charAt(st))?(r=f.charAt(st),st++):(r=p,0===mt&&Ot(rt)),r!==p){for(n=[],nt.test(f.charAt(st))?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(ot));o!==p;)n.push(o),nt.test(f.charAt(st))?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(ot));t=n!==p?r=[r,n]:(st=t,p)}else st=t,t=p;t!==p&&(ct=e,t=at(t)),e=t}return mt--,e===p&&(t=p,0===mt&&Ot(Qe)),e}function zt(){var e,t,r,n,o;if(mt++,t=[],n=r=e=st,mt++,(o=xt())===p&&(o=jt()),mt--,(r=(n=o===p?void 0:(st=n,p))!==p?(f.length>st?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(st=r,p)):(st=r,p))!==p)for(;r!==p;)t.push(r),n=r=st,mt++,(o=xt())===p&&(o=jt()),mt--,r=(n=o===p?void 0:(st=n,p))!==p?(f.length>st?(o=f.charAt(st),st++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(st=r,p)):(st=r,p);else t=p;return e=t!==p?f.substring(e,st):t,mt--,e===p&&(t=p,0===mt&&Ot(it)),e}var Bt,qt,Ht,Wt=["root"];function Jt(){return 1<Wt.length}function Kt(){return"plural"===Wt[Wt.length-1]}function Qt(){return e&&e.captureLocation?{location:ht()}:{}}function Xt(){return e&&e.ignoreTag}if((t=n())!==p&&st===f.length)return t;throw t!==p&&st<f.length&&Ot({type:"end"}),Bt=pt,qt=ft<f.length?f.charAt(ft):null,Ht=ft<f.length?wt(ft,ft+1):wt(ft,ft),new tr(tr.buildMessage(Bt,qt),Bt,qt,Ht)},p=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},m=/(^|[^\\])#/g;var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function S(e){var r={};return e.replace(c,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][t-1];break;case"s":r.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":r.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),r}var l=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,d=/^(@+)?(\+|#+)?$/g;function h(e){var n={};return e.replace(d,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function g(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function v(e){var t=g(e);return t||{}}function D(e){for(var i={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":i.style="percent";continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=s(s(s({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return s(s({},e),v(t))},{}));continue;case"engineering":i=s(s(s({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return s(s({},e),v(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue}if(l.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(l,function(e,t,r,n,o,a){return"*"===r?i.minimumFractionDigits=t.length:n&&"#"===n[0]?i.maximumFractionDigits=n.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""}),o.options.length&&(i=s(s({},i),h(o.options[0])))}else{d.test(o.stem)?i=s(s({},i),h(o.stem)):(n=g(o.stem))&&(i=s(s({},i),n))}}return i}function b(e,t){var r=f(e,t);return t&&!1===t.normalizeHashtagInPlural||function l(e){e.forEach(function(c){(T(c)||I(c))&&Object.keys(c.options).forEach(function(e){for(var t,r,n,o=c.options[e],a=-1,i=void 0,u=0;u<o.value.length;u++){var s=o.value[u];if(F(s)&&m.test(s.value)){a=u,i=s;break}}i&&(r=i.value.replace(m,"$1{"+c.value+", number}"),n=f(r),(t=o.value).splice.apply(t,p([a,1],n))),l(o.value)})})}(r),r}var A=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function w(e){return JSON.stringify(e.map(function(e){return e&&"object"==typeof e?(r=e,Object.keys(r).sort().map(function(e){var t={};return t[e]=r[e],t})):e;var r}))}var O,_,R,P=function(o,a){return void 0===a&&(a={}),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=w(e),n=r&&a[r];return n||(n=new(o.bind.apply(o,A([void 0],e))),r&&(a[r]=n)),n}},N=(O=function(e,t){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(R=_=_||{}).MISSING_VALUE="MISSING_VALUE",R.INVALID_VALUE="INVALID_VALUE",R.MISSING_INTL_API="MISSING_INTL_API";var C,x=(C=Error,N(j,C),j.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},j);function j(e,t,r){var n=C.call(this,e)||this;return n.code=t,n.originalMessage=r,n}var M,k=(N(L,M=x),L);function L(e,t,r,n){return M.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE",n)||this}var $,U=(N(V,$=x),V);function V(e,t,r){return $.call(this,'Value for "'+e+'" must be of type '+t,"INVALID_VALUE",r)||this}var G,Z,z,B=(N(q,G=x),q);function q(e,t){return G.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',"MISSING_VALUE",t)||this}function H(e,t,r,n,o,a,i){if(1===e.length&&F(e[0]))return[{type:0,value:e[0].value}];for(var u,s,c=[],l=0,f=e;l<f.length;l++){var p=f[l];if(F(p))c.push({type:0,value:p.value});else if(p.type!==Yt.pound){var m=p.value;if(!(o&&m in o))throw new B(m,i);var d,h=o[m];if(p.type!==Yt.argument)if(p.type!==Yt.date)if(p.type!==Yt.time)if(p.type!==Yt.number){if(p.type===Yt.tag){var y=p.children,g=p.value,v=o[g];if("function"!=typeof v)throw new U(g,"function",i);var b=H(y,t,r,n,o,a),A=v.apply(void 0,b.map(function(e){return e.value}));Array.isArray(A)||(A=[A]),c.push.apply(c,A.map(function(e){return{type:"string"==typeof e?0:1,value:e}}))}if(I(p)){if(!(d=p.options[h]||p.options.other))throw new k(p.value,h,Object.keys(p.options),i);c.push.apply(c,H(d.value,t,r,n,o))}else if(T(p)){if(!(d=p.options["="+h])){if(!Intl.PluralRules)throw new x('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",i);var w=r.getPluralRules(t,{type:p.pluralType}).select(h-(p.offset||0));d=p.options[w]||p.options.other}if(!d)throw new k(p.value,h,Object.keys(p.options),i);c.push.apply(c,H(d.value,t,r,n,o,h-(p.offset||0)))}else;}else{O="string"==typeof p.style?n.number[p.style]:(u=p.style)&&"object"==typeof u&&0===u.type?D(p.style.tokens):void 0;c.push({type:0,value:r.getNumberFormat(t,O).format(h)})}else{var O="string"==typeof p.style?n.time[p.style]:E(p.style)?S(p.style.pattern):void 0;c.push({type:0,value:r.getDateTimeFormat(t,O).format(h)})}else{var O="string"==typeof p.style?n.date[p.style]:E(p.style)?S(p.style.pattern):void 0;c.push({type:0,value:r.getDateTimeFormat(t,O).format(h)})}else h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),c.push({type:"string"==typeof h?0:1,value:h})}else"number"==typeof a&&c.push({type:0,value:r.getNumberFormat(t).format(a)})}return(s=c).length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])}(z=Z=Z||{})[z.literal=0]="literal",z[z.object=1]="object";var W=function(){return(W=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function J(o,a){return a?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=a[t])?W(W(W({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=W(W({},r[t]),n[t]||{}),e},{})):r),e},W({},o)):o}var K=(Object.defineProperty(Q,"defaultLocale",{get:function(){return Q.memoizedDefaultLocale||(Q.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Q.memoizedDefaultLocale},enumerable:!0,configurable:!0}),Q.memoizedDefaultLocale=null,Q.__parse=b,Q.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Q);function Q(e,t,r,n){var o,a=this;if(void 0===t&&(t=Q.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return H(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Q.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Q.__parse(e,{normalizeHashtagInPlural:!1,ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=J(Q.formats,r),this.locales=t,this.formatters=n&&n.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:P(Intl.NumberFormat,o.number),getDateTimeFormat:P(Intl.DateTimeFormat,o.dateTime),getPluralRules:P(Intl.PluralRules,o.pluralRules)})}function X(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var Y,ee,te=(Y=function(e,t){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(ee=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",ee.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",ee.INVALID_CONFIG="INVALID_CONFIG",ee.MISSING_DATA="MISSING_DATA",ee.MISSING_TRANSLATION="MISSING_TRANSLATION";var re,ne=(re=Error,te(oe,re),oe);function oe(e,t,r){var n=re.call(this,"[React Intl Error "+e+"] "+t+" \n"+(r?"\n"+r.stack:""))||this;return n.code=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(n,oe),n}var ae,ie=(te(ue,ae=ne),ue);function ue(e,t){return ae.call(this,"UNSUPPORTED_FORMATTER",e,t)||this}var se,ce=(te(le,se=ne),le);function le(e,t){return se.call(this,"INVALID_CONFIG",e,t)||this}var fe,pe=(te(me,fe=ne),me);function me(e,t){return fe.call(this,"MISSING_DATA",e,t)||this}var de,he=(te(ye,de=ne),ye);function ye(e,t,r,n){var o=de.call(this,"FORMAT_ERROR",e+" \nLocale: "+t+"\nMessageID: "+(null==r?void 0:r.id)+"\nDefault Message: "+(null==r?void 0:r.defaultMessage)+"\nDescription: "+(null==r?void 0:r.description)+" \n",n)||this;return o.descriptor=r,o}var ge,ve=(te(be,ge=ne),be);function be(e,t){var r=ge.call(this,"MISSING_TRANSLATION",'Missing message: "'+e.id+'" for locale "'+t+'", using '+(e.defaultMessage?"default message":"id")+" as fallback.")||this;return r.descriptor=e,r}function Ae(r,e,n){return void 0===n&&(n={}),e.reduce(function(e,t){return t in r?e[t]=r[t]:t in n&&(e[t]=n[t]),e},{})}function we(e){X(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Oe={formats:{},messages:{},timeZone:void 0,textComponent:y.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function Fe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ie(e){void 0===e&&(e=Fe());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames;return{getDateTimeFormat:P(Intl.DateTimeFormat,e.dateTime),getNumberFormat:P(Intl.NumberFormat,e.number),getMessageFormat:P(K,e.message),getRelativeTimeFormat:P(t,e.relativeTime),getPluralRules:P(Intl.PluralRules,e.pluralRules),getListFormat:P(r,e.list),getDisplayNames:P(n,e.displayNames)}}function Te(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new ie("No "+t+" format named: "+r))}var Ee="function"==typeof Symbol&&Symbol.for,Se=Ee?Symbol.for("react.element"):60103,De=Ee?Symbol.for("react.portal"):60106,_e=Ee?Symbol.for("react.fragment"):60107,Re=Ee?Symbol.for("react.strict_mode"):60108,Pe=Ee?Symbol.for("react.profiler"):60114,Ne=Ee?Symbol.for("react.provider"):60109,Ce=Ee?Symbol.for("react.context"):60110,xe=Ee?Symbol.for("react.async_mode"):60111,je=Ee?Symbol.for("react.concurrent_mode"):60111,Me=Ee?Symbol.for("react.forward_ref"):60112,ke=Ee?Symbol.for("react.suspense"):60113,Le=Ee?Symbol.for("react.suspense_list"):60120,$e=Ee?Symbol.for("react.memo"):60115,Ue=Ee?Symbol.for("react.lazy"):60116,Ve=Ee?Symbol.for("react.block"):60121,Ge=Ee?Symbol.for("react.fundamental"):60117,Ze=Ee?Symbol.for("react.responder"):60118,ze=Ee?Symbol.for("react.scope"):60119;function Be(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Se:switch(e=e.type){case xe:case je:case _e:case Pe:case Re:case ke:return e;default:switch(e=e&&e.$$typeof){case Ce:case Me:case Ue:case $e:case Ne:return e;default:return t}}case De:return t}}}function qe(e){return Be(e)===je}var He,We={AsyncMode:xe,ConcurrentMode:je,ContextConsumer:Ce,ContextProvider:Ne,Element:Se,ForwardRef:Me,Fragment:_e,Lazy:Ue,Memo:$e,Portal:De,Profiler:Pe,StrictMode:Re,Suspense:ke,isAsyncMode:function(e){return qe(e)||Be(e)===xe},isConcurrentMode:qe,isContextConsumer:function(e){return Be(e)===Ce},isContextProvider:function(e){return Be(e)===Ne},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Se},isForwardRef:function(e){return Be(e)===Me},isFragment:function(e){return Be(e)===_e},isLazy:function(e){return Be(e)===Ue},isMemo:function(e){return Be(e)===$e},isPortal:function(e){return Be(e)===De},isProfiler:function(e){return Be(e)===Pe},isStrictMode:function(e){return Be(e)===Re},isSuspense:function(e){return Be(e)===ke},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===_e||e===je||e===Pe||e===Re||e===ke||e===Le||"object"==typeof e&&null!==e&&(e.$$typeof===Ue||e.$$typeof===$e||e.$$typeof===Ne||e.$$typeof===Ce||e.$$typeof===Me||e.$$typeof===Ge||e.$$typeof===Ze||e.$$typeof===ze||e.$$typeof===Ve)},typeOf:Be},Je=(function(e){e.exports=We}(He={exports:{}}),He.exports),Ke={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ye={};function et(e){return Je.isMemo(e)?Xe:Ye[e.$$typeof]||Ke}Ye[Je.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ye[Je.Memo]=Xe;var tt=Object.defineProperty,rt=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,ot=Object.getOwnPropertyDescriptor,at=Object.getPrototypeOf,it=Object.prototype;function ut(e,t,r){if("string"!=typeof t){var n;!it||(n=at(t))&&n!==it&&ut(e,n,r);var o=rt(t);nt&&(o=o.concat(nt(t)));for(var a=et(e),i=et(t),u=0;u<o.length;++u){var s=o[u];if(!(Qe[s]||r&&r[s]||i&&i[s]||a&&a[s])){var c=ot(t,s);try{tt(e,s,c)}catch(e){}}}}return e}var st=function(){return(st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ct=ut;var lt=y.createContext(null),ft=lt.Consumer,pt=lt.Provider,mt=lt;function dt(o,e){function r(n){return y.createElement(ft,null,function(e){var t;l&&we(e);var r=((t={})[i]=e,t);return y.createElement(o,st({},n,r,{ref:s?n.forwardedRef:null}))})}var t,n=e||{},a=n.intlPropName,i=void 0===a?"intl":a,u=n.forwardRef,s=void 0!==u&&u,c=n.enforceContext,l=void 0===c||c;return r.displayName="injectIntl("+((t=o).displayName||t.name||"Component")+")",r.WrappedComponent=o,ct(s?y.forwardRef(function(e,t){return y.createElement(r,st({},e,{forwardedRef:t}))}):r,o)}var ht,yt,gt,vt,bt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(yt=ht=ht||{}).formatDate="FormattedDate",yt.formatTime="FormattedTime",yt.formatNumber="FormattedNumber",yt.formatList="FormattedList",yt.formatDisplayName="FormattedDisplayName",(vt=gt=gt||{}).formatDate="FormattedDateParts",vt.formatTime="FormattedTimeParts",vt.formatNumber="FormattedNumberParts",vt.formatList="FormattedListParts";function At(o){return y.createElement(mt.Consumer,null,function(e){we(e);var t=o.value,r=o.children,n=bt(o,["value","children"]);return r(e.formatNumberToParts(t,n))})}function wt(i){function e(a){return y.createElement(mt.Consumer,null,function(e){we(e);var t=a.value,r=a.children,n=bt(a,["value","children"]),o="string"==typeof t?new Date(t||0):t;return r("formatDate"===i?e.formatDateToParts(o,n):e.formatTimeToParts(o,n))})}return e.displayName=gt[i],e}function Ot(u){function e(i){return y.createElement(mt.Consumer,null,function(e){we(e);var t=i.value,r=i.children,n=bt(i,["value","children"]),o=e[u](t,n);if("function"==typeof r)return r(o);var a=e.textComponent||y.Fragment;return y.createElement(a,null,o)})}return e.displayName=ht[u],e}At.displayName="FormattedNumberParts";var Ft=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function It(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,u=i&&Te(o,"number",i,a)||{};return t(n,Ae(r,Ft,u))}var Tt=["numeric","style"];function Et(t,e,r,n,o){void 0===o&&(o={}),n=n||"second",Intl.RelativeTimeFormat||t.onError(new x('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,u=!!i&&Te(o,"relative",i,a)||{};return t(n,Ae(r,Tt,u))}(t,e,o).format(r,n)}catch(e){t.onError(new he("Error formatting relative time.",e))}return String(r)}var St=function(){return(St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Dt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","fractionalSecondDigits","calendar","numberingSystem"];function _t(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone;void 0===n&&(n={});var s=n.format,c=St(St({},u&&{timeZone:u}),s&&Te(a,t,s,i)),l=Ae(n,Dt,c);return"time"!==t||l.hour||l.minute||l.second||(l=St(St({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}var Rt=["localeMatcher","type"];var Pt=function(){return(Pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Nt=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function Ct(r,n){return Object.keys(r).reduce(function(e,t){return e[t]=Pt({timeZone:n},r[t]),e},{})}function xt(r,n){return Object.keys(Pt(Pt({},r),n)).reduce(function(e,t){return e[t]=Pt(Pt({},r[t]||{}),n[t]||{}),e},{})}function jt(e,t){if(!t)return e;var r=K.formats;return Pt(Pt(Pt({},r),e),{date:xt(Ct(r.date,t),Ct(e.date||{},t)),time:xt(Ct(r.time,t),Ct(e.time||{},t))})}function Mt(e,t){return Array.isArray(e)&&t?y.createElement.apply(y,Nt([y.Fragment,null],e)):e}function kt(e,t,r,n){var o=e.locale,a=e.formats,i=e.messages,u=e.defaultLocale,s=e.defaultFormats,c=e.onError,l=e.timeZone,f=e.wrapRichTextChunksInFragment;void 0===r&&(r={id:""});var p=r.id,m=r.defaultMessage;X(!!p,"[React Intl] An `id` must be provided to format a message.");var d=i&&i[String(p)];if(!n&&d&&"string"==typeof d)return d.replace(/'\{(.*?)\}'/gi,"{$1}");if(a=jt(a,l),s=jt(s,l),!d){if((!m||o&&o.toLowerCase()!==u.toLowerCase())&&c(new ve(r,o)),m)try{return Mt(t.getMessageFormat(m,u,s).format(n),f)}catch(e){return c(new he('Error formatting default message for: "'+p+'", rendering default message verbatim',o,r,e)),m}return p}try{return Mt(t.getMessageFormat(d,o,a,{formatters:t}).format(n),f)}catch(e){c(new he('Error formatting message: "'+p+'", using '+(m?"default message":"id")+" as fallback.",o,r,e))}if(m)try{return Mt(t.getMessageFormat(m,u,s).format(n),f)}catch(e){c(new he('Error formatting the default message for: "'+p+'", rendering message verbatim',o,r,e))}return d||m||p}function Lt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var $t=["localeMatcher","type","style"],Ut=Date.now();function Vt(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new x('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=Ae(n,$t);try{var u={},s=r.map(function(e,t){if("object"!=typeof e)return String(e);var r=Ut+"_"+t+"_"+Ut;return u[r]=e,r});return Object.keys(u).length?t(o,i).formatToParts(s).reduce(function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]):t(o,i).format(s)}catch(e){a(new ne("FORMAT_ERROR","Error formatting list.",e))}return r}var Gt=["localeMatcher","style","type","fallback"];var Zt,zt=(Zt=function(e,t){return(Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}Zt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Bt=function(){return(Bt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qt=Lt;function Ht(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment}}function Wt(e,t){var r=Ie(t),n=Bt(Bt({},Oe),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new pe('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new pe('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(i&&i(new ce('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),Bt(Bt({},n),{formatters:r,formatNumber:function(t,e,r,n){void 0===n&&(n={});try{return It(t,e,n).format(r)}catch(e){t.onError(new ne("FORMAT_ERROR","Error formatting number.",e))}return String(r)}.bind(null,n,r.getNumberFormat),formatNumberToParts:function(t,e,r,n){void 0===n&&(n={});try{return It(t,e,n).formatToParts(r)}catch(e){t.onError(new ne("FORMAT_ERROR","Error formatting number.",e))}return[]}.bind(null,n,r.getNumberFormat),formatRelativeTime:Et.bind(null,n,r.getRelativeTimeFormat),formatDate:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"date",e,n).format(o)}catch(e){t.onError(new ne("FORMAT_ERROR","Error formatting date.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatDateToParts:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"date",e,n).formatToParts(o)}catch(e){t.onError(new ne("FORMAT_ERROR","Error formatting date.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatTime:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"time",e,n).format(o)}catch(e){t.onError(new ne("FORMAT_ERROR","Error formatting time.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatTimeToParts:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"time",e,n).formatToParts(o)}catch(e){t.onError(new ne("FORMAT_ERROR","Error formatting time.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatPlural:function(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new x('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=Ae(n,Rt);try{return t(o,i).select(r)}catch(e){a(new he("Error formatting plural.",e))}return"other"}.bind(null,n,r.getPluralRules),formatMessage:kt.bind(null,n,r),formatList:Vt.bind(null,n,r.getListFormat),formatDisplayName:function(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.DisplayNames||a(new x('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=Ae(n,Gt);try{return t(o,i).of(r)}catch(e){a(new ne("FORMAT_ERROR","Error formatting display name.",e))}}.bind(null,n,r.getDisplayNames)})}var Jt,Kt=(Jt=y.PureComponent,zt(Qt,Jt),Qt.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Ht(e);return qt(r,o)?null:{intl:Wt(o,n),prevConfig:o}},Qt.prototype.render=function(){return we(this.state.intl),y.createElement(pt,{value:this.state.intl},this.props.children)},Qt.displayName="IntlProvider",Qt.defaultProps=Oe,Qt);function Qt(){var e=null!==Jt&&Jt.apply(this,arguments)||this;return e.cache=Fe(),e.state={cache:e.cache,intl:Wt(Ht(e.props),e.cache),prevConfig:Ht(e.props)},e}var Xt,rr=(Xt=function(e,t){return(Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}Xt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nr=function(){return(nr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},or=60,ar=3600;function ir(e){var t=Math.abs(e);return t<or?"second":t<ar?"minute":t<86400?"hour":"day"}function ur(e){switch(e){case"second":return 1;case"minute":return or;case"hour":return ar;default:return 86400}}function sr(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return e*or;default:return e*ar}}var cr=["second","minute","hour"];function lr(e){return void 0===e&&(e="second"),cr.includes(e)}var fr,pr=(fr=y.PureComponent,rr(mr,fr),mr.prototype.scheduleNextUpdate=function(e,t){var r,n,o,a,i,u,s=this,c=e.updateIntervalInSeconds,l=e.unit,f=t.currentValueInSeconds;clearTimeout(this._updateTimer),this._updateTimer=null,c&&lr(l)&&"day"!==(n=ir(r=f-c))&&(o=ur(n),i=f<=(a=r-r%o)?a-o:a,u=Math.abs(i-f),this._updateTimer=setTimeout(function(){return s.setState({currentValueInSeconds:i})},1e3*u))},mr.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},mr.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},mr.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},mr.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:lr(e.unit)?sr(e.value,e.unit):0}:null},mr.prototype.render=function(){var m=this;return y.createElement(mt.Consumer,null,function(e){we(e);var t,r=e.formatRelativeTime,n=e.textComponent,o=m.props,a=o.children,i=o.value,u=o.unit,s=o.updateIntervalInSeconds,c=m.state.currentValueInSeconds,l=i||0,f=u;lr(u)&&"number"==typeof c&&s&&(t=ur(f=ir(c)),l=Math.round(c/t));var p=r(l,f,nr({},m.props));return"function"==typeof a?a(p):n?y.createElement(n,null,p):p})},mr.displayName="FormattedRelativeTime",mr.defaultProps={value:0,unit:"second"},mr);function mr(e){var t=fr.call(this,e)||this;return t._updateTimer=null,t.state={prevUnit:t.props.unit,prevValue:t.props.value,currentValueInSeconds:lr(t.props.unit)?sr(t.props.value,t.props.unit):0},X(!e.updateIntervalInSeconds||!(!e.updateIntervalInSeconds||!lr(e.unit)),"Cannot schedule update with unit longer than hour"),t}function dr(e){var t=e.value,r=e.other,n=e.children,o=e.intl,a=o.formatPlural,i=o.textComponent,u=e[a(t,e)]||r;return"function"==typeof n?n(u):i?y.createElement(i,null,u):u}dr.defaultProps={type:"cardinal"},dr.displayName="FormattedPlural";var hr,yr=dt(dr),gr=(hr=function(e,t){return(hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}hr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),vr=function(){return(vr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},br=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ar=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},wr=Lt;function Or(e,t){return kt(vr(vr({},Oe),{locale:"en"}),Ie(),e,t)}var Fr,Ir=(Fr=y.Component,gr(Tr,Fr),Tr.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=br(t,["values"]),o=e.values,a=br(e,["values"]);return!wr(o,r)||!wr(n,a)},Tr.prototype.render=function(){var h=this;return y.createElement(mt.Consumer,null,function(e){h.props.defaultMessage||we(e);var t=e||{},r=t.formatMessage,n=void 0===r?Or:r,o=t.textComponent,a=void 0===o?y.Fragment:o,i=h.props,u=i.id,s=i.description,c=i.defaultMessage,l=i.values,f=i.children,p=i.tagName,m=void 0===p?a:p,d=n({id:u,description:s,defaultMessage:c},l);return Array.isArray(d)||(d=[d]),"function"==typeof f?f.apply(void 0,d):m?y.createElement.apply(y,Ar([m,null],d)):d})},Tr.displayName="FormattedMessage",Tr);function Tr(){return null!==Fr&&Fr.apply(this,arguments)||this}var Er=Ot("formatDate"),Sr=Ot("formatTime"),Dr=Ot("formatNumber"),_r=Ot("formatList"),Rr=Ot("formatDisplayName"),Pr=wt("formatDate"),Nr=wt("formatTime");e.FormattedDate=Er,e.FormattedDateParts=Pr,e.FormattedDisplayName=Rr,e.FormattedList=_r,e.FormattedMessage=Ir,e.FormattedNumber=Dr,e.FormattedNumberParts=At,e.FormattedPlural=yr,e.FormattedRelativeTime=pr,e.FormattedTime=Sr,e.FormattedTimeParts=Nr,e.IntlContext=mt,e.IntlProvider=Kt,e.InvalidConfigError=ce,e.MessageFormatError=he,e.MissingDataError=pe,e.MissingTranslationError=ve,e.RawIntlProvider=pt,e.ReactIntlError=ne,e.UnsupportedFormatterError=ie,e.createIntl=Wt,e.createIntlCache=Fe,e.defineMessage=function(e){return e},e.defineMessages=function(e){return e},e.injectIntl=dt,e.useIntl=function(){var e=y.useContext(mt);return we(e),e},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactIntl={},e.React)}(this,function(e,d){"use strict";var Yt,t,r,n;function O(e){return e.type===Yt.literal}function F(e){return e.type===Yt.select}function I(e){return e.type===Yt.plural}function T(e){return e&&"object"==typeof e&&1===e.type}(t=Yt=Yt||{})[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag",(n=r=r||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var o,a,i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),er=function(){return(er=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tr=(a=Error,i(u,a),u.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),0<n.length){for(r=t=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((i=t)?'"'+n(i)+'"':"end of input")+" found.";var i},u);function u(e,t,r,n){var o=a.call(this)||this;return o.message=e,o.expected=t,o.found=r,o.location=n,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,u),o}var f=function(f,e){var t,p={},r={start:Ft},n=Ft,o=function(e){return e.join("")},a=function(e){return er({type:Yt.literal,value:e},Qt())},i="#",u=gt("#",!1),c=function(){return er({type:Yt.pound},Qt())},s=bt("tagElement"),l="<",m=gt("<",!1),d="/>",h=gt("/>",!1),y=function(e){return er({type:Yt.literal,value:e.join("")},Qt())},g=function(e,t,r){return e!==r&&yt('Mismatch tag "'+e+'" !== "'+r+'"',ht()),er({type:Yt.tag,value:e,children:t},Qt())},v=function(){return Wt.push("openingTag"),!0},b=">",A=gt(">",!1),w=function(e){return Wt.pop(),!0},O=function(e){return e},F="</",I=gt("</",!1),T=function(){return Wt.push("closingTag"),!0},E=bt("argumentElement"),S="{",D=gt("{",!1),_="}",R=gt("}",!1),P=function(e){return er({type:Yt.argument,value:e},Qt())},N=bt("numberSkeletonId"),C=/^['\/{}]/,x=vt(["'","/","{","}"],!1,!1),j={type:"any"},M=bt("numberSkeletonTokenOption"),k="/",L=gt("/",!1),$=function(e){return e},U=bt("numberSkeletonToken"),V=function(e,t){return{stem:e,options:t}},G=function(e){return er({type:0,tokens:e},Qt())},Z="::",z=gt("::",!1),B=function(e){return e},q=function(){return Wt.push("numberArgStyle"),!0},H=function(e){return Wt.pop(),e.replace(/\s*$/,"")},W=",",J=gt(",",!1),K="number",Q=gt("number",!1),X=function(e,t,r){return er({type:"number"===t?Yt.number:"date"===t?Yt.date:Yt.time,style:r&&r[2],value:e},Qt())},Y="'",ee=gt("'",!1),te=/^[^']/,re=vt(["'"],!0,!1),ne=/^[^a-zA-Z'{}]/,oe=vt([["a","z"],["A","Z"],"'","{","}"],!0,!1),ae=/^[a-zA-Z]/,ie=vt([["a","z"],["A","Z"]],!1,!1),ue=function(e){return er({type:1,pattern:e},Qt())},ce=function(){return Wt.push("dateOrTimeArgStyle"),!0},se="date",le=gt("date",!1),fe="time",pe=gt("time",!1),me="plural",de=gt("plural",!1),he="selectordinal",ye=gt("selectordinal",!1),ge="offset:",ve=gt("offset:",!1),be=function(e,t,r,n){return er({type:Yt.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&yt('Duplicate option "'+r+'" in plural element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},Ae="select",we=gt("select",!1),Oe=function(e,t){return er({type:Yt.select,value:e,options:t.reduce(function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&yt('Duplicate option "'+r+'" in select element: "'+dt()+'"',ht()),e[r]={value:n,location:o},e},{})},Qt())},Fe="=",Ie=gt("=",!1),Te=function(e){return Wt.push("select"),!0},Ee=function(e,t){return Wt.pop(),er({id:e,value:t},Qt())},Se=function(e){return Wt.push("plural"),!0},De=function(e,t){return Wt.pop(),er({id:e,value:t},Qt())},_e=bt("whitespace"),Re=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pe=vt([["\t","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),Ne=bt("syntax pattern"),Ce=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,xe=vt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),je=bt("optional whitespace"),Me=bt("number"),ke="-",Le=gt("-",!1),$e=function(e,t){return t?e?-t:t:0},Ue=bt("double apostrophes"),Ve="''",Ge=gt("''",!1),Ze=function(){return"'"},ze=function(e,t){return e+t.replace("''","'")},Be=function(e){return(Xt()||"<"!==e)&&"{"!==e&&!(Kt()&&"#"===e)&&!(Jt()&&"}"===e)&&!(!Xt()&&Jt()&&">"===e)},qe="\n",He=gt("\n",!1),We=function(e){return"<"===e||">"===e||"{"===e||"}"===e||Kt()&&"#"===e},Je=bt("argNameOrNumber"),Ke=bt("validTag"),Qe=bt("argNumber"),Xe="0",Ye=gt("0",!1),et=function(){return 0},tt=/^[1-9]/,rt=vt([["1","9"]],!1,!1),nt=/^[0-9]/,ot=vt([["0","9"]],!1,!1),at=function(e){return parseInt(e.join(""),10)},it=bt("argName"),ut=bt("tagName"),ct=0,st=0,lt=[{line:1,column:1}],ft=0,pt=[],mt=0;if(void 0!==(e=void 0!==e?e:{}).startRule){if(!(e.startRule in r))throw new Error("Can't start parsing from rule \""+e.startRule+'".');n=r[e.startRule]}function dt(){return f.substring(st,ct)}function ht(){return wt(st,ct)}function yt(e,t){throw t=void 0!==t?t:wt(st,ct),new tr(e,[],"",t)}function gt(e,t){return{type:"literal",text:e,ignoreCase:t}}function vt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function bt(e){return{type:"other",description:e}}function At(e){var t,r=lt[e];if(r)return r;for(t=e-1;!lt[t];)t--;for(r={line:(r=lt[t]).line,column:r.column};t<e;)10===f.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return lt[e]=r}function wt(e,t){var r=At(e),n=At(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ot(e){ct<ft||(ft<ct&&(ft=ct,pt=[]),pt.push(e))}function Ft(){return It()}function It(){for(var e=[],t=Tt();t!==p;)e.push(t),t=Tt();return e}function Tt(){var e=function(){var e,t;e=ct,(t=Et())!==p&&(st=e,t=a(t));return e=t}();return e===p&&(e=function(){var e,t,r,n,o;mt++,e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=p,0===mt&&Ot(D));e=t!==p?(r=Mt(),r!==p?(n=Vt())!==p?Mt()!==p?(125===f.charCodeAt(ct)?(o=_,ct++):(o=p,0===mt&&Ot(R)),o!==p?(st=e,t=P(n)):(ct=e,p)):(ct=e,p):(ct=e,p):(ct=e,p)):(ct=e,p);mt--,e===p&&(t=p,0===mt&&Ot(E));return e}())===p&&(e=function(){var e;(e=function(){var e,t,r,n,o,a,i,u,c,s;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=p,0===mt&&Ot(D));e=t!==p?(r=Mt(),r!==p?(n=Vt())!==p?Mt()!==p?(44===f.charCodeAt(ct)?(o=W,ct++):(o=p,0===mt&&Ot(J)),o!==p?Mt()!==p?(f.substr(ct,6)===K?(a=K,ct+=6):(a=p,0===mt&&Ot(Q)),a!==p?Mt()!==p?(i=ct,44===f.charCodeAt(ct)?(u=W,ct++):(u=p,0===mt&&Ot(J)),(i=u!==p?(c=Mt())!==p?(s=function(){var e,t,r;e=ct,f.substr(ct,2)===Z?(t=Z,ct+=2):(t=p,0===mt&&Ot(z));e=t!==p?(r=function(){var e,t,r;if(e=ct,t=[],(r=_t())!==p)for(;r!==p;)t.push(r),r=_t();else t=p;t!==p&&(st=e,t=G(t));return e=t}(),r!==p?(st=e,t=B(r)):(ct=e,p)):(ct=e,p);e===p&&(st=e=ct,t=q(),e=(t=t?void 0:p)!==p?(r=Et())!==p?(st=e,t=H(r)):(ct=e,p):(ct=e,p));return e}())!==p?u=[u,c,s]:(ct=i,p):(ct=i,p):(ct=i,p))===p&&(i=null),i!==p?(u=Mt())!==p?(125===f.charCodeAt(ct)?(c=_,ct++):(c=p,0===mt&&Ot(R)),c!==p?(st=e,t=X(n,a,i)):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p):(ct=e,p):(ct=e,p)):(ct=e,p);return e}())===p&&(e=function(){var e,t,r,n,o,a,i,u,c,s;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=p,0===mt&&Ot(D));e=t!==p?(r=Mt(),r!==p?(n=Vt())!==p?Mt()!==p?(44===f.charCodeAt(ct)?(o=W,ct++):(o=p,0===mt&&Ot(J)),o!==p?Mt()!==p?(f.substr(ct,4)===se?(a=se,ct+=4):(a=p,0===mt&&Ot(le)),a===p&&(f.substr(ct,4)===fe?(a=fe,ct+=4):(a=p,0===mt&&Ot(pe))),a!==p?Mt()!==p?(i=ct,44===f.charCodeAt(ct)?(u=W,ct++):(u=p,0===mt&&Ot(J)),(i=u!==p?(c=Mt())!==p?(s=function(){var e,t,r;e=ct,f.substr(ct,2)===Z?(t=Z,ct+=2):(t=p,0===mt&&Ot(z));e=t!==p?(r=function(){var e,t,r,n;t=e=ct,r=[],(n=Rt())===p&&(n=Pt());if(n!==p)for(;n!==p;)r.push(n),(n=Rt())===p&&(n=Pt());else r=p;t=r!==p?f.substring(t,ct):r;t!==p&&(st=e,t=ue(t));return e=t}(),r!==p?(st=e,t=B(r)):(ct=e,p)):(ct=e,p);e===p&&(st=e=ct,t=ce(),e=(t=t?void 0:p)!==p?(r=Et())!==p?(st=e,t=H(r)):(ct=e,p):(ct=e,p));return e}())!==p?u=[u,c,s]:(ct=i,p):(ct=i,p):(ct=i,p))===p&&(i=null),i!==p?(u=Mt())!==p?(125===f.charCodeAt(ct)?(c=_,ct++):(c=p,0===mt&&Ot(R)),c!==p?(st=e,t=X(n,a,i)):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p):(ct=e,p):(ct=e,p)):(ct=e,p);return e}());return e}())===p&&(e=function(){var e,t,r,n,o,a,i,u,c,s,l;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=p,0===mt&&Ot(D));if(t!==p)if(Mt()!==p)if((r=Vt())!==p)if(Mt()!==p)if(44===f.charCodeAt(ct)?(n=W,ct++):(n=p,0===mt&&Ot(J)),n!==p)if(Mt()!==p)if(f.substr(ct,6)===me?(o=me,ct+=6):(o=p,0===mt&&Ot(de)),o===p&&(f.substr(ct,13)===he?(o=he,ct+=13):(o=p,0===mt&&Ot(ye))),o!==p)if(Mt()!==p)if(44===f.charCodeAt(ct)?(a=W,ct++):(a=p,0===mt&&Ot(J)),a!==p)if(Mt()!==p)if(i=ct,f.substr(ct,7)===ge?(u=ge,ct+=7):(u=p,0===mt&&Ot(ve)),(i=u!==p?(c=Mt())!==p?(s=kt())!==p?u=[u,c,s]:(ct=i,p):(ct=i,p):(ct=i,p))===p&&(i=null),i!==p)if((u=Mt())!==p){if(c=[],(s=Ct())!==p)for(;s!==p;)c.push(s),s=Ct();else c=p;e=c!==p?(s=Mt())!==p?(125===f.charCodeAt(ct)?(l=_,ct++):(l=p,0===mt&&Ot(R)),l!==p?(st=e,t=be(r,o,i,c)):(ct=e,p)):(ct=e,p):(ct=e,p)}else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;return e}())===p&&(e=function(){var e,t,r,n,o,a,i,u,c;e=ct,123===f.charCodeAt(ct)?(t=S,ct++):(t=p,0===mt&&Ot(D));if(t!==p)if(Mt()!==p)if((r=Vt())!==p)if(Mt()!==p)if(44===f.charCodeAt(ct)?(n=W,ct++):(n=p,0===mt&&Ot(J)),n!==p)if(Mt()!==p)if(f.substr(ct,6)===Ae?(o=Ae,ct+=6):(o=p,0===mt&&Ot(we)),o!==p)if(Mt()!==p)if(44===f.charCodeAt(ct)?(a=W,ct++):(a=p,0===mt&&Ot(J)),a!==p)if(Mt()!==p){if(i=[],(u=Nt())!==p)for(;u!==p;)i.push(u),u=Nt();else i=p;e=i!==p?(u=Mt())!==p?(125===f.charCodeAt(ct)?(c=_,ct++):(c=p,0===mt&&Ot(R)),c!==p?(st=e,t=Oe(r,i)):(ct=e,p)):(ct=e,p):(ct=e,p)}else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;else ct=e,e=p;return e}())===p&&(e=function(){var e,t,r,n,o,a;mt++,t=e=ct,60===f.charCodeAt(ct)?(r=l,ct++):(r=p,0===mt&&Ot(m));t=r!==p?(n=Gt(),n!==p?(o=Mt())!==p?(f.substr(ct,2)===d?(a=d,ct+=2):(a=p,0===mt&&Ot(h)),a!==p?r=[r,n,o,a]:(ct=t,p)):(ct=t,p):(ct=t,p)):(ct=t,p);t!==p&&(st=e,t=y(t));(e=t)===p&&(e=ct,t=function(){var e,t,r,n,o;e=ct,60===f.charCodeAt(ct)?(t=l,ct++):(t=p,0===mt&&Ot(m));e=t!==p?(st=ct,r=v(),(r=r?void 0:p)!==p?(n=Gt())!==p?(62===f.charCodeAt(ct)?(o=b,ct++):(o=p,0===mt&&Ot(A)),o!==p?(st=ct,(w()?void 0:p)!==p?(st=e,t=O(n)):(ct=e,p)):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p);return e}(),e=t!==p?(r=It())!==p?(n=function(){var e,t,r,n,o;e=ct,f.substr(ct,2)===F?(t=F,ct+=2):(t=p,0===mt&&Ot(I));e=t!==p?(st=ct,r=T(),(r=r?void 0:p)!==p?(n=Gt())!==p?(62===f.charCodeAt(ct)?(o=b,ct++):(o=p,0===mt&&Ot(A)),o!==p?(st=ct,(w()?void 0:p)!==p?(st=e,t=O(n)):(ct=e,p)):(ct=e,p)):(ct=e,p):(ct=e,p)):(ct=e,p);return e}())!==p?(st=e,t=g(t,r,n)):(ct=e,p):(ct=e,p):(ct=e,p));mt--,e===p&&(t=p,0===mt&&Ot(s));return e}())===p&&(e=function(){var e,t;e=ct,35===f.charCodeAt(ct)?(t=i,ct++):(t=p,0===mt&&Ot(u));t!==p&&(st=e,t=c());return e=t}()),e}function Et(){var e=ct,t=[],r=Lt();if(r===p&&(r=$t())===p&&(r=Ut()),r!==p)for(;r!==p;)t.push(r),(r=Lt())===p&&(r=$t())===p&&(r=Ut());else t=p;return t!==p&&(st=e,t=o(t)),e=t}function St(){var e,t,r,n,o;if(mt++,t=[],n=r=e=ct,mt++,(o=xt())===p&&(C.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(x))),mt--,(r=(n=o===p?void 0:(ct=n,p))!==p?(f.length>ct?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(ct=r,p)):(ct=r,p))!==p)for(;r!==p;)t.push(r),n=r=ct,mt++,(o=xt())===p&&(C.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(x))),mt--,r=(n=o===p?void 0:(ct=n,p))!==p?(f.length>ct?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(ct=r,p)):(ct=r,p);else t=p;return e=t!==p?f.substring(e,ct):t,mt--,e===p&&(t=p,0===mt&&Ot(N)),e}function Dt(){var e,t,r;return mt++,e=ct,47===f.charCodeAt(ct)?(t=k,ct++):(t=p,0===mt&&Ot(L)),e=t!==p&&(r=St())!==p?(st=e,t=$(r)):(ct=e,p),mt--,e===p&&(t=p,0===mt&&Ot(M)),e}function _t(){var e,t,r,n;if(mt++,e=ct,Mt()!==p)if((t=St())!==p){for(r=[],n=Dt();n!==p;)r.push(n),n=Dt();e=r!==p?(st=e,V(t,r)):(ct=e,p)}else ct=e,e=p;else ct=e,e=p;return mt--,e===p&&(0===mt&&Ot(U)),e}function Rt(){var e,t,r,n=ct;if(39===f.charCodeAt(ct)?(e=Y,ct++):(e=p,0===mt&&Ot(ee)),e!==p){if(t=[],(r=Lt())===p&&(te.test(f.charAt(ct))?(r=f.charAt(ct),ct++):(r=p,0===mt&&Ot(re))),r!==p)for(;r!==p;)t.push(r),(r=Lt())===p&&(te.test(f.charAt(ct))?(r=f.charAt(ct),ct++):(r=p,0===mt&&Ot(re)));else t=p;n=t!==p?(39===f.charCodeAt(ct)?(r=Y,ct++):(r=p,0===mt&&Ot(ee)),r!==p?e=[e,t,r]:(ct=n,p)):(ct=n,p)}else ct=n,n=p;if(n===p)if(n=[],(e=Lt())===p&&(ne.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=p,0===mt&&Ot(oe))),e!==p)for(;e!==p;)n.push(e),(e=Lt())===p&&(ne.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=p,0===mt&&Ot(oe)));else n=p;return n}function Pt(){var e,t=[];if(ae.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=p,0===mt&&Ot(ie)),e!==p)for(;e!==p;)t.push(e),ae.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=p,0===mt&&Ot(ie));else t=p;return t}function Nt(){var e,t,r,n,o=ct,a=Mt();return o=a!==p&&(e=zt())!==p&&Mt()!==p?(123===f.charCodeAt(ct)?(t=S,ct++):(t=p,0===mt&&Ot(D)),t!==p?(st=ct,(Te()?void 0:p)!==p&&(r=It())!==p?(125===f.charCodeAt(ct)?(n=_,ct++):(n=p,0===mt&&Ot(R)),n!==p?(st=o,a=Ee(e,r)):(ct=o,p)):(ct=o,p)):(ct=o,p)):(ct=o,p)}function Ct(){var e,t,r,n,o,a,i,u,c=ct,s=Mt();return c=s!==p?(u=i=ct,61===f.charCodeAt(ct)?(o=Fe,ct++):(o=p,0===mt&&Ot(Ie)),(i=(u=o!==p&&(a=kt())!==p?o=[o,a]:(ct=u,p))!==p?f.substring(i,ct):u)===p&&(i=zt()),(e=i)!==p&&Mt()!==p?(123===f.charCodeAt(ct)?(t=S,ct++):(t=p,0===mt&&Ot(D)),t!==p?(st=ct,(Se()?void 0:p)!==p&&(r=It())!==p?(125===f.charCodeAt(ct)?(n=_,ct++):(n=p,0===mt&&Ot(R)),n!==p?(st=c,s=De(e,r)):(ct=c,p)):(ct=c,p)):(ct=c,p)):(ct=c,p)):(ct=c,p)}function xt(){var e;return mt++,Re.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=p,0===mt&&Ot(Pe)),mt--,e===p&&0===mt&&Ot(_e),e}function jt(){var e;return mt++,Ce.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=p,0===mt&&Ot(xe)),mt--,e===p&&0===mt&&Ot(Ne),e}function Mt(){var e,t,r;for(mt++,e=ct,t=[],r=xt();r!==p;)t.push(r),r=xt();return e=t!==p?f.substring(e,ct):t,mt--,e===p&&(t=p,0===mt&&Ot(je)),e}function kt(){var e,t,r;return mt++,e=ct,45===f.charCodeAt(ct)?(t=ke,ct++):(t=p,0===mt&&Ot(Le)),t===p&&(t=null),e=t!==p&&(r=Zt())!==p?(st=e,t=$e(t,r)):(ct=e,p),mt--,e===p&&(t=p,0===mt&&Ot(Me)),e}function Lt(){var e,t;return mt++,e=ct,f.substr(ct,2)===Ve?(t=Ve,ct+=2):(t=p,0===mt&&Ot(Ge)),t!==p&&(st=e,t=Ze()),mt--,(e=t)===p&&(t=p,0===mt&&Ot(Ue)),e}function $t(){var e,t,r,n,o,a=ct;if(39===f.charCodeAt(ct)?(e=Y,ct++):(e=p,0===mt&&Ot(ee)),e!==p)if((t=function(){var e,t,r,n;t=e=ct,f.length>ct?(r=f.charAt(ct),ct++):(r=p,0===mt&&Ot(j));t=r!==p?(st=ct,n=We(r),(n=n?void 0:p)!==p?r=[r,n]:(ct=t,p)):(ct=t,p);e=t!==p?f.substring(e,ct):t;return e}())!==p){for(r=ct,n=[],f.substr(ct,2)===Ve?(o=Ve,ct+=2):(o=p,0===mt&&Ot(Ge)),o===p&&(te.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(re)));o!==p;)n.push(o),f.substr(ct,2)===Ve?(o=Ve,ct+=2):(o=p,0===mt&&Ot(Ge)),o===p&&(te.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(re)));a=(r=n!==p?f.substring(r,ct):n)!==p?(39===f.charCodeAt(ct)?(n=Y,ct++):(n=p,0===mt&&Ot(ee)),n===p&&(n=null),n!==p?(st=a,e=ze(t,r)):(ct=a,p)):(ct=a,p)}else ct=a,a=p;else ct=a,a=p;return a}function Ut(){var e,t,r=ct,n=ct;return f.length>ct?(e=f.charAt(ct),ct++):(e=p,0===mt&&Ot(j)),(n=e!==p?(st=ct,(t=(t=Be(e))?void 0:p)!==p?e=[e,t]:(ct=n,p)):(ct=n,p))===p&&(10===f.charCodeAt(ct)?(n=qe,ct++):(n=p,0===mt&&Ot(He))),r=n!==p?f.substring(r,ct):n}function Vt(){var e,t;return mt++,e=ct,(t=Zt())===p&&(t=zt()),e=t!==p?f.substring(e,ct):t,mt--,e===p&&(t=p,0===mt&&Ot(Je)),e}function Gt(){var e,t;return mt++,e=ct,(t=Zt())===p&&(t=function(){var e,t,r,n,o;mt++,e=ct,t=[],45===f.charCodeAt(ct)?(r=ke,ct++):(r=p,0===mt&&Ot(Le));r===p&&(n=r=ct,mt++,(o=xt())===p&&(o=jt()),mt--,n=o===p?void 0:(ct=n,p),r=n!==p?(f.length>ct?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(ct=r,p)):(ct=r,p));if(r!==p)for(;r!==p;)t.push(r),45===f.charCodeAt(ct)?(r=ke,ct++):(r=p,0===mt&&Ot(Le)),r===p&&(n=r=ct,mt++,(o=xt())===p&&(o=jt()),mt--,n=o===p?void 0:(ct=n,p),r=n!==p?(f.length>ct?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(ct=r,p)):(ct=r,p));else t=p;e=t!==p?f.substring(e,ct):t;mt--,e===p&&(t=p,0===mt&&Ot(ut));return e}()),e=t!==p?f.substring(e,ct):t,mt--,e===p&&(t=p,0===mt&&Ot(Ke)),e}function Zt(){var e,t,r,n,o;if(mt++,e=ct,48===f.charCodeAt(ct)?(t=Xe,ct++):(t=p,0===mt&&Ot(Ye)),t!==p&&(st=e,t=et()),(e=t)===p){if(t=e=ct,tt.test(f.charAt(ct))?(r=f.charAt(ct),ct++):(r=p,0===mt&&Ot(rt)),r!==p){for(n=[],nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(ot));o!==p;)n.push(o),nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(ot));t=n!==p?r=[r,n]:(ct=t,p)}else ct=t,t=p;t!==p&&(st=e,t=at(t)),e=t}return mt--,e===p&&(t=p,0===mt&&Ot(Qe)),e}function zt(){var e,t,r,n,o;if(mt++,t=[],n=r=e=ct,mt++,(o=xt())===p&&(o=jt()),mt--,(r=(n=o===p?void 0:(ct=n,p))!==p?(f.length>ct?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(ct=r,p)):(ct=r,p))!==p)for(;r!==p;)t.push(r),n=r=ct,mt++,(o=xt())===p&&(o=jt()),mt--,r=(n=o===p?void 0:(ct=n,p))!==p?(f.length>ct?(o=f.charAt(ct),ct++):(o=p,0===mt&&Ot(j)),o!==p?n=[n,o]:(ct=r,p)):(ct=r,p);else t=p;return e=t!==p?f.substring(e,ct):t,mt--,e===p&&(t=p,0===mt&&Ot(it)),e}var Bt,qt,Ht,Wt=["root"];function Jt(){return 1<Wt.length}function Kt(){return"plural"===Wt[Wt.length-1]}function Qt(){return e&&e.captureLocation?{location:ht()}:{}}function Xt(){return e&&e.ignoreTag}if((t=n())!==p&&ct===f.length)return t;throw t!==p&&ct<f.length&&Ot({type:"end"}),Bt=pt,qt=ft<f.length?f.charAt(ft):null,Ht=ft<f.length?wt(ft,ft+1):wt(ft,ft),new tr(tr.buildMessage(Bt,qt),Bt,qt,Ht)},p=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},m=/(^|[^\\])#/g;var c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function E(e){var r={};return e.replace(s,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][t-1];break;case"s":r.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":r.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),r}var l=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,h=/^(@+)?(\+|#+)?$/g;function y(e){var n={};return e.replace(h,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function g(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function v(e){var t=g(e);return t||{}}function S(e){for(var i={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":i.style="percent";continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=c(c(c({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return c(c({},e),v(t))},{}));continue;case"engineering":i=c(c(c({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return c(c({},e),v(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue}if(l.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(l,function(e,t,r,n,o,a){return"*"===r?i.minimumFractionDigits=t.length:n&&"#"===n[0]?i.maximumFractionDigits=n.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""}),o.options.length&&(i=c(c({},i),y(o.options[0])))}else{h.test(o.stem)?i=c(c({},i),y(o.stem)):(n=g(o.stem))&&(i=c(c({},i),n))}}return i}function b(e,t){var r=f(e,t);return t&&!1===t.normalizeHashtagInPlural||function l(e){e.forEach(function(s){(I(s)||F(s))&&Object.keys(s.options).forEach(function(e){for(var t,r,n,o=s.options[e],a=-1,i=void 0,u=0;u<o.value.length;u++){var c=o.value[u];if(O(c)&&m.test(c.value)){a=u,i=c;break}}i&&(r=i.value.replace(m,"$1{"+s.value+", number}"),n=f(r),(t=o.value).splice.apply(t,p([a,1],n))),l(o.value)})})}(r),r}var A=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function w(e){return JSON.stringify(e.map(function(e){return e&&"object"==typeof e?(r=e,Object.keys(r).sort().map(function(e){var t={};return t[e]=r[e],t})):e;var r}))}var D,_,R,P=function(o,a){return void 0===a&&(a={}),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=w(e),n=r&&a[r];return n||(n=new(o.bind.apply(o,A([void 0],e))),r&&(a[r]=n)),n}},N=(D=function(e,t){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(R=_=_||{}).MISSING_VALUE="MISSING_VALUE",R.INVALID_VALUE="INVALID_VALUE",R.MISSING_INTL_API="MISSING_INTL_API";var C,x=(C=Error,N(j,C),j.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},j);function j(e,t,r){var n=C.call(this,e)||this;return n.code=t,n.originalMessage=r,n}var M,k=(N(L,M=x),L);function L(e,t,r,n){return M.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE",n)||this}var $,U=(N(V,$=x),V);function V(e,t,r){return $.call(this,'Value for "'+e+'" must be of type '+t,"INVALID_VALUE",r)||this}var G,Z,z,B=(N(q,G=x),q);function q(e,t){return G.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',"MISSING_VALUE",t)||this}function H(e){return"function"==typeof e}function W(e,t,r,n,o,a,i){if(1===e.length&&O(e[0]))return[{type:0,value:e[0].value}];for(var u,c,s=[],l=0,f=e;l<f.length;l++){var p=f[l];if(O(p))s.push({type:0,value:p.value});else if(p.type!==Yt.pound){var m=p.value;if(!(o&&m in o))throw new B(m,i);var d,h=o[m];if(p.type!==Yt.argument)if(p.type!==Yt.date)if(p.type!==Yt.time)if(p.type!==Yt.number){if(p.type===Yt.tag){var y=p.children,g=p.value,v=o[g];if(!H(v))throw new U(g,"function",i);var b=v(W(y,t,r,n,o,a).map(function(e){return e.value}));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map(function(e){return{type:"string"==typeof e?0:1,value:e}}))}if(F(p)){if(!(d=p.options[h]||p.options.other))throw new k(p.value,h,Object.keys(p.options),i);s.push.apply(s,W(d.value,t,r,n,o))}else if(I(p)){if(!(d=p.options["="+h])){if(!Intl.PluralRules)throw new x('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",i);var A=r.getPluralRules(t,{type:p.pluralType}).select(h-(p.offset||0));d=p.options[A]||p.options.other}if(!d)throw new k(p.value,h,Object.keys(p.options),i);s.push.apply(s,W(d.value,t,r,n,o,h-(p.offset||0)))}else;}else{w="string"==typeof p.style?n.number[p.style]:(u=p.style)&&"object"==typeof u&&0===u.type?S(p.style.tokens):void 0;s.push({type:0,value:r.getNumberFormat(t,w).format(h)})}else{var w="string"==typeof p.style?n.time[p.style]:T(p.style)?E(p.style.pattern):void 0;s.push({type:0,value:r.getDateTimeFormat(t,w).format(h)})}else{var w="string"==typeof p.style?n.date[p.style]:T(p.style)?E(p.style.pattern):void 0;s.push({type:0,value:r.getDateTimeFormat(t,w).format(h)})}else h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?0:1,value:h})}else"number"==typeof a&&s.push({type:0,value:r.getNumberFormat(t).format(a)})}return(c=s).length<2?c:c.reduce(function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])}(z=Z=Z||{})[z.literal=0]="literal",z[z.object=1]="object";var J=function(){return(J=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function K(o,a){return a?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=a[t])?J(J(J({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=J(J({},r[t]),n[t]||{}),e},{})):r),e},J({},o)):o}var Q=(Object.defineProperty(X,"defaultLocale",{get:function(){return X.memoizedDefaultLocale||(X.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),X.memoizedDefaultLocale},enumerable:!0,configurable:!0}),X.memoizedDefaultLocale=null,X.__parse=b,X.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},X);function X(e,t,r,n){var o,a=this;if(void 0===t&&(t=X.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return W(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!X.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=X.__parse(e,{normalizeHashtagInPlural:!1,ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=K(X.formats,r),this.locales=t,this.formatters=n&&n.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:P(Intl.NumberFormat,o.number),getDateTimeFormat:P(Intl.DateTimeFormat,o.dateTime),getPluralRules:P(Intl.PluralRules,o.pluralRules)})}function Y(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var ee,te,re=(ee=function(e,t){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}ee(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(te=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",te.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",te.INVALID_CONFIG="INVALID_CONFIG",te.MISSING_DATA="MISSING_DATA",te.MISSING_TRANSLATION="MISSING_TRANSLATION";var ne,oe=(ne=Error,re(ae,ne),ae);function ae(e,t,r){var n=ne.call(this,"[React Intl Error "+e+"] "+t+" \n"+(r?"\n"+r.stack:""))||this;return n.code=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(n,ae),n}var ie,ue=(re(ce,ie=oe),ce);function ce(e,t){return ie.call(this,"UNSUPPORTED_FORMATTER",e,t)||this}var se,le=(re(fe,se=oe),fe);function fe(e,t){return se.call(this,"INVALID_CONFIG",e,t)||this}var pe,me=(re(de,pe=oe),de);function de(e,t){return pe.call(this,"MISSING_DATA",e,t)||this}var he,ye=(re(ge,he=oe),ge);function ge(e,t,r,n){var o=he.call(this,"FORMAT_ERROR",e+" \nLocale: "+t+"\nMessageID: "+(null==r?void 0:r.id)+"\nDefault Message: "+(null==r?void 0:r.defaultMessage)+"\nDescription: "+(null==r?void 0:r.description)+" \n",n)||this;return o.descriptor=r,o}var ve,be=(re(Ae,ve=oe),Ae);function Ae(e,t){var r=ve.call(this,"MISSING_TRANSLATION",'Missing message: "'+e.id+'" for locale "'+t+'", using '+(e.defaultMessage?"default message":"id")+" as fallback.")||this;return r.descriptor=e,r}function we(r,e,n){return void 0===n&&(n={}),e.reduce(function(e,t){return t in r?e[t]=r[t]:t in n&&(e[t]=n[t]),e},{})}function Oe(e){Y(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Fe={formats:{},messages:{},timeZone:void 0,textComponent:d.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function Ie(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Te(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new ue("No "+t+" format named: "+r))}var Ee="function"==typeof Symbol&&Symbol.for,Se=Ee?Symbol.for("react.element"):60103,De=Ee?Symbol.for("react.portal"):60106,_e=Ee?Symbol.for("react.fragment"):60107,Re=Ee?Symbol.for("react.strict_mode"):60108,Pe=Ee?Symbol.for("react.profiler"):60114,Ne=Ee?Symbol.for("react.provider"):60109,Ce=Ee?Symbol.for("react.context"):60110,xe=Ee?Symbol.for("react.async_mode"):60111,je=Ee?Symbol.for("react.concurrent_mode"):60111,Me=Ee?Symbol.for("react.forward_ref"):60112,ke=Ee?Symbol.for("react.suspense"):60113,Le=Ee?Symbol.for("react.suspense_list"):60120,$e=Ee?Symbol.for("react.memo"):60115,Ue=Ee?Symbol.for("react.lazy"):60116,Ve=Ee?Symbol.for("react.block"):60121,Ge=Ee?Symbol.for("react.fundamental"):60117,Ze=Ee?Symbol.for("react.responder"):60118,ze=Ee?Symbol.for("react.scope"):60119;function Be(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Se:switch(e=e.type){case xe:case je:case _e:case Pe:case Re:case ke:return e;default:switch(e=e&&e.$$typeof){case Ce:case Me:case Ue:case $e:case Ne:return e;default:return t}}case De:return t}}}function qe(e){return Be(e)===je}var He,We={AsyncMode:xe,ConcurrentMode:je,ContextConsumer:Ce,ContextProvider:Ne,Element:Se,ForwardRef:Me,Fragment:_e,Lazy:Ue,Memo:$e,Portal:De,Profiler:Pe,StrictMode:Re,Suspense:ke,isAsyncMode:function(e){return qe(e)||Be(e)===xe},isConcurrentMode:qe,isContextConsumer:function(e){return Be(e)===Ce},isContextProvider:function(e){return Be(e)===Ne},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Se},isForwardRef:function(e){return Be(e)===Me},isFragment:function(e){return Be(e)===_e},isLazy:function(e){return Be(e)===Ue},isMemo:function(e){return Be(e)===$e},isPortal:function(e){return Be(e)===De},isProfiler:function(e){return Be(e)===Pe},isStrictMode:function(e){return Be(e)===Re},isSuspense:function(e){return Be(e)===ke},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===_e||e===je||e===Pe||e===Re||e===ke||e===Le||"object"==typeof e&&null!==e&&(e.$$typeof===Ue||e.$$typeof===$e||e.$$typeof===Ne||e.$$typeof===Ce||e.$$typeof===Me||e.$$typeof===Ge||e.$$typeof===Ze||e.$$typeof===ze||e.$$typeof===Ve)},typeOf:Be},Je=(function(e){e.exports=We}(He={exports:{}}),He.exports),Ke={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ye={};function et(e){return Je.isMemo(e)?Xe:Ye[e.$$typeof]||Ke}Ye[Je.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ye[Je.Memo]=Xe;var tt=Object.defineProperty,rt=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,ot=Object.getOwnPropertyDescriptor,at=Object.getPrototypeOf,it=Object.prototype;function ut(e,t,r){if("string"!=typeof t){var n;!it||(n=at(t))&&n!==it&&ut(e,n,r);var o=rt(t);nt&&(o=o.concat(nt(t)));for(var a=et(e),i=et(t),u=0;u<o.length;++u){var c=o[u];if(!(Qe[c]||r&&r[c]||i&&i[c]||a&&a[c])){var s=ot(t,c);try{tt(e,c,s)}catch(e){}}}}return e}var ct=function(){return(ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},st=ut;var lt=d.createContext(null),ft=lt.Consumer,pt=lt.Provider,mt=lt;function dt(o,e){function r(n){return d.createElement(ft,null,function(e){var t;l&&Oe(e);var r=((t={})[i]=e,t);return d.createElement(o,ct({},n,r,{ref:c?n.forwardedRef:null}))})}var t,n=e||{},a=n.intlPropName,i=void 0===a?"intl":a,u=n.forwardRef,c=void 0!==u&&u,s=n.enforceContext,l=void 0===s||s;return r.displayName="injectIntl("+((t=o).displayName||t.name||"Component")+")",r.WrappedComponent=o,st(c?d.forwardRef(function(e,t){return d.createElement(r,ct({},e,{forwardedRef:t}))}):r,o)}var ht,yt,gt,vt,bt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(yt=ht=ht||{}).formatDate="FormattedDate",yt.formatTime="FormattedTime",yt.formatNumber="FormattedNumber",yt.formatList="FormattedList",yt.formatDisplayName="FormattedDisplayName",(vt=gt=gt||{}).formatDate="FormattedDateParts",vt.formatTime="FormattedTimeParts",vt.formatNumber="FormattedNumberParts",vt.formatList="FormattedListParts";function At(o){return d.createElement(mt.Consumer,null,function(e){Oe(e);var t=o.value,r=o.children,n=bt(o,["value","children"]);return r(e.formatNumberToParts(t,n))})}function wt(i){function e(a){return d.createElement(mt.Consumer,null,function(e){Oe(e);var t=a.value,r=a.children,n=bt(a,["value","children"]),o="string"==typeof t?new Date(t||0):t;return r("formatDate"===i?e.formatDateToParts(o,n):e.formatTimeToParts(o,n))})}return e.displayName=gt[i],e}function Ot(u){function e(i){return d.createElement(mt.Consumer,null,function(e){Oe(e);var t=i.value,r=i.children,n=bt(i,["value","children"]),o=e[u](t,n);if("function"==typeof r)return r(o);var a=e.textComponent||d.Fragment;return d.createElement(a,null,o)})}return e.displayName=ht[u],e}At.displayName="FormattedNumberParts";var Ft=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function It(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,u=i&&Te(o,"number",i,a)||{};return t(n,we(r,Ft,u))}var Tt=["numeric","style"];function Et(t,e,r,n,o){void 0===o&&(o={}),n=n||"second",Intl.RelativeTimeFormat||t.onError(new x('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,u=!!i&&Te(o,"relative",i,a)||{};return t(n,we(r,Tt,u))}(t,e,o).format(r,n)}catch(e){t.onError(new ye("Error formatting relative time.",e))}return String(r)}var St=function(){return(St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Dt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","fractionalSecondDigits","calendar","numberingSystem"];function _t(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone;void 0===n&&(n={});var c=n.format,s=St(St({},u&&{timeZone:u}),c&&Te(a,t,c,i)),l=we(n,Dt,s);return"time"!==t||l.hour||l.minute||l.second||(l=St(St({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}var Rt=["localeMatcher","type"];var Pt=function(){return(Pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Nt=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function Ct(r,n){return Object.keys(r).reduce(function(e,t){return e[t]=Pt({timeZone:n},r[t]),e},{})}function xt(r,n){return Object.keys(Pt(Pt({},r),n)).reduce(function(e,t){return e[t]=Pt(Pt({},r[t]||{}),n[t]||{}),e},{})}function jt(e,t){if(!t)return e;var r=Q.formats;return Pt(Pt(Pt({},r),e),{date:xt(Ct(r.date,t),Ct(e.date||{},t)),time:xt(Ct(r.time,t),Ct(e.time||{},t))})}function Mt(o){return Object.keys(o).reduce(function(e,t){var r,n=o[t];return e[t]=H(n)?(r=n,function(e){return r(d.Children.toArray(e))}):n,e},{})}function kt(e,t){return Array.isArray(e)&&t?d.createElement.apply(d,Nt([d.Fragment,null],e)):e}function Lt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var $t=["localeMatcher","type","style"],Ut=Date.now();function Vt(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new x('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=we(n,$t);try{var u={},c=r.map(function(e,t){if("object"!=typeof e)return String(e);var r=Ut+"_"+t+"_"+Ut;return u[r]=e,r});return Object.keys(u).length?t(o,i).formatToParts(c).reduce(function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]):t(o,i).format(c)}catch(e){a(new oe("FORMAT_ERROR","Error formatting list.",e))}return r}var Gt=["localeMatcher","style","type","fallback"];var Zt,zt=(Zt=function(e,t){return(Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}Zt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Bt=function(){return(Bt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qt=Lt;function Ht(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment}}function Wt(e,t){var r=function(e){void 0===e&&(e=Ie());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames;return{getDateTimeFormat:P(Intl.DateTimeFormat,e.dateTime),getNumberFormat:P(Intl.NumberFormat,e.number),getMessageFormat:P(Q,e.message),getRelativeTimeFormat:P(t,e.relativeTime),getPluralRules:P(Intl.PluralRules,e.pluralRules),getListFormat:P(r,e.list),getDisplayNames:P(n,e.displayNames)}}(t),n=Bt(Bt({},Fe),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new me('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new me('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(i&&i(new le('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),Bt(Bt({},n),{formatters:r,formatNumber:function(t,e,r,n){void 0===n&&(n={});try{return It(t,e,n).format(r)}catch(e){t.onError(new oe("FORMAT_ERROR","Error formatting number.",e))}return String(r)}.bind(null,n,r.getNumberFormat),formatNumberToParts:function(t,e,r,n){void 0===n&&(n={});try{return It(t,e,n).formatToParts(r)}catch(e){t.onError(new oe("FORMAT_ERROR","Error formatting number.",e))}return[]}.bind(null,n,r.getNumberFormat),formatRelativeTime:Et.bind(null,n,r.getRelativeTimeFormat),formatDate:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"date",e,n).format(o)}catch(e){t.onError(new oe("FORMAT_ERROR","Error formatting date.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatDateToParts:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"date",e,n).formatToParts(o)}catch(e){t.onError(new oe("FORMAT_ERROR","Error formatting date.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatTime:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"time",e,n).format(o)}catch(e){t.onError(new oe("FORMAT_ERROR","Error formatting time.",e))}return String(o)}.bind(null,n,r.getDateTimeFormat),formatTimeToParts:function(t,e,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return _t(t,"time",e,n).formatToParts(o)}catch(e){t.onError(new oe("FORMAT_ERROR","Error formatting time.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatPlural:function(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new x('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=we(n,Rt);try{return t(o,i).select(r)}catch(e){a(new ye("Error formatting plural.",e))}return"other"}.bind(null,n,r.getPluralRules),formatMessage:function(e,t,r,n){var o=e.locale,a=e.formats,i=e.messages,u=e.defaultLocale,c=e.defaultFormats,s=e.onError,l=e.timeZone,f=e.wrapRichTextChunksInFragment;void 0===r&&(r={id:""});var p=r.id,m=r.defaultMessage;Y(!!p,"[React Intl] An `id` must be provided to format a message.");var d=i&&i[String(p)];if(!n&&d&&"string"==typeof d)return d.replace(/'\{(.*?)\}'/gi,"{$1}");var h=n&&Mt(n),a=jt(a,l),c=jt(c,l);if(!d){if((!m||o&&o.toLowerCase()!==u.toLowerCase())&&s(new be(r,o)),m)try{return kt(t.getMessageFormat(m,u,c).format(h),f)}catch(e){return s(new ye('Error formatting default message for: "'+p+'", rendering default message verbatim',o,r,e)),m}return p}try{return kt(t.getMessageFormat(d,o,a,{formatters:t}).format(h),f)}catch(e){s(new ye('Error formatting message: "'+p+'", using '+(m?"default message":"id")+" as fallback.",o,r,e))}if(m)try{return kt(t.getMessageFormat(m,u,c).format(h),f)}catch(e){s(new ye('Error formatting the default message for: "'+p+'", rendering message verbatim',o,r,e))}return d||m||p}.bind(null,n,r),formatList:Vt.bind(null,n,r.getListFormat),formatDisplayName:function(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.DisplayNames||a(new x('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=we(n,Gt);try{return t(o,i).of(r)}catch(e){a(new oe("FORMAT_ERROR","Error formatting display name.",e))}}.bind(null,n,r.getDisplayNames)})}var Jt,Kt=(Jt=d.PureComponent,zt(Qt,Jt),Qt.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Ht(e);return qt(r,o)?null:{intl:Wt(o,n),prevConfig:o}},Qt.prototype.render=function(){return Oe(this.state.intl),d.createElement(pt,{value:this.state.intl},this.props.children)},Qt.displayName="IntlProvider",Qt.defaultProps=Fe,Qt);function Qt(){var e=null!==Jt&&Jt.apply(this,arguments)||this;return e.cache=Ie(),e.state={cache:e.cache,intl:Wt(Ht(e.props),e.cache),prevConfig:Ht(e.props)},e}var Xt,rr=(Xt=function(e,t){return(Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}Xt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nr=function(){return(nr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},or=60,ar=3600;function ir(e){var t=Math.abs(e);return t<or?"second":t<ar?"minute":t<86400?"hour":"day"}function ur(e){switch(e){case"second":return 1;case"minute":return or;case"hour":return ar;default:return 86400}}function cr(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return e*or;default:return e*ar}}var sr=["second","minute","hour"];function lr(e){return void 0===e&&(e="second"),sr.includes(e)}var fr,pr=(fr=d.PureComponent,rr(mr,fr),mr.prototype.scheduleNextUpdate=function(e,t){var r,n,o,a,i,u,c=this,s=e.updateIntervalInSeconds,l=e.unit,f=t.currentValueInSeconds;clearTimeout(this._updateTimer),this._updateTimer=null,s&&lr(l)&&"day"!==(n=ir(r=f-s))&&(o=ur(n),i=f<=(a=r-r%o)?a-o:a,u=Math.abs(i-f),this._updateTimer=setTimeout(function(){return c.setState({currentValueInSeconds:i})},1e3*u))},mr.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},mr.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},mr.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},mr.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:lr(e.unit)?cr(e.value,e.unit):0}:null},mr.prototype.render=function(){var m=this;return d.createElement(mt.Consumer,null,function(e){Oe(e);var t,r=e.formatRelativeTime,n=e.textComponent,o=m.props,a=o.children,i=o.value,u=o.unit,c=o.updateIntervalInSeconds,s=m.state.currentValueInSeconds,l=i||0,f=u;lr(u)&&"number"==typeof s&&c&&(t=ur(f=ir(s)),l=Math.round(s/t));var p=r(l,f,nr({},m.props));return"function"==typeof a?a(p):n?d.createElement(n,null,p):p})},mr.displayName="FormattedRelativeTime",mr.defaultProps={value:0,unit:"second"},mr);function mr(e){var t=fr.call(this,e)||this;return t._updateTimer=null,t.state={prevUnit:t.props.unit,prevValue:t.props.value,currentValueInSeconds:lr(t.props.unit)?cr(t.props.value,t.props.unit):0},Y(!e.updateIntervalInSeconds||!(!e.updateIntervalInSeconds||!lr(e.unit)),"Cannot schedule update with unit longer than hour"),t}function dr(e){var t=e.value,r=e.other,n=e.children,o=e.intl,a=o.formatPlural,i=o.textComponent,u=e[a(t,e)]||r;return"function"==typeof n?n(u):i?d.createElement(i,null,u):u}dr.defaultProps={type:"cardinal"},dr.displayName="FormattedPlural";var hr,yr,gr=dt(dr),vr=(hr=function(e,t){return(hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}hr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),br=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},Ar=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},wr=Lt,Or=(yr=d.Component,vr(Fr,yr),Fr.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=br(t,["values"]),o=e.values,a=br(e,["values"]);return!wr(o,r)||!wr(n,a)},Fr.prototype.render=function(){var m=this;return d.createElement(mt.Consumer,null,function(e){Oe(e);var t=e.formatMessage,r=e.textComponent,n=void 0===r?d.Fragment:r,o=m.props,a=o.id,i=o.description,u=o.defaultMessage,c=o.values,s=o.children,l=o.tagName,f=void 0===l?n:l,p=t({id:a,description:i,defaultMessage:u},c);return Array.isArray(p)||(p=[p]),"function"==typeof s?s(p):f?d.createElement.apply(d,Ar([f,null],p)):p})},Fr.displayName="FormattedMessage",Fr);function Fr(){return null!==yr&&yr.apply(this,arguments)||this}var Ir=Ot("formatDate"),Tr=Ot("formatTime"),Er=Ot("formatNumber"),Sr=Ot("formatList"),Dr=Ot("formatDisplayName"),_r=wt("formatDate"),Rr=wt("formatTime");e.FormattedDate=Ir,e.FormattedDateParts=_r,e.FormattedDisplayName=Dr,e.FormattedList=Sr,e.FormattedMessage=Or,e.FormattedNumber=Er,e.FormattedNumberParts=At,e.FormattedPlural=gr,e.FormattedRelativeTime=pr,e.FormattedTime=Tr,e.FormattedTimeParts=Rr,e.IntlContext=mt,e.IntlProvider=Kt,e.InvalidConfigError=le,e.MessageFormatError=ye,e.MissingDataError=me,e.MissingTranslationError=be,e.RawIntlProvider=pt,e.ReactIntlError=oe,e.UnsupportedFormatterError=ue,e.createIntl=Wt,e.createIntlCache=Ie,e.defineMessage=function(e){return e},e.defineMessages=function(e){return e},e.injectIntl=dt,e.useIntl=function(){var e=d.useContext(mt);return Oe(e),e},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=react-intl.min.js.map
|