/*! For license information please see main.5d630f46.js.LICENSE.txt */ !function(){var e={21841:function(e,t,n){"use strict";n.d(t,{Z:function(){return Oh},h:function(){return Ah}});var r,i=n(29439),o=n(72791),a=n(16030),s=n(45237),u=n(90636),c=n(88537),l=n(99626),f=n(65295),d=n(40971),p=(0,o.createContext)(void 0),h=n(4942),g="undefined",v="constructor",m="prototype",y="function",b="_dynInstFuncs",w="_isDynProxy",E="_dynClass",S="_dynInstChk",x=S,_="_dfOpts",k="_unknown_",C="__proto__",T="_dyn"+C,P="__dynProto$Gbl",A="_dynInstProto",F="useBaseInst",O="setInstFuncs",R=Object,N=R.getPrototypeOf,D=R.getOwnPropertyNames;var I=function(){var e;return typeof globalThis!==g&&(e=globalThis),e||typeof self===g||(e=self),e||typeof window===g||(e=window),e||typeof n.g===g||(e=n.g),e||{}}(),M=I[P]||(I[P]={o:(r={},r[O]=!0,r[F]=!0,r),n:1e3});function L(e,t){return e&&R[m].hasOwnProperty.call(e,t)}function j(e){return e&&(e===R[m]||e===Array[m])}function U(e){return j(e)||e===Function[m]}function Z(e){var t;if(e){if(N)return N(e);var n=e[C]||e[m]||(e[v]?e[v][m]:null);t=e[T]||n,L(e,T)||(delete e[A],t=e[T]=e[A]||e[T],e[A]=n)}return t}function B(e,t){var n=[];if(D)n=D(e);else for(var r in e)"string"===typeof r&&L(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i=0;n--)if(e[n]===t)return!0;return!1}function q(e,t,n,r,i){function o(e,t){var n=function n(){var r=function(e,t,n,r){var i=null;if(e&&L(n,E)){var o=e[b]||{};if((i=(o[n[E]]||{})[t])||V("Missing ["+t+"] "+y),!i[S]&&!1!==o[x]){for(var a=!L(e,t),s=Z(e),u=[];a&&s&&!U(s)&&!z(u,s);){var c=s[t];if(c){a=c===r;break}u.push(s),s=Z(s)}try{a&&(e[t]=i),i[S]=1}catch(l){o[x]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=Z(t)[e]),typeof r!==y&&V("["+e+"] is not a "+y),r}(t,e,n);return r.apply(this,arguments)};return n[w]=1,n}if(!j(e)){var a=n[b]=n[b]||{},s=a[t]=a[t]||{};!1!==a[x]&&(a[x]=!!i),B(n,(function(t){H(n,t,!1)&&n[t]!==r[t]&&(s[t]=n[t],delete n[t],(!L(e,t)||e[t]&&!e[t][w])&&(e[t]=o(e,t)))}))}}function W(e,t){return L(e,m)?e.name||t||k:((e||{})[v]||{}).name||t||k}function K(e,t,n,r){L(e,m)||V("theClass is an invalid class definition.");var i=e[m];(function(e,t){if(N){for(var n=[],r=Z(t);r&&!U(r)&&!z(n,r);){if(r===e)return!0;n.push(r),r=Z(r)}return!1}return!0})(i,t)||V("["+W(e)+"] not in hierarchy of ["+W(t)+"]");var o=null;L(i,E)?o=i[E]:(o="_dynCls$"+W(e,"_")+"$"+M.n,M.n++,i[E]=o);var a=K[_],s=!!a[F];s&&r&&void 0!==r[F]&&(s=!!r[F]);var u=function(e){var t={};return B(e,(function(n){!t[n]&&H(e,n,!1)&&(t[n]=e[n])})),t}(t),c=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[w]&&r){var o=e[b]||{};!1!==o[x]&&(i=(o[t[E]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};B(n,(function(e){o[e]=i(t,n,e)}));for(var a=Z(e),s=[];a&&!U(a)&&!z(s,a);)B(a,(function(e){!o[e]&&H(a,e,!N)&&(o[e]=i(t,a,e))})),s.push(a),a=Z(a);return o}(i,t,u,s);n(t,c);var l=!!N&&!!a[O];l&&r&&(l=!!r[O]),q(i,o,t,u,!1!==l)}K[_]=M.o;var Y="function",G="object",$="undefined",J="prototype",X="hasOwnProperty",Q=Object,ee=Q[J],te=Q.assign,ne=Q.create,re=Q.defineProperty,ie=ee[X],oe=null;function ae(e){void 0===e&&(e=!0);var t=!1===e?null:oe;return t||(typeof globalThis!==$&&(t=globalThis),t||typeof self===$||(t=self),t||typeof window===$||(t=window),t||typeof n.g===$||(t=n.g),oe=t),t}function se(e){throw new TypeError(e)}function ue(e){if(ne)return ne(e);if(null==e)return{};var t=typeof e;function n(){}return t!==G&&t!==Y&&se("Object prototype may only be an Object:"+e),n[J]=e,new n}(ae()||{}).Symbol,(ae()||{}).Reflect;var ce=te||function(e){for(var t,n=1,r=arguments.length;n=r&&!(n=e===t)){for(var o=i-1,a=r-1;a>=0;a--){if(e[o]!=t[a])return!1;o--}n=!0}return n}(e,t)),n}function fn(e,t){return!(!e||!t)&&-1!==e[qe](t)}var dn=Wt||function(e){return!(!e||"[object Array]"!==Kt[rt](e))};function pn(e){return!(!e||"[object Error]"!==Kt[rt](e))}function hn(e){return"string"===typeof e}function gn(e){return"number"===typeof e}function vn(e){return"boolean"===typeof e}function mn(e){var t=!1;if(e&&"object"===typeof e){var n=Qt?Qt(e):en(e);n?(n[jt]&&ie[rt](n,jt)&&(n=n[jt]),t=typeof n===Y&&Yt[rt](n)===Gt):t=!0}return t}function yn(e){if(e)return qt?e[Ft]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[Se]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function bn(e,t,n){var r=e[Se];try{for(var i=0;i=0?i:r-Math.abs(i),0);o=3)r=arguments[2];else{for(;o0&&vn(s)&&(c=s,s=a[l]||{},l++),an(s)||(s={});l0?o+".":Er)+i+":"+r+":"+n+"."+t}function _r(e,t,n,r,i){return!i&&hn(e)&&("Script error."===e||"Script error"===e)}var kr="window",Cr="document",Tr="documentMode",Pr="navigator",Ar="location",Fr="console",Or="performance",Rr="JSON",Nr="crypto",Dr="msCrypto",Ir="msie",Mr="trident/index.html",Lr="XMLHttpRequest",jr=null,Ur=null,Zr=!1,Br=null,Hr=null;function Vr(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[J];r&&(n=t in r)}}catch(i){}if(!n)try{n=!tn((new e)[t])}catch(i){}}return n}function zr(e){var t=ae();return t&&t[e]?t[e]:e===kr&&qr()?window:null}function qr(){return Boolean(typeof window===G&&window)}function Wr(){return qr()?window:zr(kr)}function Kr(){return Boolean(typeof document===G&&document)}function Yr(){return Kr()?document:zr(Cr)}function Gr(){return Boolean(typeof navigator===G&&navigator)}function $r(){return Gr()?navigator:zr(Pr)}function Jr(){return Boolean(typeof history===G&&history)}function Xr(e){if(e&&Zr){var t=zr("__mockLocation");if(t)return t}return typeof location===G&&location?location:zr(Ar)}function Qr(){return zr(Or)}function ei(){return Boolean(typeof JSON===G&&JSON||null!==zr(Rr))}function ti(){return ei()?JSON||zr(Rr):null}function ni(){var e=$r();if(e&&(e[Ke]!==Ur||null===jr)){var t=((Ur=e[Ke])||gt)[nt]();jr=fn(t,Ir)||fn(t,Mr)}return jr}function ri(e){if(void 0===e&&(e=null),!e){var t=$r()||{};e=t?(t[Ke]||gt)[nt]():gt}var n=(e||gt)[nt]();if(fn(n,Ir)){var r=Yr()||{};return Math.max(parseInt(n[Ye](Ir)[1]),r[Tr]||0)}if(fn(n,Mr)){var i=parseInt(n[Ye](Mr)[1]);if(i)return i+4}return null}function ii(e){var t=Object[J].toString[rt](e),n=gt;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[he]+"'":ei()&&(n=ti().stringify(e)),t+n}function oi(){return null===Hr&&(Hr=Gr()&&Boolean($r().sendBeacon)),Hr}function ai(e){var t=!1;try{t=!!zr("fetch");var n=zr("Request");t&&e&&n&&(t=Vr(n,"keepalive"))}catch(r){}return t}function si(){return null===Br&&(Br=typeof XDomainRequest!==$)&&ui()&&(Br=Br&&!Vr(zr(Lr),"withCredentials")),Br}function ui(){var e=!1;try{e=!!zr(Lr)}catch(t){}return e}var ci,li=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],fi=null;function di(e,t){return function(){var n=arguments,r=pi(t);if(r){var i=r.listener;i&&i[e]&&i[e][Xe](i,n)}}}function pi(e){var t=fi;return t||!0===e.disableDbgExt||(t=fi||function(){var e=zr("Microsoft");return e&&(fi=e.ApplicationInsights),fi}()),t?t.ChromeDbgExt:null}function hi(e){if(!ci){ci={};for(var t=0;t=i)){var o=!0,u="AITR_"+n[Ie];if(s[u]?o=!1:s[u]=!0,o&&(t<=r&&(e.queue[me](n),a++,c(1===t?"error":"warn",n)),a===i)){var l="Internal events throttle limit per PageView reached for this app.",f=new mi(23,l,!1);e.queue[me](f),1===t?e[Tt](l):e[Pt](l)}}}function c(e,n){var r=pi(t||{});r&&r[Be]&&r[Be](e,n)}!function(e){n=In(e.loggingLevelConsole,0),r=In(e.loggingLevelTelemetry,1),i=In(e.maxMessageLimit,25),o=In(e.enableDebug,In(e[et],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return r},e.maxInternalMessageLimit=function(){return i},e[et]=function(){return o},e.throwInternal=function(t,r,i,a,l){void 0===l&&(l=!1);var f=new mi(r,i,l,a);if(o)throw ii(f);var d=1===t?Tt:Pt;if(tn(f[Me]))c("throw"+(1===t?"Critical":"Warning"),f);else{if(l){var p=+f[Ie];!s[p]&&n>=t&&(e[d](f[Me]),s[p]=!0)}else n>=t&&e[d](f[Me]);u(t,f)}},e[Pt]=function(e){vi("warn",e),c("warning",e)},e[Tt]=function(e){vi("error",e),c("error",e)},e.resetInternalMessageCount=function(){a=0,s={}},e[tt]=u}))}return e.__ieDyn=1,e}();function wi(e){return e||new bi}function Ei(e,t,n,r,i,o){void 0===o&&(o=!1),wi(e).throwInternal(t,n,r,i,o)}function Si(e,t){wi(e)[Pt](t)}function xi(e){var t={};return cn(e,(function(e,n){t[e]=n,t[n]=e})),An(t)}var _i=xi({LocalStorage:0,SessionStorage:1}),ki=(xi({AI:0,AI_AND_W3C:1,W3C:2}),void 0),Ci=void 0,Ti="";function Pi(){return Ni()?Ai(_i.LocalStorage):null}function Ai(e){try{if(nn(ae()))return null;var t=(new Date)[Kn](),n=zr(e===_i.LocalStorage?"localStorage":"sessionStorage"),r=Ti+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[Yn](r),!i)return n}catch(o){}return null}function Fi(){return Li()?Ai(_i.SessionStorage):null}function Oi(){ki=!1,Ci=!1}function Ri(e){Ti=e||""}function Ni(e){return(e||void 0===ki)&&(ki=!!Ai(_i.LocalStorage)),ki}function Di(e,t){var n=Pi();if(null!==n)try{return n.getItem(t)}catch(r){ki=!1,Ei(e,2,1,"Browser failed read of local storage. "+Rn(r),{exception:ii(r)})}return null}function Ii(e,t,n){var r=Pi();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ki=!1,Ei(e,2,3,"Browser failed write to local storage. "+Rn(i),{exception:ii(i)})}return!1}function Mi(e,t){var n=Pi();if(null!==n)try{return n[Yn](t),!0}catch(r){ki=!1,Ei(e,2,5,"Browser failed removal of local storage item. "+Rn(r),{exception:ii(r)})}return!1}function Li(e){return(e||void 0===Ci)&&(Ci=!!Ai(_i.SessionStorage)),Ci}function ji(e,t){var n=Fi();if(null!==n)try{return n.getItem(t)}catch(r){Ci=!1,Ei(e,2,2,"Browser failed read of session storage. "+Rn(r),{exception:ii(r)})}return null}function Ui(e,t,n){var r=Fi();if(null!==r)try{return r.setItem(t,n),!0}catch(i){Ci=!1,Ei(e,2,4,"Browser failed write to session storage. "+Rn(i),{exception:ii(i)})}return!1}function Zi(e,t){var n=Fi();if(null!==n)try{return n[Yn](t),!0}catch(r){Ci=!1,Ei(e,2,6,"Browser failed removal of session storage item. "+Rn(r),{exception:ii(r)})}return!1}var Bi,Hi="AppInsightsPropertiesPlugin",Vi="AppInsightsChannelPlugin",zi="ApplicationInsightsAnalytics",qi="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Wi="sampleRate",Ki="ProcessLegacy",Yi="http.method",Gi="https://dc.services.visualstudio.com/",$i="/v2/track",Ji="not_specified",Xi="iKey";function Qi(e,t,n){var r=t[zn],i=eo(e,t);if(i[zn]!==r){for(var o=0,a=i;void 0!==n[a];)o++,a=i[wr](0,147)+co(o);i=a}return i}function eo(e,t){var n;return t&&(t=xn(t[Kn]()))[zn]>150&&(n=t[wr](0,150),Ei(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function to(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=xn(t)).toString()[zn]>n&&(r=t[Kn]()[wr](0,n),Ei(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function no(e,t){return uo(e,t,2048,66)}function ro(e,t){var n;return t&&t[zn]>32768&&(n=t[wr](0,32768),Ei(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function io(e,t){var n;if(t){var r=""+t;r[zn]>32768&&(n=r[wr](0,32768),Ei(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function oo(e,t){if(t){var n={};cn(t,(function(t,r){if(an(r)&&ei())try{r=ti()[Jn](r)}catch(i){Ei(e,2,49,"custom property is not valid",{exception:i},!0)}r=to(e,r,8192),t=Qi(e,t,n),n[t]=r})),t=n}return t}function ao(e,t){if(t){var n={};cn(t,(function(t,r){t=Qi(e,t,n),n[t]=r})),t=n}return t}function so(e,t){return t?uo(e,t,128,69)[Kn]():t}function uo(e,t,n,r){var i;return t&&(t=xn(t))[zn]>n&&(i=t[wr](0,n),Ei(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function co(e){var t="00"+e;return t.substr(t[zn]-3)}(Bi={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768}).sanitizeKeyAndAddUniqueness=Qi,Bi.sanitizeKey=eo,Bi.sanitizeString=to,Bi.sanitizeUrl=no,Bi.sanitizeMessage=ro,Bi.sanitizeException=io,Bi.sanitizeProperties=oo,Bi.sanitizeMeasurements=ao,Bi.sanitizeId=so,Bi.sanitizeInput=uo,Bi.padNumber=co,Bi.trim=xn;function lo(e,t,n,r,i,o){var a;n=to(r,n)||Ji,(nn(e)||nn(t)||nn(n))&&Ln("Input doesn't contain all required fields");var s="";e[Xi]&&(s=e[Xi],delete e[Xi]);var u=((a={})[Gn]=n,a.time=yn(new Date),a.iKey=s,a.ext=o||{},a.tags=[],a.data={},a.baseType=t,a.baseData=e,a);return nn(i)||cn(i,(function(e,t){u.data[e]=t})),u}!function(){function e(){}e.create=lo}();var fo=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var i=this;i.ver=2,i[Gn]=to(e,t)||Ji,i[ir]=oo(e,n),i[or]=ao(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),po=function(){function e(e,t,n,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,t=t||Ji,o[$n]=ro(e,t),o[ir]=oo(e,r),o[or]=ao(e,i),n&&(o[ur]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),ho=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},go=function(){function e(e,t,n,r,i,o,a,s,u){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var l=new ho;l.count=r>0?r:void 0,l.max=isNaN(o)||null===o?void 0:o,l.min=isNaN(i)||null===i?void 0:i,l[Gn]=to(e,t)||Ji,l.value=n,l.stdDev=isNaN(a)||null===a?void 0:a,c.metrics=[l],c[ir]=oo(e,s),c[or]=ao(e,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),vo=function(){function e(e,t,n,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=so(e,a),s.url=no(e,n),s[Gn]=to(e,t)||Ji,isNaN(r)||(s[yr]=xr(r)),s[ir]=oo(e,i),s[or]=ao(e,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),mo=function(){function e(e,t,n,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=no(e,n),s[Gn]=to(e,t)||Ji,s[ir]=oo(e,i),s[or]=ao(e,o),a&&(s.domProcessing=a.domProcessing,s[yr]=a[yr],s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s[br]=a[br],s.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),yo="error",bo="stack",wo="stackDetails",Eo="errorSrc",So="message",xo="description";function _o(e,t){var n=e;return n&&!hn(n)&&(JSON&&JSON[Jn]?(n=JSON[Jn](e),!t||n&&"{}"!==n||(n=sn(e[Kn])?e[Kn]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function ko(e,t){var n=e;return e&&(n&&!hn(n)&&(n=e[So]||e[xo]||n),n&&!hn(n)&&(n=_o(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"")[er](t)&&(n=t+": "+n),n||""}function Co(e){return e&&e.src&&hn(e.src)&&e.obj&&dn(e.obj)}function To(e){var t=e||"";hn(t)||(t=hn(t[bo])?t[bo]:""+t);var n=t[Vn]("\n");return{src:t,obj:n}}function Po(e){var t=null;if(e)try{if(e[bo])t=To(e[bo]);else if(e[yo]&&e[yo][bo])t=To(e[yo][bo]);else if(e.exception&&e.exception[bo])t=To(e.exception[bo]);else if(Co(e))t=e;else if(Co(e[wo]))t=e[wo];else if(window&&window.opera&&e[So])t=function(e){for(var t=[],n=e[Vn]("\n"),r=0;r1?n[1]:""}catch(r){}return t}function Fo(e){if(e)try{if(!hn(e)){var t=Ao(e),n=_o(e,!1);return n&&"{}"!==n||(e[yo]&&(t=Ao(e=e[yo])),n=_o(e,!0)),0!==n[er](t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Oo=function(){function e(e,t,n,r,i,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,!function(e){try{if(an(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}return!1}(t)?(n||(n={}),a[nr]=[new Ro(e,t,n)],a[ir]=oo(e,n),a[or]=ao(e,r),i&&(a[ur]=i),o&&(a.id=o)):(a[nr]=t[nr]||[],a[ir]=t[ir],a[or]=t[or],t[ur]&&(a[ur]=t[ur]),t.id&&(a.id=t.id),t[cr]&&(a[cr]=t[cr]),nn(t[lr])||(a[lr]=t[lr]))}return e.CreateAutoException=function(e,t,n,r,i,o,a,s){var u,c=Ao(i||o||e);return(u={})[$n]=ko(e,c),u.url=t,u.lineNumber=n,u.columnNumber=r,u.error=Fo(i||o||e),u.evt=Fo(o||e),u[sr]=c,u.stackDetails=Po(a||i||o),u.errorSrc=s,u},e.CreateFromInterface=function(t,n,r,i){var o=n[nr]&&En(n[nr],(function(e){return Ro[fr](t,e)}));return new e(t,ce(ce({},n),{exceptions:o}),r,i)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,i=t.measurements,o=t.severityLevel,a=t.problemGroup,s=t.id,u=t.isManual,c=n instanceof Array&&En(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[nr]=c,e.severityLevel=o,e.properties=r,e.measurements=i,e.problemGroup=a,e.id=s,e.isManual=u,e},e.CreateSimpleException=function(e,t,n,r,i,o){var a;return{exceptions:[(a={},a[hr]=!0,a.message=e,a.stack=i,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=Fo,e}(),Ro=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if(an(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}return!1}(t))r[sr]=t[sr],r[$n]=t[$n],r[bo]=t[bo],r[rr]=t[rr]||[],r[hr]=t[hr];else{var i=t,o=i&&i.evt;pn(i)||(i=i[yo]||o||i),r[sr]=to(e,Ao(i))||Ji,r[$n]=ro(e,ko(t||i,r[sr]))||Ji;var a=t[wo]||Po(t);r[rr]=function(e){var t,n=e.obj;if(n&&n[zn]>0){t=[];var r=0,i=0;if(bn(n,(function(e){var n=e[Kn]();if(No.regex.test(n)){var o=new No(n,r++);i+=o[ar],t.push(o)}})),i>32768)for(var o=0,a=t[zn]-1,s=0,u=o,c=a;o32768){var l=c-u+1;t.splice(u,l);break}u=o,c=a,o++,a--}}return t}(a),dn(r[rr])&&En(r[rr],(function(t){t[dr]=to(e,t[dr]),t[pr]=to(e,t[pr])})),r[bo]=io(e,function(e){var t="";return e&&(e.obj?bn(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(a)),r.hasFullStack=dn(r.parsedStack)&&r.parsedStack[zn]>0,n&&(n[sr]=n[sr]||r[sr])}}return e.prototype.toInterface=function(){var e,t=this,n=t[rr]instanceof Array&&En(t[rr],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[sr],message:t[$n],hasFullStack:t[hr],stack:t[bo]})[rr]=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n[rr]instanceof Array&&En(n[rr],(function(e){return No[fr](e)}))||n[rr];return new e(t,ce(ce({},n),{parsedStack:r}))},e}(),No=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[ar]=0,"string"===typeof t){var i=t;r[gr]=n,r[vr]="",r[dr]=xn(i),r[pr]="",r[mr]=0;var o=i.match(e.regex);o&&o[zn]>=5&&(r[vr]=xn(o[2])||r[vr],r[pr]=xn(o[4]),r[mr]=parseInt(o[5])||0)}else r[gr]=t[gr],r[vr]=t[vr],r[dr]=t[dr],r[pr]=t[pr],r[mr]=t[mr],r[ar]=0;r.sizeInBytes+=r.method[zn],r.sizeInBytes+=r.fileName[zn],r.sizeInBytes+=r.assembly[zn],r[ar]+=e.baseSize,r.sizeInBytes+=r.level.toString()[zn],r.sizeInBytes+=r.line.toString()[zn]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[gr],method:e[vr],assembly:e[dr],fileName:e[pr],line:e[mr]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),Do="toGMTString",Io="toUTCString",Mo="cookie",Lo="expires",jo="enabled",Uo="isCookieUseDisabled",Zo="disableCookiesUsage",Bo="_ckMgr",Ho=null,Vo=null,zo=null,qo=Yr(),Wo={},Ko={};function Yo(e,t){var n=Xo[Bo]||Ko[Bo];return n||(n=Xo[Bo]=Xo(e,t),Ko[Bo]=n),n}function Go(e){return!e||e.isEnabled()}function $o(e,t){return!!(t&&e&&dn(e.ignoreCookies))&&-1!==e.ignoreCookies[qe](t)}function Jo(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t[ze];n=r[Bo]?r[Bo]:Xo(t)}return n||(n=Yo(t,(e||{})[Ee])),n}function Xo(e,t){var n,r=function(e){var t=e[ze]=e[ze]||{};if(Nn(t,"domain",e.cookieDomain,rn,nn),Nn(t,"path",e.cookiePath||"/",null,nn),nn(t[jo])){var n=void 0;tn(e[Uo])||(n=!e[Uo]),tn(e[Zo])||(n=!e[Zo]),t[jo]=n}return t}(e||Ko),i=r.path||"/",o=r.domain,a=!1!==r[jo],s=((n={isEnabled:function(){var e=a&&Qo(t),n=Ko[Bo];return e&&n&&s!==n&&(e=Go(n)),e}})[Ge]=function(e){a=!1!==e},n.set=function(e,t,n,a,u){var c=!1;if(Go(s)&&!function(e,t){return!!(t&&e&&dn(e.blockedCookies)&&-1!==e.blockedCookies[qe](t))||$o(e,t)}(r,e)){var l={},f=xn(t||gt),d=f[qe](";");if(-1!==d&&(f=xn(t[We](0,d)),l=ea(t[We](d+1))),Nn(l,"domain",a||o,Mn,tn),!nn(n)){var p=ni();if(tn(l[Lo])){var h=On()+1e3*n;if(h>0){var g=new Date;g.setTime(h),Nn(l,Lo,ta(g,p?Do:Io)||ta(g,p?Do:Io)||gt,Mn)}}p||Nn(l,"max-age",gt+n,null,tn)}var v=Xr();v&&"https:"===v.protocol&&(Nn(l,"secure",null,null,tn),null===Vo&&(Vo=!oa(($r()||{})[Ke])),Vo&&Nn(l,"SameSite","None",null,tn)),Nn(l,"path",u||i,null,tn),(r.setCookie||ia)(e,na(f,l)),c=!0}return c},n.get=function(e){var t=gt;return Go(s)&&!$o(r,e)&&(t=(r.getCookie||ra)(e)),t},n.del=function(e,t){var n=!1;return Go(s)&&(n=s.purge(e,t)),n},n.purge=function(e,n){var i,o=!1;if(Qo(t)){var a=((i={}).path=n||"/",i[Lo]="Thu, 01 Jan 1970 00:00:01 GMT",i);ni()||(a["max-age"]="0"),(r.delCookie||ia)(e,na(gt,a)),o=!0}return o},n);return s[Bo]=s,s}function Qo(e){if(null===Ho){Ho=!1;try{Ho=void 0!==(qo||{})[Mo]}catch(t){Ei(e,2,68,"Cannot access document.cookie - "+Rn(t),{exception:ii(t)})}}return Ho}function ea(e){var t={};e&&e[Se]&&bn(xn(e)[Ye](";"),(function(e){if(e=xn(e||gt)){var n=e[qe]("=");-1===n?t[e]=null:t[xn(e[We](0,n))]=xn(e[We](n+1))}}));return t}function ta(e,t){return sn(e[t])?e[t]():null}function na(e,t){var n=e||gt;return cn(t,(function(e,t){n+="; "+e+(nn(t)?gt:"="+t)})),n}function ra(e){var t=gt;if(qo){var n=qo[Mo]||gt;zo!==n&&(Wo=ea(n),zo=n),t=xn(Wo[e]||gt)}return t}function ia(e,t){qo&&(qo[Mo]=e+"="+t)}function oa(e){return!!hn(e)&&(!(!fn(e,"CPU iPhone OS 12")&&!fn(e,"iPad; CPU OS 12"))||(!!(fn(e,"Macintosh; Intel Mac OS X 10_14")&&fn(e,"Version/index.html")&&fn(e,"Safari"))||(!(!fn(e,"Macintosh; Intel Mac OS X 10_14")||!ln(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!fn(e,"Chrome/5")&&!fn(e,"Chrome/6"))||(!(!fn(e,"UnrealEngine")||fn(e,"Chrome"))||!(!fn(e,"UCBrowser/12")&&!fn(e,"UCBrowser/11")))))))}var aa=4294967296,sa=4294967295,ua=!1,ca=123456789,la=987654321;function fa(e){e<0&&(e>>>=0),ca=123456789+e&sa,la=987654321-e&sa,ua=!0}function da(){try{var e=2147483647&On();fa((Math.random()*aa^e)+e)}catch(t){}}function pa(e){var t=0,n=zr(Nr)||zr(Dr);return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&sa),0===t&&ni()&&(ua||da(),t=ha()&sa),0===t&&(t=Math.floor(aa*Math.random()|0)),e||(t>>>=0),t}function ha(e){var t=((la=36969*(65535&la)+(la>>16)&sa)<<16)+(65535&(ca=18e3*(65535&ca)+(ca>>16)&sa))>>>0&sa|0;return e||(t>>>=0),t}function ga(e){void 0===e&&(e=22);for(var t=pa()>>>0,n=0,r=gt;r[Se]>>=6,5===n&&(t=(pa()<<2&4294967295|3&t)>>>0,n=0);return r}var va=re,ma="2.8.15",ya="."+ga(6),ba=0;function wa(e){return 1===e[Je]||9===e[Je]||!+e[Je]}function Ea(e,t){var n=t[e.id];if(!n){n={};try{wa(t)&&(function(e,t,n){if(va)try{return va(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(r){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(r){}}return n}function Sa(e,t){return void 0===t&&(t=!1),un(e+ba+++(t?"."+ma:gt)+ya)}function xa(e){var t={id:Sa("_aiData-"+(e||gt)+"."+ma),accept:function(e){return wa(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[un(n)]:(i&&((o=Ea(t,e))[un(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return t}var _a="on",ka="attachEvent",Ca="addEventListener",Ta="detachEvent",Pa="removeEventListener",Aa="events",Fa="visibilitychange",Oa="pagehide",Ra="unload",Na="beforeunload",Da=Sa("aiEvtPageHide"),Ia=(Sa("aiEvtPageShow"),/\.[\.]+/g),Ma=/[\.]+$/,La=1,ja=xa("events"),Ua=/^([^.]*)(?:\.(.+)|)/;function Za(e){return e&&e[Qe]?e[Qe](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,gt):e}function Ba(e,t){var n;if(t){var r=gt;dn(t)?(r=gt,bn(t,(function(e){(e=Za(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=Za(t),r&&("."!==r[0]&&(r="."+r),e=(e||gt)+r)}var i=Ua.exec(e||gt)||[];return(n={})[it]=i[1],n.ns=(i[2]||gt).replace(Ia,".").replace(Ma,gt)[Ye](".").sort().join("."),n}function Ha(e,t,n){void 0===n&&(n=!0);var r=ja.get(e,Aa,{},n),i=r[t];return i||(i=r[t]=[]),i}function Va(e,t,n,r){e&&t&&t[it]&&(e[Pa]?e[Pa](t[it],n,r):e[Ta]&&e[Ta](_a+t[it],n))}function za(e,t,n,r){for(var i=t[Se];i--;){var o=t[i];o&&(n.ns&&n.ns!==o.evtName.ns||r&&!r(o)||(Va(e,o.evtName,o[ot],o.capture),t[Ne](i,1)))}}function qa(e,t){return t?Ba("xx",dn(t)?[e].concat(t):[e,t]).ns[Ye]("."):e}function Wa(e,t,n,r,i){var o;void 0===i&&(i=!1);var a=!1;if(e)try{var s=Ba(t,r);if(a=function(e,t,n,r){var i=!1;return e&&t&&t[it]&&n&&(e[Ca]?(e[Ca](t[it],n,r),i=!0):e[ka]&&(e[ka](_a+t[it],n),i=!0)),i}(e,s,n,i),a&&ja.accept(e)){var u=((o={guid:La++,evtName:s})[ot]=n,o.capture=i,o);Ha(e,s.type)[me](u)}}catch(c){}return a}function Ka(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var o=Ba(t,r),a=!1;!function(e,t,n){if(t[it])za(e,Ha(e,t[it]),t,n);else{var r=ja.get(e,Aa,{});cn(r,(function(r,i){za(e,i,t,n)})),0===Cn(r)[Se]&&ja.kill(e,Aa)}}(e,o,(function(e){return!((!o.ns||n)&&e[ot]!==n)&&(a=!0,!0)})),a||Va(e,o,n,i)}catch(s){}}function Ya(e,t,n){var r=!1,i=Wr();i&&(r=Wa(i,e,t,n),r=Wa(i.body,e,t,n)||r);var o=Yr();return o&&(r=Wa(o,e,t,n)||r),r}function Ga(e,t,n,r){var i=!1;return t&&e&&e[Se]>0&&bn(e,(function(e){e&&(n&&-1!==wn(n,e)||(i=Ya(e,t,r)||i))})),i}function $a(e,t,n){e&&dn(e)&&bn(e,(function(e){e&&function(e,t,n){var r=Wr();r&&(Ka(r,e,t,n),Ka(r.body,e,t,n));var i=Yr();i&&Ka(i,e,t,n)}(e,t,n)}))}function Ja(e,t,n){return function(e,t,n,r){var i=!1;return t&&e&&dn(e)&&!(i=Ga(e,t,n,r))&&n&&n[Se]>0&&(i=Ga(e,t,null,r)),i}([Na,Ra,Oa],e,t,n)}function Xa(e,t,n){var r=qa(Da,n),i=Ga([Oa],e,t,r);return t&&-1!==wn(t,Fa)||(i=Ga([Fa],(function(t){var n=Yr();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=Xa(e,null,n)),i}function Qa(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=gt,r=0;r<4;r++)n+=t[15&(e=pa())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&pa())|0];return n[$e](0,8)+n[$e](9,4)+"4"+n[$e](13,3)+i+n[$e](16,3)+n[$e](19,12)}var es="00",ts="ff",ns="00000000000000000000000000000000",rs="0000000000000000";function is(e,t,n){return!(!e||e[Se]!==t||e===n)&&!!e.match(/^[\da-f]*$/)}function os(e,t,n){return is(e,t)?e:n}function as(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[Se]<2;)t="0"+t;return t}function ss(e,t,n,r){var i;return(i={})[ht]=is(r,2,ts)?r:es,i[ft]=us(e)?e:Qa(),i.spanId=cs(t)?t:Qa()[$e](0,16),i.traceFlags=n>=0&&n<=255?n:1,i}function us(e){return is(e,32,ns)}function cs(e){return is(e,16,rs)}function ls(e){if(e){var t=as(e[pt]);is(t,2)||(t="01");var n=e[ht]||es;return"00"!==n&&"ff"!==n&&(n=es),"".concat(n,"-").concat(os(e.traceId,32,ns),"-").concat(os(e.spanId,16,rs),"-").concat(t)}return""}function fs(e){var t=null;if(sn(Event))t=new Event(e);else{var n=Yr();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var ds=function(e){var t={};return cn(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),An(t)}({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),ps=Yr()||{},hs=0,gs=[null,null,null,null,null];function vs(e){var t=hs,n=gs,r=n[t];return ps.createElement?n[t]||(r=n[t]=ps.createElement("a")):r={host:bs(e,!0)},r.href=e,++t>=n[zn]&&(t=0),hs=t,r}function ms(e){var t,n=vs(e);return n&&(t=n.href),t}function ys(e,t){return e?e.toUpperCase()+" "+t:t}function bs(e,t){var n=ws(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[zn]>3&&hn(r[2])&&r[2][zn]>0)return r[2]+(r[3]||"")}return n}function ws(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[zn]>2&&hn(r[2])&&r[2][zn]>0&&(n=r[2]||"",t&&r[zn]>2)){var i=(r[1]||"")[qn](),o=r[3]||"";("http"===i&&":80"===o||"https"===i&&":443"===o)&&(o=""),n+=o}}return n}var Es=[Gi+$i,"https://breeze.aimon.applicationinsights.io"+$i,"https://dc-int.services.visualstudio.com"+$i];function Ss(e){return-1!==wn(Es,e[qn]())}var xs={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[Qn])for(var r=0;r0},getCorrelationContext:function(e){if(e){var t=xs.getCorrelationContextValue(e,ds[1]);if(t&&t!==xs.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e[Vn](","),r=0;r0)return t}return On()}function ks(e,t){var n=null;return 0===e||0===t||nn(e)||nn(t)||(n=t-e),n}function Cs(e,t){var n=e||{};return{getName:function(){return n[Gn]},setName:function(e){t&&t.setName(e),n[Gn]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),us(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),cs(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var Ts=function(){function e(e,t,n,r,i,o,a,s,u,c,l,f){void 0===u&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var d=this;d.ver=2,d.id=t,d[yr]=xr(i),d.success=o,d.resultCode=a+"",d.type=to(e,u);var p=function(e,t,n,r){var i,o=r,a=r;if(t&&t[zn]>0){var s=vs(t);if(i=s.host,!o)if(null!=s[Xn]){var u=0===s.pathname[zn]?"/":s[Xn];"/"!==u.charAt(0)&&(u="/"+u),a=s[Xn],o=to(e,n?n+" "+u:u)}else o=to(e,t)}else i=r,o=r;return{target:i,name:o,data:a}}(e,n,s,r);d.data=no(e,r)||p.data,d.target=to(e,p.target),c&&(d.target="".concat(d.target," | ").concat(c)),d[Gn]=to(e,p[Gn]),d[ir]=oo(e,l),d[or]=ao(e,f)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),Ps="ctx",As="ParentContextKey",Fs="ChildrenContextKey",Os=null,Rs=function(){function e(t,n,r){var i,o=this,a=!1;(o.start=On(),o[he]=t,o[Le]=r,o[st]=function(){return!1},sn(n))&&(a=Tn(o,"payload",(function(){return!i&&sn(n)&&(i=n(),n=null),i})));o[ut]=function(t){return t?t===e[As]||t===e[Fs]?o[t]:(o[Ps]||{})[t]:null},o[ct]=function(t,n){if(t)if(t===e[As])o[t]||(o[st]=function(){return!0}),o[t]=n;else if(t===e[Fs])o[t]=n;else{(o[Ps]=o[Ps]||{})[t]=n}},o[lt]=function(){var t=0,r=o[ut](e[Fs]);if(dn(r))for(var i=0;i0&&(bn(t,(function(e){try{e.func[rt](e.self,e.args)}catch(t){Ei(n[Ee],2,73,"Unexpected Exception during onComplete - "+ii(t))}})),o=[])}return e},ctx:{core:function(){return n},diagLog:function(){return yi(n,t)},getCfg:function(){return t},getExtCfg:s,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=s(e,null);o&&!nn(o[n])?i=o[n]:t&&!nn(t[n])&&(i=t[n]);return nn(i)?r:i},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){var t;for(;t=a._next();){var n=t[Fe]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r0){var a=null;bn(e,(function(e){if(o||r!==e||(o=!0),o&&e&&sn(e[Et])){var s=function(e,t,n){var r,i=null,o=sn(e[Et]),a=sn(e[He]);r=e?e[ve]+"-"+e[St]+"-"+Vs++:"Unknown-0-"+Vs++;var s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:l,unload:f,update:d,_id:r,_setNext:function(e){i=e}};function u(){var r;return e&&sn(e[Hs])&&(r=e[Hs]()),r||(r=qs(s,t,n)),r}function c(t,n,o,a,s){var u=!1,c=e?e[ve]:Zs,l=t[Bs];return l||(l=t[Bs]={}),t.setNext(i),e&&Is(t[mt](),(function(){return c+":"+o}),(function(){l[r]=!0;try{var e=i?i._id:gt;e&&(l[e]=!1),u=n(t)}catch(s){var a=!i||l[i._id];a&&(u=!0),i&&a||Ei(t[Be](),1,73,"Plugin ["+c+"] failed during "+o+" - "+ii(s)+", run flags: "+ii(l))}}),a,s),u}function l(t,n){function r(n){if(!e||!o)return!1;var r=Ls(e);return!r[De]&&!r[bt]&&(a&&e[He](i),e[Et](t,n),!0)}c(n=n||u(),r,"processTelemetry",(function(){return{item:t}}),!t.sync)||n[_e](t)}function f(t,n){function r(){var r=!1;if(e){var i=Ls(e),o=e[mt]||i[mt];!e||o&&o!==t.core()||i[De]||(i[mt]=null,i[De]=!0,i[ye]=!1,e[De]&&!0===e[De](t,n)&&(r=!0))}return r}c(t,r,"unload",(function(){}),n[Le])||t[_e](n)}function d(t,n){function r(){var r=!1;if(e){var i=Ls(e),o=e[mt]||i[mt];!e||o&&o!==t.core()||i[De]||e[Ue]&&!0===e[Ue](t,n)&&(r=!0)}return r}c(t,r,"update",(function(){}),!1)||t[_e](n)}return Fn(s)}(e,t,n);i||(i=s),a&&a._setNext(s),a=s}}))}return r&&!i?Ys([r],t,n):i}var Gs="_aiHooks",$s=["req","rsp","hkErr","fnErr"];function Js(e,t){if(e)for(var n=0;n=0&&i<=2&&Js(e,(function(e,o){var a=e.cbks,s=a[$s[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s[Xe](t.inst,n)}catch(l){var u=t.err;try{var c=a[$s[2]];c&&(t.err=l,c[Xe](t.inst,n))}catch(f){}finally{t.err=u}}}}))}function Qs(e,t,n,r){var i=null;return e&&(on(e,t)?i=e:n&&(i=Qs(en(e),t,r,!1))),i}function eu(e,t,n,r){var i=n&&n[Gs];if(!i){var o=function(e){return function(){var t,n=arguments,r=e.h,i=((t={})[he]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,a=s([i],n)},t),o=[],a=s([i],n);function s(e,t){return Js(t,(function(t){e[me](t)})),e}i.evt=zr("event"),Xs(r,i,a,o,0);var u=e.f;if(u)try{i.rslt=u[Xe](this,n)}catch(c){throw i.err=c,Xs(r,i,a,o,3),c}return Xs(r,i,a,o,1),i.rslt}}(i={i:0,n:t,f:n,h:[]});o[Gs]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;Js(i.h,(function(t,n){if(t.id===e)return i.h[Ne](n,1),1}))}};return i.i++,i.h[me](a),a}function tu(e,t,n,r,i){if(void 0===r&&(r=!0),e&&t&&n){var o=Qs(e,t,r,i);if(o){var a=o[t];if(typeof a===Y)return eu(o,t,a,n)}}return null}function nu(e,t,n,r,i){if(e&&t&&n){var o=Qs(e,t,r,i)||e;if(o)return eu(o,t,o[t],n)}return null}function ru(){var e=[];return{add:function(t){t&&e[me](t)},run:function(t,n){bn(e,(function(e){try{e(t,n)}catch(r){Ei(t[Be](),2,73,"Unexpected error calling unload handler - "+ii(r))}})),e=[]}}}var iu="getPlugin",ou=function(){function e(){var t,n,r,i,o,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||qs(null,{},a[mt]);t=r&&r[iu]?i[Ve](null,r[iu]):i[Ve](null,r)}return t}function u(e,t,i){e&&Nn(e,wt,[],null,nn),!i&&t&&(i=t[ke]()[Ze]());var o=r;r&&r[iu]&&(o=r[iu]()),a[mt]=t,n=qs(i,e,t,o)}function c(){t=!1,a[mt]=null,n=null,r=null,o=[],i=ru()}c(),K(e,a,(function(e){e[pe]=function(e,n,r,i){u(e,n,i),t=!0},e[De]=function(t,n){var a,s=e[mt];if(s&&(!t||s===t[mt]())){var u,l=!1,f=t||Ws(null,s,r&&r[iu]?r[iu]():r),d=n||((a={reason:0})[Le]=!1,a);return e[je]&&!0===e[je](f,d,p)?u=!0:p(),u}function p(){if(!l){l=!0,i.run(f,n);var e=o;o=[],bn(e,(function(e){e.rm()})),!0===u&&f[_e](d),c()}}},e[Ue]=function(t,n){var i=e[mt];if(i&&(!t||i===t[mt]())){var o,a=!1,s=t||Ks(null,i,r&&r[iu]?r[iu]():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,l)?o=!0:l(),o}function l(){a||(a=!0,u(s.getCfg(),s.core(),s[Ze]()))}},e._addHook=function(e){e&&(dn(e)?o=o.concat(e):o[me](e))},Un(e,"_addUnloadCb",(function(){return i}),"add")})),a[Be]=function(e){return s(e)[Be]()},a[ye]=function(){return t},a.setInitialized=function(e){t=e},a[He]=function(e){r=e},a[_e]=function(e,t){t?t[_e](e):r&&sn(r[Et])&&r[Et](e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),au="toString",su="disableExceptionTracking",uu="autoTrackPageVisitTime",cu="overridePageViewDuration",lu="enableUnhandledPromiseRejectionTracking",fu="samplingPercentage",du="isStorageUseDisabled",pu="isBrowserLinkTrackingEnabled",hu="enableAutoRouteTracking",gu="namePrefix",vu="disableFlushOnBeforeUnload",mu="core",yu="dataType",bu="envelopeType",wu="diagLog",Eu="track",Su="trackPageView",xu="trackPreviousPageVisit",_u="sendPageViewInternal",ku="sendPageViewPerformanceInternal",Cu="populatePageViewPerformanceEvent",Tu="href",Pu="sendExceptionInternal",Au="exception",Fu="error",Ou="_onerror",Ru="errorSrc",Nu="lineNumber",Du="columnNumber",Iu="message",Mu="CreateAutoException",Lu="addTelemetryInitializer",ju="duration",Uu="length",Zu="isPerformanceTimingSupported",Bu="getPerformanceTiming",Hu="navigationStart",Vu="shouldCollectDuration",zu="isPerformanceTimingDataReady",qu="responseStart",Wu="loadEventEnd",Ku="responseEnd",Yu="connectEnd",Gu="pageVisitStartTime",$u=null;var Ju=function(){function e(t,n,r,i){K(e,this,(function(e){var o,a=null,s=[],u=!1;function c(e){r&&r.flush(e)}function l(){a||(a=setTimeout((function(){a=null;var e=s.slice(0),t=!1;s=[],bn(e,(function(e){e()?t=!0:s.push(e)})),s[Uu]>0&&l(),t&&c(!0)}),100))}function f(e){s.push(e),l()}r&&(o=r.logger),e[Su]=function(e,r){var a=e.name;if(nn(a)||"string"!==typeof a){var s=Yr();a=e.name=s&&s.title||""}var l=e.uri;if(nn(l)||"string"!==typeof l){var d=Xr();l=e.uri=d&&d[Tu]||""}if(!i[Zu]())return t[_u](e,r),c(!0),void(function(){if(null==$u)try{$u=!!(self&&self instanceof WorkerGlobalScope)}catch(e){$u=!1}return $u}()||Ei(o,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var p,h,g=!1,v=i[Bu]()[Hu];v>0&&(p=ks(v,+new Date),i[Vu](p)||(p=void 0)),nn(r)||nn(r[ju])||(h=r[ju]),!n&&isNaN(h)||(isNaN(h)&&(r||(r={}),r[ju]=p),t[_u](e,r),c(!0),g=!0);r||(r={}),f((function(){var n=!1;try{if(i[zu]()){n=!0;var s={name:a,uri:l};i[Cu](s),s.isValid||g?(g||(r[ju]=s.durationMs,t[_u](e,r)),u||(t[ku](s,r),u=!0)):(r[ju]=p,t[_u](e,r))}else v>0&&ks(v,+new Date)>6e4&&(n=!0,g||(r[ju]=6e4,t[_u](e,r)))}catch(c){Ei(o,1,38,"trackPageView failed on page load calculation: "+Rn(c),{exception:ii(c)})}return n}))},e.teardown=function(e,t){if(a){clearTimeout(a),a=null;var n=s.slice(0);s=[],bn(n,(function(e){e()&&!0}))}}}))}return e.__ieDyn=1,e}(),Xu=["googlebot","adsbot-google","apis-google","mediapartners-google"];function Qu(){var e=Qr();return e&&!!e.timing}function ec(){var e=Qr(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[Hu]>0&&t[qu]>0&&t.requestStart>0&&t[Wu]>0&&t[Ku]>0&&t[Yu]>0&&t.domLoading>0}function tc(){return Qu()?Qr().timing:null}function nc(){return function(){var e=Qr();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[Uu]>0}()?Qr().getEntriesByType("navigation")[0]:null}function rc(){for(var e=[],t=0;t=36e5)return!1;return!0}var ic=function(){function e(t){var n=yi(t);K(e,this,(function(e){e[Cu]=function(t){t.isValid=!1;var r=nc(),i=tc(),o=0,a=0,s=0,u=0,c=0;(r||i)&&(r?(o=r[ju],a=0===r.startTime?r[Yu]:ks(r.startTime,r[Yu]),s=ks(r.requestStart,r[qu]),u=ks(r[qu],r[Ku]),c=ks(r.responseEnd,r[Wu])):(o=ks(i[Hu],i[Wu]),a=ks(i[Hu],i[Yu]),s=ks(i.requestStart,i[qu]),u=ks(i[qu],i[Ku]),c=ks(i.responseEnd,i[Wu])),0===o?Ei(n,2,10,"error calculating page view performance.",{total:o,network:a,request:s,response:u,dom:c}):e[Vu](o,a,s,u,c)?o=100)&&(e[fu]=100),e[du]=Sr(e[du]),e[pu]=Sr(e[pu]),e[hu]=Sr(e[hu]),e[gu]=e[gu]||"",e.enableDebug=Sr(e.enableDebug),e[vu]=Sr(e[vu]),e.disableFlushOnUnload=Sr(e.disableFlushOnUnload,e[vu]),e}function dc(e){tn(e[du])||(e[du]?Oi():(ki=Ni(!0),Ci=Li(!0)))}var pc=function(e){function t(){var n,r,i,o,a,s,u,c,l,f,d,p,h,g,v=e.call(this)||this;v.identifier=zi,v.priority=180,v.autoRoutePVDelay=500;var m,y,b;return K(t,v,(function(e,t){var v=t._addHook;function w(t,n,r,i,o){e[wu]().throwInternal(t,n,r,i,o)}function E(){n=null,r=null,i=null,o=null,a=null,s=null,u=!1,c=!1,l=!1,f=!1,d=!1,p=!1,h=!1,g=!1,0;var e=Xr(!0);m=e&&e[Tu]||"",y=null,b=null}E(),e.getCookieMgr=function(){return Jo(e[mu])},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=lo(t,fo[yu],fo[bu],e[wu](),n);e[mu][Eu](r)}catch(i){w(2,39,"trackTrace failed, trace will not be collected: "+Rn(i),{exception:ii(i)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(t){w(1,29,"startTrackEvent failed, event will not be collected: "+Rn(t),{exception:ii(t)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(i){w(1,30,"stopTrackEvent failed, event will not be collected: "+Rn(i),{exception:ii(i)})}},e.trackTrace=function(t,n){try{var r=lo(t,po[yu],po[bu],e[wu](),n);e[mu][Eu](r)}catch(i){w(2,39,"trackTrace failed, trace will not be collected: "+Rn(i),{exception:ii(i)})}},e.trackMetric=function(t,n){try{var r=lo(t,go[yu],go[bu],e[wu](),n);e[mu][Eu](r)}catch(i){w(1,36,"trackMetric failed, metric will not be collected: "+Rn(i),{exception:ii(i)})}},e[Su]=function(t,n){try{var r=t||{};i[Su](r,ce(ce(ce({},r.properties),r.measurements),n)),e.config[uu]&&a[xu](r.name,r.uri)}catch(o){w(1,37,"trackPageView failed, page view will not be collected: "+Rn(o),{exception:ii(o)})}},e[_u]=function(t,n,r){var i=Yr();i&&(t.refUri=void 0===t.refUri?i.referrer:t.refUri);var o=lo(t,vo[yu],vo[bu],e[wu](),n,r);e[mu][Eu](o),0},e[ku]=function(t,n,r){var i=lo(t,mo[yu],mo[bu],e[wu](),n,r);e[mu][Eu](i)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{o[Cu](r),e[ku](r,n)}catch(i){w(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Rn(i),{exception:ii(i)})}},e.startTrackPage=function(e){try{if("string"!==typeof e){var t=Yr();e=t&&t.title||""}r.start(e)}catch(n){w(1,31,"startTrackPage failed, page view may not be collected: "+Rn(n),{exception:ii(n)})}},e.stopTrackPage=function(t,n,i,o){try{if("string"!==typeof t){var s=Yr();t=s&&s.title||""}if("string"!==typeof n){var u=Xr();n=u&&u[Tu]||""}r.stop(t,n,i,o),e.config[uu]&&a[xu](t,n)}catch(c){w(1,32,"stopTrackPage failed, page view will not be collected: "+Rn(c),{exception:ii(c)})}},e[Pu]=function(t,n,r){var i=t&&(t[Au]||t[Fu])||pn(t)&&t||{name:t&&typeof t,message:t||Ji};t=t||{};var o=lo(new Oo(e[wu](),i,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),Oo[yu],Oo[bu],e[wu](),n,r);e[mu][Eu](o)},e.trackException=function(t,n){t&&!t[Au]&&t[Fu]&&(t[Au]=t[Fu]);try{e[Pu](t,n)}catch(r){w(1,35,"trackException failed, exception will not be collected: "+Rn(r),{exception:ii(r)})}},e[Ou]=function(t){var n=t&&t[Fu],r=t&&t.evt;try{if(!r){var i=Wr();i&&(r=i.event)}var o=t&&t.url||(Yr()||{}).URL,a=t[Ru]||"window.onerror@"+o+":"+(t[Nu]||0)+":"+(t[Du]||0),s={errorSrc:a,url:o,lineNumber:t[Nu]||0,columnNumber:t[Du]||0,message:t[Iu]};_r(t.message,t.url,t.lineNumber,t.columnNumber,t[Fu])?function(t,n){var r=lo(t,Oo[yu],Oo[bu],e[wu](),n);e[mu][Eu](r)}(Oo[Mu]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",o,t[Nu]||0,t[Du]||0,n,r,null,a),s):(t[Ru]||(t[Ru]=a),e.trackException({exception:t,severityLevel:3},s))}catch(c){var u=n?n.name+", "+n[Iu]:"null";w(1,11,"_onError threw exception while logging error, error will not be collected: "+Rn(c),{exception:ii(c),errorString:u})}},e[Lu]=function(t){if(e[mu])return e[mu][Lu](t);s||(s=[]),s.push(t)},e.initialize=function(w,E,S,x){if(!e.isInitialized()){nn(E)&&Ln("Error initializing"),t.initialize(w,E,S,x),w.storagePrefix&&Ri(w.storagePrefix);try{b=qa(Sa(e.identifier),E.evtNamespace&&E.evtNamespace()),s&&(bn(s,(function(e){E[Lu](e)})),s=null);var _=function(t){var n=qs(null,t,e[mu]),r=e.identifier,i=fc(t),o=e.config=n.getExtCfg(r);void 0!==i&&cn(i,(function(e,t){o[e]=n.getConfig(r,e,t),void 0===o[e]&&(o=t)}));return o}(w);dc(_),o=new ic(e[mu]),i=new Ju(e,_[cu],e[mu],o),a=new oc(e[wu](),(function(t,n,r){return function(t,n,r){var i={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},i)}(t,n,r)})),function(t,n){u=t[pu]||n[pu],function(){if(!c&&u){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(u&&e.baseType===Ts[yu]){var n=e.baseData;if(n)for(var r=0;r=0)return!1}return!0};e[Lu](n),c=!0}}()}(_,w),(n=new sc(e[wu](),"trackEvent")).action=function(t,n,r,i,o){i||(i={}),o||(o={}),i.duration=r[au](),e.trackEvent({name:t,properties:i,measurements:o})},(r=new sc(e[wu](),"trackPageView")).action=function(t,n,r,i,o){nn(i)&&(i={}),i.duration=r[au]();var a={name:t,uri:n,properties:i,measurements:o};e[_u](a,i)},qr()&&(function(t){var n=Wr(),r=Xr(!0);d=t[su],d||p||t.autoExceptionInstrumented||(v(nu(n,"onerror",{ns:b,rsp:function(t,n,r,i,o,a){d||!0===t.rslt||e[Ou](Oo[Mu](n,r,i,o,a,t.evt))}},!1)),p=!0);!function(t,n,r){h=!0===t[lu],h&&!g&&(v(nu(n,"onunhandledrejection",{ns:b,rsp:function(t,n){h&&!0!==t.rslt&&e[Ou](Oo[Mu](function(e){if(e&&e.reason){var t=e.reason;return!hn(t)&&sn(t[au])?t[au]():ii(t)}return e||""}(n),r?r[Tu]:"",0,0,n,t.evt))}},!1)),g=!0,t.autoUnhandledPromiseInstrumented=g)}(t,n,r)}(_),function(t){var n=Wr(),r=Xr(!0);if(l=!0===t[hu],n&&l&&Jr()){var i=Jr()?history:zr("history");sn(i.pushState)&&sn(i.replaceState)&&typeof Event!==$&&function(t,n,r,i){var o=t[gu]||"";function a(){l&&uc(n,fs(o+"locationchange"))}function s(){if(y?(m=y,y=i&&i[Tu]||""):y=i&&i[Tu]||"",l){var t=function(){var t=null;e[mu]&&e[mu].getTraceCtx&&(t=e[mu].getTraceCtx(!1));if(!t){var n=e[mu].getPlugin(Hi);if(n){var r=n.plugin.context;r&&(t=Cs(r.telemetryTrace))}}return t}();if(t){t.setTraceId(Qa());var n="_unknown_";i&&i.pathname&&(n=i.pathname+(i.hash||"")),t.setName(to(e[wu](),n))}setTimeout(function(t){e[Su]({refUri:t,properties:{duration:0}})}.bind(e,m),e.autoRoutePVDelay)}}f||(v(nu(r,"pushState",{ns:b,rsp:function(){l&&(uc(n,fs(o+"pushState")),uc(n,fs(o+"locationchange")))}},!0)),v(nu(r,"replaceState",{ns:b,rsp:function(){l&&(uc(n,fs(o+"replaceState")),uc(n,fs(o+"locationchange")))}},!0)),Wa(n,o+"popstate",a,b),Wa(n,o+"locationchange",s,b),f=!0)}(t,n,i,r)}}(_))}catch(k){throw e.setInitialized(!1),k}}},e._doTeardown=function(e,t){i&&i.teardown(e,t),Ka(window,null,null,b),E()},Tn(e,"_pageViewManager",(function(){return i})),Tn(e,"_pageViewPerformanceManager",(function(){return o})),Tn(e,"_pageVisitTimeManager",(function(){return a})),Tn(e,"_evtNamespace",(function(){return"."+b}))})),v}return fe(t,e),t.Version="2.8.15",t.getDefaultConfig=fc,t}(ou);function hc(e){var t="ai."+e+".";return function(e){return t+e}}var gc,vc=hc("application"),mc=hc("device"),yc=hc("location"),bc=hc("operation"),wc=hc("session"),Ec=hc("user"),Sc=hc("cloud"),xc=hc("internal"),_c=function(e){function t(){return e.call(this)||this}return fe(t,e),t}((gc={applicationVersion:vc("ver"),applicationBuild:vc("build"),applicationTypeId:vc("typeId"),applicationId:vc("applicationId"),applicationLayer:vc("layer"),deviceId:mc("id"),deviceIp:mc("ip"),deviceLanguage:mc("language"),deviceLocale:mc("locale"),deviceModel:mc("model"),deviceFriendlyName:mc("friendlyName"),deviceNetwork:mc("network"),deviceNetworkName:mc("networkName"),deviceOEMName:mc("oemName"),deviceOS:mc("os"),deviceOSVersion:mc("osVersion"),deviceRoleInstance:mc("roleInstance"),deviceRoleName:mc("roleName"),deviceScreenResolution:mc("screenResolution"),deviceType:mc("type"),deviceMachineName:mc("machineName"),deviceVMName:mc("vmName"),deviceBrowser:mc("browser"),deviceBrowserVersion:mc("browserVersion"),locationIp:yc("ip"),locationCountry:yc("country"),locationProvince:yc("province"),locationCity:yc("city"),operationId:bc("id"),operationName:bc("name"),operationParentId:bc("parentId"),operationRootId:bc("rootId"),operationSyntheticSource:bc("syntheticSource"),operationCorrelationVector:bc("correlationVector"),sessionId:wc("id"),sessionIsFirst:wc("isFirst"),sessionIsNew:wc("isNew"),userAccountAcquisitionDate:Ec("accountAcquisitionDate"),userAccountId:Ec("accountId"),userAgent:Ec("userAgent"),userId:Ec("id"),userStoreRegion:Ec("storeRegion"),userAuthUserId:Ec("authUserId"),userAnonymousUserAcquisitionDate:Ec("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Ec("authUserAcquisitionDate"),cloudName:Sc("name"),cloudRole:Sc("role"),cloudRoleVer:Sc("roleVer"),cloudRoleInstance:Sc("roleInstance"),cloudEnvironment:Sc("environment"),cloudLocation:Sc("location"),cloudDeploymentUnit:Sc("deploymentUnit"),internalNodeName:xc("nodeName"),internalSdkVersion:xc("sdkVersion"),internalAgentVersion:xc("agentVersion"),internalSnippet:xc("snippet"),internalSdkSrc:xc("sdkSrc")},function(){var e=this;gc&&cn(gc,(function(t,n){e[t]=n}))})),kc={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},Cc=new _c,Tc=function(e,t,n){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[Gn]=to(e,n)||Ji,i.data=t,i.time=yn(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},Pc=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},Ac="duration",Fc="tags",Oc="deviceType",Rc="data",Nc="name",Dc="traceID",Ic="length",Mc="stringify",Lc="measurements",jc="dataType",Uc="envelopeType",Zc="toString",Bc="onLine",Hc="isOnline",Vc="enqueue",zc="count",qc="push",Wc="emitLineDelimitedJson",Kc="clear",Yc="batchPayloads",Gc="markAsSent",$c="clearSent",Jc="bufferOverride",Xc="BUFFER_KEY",Qc="SENT_BUFFER_KEY",el="MAX_BUFFER_SIZE",tl="namePrefix",nl="maxBatchSizeInBytes",rl="triggerSend",il="diagLog",ol="onunloadDisableBeacon",al="isBeaconApiDisabled",sl="_sender",ul="_senderConfig",cl="enableSessionStorageBuffer",ll="_buffer",fl="samplingPercentage",dl="instrumentationKey",pl="endpointUrl",hl="customHeaders",gl="disableXhr",vl="onunloadDisableFetch",ml="disableTelemetry",yl="baseType",bl="sampleRate",wl="convertUndefined",El="_onError",Sl="_onPartialSuccess",xl="_onSuccess",_l="itemsAccepted",kl="isRetryDisabled",Cl="setRequestHeader",Tl="maxBatchInterval",Pl="eventsSendRequest",Al="disableInstrumentationKeyValidation",Fl="getSamplingScore",Ol="baseType",Rl="baseData",Nl="properties",Dl="true";function Il(e,t,n){return Nn(e,t,n,Mn)}function Ml(e,t,n){nn(e)||cn(e,(function(e,r){gn(r)?n[e]=r:hn(r)?t[e]=r:ei()&&(t[e]=ti()[Mc](r))}))}function Ll(e,t){nn(e)||cn(e,(function(n,r){e[n]=r||t}))}function jl(e,t,n,r){var i=new Tc(e,r,t);Il(i,"sampleRate",n[Wi]),(n[Rl]||{}).startTime&&(i.time=yn(n[Rl].startTime)),i.iKey=n.iKey;var o=n.iKey.replace(/-/g,"");return i[Nc]=i[Nc].replace("{0}",o),function(e,t,n){var r=n[Fc]=n[Fc]||{},i=t.ext=t.ext||{},o=t[Fc]=t[Fc]||[],a=i.user;a&&(Il(r,Cc.userAuthUserId,a.authId),Il(r,Cc.userId,a.id||a.localId));var s=i.app;s&&Il(r,Cc.sessionId,s.sesId);var u=i.device;u&&(Il(r,Cc.deviceId,u.id||u.localId),Il(r,Cc[Oc],u.deviceClass),Il(r,Cc.deviceIp,u.ip),Il(r,Cc.deviceModel,u.model),Il(r,Cc[Oc],u[Oc]));var c=t.ext.web;if(c){Il(r,Cc.deviceLanguage,c.browserLang),Il(r,Cc.deviceBrowserVersion,c.browserVer),Il(r,Cc.deviceBrowser,c.browser);var l=n[Rc]=n[Rc]||{},f=l[Rl]=l[Rl]||{},d=f[Nl]=f[Nl]||{};Il(d,"domain",c.domain),Il(d,"isManual",c.isManual?Dl:null),Il(d,"screenRes",c.screenRes),Il(d,"userConsent",c.userConsent?Dl:null)}var p=i.os;p&&Il(r,Cc.deviceOS,p[Nc]);var h=i.trace;h&&(Il(r,Cc.operationParentId,h.parentID),Il(r,Cc.operationName,to(e,h[Nc])),Il(r,Cc.operationId,h[Dc]));for(var g={},v=o[Ic]-1;v>=0;v--)cn(o[v],(function(e,t){g[e]=t})),o.splice(v,1);cn(o,(function(e,t){g[e]=t}));var m=ce(ce({},r),g);m[Cc.internalSdkVersion]||(m[Cc.internalSdkVersion]=to(e,"javascript:".concat(Zl.Version),64)),n[Fc]=Bn(m)}(e,n,i),n[Fc]=n[Fc]||[],Bn(i)}function Ul(e,t){nn(t[Rl])&&Ei(e,1,46,"telemetryItem.baseData cannot be null.")}var Zl={Version:"2.8.15"};function Bl(e,t,n){Ul(e,t);var r={},i={};t[Ol]!==fo[jc]&&(r.baseTypeSource=t[Ol]),t[Ol]===fo[jc]?(r=t[Rl][Nl]||{},i=t[Rl][Lc]||{}):t[Rl]&&Ml(t[Rl],r,i),Ml(t[Rc],r,i),nn(n)||Ll(r,n);var o=t[Rl][Nc],a=new fo(e,o,r,i),s=new Pc(fo[jc],a);return jl(e,fo[Uc],t,s)}function Hl(e,t){Ka(e,null,null,t)}var Vl,zl=function(){function e(t,n){var r=[],i=!1;this._get=function(){return r},this._set=function(e){return r=e},K(e,this,(function(e){e[Vc]=function(o){e[zc]()>=n.eventsLimitInMem()?i||(Ei(t,2,105,"Maximum in-memory buffer size reached: "+e[zc](),!0),i=!0):r[qc](o)},e[zc]=function(){return r[Ic]},e.size=function(){for(var e=r[Ic],t=0;t0?n[Wc]()?e.join("\n"):"["+e.join(",")+"]":null}}))}return e.__ieDyn=1,e}(),ql=function(e){function t(n,r){var i=e.call(this,n,r)||this;return K(t,i,(function(e,t){e[Gc]=function(e){t[Kc]()},e[$c]=function(e){}})),i}return fe(t,e),t.__ieDyn=1,t}(zl),Wl=function(e){function t(n,r){var i=e.call(this,n,r)||this,o=!1,a=r[Jc]()||{getItem:ji,setItem:Ui},s=a.getItem,u=a.setItem;return K(t,i,(function(e,i){var a=d(t[Xc]),c=d(t[Qc]),l=e._set(a.concat(c));function f(e,t){var n=[];return bn(t,(function(t){sn(t)||-1!==wn(e,t)||n[qc](t)})),n}function d(e){var t=e;try{t=r[tl]&&r[tl]()?r[tl]()+"_"+t:t;var i=s(n,t);if(i){var o=ti().parse(i);if(hn(o)&&(o=ti().parse(o)),o&&dn(o))return o}}catch(a){Ei(n,1,42," storage key: "+t+", "+Rn(a),{exception:ii(a)})}return[]}function p(e,t){var i=e;try{i=r[tl]&&r[tl]()?r[tl]()+"_"+i:i;var o=JSON[Mc](t);u(n,i,o)}catch(a){u(n,i,JSON[Mc]([])),Ei(n,2,41," storage key: "+i+", "+Rn(a)+". Buffer cleared",{exception:ii(a)})}}l[Ic]>t[el]&&(l[Ic]=t[el]),p(t[Qc],[]),p(t[Xc],l),e[Vc]=function(r){e[zc]()>=t[el]?o||(Ei(n,2,67,"Maximum buffer size reached: "+e[zc](),!0),o=!0):(i[Vc](r),p(t[Xc],e._get()))},e[Kc]=function(){i[Kc](),p(t[Xc],e._get()),p(t[Qc],[]),o=!1},e[Gc]=function(r){p(t[Xc],e._set(f(r,e._get())));var i=d(t[Qc]);i instanceof Array&&r instanceof Array&&((i=i.concat(r))[Ic]>t[el]&&(Ei(n,1,67,"Sent buffer reached its maximum size: "+i[Ic],!0),i[Ic]=t[el]),p(t[Qc],i))},e[$c]=function(e){var n=d(t[Qc]);n=f(e,n),p(t[Qc],n)}})),i}return fe(t,e),t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(zl),Kl=function(){function e(t){K(e,this,(function(e){function n(e,o){var a="__aiCircularRefCheck",s={};if(!e)return Ei(t,1,48,"cannot serialize object because it is null or undefined",{name:o},!0),s;if(e[a])return Ei(t,2,50,"Circular reference detected while serializing object",{name:o},!0),s;if(!e.aiDataContract){if("measurements"===o)s=i(e,"number",o);else if("properties"===o)s=i(e,"string",o);else if("tags"===o)s=i(e,"string",o);else if(dn(e))s=r(e,o);else{Ei(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:o},!0);try{ti()[Mc](e),s=e}catch(u){Ei(t,1,48,u&&sn(u[Zc])?u[Zc]():"Error serializing object",null,!0)}}return s}return e[a]=!0,cn(e.aiDataContract,(function(i,a){var u=sn(a)?1&a():1&a,c=sn(a)?4&a():4&a,l=2&a,f=void 0!==e[i],d=an(e[i])&&null!==e[i];if(!u||f||l){if(!c){var p=void 0;void 0!==(p=d?l?r(e[i],i):n(e[i],i):e[i])&&(s[i]=p)}}else Ei(t,1,24,"Missing required field specification. The field is required but not present on source",{field:i,name:o})})),delete e[a],s}function r(e,r){var i;if(e)if(dn(e)){i=[];for(var o=0;o100||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[bl]=e,this.samplingScoreGenerator=new Gl}return e.prototype.isSampledIn=function(e){var t=this[bl];return null===t||void 0===t||t>=100||(e.baseType===go[jc]||this.samplingScoreGenerator[Fl](e)=300)&&0!==t){if((301===t||307===t||308===t)&&!m(i))return void e[El](r,a);!e[ul][kl]()&&A(t)?(C(r),Ei(e[il](),2,40,". Response code "+t+". Will retry to send "+r[Ic]+" items.")):e[El](r,a)}else if(d&&!d[Hc]()){if(!e[ul][kl]()){C(r,10),Ei(e[il](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(r.length," items."))}}else m(i),206===t?(u||(u=k(s)),u&&!e[ul][kl]()?e[Sl](r,u):e[El](r,a)):(n=0,e[xl](r,o))}function m(t){return!(s>=10)&&(!nn(t)&&""!==t&&t!==e[ul][pl]()&&(e[ul][pl]=function(){return t},++s,!0))}function y(e,t){f?f(e,!1):w(e,t)}function b(t){var n=$r(),r=e[ll],i=e[ul][pl](),o=e._buffer[Yc](t),a=new Blob([o],{type:"text/plain;charset=UTF-8"}),s=n.sendBeacon(i,a);return s&&(r[Gc](t),e._onSuccess(t,t[Ic])),s}function w(t,n){if(dn(t)&&t[Ic]>0&&!b(t)){for(var r=[],i=0;i0&&(l&&l(r,!0),Ei(e[il](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function E(t,n){var r=new XMLHttpRequest,i=e[ul][pl]();try{r[qi]=!0}catch(a){}r.open("POST.html",i,n),r[Cl]("Content-type","application/json"),Ss(i)&&r[Cl](ds[6],ds[7]),bn(Cn(u),(function(e){r[Cl](e,u[e])})),r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t[Ic])},r.onerror=function(n){return e[El](t,F(r),n)};var o=e._buffer[Yc](t);r.send(o),e._buffer[Gc](t)}function S(t,n){if(dn(t)){for(var r=t[Ic],i=0;i=n[_l]&&n.itemsReceived-n.itemsAccepted===n.errors[Ic])return n}}catch(r){Ei(e[il](),1,43,"Cannot parse the response. "+Rn(r),{response:t})}return null}function C(t,i){if(void 0===i&&(i=1),t&&0!==t[Ic]){var o=e[ll];o[$c](t),n++;for(var a=0,s=t;ae._senderConfig[nl]()&&e[rl](!0,null,10),T())},e.flush=function(t,n,r){if(void 0===t&&(t=!0),!i){P();try{e[rl](t,null,r||1)}catch(o){Ei(e[il](),1,22,"flush failed, telemetry will not be collected: "+Rn(o),{exception:ii(o)})}}},e.onunloadFlush=function(){if(!i)if(!1!==e._senderConfig[ol]()&&!1!==e[ul][al]()||!oi())e.flush();else try{e[rl](!0,y,2)}catch(t){Ei(e[il](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Rn(t),{exception:ii(t)})}},e.addHeader=function(e,t){u[e]=t},e.initialize=function(t,i,o,u){e.isInitialized()&&Ei(e[il](),1,28,"Sender is already initialized"),g.initialize(t,i,o,u);var h=e._getTelCtx(),v=e.identifier;a=new Kl(i.logger),n=0,r=null,0,e[sl]=null,s=0;var m=e[il]();p=qa(Sa("Sender"),i.evtNamespace&&i.evtNamespace()),d=function(e){var t,n=Yr(),r=$r(),i=!1,o=!0,a=qa(Sa("OfflineListener"),e);try{if(u(Wr())&&(i=!0),n){var s=n.body||n;s.ononline&&u(s)&&(i=!0)}i&&r&&!nn(r[Bc])&&(o=r[Bc])}catch(f){i=!1}function u(e){var t=!1;return e&&(t=Wa(e,"online",c,a))&&Wa(e,"offline",l,a),t}function c(){o=!0}function l(){o=!1}return(t={})[Hc]=function(){var e=!0;return i?e=o:r&&!nn(r[Bc])&&(e=r[Bc]),e},t.isListening=function(){return i},t.unload=function(){var e=Wr();if(e&&i){if(Hl(e,a),n){var t=n.body||n;tn(t.ononline)||Hl(t,a)}i=!1}},t}(p),cn(Xl(),(function(t,n){e[ul][t]=function(){var e=h.getConfig(v,t,n());return e||"endpointUrl"!==t||(e=n()),e}})),t.storagePrefix&&Ri(t.storagePrefix);var y=e[ul][cl]()&&!(!e._senderConfig[Jc]()&&!Li());e[ll]=y?new Wl(m,e[ul]):new ql(m,e[ul]),e._sample=new $l(e[ul][fl](),m),function(e){var t=!nn(e[Al])&&e[Al];if(t)return!0;return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e[dl])}(t)||Ei(m,1,100,"Invalid Instrumentation key "+t[dl]),!Ss(e._senderConfig.endpointUrl())&&e._senderConfig.customHeaders()&&e._senderConfig.customHeaders()[Ic]>0&&bn(e[ul][hl](),(function(e){c.addHeader(e.header,e.value)}));var b=e[ul],_=null;!b[gl]()&&si()?_=O:!b[gl]()&&ui()&&(_=E),!_&&ai()&&(_=x),l=_||E,!b[al]()&&oi()&&(_=w),e[sl]=_||E,f=!b[vl]()&&ai(!0)?S:oi()?w:!b[gl]()&&si()?O:!b[gl]()&&ui()?E:l},e.processTelemetry=function(n,r){var i,o=(r=e._getTelCtx(r))[il]();try{if(e[ul][ml]())return;if(!n)return void Ei(o,1,7,"Cannot send empty telemetry");if(n.baseData&&!n[yl])return void Ei(o,1,70,"Cannot send telemetry without baseData and baseType");if(n[yl]||(n[yl]="EventData"),!e[sl])return void Ei(o,1,28,"Sender was not initialized");if(i=n,!e._sample.isSampledIn(i))return void Ei(o,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[bl]});n[Wi]=e._sample[bl];var s=e[ul][wl]()||void 0,u=n.iKey||e[ul][dl](),c=t.constructEnvelope(n,u,o,s);if(!c)return void Ei(o,1,47,"Unable to create an AppInsights envelope");var l=!1;if(n[Fc]&&n[Fc][Ki]&&(bn(n[Fc][Ki],(function(e){try{e&&!1===e(c)&&(l=!0,Si(o,"Telemetry processor check returns false"))}catch(t){Ei(o,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Rn(t),{exception:ii(t)},!0)}})),delete n[Fc][Ki]),l)return;var f=a.serialize(c),p=e[ll];p.size()+f[Ic]>e[ul][nl]()&&(d&&!d[Hc]()||e[rl](!0,null,10)),p[Vc](f),T()}catch(h){Ei(o,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Rn(h),{exception:ii(h)})}e.processNext(n,r)},e._xhrReadyStateChange=function(e,t,n){4===e.readyState&&v(e.status,t,e.responseURL,n,F(e),Jl(e)||e.response)},e[rl]=function(t,n,r){if(void 0===t&&(t=!0),!i)try{var o=e[ll];if(e[ul][ml]())o[Kc]();else{if(o[zc]()>0){var a=o.getItems();!function(t,n){var r=function(){var t="getNotifyMgr";if(e.core[t])return e.core[t]();return e.core._notificationManager}();if(r&&r[Pl])try{r[Pl](t,n)}catch(i){Ei(e[il](),1,74,"send request notification failed: "+Rn(i),{exception:ii(i)})}}(r||0,t),n?n.call(e,a,t):e[sl](a,t)}+new Date}P()}catch(u){var s=ri();(!s||s>9)&&Ei(e[il](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Rn(u),{exception:ii(u)})}},e._doTeardown=function(t,n){e.onunloadFlush(),d.unload(),N()},e[El]=function(t,n,r){Ei(e[il](),2,26,"Failed to send telemetry.",{message:n}),e._buffer&&e._buffer[$c](t)},e[Sl]=function(t,n){for(var r=[],i=[],o=0,a=n.errors.reverse();o0&&e[xl](t,n[_l]),r[Ic]>0&&e[El](r,F(null,["partial success",n[_l],"of",n.itemsReceived].join(" "))),i[Ic]>0&&(C(i),Ei(e[il](),2,40,"Partial success. Delivered: "+t[Ic]+", Failed: "+r[Ic]+". Will retry to send "+i[Ic]+" our of "+n.itemsReceived+" items"))},e[xl]=function(t,n){e._buffer&&e._buffer[$c](t)},e._xdrOnLoad=function(t,r){var i=Jl(t);if(!t||i+""!=="200"&&""!==i){var o=k(i);o&&o.itemsReceived&&o.itemsReceived>o[_l]&&!e[ul][kl]()?e[Sl](r,o):e[El](r,R(t))}else n=0,e[xl](r,0)}})),c}return fe(t,e),t.constructEnvelope=function(e,t,n,r){var i;return i=t===e.iKey||nn(t)?e:ce(ce({},e),{iKey:t}),(Ql[i.baseType]||Bl)(n,i,r)},t}(ou);function tf(e){if(!e)return{};var t=Sn(e[Vn](";"),(function(e,t){var n=t[Vn]("=");if(2===n[zn]){var r=n[0][qn](),i=n[1];e[r]=i}return e}),{});if(Cn(t)[zn]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[Wn]=t[Wn]||"https://"+n+"dc."+t.endpointsuffix}t[Wn]=t[Wn]||Gi}return t}xi({Verbose:0,Information:1,Warning:2,Error:3,Critical:4}),function(){function e(){}e.getConfig=function(e,t,n,r){var i;return void 0===r&&(r=!1),i=n&&e[tr]&&e[tr][n]&&!nn(e[tr][n][t])?e[tr][n][t]:e[t],nn(i)?r:i}}();var nf=500,rf="Channel has invalid priority - ";function of(e,t,n){t&&dn(t)&&t[Se]>0&&(bn(t=t.sort((function(e,t){return e[St]-t[St]})),(function(e){e[St]0)){var r=In(t.diagnosticLogInterval);r&&r>0||(r=1e4),E=setInterval((function(){clearInterval(E),E=0,F()}),r)}return E}function _(){n=!1,t=Hn(!0,{},lf),e[be]=t,e[Ee]=new bi(t),e[Re]=[],g=new af,r=[],i=null,o=null,a=null,s=null,u=null,l=null,c=[],f=null,d=null,p=null,h=!1,v=null,m=Sa("AIBaseCore",!0),y=ru(),w=null}function k(){var n=qs(P(),t,e);return n[Ae](x),n}function C(n){var r=function(e,t,n){var r,i=[],o={};return bn(n,(function(n){(nn(n)||nn(n[pe]))&&Ln(sf);var r=n[St],a=n[ve];n&&r&&(nn(o[r])?o[r]=a:Si(e,"Two extensions have same priority #"+r+" - "+o[r]+", "+a)),(!r||rnf&&i[me](e)})),of(r,i,n)}return r}(d,i,e)),f){var o=wn(i,f);-1!==o&&i[Ne](o,1),-1!==(o=wn(l,f))&&l[Ne](o,1),f._setQueue(p)}else f=function(e,t){function n(){return qs(null,t[be],t,null)}function r(e,t,n,r){var i=e?e[Se]+1:1;function o(){0===--i&&(r&&r(),r=null)}i>0&&bn(e,(function(e){if(e&&e.queue[Se]>0){var r=e.chain,a=t[Ve](r);a[Ae](o),n(a)}else i--})),o()}var i=!1,o={identifier:"ChannelControllerPlugin",priority:nf,initialize:function(t,n,r,o){i=!0,bn(e,(function(e){e&&e.queue[Se]>0&&js(qs(e.chain,t,n),r)}))},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e[_e](t)}),(function(){i[_e](t)}))},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e[_e](i)}),(function(){t[_e](i)})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[_e](o)}),(function(){t[_e](o),i=!1})),!0},getChannel:function(t){var n=null;return e&&e[Se]>0&&bn(e,(function(e){if(e&&e.queue[Se]>0&&(bn(e.queue,(function(e){if(e[ve]===t)return n=e,-1})),n))return-1})),n},flush:function(t,i,o,a){var s=1,u=!1,c=null;function l(){s--,u&&0===s&&(c&&(clearTimeout(c),c=null),i&&i(u),i=null)}return a=a||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[Oe]){s++;var n=!1;e[Oe](t,(function(){n=!0,l()}),o)||n||(t&&null==c?c=setTimeout((function(){c=null,l()}),a):l())}}))}),(function(){u=!0,l()})),!0},_setQueue:function(t){e=t}};return o}(p,e);i[me](f),l[me](f),e[Re]=Us(i),f[pe](t,e,i),js(k(),i),e[Re]=Fn(Us(l||[])).slice(),n&&function(t){var n=Ks(P(),e);n[Ae](x),e._updateHook&&!0===e._updateHook(n,t)||n[_e](t)}(n)}function T(t){var n,r=null,i=null;return bn(e[Re],(function(e){if(e[ve]===t&&e!==f&&e!==g)return i=e,-1})),!i&&f&&(i=f.getChannel(t)),i&&((n={plugin:i})[Ge]=function(e){Ls(i)[bt]=!e},n.isEnabled=function(){var e=Ls(i);return!e[De]&&!e[bt]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1})[Le]=e,n);A(r,o,(function(e){e&&C({reason:32,removed:r}),t&&t(e)}))},r=n),r}function P(){if(!u){var n=(l||[]).slice();-1===wn(n,g)&&n[me](g),u=Ys(Us(n),t,e)}return u}function A(n,r,i){if(n&&n[Se]>0){var o=Ws(Ys(n,t,e),e);o[Ae]((function(){var e=!1,t=[];bn(c,(function(r,i){df(r,n)?e=!0:t[me](r)})),c=t;var r=[];d&&(bn(d,(function(t,i){var o=[];bn(t,(function(t){df(t,n)?e=!0:o[me](t)})),r[me](o)})),d=r),i&&i(e),x()})),o[_e](r)}else i(!1)}function F(){if(e[Ee]&&e[Ee].queue){var n=e[Ee].queue.slice(0);e[Ee].queue[Se]=0,bn(n,(function(n){var r,i=((r={})[he]=v||"InternalMessageId: "+n[Ie],r.iKey=In(t[we]),r.time=yn(new Date),r.baseType=mi.dataType,r.baseData={message:n[Me]},r);e.track(i)}))}}function O(e,t,n,r){return f?f[Oe](e,t,n||6,r):(t&&t(!1),!0)}function R(t){var n=e[Ee];n?(Ei(n,2,73,t),x()):Ln(t)}_(),e[ye]=function(){return n},e[pe]=function(r,o,s,u){h&&Ln(cf),e[ye]()&&Ln("Core should not be initialized more than once"),t=r||{},e[be]=t,nn(r[we])&&Ln("Please provide instrumentation key"),i=u,e[uf]=u,function(){var e=In(t.disableDbgExt);!0===e&&b&&(i[Te](b),b=null);i&&!b&&!0!==e&&(b=hi(t),i[Ce](b))}(),function(){var e=In(t.enablePerfMgr);!e&&a&&(a=null);e&&Dn(t,yt,ff)}(),Dn(t,wt,{}).NotificationManager=i,s&&(e[Ee]=s);var l=Dn(t,"extensions",[]);(c=[])[me].apply(c,de(de([],o),l)),d=Dn(t,vt,[]),C(null),p&&0!==p[Se]||Ln("No "+vt+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return p&&bn(p,(function(t){e[me](t.queue)})),Fn(e)},e.track=function(n){n.iKey=n.iKey||t[we],n[xe]=n[xe]||yn(new Date),n.ver=n.ver||"4.0",!h&&e[ye]()?k()[_e](n):r[me](n)},e[ke]=k,e[ge]=function(){return i||(i=function(){var e;return ue(((e={})[Ce]=function(e){},e[Te]=function(e){},e[xt]=function(e){},e[_t]=function(e,t){},e[kt]=function(e,t){},e))}(),e[uf]=i),i},e[Ce]=function(e){i&&i[Ce](e)},e[Te]=function(e){i&&i[Te](e)},e.getCookieMgr=function(){return s||(s=Xo(t,e[Ee])),s},e.setCookieMgr=function(e){s=e},e[At]=function(){if(!o&&!a&&In(t.enablePerfMgr)){var n=In(t[yt]);sn(n)&&(a=n(e,e[ge]()))}return o||a||Os},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return r[Se]},e.releaseQueue=function(){if(n&&r[Se]>0){var e=r;r=[],bn(e,(function(e){k()[_e](e)}))}},e.pollInternalLogs=function(e){return v=e||null,S=!1,E&&(clearInterval(E),E=null),x(!0)},e[Pe]=function(){S=!0,E&&(clearInterval(E),E=0,F())},Zn(e,(function(){return g}),["addTelemetryInitializer"]),e.unload=function(t,r,i){var o;void 0===t&&(t=!0),n||Ln("SDK is not initialized"),h&&Ln(cf);var a=((o={reason:50})[Le]=t,o.flushComplete=!1,o),s=Ws(P(),e);function u(t){a.flushComplete=t,h=!0,y.run(s,a),e[Pe](),s[_e](a)}s[Ae]((function(){_(),r&&r(a)}),e),F(),O(t,u,6,i)||u(!1)},e[Fe]=T,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void R(sf);var i=T(e[ve]);if(i&&!t)return r&&r(!1),void R("Plugin ["+e[ve]+"] is already loaded!");var o={reason:16};function a(t){c[me](e),o.added=[e],C(o),r&&r(!0)}if(i){var s=[i.plugin];A(s,{reason:2,isAsync:!!n},(function(e){e?(o.removed=s,o.reason|=32,a()):r&&r(!1)}))}else a()},e.evtNamespace=function(){return m},e[Oe]=O,e.getTraceCtx=function(e){return w||(w=function(e){var t={};return{getName:function(){return t[he]},setName:function(n){e&&e.setName(n),t[he]=n},getTraceId:function(){return t[ft]},setTraceId:function(n){e&&e.setTraceId(n),us(n)&&(t[ft]=n)},getSpanId:function(){return t[dt]},setSpanId:function(n){e&&e.setSpanId(n),cs(n)&&(t[dt]=n)},getTraceFlags:function(){return t[pt]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[pt]=n}}}()),w},e.setTraceCtx=function(e){w=e||null},Un(e,"addUnloadCb",(function(){return y}),"add")}))}return e.__ieDyn=1,e}();function hf(e,t,n,r){bn(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(i){}}))}var gf=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;K(e,this,(function(e){e[Ce]=function(t){e.listeners[me](t)},e[Te]=function(t){for(var n=wn(e[at],t);n>-1;)e.listeners[Ne](n,1),n=wn(e[at],t)},e[xt]=function(t){hf(e[at],xt,!0,(function(e){e[xt](t)}))},e[_t]=function(t,n){hf(e[at],_t,!0,(function(e){e[_t](t,n)}))},e[kt]=function(t,n){hf(e[at],kt,n,(function(e){e[kt](t,n)}))},e[Ct]=function(t){t&&(!n&&t[st]()||hf(e[at],Ct,!1,(function(e){t[Le]?setTimeout((function(){return e[Ct](t)}),0):e[Ct](t)})))}}))}return e.__ieDyn=1,e}(),vf=function(e){function t(){var n=e.call(this)||this;return K(t,n,(function(e,t){function n(t){var n=e[ge]();n&&n[_t]([t],2)}e[pe]=function(e,n,r,i){t[pe](e,n,r||new bi(e),i||new gf(e))},e.track=function(r){Is(e[At](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),Ln("Invalid telemetry item")),function(e){nn(e[he])&&(n(e),Ln("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return fe(t,e),t.__ieDyn=1,t}(pf),mf="duration",yf="properties",bf="requestUrl",wf="inst",Ef="length",Sf="traceID",xf="spanID",_f="traceFlags",kf="context",Cf="aborted",Tf="traceId",Pf="spanId",Af="core",Ff="includeCorrelationHeaders",Of="canIncludeCorrelationHeader",Rf="getAbsoluteUrl",Nf="headers",Df="requestHeaders",If="appId",Mf="setRequestHeader",Lf="trackDependencyDataInternal",jf="distributedTracingMode",Uf="startTime",Zf="toLowerCase",Bf="enableRequestHeaderTracking",Hf="enableAjaxErrorStatusText",Vf="enableAjaxPerfTracking",zf="maxAjaxCallsPerView",qf="enableResponseHeaderTracking",Wf="excludeRequestFromAutoTrackingPatterns",Kf="addRequestContext",Yf="disableAjaxTracking",Gf="disableFetchTracking",$f="status",Jf="statusText",Xf="headerMap",Qf="openDone",ed="sendDone",td="requestSentTime",nd="abortDone",rd="getTraceId",id="getTraceFlags",od="method",ad="errorStatusText",sd="stateChangeAttached",ud="responseFinishedTime",cd="CreateTrackItem",ld="response",fd="getAllResponseHeaders",dd="getPartAProps",pd="getCorrelationContext",hd="perfMark",gd="name",vd="perfTiming",md="ajaxTotalDuration",yd="eventTraceCtx";function bd(e,t,n){var r=0,i=e[t],o=e[n];return i&&o&&(r=ks(i,o)),r}function wd(e,t,n,r,i){var o=0,a=bd(n,r,i);return a&&(o=Ed(e,t,xr(a))),o}function Ed(e,t,n){var r="ajaxPerf",i=0;e&&t&&n&&((e[r]=e[r]||{})[t]=n,i=1);return i}var Sd=function(){var e=this;e[Qf]=!1,e.setRequestHeaderDone=!1,e[ed]=!1,e[nd]=!1,e[sd]=!1},xd=function(){function e(t,n,r,i){var o,a=this,s=r;a[hd]=null,a.completed=!1,a.requestHeadersSize=null,a[Df]=null,a.responseReceivingDuration=null,a.callbackDuration=null,a[md]=null,a[Cf]=0,a.pageUrl=null,a[bf]=null,a.requestSize=0,a[od]=null,a[$f]=null,a[td]=null,a.responseStartedTime=null,a[ud]=null,a.callbackFinishedTime=null,a.endTime=null,a.xhrMonitoringState=new Sd,a.clientFailure=0,a[Sf]=t,a[xf]=n,a[_f]=null===i||void 0===i?void 0:i.getTraceFlags(),a[yd]=i?((o={})[Tf]=i[rd](),o[Pf]=i.getSpanId(),o[_f]=i[id](),o):null,K(e,a,(function(e){e.getAbsoluteUrl=function(){return e[bf]?ms(e[bf]):null},e.getPathName=function(){return e[bf]?no(s,ys(e[od],e[bf])):null},e[cd]=function(t,n,r){var i;if(e.ajaxTotalDuration=Math.round(1e3*ks(e.requestSentTime,e.responseFinishedTime))/1e3,e[md]<0)return null;var o=((i={id:"|"+e[Sf]+"."+e[xf],target:e[Rf]()})[gd]=e.getPathName(),i.type=t,i[Uf]=null,i.duration=e[md],i.success=+e[$f]>=200&&+e[$f]<400,i.responseCode=+e[$f],i[yf]={HttpMethod:e[od]},i),a=o[yf];if(e[Cf]&&(a[Cf]=!0),e[td]&&(o[Uf]=new Date,o[Uf].setTime(e[td])),function(e,t){var n=e[vd],r=t[yf]||{},i=0,o="name",a="Start",s="End",u="domainLookup",c="connect",l="redirect",f="request",d="response",p="startTime",h=u+a,g=u+s,v=c+a,m=c+s,y=f+a,b=f+s,w=d+a,E=d+s,S=l+a,x=l=s,_="transferSize",k="encodedBodySize",C="decodedBodySize",T="serverTiming";if(n){i|=wd(r,l,n,S,x),i|=wd(r,u,n,h,g),i|=wd(r,c,n,v,m),i|=wd(r,f,n,y,b),i|=wd(r,d,n,w,E),i|=wd(r,"networkConnect",n,p,m),i|=wd(r,"sentRequest",n,y,E);var P=n[mf];P||(P=bd(n,p,E)||0),i|=Ed(r,mf,P),i|=Ed(r,"perfTotal",P);var A=n[T];if(A){var F={};bn(A,(function(e,t){var n=un(e[o]||""+t),r=F[n]||{};cn(e,(function(e,t){(e!==o&&hn(t)||gn(t))&&(r[e]&&(t=r[e]+";"+t),!t&&hn(t)||(r[e]=t))})),F[n]=r})),i|=Ed(r,T,F)}i|=Ed(r,_,n[_]),i|=Ed(r,k,n[k]),i|=Ed(r,C,n[C])}else e[hd]&&(i|=Ed(r,"missing",e.perfAttempts));i&&(t[yf]=r)}(e,o),n&&Cn(e.requestHeaders)[Ef]>0&&(a[Df]=e[Df]),r){var s=r();if(s){var u=s.correlationContext;if(u&&(o.correlationContext=u),s[Xf]&&Cn(s.headerMap)[Ef]>0&&(a.responseHeaders=s[Xf]),e[ad])if(e[$f]>=400){var c=s.type;""!==c&&"text"!==c||(a.responseText=s.responseText?s[Jf]+" - "+s.responseText:s[Jf]),"json"===c&&(a.responseText=s.response?s[Jf]+" - "+JSON.stringify(s[ld]):s[Jf])}else 0===e[$f]&&(a.responseText=s[Jf]||"")}}return o},e[dd]=function(){var t,n=null,r=e[yd];if(r&&(r[Tf]||r[Pf])){var i=(n={})[kc.TraceExt]=((t={})[Sf]=r[Tf],t.parentID=r[Pf],t);nn(r[_f])||(i[_f]=r[_f])}return n}}))}return e.__ieDyn=1,e}(),_d="ai.ajxmn.",kd="diagLog",Cd="ajaxData",Td="fetch",Pd="Failed to monitor XMLHttpRequest",Ad=", monitoring data for this ajax call ",Fd=Ad+"may be incorrect.",Od=Ad+"won't be sent.",Rd="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Nd="Failed to add custom defined request context as configured call back may missing a null check.",Dd="Failed to calculate the duration of the ",Id=0;var Md=null;function Ld(e){var t="";try{e&&e[Cd]&&e[Cd][bf]&&(t+="(url: '"+e[Cd][bf]+"')")}catch(n){}return t}function jd(e,t,n,r,i){Ei(e[kd](),1,t,n,r,i)}function Ud(e,t,n,r,i){Ei(e[kd](),2,t,n,r,i)}function Zd(e,t,n){return function(r){jd(e,t,n,{ajaxDiagnosticsMessage:Ld(r[wf]),exception:ii(r.err)})}}function Bd(e,t){return e&&t?e.indexOf(t):-1}function Hd(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){bn(e,(function(t,n){if(t.id===r.id)return e.splice(n,1),-1}))}}}function Vd(e,t,n,r){var i=!0;return bn(t,(function(t,o){try{!1===t.fn.call(null,n)&&(i=!1)}catch(a){Ei(e&&e.logger,1,64,"Dependency "+r+" [#"+o+"] failed: "+Rn(a),{exception:ii(a)},!0)}})),i}var zd="*.blob.core.",qd=An([zd+"windows.net",zd+"chinacloudapi.cn",zd+"cloudapi.de",zd+"usgovcloudapi.net"]),Wd=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function Kd(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:qd,correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,addIntEndpoints:!0}}function Yd(){var e=Kd();return cn(e,(function(t){e[t]=void 0})),e}var Gd=function(e){function t(){var n,r,i,o,a,s,u,c,l,f,d,p,h,g,v,m,y,b,w,E,S,x,_,k=e.call(this)||this;return k.identifier=t.identifier,k.priority=120,K(t,k,(function(e,k){var C=k._addHook;function T(){var e=Xr();n=!1,r=!1,i=e&&e.host&&e.host[Zf](),o=t.getEmptyConfig(),a=!1,s=!1,u=0,c=null,l=!1,f=!1,d=null,p=!1,h=0,g=!1,v={},m=!1,y=!1,b=null,w=null,E=null,S=0,x=[],_=[]}function P(e){var t=!0;return(e||o.ignoreHeaders)&&bn(o.ignoreHeaders,(function(n){if(n[Zf]()===e[Zf]())return t=!1,-1})),t}function A(e,t,n){C(function(e,t,n){return e?tu(e[J],t,n,!1):null}(e,t,n))}function F(e,t,n){var r=!1,i=((hn(t)?t:(t||{}).url||"")||"")[Zf]();if(bn(b,(function(e){var t=e;hn(e)&&(t=new RegExp(e)),r||(r=t.test(i))})),r)return r;var o=Bd(i,"?"),a=Bd(i,"#");return(-1===o||-1!==a&&a=0;p--){var h=d[p];if(h){if("resource"===h.entryType)h.initiatorType!==e||-1===Bd(h[gd],c)&&-1===Bd(c,h[gd])||(f=h);else if("mark"===h.entryType&&h[gd]===i[gd]){t[vd]=f;break}if(h[Uf]=s||!1===t.async?(i&&sn(a.clearMarks)&&a.clearMarks(i[gd]),t.perfAttempts=l,n()):setTimeout(o,u)}catch(g){r(g)}}()}function L(t){var n="";try{nn(t)||(n+="(url: '".concat("string"===typeof t?t:t.url,"')"))}catch(r){jd(e,15,"Failed to grab failed fetch diagnostics message",{exception:ii(r)})}return n}function j(t,n,r,i,o,s,u){function c(t,n,i){var o=i||{};o.fetchDiagnosticsMessage=L(r),n&&(o.exception=ii(n)),Ud(e,t,Dd+"fetch call"+Od,o)}o&&(o[ud]=_s(),o[$f]=n,M(Td,o,(function(){var t,u=o[cd]("Fetch",a,s);try{w&&(t=w({status:n,request:r,response:i}))}catch(f){Ud(e,104,Nd)}if(u){void 0!==t&&(u[yf]=ce(ce({},u.properties),t));var l=o[dd]();Z(_,e[Af],o,u,null,l)}else c(14,null,{requestSentTime:o[td],responseFinishedTime:o[ud]})}),(function(e){c(18,e,null)})))}function U(t){if(t&&t[Nf])try{var n=t[Nf].get(ds[0]);return xs[pd](n)}catch(r){Ud(e,18,Rd,{fetchDiagnosticsMessage:L(t),exception:ii(r)})}}function Z(t,n,r,i,o,a){var s=!0;t[Ef]>0&&(s=Vd(n,t,{item:i,properties:o,sysProperties:a,context:r?r[kf]:null,aborted:!!r&&!!r[Cf]},"initializer"));s&&e[Lf](i,o,a)}T(),e.initialize=function(i,u,v,S){e.isInitialized()||(k.initialize(i,u,v,S),E=qa(Sa("ajax"),u&&u.evtNamespace&&u.evtNamespace()),function(n){var r=qs(null,n,e[Af]);o=Yd(),cn(Kd(),(function(e,n){o[e]=r.getConfig(t.identifier,e,n)}));var i=o[jf];if(a=o[Bf],s=o[Hf],p=o[Vf],h=o[zf],g=o[qf],b=[].concat(o[Wf]||[],!1!==o.addIntEndpoints?Wd:[]),w=o[Kf],f=0===i||1===i,l=1===i||2===i,p){var u=n.instrumentationKey||"unkwn";d=u[Ef]>5?_d+u.substring(u[Ef]-5)+".":_d+u+"."}m=!!o[Yf],y=!!o[Gf]}(i),!function(e){var t=!1;if(ui()){var n=XMLHttpRequest[J];t=!nn(n)&&!nn(n.open)&&!nn(n.send)&&!nn(n.abort)}var r=ri();if(r&&r<9&&(t=!1),t)try{(new XMLHttpRequest)[Cd]={};var i=XMLHttpRequest[J].open;XMLHttpRequest[J].open=i}catch(o){t=!1,jd(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:ii(o)})}return t}(e)||m||r||(A(XMLHttpRequest,"open",{ns:E,req:function(t,n,r,i){if(!m){var o=t[wf],u=o[Cd];!F(o,r)&&O(o,!0)&&(u&&u.xhrMonitoringState[Qf]||function(t,n,r,i){var o,a=R(),u=a&&a[rd]()||Qa(),c=Qa().substr(0,16),l=new xd(u,c,e[kd](),null===(o=e.core)||void 0===o?void 0:o.getTraceCtx());l[_f]=a&&a[id](),l[od]=n,l[bf]=r,l.xhrMonitoringState[Qf]=!0,l[Df]={},l.async=i,l[ad]=s,t[Cd]=l}(o,n,r,i),function(t){t[Cd].xhrMonitoringState[sd]=Wa(t,"readystatechange",(function(){try{t&&4===t.readyState&&O(t)&&function(t){var n=t[Cd];function r(n,r){var i=r||{};i.ajaxDiagnosticsMessage=Ld(t),n&&(i.exception=ii(n)),Ud(e,14,Dd+"ajax call"+Od,i)}n[ud]=_s(),n[$f]=t[$f],M("xmlhttprequest",n,(function(){try{var i=n[cd]("Ajax",a,(function(){var e={statusText:t[Jf],headerMap:null,correlationContext:D(t),type:t.responseType,responseText:N(t),response:t[ld]};if(g){var n=t[fd]();if(n){var r=xn(n).split(/[\r\n]+/),i={};bn(r,(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");P(n)&&(i[n]=r)})),e[Xf]=i}}return e})),o=void 0;try{w&&(o=w({status:t[$f],xhr:t}))}catch(u){Ud(e,104,Nd)}if(i){void 0!==o&&(i[yf]=ce(ce({},i.properties),o));var s=n[dd]();Z(_,e[Af],n,i,null,s)}else r(null,{requestSentTime:n[td],responseFinishedTime:n[ud]})}finally{try{t[Cd]=null}catch(u){}}}),(function(e){r(e,null)}))}(t)}catch(r){var n=ii(r);n&&-1!==Bd(n[Zf](),"c00c023f")||jd(e,16,Pd+" 'readystatechange' event handler"+Fd,{ajaxDiagnosticsMessage:Ld(t),exception:n})}}),E)}(o))}},hkErr:Zd(e,15,Pd+".open"+Fd)}),A(XMLHttpRequest,"send",{ns:E,req:function(t,n){if(!m){var r=t[wf],i=r[Cd];O(r)&&!i.xhrMonitoringState[ed]&&(I("xhr",i),i[td]=_s(),e[Ff](i,void 0,void 0,r),i.xhrMonitoringState[ed]=!0)}},hkErr:Zd(e,17,Pd+Fd)}),A(XMLHttpRequest,"abort",{ns:E,req:function(e){if(!m){var t=e[wf],n=t[Cd];O(t)&&!n.xhrMonitoringState[nd]&&(n[Cf]=1,n.xhrMonitoringState[nd]=!0)}},hkErr:Zd(e,13,Pd+".abort"+Fd)}),A(XMLHttpRequest,"setRequestHeader",{ns:E,req:function(e,t,n){if(!m&&a){var r=e[wf];O(r)&&P(t)&&(r[Cd][Df][t]=n)}},hkErr:Zd(e,71,Pd+".setRequestHeader"+Fd)}),r=!0),function(){var t=function(){var e=ae();return!e||nn(e.Request)||nn(e.Request[J])||nn(e[Td])?null:e[Td]}();if(!t)return;var i=ae(),o=t.polyfill;y||n?o&&C(tu(i,Td,{ns:E,req:function(e,t,n){F(null,t,n)}})):(C(tu(i,Td,{ns:E,req:function(t,i,u){var c;if(!y&&n&&!F(null,i,u)&&(!o||!r)){var l=t.ctx();c=function(t,n){var r,i=R(),o=i&&i[rd]()||Qa(),u=Qa().substr(0,16),c=new xd(o,u,e[kd](),null===(r=e.core)||void 0===r?void 0:r.getTraceCtx());c[_f]=i&&i[id](),c[td]=_s(),c[ad]=s,t instanceof Request?c[bf]=t?t.url:"":c[bf]=t;var l="GET";n&&n[od]?l=n[od]:t&&t instanceof Request&&(l=t[od]);c[od]=l;var f={};if(a){new Headers((n?n[Nf]:0)||t instanceof Request&&t[Nf]||{}).forEach((function(e,t){P(t)&&(f[t]=e)}))}return c[Df]=f,I(Td,c),c}(i,u);var f=e[Ff](c,i,u);f!==u&&t.set(1,f),l.data=c}},rsp:function(e,t){if(!y){var n=e.ctx().data;n&&(e.rslt=e.rslt.then((function(r){return j(e,(r||{})[$f],t,r,n,(function(){var e={statusText:(r||{})[Jf],headerMap:null,correlationContext:U(r)};if(g&&r){var t={};r.headers.forEach((function(e,n){P(n)&&(t[n]=e)})),e[Xf]=t}return e})),r})).catch((function(r){throw j(e,0,t,null,n,null,{error:r.message||ii(r)}),r})))}},hkErr:Zd(e,15,"Failed to monitor Window.fetch"+Fd)},!0,function(){if(null==Md)try{Md=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Md=!1}return Md}())),n=!0);o&&(i[Td].polyfill=o)}(),function(){var t=e[Af].getPlugin(Hi);t&&(c=t.plugin[kf])}())},e._doTeardown=function(){T()},e.trackDependencyData=function(t,n){Z(_,e[Af],null,t,n)},e[Ff]=function(t,n,r,s){var u=e._currentWindowHost||i;if(function(e,t,n,r,i,o){if(e[Ef]>0){var a={core:t,xhr:r,input:i,init:o,traceId:n[Sf],spanId:n[xf],traceFlags:n[_f],context:n[kf]||{},aborted:!!n[Cf]};Vd(t,e,a,"listener"),n[Sf]=a[Tf],n[xf]=a[Pf],n[_f]=a[_f],n[kf]=a[kf]}}(x,e[Af],t,s,n,r),n){if(xs[Of](o,t[Rf](),u)){r||(r={});var d=new Headers(r[Nf]||n instanceof Request&&n[Nf]||{});if(f){var p="|"+t[Sf]+"."+t[xf];d.set(ds[3],p),a&&(t[Df][ds[3]]=p)}if((g=o[If]||c&&c[If]())&&(d.set(ds[0],ds[2]+g),a&&(t[Df][ds[0]]=ds[2]+g)),l){nn(v=t[_f])&&(v=1);var h=ls(ss(t[Sf],t[xf],v));d.set(ds[4],h),a&&(t[Df][ds[4]]=h)}r[Nf]=d}return r}if(s){if(xs[Of](o,t[Rf](),u)){if(f){p="|"+t[Sf]+"."+t[xf];s[Mf](ds[3],p),a&&(t[Df][ds[3]]=p)}var g;if((g=o[If]||c&&c[If]())&&(s[Mf](ds[0],ds[2]+g),a&&(t[Df][ds[0]]=ds[2]+g)),l){var v;nn(v=t[_f])&&(v=1);h=ls(ss(t[Sf],t[xf],v));s[Mf](ds[4],h),a&&(t[Df][ds[4]]=h)}}return s}},e[Lf]=function(t,n,r){if(-1===h||u=2)try{var a=+i[1]||0,s=+i[2]||0;isNaN(a)||a<=0?Ei(o,2,27,"AI session acquisition date is 0"+r):isNaN(s)||s<=0?Ei(o,2,27,"AI session renewal date is 0"+r):i[0]&&(e.id=i[0],e[Cp]=a,e[Tp]=s,n=!0)}catch(u){Ei(o,1,9,"Error parsing ai_session value ["+(t||"")+"]"+r+" - "+Rn(u),{exception:ii(u)})}return n}function c(e,t){var o=e[Cp];e[Tp]=t;var s=n[kp],u=s[_p](),c=o+s[xp]()-t,l=[e.id,o,t],f=0;f=c0?f:null,d),i=t}r=function(){return"ai_session"+s},n[Ep]=new Dp,n[Qd]=function(){var t=On(),s=!1,l=n[Ep];l.id||(s=!function(e,t){var n=!1,i=a.get(r());if(i&&sn(i.split))n=u(e,i);else{var s=Di(o,r());s&&(n=u(e,s))}return n||!!e.id}(l));var f=n.config[xp]();if(!s&&f>0){var d=n.config[_p](),p=t-l[Cp],h=t-l[Tp];s=(s=(s=p<0||h<0)||p>f)||h>d}s?function(e){var t=n[kp]||{},r=(t[bp]?t[bp]():null)||ga;n.automaticSession.id=r(t[yp]?t[yp]():22),n[Ep][Cp]=e,c(n[Ep],e),Ni()||Ei(o,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(t):(!i||t-i>e.cookieUpdateInterval)&&c(l,t)},n.backup=function(){var e,t,i,a=n[Ep];e=a.id,t=a[Cp],i=a[Tp],Ii(o,r(),[e,t,i][Ap]("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),Mp=function(e,t,n,r){var i=this;i.traceID=e||Qa(),i.parentID=t;var o=Xr();!n&&o&&o.pathname&&(n=o.pathname),i.name=to(r,n)};function Lp(e){return!("string"!==typeof e||!e||e.match(/,|;|=| |\|/))}var jp=function(){function e(t,n){this.isNewUser=!1,this.isUserCookieSet=!1;var r,i=yi(n),o=Jo(n);K(e,this,(function(n){n[kp]=t;var a=n.config[mp]&&n[kp][mp]()?n[kp][mp]():"";r=function(){return e.userCookieName+a};var s=o.get(r());if(s){n[tp]=!1;var u=s.split(e[Fp]);u[wp]>0&&(n.id=u[0],n[ep]=!!n.id)}function c(){var e=t||{};return((e[bp]?e[bp]():null)||ga)(e[yp]?t[yp]():22)}function l(e){var t=yn(new Date);return n.accountAcquisitionDate=t,n[tp]=!0,[e,t]}function f(e){n[ep]=o.set(r(),e,31536e3)}if(!n.id){n.id=c(),f(l(n.id)[Ap](e[Fp]));var d=t[gp]&&t[gp]()?t[gp]()+"ai_session":"ai_session";Mi(i,d)}n[dp]=t[dp]?t[dp]():void 0;var p=o.get(e[Op]);if(p){var h=(p=decodeURI(p)).split(e[Fp]);h[0]&&(n[Sp]=h[0]),h[wp]>1&&h[1]&&(n[dp]=h[1])}n.setAuthenticatedUserContext=function(t,r,a){if(void 0===a&&(a=!1),!Lp(t)||r&&!Lp(r))Ei(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{n[Sp]=t;var s=n[Sp];r&&(n[dp]=r,s=[n[Sp],n.accountId][Ap](e[Fp])),a&&o.set(e[Op],encodeURI(s))}},n.clearAuthenticatedUserContext=function(){n[Sp]=null,n[dp]=null,o.del(e[Op])},n[Qd]=function(t){n.id===t&&n[ep]||f(l(t||c())[Ap](e[Fp]))}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),Up="ext",Zp="tags";function Bp(e,t){e&&e[t]&&0===Cn(e[t])[wp]&&delete e[t]}var Hp,Vp=function(){function e(t,n,r){var i=this,o=t.logger;this.appId=function(){return null},this[hp]=function(){return null},K(e,this,(function(e){if(e.application=new $d,e.internal=new Rp(n),qr()){e[Xd]=new Ip(n,t),e.device=new Jd,e.location=new Np,e.user=new jp(n,t);var a,s=void 0,u=void 0;r&&(s=r.getTraceId(),u=r.getSpanId(),a=r.getName()),e[rp]=new Mp(s,u,a,o),e.session=new Dp}e[hp]=function(){var t=e.session,n=null;if(t&&hn(t.id))n=t.id;else{var r=(e[Xd]||{})[Ep];n=r&&hn(r.id)?r.id:null}return n},e[ip]=function(t,n){Nn(Dn(t.ext,kc.AppExt),"sesId",e[hp](),hn)},e[cp]=function(t,n){Nn(t.ext,kc.OSExt,e.os)},e[op]=function(t,n){var r=e.application;if(r){var i=Dn(t,Zp);Nn(i,Cc.applicationVersion,r.ver,hn),Nn(i,Cc.applicationBuild,r.build,hn)}},e[ap]=function(t,n){var r=e.device;if(r){var i=Dn(Dn(t,Up),kc.DeviceExt);Nn(i,"localId",r.id,hn),Nn(i,"ip",r.ip,hn),Nn(i,"model",r.model,hn),Nn(i,"deviceClass",r.deviceClass,hn)}},e[fp]=function(t,n){var r=e.internal;if(r){var i=Dn(t,Zp);Nn(i,Cc.internalAgentVersion,r.agentVersion,hn),Nn(i,Cc.internalSdkVersion,to(o,r.sdkVersion,64),hn),t.baseType!==mi.dataType&&t.baseType!==vo.dataType||(Nn(i,Cc.internalSnippet,r.snippetVer,hn),Nn(i,Cc.internalSdkSrc,r.sdkSrc,hn))}},e[lp]=function(e,t){var n=i.location;n&&Nn(Dn(e,Zp,[]),Cc.locationIp,n.ip,hn)},e[sp]=function(t,n){var r=e[rp];if(r){var i=Dn(Dn(t,Up),kc.TraceExt,{traceID:void 0,parentID:void 0});Nn(i,"traceID",r.traceID,hn,nn),Nn(i,"name",r.name,hn,nn),Nn(i,"parentID",r.parentID,hn,nn)}},e.applyWebContext=function(e,t){var n=i.web;n&&Nn(Dn(e,Up),kc.WebExt,n)},e[up]=function(t,n){var r=e.user;if(r){Nn(Dn(t,Zp,[]),Cc.userAccountId,r[dp],hn);var i=Dn(Dn(t,Up),kc.UserExt);Nn(i,"id",r.id,hn),Nn(i,"authId",r[Sp],hn)}},e.cleanUp=function(e,t){var n=e.ext;n&&(Bp(n,kc.DeviceExt),Bp(n,kc.UserExt),Bp(n,kc.WebExt),Bp(n,kc.OSExt),Bp(n,kc.AppExt),Bp(n,kc.TraceExt))}}))}return e.__ieDyn=1,e}(),zp=function(e){function t(){var n,r,i,o=e.call(this)||this;return o.priority=110,o.identifier=Hi,K(t,o,(function(e,o){function a(){n=null,r=null,i=null}a(),e.initialize=function(a,s,u,c){o.initialize(a,s,u,c),function(o){var a=e.identifier,s=e.core,u=qs(null,o,s),c=t.getDefaultConfig();n=n||{},cn(c,(function(e,t){n[e]=function(){return u.getConfig(a,e,t())}})),o.storagePrefix&&Ri(o.storagePrefix);i=s[np](!1),e.context=new Vp(s,n,i),r=Cs(e.context[rp],i),s.setTraceCtx(r),e.context.appId=function(){var e=s.getPlugin(Vi);return e?e.plugin._appId:null},e._extConfig=n}(a)},e.processTelemetry=function(t,n){if(nn(t));else{n=e._getTelCtx(n),t.name===vo.envelopeType&&n.diagLog().resetInternalMessageCount();var r=e.context||{};r.session&&"string"!==typeof e.context.session.id&&r[Xd]&&r[Xd][Qd]();var i=r.user;if(i&&!i[ep]&&i[Qd](r.user.id),function(t,n){Dn(t,"tags",[]),Dn(t,"ext",{});var r=e.context;r[ip](t,n),r[op](t,n),r[ap](t,n),r[sp](t,n),r[up](t,n),r[cp](t,n),r.applyWebContext(t,n),r[lp](t,n),r[fp](t,n),r.cleanUp(t,n)}(t,n),i&&i[tp]){i[tp]=!1;var o=new mi(72,($r()||{}).userAgent||"");!function(e,t,n){wi(e)[tt](t,n)}(n.diagLog(),1,o)}e.processNext(t,n)}},e._doTeardown=function(e,t){var n=(e||{}).core();n&&n[np]&&(n[np](!1)===r&&n.setTraceCtx(i));a()}})),o}return fe(t,e),t.getDefaultConfig=function(){var e,t,n=null;return(e={instrumentationKey:function(){return t}})[dp]=function(){return n},e.sessionRenewalMs=function(){return 18e5},e.samplingPercentage=function(){return 100},e.sessionExpirationMs=function(){return 864e5},e[Pp]=function(){return n},e[pp]=function(){return n},e.isBrowserLinkTrackingEnabled=function(){return!1},e.appId=function(){return n},e[hp]=function(){return n},e[gp]=function(){return t},e[vp]=function(){return t},e[mp]=function(){return t},e[yp]=function(){return 22},e[bp]=function(){return n},e},t}(ou),qp=zp,Wp="AuthenticatedUserContext",Kp="track",Yp="snippet",Gp="flush",$p="addTelemetryInitializer",Jp="pollInternalLogs",Xp="getPlugin",Qp="evtNamespace",eh=Kp+"Event",th=Kp+"Trace",nh=Kp+"Metric",rh=Kp+"PageView",ih=Kp+"Exception",oh=Kp+"DependencyData",ah="set"+Wp,sh="clear"+Wp,uh="endpointUrl",ch="diagnosticLogInterval",lh="config",fh="context",dh="push",ph="version",hh="queue",gh="connectionString",vh="instrumentationKey",mh="appInsights",yh="disableIkeyDeprecationMessage",bh="getTransmissionControls",wh="onunloadFlush",Eh="addHousekeepingBeforeUnload",Sh="indexOf",xh=[Yp,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],_h=function(){function e(t){var n,r,i,o,a,s,u,c=this;K(e,this,(function(e){a=Sa("AISKU"),s=null,n=null,r=null,i=null,o=null,o=""+(t.sv||t[ph]||""),t[hh]=t[hh]||[],t[ph]=t[ph]||2;var l=t[lh]||{};if(l[gh]){var f=tf(l[gh]),d=f.ingestionendpoint;l[uh]=d?d+$i:l[uh],l[vh]=f.instrumentationkey||l[vh]}e[mh]=new pc,r=new qp,n=new Gd,i=new ef,u=new vf,e.core=u;var p=!!nn(l[yh])||l[yh];l[gh]||p||Ei(u.logger,1,106,"Instrumentation key support will end soon, see aka.ms/IkeyMigrate"),e[Yp]=t,e[lh]=l,e.config[ch]=e.config[ch]&&e[lh][ch]>0?e[lh][ch]:1e4,e[Gp]=function(e){void 0===e&&(e=!0),Is(u,(function(){return"AISKU.flush"}),(function(){bn(u[bh](),(function(t){bn(t,(function(t){t[Gp](e)}))}))}),null,e)},e[wh]=function(e){void 0===e&&(e=!0),bn(u[bh](),(function(t){bn(t,(function(t){t[wh]?t[wh]():t[Gp](e)}))}))},e.loadAppInsights=function(t,a,s){return void 0===t&&(t=!1),t&&e[lh].extensions&&e[lh].extensions.length>0&&Ln("Extensions not allowed in legacy mode"),Is(e.core,(function(){return"AISKU.loadAppInsights"}),(function(){var c=[];c[dh](i),c[dh](r),c[dh](n),c[dh](e[mh]),u.initialize(e[lh],c,a,s),e[fh]=r[fh],Hp&&e[fh]&&(e[fh].internal.sdkSrc=Hp),function(n){if(n){var r="";nn(o)||(r+=o),t&&(r+=".lg"),e[fh]&&e[fh].internal&&(e[fh].internal.snippetVer=r||"-"),cn(e,(function(e,t){hn(e)&&!sn(t)&&e&&"_"!==e[0]&&-1===wn(xh,e)&&(n[e]=t)}))}}(e[Yp]),e.emptyQueue(),e[Jp](),e[Eh](e)})),e},e.updateSnippetDefinitions=function(t){!function(e,t,n){if(e&&t&&an(e)&&an(t)){var r=function(r){if(hn(r)){var i=t[r];sn(i)?n&&!n(r,!0,t,e)||(e[r]=jn(t,r)):n&&!n(r,!1,t,e)||(on(e,r)&&delete e[r],Tn(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}}(t,e,(function(e){return e&&-1===wn(xh,e)}))},e.emptyQueue=function(){try{if(dn(e.snippet[hh])){for(var t=e.snippet[hh].length,n=0;n iframe[src*="connect/authorize"]':{display:"none"},body:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"}.REACT_APP_EMBED?void 0:{display:"flex",height:"100%",margin:0}}}})),Oh=function(e){var t,n,r,c=e.store,h=e.children,g=e.prefix,v=(0,a.v9)((function(e){return e.portalCustomization})),m=(0,a.I0)(),y=null===(t=window.clerkEmbedProps)||void 0===t?void 0:t.maxBreakpoint,b=null===(n=window.clerkEmbedProps)||void 0===n?void 0:n.breakpoints,w={breakpoints:{values:b}},E=Fh();(0,o.useEffect)((function(){null==v&&(0,f.$G)()(m)}),[m,v]);var S=(0,o.useState)(void 0),x=(0,i.Z)(S,2),_=x[0],k=x[1];return(0,o.useEffect)((function(){var e=document.createElement("div");return e.id=Ah,document.body.appendChild(e),k(e),function(){document.body.removeChild(e)}}),[]),v?(0,Ph.jsx)(p.Provider,{value:Th,children:(0,Ph.jsx)("div",{id:"app",className:E.app,"data-testid":"root",children:(0,Ph.jsx)(s.OidcProvider,{store:c,userManager:u.Z.userManager,children:(0,Ph.jsx)(l.Z,{product:"clerk",primaryHex:(null===(r=window.clerkEmbedProps)||void 0===r?void 0:r.color)||(null===v||void 0===v?void 0:v.publicPortalCustomColor)||"#b3b3b3",cssReset:Boolean({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"}.REACT_APP_EMBED),specificity:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"}.REACT_APP_EMBED?3:void 0,prefix:g,themeOverride:b?w:void 0,maxBreakpoint:y||void 0,SnackbarProviderProps:{domRoot:_},children:h})})})}):(0,Ph.jsx)("div",{id:"app",className:E.app,"data-testid":"loading","aria-describedby":"loader-app",children:(0,Ph.jsx)(l.Z,{primaryHex:"#b3b3b3",cssReset:Boolean({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"}.REACT_APP_EMBED),specificity:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"}.REACT_APP_EMBED?3:void 0,prefix:g,children:(0,Ph.jsx)(d.Z,{"data-testid":"loader","aria-label":"Loading page content",id:"loader-app",verticallyCenter:!0})})})}},81265:function(e,t){"use strict";var n=function(e){return e[e.GET_EVENTS_LIST=0]="GET_EVENTS_LIST",e[e.GET_NEXT_PAST_EVENTS_LIST=1]="GET_NEXT_PAST_EVENTS_LIST",e[e.CLEAN_EVENT_LIST=2]="CLEAN_EVENT_LIST",e[e.GET_EVENT_DETAILS=3]="GET_EVENT_DETAILS",e[e.CLEAN_EVENT_DETAILS=4]="CLEAN_EVENT_DETAILS",e[e.GET_AGENDA_EVENT=5]="GET_AGENDA_EVENT",e[e.CLEAN_AGENDA_EVENT=6]="CLEAN_AGENDA_EVENT",e[e.GET_EVENT_MEDIA=7]="GET_EVENT_MEDIA",e[e.CLEAN_EVENT_MEDIA=8]="CLEAN_EVENT_MEDIA",e[e.SET_JWPLAYER_VIDEO=9]="SET_JWPLAYER_VIDEO",e[e.CLEAN_JWPLAYER_VIDEO=10]="CLEAN_JWPLAYER_VIDEO",e[e.GET_CATEGORIES=11]="GET_CATEGORIES",e[e.UPDATE_EVENT_FILTERS=12]="UPDATE_EVENT_FILTERS",e[e.UPDATE_SELECTED_DATE=13]="UPDATE_SELECTED_DATE",e[e.UPDATE_NEXT_LINK=14]="UPDATE_NEXT_LINK",e[e.UPDATE_PAST_LINK=15]="UPDATE_PAST_LINK",e[e.GET_SEARCH_RESULTS=16]="GET_SEARCH_RESULTS",e[e.GET_NEXT_SEARCH_RESULTS=17]="GET_NEXT_SEARCH_RESULTS",e[e.CLEAR_SEARCH_RESULTS=18]="CLEAR_SEARCH_RESULTS",e[e.GET_PORTAL_CUSTOMIZATION=19]="GET_PORTAL_CUSTOMIZATION",e[e.SET_LOADING=20]="SET_LOADING",e[e.SET_SCROLL_TO_TODAY=21]="SET_SCROLL_TO_TODAY",e}(n||{});t.Z=n},65295:function(e,t,n){"use strict";n.d(t,{$G:function(){return A},Ck:function(){return T},F7:function(){return m},HM:function(){return y},HR:function(){return x},Im:function(){return O},K4:function(){return F},OM:function(){return C},RK:function(){return c},Ru:function(){return _},as:function(){return E},bD:function(){return p},eY:function(){return g},hi:function(){return k},ph:function(){return S},vP:function(){return P},wV:function(){return v},xM:function(){return d},xQ:function(){return f}});var r=n(1413),i=n(93433),o=n(74165),a=n(15861),s=n(5494),u=n(81265),c=(n(57906),function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return function(c){return(e=e||(0,a.Z)((0,o.Z)().mark((function e(a){var c,f,d,p,h,g,v,m,y,E,S,x,_,k,C,T,A,F,O,R,N,D,I,M,L,j;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p=function(){return h.params.$filter?" and":""},h={params:{$filter:"",$orderby:"startDateTime"}},(g=null!==t&&void 0!==t&&t.calendarDate?new Date(t.calendarDate):new Date).setHours(0,0,0),null!==t&&void 0!==t&&t.calendarDate||g.setDate(g.getDate()),t&&(null!==(v=t.categories)&&void 0!==v&&v.length&&(h.params.$filter+="categoryId in (".concat(t.categories.join(),")")),n?(null!==(T=t.loadPastDate)&&void 0!==T&&T.from&&(h.params.$filter+="".concat(p()," startDateTime ge ").concat(l(new Date(t.loadPastDate.from)))),null!==(A=t.loadPastDate)&&void 0!==A&&A.to&&(h.params.$filter+="".concat(p()," startDateTime le ").concat(l(new Date(t.loadPastDate.to)))),null!==(F=t.loadPastDate)&&void 0!==F&&F.skip&&(h.params.$skip="".concat(t.loadPastDate.skip)),h.params.$orderby="startDateTime desc"):(a(P()),null!==(m=t.date)&&void 0!==m&&m.from&&((k=new Date(t.date.from)).setUTCHours(0,0,0),h.params.$filter+="".concat(p()," startDateTime ge ").concat(l(k))),null!==(y=t.date)&&void 0!==y&&y.to&&((C=new Date(t.date.to)).setUTCHours(23,59,59),h.params.$filter+="".concat(p()," startDateTime le ").concat(l(C))),null!==(E=t.date)&&void 0!==E&&E.from||null===(S=t.date)||void 0===S||!S.to||(h.params.$orderby="startDateTime desc"),null!==(x=t.date)&&void 0!==x&&x.from||null!==(_=t.date)&&void 0!==_&&_.to||(h.params.$filter+="".concat(p()," startDateTime ge ").concat(l(g))),r&&t.skip&&(h.params.$skip="".concat(t.skip)))),h.params.$filter||(h.params.$filter+="".concat(p()," startDateTime ge ").concat(l(g))),O="/Events",5,!i||null!==t&&void 0!==t&&t.calendarDate||null!==t&&void 0!==t&&null!==(c=t.categories)&&void 0!==c&&c.length||null!==t&&void 0!==t&&null!==(f=t.date)&&void 0!==f&&f.from||null!==t&&void 0!==t&&null!==(d=t.date)&&void 0!==d&&d.to){e.next=25;break}return h.params={},D="/Events?$filter=startDateTime le ".concat(l(g),"&$orderby=EventDate desc, EventName desc&$top=").concat(5),I="/Events?$filter=startDateTime gt ".concat(l(g),"&$orderby=EventDate asc, EventName asc"),M=[],e.next=16,s._z.get(D,h);case 16:return L=e.sent,null!==(R=L.data)&&void 0!==R&&R.value&&(M=M.concat(L.data.value)),e.next=20,s._z.get(I,h);case 20:return j=e.sent,null!==(N=j.data)&&void 0!==N&&N.value&&(M=M.concat(j.data.value)),a(b(!0)),w(0===M.length),e.abrupt("return",a({type:u.Z.GET_EVENTS_LIST,payload:M.length>0?M:void 0}));case 25:return e.abrupt("return",s._z.get(O,h).then((function(e){var o,s,c,l=e.data;n||(!i||null!==t&&void 0!==t&&t.calendarDate||null!==t&&void 0!==t&&null!==(o=t.categories)&&void 0!==o&&o.length||null!==t&&void 0!==t&&null!==(s=t.date)&&void 0!==s&&s.from||null!==t&&void 0!==t&&null!==(c=t.date)&&void 0!==c&&c.to?a(b(!!l["@odata.nextLink"])):a(b(!0)));return r||a(w(0===(null===l||void 0===l?void 0:l.value.length))),a({type:n||r?u.Z.GET_NEXT_PAST_EVENTS_LIST:u.Z.GET_EVENTS_LIST,payload:(null===l||void 0===l?void 0:l.value)||null})})));case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}});function l(e){return e.toISOString()}var f=function(){return{type:u.Z.CLEAN_EVENT_LIST}},d=function(e){return function(t){return s._z.get("/Events/".concat(e)).then((function(e){var n,r=e.data;return t((n=r,{type:u.Z.GET_EVENT_DETAILS,payload:n}))}))}},p=function(){return{type:u.Z.CLEAN_EVENT_DETAILS}},h=function(e){return{type:u.Z.GET_AGENDA_EVENT,payload:e}},g=function(){return{type:u.Z.CLEAN_AGENDA_EVENT}},v=function(e){return e?function(t){return s._z.get("/Meetings/".concat(e)).then((function(e){var n=e.data;return t(h(n))}))}:h({id:-1,items:[],publishedFiles:[],isPublish:!1})},m=function(e){return{type:u.Z.GET_EVENT_MEDIA,payload:e}},y=function(e){return{type:u.Z.UPDATE_SELECTED_DATE,payload:e}},b=function(e){return{type:u.Z.UPDATE_NEXT_LINK,payload:e}},w=function(e){return{type:u.Z.UPDATE_PAST_LINK,payload:e}},E=function(e){return function(t){return s._z.get("/EventsMedia/".concat(e)).then((function(e){var n=e.data;return t(m({id:null===n||void 0===n?void 0:n.id,videoUrl:null===n||void 0===n?void 0:n.videoUrl,eventBookmarks:null===n||void 0===n?void 0:n.eventBookmarks,externalVideoUrl:null===n||void 0===n?void 0:n.externalVideoUrl,isLiveStreaming:null===n||void 0===n?void 0:n.isLiveStreaming,eventCCKey:null===n||void 0===n?void 0:n.eventCCKey,pauseMessage:null===n||void 0===n?void 0:n.pauseMessage,streamingStatus:null===n||void 0===n?void 0:n.streamingStatus,transcriptionUrl:null===n||void 0===n?void 0:n.transcriptionUrl,closedCaptionUrl:null===n||void 0===n?void 0:n.closedCaptionUrl,closedCaptionTracks:null===n||void 0===n?void 0:n.closedCaptionTracks,defaultFileName:null===n||void 0===n?void 0:n.defaultFileName,showTranscoding:n.showTranscoding}))}))}},S=function(){return{type:u.Z.CLEAN_EVENT_MEDIA}},x=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=[];if(null!==n&&void 0!==n&&null!==(e=n.bookmark)&&void 0!==e&&e.length&&0===(null===n||void 0===n||null===(t=n.tracks)||void 0===t?void 0:t.filter((function(e){return"chapters"===e.kind})).length)){var a,s="WEBVTT\n\n",c=1;null===n||void 0===n||null===(a=n.bookmark)||void 0===a||a.forEach((function e(t){var n;s+="Chapter ".concat(c,"\n").concat(t.markerTimeHHMMSSFormat,".000 --\x3e ").concat(t.markerTimeHHMMSSFormat,".000\n").concat(t.markerTitle,"\n\n"),null===(n=t.additionalBookmarks)||void 0===n||n.forEach(e),c++}));var l=URL.createObjectURL(new Blob([s],{type:"text/vtt"}));o.push({file:l,kind:"chapters"})}return null!==n&&void 0!==n&&n.tracks&&o.push.apply(o,(0,i.Z)(n.tracks)),{type:u.Z.SET_JWPLAYER_VIDEO,payload:(0,r.Z)((0,r.Z)({},n),{},{tracks:o})}},_=function(){return{type:u.Z.CLEAN_JWPLAYER_VIDEO}},k=function(){return function(e){return s._z.get("/EventCategories").then((function(t){var n=t.data;return e({type:u.Z.GET_CATEGORIES,payload:n.value})}))}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return{type:u.Z.UPDATE_EVENT_FILTERS,payload:e}},T=function(e){return function(t){var n,r;t(f());var i=e.contentTypes?e.contentTypes.join(","):"",o="",a="";null!=(null===(n=e.date)||void 0===n?void 0:n.from)&&(o=new Date(e.date.from).toDateString()),null!=(null===(r=e.date)||void 0===r?void 0:r.to)&&(a=new Date(e.date.to).toDateString());var c,l="/Search/GetPortalSearch(search='{search}',categoryIds='{categoryIds}',startDate='{startDate}',endDate='{endDate}',skip='{skip}',subFilter='{subFilter}',agendaFileType='{agendaFileType}')?search=".concat(e.search);e.categories&&(l+="&categoryIds=(".concat(null===(c=e.categories)||void 0===c?void 0:c.join(),")"));return o&&(l+="&startDate=".concat(o)),a&&(l+="&endDate=".concat(a)),i&&(l+="&subFilter=".concat(i)),e.skip&&(l+="&skip=".concat(e.skip)),s._z.get(l).then((function(n){var r=n.data;return t({type:e.skip?u.Z.GET_NEXT_SEARCH_RESULTS:u.Z.GET_SEARCH_RESULTS,payload:null===r||void 0===r?void 0:r.value})}))}},P=function(){return{type:u.Z.CLEAR_SEARCH_RESULTS}},A=function(){return function(e){return s._z.get("/Settings/GetPublicPortalCustomizations").then((function(t){var n,r=t.data;return e((n=r,{type:u.Z.GET_PORTAL_CUSTOMIZATION,payload:n}))}))}},F=function(e){return{type:u.Z.SET_LOADING,payload:e}},O=function(e){return{type:u.Z.SET_SCROLL_TO_TODAY,payload:e}}},5494:function(e,t,n){"use strict";n.d(t,{ZG:function(){return o},pO:function(){return u},_z:function(){return s}});var r=n(55294),i=n(59455),o=r.Z.create(),a=n(1426),s=r.Z.create({baseURL:function(){var e,t;if("localhost"===window.location.hostname)return i.t.dV;var n,r=window.location.hostname.split(".")[0];null!==(e=window.clerkEmbedProps)&&void 0!==e&&e.tenant&&(r=null===(n=window.clerkEmbedProps)||void 0===n?void 0:n.tenant);var o,s=i.t.FH;"qa"===(null===a||void 0===a||null===(t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"})||void 0===t?void 0:t.REACT_APP_ENV)?s=i.t.db:"staging"===(null===a||void 0===a||null===(o={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"})||void 0===o?void 0:o.REACT_APP_ENV)&&(s=i.t.oP);return s.replace("[TENANT]",r)}()}),u=function(e,t){s.defaults.headers.common.Authorization="".concat(e," ").concat(t)}},42848:function(e,t,n){"use strict";n.d(t,{g:function(){return w}});var r=n(29439),i=n(4942),o=n(72791),a=n(88537),s=n(88066),u=n(19226),c=n(80584),l=n(22344),f=n(25850),d=n(24432),p=n(81195),h=n(11014),g=n(53540),v=n(81694),m=n.n(v),y=n(16030),b=n(80184),w="#Event-list [data-date]",E=(0,a.ZL)((function(e){var t;return{dateDetails:(t={"@container eventListContainer (width > 800px)":{maxWidth:180},background:e.palette.primary.main,color:e.palette.primary.contrastText,borderTopLeftRadius:e.shape.borderRadius,padding:e.spacing(1.5)},(0,i.Z)(t,e.breakpoints.down("md"),{display:"flex",flexWrap:"wrap"}),(0,i.Z)(t,"@container eventListContainer (max-width: 800px)",{borderTopRightRadius:e.shape.borderRadius,borderBottomRightRadius:0,borderBottomLeftRadius:0}),t),otherDetails:{"@container eventListContainer (width > 800px)":{maxWidth:"calc(100% - ".concat(180,"px)")}},eventsContainer:{"@container eventListContainer (max-width: 800px)":{flexDirection:"column"}},dateDetailsBorder:{borderBottomLeftRadius:e.shape.borderRadius},renderedDate:{textTransform:"uppercase"},renderedDateColor:{color:e.palette.primary.contrastText},eventDetails:(0,i.Z)({padding:e.spacing(2,1,2,2)},e.breakpoints.down("xs"),{padding:e.spacing(1.25)}),eventTitle:(0,i.Z)({padding:e.spacing(0,0,.5,0)},e.breakpoints.down("xs"),{padding:0}),locationIcon:(0,i.Z)({margin:e.spacing(0,1,0,0)},e.breakpoints.down("xs"),{marginRight:e.spacing(.5)}),notice:{fontSize:e.typography.caption.fontSize,color:"red"},rowButton:{width:e.spacing(6)},embedTextColor:{color:"inherit"},liveIcon:{textTransform:"uppercase",display:"flex",alignItems:"center"},eventRowListWrapper:{padding:0,fontFamily:e.typography.fontFamily,"& .prmbl-button":{textTransform:"none",letterSpacing:"normal"},"@container eventListContainer (max-width: 800px)":{flexDirection:"column"}},chipRow:(0,i.Z)({marginTop:e.spacing(2)},e.breakpoints.down("xs"),{marginTop:e.spacing(1)})}})),S=function(e){var t=e.id,n=e.startDateTime,v=e.categoryName,w=e.eventName,S=e.eventNotice,x=e.showEventNoticePreview,_=e.liveIsCurrentlyStreaming,k=e.streamingStatus,C=e.eventLocation,T=e.loading,P=e.searchResults,A=E(e),F=(0,a.Fg)(),O=o.useRef(null),R=(0,o.useState)(),N=(0,r.Z)(R,2),D=N[0],I=N[1],M=x&&S,L=(0,y.v9)((function(e){return e.portalCustomization})),j=(0,b.jsx)(d.Z,{color:F.palette.primary.light,width:F.spacing(6)}),U=(0,b.jsx)(d.Z,{color:F.palette.primary.light,width:F.spacing(D?12:17)}),Z=(0,b.jsx)(d.Z,{color:F.palette.primary.light,width:F.spacing(12)}),B=D?(0,b.jsx)(d.Z,{color:F.palette.primary.light,width:F.spacing(8)}):(0,b.jsx)(b.Fragment,{});!T&&n&&(j=(0,l.p6)((0,f.Ee)(n),"EEEE"),U=(0,l.p6)((0,f.Ee)(n),"MMM d, "),B=(0,l.p6)((0,f.Ee)(n),"yyyy"),Z=(D?"":"at ")+"".concat((0,l.p6)((0,f.Ee)(n),"h:mm aa")," ").concat(null===L||void 0===L?void 0:L.abbreviatedTimeZone));var H=n?(0,l.p6)((0,f.Ee)(n),"EEEE, MMM. dd, yyyy h:mm aa"):void 0;return(0,o.useEffect)((function(){function e(){var e,t,n;(null===O||void 0===O?void 0:O.current)&&I((null===(e=O.current)||void 0===e?void 0:e.clientWidth)!==(null===(t=O.current)||void 0===t||null===(n=t.parentElement)||void 0===n?void 0:n.clientWidth))}var t,n,r;!D&&O.current&&I((null===(t=O.current)||void 0===t?void 0:t.clientWidth)!==(null===(n=O.current)||void 0===n||null===(r=n.parentElement)||void 0===r?void 0:r.clientWidth));return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[D]),(0,b.jsxs)(u.Z,{container:!0,className:A.eventsContainer,id:"eventListRow-".concat(t),"data-date":n,"aria-labelledby":"eventListRow-".concat(t,"-title"),"aria-describedby":"eventListRow-".concat(t,"-datetime"),"data-testid":"row",children:[(0,b.jsx)(u.Z,{item:!0,xs:!0,className:m()(A.dateDetails,(0,i.Z)({},A.dateDetailsBorder,!P)),"data-testid":"dateDetails",innerRef:O,children:(0,b.jsx)(u.Z,{id:"eventListRow-".concat(t,"-datetime"),container:!0,"aria-label":"".concat(v," event on ").concat(H),children:D?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.Z,{item:!0,xs:12,children:(0,b.jsx)(s.C,{variant:"caption",children:j})}),(0,b.jsx)(u.Z,{item:!0,xs:12,className:A.renderedDate,children:(0,b.jsxs)(s.C,{variant:"h5",component:"h2",className:A.renderedDateColor,children:[U,(0,b.jsx)("br",{}),B]})}),(0,b.jsx)(u.Z,{item:!0,xs:12,children:(0,b.jsx)(s.C,{variant:"body2",className:A.embedTextColor,children:Z})})]}):(0,b.jsx)(u.Z,{item:!0,xs:12,children:(0,b.jsxs)(s.C,{variant:"body2",children:[j," ",U," ",B," ",Z," "]})})})}),(0,b.jsx)(u.Z,{className:A.otherDetails,item:!0,xs:!0,children:(0,b.jsxs)(u.Z,{container:!0,className:A.eventDetails,"data-testid":"eventDetails",children:[(0,b.jsx)(u.Z,{item:!0,xs:12,className:A.eventTitle,children:(0,b.jsxs)(u.Z,{container:!0,spacing:1,alignItems:"center",children:[(0,b.jsx)(u.Z,{item:!0,children:(0,b.jsx)(s.C,{id:"eventListRow-".concat(t,"-title"),variant:D?"h6":"subtitle1",component:"h3",className:A.embedTextColor,children:T?(0,b.jsx)(d.Z,{width:F.spacing(22)}):w?(0,g.ZP)("".concat(w)):"".concat(v," Event")})}),_&&(0,b.jsx)(u.Z,{item:!0,children:(0,b.jsx)(s.C,{variant:"subtitle2",align:"inherit",className:A.liveIcon,children:2===k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.Z,{"data-testid":"live",color:"error",fontSize:"inherit"}),"live"]}):1===k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.Z,{"data-testid":"paused",color:"action",fontSize:"inherit"}),"paused"]}):null})})]})}),C&&(0,b.jsx)(u.Z,{item:!0,xs:12,children:(0,b.jsxs)(u.Z,{container:!0,wrap:"nowrap",children:[null!==C&&void 0!==C&&C.address1?(0,b.jsx)(p.Z,{color:"disabled",fontSize:"small",className:A.locationIcon}):null,(0,b.jsxs)(s.C,{variant:D?void 0:"subtitle2",children:[null!==C&&void 0!==C&&C.address1?(0,g.ZP)("".concat(C.address1," ")):"",null!==C&&void 0!==C&&C.address2?(0,g.ZP)("".concat(C.address2," ")):"",null!==C&&void 0!==C&&C.city?(0,g.ZP)("".concat(C.city,", ")):"",null!==C&&void 0!==C&&C.state?(0,g.ZP)("".concat(C.state," ")):"",null!==C&&void 0!==C&&C.zipCode?(0,g.ZP)("".concat(C.zipCode)):""]})]})}),(T||M)&&(0,b.jsx)(u.Z,{item:!0,xs:12,md:10,children:(S||T)&&(0,b.jsx)(s.C,{variant:D?"subtitle1":"subtitle2",title:"Notice",component:"p",className:A.embedTextColor,children:T?(0,b.jsx)(d.Z,{width:F.spacing(32)}):S})}),(0,b.jsx)(u.Z,{className:A.chipRow,item:!0,xs:8,md:10,children:v||T?(0,b.jsx)(c.Z,{label:T?(0,b.jsx)(d.Z,{width:F.spacing(10),color:F.palette.primary.light}):v}):void 0})]})})]})};t.Z=o.memo(S)},57906:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var r=function(e){return e.showAll="ShowAll",e.agendas="Agendas",e.events="Events",e.items="Items",e.agendaFiles="AgendaFiles",e.attachments="Attachments",e.bookmarks="Bookmarks",e.closedCaptions="ClosedCaptions",e.translations="Translations",e}({})},90636:function(e,t,n){"use strict";var r=n(74165),i=n(15861),o=n(43144),a=n(15671),s=n(45237),u=n(5494),c=n(15685),l={client_id:"",redirect_uri:"".concat(window.location.origin,"/login-callback"),response_type:"code",scope:"openid profile email civicclerk.api notifications.api",authority:"",automaticSilentRenew:!1,filterProtocolClaims:!0,loadUserInfo:!0,post_logout_redirect_uri:"".concat(window.location.origin,"/logout-callback"),revokeAccessTokenOnSignout:!0,userStore:new c.WebStorageStateStore({store:window.localStorage})},f=new((0,o.Z)((function e(){var t=this;(0,a.Z)(this,e),this.userManager=void 0,this.loadUserManager=(0,i.Z)((0,r.Z)().mark((function e(){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.userManager){e.next=14;break}return e.prev=1,e.next=4,u._z.get("/Settings/GetIdentityServerConfiguration");case 4:n=e.sent,i=n.data,l.client_id=i.clientId,l.authority=i.apiUrl,t.userManager=(0,s.createUserManager)(l),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.userManager=null;case 14:case"end":return e.stop()}}),e,null,[[1,11]])}))),this.userManager=null})));t.Z=f},25850:function(e,t,n){"use strict";n.d(t,{DP:function(){return f},Ee:function(){return u},HX:function(){return d},UI:function(){return s},c3:function(){return c},q1:function(){return p}});var r=n(37762),i=n(42848),o=n(35667),a=n(1426),s=function(e,t){return new URLSearchParams(e).get(t)||""},u=function(e){return e?e.replace("Z",""):""},c=function(e,t){return"".concat(window.location.protocol,"//").concat(window.location.host,"event/index.html").concat(e,"index.html").concat(t)},l=function(e){var t,n=document.querySelectorAll(i.g),o=!0,a=n[0],s=new Date,u=new Date,c=!0,l=(0,r.Z)(n);try{for(l.s();!(t=l.n()).done;){var f=t.value,p=f.getAttribute("data-date");if(p){var h=d(p);if(h.setHours(0,0,0),c?(c=!1,s=u=h):(s=h<=s?h:s,u=h>u?h:u),h.getTime()===e.getTime()){a=f;break}}}}catch(m){l.e(m)}finally{l.f()}if(a){var g=a.getAttribute("data-date");if(g){var v=new Date(g);v.setHours(0,0,0),s=v}}return e.setHours(0,0,0,0),s.setHours(0,0,0,0),u.setHours(0,0,0,0),(e<=s||e>=u)&&(o=!1),{closestElement:a,onRange:o}},f=function(e){var t=e,n=l(e).closestElement;if(n){var r=n.getAttribute("data-date");r&&(t=new Date(r)),o.OK.scrollTo(n.id,{duration:500,containerId:"scroll-wrap",smooth:!0,offset:-50})}return t},d=function(e){var t=new Date(e);return new Date(t.valueOf()+60*t.getTimezoneOffset()*1e3)},p=function(e){var t,n,r,i,o,s="qa"===(null===a||void 0===a||null===(t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"})||void 0===t?void 0:t.REACT_APP_ENV)||"staging"===(null===a||void 0===a||null===(n={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"})||void 0===n?void 0:n.REACT_APP_ENV)?".".concat(null===a||void 0===a||null===(r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PUBLIC_PATH:"https://civicclerkcdn.azureedge.net/publicportal-live/",REACT_APP_ENV:"production"})||void 0===r?void 0:r.REACT_APP_ENV):"",u=null!==(i=window.clerkEmbedProps)&&void 0!==i&&i.tenant?null===(o=window.clerkEmbedProps)||void 0===o?void 0:o.tenant:window.location.hostname.split(".")[0];return"https://".concat(u).concat(s,".portal.civicclerk.com").concat(e)}},80584:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(45987),i=n(87462),o=n(72791),a=n(28182),s=(0,n(94327).Z)(o.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),u=n(38317),c=n(13108),l=n(69806),f=n(91122),d=n(95051);function p(e){return"Backspace"===e.key||"Delete"===e.key}var h=o.forwardRef((function(e,t){var n=e.avatar,u=e.classes,c=e.className,h=e.clickable,g=e.color,v=void 0===g?"default":g,m=e.component,y=e.deleteIcon,b=e.disabled,w=void 0!==b&&b,E=e.icon,S=e.label,x=e.onClick,_=e.onDelete,k=e.onKeyDown,C=e.onKeyUp,T=e.size,P=void 0===T?"medium":T,A=e.variant,F=void 0===A?"default":A,O=(0,r.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),R=o.useRef(null),N=(0,l.Z)(R,t),D=function(e){e.stopPropagation(),_&&_(e)},I=!(!1===h||!x)||h,M="small"===P,L=m||(I?d.Z:"div"),j=L===d.Z?{component:"div"}:{},U=null;if(_){var Z=(0,a.Z)("default"!==v&&("default"===F?u["deleteIconColor".concat((0,f.Z)(v))]:u["deleteIconOutlinedColor".concat((0,f.Z)(v))]),M&&u.deleteIconSmall);U=y&&o.isValidElement(y)?o.cloneElement(y,{className:(0,a.Z)(y.props.className,u.deleteIcon,Z),onClick:D}):o.createElement(s,{className:(0,a.Z)(u.deleteIcon,Z),onClick:D})}var B=null;n&&o.isValidElement(n)&&(B=o.cloneElement(n,{className:(0,a.Z)(u.avatar,n.props.className,M&&u.avatarSmall,"default"!==v&&u["avatarColor".concat((0,f.Z)(v))])}));var H=null;return E&&o.isValidElement(E)&&(H=o.cloneElement(E,{className:(0,a.Z)(u.icon,E.props.className,M&&u.iconSmall,"default"!==v&&u["iconColor".concat((0,f.Z)(v))])})),o.createElement(L,(0,i.Z)({role:I||_?"button":void 0,className:(0,a.Z)(u.root,c,"default"!==v&&[u["color".concat((0,f.Z)(v))],I&&u["clickableColor".concat((0,f.Z)(v))],_&&u["deletableColor".concat((0,f.Z)(v))]],"default"!==F&&[u.outlined,{primary:u.outlinedPrimary,secondary:u.outlinedSecondary}[v]],w&&u.disabled,M&&u.sizeSmall,I&&u.clickable,_&&u.deletable),"aria-disabled":!!w||void 0,tabIndex:I||_?0:void 0,onClick:x,onKeyDown:function(e){e.currentTarget===e.target&&p(e)&&e.preventDefault(),k&&k(e)},onKeyUp:function(e){e.currentTarget===e.target&&(_&&p(e)?_(e):"Escape"===e.key&&R.current&&R.current.blur()),C&&C(e)},ref:N},j,O),B||H,o.createElement("span",{className:(0,a.Z)(u.label,M&&u.labelSmall)},S),U)})),g=(0,u.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,c.Fq)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,c._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,c._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,c._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,c._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,c._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,c._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,c.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,c.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,c.Fq)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,c.Fq)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,c.Fq)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,c.Fq)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,c.Fq)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(h),v=n(81694),m=n.n(v),y=n(30166),b=(0,n(88537).ZL)((function(e){return{root:{color:e.palette.primary.contrastText,lineHeight:"1.75",backgroundColor:e.palette.primary.main,borderRadius:2,margin:2,padding:0},label:{color:e.palette.primary.contrastText,padding:"3px 6px",borderRadius:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:e.typography.caption.fontSize},deleteIcon:{cursor:"pointer",fill:e.palette.primary.contrastText,height:"100%",width:14,padding:e.spacing(0,.5),boxSizing:"content-box",margin:0,marginLeft:e.spacing(-.5),"&:hover":{backgroundColor:"rgba(255, 255, 255, .15)"}},deletable:{"&:focus":{backgroundColor:e.palette.primary.dark}},draggable:{display:"inline-block"}}})),w=["id","avatar","label","onDelete","className"],E=function(e){var t=e.id,n=e.avatar,a=e.label,s=e.onDelete,u=e.className,c=(0,r.Z)(e,w),l=b(e);return o.createElement(y._l,{type:"label",className:l.draggable,data:a},o.createElement(g,(0,i.Z)({id:t,className:m()("prmbl-chip",u),classes:{root:l.root,label:l.label,deleteIcon:l.deleteIcon,deletable:l.deletable},avatar:n,label:a,onDelete:s,deleteIcon:o.createElement("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"},o.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},c)))};E.defaultProps={color:"primary",variant:"default"};var S=E},19226:function(e,t,n){"use strict";n.d(t,{r:function(){return T},Z:function(){return P}});var r=n(45987),i=n(43144),o=n(15671),a=n(97326),s=n(60136),u=n(54062),c=n(87462),l=n(4942),f=n(72791),d=n(52007),p=n.n(d),h=n(7131),g=n.n(h),v=n(28182),m=n(38317),y=[0,1,2,3,4,5,6,7,8,9,10],b=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var E=f.forwardRef((function(e,t){var n=e.alignContent,i=void 0===n?"stretch":n,o=e.alignItems,a=void 0===o?"stretch":o,s=e.classes,u=e.className,l=e.component,d=void 0===l?"div":l,p=e.container,h=void 0!==p&&p,g=e.direction,m=void 0===g?"row":g,y=e.item,b=void 0!==y&&y,w=e.justify,E=e.justifyContent,S=void 0===E?"flex-start":E,x=e.lg,_=void 0!==x&&x,k=e.md,C=void 0!==k&&k,T=e.sm,P=void 0!==T&&T,A=e.spacing,F=void 0===A?0:A,O=e.wrap,R=void 0===O?"wrap":O,N=e.xl,D=void 0!==N&&N,I=e.xs,M=void 0!==I&&I,L=e.zeroMinWidth,j=void 0!==L&&L,U=(0,r.Z)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),Z=(0,v.Z)(s.root,u,h&&[s.container,0!==F&&s["spacing-xs-".concat(String(F))]],b&&s.item,j&&s.zeroMinWidth,"row"!==m&&s["direction-xs-".concat(String(m))],"wrap"!==R&&s["wrap-xs-".concat(String(R))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==i&&s["align-content-xs-".concat(String(i))],"flex-start"!==(w||S)&&s["justify-content-xs-".concat(String(w||S))],!1!==M&&s["grid-xs-".concat(String(M))],!1!==P&&s["grid-sm-".concat(String(P))],!1!==C&&s["grid-md-".concat(String(C))],!1!==_&&s["grid-lg-".concat(String(_))],!1!==D&&s["grid-xl-".concat(String(D))]);return f.createElement(d,(0,c.Z)({className:Z,ref:t},U))})),S=(0,m.Z)((function(e){return(0,c.Z)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return y.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(w(i,2)),width:"calc(100% + ".concat(w(i),")"),"& > $item":{padding:w(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};b.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,c.Z)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(E),x=S,_=n(81694),k=n.n(_),C=["alignContent","alignItems","children","container","direction","id","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth","className"],T=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var i=arguments.length,s=new Array(i),u=0;u div":{paddingTop:e.spacing(1)}}}},_=((0,m.ZL)(x),(0,m.kc)((function(e){var t=x(e);return delete t.fullWidth,t}))),k=n(81694),C=n.n(k),T=(0,s.Z)(_)(w.wT),P=(0,u.Z)({productionPrefix:""}),A=function(e){var t,n,s,u,d=e.children,p=e.cssReset,h=e.maxSnackbars,y=void 0===h?3:h,w=e.SnackbarProps,E=e.SnackbarProviderProps,S=e.prefix,x=e.specificity,_=void 0===x?0:x,k=e.product,A=e.primaryHex,F=e.title,O=e.themeOverride,R=e.maxBreakpoint,N=F||void 0;(0,f.useEffect)((function(){R&&!["xs","sm","md","lg","xl"].includes(R)&&console.warn("Unrecognized maxBreakpoint:",R)}),[R]),(0,f.useEffect)((function(){k&&!["engageCentral","engageEvolve","hr","clerk","rec","ready","preamble"].includes(k)&&console.warn("Unrecognized product:",k)}),[k]);var D=(0,f.useCallback)((function(){return(0,m.jG)(k,A,N,p,O,R)}),[p,R,A,k,O,N]),I=(0,f.useState)(D()),M=(0,o.Z)(I,2),L=M[0],j=M[1],U=(0,f.useRef)((0,v.Ue)({plugins:(0,i.Z)((0,c.Z)().plugins)}));(0,f.useEffect)((function(){_>0&&U.current.use(b()({repeat:_}))}),[U,_]),(0,f.useEffect)((function(){j(D())}),[D]);var Z=function(e,t){var n=_-t<0?0:_-t;return _?"".concat(e).concat(":not(#\\u0010)".repeat(n)):e};if(p){var B=document.getElementById("preamble-reset"),H=Z('[class^="'.concat(S,'-"]'),1),V="".concat(Z('[class^="'.concat(S,'-"]'),2),' [class^="ui-"]'),z="".concat(Z('[class^="'.concat(S,'-"]'),2)," > *");if(!B){var q=document.getElementsByTagName("head")[0];(B=document.createElement("style")).id="preamble-reset",q.insertBefore(B,q.firstChild)}B.innerHTML="".concat(H,",").concat(z,",").concat(V).concat("{\n\theight: auto;\n\tbackground: none;\n\tbackground-image: none;\n\tbox-shadow: none;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-family: inherit;\n\tfont-size: inherit;\n\tcolor:inherit;\n}")}return f.createElement(l.ZP,{jss:U.current,generateClassName:function(e,t){return"".concat(S,"-").concat(P(e,t))}},f.createElement(g,{theme:L},f.createElement(T,(0,a.Z)({maxSnack:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},hideIconVariant:!0},w,E,{classes:(0,r.Z)((0,r.Z)((0,r.Z)({},null===w||void 0===w?void 0:w.classes),null===E||void 0===E?void 0:E.classes),{},{containerRoot:C()("prmbl-snackbarProvider",null===w||void 0===w||null===(t=w.classes)||void 0===t?void 0:t.containerRoot,null===E||void 0===E||null===(n=E.classes)||void 0===n?void 0:n.containerRoot),root:C()("prmbl-snackbarProvider-root",null===w||void 0===w||null===(s=w.classes)||void 0===s?void 0:s.root,null===E||void 0===E||null===(u=E.classes)||void 0===u?void 0:u.root)})}),d)))};A.defaultProps={primaryHex:"",specificity:0,cssReset:!1,maxSnackbars:3,prefix:"cpp",SnackbarProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},hideIconVariant:!0}};var F=A},24432:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(4942),i=n(84341),o=n(52007),a=n.n(o),s=n(72791),u=n(81694),c=n.n(u),l=(0,n(88537).kc)((function(e){return{root:{"& .react-loading-skeleton":{backgroundColor:function(e){return e.color},backgroundImage:function(e){return"linear-gradient(\n\t\t\t\t\t90deg,\n\t\t\t\t\t".concat(e.color,",\n\t\t\t\t\t").concat(e.disableAnimation?"transparent":"rgba(0,0,0,.10)",",\n\t\t\t\t\t").concat(e.color,"\n\t\t\t\t)")}}},disableAnimation:{"& span[style]":{animation:"none !important",backgroundImage:"none"}}}})),f=n(38317),d=function(e){var t=e.classes,n=e.className,o=e.count,a=e.width,u=e.height,l=e.duration,f=e.circle,d=e.disableAnimation;return s.createElement("span",{className:c()("prmbl-skeletonLoader",t.root,(0,r.Z)({},t.disableAnimation,d),n)},s.createElement(i.ZP,{count:o,width:a,height:u,duration:l,circle:f}))};d.propTypes={classes:a().object.isRequired,className:a().string,count:a().number,width:a().oneOfType([a().number,a().string]),height:a().oneOfType([a().number,a().string]),duration:a().number,circle:a().bool,disableAnimation:a().bool,color:a().string},d.defaultProps={color:"rgba(0,0,0,.10)"};var p=(0,f.Z)(l)(d)},88066:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(45987),i=n(43144),o=n(15671),a=n(97326),s=n(60136),u=n(54062),c=n(87462),l=n(4942),f=n(72791),d=n(52007),p=n.n(d),h=n(38302),g=n(81694),v=n.n(g),m=["align","children","color","component","gutterBottom","noWrap","paragraph","variant","onClick","className"],y=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var i=arguments.length,s=new Array(i),u=0;u0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},i=n.match(c.matchPattern);if(!i)return null;var o=i[0],a=n.match(c.parsePattern);if(!a)return null;var s=c.valueCallback?c.valueCallback(a[0]):a[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(o.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function f(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function d(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function p(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=d(e).getTime(),r=f(t);return new Date(n+r)}(e,-f(t))}function h(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function g(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function v(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var m={p:v,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return g(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",g(i,t)).replace("{{time}}",v(o,t))}},y=m,b=6e4;var w=["D","DD"],E=["YY","YYYY"];function S(e){return-1!==w.indexOf(e)}function x(e){return-1!==E.indexOf(e)}function _(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}function k(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:f(i),a=null==n.weekStartsOn?o:f(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=d(e),u=s.getUTCDay(),c=(u=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=k(c,t),p=new Date(0);p.setUTCFullYear(r,0,u),p.setUTCHours(0,0,0,0);var h=k(p,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function T(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,a=null==o?0:f(o),s=null==r.weekStartsOn?a:f(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=d(e),c=f(t),l=((c%7+7)%7=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),P(n)}var F=6048e5;function O(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=d(e),r=f(t),i=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=d(e),n=P(t).getTime()-A(t).getTime();return Math.round(n/F)+1}(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}var R=6048e5;function N(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=d(e),r=k(n,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:f(i),a=null==n.firstWeekContainsDate?o:f(n.firstWeekContainsDate),s=C(e,t),u=new Date(0);return u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0),k(u,t)}(n,t).getTime();return Math.round(r/R)+1}var D=/^(1[0-2]|0?\d)/,I=/^(3[0-1]|[0-2]?\d)/,M=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,L=/^(5[0-3]|[0-4]?\d)/,j=/^(2[0-3]|[0-1]?\d)/,U=/^(2[0-4]|[0-1]?\d)/,Z=/^(1[0-1]|0?\d)/,B=/^(1[0-2]|0?\d)/,H=/^[0-5]?\d/,V=/^[0-5]?\d/,z=/^\d/,q=/^\d{1,2}/,W=/^\d{1,3}/,K=/^\d{1,4}/,Y=/^-?\d+/,G=/^-?\d/,$=/^-?\d{1,2}/,J=/^-?\d{1,3}/,X=/^-?\d{1,4}/,Q=/^([+-])(\d{2})(\d{2})?|Z/,ee=/^([+-])(\d{2})(\d{2})|Z/,te=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ne=/^([+-])(\d{2}):(\d{2})|Z/,re=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ie(e,t,n){var r=t.match(e);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:t.slice(r[0].length)}}function oe(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function ae(e,t){return ie(Y,e,t)}function se(e,t,n){switch(e){case 1:return ie(z,t,n);case 2:return ie(q,t,n);case 3:return ie(W,t,n);case 4:return ie(K,t,n);default:return ie(new RegExp("^\\d{1,"+e+"}"),t,n)}}function ue(e,t,n){switch(e){case 1:return ie(G,t,n);case 2:return ie($,t,n);case 3:return ie(J,t,n);case 4:return ie(X,t,n);default:return ie(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function ce(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function le(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var fe=[31,28,31,30,31,30,31,31,30,31,30,31],de=[31,29,31,30,31,30,31,31,30,31,30,31];function pe(e){return e%400===0||e%4===0&&e%100!==0}var he={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return se(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return se(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var o=le(n.year,i);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return se(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return se(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=C(e,r);if(n.isTwoDigitYear){var o=le(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),k(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),k(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return ue("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),P(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return ue("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return se(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return se(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return ie(D,e,i);case"MM":return se(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return ie(D,e,i);case"LL":return se(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return ie(L,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return k(function(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=d(e),i=f(t),o=N(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return ie(L,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return P(O(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return ie(I,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return se(t.length,e)}},validate:function(e,t,n){var r=pe(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=de[i]:t>=1&&t<=fe[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return ie(M,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return se(t.length,e)}},validate:function(e,t,n){return pe(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=T(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return se(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=T(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return se(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=T(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return se(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=f(t);n%7===0&&(n-=7);var r=d(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(ce(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(ce(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(ce(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return ie(B,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return ie(j,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return ie(Z,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return ie(U,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return ie(H,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return ie(V,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return se(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return se(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return oe(Q,e);case"XX":return oe(ee,e);case"XXXX":return oe(te,e);case"XXXXX":return oe(re,e);default:return oe(ne,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return oe(Q,e);case"xx":return oe(ee,e);case"xxxx":return oe(te,e);case"xxxxx":return oe(re,e);default:return oe(ne,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return ae(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return ae(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},ge=he,ve=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,me=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ye=/^'(.*?)'?$/,be=/''/g,we=/\S/,Ee=/[a-zA-Z]/;function Se(e,t,n,r){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var i=String(e),o=String(t),a=r||{},s=a.locale||l;if(!s.match)throw new RangeError("locale must contain match property");var u=s.options&&s.options.firstWeekContainsDate,c=null==u?1:f(u),g=null==a.firstWeekContainsDate?c:f(a.firstWeekContainsDate);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=s.options&&s.options.weekStartsOn,m=null==v?0:f(v),w=null==a.weekStartsOn?m:f(a.weekStartsOn);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===i?d(n):new Date(NaN);var E,k={firstWeekContainsDate:g,weekStartsOn:w,locale:s},C=[{priority:10,set:xe,index:0}],T=o.match(me).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,y[t])(e,s.formatLong,k):e})).join("").match(ve),P=[];for(E=0;E0&&we.test(i))return new Date(NaN);var L=C.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return C.filter((function(t){return t.priority===e})).reverse()})).map((function(e){return e[0]})),j=d(n);if(isNaN(j))return new Date(NaN);var U=p(j,function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();t.setSeconds(0,0);var r=t.getTime()%b;return n*b+r}(j)),Z={};for(E=0;E=0&&(r[o]=parseInt(n[i].value,10))}return r}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var Pe={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ae={};var Fe=36e5,Oe=6e4,Re={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function Ne(e,t){var n,r,i;if(n=Re.timezoneZ.exec(e))return 0;if(n=Re.timezoneHH.exec(e))return De(i=parseInt(n[2],10))?(r=i*Fe,"+"===n[1]?-r:r):NaN;if(n=Re.timezoneHHMM.exec(e)){i=parseInt(n[2],10);var o=parseInt(n[3],10);return De(i,o)?(r=i*Fe+o*Oe,"+"===n[1]?-r:r):NaN}if(n=Re.timezoneIANA.exec(e)){var a=Te(t,e);return-(Date.UTC(a[0],a[1]-1,a[2],a[3],a[4],a[5])-(t.getTime()-t.getTime()%1e3))}return 0}function De(e,t){return null==t||!(t<0||t>59)}var Ie=6e4;function Me(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",i=Math.abs(e);return r+Me(Math.floor(i/60),2)+n+Me(i%60,2)}function je(e,t){return e%60===0?(e>0?"-":"+")+Me(Math.abs(e)/60,2):Le(e,t)}var Ue={X:function(e,t,n,r){var i=r._originalDate||e,o=r.timeZone?Ne(r.timeZone,i)/Ie:i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return je(o);case"XXXX":case"XX":return Le(o);default:return Le(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=r.timeZone?Ne(r.timeZone,i)/Ie:i.getTimezoneOffset();switch(t){case"x":return je(o);case"xxxx":case"xx":return Le(o);default:return Le(o,":")}},O:function(e,t,n,r){var i=r._originalDate||e,o=r.timeZone?Ne(r.timeZone,i)/Ie:i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+Me(o,2)}(o,":");default:return"GMT"+Le(o,":")}},z:function(e,t,n,r){var i=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return Ce("short",i,r);default:return Ce("long",i,r)}}},Ze=n(29297),Be=n(4697),He=36e5,Ve=6e4,ze=2,qe={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function We(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?ze:(0,Ze.Z)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"===typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i=function(e){var t,n={},r=e.split(qe.dateTimeDelimeter);qe.plainTime.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],n.timezone=r[2],qe.timeZoneDelimeter.test(n.date)&&(n.date=e.split(qe.timeZoneDelimeter)[0],t=e.substr(n.date.length,e.length)));if(t){var i=qe.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e),o=function(e,t){var n,r=qe.YYY[t],i=qe.YYYYY[t];if(n=qe.YYYY.exec(e)||i.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=qe.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(i.date,r),a=o.year,s=function(e,t){if(null===t)return null;var n,r,i,o;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=qe.MM.exec(e))return r=new Date(0),Je(t,i=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,i),r):new Date(NaN);if(n=qe.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=$e(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=qe.MMDD.exec(e)){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return Je(t,i,s)?(r.setUTCFullYear(t,i,s),r):new Date(NaN)}if(n=qe.Www.exec(e))return Xe(t,o=parseInt(n[1],10)-1)?Ke(t,o):new Date(NaN);if(n=qe.WwwD.exec(e)){o=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return Xe(t,o,u)?Ke(t,o,u):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var u,c=s.getTime(),l=0;if(i.time&&(l=function(e){var t,n,r;if(t=qe.HH.exec(e))return Qe(n=parseFloat(t[1].replace(",",".")))?n%24*He:NaN;if(t=qe.HHMM.exec(e))return Qe(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*He+r*Ve:NaN;if(t=qe.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return Qe(n,r,i)?n%24*He+r*Ve+1e3*i:NaN}return null}(i.time),isNaN(l)))return new Date(NaN);if(i.timezone||n.timeZone){if(u=Ne(i.timezone||n.timeZone,new Date(c+l)),isNaN(u))return new Date(NaN);if(u=Ne(i.timezone||n.timeZone,new Date(c+l+u)),isNaN(u))return new Date(NaN)}else u=(0,Be.Z)(new Date(c+l)),u=(0,Be.Z)(new Date(c+l+u));return new Date(c+l+u)}return new Date(NaN)}function Ke(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var Ye=[31,28,31,30,31,30,31,31,30,31,30,31],Ge=[31,29,31,30,31,30,31,31,30,31,30,31];function $e(e){return e%400===0||e%4===0&&e%100!==0}function Je(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=$e(e);if(r&&n>Ge[t])return!1;if(!r&&n>Ye[t])return!1}return!0}function Xe(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function Qe(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var et=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function tt(e,t,n){var r=String(t),i=n||{},o=r.match(et);if(o){var a=We(e,i);r=o.reduce((function(e,t){return"'"===t[0]?e:e.replace(t,"'"+Ue[t[0]](a,t,null,i)+"'")}),r)}return(0,ke.Z)(e,r,i)}var nt="yyyy-MM-dd",rt=function(e,t,n){if(!t)throw new Error("dateFormat must be provided in order to format the date object.");var r=new Date(e);return e&&_e(r)?tt(r,t,{timeZone:n}):""},it=function(e,t){return rt(e,nt,t)},ot=function(e,t){var n=new Date(e);return _e(n)?tt(n,t):""},at=function(e,t){var n=Se(e,t,new Date);if(_e(n))return n}},88537:function(e,t,n){"use strict";n.d(t,{kc:function(){return ke},jG:function(){return xe},ZL:function(){return _e},q9:function(){return we},Fg:function(){return Ce}});var r=n(1413),i=n(29439),o=n(89688),a=n(38596),s=n(6330),u=n(23364),c=n(45987),l=n(87462),f=n(72791),d=(0,a.Z)((function(e){return{root:{"& path":{fill:e.palette.common.white}}}})),p=n(81694),h=n.n(p),g=["className"],v=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#7958e8",d:"M403.83.47c13.47 0 23.21 4.27 32.28 12.41a2.47 2.47 0 0 1 .14 3.73l-8.17 8.41a2.14 2.14 0 0 1-3.34 0 31.52 31.52 0 0 0-20.54-7.87c-17.08 0-29.76 14.28-29.76 31.09s12.81 30.82 29.89 30.82a32 32 0 0 0 20.41-7.61 2.47 2.47 0 0 1 3.34 0l8.27 8.54a2.54 2.54 0 0 1-.13 3.6 45.78 45.78 0 0 1-32.42 12.95 48.035 48.035 0 1 1 0-96.07ZM452.34 4.34a2.54 2.54 0 0 1 2.54-2.54h12.27a2.63 2.63 0 0 1 2.54 2.54v74.85h34a2.54 2.54 0 0 1 2.54 2.54v10.94a2.53 2.53 0 0 1-2.54 2.53h-48.81a2.53 2.53 0 0 1-2.54-2.53ZM521.08 4.34a2.54 2.54 0 0 1 2.53-2.54h54.31a2.53 2.53 0 0 1 2.53 2.54v10.93a2.53 2.53 0 0 1-2.53 2.54h-39.47v21.88h33a2.62 2.62 0 0 1 2.54 2.53v11.05a2.53 2.53 0 0 1-2.54 2.53h-33v23.35h39.49a2.53 2.53 0 0 1 2.53 2.54v10.98a2.53 2.53 0 0 1-2.53 2.53h-54.31a2.53 2.53 0 0 1-2.55-2.53ZM596.9 4.34a2.54 2.54 0 0 1 2.54-2.54h38.16a28.9 28.9 0 0 1 29.08 28.69c0 12.28-8.14 22.28-19.74 26.95l18.28 33.89a2.53 2.53 0 0 1-2.27 3.87h-14a2.29 2.29 0 0 1-2.14-1.2l-17.73-35.36h-14.83v34a2.62 2.62 0 0 1-2.54 2.53h-12.27a2.53 2.53 0 0 1-2.54-2.53Zm39.23 40c7.07 0 13.21-6.14 13.21-13.61a13.28 13.28 0 0 0-13.21-12.94h-21.75v26.58ZM681.97 5.01a3.17 3.17 0 0 1 3.21-3.21h11.74a3.25 3.25 0 0 1 3.2 3.21v36l33.62-37.89a3.21 3.21 0 0 1 2.54-1.34h13.34a2.84 2.84 0 0 1 2.14 4.81l-34.83 39.23 37.36 44.69a2.93 2.93 0 0 1-2.4 4.67h-14.54a2.91 2.91 0 0 1-2.41-.93l-34.86-42.98v40.69a3.24 3.24 0 0 1-3.2 3.2h-11.7a3.16 3.16 0 0 1-3.21-3.2Z"}),f.createElement("path",{fill:"#383938",d:"M48.17 0c13.48 0 23.22 4.27 32.29 12.41a2.48 2.48 0 0 1 .13 3.74l-8.13 8.4a2.14 2.14 0 0 1-3.34 0 31.6 31.6 0 0 0-20.55-7.87c-17.08 0-29.75 14.28-29.75 31.09s12.81 30.82 29.89 30.82a32 32 0 0 0 20.41-7.6 2.46 2.46 0 0 1 3.34 0l8.27 8.54a2.53 2.53 0 0 1-.14 3.6 45.8 45.8 0 0 1-32.42 12.94 48.035 48.035 0 1 1 0-96.07ZM97.48 3.87a2.62 2.62 0 0 1 2.54-2.53h12.41a2.62 2.62 0 0 1 2.53 2.53V92.2a2.62 2.62 0 0 1-2.53 2.54h-12.41a2.62 2.62 0 0 1-2.54-2.54ZM129.08 4.81a2.36 2.36 0 0 1 2.27-3.47h13.61a2.47 2.47 0 0 1 2.27 1.46l25.61 57.38h.94L199.4 2.8a2.44 2.44 0 0 1 2.26-1.46h13.61a2.36 2.36 0 0 1 2.27 3.47L176.18 94.6a2.4 2.4 0 0 1-2.27 1.47h-1.33a2.4 2.4 0 0 1-2.27-1.47ZM231.85 3.87a2.63 2.63 0 0 1 2.54-2.53h12.41a2.62 2.62 0 0 1 2.53 2.53V92.2a2.62 2.62 0 0 1-2.53 2.54h-12.41a2.63 2.63 0 0 1-2.54-2.54ZM314.42 0c13.47 0 23.21 4.27 32.29 12.41a2.48 2.48 0 0 1 .13 3.74l-8.14 8.4a2.14 2.14 0 0 1-3.34 0 31.58 31.58 0 0 0-20.54-7.87c-17.08 0-29.76 14.28-29.76 31.09s12.81 30.82 29.89 30.82a32 32 0 0 0 20.41-7.6 2.46 2.46 0 0 1 3.34 0l8.27 8.54a2.54 2.54 0 0 1-.13 3.6 45.81 45.81 0 0 1-32.42 12.94 48.035 48.035 0 1 1 0-96.07Z"}),f.createElement("path",{fill:"#7958e8",d:"M771.08.76a5 5 0 1 0 5 5 5 5 0 0 0-5-5Zm0 8.95a3.93 3.93 0 1 1 3.93-3.92 3.93 3.93 0 0 1-3.93 3.92Z"}),f.createElement("path",{fill:"#7958e8",d:"M772.79 5.19a1.22 1.22 0 0 0-1.23-1.25H770a.2.2 0 0 0-.19.2v3.28a.19.19 0 0 0 .19.19h.5a.19.19 0 0 0 .19-.19V6.35h.52l.44 1.12a.22.22 0 0 0 .18.14h.54a.18.18 0 0 0 .17-.27l-.46-1a1.16 1.16 0 0 0 .71-1.15Zm-1.34.42h-.79v-.82h.79a.39.39 0 0 1 .41.41.4.4 0 0 1-.41.41Z"}))};v.defaultProps={"aria-labelledby":"cp-LogoCivicClerk-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 776.15 96.54"};var m=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".clerk-2","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#7958e8"}}),f.createElement("path",{className:"clerk-2",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};m.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var y=function(e){var t=e.className,n=(0,c.Z)(e,g),r=d();return f.createElement(v,(0,l.Z)({className:h()(t,r.root)},n))},b=v,w=["className"],E=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#006cf6",d:"M322.48 3.42a2.24 2.24 0 0 1 2.24-2.24h48a2.24 2.24 0 0 1 2.25 2.24v9.68a2.25 2.25 0 0 1-2.25 2.25h-34.9v19.36h29.16a2.32 2.32 0 0 1 2.24 2.24v9.8a2.24 2.24 0 0 1-2.24 2.24h-29.16v20.66h34.94a2.24 2.24 0 0 1 2.25 2.24v9.68a2.24 2.24 0 0 1-2.25 2.24h-48a2.24 2.24 0 0 1-2.24-2.24Zm67.41-1.29A2.21 2.21 0 0 1 392.13 0h2.95l49.11 52.18h.12V3.42a2.24 2.24 0 0 1 2.24-2.24h10.86a2.32 2.32 0 0 1 2.24 2.24v79.45a2.21 2.21 0 0 1-2.24 2.12h-2.83l-49.35-54.18h-.11v50.76a2.24 2.24 0 0 1-2.25 2.24h-10.74a2.32 2.32 0 0 1-2.24-2.24ZM514.7 0a44.62 44.62 0 0 1 28.81 11 2.29 2.29 0 0 1 .12 3.3l-7.32 7.66a2 2 0 0 1-3.07 0 26.77 26.77 0 0 0-17.83-6.85c-14.75 0-26.44 12.63-26.44 27.39s11.69 27 26.56 27a37 37 0 0 0 14-2.95V56.52h-9.45a2.14 2.14 0 0 1-2.24-2.12v-9.33a2.18 2.18 0 0 1 2.24-2.24h22.67a2.21 2.21 0 0 1 2.12 2.24v30.22a2.26 2.26 0 0 1-.94 1.89 59.62 59.62 0 0 1-29.28 7.68 42.44 42.44 0 0 1 0-84.88Zm40.27 80.74L591.68 1.3a2.13 2.13 0 0 1 2-1.3h1.18a2 2 0 0 1 2 1.3l36.36 79.44a2.09 2.09 0 0 1-2 3.07h-10.26c-1.77 0-2.6-.71-3.42-2.36l-5.79-12.75h-35.29l-5.79 12.75a3.55 3.55 0 0 1-3.42 2.36h-10.27a2.08 2.08 0 0 1-2.01-3.07Zm51-25.14-11.81-26h-.35l-11.57 26ZM677.58 0a44.61 44.61 0 0 1 28.8 11 2.29 2.29 0 0 1 .12 3.3l-7.32 7.68a2 2 0 0 1-3.07 0 26.75 26.75 0 0 0-17.83-6.85c-14.75 0-26.44 12.63-26.44 27.39s11.69 27 26.56 27a37 37 0 0 0 14-2.95V56.52h-9.44a2.15 2.15 0 0 1-2.25-2.12v-9.33a2.18 2.18 0 0 1 2.25-2.24h22.66a2.21 2.21 0 0 1 2.12 2.24v30.22a2.26 2.26 0 0 1-.94 1.89 59.6 59.6 0 0 1-29.27 7.68 42.44 42.44 0 0 1 0-84.88Zm44.28 3.42a2.24 2.24 0 0 1 2.24-2.24h48a2.24 2.24 0 0 1 2.24 2.24v9.68a2.24 2.24 0 0 1-2.24 2.25h-34.89v19.36h29.15a2.33 2.33 0 0 1 2.25 2.24v9.8a2.24 2.24 0 0 1-2.25 2.24h-29.15v20.66h34.94a2.24 2.24 0 0 1 2.24 2.24v9.68a2.24 2.24 0 0 1-2.24 2.24h-48a2.24 2.24 0 0 1-2.24-2.24ZM42.62.05c11.92 0 20.54 3.77 28.57 11a2.2 2.2 0 0 1 .11 3.31l-7.2 7.44a1.89 1.89 0 0 1-3 0 27.93 27.93 0 0 0-18.18-7c-15.11 0-26.32 12.63-26.32 27.51s11.33 27.27 26.44 27.27a28.36 28.36 0 0 0 18.06-6.73 2.17 2.17 0 0 1 3 0l7.32 7.55a2.24 2.24 0 0 1-.12 3.19 40.49 40.49 0 0 1-28.68 11.45 42.5 42.5 0 1 1 0-85Zm43.63 3.47a2.32 2.32 0 0 1 2.24-2.24h11a2.32 2.32 0 0 1 2.22 2.24v78.1a2.32 2.32 0 0 1-2.24 2.24h-11a2.32 2.32 0 0 1-2.24-2.24Zm27.93.78a2.08 2.08 0 0 1 2-3.07h12a2.18 2.18 0 0 1 2 1.3l22.66 50.76h.83l22.72-50.77a2.18 2.18 0 0 1 2-1.3h12a2.08 2.08 0 0 1 2 3.07l-36.6 79.44a2.11 2.11 0 0 1-2 1.3h-1.18a2.11 2.11 0 0 1-2-1.3Zm90.95-.78a2.32 2.32 0 0 1 2.24-2.24h11a2.32 2.32 0 0 1 2.24 2.24v78.1a2.32 2.32 0 0 1-2.24 2.24h-11a2.32 2.32 0 0 1-2.24-2.24ZM278.17.05c11.93 0 20.54 3.77 28.57 11a2.2 2.2 0 0 1 .12 3.31l-7.2 7.44a1.89 1.89 0 0 1-3 0 27.93 27.93 0 0 0-18.18-7c-15.11 0-26.33 12.63-26.33 27.51s11.33 27.27 26.44 27.27a28.36 28.36 0 0 0 18.07-6.73 2.17 2.17 0 0 1 3 0l7.32 7.55a2.26 2.26 0 0 1-.12 3.19 40.53 40.53 0 0 1-28.69 11.45 42.5 42.5 0 1 1 0-85Zm512.93 2.1a4.45 4.45 0 1 0 4.45 4.45 4.46 4.46 0 0 0-4.45-4.45Zm0 7.93a3.48 3.48 0 1 1 3.48-3.48 3.48 3.48 0 0 1-3.48 3.48Z"}),f.createElement("path",{fill:"#006cf6",d:"M792.58 6.07a1.07 1.07 0 0 0-1.09-1.1h-1.38a.17.17 0 0 0-.17.17v2.91a.17.17 0 0 0 .17.17h.44a.18.18 0 0 0 .17-.17V7.1h.46l.39 1a.19.19 0 0 0 .16.12h.47a.17.17 0 0 0 .16-.24l-.41-.92a1 1 0 0 0 .63-.99Zm-1.19.38h-.7v-.73h.7a.35.35 0 0 1 .36.36.35.35 0 0 1-.36.37Zm74.56 55.07a18.92 18.92 0 0 1-9.87-2.46 16.51 16.51 0 0 1-6.34-6.89 22.41 22.41 0 0 1-2.22-10.21 22.67 22.67 0 0 1 2.22-10.25 16.61 16.61 0 0 1 6.34-6.93 18.75 18.75 0 0 1 9.87-2.5q6.83 0 11.19 3.39a14.83 14.83 0 0 1 5.45 9.51h-7.64a8.21 8.21 0 0 0-3-4.85 9.82 9.82 0 0 0-6.1-1.76 10.14 10.14 0 0 0-8.24 3.58q-3 3.57-3 9.81t3 9.78a11.63 11.63 0 0 0 14.34 1.9 7.65 7.65 0 0 0 3-4.58h7.64a14.34 14.34 0 0 1-5.45 9.16q-4.36 3.3-11.19 3.3Zm29.64-.69V22.89h24.77v5.63h-17.83v10.4h16.2v5.42h-16.2v11h17.83v5.58Zm38.4 0V22.89h6.94l17.83 26.72V22.89h6.94v37.94h-6.94l-17.83-26.66v26.66Zm55.72 0V28.52h-11.06v-5.59h29.11v5.59h-11.11v32.35Zm32.03 0V22.89h13.93a16.13 16.13 0 0 1 7.51 1.55 10.37 10.37 0 0 1 4.41 4.17 11.77 11.77 0 0 1 1.47 5.83 11.63 11.63 0 0 1-1.82 6.34 10.25 10.25 0 0 1-5.66 4.17l7.86 15.88h-8l-7.05-15h-5.74v15Zm6.94-20.05h6.56q3.46 0 5.09-1.68a6.09 6.09 0 0 0 1.63-4.44 5.94 5.94 0 0 0-1.6-4.34c-1.07-1.08-2.79-1.63-5.18-1.63h-6.5Zm31.11 20.05 13.88-37.94h7.8l13.84 37.94h-7.38l-3-8.78h-14.8l-3.09 8.78Zm12.25-14.2h11l-5.53-15.77Zm36.36 14.2V22.89h6.91v32.52h16.8v5.42Z"}))};E.defaultProps={"aria-labelledby":"cp-LogoCivicEngageCentral-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1132.14 85.04"};var S=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".engage-2","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#006cf6"}}),f.createElement("path",{className:"engage-2",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};S.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var x=function(e){var t=e.className,n=(0,c.Z)(e,w),r=d();return f.createElement(E,(0,l.Z)({className:h()(t,r.root)},n))},_=E,k=["className"],C=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#006cf6",d:"M322.47 3.42a2.24 2.24 0 0 1 2.24-2.24h48a2.24 2.24 0 0 1 2.25 2.24v9.68a2.25 2.25 0 0 1-2.25 2.25h-34.94v19.36h29.2a2.32 2.32 0 0 1 2.24 2.24v9.8a2.24 2.24 0 0 1-2.24 2.24h-29.2v20.66h35a2.24 2.24 0 0 1 2.25 2.24v9.68a2.24 2.24 0 0 1-2.25 2.24h-48a2.24 2.24 0 0 1-2.24-2.24ZM389.88 2.13A2.21 2.21 0 0 1 392.12 0h2.95l49.11 52.18h.12V3.42a2.24 2.24 0 0 1 2.24-2.24h10.86a2.32 2.32 0 0 1 2.24 2.24v79.45a2.21 2.21 0 0 1-2.24 2.12h-2.83l-49.34-54.18h-.12v50.76a2.24 2.24 0 0 1-2.25 2.24h-10.74a2.32 2.32 0 0 1-2.24-2.24ZM514.69 0a44.62 44.62 0 0 1 28.81 11 2.29 2.29 0 0 1 .12 3.3l-7.32 7.68a2 2 0 0 1-3.07 0 26.77 26.77 0 0 0-17.83-6.85c-14.75 0-26.44 12.63-26.44 27.39s11.69 27 26.56 27a37 37 0 0 0 14-2.95V56.52h-9.45a2.14 2.14 0 0 1-2.24-2.12v-9.33a2.18 2.18 0 0 1 2.24-2.24h22.7a2.21 2.21 0 0 1 2.12 2.24v30.22a2.26 2.26 0 0 1-.94 1.89 59.62 59.62 0 0 1-29.28 7.68 42.44 42.44 0 0 1 0-84.88ZM554.96 80.74 591.67 1.3a2.13 2.13 0 0 1 2-1.3h1.18a2 2 0 0 1 2 1.3l36.36 79.44a2.09 2.09 0 0 1-2 3.07h-10.26c-1.77 0-2.6-.71-3.42-2.36l-5.76-12.75h-35.32l-5.79 12.75a3.55 3.55 0 0 1-3.42 2.36h-10.27a2.08 2.08 0 0 1-2.01-3.07Zm51-25.14-11.81-26h-.38l-11.57 26ZM677.57 0a44.61 44.61 0 0 1 28.8 11 2.29 2.29 0 0 1 .12 3.3l-7.32 7.68a2 2 0 0 1-3.07 0 26.75 26.75 0 0 0-17.83-6.85c-14.75 0-26.44 12.63-26.44 27.39s11.69 27 26.56 27a37 37 0 0 0 14-2.95V56.52h-9.44a2.15 2.15 0 0 1-2.18-2.1v-9.33a2.18 2.18 0 0 1 2.25-2.24h22.66a2.22 2.22 0 0 1 2.13 2.24v30.22a2.27 2.27 0 0 1-.95 1.89 59.6 59.6 0 0 1-29.27 7.68 42.44 42.44 0 0 1 0-84.88ZM721.85 3.42a2.24 2.24 0 0 1 2.24-2.24h48a2.24 2.24 0 0 1 2.24 2.24v9.68a2.24 2.24 0 0 1-2.24 2.25H737.2v19.36h29.15a2.33 2.33 0 0 1 2.25 2.24v9.8a2.24 2.24 0 0 1-2.25 2.24H737.2v20.66h34.94a2.24 2.24 0 0 1 2.24 2.24v9.68a2.24 2.24 0 0 1-2.24 2.24h-48a2.24 2.24 0 0 1-2.24-2.24Z"}),f.createElement("path",{fill:"#383938",d:"M42.61.05c11.92 0 20.54 3.77 28.57 11a2.2 2.2 0 0 1 .12 3.31l-7.21 7.44a1.89 1.89 0 0 1-2.95 0 27.91 27.91 0 0 0-18.18-7c-15.11 0-26.32 12.63-26.32 27.51s11.33 27.27 26.44 27.27a28.34 28.34 0 0 0 18.06-6.73 2.17 2.17 0 0 1 2.95 0l7.32 7.55a2.25 2.25 0 0 1-.11 3.19 40.53 40.53 0 0 1-28.69 11.45 42.5 42.5 0 1 1 0-85ZM86.24 3.52a2.32 2.32 0 0 1 2.24-2.24h11a2.32 2.32 0 0 1 2.24 2.24v78.1a2.32 2.32 0 0 1-2.24 2.24h-11a2.32 2.32 0 0 1-2.24-2.24ZM114.17 4.3a2.08 2.08 0 0 1 2-3.07h12a2.18 2.18 0 0 1 2 1.3l22.66 50.76h.94l22.61-50.77a2.18 2.18 0 0 1 2-1.3h12a2.08 2.08 0 0 1 2 3.07l-36.6 79.44a2.11 2.11 0 0 1-2 1.3h-1.18a2.11 2.11 0 0 1-2-1.3ZM205.12 3.52a2.32 2.32 0 0 1 2.24-2.24h11a2.32 2.32 0 0 1 2.24 2.24v78.1a2.32 2.32 0 0 1-2.24 2.24h-11a2.32 2.32 0 0 1-2.24-2.24ZM278.16.05c11.93 0 20.54 3.77 28.57 11a2.2 2.2 0 0 1 .12 3.31l-7.2 7.44a1.89 1.89 0 0 1-2.95 0 27.93 27.93 0 0 0-18.18-7c-15.11 0-26.33 12.63-26.33 27.51s11.34 27.27 26.44 27.27a28.36 28.36 0 0 0 18.07-6.73 2.17 2.17 0 0 1 2.95 0l7.32 7.55a2.26 2.26 0 0 1-.12 3.19 40.53 40.53 0 0 1-28.69 11.45 42.5 42.5 0 1 1 0-85Z"}),f.createElement("path",{fill:"#006cf6",d:"M791.09 2.15a4.45 4.45 0 1 0 4.45 4.45 4.46 4.46 0 0 0-4.45-4.45Zm0 7.93a3.48 3.48 0 1 1 3.48-3.48 3.48 3.48 0 0 1-3.48 3.48Z"}),f.createElement("path",{fill:"#006cf6",d:"M792.57 6.07a1.07 1.07 0 0 0-1.09-1.1h-1.38a.18.18 0 0 0-.17.17v2.91a.18.18 0 0 0 .17.17h.44a.18.18 0 0 0 .17-.17V7.1h.46l.39 1a.19.19 0 0 0 .16.12h.47a.17.17 0 0 0 .16-.24l-.41-.92a1 1 0 0 0 .63-.99Zm-1.19.38h-.7v-.73h.7a.35.35 0 0 1 .36.36.35.35 0 0 1-.36.37Z"}))};C.defaultProps={"aria-labelledby":"cp-LogoCivicEngageEvolve-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 795.55 85.04"};var T=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".evolve-2","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#006cf6"}}),f.createElement("path",{className:"evolve-2",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};T.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var P=function(e){var t=e.className,n=(0,c.Z)(e,k),r=d();return f.createElement(C,(0,l.Z)({className:h()(t,r.root)},n))},A=C,F=["className"],O=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#007ebc",d:"M406.07 4.26a2.93 2.93 0 0 1 2.83-2.83h13.84a2.83 2.83 0 0 1 2.83 2.83v39.43h48.5V4.26a2.83 2.83 0 0 1 2.83-2.83h13.69a2.93 2.93 0 0 1 2.83 2.83v98.5a2.93 2.93 0 0 1-2.83 2.83h-13.64a2.83 2.83 0 0 1-2.83-2.83V61.7h-48.5v41.06a2.83 2.83 0 0 1-2.83 2.83h-13.84a2.93 2.93 0 0 1-2.83-2.83ZM511.65 4.26a2.83 2.83 0 0 1 2.83-2.83h42.55a32.23 32.23 0 0 1 32.44 32c0 13.69-9.08 24.85-22 30.06l20.38 37.79a2.82 2.82 0 0 1-2.53 4.32h-15.64a2.54 2.54 0 0 1-2.38-1.34l-19.79-39.43h-16.56v37.94a2.93 2.93 0 0 1-2.82 2.83h-13.65a2.83 2.83 0 0 1-2.83-2.83ZM555.4 48.9c7.88 0 14.73-6.85 14.73-15.18 0-7.88-6.85-14.43-14.73-14.43h-24.26V48.9Z"}),f.createElement("path",{fill:"#383938",d:"M53.72 0c15 0 25.89 4.77 36 13.84a2.77 2.77 0 0 1 .15 4.17l-9.07 9.37a2.38 2.38 0 0 1-3.72 0 35.23 35.23 0 0 0-22.92-8.81c-19.04 0-33.21 16-33.21 34.7s14.29 34.37 33.33 34.37c8.93 0 16.52-3.42 22.77-8.48a2.75 2.75 0 0 1 3.72 0l9.22 9.52a2.84 2.84 0 0 1-.15 4 51.05 51.05 0 0 1-36.15 14.44 53.57 53.57 0 1 1 0-107.14ZM108.71 4.32a2.93 2.93 0 0 1 2.82-2.83h13.84a2.93 2.93 0 0 1 2.83 2.83v98.5a2.93 2.93 0 0 1-2.83 2.83h-13.84a2.93 2.93 0 0 1-2.82-2.83ZM143.95 5.36a2.63 2.63 0 0 1 2.53-3.87h15.17a2.74 2.74 0 0 1 2.53 1.64l28.57 64h1l28.57-64a2.75 2.75 0 0 1 2.53-1.64h15.18a2.63 2.63 0 0 1 2.53 3.87L196.44 105.5a2.67 2.67 0 0 1-2.53 1.64h-1.49a2.67 2.67 0 0 1-2.52-1.64ZM258.55 4.32a2.93 2.93 0 0 1 2.83-2.83h13.84a2.93 2.93 0 0 1 2.82 2.83v98.5a2.93 2.93 0 0 1-2.82 2.83h-13.84a2.93 2.93 0 0 1-2.83-2.83ZM350.62 0c15 0 25.89 4.77 36 13.84a2.77 2.77 0 0 1 .15 4.17l-9.08 9.37a2.38 2.38 0 0 1-3.72 0 35.23 35.23 0 0 0-22.9-8.81c-19 0-33.18 15.92-33.18 34.67s14.28 34.37 33.33 34.37c8.92 0 16.51-3.42 22.76-8.48a2.75 2.75 0 0 1 3.72 0l9.23 9.52a2.84 2.84 0 0 1-.15 4 51.09 51.09 0 0 1-36.16 14.44 53.57 53.57 0 1 1 0-107.14Z"}),f.createElement("path",{fill:"#007ebc",d:"M598.29 2.96a5.6 5.6 0 1 0 5.66 5.61 5.61 5.61 0 0 0-5.66-5.61Zm0 10a4.38 4.38 0 1 1 4.38-4.38 4.39 4.39 0 0 1-4.38 4.37Z"}),f.createElement("path",{fill:"#007ebc",d:"M600.14 7.9a1.36 1.36 0 0 0-1.37-1.39h-1.73a.21.21 0 0 0-.21.22v3.66a.2.2 0 0 0 .21.21h.55a.21.21 0 0 0 .21-.21V9.2h.58l.49 1.25a.23.23 0 0 0 .2.15h.6a.2.2 0 0 0 .19-.3l-.51-1.16a1.29 1.29 0 0 0 .79-1.24Zm-1.49.47h-.89v-.92h.89a.44.44 0 0 1 .46.46.45.45 0 0 1-.46.46Z"}))};O.defaultProps={"aria-labelledby":"cp-LogoCivicHR-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 603.89 107.13"};var R=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".civic-hr-circle-logo","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#007ebc"}}),f.createElement("path",{className:"civic-hr-circle-logo",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};R.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var N=function(e){var t=e.className,n=(0,c.Z)(e,F),r=d();return f.createElement(O,(0,l.Z)({className:h()(t,r.root)},n))},D=O,I=["className"],M=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#008672",d:"M347.98.11a41.31 41.31 0 1 1-41.19 41.42A41.22 41.22 0 0 1 347.98.11Zm0 67.69a26.39 26.39 0 1 0-26.3-26.27 26.45 26.45 0 0 0 26.3 26.27ZM399.95 3.43a2.18 2.18 0 0 1 2.18-2.18h27a25.59 25.59 0 1 1 .12 51.18h-14.38v27a2.26 2.26 0 0 1-2.18 2.18h-10.56a2.18 2.18 0 0 1-2.18-2.18Zm28.23 35a11.82 11.82 0 0 0 11.81-11.93c0-6.31-5.39-11.13-11.81-11.13h-13.31v23.06ZM481.55 15.02h-17.56a2.18 2.18 0 0 1-2.18-2.18V3.43a2.18 2.18 0 0 1 2.18-2.18h50.15a2.18 2.18 0 0 1 2.18 2.18v9.41a2.18 2.18 0 0 1-2.18 2.18h-17.56v64.34a2.25 2.25 0 0 1-2.18 2.18h-10.67a2.25 2.25 0 0 1-2.18-2.18ZM530.25 3.43a2.27 2.27 0 0 1 2.18-2.18h10.68a2.27 2.27 0 0 1 2.18 2.18v76a2.26 2.26 0 0 1-2.18 2.18h-10.68a2.26 2.26 0 0 1-2.18-2.18ZM572.48 1.83a1.93 1.93 0 0 1 2.06-1.72h1.84a2.1 2.1 0 0 1 1.95 1.14l25.24 54.16h.34l25.25-54.16a2 2 0 0 1 1.95-1.14h1.83a1.94 1.94 0 0 1 2.07 1.72l13.54 77.1a2 2 0 0 1-2.07 2.64h-10.44a2.5 2.5 0 0 1-2.18-1.72l-6.77-43.49h-.34l-20.07 45.1a2 2 0 0 1-2 1.26h-2a2.08 2.08 0 0 1-2-1.26l-20.29-45.1h-.34l-6.66 43.49a2.22 2.22 0 0 1-2.06 1.72H561a2.1 2.1 0 0 1-2.18-2.64ZM661.55 3.43a2.26 2.26 0 0 1 2.18-2.18h10.67a2.27 2.27 0 0 1 2.18 2.18v76a2.26 2.26 0 0 1-2.18 2.18h-10.67a2.25 2.25 0 0 1-2.18-2.18ZM690.76 77.36l34.19-61.73v-.46h-28.68a2.25 2.25 0 0 1-2.18-2.18V3.46a2.26 2.26 0 0 1 2.18-2.18h48a2.26 2.26 0 0 1 2.18 2.18v1.5l-33.77 62.5v.23h29.25a2.17 2.17 0 0 1 2.18 2.18v9.49a2.17 2.17 0 0 1-2.18 2.18h-49a2.25 2.25 0 0 1-2.18-2.18ZM758.55 3.43a2.18 2.18 0 0 1 2.18-2.18h46.7a2.18 2.18 0 0 1 2.18 2.18v9.41a2.18 2.18 0 0 1-2.18 2.18h-34v18.82h28.35a2.26 2.26 0 0 1 2.18 2.18v9.52a2.18 2.18 0 0 1-2.18 2.18h-28.32V67.8h34a2.18 2.18 0 0 1 2.18 2.18v9.38a2.18 2.18 0 0 1-2.18 2.18h-46.7a2.18 2.18 0 0 1-2.18-2.18Z"}),f.createElement("path",{fill:"#383938",d:"M41.42 0c11.59 0 20 3.67 27.77 10.67a2.13 2.13 0 0 1 .11 3.21l-7 7.23a1.84 1.84 0 0 1-2.87 0 27.17 27.17 0 0 0-17.67-6.75c-14.68 0-25.58 12.28-25.58 26.74s11 26.5 25.7 26.5a27.54 27.54 0 0 0 17.55-6.54 2.12 2.12 0 0 1 2.87 0l7.12 7.35a2.19 2.19 0 0 1-.12 3.09 39.34 39.34 0 0 1-27.88 11.13 41.31 41.31 0 1 1 0-82.61ZM83.82 3.36A2.26 2.26 0 0 1 86 1.18h10.68a2.26 2.26 0 0 1 2.18 2.18v76a2.27 2.27 0 0 1-2.18 2.18H86a2.27 2.27 0 0 1-2.18-2.18ZM110.98 4.13a2 2 0 0 1 1.95-3h11.75a2.12 2.12 0 0 1 1.95 1.26l22 49.34h.81l22-49.34a2.09 2.09 0 0 1 2-1.26h11.7a2 2 0 0 1 1.95 3l-35.61 77.23a2.06 2.06 0 0 1-1.95 1.26h-1.15a2.07 2.07 0 0 1-1.95-1.26ZM199.38 3.36a2.25 2.25 0 0 1 2.18-2.18h10.67a2.26 2.26 0 0 1 2.18 2.18v76a2.27 2.27 0 0 1-2.18 2.18h-10.67a2.26 2.26 0 0 1-2.18-2.18ZM270.37 0c11.59 0 20 3.67 27.77 10.67a2.13 2.13 0 0 1 .11 3.21l-7 7.23a1.84 1.84 0 0 1-2.87 0 27.19 27.19 0 0 0-17.7-6.75c-14.69 0-25.59 12.28-25.59 26.74s11 26.5 25.7 26.5a27.55 27.55 0 0 0 17.56-6.54 2.12 2.12 0 0 1 2.87 0l7.11 7.35a2.17 2.17 0 0 1-.12 3.09 39.33 39.33 0 0 1-27.88 11.13 41.31 41.31 0 1 1 0-82.61Z"}),f.createElement("path",{fill:"#008672",d:"M823.04 1.06a4.32 4.32 0 1 0 4.32 4.33 4.34 4.34 0 0 0-4.32-4.33Zm0 7.71a3.38 3.38 0 1 1 3.37-3.38 3.38 3.38 0 0 1-3.37 3.38Z"}),f.createElement("path",{fill:"#008672",d:"M824.47 4.88a1 1 0 0 0-1.06-1.07h-1.34a.16.16 0 0 0-.16.16V6.8a.16.16 0 0 0 .16.16h.42a.17.17 0 0 0 .17-.16v-.92h.45l.37 1a.2.2 0 0 0 .16.12h.46a.16.16 0 0 0 .15-.23l-.39-.9a1 1 0 0 0 .61-.99Zm-1.16.36h-.63v-.71h.68a.35.35 0 0 1 .36.36.35.35 0 0 1-.41.35Z"}))};M.defaultProps={"aria-labelledby":"cp-LogoCivicOptimize-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 827.36 82.72"};var L=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".optimize-2","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#008672"}}),f.createElement("path",{className:"optimize-2",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};L.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var j=function(e){var t=e.className,n=(0,c.Z)(e,I),r=d();return f.createElement(M,(0,l.Z)({className:h()(t,r.root)},n))},U=M,Z=["className"],B=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#cc0020",d:"M267.46 0c12.27 0 21.13 3.89 29.39 11.3a2.26 2.26 0 0 1 .12 3.4l-7.41 7.65a1.94 1.94 0 0 1-3 0 28.7 28.7 0 0 0-18.7-7.17c-15.55 0-27.09 13-27.09 28.3s11.66 28 27.21 28a29.15 29.15 0 0 0 18.58-6.92 2.23 2.23 0 0 1 3 0l7.53 7.77a2.32 2.32 0 0 1-.12 3.28 41.7 41.7 0 0 1-29.51 11.78 43.72 43.72 0 1 1 0-87.44ZM312.34 3.52a2.38 2.38 0 0 1 2.31-2.3h11.29a2.38 2.38 0 0 1 2.31 2.3v80.4a2.38 2.38 0 0 1-2.31 2.3h-11.29a2.38 2.38 0 0 1-2.31-2.3ZM341.08 4.37a2.14 2.14 0 0 1 2.06-3.15h12.39a2.26 2.26 0 0 1 2.07 1.33l23.31 52.22h.85l23.32-52.22a2.23 2.23 0 0 1 2.06-1.33h12.39a2.14 2.14 0 0 1 2.06 3.15L383.95 86.1a2.19 2.19 0 0 1-2.07 1.34h-1.21a2.2 2.2 0 0 1-2.07-1.34ZM434.64 3.52a2.38 2.38 0 0 1 2.31-2.3h11.29a2.39 2.39 0 0 1 2.31 2.3v80.4a2.39 2.39 0 0 1-2.31 2.3h-11.29a2.38 2.38 0 0 1-2.31-2.3ZM509.78 0c12.27 0 21.13 3.89 29.39 11.3a2.26 2.26 0 0 1 .12 3.4l-7.41 7.65a1.94 1.94 0 0 1-3 0 28.7 28.7 0 0 0-18.7-7.17c-15.55 0-27.08 13-27.08 28.3s11.65 28 27.2 28a29.15 29.15 0 0 0 18.58-6.92 2.23 2.23 0 0 1 3 0l7.53 7.77a2.32 2.32 0 0 1-.12 3.28 41.7 41.7 0 0 1-29.51 11.78 43.72 43.72 0 1 1 0-87.44Z"}),f.createElement("path",{fill:"#383938",d:"M555.38 3.52a2.3 2.3 0 0 1 2.31-2.3h28.54c14.93 0 27.2 12.14 27.2 26.84a27.32 27.32 0 0 1-27.08 27.32h-15.18v28.54a2.38 2.38 0 0 1-2.31 2.3h-11.17a2.3 2.3 0 0 1-2.31-2.3Zm29.87 37a12.51 12.51 0 0 0 12.51-12.63c0-6.68-5.7-11.78-12.51-11.78h-14.08v24.45ZM627.5 3.52a2.3 2.3 0 0 1 2.31-2.3h11.17a2.39 2.39 0 0 1 2.31 2.3v68.13h31a2.3 2.3 0 0 1 2.31 2.31v10a2.3 2.3 0 0 1-2.31 2.3h-44.48a2.3 2.3 0 0 1-2.31-2.3ZM686.38 3.52a2.38 2.38 0 0 1 2.31-2.3h11.54a2.3 2.3 0 0 1 2.3 2.3v49.67c0 10.32 7 18.46 17.61 18.46s17.73-8.14 17.73-18.34V3.52a2.3 2.3 0 0 1 2.31-2.3h11.53a2.38 2.38 0 0 1 2.31 2.3v50.52c0 18.46-14.69 33.4-33.88 33.4a33.31 33.31 0 0 1-33.76-33.4ZM768.61 74.32l4.37-7.53a2.82 2.82 0 0 1 4.13-.85c.61.37 10.45 7.53 18.34 7.53 6.31 0 11-4.13 11-9.35 0-6.19-5.22-10.44-15.42-14.57-11.42-4.61-22.83-11.9-22.83-26.23 0-10.81 8-23.32 27.32-23.32a42.76 42.76 0 0 1 24.29 8.14 3 3 0 0 1 .73 4l-4.62 6.92c-1 1.46-2.79 2.43-4.25 1.46-1-.61-10.2-6.68-16.88-6.68-6.92 0-10.69 4.61-10.69 8.5 0 5.71 4.5 9.59 14.33 13.6 11.78 4.73 25.38 11.78 25.38 27.44 0 12.51-10.8 24.05-27.93 24.05-15.3 0-24.28-7.17-26.71-9.47-1.09-1.09-1.65-1.7-.56-3.64ZM833.22 2.89a4.58 4.58 0 1 0 4.58 4.58 4.58 4.58 0 0 0-4.58-4.58Zm0 8.15a3.57 3.57 0 1 1 3.57-3.57 3.58 3.58 0 0 1-3.57 3.57Z"}),f.createElement("path",{fill:"#383938",d:"M834.73 6.92a1.1 1.1 0 0 0-1.12-1.13h-1.41a.19.19 0 0 0-.18.18v3a.18.18 0 0 0 .18.17h.44a.17.17 0 0 0 .18-.17v-1h.47l.4 1a.19.19 0 0 0 .17.13h.49a.17.17 0 0 0 .16-.24l-.42-.95a1.06 1.06 0 0 0 .64-.99Zm-1.22.39h-.72v-.75h.72a.37.37 0 0 1 .38.37.37.37 0 0 1-.38.38Z"}),f.createElement("path",{fill:"#cc0020",d:"M73.3 2.86H40.86a40.86 40.86 0 1 0 0 81.71h32.39a3.89 3.89 0 0 0 3.89-3.84v-23.7a3.9 3.9 0 0 0-3.67-3.84H40.86a9.48 9.48 0 1 1 0-18.95h32.57a3.89 3.89 0 0 0 3.71-3.83V6.7a3.89 3.89 0 0 0-3.84-3.84Z"}),f.createElement("path",{fill:"#383938",d:"M129.08 2.86h-32.1a3.89 3.89 0 0 0-3.83 3.66v24.06a3.89 3.89 0 0 0 3.81 3.66h32.12a9.5 9.5 0 1 1 0 19h-32a3.89 3.89 0 0 0-3.88 3.66v46.28a3.89 3.89 0 0 0 3.77 3.66h5.44a2.55 2.55 0 0 0 2.09-.88l20.4-21.35h4.18a40.86 40.86 0 0 0 0-81.71Z"}))};B.defaultProps={"aria-labelledby":"cp-LogoCivicPlus-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 837.8 106.8"};var H=function(e){return f.createElement("svg",e,f.createElement("path",{d:"M582.31 283.62h-73.2a92.19 92.19 0 1 0 0 184.38h73.09a8.77 8.77 0 0 0 8.77-8.67v-53.49a8.78 8.78 0 0 0-8.28-8.65h-73.58a21.39 21.39 0 1 1 0-42.77h73.49a8.77 8.77 0 0 0 8.37-8.65v-53.48a8.78 8.78 0 0 0-8.66-8.67Z",transform:"translate(-416.92 -283.62)",style:{fill:"#cc0020"}}),f.createElement("path",{d:"M708.24 283.62h-72.49a8.77 8.77 0 0 0-8.64 8.26v54.28a8.76 8.76 0 0 0 8.58 8.26h72.55a21.39 21.39 0 0 1 0 42.77h-72.38a8.76 8.76 0 0 0-8.75 8.27v104.43a8.76 8.76 0 0 0 8.49 8.26h12.28a5.82 5.82 0 0 0 4.73-2l46-48.16h9.61a92.19 92.19 0 0 0 0-184.38Z",transform:"translate(-416.92 -283.62)",style:{fill:"#383938"}}))};H.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383.49 234.54"};var V=function(e){var t=e.className,n=(0,c.Z)(e,Z),r=d();return f.createElement(B,(0,l.Z)({className:h()(t,r.root)},n))},z=B,q=["className"],W=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".cp-Logo-CivicReady-cls-3","{","fill:#bb423b;fill-rule:evenodd","}",".cp-Logo-CivicReady-cls-4","{","fill-rule:evenodd;fill:#737473","}",".cp-Logo-CivicReady-cls-5","{","fill:#737473","}")),f.createElement("path",{fill:"#be4b00",d:"M309.95 3.47a2.16 2.16 0 0 1 2.16-2.16h32.44a24.57 24.57 0 0 1 24.69 24.44c0 10.44-6.92 18.95-16.79 22.92L368 77.49a2.15 2.15 0 0 1-1.93 3.29h-11.91a2 2 0 0 1-1.82-1l-15.09-30.14h-12.59v28.93a2.23 2.23 0 0 1-2.16 2.16h-10.43a2.16 2.16 0 0 1-2.16-2.16Zm33.36 34a11.56 11.56 0 0 0 11.23-11.57 11.29 11.29 0 0 0-11.23-11h-18.5v22.57ZM381.95 3.47a2.16 2.16 0 0 1 2.16-2.16h46.17a2.16 2.16 0 0 1 2.16 2.16v9.28a2.16 2.16 0 0 1-2.16 2.16H396.7v18.6h28a2.23 2.23 0 0 1 2.16 2.16v9.41a2.16 2.16 0 0 1-2.16 2.16h-28v19.85h33.58a2.16 2.16 0 0 1 2.16 2.16v9.3a2.16 2.16 0 0 1-2.16 2.16h-46.17a2.16 2.16 0 0 1-2.16-2.16ZM442.86 77.75 478.15 1.4a2 2 0 0 1 1.93-1.25h1.13a1.92 1.92 0 0 1 1.93 1.25l34.94 76.35a2 2 0 0 1-1.93 3h-9.87c-1.7 0-2.49-.68-3.29-2.27l-5.56-12.26h-33.92l-5.56 12.24a3.42 3.42 0 0 1-3.29 2.27h-9.87a2 2 0 0 1-1.93-2.98Zm49-24.17-11.34-25h-.34l-11.12 25ZM528.4 3.47a2.13 2.13 0 0 1 2-2.16h26.89a39.71 39.71 0 1 1 0 79.42h-26.85a2.13 2.13 0 0 1-2-2.16Zm27.55 63.42c14.75 0 25.52-11.12 25.52-26s-10.75-25.85-25.52-25.85h-12.91v51.85ZM624.59 42.49 598.72 4.6a2.1 2.1 0 0 1 1.82-3.29h11.57a2.27 2.27 0 0 1 1.82 1l18.15 26.1 18.15-26.1a2.26 2.26 0 0 1 1.81-1h11.69a2.1 2.1 0 0 1 1.81 3.29l-26.2 37.78v36.19a2.23 2.23 0 0 1-2.16 2.16h-10.43a2.16 2.16 0 0 1-2.16-2.16Z"}),f.createElement("path",{fill:"#383938",d:"M40.95 0c11.46 0 19.74 3.63 27.46 10.55a2.11 2.11 0 0 1 .11 3.18l-6.92 7.14a1.81 1.81 0 0 1-2.83 0 26.9 26.9 0 0 0-17.48-6.69C26.77 14.18 16 26.32 16 40.61s10.89 26.21 25.41 26.21a27.23 27.23 0 0 0 17.36-6.47 2.09 2.09 0 0 1 2.83 0l7 7.26a2.17 2.17 0 0 1-.12 3.07 39 39 0 0 1-27.57 11 40.84 40.84 0 1 1 0-81.68ZM82.88 3.29a2.23 2.23 0 0 1 2.16-2.16h10.55a2.23 2.23 0 0 1 2.15 2.16v75.1a2.23 2.23 0 0 1-2.15 2.16H85.04a2.23 2.23 0 0 1-2.16-2.16ZM109.73 4.08a2 2 0 0 1 1.93-2.95h11.57a2.09 2.09 0 0 1 1.93 1.25l21.79 48.78h.79l21.79-48.78a2.07 2.07 0 0 1 1.93-1.25h11.57a2 2 0 0 1 1.93 2.95l-35.17 76.35a2 2 0 0 1-1.93 1.25h-1.14a2 2 0 0 1-1.92-1.25ZM197.13 3.29a2.23 2.23 0 0 1 2.16-2.16h10.55a2.23 2.23 0 0 1 2.15 2.16v75.1a2.23 2.23 0 0 1-2.15 2.16h-10.55a2.23 2.23 0 0 1-2.16-2.16ZM267.33 0c11.46 0 19.74 3.63 27.46 10.55a2.11 2.11 0 0 1 .16 3.2l-7 7.12a1.82 1.82 0 0 1-2.84 0 26.85 26.85 0 0 0-17.47-6.69c-14.52 0-25.3 12.14-25.3 26.43s10.9 26.21 25.42 26.21a27.2 27.2 0 0 0 17.35-6.47 2.1 2.1 0 0 1 2.84 0l7 7.26a2.17 2.17 0 0 1-.11 3.07 39 39 0 0 1-27.57 11 40.84 40.84 0 1 1 0-81.68Z"}),f.createElement("path",{className:"cp-Logo-CivicReady-cls-3",d:"m634.83 116.59 3.66.2a21.77 21.77 0 0 0-20.54-22.71l-.19 3.66a18.1 18.1 0 0 1 17.07 18.85Z"}),f.createElement("path",{className:"cp-Logo-CivicReady-cls-4",d:"M525.74 117.43a4.28 4.28 0 0 0 1.48 2.94 5 5 0 0 0 3.29 1.07 5.2 5.2 0 0 0 2.42-.56 4.43 4.43 0 0 0 1.69-1.58h4.33a9.39 9.39 0 0 1-3.28 4.37 8.42 8.42 0 0 1-5 1.56 9.12 9.12 0 0 1-3.54-.68 8.69 8.69 0 0 1-2.9-2 9 9 0 0 1-1.9-2.93 9.21 9.21 0 0 1-.67-3.42 9.32 9.32 0 0 1 .62-3.39 8.61 8.61 0 0 1 1.82-2.85 9.48 9.48 0 0 1 3-2.15 8.26 8.26 0 0 1 3.43-.75 8.81 8.81 0 0 1 4.17 1 9.69 9.69 0 0 1 3.3 2.86 7.83 7.83 0 0 1 1.23 2.49 11.23 11.23 0 0 1 .4 3.16v.86Zm9.49-3.17a4.85 4.85 0 0 0-1.73-2.62 5 5 0 0 0-3-.9 4.59 4.59 0 0 0-2.87 1 4.66 4.66 0 0 0-1.7 2.55ZM555.01 107.56h3.59v14.36a9.88 9.88 0 0 1-2.39 7 8.52 8.52 0 0 1-6.54 2.55 8.92 8.92 0 0 1-5.21-1.46 8.37 8.37 0 0 1-3.08-4.34h3.86a4.56 4.56 0 0 0 1.78 1.81 5.53 5.53 0 0 0 6.47-.9 5.67 5.67 0 0 0 1.49-4.11v-.17a7.77 7.77 0 0 1-2.64 1.82 8.22 8.22 0 0 1-3.25.62 9.07 9.07 0 0 1-3.26-.59 8.4 8.4 0 0 1-2.73-1.71 8.69 8.69 0 0 1-2-2.91 8.54 8.54 0 0 1-.73-3.44 8.89 8.89 0 0 1 2.47-6.46 8.36 8.36 0 0 1 6.27-2.54 8.22 8.22 0 0 1 3.2.61 8.43 8.43 0 0 1 2.72 1.88v-2.05Zm-10.69 8.31a5.12 5.12 0 0 0 1.51 3.77 5 5 0 0 0 3.71 1.52 5.27 5.27 0 0 0 5.1-5.1 5.22 5.22 0 0 0-1.52-3.77 4.84 4.84 0 0 0-3.61-1.55 5.08 5.08 0 0 0-3.68 1.48 4.91 4.91 0 0 0-1.51 3.65ZM569.4 111.05a4.74 4.74 0 0 0-3.25 1.22 5.7 5.7 0 0 0-.92 3.72v8.76h-4v-17.19h3.72v2a5.78 5.78 0 0 1 2-1.7 5.4 5.4 0 0 1 2.44-.54ZM569.33 116.09a9.13 9.13 0 0 1 .66-3.45 8.81 8.81 0 0 1 1.96-2.89 9.29 9.29 0 0 1 2.93-2 8.38 8.38 0 0 1 3.37-.7 9.39 9.39 0 0 1 3.44.62 9 9 0 0 1 2.88 1.85 9.25 9.25 0 0 1 2.08 3 8.67 8.67 0 0 1 .74 3.48 9.86 9.86 0 0 1-.64 3.6 9.24 9.24 0 0 1-4.85 5 9.34 9.34 0 0 1-3.57.68 8.49 8.49 0 0 1-6.44-2.76 9.37 9.37 0 0 1-1.89-3 9.16 9.16 0 0 1-.64-3.42Zm4.12 0a5.3 5.3 0 0 0 1.32 3.79 5.17 5.17 0 0 0 7.11 0 5.46 5.46 0 0 0 1.32-3.86 4.83 4.83 0 0 0-1.39-3.57 5.06 5.06 0 0 0-7 0 5.1 5.1 0 0 0-1.36 3.61ZM600.41 124.75v-1.86a5.81 5.81 0 0 1-2 1.75 5.63 5.63 0 0 1-2.58.57 6.28 6.28 0 0 1-5-2 8.47 8.47 0 0 1-1.73-5.71v-10h4.05v7.73c0 2.33.26 3.92.8 4.77a3 3 0 0 0 2.75 1.29 3.09 3.09 0 0 0 2.87-1.44 10 10 0 0 0 .87-4.89v-7.46h3.94v17.25Z"}),f.createElement("path",{className:"cp-Logo-CivicReady-cls-3",d:"M621.95 109.14a7.79 7.79 0 0 0-2.58-1.51 8.94 8.94 0 0 0-2.08-.43v4.08a4.89 4.89 0 0 1 2.29 1.26 5 5 0 0 1 1.4 4.38h4.16v-.71a9.23 9.23 0 0 0-.84-3.89 9.36 9.36 0 0 0-2.35-3.18Z"}),f.createElement("path",{className:"cp-Logo-CivicReady-cls-4",d:"M619.55 119.75a4.76 4.76 0 0 1-3.53 1.5 4.67 4.67 0 0 1-3.52-1.48 5.08 5.08 0 0 1-1.42-3.68 4.93 4.93 0 0 1 1.39-3.55 4.51 4.51 0 0 1 3.36-1.44h.25v-4a8.17 8.17 0 0 0-2.64.44 8.85 8.85 0 0 0-2.52 1.42v-1.44h-3.97v22.78h4v-6.94a7.71 7.71 0 0 0 2.44 1.38 9 9 0 0 0 2.94.45 8.73 8.73 0 0 0 3.22-.6 8.22 8.22 0 0 0 2.71-1.72 8.69 8.69 0 0 0 2.15-3 9.55 9.55 0 0 0 .57-1.79h-4.3a5.18 5.18 0 0 1-1.13 1.67Z"}),f.createElement("path",{className:"cp-Logo-CivicReady-cls-3",d:"M626.95 104.9a15.41 15.41 0 0 0-9.64-4.38v3.54a11.88 11.88 0 0 1 7.18 3.35 11.61 11.61 0 0 1 3.52 8.7v.81h3.52v-.81a15.09 15.09 0 0 0-4.58-11.21Z"}),f.createElement("path",{className:"cp-Logo-CivicReady-cls-4",d:"M510.23 124.64h-4.64v-23.72h5.63a30 30 0 0 1 4 .19 7.83 7.83 0 0 1 2.24.61 7 7 0 0 1 3.07 2.64 8 8 0 0 1-.45 8.64 6.76 6.76 0 0 1-4.12 2.44l5.93 9.2h-5.54l-6.12-11v11Zm0-12.19h1a7.46 7.46 0 0 0 4.28-1 3.4 3.4 0 0 0 1.45-3 3.19 3.19 0 0 0-1.22-2.78 6.44 6.44 0 0 0-3.79-.92h-1.72Z"}),f.createElement("path",{className:"cp-Logo-CivicReady-cls-5",d:"M353.08 106.21a.39.39 0 0 1 .39-.39h5a4.59 4.59 0 1 1 0 9.18h-2.16v4.84a.4.4 0 0 1-.39.39h-2.43a.4.4 0 0 1-.39-.39Zm5.17 5.78a1.61 1.61 0 0 0 1.62-1.62 1.56 1.56 0 0 0-1.62-1.52h-2v3.14ZM372.95 105.61a7.41 7.41 0 1 1-7.39 7.43 7.4 7.4 0 0 1 7.39-7.43Zm0 11.53a4.12 4.12 0 1 0-4.09-4.1 4.12 4.12 0 0 0 4.09 4.1ZM382.46 106.31a.36.36 0 0 1 .37-.49h2.41a.42.42 0 0 1 .37.29l1.77 7h.08l3.19-7.25a.42.42 0 0 1 .35-.23h.37a.35.35 0 0 1 .35.23l3.19 7.25h.09l1.77-7a.41.41 0 0 1 .37-.29h2.41a.36.36 0 0 1 .37.49l-3.89 13.84a.41.41 0 0 1-.37.28h-.33a.41.41 0 0 1-.35-.22l-3.77-8.46h-.06l-3.75 8.42a.41.41 0 0 1-.35.22h-.33a.4.4 0 0 1-.37-.28ZM403.41 106.21a.38.38 0 0 1 .39-.39h8.52a.38.38 0 0 1 .39.39v2.24a.39.39 0 0 1-.39.4h-5.7v2.55h4.69a.4.4 0 0 1 .39.39v2.24a.38.38 0 0 1-.39.39h-4.69v2.78h5.7a.39.39 0 0 1 .39.39v2.25a.39.39 0 0 1-.39.39h-8.52a.39.39 0 0 1-.39-.39ZM416.95 106.21a.38.38 0 0 1 .39-.39h6.15a4.4 4.4 0 0 1 1.45 8.58l2.81 5.23a.39.39 0 0 1-.34.6h-2.74a.38.38 0 0 1-.33-.19l-2.74-5.45h-1.45v5.25a.41.41 0 0 1-.39.39h-2.45a.39.39 0 0 1-.39-.39Zm6.28 5.76a1.65 1.65 0 0 0 1.56-1.64 1.58 1.58 0 0 0-1.56-1.57h-3v3.21ZM431.59 106.21a.38.38 0 0 1 .39-.39h8.52a.38.38 0 0 1 .39.39v2.24a.39.39 0 0 1-.39.4h-5.7v2.55h4.69a.4.4 0 0 1 .39.39v2.24a.38.38 0 0 1-.39.39h-4.69v2.78h5.7a.39.39 0 0 1 .39.39v2.25a.39.39 0 0 1-.39.39h-8.55a.39.39 0 0 1-.39-.39ZM444.95 106.21a.38.38 0 0 1 .37-.39h5a7.21 7.21 0 1 1 0 14.41h-5a.39.39 0 0 1-.37-.39Zm5.18 11a4.17 4.17 0 0 0 0-8.33h-2v8.33ZM468.77 106.21a.39.39 0 0 1 .4-.39h4.78c2.43 0 4.43 1.67 4.43 3.83 0 1.58-1.42 2.74-2.39 3.25 1.09.45 2.76 1.46 2.76 3.36 0 2.3-2 4-4.49 4h-5.1a.4.4 0 0 1-.4-.39Zm4.82 5.46a1.47 1.47 0 0 0 1.44-1.49 1.4 1.4 0 0 0-1.44-1.4h-1.64v2.89Zm.27 5.61a1.49 1.49 0 0 0 1.48-1.5 1.64 1.64 0 0 0-1.69-1.44h-1.7v2.94ZM484.86 113.29l-4.55-6.87a.38.38 0 0 1 .33-.6h2.67a.4.4 0 0 1 .33.18l2.86 4.22 2.87-4.22a.37.37 0 0 1 .32-.18h2.68a.38.38 0 0 1 .33.6l-4.61 6.85v6.57a.41.41 0 0 1-.39.39h-2.45a.39.39 0 0 1-.39-.39Z"}))};W.defaultProps={"aria-labelledby":"cp-LogoCivicReady-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 665.9 131.5"};var K=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".ready-2","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#be4b00"}}),f.createElement("path",{className:"ready-2",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};K.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var Y=function(e){var t=e.className,n=(0,c.Z)(e,q),r=d();return f.createElement(W,(0,l.Z)({className:h()(t,r.root)},n))},G=W,$=["className"],J=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#408100",d:"M405.55 4.3a2.82 2.82 0 0 1 2.82-2.82h42.45a32.16 32.16 0 0 1 32.36 31.92c0 13.66-9.06 24.79-22 30l20.34 37.71a2.81 2.81 0 0 1-2.53 4.3h-15.55a2.55 2.55 0 0 1-2.37-1.33l-19.75-39.35h-16.48v37.86a2.91 2.91 0 0 1-2.82 2.82h-13.65a2.81 2.81 0 0 1-2.82-2.82Zm43.63 44.54c7.87 0 14.7-6.83 14.7-15.14 0-7.87-6.83-14.4-14.7-14.4h-24.2v29.54ZM500.41 4.3a2.82 2.82 0 0 1 2.82-2.82h60.42a2.82 2.82 0 0 1 2.82 2.82v12.17a2.82 2.82 0 0 1-2.82 2.82h-44v24.34h36.67a2.92 2.92 0 0 1 2.86 2.84V58.8a2.82 2.82 0 0 1-2.82 2.82H519.7v26h44a2.82 2.82 0 0 1 2.82 2.82v12.17a2.82 2.82 0 0 1-2.82 2.82h-60.47a2.81 2.81 0 0 1-2.82-2.82ZM630.18 0c15 0 25.83 4.75 35.93 13.8a2.77 2.77 0 0 1 .15 4.16l-9.08 9.35a2.37 2.37 0 0 1-3.71 0 35.15 35.15 0 0 0-22.86-8.76c-19 0-33.11 15.89-33.11 34.59s14.22 34.33 33.23 34.33c8.9 0 16.47-3.42 22.71-8.46a2.72 2.72 0 0 1 3.71 0l9.21 9.5a2.82 2.82 0 0 1-.15 4 51 51 0 0 1-36.03 14.38 53.45 53.45 0 1 1 0-106.89Z"}),f.createElement("path",{fill:"#383938",d:"M53.59.05c15 0 25.83 4.76 35.93 13.81a2.77 2.77 0 0 1 .15 4.16l-9.06 9.35a2.37 2.37 0 0 1-3.71 0 35.15 35.15 0 0 0-22.86-8.76c-19 0-33.11 15.89-33.11 34.59s14.25 34.27 33.25 34.27c8.91 0 16.48-3.42 22.72-8.47a2.74 2.74 0 0 1 3.71 0l9.2 9.51a2.81 2.81 0 0 1-.14 4 51 51 0 0 1-36.08 14.4 53.45 53.45 0 1 1 0-106.89ZM108.46 4.36a2.92 2.92 0 0 1 2.82-2.82h13.8a2.92 2.92 0 0 1 2.82 2.82v98.28a2.92 2.92 0 0 1-2.82 2.83h-13.8a2.92 2.92 0 0 1-2.82-2.82ZM143.59 5.4a2.62 2.62 0 0 1 2.52-3.86h15.15a2.74 2.74 0 0 1 2.52 1.63l28.5 63.84h1l28.51-63.84a2.71 2.71 0 0 1 2.52-1.63h15.14a2.62 2.62 0 0 1 2.53 3.86l-46 99.91a2.65 2.65 0 0 1-2.52 1.63h-1.48a2.68 2.68 0 0 1-2.53-1.63ZM257.96 4.36a2.93 2.93 0 0 1 2.82-2.82h13.81a2.92 2.92 0 0 1 2.82 2.82v98.28a2.92 2.92 0 0 1-2.82 2.82h-13.81a2.93 2.93 0 0 1-2.82-2.82ZM349.83.05c15 0 25.83 4.76 35.92 13.81a2.76 2.76 0 0 1 .15 4.16l-9.05 9.35a2.38 2.38 0 0 1-3.72 0 35.11 35.11 0 0 0-22.86-8.76c-19 0-33.1 15.89-33.1 34.59s14.25 34.27 33.25 34.27c8.91 0 16.48-3.42 22.71-8.47a2.76 2.76 0 0 1 3.72 0l9.2 9.51a2.81 2.81 0 0 1-.15 4 50.93 50.93 0 0 1-36.07 14.4 53.45 53.45 0 1 1 0-106.89Z"}),f.createElement("path",{fill:"#408100",d:"M680.77 2.7a5.59 5.59 0 1 0 5.59 5.6 5.61 5.61 0 0 0-5.59-5.6Zm0 10a4.37 4.37 0 1 1 4.36-4.37 4.37 4.37 0 0 1-4.36 4.34Z"}),f.createElement("path",{fill:"#408100",d:"M682.62 7.63a1.35 1.35 0 0 0-1.37-1.38h-1.73a.21.21 0 0 0-.21.21v3.66a.21.21 0 0 0 .21.21h.54a.21.21 0 0 0 .22-.21V8.93h.58l.49 1.25a.23.23 0 0 0 .2.15h.6a.2.2 0 0 0 .19-.3l-.51-1.16a1.29 1.29 0 0 0 .79-1.24Zm-1.5.47h-.88v-.91h.88a.46.46 0 1 1 0 .91Z"}))};J.defaultProps={"aria-labelledby":"cp-LogoCivicRec-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 686.36 106.95"};var X=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".rec-2","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#408100"}}),f.createElement("path",{className:"rec-2",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};X.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var Q=function(e){var t=e.className,n=(0,c.Z)(e,$),r=d();return f.createElement(J,(0,l.Z)({className:h()(t,r.root)},n))},ee=J,te=["className"],ne=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#737473",d:"m299.86 67.38 4-6.82a2.55 2.55 0 0 1 3.74-.77c.55.33 9.47 6.82 16.62 6.82 5.73 0 10-3.74 10-8.48 0-5.61-4.73-9.46-14-13.21-10.35-4.18-20.7-10.79-20.7-23.78 0-9.8 7.27-21.14 24.77-21.14a38.73 38.73 0 0 1 22 7.38 2.72 2.72 0 0 1 .66 3.63l-4.19 6.28c-.88 1.32-2.53 2.2-3.85 1.32-.88-.55-9.25-6.06-15.31-6.06-6.27 0-9.69 4.19-9.69 7.71 0 5.17 4.08 8.7 13 12.33 10.68 4.29 23 10.68 23 24.88 0 11.35-9.8 21.8-25.32 21.8-13.88 0-22-6.49-24.23-8.58-.9-.99-1.49-1.54-.5-3.31ZM362.82 3.19a2.09 2.09 0 0 1 2.09-2.09h44.81a2.09 2.09 0 0 1 2.09 2.09v9a2.09 2.09 0 0 1-2.09 2.09h-32.59v18.09h27.2a2.16 2.16 0 0 1 2.09 2.09v9.14a2.09 2.09 0 0 1-2.09 2.09h-27.2v19.27h32.59a2.09 2.09 0 0 1 2.09 2.09v9a2.09 2.09 0 0 1-2.09 2.09h-44.81a2.09 2.09 0 0 1-2.09-2.09ZM425.4 3.19a2.09 2.09 0 0 1 2.06-2.12h31.49a23.85 23.85 0 0 1 24 23.67c0 10.13-6.72 18.39-16.3 22.24l15.09 28a2.08 2.08 0 0 1-1.87 3.19h-11.53a1.89 1.89 0 0 1-1.76-1l-14.64-29.18h-12.22v28.08a2.16 2.16 0 0 1-2.09 2.09h-10.17a2.09 2.09 0 0 1-2.1-2.09Zm32.37 33a11.22 11.22 0 0 0 10.91-11.23 11 11 0 0 0-10.91-10.68h-17.94v21.91ZM486.99 3.96a1.94 1.94 0 0 1 1.87-2.89h11.23a2 2 0 0 1 1.87 1.21l21.14 47.35h.77l21.14-47.35a2 2 0 0 1 1.87-1.21h11.23a1.94 1.94 0 0 1 1.87 2.86l-34.13 74.14a2 2 0 0 1-1.87 1.21h-1.1a2 2 0 0 1-1.87-1.21ZM572.32 3.19a2.16 2.16 0 0 1 2.14-2.12h10.24a2.16 2.16 0 0 1 2.09 2.09v72.91a2.16 2.16 0 0 1-2.09 2.09h-10.24a2.16 2.16 0 0 1-2.09-2.09ZM639.67 0c11.12 0 19.16 3.52 26.65 10.24a2 2 0 0 1 .11 3.08l-6.72 6.94a1.76 1.76 0 0 1-2.75 0 26 26 0 0 0-17-6.5c-14.09 0-24.55 11.78-24.55 25.66s10.57 25.43 24.66 25.43a26.41 26.41 0 0 0 16.85-6.28 2 2 0 0 1 2.75 0l6.83 7.05a2.09 2.09 0 0 1-.11 3 37.79 37.79 0 0 1-26.76 10.68 39.64 39.64 0 1 1 0-79.27ZM679.93 3.19a2.09 2.09 0 0 1 2.09-2.09h44.81a2.09 2.09 0 0 1 2.09 2.09v9a2.09 2.09 0 0 1-2.09 2.09h-32.59v18.09h27.22a2.16 2.16 0 0 1 2.09 2.09v9.14a2.09 2.09 0 0 1-2.09 2.09h-27.2v19.27h32.59a2.09 2.09 0 0 1 2.09 2.09v9a2.09 2.09 0 0 1-2.09 2.09h-44.83a2.09 2.09 0 0 1-2.09-2.09ZM425.94 101.86a.38.38 0 0 1 .38-.38h4.85a4.5 4.5 0 1 1 0 9h-2.11v4.73a.39.39 0 0 1-.38.38h-2.37a.38.38 0 0 1-.38-.38Zm5 5.66a1.58 1.58 0 0 0 1.59-1.59 1.53 1.53 0 0 0-1.59-1.49h-1.91v3.08ZM445.39 101.28a7.24 7.24 0 1 1-7.22 7.26 7.22 7.22 0 0 1 7.22-7.26Zm0 11.26a4 4 0 1 0-4-4 4 4 0 0 0 4 4ZM454.64 101.96a.35.35 0 0 1 .37-.48h2.35a.41.41 0 0 1 .36.28l1.73 6.82h.08l3.12-7.08a.38.38 0 0 1 .34-.22h.36a.34.34 0 0 1 .35.22l3.11 7.08h.08l1.73-6.82a.41.41 0 0 1 .37-.28h2.35a.35.35 0 0 1 .36.48l-3.8 13.52a.38.38 0 0 1-.36.28h-.32a.41.41 0 0 1-.35-.22l-3.68-8.23h-.06l-3.67 8.23a.41.41 0 0 1-.34.22h-.32a.38.38 0 0 1-.36-.28ZM475.11 101.86a.39.39 0 0 1 .39-.38h8.32a.38.38 0 0 1 .39.38v2.21a.38.38 0 0 1-.39.38h-5.57v2.49h4.59a.39.39 0 0 1 .38.38v2.2a.38.38 0 0 1-.38.38h-4.59v2.71h5.57a.39.39 0 0 1 .39.39v2.19a.38.38 0 0 1-.39.38h-8.36a.39.39 0 0 1-.39-.38ZM488.32 101.86a.38.38 0 0 1 .38-.38h6a4.3 4.3 0 0 1 1.41 8.39l2.75 5.11a.38.38 0 0 1-.34.58h-2.66a.37.37 0 0 1-.32-.18l-2.68-5.31h-1.4v5.13a.39.39 0 0 1-.38.38h-2.39a.38.38 0 0 1-.38-.38Zm6.13 5.64a1.61 1.61 0 0 0 1.53-1.61 1.54 1.54 0 0 0-1.53-1.53h-3v3.14ZM502.65 101.86a.38.38 0 0 1 .38-.38h8.33a.38.38 0 0 1 .38.38v2.21a.38.38 0 0 1-.38.38h-5.57v2.49h4.59a.39.39 0 0 1 .38.38v2.2a.38.38 0 0 1-.38.38h-4.59v2.71h5.57a.39.39 0 0 1 .38.39v2.19a.38.38 0 0 1-.38.38h-8.33a.38.38 0 0 1-.38-.38ZM515.69 101.86a.38.38 0 0 1 .37-.38h4.9a7.04 7.04 0 1 1 0 14.08h-4.9a.38.38 0 0 1-.37-.38Zm5.07 10.72a4.07 4.07 0 0 0 0-8.14h-1.93v8.14ZM538.99 101.86a.38.38 0 0 1 .38-.38h4.69c2.37 0 4.32 1.63 4.32 3.74 0 1.55-1.39 2.68-2.33 3.18 1.06.44 2.69 1.43 2.69 3.28a4.1 4.1 0 0 1-4.38 3.88h-5a.38.38 0 0 1-.38-.38Zm4.71 5.33a1.43 1.43 0 0 0 1.4-1.44 1.36 1.36 0 0 0-1.4-1.37h-1.57v2.81Zm.26 5.49a1.45 1.45 0 0 0 1.44-1.46 1.6 1.6 0 0 0-1.64-1.41h-1.63v2.87ZM554.7 108.78l-4.44-6.71a.37.37 0 0 1 .32-.58h2.62a.4.4 0 0 1 .32.18l2.79 4.13 2.8-4.13a.37.37 0 0 1 .32-.18h2.62a.37.37 0 0 1 .32.58l-4.51 6.7v6.42a.39.39 0 0 1-.38.38h-2.39a.39.39 0 0 1-.39-.38Z"}),f.createElement("path",{fill:"#383938",d:"M39.74.92c11.12 0 19.16 3.52 26.65 10.24a2 2 0 0 1 .11 3.08l-6.72 6.94a1.76 1.76 0 0 1-2.75 0 26.09 26.09 0 0 0-17-6.5c-14.09 0-24.55 11.78-24.55 25.66s10.57 25.43 24.66 25.43a26.45 26.45 0 0 0 16.85-6.27 2 2 0 0 1 2.75 0l6.83 7a2.11 2.11 0 0 1-.11 3A37.83 37.83 0 0 1 39.7 80.18 39.64 39.64 0 1 1 39.7.9ZM80.46 4.07a2.17 2.17 0 0 1 2.1-2.09H92.8a2.16 2.16 0 0 1 2.06 2.09v72.89a2.16 2.16 0 0 1-2.09 2.09H82.53a2.17 2.17 0 0 1-2.1-2.09ZM106.46 4.88a1.94 1.94 0 0 1 1.9-2.81h11.23a2 2 0 0 1 1.88 1.21l21.14 47.35h.77l21.14-47.35a2 2 0 0 1 1.87-1.21h11.23a1.94 1.94 0 0 1 1.87 2.86l-34.13 74.06a2 2 0 0 1-1.87 1.21h-1.1a2 2 0 0 1-1.88-1.21ZM191.32 4.07a2.16 2.16 0 0 1 2.14-2h10.24a2.16 2.16 0 0 1 2.09 2.09v72.89a2.16 2.16 0 0 1-2.09 2.09h-10.24a2.16 2.16 0 0 1-2.09-2.09ZM259.46.92c11.12 0 19.16 3.52 26.64 10.24a2 2 0 0 1 .11 3.08l-6.75 6.94a1.77 1.77 0 0 1-2.76 0 26 26 0 0 0-16.95-6.5c-14.09 0-24.55 11.78-24.55 25.66s10.57 25.43 24.66 25.43a26.41 26.41 0 0 0 16.84-6.27 2 2 0 0 1 2.76 0l6.82 7a2.09 2.09 0 0 1-.11 3 37.79 37.79 0 0 1-26.71 10.7 39.64 39.64 0 1 1 0-79.28Z"}),f.createElement("path",{fill:"#09c",d:"M579.6 96.98c-4.11 0-7.48 2.84-7.48 6.28a6.32 6.32 0 0 0 2.12 4.54c1.1.89 1.71 1.19 5.36 2.35 2.54.79 3.45 1.68 3.45 3.27s-1.44 2.78-3.42 2.78-3.45-1.16-3.49-3h-4.94a6.21 6.21 0 0 0 1.67 4.07 9.3 9.3 0 0 0 12.57.53 6.25 6.25 0 0 0 2.32-5 5.72 5.72 0 0 0-2.32-4.67 10.79 10.79 0 0 0-4.36-2.05 10.75 10.75 0 0 1-3.27-1.32 2.1 2.1 0 0 1-1-1.76c0-1.39 1-2.25 2.62-2.25a2.6 2.6 0 0 1 2.81 2.45h4.86a5.44 5.44 0 0 0-1.63-3.87 8.19 8.19 0 0 0-5.87-2.35ZM598.09 105.94a4.59 4.59 0 0 1 4.51 3.87h-9a4.69 4.69 0 0 1 4.54-3.87m-8.5 5.33a8.64 8.64 0 0 0 8.47 8.87 8.23 8.23 0 0 0 7.73-5.82h-4.25a3.91 3.91 0 0 1-3.58 2.15 4.6 4.6 0 0 1-4.31-3.44h12.49a10.89 10.89 0 0 0 .23-2 8.6 8.6 0 0 0-8.31-8.74 8.74 8.74 0 0 0-8.47 9M616.6 105.94a4.59 4.59 0 0 1 4.51 3.87h-9a4.7 4.7 0 0 1 4.54-3.87m-8.5 5.33a8.64 8.64 0 0 0 8.47 8.87 8.23 8.23 0 0 0 7.73-5.82h-4.25a3.91 3.91 0 0 1-3.64 2.15 4.61 4.61 0 0 1-4.3-3.4h12.49a10.89 10.89 0 0 0 .23-2 8.6 8.6 0 0 0-8.31-8.74 8.74 8.74 0 0 0-8.47 9M637.74 96.98a11.3 11.3 0 0 0-11.09 11.41 11.47 11.47 0 0 0 11.15 11.62 10.76 10.76 0 0 0 9.91-6.59h-4.6c-1.83 2-3.33 2.75-5.37 2.75-3.84 0-7.13-3.58-7.13-7.71s3.23-7.65 7-7.65a7.28 7.28 0 0 1 5.75 2.92h4.5a9.55 9.55 0 0 0-3.06-4.17 10.82 10.82 0 0 0-7.06-2.58ZM649.61 97.41h3.87v22.17h-3.87zM655.28 119.58h3.87v-16.65h-3.87Zm0-18.5h3.87v-3.67h-3.87ZM660.94 111.17a8.81 8.81 0 0 0 8.56 9 8.59 8.59 0 0 0 5.37-1.95 8.21 8.21 0 0 0 2.66-4h-4.35a4.1 4.1 0 0 1-3.55 2.32c-2.78 0-4.82-2.22-4.82-5.23s1.95-5.23 4.66-5.23c1.66 0 2.75.69 3.71 2.45h4.35a7.55 7.55 0 0 0-2.21-3.68 8.38 8.38 0 0 0-5.86-2.48 8.7 8.7 0 0 0-8.53 8.8M679.3 97.41v22.17h3.87v-7.78l5.49 7.78h4.86l-6.52-8.51 5.79-8.14h-4.45l-5.17 7.85V97.41h-3.87zM695.29 97.41v22.17h3.96v-9.1h6.62v-3.84h-6.62v-5.39h6.94v-3.84h-10.9zM707.91 119.58h3.87v-16.65h-3.87Zm0-18.5h3.87v-3.67h-3.87ZM723.8 102.93l-2.94 5.03-2.94-5.03h-4.31l4.98 8.04-5.72 8.61h4.61l3.38-5.69 3.45 5.69h4.6l-5.78-8.61 4.99-8.04h-4.32z"}))};ne.defaultProps={"aria-labelledby":"cp-LogoCivicService-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 728.93 120.14"};var re=ne,ie=function(e){var t=e.className,n=(0,c.Z)(e,te),r=d();return f.createElement(ne,(0,l.Z)({className:h()(t,r.root)},n))},oe=["className"],ae=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#09c",d:"M28.29 0C14.47 0 3.07 9.59 3.07 21.2a21.32 21.32 0 0 0 7.17 15.28c3.71 3 5.76 4 18.05 7.92 8.58 2.68 11.65 5.69 11.65 11.05s-4.86 9.36-11.52 9.36c-7 0-11.65-3.9-11.78-10H0a20.92 20.92 0 0 0 5.63 13.71c5.12 5.58 13.71 9.15 22.41 9.15a31 31 0 0 0 20-7.36 21.16 21.16 0 0 0 7.81-16.74c0-6.35-2.56-11.48-7.81-15.72-3.58-3-7.17-4.69-14.71-6.92-7.05-2.23-8.84-2.9-11-4.46a7 7 0 0 1-3.32-5.92c0-4.68 3.45-7.58 8.83-7.58s9 3.12 9.47 8.26H53.7a18.51 18.51 0 0 0-5.51-13.06A27.65 27.65 0 0 0 28.29 0ZM90.64 30.25c7.54 0 13.36 5 15.19 13H75.35c1.72-7.8 7.86-13 15.29-13m-28.66 18c0 16.62 12.72 29.9 28.55 29.9a27.73 27.73 0 0 0 26.07-19.63h-14.32c-2.91 4.9-6.79 7.25-12.07 7.25a15.54 15.54 0 0 1-14.55-11.6h42.13a37.31 37.31 0 0 0 .76-6.81c0-16.07-12.72-29.45-28-29.45C74.72 17.91 62 31.52 62 48.25M153.05 30.25c7.53 0 13.35 5 15.18 13h-30.48c1.72-7.8 7.86-13 15.3-13m-28.66 18c0 16.62 12.71 29.9 28.55 29.9a27.75 27.75 0 0 0 26.07-19.63h-14.33c-2.91 4.9-6.79 7.25-12.07 7.25a15.52 15.52 0 0 1-14.54-11.6h42.12a36.3 36.3 0 0 0 .75-6.81c0-16.07-12.71-29.45-28-29.45-15.84 0-28.55 13.61-28.55 30.34M224.29 0c-20.57 0-37.38 17.4-37.38 38.49 0 21.42 17 39.15 37.6 39.15a36.25 36.25 0 0 0 33.39-22.19h-15.51c-6.14 6.69-11.2 9.26-18.1 9.26-12.92 0-24-12-24-26s10.88-25.77 23.48-25.77c7.44 0 13.9 3.23 19.39 9.81h15.19A32.47 32.47 0 0 0 248.01 8.7 36.46 36.46 0 0 0 224.29 0ZM264.3 1.45h13.04v74.74H264.3zM283.44 76.19h13V20.08h-13Zm0-62.36h13V1.45h-13ZM302.52 47.86c0 16.62 13 30.23 28.86 30.23a28.92 28.92 0 0 0 18.1-6.58c4.31-3.56 6.79-7.37 8.94-13.61h-14.65c-3 5.13-7.1 7.81-12 7.81-9.38 0-16.27-7.48-16.27-17.63s6.57-17.63 15.73-17.63c5.6 0 9.26 2.34 12.49 8.26h14.65c-1.82-5.8-3.66-8.82-7.43-12.39a28.17 28.17 0 0 0-19.71-8.14c-15.84 0-28.76 13.39-28.76 29.68M364.39 1.45V76.2h13.03V49.98l18.53 26.22h16.38l-21.98-28.67 19.5-27.45h-14.97l-17.46 26.44V1.45h-13.03zM418.3 1.45V76.2h13.35V45.52h22.3V32.58h-22.3V14.39h23.38V1.45H418.3zM460.86 76.19h13V20.08h-13Zm0-62.36h13V1.45h-13ZM514.4 20.08l-9.9 16.96-9.91-16.96h-14.54l16.8 27.11-19.28 29h15.51l11.42-19.18 11.63 19.18h15.51l-19.49-29 16.8-27.11H514.4z"}),f.createElement("path",{fill:"#737473",d:"M264.02 98.37a.34.34 0 0 1 .34-.34h4.28a4 4 0 1 1 0 7.93h-1.85v4.18a.35.35 0 0 1-.34.34h-2.09a.34.34 0 0 1-.34-.34Zm4.46 5a1.4 1.4 0 0 0 1.4-1.41 1.35 1.35 0 0 0-1.4-1.31h-1.69v2.72ZM281.19 97.86a6.4 6.4 0 1 1-6.39 6.41 6.39 6.39 0 0 1 6.39-6.41Zm0 9.95a3.56 3.56 0 1 0-3.54-3.54 3.56 3.56 0 0 0 3.54 3.54ZM289.39 98.46a.31.31 0 0 1 .32-.43h2.08a.36.36 0 0 1 .32.25l1.53 6h.07l2.76-6.26a.34.34 0 0 1 .3-.19h.32a.3.3 0 0 1 .3.19l2.76 6.26h.04l1.53-6a.37.37 0 0 1 .32-.25h2.15a.31.31 0 0 1 .32.43l-3.36 12a.35.35 0 0 1-.32.25h-.29a.37.37 0 0 1-.3-.2l-3.25-7.27-3.24 7.27a.36.36 0 0 1-.3.2h-.29a.35.35 0 0 1-.32-.25ZM307.49 98.37a.34.34 0 0 1 .33-.34h7.37a.34.34 0 0 1 .34.34v1.94a.34.34 0 0 1-.34.34h-4.92v2.2h4a.35.35 0 0 1 .34.34v1.94a.34.34 0 0 1-.34.34h-4v2.4h4.92a.34.34 0 0 1 .34.33v1.94a.34.34 0 0 1-.34.34h-7.36a.34.34 0 0 1-.33-.34ZM319.19 98.37a.34.34 0 0 1 .34-.34h5.32a3.8 3.8 0 0 1 1.24 7.42l2.44 4.51a.34.34 0 0 1-.3.52h-2.37a.32.32 0 0 1-.28-.16l-2.39-4.71h-1.22v4.53a.35.35 0 0 1-.34.34h-2.14a.34.34 0 0 1-.34-.34Zm5.43 5a1.43 1.43 0 0 0 1.35-1.42 1.36 1.36 0 0 0-1.35-1.35h-2.63v2.77ZM331.83 98.37a.34.34 0 0 1 .33-.34h7.36a.34.34 0 0 1 .34.34v1.94a.34.34 0 0 1-.34.34h-4.92v2.2h4.05a.35.35 0 0 1 .34.34v1.94a.34.34 0 0 1-.34.34h-4.05v2.4h4.92a.34.34 0 0 1 .34.33v1.94a.34.34 0 0 1-.34.34h-7.33a.34.34 0 0 1-.33-.34ZM343.35 98.37a.34.34 0 0 1 .32-.34h4.34a6.23 6.23 0 1 1 0 12.45h-4.34a.34.34 0 0 1-.32-.34Zm4.48 9.48a3.6 3.6 0 0 0 0-7.2h-1.7v7.2ZM363.94 98.37a.34.34 0 0 1 .34-.34h4.14a3.58 3.58 0 0 1 3.83 3.31 3.53 3.53 0 0 1-2.06 2.81c1 .39 2.39 1.26 2.39 2.9a3.63 3.63 0 0 1-3.88 3.43h-4.41a.34.34 0 0 1-.34-.34Zm4.16 4.71a1.27 1.27 0 0 0 1.25-1.28 1.21 1.21 0 0 0-1.25-1.21h-1.38v2.49Zm.23 4.86a1.29 1.29 0 0 0 1.28-1.3 1.42 1.42 0 0 0-1.45-1.25h-1.44v2.55ZM377.83 104.49l-3.92-5.94a.33.33 0 0 1 .28-.52h2.31a.38.38 0 0 1 .29.16l2.47 3.65 2.47-3.65a.32.32 0 0 1 .28-.16h2.31a.33.33 0 0 1 .29.52l-4 5.92v5.67a.35.35 0 0 1-.34.34h-2.08a.34.34 0 0 1-.34-.34ZM403.19 94.13a9.49 9.49 0 0 1 6.78 2.61.51.51 0 0 1 0 .78l-1.69 1.73a.45.45 0 0 1-.7 0 6.59 6.59 0 0 0-4.31-1.66 6.5 6.5 0 0 0 0 13 6.71 6.71 0 0 0 4.28-1.6.51.51 0 0 1 .7 0l1.74 1.79a.53.53 0 0 1 0 .76 9.59 9.59 0 0 1-6.8 2.72 10.09 10.09 0 1 1 0-20.17ZM413.54 94.95a.56.56 0 0 1 .53-.54h2.6a.57.57 0 0 1 .54.54v18.53a.57.57 0 0 1-.54.54h-2.6a.56.56 0 0 1-.53-.54ZM420.19 95.14a.5.5 0 0 1 .48-.73h2.86a.5.5 0 0 1 .47.31l5.38 12h.2l5.37-12a.53.53 0 0 1 .48-.31h2.85a.5.5 0 0 1 .48.73l-8.68 18.85a.5.5 0 0 1-.48.31h-.28a.49.49 0 0 1-.47-.31ZM441.74 94.95a.56.56 0 0 1 .53-.54h2.61a.56.56 0 0 1 .53.54v18.53a.56.56 0 0 1-.53.54h-2.61a.56.56 0 0 1-.53-.54ZM459.07 94.13a9.45 9.45 0 0 1 6.77 2.61.51.51 0 0 1 0 .78l-1.65 1.73a.45.45 0 0 1-.7 0 6.59 6.59 0 0 0-4.31-1.66 6.5 6.5 0 0 0 0 13 6.71 6.71 0 0 0 4.28-1.6.51.51 0 0 1 .7 0l1.74 1.79a.54.54 0 0 1 0 .76 9.59 9.59 0 0 1-6.8 2.72 10.09 10.09 0 1 1 0-20.17ZM469.58 94.95a.54.54 0 0 1 .53-.54h6.58a6.25 6.25 0 1 1 0 12.49h-3.5v6.58a.56.56 0 0 1-.53.54h-2.58a.54.54 0 0 1-.53-.54Zm6.89 8.54a2.89 2.89 0 0 0 2.89-2.92 2.79 2.79 0 0 0-2.89-2.71h-3.28v5.63ZM486.19 94.95a.54.54 0 0 1 .53-.54h2.58a.56.56 0 0 1 .53.54v15.7h7.14a.54.54 0 0 1 .54.54v2.29a.54.54 0 0 1-.54.54h-10.23a.54.54 0 0 1-.53-.54ZM499.79 94.95a.56.56 0 0 1 .53-.54h2.66a.54.54 0 0 1 .53.54v11.45a4.08 4.08 0 1 0 8.15 0V94.95a.54.54 0 0 1 .54-.54h2.66a.56.56 0 0 1 .53.54v11.64a7.8 7.8 0 0 1-15.6 0ZM518.75 111.25l1-1.74a.64.64 0 0 1 .95-.19c.14.08 2.41 1.74 4.23 1.74a2.34 2.34 0 0 0 2.55-2.16c0-1.43-1.2-2.41-3.56-3.36-2.63-1.07-5.26-2.75-5.26-6.05 0-2.49 1.85-5.38 6.3-5.38a9.84 9.84 0 0 1 5.6 1.88.7.7 0 0 1 .17.92l-1.07 1.6a.74.74 0 0 1-1 .34c-.22-.14-2.35-1.54-3.89-1.54a2.22 2.22 0 0 0-2.46 2c0 1.31 1 2.21 3.3 3.13 2.72 1.09 5.85 2.72 5.85 6.33 0 2.89-2.49 5.55-6.44 5.55a9 9 0 0 1-6.16-2.19c-.22-.27-.36-.41-.11-.88ZM533.65 94.8a1.06 1.06 0 0 0 0 2.11 1.06 1.06 0 1 0 0-2.11Zm0 1.88a.83.83 0 0 1 0-1.65.83.83 0 0 1 0 1.65Z"}),f.createElement("path",{fill:"#737473",d:"M534 95.73a.26.26 0 0 0-.26-.26h-.32v.78h.1v-.23h.11l.09.24h.11v-.06l-.1-.22a.23.23 0 0 0 .27-.25Zm-.28.09h-.17v-.18h.17a.09.09 0 0 1 0 .18Z"}))};ae.defaultProps={"aria-labelledby":"cp-LogoSeeClickFix-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 534.7 114.3"};var se=function(e){return f.createElement("svg",e,f.createElement("defs",null,f.createElement("style",null,".scf-2","{","fill:#fff","}")),f.createElement("circle",{cx:"203.52",cy:"203.52",r:"203.52",style:{fill:"#09c"}}),f.createElement("path",{className:"scf-2",d:"M188.11 152.03h-41a51.7 51.7 0 1 0 0 103.39h41a4.93 4.93 0 0 0 4.92-4.87v-30a4.92 4.92 0 0 0-4.65-4.84h-41.31a12 12 0 1 1 0-24h41.2a4.92 4.92 0 0 0 4.7-4.85v-30a4.93 4.93 0 0 0-4.86-4.83ZM258.73 152.03h-40.65a4.92 4.92 0 0 0-4.85 4.63v30.44a4.92 4.92 0 0 0 4.82 4.63h40.68a12 12 0 0 1 0 24h-40.59a4.92 4.92 0 0 0-4.91 4.63v58.56a4.92 4.92 0 0 0 4.77 4.63h6.88a3.25 3.25 0 0 0 2.64-1.12l25.81-27h5.39a51.7 51.7 0 0 0 0-103.39Z"}))};se.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 407.03 407.03"};var ue=function(e){var t=e.className,n=(0,c.Z)(e,oe),r=d();return f.createElement(ae,(0,l.Z)({className:h()(t,r.root)},n))},ce=ae,le=["className"],fe=function(e){return f.createElement("svg",e,f.createElement("path",{fill:"#3A7470",d:"M22.5 0 0 11.25v22.5l7.5 3.75V15l15-7.5 15 7.5v15l-15 7.5-7.5-3.75v7.5L22.5 45 45 33.75v-22.5L22.5 0z"}),f.createElement("path",{fill:"#3A7470",d:"M30 26.25v-7.5L22.5 15 15 18.75v7.5L22.5 30l7.5-3.75zM93.32 14.4v14.4c0 3.24-3 5.85-6.68 5.85H68.55V45H63V8.55h23.64c3.7 0 6.68 2.61 6.68 5.85Zm-5.55 0a1.07 1.07 0 0 0-1.13-1h-17a1.07 1.07 0 0 0-1.13 1v14.4a1.07 1.07 0 0 0 1.13 1h17a1.07 1.07 0 0 0 1.13-1ZM120.86 8.55v4.86h-16.65a1.08 1.08 0 0 0-1.13 1v20.24h-5.55V14.4c0-3.24 3-5.85 6.68-5.85ZM154.11 14.4V24h-24.77v4.8a1.08 1.08 0 0 0 1.13 1h23.64v4.86h-23.64c-3.7 0-6.68-2.61-6.68-5.85V14.4c0-3.24 3-5.85 6.68-5.85h17c3.66 0 6.64 2.61 6.64 5.85Zm-5.55 4.77V14.4a1.07 1.07 0 0 0-1.13-1h-17a1.08 1.08 0 0 0-1.13 1v4.77ZM189.72 14.4v20.25h-23.64c-3.7 0-6.68-2.61-6.68-5.85v-9.63h24.77V14.4a1.07 1.07 0 0 0-1.13-1H159.4V8.55H183c3.74 0 6.72 2.61 6.72 5.85Zm-5.55 9.6H165v4.8a1.08 1.08 0 0 0 1.13 1h18.09ZM238.54 14.4v20.25H233V14.4a1.09 1.09 0 0 0-1.18-1h-11.73a1.08 1.08 0 0 0-1.13 1v20.25h-5.55V14.4a1.07 1.07 0 0 0-1.13-1h-11.82a1.08 1.08 0 0 0-1.13 1v20.25h-5.55V8.55h38.08c3.7 0 6.68 2.61 6.68 5.85ZM274.36 14.4v14.4c0 3.24-3 5.85-6.68 5.85H244V0h5.55v8.55h18.09c3.74 0 6.72 2.61 6.72 5.85Zm-5.55 0a1.07 1.07 0 0 0-1.13-1h-17a1.07 1.07 0 0 0-1.13 1v14.4a1.07 1.07 0 0 0 1.13 1h17a1.07 1.07 0 0 0 1.13-1ZM278.21 0h5.55v28.8a1.08 1.08 0 0 0 1.13 1h5.55v4.86h-5.55c-3.7 0-6.68-2.61-6.68-5.85V0ZM324 14.4V24h-24.77v4.8a1.07 1.07 0 0 0 1.13 1H324v4.86h-23.64c-3.7 0-6.68-2.61-6.68-5.85V14.4c0-3.24 3-5.85 6.68-5.85h17c3.64 0 6.64 2.61 6.64 5.85Zm-5.55 4.77V14.4a1.07 1.07 0 0 0-1.13-1h-17a1.07 1.07 0 0 0-1.13 1v4.77Z"}))};fe.defaultProps={"aria-labelledby":"cp-LogoPreamble-title",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 324 45"};var de=fe,pe=function(e){var t=e.className,n=(0,c.Z)(e,le),r=d();return f.createElement(fe,(0,l.Z)({className:h()(t,r.root)},n))},he=["product","white","circle"],ge=function(e){var t=e.product,n=e.white,r=e.circle,i=(0,c.Z)(e,he);if("CivicClerk"===t)return n?f.createElement(y,i):r?f.createElement(m,i):f.createElement(b,i);if("CivicEngage Evolve"===t)return n?f.createElement(P,i):r?f.createElement(T,i):f.createElement(A,i);if("CivicEngage Central"===t)return n?f.createElement(x,i):r?f.createElement(S,i):f.createElement(_,i);if("CivicHR"===t)return n?f.createElement(N,i):r?f.createElement(R,i):f.createElement(D,i);if("CivicOptimize"===t)return n?f.createElement(j,i):r?f.createElement(L,i):f.createElement(U,i);if("CivicReady"===t)return n?f.createElement(Y,i):r?f.createElement(K,i):f.createElement(G,i);if("CivicRec"===t)return n?f.createElement(Q,i):r?f.createElement(X,i):f.createElement(ee,i);if("CivicService"===t){if(n)return f.createElement(ie,i);if(!r)return f.createElement(re,i)}if("SeeClickFix"===t)return n?f.createElement(ue,i):r?f.createElement(se,i):f.createElement(ce,i);if("Preamble"===t){if(n)return f.createElement(pe,i);if(!r)return f.createElement(de,i)}return n?f.createElement(V,i):r?f.createElement(H,i):f.createElement(z,i)};ge.defaultProps={role:"img",width:"100%",height:"100%"};var ve=ge,me=n(4942);function ye(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,i=e.unit,o=void 0===i?"px":i,a=e.step,s=void 0===a?5:a,u=e.queryName,c=void 0===u?"@media":u,l=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)((0,r.Z)({},e),{},(0,me.Z)({},t.key,t.val))}),{})}(n),f=Object.keys(l);function d(e){var t="number"===typeof n[e]?n[e]:e;return"".concat(c," (min-width:").concat(t).concat(o,")")}function p(e,t){var r="number"===typeof t?-1:f.indexOf(t);return"".concat(c," (min-width:").concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[f[r]]?n[f[r]]:t)-s/100).concat(o,")")}return{keys:f,values:l,up:d,down:function(e){var t="number"===typeof n[e]?n[e]:e;return"".concat(c," (max-width:").concat(t-s/100).concat(o,")")},between:p,only:function(e){return f.indexOf(e)+1p)&&(U=(H=H.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},v={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,y=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b=function(e){return 45===e.charCodeAt(1)},w=function(e){return null!=e&&"boolean"!==typeof e},E=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return b(e)?e:e.replace(m,"-$&").toLowerCase()})),S=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(y,(function(e,t,n){return _={name:t,styles:n,next:_},t}))}return 1===v[e]||b(e)||"number"!==typeof t||0===t?t:t+"px"};function x(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return _={name:n.name,styles:n.styles,next:_},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)_={name:i.name,styles:i.styles,next:_},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),l=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(a,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===i[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)d={name:i.name,styles:i.styles,next:d},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var l,f,d,p=c?null:S.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(h.width/2),f=Math.round(h.height/2);else{var g=e.touches?e.touches[0]:e,v=g.clientX,m=g.clientY;l=Math.round(v-h.left),f=Math.round(m-h.top)}if(s)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,_=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(y,2)+Math.pow(_,2))}e.touches?null===E.current&&(E.current=function(){x({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})},w.current=setTimeout((function(){E.current&&(E.current(),E.current=null)}),80)):x({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})}}),[a,x]),k=o.useCallback((function(){_({},{pulsate:!0})}),[_]),C=o.useCallback((function(e,t){if(clearTimeout(w.current),"touchend"===e.type&&E.current)return e.persist(),E.current(),E.current=null,void(w.current=setTimeout((function(){C(e,t)})));E.current=null,v((function(e){return e.length>0?e.slice(1):e})),y.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:k,start:_,stop:C}}),[k,_,C]),o.createElement("span",(0,r.Z)({className:(0,s.Z)(u.root,c),ref:S},l),o.createElement(p.Z,{component:null,exit:!0},h))})),m=(0,l.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(v)),y=o.forwardRef((function(e,t){var n=e.action,l=e.buttonRef,d=e.centerRipple,p=void 0!==d&&d,h=e.children,g=e.classes,v=e.className,y=e.component,b=void 0===y?"button":y,w=e.disabled,E=void 0!==w&&w,S=e.disableRipple,x=void 0!==S&&S,_=e.disableTouchRipple,k=void 0!==_&&_,C=e.focusRipple,T=void 0!==C&&C,P=e.focusVisibleClassName,A=e.onBlur,F=e.onClick,O=e.onFocus,R=e.onFocusVisible,N=e.onKeyDown,D=e.onKeyUp,I=e.onMouseDown,M=e.onMouseLeave,L=e.onMouseUp,j=e.onTouchEnd,U=e.onTouchMove,Z=e.onTouchStart,B=e.onDragLeave,H=e.tabIndex,V=void 0===H?0:H,z=e.TouchRippleProps,q=e.type,W=void 0===q?"button":q,K=(0,i.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Y=o.useRef(null);var G=o.useRef(null),$=o.useState(!1),J=$[0],X=$[1];E&&J&&X(!1);var Q=(0,f.Z)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;return(0,c.Z)((function(r){return t&&t(r),!n&&G.current&&G.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){X(!0),Y.current.focus()}}}),[]),o.useEffect((function(){J&&T&&!x&&G.current.pulsate()}),[x,T,J]);var ie=re("start",I),oe=re("stop",B),ae=re("stop",L),se=re("stop",(function(e){J&&e.preventDefault(),M&&M(e)})),ue=re("start",Z),ce=re("stop",j),le=re("stop",U),fe=re("stop",(function(e){J&&(te(e),X(!1)),A&&A(e)}),!1),de=(0,c.Z)((function(e){Y.current||(Y.current=e.currentTarget),ee(e)&&(X(!0),R&&R(e)),O&&O(e)})),pe=function(){var e=a.findDOMNode(Y.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)},he=o.useRef(!1),ge=(0,c.Z)((function(e){T&&!he.current&&J&&G.current&&" "===e.key&&(he.current=!0,e.persist(),G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),N&&N(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!E&&(e.preventDefault(),F&&F(e))})),ve=(0,c.Z)((function(e){T&&" "===e.key&&G.current&&J&&!e.defaultPrevented&&(he.current=!1,e.persist(),G.current.stop(e,(function(){G.current.pulsate(e)}))),D&&D(e),F&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&F(e)})),me=b;"button"===me&&K.href&&(me="a");var ye={};"button"===me?(ye.type=W,ye.disabled=E):("a"===me&&K.href||(ye.role="button"),ye["aria-disabled"]=E);var be=(0,u.Z)(l,t),we=(0,u.Z)(ne,Y),Ee=(0,u.Z)(be,we),Se=o.useState(!1),xe=Se[0],_e=Se[1];o.useEffect((function(){_e(!0)}),[]);var ke=xe&&!x&&!E;return o.createElement(me,(0,r.Z)({className:(0,s.Z)(g.root,v,J&&[g.focusVisible,P],E&&g.disabled),onBlur:fe,onClick:F,onFocus:de,onKeyDown:ge,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:ue,ref:Ee,tabIndex:E?-1:V},ye,K),h,ke?o.createElement(m,(0,r.Z)({ref:G,center:p},z)):null)})),b=(0,l.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(y)},79370:function(e,t,n){"use strict";var r=n(87462),i=n(29439),o=n(45987),a=n(72791),s=n(28182),u=n(18875),c=n(38317),l=n(10812),f=n(56043),d=n(23364),p=n(69806),h=a.forwardRef((function(e,t){var n=e.children,c=e.classes,h=e.className,g=e.collapsedHeight,v=e.collapsedSize,m=void 0===v?"0px":v,y=e.component,b=void 0===y?"div":y,w=e.disableStrictModeCompat,E=void 0!==w&&w,S=e.in,x=e.onEnter,_=e.onEntered,k=e.onEntering,C=e.onExit,T=e.onExited,P=e.onExiting,A=e.style,F=e.timeout,O=void 0===F?l.x9.standard:F,R=e.TransitionComponent,N=void 0===R?u.ZP:R,D=(0,o.Z)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),I=(0,d.Z)(),M=a.useRef(),L=a.useRef(null),j=a.useRef(),U="number"===typeof(g||m)?"".concat(g||m,"px"):g||m;a.useEffect((function(){return function(){clearTimeout(M.current)}}),[]);var Z=I.unstable_strictMode&&!E,B=a.useRef(null),H=(0,p.Z)(t,Z?B:void 0),V=function(e){return function(t,n){if(e){var r=Z?[B.current,t]:[t,n],o=(0,i.Z)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},z=V((function(e,t){e.style.height=U,x&&x(e,t)})),q=V((function(e,t){var n=L.current?L.current.clientHeight:0,r=(0,f.C)({style:A,timeout:O},{mode:"enter"}).duration;if("auto"===O){var i=I.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),j.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),k&&k(e,t)})),W=V((function(e,t){e.style.height="auto",_&&_(e,t)})),K=V((function(e){var t=L.current?L.current.clientHeight:0;e.style.height="".concat(t,"px"),C&&C(e)})),Y=V(T),G=V((function(e){var t=L.current?L.current.clientHeight:0,n=(0,f.C)({style:A,timeout:O},{mode:"exit"}).duration;if("auto"===O){var r=I.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),j.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=U,P&&P(e)}));return a.createElement(N,(0,r.Z)({in:S,onEnter:z,onEntered:W,onEntering:q,onExit:K,onExited:Y,onExiting:G,addEndListener:function(e,t){var n=Z?e:t;"auto"===O&&(M.current=setTimeout(n,j.current||0))},nodeRef:Z?B:void 0,timeout:"auto"===O?null:O},D),(function(e,t){return a.createElement(b,(0,r.Z)({className:(0,s.Z)(c.root,c.container,h,{entered:c.entered,exited:!S&&"0px"===U&&c.hidden}[e]),style:(0,r.Z)({minHeight:U},A),ref:H},t),a.createElement("div",{className:c.wrapper,ref:L},a.createElement("div",{className:c.wrapperInner},n)))}))}));h.muiSupportAuto=!0,t.Z=(0,c.Z)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(h)},72262:function(e,t,n){"use strict";var r=n(87462),i=n(45987),o=n(72791),a=n(54164),s=n(50503),u=n(18875),c=n(69806),l=n(23364),f=n(10812),d=n(56043);function p(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var h={enter:f.x9.enteringScreen,exit:f.x9.leavingScreen},g=o.forwardRef((function(e,t){var n=e.children,f=e.direction,g=void 0===f?"down":f,v=e.in,m=e.onEnter,y=e.onEntered,b=e.onEntering,w=e.onExit,E=e.onExited,S=e.onExiting,x=e.style,_=e.timeout,k=void 0===_?h:_,C=e.TransitionComponent,T=void 0===C?u.ZP:C,P=(0,i.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=(0,l.Z)(),F=o.useRef(null),O=o.useCallback((function(e){F.current=a.findDOMNode(e)}),[]),R=(0,c.Z)(n.ref,O),N=(0,c.Z)(R,t),D=function(e){return function(t){e&&(void 0===t?e(F.current):e(F.current,t))}},I=D((function(e,t){p(g,e),(0,d.n)(e),m&&m(e,t)})),M=D((function(e,t){var n=(0,d.C)({timeout:k,style:x},{mode:"enter"});e.style.webkitTransition=A.transitions.create("-webkit-transform",(0,r.Z)({},n,{easing:A.transitions.easing.easeOut})),e.style.transition=A.transitions.create("transform",(0,r.Z)({},n,{easing:A.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",b&&b(e,t)})),L=D(y),j=D(S),U=D((function(e){var t=(0,d.C)({timeout:k,style:x},{mode:"exit"});e.style.webkitTransition=A.transitions.create("-webkit-transform",(0,r.Z)({},t,{easing:A.transitions.easing.sharp})),e.style.transition=A.transitions.create("transform",(0,r.Z)({},t,{easing:A.transitions.easing.sharp})),p(g,e),w&&w(e)})),Z=D((function(e){e.style.webkitTransition="",e.style.transition="",E&&E(e)})),B=o.useCallback((function(){F.current&&p(g,F.current)}),[g]);return o.useEffect((function(){if(!v&&"down"!==g&&"right"!==g){var e=(0,s.Z)((function(){F.current&&p(g,F.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[g,v]),o.useEffect((function(){v||B()}),[v,B]),o.createElement(T,(0,r.Z)({nodeRef:F,onEnter:I,onEntered:L,onEntering:M,onExit:U,onExited:Z,onExiting:j,appear:!0,in:v,timeout:k},P),(function(e,t){return o.cloneElement(n,(0,r.Z)({ref:N,style:(0,r.Z)({visibility:"exited"!==e||v?void 0:"hidden"},x,n.props.style)},t))}))}));t.Z=g},16608:function(e,t,n){"use strict";var r=n(87462),i=n(45987),o=n(72791),a=n(28182),s=n(38317),u=n(91122),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.color,f=void 0===l?"inherit":l,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,g=void 0===h?"medium":h,v=e.htmlColor,m=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,i.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,(0,r.Z)({className:(0,a.Z)(s.root,c,"inherit"!==f&&s["color".concat((0,u.Z)(f))],"default"!==g&&"medium"!==g&&s["fontSize".concat((0,u.Z)(g))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},w),n,m?o.createElement("title",null,m):null)}));c.muiName="SvgIcon",t.Z=(0,s.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c)},38302:function(e,t,n){"use strict";var r=n(87462),i=n(45987),o=n(72791),a=n(28182),s=n(38317),u=n(91122),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},l=o.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,l=e.classes,f=e.className,d=e.color,p=void 0===d?"initial":d,h=e.component,g=e.display,v=void 0===g?"initial":g,m=e.gutterBottom,y=void 0!==m&&m,b=e.noWrap,w=void 0!==b&&b,E=e.paragraph,S=void 0!==E&&E,x=e.variant,_=void 0===x?"body1":x,k=e.variantMapping,C=void 0===k?c:k,T=(0,i.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),P=h||(S?"p":C[_]||c[_])||"span";return o.createElement(P,(0,r.Z)({className:(0,a.Z)(l.root,f,"inherit"!==_&&l[_],"initial"!==p&&l["color".concat((0,u.Z)(p))],w&&l.noWrap,y&&l.gutterBottom,S&&l.paragraph,"inherit"!==s&&l["align".concat((0,u.Z)(s))],"initial"!==v&&l["display".concat((0,u.Z)(v))]),ref:t},T))}));t.Z=(0,s.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(l)},13108:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return l},_4:function(){return c},_j:function(){return f},mi:function(){return s}});var r=n(37483);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),a({type:c,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?f(e,t):d(e,t)}function l(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},6330:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},89688:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(45987),i=n(81534),o=n(87462),a=["xs","sm","md","lg","xl"];var s=n(4942);function u(e,t,n){var r;return(0,o.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,o.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.Z)({},e.up("sm"),(0,o.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(37483),l={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=n(13108),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,y.$n)(e.main,i):"dark"===t&&(e.dark=(0,y._j)(e.main,o)))}function S(e){return Math.round(1e5*e)/1e5}function x(e){return S(e)}var _={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?k:a,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,g=void 0===h?500:h,v=n.fontWeightBold,m=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,E=n.pxToRem,C=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var T=c/14,P=E||function(e){return"".concat(e/b*T,"rem")},A=function(e,t,n,r,i){return(0,o.Z)({fontFamily:s,fontWeight:e,fontSize:P(t),lineHeight:n},s===k?{letterSpacing:"".concat(S(r/t),"em")}:{},i,w)},F={h1:A(f,96,1.167,-1.5),h2:A(f,60,1.2,-.5),h3:A(p,48,1.167,0),h4:A(p,34,1.235,.25),h5:A(p,24,1.334,0),h6:A(g,20,1.6,.15),subtitle1:A(p,16,1.75,.15),subtitle2:A(g,14,1.57,.1),body1:A(p,16,1.5,.15),body2:A(p,14,1.43,.15),button:A(g,14,1.75,.4,_),caption:A(p,12,1.66,.4),overline:A(p,12,2.66,1,_)};return(0,i.Z)((0,o.Z)({htmlFontSize:b,pxToRem:P,round:x,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:g,fontWeightBold:m},F),C,{clone:!1})}function T(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},F=n(29439),O=n(71002),R={xs:0,sm:600,md:960,lg:1280,xl:1920},N={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(R[e],"px)")}};var D=function(e,t){return t?(0,i.Z)(e,t,{clone:!1}):e};var I={m:"margin",p:"padding"},M={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},L={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!L[e])return[e];e=L[e]}var t=e.split(""),n=(0,F.Z)(t,2),r=n[0],i=n[1],o=I[r],a=M[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),U=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Z(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function B(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function H(e){var t=Z(e.theme);return Object.keys(e).map((function(n){if(-1===U.indexOf(n))return null;var r=B(j(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||N;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===(0,O.Z)(t)){var i=e.theme.breakpoints||N;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(D,{})}H.propTypes={},H.filterProps=U;var V=n(10812),z=n(19535);function q(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,s=e.mixins,S=void 0===s?{}:s,x=e.palette,_=void 0===x?{}:x,k=e.spacing,T=e.typography,F=void 0===T?{}:T,O=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),R=function(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,a=e.secondary,s=void 0===a?{light:p.A200,main:p.A400,dark:p.A700}:a,u=e.error,S=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,x=e.warning,_=void 0===x?{light:g[300],main:g[500],dark:g[700]}:x,k=e.info,C=void 0===k?{light:v[300],main:v[500],dark:v[700]}:k,T=e.success,P=void 0===T?{light:m[300],main:m[500],dark:m[700]}:T,A=e.type,F=void 0===A?"light":A,O=e.contrastThreshold,R=void 0===O?3:O,N=e.tonalOffset,D=void 0===N?.2:N,I=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,y.mi)(e,w.text.primary)>=R?w.text.primary:b.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!==typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return E(e,"light",n,D),E(e,"dark",r,D),e.contrastText||(e.contrastText=M(e.main)),e},j={dark:w,light:b};return(0,i.Z)((0,o.Z)({common:l,type:F,primary:L(n),secondary:L(s,"A400","A200","A700"),error:L(S),warning:L(_),info:L(C),success:L(P),grey:f,contrastThreshold:R,getContrastText:M,augmentColor:L,tonalOffset:D},j[F]),I)}(_),N=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,u=e.step,c=void 0===u?5:u,l=(0,r.Z)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-c/100).concat(s,")")}return(0,o.Z)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(s,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},l)}(n),D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Z({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?M-1:0),j=1;j1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(e,(0,r.Z)({defaultTheme:o.Z},t))}},10812:function(e,t,n){"use strict";n.d(t,{x9:function(){return o}});var r=n(45987),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,u=t.easing,c=void 0===u?i.easeInOut:u,l=t.delay,f=void 0===l?0:l;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},23364:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(78444),i=(n(72791),n(40663));function o(){return(0,r.Z)()||i.Z}},38317:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(87462),i=n(45987),o=n(72791),a=n(62110),s=n.n(a),u=n(92187),c=n(70794),l=n(78444),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,p=t.name,h=(0,i.Z)(t,["defaultTheme","withTheme","name"]);var g=p,v=(0,u.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:g},h)),m=o.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,f=(0,i.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),g=f;return("string"===typeof p||d)&&(s=(0,l.Z)()||a,p&&(g=(0,c.Z)({theme:s,name:p,props:f})),d&&!g.theme&&(g.theme=s)),o.createElement(n,(0,r.Z)({ref:u||t,classes:h},g))}));return s()(m,n),m}},d=n(40663);var p=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},19535:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},56043:function(e,t,n){"use strict";n.d(t,{C:function(){return i},n:function(){return r}});var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},91122:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37483);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},37545:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,o=e.productionPrefix,a=void 0===o?"jss":o,s=e.seed,u=void 0===s?"":s,c=""===u?"":"".concat(u,"-"),l=0,f=function(){return l+=1};return function(e,t){var o=t.options.name;if(o&&0===o.indexOf("Mui")&&!t.options.link&&!n){if(-1!==i.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(c).concat(o,"-").concat(e.key);return t.options.theme[r.Z]&&""===u?"".concat(s,"-").concat(f()):s}return"".concat(c).concat(a).concat(f())}}},70794:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,{Z:function(){return r}})},19682:function(e,t,n){"use strict";n.d(t,{Z:function(){return Oe}});var r=n(50931),i=Date.now(),o="fnValues"+i,a="fnStyle"+ ++i,s=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var i=(0,r.JH)(e,{},n);return i[a]=t,i},onProcessStyle:function(e,t){if(o in t||a in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[o]=n,e},onUpdate:function(e,t,n,r){var i=t,s=i[a];s&&(i.style=s(e)||{});var u=i[o];if(u)for(var c in u)i.prop(c,u[c](e),r)}}},u=n(87462),c="@global",l="@global ",f=function(){function e(e,t,n){for(var i in this.type="global",this.at=c,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,u.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),d=function(){function e(e,t,n){this.type="global",this.at=c,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,u.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),p=/\s*,\s*/g;function h(e,t){for(var n=e.split(p),r="",i=0;i-1){var i=de[e];if(!Array.isArray(i))return z.js+$(i)in t&&z.css+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,h=t.classNamePrefix,g=t.Component,v=t.defaultTheme,m=void 0===v?p:v,y=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),b=function(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.Z)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,d.Z)(s[e],a[e])})),s},options:{}}}(e),w=n||h||"makeStyles";b.options={index:f+=1,name:n,meta:w,classNamePrefix:w};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.Z)()||m,r=(0,i.Z)({},o.useContext(l.NU),y),f=o.useRef(),d=o.useRef();!function(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var o={name:n,state:{},stylesCreator:b,stylesOptions:r,theme:t};return function(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,c=e.stylesCreator,l=e.name;if(!o.disableGeneration){var f=u.get(o.sheetsManager,c,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},u.set(o.sheetsManager,c,r,f));var d=(0,i.Z)({},c.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var p=o.sheetsRegistry;if(0===f.refs){var h;o.sheetsCache&&(h=u.get(o.sheetsCache,c,r));var g=c.create(r,l);h||((h=o.jss.createStyleSheet(g,(0,i.Z)({link:!1},d))).attach(),o.sheetsCache&&u.set(o.sheetsCache,c,r,h)),p&&p.add(h),f.staticSheet=h,f.dynamicStyles=(0,a._$)(g)}if(f.dynamicStyles){var v=o.jss.createStyleSheet(f.dynamicStyles,(0,i.Z)({link:!0},d));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,s.Z)({baseClasses:f.staticSheet.classes,newClasses:v.classes}),p&&p.add(v)}else n.classes=f.staticSheet.classes;f.refs+=1}}(o,e),d.current=!1,f.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=u.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(u.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,b]),o.useEffect((function(){d.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(f.current,e),d.current=!0}));var p=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=(0,s.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(f.current,e.classes,g);return p}}},25352:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(87462);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},40423:function(e,t,n){"use strict";var r=n(72791).createContext(null);t.Z=r},78444:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(72791),i=n(40423);function o(){return r.useContext(i.Z)}},81534:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(87462),i=n(71002);function o(e){return e&&"object"===(0,i.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},37483:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},89934:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(38527),i=n(31230),o=n(19726),a=n(4522),s=n(29297),u=n(24408);var c=6048e5;function l(e,t){(0,a.Z)(1,arguments);var n=(0,r.Z)(e),l=(0,i.Z)(n,t).getTime()-function(e,t){var n,r,c,l,f,d,p,h;(0,a.Z)(1,arguments);var g=(0,u.j)(),v=(0,s.Z)(null!==(n=null!==(r=null!==(c=null!==(l=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null===t||void 0===t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:g.firstWeekContainsDate)&&void 0!==r?r:null===(p=g.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),m=(0,o.Z)(e,t),y=new Date(0);return y.setUTCFullYear(m,0,v),y.setUTCHours(0,0,0,0),(0,i.Z)(y,t)}(n,t).getTime();return Math.round(l/c)+1}},19726:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(38527),i=n(4522),o=n(31230),a=n(29297),s=n(24408);function u(e,t){var n,u,c,l,f,d,p,h;(0,i.Z)(1,arguments);var g=(0,r.Z)(e),v=g.getUTCFullYear(),m=(0,s.j)(),y=(0,a.Z)(null!==(n=null!==(u=null!==(c=null!==(l=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null===t||void 0===t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==u?u:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,o.Z)(b,t),E=new Date(0);E.setUTCFullYear(v,0,y),E.setUTCHours(0,0,0,0);var S=(0,o.Z)(E,t);return g.getTime()>=w.getTime()?v+1:g.getTime()>=S.getTime()?v:v-1}},68552:function(e,t,n){"use strict";n.d(t,{Do:function(){return a},Iu:function(){return o},qp:function(){return s}});var r=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},4522:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},89853:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(38527),i=n(4522);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}},31230:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(38527),i=n(4522),o=n(29297),a=n(24408);function s(e,t){var n,s,u,c,l,f,d,p;(0,i.Z)(1,arguments);var h=(0,a.j)(),g=(0,o.Z)(null!==(n=null!==(s=null!==(u=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==u?u:h.weekStartsOn)&&void 0!==s?s:null===(d=h.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.Z)(e),m=v.getUTCDay(),y=(m0?n:1-n;return(0,f.Z)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,f.Z)(n+1,2)},d:function(e,t){return(0,f.Z)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,f.Z)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,f.Z)(e.getUTCHours(),t.length)},m:function(e,t){return(0,f.Z)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,f.Z)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,f.Z)(i,t.length)}},p="midnight",h="noon",g="morning",v="afternoon",m="evening",y="night",b={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return d.y(e,t)},Y:function(e,t,n,r){var i=(0,l.Z)(e,r),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,f.Z)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,f.Z)(o,t.length)},R:function(e,t){var n=(0,u.Z)(e);return(0,f.Z)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,f.Z)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,f.Z)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,f.Z)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return d.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,f.Z)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,c.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,f.Z)(i,t.length)},I:function(e,t,n){var r=(0,s.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,f.Z)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):d.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,f.Z)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,f.Z)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,f.Z)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,f.Z)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?h:0===i?p:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?m:i>=12?v:i>=4?g:y,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return d.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):d.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,f.Z)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,f.Z)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):d.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):d.s(e,t)},S:function(e,t){return d.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return E(i);case"XXXX":case"XX":return S(i);default:return S(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return E(i);case"xxxx":case"xx":return S(i);default:return S(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");default:return"GMT"+S(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");default:return"GMT"+S(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return(0,f.Z)(o,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,f.Z)(i,t.length)}};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+(0,f.Z)(o,2)}function E(e,t){return e%60===0?(e>0?"-":"+")+(0,f.Z)(Math.abs(e)/60,2):S(e,t)}function S(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+(0,f.Z)(Math.floor(i/60),2)+n+(0,f.Z)(i%60,2)}var x=b,_=n(73462),k=n(4697),C=n(68552),T=n(29297),P=n(24408),A=n(38126),F=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R=/^'([^]*?)'?$/,N=/''/g,D=/[a-zA-Z]/;function I(e,t,n){var s,u,c,l,f,d,p,h,g,v,m,y,b,w,E,S,I,M;(0,a.Z)(2,arguments);var L=String(t),j=(0,P.j)(),U=null!==(s=null!==(u=null===n||void 0===n?void 0:n.locale)&&void 0!==u?u:j.locale)&&void 0!==s?s:A.Z,Z=(0,T.Z)(null!==(c=null!==(l=null!==(f=null!==(d=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:null===n||void 0===n||null===(p=n.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==f?f:j.firstWeekContainsDate)&&void 0!==l?l:null===(g=j.locale)||void 0===g||null===(v=g.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==c?c:1);if(!(Z>=1&&Z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,T.Z)(null!==(m=null!==(y=null!==(b=null!==(w=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==w?w:null===n||void 0===n||null===(E=n.locale)||void 0===E||null===(S=E.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==b?b:j.weekStartsOn)&&void 0!==y?y:null===(I=j.locale)||void 0===I||null===(M=I.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==m?m:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var H=(0,o.Z)(e);if(!(0,r.Z)(H))throw new RangeError("Invalid time value");var V=(0,k.Z)(H),z=(0,i.Z)(H,V),q={firstWeekContainsDate:Z,weekStartsOn:B,locale:U,_originalDate:H};return L.match(O).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_.Z[t])(e,U.formatLong):e})).join("").match(F).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(R);if(!t)return e;return t[1].replace(N,"'")}(r);var o=x[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,C.Do)(r)||(0,C.qp)(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,C.Iu)(r)||(0,C.qp)(r,t,String(e)),o(z,r,U.localize,q);if(i.match(D))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}},90811:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(71002),i=n(4522);var o=n(38527);function a(e){if((0,i.Z)(1,arguments),!function(e){return(0,i.Z)(1,arguments),e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!==typeof e)return!1;var t=(0,o.Z)(e);return!isNaN(Number(t))}},56704:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(e,t,n,r){return s[e]};function c(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var l={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function f(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],i=e.match(d.parsePattern);if(!i)return null;var o=d.valueCallback?d.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},h={code:"en-US",formatDistance:i,formatLong:a,formatRelative:u,localize:l,match:p,options:{weekStartsOn:0,firstWeekContainsDate:1}}},31633:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(34377),i=n(4522),o=n(29297);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.Z)(e,-n)}},38527:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002),i=n(4522);function o(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},84776:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},78079:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(84776),a=n(24410);i(n(24410),t);var s=/\s+/g,u={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"===typeof t&&(n=t,t=u),"object"===typeof e&&(t=e,e=void 0),this.callback=null!==e&&void 0!==e?e:null,this.options=null!==t&&void 0!==t?t:u,this.elementCB=null!==n&&void 0!==n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(s," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"===typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},24410:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=d;var p=function(e){function t(t){return e.call(this,o.ElementType.Root,t)||this}return r(t,e),t}(d);t.Document=p;var h=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var a=e.call(this,i,r)||this;return a.name=t,a.attribs=n,a}return r(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,o.isTag)(e)}function v(e){return e.type===o.ElementType.CDATA}function m(e){return e.type===o.ElementType.Text}function y(e){return e.type===o.ElementType.Comment}function b(e){return e.type===o.ElementType.Directive}function w(e){return e.type===o.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),m(e))n=new c(e.data);else if(y(e))n=new l(e.data);else if(g(e)){var r=t?S(e.children):[],a=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=a})),null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=a}else if(v(e)){r=t?S(e.children):[];var s=new d(o.ElementType.CDATA,r);r.forEach((function(e){return e.parent=s})),n=s}else if(w(e)){r=t?S(e.children):[];var u=new p(r);r.forEach((function(e){return e.parent=u})),e["x-mode"]&&(u["x-mode"]=e["x-mode"]),n=u}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var E=new f(e.name,e.data);null!=e["x-name"]&&(E["x-name"]=e["x-name"],E["x-publicId"]=e["x-publicId"],E["x-systemId"]=e["x-systemId"]),n=E}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n=0;d--){var p=a[d];"."===p?o(a,d):".."===p?(o(a,d),f++):f&&(o(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(44554);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),f({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=g(e,t,d(),w.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,f({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t/i,u=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"===typeof window.DOMParser){var f=new window.DOMParser;c=l=function(e,t){return t&&(e="<"+t+">"+e+""),f.parseFromString(e,"text/html")}}if(document.implementation){var d=n(61716).isIE,p=document.implementation.createHTMLDocument(d()?"html-dom-parser":void 0);c=function(e,t){return t?(p.documentElement.getElementsByTagName(t)[0].innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var h,g=document.createElement("template");g.content&&(h=function(e){return g.innerHTML=e,g.content.childNodes}),e.exports=function(e){var t,n,f,d,p=e.match(a);switch(p&&p[1]&&(t=p[1].toLowerCase()),t){case r:return n=l(e),s.test(e)||(f=n.getElementsByTagName(i)[0])&&f.parentNode.removeChild(f),u.test(e)||(f=n.getElementsByTagName(o)[0])&&f.parentNode.removeChild(f),n.getElementsByTagName(r);case i:case o:return d=c(e).getElementsByTagName(t),u.test(e)&&s.test(e)?d[0].parentNode.childNodes:d;default:return h?h(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},70159:function(e,t,n){var r=n(59409),i=n(61716).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},61716:function(e,t,n){for(var r,i=n(79127),o=n(24410),a=i.CASE_SENSITIVE_TAG_NAMES,s=o.Comment,u=o.Element,c=o.ProcessingInstruction,l=o.Text,f={},d=0,p=a.length;d1&&(l=h(l,{key:l.key||w})),m.push(l);else if("text"!==o.type){switch(f=o.attribs,u(o)?a(f.style,f):f&&(f=i(f)),d=null,o.type){case"script":case"style":o.children[0]&&(f.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?f.defaultValue=o.children[0].data:o.children&&o.children.length&&(d=e(o.children,n));break;default:continue}E>1&&(f.key=w),m.push(g(o.name,f,d))}else{if((c=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(b&&c)continue;m.push(o.data)}return 1===m.length?m[0]:m}},94141:function(e,t,n){var r=n(72791),i=n(95792).default;var o={reactCompat:!0};var a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!==typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"===typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"===typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!==e&&void 0!==e)try{t.style=i(e,o)}catch(n){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},11065:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(u,c):c}e.exports=function(e,u){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:f,column:d};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:f,column:d},this.source=u.source}g.prototype.content=e;var v=[];function m(t){var n=new Error(u.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=u.source,n.line=f,n.column=d,n.source=e,!u.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function S(){var e=h(),n=y(i);if(n){if(E(),!y(o))return m("property missing ':'");var r=y(a),u=e({type:"declaration",property:l(n[0].replace(t,c)),value:r?l(r[0].replace(t,c)):c});return y(s),u}}return b(),function(){var e,t=[];for(w(t);e=S();)!1!==e&&(t.push(e),w(t));return t}()}},10536:function(e,t,n){"use strict";var r="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},i="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.Z=i},29262:function(e){var t={repeat:3};e.exports=function(e){var n=Object.assign({},t,e),r=Array(n.repeat+1).join(":not(#\\20)");return{onProcessRule:function(e,t){var n=e.options.parent;!1===t.options.increaseSpecificity||"style"!==e.type||n&&"keyframes"===n.type||(e.selectorText=r+e.selectorText)}}}},50931:function(e,t,n){"use strict";n.d(t,{EK:function(){return p},HZ:function(){return me},JH:function(){return f},RB:function(){return Y},Ue:function(){return ve},_$:function(){return ye}});var r=n(87462),i=n(10536),o=n(43144),a=n(94578),s=n(97326),u=n(63366),c={}.constructor;function l(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(l);if(e.constructor!==c)return e;var t={};for(var n in e)t[n]=l(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=l(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var d=function(e,t){for(var n="",r=0;r<+~=|^:(),"'`\s])/g,y="undefined"!==typeof CSS&&CSS.escape,b=function(e){return y?y(e):e.replace(m,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),E=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,u=r.sheet,c=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=c((0,s.Z)((0,s.Z)(i)),u),i.selectorText="."+b(i.id)),i}(0,a.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return v(this.selectorText,this.style,n)},(0,o.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(w),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new E(e,t,n)}},x={indent:1,children:!0},_=/@([\w-]+)/,k=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(_);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Y((0,r.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=x);var t=h(e).linebreak;if(null==e.indent&&(e.indent=x.indent),null==e.children&&(e.children=x.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),C=/@container|@media|@supports\s+/,T={onCreateRule:function(e,t,n){return C.test(e)?new k(e,t,n):null}},P={indent:1,children:!0},A=/@keyframes\s+([\w-]+)/,F=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(A);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:b(s(this,a)),this.rules=new Y((0,r.Z)({},n,{parent:this})),t)this.rules.add(u,t[u],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=P);var t=h(e).linebreak;if(null==e.indent&&(e.indent=P.indent),null==e.children&&(e.children=P.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),O=/@keyframes\s+/,R=/\$([\w-]+)/g,N=function(e,t){return"string"===typeof e?e.replace(R,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],i=N(r,n);i!==r&&(e[t]=i)},I={onCreateRule:function(e,t,n){return"string"===typeof e&&O.test(e)?new F(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return N(e,r.keyframes);default:return e}}},M=function(e){function t(){return e.apply(this,arguments)||this}return(0,a.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return v(this.key,this.style,n)},t}(w),L={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new M(e,t,n):null}},j=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=h(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,u.Z)(t,["attached"]),i=h(r).linebreak,o="",a=0;a-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(a){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},ue=re((function(){return document.querySelector("head")}));function ce(e){var t=X.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=ue(),n=0;nn?n:t},pe=function(){function e(e){this.getPropertyValue=ie,this.setProperty=oe,this.removeProperty=ae,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&X.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=le();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ce(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n=t||n<0||d&&e-l>=a}function E(){var e=m();if(y(e))return S(e);u=setTimeout(E,function(e){var n=t-(e-c);return d?v(n,a-(e-l)):n}(e))}function S(e){return u=void 0,p&&i?h(e):(i=o=void 0,s)}function x(){var e=m(),n=y(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(E,t),f?h(e):s}(c);if(d)return u=setTimeout(E,t),h(c)}return void 0===u&&(u=setTimeout(E,t)),s}return t=w(t)||0,b(n)&&(f=!!n.leading,a=(d="maxWait"in n)?g(w(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),x.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},x.flush=function(){return void 0===u?s:S(m())},x}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return i;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return b(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),y(e,t,{leading:i,maxWait:t,trailing:o})}},77408:function(e,t,n){"use strict";n.d(t,{wT:function(){return oe},Ds:function(){return ae}});var r=n(72791),i=n(54164),o=n(28182),a=n(72262),s=n(6330),u=n(38317),c=n(13108),l=n(38596),f=n(79370),d=n(16608),p=n(54667),h=n(69806),g=n(72216);function v(e){return e.substring(2).toLowerCase()}var m=function(e){var t=e.children,n=e.disableReactTree,o=void 0!==n&&n,a=e.mouseEvent,s=void 0===a?"onClick":a,u=e.onClickAway,c=e.touchEvent,l=void 0===c?"onTouchEnd":c,f=r.useRef(!1),d=r.useRef(null),m=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){m.current=!0}),0),function(){m.current=!1}}),[]);var b=r.useCallback((function(e){d.current=i.findDOMNode(e)}),[]),w=(0,h.Z)(t.ref,b),E=(0,g.Z)((function(e){var t=y.current;if(y.current=!1,m.current&&d.current&&!function(e){return document.documentElement.clientWidth-1;else n=!(0,p.Z)(d.current).documentElement.contains(e.target)||d.current.contains(e.target);n||!o&&t||u(e)}})),S=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},x={ref:w};return!1!==l&&(x[l]=S(l)),r.useEffect((function(){if(!1!==l){var e=v(l),t=(0,p.Z)(d.current),n=function(){f.current=!0};return t.addEventListener(e,E),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,E),t.removeEventListener("touchmove",n)}}}),[E,l]),!1!==s&&(x[s]=S(s)),r.useEffect((function(){if(!1!==s){var e=v(s),t=(0,p.Z)(d.current);return t.addEventListener(e,E),function(){t.removeEventListener(e,E)}}}),[E,s]),r.createElement(r.Fragment,null,r.cloneElement(t,x))};n(62110);function y(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}var E=r.createContext(),S={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},x={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},_={default:20,dense:4},k={default:6,dense:2},C={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:a.Z,transitionDuration:{enter:225,exit:195}},T=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},P=function(e){return Object.keys(e).filter((function(e){return!x[e]})).reduce((function(t,n){var r;return b({},t,((r={})[n]=e[n],r))}),{})},A={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},F=function(e){return"containerAnchorOrigin"+e},O=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+T(t)+T(n)},R=function(e){return"variant"+T(e)},N=function(e){return!!e||0===e},D=function(e){return"number"===typeof e||null===e};function I(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),b({},n,{},t,{},e)}var M=function(e){var t;return(0,s.Z)({root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)})},L=(0,r.forwardRef)((function(e,t){var n=e.classes,i=e.className,a=w(e,["classes","className"]);return r.createElement("div",Object.assign({ref:t,className:(0,o.Z)(n.root,i)},a))})),j=(0,u.Z)(M)(L),U={right:"left",left:"right",bottom:"up",top:"down"},Z=function(e){return"center"!==e.horizontal?U[e.horizontal]:U[e.vertical]},B=function(e){return r.createElement(d.Z,Object.assign({},e),r.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},H=function(e){return r.createElement(d.Z,Object.assign({},e),r.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},V=function(e){return r.createElement(d.Z,Object.assign({},e),r.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},z=function(e){return r.createElement(d.Z,Object.assign({},e),r.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},q={fontSize:20,marginInlineEnd:8},W={default:void 0,success:r.createElement(B,{style:q}),warning:r.createElement(H,{style:q}),error:r.createElement(V,{style:q}),info:r.createElement(z,{style:q})};function K(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,i=new Array(r),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",te="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",ne=(0,l.Z)((function(e){var t,n,r,i,o;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[ee]={pointerEvents:"all"},t[te]={padding:k.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*_.default+"px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),rootDense:(n={},n[te]={padding:k.dense+"px 0px"},n),top:{top:_.default-k.default,flexDirection:"column"},bottom:{bottom:_.default-k.default,flexDirection:"column-reverse"},left:(r={left:_.default},r[e.breakpoints.up("sm")]={alignItems:"flex-start"},r[e.breakpoints.down("xs")]={left:"16px"},r),right:(i={right:_.default},i[e.breakpoints.up("sm")]={alignItems:"flex-end"},i[e.breakpoints.down("xs")]={right:"16px"},i),center:(o={left:"50%",transform:"translateX(-50%)"},o[e.breakpoints.up("sm")]={alignItems:"center"},o)}})),re=function(e){var t=ne(),n=e.className,i=e.anchorOrigin,a=e.dense,s=w(e,["className","anchorOrigin","dense"]),u=(0,o.Z)(t[i.vertical],t[i.horizontal],t.root,n,a&&t.rootDense);return r.createElement("div",Object.assign({className:u},s))},ie=r.memo(re),oe=function(e){var t,n,a,s,u;function c(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var r=t,i=r.key,o=r.preventDuplicate,a=w(r,["key","preventDuplicate"]),s=N(i),u=s?i:(new Date).getTime()+Math.random(),c=function(e,t,n){return function(r){return"autoHideDuration"===r?D(e.autoHideDuration)?e.autoHideDuration:D(t.autoHideDuration)?t.autoHideDuration:C.autoHideDuration:e[r]||t[r]||n[r]}}(a,n.props,C),l=b({key:u},a,{message:e,open:!0,entered:!1,requestClose:!1,variant:c("variant"),anchorOrigin:c("anchorOrigin"),autoHideDuration:c("autoHideDuration")});return a.persist&&(l.autoHideDuration=void 0),n.setState((function(t){if(void 0===o&&n.props.preventDuplicate||o){var r=function(t){return s?t.key===i:t.message===e},a=t.queue.findIndex(r)>-1,u=t.snacks.findIndex(r)>-1;if(a||u)return t}return n.handleDisplaySnack(b({},t,{queue:[].concat(t.queue,[l])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?b({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var i=e.snacks.map((function(e){return t||e.persist&&!r?b({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,A.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,A.MAXSNACK,e.key),b({},e,{open:!1})):b({},e,{requestClose:!0}))}));return b({},e,{snacks:i})},n.handleEnteredSnack=function(e,t,r){if(!N(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?b({},e,{entered:!0}):b({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==A.CLICKAWAY){var i=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return i||e.key===r?e.entered?b({},e,{open:!1}):b({},e,{requestClose:!0}):b({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));N(e)&&t&&t.onClose&&t.onClose(null,A.INSTRUCTED,e),n.handleCloseSnack(null,A.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var i=t||r;if(!N(i))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(b({},e,{snacks:e.snacks.filter((function(e){return e.key!==i}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar,closeSnackbar:n.closeSnackbar}},n}return n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,c.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,a=n.iconVariant,s=n.dense,u=void 0===s?C.dense:s,c=n.hideIconVariant,l=void 0===c?C.hideIconVariant:c,f=n.domRoot,d=n.children,p=n.classes,h=void 0===p?{}:p,g=w(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),v=this.state.snacks.reduce((function(e,t){var n,r,i=(r=t.anchorOrigin,""+T(r.vertical)+T(r.horizontal)),o=e[i]||[];return b({},e,((n={})[i]=[].concat(o,[t]),n))}),{}),m=Object.keys(v).map((function(t){var n=v[t];return r.createElement(ie,{key:t,dense:u,anchorOrigin:n[0].anchorOrigin,className:(0,o.Z)(h.containerRoot,h[F(t)])},n.map((function(t){return r.createElement(Q,Object.assign({},g,{key:t.key,snack:t,dense:u,iconVariant:a,hideIconVariant:l,classes:P(h),onClose:e.handleCloseSnack,onExited:K([e.handleExitedSnack,e.props.onExited]),onEntered:K([e.handleEnteredSnack,e.props.onEntered])}))})))}));return r.createElement(E.Provider,{value:t},d,f?(0,i.createPortal)(m,f):m)},a=c,(s=[{key:"maxSnack",get:function(){return this.props.maxSnack||C.maxSnack}}])&&y(a.prototype,s),u&&y(a,u),c}(r.Component),ae=function(){return(0,r.useContext)(E)}},31725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u=4){for(var e=arguments.length,t=Array(e),n=0;n=3){for(var e=arguments.length,t=Array(e),n=0;n=2){for(var e=arguments.length,t=Array(e),n=0;n=1){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=t,this._jsonService=new n(["application/jwk-set+json"])}return e.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(i.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(i.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(t){i.Log.debug("MetadataService.getMetadata: json received");var n=e._settings.metadataSeed||{};return e._settings.metadata=Object.assign({},n,t),e._settings.metadata}))):(i.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},e.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.Log.debug("MetadataService.getMetadataProperty for: "+e),this.getMetadata().then((function(n){if(i.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===n[e]){if(!0===t)return void i.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+e);throw i.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+e),new Error("Metadata does not contain property "+e)}return n[e]}))},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(i.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(t){return i.Log.debug("MetadataService.getSigningKeys: jwks_uri received",t),e._jsonService.getJson(t).then((function(t){if(i.Log.debug("MetadataService.getSigningKeys: key set received",t),!t.keys)throw i.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return e._settings.signingKeys=t.keys,e._settings.signingKeys}))}))},r(e,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(a)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="index.html"),this._metadataUrl+=a))),this._metadataUrl}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtility=void 0;var r=n(0),i=n(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.addQueryParam=function(e,t,n){return e.indexOf("?")<0&&(e+="?"),"?"!==e[e.length-1]&&(e+="&"),e+=encodeURIComponent(t),(e+="=")+encodeURIComponent(n)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.Global;"string"!=typeof e&&(e=n.location.href);var o=e.lastIndexOf(t);o>=0&&(e=e.substr(o+1)),"?"===t&&(o=e.indexOf("#"))>=0&&(e=e.substr(0,o));for(var a,s={},u=/([^&=]+)=([^&]*)/g,c=0;a=u.exec(e);)if(s[decodeURIComponent(a[1])]=decodeURIComponent(a[2].replace(/\+/g," ")),c++>50)return r.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",e),{error:"Response exceeded expected number of parameters"};for(var l in s)return s;return{}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoseUtil=void 0;var r=n(26),i=function(e){return e&&e.__esModule?e:{default:e}}(n(33));t.JoseUtil=(0,i.default)({jws:r.jws,KeyUtil:r.KeyUtil,X509:r.X509,crypto:r.crypto,hextob64u:r.hextob64u,b64tohex:r.b64tohex,AllowedSigningAlgs:r.AllowedSigningAlgs})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClientSettings=void 0;var r="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},i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.authority,i=t.metadataUrl,o=t.metadata,l=t.signingKeys,f=t.metadataSeed,d=t.client_id,p=t.client_secret,h=t.response_type,g=void 0===h?"id_token":h,v=t.scope,m=void 0===v?"openid":v,y=t.redirect_uri,b=t.post_logout_redirect_uri,w=t.client_authentication,E=void 0===w?"client_secret_post":w,S=t.prompt,x=t.display,_=t.max_age,k=t.ui_locales,C=t.acr_values,T=t.resource,P=t.response_mode,A=t.filterProtocolClaims,F=void 0===A||A,O=t.loadUserInfo,R=void 0===O||O,N=t.staleStateAge,D=void 0===N?900:N,I=t.clockSkew,M=void 0===I?300:I,L=t.clockService,j=void 0===L?new a.ClockService:L,U=t.userInfoJwtIssuer,Z=void 0===U?"OP":U,B=t.mergeClaims,H=void 0!==B&&B,V=t.stateStore,z=void 0===V?new s.WebStorageStateStore:V,q=t.ResponseValidatorCtor,W=void 0===q?u.ResponseValidator:q,K=t.MetadataServiceCtor,Y=void 0===K?c.MetadataService:K,G=t.extraQueryParams,$=void 0===G?{}:G,J=t.extraTokenParams,X=void 0===J?{}:J;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._authority=n,this._metadataUrl=i,this._metadata=o,this._metadataSeed=f,this._signingKeys=l,this._client_id=d,this._client_secret=p,this._response_type=g,this._scope=m,this._redirect_uri=y,this._post_logout_redirect_uri=b,this._client_authentication=E,this._prompt=S,this._display=x,this._max_age=_,this._ui_locales=k,this._acr_values=C,this._resource=T,this._response_mode=P,this._filterProtocolClaims=!!F,this._loadUserInfo=!!R,this._staleStateAge=D,this._clockSkew=M,this._clockService=j,this._userInfoJwtIssuer=Z,this._mergeClaims=!!H,this._stateStore=z,this._validator=new W(this),this._metadataService=new Y(this),this._extraQueryParams="object"===(void 0===$?"undefined":r($))?$:{},this._extraTokenParams="object"===(void 0===X?"undefined":r(X))?X:{}}return e.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},i(e,[{key:"client_id",get:function(){return this._client_id},set:function(e){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=e}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"client_authentication",get:function(){return this._client_authentication}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(e){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=e}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(l)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="index.html"),this._metadataUrl+=l)),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:"metadataSeed",get:function(){return this._metadataSeed},set:function(e){this._metadataSeed=e}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"mergeClaims",get:function(){return this._mergeClaims}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraQueryParams=e:this._extraQueryParams={}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraTokenParams=e:this._extraTokenParams={}}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebStorageStateStore=void 0;var r=n(0),i=n(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,r=void 0===n?"oidc.":n,o=t.store,a=void 0===o?i.Global.localStorage:o;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._store=a,this._prefix=r}return e.prototype.set=function(e,t){return r.Log.debug("WebStorageStateStore.html",e),e=this._prefix+e,this._store.setItem(e,t),Promise.resolve()},e.prototype.get=function(e){r.Log.debug("WebStorageStateStore.get",e),e=this._prefix+e;var t=this._store.getItem(e);return Promise.resolve(t)},e.prototype.remove=function(e){r.Log.debug("WebStorageStateStore.remove",e),e=this._prefix+e;var t=this._store.getItem(e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){r.Log.debug("WebStorageStateStore.getAllKeys");for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Global.XMLHttpRequest,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t&&Array.isArray(t)?this._contentTypes=t.slice():this._contentTypes=[],this._contentTypes.push("application/json"),r&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=n,this._jwtHandler=r}return e.prototype.getJson=function(e,t){var n=this;if(!e)throw r.Log.error("JsonService.getJson: No url passed"),new Error("url");return r.Log.debug("JsonService.getJson, url: ",e),new Promise((function(i,o){var a=new n._XMLHttpRequest;a.open("GET.html",e);var s=n._contentTypes,u=n._jwtHandler;a.onload=function(){if(r.Log.debug("JsonService.getJson: HTTP response received, status",a.status),200===a.status){var t=a.getResponseHeader("Content-Type");if(t){var n=s.find((function(e){if(t.startsWith(e))return!0}));if("application/jwt"==n)return void u(a).then(i,o);if(n)try{return void i(JSON.parse(a.responseText))}catch(i){return r.Log.error("JsonService.getJson: Error parsing JSON response",i.message),void o(i)}}o(Error("Invalid response Content-Type: "+t+", from URL: "+e))}else o(Error(a.statusText+" ("+a.status+")"))},a.onerror=function(){r.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},t&&(r.Log.debug("JsonService.getJson: token passed, setting Authorization header"),a.setRequestHeader("Authorization","Bearer "+t)),a.send()}))},e.prototype.postForm=function(e,t,n){var i=this;if(!e)throw r.Log.error("JsonService.postForm: No url passed"),new Error("url");return r.Log.debug("JsonService.postForm, url: ",e),new Promise((function(o,a){var s=new i._XMLHttpRequest;s.open("POST.html",e);var u=i._contentTypes;s.onload=function(){if(r.Log.debug("JsonService.postForm: HTTP response received, status",s.status),200!==s.status){if(400===s.status&&(n=s.getResponseHeader("Content-Type"))&&u.find((function(e){if(n.startsWith(e))return!0})))try{var t=JSON.parse(s.responseText);if(t&&t.error)return r.Log.error("JsonService.postForm: Error from server: ",t.error),void a(new Error(t.error))}catch(o){return r.Log.error("JsonService.postForm: Error parsing JSON response",o.message),void a(o)}a(Error(s.statusText+" ("+s.status+")"))}else{var n;if((n=s.getResponseHeader("Content-Type"))&&u.find((function(e){if(n.startsWith(e))return!0})))try{return void o(JSON.parse(s.responseText))}catch(o){return r.Log.error("JsonService.postForm: Error parsing JSON response",o.message),void a(o)}a(Error("Invalid response Content-Type: "+n+", from URL: "+e))}},s.onerror=function(){r.Log.error("JsonService.postForm: network error"),a(Error("Network Error"))};var c="";for(var l in t){var f=t[l];f&&(c.length>0&&(c+="&"),c+=encodeURIComponent(l),c+="=",c+=encodeURIComponent(f))}s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),void 0!==n&&s.setRequestHeader("Authorization","Basic "+btoa(n)),s.send(c)}))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninRequest=void 0;var r=n(0),i=n(3),o=n(13);t.SigninRequest=function(){function e(t){var n=t.url,a=t.client_id,s=t.redirect_uri,u=t.response_type,c=t.scope,l=t.authority,f=t.data,d=t.prompt,p=t.display,h=t.max_age,g=t.ui_locales,v=t.id_token_hint,m=t.login_hint,y=t.acr_values,b=t.resource,w=t.response_mode,E=t.request,S=t.request_uri,x=t.extraQueryParams,_=t.request_type,k=t.client_secret,C=t.extraTokenParams,T=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!a)throw r.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw r.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!u)throw r.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!c)throw r.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw r.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var P=e.isOidc(u),A=e.isCode(u);w||(w=e.isCode(u)?"query":null),this.state=new o.SigninState({nonce:P,data:f,client_id:a,authority:l,redirect_uri:s,code_verifier:A,request_type:_,response_mode:w,client_secret:k,scope:c,extraTokenParams:C,skipUserInfo:T}),n=i.UrlUtility.addQueryParam(n,"client_id",a),n=i.UrlUtility.addQueryParam(n,"redirect_uri",s),n=i.UrlUtility.addQueryParam(n,"response_type",u),n=i.UrlUtility.addQueryParam(n,"scope",c),n=i.UrlUtility.addQueryParam(n,"state",this.state.id),P&&(n=i.UrlUtility.addQueryParam(n,"nonce",this.state.nonce)),A&&(n=i.UrlUtility.addQueryParam(n,"code_challenge",this.state.code_challenge),n=i.UrlUtility.addQueryParam(n,"code_challenge_method","S256"));var F={prompt:d,display:p,max_age:h,ui_locales:g,id_token_hint:v,login_hint:m,acr_values:y,resource:b,request:E,request_uri:S,response_mode:w};for(var O in F)F[O]&&(n=i.UrlUtility.addQueryParam(n,O,F[O]));for(var R in x)n=i.UrlUtility.addQueryParam(n,R,x[R]);this.url=n}return e.isOidc=function(e){return!!e.split(/\s+/g).filter((function(e){return"id_token"===e}))[0]},e.isOAuth=function(e){return!!e.split(/\s+/g).filter((function(e){return"token"===e}))[0]},e.isCode=function(e){return!!e.split(/\s+/g).filter((function(e){return"code"===e}))[0]},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=t.data,i=t.created,a=t.request_type;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._id=n||(0,o.default)(),this._data=r,this._created="number"==typeof i&&i>0?i:parseInt(Date.now()/1e3),this._request_type=a}return e.prototype.toStorageString=function(){return i.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return i.Log.debug("State.fromStorageString"),new e(JSON.parse(t))},e.clearStaleState=function(t,n){var r=Date.now()/1e3-n;return t.getAllKeys().then((function(n){i.Log.debug("State.clearStaleState: got keys",n);for(var o=[],a=function(a){var s=n[a];u=t.get(s).then((function(n){var o=!1;if(n)try{var a=e.fromStorageString(n);i.Log.debug("State.clearStaleState: got item from key: ",s,a.created),a.created<=r&&(o=!0)}catch(e){i.Log.error("State.clearStaleState: Error parsing state for key",s,e.message),o=!0}else i.Log.debug("State.clearStaleState: no item in storage for key: ",s),o=!0;if(o)return i.Log.debug("State.clearStaleState: removed item for key: ",s),t.remove(s)})),o.push(u)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t instanceof o.OidcClientSettings?this._settings=t:this._settings=new o.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.response_type,r=t.scope,o=t.redirect_uri,a=t.data,u=t.state,c=t.prompt,l=t.display,f=t.max_age,d=t.ui_locales,p=t.id_token_hint,h=t.login_hint,g=t.acr_values,v=t.resource,m=t.request,y=t.request_uri,b=t.response_mode,w=t.extraQueryParams,E=t.extraTokenParams,S=t.request_type,x=t.skipUserInfo,_=arguments[1];i.Log.debug("OidcClient.createSigninRequest");var k=this._settings.client_id;n=n||this._settings.response_type,r=r||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,f=f||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,v=v||this._settings.resource,b=b||this._settings.response_mode,w=w||this._settings.extraQueryParams,E=E||this._settings.extraTokenParams;var C=this._settings.authority;return s.SigninRequest.isCode(n)&&"code"!==n?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(t){i.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",t);var T=new s.SigninRequest({url:t,client_id:k,redirect_uri:o,response_type:n,scope:r,data:a||u,authority:C,prompt:c,display:l,max_age:f,ui_locales:d,id_token_hint:p,login_hint:h,acr_values:g,resource:v,request:m,request_uri:y,extraQueryParams:w,extraTokenParams:E,request_type:S,response_mode:b,client_secret:e._settings.client_secret,skipUserInfo:x}),P=T.state;return(_=_||e._stateStore).set(P.id,P.toStorageString()).then((function(){return T}))}))},e.prototype.readSigninResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSigninResponseState");var r="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new u.SigninResponse(e,r);return o.state?(t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o.state).then((function(e){if(!e)throw i.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:f.SigninState.fromStorageString(e),response:o}}))):(i.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},e.prototype.processSigninResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(e,t,!0).then((function(e){var t=e.state,r=e.response;return i.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),n._validator.validateSigninResponse(t,r)}))},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id_token_hint,r=t.data,o=t.state,a=t.post_logout_redirect_uri,s=t.extraQueryParams,u=t.request_type,l=arguments[1];return i.Log.debug("OidcClient.createSignoutRequest"),a=a||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(t){if(!t)throw i.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");i.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",t);var f=new c.SignoutRequest({url:t,id_token_hint:n,post_logout_redirect_uri:a,data:r||o,extraQueryParams:s,request_type:u}),d=f.state;return d&&(i.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||e._stateStore).set(d.id,d.toStorageString())),f}))},e.prototype.readSignoutResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSignoutResponseState");var r=new l.SignoutResponse(e);if(!r.state)return i.Log.debug("OidcClient.readSignoutResponseState: No state in response"),r.error?(i.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",r.error),Promise.reject(new a.ErrorResponse(r))):Promise.resolve({state:void 0,response:r});var o=r.state;return t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o).then((function(e){if(!e)throw i.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(e),response:r}}))},e.prototype.processSignoutResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(e,t,!0).then((function(e){var t=e.state,r=e.response;return t?(i.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),n._validator.validateSignoutResponse(t,r)):(i.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),r)}))},e.prototype.clearStaleState=function(e){return i.Log.debug("OidcClient.clearStaleState"),e=e||this._stateStore,d.State.clearStaleState(e,this.settings.staleStateAge)},r(e,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;var r=n(7),i=n(2),o=n(0);t.TokenClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n,this._metadataService=new a(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"authorization_code",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.code?t.redirect_uri?t.code_verifier?t.client_id?t.client_secret||"client_secret_basic"!=r?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(r){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),e._jsonService.postForm(r,t,n).then((function(e){return o.Log.debug("TokenClient.exchangeCode: response received"),e}))}))):(o.Log.error("TokenClient.exchangeCode: No client_secret passed"),Promise.reject(new Error("A client_secret is required"))):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"refresh_token",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.refresh_token?t.client_id?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(r){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),e._jsonService.postForm(r,t,n).then((function(e){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),e}))}))):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorResponse=void 0;var r=n(0);t.ErrorResponse=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.error,o=n.error_description,a=n.error_uri,s=n.state,u=n.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw r.Log.error("No error passed to ErrorResponse"),new Error("error");var c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o||i));return c.name="ErrorResponse",c.error=i,c.error_description=o,c.error_uri=a,c.state=s,c.session_state=u,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninState=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=n.nonce,i=n.authority,o=n.client_id,u=n.redirect_uri,c=n.code_verifier,l=n.response_mode,f=n.client_secret,d=n.scope,p=n.extraTokenParams,h=n.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===r?g._nonce=(0,s.default)():r&&(g._nonce=r),!0===c?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():c&&(g._code_verifier=c),g.code_verifier){var v=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(v)}return g._redirect_uri=u,g._authority=i,g._client_id=o,g._response_mode=l,g._client_secret=f,g._scope=d,g._extraTokenParams=p,g._skipUserInfo=h,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return i.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return i.Log.debug("SigninState.fromStorageString"),new t(JSON.parse(e))},r(t,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),t}(o.State)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return("undefined"!=r&&null!==r&&void 0!==r.getRandomValues?i:o)().replace(/-/g,"")};var r="undefined"!=typeof window?window.crypto||window.msCrypto:null;function i(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^r.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}function o(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^16*Math.random()>>e/4).toString(16)}))}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var r=function(){function e(e,t){for(var n=0;n0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTokenEvents=void 0;var r=n(0),i=n(46);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.accessTokenExpiringNotificationTime,r=void 0===n?60:n,o=t.accessTokenExpiringTimer,a=void 0===o?new i.Timer("Access token expiring"):o,s=t.accessTokenExpiredTimer,u=void 0===s?new i.Timer("Access token expired"):s;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._accessTokenExpiringNotificationTime=r,this._accessTokenExpiring=a,this._accessTokenExpired=u}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(r.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",t),t>0){var n=t-this._accessTokenExpiringNotificationTime;n<=0&&(n=1),r.Log.debug("AccessTokenEvents.load: registering expiring timer in:",n),this._accessTokenExpiring.init(n)}else r.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var i=t+1;r.Log.debug("AccessTokenEvents.load: registering expired timer in:",i),this._accessTokenExpired.init(i)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){r.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var r=n(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex((function(t){return t===e}));t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){r.Log.debug("Event: Raising event: "+this._name);for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=t,this._CheckSessionIFrameCtor=r,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then((function(e){e?n._start(e):n._settings.monitorAnonymousSession&&n._userManager.querySessionStatus().then((function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),n._start(t)})).catch((function(e){i.Log.error("SessionMonitor ctor: error from querySessionStatus:",e.message)}))})).catch((function(e){i.Log.error("SessionMonitor ctor: error from getUser:",e.message)})))}return e.prototype._start=function(e){var t=this,n=e.session_state;n&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,i.Log.debug("SessionMonitor._start: session_state:",n,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,i.Log.debug("SessionMonitor._start: session_state:",n,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(n):this._metadataService.getCheckSessionIframe().then((function(e){if(e){i.Log.debug("SessionMonitor._start: Initializing check session iframe");var r=t._client_id,o=t._checkSessionInterval,a=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),r,e,o,a),t._checkSessionIFrame.load().then((function(){t._checkSessionIFrame.start(n)}))}else i.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(e){i.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",e.message)})))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(i.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval((function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then((function(t){var n={session_state:t.session_state};t.sub&&t.sid&&(n.profile={sub:t.sub,sid:t.sid}),e._start(n)})).catch((function(e){i.Log.error("SessionMonitor: error from querySessionStatus:",e.message)}))}),1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then((function(t){var n=!0;t?t.sub===e._sub?(n=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",t.session_state):(i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",t.session_state),e._userManager.events._raiseUserSessionChanged())):i.Log.debug("SessionMonitor._callback: Different subject signed into OP:",t.sub):i.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),n&&(e._sub?(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),e._userManager.events._raiseUserSignedOut()):(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),e._userManager.events._raiseUserSignedIn()))})).catch((function(t){e._sub&&(i.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",t.message),e._userManager.events._raiseUserSignedOut())}))},r(e,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckSessionIFrame=void 0;var r=n(0);t.CheckSessionIFrame=function(){function e(t,n,r,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._callback=t,this._client_id=n,this._url=r,this._interval=i||2e3,this._stopOnError=o;var a=r.indexOf("index.html",r.indexOf("//")+2);this._frame_origin=r.substr(0,a),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=r}return e.prototype.load=function(){var e=this;return new Promise((function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener("message",e._boundMessageEvent,!1)}))},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(r.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(r.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):r.Log.debug("CheckSessionIFrame: "+e.data+" message from check session op iframe"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){r.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=e;var n=function(){t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};n(),this._timer=window.setInterval(n,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(r.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRevocationClient=void 0;var r=n(0),i=n(2),o=n(1);t.TokenRevocationClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=t,this._XMLHttpRequestCtor=n,this._metadataService=new a(this._settings)}return e.prototype.revoke=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!e)throw r.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==i&&"refresh_token"!=i)throw r.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(o){if(o){r.Log.debug("TokenRevocationClient.revoke: Revoking "+i);var a=n._settings.client_id,s=n._settings.client_secret;return n._revoke(o,a,s,e,i)}if(t)throw r.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},e.prototype._revoke=function(e,t,n,i,o){var a=this;return new Promise((function(s,u){var c=new a._XMLHttpRequestCtor;c.open("POST.html",e),c.onload=function(){r.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",c.status),200===c.status?s():u(Error(c.statusText+" ("+c.status+")"))},c.onerror=function(){r.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var l="client_id="+encodeURIComponent(t);n&&(l+="&client_secret="+encodeURIComponent(n)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(i),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.send(l)}))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupWindow=void 0;var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=t,this._metadataService=new n(this._settings),this._userInfoService=new r(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var n=this;return i.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(e,t).then((function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: state processed"),n._validateTokens(e,t).then((function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),n._processClaims(e,t).then((function(e){return i.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),e}))}))}))},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(i.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(i.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return i.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!e.client_id)return i.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!e.authority)return i.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return i.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return i.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=e.client_id;return i.Log.debug("ResponseValidator._processSigninParams: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator._processSigninParams: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):e.nonce&&!t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!e.nonce&&t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):e.code_verifier&&!t.code?(i.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!e.code_verifier&&t.code?(i.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var n=this;if(t.isOpenIdConnect){if(i.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return i.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(t.access_token).then((function(e){return i.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),e.sub!==t.profile.sub?(i.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"))):(t.profile=n._mergeClaims(t.profile,e),i.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",t.profile),t)}));i.Log.debug("ResponseValidator._processClaims: not loading user info")}else i.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var n=Object.assign({},e);for(var i in t){var o=t[i];Array.isArray(o)||(o=[o]);for(var a=0;a1)return i.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));o=n[0]}return Promise.resolve(o)}))},e.prototype._getSigningKeyForJwtWithSingleRetry=function(e){var t=this;return this._getSigningKeyForJwt(e).then((function(n){return n?Promise.resolve(n):(t._metadataService.resetSigningKeys(),t._getSigningKeyForJwt(e))}))},e.prototype._validateIdToken=function(e,t){var n=this;if(!e.nonce)return i.Log.error("ResponseValidator._validateIdToken: No nonce on state"),Promise.reject(new Error("No nonce on state"));var r=this._joseUtil.parseJwt(t.id_token);return r&&r.header&&r.payload?e.nonce!==r.payload.nonce?(i.Log.error("ResponseValidator._validateIdToken: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):this._metadataService.getIssuer().then((function(o){return i.Log.debug("ResponseValidator._validateIdToken: Received issuer"),n._getSigningKeyForJwtWithSingleRetry(r).then((function(a){if(!a)return i.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var s=e.client_id,u=n._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",u),n._joseUtil.validateJwt(t.id_token,a,o,s,u).then((function(){return i.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),r.payload.sub?(t.profile=r.payload,t):(i.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))})):(i.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token",r),Promise.reject(new Error("Failed to parse id_token")))},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return i.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",t),[];n="EC"}return i.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",n),e=e.filter((function(e){return e.kty===n})),i.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",n,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return i.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!e.profile.at_hash)return i.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!e.id_token)return i.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return i.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",t),Promise.reject(new Error("Failed to parse id_token"));var n=t.header.alg;if(!n||5!==n.length)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n),Promise.reject(new Error("Unsupported alg: "+n));var r=n.substr(2,3);if(!r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));if(256!==(r=parseInt(r))&&384!==r&&512!==r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));var o="sha"+r,a=this._joseUtil.hashString(e.access_token,o);if(!a)return i.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var s=a.substr(0,a.length/2),u=this._joseUtil.hexToBase64Url(s);return u!==e.profile.at_hash?(i.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,e.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(i.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(e))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInfoService=void 0;var r=n(7),i=n(2),o=n(0),a=n(4);t.UserInfoService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=u}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then((function(n){return o.Log.debug("UserInfoService.getClaims: received userinfo url",n),t._jsonService.getJson(n,e).then((function(e){return o.Log.debug("UserInfoService.getClaims: claims received",e),e}))})):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},e.prototype._getClaimsFromJwt=function e(t){var n=this;try{var r=this._joseUtil.parseJwt(t.responseText);if(!r||!r.header||!r.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",r),Promise.reject(new Error("Failed to parse id_token"));var i=r.header.kid,a=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":a=this._metadataService.getIssuer();break;case"ANY":a=Promise.resolve(r.payload.iss);break;default:a=Promise.resolve(this._settings.userInfoJwtIssuer)}return a.then((function(e){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+e),n._metadataService.getSigningKeys().then((function(a){if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(i)s=a.filter((function(e){return e.kid===i}))[0];else{if((a=n._filterByAlg(a,r.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=a[0]}if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=n._settings.client_id,c=n._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",c),n._joseUtil.validateJwt(t.responseText,s,e,u,c,void 0,!0).then((function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),r.payload}))}))}))}catch(e){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",t),[];n="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",n),e=e.filter((function(e){return e.kty===n})),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",n,e.length),e},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var r=n(27);t.jws=r.jws,t.KeyUtil=r.KEYUTIL,t.X509=r.X509,t.crypto=r.crypto,t.hextob64u=r.hextob64u,t.b64tohex=r.b64tohex,t.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="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},r={userAgent:!1},i={};if(void 0===o)var o={};o.lang={extend:function(t,n,i){if(!n||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t,t.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),i){var a;for(a in i)t.prototype[a]=i[a];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(r.userAgent)&&(s=function(e,t){for(a=0;a>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=a.ceil(t/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},p=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},h=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,o=r/(4*i),s=(o=e?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*i,u=a.min(4*s,r);if(s){for(var c=0;c>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;4>a&&i+.75*a>>6*(3-a)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map;(i=r.charAt(64))&&-1!=(i=e.indexOf(i))&&(n=i);for(var i=[],o=0,a=0;a>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){for(var t=m,n=(i=t.lib).WordArray,r=i.Hasher,i=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},u=2,c=0;64>c;){var l;e:{l=u;for(var f=e.sqrt(l),d=2;d<=f;d++)if(!(l%d)){l=!1;break e}l=!0}l&&(8>c&&(o[c]=s(e.pow(u,.5))),a[c]=s(e.pow(u,1/3)),c++),u++}var p=[];i=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=n[5],l=n[6],f=n[7],d=0;64>d;d++){if(16>d)p[d]=0|e[t+d];else{var h=p[d-15],g=p[d-2];p[d]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+p[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[d-16]}h=f+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+a[d]+p[d],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),f=l,l=c,c=u,u=s+h|0,s=o,o=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=r._createHelper(i),t.HmacSHA256=r._createHmacHelper(i)}(Math),function(){function e(){return r.create.apply(r,arguments)}for(var t=m,n=t.lib.Hasher,r=(o=t.x64).Word,i=o.WordArray,o=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=e();o=o.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(f=this._hash.words)[0],r=f[1],i=f[2],o=f[3],u=f[4],c=f[5],l=f[6],f=f[7],d=n.high,p=n.low,h=r.high,g=r.low,v=i.high,m=i.low,y=o.high,b=o.low,w=u.high,E=u.low,S=c.high,x=c.low,_=l.high,k=l.low,C=f.high,T=f.low,P=d,A=p,F=h,O=g,R=v,N=m,D=y,I=b,M=w,L=E,j=S,U=x,Z=_,B=k,H=C,V=T,z=0;80>z;z++){var q=s[z];if(16>z)var W=q.high=0|e[t+2*z],K=q.low=0|e[t+2*z+1];else{W=((K=(W=s[z-15]).high)>>>1|(Y=W.low)<<31)^(K>>>8|Y<<24)^K>>>7;var Y=(Y>>>1|K<<31)^(Y>>>8|K<<24)^(Y>>>7|K<<25),G=((K=(G=s[z-2]).high)>>>19|($=G.low)<<13)^(K<<3|$>>>29)^K>>>6,$=($>>>19|K<<13)^($<<3|K>>>29)^($>>>6|K<<26),J=(K=s[z-7]).high,X=(Q=s[z-16]).high,Q=Q.low;W=(W=(W=W+J+((K=Y+K.low)>>>0>>0?1:0))+G+((K+=$)>>>0<$>>>0?1:0))+X+((K+=Q)>>>0>>0?1:0),q.high=W,q.low=K}J=M&j^~M&Z,Q=L&U^~L&B,q=P&F^P&R^F&R;var ee=A&O^A&N^O&N,te=(Y=(P>>>28|A<<4)^(P<<30|A>>>2)^(P<<25|A>>>7),G=(A>>>28|P<<4)^(A<<30|P>>>2)^(A<<25|P>>>7),($=a[z]).high),ne=$.low;X=H+((M>>>14|L<<18)^(M>>>18|L<<14)^(M<<23|L>>>9))+(($=V+((L>>>14|M<<18)^(L>>>18|M<<14)^(L<<23|M>>>9)))>>>0>>0?1:0),H=Z,V=B,Z=j,B=U,j=M,U=L,M=D+(X=(X=(X=X+J+(($+=Q)>>>0>>0?1:0))+te+(($+=ne)>>>0>>0?1:0))+W+(($+=K)>>>0>>0?1:0))+((L=I+$|0)>>>0>>0?1:0)|0,D=R,I=N,R=F,N=O,F=P,O=A,P=X+(q=Y+q+((K=G+ee)>>>0>>0?1:0))+((A=$+K|0)>>>0<$>>>0?1:0)|0}p=n.low=p+A,n.high=d+P+(p>>>0>>0?1:0),g=r.low=g+O,r.high=h+F+(g>>>0>>0?1:0),m=i.low=m+N,i.high=v+R+(m>>>0>>0?1:0),b=o.low=b+I,o.high=y+D+(b>>>0>>0?1:0),E=u.low=E+L,u.high=w+M+(E>>>0>>0?1:0),x=c.low=x+U,c.high=S+j+(x>>>0>>0?1:0),k=l.low=k+B,l.high=_+Z+(k>>>0>>0?1:0),T=f.low=T+V,f.high=C+H+(T>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(o),t.HmacSHA512=n._createHmacHelper(o)}(),function(){var e=m,t=(i=e.x64).Word,n=i.WordArray,r=(i=e.algo).SHA512,i=i.SHA384=r.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=r._createHelper(i),e.HmacSHA384=r._createHmacHelper(i)}();var y,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%2b/index.html";function w(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=b.charAt(n>>6)+b.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=b.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=b.charAt(n>>2)+b.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function E(e){var t,n,r,i="",o=0;for(t=0;t>2),n=3&r,o=1):1==o?(i+=P(n<<2|r>>4),n=15&r,o=2):2==o?(i+=P(n),i+=P(r>>2),n=3&r,o=3):(i+=P(n<<2|r>>4),i+=P(15&r),o=0));return 1==o&&(i+=P(n<<2)),i}function S(e){var t,n=E(e),r=new Array;for(t=0;2*t>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},y=30):"Netscape"!=r.appName?(x.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},y=26):(x.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},y=28),x.prototype.DB=y,x.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function R(e){this.m=e}function N(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function U(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function Z(){}function B(e){return e}function H(e){this.r2=_(),this.q3=_(),x.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}R.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},R.prototype.revert=function(e){return e},R.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},R.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},R.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},N.prototype.convert=function(e){var t=_();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(x.ZERO)>0&&this.m.subTo(t,t),t},N.prototype.revert=function(e){var t=_();return e.copyTo(t),this.reduce(t),t},N.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},N.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},N.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},x.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},x.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},x.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=8==n?255&e[r]:A(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},x.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},x.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},x.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},x.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},x.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var f=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/f,p=(1<=0&&(n[n.t++]=1,n.subTo(m,n)),x.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t=0;){var y=n[--g]==l?this.DM:Math.floor(n[g]*d+(n[g-1]+h)*p);if((n[g]+=o.am(0,y,n,v,0,c))0&&n.rShiftTo(u,n),a<0&&x.ZERO.subTo(n,n)}}},x.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},x.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},x.prototype.exp=function(e,t){if(e>4294967295||e<1)return x.ONE;var n=_(),r=_(),i=t.convert(this),o=O(e)-1;for(i.copyTo(n);--o>=0;)if(t.sqrTo(n,r),(e&1<0)t.mulTo(r,i,n);else{var a=n;n=r,r=a}return t.revert(n)},x.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=P(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=P(n));return i?o:"0"},x.prototype.negate=function(){var e=_();return x.ZERO.subTo(this,e),e},x.prototype.abs=function(){return this.s<0?this.negate():this},x.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},x.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)},x.prototype.mod=function(e){var t=_();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(x.ZERO)>0&&e.subTo(t,t),t},x.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new R(t):new N(t),this.exp(e,n)},x.ZERO=F(0),x.ONE=F(1),Z.prototype.convert=B,Z.prototype.revert=B,Z.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},Z.prototype.sqrTo=function(e,t){e.squareTo(t)},H.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=_();return e.copyTo(t),this.reduce(t),t},H.prototype.revert=function(e){return e},H.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},H.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},H.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var V,z,q,W=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],K=(1<<26)/W[W.length-1];function Y(){this.i=0,this.j=0,this.S=new Array}function G(){!function(e){z[q++]^=255&e,z[q++]^=e>>8&255,z[q++]^=e>>16&255,z[q++]^=e>>24&255,q>=256&&(q-=256)}((new Date).getTime())}if(x.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},x.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=F(n),i=_(),o=_(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},x.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,o=0,a=0,s=0;s=n&&(this.dMultiply(r),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),i&&x.ZERO.subTo(this,this)},x.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(x.ONE.shiftLeft(e-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(x.ONE.shiftLeft(e-1),this);else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},x.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},x.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},x.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i=0;)n[r]=0;for(r=Math.max(t-this.t,0);r0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},x.prototype.millerRabin=function(e){var t=this.subtract(x.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>W.length&&(e=W.length);for(var i=_(),o=0;o>24},x.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},x.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},x.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<=0;)r<8?(n=(this[e]&(1<>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},x.prototype.equals=function(e){return 0==this.compareTo(e)},x.prototype.min=function(e){return this.compareTo(e)<0?this:e},x.prototype.max=function(e){return this.compareTo(e)>0?this:e},x.prototype.and=function(e){var t=_();return this.bitwiseTo(e,D,t),t},x.prototype.or=function(e){var t=_();return this.bitwiseTo(e,I,t),t},x.prototype.xor=function(e){var t=_();return this.bitwiseTo(e,M,t),t},x.prototype.andNot=function(e){var t=_();return this.bitwiseTo(e,L,t),t},x.prototype.not=function(){for(var e=_(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var l=_();for(r.sqrTo(a[1],l);s<=c;)a[s]=_(),r.mulTo(l,a[s-2],a[s]),s+=2}var f,d,p=e.t-1,h=!0,g=_();for(i=O(e[p])-1;p>=0;){for(i>=u?f=e[p]>>i-u&c:(f=(e[p]&(1<0&&(f|=e[p-1]>>this.DB+i-u)),s=n;0==(1&f);)f>>=1,--s;if((i-=s)<0&&(i+=this.DB,--p),h)a[f].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(d=o,o=g,g=d),r.mulTo(g,a[f],o)}for(;p>=0&&0==(e[p]&1<=0?(n.subTo(r,n),t&&i.subTo(a,i),o.subTo(s,o)):(r.subTo(n,r),t&&a.subTo(i,a),s.subTo(o,s))}return 0!=r.compareTo(x.ONE)?x.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},x.prototype.pow=function(e){return this.exp(e,new Z)},x.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},x.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=W[W.length-1]){for(t=0;t>>8,z[q++]=255&$;q=0,G()}function ee(){if(null==V){for(G(),(V=new Y).init(z),q=0;q>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return r}function ie(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function oe(e,t){this.x=t,this.q=e}function ae(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?x.ONE:r,this.zinv=null}function se(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new ae(this,null,null)}te.prototype.nextBytes=function(e){var t;for(t=0;t0&&t.length>0))throw"Invalid RSA public key";this.n=ne(e,16),this.e=parseInt(t,16)}},ie.prototype.encrypt=function(e){var t=function(e,t){if(t=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new te,a=new Array;t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new x(n)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var r=n.toString(16);return 0==(1&r.length)?r:"0"+r},ie.prototype.encryptOAEP=function(e,t,n){var r=function(e,t,n,r){var i=ce.crypto.MessageDigest,o=ce.crypto.Util,a=null;if(n||(n="sha1"),"string"==typeof n&&(a=i.getCanonicalAlgName(n),r=i.getHashLength(a),n=function(e){return xe(o.hashHex(_e(e),a))}),e.length+2*r+2>t)throw"Message too long for RSA";var s,u="";for(s=0;s>3,t,n);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},ie.prototype.type="RSA",oe.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},oe.prototype.toBigInteger=function(){return this.x},oe.prototype.negate=function(){return new oe(this.q,this.x.negate().mod(this.q))},oe.prototype.add=function(e){return new oe(this.q,this.x.add(e.toBigInteger()).mod(this.q))},oe.prototype.subtract=function(e){return new oe(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},oe.prototype.multiply=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},oe.prototype.square=function(){return new oe(this.q,this.x.square().mod(this.q))},oe.prototype.divide=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ae.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(x.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(x.ZERO))},ae.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(x.ZERO)&&!this.y.toBigInteger().equals(x.ZERO)},ae.prototype.negate=function(){return new ae(this.curve,this.x,this.y.negate(),this.z)},ae.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(x.ZERO.equals(n))return x.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new x("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=a.multiply(n),u=i.multiply(a),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),f=u.multiply(r).multiply(t).subtract(o.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(f),d)},ae.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new x("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=t.square().multiply(e);x.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.square().multiply(a)).mod(this.curve.q),c=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),c)},ae.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new x("3")),i=this.negate(),o=this,a=this.curve.q.subtract(e),s=a.multiply(new x("3")),u=new ae(this.curve,this.x,this.y),c=u.negate();for(t=r.bitLength()-2;t>0;--t){o=o.twice();var l=r.testBit(t);l!=n.testBit(t)&&(o=o.add(l?this:i))}for(t=s.bitLength()-2;t>0;--t){u=u.twice();var f=s.testBit(t);f!=a.testBit(t)&&(u=u.add(f?u:c))}return o},ae.prototype.multiplyTwo=function(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);r>=0;)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i},se.prototype.getQ=function(){return this.q},se.prototype.getA=function(){return this.a},se.prototype.getB=function(){return this.b},se.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},se.prototype.getInfinity=function(){return this.infinity},se.prototype.fromBigInteger=function(e){return new oe(this.q,e)},se.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:var t=(e.length-2)/2,n=e.substr(2,t),r=e.substr(t+2,t);return new ae(this,this.fromBigInteger(new x(n,16)),this.fromBigInteger(new x(r,16)))}},oe.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ae.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(tn.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},ae.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var o=new x(r),a=new x(i);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),o=new x(r,16),a=new x(i,16);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y).divide(t),r=n.square().subtract(this.x).subtract(e.x),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new ae(this.curve,r,i)},ae.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(x.valueOf(2)),t=this.curve.fromBigInteger(x.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new ae(this.curve,r,i)},ae.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new x("3")),i=this.negate(),o=this;for(t=r.bitLength()-2;t>0;--t){o=o.twice();var a=r.testBit(t);a!=n.testBit(t)&&(o=o.add2D(a?this:i))}return o},ae.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=t.multiply(t).mod(i),a=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return o.equals(a)},ae.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ae.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(x.ONE)<0||t.compareTo(e.subtract(x.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(x.ONE)<0||n.compareTo(e.subtract(x.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ue=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),r={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(e,t,n){return t?r[t]:String.fromCharCode(parseInt(n,16))}var o=new String(""),a=Object.hasOwnProperty;return function(r,s){var u,c,l=r.match(e),f=l[0],d=!1;"{"===f?u={}:"["===f?u=[]:(u=[],d=!0);for(var p=[u],h=1-d,g=l.length;h=0;)delete i[o[l]]}return s.call(t,r,i)}({"":u},"")),u}}();void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.asn1&&ce.asn1||(ce.asn1={}),ce.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},null!=e&&null!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},ce.asn1.DERAbstractString=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=Ee(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},o.lang.extend(ce.asn1.DERAbstractString,ce.asn1.ASN1Object),ce.asn1.DERAbstractTime=function(e){ce.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var u=r(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=ve(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ce.asn1.DERAbstractTime,ce.asn1.ASN1Object),ce.asn1.DERAbstractStructured=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},o.lang.extend(ce.asn1.DERAbstractStructured,ce.asn1.ASN1Object),ce.asn1.DERBoolean=function(e){ce.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},o.lang.extend(ce.asn1.DERBoolean,ce.asn1.ASN1Object),ce.asn1.DERInteger=function(e){ce.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ce.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new x(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(ce.asn1.DERInteger,ce.asn1.ASN1Object),ce.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ce.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}ce.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7i.length&&(i=r[n]);return(e=e.replace(i,"::")).slice(1,-1)}function Me(e){var t="malformed hex value";if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8!=e.length)return 32==e.length?Ie(e):e;try{return parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16)}catch(e){throw t}}function Le(e){for(var t=encodeURIComponent(e),n="",r=0;r"7"?"00"+e:e}de.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0=r)break}return a},de.getNthChildIdx=function(e,t,n){return de.getChildIdx(e,t)[n]},de.getIdxbyList=function(e,t,n,r){var i,o,a=de;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift())>=(o=a.getChildIdx(e,t)).length?-1:a.getIdxbyList(e,o[i],n,r)},de.getIdxbyListEx=function(e,t,n,r){var i,o,a=de;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),o=a.getChildIdx(e,t);for(var s=0,u=0;u=e.length?null:i.getTLV(e,o)},de.getTLVbyListEx=function(e,t,n,r){var i=de,o=i.getIdxbyListEx(e,t,n,r);return-1==o?null:i.getTLV(e,o)},de.getVbyList=function(e,t,n,r,i){var o,a,s=de;return-1==(o=s.getIdxbyList(e,t,n,r))||o>=e.length?null:(a=s.getV(e,o),!0===i&&(a=a.substr(2)),a)},de.getVbyListEx=function(e,t,n,r,i){var o,a,s=de;return-1==(o=s.getIdxbyListEx(e,t,n,r))?null:(a=s.getV(e,o),"03"==e.substr(o,2)&&!1!==i&&(a=a.substr(2)),a)},de.getInt=function(e,t,n){null==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=de.getV(e,t);return"02"==r?parseInt(i,16):function(e){try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16),r=e.substr(2),i=parseInt(r,16).toString(2);return"0"==i&&(i="00000000"),i=i.slice(0,0-n),parseInt(i,2)}catch(e){return-1}}(i)}catch(e){return n}},de.getOID=function(e,t,n){null==n&&(n=null);try{return"06"!=e.substr(t,2)?n:function(e){if(!je(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),o=[],a=0;a0&&(c=c+"."+s.join(".")),c}catch(e){return null}}(de.getV(e,t))}catch(e){return n}},de.getOIDName=function(e,t,n){null==n&&(n=null);try{var r=de.getOID(e,t,n);if(r==n)return n;var i=ce.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(e){return n}},de.getString=function(e,t,n){null==n&&(n=null);try{return xe(de.getV(e,t))}catch(e){return n}},de.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var o=e.substr(2),a=[],s=0;s0&&(l=l+"."+u.join(".")),l},de.dump=function(e,t,n,r){var i=de,o=i.getV,a=i.dump,s=i.getChildIdx,u=e;e instanceof ce.asn1.ASN1Object&&(u=e.getEncodedHex());var c=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var l,f=t.ommit_long_octet;if("01"==(l=u.substr(n,2)))return"00"==(d=o(u,n))?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n";if("02"==l)return r+"INTEGER "+c(d=o(u,n),f)+"\n";if("03"==l){var d=o(u,n);return i.isASN1HEX(d.substr(2))?(E=r+"BITSTRING, encapsulates\n")+a(d.substr(2),t,0,r+" "):r+"BITSTRING "+c(d,f)+"\n"}if("04"==l)return d=o(u,n),i.isASN1HEX(d)?(E=r+"OCTETSTRING, encapsulates\n")+a(d,t,0,r+" "):r+"OCTETSTRING "+c(d,f)+"\n";if("05"==l)return r+"NULL\n";if("06"==l){var p=o(u,n),h=ce.asn1.ASN1Util.oidHexToInt(p),g=ce.asn1.x509.OID.oid2name(h),v=h.replace(/\./g," ");return""!=g?r+"ObjectIdentifier "+g+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==l)return r+"ENUMERATED "+parseInt(o(u,n))+"\n";if("0c"==l)return r+"UTF8String '"+Se(o(u,n))+"'\n";if("13"==l)return r+"PrintableString '"+Se(o(u,n))+"'\n";if("14"==l)return r+"TeletexString '"+Se(o(u,n))+"'\n";if("16"==l)return r+"IA5String '"+Se(o(u,n))+"'\n";if("17"==l)return r+"UTCTime "+Se(o(u,n))+"\n";if("18"==l)return r+"GeneralizedTime "+Se(o(u,n))+"\n";if("1a"==l)return r+"VisualString '"+Se(o(u,n))+"'\n";if("1e"==l)return r+"BMPString '"+Se(o(u,n))+"'\n";if("30"==l){if("3000"==u.substr(n,4))return r+"SEQUENCE {}\n";E=r+"SEQUENCE\n";var m=t;if((2==(w=s(u,n)).length||3==w.length)&&"06"==u.substr(w[0],2)&&"04"==u.substr(w[w.length-1],2)){g=i.oidname(o(u,w[0]));var y=JSON.parse(JSON.stringify(t));y.x509ExtName=g,m=y}for(var b=0;b31)&&128==(192&n)&&(31&n)==r}catch(e){return!1}},de.isASN1HEX=function(e){var t=de;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0);return e.length-r.length-i.length==2*n},de.checkStrictDER=function(e,t,n,r,i){var o=de;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!ce.lang.String.isHex(e))throw new Error("not hex string");n=e.length,i=(r=e.length/2)<128?1:Math.ceil(r.toString(16))+1}if(o.getL(e,t).length>2*i)throw new Error("L of TLV too long: idx="+t);var a=o.getVblen(e,t);if(a>r)throw new Error("value of L too long than hex: idx="+t);var s=o.getTLV(e,t),u=s.length-2-o.getL(e,t).length;if(u!==2*a)throw new Error("V string length and L's value not the same:"+u+"/"+2*a);if(0===t&&e.length!=s.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+s.length);var c=e.substr(t,2);if("02"===c){var l=o.getVidx(e,t);if("00"==e.substr(l,2)&&e.charCodeAt(l+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(c,16)){for(var f=o.getVblen(e,t),d=0,p=o.getChildIdx(e,t),h=0;h=t?e:new Array(t-e.length+1).join(n)+e};void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:m.algo.MD5,sha1:m.algo.SHA1,sha224:m.algo.SHA224,sha256:m.algo.SHA256,sha384:m.algo.SHA384,sha512:m.algo.SHA512,ripemd160:m.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var r=this.getDigestInfoHex(e,t),i=n/4;if(r.length+22>i)throw"key is too short for SigAlg: keylen="+n+","+t;for(var o="0001",a="00"+r,s="",u=i-4-a.length,c=0;c=0)return!1;if(n.compareTo(r.ONE)<0||n.compareTo(o)>=0)return!1;var s=n.modInverse(o),u=e.multiply(s).mod(o),c=t.multiply(s).mod(o);return a.multiply(u).add(i.multiply(c)).getX().toBigInteger().mod(o).equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),(i=i.concat(n)).push(2),i.push(r.length),(i=i.concat(r)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:r.fromByteArrayUnsigned(n),s:r.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var n=this.ecparams.n;return{r:r.fromByteArrayUnsigned(e.slice(1,33)).mod(n),s:r.fromByteArrayUnsigned(e.slice(33,65)).mod(n),i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===l(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=c(e,0,["[0]",0],"06"),n=c(e,0,[1],"04");try{r=c(e,0,["[1]",0],"03")}catch(e){}}catch(e){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===l(e))throw new t("not ASN.1 hex string");var n,r,i;try{c(e,0,[1,0],"06"),n=c(e,0,[1,1],"06"),r=c(e,0,[2,0,1],"04");try{i=c(e,0,[2,0,"[1]",0],"03")}catch(e){}}catch(e){throw new t("malformed PKCS#8 plain ECC private key")}if(this.curveName=s(n),void 0===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===l(e))throw new t("not ASN.1 hex string");var n,r;try{c(e,0,[0,0],"06"),n=c(e,0,[0,1],"06"),r=c(e,0,[1],"03")}catch(e){throw new t("malformed PKCS#8 ECC public key")}if(this.curveName=s(n),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,n){if(!1===l(e))throw new t("not ASN.1 hex string");var r,i;try{r=c(e,0,[0,5,0,1],"06"),i=c(e,0,[0,5,1],"03")}catch(e){throw new t("malformed X.509 certificate ECC public key")}if(this.curveName=s(r),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},ce.crypto.ECDSA.parseSigHex=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new x(t.r,16),s:new x(t.s,16)}},ce.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=de,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var o=i[0],a=i[1];if("02"!=e.substr(o,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(a,2))throw new Error("2nd item not ASN.1 integer");return{r:r(e,o),s:r(e,a)}},ce.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw"unknown ECDSA sig r length error";if(r.length%32!=0)throw"unknown ECDSA sig s length error";return n+r},ce.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return ce.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},ce.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new x(e,16),r=new x(t,16);return ce.crypto.ECDSA.biRSSigToASN1Sig(n,r)},ce.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=ce.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t});return new n.DERSequence({array:[r,i]}).getEncodedHex()},ce.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":null},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new x(e,16)}this.getByName=function(n){var r=n;if(void 0!==t[r]&&(r=t[n]),void 0!==e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,o,a,s,u,c,l,f,d,p,h){e[r]={};var g=n(o),v=n(a),m=n(s),y=n(u),b=n(c),w=new se(g,v,m),E=w.decodePointHex("04"+l+f);e[r].name=r,e[r].keylen=i,e[r].curve=w,e[r].G=E,e[r].n=y,e[r].h=b,e[r].oid=p,e[r].info=h;for(var S=0;S=2*s)break}var f={};return f.keyhex=u.substr(0,2*i[e].keylen),f.ivhex=u.substr(2*i[e].keylen,2*i[e].ivlen),f},s=function(e,t,n,r){var o=m.enc.Base64.parse(e),a=m.enc.Hex.stringify(o);return(0,i[t].proc)(a,n,r)};return{version:"1.0.0",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return a(e,t,n)},decryptKeyB64:function(e,t,n,r){return s(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=o(e),r=(n.type,n.cipher),i=n.ivsalt,u=n.data,c=a(r,t,i).keyhex;return s(u,r,c,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,o){var s="";if(void 0!==r&&null!=r||(r="AES-256-CBC"),void 0===i[r])throw"KEYUTIL unsupported algorithm: "+r;void 0!==o&&null!=o||(o=function(e){var t=m.lib.WordArray.random(e);return m.enc.Hex.stringify(t)}(i[r].ivlen).toUpperCase());var u=function(e,t,n,r){return(0,i[t].eproc)(e,n,r)}(t,r,a(r,n,o).keyhex,o);return s="-----BEGIN "+e+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+r+","+o+"\r\n",s+="\r\n",(s+=u.replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+e+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(t){var n=de,r=n.getChildIdx,i=n.getV,o={},a=r(t,0);if(2!=a.length)throw"malformed format: SEQUENCE(0).items != 2: "+a.length;o.ciphertext=i(t,a[1]);var s=r(t,a[0]);if(2!=s.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+s.length;if("2a864886f70d01050d"!=i(t,s[0]))throw"this only supports pkcs5PBES2";var u=r(t,s[1]);if(2!=s.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+u.length;var c=r(t,u[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=i(t,c[0]))throw"this only supports TripleDES";o.encryptionSchemeAlg="TripleDES",o.encryptionSchemeIV=i(t,c[1]);var l=r(t,u[0]);if(2!=l.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+l.length;if("2a864886f70d01050c"!=i(t,l[0]))throw"this only supports pkcs5PBKDF2";var f=r(t,l[1]);if(f.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+f.length;o.pbkdf2Salt=i(t,f[0]);var d=i(t,f[1]);try{o.pbkdf2Iter=parseInt(d,16)}catch(e){throw"malformed format pbkdf2Iter: "+d}return o},getPBKDF2KeyHexFromParam:function(e,t){var n=m.enc.Hex.parse(e.pbkdf2Salt),r=e.pbkdf2Iter,i=m.PBKDF2(t,n,{keySize:6,iterations:r});return m.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Ae(e,"ENCRYPTED PRIVATE KEY"),r=this.parseHexOfEncryptedPKCS8(n),i=Be.getPBKDF2KeyHexFromParam(r,t),o={};o.ciphertext=m.enc.Hex.parse(r.ciphertext);var a=m.enc.Hex.parse(i),s=m.enc.Hex.parse(r.encryptionSchemeIV),u=m.TripleDES.decrypt(o,a,{iv:s});return m.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(e){var t=de,n=t.getChildIdx,r=t.getV,i={algparam:null};if("30"!=e.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=n(e,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=e.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var a=n(e,o[1]);if(2!=a.length)throw"malformed PKCS8 private key(code:004)";if("06"!=e.substr(a[0],2))throw"malformed PKCS8 private key(code:005)";if(i.algoid=r(e,a[0]),"06"==e.substr(a[1],2)&&(i.algparam=r(e,a[1])),"04"!=e.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return i.keyidx=t.getVidx(e,o[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Ae(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new ie;else if("2a8648ce380401"==n.algoid)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw"unsupported private key algorithm";t=new ce.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=de.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new ie;else if("2a8648ce380401"===n)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw"unsupported PKCS#8 public key hex";t=new ce.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=de,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw"malformed RSA key(code:001)";var o=n(e,0);if(2!=o.length)throw"malformed RSA key(code:002)";if("02"!=e.substr(o[0],2))throw"malformed RSA key(code:003)";if(i.n=r(e,o[0]),"02"!=e.substr(o[1],2))throw"malformed RSA key(code:004)";return i.e=r(e,o[1]),i},parsePublicPKCS8Hex:function(e){var t=de,n=t.getChildIdx,r=t.getV,i={algparam:null},o=n(e,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var a=o[0];if("30"!=e.substr(a,2))throw"malformed PKCS8 public key(code:001)";var s=n(e,a);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=e.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(i.algoid=r(e,s[0]),"06"==e.substr(s[1],2)?i.algparam=r(e,s[1]):"30"==e.substr(s[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,s[1],[0],"02"),i.algparam.q=t.getVbyList(e,s[1],[1],"02"),i.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return i.key=r(e,o[1]).substr(2),i}}}();Be.getKey=function(e,t,n){var r,i=(m=de).getChildIdx,o=(m.getV,m.getVbyList),a=ce.crypto,s=a.ECDSA,u=a.DSA,c=ie,l=Ae,f=Be;if(void 0!==c&&e instanceof c)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==u&&e instanceof u)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(A=new c).setPublic(e.n,e.e),A;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(A=new c).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),A;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(A=new c).setPrivate(e.n,e.e,e.d),A;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(A=new u).setPublic(e.p,e.q,e.g,e.y),A;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(A=new u).setPrivate(e.p,e.q,e.g,e.y,e.x),A;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(A=new c).setPublic(we(e.n),we(e.e)),A;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(A=new c).setPrivateEx(we(e.n),we(e.e),we(e.d),we(e.p),we(e.q),we(e.dp),we(e.dq),we(e.qi)),A;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(A=new c).setPrivate(we(e.n),we(e.e),we(e.d)),A;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var d=(P=new s({curve:e.crv})).ecparams.keylen/4,p="04"+("0000000000"+we(e.x)).slice(-d)+("0000000000"+we(e.y)).slice(-d);return P.setPublicKeyHex(p),P}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){d=(P=new s({curve:e.crv})).ecparams.keylen/4,p="04"+("0000000000"+we(e.x)).slice(-d)+("0000000000"+we(e.y)).slice(-d);var h=("0000000000"+we(e.d)).slice(-d);return P.setPublicKeyHex(p),P.setPrivateKeyHex(h),P}if("pkcs5prv"===n){var g,v=e,m=de;if(9===(g=i(v,0)).length)(A=new c).readPKCS5PrvKeyHex(v);else if(6===g.length)(A=new u).readPKCS5PrvKeyHex(v);else{if(!(g.length>2&&"04"===v.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(A=new s).readPKCS5PrvKeyHex(v)}return A}if("pkcs8prv"===n)return f.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===n)return f._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return We.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return We.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var y=Ae(e,"PUBLIC KEY");return f._getKeyFromPublicPKCS8Hex(y)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=l(e,"RSA PRIVATE KEY");return f.getKey(b,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var w=o(r=l(e,"DSA PRIVATE KEY"),0,[1],"02"),E=o(r,0,[2],"02"),S=o(r,0,[3],"02"),_=o(r,0,[4],"02"),k=o(r,0,[5],"02");return(A=new u).setPrivate(new x(w,16),new x(E,16),new x(S,16),new x(_,16),new x(k,16)),A}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED"))return b=l(e,"EC PRIVATE KEY"),f.getKey(b,null,"pkcs5prv");if(-1!=e.indexOf("-END PRIVATE KEY-"))return f.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var C=f.getDecryptedKeyHex(e,t),T=new ie;return T.readPKCS5PrvKeyHex(C),T}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var P,A=o(r=f.getDecryptedKeyHex(e,t),0,[1],"04"),F=o(r,0,[2,0],"06"),O=o(r,0,[3,0],"03").substr(2);if(void 0===ce.crypto.OID.oidhex2name[F])throw"undefined OID(hex) in KJUR.crypto.OID: "+F;return(P=new s({curve:ce.crypto.OID.oidhex2name[F]})).setPublicKeyHex(O),P.setPrivateKeyHex(A),P.isPublic=!1,P}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED"))return w=o(r=f.getDecryptedKeyHex(e,t),0,[1],"02"),E=o(r,0,[2],"02"),S=o(r,0,[3],"02"),_=o(r,0,[4],"02"),k=o(r,0,[5],"02"),(A=new u).setPrivate(new x(w,16),new x(E,16),new x(S,16),new x(_,16),new x(k,16)),A;if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return f.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},Be.generateKeypair=function(e,t){if("RSA"==e){var n=t;(a=new ie).generate(n,"10001"),a.isPrivate=!0,a.isPublic=!0;var r=new ie,i=a.n.toString(16),o=a.e.toString(16);return r.setPublic(i,o),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=r,s}if("EC"==e){var a,s,u=t,c=new ce.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),a.setPrivateKeyHex(c.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(r=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=r,s}throw"unknown algorithm: "+e},Be.getPEM=function(e,t,n,r,i,o){var a=ce,s=a.asn1,u=s.DERObjectIdentifier,c=s.DERInteger,l=s.ASN1Util.newObject,f=s.x509.SubjectPublicKeyInfo,d=a.crypto,p=d.DSA,h=d.ECDSA,g=ie;function v(e){return l({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function y(e){return l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function b(e){return l({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==g&&e instanceof g||void 0!==p&&e instanceof p||void 0!==h&&e instanceof h)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Pe(x=new f(e).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==g&&e instanceof g&&(void 0===n||null==n)&&1==e.isPrivate)return Pe(x=v(e).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==h&&e instanceof h&&(void 0===n||null==n)&&1==e.isPrivate){var w=new u({name:e.curveName}).getEncodedHex(),E=y(e).getEncodedHex(),S="";return(S+=Pe(w,"EC PARAMETERS"))+Pe(E,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==p&&e instanceof p&&(void 0===n||null==n)&&1==e.isPrivate)return Pe(x=b(e).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==g&&e instanceof g&&void 0!==n&&null!=n&&1==e.isPrivate){var x=v(e).getEncodedHex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",x,n,r,o)}if("PKCS5PRV"==t&&void 0!==h&&e instanceof h&&void 0!==n&&null!=n&&1==e.isPrivate)return x=y(e).getEncodedHex(),void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",x,n,r,o);if("PKCS5PRV"==t&&void 0!==p&&e instanceof p&&void 0!==n&&null!=n&&1==e.isPrivate)return x=b(e).getEncodedHex(),void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",x,n,r,o);var _=function(e,t){var n=k(e,t);return new l({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]}).getEncodedHex()},k=function(e,t){var n=m.lib.WordArray.random(8),r=m.lib.WordArray.random(8),i=m.PBKDF2(t,n,{keySize:6,iterations:100}),o=m.enc.Hex.parse(e),a=m.TripleDES.encrypt(o,i,{iv:r})+"",s={};return s.ciphertext=a,s.pbkdf2Salt=m.enc.Hex.stringify(n),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=m.enc.Hex.stringify(r),s};if("PKCS8PRV"==t&&null!=g&&e instanceof g&&1==e.isPrivate){var C=v(e).getEncodedHex();return x=l({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===n||null==n?Pe(x,"PRIVATE KEY"):Pe(E=_(x,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==h&&e instanceof h&&1==e.isPrivate)return C=new l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]}).getEncodedHex(),x=l({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===n||null==n?Pe(x,"PRIVATE KEY"):Pe(E=_(x,n),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==t&&void 0!==p&&e instanceof p&&1==e.isPrivate)return C=new c({bigint:e.x}).getEncodedHex(),x=l({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===n||null==n?Pe(x,"PRIVATE KEY"):Pe(E=_(x,n),"ENCRYPTED PRIVATE KEY");throw new Error("unsupported object nor format")},Be.getKeyFromCSRPEM=function(e){var t=Ae(e,"CERTIFICATE REQUEST");return Be.getKeyFromCSRHex(t)},Be.getKeyFromCSRHex=function(e){var t=Be.parseCSRHex(e);return Be.getKey(t.p8pubkeyhex,null,"pkcs8pub")},Be.parseCSRHex=function(e){var t=de,n=t.getChildIdx,r=t.getTLV,i={},o=e;if("30"!=o.substr(0,2))throw"malformed CSR(code:001)";var a=n(o,0);if(a.length<1)throw"malformed CSR(code:002)";if("30"!=o.substr(a[0],2))throw"malformed CSR(code:003)";var s=n(o,a[0]);if(s.length<3)throw"malformed CSR(code:004)";return i.p8pubkeyhex=r(o,s[2]),i},Be.getKeyID=function(e){var t=Be,n=de;"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=Ae(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),o=n.getV(r,i).substring(2);return ce.crypto.Util.hashHex(o,"sha1")},Be.getJWKFromKey=function(e){var t={};if(e instanceof ie&&e.isPrivate)return t.kty="RSA",t.n=be(e.n.toString(16)),t.e=be(e.e.toString(16)),t.d=be(e.d.toString(16)),t.p=be(e.p.toString(16)),t.q=be(e.q.toString(16)),t.dp=be(e.dmp1.toString(16)),t.dq=be(e.dmq1.toString(16)),t.qi=be(e.coeff.toString(16)),t;if(e instanceof ie&&e.isPublic)return t.kty="RSA",t.n=be(e.n.toString(16)),t.e=be(e.e.toString(16)),t;if(e instanceof ce.crypto.ECDSA&&e.isPrivate){if("P-256"!==(r=e.getShortNISTPCurveName())&&"P-384"!==r)throw"unsupported curve name for JWT: "+r;var n=e.getPublicKeyXYHex();return t.kty="EC",t.crv=r,t.x=be(n.x),t.y=be(n.y),t.d=be(e.prvKeyHex),t}if(e instanceof ce.crypto.ECDSA&&e.isPublic){var r;if("P-256"!==(r=e.getShortNISTPCurveName())&&"P-384"!==r)throw"unsupported curve name for JWT: "+r;return n=e.getPublicKeyXYHex(),t.kty="EC",t.crv=r,t.x=be(n.x),t.y=be(n.y),t}throw"not supported key object"},ie.getPosArrayOfChildrenFromHex=function(e){return de.getChildIdx(e,0)},ie.getHexValueArrayOfChildrenFromHex=function(e){var t,n=de.getV,r=n(e,(t=ie.getPosArrayOfChildrenFromHex(e))[0]),i=n(e,t[1]),o=n(e,t[2]),a=n(e,t[3]),s=n(e,t[4]),u=n(e,t[5]),c=n(e,t[6]),l=n(e,t[7]),f=n(e,t[8]);return(t=new Array).push(r,i,o,a,s,u,c,l,f),t},ie.prototype.readPrivateKeyFromPEMString=function(e){var t=Ae(e),n=ie.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},ie.prototype.readPKCS5PrvKeyHex=function(e){var t=ie.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},ie.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,o,a,s,u,c=de,l=c.getVbyListEx;if(!1===c.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=l(e,0,[2,0,1],"02"),n=l(e,0,[2,0,2],"02"),r=l(e,0,[2,0,3],"02"),i=l(e,0,[2,0,4],"02"),o=l(e,0,[2,0,5],"02"),a=l(e,0,[2,0,6],"02"),s=l(e,0,[2,0,7],"02"),u=l(e,0,[2,0,8],"02")}catch(e){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,o,a,s,u)},ie.prototype.readPKCS5PubKeyHex=function(e){var t=de,n=t.getV;if(!1===t.isASN1HEX(e))throw new Error("keyHex is not ASN.1 hex string");var r=t.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw new Error("wrong hex for PKCS#5 public key");var i=n(e,r[0]),o=n(e,r[1]);this.setPublic(i,o)},ie.prototype.readPKCS8PubKeyHex=function(e){var t=de;if(!1===t.isASN1HEX(e))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},ie.prototype.readCertPubKeyHex=function(e,t){var n,r;(n=new We).readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};var He=new RegExp("[^0-9a-f]","gi");function Ve(e,t){for(var n="",r=t/4-e.length,i=0;i>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function qe(e){for(var t in ce.crypto.Util.DIGESTINFOHEAD){var n=ce.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n)return[t,e.substring(r)]}return[]}function We(e){var t,n=de,r=n.getChildIdx,i=n.getV,o=n.getTLV,a=n.getVbyList,s=n.getVbyListEx,u=n.getTLVbyList,c=n.getTLVbyListEx,l=n.getIdxbyList,f=n.getIdxbyListEx,d=n.getVidx,p=n.oidname,h=n.hextooidstr,g=We,v=Ae;try{t=ce.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(e){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==u(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var e=c(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var n in t)if(e===t[n])return n;return p(s(e,0,[0],"06"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return u(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return g.hex2dn(this.getIssuerHex())},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},this.getSubjectHex=function(){return u(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return g.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var e=a(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getNotAfter=function(){var e=a(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getPublicKeyHex=function(){return n.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return l(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return l(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Be.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=u(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return a(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=u(this.hex,0,[0],"30"),i=new ce.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,o,s;if(void 0===e){if(s=this.hex,3!==this.version)return-1;t=l(s,0,[0,7,0],"30"),o=r(s,t)}else{s=Ae(e);var u=l(s,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(s,u))return void(this.aExtInfo=new Array);t=l(s,0,[0,3,0,1,0],"30"),o=r(s,t),this.hex=s}this.aExtInfo=new Array;for(var c=0;c1){var s=o(e,a[1]),u=this.getGeneralName(s);null!=u.uri&&(i.uri=u.uri)}if(a.length>2){var c=o(e,a[2]);"0101ff"==c&&(i.reqauth=!0),"010100"==c&&(i.reqauth=!1)}return i},this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r0&&(e.ext=this.getExtParamArray()),e.sighex=this.getSignatureValueHex(),e},this.getExtParamArray=function(e){null==e&&-1!=f(this.hex,0,[0,"[3]"])&&(e=c(this.hex,0,[0,"[3]",0],"30"));for(var t=[],n=r(e,0),i=0;i0&&(c=new Array(n),(new te).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=xe(u(_e("\0\0\0\0\0\0\0\0"+i+c))),f=[];for(r=0;r>8*s-a&255;for(h[0]&=~g,r=0;rthis.n.bitLength())return 0;var r=qe(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==r.length)return!1;var i=r[0];return r[1]==function(e){return ce.crypto.Util.hashString(e,i)}(e)},ie.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=ne(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=qe(this.doPublic(n).toString(16).replace(/^1f+00/,""));return 0!=r.length&&(r[0],r[1]==e)},ie.prototype.verifyPSS=function(e,t,n,r){var i=function(e){return ce.crypto.Util.hashHex(e,n)}(_e(e));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(i,t,n,r)},ie.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,o=new x(t,16),a=function(e){return ce.crypto.Util.hashHex(e,n)},s=xe(e),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===r||void 0===r)r=u;else if(-2===r)r=l-u-2;else if(r<-2)throw new Error("invalid salt length");if(l>8*l-c&255;if(0!=(d.charCodeAt(0)&h))throw new Error("bits beyond keysize not zero");var g=ze(p,d.length,a),v=[];for(i=0;i0&&-1==(":"+r.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Be.getKey(t)),!("RS"!=p&&"PS"!=p||t instanceof i))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==p&&!(t instanceof c))throw"key shall be a ECDSA obj for ES* algs";var y=null;if(void 0===a.jwsalg2sigalg[v.alg])throw"unsupported alg name: "+m;if("none"==(y=a.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==y.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var b=new l({alg:y,pass:t});return b.updateString(h),g==b.doFinal()}if(-1!=y.indexOf("withECDSA")){var w,E=null;try{E=c.concatSigToASN1Sig(g)}catch(e){return!1}return(w=new f({alg:y})).init(t),w.updateString(h),w.verify(E)}return(w=new f({alg:y})).init(t),w.updateString(h),w.verify(g)},ce.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),o={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],n=i[1],3==i.length&&(r=i[2]),o.headerObj=ce.jws.JWS.readSafeJSONString(fe(t)),o.payloadObj=ce.jws.JWS.readSafeJSONString(fe(n)),o.headerPP=JSON.stringify(o.headerObj,null," "),null==o.payloadObj?o.payloadPP=fe(n):o.payloadPP=JSON.stringify(o.payloadObj,null," "),void 0!==r&&(o.sigHex=we(r)),o},ce.jws.JWS.verifyJWT=function(e,t,r){var i=ce.jws,o=i.JWS,a=o.readSafeJSONString,s=o.inArray,u=o.includedArray,c=e.split("."),l=c[0],f=c[1],d=(we(c[2]),a(fe(l))),p=a(fe(f));if(void 0===d.alg)return!1;if(void 0===r.alg)throw"acceptField.alg shall be specified";if(!s(d.alg,r.alg))return!1;if(void 0!==p.iss&&"object"===n(r.iss)&&!s(p.iss,r.iss))return!1;if(void 0!==p.sub&&"object"===n(r.sub)&&!s(p.sub,r.sub))return!1;if(void 0!==p.aud&&"object"===n(r.aud))if("string"==typeof p.aud){if(!s(p.aud,r.aud))return!1}else if("object"==n(p.aud)&&!u(p.aud,r.aud))return!1;var h=i.IntDate.getNow();return void 0!==r.verifyAt&&"number"==typeof r.verifyAt&&(h=r.verifyAt),void 0!==r.gracePeriod&&"number"==typeof r.gracePeriod||(r.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+r.gracePeriodt.length&&(n=t.length);for(var r=0;r=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(29))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;su?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,i=e.X509,o=e.crypto,a=e.hextob64u,s=e.b64tohex,u=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){r.Log.debug("JoseUtil.parseJwt");try{var i=t.JWS.parse(n);return{header:i.headerObj,payload:i.payloadObj}}catch(e){r.Log.error(e)}},e.validateJwt=function(t,o,a,u,c,l,f){r.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=n.getKey(o);else{if(!o.x5c||!o.x5c.length)return r.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=s(o.x5c[0]);o=i.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return r.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return r.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=n.getKey(o)}return e._validateJwt(t,o,a,u,c,l,f)}catch(e){return r.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,i,o,a,s){o||(o=0),a||(a=parseInt(Date.now()/1e3));var u=e.parseJwt(t).payload;if(!u.iss)return r.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(u.iss!==n)return r.Log.error("JoseUtil._validateJwt: Invalid issuer in token",u.iss),Promise.reject(new Error("Invalid issuer in token: "+u.iss));if(!u.aud)return r.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(u.aud===i||Array.isArray(u.aud)&&u.aud.indexOf(i)>=0))return r.Log.error("JoseUtil._validateJwt: Invalid audience in token",u.aud),Promise.reject(new Error("Invalid audience in token: "+u.aud));if(u.azp&&u.azp!==i)return r.Log.error("JoseUtil._validateJwt: Invalid azp in token",u.azp),Promise.reject(new Error("Invalid azp in token: "+u.azp));if(!s){var c=a+o,l=a-o;if(!u.iat)return r.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(c1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.UrlUtility.parseUrlFragment(t,n);this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.code=r.code,this.state=r.state,this.id_token=r.id_token,this.session_state=r.session_state,this.access_token=r.access_token,this.token_type=r.token_type,this.scope=r.scope,this.profile=void 0,this.expires_in=r.expires_in}return r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var r=n(0),i=n(3),o=n(9);t.SignoutRequest=function e(t){var n=t.url,a=t.id_token_hint,s=t.post_logout_redirect_uri,u=t.data,c=t.extraQueryParams,l=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var f in a&&(n=i.UrlUtility.addQueryParam(n,"id_token_hint",a)),s&&(n=i.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),u&&(this.state=new o.State({data:u,request_type:l}),n=i.UrlUtility.addQueryParam(n,"state",this.state.id))),c)n=i.UrlUtility.addQueryParam(n,f,c[f]);this.url=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var r=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=r.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.TokenRevocationClient,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:p.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.JoseUtil;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),n instanceof a.UserManagerSettings||(n=new a.UserManagerSettings(n));var v=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return v._events=new u.UserManagerEvents(n),v._silentRenewService=new r(v),v.settings.automaticSilentRenew&&(i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),v.startSilentRenew()),v.settings.monitorSession&&(i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),v._sessionMonitor=new o(v)),v._tokenRevocationClient=new s(v._settings),v._tokenClient=new f(v._settings),v._joseUtil=g,v}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then((function(t){return t?(i.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(i.Log.info("UserManager.getUser: user not found in storage"),null)}))},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then((function(){i.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()}))},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then((function(){i.Log.info("UserManager.signinRedirect: successful")}))},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then((function(e){return e.profile&&e.profile.sub?i.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinRedirectCallback: no sub"),e}))},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopup: no sub")),e}))):(i.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopupCallback: no sub")),e})).catch((function(e){i.Log.error(e.message)}))},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},t),this._loadUser().then((function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.request_type="si:s",t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(i.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))}))},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then((function(t){return t?t.access_token?e._loadUser().then((function(n){if(n){var r=Promise.resolve();return t.id_token&&(r=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),r.then((function(){return i.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token||n.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then((function(){return e._events.load(n),n}))}))}return null})):(i.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(i.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then((function(r){return n.settings.getEpochTime().then((function(o){return n._joseUtil.validateJwtAttributes(t,r,n._settings.client_id,n._settings.clockSkew,o).then((function(t){return t?t.sub!==e.sub?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))}))},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilent: no sub")),e}))):(i.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilentCallback: no sub")),e}))},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then((function(n){var r=n.state;return n.response,"si:r"===r.request_type?t.signinRedirectCallback(e):"si:p"===r.request_type?t.signinPopupCallback(e):"si:s"===r.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))}))},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then((function(r){var i=r.state,o=r.response;return i?"so:r"===i.request_type?n.signoutRedirectCallback(e):"so:p"===i.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):o}))},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(t){return e.processSigninResponse(t.url).then((function(e){if(i.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};i.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t}))}))):(i.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,r).then((function(t){return n._signinEnd(t.url,e)}))},t.prototype._signinStart=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(r).then((function(t){return i.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then((function(e){return i.Log.debug("UserManager._signinStart: got signin request"),r.url=e.url,r.id=e.state.id,t.navigate(r)})).catch((function(e){throw t.close&&(i.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e}))}))},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then((function(e){i.Log.debug("UserManager._signinEnd: got signin response");var r=new s.User(e);if(n.current_sub){if(n.current_sub!==r.profile.sub)return i.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",r.profile.sub),Promise.reject(new Error("login_required"));i.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(r).then((function(){return i.Log.debug("UserManager._signinEnd: user stored"),t._events.load(r),r}))}))},t.prototype._signinCallback=function(e,t){i.Log.debug("UserManager._signinCallback");var n="query"===this._settings.response_mode||!this._settings.response_mode&&f.SigninRequest.isCode(this._settings.response_type)?"?":"#";return t.callback(e,void 0,n)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then((function(){i.Log.info("UserManager.signoutRedirect: successful")}))},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then((function(e){return i.Log.info("UserManager.signoutRedirectCallback: successful"),e}))},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){i.Log.info("UserManager.signoutPopup: successful")}))},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then((function(){i.Log.info("UserManager.signoutPopupCallback: successful")}))},t.prototype._signout=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,r).then((function(e){return n._signoutEnd(e.url)}))},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return arguments[1].prepare(n).then((function(r){return i.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then((function(o){return i.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(o):Promise.resolve()).then((function(){var a=e.id_token_hint||o&&o.id_token;return a&&(i.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=a),t.removeUser().then((function(){return i.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then((function(e){return i.Log.debug("UserManager._signoutStart: got signout request"),n.url=e.url,e.state&&(n.id=e.state.id),r.navigate(n)}))}))}))})).catch((function(e){throw r.close&&(i.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),r.close()),e}))}))},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then((function(e){return i.Log.debug("UserManager._signoutEnd: got signout response"),e}))},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then((function(t){return e._revokeInternal(t,!0).then((function(n){if(n)return i.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then((function(){i.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)}))}))})).then((function(){i.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var r=e.access_token,o=e.refresh_token;return this._revokeAccessTokenInternal(r,t).then((function(e){return n._revokeRefreshTokenInternal(o,t).then((function(t){return e||t||i.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t}))}))}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then((function(){return!0}))},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(e){return e?(i.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(i.Log.debug("UserManager._loadUser: no user storageString"),null)}))},t.prototype.storeUser=function(e){if(e){i.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return i.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},r(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(o.OidcClient)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=n.popup_redirect_uri,i=n.popup_post_logout_redirect_uri,f=n.popupWindowFeatures,d=n.popupWindowTarget,p=n.silent_redirect_uri,h=n.silentRequestTimeout,g=n.automaticSilentRenew,v=void 0!==g&&g,m=n.validateSubOnSilentRenew,y=void 0!==m&&m,b=n.includeIdTokenInSilentRenew,w=void 0===b||b,E=n.monitorSession,S=void 0===E||E,x=n.monitorAnonymousSession,_=void 0!==x&&x,k=n.checkSessionInterval,C=void 0===k?2e3:k,T=n.stopCheckSessionOnError,P=void 0===T||T,A=n.query_status_response_type,F=n.revokeAccessTokenOnSignout,O=void 0!==F&&F,R=n.accessTokenExpiringNotificationTime,N=void 0===R?60:R,D=n.redirectNavigator,I=void 0===D?new o.RedirectNavigator:D,M=n.popupNavigator,L=void 0===M?new a.PopupNavigator:M,j=n.iframeNavigator,U=void 0===j?new s.IFrameNavigator:j,Z=n.userStore,B=void 0===Z?new u.WebStorageStateStore({store:c.Global.sessionStorage}):Z;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return H._popup_redirect_uri=r,H._popup_post_logout_redirect_uri=i,H._popupWindowFeatures=f,H._popupWindowTarget=d,H._silent_redirect_uri=p,H._silentRequestTimeout=h,H._automaticSilentRenew=v,H._validateSubOnSilentRenew=y,H._includeIdTokenInSilentRenew=w,H._accessTokenExpiringNotificationTime=N,H._monitorSession=S,H._monitorAnonymousSession=_,H._checkSessionInterval=C,H._stopCheckSessionOnError=P,A?H._query_status_response_type=A:arguments[0]&&arguments[0].response_type?H._query_status_response_type=l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":H._query_status_response_type="id_token",H._revokeAccessTokenOnSignout=O,H._redirectNavigator=I,H._popupNavigator=L,H._iframeNavigator=U,H._userStore=B,H}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(i.OidcClientSettings)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];r.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){r.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){r.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){r.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){r.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){r.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(i.AccessTokenEvents)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return a._timer=r,a._nowFunc=i||function(){return Date.now()/1e3},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)i.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),i.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e1)for(var n=1;n>",l=u||r;if(null!=n[r]){var f=i+"."+r;(0,o.default)(a[f],"The "+s+" `"+l+"` of `"+c+"` is deprecated. "+t+"."),a[f]=!0}for(var d=arguments.length,p=Array(d>5?d-5:0),h=5;h