|
|
!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,h){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}});t(n);n._;var Nt,a,o=n.defineMessages;function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(e){return e.type===Nt.literal}function w(e){return e.type===Nt.select}function O(e){return e.type===Nt.plural}(a=Nt=Nt||{})[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound";var p,d,g=(p=function(e,t){return(p=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}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),kt=function(){return(kt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},It=(d=Error,g(A,d),A.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 a(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 o(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(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(o);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},A);function A(e,t,r,n){var a=d.call(this)||this;return a.message=e,a.expected=t,a.found=r,a.location=n,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,A),a}var F=function(f,e){e=void 0!==e?e:{};var t,m={},r={start:it},n=it,a=function(e){return e.join("")},o=function(e){return kt({type:Nt.literal,value:e},Mt())},i="#",u=et("#",!1),s=function(){return kt({type:Nt.pound},Mt())},c=rt("argumentElement"),p="{",d=et("{",!1),g="}",h=et("}",!1),l=function(e){return kt({type:Nt.argument,value:e},Mt())},y=rt("numberSkeletonId"),v=/^['\/{}]/,b=tt(["'","/","{","}"],!1,!1),w={type:"any"},O=rt("numberSkeletonTokenOption"),A="/",F=et("/",!1),C=function(e){return e},P=rt("numberSkeletonToken"),T=function(e,t){return{stem:e,options:t}},j=function(e){return kt({type:0,tokens:e},Mt())},E="::",x=et("::",!1),D=function(e){return e},S=function(){return Dt.push("numberArgStyle"),!0},M=function(e){return Dt.pop(),e.replace(/\s*$/,"")},N=",",k=et(",",!1),I="number",_=et("number",!1),R=function(e,t,r){return kt({type:"number"===t?Nt.number:"date"===t?Nt.date:Nt.time,style:r&&r[2],value:e},Mt())},L="'",$=et("'",!1),Z=/^[^']/,z=tt(["'"],!0,!1),H=/^[^a-zA-Z'{}]/,B=tt([["a","z"],["A","Z"],"'","{","}"],!0,!1),U=/^[a-zA-Z]/,V=tt([["a","z"],["A","Z"]],!1,!1),q=function(e){return kt({type:1,pattern:e},Mt())},W=function(){return Dt.push("dateOrTimeArgStyle"),!0},G="date",X=et("date",!1),J="time",K=et("time",!1),Q="plural",Y=et("plural",!1),ee="selectordinal",te=et("selectordinal",!1),re="offset:",ne=et("offset:",!1),ae=function(e,t,r,n){return kt({type:Nt.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,a=t.location;return r in e&&Ye('Duplicate option "'+r+'" in plural element: "'+Ke()+'"',Qe()),e[r]={value:n,location:a},e},{})},Mt())},oe="select",ie=et("select",!1),ue=function(e,t){return kt({type:Nt.select,value:e,options:t.reduce(function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&Ye('Duplicate option "'+r+'" in select element: "'+Ke()+'"',Qe()),e[r]={value:n,location:a},e},{})},Mt())},se="=",ce=et("=",!1),le=function(e){return Dt.push("select"),!0},fe=function(e,t){return Dt.pop(),kt({id:e,value:t},Mt())},me=function(e){return Dt.push("plural"),!0},pe=function(e,t){return Dt.pop(),kt({id:e,value:t},Mt())},de=rt("whitespace pattern"),ge=/^[\t-\r \x85\u200E\u200F\u2028\u2029]/,he=tt([["\t","\r"]," ","
","","","\u2028","\u2029"],!1,!1),ye=rt("syntax pattern"),ve=/^[!-\/:-@[-\^`{-~\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]/,be=tt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),we=rt("optional whitespace"),Oe=rt("number"),Ae="-",Fe=et("-",!1),Ce=function(e,t){return t?e?-t:t:0},Pe=rt("double apostrophes"),Te="''",je=et("''",!1),Ee=function(){return"'"},xe=function(e,t){return e+t.replace("''","'")},De=function(e){return!("{"===e||St()&&"#"===e||1<Dt.length&&"}"===e)},Se="\n",Me=et("\n",!1),Ne=function(e){return"{"===e||"}"===e||St()&&"#"===e},ke=rt("argNameOrNumber"),Ie=rt("argNumber"),_e="0",Re=et("0",!1),Le=function(){return 0},$e=/^[1-9]/,Ze=tt([["1","9"]],!1,!1),ze=/^[0-9]/,He=tt([["0","9"]],!1,!1),Be=function(e){return parseInt(e.join(""),10)},Ue=rt("argName"),Ve=0,qe=0,We=[{line:1,column:1}],Ge=0,Xe=[],Je=0;if(void 0!==e.startRule){if(!(e.startRule in r))throw new Error("Can't start parsing from rule \""+e.startRule+'".');n=r[e.startRule]}function Ke(){return f.substring(qe,Ve)}function Qe(){return at(qe,Ve)}function Ye(e,t){throw function(e,t){return new It(e,[],"",t)}(e,t=void 0!==t?t:at(qe,Ve))}function et(e,t){return{type:"literal",text:e,ignoreCase:t}}function tt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function rt(e){return{type:"other",description:e}}function nt(e){var t,r=We[e];if(r)return r;for(t=e-1;!We[t];)t--;for(r={line:(r=We[t]).line,column:r.column};t<e;)10===f.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return We[e]=r}function at(e,t){var r=nt(e),n=nt(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function ot(e){Ve<Ge||(Ge<Ve&&(Ge=Ve,Xe=[]),Xe.push(e))}function it(){return ut()}function ut(){var e,t;for(e=[],t=st();t!==m;)e.push(t),t=st();return e}function st(){var e;return(e=function(){var e,t;e=Ve,(t=ct())!==m&&(qe=e,t=o(t));return e=t}())===m&&(e=function(){var e,t,r,n,a;Je++,e=Ve,123===f.charCodeAt(Ve)?(t=p,Ve++):(t=m,0===Je&&ot(d));e=t!==m?(r=bt(),r!==m?(n=Ct())!==m?bt()!==m?(125===f.charCodeAt(Ve)?(a=g,Ve++):(a=m,0===Je&&ot(h)),a!==m?(qe=e,t=l(n)):(Ve=e,m)):(Ve=e,m):(Ve=e,m):(Ve=e,m)):(Ve=e,m);Je--,e===m&&(t=m,0===Je&&ot(c));return e}())===m&&(e=function(){var e;(e=function(){var e,t,r,n,a,o,i,u,s,c;e=Ve,123===f.charCodeAt(Ve)?(t=p,Ve++):(t=m,0===Je&&ot(d));e=t!==m?(r=bt(),r!==m?(n=Ct())!==m?bt()!==m?(44===f.charCodeAt(Ve)?(a=N,Ve++):(a=m,0===Je&&ot(k)),a!==m?bt()!==m?(f.substr(Ve,6)===I?(o=I,Ve+=6):(o=m,0===Je&&ot(_)),o!==m?bt()!==m?(i=Ve,44===f.charCodeAt(Ve)?(u=N,Ve++):(u=m,0===Je&&ot(k)),(i=u!==m?(s=bt())!==m?(c=function(){var e,t,r;e=Ve,f.substr(Ve,2)===E?(t=E,Ve+=2):(t=m,0===Je&&ot(x));e=t!==m?(r=function(){var e,t,r;if(e=Ve,t=[],(r=mt())!==m)for(;r!==m;)t.push(r),r=mt();else t=m;t!==m&&(qe=e,t=j(t));return e=t}(),r!==m?(qe=e,t=D(r)):(Ve=e,m)):(Ve=e,m);e===m&&(qe=e=Ve,t=S(),e=(t=t?void 0:m)!==m?(r=ct())!==m?(qe=e,t=M(r)):(Ve=e,m):(Ve=e,m));return e}())!==m?u=[u,s,c]:(Ve=i,m):(Ve=i,m):(Ve=i,m))===m&&(i=null),i!==m?(u=bt())!==m?(125===f.charCodeAt(Ve)?(s=g,Ve++):(s=m,0===Je&&ot(h)),s!==m?(qe=e,t=R(n,o,i)):(Ve=e,m)):(Ve=e,m):(Ve=e,m)):(Ve=e,m):(Ve=e,m)):(Ve=e,m):(Ve=e,m)):(Ve=e,m):(Ve=e,m):(Ve=e,m)):(Ve=e,m);return e}())===m&&(e=function(){var e,t,r,n,a,o,i,u,s,c;e=Ve,123===f.charCodeAt(Ve)?(t=p,Ve++):(t=m,0===Je&&ot(d));e=t!==m?(r=bt(),r!==m?(n=Ct())!==m?bt()!==m?(44===f.charCodeAt(Ve)?(a=N,Ve++):(a=m,0===Je&&ot(k)),a!==m?bt()!==m?(f.substr(Ve,4)===G?(o=G,Ve+=4):(o=m,0===Je&&ot(X)),o===m&&(f.substr(Ve,4)===J?(o=J,Ve+=4):(o=m,0===Je&&ot(K))),o!==m?bt()!==m?(i=Ve,44===f.charCodeAt(Ve)?(u=N,Ve++):(u=m,0===Je&&ot(k)),(i=u!==m?(s=bt())!==m?(c=function(){var e,t,r;e=Ve,f.substr(Ve,2)===E?(t=E,Ve+=2):(t=m,0===Je&&ot(x));e=t!==m?(r=function(){var e,t,r,n;t=e=Ve,r=[],(n=pt())===m&&(n=dt());if(n!==m)for(;n!==m;)r.push(n),(n=pt())===m&&(n=dt());else r=m;t=r!==m?f.substring(t,Ve):r;t!==m&&(qe=e,t=q(t));return e=t}(),r!==m?(qe=e,t=D(r)):(Ve=e,m)):(Ve=e,m);e===m&&(qe=e=Ve,t=W(),e=(t=t?void 0:m)!==m?(r=ct())!==m?(qe=e,t=M(r)):(Ve=e,m):(Ve=e,m));return e}())!==m?u=[u,s,c]:(Ve=i,m):(Ve=i,m):(Ve=i,m))===m&&(i=null),i!==m?(u=bt())!==m?(125===f.charCodeAt(Ve)?(s=g,Ve++):(s=m,0===Je&&ot(h)),s!==m?(qe=e,t=R(n,o,i)):(Ve=e,m)):(Ve=e,m):(Ve=e,m)):(Ve=e,m):(Ve=e,m)):(Ve=e,m):(Ve=e,m)):(Ve=e,m):(Ve=e,m):(Ve=e,m)):(Ve=e,m);return e}());return e}())===m&&(e=function(){var e,t,r,n,a,o,i,u,s,c,l;e=Ve,123===f.charCodeAt(Ve)?(t=p,Ve++):(t=m,0===Je&&ot(d));if(t!==m)if(bt()!==m)if((r=Ct())!==m)if(bt()!==m)if(44===f.charCodeAt(Ve)?(n=N,Ve++):(n=m,0===Je&&ot(k)),n!==m)if(bt()!==m)if(f.substr(Ve,6)===Q?(a=Q,Ve+=6):(a=m,0===Je&&ot(Y)),a===m&&(f.substr(Ve,13)===ee?(a=ee,Ve+=13):(a=m,0===Je&&ot(te))),a!==m)if(bt()!==m)if(44===f.charCodeAt(Ve)?(o=N,Ve++):(o=m,0===Je&&ot(k)),o!==m)if(bt()!==m)if(i=Ve,f.substr(Ve,7)===re?(u=re,Ve+=7):(u=m,0===Je&&ot(ne)),(i=u!==m?(s=bt())!==m?(c=wt())!==m?u=[u,s,c]:(Ve=i,m):(Ve=i,m):(Ve=i,m))===m&&(i=null),i!==m)if((u=bt())!==m){if(s=[],(c=ht())!==m)for(;c!==m;)s.push(c),c=ht();else s=m;e=s!==m?(c=bt())!==m?(125===f.charCodeAt(Ve)?(l=g,Ve++):(l=m,0===Je&&ot(h)),l!==m?(qe=e,t=ae(r,a,i,s)):(Ve=e,m)):(Ve=e,m):(Ve=e,m)}else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;return e}())===m&&(e=function(){var e,t,r,n,a,o,i,u,s;e=Ve,123===f.charCodeAt(Ve)?(t=p,Ve++):(t=m,0===Je&&ot(d));if(t!==m)if(bt()!==m)if((r=Ct())!==m)if(bt()!==m)if(44===f.charCodeAt(Ve)?(n=N,Ve++):(n=m,0===Je&&ot(k)),n!==m)if(bt()!==m)if(f.substr(Ve,6)===oe?(a=oe,Ve+=6):(a=m,0===Je&&ot(ie)),a!==m)if(bt()!==m)if(44===f.charCodeAt(Ve)?(o=N,Ve++):(o=m,0===Je&&ot(k)),o!==m)if(bt()!==m){if(i=[],(u=gt())!==m)for(;u!==m;)i.push(u),u=gt();else i=m;e=i!==m?(u=bt())!==m?(125===f.charCodeAt(Ve)?(s=g,Ve++):(s=m,0===Je&&ot(h)),s!==m?(qe=e,t=ue(r,i)):(Ve=e,m)):(Ve=e,m):(Ve=e,m)}else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;else Ve=e,e=m;return e}())===m&&(e=function(){var e,t;e=Ve,35===f.charCodeAt(Ve)?(t=i,Ve++):(t=m,0===Je&&ot(u));t!==m&&(qe=e,t=s());return e=t}()),e}function ct(){var e,t,r;if(e=Ve,t=[],(r=Ot())===m&&(r=At())===m&&(r=Ft()),r!==m)for(;r!==m;)t.push(r),(r=Ot())===m&&(r=At())===m&&(r=Ft());else t=m;return t!==m&&(qe=e,t=a(t)),e=t}function lt(){var e,t,r,n,a;if(Je++,t=[],n=r=e=Ve,Je++,(a=yt())===m&&(v.test(f.charAt(Ve))?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(b))),Je--,(r=(n=a===m?void 0:(Ve=n,m))!==m?(f.length>Ve?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m))!==m)for(;r!==m;)t.push(r),n=r=Ve,Je++,(a=yt())===m&&(v.test(f.charAt(Ve))?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(b))),Je--,r=(n=a===m?void 0:(Ve=n,m))!==m?(f.length>Ve?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m);else t=m;return e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(y)),e}function ft(){var e,t,r;return Je++,e=Ve,47===f.charCodeAt(Ve)?(t=A,Ve++):(t=m,0===Je&&ot(F)),e=t!==m&&(r=lt())!==m?(qe=e,t=C(r)):(Ve=e,m),Je--,e===m&&(t=m,0===Je&&ot(O)),e}function mt(){var e,t,r,n;if(Je++,e=Ve,bt()!==m)if((t=lt())!==m){for(r=[],n=ft();n!==m;)r.push(n),n=ft();e=r!==m?(qe=e,T(t,r)):(Ve=e,m)}else Ve=e,e=m;else Ve=e,e=m;return Je--,e===m&&(m,0===Je&&ot(P)),e}function pt(){var e,t,r,n;if(e=Ve,39===f.charCodeAt(Ve)?(t=L,Ve++):(t=m,0===Je&&ot($)),t!==m){if(r=[],(n=Ot())===m&&(Z.test(f.charAt(Ve))?(n=f.charAt(Ve),Ve++):(n=m,0===Je&&ot(z))),n!==m)for(;n!==m;)r.push(n),(n=Ot())===m&&(Z.test(f.charAt(Ve))?(n=f.charAt(Ve),Ve++):(n=m,0===Je&&ot(z)));else r=m;e=r!==m?(39===f.charCodeAt(Ve)?(n=L,Ve++):(n=m,0===Je&&ot($)),n!==m?t=[t,r,n]:(Ve=e,m)):(Ve=e,m)}else Ve=e,e=m;if(e===m)if(e=[],(t=Ot())===m&&(H.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(B))),t!==m)for(;t!==m;)e.push(t),(t=Ot())===m&&(H.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(B)));else e=m;return e}function dt(){var e,t;if(e=[],U.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(V)),t!==m)for(;t!==m;)e.push(t),U.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(V));else e=m;return e}function gt(){var e,t,r,n,a;return e=Ve,e=bt()!==m&&(t=Tt())!==m&&bt()!==m?(123===f.charCodeAt(Ve)?(r=p,Ve++):(r=m,0===Je&&ot(d)),r!==m?(qe=Ve,(le()?void 0:m)!==m&&(n=ut())!==m?(125===f.charCodeAt(Ve)?(a=g,Ve++):(a=m,0===Je&&ot(h)),a!==m?(qe=e,fe(t,n)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)}function ht(){var e,t,r,n,a;return e=Ve,e=bt()!==m&&(t=function(){var e,t,r,n;return t=e=Ve,61===f.charCodeAt(Ve)?(r=se,Ve++):(r=m,0===Je&&ot(ce)),(e=(t=r!==m&&(n=wt())!==m?r=[r,n]:(Ve=t,m))!==m?f.substring(e,Ve):t)===m&&(e=Tt()),e}())!==m&&bt()!==m?(123===f.charCodeAt(Ve)?(r=p,Ve++):(r=m,0===Je&&ot(d)),r!==m?(qe=Ve,(me()?void 0:m)!==m&&(n=ut())!==m?(125===f.charCodeAt(Ve)?(a=g,Ve++):(a=m,0===Je&&ot(h)),a!==m?(qe=e,pe(t,n)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)}function yt(){var e;return Je++,ge.test(f.charAt(Ve))?(e=f.charAt(Ve),Ve++):(e=m,0===Je&&ot(he)),Je--,e===m&&0===Je&&ot(de),e}function vt(){var e;return Je++,ve.test(f.charAt(Ve))?(e=f.charAt(Ve),Ve++):(e=m,0===Je&&ot(be)),Je--,e===m&&0===Je&&ot(ye),e}function bt(){var e,t,r;for(Je++,e=Ve,t=[],r=yt();r!==m;)t.push(r),r=yt();return e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(we)),e}function wt(){var e,t,r;return Je++,e=Ve,45===f.charCodeAt(Ve)?(t=Ae,Ve++):(t=m,0===Je&&ot(Fe)),t===m&&(t=null),e=t!==m&&(r=Pt())!==m?(qe=e,t=Ce(t,r)):(Ve=e,m),Je--,e===m&&(t=m,0===Je&&ot(Oe)),e}function Ot(){var e,t;return Je++,e=Ve,f.substr(Ve,2)===Te?(t=Te,Ve+=2):(t=m,0===Je&&ot(je)),t!==m&&(qe=e,t=Ee()),Je--,(e=t)===m&&(t=m,0===Je&&ot(Pe)),e}function At(){var e,t,r,n,a,o;if(e=Ve,39===f.charCodeAt(Ve)?(t=L,Ve++):(t=m,0===Je&&ot($)),t!==m)if((r=function(){var e,t,r,n;t=e=Ve,f.length>Ve?(r=f.charAt(Ve),Ve++):(r=m,0===Je&&ot(w));t=r!==m?(qe=Ve,n=Ne(r),(n=n?void 0:m)!==m?r=[r,n]:(Ve=t,m)):(Ve=t,m);e=t!==m?f.substring(e,Ve):t;return e}())!==m){for(n=Ve,a=[],f.substr(Ve,2)===Te?(o=Te,Ve+=2):(o=m,0===Je&&ot(je)),o===m&&(Z.test(f.charAt(Ve))?(o=f.charAt(Ve),Ve++):(o=m,0===Je&&ot(z)));o!==m;)a.push(o),f.substr(Ve,2)===Te?(o=Te,Ve+=2):(o=m,0===Je&&ot(je)),o===m&&(Z.test(f.charAt(Ve))?(o=f.charAt(Ve),Ve++):(o=m,0===Je&&ot(z)));e=(n=a!==m?f.substring(n,Ve):a)!==m?(39===f.charCodeAt(Ve)?(a=L,Ve++):(a=m,0===Je&&ot($)),a===m&&(a=null),a!==m?(qe=e,t=xe(r,n)):(Ve=e,m)):(Ve=e,m)}else Ve=e,e=m;else Ve=e,e=m;return e}function Ft(){var e,t,r,n;return t=e=Ve,f.length>Ve?(r=f.charAt(Ve),Ve++):(r=m,0===Je&&ot(w)),(t=r!==m?(qe=Ve,(n=(n=De(r))?void 0:m)!==m?r=[r,n]:(Ve=t,m)):(Ve=t,m))===m&&(10===f.charCodeAt(Ve)?(t=Se,Ve++):(t=m,0===Je&&ot(Me))),e=t!==m?f.substring(e,Ve):t}function Ct(){var e,t;return Je++,e=Ve,(t=Pt())===m&&(t=Tt()),e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(ke)),e}function Pt(){var e,t,r,n,a;if(Je++,e=Ve,48===f.charCodeAt(Ve)?(t=_e,Ve++):(t=m,0===Je&&ot(Re)),t!==m&&(qe=e,t=Le()),(e=t)===m){if(t=e=Ve,$e.test(f.charAt(Ve))?(r=f.charAt(Ve),Ve++):(r=m,0===Je&&ot(Ze)),r!==m){for(n=[],ze.test(f.charAt(Ve))?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(He));a!==m;)n.push(a),ze.test(f.charAt(Ve))?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(He));t=n!==m?r=[r,n]:(Ve=t,m)}else Ve=t,t=m;t!==m&&(qe=e,t=Be(t)),e=t}return Je--,e===m&&(t=m,0===Je&&ot(Ie)),e}function Tt(){var e,t,r,n,a;if(Je++,t=[],n=r=e=Ve,Je++,(a=yt())===m&&(a=vt()),Je--,(r=(n=a===m?void 0:(Ve=n,m))!==m?(f.length>Ve?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m))!==m)for(;r!==m;)t.push(r),n=r=Ve,Je++,(a=yt())===m&&(a=vt()),Je--,r=(n=a===m?void 0:(Ve=n,m))!==m?(f.length>Ve?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m);else t=m;return e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(Ue)),e}var jt,Et,xt,Dt=["root"];function St(){return"plural"===Dt[Dt.length-1]}function Mt(){return e&&e.captureLocation?{location:Qe()}:{}}if((t=n())!==m&&Ve===f.length)return t;throw t!==m&&Ve<f.length&&ot({type:"end"}),jt=Xe,Et=Ge<f.length?f.charAt(Ge):null,xt=Ge<f.length?at(Ge,Ge+1):at(Ge,Ge),new It(It.buildMessage(jt,Et),jt,Et,xt)},C=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n},P=/(^|[^\\])#/g;var T=function(){return(T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},j=/(?:[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(j,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?"short":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 x=/^\.(?:(0+)(\+|#+)?)?$/g,D=/^(@+)?(\+|#+)?$/g;function S(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 M(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 N(e){var t=M(e);return t||{}}function k(e){for(var n={},t=0,r=e;t<r.length;t++){var a=r[t];switch(a.stem){case"percent":n.style="percent";continue;case"currency":n.style="currency",n.currency=a.options[0];continue;case"group-off":n.useGrouping=!1;continue;case"precision-integer":n.maximumFractionDigits=0;continue;case"measure-unit":n.style="unit",n.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=T(T(T({},n),{notation:"scientific"}),a.options.reduce(function(e,t){return T(T({},e),N(t))},{}));continue;case"engineering":n=T(T(T({},n),{notation:"engineering"}),a.options.reduce(function(e,t){return T(T({},e),N(t))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue}if(x.test(a.stem)){if(1<a.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(x,function(e,t,r){return"."===e?n.maximumFractionDigits=0:"+"===r?n.minimumFractionDigits=r.length:"#"===t[0]?n.maximumFractionDigits=t.length:(n.minimumFractionDigits=t.length,n.maximumFractionDigits=t.length+("string"==typeof r?r.length:0)),""}),a.options.length&&(n=T(T({},n),S(a.options[0])))}else if(D.test(a.stem))n=T(T({},n),S(a.stem));else{var o=M(a.stem);o&&(n=T(T({},n),o))}}return n}function I(e,t){var r=F(e,t);return t&&!1===t.normalizeHashtagInPlural||function l(e){e.forEach(function(c){(O(c)||w(c))&&Object.keys(c.options).forEach(function(e){for(var t,r=c.options[e],n=-1,a=void 0,o=0;o<r.value.length;o++){var i=r.value[o];if(b(i)&&P.test(i.value)){n=o,a=i;break}}if(a){var u=a.value.replace(P,"$1{"+c.value+", number}"),s=F(u);(t=r.value).splice.apply(t,C([n,1],s))}l(r.value)})})}(r),r}var _=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n};function R(e){return JSON.stringify(e.map(function(e){return e&&"object"===v(e)?function(r){return Object.keys(r).sort().map(function(e){var t;return(t={})[e]=r[e],t})}(e):e}))}var L,$,Z,z=function(o,i){return void 0===i&&(i={}),function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=R(t),a=n&&i[n];return a||(a=new((e=o).bind.apply(e,_([void 0],t))),n&&(i[n]=a)),a}},H=(L=function(e,t){return(L=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}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),B=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n},U=($=Error,H(V,$),V);function V(e,t){var r=$.call(this,e)||this;return r.variableId=t,r}function q(e,t,r,n,a,o,i){if(1===e.length&&b(e[0]))return[{type:0,value:e[0].value}];for(var u,s,c=[],l=0,f=e;l<f.length;l++){var m=f[l];if(b(m))c.push({type:0,value:m.value});else if(m.type!==Nt.pound){var p=m.value;if(!(a&&p in a))throw new U('The intl string context variable "'+p+'" was not provided to the string "'+i+'"');var d=a[p];if(m.type!==Nt.argument)if(m.type!==Nt.date)if(m.type!==Nt.time)if(m.type!==Nt.number)if(w(m)){if(!(g=m.options[d]||m.options.other))throw new RangeError('Invalid values for "'+m.value+'": "'+d+'". Options are "'+Object.keys(m.options).join('", "')+'"');c.push.apply(c,q(g.value,t,r,n,a))}else if(O(m)){var g;if(!(g=m.options["="+d])){if(!Intl.PluralRules)throw new U('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var h=r.getPluralRules(t,{type:m.pluralType}).select(d-(m.offset||0));g=m.options[h]||m.options.other}if(!g)throw new RangeError('Invalid values for "'+m.value+'": "'+d+'". Options are "'+Object.keys(m.options).join('", "')+'"');c.push.apply(c,q(g.value,t,r,n,a,d-(m.offset||0)))}else;else{y="string"==typeof m.style?n.number[m.style]:(u=m.style)&&"object"===v(u)&&0===u.type?k(m.style.tokens):void 0;c.push({type:0,value:r.getNumberFormat(t,y).format(d)})}else{var y="string"==typeof m.style?n.time[m.style]:(s=m.style)&&"object"===v(s)&&1===s.type?E(m.style.pattern):void 0;c.push({type:0,value:r.getDateTimeFormat(t,y).format(d)})}else{var y="string"==typeof m.style?n.date[m.style]:void 0;c.push({type:0,value:r.getDateTimeFormat(t,y).format(d)})}else d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),c.push({type:1,value:d})}else"number"==typeof o&&c.push({type:0,value:r.getNumberFormat(t).format(o)})}return function(e){return e.length<2?e:e.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},[])}(c)}var W="@@",G=/@@(\d+_\d+)@@/g,X=0;function J(e,t){return e.split(G).filter(Boolean).map(function(e){return null!=t[e]?t[e]:e}).reduce(function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e},[])}var K=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,Q=Date.now()+"@@",Y=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function ee(e,t,r,n,a,o){var i=q(e,t,r,n,a,void 0,o),u={},s=i.reduce(function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++X;return u[r]=t.value,e+(W+r)+W},"");if(!K.test(s))return J(s,u);if(!a)throw new U("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new U("Cannot format XML message without DOMParser");var c=(Z=Z||new DOMParser).parseFromString('<formatted-message id="'+Q+'">'+s+"</formatted-message>","text/html").getElementById(Q);if(!c)throw new U("Malformed HTML message "+s);var l=Object.keys(a).filter(function(e){return!!c.getElementsByTagName(e).length});if(!l.length)return J(s,u);var f=l.filter(function(e){return e!==e.toLowerCase()});if(f.length)throw new U("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(c.childNodes).reduce(function(e,t){return e.concat(function r(e,n,a){var t=e.tagName,o=e.outerHTML,i=e.textContent,u=e.childNodes;if(!t)return J(i||"",n);t=t.toLowerCase();var s=~Y.indexOf(t),c=a[t];if(c&&s)throw new U(t+" is a self-closing tag and can not be used, please use another tag name.");if(!u.length)return[o];var l=Array.prototype.slice.call(u).reduce(function(e,t){return e.concat(r(t,n,a))},[]);return c?"function"==typeof c?[c.apply(void 0,l)]:[c]:B(["<"+t+">"],l,["</"+t+">"])}(t,u,a))},[])}var te=function(){return(te=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function re(r,n){return n?Object.keys(r).reduce(function(e,t){return e[t]=function(r,n){return n?te(te(te({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=te(te({},r[t]),n[t]||{}),e},{})):r}(r[t],n[t]),e},te({},r)):r}var ne=(ae.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,ae.__parse=I,ae.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"}}},ae);function ae(e,t,r,n){var a=this;if(void 0===t&&(t=ae.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,r,n,a,o){var i=q(e,t,r,n,a,void 0,o);return 1===i.length?i[0].value:i.reduce(function(e,t){return e+t.value},"")}(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return q(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return ee(a.ast,a.locales,a.formatters,a.formats,e,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,!ae.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=ae.__parse(e,{normalizeHashtagInPlural:!1})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=re(ae.formats,r),this.locales=t,this.formatters=n&&n.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:z(Intl.NumberFormat,e.number),getDateTimeFormat:z(Intl.DateTimeFormat,e.dateTime),getPluralRules:z(Intl.PluralRules,e.pluralRules)}}(this.formatterCache)}function oe(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var ie={38:"&",62:">",60:"<",34:""",39:"'"},ue=/[&><"']/g;function se(r,e,t){var n=2<arguments.length&&void 0!==t?t:{};return e.reduce(function(e,t){return t in r?e[t]=r[t]:t in n&&(e[t]=n[t]),e},{})}function ce(e){oe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function le(e,t){var r=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(r)}var fe={formats:{},messages:{},timeZone:void 0,textComponent:h.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function me(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function pe(e){var t=0<arguments.length&&void 0!==e?e:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},r=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames;return{getDateTimeFormat:z(Intl.DateTimeFormat,t.dateTime),getNumberFormat:z(Intl.NumberFormat,t.number),getMessageFormat:z(ne,t.message),getRelativeTimeFormat:z(r,t.relativeTime),getPluralRules:z(Intl.PluralRules,t.pluralRules),getListFormat:z(n,t.list),getDisplayNames:z(a,t.displayNames)}}function de(e,t,r,n){var a,o=e&&e[t];if(o&&(a=o[r]),a)return a;n(le("No ".concat(t," format named: ").concat(r)))}var ge=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116;function h(e){if("object"===v(e)&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case o:case u:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case s:return e;default:return t}}case g:case d:case a:return t}}}function y(e){return h(e)===f}t.typeOf=h,t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=m,t.Fragment=o,t.Lazy=g,t.Memo=d,t.Portal=a,t.Profiler=u,t.StrictMode=i,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===u||e===i||e===p||"object"===v(e)&&null!==e&&(e.$$typeof===g||e.$$typeof===d||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m)},t.isAsyncMode=function(e){return y(e)||h(e)===l},t.isConcurrentMode=y,t.isContextConsumer=function(e){return h(e)===c},t.isContextProvider=function(e){return h(e)===s},t.isElement=function(e){return"object"===v(e)&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return h(e)===m},t.isFragment=function(e){return h(e)===o},t.isLazy=function(e){return h(e)===g},t.isMemo=function(e){return h(e)===d},t.isPortal=function(e){return h(e)===a},t.isProfiler=function(e){return h(e)===u},t.isStrictMode=function(e){return h(e)===i},t.isSuspense=function(e){return h(e)===p}});t(ge);ge.typeOf,ge.AsyncMode,ge.ConcurrentMode,ge.ContextConsumer,ge.ContextProvider,ge.Element,ge.ForwardRef,ge.Fragment,ge.Lazy,ge.Memo,ge.Portal,ge.Profiler,ge.StrictMode,ge.Suspense,ge.isValidElementType,ge.isAsyncMode,ge.isConcurrentMode,ge.isContextConsumer,ge.isContextProvider,ge.isElement,ge.isForwardRef,ge.isFragment,ge.isLazy,ge.isMemo,ge.isPortal,ge.isProfiler,ge.isStrictMode,ge.isSuspense;var he=r(function(e){e.exports=ge}),ye={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ve={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},be={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},we={};function Oe(e){return he.isMemo(e)?be:we[e.$$typeof]||ye}we[he.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Ae=Object.defineProperty,Fe=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Pe=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,je=Object.prototype;function Ee(e,t,r){if("string"!=typeof t){if(je){var n=Te(t);n&&n!==je&&Ee(e,n,r)}var a=Fe(t);Ce&&(a=a.concat(Ce(t)));for(var o=Oe(e),i=Oe(t),u=0;u<a.length;++u){var s=a[u];if(!(ve[s]||r&&r[s]||i&&i[s]||o&&o[s])){var c=Pe(t,s);try{Ae(e,s,c)}catch(e){}}}}return e}var xe=Ee;var De=h.createContext(null),Se=De.Consumer,Me=De.Provider,Ne=De;function ke(r,e){function n(t){return h.createElement(Se,null,function(e){return c&&ce(e),h.createElement(r,Object.assign({},t,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},o,e),{ref:u?t.forwardedRef:null}))})}var t=e||{},a=t.intlPropName,o=void 0===a?"intl":a,i=t.forwardRef,u=void 0!==i&&i,s=t.enforceContext,c=void 0===s||s;return n.displayName="injectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(r),")"),n.WrappedComponent=r,xe(u?h.forwardRef(function(e,t){return h.createElement(n,Object.assign({},e,{forwardedRef:t}))}):n,r)}var Ie,_e,Re,Le,$e=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){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};(_e=Ie=Ie||{}).formatDate="FormattedDate",_e.formatTime="FormattedTime",_e.formatNumber="FormattedNumber",_e.formatList="FormattedList",_e.formatDisplayName="FormattedDisplayName",(Le=Re=Re||{}).formatDate="FormattedDateParts",Le.formatTime="FormattedTimeParts",Le.formatNumber="FormattedNumberParts",Le.formatList="FormattedListParts";function Ze(a){return h.createElement(Ne.Consumer,null,function(e){ce(e);var t=a.value,r=a.children,n=$e(a,["value","children"]);return r(e.formatNumberToParts(t,n))})}function ze(i){function e(o){return h.createElement(Ne.Consumer,null,function(e){ce(e);var t=o.value,r=o.children,n=$e(o,["value","children"]),a="string"==typeof t?new Date(t||0):t;return r("formatDate"===i?e.formatDateToParts(a,n):e.formatTimeToParts(a,n))})}return e.displayName=Re[i],e}function He(u){function e(i){return h.createElement(Ne.Consumer,null,function(e){ce(e);var t=i.value,r=i.children,n=$e(i,["value","children"]),a=e[u](t,n);if("function"==typeof r)return r(a);var o=e.textComponent||h.Fragment;return h.createElement(o,null,a)})}return e.displayName=Ie[u],e}Ze.displayName="FormattedNumberParts";var Be=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ue(e,t,r){var n=e.locale,a=e.formats,o=e.onError,i=2<arguments.length&&void 0!==r?r:{},u=i.format,s=u&&de(a,"number",u,o)||{};return t(n,se(i,Be,s))}var Ve=["numeric","style"];function qe(t,e,r,n){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};n=n||"second",Intl.RelativeTimeFormat||t.onError(le('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return function(e,t,r){var n=e.locale,a=e.formats,o=e.onError,i=2<arguments.length&&void 0!==r?r:{},u=i.format,s=!!u&&de(a,"relative",u,o)||{};return t(n,se(i,Ve,s))}(t,e,a).format(r,n)}catch(e){t.onError(le("Error formatting relative time.",e))}return String(r)}var We=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ge(e,t,r,n){var a=e.locale,o=e.formats,i=e.onError,u=e.timeZone,s=3<arguments.length&&void 0!==n?n:{},c=s.format,l=Object.assign(Object.assign({},u&&{timeZone:u}),c&&de(o,t,c,i)),f=se(s,We,l);return"time"!==t||f.hour||f.minute||f.second||(f=Object.assign(Object.assign({},f),{hour:"numeric",minute:"numeric"})),r(a,f)}var Xe=["localeMatcher","type"];function Je(r,n){return Object.keys(r).reduce(function(e,t){return e[t]=Object.assign({timeZone:n},r[t]),e},{})}function Ke(r,n){return Object.keys(Object.assign(Object.assign({},r),n)).reduce(function(e,t){return e[t]=Object.assign(Object.assign({},r[t]||{}),n[t]||{}),e},{})}function Qe(e,t){if(!t)return e;var r=ne.formats;return Object.assign(Object.assign(Object.assign({},r),e),{date:Ke(Je(r.date,t),Je(e.date||{},t)),time:Ke(Je(r.time,t),Je(e.time||{},t))})}var Ye=function(e){return h.createElement.apply(h,[h.Fragment,null].concat(y(e)))};function et(e,t){var r=e.locale,n=e.formats,a=e.messages,o=e.defaultLocale,i=e.defaultFormats,u=e.onError,s=e.timeZone,c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},f=c.id,m=c.defaultMessage;oe(!!f,"[React Intl] An `id` must be provided to format a message.");var p=a&&a[String(f)];n=Qe(n,s),i=Qe(i,s);var d=[];if(p)try{d=t.getMessageFormat(p,r,n,{formatters:t}).formatHTMLMessage(l)}catch(e){u(le('Error formatting message: "'.concat(f,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":""),e))}else(!m||r&&r.toLowerCase()!==o.toLowerCase())&&u(le('Missing message: "'.concat(f,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":"")));if(!d.length&&m)try{d=t.getMessageFormat(m,o,i).formatHTMLMessage(l)}catch(e){u(le('Error formatting the default message for: "'.concat(f,'"'),e))}return d.length?1===d.length&&"string"==typeof d[0]?d[0]||m||String(f):Ye(d):(u(le('Cannot format message: "'.concat(f,'", ')+"using message ".concat(p||m?"source":"id"," as fallback."))),"string"==typeof p?p||m||String(f):m||String(f))}function tt(e,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return et(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{id:""},Object.keys(n).reduce(function(e,t){var r=n[t];return e[t]="string"==typeof r?function(e){return(""+e).replace(ue,function(e){return ie[e.charCodeAt(0)]})}(r):r,e},{}))}function rt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o<a;o++){var i=r[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var nt=["localeMatcher","type","style"],at=Date.now();function ot(e,t,r){var n=e.locale,a=e.onError,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||a(le('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var i=se(o,nt);try{var u={},s=r.map(function(e,t){if("object"!==v(e))return String(e);var r=function(e){return"".concat(at,"_").concat(e,"_").concat(at)}(t);return u[r]=e,r});return Object.keys(u).length?t(n,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(n,i).format(s)}catch(e){a(le("Error formatting list.",e))}return r}var it=["localeMatcher","style","type","fallback"];var ut=rt;function st(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}}function ct(e,t){var r=pe(t),n=Object.assign(Object.assign({},fe),e);if(!n.locale||!function(t,e){if("undefined"==typeof Intl)return!1;if(!t)throw new Error("locales must be supplied.");Array.isArray(t)||(t=[t]);var r=e||[Intl.DateTimeFormat,Intl.NumberFormat,Intl.PluralRules];return!(0===(r=r.filter(Boolean)).length||e&&r.length!==e.length)&&r.every(function(e){return e.supportedLocalesOf(t).length===t.length})}(n.locale)){var a=n.locale,o=n.defaultLocale,i=n.onError;"function"==typeof i&&i(le('Missing locale data for locale: "'.concat(a,'". ')+'Using default locale: "'.concat(o,'" as fallback.'))),n.locale=n.defaultLocale||"en"}return Object.assign(Object.assign({},n),{formatters:r,formatNumber:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{return Ue(t,e,n).format(r)}catch(e){t.onError(le("Error formatting number.",e))}return String(r)}.bind(null,n,r.getNumberFormat),formatNumberToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{return Ue(t,e,n).formatToParts(r)}catch(e){t.onError(le("Error formatting number.",e))}return[]}.bind(null,n,r.getNumberFormat),formatRelativeTime:qe.bind(null,n,r.getRelativeTimeFormat),formatDate:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof r?new Date(r||0):r;try{return Ge(t,"date",e,n).format(a)}catch(e){t.onError(le("Error formatting date.",e))}return String(a)}.bind(null,n,r.getDateTimeFormat),formatDateToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof r?new Date(r||0):r;try{return Ge(t,"date",e,n).formatToParts(a)}catch(e){t.onError(le("Error formatting date.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatTime:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof r?new Date(r||0):r;try{return Ge(t,"time",e,n).format(a)}catch(e){t.onError(le("Error formatting time.",e))}return String(a)}.bind(null,n,r.getDateTimeFormat),formatTimeToParts:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof r?new Date(r||0):r;try{return Ge(t,"time",e,n).formatToParts(a)}catch(e){t.onError(le("Error formatting time.",e))}return[]}.bind(null,n,r.getDateTimeFormat),formatPlural:function(e,t,r){var n=e.locale,a=e.onError,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||a(le('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var i=se(o,Xe);try{return t(n,i).select(r)}catch(e){a(le("Error formatting plural.",e))}return"other"}.bind(null,n,r.getPluralRules),formatMessage:et.bind(null,n,r),formatHTMLMessage:tt.bind(null,n,r),formatList:ot.bind(null,n,r.getListFormat),formatDisplayName:function(e,t,r){var n=e.locale,a=e.onError,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Intl.DisplayNames||a(le('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));var i=se(o,it);try{return t(n,i).of(r)}catch(e){a(le("Error formatting display name.",e))}}.bind(null,n,r.getDisplayNames)})}var lt=function(){function t(){var e;return i(this,t),(e=m(this,l(t).apply(this,arguments))).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:ct(st(e.props),e.cache),prevConfig:st(e.props)},e}return c(t,h.PureComponent),s(t,[{key:"render",value:function(){return ce(this.state.intl),h.createElement(Me,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevConfig,n=t.cache,a=st(e);return ut(r,a)?null:{intl:ct(a,n),prevConfig:a}}}]),t}();lt.displayName="IntlProvider",lt.defaultProps=fe;var ft=60,mt=3600;function pt(e){var t=Math.abs(e);return t<ft?"second":t<mt?"minute":t<86400?"hour":"day"}function dt(e){switch(e){case"second":return 1;case"minute":return ft;case"hour":return mt;default:return 86400}}function gt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return e*ft;default:return e*mt}}var ht=["second","minute","hour"];function yt(e){var t=0<arguments.length&&void 0!==e?e:"second";return ht.includes(t)}var vt=function(){function r(e){var t;return i(this,r),(t=m(this,l(r).call(this,e)))._updateTimer=null,t.state={prevUnit:t.props.unit,prevValue:t.props.value,currentValueInSeconds:yt(t.props.unit)?gt(t.props.value,t.props.unit):0},oe(!e.updateIntervalInSeconds||!(!e.updateIntervalInSeconds||!yt(e.unit)),"Cannot schedule update with unit longer than hour"),t}return c(r,h.PureComponent),s(r,[{key:"scheduleNextUpdate",value:function(e,t){var r=this,n=e.updateIntervalInSeconds,a=e.unit,o=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&yt(a)){var i=o-n,u=pt(i);if("day"!==u){var s=dt(u),c=i-i%s,l=o<=c?c-s:c,f=Math.abs(l-o);this._updateTimer=setTimeout(function(){return r.setState({currentValueInSeconds:l})},1e3*f)}}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentDidUpdate",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._updateTimer),this._updateTimer=null}},{key:"render",value:function(){var p=this;return h.createElement(Ne.Consumer,null,function(e){ce(e);var t=e.formatRelativeTime,r=e.textComponent,n=p.props,a=n.children,o=n.value,i=n.unit,u=n.updateIntervalInSeconds,s=p.state.currentValueInSeconds,c=o||0,l=i;if(yt(i)&&"number"==typeof s&&u){var f=dt(l=pt(s));c=Math.round(s/f)}var m=t(c,l,Object.assign({},p.props));return"function"==typeof a?a(m):r?h.createElement(r,null,m):m})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:yt(e.unit)?gt(e.value,e.unit):0}:null}}]),r}();vt.displayName="FormattedRelativeTime",vt.defaultProps={value:0,unit:"second"};function bt(e){var t=e.value,r=e.other,n=e.children,a=e.intl,o=a.formatPlural,i=a.textComponent,u=e[o(t,e)]||r;return"function"==typeof n?n(u):i?h.createElement(i,null,u):u}bt.defaultProps={type:"cardinal"},bt.displayName="FormattedPlural";function wt(e,t){return et(Object.assign(Object.assign({},fe),{locale:"en"}),pe(),e,t)}var Ot=ke(bt),At=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){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},Ft=rt,Ct=function(){function e(){return i(this,e),m(this,l(e).apply(this,arguments))}return c(e,h.Component),s(e,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.values,n=At(t,["values"]),a=e.values,o=At(e,["values"]);return!Ft(a,r)||!Ft(n,o)}},{key:"render",value:function(){var g=this;return h.createElement(Ne.Consumer,null,function(e){g.props.defaultMessage||ce(e);var t=e||{},r=t.formatMessage,n=void 0===r?wt:r,a=t.textComponent,o=void 0===a?h.Fragment:a,i=g.props,u=i.id,s=i.description,c=i.defaultMessage,l=i.values,f=i.children,m=i.tagName,p=void 0===m?o:m,d=n({id:u,description:s,defaultMessage:c},l);return Array.isArray(d)||(d=[d]),"function"==typeof f?f.apply(void 0,y(d)):p?h.createElement.apply(h,[p,null].concat(y(d))):d})}}]),e}();Ct.displayName="FormattedMessage",Ct.defaultProps={values:{}};var Pt=function(){function e(){return i(this,e),m(this,l(e).apply(this,arguments))}return c(e,Ct),s(e,[{key:"render",value:function(){var m=this;return h.createElement(Ne.Consumer,null,function(e){m.props.defaultMessage||ce(e);var t=e.formatHTMLMessage,r=e.textComponent,n=m.props,a=n.id,o=n.description,i=n.defaultMessage,u=n.values,s=n.children,c=m.props.tagName;c=c||(r||"span");var l=t({id:a,description:o,defaultMessage:i},u);if("function"==typeof s)return s(l);var f={__html:l};return h.createElement(c,{dangerouslySetInnerHTML:f})})}}]),e}();Pt.displayName="FormattedHTMLMessage",Pt.defaultProps=Object.assign(Object.assign({},Ct.defaultProps),{tagName:"span"});var Tt=He("formatDate"),jt=He("formatTime"),Et=He("formatNumber"),xt=He("formatList"),Dt=He("formatDisplayName"),St=ze("formatDate"),Mt=ze("formatTime");e.FormattedDate=Tt,e.FormattedDateParts=St,e.FormattedDisplayName=Dt,e.FormattedHTMLMessage=Pt,e.FormattedList=xt,e.FormattedMessage=Ct,e.FormattedNumber=Et,e.FormattedNumberParts=Ze,e.FormattedPlural=Ot,e.FormattedRelativeTime=vt,e.FormattedTime=jt,e.FormattedTimeParts=Mt,e.IntlContext=Ne,e.IntlProvider=lt,e.RawIntlProvider=Me,e.createIntl=ct,e.createIntlCache=me,e.defineMessages=o,e.injectIntl=ke,e.useIntl=function(){var e=h.useContext(Ne);return ce(e),e},Object.defineProperty(e,"__esModule",{value:!0})});
|