PageSourceSearch

https://secure-static.schutz.com.br/_next/static/chunks/nodeModules-46a57d0a92a0d71b.js

js schutz.com.br collected 2026-09-24 11:12:21 UTC 976,403 bytes, 567 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2422],{26077:function(K,G,J){"use strict";J.d(G,{Z:function(){return createCache}});var et=function(){function StyleSheet(K){var G=this;this._insertTag=function(K){var J;J=0===G.tags.length?G.insertionPoint?G.insertionPoint.nextSibling:G.prepend?G.container.firstChild:G.before:G.tags[G.tags.length-1].nextSibling,G.container.insertBefore(K,J),G.tags.push(K)},this.isSpeedy=void 0===K.speedy||K.speedy,this.tags=[],this.ctr=0,this.nonce=K.nonce,this.key=K.key,this.container=K.container,this.prepend=K.prepend,this.insertionPoint=K.insertionPoint,this.before=null}var K=StyleSheet.prototype;return K.hydrate=function(K){K.forEach(this._insertTag)},K.insert=function(K){if(this.ctr%(this.isSpeedy?65e3:1)==0){var G;this._insertTag(((G=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&G.setAttribute("nonce",this.nonce),G.appendChild(document.createTextNode("")),G.setAttribute("data-s",""),G))}var J=this.tags[this.tags.length-1];if(this.isSpeedy){var et=function(K){if(K.sheet)return K.sheet;for(var G=0;G<document.styleSheets.length;G++)if(document.styleSheets[G].ownerNode===K)return document.styleSheets[G]}(J);try{et.insertRule(K,et.cssRules.length)}catch(K){}}else J.appendChild(document.createTextNode(K));this.ctr++}
1,K.flush=function(){this.tags.forEach(function(K){return K.parentNode&&K.parentNode.removeChild(K)}),this.tags=[],this.ctr=0},StyleSheet}(),er=J(46411),en=J(26686),ei=J(27563),eo=J(20211),es=J(88160),el=J(92190),identifierWithPointTracking=function(K,G,J){for(var et=0,en=0;et=en,en=(0,er.fj)(),38===et&&12===en&&(G[J]=1),!(0,er.r)(en);)(0,er.lp)();return(0,er.tP)(K,er.FK)},toRules=function(K,G){var J=-1,et=44;do switch((0,er.r)(et)){case 0:38===et&&12===(0,er.fj)()&&(G[J]=1),K[J]+=identifierWithPointTracking(er.FK-1,G,J);break;case 2:K[J]+=(0,er.iF)(et);break;case 4:if(44===et){K[++J]=58===(0,er.fj)()?"&\f":"",G[J]=K[J].length;break}default:K[J]+=(0,en.Dp)(et)}while(et=(0,er.lp)());return K},ec=new WeakMap,compat=function(K){if("rule"===K.type&&K.parent&&!(K.length<1)){for(var G=K.value,J=K.parent,et=K.column===J.column&&K.line===J.line;"rule"!==J.type;)if(!(J=J.parent))return;if((1!==K.props.length||58===G.charCodeAt(0)||ec.get(J))&&!et){ec.set(K,!0);for(var en=[],ei=(0,er.cE)(toRules((0,er.un)(G),en)),eo=J.props,es=0,el=0;es<ei.length;es++)for(var eu=0;eu<eo.length;eu++,el++)K.props[el]=en[es]?ei[es].replace(/&\f/g,eo[eu]):eo[eu]+" "+ei[es]}}},removeLabel=function(K){if("decl"===K.type){var G=K.value;108===G.charCodeAt(0)&&98===G.charCodeAt(2)&&(K.return="",K.value="")}},eu=[function(K,G,J,et){if(K.length>-1&&!K.return)switch(K.type){case ei.h5:K.return=function prefix(K,G){switch((0,en.vp)(K,G)){case 5103:return ei.G$+"print-"+K+K;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ei.G$+K+K;case 5349:case 4246:case 4810:case 6968:case 2756:return ei.G$+K+ei.uj+K+ei.MS+K+K;case 6828:case 4268:return ei.G$+K+ei.MS+K+K;case 6165:return ei.G$+K+ei.MS+"flex-"+K+K;case 5187:return ei.G$+K+(0,en.gx)(K,/(\w+).+(:[^]+)/,ei.G$+"box-$1$2"+ei.MS+"flex-$1$2")+K;case 5443:return ei.G$+K+ei.MS+"flex-item-"+(0,en.gx)(K,/flex-|-self/,"")+K;case 4675:return ei.G$+K+ei.MS+"flex-line-pack"+(0,en.gx)(K,/align-content|flex-|-self/,"")+K;case 5548:return ei.G$+K+ei.MS+(0,en.gx)(K,"shrink","negative")+K;case 5292:return ei.G$+K+ei.MS+(0,en.gx)(K,"basis","preferred-size")+K;case 6060:return ei.G$+"box-"+(0,en.gx)(K,"-grow","")+ei.G$+K+ei.MS+(0,en.gx)(K,"grow","positive")+K;case 4554:return ei.G$+(0,en.gx)(K,/([^-])(transform)/g,"$1"+ei.G$+"$2")+K;case 6187:return(0,en.gx)((0,en.gx)((0,en.gx)(K,/(zoom-|grab)/,ei.G$+"$1"),/(image-set)/,ei.G$+"$1"),K,"")+K;case 5495:case 3959:return(0,en.gx)(K,/(image-set\([^]*)/,ei.G$+"$1$`$1");case 4968:return(0,en.gx)((0,en.gx)(K,/(.+:)(flex-)?(.*)/,ei.G$+"box-pack:$3"+ei.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ei.G$+K+K;case 4095:case 3583:case 4068:case 2532:return(0,en.gx)(K,/(.+)-inline(.+)/,ei.G$+"$1$2")+K;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,en.to)(K)-1-G>6)switch((0,en.uO)(K,G+1)){case 109:if(45!==(0,en.uO)(K,G+4))break;case 102:return(0,en.gx)(K,/(.+:)(.+)-([^]+)/,"$1"+ei.G$+"$2-$3$1"+ei.uj+(108==(0,en.uO)(K,G+3)?"$3":"$2-$3"))+K;case 115:return~(0,en.Cw)(K,"stretch")?prefix((0,en.gx)(K,"stretch","fill-available"),G)+K:K}break;case 4949:if(115!==(0,en.uO)(K,G+1))break;case 6444:switch((0,en.uO)(K,(0,en.to)(K)-3-(~(0,en.Cw)(K,"!important")&&10))){case 107:return(0,en.gx)(K,":",":"+ei.G$)+K;case 101:return(0,en.gx)(K,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ei.G$+(45===(0,en.uO)(K,14)?"inline-":"")+"box$3$1"+ei.G$+"$2$3$1"+ei.MS+"$2box$3")+K}break;case 5936:switch((0,en.uO)(K,G+11)){case 114:return ei.G$+K+ei.MS+(0,en.gx)(K,/[svh]\w+-[tblr]{2}/,"tb")+K;case 108:return ei.G$+K+ei.MS+(0,en.gx)(K,/[svh]\w+-[tblr]{2}/,"tb-rl")+K;case 45:return ei.G$+K+ei.MS+(0,en.gx)(K,/[svh]\w+-[tblr]{2}/,"lr")+K}return ei.G$+K+ei.MS+K+K}return K}(K.value,K.length);break;case ei.lK:return(0,eo.q)([(0,er.JG)(K,{value:(0,en.gx)(K.value,"@","@"+ei.G$)})],et);case ei.Fr:if(K.length)return(0,en.$e)(K.props,function(G){switch((0,en.EQ)(G,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,eo.q)([(0,er.JG)(K,{props:[(0,en.gx)(G,/:(read-\w+)/,":"+ei.uj+"$1")]})],et);case"::placeholder":return(0,eo.q)([(0,er.JG)(K,{props:[(0,en.gx)(G,/:(plac\w+)/,":"+ei.G$+"input-$1")]}),(0,er.JG)(K,{props:[(0,en.gx)(G,/:(plac\w+)/,":"+ei.uj+"$1")]}),(0,er.JG)(K,{props:[(0,en.gx)(G,/:(plac\w+)/,ei.MS+"input-$1")]})],et)}return""})}}],createCache=function(K){var G=K.key;if("css"===G){var J=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(J,function(K){-1!==K.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(K),K.setAttribute("data-s",""))})}var er=K.stylisPlugins||eu,en={},ei=[];ec=K.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+G+' "]'),function(K){for(var G=K.getAttribute("data-emotion").split(" "),J=1;J<G.length;J++)en[G[J]]=!0;ei.push(K)});var ec,ed,eh=[eo.P,(0,es.cD)(function(K){ed.insert(K)})],ep=(0,es.qR)([compat,removeLabel].concat(er,eh)),ef={key:G,sheet:new et({key:G,container:ec,nonce:K.nonce,speedy:K.speedy,prepend:K.prepend,insertionPoint:K.insertionPoint}),nonce:K.nonce,inserted:en,registered:{},insert:function(K,G,J,et){var er;ed=J,er=K?K+"{"+G.styles+"}":G.styles,(0,eo.q)((0,el.MY)(er),ep),et&&(ef.inserted[G.name]=!0)}};return ef.sheet.hydrate(ei),ef}},87685:function(K,G,J){"use strict";J.d(G,{C:function(){return ec},E:function(){return ep},T:function(){return eu},c:function(){return createEmotionProps},h:function(){return ed},i:function(){return es},w:function(){return withEmotionCache}});var et=J(67294),er=J(51756),en=J(70444),ei=J(15953),eo=J(27278),es=!1,el=et.createContext("undefined"!=typeof HTMLElement?(0,er.Z)({key:"css"}):null),ec=el.Provider,withEmotionCache=function(K){return(0,et.forwardRef)(function(G,J){return K(G,(0,et.useContext)(el),J)})},eu=et.createContext({}),ed={}.hasOwnProperty,eh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(K,G){var J={};for(var et in G)ed.call(G,et)&&(J[et]=G[et]);return J[eh]=K,J}
1,Insertion=function(K){var G=K.cache,J=K.serialized,et=K.isStringTag;return(0,en.hC)(G,J,et),(0,eo.L)(function(){return(0,en.My)(G,J,et)}),null},ep=withEmotionCache(function(K,G,J){var er=K.css;"string"==typeof er&&void 0!==G.registered[er]&&(er=G.registered[er]);var eo=K[eh],el=[er],ec="";"string"==typeof K.className?ec=(0,en.fp)(G.registered,el,K.className):null!=K.className&&(ec=K.className+" ");var ep=(0,ei.O)(el,void 0,et.useContext(eu));ec+=G.key+"-"+ep.name;var ef={};for(var eg in K)ed.call(K,eg)&&"css"!==eg&&eg!==eh&&!es&&(ef[eg]=K[eg]);return ef.className=ec,J&&(ef.ref=J),et.createElement(et.Fragment,null,et.createElement(Insertion,{cache:G,serialized:ep,isStringTag:"string"==typeof eo}),et.createElement(eo,ef))})},70917:function(K,G,J){"use strict";J.d(G,{F4:function(){return keyframes},iv:function(){return css},ms:function(){return ec},tZ:function(){return jsx}});var et,er,en=J(87685),ei=J(67294),eo=J(70444),es=J(27278),el=J(15953);J(51756),J(8679);var jsx=function(K,G){var J=arguments;if(null==G||!en.h.call(G,"css"))return ei.createElement.apply(void 0,J);var et=J.length,er=Array(et);er[0]=en.E,er[1]=(0,en.c)(K,G);for(var eo=2;eo<et;eo++)er[eo]=J[eo];return ei.createElement.apply(null,er)};function css(){for(var K=arguments.length,G=Array(K),J=0;J<K;J++)G[J]=arguments[J];return(0,el.O)(G)}function keyframes(){var K=css.apply(void 0,arguments),G="animation-"+K.name;return{name:G,styles:"@keyframes "+G+"{"+K.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}et=jsx||(jsx={}),er||(er=et.JSX||(et.JSX={}));var classnames=function classnames(K){for(var G=K.length,J=0,et="";J<G;J++){var er=K[J];if(null!=er){var en=void 0;switch(typeof er){case"boolean":break;case"object":if(Array.isArray(er))en=classnames(er);else for(var ei in en="",er)er[ei]&&ei&&(en&&(en+=" "),en+=ei);break;default:en=er}en&&(et&&(et+=" "),et+=en)}}return et},Insertion=function(K){var G=K.cache,J=K.serializedArr;return(0,es.L)(function(){for(var K=0;K<J.length;K++)(0,eo.My)(G,J[K],!1)}),null},ec=(0,en.w)(function(K,G){var J=!1,et=[],css=function(){if(J&&en.i)throw Error("css can only be used during render");for(var K=arguments.length,er=Array(K),ei=0;ei<K;ei++)er[ei]=arguments[ei];var es=(0,el.O)(er,G.registered);return et.push(es),(0,eo.hC)(G,es,!1),G.key+"-"+es.name},er={css:css,cx:function(){if(J&&en.i)throw Error("cx can only be used during render");for(var K,et,er,ei,es=arguments.length,el=Array(es),ec=0;ec<es;ec++)el[ec]=arguments[ec];return K=G.registered,et=classnames(el),er=[],ei=(0,eo.fp)(K,er,et),er.length<2?et:ei+css(er)},theme:ei.useContext(en.T)},es=K.children(er);return J=!0,ei.createElement(ei.Fragment,null,ei.createElement(Insertion,{cache:G,serializedArr:et}),es)})},51756:function(K,G,J){"use strict";J.d(G,{Z:function(){return createCache}});var et=function(){function StyleSheet(K){var G=this;this._insertTag=function(K){var J;J=0===G.tags.length?G.insertionPoint?G.insertionPoint.nextSibling:G.prepend?G.container.firstChild:G.before:G.tags[G.tags.length-1].nextSibling,G.container.insertBefore(K,J),G.tags.push(K)},this.isSpeedy=void 0===K.speedy||K.speedy,this.tags=[],this.ctr=0,this.nonce=K.nonce,this.key=K.key,this.container=K.container,this.prepend=K.prepend,this.insertionPoint=K.insertionPoint,this.before=null}var K=StyleSheet.prototype;return K.hydrate=function(K){K.forEach(this._insertTag)},K.insert=function(K){if(this.ctr%(this.isSpeedy?65e3:1)==0){var G;this._insertTag(((G=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&G.setAttribute("nonce",this.nonce),G.appendChild(document.createTextNode("")),G.setAttribute("data-s",""),G))}var J=this.tags[this.tags.length-1];if(this.isSpeedy){var et=function(K){if(K.sheet)return K.sheet;for(var G=0;G<document.styleSheets.length;G++)if(document.styleSheets[G].ownerNode===K)return document.styleSheets[G]}(J);try{et.insertRule(K,et.cssRules.length)}catch(K){}}else J.appendChild(document.createTextNode(K));this.ctr++}
1,K.flush=function(){this.tags.forEach(function(K){var G;return null==(G=K.parentNode)?void 0:G.removeChild(K)}),this.tags=[],this.ctr=0},StyleSheet}(),er=J(46411),en=J(26686),ei=J(27563),eo=J(20211),es=J(88160),el=J(92190),identifierWithPointTracking=function(K,G,J){for(var et=0,en=0;et=en,en=(0,er.fj)(),38===et&&12===en&&(G[J]=1),!(0,er.r)(en);)(0,er.lp)();return(0,er.tP)(K,er.FK)},toRules=function(K,G){var J=-1,et=44;do switch((0,er.r)(et)){case 0:38===et&&12===(0,er.fj)()&&(G[J]=1),K[J]+=identifierWithPointTracking(er.FK-1,G,J);break;case 2:K[J]+=(0,er.iF)(et);break;case 4:if(44===et){K[++J]=58===(0,er.fj)()?"&\f":"",G[J]=K[J].length;break}default:K[J]+=(0,en.Dp)(et)}while(et=(0,er.lp)());return K},ec=new WeakMap,compat=function(K){if("rule"===K.type&&K.parent&&!(K.length<1)){for(var G=K.value,J=K.parent,et=K.column===J.column&&K.line===J.line;"rule"!==J.type;)if(!(J=J.parent))return;if((1!==K.props.length||58===G.charCodeAt(0)||ec.get(J))&&!et){ec.set(K,!0);for(var en=[],ei=(0,er.cE)(toRules((0,er.un)(G),en)),eo=J.props,es=0,el=0;es<ei.length;es++)for(var eu=0;eu<eo.length;eu++,el++)K.props[el]=en[es]?ei[es].replace(/&\f/g,eo[eu]):eo[eu]+" "+ei[es]}}},removeLabel=function(K){if("decl"===K.type){var G=K.value;108===G.charCodeAt(0)&&98===G.charCodeAt(2)&&(K.return="",K.value="")}},eu=[function(K,G,J,et){if(K.length>-1&&!K.return)switch(K.type){case ei.h5:K.return=function prefix(K,G){switch((0,en.vp)(K,G)){case 5103:return ei.G$+"print-"+K+K;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ei.G$+K+K;case 5349:case 4246:case 4810:case 6968:case 2756:return ei.G$+K+ei.uj+K+ei.MS+K+K;case 6828:case 4268:return ei.G$+K+ei.MS+K+K;case 6165:return ei.G$+K+ei.MS+"flex-"+K+K;case 5187:return ei.G$+K+(0,en.gx)(K,/(\w+).+(:[^]+)/,ei.G$+"box-$1$2"+ei.MS+"flex-$1$2")+K;case 5443:return ei.G$+K+ei.MS+"flex-item-"+(0,en.gx)(K,/flex-|-self/,"")+K;case 4675:return ei.G$+K+ei.MS+"flex-line-pack"+(0,en.gx)(K,/align-content|flex-|-self/,"")+K;case 5548:return ei.G$+K+ei.MS+(0,en.gx)(K,"shrink","negative")+K;case 5292:return ei.G$+K+ei.MS+(0,en.gx)(K,"basis","preferred-size")+K;case 6060:return ei.G$+"box-"+(0,en.gx)(K,"-grow","")+ei.G$+K+ei.MS+(0,en.gx)(K,"grow","positive")+K;case 4554:return ei.G$+(0,en.gx)(K,/([^-])(transform)/g,"$1"+ei.G$+"$2")+K;case 6187:return(0,en.gx)((0,en.gx)((0,en.gx)(K,/(zoom-|grab)/,ei.G$+"$1"),/(image-set)/,ei.G$+"$1"),K,"")+K;case 5495:case 3959:return(0,en.gx)(K,/(image-set\([^]*)/,ei.G$+"$1$`$1");case 4968:return(0,en.gx)((0,en.gx)(K,/(.+:)(flex-)?(.*)/,ei.G$+"box-pack:$3"+ei.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ei.G$+K+K;case 4095:case 3583:case 4068:case 2532:return(0,en.gx)(K,/(.+)-inline(.+)/,ei.G$+"$1$2")+K;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,en.to)(K)-1-G>6)switch((0,en.uO)(K,G+1)){case 109:if(45!==(0,en.uO)(K,G+4))break;case 102:return(0,en.gx)(K,/(.+:)(.+)-([^]+)/,"$1"+ei.G$+"$2-$3$1"+ei.uj+(108==(0,en.uO)(K,G+3)?"$3":"$2-$3"))+K;case 115:return~(0,en.Cw)(K,"stretch")?prefix((0,en.gx)(K,"stretch","fill-available"),G)+K:K}break;case 4949:if(115!==(0,en.uO)(K,G+1))break;case 6444:switch((0,en.uO)(K,(0,en.to)(K)-3-(~(0,en.Cw)(K,"!important")&&10))){case 107:return(0,en.gx)(K,":",":"+ei.G$)+K;case 101:return(0,en.gx)(K,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ei.G$+(45===(0,en.uO)(K,14)?"inline-":"")+"box$3$1"+ei.G$+"$2$3$1"+ei.MS+"$2box$3")+K}break;case 5936:switch((0,en.uO)(K,G+11)){case 114:return ei.G$+K+ei.MS+(0,en.gx)(K,/[svh]\w+-[tblr]{2}/,"tb")+K;case 108:return ei.G$+K+ei.MS+(0,en.gx)(K,/[svh]\w+-[tblr]{2}/,"tb-rl")+K;case 45:return ei.G$+K+ei.MS+(0,en.gx)(K,/[svh]\w+-[tblr]{2}/,"lr")+K}return ei.G$+K+ei.MS+K+K}return K}(K.value,K.length);break;case ei.lK:return(0,eo.q)([(0,er.JG)(K,{value:(0,en.gx)(K.value,"@","@"+ei.G$)})],et);case ei.Fr:if(K.length)return(0,en.$e)(K.props,function(G){switch((0,en.EQ)(G,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,eo.q)([(0,er.JG)(K,{props:[(0,en.gx)(G,/:(read-\w+)/,":"+ei.uj+"$1")]})],et);case"::placeholder":return(0,eo.q)([(0,er.JG)(K,{props:[(0,en.gx)(G,/:(plac\w+)/,":"+ei.G$+"input-$1")]}),(0,er.JG)(K,{props:[(0,en.gx)(G,/:(plac\w+)/,":"+ei.uj+"$1")]}),(0,er.JG)(K,{props:[(0,en.gx)(G,/:(plac\w+)/,ei.MS+"input-$1")]})],et)}return""})}}],createCache=function(K){var G=K.key;if("css"===G){var J=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(J,function(K){-1!==K.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(K),K.setAttribute("data-s",""))})}var er=K.stylisPlugins||eu,en={},ei=[];ec=K.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+G+' "]'),function(K){for(var G=K.getAttribute("data-emotion").split(" "),J=1;J<G.length;J++)en[G[J]]=!0;ei.push(K)});var ec,ed,eh=[eo.P,(0,es.cD)(function(K){ed.insert(K)})],ep=(0,es.qR)([compat,removeLabel].concat(er,eh)),ef={key:G,sheet:new et({key:G,container:ec,nonce:K.nonce,speedy:K.speedy,prepend:K.prepend,insertionPoint:K.insertionPoint}),nonce:K.nonce,inserted:en,registered:{},insert:function(K,G,J,et){var er;ed=J,er=K?K+"{"+G.styles+"}":G.styles,(0,eo.q)((0,el.MY)(er),ep),et&&(ef.inserted[G.name]=!0)}};return ef.sheet.hydrate(ei),ef}},15953:function(K,G,J){"use strict";
vendor: 2,917 bytes, line 1
1J.d(G,{O:function(){return serializeStyles}});var et,er,en={animationIterationCount:1,aspectRatio: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,scale: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},ei=/[A-Z]|^ms/g,eo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(K){return 45===K.charCodeAt(1)},isProcessableValue=function(K){return null!=K&&"boolean"!=typeof K},es=(et=Object.create(null),function(K){return void 0===et[K]&&(et[K]=isCustomProperty(K)?K:K.replace(ei,"-$&").toLowerCase()),et[K]}),processStyleValue=function(K,G){switch(K){case"animation":case"animationName":if("string"==typeof G)return G.replace(eo,function(K,G,J){return er={name:G,styles:J,next:er},G})}return 1===en[K]||isCustomProperty(K)||"number"!=typeof G||0===G?G:G+"px"};function handleInterpolation(K,G,J){if(null==J)return"";if(void 0!==J.__emotion_styles)return J;switch(typeof J){case"boolean":return"";case"object":if(1===J.anim)return er={name:J.name,styles:J.styles,next:er},J.name;if(void 0!==J.styles){var et=J.next;if(void 0!==et)for(;void 0!==et;)er={name:et.name,styles:et.styles,next:er},et=et.next;return J.styles+";"}return function(K,G,J){var et="";if(Array.isArray(J))for(var er=0;er<J.length;er++)et+=handleInterpolation(K,G,J[er])+";";else for(var en in J){var ei=J[en];if("object"!=typeof ei)null!=G&&void 0!==G[ei]?et+=en+"{"+G[ei]+"}":isProcessableValue(ei)&&(et+=es(en)+":"+processStyleValue(en,ei)+";");else if(Array.isArray(ei)&&"string"==typeof ei[0]&&(null==G||void 0===G[ei[0]]))for(var eo=0;eo<ei.length;eo++)isProcessableValue(ei[eo])&&(et+=es(en)+":"+processStyleValue(en,ei[eo])+";");else{var el=handleInterpolation(K,G,ei);switch(en){case"animation":case"animationName":et+=es(en)+":"+el+";";break;default:et+=en+"{"+el+"}"}}}return et}(K,G,J);case"function":if(void 0!==K){var en=er,ei=J(K);return er=en,handleInterpolation(K,G,ei)}}if(null==G)return J;var eo=G[J];return void 0!==eo?eo:J}var el=/label:\s*([^\s;{]+)\s*(;|$)/g;function serializeStyles(K,G,J){if(1===K.length&&"object"==typeof K[0]&&null!==K[0]&&void 0!==K[0].styles)return K[0];var et,en=!0,ei="";er=void 0;var eo=K[0];null==eo||void 0===eo.raw?(en=!1,ei+=handleInterpolation(J,G,eo)):ei+=eo[0];for(var es=1;es<K.length;es++)ei+=handleInterpolation(J,G,K[es]),en&&(ei+=eo[es]);el.lastIndex=0;for(var ec="";null!==(et=el.exec(ei));)ec+="-"+et[1];return{name:function(K){for(var G,J=0,et=0,er=K.length;er>=4;
1++et,er-=4)G=(65535&(G=255&K.charCodeAt(et)|(255&K.charCodeAt(++et))<<8|(255&K.charCodeAt(++et))<<16|(255&K.charCodeAt(++et))<<24))*1540483477+((G>>>16)*59797<<16),G^=G>>>24,J=(65535&G)*1540483477+((G>>>16)*59797<<16)^(65535&J)*1540483477+((J>>>16)*59797<<16);switch(er){case 3:J^=(255&K.charCodeAt(et+2))<<16;case 2:J^=(255&K.charCodeAt(et+1))<<8;case 1:J^=255&K.charCodeAt(et),J=(65535&J)*1540483477+((J>>>16)*59797<<16)}return J^=J>>>13,(((J=(65535&J)*1540483477+((J>>>16)*59797<<16))^J>>>15)>>>0).toString(36)}(ei)+ec,styles:ei,next:er}}},27278:function(K,G,J){"use strict";J.d(G,{L:function(){return ei}});var et,er=J(67294),en=!!(et||(et=J.t(er,2))).useInsertionEffect&&(et||(et=J.t(er,2))).useInsertionEffect,ei=en||function(K){return K()};en||er.useLayoutEffect},70444:function(K,G,J){"use strict";function getRegisteredStyles(K,G,J){var et="";return J.split(" ").forEach(function(J){void 0!==K[J]?G.push(K[J]+";"):J&&(et+=J+" ")}),et}J.d(G,{My:function(){return insertStyles},fp:function(){return getRegisteredStyles},hC:function(){return registerStyles}});var registerStyles=function(K,G,J){var et=K.key+"-"+G.name;!1===J&&void 0===K.registered[et]&&(K.registered[et]=G.styles)},insertStyles=function(K,G,J){registerStyles(K,G,J);var et=K.key+"-"+G.name;if(void 0===K.inserted[G.name]){var er=G;do K.insert(G===er?"."+et:"",er,K.sheet,!0),er=er.next;while(void 0!==er)}}},74444:function(K,G,J){"use strict";J.d(G,{$s:function(){return calculateBackoffMillis},BH:function(){return Deferred},L:function(){return base64urlEncodeWithoutPadding},LL:function(){return ErrorFactory},ZR:function(){return FirebaseError},aH:function(){return getDefaultAppConfig},eu:function(){return validateIndexedDBOpenable},hl:function(){return isIndexedDBAvailable},m9:function(){return getModularInstance},vZ:function(){return function deepEqual(K,G){if(K===G)return!0;let J=Object.keys(K),et=Object.keys(G);for(let er of J){if(!et.includes(er))return!1;let J=K[er],en=G[er];if(isObject(J)&&isObject(en)){if(!deepEqual(J,en))return!1}else if(J!==en)return!1}for(let K of et)if(!J.includes(K))return!1;return!0}}});var et=J(34155);/**
2 * @license
3 * Copyright 2017 Google LLC
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *   http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */let stringToByteArray$1=function(K){let G=[],J=0;for(let et=0;et<K.length;et++){let er=K.charCodeAt(et);er<128?G[J++]=er:(er<2048?G[J++]=er>>6|192:((64512&er)==55296&&et+1<K.length&&(64512&K.charCodeAt(et+1))==56320?(er=65536+((1023&er)<<10)+(1023&K.charCodeAt(++et)),G[J++]=er>>18|240,G[J++]=er>>12&63|128):G[J++]=er>>12|224,G[J++]=er>>6&63|128),G[J++]=63&er|128)}return G},byteArrayToString=function(K){let G=[],J=0,et=0;for(;J<K.length;){let er=K[J++];if(er<128)G[et++]=String.fromCharCode(er);else if(er>191&&er<224){let en=K[J++];G[et++]=String.fromCharCode((31&er)<<6|63&en)}else if(er>239&&er<365){let en=K[J++],ei=K[J++],eo=K[J++],es=((7&er)<<18|(63&en)<<12|(63&ei)<<6|63&eo)-65536;G[et++]=String.fromCharCode(55296+(es>>10)),G[et++]=String.fromCharCode(56320+(1023&es))}else{let en=K[J++],ei=K[J++];G[et++]=String.fromCharCode((15&er)<<12|(63&en)<<6|63&ei)}}return G.join("")},er={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(K,G){if(!Array.isArray(K))throw Error("encodeByteArray takes an array as a parameter");this.init_();let J=G?this.byteToCharMapWebSafe_:this.byteToCharMap_,et=[];for(let G=0;G<K.length;G+=3){let er=K[G],en=G+1<K.length,ei=en?K[G+1]:0,eo=G+2<K.length,es=eo?K[G+2]:0,el=er>>2,ec=(3&er)<<4|ei>>4,eu=(15&ei)<<2|es>>6,ed=63&es;eo||(ed=64,en||(eu=64)),et.push(J[el],J[ec],J[eu],J[ed])}return et.join("")},encodeString(K,G){return this.HAS_NATIVE_SUPPORT&&!G?btoa(K):this.encodeByteArray(stringToByteArray$1(K),G)},decodeString(K,G){return this.HAS_NATIVE_SUPPORT&&!G?atob(K):byteArrayToString(this.decodeStringToByteArray(K,G))},decodeStringToByteArray(K,G){this.init_();let J=G?this.charToByteMapWebSafe_:this.charToByteMap_,et=[];for(let G=0;G<K.length;){let er=J[K.charAt(G++)],en=G<K.length,ei=en?J[K.charAt(G)]:0;++G;let eo=G<K.length,es=eo?J[K.charAt(G)]:64;++G;let el=G<K.length,ec=el?J[K.charAt(G)]:64;
16if(++G,null==er||null==ei||null==es||null==ec)throw new DecodeBase64StringError;let eu=er<<2|ei>>4;if(et.push(eu),64!==es){let K=ei<<4&240|es>>2;if(et.push(K),64!==ec){let K=es<<6&192|ec;et.push(K)}}}return et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let K=0;K<this.ENCODED_VALS.length;K++)this.byteToCharMap_[K]=this.ENCODED_VALS.charAt(K),this.charToByteMap_[this.byteToCharMap_[K]]=K,this.byteToCharMapWebSafe_[K]=this.ENCODED_VALS_WEBSAFE.charAt(K),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[K]]=K,K>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(K)]=K,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(K)]=K)}}};let DecodeBase64StringError=class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}};let base64Encode=function(K){let G=stringToByteArray$1(K);return er.encodeByteArray(G,!0)},base64urlEncodeWithoutPadding=function(K){return base64Encode(K).replace(/\./g,"")},base64Decode=function(K){try{return er.decodeString(K,!0)}catch(K){console.error("base64Decode failed: ",K)}return null},getDefaultsFromGlobal=()=>/**
17 * @license
18 * Copyright 2022 Google LLC
19 *
20 * Licensed under the Apache License, Version 2.0 (the "License");
21 * you may not use this file except in compliance with the License.
22 * You may obtain a copy of the License at
23 *
24 *   http://www.apache.org/licenses/LICENSE-2.0
25 *
26 * Unless required by applicable law or agreed to in writing, software
27 * distributed under the License is distributed on an "AS IS" BASIS,
28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29 * See the License for the specific language governing permissions and
30 * limitations under the License.
31 */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==J.g)return J.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,getDefaultsFromEnvVariable=()=>{if(void 0===et||void 0===et.env)return;let K=et.env.__FIREBASE_DEFAULTS__;if(K)return JSON.parse(K)},getDefaultsFromCookie=()=>{let K;if("undefined"==typeof document)return;try{K=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(K){return}let G=K&&base64Decode(K[1]);return G&&JSON.parse(G)},getDefaults=()=>{try{return getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(K){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${K}`);return}},getDefaultAppConfig=()=>{var K;return null===(K=getDefaults())||void 0===K?void 0:K.config};/**
32 * @license
33 * Copyright 2017 Google LLC
34 *
35 * Licensed under the Apache License, Version 2.0 (the "License");
36 * you may not use this file except in compliance with the License.
37 * You may obtain a copy of the License at
38 *
39 *   http://www.apache.org/licenses/LICENSE-2.0
40 *
41 * Unless required by applicable law or agreed to in writing, software
42 * distributed under the License is distributed on an "AS IS" BASIS,
43 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44 * See the License for the specific language governing permissions and
45 * limitations under the License.
46 */let Deferred=class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((K,G)=>{this.resolve=K,this.reject=G})}wrapCallback(K){return(G,J)=>{G?this.reject(G):this.resolve(J),"function"==typeof K&&(this.promise.catch(()=>{}),1===K.length?K(G):K(G,J))}}};function isIndexedDBAvailable(){try{return"object"==typeof indexedDB}catch(K){return!1}}function validateIndexedDBOpenable(){return new Promise((K,G)=>{try{let J=!0,et="validate-browser-context-for-indexeddb-analytics-module",er=self.indexedDB.open(et);er.onsuccess=()=>{er.result.close(),J||self.indexedDB.deleteDatabase(et),K(!0)},er.onupgradeneeded=()=>{J=!1},er.onerror=()=>{var K;G((null===(K=er.error)||void 0===K?void 0:K.message)||"")}}catch(K){G(K)}})}let FirebaseError=class FirebaseError extends Error{constructor(K,G,J){super(G),this.code=K,this.customData=J,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}};let ErrorFactory=class ErrorFactory{constructor(K,G,J){this.service=K,this.serviceName=G,this.errors=J}create(K,...G){let J=G[0]||{},et=`${this.service}/${K}`,er=this.errors[K],ei=er?er.replace(en,(K,G)=>{let et=J[G];return null!=et?String(et):`<${G}?>`}):"Error",eo=`${this.serviceName}: ${ei} (${et}).`,es=new FirebaseError(et,eo,J);return es}};let en=/\{\$([^}]+)}/g;function isObject(K){return null!==K&&"object"==typeof K}function calculateBackoffMillis(K,G=1e3,J=2){let et=G*Math.pow(J,
46K),er=Math.round(.5*et*(Math.random()-.5)*2);return Math.min(144e5,et+er)}/**
47 * @license
48 * Copyright 2021 Google LLC
49 *
50 * Licensed under the Apache License, Version 2.0 (the "License");
51 * you may not use this file except in compliance with the License.
52 * You may obtain a copy of the License at
53 *
54 *   http://www.apache.org/licenses/LICENSE-2.0
55 *
56 * Unless required by applicable law or agreed to in writing, software
57 * distributed under the License is distributed on an "AS IS" BASIS,
58 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 * See the License for the specific language governing permissions and
60 * limitations under the License.
61 */function getModularInstance(K){return K&&K._delegate?K._delegate:K}},11206:function(K,G,J){"use strict";var et=this&&this.__awaiter||function(K,G,J,et){return new(J||(J=Promise))(function(er,en){function fulfilled(K){try{step(et.next(K))}catch(K){en(K)}}function rejected(K){try{step(et.throw(K))}catch(K){en(K)}}function step(K){var G;K.done?er(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.FacebookLoginClient=void 0;let er=J(64356);G.FacebookLoginClient={getFB:()=>{if(!window.FB){console.warn("FB not found");return}return window.FB},getLoginStatus(K,G=!1){let J=this.getFB();if(!J){K({status:"unknown"});return}J.getLoginStatus(K,G)},getProfile(K,G){var J;null===(J=this.getFB())||void 0===J||J.api("me",G,K)},init(K,G){window.fbAsyncInit=()=>{var J;null===(J=this.getFB())||void 0===J||J.init(G),K()}},isRedirected(K){var G;let J=(0,er.paramsToObject)(window.location.search);return J.state===(null==K?void 0:K.state)&&void 0!==J[null!==(G=null==K?void 0:K.response_type)&&void 0!==G?G:""]},loadSdk(K,G){return et(this,void 0,void 0,function*(){yield(0,er.createScriptEle)("facebook-jssdk",`https://connect.facebook.net/${K}/sdk${G?"/xfbml.customerchat":""}.js`)})},redirectToDialog(K,G){window.location.href=`https://www.facebook.com/dialog/oauth${(0,er.objectToParams)(Object.assign(Object.assign({},K),G))}`},login(K,G){var J;null===(J=this.getFB())||void 0===J||J.login(K,G)},logout(K){this.getLoginStatus(G=>{var J;"connected"===G.status?null===(J=this.getFB())||void 0===J||J.logout(K):K()})}}},97526:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),er=this&&this.__setModuleDefault||(Object.create?function(K,G){Object.defineProperty(K,"default",{enumerable:!0,value:G})}:function(K,G){K.default=G}),en=this&&this.__importStar||function(K){if(K&&K.__esModule)return K;var G={};if(null!=K)for(var J in K)"default"!==J&&Object.prototype.hasOwnProperty.call(K,J)&&et(G,K,J);return er(G,K),G},ei=this&&this.__awaiter||function(K,G,J,et){return new(J||(J=Promise))(function(er,en){function fulfilled(K){try{step(et.next(K))}catch(K){en(K)}}function rejected(K){try{step(et.throw(K))}catch(K){en(K)}}function step(K){var G;K.done?er(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0});let eo=en(J(67294)),es=J(11206);G.default=function(K){let{appId:G,language:J="en_US",scope:et="public_profile, email",fields:er="name,email,picture",onSuccess:en,onFail:el,onProfileSuccess:ec,className:eu,style:ed,children:eh="Login with Facebook",render:ep,autoLoad:ef=!1,useRedirect:eg=!1,useCustomerChat:em=!1}=K,ey=Object.assign(Object.assign({version:"v9.0",xfbml:!1,cookie:!1,localStorage:!0},K.initParams),{appId:G}),ev=Object.assign(Object.assign({redirect_uri:"undefined"!=typeof window?location.origin+location.pathname:"/",state:"facebookdirect",response_type:"code"},K.dialogParams),{client_id:G}),eb=Object.assign(Object.assign({auth_type:"",return_scopes:!1},K.loginOptions),{scope:et});(0,eo.useEffect)(()=>{init()},[]);let init=()=>ei(this,void 0,void 0,function*(){yield es.FacebookLoginClient.loadSdk(J,em),es.FacebookLoginClient.init(()=>{let K=es.FacebookLoginClient.isRedirected(ev);if(!1===K&&ef){handleButtonClick();return}!0===K&&eg&&requestLogin()},ey)}),requestLogin=()=>{es.FacebookLoginClient.login(K=>{if(!K.authResponse){el&&el({status:"loginCancelled"});return}en&&en(K.authResponse),ec&&es.FacebookLoginClient.getProfile(ec,{fields:er})},Object.assign(Object.assign({},eb),{scope:et}))},handleButtonClick=()=>
61{if(eg){es.FacebookLoginClient.redirectToDialog(ev,eb);return}if(!window.FB){el&&el({status:"facebookNotLoaded"});return}requestLogin()};return ep?ep({onClick:handleButtonClick,logout:es.FacebookLoginClient.logout}):eo.default.createElement("button",{type:"button",onClick:handleButtonClick,className:eu,style:ed},eh)}},54933:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.createScriptEle=void 0,G.createScriptEle=(K,G)=>new Promise(J=>{let et=document.getElementsByTagName("script")[0];if(document.getElementById(K))return;let er=document.createElement("script");er.id=K,er.src=G,er.onload=J,et.parentNode.insertBefore(er,et)})},64356:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),er=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)};Object.defineProperty(G,"__esModule",{value:!0}),er(J(54933),G),er(J(11995),G)},11995:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.paramsToObject=G.objectToParams=G.isObject=void 0,G.isObject=K=>"[object Object]"===Object.prototype.toString.call(K),G.objectToParams=K=>(0,G.isObject)(K)&&0!==Object.keys(K).length?"?"+Object.keys(K).map(G=>`${G}=${encodeURIComponent(K[G])}`).join("&"):"",G.paramsToObject=K=>(null==K?void 0:K.replace(/^\?/,"").split("&").reduce((K,G)=>{if(!G)return K;let[J,et]=G.split("=");return Object.assign(Object.assign({},K),{[J]:decodeURIComponent(et)})},{}))||{}},73502:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),er=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)},en=this&&this.__importDefault||function(K){return K&&K.__esModule?K:{default:K}};Object.defineProperty(G,"__esModule",{value:!0});let ei=en(J(97526));er(J(64356),G),er(J(43686),G),er(J(97526),G),er(J(11206),G),G.default=ei.default},22653:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0})},43686:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),er=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)};Object.defineProperty(G,"__esModule",{value:!0}),er(J(22653),G),er(J(74750),G),er(J(2230),G)},74750:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0})},2230:function(K,G){"use strict";var J;Object.defineProperty(G,"__esModule",{value:!0}),G.LoginStatus=void 0,(J=G.LoginStatus||(G.LoginStatus={})).Connected="connected",J.NotAuthorized="not_authorized",J.Unknown="unknown"},40964:function(K,G,J){var et=J(82661);function anyBase(K,G){var J=new et(K,G);return function(K){return J.convert(K)}}anyBase.BIN="01",anyBase.OCT="01234567",anyBase.DEC="0123456789",anyBase.HEX="0123456789abcdef",K.exports=anyBase},82661:function(K){"use strict";function Converter(K,G){if(!K||!G||!K.length||!G.length)throw Error("Bad alphabet");this.srcAlphabet=K,this.dstAlphabet=G}Converter.prototype.convert=function(K){var G,J,et,er={},en=this.srcAlphabet.length,ei=this.dstAlphabet.length,eo=K.length,es="string"==typeof K?"":[];if(!this.isValid(K))throw Error('Number "'+K+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return K;for(G=0;G<eo;G++)er[G]=this.srcAlphabet.indexOf(K[G]);do{for(G=0,J=0,et=0;G<eo;G++)(J=J*en+er[G])>=ei?(er[et++]=parseInt(J/ei,10),J%=ei):et>0&&(er[et++]=0);eo=et,es=this.dstAlphabet.slice(J,J+1).concat(es)}while(0!==et);return es},Converter.prototype.isValid=function(K){for(var G=0;G<K.length;++G)if(-1===this.srcAlphabet.indexOf(K[G]))return!1;return!0},K.exports=Converter},79742:function(K,G){"use strict";G.byteLength=function(K){var G=getLens(K),J=G[0],et=G[1];return(J+et)*3/4-et},G.toByteArray=function(K){var G,J,en=getLens(K),ei=en[0],eo=en[1],es=new er((ei+eo)*3/4-eo),el=0,ec=eo>0?ei-4:ei;for(J=0;J<ec;
61J+=4)G=et[K.charCodeAt(J)]<<18|et[K.charCodeAt(J+1)]<<12|et[K.charCodeAt(J+2)]<<6|et[K.charCodeAt(J+3)],es[el++]=G>>16&255,es[el++]=G>>8&255,es[el++]=255&G;return 2===eo&&(G=et[K.charCodeAt(J)]<<2|et[K.charCodeAt(J+1)]>>4,es[el++]=255&G),1===eo&&(G=et[K.charCodeAt(J)]<<10|et[K.charCodeAt(J+1)]<<4|et[K.charCodeAt(J+2)]>>2,es[el++]=G>>8&255,es[el++]=255&G),es},G.fromByteArray=function(K){for(var G,et=K.length,er=et%3,en=[],ei=0,eo=et-er;ei<eo;ei+=16383)en.push(function(K,G,et){for(var er,en=[],ei=G;ei<et;ei+=3)en.push(J[(er=(K[ei]<<16&16711680)+(K[ei+1]<<8&65280)+(255&K[ei+2]))>>18&63]+J[er>>12&63]+J[er>>6&63]+J[63&er]);return en.join("")}(K,ei,ei+16383>eo?eo:ei+16383));return 1===er?en.push(J[(G=K[et-1])>>2]+J[G<<4&63]+"=="):2===er&&en.push(J[(G=(K[et-2]<<8)+K[et-1])>>10]+J[G>>4&63]+J[G<<2&63]+"="),en.join("")};for(var J=[],et=[],er="undefined"!=typeof Uint8Array?Uint8Array:Array,en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=0,eo=en.length;ei<eo;++ei)J[ei]=en[ei],et[en.charCodeAt(ei)]=ei;function getLens(K){var G=K.length;if(G%4>0)throw Error("Invalid string. Length must be a multiple of 4");var J=K.indexOf("=");-1===J&&(J=G);var et=J===G?0:4-J%4;return[J,et]}et["-".charCodeAt(0)]=62,et["_".charCodeAt(0)]=63},48764:function(K,G,J){"use strict";/*!
62 * The buffer module from node.js, for the browser.
63 *
64 * @author   Feross Aboukhadijeh <https://feross.org>
65 * @license  MIT
66 */var et=J(79742),er=J(80645),en="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(K){if(K>2147483647)throw RangeError('The value "'+K+'" is invalid for option "size"');var G=new Uint8Array(K);return Object.setPrototypeOf(G,Buffer.prototype),G}function Buffer(K,G,J){if("number"==typeof K){if("string"==typeof G)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(K)}return from(K,G,J)}function from(K,G,J){if("string"==typeof K)return function(K,G){if(("string"!=typeof G||""===G)&&(G="utf8"),!Buffer.isEncoding(G))throw TypeError("Unknown encoding: "+G);var J=0|byteLength(K,G),et=createBuffer(J),er=et.write(K,G);return er!==J&&(et=et.slice(0,er)),et}(K,G);if(ArrayBuffer.isView(K))return function(K){if(isInstance(K,Uint8Array)){var G=new Uint8Array(K);return fromArrayBuffer(G.buffer,G.byteOffset,G.byteLength)}return fromArrayLike(K)}(K);if(null==K)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(isInstance(K,ArrayBuffer)||K&&isInstance(K.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(K,SharedArrayBuffer)||K&&isInstance(K.buffer,SharedArrayBuffer)))return fromArrayBuffer(K,G,J);if("number"==typeof K)throw TypeError('The "value" argument must not be of type number. Received type number');var et=K.valueOf&&K.valueOf();if(null!=et&&et!==K)return Buffer.from(et,G,J);var er=function(K){if(Buffer.isBuffer(K)){var G,J=0|checked(K.length),et=createBuffer(J);return 0===et.length||K.copy(et,0,0,J),et}return void 0!==K.length?"number"!=typeof K.length||(G=K.length)!=G?createBuffer(0):fromArrayLike(K):"Buffer"===K.type&&Array.isArray(K.data)?fromArrayLike(K.data):void 0}(K);if(er)return er;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof K[Symbol.toPrimitive])return Buffer.from(K[Symbol.toPrimitive]("string"),G,J);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}function assertSize(K){if("number"!=typeof K)throw TypeError('"size" argument must be of type number');if(K<0)throw RangeError('The value "'+K+'" is invalid for option "size"')}function allocUnsafe(K){return assertSize(K),createBuffer(K<0?0:0|checked(K))}function fromArrayLike(K){for(var G=K.length<0?0:0|checked(K.length),J=createBuffer(G),et=0;et<G;et+=1)J[et]=255&K[et];return J}function fromArrayBuffer(K,G,J){var et;if(G<0||K.byteLength<G)throw RangeError('"offset" is outside of buffer bounds');if(K.byteLength<G+(J||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(et=void 0===G&&void 0===J?new Uint8Array(K):void 0===J?new Uint8Array(K,G):new Uint8Array(K,G,J),Buffer.prototype),et}function checked(K){if(K>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|K}function byteLength(K,G){if(Buffer.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||isInstance(K,ArrayBuffer))return K.byteLength;if("string"!=typeof K)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);var J=K.length,et=arguments.length>2&&!0===arguments[2];if(!et&&0===J)return 0;for(var er=!1;;)switch(G){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return utf8ToBytes(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*J;case"hex":return J>>>1;case"base64":return base64ToBytes(K).length;default:if(er)return et?-1:utf8ToBytes(K).length;G=(""+G).toLowerCase(),er=!0}}function slowToString(K,G,J){var er,en,ei=!1;if((void 0===G||G<0)&&(G=0),G>this.length||((void 0===J||J>this.length)&&(J=this.length),J<=0||(J>>>=0)<=(G>>>=0)))return"";for(K||(K="utf8");;)switch(K){case"hex":return function(K,G,J){var et=K.length;(!G||G<0)&&(G=0),(!J||J<0||J>et)&&(J=et);for(var er="",en=G;en<J;++en)er+=eo[K[en]];return er}(this,G,J);case"utf8":case"utf-8":return utf8Slice(this,G,J);case"ascii":return function(K,G,J){var et="";J=Math.min(K.length,J);for(var er=G;er<J;++er)et+=String.fromCharCode(127&K[er]);return et}(this,G,J);case"latin1":case"binary":return function(K,G,J){var et="";J=Math.min(K.length,J);for(var er=G;er<J;++er)et+=String.fromCharCode(K[er]);return et}(this,G,J);case"base64":return er=G,en=J,0===er&&en===this.length?et.fromByteArray(this):et.fromByteArray(this.slice(er,en));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(K,G,J){for(var et=K.slice(G,J),er="",en=0;en<et.length-1;en+=2)er+=String.fromCharCode(et[en]+256*et[en+1]);return er}(this,G,J);default:if(ei)throw TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),ei=!0}}function swap(K,G,J){var et=K[G];K[G]=K[J],K[J]=et}function bidirectionalIndexOf(K,G,J,et,er){var en;if(0===K.length)return -1;if("string"==typeof J?(et=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),(en=J=+J)!=en&&(J=er?0:K.length-1),J<0&&(J=K.length+J),J>=K.length){if(er)return -1;J=K.length-1}else if(J<0){if(!er)return -1;J=0}if("string"==typeof G&&(G=Buffer.from(G,et)),Buffer.isBuffer(G))return 0===G.length?-1:arrayIndexOf(K,G,J,et,er);if("number"==typeof G)return(G&=255,"function"==typeof Uint8Array.prototype.indexOf)?er?Uint8Array.prototype.indexOf.call(K,G,J):Uint8Array.prototype.lastIndexOf.call(K,G,J):arrayIndexOf(K,[G],J,et,er);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(K,G,J,et,er){var en,ei=1,eo=K.length,es=G.length;if(void 0!==et&&("ucs2"===(et=String(et).toLowerCase())||"ucs-2"===et||"utf16le"===et||"utf-16le"===et)){
vendor: 14,930 bytes, line 66
66if(K.length<2||G.length<2)return -1;ei=2,eo/=2,es/=2,J/=2}function read(K,G){return 1===ei?K[G]:K.readUInt16BE(G*ei)}if(er){var el=-1;for(en=J;en<eo;en++)if(read(K,en)===read(G,-1===el?0:en-el)){if(-1===el&&(el=en),en-el+1===es)return el*ei}else -1!==el&&(en-=en-el),el=-1}else for(J+es>eo&&(J=eo-es),en=J;en>=0;en--){for(var ec=!0,eu=0;eu<es;eu++)if(read(K,en+eu)!==read(G,eu)){ec=!1;break}if(ec)return en}return -1}function utf8Slice(K,G,J){J=Math.min(K.length,J);for(var et=[],er=G;er<J;){var en,ei,eo,es,el=K[er],ec=null,eu=el>239?4:el>223?3:el>191?2:1;if(er+eu<=J)switch(eu){case 1:el<128&&(ec=el);break;case 2:(192&(en=K[er+1]))==128&&(es=(31&el)<<6|63&en)>127&&(ec=es);break;case 3:en=K[er+1],ei=K[er+2],(192&en)==128&&(192&ei)==128&&(es=(15&el)<<12|(63&en)<<6|63&ei)>2047&&(es<55296||es>57343)&&(ec=es);break;case 4:en=K[er+1],ei=K[er+2],eo=K[er+3],(192&en)==128&&(192&ei)==128&&(192&eo)==128&&(es=(15&el)<<18|(63&en)<<12|(63&ei)<<6|63&eo)>65535&&es<1114112&&(ec=es)}null===ec?(ec=65533,eu=1):ec>65535&&(ec-=65536,et.push(ec>>>10&1023|55296),ec=56320|1023&ec),et.push(ec),er+=eu}return function(K){var G=K.length;if(G<=4096)return String.fromCharCode.apply(String,K);for(var J="",et=0;et<G;)J+=String.fromCharCode.apply(String,K.slice(et,et+=4096));return J}(et)}function checkOffset(K,G,J){if(K%1!=0||K<0)throw RangeError("offset is not uint");if(K+G>J)throw RangeError("Trying to access beyond buffer length")}function checkInt(K,G,J,et,er,en){if(!Buffer.isBuffer(K))throw TypeError('"buffer" argument must be a Buffer instance');if(G>er||G<en)throw RangeError('"value" argument is out of bounds');if(J+et>K.length)throw RangeError("Index out of range")}function checkIEEE754(K,G,J,et,er,en){if(J+et>K.length||J<0)throw RangeError("Index out of range")}function writeFloat(K,G,J,et,en){return G=+G,J>>>=0,en||checkIEEE754(K,G,J,4,34028234663852886e22,-34028234663852886e22),er.write(K,G,J,et,23,4),J+4}function writeDouble(K,G,J,et,en){return G=+G,J>>>=0,en||checkIEEE754(K,G,J,8,17976931348623157e292,-17976931348623157e292),er.write(K,G,J,et,52,8),J+8}G.lW=Buffer,G.h2=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var K=new Uint8Array(1),G={foo:function(){return 42}};return Object.setPrototypeOf(G,Uint8Array.prototype),Object.setPrototypeOf(K,G),42===K.foo()}catch(K){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(K,G,J){return from(K,G,J)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(K,G,J){return(assertSize(K),K<=0)?createBuffer(K):void 0!==G?"string"==typeof J?createBuffer(K).fill(G,J):createBuffer(K).fill(G):createBuffer(K)},Buffer.allocUnsafe=function(K){return allocUnsafe(K)},Buffer.allocUnsafeSlow=function(K){return allocUnsafe(K)},Buffer.isBuffer=function(K){return null!=K&&!0===K._isBuffer&&K!==Buffer.prototype},Buffer.compare=function(K,G){if(isInstance(K,Uint8Array)&&(K=Buffer.from(K,K.offset,K.byteLength)),isInstance(G,Uint8Array)&&(G=Buffer.from(G,G.offset,G.byteLength)),!Buffer.isBuffer(K)||!Buffer.isBuffer(G))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===G)return 0;for(var J=K.length,et=G.length,er=0,en=Math.min(J,et);er<en;++er)if(K[er]!==G[er]){J=K[er],et=G[er];break}return J<et?-1:et<J?1:0},Buffer.isEncoding=function(K){switch(String(K).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(K,G){if(!Array.isArray(K))throw TypeError('"list" argument must be an Array of Buffers');if(0===K.length)return Buffer.alloc(0);if(void 0===G)for(J=0,G=0;J<K.length;++J)G+=K[J].length;var J,et=Buffer.allocUnsafe(G),er=0;for(J=0;J<K.length;++J){var en=K[J];if(isInstance(en,Uint8Array))er+en.length>et.length?Buffer.from(en).copy(et,er):Uint8Array.prototype.set.call(et,en,er);else if(Buffer.isBuffer(en))en.copy(et,er);else throw TypeError('"list" argument must be an Array of Buffers');er+=en.length}return et},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var K=this.length;if(K%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<K;G+=2)swap(this,G,G+1);return this},Buffer.prototype.swap32=function(){var K=this.length;if(K%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<K;G+=4)swap(this,G,G+3),swap(this,G+1,G+2);return this},Buffer.prototype.swap64=function(){var K=this.length;if(K%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<K;G+=8)swap(this,G,G+7),swap(this,G+1,G+6),swap(this,G+2,G+5),swap(this,G+3,G+4);return this},Buffer.prototype.toString=function(){var K=this.length;return 0===K?"":0==arguments.length?utf8Slice(this,0,K):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(K){if(!Buffer.isBuffer(K))throw TypeError("Argument must be a Buffer");return this===K||0===Buffer.compare(this,K)},Buffer.prototype.inspect=function(){var K="",J=G.h2;return K=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J&&(K+=" ... "),"<Buffer "+K+">"},en&&(Buffer.prototype[en]=Buffer.prototype.inspect),Buffer.prototype.compare=function(K,G,J,et,er){if(isInstance(K,Uint8Array)&&(K=Buffer.from(K,K.offset,K.byteLength)),!Buffer.isBuffer(K))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof K);if(void 0===G&&(G=0),void 0===J&&(J=K?K.length:0),void 0===et&&(et=0),void 0===er&&(er=this.length),G<0||J>K.length||et<0||er>this.length)throw RangeError("out of range index");if(et>=er&&G>=J)return 0;if(et>=er)return -1;if(G>=J)return 1;if(G>>>=0,J>>>=0,et>>>=0,er>>>=0,this===K)return 0;for(var en=er-et,ei=J-G,eo=Math.min(en,ei),es=this.slice(et,er),el=K.slice(G,J),ec=0;ec<eo;++ec)if(es[ec]!==el[ec]){en=es[ec],ei=el[ec];break}return en<ei?-1:ei<en?1:0},Buffer.prototype.includes=function(K,G,J){return -1!==this.indexOf(K,G,J)},Buffer.prototype.indexOf=function(K,G,J){return bidirectionalIndexOf(this,K,G,J,!0)},Buffer.prototype.lastIndexOf=function(K,G,J){return bidirectionalIndexOf(this,K,G,J,!1)},Buffer.prototype.write=function(K,G,J,et){if(void 0===G)et="utf8",J=this.length,G=0;else if(void 0===J&&"string"==typeof G)et=G,J=this.length,G=0;else if(isFinite(G))G>>>=0,isFinite(J)?(J>>>=0,void 0===et&&(et="utf8")):(et=J,J=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var er,en,ei,eo,es,el,ec,eu,ed=this.length-G;if((void 0===J||J>ed)&&(J=ed),K.length>0&&(J<0||G<0)||G>this.length)throw RangeError("Attempt to write outside buffer bounds");et||(et="utf8");for(var eh=!1;;)switch(et){case"hex":return function(K,G,J,et){J=Number(J)||0;var er=K.length-J;et?(et=Number(et))>er&&(et=er):et=er;var en=G.length;et>en/2&&(et=en/2);for(var ei=0;ei<et;++ei){var eo=parseInt(G.substr(2*ei,2),16);if(eo!=eo)break;K[J+ei]=eo}return ei}(this,K,G,J);case"utf8":case"utf-8":return er=G,en=J,blitBuffer(utf8ToBytes(K,this.length-er),this,er,en);case"ascii":case"latin1":case"binary":return ei=G,eo=J,blitBuffer(function(K){for(var G=[],J=0;J<K.length;++J)G.push(255&K.charCodeAt(J));return G}(K),this,ei,eo);case"base64":return es=G,el=J,blitBuffer(base64ToBytes(K),this,es,el);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ec=G,eu=J,blitBuffer(function(K,G){for(var J,et,er=[],en=0;en<K.length&&!((G-=2)<0);++en)et=(J=K.charCodeAt(en))>>8,er.push(J%256),er.push(et);return er}(K,this.length-ec),this,ec,eu);default:if(eh)throw TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),eh=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(K,G){var J=this.length;K=~~K,G=void 0===G?J:~~G,K<0?(K+=J)<0&&(K=0):K>J&&(K=J),G<0?(G+=J)<0&&(G=0):G>J&&(G=J),G<K&&(G=K);var et=this.subarray(K,G);return Object.setPrototypeOf(et,Buffer.prototype),et},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function(K,G,J){K>>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=this[K],er=1,en=0;++en<G&&(er*=256);)et+=this[K+en]*er;return et},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function(K,G,J){K>>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=this[K+--G],er=1;G>0&&(er*=256);)et+=this[K+--G]*er;return et},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(K,G){return K>>>=0,G||checkOffset(K,1,this.length),this[K]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(K,G){return K>>>=0,G||checkOffset(K,2,this.length),this[K]|this[K+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(K,G){return K>>>=0,G||checkOffset(K,2,this.length),this[K]<<8|this[K+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+16777216*this[K+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),16777216*this[K]+(this[K+1]<<16|this[K+2]<<8|this[K+3])},Buffer.prototype.readIntLE=function(K,G,J){K>>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=this[K],er=1,en=0;++en<G&&(er*=256);)et+=this[K+en]*er;return et>=(er*=128)&&(et-=Math.pow(2,8*G)),et},Buffer.prototype.readIntBE=function(K,G,J){K>>>=0,G>>>=0,J||checkOffset(K,G,this.length);for(var et=G,er=1,en=this[K+--et];et>0&&(er*=256);)en+=this[K+--et]*er;return en>=(er*=128)&&(en-=Math.pow(2,8*G)),en},Buffer.prototype.readInt8=function(K,G){return(K>>>=0,G||checkOffset(K,1,this.length),128&this[K])?-((255-this[K]+1)*1):this[K]},Buffer.prototype.readInt16LE=function(K,G){K>>>=0,G||checkOffset(K,2,this.length);var J=this[K]|this[K+1]<<8;return 32768&J?4294901760|J:J},Buffer.prototype.readInt16BE=function(K,G){K>>>=0,G||checkOffset(K,2,this.length);var J=this[K+1]|this[K]<<8;return 32768&J?4294901760|J:J},Buffer.prototype.readInt32LE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},Buffer.prototype.readInt32BE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},Buffer.prototype.readFloatLE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),er.read(this,K,!0,23,4)},Buffer.prototype.readFloatBE=function(K,G){return K>>>=0,G||checkOffset(K,4,this.length),er.read(this,K,!1,23,4)},Buffer.prototype.readDoubleLE=function(K,G){return K>>>=0,G||checkOffset(K,8,this.length),er.read(this,K,!0,52,8)},Buffer.prototype.readDoubleBE=function(K,G){return K>>>=0,G||checkOffset(K,8,this.length),er.read(this,K,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(K,G,J,et){if(K=+K,G>>>=0,J>>>=0,!et){var er=Math.pow(2,8*J)-1;checkInt(this,K,G,J,er,0)}var en=1,ei=0;for(this[G]=255&K;++ei<J&&(en*=256);)this[G+ei]=K/en&255;return G+J},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function(K,G,J,et){if(K=+K,G>>>=0,J>>>=0,!et){var er=Math.pow(2,8*J)-1;checkInt(this,K,G,J,er,0)}var en=J-1,ei=1;for(this[G+en]=255&K;--en>=0&&(ei*=256);)this[G+en]=K/ei&255;return G+J},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,1,255,0),this[G]=255&K,G+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,65535,0),this[G]=255&K,this[G+1]=K>>>8,G+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,65535,0),this[G]=K>>>8,this[G+1]=255&K,G+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,4294967295,0),this[G+3]=K>>>24,this[G+2]=K>>>16,this[G+1]=K>>>8,this[G]=255&K,G+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,4294967295,0),this[G]=K>>>24,this[G+1]=K>>>16,this[G+2]=K>>>8,this[G+3]=255&K,G+4},Buffer.prototype.writeIntLE=function(K,G,J,et){if(K=+K,G>>>=0,!et){var er=Math.pow(2,8*J-1);checkInt(this,K,G,J,er-1,-er)}var en=0,ei=1,eo=0;for(this[G]=255&K;++en<J&&(ei*=256);)K<0&&0===eo&&0!==this[G+en-1]&&(eo=1),this[G+en]=(K/ei>>0)-eo&255;return G+J},Buffer.prototype.writeIntBE=function(K,G,J,et){if(K=+K,G>>>=0,!et){var er=Math.pow(2,8*J-1);checkInt(this,K,G,J,er-1,-er)}var en=J-1,ei=1,eo=0;for(this[G+en]=255&K;--en>=0&&(ei*=256);)K<0&&0===eo&&0!==this[G+en+1]&&(eo=1),this[G+en]=(K/ei>>0)-eo&255;return G+J},Buffer.prototype.writeInt8=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,1,127,-128),K<0&&(K=255+K+1),this[G]=255&K,G+1},Buffer.prototype.writeInt16LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,32767,-32768),this[G]=255&K,this[G+1]=K>>>8,G+2},Buffer.prototype.writeInt16BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,2,32767,-32768),this[G]=K>>>8,this[G+1]=255&K,G+2},Buffer.prototype.writeInt32LE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,2147483647,-2147483648),this[G]=255&K,this[G+1]=K>>>8,this[G+2]=K>>>16,this[G+3]=K>>>24,G+4},Buffer.prototype.writeInt32BE=function(K,G,J){return K=+K,G>>>=0,J||checkInt(this,K,G,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[G]=K>>>24,this[G+1]=K>>>16,this[G+2]=K>>>8,this[G+3]=255&K,G+4},Buffer.prototype.writeFloatLE=function(K,G,J){return writeFloat(this,K,G,!0,J)},Buffer.prototype.writeFloatBE=function(K,G,J){return writeFloat(this,K,G,!1,J)},Buffer.prototype.writeDoubleLE=function(K,G,J){return writeDouble(this,K,G,!0,J)},Buffer.prototype.writeDoubleBE=function(K,G,J){return writeDouble(this,K,G,!1,J)},Buffer.prototype.copy=function(K,G,J,et){if(!Buffer.isBuffer(K))throw TypeError("argument should be a Buffer");if(J||(J=0),et||0===et||(et=this.length),G>=K.length&&(G=K.length),G||(G=0),et>0&&et<J&&(et=J),et===J||0===K.length||0===this.length)return 0;if(G<0)throw RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw RangeError("Index out of range");if(et<0)throw RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),K.length-G<et-J&&(et=K.length-G+J);var er=et-J;return this===K&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(G,J,et):Uint8Array.prototype.set.call(K,this.subarray(J,et),G),er},Buffer.prototype.fill=function(K,G,J,et){if("string"==typeof K){if
66("string"==typeof G?(et=G,G=0,J=this.length):"string"==typeof J&&(et=J,J=this.length),void 0!==et&&"string"!=typeof et)throw TypeError("encoding must be a string");if("string"==typeof et&&!Buffer.isEncoding(et))throw TypeError("Unknown encoding: "+et);if(1===K.length){var er,en=K.charCodeAt(0);("utf8"===et&&en<128||"latin1"===et)&&(K=en)}}else"number"==typeof K?K&=255:"boolean"==typeof K&&(K=Number(K));if(G<0||this.length<G||this.length<J)throw RangeError("Out of range index");if(J<=G)return this;if(G>>>=0,J=void 0===J?this.length:J>>>0,K||(K=0),"number"==typeof K)for(er=G;er<J;++er)this[er]=K;else{var ei=Buffer.isBuffer(K)?K:Buffer.from(K,et),eo=ei.length;if(0===eo)throw TypeError('The value "'+K+'" is invalid for argument "value"');for(er=0;er<J-G;++er)this[er+G]=ei[er%eo]}return this};var ei=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(K,G){G=G||1/0;for(var J,et=K.length,er=null,en=[],ei=0;ei<et;++ei){if((J=K.charCodeAt(ei))>55295&&J<57344){if(!er){if(J>56319||ei+1===et){(G-=3)>-1&&en.push(239,191,189);continue}er=J;continue}if(J<56320){(G-=3)>-1&&en.push(239,191,189),er=J;continue}J=(er-55296<<10|J-56320)+65536}else er&&(G-=3)>-1&&en.push(239,191,189);if(er=null,J<128){if((G-=1)<0)break;en.push(J)}else if(J<2048){if((G-=2)<0)break;en.push(J>>6|192,63&J|128)}else if(J<65536){if((G-=3)<0)break;en.push(J>>12|224,J>>6&63|128,63&J|128)}else if(J<1114112){if((G-=4)<0)break;en.push(J>>18|240,J>>12&63|128,J>>6&63|128,63&J|128)}else throw Error("Invalid code point")}return en}function base64ToBytes(K){return et.toByteArray(function(K){if((K=(K=K.split("=")[0]).trim().replace(ei,"")).length<2)return"";for(;K.length%4!=0;)K+="=";return K}(K))}function blitBuffer(K,G,J,et){for(var er=0;er<et&&!(er+J>=G.length)&&!(er>=K.length);++er)G[er+J]=K[er];return er}function isInstance(K,G){return K instanceof G||null!=K&&null!=K.constructor&&null!=K.constructor.name&&K.constructor.name===G.name}var eo=function(){for(var K="0123456789abcdef",G=Array(256),J=0;J<16;++J)for(var et=16*J,er=0;er<16;++er)G[et+er]=K[J]+K[er];return G}()},9996:function(K){"use strict";var isMergeableObject=function(K){var J;return!!K&&"object"==typeof K&&"[object RegExp]"!==(J=Object.prototype.toString.call(K))&&"[object Date]"!==J&&K.$$typeof!==G},G="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(K,G){return!1!==G.clone&&G.isMergeableObject(K)?deepmerge(Array.isArray(K)?[]:{},K,G):K}function defaultArrayMerge(K,G,J){return K.concat(G).map(function(K){return cloneUnlessOtherwiseSpecified(K,J)})}function getKeys(K){return Object.keys(K).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(K).filter(function(G){return Object.propertyIsEnumerable.call(K,G)}):[])}function propertyIsOnObject(K,G){try{return G in K}catch(K){return!1}}function deepmerge(K,G,J){(J=J||{}).arrayMerge=J.arrayMerge||defaultArrayMerge,J.isMergeableObject=J.isMergeableObject||isMergeableObject,J.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var et,er,en=Array.isArray(G);return en!==Array.isArray(K)?cloneUnlessOtherwiseSpecified(G,J):en?J.arrayMerge(K,G,J):(er={},(et=J).isMergeableObject(K)&&getKeys(K).forEach(function(G){er[G]=cloneUnlessOtherwiseSpecified(K[G],et)}),getKeys(G).forEach(function(J){(!propertyIsOnObject(K,J)||Object.hasOwnProperty.call(K,J)&&Object.propertyIsEnumerable.call(K,J))&&(propertyIsOnObject(K,J)&&et.isMergeableObject(G[J])?er[J]=(function(K,G){if(!G.customMerge)return deepmerge;var J=G.customMerge(K);return"function"==typeof J?J:deepmerge})(J,et)(K[J],G[J],et):er[J]=cloneUnlessOtherwiseSpecified(G[J],et))}),er)}deepmerge.all=function(K,G){if(!Array.isArray(K))throw Error("first argument should be an array");return K.reduce(function(K,J){return deepmerge(K,J,G)},{})},K.exports=deepmerge},99960:function(K,G){"use strict";var J,et;Object.defineProperty(G,"__esModule",{value:!0}),G.Doctype=G.CDATA=G.Tag=G.Style=G.Script=G.Comment=G.Directive=G.Text=G.Root=G.isTag=G.ElementType=void 0,(et=J=G.ElementType||(G.ElementType={})).Root="root",et.Text="text",et.Directive="directive",et.Comment="comment",et.Script="script",et.Style="style",et.Tag="tag",et.CDATA="cdata",et.Doctype="doctype",G.isTag=function(K){return K.type===J.Tag||K.type===J.Script||K.type===J.Style},G.Root=J.Root,G.Text=J.Text,G.Directive=J.Directive,G.Comment=J.Comment,G.Script=J.Script,G.Style=J.Style,G.Tag=J.Tag,G.CDATA=J.CDATA,G.Doctype=J.Doctype},47915:function(K,G,J){"use strict";var et=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J);var er=Object.getOwnPropertyDescriptor(G,J);
66(!er||("get"in er?!G.__esModule:er.writable||er.configurable))&&(er={enumerable:!0,get:function(){return G[J]}}),Object.defineProperty(K,et,er)}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),er=this&&this.__exportStar||function(K,G){for(var J in K)"default"===J||Object.prototype.hasOwnProperty.call(G,J)||et(G,K,J)};Object.defineProperty(G,"__esModule",{value:!0}),G.DomHandler=void 0;var en=J(99960),ei=J(97790);er(J(97790),G);var eo={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},es=function(){function DomHandler(K,G,J){this.dom=[],this.root=new ei.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof G&&(J=G,G=eo),"object"==typeof K&&(G=K,K=void 0),this.callback=null!=K?K:null,this.options=null!=G?G:eo,this.elementCB=null!=J?J:null}return DomHandler.prototype.onparserinit=function(K){this.parser=K},DomHandler.prototype.onreset=function(){this.dom=[],this.root=new ei.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},DomHandler.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},DomHandler.prototype.onerror=function(K){this.handleCallback(K)},DomHandler.prototype.onclosetag=function(){this.lastNode=null;var K=this.tagStack.pop();this.options.withEndIndices&&(K.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(K)},DomHandler.prototype.onopentag=function(K,G){var J=this.options.xmlMode?en.ElementType.Tag:void 0,et=new ei.Element(K,G,void 0,J);this.addNode(et),this.tagStack.push(et)},DomHandler.prototype.ontext=function(K){var G=this.lastNode;if(G&&G.type===en.ElementType.Text)G.data+=K,this.options.withEndIndices&&(G.endIndex=this.parser.endIndex);else{var J=new ei.Text(K);this.addNode(J),this.lastNode=J}},DomHandler.prototype.oncomment=function(K){if(this.lastNode&&this.lastNode.type===en.ElementType.Comment){this.lastNode.data+=K;return}var G=new ei.Comment(K);this.addNode(G),this.lastNode=G},DomHandler.prototype.oncommentend=function(){this.lastNode=null},DomHandler.prototype.oncdatastart=function(){var K=new ei.Text(""),G=new ei.CDATA([K]);this.addNode(G),K.parent=G,this.lastNode=K},DomHandler.prototype.oncdataend=function(){this.lastNode=null},DomHandler.prototype.onprocessinginstruction=function(K,G){var J=new ei.ProcessingInstruction(K,G);this.addNode(J)},DomHandler.prototype.handleCallback=function(K){if("function"==typeof this.callback)this.callback(K,this.dom);else if(K)throw K},DomHandler.prototype.addNode=function(K){var G=this.tagStack[this.tagStack.length-1],J=G.children[G.children.length-1];this.options.withStartIndices&&(K.startIndex=this.parser.startIndex),this.options.withEndIndices&&(K.endIndex=this.parser.endIndex),G.children.push(K),J&&(K.prev=J,J.next=K),K.parent=G,this.lastNode=null},DomHandler}();G.DomHandler=es,G.default=es},97790:function(K,G,J){"use strict";var et,er=this&&this.__extends||(et=function(K,G){return(et=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(K,G){K.__proto__=G}||function(K,G){for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(K[J]=G[J])})(K,G)},function(K,G){if("function"!=typeof G&&null!==G)throw TypeError("Class extends value "+String(G)+" is not a constructor or null");function __(){this.constructor=K}et(K,G),K.prototype=null===G?Object.create(G):(__.prototype=G.prototype,new __)}),en=this&&this.__assign||function(){return(en=Object.assign||function(K){for(var G,J=1,et=arguments.length;J<et;J++)for(var er in G=arguments[J])Object.prototype.hasOwnProperty.call(G,er)&&(K[er]=G[er]);return K}).apply(this,arguments)};Object.defineProperty(G,"__esModule",{value:!0}),G.cloneNode=G.hasChildren=G.isDocument=G.isDirective=G.isComment=G.isText=G.isCDATA=G.isTag=G.Element=G.Document=G.CDATA=G.NodeWithChildren=G.ProcessingInstruction=G.Comment=G.Text=G.DataNode=G.Node=void 0;var ei=J(99960),eo=function(){function Node(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Node.prototype,"parentNode",{get:function(){return this.parent},set:function(K){this.parent=K}
vendor: 4,158 bytes, line 66
66,enumerable:!1,configurable:!0}),Object.defineProperty(Node.prototype,"previousSibling",{get:function(){return this.prev},set:function(K){this.prev=K},enumerable:!1,configurable:!0}),Object.defineProperty(Node.prototype,"nextSibling",{get:function(){return this.next},set:function(K){this.next=K},enumerable:!1,configurable:!0}),Node.prototype.cloneNode=function(K){return void 0===K&&(K=!1),cloneNode(this,K)},Node}();G.Node=eo;var es=function(K){function DataNode(G){var J=K.call(this)||this;return J.data=G,J}return er(DataNode,K),Object.defineProperty(DataNode.prototype,"nodeValue",{get:function(){return this.data},set:function(K){this.data=K},enumerable:!1,configurable:!0}),DataNode}(eo);G.DataNode=es;var el=function(K){function Text(){var G=null!==K&&K.apply(this,arguments)||this;return G.type=ei.ElementType.Text,G}return er(Text,K),Object.defineProperty(Text.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),Text}(es);G.Text=el;var ec=function(K){function Comment(){var G=null!==K&&K.apply(this,arguments)||this;return G.type=ei.ElementType.Comment,G}return er(Comment,K),Object.defineProperty(Comment.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),Comment}(es);G.Comment=ec;var eu=function(K){function ProcessingInstruction(G,J){var et=K.call(this,J)||this;return et.name=G,et.type=ei.ElementType.Directive,et}return er(ProcessingInstruction,K),Object.defineProperty(ProcessingInstruction.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),ProcessingInstruction}(es);G.ProcessingInstruction=eu;var ed=function(K){function NodeWithChildren(G){var J=K.call(this)||this;return J.children=G,J}return er(NodeWithChildren,K),Object.defineProperty(NodeWithChildren.prototype,"firstChild",{get:function(){var K;return null!==(K=this.children[0])&&void 0!==K?K:null},enumerable:!1,configurable:!0}),Object.defineProperty(NodeWithChildren.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(NodeWithChildren.prototype,"childNodes",{get:function(){return this.children},set:function(K){this.children=K},enumerable:!1,configurable:!0}),NodeWithChildren}(eo);G.NodeWithChildren=ed;var eh=function(K){function CDATA(){var G=null!==K&&K.apply(this,arguments)||this;return G.type=ei.ElementType.CDATA,G}return er(CDATA,K),Object.defineProperty(CDATA.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),CDATA}(ed);G.CDATA=eh;var ep=function(K){function Document(){var G=null!==K&&K.apply(this,arguments)||this;return G.type=ei.ElementType.Root,G}return er(Document,K),Object.defineProperty(Document.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),Document}(ed);G.Document=ep;var ef=function(K){function Element(G,J,et,er){void 0===et&&(et=[]),void 0===er&&(er="script"===G?ei.ElementType.Script:"style"===G?ei.ElementType.Style:ei.ElementType.Tag);var en=K.call(this,et)||this;return en.name=G,en.attribs=J,en.type=er,en}return er(Element,K),Object.defineProperty(Element.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(Element.prototype,"tagName",{get:function(){return this.name},set:function(K){this.name=K},enumerable:!1,configurable:!0}),Object.defineProperty(Element.prototype,"attributes",{get:function(){var K=this;return Object.keys(this.attribs).map(function(G){var J,et;return{name:G,value:K.attribs[G],namespace:null===(J=K["x-attribsNamespace"])||void 0===J?void 0:J[G],prefix:null===(et=K["x-attribsPrefix"])||void 0===et?void 0:et[G]}})},enumerable:!1,configurable:!0}),Element}(ed);function isTag(K){return(0,ei.isTag)(K)}function isCDATA(K){return K.type===ei.ElementType.CDATA}function isText(K){return K.type===ei.ElementType.Text}function isComment(K){return K.type===ei.ElementType.Comment}function isDirective(K){return K.type===ei.ElementType.Directive}function isDocument(K){return K.type===ei.ElementType.Root}function cloneNode(K,G){if(void 0===G&&(G=!1),isText(K))J=new el(K.data);else if(isComment(K))J=new ec(K.data);
66else if(isTag(K)){var J,et=G?cloneChildren(K.children):[],er=new ef(K.name,en({},K.attribs),et);et.forEach(function(K){return K.parent=er}),null!=K.namespace&&(er.namespace=K.namespace),K["x-attribsNamespace"]&&(er["x-attribsNamespace"]=en({},K["x-attribsNamespace"])),K["x-attribsPrefix"]&&(er["x-attribsPrefix"]=en({},K["x-attribsPrefix"])),J=er}else if(isCDATA(K)){var et=G?cloneChildren(K.children):[],ei=new eh(et);et.forEach(function(K){return K.parent=ei}),J=ei}else if(isDocument(K)){var et=G?cloneChildren(K.children):[],eo=new ep(et);et.forEach(function(K){return K.parent=eo}),K["x-mode"]&&(eo["x-mode"]=K["x-mode"]),J=eo}else if(isDirective(K)){var es=new eu(K.name,K.data);null!=K["x-name"]&&(es["x-name"]=K["x-name"],es["x-publicId"]=K["x-publicId"],es["x-systemId"]=K["x-systemId"]),J=es}else throw Error("Not implemented yet: ".concat(K.type));return J.startIndex=K.startIndex,J.endIndex=K.endIndex,null!=K.sourceCodeLocation&&(J.sourceCodeLocation=K.sourceCodeLocation),J}function cloneChildren(K){for(var G=K.map(function(K){return cloneNode(K,!0)}),J=1;J<G.length;J++)G[J].prev=G[J-1],G[J-1].next=G[J];return G}G.Element=ef,G.isTag=isTag,G.isCDATA=isCDATA,G.isText=isText,G.isComment=isComment,G.isDirective=isDirective,G.isDocument=isDocument,G.hasChildren=function(K){return Object.prototype.hasOwnProperty.call(K,"children")},G.cloneNode=cloneNode},2465:function(K){self,K.exports=(()=>{var K={111:(K,G,J)=>{"use strict";J.d(G,{Z:()=>et});let et=class{constructor(K,G){if(this.dom={el:K},"string"==typeof K?this.dom.el=document.querySelector(K):K.jquery&&(this.dom.el=K[0]),null===this.dom.el)throw Error("EmailGenie: No input defined");this.originalSettings={id:`emailGenie-${this.uuidv4}`,domains:["gmail.com","outlook.com","hotmail.com","msn.com","live.com","googlemail.com","yahoo.com","me.com","icloud.com"],overrideDomains:!1,insert:"afterend"},G&&G.domains&&(G.overrideDomains?G.domains=G.domains:G.domains=[...this.originalSettings.domains,...G.domains]),this.settings={...this.originalSettings,...G},this.init()}init(){this.createDataList(),this.bindEvents()}createDataList(){this.dom.el.setAttribute("list",this.settings.id);let K=`<datalist id="${this.settings.id}"></datalist>`;"documentend"===this.settings.insert?document.body.insertAdjacentHTML("beforeend",K):this.dom.el.insertAdjacentHTML(this.settings.insert,K),this.dom.list=document.querySelector(`#${this.settings.id}`)}bindEvents(){this.dom.el.addEventListener("keyup",K=>this.handleKeyup(K))}handleKeyup(K){if(!this.dom.el.value.includes("@"))return;this.user=this.dom.el.value.substring(0,this.dom.el.value.lastIndexOf("@")),this.domain=this.dom.el.value.substring(this.dom.el.value.lastIndexOf("@")+1);let G=this.settings.domains.filter(K=>K.startsWith(this.domain)),J="";G.slice(0,3).forEach(K=>J+=`<option value="${this.user}@${K}">`),this.dom.list.innerHTML=J}get uuidv4(){var K=window.crypto||window.msCrypto;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,G=>(G^K.getRandomValues(new Uint8Array(1))[0]&15>>G/4).toString(16))}}},138:(K,G,J)=>{let et=J(111).Z;K.exports=et}},G={};function i(J){var et=G[J];if(void 0!==et)return et.exports;var er=G[J]={exports:{}};return K[J](er,er.exports,i),er.exports}return i.d=(K,G)=>{for(var J in G)i.o(G,J)&&!i.o(K,J)&&Object.defineProperty(K,J,{enumerable:!0,get:G[J]})},i.o=(K,G)=>Object.prototype.hasOwnProperty.call(K,G),i(138)})()},16247:function(K,G,J){"use strict";J.d(G,{G:function(){return o}});/**
67 * @preserve
68 * Gerador e Validador de CPF v5.0.2
69 * http://tiagoporto.github.io/gerador-validador-cpf
70 * Copyright (c) 2014-present Tiago Porto (http://tiagoporto.com)
71 * Released under the MIT license
72 */let r=K=>{let G=0;for(let J=0;J<9;++J)G+=Number(K.charAt(J))*(10-J);let J=G%11;return J<2?0:11-J},t=K=>{let G=0;for(let J=0;J<10;++J)G+=Number(K.charAt(J))*(11-J);let J=G%11;return J<2?0:11-J},n=K=>{for(let G=0;G<10;G++)if(K===Array(K.length+1).join(String(G)))return!0;return!1},o=K=>{if("string"!=typeof K)return!1;let G=String(K).replace(/[\s.-]/g,""),J=G.slice(0,9),et=G.slice(9,11);if(G.length>11||G.length<11||n(G))return!1;let er=r(J);return et===`${er}${t(`${J}${er}`)}`}},8679:function(K,G,J){"use strict";var et=J(59864),er={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},en={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ei={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eo={};function getStatics(K){return et.isMemo(K)?ei:eo[K.$$typeof]||er}eo[et.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eo[et.Memo]=ei;var es=Object.defineProperty,el=Object.getOwnPropertyNames,ec=Object.getOwnPropertySymbols,eu=Object.getOwnPropertyDescriptor,ed=Object.getPrototypeOf,eh=Object.prototype;K.exports=function hoistNonReactStatics(K,G,J){if("string"!=typeof G){if(eh){var et=ed(G);et&&et!==eh&&hoistNonReactStatics(K,et,J)}var er=el(G);ec&&(er=er.concat(ec(G)));for(var ei=getStatics(K),eo=getStatics(G),ep=0;ep<er.length;++ep){var ef=er[ep];if(!en[ef]&&!(J&&J[ef])&&!(eo&&eo[ef])&&!(ei&&ei[ef])){var eg=eu(G,ef);try{es(K,ef,eg)}catch(K){}}}}return K}},60885:function(K,G){G.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},38276:function(K){var G,J="html",et="head",er="body",en=/<([a-zA-Z]+[0-9]?)/,ei=/<head[^]*>/i,eo=/<body[^]*>/i,parseFromDocument=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},parseFromString=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},es="object"==typeof window&&window.DOMParser;if("function"==typeof es){var el=new es;parseFromDocument=parseFromString=function(K,G){return G&&(K="<"+G+">"+K+"</"+G+">"),el.parseFromString(K,"text/html")}}if("object"==typeof document&&document.implementation){var ec=document.implementation.createHTMLDocument();parseFromDocument=function(K,G){return G?ec.documentElement.querySelector(G).innerHTML=K:ec.documentElement.innerHTML=K,ec}}var eu="object"==typeof document?document.createElement("template"):{};eu.content&&(G=function(K){return eu.innerHTML=K,eu.content.childNodes}),K.exports=function(K){var es,el,ec,eu,ed=K.match(en);switch(ed&&ed[1]&&(es=ed[1].toLowerCase()),es){case J:return el=parseFromString(K),!ei.test(K)&&(ec=el.querySelector(et))&&ec.parentNode.removeChild(ec),!eo.test(K)&&(ec=el.querySelector(er))&&ec.parentNode.removeChild(ec),el.querySelectorAll(J);case et:case er:if(eu=(el=parseFromDocument(K)).querySelectorAll(es),eo.test(K)&&ei.test(K))return eu[0].parentNode.childNodes;return eu;default:if(G)return G(K);return(ec=parseFromDocument(K,er).querySelector(er)).childNodes}}}
72,14152:function(K,G,J){var et=J(38276),er=J(1507).formatDOM,en=/<(![a-zA-Z\s]+)>/;K.exports=function(K){if("string"!=typeof K)throw TypeError("First argument must be a string");if(""===K)return[];var G,J=K.match(en);return J&&J[1]&&(G=J[1]),er(et(K),null,G)}},1507:function(K,G,J){for(var et,er=J(47915),en=J(60885).CASE_SENSITIVE_TAG_NAMES,ei=er.Comment,eo=er.Element,es=er.ProcessingInstruction,el=er.Text,ec={},eu=0,ed=en.length;eu<ed;eu++)ec[(et=en[eu]).toLowerCase()]=et;function formatAttributes(K){for(var G,J={},et=0,er=K.length;et<er;et++)J[(G=K[et]).name]=G.value;return J}G.formatAttributes=formatAttributes,G.formatDOM=function formatDOM(K,G,J){G=G||null;for(var et=[],er=0,en=K.length;er<en;er++){var eu,ed,eh,ep=K[er];switch(ep.nodeType){case 1:ed=ec[eu=(eu=ep.nodeName).toLowerCase()]||eu,(eh=new eo(ed,formatAttributes(ep.attributes))).children=formatDOM("template"===ed?ep.content.childNodes:ep.childNodes,eh);break;case 3:eh=new el(ep.nodeValue);break;case 8:eh=new ei(ep.nodeValue);break;default:continue}var ef=et[er-1]||null;ef&&(ef.next=eh),eh.parent=G,eh.prev=ef,eh.next=null,et.push(eh)}return J&&((eh=new es(J.substring(0,J.indexOf(" ")).toLowerCase(),J)).next=et[0]||null,eh.parent=G,et.unshift(eh),et[1]&&(et[1].prev=et[0])),et}},30488:function(K,G,J){var et=J(47915),er=J(14152),en=J(50484),ei=J(53670);er="function"==typeof er.default?er.default:er;var eo={lowerCaseAttributeNames:!1};function HTMLReactParser(K,G){if("string"!=typeof K)throw TypeError("First argument must be a string");return""===K?[]:ei(er(K,(G=G||{}).htmlparser2||eo),G)}HTMLReactParser.domToReact=ei,HTMLReactParser.htmlToDOM=er,HTMLReactParser.attributesToProps=en,HTMLReactParser.Comment=et.Comment,HTMLReactParser.Element=et.Element,HTMLReactParser.ProcessingInstruction=et.ProcessingInstruction,HTMLReactParser.Text=et.Text,K.exports=HTMLReactParser,HTMLReactParser.default=HTMLReactParser},50484:function(K,G,J){var et=J(25726),er=J(74606),en=["checked","value"],ei=["input","select","textarea"],eo={reset:!0,submit:!0};function getPropName(K){return et.possibleStandardNames[K]}K.exports=function(K,G){var J,es,el,ec,eu,ed={},eh=(K=K||{}).type&&eo[K.type];for(J in K){if(el=K[J],et.isCustomAttribute(J)){ed[J]=el;continue}if(ec=getPropName(es=J.toLowerCase())){switch(eu=et.getPropertyInfo(ec),-1===en.indexOf(ec)||-1===ei.indexOf(G)||eh||(ec=getPropName("default"+es)),ed[ec]=el,eu&&eu.type){case et.BOOLEAN:ed[ec]=!0;break;case et.OVERLOADED_BOOLEAN:""===el&&(ed[ec]=!0)}continue}er.PRESERVE_CUSTOM_ATTRIBUTES&&(ed[J]=el)}return er.setStyleProp(K.style,ed),ed}},53670:function(K,G,J){var et=J(67294),er=J(50484),en=J(74606),ei=en.setStyleProp,eo=en.canTextBeChildOfNode;K.exports=function domToReact(K,G){for(var J,es,el,ec,eu,ed=(G=G||{}).library||et,eh=ed.cloneElement,ep=ed.createElement,ef=ed.isValidElement,eg=[],em="function"==typeof G.replace,ey=G.trim,ev=0,eb=K.length;ev<eb;ev++){if(J=K[ev],em&&ef(el=G.replace(J))){eb>1&&(el=eh(el,{key:el.key||ev})),eg.push(el);continue}if("text"===J.type){if((es=!J.data.trim().length)&&J.parent&&!eo(J.parent)||ey&&es)continue;eg.push(J.data);continue}switch(ec=J.attribs,en.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===J.type&&en.isCustomComponent(J.name,J.attribs)?ei(ec.style,ec):ec&&(ec=er(ec,J.name)),eu=null,J.type){case"script":case"style":J.children[0]&&(ec.dangerouslySetInnerHTML={__html:J.children[0].data});break;case"tag":"textarea"===J.name&&J.children[0]?ec.defaultValue=J.children[0].data:J.children&&J.children.length&&(eu=domToReact(J.children,G));break;default:continue}eb>1&&(ec.key=ev),eg.push(ep(J.name,ec,eu))}return 1===eg.length?eg[0]:eg}},74606:function(K,G,J){var et=J(67294),er=J(41476).default,en={reactCompat:!0},ei=et.version.split(".")[0]>=16,eo=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);K.exports={PRESERVE_CUSTOM_ATTRIBUTES:ei,invertObject:function(K,G){if(!K||"object"!=typeof K)throw TypeError("First argument must be an object");var J,et,er="function"==typeof G,en={},ei={};for(J in K){if(et=K[J],er&&(en=G(J,et))&&2===en.length){ei[en[0]]=en[1];continue}"string"==typeof et&&(ei[et]=J)}return ei},isCustomComponent:function(K,G){if(-1===K.indexOf("-"))return G&&"string"==typeof G.is;switch(K){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(K,G){if(null!=K)try{G.style=er(K,en)}catch(K){G.style={}}},canTextBeChildOfNode:function(K){return!eo.has(K.name)},elementsWithNoTextChildren:eo}},80645:function(K,G){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */G.read=function(K,G,J,et,er){var en,ei,eo=8*er-et-1,es=(1<<eo)-1,el=es>>1,ec=-7,eu=J?er-1:0,ed=J?-1:1,eh=K[G+eu];for(eu+=ed,en=eh&(1<<-ec)-1,eh>>=-ec,ec+=eo;ec>0;en=256*en+K[G+eu],eu+=ed,ec-=8);for(ei=en&(1<<-ec)-1,en>>=-ec,ec+=et;ec>0;ei=256*ei+K[G+eu],eu+=ed,ec-=8);if(0===en)en=1-el;else{if(en===es)return ei?NaN:(eh?-1:1)*(1/0);ei+=Math.pow(2,et),en-=el}return(eh?-1:1)*ei*Math.pow(2,en-et)},G.write=function(K,G,J,et,er,en){var ei,eo,es,el=8*en-er-1,ec=(1<<el)-1,eu=ec>>1,ed=23===er?5960464477539062e-23:0,eh=et?0:en-1,ep=et?1:-1,ef=G<0||0===G&&1/G<0?1:0;for(isNaN(G=Math.abs(G))||G===1/0?(eo=isNaN(G)?1:0,ei=ec):(ei=Math.floor(Math.log(G)/Math.LN2),G*(es=Math.pow(2,-ei))<1&&(ei--,es*=2),ei+eu>=1?G+=ed/es:G+=ed*Math.pow(2,1-eu),G*es>=2&&(ei++,es/=2),ei+eu>=ec?(eo=0,ei=ec):ei+eu>
72=1?(eo=(G*es-1)*Math.pow(2,er),ei+=eu):(eo=G*Math.pow(2,eu-1)*Math.pow(2,er),ei=0));er>=8;K[J+eh]=255&eo,eh+=ep,eo/=256,er-=8);for(ei=ei<<er|eo,el+=er;el>0;K[J+eh]=255&ei,eh+=ep,ei/=256,el-=8);K[J+eh-ep]|=128*ef}},18139:function(K){var G=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,J=/\n/g,et=/^\s*/,er=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,en=/^:\s*/,ei=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,eo=/^[;\s]*/,es=/^\s+|\s+$/g;function trim(K){return K?K.replace(es,""):""}K.exports=function(K,es){if("string"!=typeof K)throw TypeError("First argument must be a string");if(!K)return[];es=es||{};var el=1,ec=1;function updatePosition(K){var G=K.match(J);G&&(el+=G.length);var et=K.lastIndexOf("\n");ec=~et?K.length-et:ec+K.length}function position(){var K={line:el,column:ec};return function(G){return G.position=new Position(K),match(et),G}}function Position(K){this.start=K,this.end={line:el,column:ec},this.source=es.source}Position.prototype.content=K;var eu=[];function error(G){var J=Error(es.source+":"+el+":"+ec+": "+G);if(J.reason=G,J.filename=es.source,J.line=el,J.column=ec,J.source=K,es.silent)eu.push(J);else throw J}function match(G){var J=G.exec(K);if(J){var et=J[0];return updatePosition(et),K=K.slice(et.length),J}}function comments(K){var G;for(K=K||[];G=comment();)!1!==G&&K.push(G);return K}function comment(){var G=position();if("/"==K.charAt(0)&&"*"==K.charAt(1)){for(var J=2;""!=K.charAt(J)&&("*"!=K.charAt(J)||"/"!=K.charAt(J+1));)++J;if(J+=2,""===K.charAt(J-1))return error("End of comment missing");var et=K.slice(2,J-2);return ec+=2,updatePosition(et),K=K.slice(J),ec+=2,G({type:"comment",comment:et})}}return match(et),function(){var K,J=[];for(comments(J);K=function(){var K=position(),J=match(er);if(J){if(comment(),!match(en))return error("property missing ':'");var et=match(ei),es=K({type:"declaration",property:trim(J[0].replace(G,"")),value:et?trim(et[0].replace(G,"")):""});return match(eo),es}}();)!1!==K&&(J.push(K),comments(J));return J}()}},82730:function(K,G,J){"use strict";var et=J(67294);function t(K){return Array.prototype.slice.call(K)}function e(){return Date.now()}function i(K,G,J){if(G="data-keen-slider-"+G,null===J)return K.removeAttribute(G);K.setAttribute(G,J||"")}function r(K,G){return G=G||document,"function"==typeof K&&(K=K(G)),Array.isArray(K)?K:"string"==typeof K?t(G.querySelectorAll(K)):K instanceof HTMLElement?[K]:K instanceof NodeList?t(K):[]}function a(K){K.raw&&(K=K.raw),K.cancelable&&!K.defaultPrevented&&K.preventDefault()}function o(K){K.raw&&(K=K.raw),K.stopPropagation&&K.stopPropagation()}function u(){var K=[];return{add:function(G,J,et,er){G.addListener?G.addListener(et):G.addEventListener(J,et,er),K.push([G,J,et,er])},input:function(K,G,J,et){this.add(K,G,function(K){K.nativeEvent&&(K=K.nativeEvent);var G=K.changedTouches||[],et=K.targetTouches||[],er=K.detail&&K.detail.x?K.detail:null;return J({id:er?er.identifier?er.identifier:"i":et[0]?et[0]?et[0].identifier:"e":"d",idChanged:er?er.identifier?er.identifier:"i":G[0]?G[0]?G[0].identifier:"e":"d",raw:K,x:er&&er.x?er.x:et[0]?et[0].screenX:er?er.x:K.pageX,y:er&&er.y?er.y:et[0]?et[0].screenY:er?er.y:K.pageY})},et)},purge:function(){K.forEach(function(K){K[0].removeListener?K[0].removeListener(K[2]):K[0].removeEventListener(K[1],K[2],K[3])}),K=[]}}}function c(K,G,J){return Math.min(Math.max(K,G),J)}function s(K){return(K>0?1:0)-(K<0?1:0)||+K}function d(K){return K.getBoundingClientRect()}function l(K,G,J,et){var er=K&&K[G];return null==er?J:et&&"function"==typeof er?er():er}function f(K){return Math.round(1e6*K)/1e6}var m=function(){return(m=Object.assign||function(K){for(var G,J=1,et=arguments.length;J<et;J++)for(var er in G=arguments[J])Object.prototype.hasOwnProperty.call(G,er)&&(K[er]=G[er]);return K}).apply(this,arguments)};function h(K,G,J){if(J||2==arguments.length)for(var et,er=0,en=G.length;er<en;er++)!et&&er in G||(et||(et=Array.prototype.slice.call(G,0,er)),et[er]=G[er]);return K.concat(et||Array.prototype.slice.call(G))}function y(K){var G,J,et,er,en,ei,eo;function f(K){return 1-Math.pow(1-K,3)}function v(K,G){void 0===G&&(G=1e3);var J=147e-9+(K=Math.abs(K))/G;return{dist:Math.pow(K,2)/J,dur:K/J}}function m(){var G=K.track.details;G&&(er=G.min,en=G.max,ei=G.minIdx,eo=G.maxIdx)}function h(){K.animator.stop()}K.on("updated",m),K.on("optionsChanged",m),K.on("created",m),K.on("dragStarted",function(){h(),G=J=K.track.details.abs}),K.on("dragEnded",function(){var es,el,ec,eu,ed,eh,ep=K.options.mode;"snap"===ep&&(es=K.track,ec=(el=K.track.details).position,eu=s(es.velocity()),(ec>en||ec<er)&&(eu=0),ed=G+eu,0===el.slides[es.absToRel(ed)].portion&&(ed-=eu),G!==J&&(ed=J),s(es.idxToDist(ed,!0))!==eu&&(ed+=eu),ed=c(ed,ei,eo),eh=es.idxToDist(ed,!0),K.animator.start([{distance:eh,duration:500,easing:function(K){return 1+--K*K*K*K*K}}])),"free"!==ep&&"free-snap"!==ep||function(){h();var G="free-snap"===K.options.mode,J=K.track,es=J.velocity();et=s(es);var el=K.track.details,ec=[];if(es||!G){var eu=v(es),ed=eu.dist,eh=eu.dur;if(eh*=2,ed*=et,G){var ep=J.idxToDist(J.distToIdx(ed),!0);ep&&(ed=ep)}ec.push({distance:ed,duration:eh,easing:f});var ef=el.position,eg=ef+ed;
72if(eg<er||eg>en){var em=eg<er?er-ef:en-ef,ey=0,ev=es;if(s(em)===et){var eb=Math.min(Math.abs(em)/Math.abs(ed),1),eC=(1-Math.pow(1-eb,1/3))*eh;ec[0].earlyExit=eC,ev=es*(1-eb)}else ec[0].earlyExit=0,ey+=em;var ew=v(ev,100),e_=ew.dist*et;K.options.rubberband&&(ec.push({distance:e_,duration:2*ew.dur,easing:f}),ec.push({distance:-e_+ey,duration:500,easing:f}))}K.animator.start(ec)}else K.moveToIdx(c(el.abs,ei,eo),!0,{duration:500,easing:function(K){return 1+--K*K*K*K*K}})}()}),K.on("dragged",function(){J=K.track.details.abs})}function x(K){var G,J,et,er,en,ei,eo,es,el,ec,eu,ed,eh,ep,ef,eg,em,ey,ev=u();function z(eh){if(ei&&es===eh.id){var ep=D(eh);if(el){if(!O(eh))return A(eh);ec=ep,el=!1,K.emit("dragChecked")}if(eg)return ec=ep;a(eh);var ef=function(G){if(em===-1/0&&ey===1/0)return G;var et=K.track.details,ei=et.length,eo=et.position,es=c(G,em-eo,ey-eo);if(0===ei)return 0;if(!K.options.rubberband)return es;if(eo<=ey&&eo>=em||eo<em&&J>0||eo>ey&&J<0)return G;var el=Math.max(0,1-Math.abs((eo<em?eo-em:eo-ey)/ei*(er*ei))/en*2);return el*el*G}(eo(ec-ep)/er*et);J=s(ef);var ev=K.track.details.position;(ev>em&&ev<ey||ev===em&&J>0||ev===ey&&J<0)&&o(eh),eu+=ef,!ed&&Math.abs(eu*er)>5&&(ed=!0,i(G,"moves","")),K.track.add(ef),ec=ep,K.emit("dragged")}}function I(G){!ei&&K.track.details&&K.track.details.length&&(ed=!1,eu=0,ei=!0,el=!0,es=G.id,O(G),ec=D(G),K.emit("dragStarted"))}function A(J){ei&&es===J.idChanged&&(i(G,"moves",null),ei=!1,K.emit("dragEnded"))}function O(K){var G=S(),J=G?K.y:K.x,et=G?K.x:K.y,er=void 0!==eh&&void 0!==ep&&Math.abs(ep-et)<=Math.abs(eh-J);return eh=J,ep=et,er}function D(K){return S()?K.y:K.x}function S(){return K.options.vertical}function L(){er=K.size,en=S()?window.innerHeight:window.innerWidth;var G=K.track.details;G&&(em=G.min,ey=G.max)}function P(){if(ev.purge(),K.options.drag&&!K.options.disabled){eo="function"==typeof(er=K.options.dragSpeed||1)?er:function(K){return K*er},et=K.options.rtl?-1:1,L(),G=K.container,J="data-keen-slider-clickable",r("[".concat(J,"]:not([").concat(J,"=false])"),G).map(function(K){ev.add(K,"mousedown",o),ev.add(K,"touchstart",o)}),ev.add(G,"dragstart",function(K){a(K)}),ev.input(G,"ksDragStart",I),ev.input(G,"ksDrag",z),ev.input(G,"ksDragEnd",A),ev.input(G,"mousedown",I),ev.input(G,"mousemove",z),ev.input(G,"mouseleave",A),ev.input(G,"mouseup",A),ev.input(G,"touchstart",I,{passive:!0}),ev.input(G,"touchmove",z,{passive:!1}),ev.input(G,"touchend",A),ev.input(G,"touchcancel",A),ev.add(window,"wheel",function(K){ei&&a(K)});var J,er,en="data-keen-slider-scrollable";r("[".concat(en,"]:not([").concat(en,"=false])"),K.container).map(function(K){var G;ev.input(K,"touchstart",function(K){G=D(K),eg=!0,ef=!0},{passive:!0}),ev.input(K,"touchmove",function(J){var et=S(),er=et?K.scrollHeight-K.clientHeight:K.scrollWidth-K.clientWidth,en=G-D(J),ei=et?K.scrollTop:K.scrollLeft,eo=et&&"scroll"===K.style.overflowY||!et&&"scroll"===K.style.overflowX;if(G=D(J),(en<0&&ei>0||en>0&&ei<er)&&ef&&eo)return eg=!0;ef=!1,a(J),eg=!1}),ev.input(K,"touchend",function(){eg=!1})})}}K.on("updated",L),K.on("optionsChanged",P),K.on("created",P),K.on("destroyed",ev.purge)}function k(K){var G,J,et=null;function r(G,J,et){K.animator.active?o(G,J,et):requestAnimationFrame(function(){return o(G,J,et)})}function a(){r(!1,!1,J)}function o(J,er,en){var ei=0,eo=K.size,es=K.track.details;if(es&&G){var el=es.slides;G.forEach(function(K,G){if(J)!et&&er&&c(K,null,en),s(K,null,en);else{if(!el[G])return;var es=el[G].size*eo;!et&&er&&c(K,es,en),s(K,el[G].distance*eo-ei,en),ei+=es}})}}function u(G){return"performance"===K.options.renderMode?Math.round(G):G}function c(K,G,J){var et=J?"height":"width";null!==G&&(G=u(G)+"px"),K.style["min-"+et]=G,K.style["max-"+et]=G}function s(K,G,J){if(null!==G){G=u(G);var et=J?G:0;G="translate3d(".concat(J?0:G,"px, ").concat(et,"px, 0)")}K.style.transform=G,K.style["-webkit-transform"]=G}function d(){G&&(o(!0,!0,J),G=null),K.on("detailsChanged",a,!0)}function f(){r(!1,!0,J)}function p(){d(),J=K.options.vertical,K.options.disabled||"custom"===K.options.renderMode||(et="auto"===l(K.options.slides,"perView",null),K.on("detailsChanged",a),(G=K.slides).length&&f())}K.on("created",p),K.on("optionsChanged",p),K.on("beforeOptionsChanged",function(){d()}),K.on("updated",f),K.on("destroyed",d)}var M=function(K,G,J){try{var et,er,en,ei;return er=h([(et={drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"},function(G){var J,er,en,ei,eo,es,el=u();function h(K){var J;i(G.container,"reverse","rtl"!==(J=G.container,window.getComputedStyle(J,null).getPropertyValue("direction"))||K?null:""),i(G.container,"v",G.options.vertical&&!K?"":null),i(G.container,"disabled",G.options.disabled&&!K?"":null)}function g(){b()&&M()}function b(){var K=null;
72if(ei.forEach(function(G){G.matches&&(K=G.__media)}),K===J)return!1;J||G.emit("beforeOptionsChanged"),J=K;var et=K?en.breakpoints[K]:en;return G.options=m(m({},en),et),h(),I(),A(),C(),!0}function x(){return G.options.trackConfig.length}function k(K){for(var eo in J=!1,en=m(m({},et),K),el.purge(),er=G.size,ei=[],en.breakpoints||[]){var es=window.matchMedia(eo);es.__media=eo,ei.push(es),el.add(es,"change",g)}el.add(window,"orientationchange",z),el.add(window,"resize",E),b()}function w(K){G.animator.stop();var J=G.track.details;G.track.init(null!=K?K:J?J.abs:0)}function M(K){w(K),G.emit("optionsChanged")}function T(K,J){if(K)return k(K),void M(J);I(),A();var et=x();C(),x()!==et?M(J):w(J),G.emit("updated")}function C(){var K=G.options.slides;if("function"==typeof K)return G.options.trackConfig=K(G.size,G.slides);for(var J=G.slides,et=J.length,er="number"==typeof K?K:l(K,"number",et,!0),en=[],ei=l(K,"perView",1,!0),eo=l(K,"spacing",0,!0)/G.size||0,es="auto"===ei?eo:eo/ei,el=l(K,"origin","auto"),ec=0,eu=0;eu<er;eu++){var ed="auto"===ei?function(K){var J=d(K);return(G.options.vertical?J.height:J.width)/G.size||1}(J[eu]):1/ei-eo+es,eh="center"===el?.5-ed/2:"auto"===el?0:el;en.push({origin:eh,size:ed,spacing:eo}),ec+=ed}if(ec+=eo*(er-1),"auto"===el&&!G.options.loop&&1!==ei){var ep=0;en.map(function(K){var G=ec-ep;return ep+=K.size+eo,G>=1||(K.origin=1-G-(ec>1?0:1-ec)),K})}G.options.trackConfig=en}function E(){I();var K=G.size;G.options.disabled||K===er||(er=K,T())}function z(){E(),setTimeout(E,500),setTimeout(E,2e3)}function I(){var K=d(G.container);G.size=(G.options.vertical?K.height:K.width)||1}function A(){G.slides=r(G.options.selector,G.container)}G.container=(es=r(K,eo||document)).length?es[0]:null,G.destroy=function(){el.purge(),G.emit("destroyed"),h(!0)},G.prev=function(){G.moveToIdx(G.track.details.abs-1,!0)},G.next=function(){G.moveToIdx(G.track.details.abs+1,!0)},G.update=T,k(G.options)}),k,x,y],J||[],!0),ei={},en={emit:function(K){ei[K]&&ei[K].forEach(function(K){K(en)});var G=en.options&&en.options[K];G&&G(en)},moveToIdx:function(K,G,J){var et=en.track.idxToDist(K,G);if(et){var er=en.options.defaultAnimation;en.animator.start([{distance:et,duration:l(J||er,"duration",500),easing:l(J||er,"easing",function(K){return 1+--K*K*K*K*K})}])}},on:function(K,G,J){void 0===J&&(J=!1),ei[K]||(ei[K]=[]);var et=ei[K].indexOf(G);et>-1?J&&delete ei[K][et]:J||ei[K].push(G)},options:G},function(){if(en.track=function(K){var G,J,et,er,en,ei,eo,es,el,ec,eu,ed,eh,ep,ef=1/0,eg=[],em=null,ey=0;function C(K){P(ey+K)}function E(K){var G=z(ey+K).abs;return D(G)===G?G:null}function z(K){var G=Math.floor(Math.abs(K/J)),et=f((K%J+J)%J),er=s(K),en=eo.indexOf(h([],eo,!0).reduce(function(K,G){return Math.abs(G-et)<Math.abs(K-et)?G:K})),es=en;return er<0&&0!==et&&G++,en===ei&&(es=0,G+=er>0?1:-1),{abs:es+G*ei*er,origin:en,rel:es}}function I(K,G,J){if(G||!er.loop)return A(K,J);if(D(K)!==K)return null;var et,en=z(null!=J?J:ey),eo=en.abs,es=K-en.rel,el=eo+es;et=A(el);var ec=A(el-ei*s(es));return(null!==ec&&Math.abs(ec)<Math.abs(et)||null===et)&&(et=ec),f(et)}function A(K,G){if(null==G&&(G=f(ey)),et=K,D(et)!==et||null===K)return null;K=Math.round(K);var et,er=z(G),en=er.abs,es=er.rel,el=er.origin,ec=L(K),eu=(G%J+J)%J,ed=eo[el],eh=Math.floor((K-(en-es))/ei)*J;return f(ed-eu-ed+eo[ec]+eh+(el===ei?J:0))}function D(K){return c(K,el,ec)}function L(K){return(K%ei+ei)%ei}function P(G){J=G-ey,eg.push({distance:J,timestamp:e()}),eg.length>6&&(eg=eg.slice(-6)),ey=Math.round(1e6*G)/1e6;var J,et=_().abs;if(et!==em){var er=null!==em;em=et,er&&K.emit("slideChanged")}}function _(eo){var es=eo?null:function(){if(ei){var K=er.loop,G=K?(ey%J+J)%J:ey,eo=(K?ey%J:ey)-en[0][2],es=0-(eo<0&&K?J-Math.abs(eo):eo),ef=0,eg=z(ey),em=eg.abs,ev=eg.rel,eb=en[ev][2],eC=en.map(function(G,et){var en=es+ef;(en<0-G[0]||en>1)&&(en+=(Math.abs(en)>J-1&&K?J:0)*s(-en));var eo=et-ev,el=s(eo),ec=eo+em;K&&(-1===el&&en>eb&&(ec+=ei),1===el&&en<eb&&(ec-=ei),null!==eu&&ec<eu&&(en+=J),null!==ed&&ec>ed&&(en-=J));var eh=en+G[0]+G[1],ep=Math.max(en>=0&&eh<=1?1:eh<0||en>1?0:en<0?Math.min(1,(G[0]+en)/G[0]):(1-en)/G[0],0);return ef+=G[0]+G[1],{abs:ec,distance:er.rtl?-1*en+1-G[0]:en,portion:ep,size:G[0]}});return ev=L(em=D(em)),{abs:D(em),length:et,max:ep,maxIdx:ec,min:eh,minIdx:el,position:ey,progress:K?G/J:ey/et,rel:ev,slides:eC}}}();return G.details=es,K.emit("detailsChanged"),es}return G={absToRel:L,add:C,details:null,distToIdx:E,idxToDist:I,init:function(G){var eg,em,ey,ev;if(function(){if(ei=(en=((er=K.options).trackConfig||[]).map(function(K){return[l(K,"size",1),l(K,"spacing",0),l(K,"origin",0)]})).length){J=f(en.reduce(function(K,G){return K+G[0]+G[1]},0));var G,el=ei-1;
72et=f(J+en[0][2]-en[el][0]-en[el][2]-en[el][1]),eo=en.reduce(function(K,J){if(!K)return[0];var et=en[K.length-1],er=K[K.length-1]+(et[0]+et[2])+et[1];return er-=J[2],K[K.length-1]>er&&(er=K[K.length-1]),er=f(er),K.push(er),(!G||G<er)&&(es=K.length-1),G=er,K},null),0===et&&(es=0),eo.push(J)}}(),!ei)return _(!0);eg=K.options.range,eu=el=(em=K.options.loop)?l(em,"min",-1/0):0,ed=ec=em?l(em,"max",ef):es,ey=l(eg,"min",null),ev=l(eg,"max",null),ey&&(el=ey),ev&&(ec=ev),eh=el===-1/0?el:K.track.idxToDist(el||0,!0,0),ep=ec===ef?ec:I(ec,!0,0),null===ev&&(ed=ec),l(eg,"align",!1)&&ec!==ef&&0===en[L(ec)][2]&&(ep-=1-en[L(ec)][0],ec=E(ep)),eh=f(eh),ep=f(ep),Number(G)===G?C(A(D(G))):_()},to:P,velocity:function(){var K=e(),G=eg.reduce(function(G,J){var et=J.distance,er=J.timestamp;return K-er>200||(s(et)!==s(G.distance)&&G.distance&&(G={distance:0,lastTimestamp:0,time:0}),G.time&&(G.distance+=et),G.lastTimestamp&&(G.time+=er-G.lastTimestamp),G.lastTimestamp=er),G},{distance:0,lastTimestamp:0,time:0});return G.distance/G.time||0}}}(en),en.animator=function(K){var G,J,et,er,en,ei;function c(K){G.active=K}function s(K){G.targetIdx=K}function l(){var G;G=en,window.cancelAnimationFrame(G),c(!1),s(null),ei&&K.emit("animationStopped"),ei=null}return G={active:!1,start:function(G){if(l(),K.track.details){var eo=0,es=K.track.details.position;J=0,et=0,er=G.map(function(K){var G,J=es,er=null!==(G=K.earlyExit)&&void 0!==G?G:K.duration,en=K.easing,ei=K.distance*en(er/K.duration)||0;es+=ei;var el=et;return et+=er,eo+=ei,[J,K.distance,el,et,K.duration,en]}),s(K.track.distToIdx(eo)),function d(){en=window.requestAnimationFrame(function u(G){ei||(ei=G),c(!0);var en=G-ei;en>et&&(en=et);var eo=er[J];if(eo[3]<en)return J++,u(G);var es=eo[2],el=eo[4],ec=eo[0],eu=eo[1]*(0,eo[5])(0===el?1:(en-es)/el);if(eu&&K.track.to(ec+eu),en<et)return d();ei=null,c(!1),s(null),K.emit("animationEnded")})}(),K.emit("animationStarted")}},stop:l,targetIdx:null}}(en),er)for(var K=0;K<er.length;K++)(0,er[K])(en);en.track.init(en.options.initial||0),en.emit("created")}(),en}catch(K){console.error(K)}};G.E=function(K,G){var J=et.useRef(null),er=et.useRef(!1),en=et.useRef(K),ei=et.useCallback(function(et){et?(en.current=K,J.current=new M(et,K,G),er.current=!1):(J.current&&J.current.destroy&&J.current.destroy(),J.current=null)},[]);return et.useEffect(function(){er.current?J.current&&J.current.update(en.current):er.current=!0},[(function p(K,G){if(K===G)return!0;var J=typeof K;if(J!==typeof G)return!1;if("object"!==J||null===K||null===G)return"function"===J&&K.toString()===G.toString();if(K.length!==G.length||Object.getOwnPropertyNames(K).length!==Object.getOwnPropertyNames(G).length)return!1;for(var et in K)if(!p(K[et],G[et]))return!1;return!0}(en.current,K)||(en.current=K),en.current)]),[ei,J]}},49090:function(K){function stdOnEnd(K,G){K.onload=function(){this.onerror=this.onload=null,G(null,K)},K.onerror=function(){this.onerror=this.onload=null,G(Error("Failed to load "+this.src),K)}}K.exports=function(K,G,J){var et=document.head||document.getElementsByTagName("head")[0],er=document.createElement("script");"function"==typeof G&&(J=G,G={}),G=G||{},J=J||function(){},er.type=G.type||"text/javascript",er.charset=G.charset||"utf8",er.async=!("async"in G)||!!G.async,er.src=K,G.attrs&&function(K,G){for(var J in G)K.setAttribute(J,G[J])}(er,G.attrs),G.text&&(er.text=""+G.text),("onload"in er?stdOnEnd:function(K,G){K.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,G(null,K))}})(er,J),er.onload||stdOnEnd(er,J),et.appendChild(er)}},30845:function(K,G,J){"use strict";J.r(G);var et=Number.isNaN||function(K){return"number"==typeof K&&K!=K};function areInputsEqual(K,G){if(K.length!==G.length)return!1;for(var J,er,en=0;en<K.length;en++)if(!((J=K[en])===(er=G[en])||et(J)&&et(er)))return!1;return!0}G.default=function(K,G){void 0===G&&(G=areInputsEqual);var J,et,er=[],en=!1;return function(){for(var ei=[],eo=0;eo<arguments.length;eo++)ei[eo]=arguments[eo];return en&&J===this&&G(ei,er)||(et=K.apply(this,ei),en=!0,J=this,er=ei),et}}},2216:function(){},31903:function(){},36252:function(){},5152:function(K,G,J){K.exports=J(1342)},9008:function(K,G,J){K.exports=J(79201)},25675:function(K,G,J){K.exports=J(645)},41664:function(K,G,J){K.exports=J(65170)},39332:function(K,G,J){K.exports=J(30636)},11163:function(K,G,J){K.exports=J(59974)},4298:function(K,G,J){K.exports=J(85354)},34155:function(K){var G,J,et,er=K.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}
72function runTimeout(K){if(G===setTimeout)return setTimeout(K,0);if((G===defaultSetTimout||!G)&&setTimeout)return G=setTimeout,setTimeout(K,0);try{return G(K,0)}catch(J){try{return G.call(null,K,0)}catch(J){return G.call(this,K,0)}}}!function(){try{G="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(K){G=defaultSetTimout}try{J="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(K){J=defaultClearTimeout}}();var en=[],ei=!1,eo=-1;function cleanUpNextTick(){ei&&et&&(ei=!1,et.length?en=et.concat(en):eo=-1,en.length&&drainQueue())}function drainQueue(){if(!ei){var K=runTimeout(cleanUpNextTick);ei=!0;for(var G=en.length;G;){for(et=en,en=[];++eo<G;)et&&et[eo].run();eo=-1,G=en.length}et=null,ei=!1,function(K){if(J===clearTimeout)return clearTimeout(K);if((J===defaultClearTimeout||!J)&&clearTimeout)return J=clearTimeout,clearTimeout(K);try{J(K)}catch(G){try{return J.call(null,K)}catch(G){return J.call(this,K)}}}(K)}}function Item(K,G){this.fun=K,this.array=G}function noop(){}er.nextTick=function(K){var G=Array(arguments.length-1);if(arguments.length>1)for(var J=1;J<arguments.length;J++)G[J-1]=arguments[J];en.push(new Item(K,G)),1!==en.length||ei||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},er.title="browser",er.browser=!0,er.env={},er.argv=[],er.version="",er.versions={},er.on=noop,er.addListener=noop,er.once=noop,er.off=noop,er.removeListener=noop,er.removeAllListeners=noop,er.emit=noop,er.prependListener=noop,er.prependOnceListener=noop,er.listeners=function(K){return[]},er.binding=function(K){throw Error("process.binding is not supported")},er.cwd=function(){return"/"},er.chdir=function(K){throw Error("process.chdir is not supported")},er.umask=function(){return 0}},92703:function(K,G,J){"use strict";var et=J(50414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,K.exports=function(){function shim(K,G,J,er,en,ei){if(ei!==et){var eo=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw eo.name="Invariant Violation",eo}}function getShim(){return shim}shim.isRequired=shim;var K={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return K.PropTypes=K,K}},45697:function(K,G,J){K.exports=J(92703)()},50414:function(K){"use strict";K.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3655:function(K,G,J){var et=J(32792);function QR8bitByte(K){this.mode=et.MODE_8BIT_BYTE,this.data=K}QR8bitByte.prototype={getLength:function(K){return this.data.length},write:function(K){for(var G=0;G<this.data.length;G++)K.put(this.data.charCodeAt(G),8)}},K.exports=QR8bitByte},27321:function(K){function QRBitBuffer(){this.buffer=[],this.length=0}QRBitBuffer.prototype={get:function(K){var G=Math.floor(K/8);return(this.buffer[G]>>>7-K%8&1)==1},put:function(K,G){for(var J=0;J<G;J++)this.putBit((K>>>G-J-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(K){var G=Math.floor(this.length/8);this.buffer.length<=G&&this.buffer.push(0),K&&(this.buffer[G]|=128>>>this.length%8),this.length++}},K.exports=QRBitBuffer},49381:function(K){K.exports={L:1,M:0,Q:3,H:2}},32832:function(K,G,J){var et=J(11518);function QRPolynomial(K,G){if(void 0==K.length)throw Error(K.length+"/"+G);for(var J=0;J<K.length&&0==K[J];)J++;this.num=Array(K.length-J+G);for(var et=0;et<K.length-J;et++)this.num[et]=K[et+J]}QRPolynomial.prototype={get:function(K){return this.num[K]},getLength:function(){return this.num.length},multiply:function(K){for(var G=Array(this.getLength()+K.getLength()-1),J=0;J<this.getLength();J++)for(var er=0;er<K.getLength();er++)G[J+er]^=et.gexp(et.glog(this.get(J))+et.glog(K.get(er)));return new QRPolynomial(G,0)},mod:function(K){if(this.getLength()-K.getLength()<0)return this;for(var G=et.glog(this.get(0))-et.glog(K.get(0)),J=Array(this.getLength()),er=0;er<this.getLength();er++)J[er]=this.get(er);for(var er=0;er<K.getLength();er++)J[er]^=et.gexp(et.glog(K.get(er))+G);return new QRPolynomial(J,0).mod(K)}},K.exports=QRPolynomial},14450:function(K,G,J){var et=J(3655),er=J(17611),en=J(27321),ei=J(93160),eo=J(32832);function QRCode(K,G){this.typeNumber=K,this.errorCorrectLevel=G,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var es=QRCode.prototype;es.addData=function(K){var G=new et(K);this.dataList.push(G),this.dataCache=null},es.isDark=function(K,G){if(K<0||this.moduleCount<=K||G<0||this.moduleCount<=G)throw Error(K+","+G);return this.modules[K][G]},es.getModuleCount=function(){return this.moduleCount}
72,es.make=function(){if(this.typeNumber<1){var K=1;for(K=1;K<40;K++){for(var G=er.getRSBlocks(K,this.errorCorrectLevel),J=new en,et=0,eo=0;eo<G.length;eo++)et+=G[eo].dataCount;for(var eo=0;eo<this.dataList.length;eo++){var es=this.dataList[eo];J.put(es.mode,4),J.put(es.getLength(),ei.getLengthInBits(es.mode,K)),es.write(J)}if(J.getLengthInBits()<=8*et)break}this.typeNumber=K}this.makeImpl(!1,this.getBestMaskPattern())},es.makeImpl=function(K,G){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var J=0;J<this.moduleCount;J++){this.modules[J]=Array(this.moduleCount);for(var et=0;et<this.moduleCount;et++)this.modules[J][et]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(K,G),this.typeNumber>=7&&this.setupTypeNumber(K),null==this.dataCache&&(this.dataCache=QRCode.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,G)},es.setupPositionProbePattern=function(K,G){for(var J=-1;J<=7;J++)if(!(K+J<=-1)&&!(this.moduleCount<=K+J))for(var et=-1;et<=7;et++)G+et<=-1||this.moduleCount<=G+et||(0<=J&&J<=6&&(0==et||6==et)||0<=et&&et<=6&&(0==J||6==J)||2<=J&&J<=4&&2<=et&&et<=4?this.modules[K+J][G+et]=!0:this.modules[K+J][G+et]=!1)},es.getBestMaskPattern=function(){for(var K=0,G=0,J=0;J<8;J++){this.makeImpl(!0,J);var et=ei.getLostPoint(this);(0==J||K>et)&&(K=et,G=J)}return G},es.createMovieClip=function(K,G,J){var et=K.createEmptyMovieClip(G,J);this.make();for(var er=0;er<this.modules.length;er++)for(var en=1*er,ei=0;ei<this.modules[er].length;ei++){var eo=1*ei;this.modules[er][ei]&&(et.beginFill(0,100),et.moveTo(eo,en),et.lineTo(eo+1,en),et.lineTo(eo+1,en+1),et.lineTo(eo,en+1),et.endFill())}return et},es.setupTimingPattern=function(){for(var K=8;K<this.moduleCount-8;K++)null==this.modules[K][6]&&(this.modules[K][6]=K%2==0);for(var G=8;G<this.moduleCount-8;G++)null==this.modules[6][G]&&(this.modules[6][G]=G%2==0)},es.setupPositionAdjustPattern=function(){for(var K=ei.getPatternPosition(this.typeNumber),G=0;G<K.length;G++)for(var J=0;J<K.length;J++){var et=K[G],er=K[J];if(null==this.modules[et][er])for(var en=-2;en<=2;en++)for(var eo=-2;eo<=2;eo++)-2==en||2==en||-2==eo||2==eo||0==en&&0==eo?this.modules[et+en][er+eo]=!0:this.modules[et+en][er+eo]=!1}},es.setupTypeNumber=function(K){for(var G=ei.getBCHTypeNumber(this.typeNumber),J=0;J<18;J++){var et=!K&&(G>>J&1)==1;this.modules[Math.floor(J/3)][J%3+this.moduleCount-8-3]=et}for(var J=0;J<18;J++){var et=!K&&(G>>J&1)==1;this.modules[J%3+this.moduleCount-8-3][Math.floor(J/3)]=et}},es.setupTypeInfo=function(K,G){for(var J=this.errorCorrectLevel<<3|G,et=ei.getBCHTypeInfo(J),er=0;er<15;er++){var en=!K&&(et>>er&1)==1;er<6?this.modules[er][8]=en:er<8?this.modules[er+1][8]=en:this.modules[this.moduleCount-15+er][8]=en}for(var er=0;er<15;er++){var en=!K&&(et>>er&1)==1;er<8?this.modules[8][this.moduleCount-er-1]=en:er<9?this.modules[8][15-er-1+1]=en:this.modules[8][15-er-1]=en}this.modules[this.moduleCount-8][8]=!K},es.mapData=function(K,G){for(var J=-1,et=this.moduleCount-1,er=7,en=0,eo=this.moduleCount-1;eo>0;eo-=2)for(6==eo&&eo--;;){for(var es=0;es<2;es++)if(null==this.modules[et][eo-es]){var el=!1;en<K.length&&(el=(K[en]>>>er&1)==1),ei.getMask(G,et,eo-es)&&(el=!el),this.modules[et][eo-es]=el,-1==--er&&(en++,er=7)}if((et+=J)<0||this.moduleCount<=et){et-=J,J=-J;break}}},QRCode.PAD0=236,QRCode.PAD1=17,QRCode.createData=function(K,G,J){for(var et=er.getRSBlocks(K,G),eo=new en,es=0;es<J.length;es++){var el=J[es];eo.put(el.mode,4),eo.put(el.getLength(),ei.getLengthInBits(el.mode,K)),el.write(eo)}for(var ec=0,es=0;es<et.length;es++)ec+=et[es].dataCount;if(eo.getLengthInBits()>8*ec)throw Error("code length overflow. ("+eo.getLengthInBits()+">"+8*ec+")");for(eo.getLengthInBits()+4<=8*ec&&eo.put(0,4);eo.getLengthInBits()%8!=0;)eo.putBit(!1);for(;!(eo.getLengthInBits()>=8*ec)&&(eo.put(QRCode.PAD0,8),!(eo.getLengthInBits()>=8*ec));)eo.put(QRCode.PAD1,8);return QRCode.createBytes(eo,et)},QRCode.createBytes=function(K,G){for(var J=0,et=0,er=0,en=Array(G.length),es=Array(G.length),el=0;el<G.length;el++){var ec=G[el].dataCount,eu=G[el].totalCount-ec;et=Math.max(et,ec),er=Math.max(er,eu),en[el]=Array(ec);for(var ed=0;ed<en[el].length;ed++)en[el][ed]=255&K.buffer[ed+J];J+=ec;var eh=ei.getErrorCorrectPolynomial(eu),ep=new eo(en[el],eh.getLength()-1).mod(eh);es[el]=Array(eh.getLength()-1);for(var ed=0;ed<es[el].length;ed++){var ef=ed+ep.getLength()-es[el].length;es[el][ed]=ef>=0?ep.get(ef):0}}for(var eg=0,ed=0;ed<G.length;ed++)eg+=G[ed].totalCount;for(var em=Array(eg),ey=0,ed=0;ed<et;ed++)for(var el=0;el<G.length;el++)ed<en[el].length&&(em[ey++]=en[el][ed]);for(var ed=0;ed<er;ed++)for(var el=0;el<G.length;el++)ed<es[el].length&&(em[ey++]=es[el][ed]);return em},K.exports=QRCode},17611:function(K,G,J){var et=J(49381);function QRRSBlock(K,G){this.totalCount=K,this.dataCount=G}
72QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],QRRSBlock.getRSBlocks=function(K,G){var J=QRRSBlock.getRsBlockTable(K,G);if(void 0==J)throw Error("bad rs block @ typeNumber:"+K+"/errorCorrectLevel:"+G);for(var et=J.length/3,er=[],en=0;en<et;en++)for(var ei=J[3*en+0],eo=J[3*en+1],es=J[3*en+2],el=0;el<ei;el++)er.push(new QRRSBlock(eo,es));return er},QRRSBlock.getRsBlockTable=function(K,G){switch(G){case et.L:return QRRSBlock.RS_BLOCK_TABLE[(K-1)*4+0];case et.M:return QRRSBlock.RS_BLOCK_TABLE[(K-1)*4+1];case et.Q:return QRRSBlock.RS_BLOCK_TABLE[(K-1)*4+2];case et.H:return QRRSBlock.RS_BLOCK_TABLE[(K-1)*4+3];default:return}},K.exports=QRRSBlock},11518:function(K){for(var G={glog:function(K){if(K<1)throw Error("glog("+K+")");return G.LOG_TABLE[K]},gexp:function(K){for(;K<0;)K+=255;for(;K>=256;)K-=255;return G.EXP_TABLE[K]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},J=0;J<8;J++)G.EXP_TABLE[J]=1<<J;for(var J=8;J<256;J++)G.EXP_TABLE[J]=G.EXP_TABLE[J-4]^G.EXP_TABLE[J-5]^G.EXP_TABLE[J-6]^G.EXP_TABLE[J-8];for(var J=0;J<255;J++)G.LOG_TABLE[G.EXP_TABLE[J]]=J;K.exports=G},32792:function(K){K.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},93160:function(K,G,J){var et=J(32792),er=J(32832),en=J(11518),ei={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},eo={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(K){for(var G=K<<10;
72eo.getBCHDigit(G)-eo.getBCHDigit(eo.G15)>=0;)G^=eo.G15<<eo.getBCHDigit(G)-eo.getBCHDigit(eo.G15);return(K<<10|G)^eo.G15_MASK},getBCHTypeNumber:function(K){for(var G=K<<12;eo.getBCHDigit(G)-eo.getBCHDigit(eo.G18)>=0;)G^=eo.G18<<eo.getBCHDigit(G)-eo.getBCHDigit(eo.G18);return K<<12|G},getBCHDigit:function(K){for(var G=0;0!=K;)G++,K>>>=1;return G},getPatternPosition:function(K){return eo.PATTERN_POSITION_TABLE[K-1]},getMask:function(K,G,J){switch(K){case ei.PATTERN000:return(G+J)%2==0;case ei.PATTERN001:return G%2==0;case ei.PATTERN010:return J%3==0;case ei.PATTERN011:return(G+J)%3==0;case ei.PATTERN100:return(Math.floor(G/2)+Math.floor(J/3))%2==0;case ei.PATTERN101:return G*J%2+G*J%3==0;case ei.PATTERN110:return(G*J%2+G*J%3)%2==0;case ei.PATTERN111:return(G*J%3+(G+J)%2)%2==0;default:throw Error("bad maskPattern:"+K)}},getErrorCorrectPolynomial:function(K){for(var G=new er([1],0),J=0;J<K;J++)G=G.multiply(new er([1,en.gexp(J)],0));return G},getLengthInBits:function(K,G){if(1<=G&&G<10)switch(K){case et.MODE_NUMBER:return 10;case et.MODE_ALPHA_NUM:return 9;case et.MODE_8BIT_BYTE:case et.MODE_KANJI:return 8;default:throw Error("mode:"+K)}else if(G<27)switch(K){case et.MODE_NUMBER:return 12;case et.MODE_ALPHA_NUM:return 11;case et.MODE_8BIT_BYTE:return 16;case et.MODE_KANJI:return 10;default:throw Error("mode:"+K)}else if(G<41)switch(K){case et.MODE_NUMBER:return 14;case et.MODE_ALPHA_NUM:return 13;case et.MODE_8BIT_BYTE:return 16;case et.MODE_KANJI:return 12;default:throw Error("mode:"+K)}else throw Error("type:"+G)},getLostPoint:function(K){for(var G=K.getModuleCount(),J=0,et=0;et<G;et++)for(var er=0;er<G;er++){for(var en=0,ei=K.isDark(et,er),eo=-1;eo<=1;eo++)if(!(et+eo<0)&&!(G<=et+eo))for(var es=-1;es<=1;es++)!(er+es<0)&&!(G<=er+es)&&(0!=eo||0!=es)&&ei==K.isDark(et+eo,er+es)&&en++;en>5&&(J+=3+en-5)}for(var et=0;et<G-1;et++)for(var er=0;er<G-1;er++){var el=0;K.isDark(et,er)&&el++,K.isDark(et+1,er)&&el++,K.isDark(et,er+1)&&el++,K.isDark(et+1,er+1)&&el++,(0==el||4==el)&&(J+=3)}for(var et=0;et<G;et++)for(var er=0;er<G-6;er++)K.isDark(et,er)&&!K.isDark(et,er+1)&&K.isDark(et,er+2)&&K.isDark(et,er+3)&&K.isDark(et,er+4)&&!K.isDark(et,er+5)&&K.isDark(et,er+6)&&(J+=40);for(var er=0;er<G;er++)for(var et=0;et<G-6;et++)K.isDark(et,er)&&!K.isDark(et+1,er)&&K.isDark(et+2,er)&&K.isDark(et+3,er)&&K.isDark(et+4,er)&&!K.isDark(et+5,er)&&K.isDark(et+6,er)&&(J+=40);for(var ec=0,er=0;er<G;er++)for(var et=0;et<G;et++)K.isDark(et,er)&&ec++;return J+10*(Math.abs(100*ec/G/G-50)/5)}};K.exports=eo},27011:function(K,G,J){K.exports=function(K,G){"use strict";function o(K){return K&&"object"==typeof K&&"default"in K?K:{default:K}}var J=o(K),et=o(G);function r(K,G){for(var J=0;J<G.length;J++){var et=G[J];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(K,et.key,et)}}function s(K,G,J){return G in K?Object.defineProperty(K,G,{value:J,enumerable:!0,configurable:!0,writable:!0}):K[G]=J,K}function u(){return(u=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K}).apply(this,arguments)}function a(K,G){var J,et=Object.keys(K);return Object.getOwnPropertySymbols&&(J=Object.getOwnPropertySymbols(K),G&&(J=J.filter(function(G){return Object.getOwnPropertyDescriptor(K,G).enumerable})),et.push.apply(et,J)),et}function y(K){for(var G=1;G<arguments.length;G++){var J=null!=arguments[G]?arguments[G]:{};G%2?a(Object(J),!0).forEach(function(G){s(K,G,J[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(J)):a(Object(J)).forEach(function(G){Object.defineProperty(K,G,Object.getOwnPropertyDescriptor(J,G))})}return K}function h(K){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)})(K)}function c(K,G){return(c=Object.setPrototypeOf||function(K,G){return K.__proto__=G,K})(K,G)}function d(K){if(void 0===K)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function m(K,G){return function(K){if(Array.isArray(K))return K}(K)||function(K,G){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(K)){var J=[],et=!0,er=!1,en=void 0;try{for(var ei,eo=K[Symbol.iterator]();!(et=(ei=eo.next()).done)&&(J.push(ei.value),!G||J.length!==G);et=!0);}catch(K){er=!0,en=K}finally{try{et||null==eo.return||eo.return()}finally{if(er)throw en}}return J}}(K,G)||g(K,G)||function(){throw TypeError("Invalid attempt to de
72structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(K,G){if(K){if("string"==typeof K)return f(K,G);var J=Object.prototype.toString.call(K).slice(8,-1);return"Object"===J&&K.constructor&&(J=K.constructor.name),"Map"===J||"Set"===J?Array.from(K):"Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?f(K,G):void 0}}function f(K,G){(null==G||G>K.length)&&(G=K.length);for(var J=0,et=Array(G);J<G;J++)et[J]=K[J];return et}function v(K,G){return new Promise(function(J,et){var er=new Image;er.onload=function(){return J(er)},er.onerror=et,!1==(null!==K&&!!K.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&G&&(er.crossOrigin=G),er.src=K})}var er,en=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||0<navigator.msMaxTouchPoints)),ei="undefined"!=typeof File,eo={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},es=en?eo.touch:eo.desktop,el="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,ec={x:.5,y:.5},eu=function(){!function(K,G){if("function"!=typeof G&&null!==G)throw TypeError("Super expression must either be null or a function");K.prototype=Object.create(G&&G.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),G&&c(K,G)}(a,et.default.Component);var K,G,J,er=(K=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(K){return!1}}(),function(){var G,J,et=h(a);return J=K?(G=h(this).constructor,Reflect.construct(et,arguments,G)):et.apply(this,arguments),J&&("object"==typeof J||"function"==typeof J)?J:d(this)});function a(K){var G;return function(K,G){if(!(K instanceof G))throw TypeError("Cannot call a class as a function")}(this,a),s(d(G=er.call(this,K)),"state",{drag:!1,my:null,mx:null,image:ec}),s(d(G),"handleImageReady",function(K){var J=G.getInitialSize(K.width,K.height);J.resource=K,J.x=.5,J.y=.5,J.backgroundColor=G.props.backgroundColor,G.setState({drag:!1,image:J},G.props.onImageReady),G.props.onLoadSuccess(J)}),s(d(G),"clearImage",function(){G.canvas.getContext("2d").clearRect(0,0,G.canvas.width,G.canvas.height),G.setState({image:ec})}),s(d(G),"handleMouseDown",function(K){(K=K||window.event).preventDefault(),G.setState({drag:!0,mx:null,my:null})}),s(d(G),"handleMouseUp",function(){G.state.drag&&(G.setState({drag:!1}),G.props.onMouseUp())}),s(d(G),"handleMouseMove",function(K){var J,et,er,en,ei,eo,es,el,ec,eu,ed,eh,ep,ef,eg,em;K=K||window.event,!1!==G.state.drag&&(K.preventDefault(),er={mx:J=K.targetTouches?K.targetTouches[0].pageX:K.clientX,my:et=K.targetTouches?K.targetTouches[0].pageY:K.clientY},em=(em=G.props.rotate%360)<0?em+360:em,G.state.mx&&G.state.my&&(en=G.state.mx-J,ei=G.state.my-et,eo=G.state.image.width*G.props.scale,es=G.state.image.height*G.props.scale,ec=(el=G.getCroppingRect()).x,eu=el.y,ec*=eo,eu*=es,eh=Math.cos((ed=function(K){return K*(Math.PI/180)})(em)),ef=eu+-en*(ep=Math.sin(ed(em)))+ei*eh,eg={x:(ec+en*eh+ei*ep)/eo+1/G.props.scale*G.getXScale()/2,y:ef/es+1/G.props.scale*G.getYScale()/2},G.props.onPositionChange(eg),er.image=y(y({},G.state.image),eg)),G.setState(er),G.props.onMouseMove(K))}),s(d(G),"setCanvas",function(K){G.canvas=K}),G.canvas=null,G}return G=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(el=1);var K,G,J=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(J),document&&(K=!!function(){var K=!1;try{var G=Object.defineProperty({},"passive",{get:function(){K=!0}});window.addEventListener("test",G,G),window.removeEventListener("test",G,G)}catch(G){K=!1}return K}()&&{passive:!1},G=es.native,document.addEventListener(G.move,this.handleMouseMove,K),document.addEventListener(G.up,this.handleMouseUp,K),en&&(document.addEventListener(G.mouseMove,this.handleMouseMove,K),document.addEventListener(G.mouseUp,this.handleMouseUp,K)))}},{key:"componentDidUpdate",value:function(K,G){this.props.image&&this.props.image!==K.image||this.props.width!==K.width||this.props.height!==K.height||this.props.backgroundColor!==K.backgroundColor?this.loadImage(this.props.image):this.props.image||G.image===ec||this.clearImage();var J=this.canvas.getContext("2d");J.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(J),this.paintImage(J,this.state.image,this.props.border),K.image===this.props.image&&K.width===this.props.width&&K.height===this.props.height&&K.position===this.props.position&&K.scale===this.props.scale&&K.rotate===this.props.rotate&&G.my===this.state.my&&G.mx===this.state.mx&&G.image.x===this.state.image.x&&G.image.y===this.state.image.y&&G.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var K;document&&(K=es.native,document.removeEventListener(K.move,this.handleMouseMove,!1),document.removeEventListener(K.up,this.handleMouseUp,!1),en&&(document.removeEventListener(K.mouseMove,this.handleMouseMove,!1),document.removeEventListener(K.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(K){var G=0<arguments.length&&void 0!==K?K:this.props.border;return Array.isArray(G)?G:[G,G]}},{key:"getDimensions",value:function(){var K=this.props,G=K.width,J=K.height,et=K.rotate,er=K.border,en={},ei=m(this.getBorders(er),2),eo=ei[0],es=ei[1];return this.isVertical()?(en.width=J,en.height=G):(en.width=G,en.height=J),en.width+=2*eo,en.height+=2*es,{canvas:en,rotate:et,width:G,height:J,border:er}}}
72,{key:"getImage",value:function(){var K=this.getCroppingRect(),G=this.state.image;K.x*=G.resource.width,K.y*=G.resource.height,K.width*=G.resource.width,K.height*=G.resource.height;var J=document.createElement("canvas");this.isVertical()?(J.width=K.height,J.height=K.width):(J.width=K.width,J.height=K.height);var et=J.getContext("2d");return et.translate(J.width/2,J.height/2),et.rotate(this.props.rotate*Math.PI/180),et.translate(-J.width/2,-J.height/2),this.isVertical()&&et.translate((J.width-J.height)/2,(J.height-J.width)/2),G.backgroundColor&&(et.fillStyle=G.backgroundColor,et.fillRect(-K.x,-K.y,G.resource.width,G.resource.height)),et.drawImage(G.resource,-K.x,-K.y),J}},{key:"getImageScaledToCanvas",value:function(){var K=this.getDimensions(),G=K.width,J=K.height,et=document.createElement("canvas");return this.isVertical()?(et.width=J,et.height=G):(et.width=G,et.height=J),this.paintImage(et.getContext("2d"),this.state.image,0,1),et}},{key:"getXScale",value:function(){return Math.min(1,this.props.width/this.props.height/(this.state.image.width/this.state.image.height))}},{key:"getYScale",value:function(){return Math.min(1,this.props.height/this.props.width/(this.state.image.height/this.state.image.width))}},{key:"getCroppingRect",value:function(){var K=this.props.position||{x:this.state.image.x,y:this.state.image.y},G=1/this.props.scale*this.getXScale(),J=1/this.props.scale*this.getYScale(),et={x:K.x-G/2,y:K.y-J/2,width:G,height:J},er=0,en=1-et.width,ei=0,eo=1-et.height;return(this.props.disableBoundaryChecks||1<G||1<J)&&(er=-et.width,ei=-et.height,eo=en=1),y(y({},et),{},{x:Math.max(er,Math.min(et.x,en)),y:Math.max(ei,Math.min(et.y,eo))})}},{key:"loadImage",value:function(K){ei&&K instanceof File?this.loadingImage=new Promise(function(G,J){var et=new FileReader;et.onload=function(K){try{var et=v(K.target.result);G(et)}catch(K){J(K)}},et.readAsDataURL(K)}).then(this.handleImageReady).catch(this.props.onLoadFailure):"string"==typeof K&&(this.loadingImage=v(K,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(K,G){var J,et,er=this.getDimensions();return G/K<er.height/er.width?et=K*((J=this.getDimensions().height)/G):J=G*((et=this.getDimensions().width)/K),{height:J,width:et}}},{key:"paintImage",value:function(K,G,J,et){var er,en=3<arguments.length&&void 0!==et?et:el;G.resource&&(er=this.calculatePosition(G,J),K.save(),K.translate(K.canvas.width/2,K.canvas.height/2),K.rotate(this.props.rotate*Math.PI/180),K.translate(-K.canvas.width/2,-K.canvas.height/2),this.isVertical()&&K.translate((K.canvas.width-K.canvas.height)/2,(K.canvas.height-K.canvas.width)/2),K.scale(en,en),K.globalCompositeOperation="destination-over",K.drawImage(G.resource,er.x,er.y,er.width,er.height),G.backgroundColor&&(K.fillStyle=G.backgroundColor,K.fillRect(er.x,er.y,er.width,er.height)),K.restore())}},{key:"calculatePosition",value:function(K,G){K=K||this.state.image;var J=m(this.getBorders(G),2),et=J[0],er=J[1],en=this.getCroppingRect(),ei=K.width*this.props.scale,eo=K.height*this.props.scale,es=-en.x*ei,el=-en.y*eo;return this.isVertical()?(es+=er,el+=et):(es+=et,el+=er),{x:es,y:el,height:eo,width:ei}}},{key:"paint",value:function(K){K.save(),K.scale(el,el),K.translate(0,0),K.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var G,J,et,er,en,ei=this.props.borderRadius,eo=this.getDimensions(),es=m(this.getBorders(eo.border),2),ec=es[0],eu=es[1],ed=eo.canvas.height,eh=eo.canvas.width,ei=Math.max(ei,0);ei=Math.min(ei,eh/2-ec,ed/2-eu),K.beginPath(),G=eh-2*ec,J=ed-2*eu,0===(et=ei)?K.rect(ec,eu,G,J):(er=G-et,en=J-et,K.translate(ec,eu),K.arc(et,et,et,Math.PI,1.5*Math.PI),K.lineTo(er,0),K.arc(er,et,et,1.5*Math.PI,2*Math.PI),K.lineTo(G,en),K.arc(er,en,et,2*Math.PI,.5*Math.PI),K.lineTo(et,J),K.arc(et,en,et,.5*Math.PI,Math.PI),K.translate(-ec,-eu)),K.rect(eh,0,-eh,ed),K.fill("evenodd"),K.restore()}},{key:"render",value:function(){var K=this.props,G=(K.scale,K.rotate,K.image,K.border,K.borderRadius,K.width,K.height,K.position,K.color,K.backgroundColor,K.style),J=(K.crossOrigin,K.onLoadFailure,K.onLoadSuccess,K.onImageReady,K.onImageChange,K.onMouseUp,K.onMouseMove,K.onPositionChange,K.disableBoundaryChecks,K.disableHiDPIScaling,K.disableCanvasRotation,function(K,G){if(null==K)return{};var J,et=function(K,G){if(null==K)return{};for(var J,et={},er=Object.keys(K),en=0;en<er.length;en++)J=er[en],0<=G.indexOf(J)||(et[J]=K[J]);return et}(K,G);if(Object.getOwnPropertySymbols)for(var er=Object.getOwnPropertySymbols(K),en=0;en<er.length;en++)J=er[en],0<=G.indexOf(J)||Object.prototype.propertyIsEnumerable.call(K,J)&&(et[J]=K[J]);return et}(K,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),er=this.getDimensions(),ei={width:er.canvas.width,height:er.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},eo={width:er.canvas.width*el,height:er.canvas.height*el,style:y(y({},ei),G)};return eo[es.react.down]=this.handleMouseDown,en&&(eo[es.react.mouseDown]=this.handleMouseDown),et.default.createElement("canvas",u({ref:this.setCanvas},eo,J))}}],r(a.prototype,G),J&&r(a,J),a}();return s(eu,"propTypes",{scale:J.default.number,rotate:J.default.number,image:J.default.oneOfType([J.default.string].concat(function(K){if(Array.isArray(K))return f(K)}(er=ei?[J.default.instanceOf(File)]:[])||function(K){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(K))return Array.from(K)}(er)||g(er)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),border:J.default.oneOfType([J.default.number,J.default.arrayOf(J.default.number)]),borderRadius:J.default.number,width:J.default.number,height:J.default.number,position:J.default.shape({x:J.default.number,y:J.default.number}),color:J.default.arrayOf(J.default.number),backgroundColor:J.default.string,crossOrigin:J.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:J.default.func,onLoadSuccess:J.default.func,onImageReady:J.default.func,onImageChange:J.default.func,onMouseUp:J.default.func,onMouseMove:J.default.func,onPositionChange:J.default.func,disableBoundaryChecks:J.default.bool,disableHiDPIScaling:J.default.bool,disableCanvasRotation:J.default.bool}),s(eu,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),eu}(J(45697),J(67294))},69590:function(K){var G="undefined"!=typeof Element,J="function"==typeof Map,et="function"==typeof Set,er="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;K.exports=function(K,en){try{return function equal(K,en){if(K===en)return!0;
72if(K&&en&&"object"==typeof K&&"object"==typeof en){var ei,eo,es,el;if(K.constructor!==en.constructor)return!1;if(Array.isArray(K)){if((ei=K.length)!=en.length)return!1;for(eo=ei;0!=eo--;)if(!equal(K[eo],en[eo]))return!1;return!0}if(J&&K instanceof Map&&en instanceof Map){if(K.size!==en.size)return!1;for(el=K.entries();!(eo=el.next()).done;)if(!en.has(eo.value[0]))return!1;for(el=K.entries();!(eo=el.next()).done;)if(!equal(eo.value[1],en.get(eo.value[0])))return!1;return!0}if(et&&K instanceof Set&&en instanceof Set){if(K.size!==en.size)return!1;for(el=K.entries();!(eo=el.next()).done;)if(!en.has(eo.value[0]))return!1;return!0}if(er&&ArrayBuffer.isView(K)&&ArrayBuffer.isView(en)){if((ei=K.length)!=en.length)return!1;for(eo=ei;0!=eo--;)if(K[eo]!==en[eo])return!1;return!0}if(K.constructor===RegExp)return K.source===en.source&&K.flags===en.flags;if(K.valueOf!==Object.prototype.valueOf&&"function"==typeof K.valueOf&&"function"==typeof en.valueOf)return K.valueOf()===en.valueOf();if(K.toString!==Object.prototype.toString&&"function"==typeof K.toString&&"function"==typeof en.toString)return K.toString()===en.toString();if((ei=(es=Object.keys(K)).length)!==Object.keys(en).length)return!1;for(eo=ei;0!=eo--;)if(!Object.prototype.hasOwnProperty.call(en,es[eo]))return!1;if(G&&K instanceof Element)return!1;for(eo=ei;0!=eo--;)if(("_owner"!==es[eo]&&"__v"!==es[eo]&&"__o"!==es[eo]||!K.$$typeof)&&!equal(K[es[eo]],en[es[eo]]))return!1;return!0}return K!=K&&en!=en}(K,en)}catch(K){if((K.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw K}}},34853:function(K,G,J){"use strict";J.d(G,{Z:function(){return ef}});var et,er,en=J(67294),ei=J(45697),eo=J.n(ei),es=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K}).apply(this,arguments)}function _assertThisInitialized(K){if(void 0===K)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function _setPrototypeOf(K,G){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,G){return K.__proto__=G,K})(K,G)}var el=function(K){function ReCAPTCHA(){var G;return(G=K.call(this)||this).handleExpired=G.handleExpired.bind(_assertThisInitialized(G)),G.handleErrored=G.handleErrored.bind(_assertThisInitialized(G)),G.handleChange=G.handleChange.bind(_assertThisInitialized(G)),G.handleRecaptchaRef=G.handleRecaptchaRef.bind(_assertThisInitialized(G)),G}ReCAPTCHA.prototype=Object.create(K.prototype),ReCAPTCHA.prototype.constructor=ReCAPTCHA,_setPrototypeOf(ReCAPTCHA,K);var G=ReCAPTCHA.prototype;return G.getCaptchaFunction=function(K){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[K]:this.props.grecaptcha[K]:null},G.getValue=function(){var K=this.getCaptchaFunction("getResponse");return K&&void 0!==this._widgetId?K(this._widgetId):null},G.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},G.execute=function(){var K=this.getCaptchaFunction("execute");if(K&&void 0!==this._widgetId)return K(this._widgetId);this._executeRequested=!0},G.executeAsync=function(){var K=this;return new Promise(function(G,J){K.executionResolve=G,K.executionReject=J,K.execute()})},G.reset=function(){var K=this.getCaptchaFunction("reset");K&&void 0!==this._widgetId&&K(this._widgetId)},G.forceReset=function(){var K=this.getCaptchaFunction("reset");K&&K()},G.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},G.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},G.handleChange=function(K){this.props.onChange&&this.props.onChange(K),this.executionResolve&&(this.executionResolve(K),delete this.executionReject,delete this.executionResolve)},G.explicitRender=function(){var K=this.getCaptchaFunction("render");if(K&&void 0===this._widgetId){var G=document.createElement("div");this._widgetId=K(G,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(G)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},G.componentDidMount=function(){this.explicitRender()},G.componentDidUpdate=function(){this.explicitRender()},G.handleRecaptchaRef=function(K){this.captcha=K},G.render=function(){var K=this.props,G=(K.sitekey,K.onChange,K.theme,K.type,K.tabindex,K.onExpired,K.onErrored,K.size,K.stoken,K.grecaptcha,K.badge,K.hl,K.isolated,function(K,G){if(null==K)return{};var J,et,er={},en=Object.keys(K);for(et=0;et<en.length;et++)J=en[et],G.indexOf(J)>=0||(er[J]=K[J]);return er}(K,es));return en.createElement("div",_extends({},G,{ref:this.handleRecaptchaRef}))},ReCAPTCHA}(en.Component);el.displayName="ReCAPTCHA",el.propTypes={sitekey:eo().string.isRequired,onChange:eo().func,grecaptcha:eo().object,theme:eo().oneOf(["dark","light"]),type:eo().oneOf(["image","audio"]),tabindex:eo().number,onExpired:eo().func,onErrored:eo().func,size:eo().oneOf(["compact","normal","invisible"]),stoken:eo().string,hl:eo().string,badge:eo().oneOf(["bottomright","bottomleft","inline"]),isolated:eo().bool}
72,el.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var ec=J(8679),eu=J.n(ec);function async_script_loader_extends(){return(async_script_loader_extends=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K}).apply(this,arguments)}var ed={},eh=0,ep="onloadcallback";function getOptions(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var ef=(et=function(){var K=getOptions(),G=K.useRecaptchaNet?"recaptcha.net":"www.google.com";return K.enterprise?"https://"+G+"/recaptcha/enterprise.js?onload="+ep+"&render=explicit":"https://"+G+"/recaptcha/api.js?onload="+ep+"&render=explicit"},er=(er={callbackName:ep,globalName:"grecaptcha",attributes:getOptions().nonce?{nonce:getOptions().nonce}:{}})||{},function(K){var G=K.displayName||K.name||"Component",J=function(G){function AsyncScriptLoader(K,J){var et;return(et=G.call(this,K,J)||this).state={},et.__scriptURL="",et}AsyncScriptLoader.prototype=Object.create(G.prototype),AsyncScriptLoader.prototype.constructor=AsyncScriptLoader,AsyncScriptLoader.__proto__=G;var J=AsyncScriptLoader.prototype;return J.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+eh++),this.__scriptLoaderID},J.setupScriptURL=function(){return this.__scriptURL="function"==typeof et?et():et,this.__scriptURL},J.asyncScriptLoaderHandleLoad=function(K){var G=this;this.setState(K,function(){return G.props.asyncScriptOnLoad&&G.props.asyncScriptOnLoad(G.state)})},J.asyncScriptLoaderTriggerOnScriptLoaded=function(){var K=ed[this.__scriptURL];if(!K||!K.loaded)throw Error("Script is not loaded.");for(var G in K.observers)K.observers[G](K);delete window[er.callbackName]},J.componentDidMount=function(){var K=this,G=this.setupScriptURL(),J=this.asyncScriptLoaderGetScriptLoaderID(),et=er,en=et.globalName,ei=et.callbackName,eo=et.scriptId;if(en&&void 0!==window[en]&&(ed[G]={loaded:!0,observers:{}}),ed[G]){var es=ed[G];if(es&&(es.loaded||es.errored)){this.asyncScriptLoaderHandleLoad(es);return}es.observers[J]=function(G){return K.asyncScriptLoaderHandleLoad(G)};return}var el={};el[J]=function(G){return K.asyncScriptLoaderHandleLoad(G)},ed[G]={loaded:!1,observers:el};var ec=document.createElement("script");for(var eu in ec.src=G,ec.async=!0,er.attributes)ec.setAttribute(eu,er.attributes[eu]);eo&&(ec.id=eo);var callObserverFuncAndRemoveObserver=function(K){if(ed[G]){var J=ed[G].observers;for(var et in J)K(J[et])&&delete J[et]}};ei&&"undefined"!=typeof window&&(window[ei]=function(){return K.asyncScriptLoaderTriggerOnScriptLoaded()}),ec.onload=function(){var K=ed[G];K&&(K.loaded=!0,callObserverFuncAndRemoveObserver(function(G){return!ei&&(G(K),!0)}))},ec.onerror=function(){var K=ed[G];K&&(K.errored=!0,callObserverFuncAndRemoveObserver(function(G){return G(K),!0}))},document.body.appendChild(ec)},J.componentWillUnmount=function(){var K=this.__scriptURL;if(!0===er.removeOnUnmount)for(var G=document.getElementsByTagName("script"),J=0;J<G.length;J+=1)G[J].src.indexOf(K)>-1&&G[J].parentNode&&G[J].parentNode.removeChild(G[J]);var et=ed[K];et&&(delete et.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===er.removeOnUnmount&&delete ed[K])},J.render=function(){var G=er.globalName,J=this.props,et=(J.asyncScriptOnLoad,J.forwardedRef),ei=function(K,G){if(null==K)return{};var J,et,er={},en=Object.keys(K);for(et=0;et<en.length;et++)G.indexOf(J=en[et])>=0||(er[J]=K[J]);return er}(J,["asyncScriptOnLoad","forwardedRef"]);return G&&"undefined"!=typeof window&&(ei[G]=void 0!==window[G]?window[G]:void 0),ei.ref=et,(0,en.createElement)(K,ei)},AsyncScriptLoader}(en.Component),ei=(0,en.forwardRef)(function(K,G){return(0,en.createElement)(J,async_script_loader_extends({},K,{forwardedRef:G}))});return ei.displayName="AsyncScriptLoader("+G+")",ei.propTypes={asyncScriptOnLoad:eo().func},eu()(ei,K)})(el)},93670:function(K,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.DEFAULT_DATA_URL_KEY=G.INIT_MAX_NUMBER=G.DEFAULT_NULL_INDEX=void 0,G.DEFAULT_NULL_INDEX=-1,G.INIT_MAX_NUMBER=1e3,G.DEFAULT_DATA_URL_KEY="dataURL"},3942:function(K,G,J){"use strict";var et=this&&this.__assign||function(){return(et=Object.assign||function(K){for(var G,J=1,et=arguments.length;J<et;J++)for(var er in G=arguments[J])Object.prototype.hasOwnProperty.call(G,er)&&(K[er]=G[er]);return K}).apply(this,arguments)},er=this&&this.__createBinding||(Object.create?function(K,G,J,et){void 0===et&&(et=J),Object.defineProperty(K,et,{enumerable:!0,get:function(){return G[J]}})}:function(K,G,J,et){void 0===et&&(et=J),K[et]=G[J]}),en=this&&this.__setModuleDefault||(Object.create?function(K,G){Object.defineProperty(K,"default",{enumerable:!0,value:G})}:function(K,G){K.default=G}),ei=this&&this.__importStar||function(K){if(K&&K.__esModule)return K;var G={};if(null!=K)for(var J in K)"default"!==J&&Object.prototype.hasOwnProperty.call(K,J)&&er(G,K,J);return en(G,K),G},eo=this&&this.__awaiter||function(K,G,J,et){return new(J||(J=Promise))(function(er,en){function fulfilled(K){try{step(et.next(K))}catch(K){en(K)}}function rejected(K){try{step(et.throw(K))}catch(K){en(K)}}function step(K){var G;K.done?er(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})},es=this&&this.__generator||function(K,G){var J,et,er,en,ei={label:0,sent:function(){if(1&er[0])throw er[1];return er[1]}
72,trys:[],ops:[]};return en={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(en[Symbol.iterator]=function(){return this}),en;function verb(en){return function(eo){return function(en){if(J)throw TypeError("Generator is already executing.");for(;ei;)try{if(J=1,et&&(er=2&en[0]?et.return:en[0]?et.throw||((er=et.return)&&er.call(et),0):et.next)&&!(er=er.call(et,en[1])).done)return er;switch(et=0,er&&(en=[2&en[0],er.value]),en[0]){case 0:case 1:er=en;break;case 4:return ei.label++,{value:en[1],done:!1};case 5:ei.label++,et=en[1],en=[0];continue;case 7:en=ei.ops.pop(),ei.trys.pop();continue;default:if(!(er=(er=ei.trys).length>0&&er[er.length-1])&&(6===en[0]||2===en[0])){ei=0;continue}if(3===en[0]&&(!er||en[1]>er[0]&&en[1]<er[3])){ei.label=en[1];break}if(6===en[0]&&ei.label<er[1]){ei.label=er[1],er=en;break}if(er&&ei.label<er[2]){ei.label=er[2],ei.ops.push(en);break}er[2]&&ei.ops.pop(),ei.trys.pop();continue}en=G.call(K,ei)}catch(K){en=[6,K],et=0}finally{J=er=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([en,eo])}}},el=this&&this.__spreadArrays||function(){for(var K=0,G=0,J=arguments.length;G<J;G++)K+=arguments[G].length;for(var et=Array(K),er=0,G=0;G<J;G++)for(var en=arguments[G],ei=0,eo=en.length;ei<eo;ei++,er++)et[er]=en[ei];return et};Object.defineProperty(G,"__esModule",{value:!0});var ec=ei(J(67294)),eu=J(99183),ed=J(93838),eh=J(93670);G.default=function(K){var G=K.value,J=K.onChange,er=K.onError,en=K.children,ei=K.dataURLKey,ep=void 0===ei?eh.DEFAULT_DATA_URL_KEY:ei,ef=K.multiple,eg=void 0!==ef&&ef,em=K.maxNumber,ey=void 0===em?eh.INIT_MAX_NUMBER:em,ev=K.acceptType,eb=K.maxFileSize,eC=K.resolutionWidth,ew=K.resolutionHeight,e_=K.resolutionType,eS=K.inputProps,ek=void 0===eS?{}:eS,eA=(void 0===G?[]:G)||[],eE=ec.useRef(null),eT=ec.useState(eh.DEFAULT_NULL_INDEX),eI=eT[0],eP=eT[1],eO=ec.useState(null),eR=eO[0],ex=eO[1],eD=ec.useState(!1),eM=eD[0],eN=eD[1],eL=ec.useCallback(function(){return eu.openFileDialog(eE)},[eE]),eF=ec.useCallback(function(){eP(eh.DEFAULT_NULL_INDEX),eL()},[eL]),eB=ec.useCallback(function(){null==J||J([])},[J]),handleChange=function(K){return eo(void 0,void 0,void 0,function(){var G,et,en,ei,ec;return es(this,function(ef){switch(ef.label){case 0:if(!K)return[2];return[4,eu.getListFiles(K,ep)];case 1:var em;if(!(G=ef.sent()).length)return[2];return[4,(em=G,eo(void 0,void 0,void 0,function(){var K;return es(this,function(G){switch(G.label){case 0:return[4,ed.getErrorValidation({fileList:em,maxFileSize:eb,maxNumber:ey,acceptType:ev,keyUpdate:eI,resolutionType:e_,resolutionWidth:eC,resolutionHeight:ew,value:eA})];case 1:if(K=G.sent())return ex(K),null==er||er(K,em),[2,!1];return eR&&ex(null),[2,!0]}})}))];case 2:if(!ef.sent())return[2];if(en=[],eI>eh.DEFAULT_NULL_INDEX)ei=G[0],(et=el(eA))[eI]=ei,en.push(eI);else if(eg)for(et=el(eA,G),ec=eA.length;ec<et.length;ec+=1)en.push(ec);else et=[G[0]],en.push(0);return null==J||J(et,en),[2]}})})},eU=ec.useMemo(function(){return eu.getAcceptTypeString(ev)},[ev]);return ec.default.createElement(ec.default.Fragment,null,ec.default.createElement("input",et({type:"file",accept:eU,ref:eE,multiple:eg&&eI===eh.DEFAULT_NULL_INDEX,onChange:function(K){return eo(void 0,void 0,void 0,function(){return es(this,function(G){switch(G.label){case 0:return[4,handleChange(K.target.files)];case 1:return G.sent(),eI>eh.DEFAULT_NULL_INDEX&&eP(eh.DEFAULT_NULL_INDEX),eE.current&&(eE.current.value=""),[2]}})})},style:{display:"none"}},ek)),null==en?void 0:en({imageList:eA,onImageUpload:eF,onImageRemoveAll:eB,onImageUpdate:function(K){eP(K),eL()},onImageRemove:function(K){var G=el(eA);Array.isArray(K)?K.forEach(function(K){G.splice(K,1)}):G.splice(K,1),null==J||J(G)},errors:eR,dragProps:{onDrop:function(K){K.preventDefault(),K.stopPropagation(),eN(!1),K.dataTransfer.files&&K.dataTransfer.files.length>0&&handleChange(K.dataTransfer.files)},onDragEnter:function(K){K.preventDefault(),K.stopPropagation(),K.dataTransfer.items&&K.dataTransfer.items.length>0&&eN(!0)},onDragLeave:function(K){K.preventDefault(),K.stopPropagation(),eN(!1)},onDragOver:function(K){K.preventDefault(),K.stopPropagation()},onDragStart:function(K){K.preventDefault(),K.stopPropagation(),K.dataTransfer.clearData()}},isDragging:eM}))}},99183:function(K,G){"use strict";
72Object.defineProperty(G,"__esModule",{value:!0}),G.getListFiles=G.getImage=G.getBase64=G.getAcceptTypeString=G.openFileDialog=void 0,G.openFileDialog=function(K){K.current&&K.current.click()},G.getAcceptTypeString=function(K){return K&&K.length>0?K.map(function(K){return"."+K}).join(", "):"image/*"},G.getBase64=function(K){var G=new FileReader;return new Promise(function(J){G.addEventListener("load",function(){return J(String(G.result))}),G.readAsDataURL(K)})},G.getImage=function(K){var G=new Image;return new Promise(function(J){G.addEventListener("load",function(){return J(G)}),G.src=URL.createObjectURL(K)})},G.getListFiles=function(K,J){for(var et=[],er=0;er<K.length;er+=1)et.push(G.getBase64(K[er]));return Promise.all(et).then(function(G){return G.map(function(G,et){var er;return(er={})[J]=G,er.file=K[et],er})})}},93838:function(K,G,J){"use strict";var et=this&&this.__awaiter||function(K,G,J,et){return new(J||(J=Promise))(function(er,en){function fulfilled(K){try{step(et.next(K))}catch(K){en(K)}}function rejected(K){try{step(et.throw(K))}catch(K){en(K)}}function step(K){var G;K.done?er(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})},er=this&&this.__generator||function(K,G){var J,et,er,en,ei={label:0,sent:function(){if(1&er[0])throw er[1];return er[1]},trys:[],ops:[]};return en={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(en[Symbol.iterator]=function(){return this}),en;function verb(en){return function(eo){return function(en){if(J)throw TypeError("Generator is already executing.");for(;ei;)try{if(J=1,et&&(er=2&en[0]?et.return:en[0]?et.throw||((er=et.return)&&er.call(et),0):et.next)&&!(er=er.call(et,en[1])).done)return er;switch(et=0,er&&(en=[2&en[0],er.value]),en[0]){case 0:case 1:er=en;break;case 4:return ei.label++,{value:en[1],done:!1};case 5:ei.label++,et=en[1],en=[0];continue;case 7:en=ei.ops.pop(),ei.trys.pop();continue;default:if(!(er=(er=ei.trys).length>0&&er[er.length-1])&&(6===en[0]||2===en[0])){ei=0;continue}if(3===en[0]&&(!er||en[1]>er[0]&&en[1]<er[3])){ei.label=en[1];break}if(6===en[0]&&ei.label<er[1]){ei.label=er[1],er=en;break}if(er&&ei.label<er[2]){ei.label=er[2],ei.ops.push(en);break}er[2]&&ei.ops.pop(),ei.trys.pop();continue}en=G.call(K,ei)}catch(K){en=[6,K],et=0}finally{J=er=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([en,eo])}}};Object.defineProperty(G,"__esModule",{value:!0}),G.getErrorValidation=G.isMaxNumberValid=G.isAcceptTypeValid=G.isMaxFileSizeValid=G.isImageValid=G.isResolutionValid=void 0;var en=J(93670),ei=J(99183);G.isResolutionValid=function(K,G,J,et){if(void 0===J&&(J=0),void 0===et&&(et=1),!J||!et||!K.width||!K.height)return!0;switch(G){case"absolute":if(K.width===J&&K.height===et)return!0;break;case"ratio":var er=J/et;if(K.width/K.height===er)return!0;break;case"less":if(K.width<=J&&K.height<=et)return!0;break;case"more":if(K.width>=J&&K.height>=et)return!0}return!1},G.isImageValid=function(K){return!!K.includes("image")},G.isMaxFileSizeValid=function(K,G){return!G||K<=G},G.isAcceptTypeValid=function(K,G){if(K&&K.length>0){var J=G.split(".").pop()||"";if(0>K.findIndex(function(K){return K.toLowerCase()===J.toLowerCase()}))return!1}return!0},G.isMaxNumberValid=function(K,G,J){if(0!==G&&!G)return!0;if(J===en.DEFAULT_NULL_INDEX){if(K<=G)return!0}else if(K<=G+1)return!0;return!1},G.getErrorValidation=function(K){var J=K.fileList,en=K.value,eo=K.maxNumber,es=K.keyUpdate,el=K.acceptType,ec=K.maxFileSize,eu=K.resolutionType,ed=K.resolutionWidth,eh=K.resolutionHeight;return et(void 0,void 0,void 0,function(){var K,et,ep,ef;return er(this,function(er){switch(er.label){case 0:if(K={},G.isMaxNumberValid(J.length+en.length,eo,es))return[3,1];return K.maxNumber=!0,[3,5];case 1:et=0,er.label=2;case 2:if(!(et<J.length))return[3,5];if(!(ep=J[et].file))return[3,4];if(!G.isImageValid(ep.type)||!G.isAcceptTypeValid(el,ep.name))return K.acceptType=!0,[3,5];if(!G.isMaxFileSizeValid(ep.size,ec))return K.maxFileSize=!0,[3,5];if(!eu)return[3,4];return[4,ei.getImage(ep)];case 3:if(ef=er.sent(),!G.isResolutionValid(ef,eu,ed,eh))return K.resolution=!0,[3,5];er.label=4;case 4:return et+=1,[3,2];case 5:if(Object.values(K).find(Boolean))return[2,K];return[2,null]}})})}},76627:function(K,G,J){K.exports=J(53462)},53462:function(K,G,J){"use strict";var et,er=(et=J(67294))&&"object"==typeof et&&"default"in et?et.default:et,en=J(73935);function _extends(){return(_extends=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K}).apply(this,arguments)}function _assertThisInitialized(K){if(void 0===K)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return K}var invariant_1=function(K,G,J,et,er,en,ei,eo){if(!K){var es;if(void 0===G)es=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var el=[J,et,er,en,ei,eo],ec=0;(es=Error(G.replace(/%s/g,function(){return el[ec++]}))).name="Invariant Violation"}throw es.framesToPop=1,es}};function setInputSelection(K,G,J){if("selectionStart"in K&&"selectionEnd"in K)K.selectionStart=G,K.selectionEnd=J;else{var et=K.createTextRange();et.collapse(!0),et.moveStart("character",G),et.moveEnd("character",J-G),et.select()}}var ei={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};function parseMask(K,G,J){var et="",er="",en=null,eo=[];if(void 0===G&&(G="_"),null==J&&(J=ei),!K||"string"!=typeof K)return{maskChar:G,formatChars:J,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var es=!1;return K.split("").forEach(function(K){es=!es&&"\\"===K||(es||!J[K]?(eo.push(et.length),et.length===eo.length-1&&(er+=K)):en=et.length+1,et+=K,!1)}),{maskChar:G,formatChars:J,prefix:er,mask:et,lastEditablePosition:en,permanents:eo}}function isPermanentCharacter(K,G){return -1!==K.permanents.indexOf(G)}function isAllowedCharacter(K,G,J){var et=K.mask,er=K.formatChars;if(!J)return!1;if(isPermanentCharacter(K,G))return et[G]===J;var en=er[et[G]];return new RegExp(en).test(J)}function isEmpty(K,G){return G.split("").every(function(G,J){return isPermanentCharacter(K,J)||!isAllowedCharacter(K,J,G)})}function getFilledLength(K,G){var J=K.maskChar,et=K.prefix;if(!J){for(;G.length>et.length&&isPermanentCharacter(K,G.length-1);)G=G.slice(0,G.length-1);return G.length}for(var er=et.length,en=G.length;en>=et.length;en--){var ei=G[en];if(!isPermanentCharacter(K,en)&&isAllowedCharacter(K,en,ei)){er=en+1;break}}return er}function isFilled(K,G){return getFilledLength(K,G)===K.mask.length}function formatValue(K,G){var J=K.maskChar,et=K.mask,er=K.prefix;if(!J){for((G=insertString(K,"",G,0)).length<er.length&&(G=er);G.length<et.length&&isPermanentCharacter(K,G.length);)G+=et[G.length];return G}if(G)return insertString(K,formatValue(K,""),G,0);for(var en=0;en<et.length;en++)isPermanentCharacter(K,en)?G+=et[en]:G+=J;return G}function insertString(K,G,J,et){var er=K.mask,en=K.maskChar,ei=K.prefix,eo=J.split(""),es=isFilled(K,G);return!en&&et>G.length&&(G+=er.slice(G.length,et)),eo.every(function(J){for(var eo,el;isPermanentCharacter(K,el=et)&&J!==er[el];){if(et>=G.length&&(G+=er[et]),eo=et,en&&isPermanentCharacter(K,eo)&&J===en)return!0;
72if(++et>=er.length)return!1}return!isAllowedCharacter(K,et,J)&&J!==en||(et<G.length?G=en||es||et<ei.length?G.slice(0,et)+J+G.slice(et+1):formatValue(K,G=G.slice(0,et)+J+G.slice(et)):en||(G+=J),++et<er.length)}),G}function getRightEditablePosition(K,G){for(var J=K.mask,et=G;et<J.length;++et)if(!isPermanentCharacter(K,et))return et;return null}function getStringValue(K){return K||0===K?K+"":""}function isFunction(K){return"function"==typeof K}function getCancelAnimationFrame(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function defer(K){return(getCancelAnimationFrame()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(K,1e3/60)})(K)}function cancelDefer(K){(getCancelAnimationFrame()||clearTimeout)(K)}var eo=function(K){function e(G){var J=K.call(this,G)||this;J.focused=!1,J.mounted=!1,J.previousSelection=null,J.selectionDeferId=null,J.saveSelectionLoopDeferId=null,J.saveSelectionLoop=function(){J.previousSelection=J.getSelection(),J.saveSelectionLoopDeferId=defer(J.saveSelectionLoop)},J.runSaveSelectionLoop=function(){null===J.saveSelectionLoopDeferId&&J.saveSelectionLoop()},J.stopSaveSelectionLoop=function(){null!==J.saveSelectionLoopDeferId&&(cancelDefer(J.saveSelectionLoopDeferId),J.saveSelectionLoopDeferId=null,J.previousSelection=null)},J.getInputDOMNode=function(){if(!J.mounted)return null;var K=en.findDOMNode(_assertThisInitialized(_assertThisInitialized(J))),G="undefined"!=typeof window&&K instanceof window.Element;if(K&&!G)return null;if("INPUT"!==K.nodeName&&(K=K.querySelector("input")),!K)throw Error("react-input-mask: inputComponent doesn't contain input node");return K},J.getInputValue=function(){var K=J.getInputDOMNode();return K?K.value:null},J.setInputValue=function(K){var G=J.getInputDOMNode();G&&(J.value=K,G.value=K)},J.setCursorToEnd=function(){var K=getFilledLength(J.maskOptions,J.value),G=getRightEditablePosition(J.maskOptions,K);null!==G&&J.setCursorPosition(G)},J.setSelection=function(K,G,et){void 0===et&&(et={});var er=J.getInputDOMNode(),en=J.isFocused();er&&en&&(et.deferred||setInputSelection(er,K,G),null!==J.selectionDeferId&&cancelDefer(J.selectionDeferId),J.selectionDeferId=defer(function(){J.selectionDeferId=null,setInputSelection(er,K,G)}),J.previousSelection={start:K,end:G,length:Math.abs(G-K)})},J.getSelection=function(){return function(K){var G=0,J=0;if("selectionStart"in K&&"selectionEnd"in K)G=K.selectionStart,J=K.selectionEnd;else{var et=document.selection.createRange();et.parentElement()===K&&(G=-et.moveStart("character",-K.value.length),J=-et.moveEnd("character",-K.value.length))}return{start:G,end:J,length:J-G}}(J.getInputDOMNode())},J.getCursorPosition=function(){return J.getSelection().start},J.setCursorPosition=function(K){J.setSelection(K,K)},J.isFocused=function(){return J.focused},J.getBeforeMaskedValueChangeConfig=function(){var K=J.maskOptions,G=K.mask,et=K.maskChar,er=K.permanents,en=K.formatChars;return{mask:G,maskChar:et,permanents:er,alwaysShowMask:!!J.props.alwaysShowMask,formatChars:en}},J.isInputAutofilled=function(K,G,et,er){var en=J.getInputDOMNode();try{if(en.matches(":-webkit-autofill"))return!0}catch(K){}return!J.focused||er.end<et.length&&G.end===K.length},J.onChange=function(K){var G,et,er,en,ei,eo,es,el,ec,eu,ed,eh,ep,ef,eg,em,ey,ev,eb,eC=_assertThisInitialized(_assertThisInitialized(J)).beforePasteState,ew=_assertThisInitialized(_assertThisInitialized(J)).previousSelection,e_=J.props.beforeMaskedValueChange,eS=J.getInputValue(),ek=J.value,eA=J.getSelection();J.isInputAutofilled(eS,eA,ek,ew)&&(ek=formatValue(J.maskOptions,""),ew={start:0,end:0,length:0}),eC&&(ew=eC.selection,ek=eC.value,eA={start:ew.start+eS.length,end:ew.start+eS.length,length:0},eS=ek.slice(0,ew.start)+eS+ek.slice(ew.end),J.beforePasteState=null);var eE=(G=J.maskOptions,et=eS,er=eA,en=ek,ei=ew,eh=G.mask,ep=G.prefix,ef=G.lastEditablePosition,eg=et,em="",ey=0,ev=0,eb=Math.min(ei.start,er.start),er.end>ei.start?(eo=em=eg.slice(ei.start,er.end),es=eb,el=G.mask,ec=G.maskChar,eu=eo.split(""),ed=es,eu.every(function(K){for(var J;isPermanentCharacter(G,J=es)&&K!==el[J];)if(++es>=el.length)return!1;return(isAllowedCharacter(G,es,K)||K===ec)&&es++,es<el.length}),ev=(ey=es-ed)?ei.length:0):eg.length<en.length&&(ev=en.length-eg.length),eg=en,ev&&(1!==ev||ei.length||(eb=ei.start===er.start?getRightEditablePosition(G,er.start):function(K,G){for(var J=G;0<=J;--J)if(!isPermanentCharacter(K,J))return J;return null}(G,er.start)),eg=function(K,G,J,et){var er=J+et,en=K.maskChar,ei=K.mask,eo=K.prefix,es=G.split("");
72if(en)return es.map(function(G,et){return et<J||er<=et?G:isPermanentCharacter(K,et)?ei[et]:en}).join("");for(var el=er;el<es.length;el++)isPermanentCharacter(K,el)&&(es[el]="");return J=Math.max(eo.length,J),es.splice(J,er-J),formatValue(K,G=es.join(""))}(G,eg,eb,ev)),eg=insertString(G,eg,em,eb),(eb+=ey)>=eh.length?eb=eh.length:eb<ep.length&&!ey?eb=ep.length:eb>=ep.length&&eb<ef&&ey&&(eb=getRightEditablePosition(G,eb)),em||(em=null),{value:eg=formatValue(G,eg),enteredString:em,selection:{start:eb,end:eb}}),eT=eE.enteredString,eI=eE.selection,eP=eE.value;if(isFunction(e_)){var eO=e_({value:eP,selection:eI},{value:ek,selection:ew},eT,J.getBeforeMaskedValueChangeConfig());eP=eO.value,eI=eO.selection}J.setInputValue(eP),isFunction(J.props.onChange)&&J.props.onChange(K),J.isWindowsPhoneBrowser?J.setSelection(eI.start,eI.end,{deferred:!0}):J.setSelection(eI.start,eI.end)},J.onFocus=function(K){var G=J.props.beforeMaskedValueChange,et=J.maskOptions,er=et.mask,en=et.prefix;if(J.focused=!0,J.mounted=!0,er){if(J.value)getFilledLength(J.maskOptions,J.value)<J.maskOptions.mask.length&&J.setCursorToEnd();else{var ei=formatValue(J.maskOptions,en),eo=formatValue(J.maskOptions,ei),es=getFilledLength(J.maskOptions,eo),el=getRightEditablePosition(J.maskOptions,es),ec={start:el,end:el};if(isFunction(G)){var eu=G({value:eo,selection:ec},{value:J.value,selection:null},null,J.getBeforeMaskedValueChangeConfig());eo=eu.value,ec=eu.selection}var ed=eo!==J.getInputValue();ed&&J.setInputValue(eo),ed&&isFunction(J.props.onChange)&&J.props.onChange(K),J.setSelection(ec.start,ec.end)}J.runSaveSelectionLoop()}isFunction(J.props.onFocus)&&J.props.onFocus(K)},J.onBlur=function(K){var G=J.props.beforeMaskedValueChange,et=J.maskOptions.mask;if(J.stopSaveSelectionLoop(),J.focused=!1,et&&!J.props.alwaysShowMask&&isEmpty(J.maskOptions,J.value)){var er="";isFunction(G)&&(er=G({value:er,selection:null},{value:J.value,selection:J.previousSelection},null,J.getBeforeMaskedValueChangeConfig()).value);var en=er!==J.getInputValue();en&&J.setInputValue(er),en&&isFunction(J.props.onChange)&&J.props.onChange(K)}isFunction(J.props.onBlur)&&J.props.onBlur(K)},J.onMouseDown=function(K){!J.focused&&document.addEventListener&&(J.mouseDownX=K.clientX,J.mouseDownY=K.clientY,J.mouseDownTime=(new Date).getTime(),document.addEventListener("mouseup",function r(K){if(document.removeEventListener("mouseup",r),J.focused){var G=Math.max(Math.abs(K.clientX-J.mouseDownX),Math.abs(K.clientY-J.mouseDownY)),et=(new Date).getTime()-J.mouseDownTime;(G<=10&&et<=200||G<=5&&et<=300)&&J.setCursorToEnd()}})),isFunction(J.props.onMouseDown)&&J.props.onMouseDown(K)},J.onPaste=function(K){isFunction(J.props.onPaste)&&J.props.onPaste(K),K.defaultPrevented||(J.beforePasteState={value:J.getInputValue(),selection:J.getSelection()},J.setInputValue(""))},J.handleRef=function(K){null==J.props.children&&isFunction(J.props.inputRef)&&J.props.inputRef(K)};var et=G.mask,er=G.maskChar,ei=G.formatChars,eo=G.alwaysShowMask,es=G.beforeMaskedValueChange,el=G.defaultValue,ec=G.value;J.maskOptions=parseMask(et,er,ei),null==el&&(el=""),null==ec&&(ec=el);var eu=getStringValue(ec);if(J.maskOptions.mask&&(eo||eu)&&(eu=formatValue(J.maskOptions,eu),isFunction(es))){var ed=G.value;null==G.value&&(ed=el),eu=es({value:eu,selection:null},{value:ed=getStringValue(ed),selection:null},null,J.getBeforeMaskedValueChangeConfig()).value}return J.value=eu,J}e.prototype=Object.create(K.prototype),function(K,G){for(var J=Object.getOwnPropertyNames(G),et=0;et<J.length;et++){var er=J[et],en=Object.getOwnPropertyDescriptor(G,er);en&&en.configurable&&void 0===K[er]&&Object.defineProperty(K,er,en)}}(e.prototype.constructor=e,K);var G=e.prototype;return G.componentDidMount=function(){var K;this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=(K=navigator.userAgent,/windows/i.test(K)&&/phone/i.test(K)),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},G.componentDidUpdate=function(){var K=this.previousSelection,G=this.props,J=G.beforeMaskedValueChange,et=G.alwaysShowMask,er=G.mask,en=G.maskChar,ei=G.formatChars,eo=this.maskOptions,es=et||this.isFocused(),el=null!=this.props.value,ec=el?getStringValue(this.props.value):this.value,eu=K?K.start:null;if(this.maskOptions=parseMask(er,en,ei),this.maskOptions.mask){!eo.mask&&this.isFocused()&&this.runSaveSelectionLoop();var ed=this.maskOptions.mask&&this.maskOptions.mask!==eo.mask;if(eo.mask||el||(ec=this.getInputValue()),(ed||this.maskOptions.mask&&(ec||es))&&(ec=formatValue(this.maskOptions,ec)),ed){var eh=getFilledLength(this.maskOptions,ec);(null===eu||eh<eu)&&(eu=isFilled(this.maskOptions,ec)?eh:getRightEditablePosition(this.maskOptions,eh))}!this.maskOptions.mask||!isEmpty(this.maskOptions,ec)||es||el&&this.props.value||(ec="");var ep={start:eu,end:eu};if(isFunction(J)){var ef=J({value:ec,selection:ep},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());ec=ef.value,ep=ef.selection}this.value=ec;var eg=this.getInputValue()!==this.value;eg?(this.setInputValue(this.value),this.forceUpdate()):ed&&this.forceUpdate();var em=!1;null!=ep.start&&null!=ep.end&&(em=!K||K.start!==ep.start||K.end!==ep.end),(em||eg)&&this.setSelection(ep.start,ep.end)}else eo.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},G.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&cancelDefer(this.selectionDeferId),this.stopSaveSelectionLoop()},G.render=function(){var K,G=this.props,J=(G.mask,G.alwaysShowMask,G.maskChar,G.formatChars,G.inputRef,G.beforeMaskedValueChange,G.children),et=function(K,G){if(null==K)return{};var J,et,er={},en=Object.keys(K);for(et=0;et<en.length;et++)0<=G.indexOf(J=en[et])||(er[J]=K[J]);return er}(G,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(J){isFunction(J)||invariant_1(!1);var en=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],ei=_extends({},et);
72en.forEach(function(K){return delete ei[K]}),K=J(ei),en.filter(function(G){return null!=K.props[G]&&K.props[G]!==et[G]}).length&&invariant_1(!1)}else K=er.createElement("input",_extends({ref:this.handleRef},et));var eo={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(et.disabled||et.readOnly||(eo.onChange=this.onChange,eo.onPaste=this.onPaste,eo.onMouseDown=this.onMouseDown),null!=et.value&&(eo.value=this.value)),K=er.cloneElement(K,eo)},e}(er.Component);K.exports=eo},69921:function(K,G){"use strict";/** @license React v16.13.1
73 * react-is.production.min.js
74 *
75 * Copyright (c) Facebook, Inc. and its affiliates.
76 *
77 * This source code is licensed under the MIT license found in the
78 * LICENSE file in the root directory of this source tree.
79 */var J="function"==typeof Symbol&&Symbol.for,et=J?Symbol.for("react.element"):60103,er=J?Symbol.for("react.portal"):60106,en=J?Symbol.for("react.fragment"):60107,ei=J?Symbol.for("react.strict_mode"):60108,eo=J?Symbol.for("react.profiler"):60114,es=J?Symbol.for("react.provider"):60109,el=J?Symbol.for("react.context"):60110,ec=J?Symbol.for("react.async_mode"):60111,eu=J?Symbol.for("react.concurrent_mode"):60111,ed=J?Symbol.for("react.forward_ref"):60112,eh=J?Symbol.for("react.suspense"):60113,ep=J?Symbol.for("react.suspense_list"):60120,ef=J?Symbol.for("react.memo"):60115,eg=J?Symbol.for("react.lazy"):60116,em=J?Symbol.for("react.block"):60121,ey=J?Symbol.for("react.fundamental"):60117,ev=J?Symbol.for("react.responder"):60118,eb=J?Symbol.for("react.scope"):60119;function z(K){if("object"==typeof K&&null!==K){var G=K.$$typeof;switch(G){case et:switch(K=K.type){case ec:case eu:case en:case eo:case ei:case eh:return K;default:switch(K=K&&K.$$typeof){case el:case ed:case eg:case ef:case es:return K;default:return G}}case er:return G}}}function A(K){return z(K)===eu}G.AsyncMode=ec,G.ConcurrentMode=eu,G.ContextConsumer=el,G.ContextProvider=es,G.Element=et,G.ForwardRef=ed,G.Fragment=en,G.Lazy=eg,G.Memo=ef,G.Portal=er,G.Profiler=eo,G.StrictMode=ei,G.Suspense=eh,G.isAsyncMode=function(K){return A(K)||z(K)===ec},G.isConcurrentMode=A,G.isContextConsumer=function(K){return z(K)===el},G.isContextProvider=function(K){return z(K)===es},G.isElement=function(K){return"object"==typeof K&&null!==K&&K.$$typeof===et},G.isForwardRef=function(K){return z(K)===ed},G.isFragment=function(K){return z(K)===en},G.isLazy=function(K){return z(K)===eg},G.isMemo=function(K){return z(K)===ef},G.isPortal=function(K){return z(K)===er},G.isProfiler=function(K){return z(K)===eo},G.isStrictMode=function(K){return z(K)===ei},G.isSuspense=function(K){return z(K)===eh},G.isValidElementType=function(K){return"string"==typeof K||"function"==typeof K||K===en||K===eu||K===eo||K===ei||K===eh||K===ep||"object"==typeof K&&null!==K&&(K.$$typeof===eg||K.$$typeof===ef||K.$$typeof===es||K.$$typeof===el||K.$$typeof===ed||K.$$typeof===ey||K.$$typeof===ev||K.$$typeof===eb||K.$$typeof===em)},G.typeOf=z},59864:function(K,G,J){"use strict";K.exports=J(69921)},25726:function(K,G,J){"use strict";function _arrayLikeToArray(K,G){(null==G||G>K.length)&&(G=K.length);for(var J=0,et=Array(G);J<G;J++)et[J]=K[J];return et}function PropertyInfoRecord(K,G,J,et,er,en,ei){this.acceptsBooleans=2===G||3===G||4===G,this.attributeName=et,this.attributeNamespace=er,this.mustUseProperty=J,this.propertyName=K,this.type=G,this.sanitizeURL=en,this.removeEmptyString=ei}Object.defineProperty(G,"__esModule",{value:!0});var et={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(K){et[K]=new PropertyInfoRecord(K,0,!1,K,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(K){var G=function(K){if(Array.isArray(K))return K}(K)||function(K,G){var J,et,er=null==K?null:"undefined"!=typeof Symbol&&K[Symbol.iterator]||K["@@iterator"];if(null!=er){var en=[],ei=!0,eo=!1;try{for(er=er.call(K);!(ei=(J=er.next()).done)&&(en.push(J.value),!G||en.length!==G);ei=!0);}catch(K){eo=!0,et=K}finally{try{ei||null==er.return||er.return()}finally{if(eo)throw et}}return en}}(K,2)||function(K,G){if(K){if("string"==typeof K)return _arrayLikeToArray(K,G);var J=Object.prototype.toString.call(K).slice(8,-1);
79if("Object"===J&&K.constructor&&(J=K.constructor.name),"Map"===J||"Set"===J)return Array.from(K);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return _arrayLikeToArray(K,G)}}(K,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),J=G[0],er=G[1];et[J]=new PropertyInfoRecord(J,1,!1,er,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(K){et[K]=new PropertyInfoRecord(K,2,!1,K.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(K){et[K]=new PropertyInfoRecord(K,2,!1,K,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(K){et[K]=new PropertyInfoRecord(K,3,!1,K.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(K){et[K]=new PropertyInfoRecord(K,3,!0,K,null,!1,!1)}),["capture","download"].forEach(function(K){et[K]=new PropertyInfoRecord(K,4,!1,K,null,!1,!1)}),["cols","rows","size","span"].forEach(function(K){et[K]=new PropertyInfoRecord(K,6,!1,K,null,!1,!1)}),["rowSpan","start"].forEach(function(K){et[K]=new PropertyInfoRecord(K,5,!1,K.toLowerCase(),null,!1,!1)});var er=/[\-\:]([a-z])/g,capitalize=function(K){return K[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(K){var G=K.replace(er,capitalize);et[G]=new PropertyInfoRecord(G,1,!1,K,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(K){var G=K.replace(er,capitalize);et[G]=new PropertyInfoRecord(G,1,!1,K,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(K){var G=K.replace(er,capitalize);et[G]=new PropertyInfoRecord(G,1,!1,K,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(K){et[K]=new PropertyInfoRecord(K,1,!1,K.toLowerCase(),null,!1,!1)}),et.xlinkHref=new PropertyInfoRecord("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(K){et[K]=new PropertyInfoRecord(K,1,!1,K.toLowerCase(),null,!0,!0)});var en=J(78229),ei=en.CAMELCASE,eo=en.SAME,es=en.possibleStandardNames,el=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),ec=Object.keys(es).reduce(function(K,G){var J=es[G];return J===eo?K[G]=G:J===ei?K[G.toLowerCase()]=G:K[G]=J,K},{});G.BOOLEAN=3,G.BOOLEANISH_STRING=2,G.NUMERIC=5,G.OVERLOADED_BOOLEAN=4,G.POSITIVE_NUMERIC=6,G.RESERVED=0,G.STRING=1,G.getPropertyInfo=function(K){return et.hasOwnProperty(K)?et[K]:null},G.isCustomAttribute=el,G.possibleStandardNames=ec},78229:function(K,G){G.SAME=0,G.CAMELCASE=1,G.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInl
79ine:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode
79-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},98330:function(K,G,J){"use strict";Object.defineProperty(G,"__esModule",{value:!0});var et=_interopRequireDefault(J(45697)),er=_interopRequireDefault(J(67294));function _interopRequireDefault(K){return K&&K.__esModule?K:{default:K}}var en={d:et.default.string.isRequired,fill:et.default.string.isRequired,transformX:et.default.number.isRequired,transformY:et.default.number.isRequired},QRCodeCell=function(K){var G=K.d,J=K.fill,et=K.transformX,en=K.transformY;return er.default.createElement("path",{d:G,fill:J,transform:"matrix("+[1,0,0,1,et,en]+")"})};QRCodeCell.propTypes=en,QRCodeCell.defaultProps={},G.default=QRCodeCell},42832:function(K,G,J){"use strict";Object.defineProperty(G,"__esModule",{value:!0});var et=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K},er=_interopRequireDefault(J(45697)),en=_interopRequireDefault(J(67294));function _interopRequireDefault(K){return K&&K.__esModule?K:{default:K}}var ei={children:er.default.array.isRequired,size:er.default.number.isRequired,title:er.default.string,xmlns:er.default.string},QRCodeSurface=function(K){var G=K.children,J=K.size,er=K.title,ei=K.xmlns,eo=function(K,G){var J={};for(var et in K)!(G.indexOf(et)>=0)&&Object.prototype.hasOwnProperty.call(K,et)&&(J[et]=K[et]);return J}(K,["children","size","title","xmlns"]);return en.default.createElement("svg",et({},eo,{height:J,width:J,xmlns:ei}),er?en.default.createElement("title",null,er):null,G)};QRCodeSurface.propTypes=ei,QRCodeSurface.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},G.default=QRCodeSurface},1653:function(K,G,J){"use strict";Object.defineProperty(G,"__esModule",{value:!0});var et=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K},er=_interopRequireDefault(J(14450)),en=_interopRequireDefault(J(49381)),ei=_interopRequireDefault(J(45697)),eo=J(67294),es=_interopRequireDefault(eo),el=_interopRequireDefault(J(98330)),ec=_interopRequireDefault(J(42832));function _interopRequireDefault(K){return K&&K.__esModule?K:{default:K}}var eu={bgColor:ei.default.string,fgColor:ei.default.string,level:ei.default.oneOf(["L","M","Q","H"]),size:ei.default.number,value:ei.default.string.isRequired},QRCode=function(K){var G=K.bgColor,J=K.fgColor,ei=K.level,eo=K.size,eu=K.value,ed=function(K,G){var J={};for(var et in K)!(G.indexOf(et)>=0)&&Object.prototype.hasOwnProperty.call(K,et)&&(J[et]=K[et]);return J}(K,["bgColor","fgColor","level","size","value"]),eh=new er.default(-1,en.default[ei]);eh.addData(eu),eh.make();var ep=eh.modules,ef=eo/ep.length;return es.default.createElement(ec.default,et({},ed,{size:eo}),ep.map(function(K,et){return K.map(function(K,er){var en=Math.round(er*ef),ei=Math.round(et*ef),eo=Math.round((er+1)*ef)-en,ec=Math.round((et+1)*ef)-ei;return es.default.createElement(el.default,{key:"rectangle-"+et+"-"+er,d:"M 0 0 L "+eo+" 0 L "+eo+" "+ec+" L 0 "+ec+" Z",fill:K?J:G,transformX:en,transformY:ei})})}))};
79QRCode.propTypes=eu,QRCode.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},G.default=(0,eo.memo)(QRCode)},26126:function(K,G,J){"use strict";J.d(G,{Uv:function(){return TransformComponent},d$:function(){return es}});var et=J(67294),roundNumber=function(K,G){return Number(K.toFixed(G))},handleCallback=function(K,G,J){J&&"function"==typeof J&&J(K,G)},er={easeOut:function(K){return-Math.cos(K*Math.PI)/2+.5},linear:function(K){return K},easeInQuad:function(K){return K*K},easeOutQuad:function(K){return K*(2-K)},easeInOutQuad:function(K){return K<.5?2*K*K:-1+(4-2*K)*K},easeInCubic:function(K){return K*K*K},easeOutCubic:function(K){return--K*K*K+1},easeInOutCubic:function(K){return K<.5?4*K*K*K:(K-1)*(2*K-2)*(2*K-2)+1},easeInQuart:function(K){return K*K*K*K},easeOutQuart:function(K){return 1- --K*K*K*K},easeInOutQuart:function(K){return K<.5?8*K*K*K*K:1-8*--K*K*K*K},easeInQuint:function(K){return K*K*K*K*K},easeOutQuint:function(K){return 1+--K*K*K*K*K},easeInOutQuint:function(K){return K<.5?16*K*K*K*K*K:1+16*--K*K*K*K*K}},handleCancelAnimationFrame=function(K){"number"==typeof K&&cancelAnimationFrame(K)},handleCancelAnimation=function(K){K.mounted&&(handleCancelAnimationFrame(K.animation),K.animate=!1,K.animation=null,K.velocity=null)};function handleSetupAnimation(K,G,J,et){if(K.mounted){var en=new Date().getTime();handleCancelAnimation(K),K.animation=function(){if(!K.mounted)return handleCancelAnimationFrame(K.animation);var ei=new Date().getTime()-en,eo=(0,er[G])(ei/J);ei>=J?(et(1),K.animation=null):K.animation&&(et(eo),requestAnimationFrame(K.animation))},requestAnimationFrame(K.animation)}}function animate(K,G,J,et){var er,en,ei,eo=(er=G.scale,en=G.positionX,ei=G.positionY,!(Number.isNaN(er)||Number.isNaN(en)||Number.isNaN(ei)));if(K.mounted&&eo){var es=K.setTransformState,el=K.transformState,ec=el.scale,eu=el.positionX,ed=el.positionY,eh=G.scale-ec,ep=G.positionX-eu,ef=G.positionY-ed;0===J?es(G.scale,G.positionX,G.positionY):handleSetupAnimation(K,et,J,function(K){es(ec+eh*K,eu+ep*K,ed+ef*K)})}}var getBounds=function(K,G,J,et,er,en,ei){var eo=K>G?J*(ei?1:.5):0,es=et>er?en*(ei?1:.5):0;return{minPositionX:K-G-eo,maxPositionX:eo,minPositionY:et-er-es,maxPositionY:es}},calculateBounds=function(K,G){var J,et,er,en,ei,eo,es=K.wrapperComponent,el=K.contentComponent,ec=K.setup.centerZoomedOut;if(!es||!el)throw Error("Components are not mounted");var eu=(J=es.offsetWidth,et=es.offsetHeight,er=el.offsetWidth,en=el.offsetHeight,{wrapperWidth:J,wrapperHeight:et,newContentWidth:ei=er*G,newDiffWidth:J-ei,newContentHeight:eo=en*G,newDiffHeight:et-eo}),ed=eu.wrapperWidth,eh=eu.wrapperHeight;return getBounds(ed,eu.newContentWidth,eu.newDiffWidth,eh,eu.newContentHeight,eu.newDiffHeight,!!ec)},boundLimiter=function(K,G,J,et){return et?K<G?roundNumber(G,2):K>J?roundNumber(J,2):roundNumber(K,2):roundNumber(K,2)},handleCalculateBounds=function(K,G){var J=calculateBounds(K,G);return K.bounds=J,J};function getMouseBoundedPosition(K,G,J,et,er,en,ei){var eo=J.minPositionX,es=J.minPositionY,el=J.maxPositionX,ec=J.maxPositionY,eu=0,ed=0;return ei&&(eu=er,ed=en),{x:boundLimiter(K,eo-eu,el+eu,et),y:boundLimiter(G,es-ed,ec+ed,et)}}function handleCalculateZoomPositions(K,G,J,et,er,en){var ei=K.transformState,eo=ei.scale,es=ei.positionX,el=ei.positionY,ec=et-eo;return"number"!=typeof G||"number"!=typeof J?(console.error("Mouse X and Y position were not provided!"),{x:es,y:el}):getMouseBoundedPosition(es-G*ec,el-J*ec,er,en,0,0,null)}function checkZoomBounds(K,G,J,et,er){var en=G-(er?et:0);return!Number.isNaN(J)&&K>=J?J:!Number.isNaN(G)&&K<=en?en:K}var isPanningStartAllowed=function(K,G){var J=K.setup.panning.excluded,et=K.isInitialized,er=K.wrapperComponent,en=G.target,ei=null==er?void 0:er.contains(en);return!(!(et&&en&&ei)||isExcludedNode(en,J))},isPanningAllowed=function(K){var G=K.isInitialized,J=K.isPanning,et=K.setup.panning.disabled;return!!G&&!!J&&!et},handlePanningSetup=function(K,G){var J=K.transformState,et=J.positionX,er=J.positionY;K.isPanning=!0;var en=G.clientX,ei=G.clientY;K.startCoords={x:en-et,y:ei-er}},handleTouchPanningSetup=function(K,G){var J=G.touches,et=K.transformState,er=et.positionX,en=et.positionY;if(K.isPanning=!0,1===J.length){var ei=J[0].clientX,eo=J[0].clientY;K.startCoords={x:ei-er,y:eo-en}}},getPanningClientPosition=function(K,G,J){var et=K.startCoords,er=K.transformState,en=K.setup.panning,ei=en.lockAxisX,eo=en.lockAxisY,es=er.positionX,el=er.positionY;if(!et)return{x:es,y:el};var ec=G-et.x,eu=J-et.y;return{x:ei?es:ec,y:eo?el:eu}},getPaddingValue=function(K,G){var J=K.setup,et=K.transformState.scale,er=J.minScale,en=J.disablePadding;return G>0&&et>=er&&!en?G:0},isVelocityCalculationAllowed=function(K){var G=K.mounted,J=K.setup,et=J.disabled,er=J.velocityAnimation,en=K.transformState.scale;return!er.disabled||en>1||!et||!!G},isVelocityAllowed=function(K){var G=K.mounted,J=K.velocity,et=K.bounds,er=K.setup,en=er.disabled,ei=er.velocityAnimation,eo=K.transformState.scale;return(!ei.disabled||eo>1||!en||!!G)&&!!J&&!!et};function getVelocityPosition(K,G,J,et,er,en,ei,eo,es,el){if(er){if(G>ei&&J>ei){var ec=ei+(K-ei)*el;return ec>es?es:ec<ei?ei:ec}
79if(G<en&&J<en){var ec=en+(K-en)*el;return ec<eo?eo:ec>en?en:ec}}return et?G:boundLimiter(K,en,ei,er)}function handlePanningStart(K,G){var J=K.transformState.scale;handleCancelAnimation(K),handleCalculateBounds(K,J),void 0!==window.TouchEvent&&G instanceof TouchEvent?handleTouchPanningSetup(K,G):handlePanningSetup(K,G)}function handleAlignToBounds(K){var G=K.transformState.scale,J=K.setup,et=J.minScale,er=J.alignmentAnimation,en=er.disabled,ei=er.sizeX,eo=er.sizeY,es=er.animationTime,el=er.animationType;if(!(en||G<et||!ei&&!eo)){var ec=function(K){var G=K.transformState,J=G.positionX,et=G.positionY,er=G.scale,en=K.setup,ei=en.disabled,eo=en.limitToBounds,es=en.centerZoomedOut,el=K.wrapperComponent;if(!ei&&el&&K.bounds){var ec=K.bounds,eu=ec.maxPositionX,ed=ec.minPositionX,eh=ec.maxPositionY,ep=ec.minPositionY,ef=J>eu?el.offsetWidth:K.setup.minPositionX||0,eg=et>eh?el.offsetHeight:K.setup.minPositionY||0,em=handleCalculateZoomPositions(K,ef,eg,er,K.bounds,eo||es),ey=em.x,ev=em.y;return{scale:er,positionX:J>eu||J<ed?ey:J,positionY:et>eh||et<ep?ev:et}}}(K);ec&&animate(K,ec,es,el)}}function handlePanning(K,G,J){var et=K.startCoords,er=K.setup.alignmentAnimation,en=er.sizeX,ei=er.sizeY;if(et){var eo=getPanningClientPosition(K,G,J),es=eo.x,el=eo.y,ec=getPaddingValue(K,en),eu=getPaddingValue(K,ei);!function(K,G){if(isVelocityCalculationAllowed(K)){var J=K.lastMousePosition,et=K.velocityTime,er=K.setup,en=K.wrapperComponent,ei=er.velocityAnimation.equalToMove,eo=Date.now();if(J&&et&&en){var es=ei?Math.min(1,en.offsetWidth/window.innerWidth):1,el=G.x-J.x,ec=G.y-J.y,eu=Math.sqrt(el*el+ec*ec)/(eo-et);K.velocity={velocityX:el/es,velocityY:ec/es,total:eu}}K.lastMousePosition=G,K.velocityTime=eo}}(K,{x:es,y:el}),function(K,G,J,et,er){var en=K.setup.limitToBounds,ei=K.wrapperComponent,eo=K.bounds,es=K.transformState,el=es.scale,ec=es.positionX,eu=es.positionY;if(null!==ei&&null!==eo&&(G!==ec||J!==eu)){var ed=getMouseBoundedPosition(G,J,eo,en,et,er,ei),eh=ed.x,ep=ed.y;K.setTransformState(el,eh,ep)}}(K,es,el,ec,eu)}}function handleZoomToPoint(K,G,J,et){var er=K.setup,en=er.minScale,ei=er.maxScale,eo=er.limitToBounds,es=checkZoomBounds(roundNumber(G,2),en,ei,0,!1),el=handleCalculateBounds(K,es),ec=handleCalculateZoomPositions(K,J,et,es,el,eo);return{scale:es,positionX:ec.x,positionY:ec.y}}function handleAlignToScaleBounds(K,G,J){var et=K.transformState.scale,er=K.wrapperComponent,en=K.setup,ei=en.minScale,eo=en.limitToBounds,es=en.zoomAnimation,el=es.disabled,ec=es.animationTime,eu=es.animationType,ed=el||et>=ei;if((et>=1||eo)&&handleAlignToBounds(K),!ed&&er&&K.mounted){var eh=handleZoomToPoint(K,ei,G||er.offsetWidth/2,J||er.offsetHeight/2);eh&&animate(K,eh,ec,eu)}}var __assign=function(){return(__assign=Object.assign||function(K){for(var G,J=1,et=arguments.length;J<et;J++)for(var er in G=arguments[J])Object.prototype.hasOwnProperty.call(G,er)&&(K[er]=G[er]);return K}).apply(this,arguments)};function __spreadArray(K,G,J){if(J||2==arguments.length)for(var et,er=0,en=G.length;er<en;er++)!et&&er in G||(et||(et=Array.prototype.slice.call(G,0,er)),et[er]=G[er]);return K.concat(et||Array.prototype.slice.call(G))}var en={scale:1,positionX:0,positionY:0},ei={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,wheel:{step:.2,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},createState=function(K){var G,J,et,er;return{previousScale:null!==(G=K.initialScale)&&void 0!==G?G:en.scale,scale:null!==(J=K.initialScale)&&void 0!==J?J:en.scale,positionX:null!==(et=K.initialPositionX)&&void 0!==et?et:en.positionX,positionY:null!==(er=K.initialPositionY)&&void 0!==er?er:en.positionY}},createSetup=function(K){var G=__assign({},ei);
79return Object.keys(K).forEach(function(J){var et=void 0!==K[J];if(void 0!==ei[J]&&et){var er=Object.prototype.toString.call(ei[J]);"[object Object]"===er?G[J]=__assign(__assign({},ei[J]),K[J]):"[object Array]"===er?G[J]=__spreadArray(__spreadArray([],ei[J],!0),K[J],!0):G[J]=K[J]}}),G},handleCalculateButtonZoom=function(K,G,J){var et=K.transformState.scale,er=K.wrapperComponent,en=K.setup,ei=en.maxScale,eo=en.minScale,es=en.zoomAnimation.size;if(!er)throw Error("Wrapper is not mounted");return checkZoomBounds(roundNumber(et*Math.exp(G*J),3),eo,ei,es,!1)};function handleZoomToViewCenter(K,G,J,et,er){var en=K.wrapperComponent,ei=K.transformState,eo=ei.scale,es=ei.positionX,el=ei.positionY;if(!en)return console.error("No WrapperComponent found");var ec=en.offsetWidth,eu=en.offsetHeight,ed=handleCalculateButtonZoom(K,G,J),eh=handleZoomToPoint(K,ed,(ec/2-es)/eo,(eu/2-el)/eo);if(!eh)return console.error("Error during zoom event. New transformation state was not calculated.");animate(K,eh,et,er)}function resetTransformations(K,G,J,et){var er=K.setup,en=K.wrapperComponent,ei=er.limitToBounds,eo=createState(K.props),es=K.transformState,el=es.scale,ec=es.positionX,eu=es.positionY;if(en){var ed=calculateBounds(K,eo.scale),eh=getMouseBoundedPosition(eo.positionX,eo.positionY,ed,ei,0,0,en),ep={scale:eo.scale,positionX:eh.x,positionY:eh.y};if(el===eo.scale&&ec===eo.positionX&&eu===eo.positionY)return;null==et||et(),animate(K,ep,G,J)}}var getControls=function(K){return{instance:K,zoomIn:function(G,J,et){void 0===G&&(G=.5),void 0===J&&(J=300),void 0===et&&(et="easeOut"),handleZoomToViewCenter(K,1,G,J,et)},zoomOut:function(G,J,et){void 0===G&&(G=.5),void 0===J&&(J=300),void 0===et&&(et="easeOut"),handleZoomToViewCenter(K,-1,G,J,et)},setTransform:function(G,J,et,er,en){void 0===er&&(er=300),void 0===en&&(en="easeOut");var ei=K.transformState,eo=ei.positionX,es=ei.positionY,el=ei.scale,ec=K.wrapperComponent,eu=K.contentComponent;!K.setup.disabled&&ec&&eu&&animate(K,{positionX:Number.isNaN(G)?eo:G,positionY:Number.isNaN(J)?es:J,scale:Number.isNaN(et)?el:et},er,en)},resetTransform:function(G,J){void 0===G&&(G=200),void 0===J&&(J="easeOut"),resetTransformations(K,G,J)},centerView:function(G,J,et){void 0===J&&(J=200),void 0===et&&(et="easeOut");var er=K.transformState,en=K.wrapperComponent,ei=K.contentComponent;en&&ei&&animate(K,getCenterPosition(G||er.scale,en,ei),J,et)},zoomToElement:function(G,J,et,er){void 0===et&&(et=600),void 0===er&&(er="easeOut"),handleCancelAnimation(K);var en=K.wrapperComponent,ei="string"==typeof G?document.getElementById(G):G;if(en&&ei&&en.contains(ei)){var eo=function(K,G,J){var et,er,en,ei,eo,es=K.wrapperComponent,el=K.contentComponent,ec=K.transformState,eu=K.setup,ed=eu.limitToBounds,eh=eu.minScale,ep=eu.maxScale;if(!es||!el)return ec;var ef=es.getBoundingClientRect(),eg=G.getBoundingClientRect(),em=(et=G.getBoundingClientRect(),er=es.getBoundingClientRect(),en=el.getBoundingClientRect(),ei=er.x*ec.scale,eo=er.y*ec.scale,{x:(et.x-en.x+ei)/ec.scale,y:(et.y-en.y+eo)/ec.scale}),ey=em.x,ev=em.y,eb=eg.width/ec.scale,eC=eg.height/ec.scale,ew=es.offsetWidth/eb,e_=es.offsetHeight/eC,eS=checkZoomBounds(J||Math.min(ew,e_),eh,ep,0,!1),ek=(ef.width-eb*eS)/2,eA=(ef.height-eC*eS)/2,eE=getMouseBoundedPosition((ef.left-ey)*eS+ek,(ef.top-ev)*eS+eA,calculateBounds(K,eS),ed,0,0,es);return{positionX:eE.x,positionY:eE.y,scale:eS}}(K,ei,J);animate(K,eo,et,er)}}}},getContext=function(K){var G={};return Object.assign(G,{instance:K,state:K.transformState}),Object.assign(G,getControls(K)),G};function makePassiveEventOption(){try{return{get passive(){return!1}}}catch(K){return!1}}var isExcludedNode=function(K,G){var J=K.tagName.toUpperCase();return!!(G.find(function(K){return K.toUpperCase()===J})||G.find(function(G){return K.classList.contains(G)}))},cancelTimeout=function(K){K&&clearTimeout(K)},getCenterPosition=function(K,G,J){var et=J.offsetWidth*K,er=J.offsetHeight*K;return{scale:K,positionX:(G.offsetWidth-et)/2,positionY:(G.offsetHeight-er)/2}},isWheelAllowed=function(K,G){var J=K.setup.wheel,et=J.disabled,er=J.wheelDisabled,en=J.touchPadDisabled,ei=J.excluded,eo=K.isInitialized,es=K.isPanning,el=G.target;return!(!(eo&&!es&&!et&&el)||er&&!G.ctrlKey||en&&G.ctrlKey||isExcludedNode(el,ei))};function getMousePosition(K,G,J){var et=G.getBoundingClientRect(),er=0,en=0;if("clientX"in K)er=(K.clientX-et.left)/J,en=(K.clientY-et.top)/J;else{var ei=K.touches[0];er=(ei.clientX-et.left)/J,en=(ei.clientY-et.top)/J}return(Number.isNaN(er)||Number.isNaN(en))&&console.error("No mouse or touch offset found"),{x:er,y:en}}var handleCalculateWheelZoom=function(K,G,J,et,er){var en=K.transformState.scale,ei=K.wrapperComponent,eo=K.setup,es=eo.maxScale,el=eo.minScale,ec=eo.zoomAnimation,eu=eo.disablePadding,ed=ec.size,eh=ec.disabled;if(!ei)throw Error("Wrapper is not mounted");var ep=en+G*(en-en*J)*J;return er?ep:checkZoomBounds(roundNumber(ep,3),el,es,ed,!et&&!eh&&!eu)},handleWheelZoomStop=function(K,G){var J=K.previousWheelEvent,et=K.transformState.scale,er=K.setup,en=er.maxScale,ei=er.minScale;return!!J&&(et<en||et>ei||Math.sign(J.deltaY)!==Math.sign(G.deltaY)||J.deltaY>0&&J.deltaY<G.deltaY||J.deltaY<0&&J.deltaY>G.deltaY||Math.sign(J.deltaY)!==Math.sign(G.deltaY))},isPinchStartAllowed=function(K,G){var J=K.setup.pinch,et=J.disabled,er=J.excluded,en=K.isInitialized,ei=G.target;return!(!(en&&!et&&ei)||isExcludedNode(ei,er))},isPinchAllowed=function(K){var G=K.setup.pinch.disabled,J=K.isInitialized,et=K.pinchStartDistance;return!!J&&!G&&!!et},calculateTouchMidPoint=function(K,G,J){var et=J.getBoundingClientRect(),er=K.touches,en=roundNumber(er[0].clientX-et.left,5),ei=roundNumber(er[0].clientY-et.top,5);return{x:(en+roundNumber(er[1].clientX-et.left,5))/2/G,y:(ei+roundNumber(er[1].clientY-et.top,5))/2/G}},getTouchDistance=function(K){return Math.sqrt(Math.pow(K.touches[0].pageX-K.touches[1].pageX,2)+Math.pow(K.touches[0].pageY-K.touches[1].pageY,2))},calculatePinchZoom=function(K,G){var J=K.pinchStartScale,et=K.pinchStartDistance,er=K.setup,en=er.maxScale,ei=er.minScale,eo=er.zoomAnimation,es=er.disablePadding,el=eo.size,ec=eo.disabled;if(!J||null===et||!G)throw Error("Pinch touches distance was not provided");return G<0?K.transformState.scale:checkZoomBounds(roundNumber(G/et*J,2),ei,en,el,!ec&&!es)},handleWheelStart=function(K,G){var J=K.props,et=J.onWheelStart,er=J.onZoomStart;K.wheelStopEventTimer||(handleCancelAnimation(K),handleCallback(getContext(K),G,et),handleCallback(getContext(K),G,er))},handleWheelZoom=function(K,G){var J,et=K.props,er=et.onWheel,en=et.onZoom,ei=K.contentComponent,eo=K.setup,es=K.transformState.scale,el=eo.limitToBounds,ec=eo.centerZoomedOut,eu=eo.zoomAnimation,ed=eo.wheel,eh=eo.disablePadding,ep=eu.size,ef=eu.disabled,eg=ed.step;if(!ei)throw Error("Component not mounted");G.preventDefault(),G.stopPropagation();var em=handleCalculateWheelZoom(K,J=G?G.deltaY<0?1:-1:0,eg,!G.ctrlKey);if(es!==em){var ey=handleCalculateBounds(K,em),ev=getMousePosition(G,ei,es),eb=handleCalculateZoomPositions(K,ev.x,ev.y,em,ey,el&&(ef||0===ep||ec||eh)),eC=eb.x,ew=eb.y;K.previousWheelEvent=G,K.setTransformState(em,eC,ew),handleCallback(getContext(K),G,er),handleCallback(getContext(K),G,en)}},handleWheelStop=function(K,G){var J=K.props,et=J.onWheelStop,er=J.onZoomStop;cancelTimeout(K.wheelAnimationTimer),K.wheelAnimationTimer=setTimeout(function(){K.mounted&&(handleAlignToScaleBounds(K,G.x,G.y),K.wheelAnimationTimer=null)},100),handleWheelZoomStop(K,G)&&(cancelTimeout(K.wheelStopEventTimer),K.wheelStopEventTimer=setTimeout(function(){K.mounted&&(K.wheelStopEventTimer=null,handleCallback(getContext(K),G,et),handleCallback(getContext(K),G,er))},160))},handlePinchStart=function(K,G){var J=getTouchDistance(G);K.pinchStartDistance=J,K.lastDistance=J,K.pinchStartScale=K.transformState.scale,K.isPanning=!1,handleCancelAnimation(K)},handlePinchZoom=function(K,G){var J=K.contentComponent,et=K.pinchStartDistance,er=K.transformState.scale,en=K.setup,ei=en.limitToBounds,eo=en.centerZoomedOut,es=en.zoomAnimation,el=es.disabled,ec=es.size;if(null!==et&&J){var eu=calculateTouchMidPoint(G,er,J);if(Number.isFinite(eu.x)&&Number.isFinite(eu.y)){var ed=getTouchDistance(G),eh=calculatePinchZoom(K,ed);if(eh!==er){var ep=handleCalculateBounds(K,eh),ef=handleCalculateZoomPositions(K,eu.x,eu.y,eh,ep,ei&&(el||0===ec||eo)),eg=ef.x,em=ef.y;K.pinchMidpoint=eu,K.lastDistance=ed,K.setTransformState(eh,eg,em)}}}},handlePinchStop=function(K){var G=K.pinchMidpoint;K.velocity=null,K.lastDistance=null,K.pinchMidpoint=null,K.pinchStartScale=null,K.pinchStartDistance=null,handleAlignToScaleBounds(K,null==G?void 0:G.x,null==G?void 0:G.y)},handleDoubleClickStop=function(K,G){var J=K.props.onZoomStop,et=K.setup.doubleClick.animationTime;cancelTimeout(K.doubleClickStopEventTimer),K.doubleClickStopEventTimer=setTimeout(function(){K.doubleClickStopEventTimer=null,handleCallback(getContext(K),G,J)},et)},handleDoubleClickResetMode=function(K,G){var J=K.props,et=J.onZoomStart,er=J.onZoom,en=K.setup.doubleClick,ei=en.animationTime,eo=en.animationType;handleCallback(getContext(K),G,et),resetTransformations(K,ei,eo,function(){return handleCallback(getContext(K),G,er)}),handleDoubleClickStop(K,G)},isDoubleClickAllowed=function(K,G){var J=K.isInitialized,et=K.setup,er=K.wrapperComponent,en=et.doubleClick,ei=en.disabled,eo=en.excluded,es=G.target,el=null==er?void 0:er.contains(es);return!(!(J&&es&&el&&!ei)||isExcludedNode(es,eo))},ZoomPanPinch=function(K){var G=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){G.initializeWindowEvents()},this.unmount=function(){G.cleanupWindowEvents()},this.update=function(K){handleCalculateBounds(G,G.transformState.scale),G.setup=createSetup(K)},this.initializeWindowEvents=function(){var K,J=makePassiveEventOption(),et=null===(K=G.wrapperComponent)||void 0===K?void 0:K.ownerDocument,er=null==et?void 0:et.defaultView;null==er||er.addEventListener("mousedown",G.onPanningStart,J),null==er||er.addEventListener("mousemove",G.onPanning,J),null==er||er.addEventListener("mouseup",G.onPanningStop,J),null==et||et.addEventListener("mouseleave",G.clearPanning,J),null==er||er.addEventListener("keyup",G.setKeyUnPressed,J),null==er||er.addEventListener("keydown",G.setKeyPressed,J)},this.cleanupWindowEvents=function(){var K,J,et=makePassiveEventOption(),er=null===(K=G.wrapperComponent)||void 0===K?void 0:K.ownerDocument,en=null==er?void 0:er.defaultView;null==en||en.removeEventListener("mousedown",G.onPanningStart,et),null==en||en.removeEventListener("mousemove",G.onPanning,et),null==en||en.removeEventListener("mouseup",G.onPanningStop,et),null==er||er.removeEventListener("mouseleave",G.clearPanning,et),null==en||en.removeEventListener("keyup",G.setKeyUnPressed,et),null==en||en.removeEventListener("keydown",G.setKeyPressed,et),document.removeEventListener("mouseleave",G.clearPanning,et),handleCancelAnimation(G),null===(J=G.observer)||void 0===J||J.disconnect()},this.handleInitializeWrapperEvents=function(K){var J=makePassiveEventOption();K.addEventListener("wheel",G.onWheelZoom,J),K.addEventListener("dblclick",G.onDoubleClick,J),K.addEventListener("touchstart",G.onTouchPanningStart,J),K.addEventListener("touchmove",G.onTouchPanning,J),K.addEventListener("touchend",G.onTouchPanningStop,J)},this.handleInitialize=function(K){var J=G.setup.centerOnInit;G.applyTransformation(),G.onInitCallbacks.forEach(function(K){return K(getContext(G))}),J&&(G.setCenter(),G.observer=new ResizeObserver(function(){var K;G.onInitCallbacks.forEach(function(K){return K(getContext(G))}),G.setCenter(),null===(K=G.observer)||void 0===K||K.disconnect()}),G.observer.observe(K))},this.onWheelZoom=function(K){!G.setup.disabled&&isWheelAllowed(G,K)&&G.isPressingKeys(G.setup.wheel.activationKeys)&&(handleWheelStart(G,K),handleWheelZoom(G,K),handleWheelStop(G,K))},this.onPanningStart=function(K){var J=G.setup.disabled,et=G.props.onPanningStart;!J&&isPanningStartAllowed(G,K)&&G.isPressingKeys(G.setup.panning.activationKeys)&&(K.preventDefault(),K.stopPropagation(),handleCancelAnimation(G),handlePanningStart(G,K),handleCallback(getContext(G),K,et))},this.onPanning=function(K){var J=G.setup.disabled,et=G.props.onPanning;!J&&isPanningAllowed(G)&&G.isPressingKeys(G.setup.panning.activationKeys)&&(K.preventDefault(),K.stopPropagation(),handlePanning(G,K.clientX,K.clientY),handleCallback(getContext(G),K,et))},this.onPanningStop=function(K){var J=G.props.onPanningStop;G.isPanning&&(function(K){if(K.isPanning){var G=K.setup.panning.velocityDisabled,J=K.velocity,et=K.wrapperComponent,en=K.contentComponent;K.isPanning=!1,K.animate=!1,K.animation=null;var ei=null==et?void 0:et.getBoundingClientRect(),eo=null==en?void 0:en.getBoundingClientRect(),es=(null==ei?void 0:ei.width)||0,el=(null==ei?void 0:ei.height)||0,ec=(null==eo?void 0:eo.width)||0,eu=(null==eo?void 0:eo.height)||0;!G&&J&&(null==J?void 0:J.total)>.1&&(es<ec||el<eu)?function(K){var G,J,et,en,ei=K.velocity,eo=K.bounds,es=K.setup,el=K.wrapperComponent;if(isVelocityAllowed(K)&&ei&&eo&&el){var ec=ei.velocityX,eu=ei.velocityY,ed=ei.total,eh=eo.maxPositionX,ep=eo.minPositionX,ef=eo.maxPositionY,eg=eo.minPositionY,em=es.limitToBounds,ey=es.alignmentAnimation,ev=es.zoomAnimation,eb=es.panning,eC=eb.lockAxisY,ew=eb.lockAxisX,e_=ev.animationType,eS=ey.sizeX,ek=ey.sizeY,eA=ey.velocityAlignmentTime,eE=Math.max((J=(G=K.setup.velocityAnimation).equalToMove,et=G.animationTime,en=G.sensitivity,J?et*ed*en:et),eA),eT=getPaddingValue(K,eS),eI=getPaddingValue(K,ek),eP=eT*el.offsetWidth/100,eO=eI*el.offsetHeight/100,eR=eh+eP,ex=ep-eP,eD=ef+eO,eM=eg-eO,eN=K.transformState,eL=new Date().getTime();handleSetupAnimation(K,e_,eE,function(G){var J=K.transformState,et=J.scale,en=J.positionX,ei=J.positionY,eo=(new Date().getTime()-eL)/eA,es=1-(0,er[ey.animationType])(Math.min(1,eo)),el=1-G,ed=en+ec*el,ev=ei+eu*el,eb=getVelocityPosition(ed,eN.positionX,en,ew,em,ep,eh,ex,eR,es),e_=getVelocityPosition(ev,eN.positionY,ei,eC,em,eg,ef,eM,eD,es);(en!==ed||ei!==ev)&&K.setTransformState(et,eb,e_)})}}(K):handleAlignToBounds(K)}}(G),handleCallback(getContext(G),K,J))},this.onPinchStart=function(K){var J=G.setup.disabled,et=G.props,er=et.onPinchingStart,en=et.onZoomStart;!J&&isPinchStartAllowed(G,K)&&(handlePinchStart(G,K),handleCancelAnimation(G),handleCallback(getContext(G),K,er),handleCallback(getContext(G),K,en))},this.onPinch=function(K){var J=G.setup.disabled,et=G.props,er=et.onPinching,en=et.onZoom;!J&&isPinchAllowed(G)&&(K.preventDefault(),K.stopPropagation(),handlePinchZoom(G,K),handleCallback(getContext(G),K,er),handleCallback(getContext(G),K,en))},this.onPinchStop=function(K){var J=G.props,et=J.onPinchingStop,er=J.onZoomStop;G.pinchStartScale&&(handlePinchStop(G),handleCallback(getContext(G),K,et),handleCallback(getContext(G),K,er))},this.onTouchPanningStart=function(K){var J=G.setup.disabled,et=G.props.onPanningStart;if(!J&&isPanningStartAllowed(G,K)){if(G.lastTouch&&+new Date-G.lastTouch<200&&1===K.touches.length)G.onDoubleClick(K);else{G.lastTouch=+new Date,handleCancelAnimation(G);var er=K.touches,en=1===er.length,ei=2===er.length;en&&(handleCancelAnimation(G),handlePanningStart(G,K),handleCallback(getContext(G),K,et)),ei&&G.onPinchStart(K)}}},this.onTouchPanning=function(K){var J=G.setup.disabled,et=G.props.onPanning;if(G.isPanning&&1===K.touches.length){if(J||!isPanningAllowed(G))return;K.preventDefault(),K.stopPropagation();var er=K.touches[0];handlePanning(G,er.clientX,er.clientY),handleCallback(getContext(G),K,et)}else K.touches.length>1&&G.onPinch(K)},this.onTouchPanningStop=function(K){G.onPanningStop(K),G.onPinchStop(K)},this.onDoubleClick=function(K){!G.setup.disabled&&isDoubleClickAllowed(G,K)&&function(K,G){var J=K.setup,et=K.doubleClickStopEventTimer,er=K.transformState,en=K.contentComponent,ei=er.scale,eo=K.props,es=eo.onZoomStart,el=eo.onZoom,
79ec=J.doubleClick,eu=ec.disabled,ed=ec.mode,eh=ec.step,ep=ec.animationTime,ef=ec.animationType;if(!eu&&!et){if("reset"===ed)return handleDoubleClickResetMode(K,G);if(!en)return console.error("No ContentComponent found");var eg=handleCalculateButtonZoom(K,"zoomOut"===ed?-1:1,eh);if(ei!==eg){handleCallback(getContext(K),G,es);var em=getMousePosition(G,en,ei),ey=handleZoomToPoint(K,eg,em.x,em.y);if(!ey)return console.error("Error during zoom event. New transformation state was not calculated.");handleCallback(getContext(K),G,el),animate(K,ey,ep,ef),handleDoubleClickStop(K,G)}}}(G,K)},this.clearPanning=function(K){G.isPanning&&G.onPanningStop(K)},this.setKeyPressed=function(K){G.pressedKeys[K.key]=!0},this.setKeyUnPressed=function(K){G.pressedKeys[K.key]=!1},this.isPressingKeys=function(K){return!K.length||!!K.find(function(K){return G.pressedKeys[K]})},this.setTransformState=function(K,J,et){var er=G.props.onTransformed;if(Number.isNaN(K)||Number.isNaN(J)||Number.isNaN(et))console.error("Detected NaN set state values");else{K!==G.transformState.scale&&(G.transformState.previousScale=G.transformState.scale,G.transformState.scale=K),G.transformState.positionX=J,G.transformState.positionY=et,G.applyTransformation();var en=getContext(G);
79G.onChangeCallbacks.forEach(function(K){return K(en)}),handleCallback(en,{scale:K,positionX:J,positionY:et},er)}},this.setCenter=function(){if(G.wrapperComponent&&G.contentComponent){var K=getCenterPosition(G.transformState.scale,G.wrapperComponent,G.contentComponent);G.setTransformState(K.scale,K.positionX,K.positionY)}},this.handleTransformStyles=function(K,J,et){return G.props.customTransform?G.props.customTransform(K,J,et):"translate(".concat(K,"px, ").concat(J,"px) scale(").concat(et,")")},this.applyTransformation=function(){if(G.mounted&&G.contentComponent){var K=G.transformState,J=K.scale,et=K.positionX,er=K.positionY,en=G.handleTransformStyles(et,er,J);G.contentComponent.style.transform=en}},this.getContext=function(){return getContext(G)},this.onChange=function(K){return G.onChangeCallbacks.has(K)||G.onChangeCallbacks.add(K),function(){G.onChangeCallbacks.delete(K)}},this.onInit=function(K){return G.onInitCallbacks.has(K)||G.onInitCallbacks.add(K),function(){G.onInitCallbacks.delete(K)}},this.init=function(K,J){G.cleanupWindowEvents(),G.wrapperComponent=K,G.contentComponent=J,handleCalculateBounds(G,G.transformState.scale),G.handleInitializeWrapperEvents(K),G.handleInitialize(J),G.initializeWindowEvents(),G.isInitialized=!0,handleCallback(getContext(G),void 0,G.props.onInit)},this.props=K,this.setup=createSetup(this.props),this.transformState=createState(this.props)},eo=et.createContext(null),es=et.forwardRef(function(K,G){var J,er,en=(0,et.useRef)(new ZoomPanPinch(K)).current,ei=(J=K.children,er=getControls(en),"function"==typeof J?J(er):J);return(0,et.useImperativeHandle)(G,function(){return getControls(en)},[en]),(0,et.useEffect)(function(){en.update(K)},[en,K]),et.createElement(eo.Provider,{value:en},ei)});et.forwardRef(function(K,G){var J,er=(0,et.useRef)(null),en=(0,et.useContext)(eo);return(0,et.useEffect)(function(){return en.onChange(function(K){er.current&&(er.current.style.transform=en.handleTransformStyles(0,0,1/K.instance.transformState.scale))})},[en]),et.createElement("div",__assign({},K,{ref:(J=[er,G],function(K){J.forEach(function(G){"function"==typeof G?G(K):null!=G&&(G.current=K)})})}))}),!function(K,G){void 0===G&&(G={});var J=G.insertAt;if(K&&"undefined"!=typeof document){var et=document.head||document.getElementsByTagName("head")[0],er=document.createElement("style");er.type="text/css","top"===J&&et.firstChild?et.insertBefore(er,et.firstChild):et.appendChild(er),er.styleSheet?er.styleSheet.cssText=K:er.appendChild(document.createTextNode(K))}}(".transform-component-module_wrapper__SPB86 {\n  position: relative;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  overflow: hidden;\n  -webkit-touch-callout: none; /* iOS Safari */\n  -webkit-user-select: none; /* Safari */\n  -khtml-user-select: none; /* Konqueror HTML */\n  -moz-user-select: none; /* Firefox */\n  -ms-user-select: none; /* Internet Explorer/Edge */\n  user-select: none;\n  margin: 0;\n  padding: 0;\n}\n.transform-component-module_content__FBWxo {\n  display: flex;\n  flex-wrap: wrap;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  margin: 0;\n  padding: 0;\n  transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n  pointer-events: none;\n}\n");var TransformComponent=function(K){var G=K.children,J=K.wrapperClass,er=void 0===J?"":J,en=K.contentClass,ei=void 0===en?"":en,es=K.wrapperStyle,el=K.contentStyle,ec=K.wrapperProps,eu=void 0===ec?{}:ec,ed=K.contentProps,eh=void 0===ed?{}:ed,ep=(0,et.useContext)(eo).init,ef=(0,et.useRef)(null),eg=(0,et.useRef)(null);return(0,et.useEffect)(function(){var K=ef.current,G=eg.current;null!==K&&null!==G&&ep&&ep(K,G)},[]),et.createElement("div",__assign({},eu,{ref:ef,className:"react-transform-wrapper ".concat("transform-component-module_wrapper__SPB86"," ").concat(er),style:es}),et.createElement("div",__assign({},eh,{ref:eg,className:"react-transform-component ".concat("transform-component-module_content__FBWxo"," ").concat(ei),style:el}),G))}},96774:function(K){K.exports=function(K,G,J,et){var er=J?J.call(et,K,G):void 0;if(void 0!==er)return!!er;if(K===G)return!0;
79if("object"!=typeof K||!K||"object"!=typeof G||!G)return!1;var en=Object.keys(K),ei=Object.keys(G);if(en.length!==ei.length)return!1;for(var eo=Object.prototype.hasOwnProperty.bind(G),es=0;es<en.length;es++){var el=en[es];if(!eo(el))return!1;var ec=K[el],eu=G[el];if(!1===(er=J?J.call(et,ec,eu,el):void 0)||void 0===er&&ec!==eu)return!1}return!0}},7597:function(K,G,J){let et;let{v4:er}=J(97402),en=J(40964),ei="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",eo={consistentLength:!0},shortenUUID=(K,G,J)=>{let et=G(K.toLowerCase().replace(/-/g,""));return J&&J.consistentLength?et.padStart(J.shortIdLength,J.paddingChar):et},enlargeUUID=(K,G)=>{let J=G(K).padStart(32,"0"),et=J.match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[et[1],et[2],et[3],et[4],et[5]].join("-")},getShortIdLength=K=>Math.ceil(Math.log(3402823669209385e23)/Math.log(K));K.exports=(()=>{let makeConvertor=(K,G)=>{let J=K||ei,et={...eo,...G};if([...new Set(Array.from(J))].length!==J.length)throw Error("The provided Alphabet has duplicate characters resulting in unreliable results");let es=getShortIdLength(J.length),el={shortIdLength:es,consistentLength:et.consistentLength,paddingChar:J[0]},ec=en(en.HEX,J),eu=en(J,en.HEX),generate=()=>shortenUUID(er(),ec,el),ed={new:generate,generate,uuid:er,fromUUID:K=>shortenUUID(K,ec,el),toUUID:K=>enlargeUUID(K,eu),alphabet:J,maxLength:es};return Object.freeze(ed),ed};return makeConvertor.constants={flickrBase58:ei,cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"},makeConvertor.uuid=er,makeConvertor.generate=()=>(et||(et=makeConvertor(ei).generate),et()),makeConvertor})()},97402:function(K,G,J){"use strict";J.r(G),J.d(G,{NIL:function(){return ep},parse:function(){return esm_browser_parse},stringify:function(){return esm_browser_stringify},v1:function(){return esm_browser_v1},v3:function(){return ed},v4:function(){return esm_browser_v4},v5:function(){return eh},validate:function(){return esm_browser_validate},version:function(){return esm_browser_version}});var et,er,en,ei=new Uint8Array(16);function rng(){if(!et&&!(et="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return et(ei)}for(var eo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,esm_browser_validate=function(K){return"string"==typeof K&&eo.test(K)},es=[],el=0;el<256;++el)es.push((el+256).toString(16).substr(1));var esm_browser_stringify=function(K){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,J=(es[K[G+0]]+es[K[G+1]]+es[K[G+2]]+es[K[G+3]]+"-"+es[K[G+4]]+es[K[G+5]]+"-"+es[K[G+6]]+es[K[G+7]]+"-"+es[K[G+8]]+es[K[G+9]]+"-"+es[K[G+10]]+es[K[G+11]]+es[K[G+12]]+es[K[G+13]]+es[K[G+14]]+es[K[G+15]]).toLowerCase();if(!esm_browser_validate(J))throw TypeError("Stringified UUID is invalid");return J},ec=0,eu=0,esm_browser_v1=function(K,G,J){var et=G&&J||0,ei=G||Array(16),eo=(K=K||{}).node||er,es=void 0!==K.clockseq?K.clockseq:en;if(null==eo||null==es){var el=K.random||(K.rng||rng)();null==eo&&(eo=er=[1|el[0],el[1],el[2],el[3],el[4],el[5]]),null==es&&(es=en=(el[6]<<8|el[7])&16383)}var ed=void 0!==K.msecs?K.msecs:Date.now(),eh=void 0!==K.nsecs?K.nsecs:eu+1,ep=ed-ec+(eh-eu)/1e4;if(ep<0&&void 0===K.clockseq&&(es=es+1&16383),(ep<0||ed>ec)&&void 0===K.nsecs&&(eh=0),eh>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");ec=ed,eu=eh,en=es;var ef=((268435455&(ed+=122192928e5))*1e4+eh)%4294967296;ei[et++]=ef>>>24&255,ei[et++]=ef>>>16&255,ei[et++]=ef>>>8&255,ei[et++]=255&ef;var eg=ed/4294967296*1e4&268435455;ei[et++]=eg>>>8&255,ei[et++]=255&eg,ei[et++]=eg>>>24&15|16,ei[et++]=eg>>>16&255,ei[et++]=es>>>8|128,ei[et++]=255&es;for(var em=0;em<6;++em)ei[et+em]=eo[em];return G||esm_browser_stringify(ei)},esm_browser_parse=function(K){if(!esm_browser_validate(K))throw TypeError("Invalid UUID");var G,J=new Uint8Array(16);return J[0]=(G=parseInt(K.slice(0,8),16))>>>24,J[1]=G>>>16&255,J[2]=G>>>8&255,J[3]=255&G,J[4]=(G=parseInt(K.slice(9,13),16))>>>8,J[5]=255&G,J[6]=(G=parseInt(K.slice(14,18),16))>>>8,J[7]=255&G,J[8]=(G=parseInt(K.slice(19,23),16))>>>8,J[9]=255&G,J[10]=(G=parseInt(K.slice(24,36),16))/1099511627776&255,J[11]=G/4294967296&255,J[12]=G>>>24&255,J[13]=G>>>16&255,J[14]=G>>>8&255,J[15]=255&G,J};
79function v35(K,G,J){function generateUUID(K,et,er,en){if("string"==typeof K&&(K=function(K){K=unescape(encodeURIComponent(K));for(var G=[],J=0;J<K.length;++J)G.push(K.charCodeAt(J));return G}(K)),"string"==typeof et&&(et=esm_browser_parse(et)),16!==et.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var ei=new Uint8Array(16+K.length);if(ei.set(et),ei.set(K,et.length),(ei=J(ei))[6]=15&ei[6]|G,ei[8]=63&ei[8]|128,er){en=en||0;for(var eo=0;eo<16;++eo)er[en+eo]=ei[eo];return er}return esm_browser_stringify(ei)}try{generateUUID.name=K}catch(K){}return generateUUID.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",generateUUID.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",generateUUID}function getOutputLength(K){return(K+64>>>9<<4)+14+1}function safeAdd(K,G){var J=(65535&K)+(65535&G);return(K>>16)+(G>>16)+(J>>16)<<16|65535&J}function md5cmn(K,G,J,et,er,en){var ei;return safeAdd((ei=safeAdd(safeAdd(G,K),safeAdd(et,en)))<<er|ei>>>32-er,J)}function md5ff(K,G,J,et,er,en,ei){return md5cmn(G&J|~G&et,K,G,er,en,ei)}function md5gg(K,G,J,et,er,en,ei){return md5cmn(G&et|J&~et,K,G,er,en,ei)}function md5hh(K,G,J,et,er,en,ei){return md5cmn(G^J^et,K,G,er,en,ei)}function md5ii(K,G,J,et,er,en,ei){return md5cmn(J^(G|~et),K,G,er,en,ei)}var ed=v35("v3",48,function(K){if("string"==typeof K){var G=unescape(encodeURIComponent(K));K=new Uint8Array(G.length);for(var J=0;J<G.length;++J)K[J]=G.charCodeAt(J)}return function(K){for(var G=[],J=32*K.length,et="0123456789abcdef",er=0;er<J;er+=8){var en=K[er>>5]>>>er%32&255,ei=parseInt(et.charAt(en>>>4&15)+et.charAt(15&en),16);G.push(ei)}return G}(function(K,G){K[G>>5]|=128<<G%32,K[getOutputLength(G)-1]=G;for(var J=1732584193,et=-271733879,er=-1732584194,en=271733878,ei=0;ei<K.length;ei+=16){var eo=J,es=et,el=er,ec=en;J=md5ff(J,et,er,en,K[ei],7,-680876936),en=md5ff(en,J,et,er,K[ei+1],12,-389564586),er=md5ff(er,en,J,et,K[ei+2],17,606105819),et=md5ff(et,er,en,J,K[ei+3],22,-1044525330),J=md5ff(J,et,er,en,K[ei+4],7,-176418897),en=md5ff(en,J,et,er,K[ei+5],12,1200080426),er=md5ff(er,en,J,et,K[ei+6],17,-1473231341),et=md5ff(et,er,en,J,K[ei+7],22,-45705983),J=md5ff(J,et,er,en,K[ei+8],7,1770035416),en=md5ff(en,J,et,er,K[ei+9],12,-1958414417),er=md5ff(er,en,J,et,K[ei+10],17,-42063),et=md5ff(et,er,en,J,K[ei+11],22,-1990404162),J=md5ff(J,et,er,en,K[ei+12],7,1804603682),en=md5ff(en,J,et,er,K[ei+13],12,-40341101),er=md5ff(er,en,J,et,K[ei+14],17,-1502002290),et=md5ff(et,er,en,J,K[ei+15],22,1236535329),J=md5gg(J,et,er,en,K[ei+1],5,-165796510),en=md5gg(en,J,et,er,K[ei+6],9,-1069501632),er=md5gg(er,en,J,et,K[ei+11],14,643717713),et=md5gg(et,er,en,J,K[ei],20,-373897302),J=md5gg(J,et,er,en,K[ei+5],5,-701558691),en=md5gg(en,J,et,er,K[ei+10],9,38016083),er=md5gg(er,en,J,et,K[ei+15],14,-660478335),et=md5gg(et,er,en,J,K[ei+4],20,-405537848),J=md5gg(J,et,er,en,K[ei+9],5,568446438),en=md5gg(en,J,et,er,K[ei+14],9,-1019803690),er=md5gg(er,en,J,et,K[ei+3],14,-187363961),et=md5gg(et,er,en,J,K[ei+8],20,1163531501),J=md5gg(J,et,er,en,K[ei+13],5,-1444681467),en=md5gg(en,J,et,er,K[ei+2],9,-51403784),er=md5gg(er,en,J,et,K[ei+7],14,1735328473),et=md5gg(et,er,en,J,K[ei+12],20,-1926607734),J=md5hh(J,et,er,en,K[ei+5],4,-378558),en=md5hh(en,J,et,er,K[ei+8],11,-2022574463),er=md5hh(er,en,J,et,K[ei+11],16,1839030562),et=md5hh(et,er,en,J,K[ei+14],23,-35309556),J=md5hh(J,et,er,en,K[ei+1],4,-1530992060),en=md5hh(en,J,et,er,K[ei+4],11,1272893353),er
79=md5hh(er,en,J,et,K[ei+7],16,-155497632),et=md5hh(et,er,en,J,K[ei+10],23,-1094730640),J=md5hh(J,et,er,en,K[ei+13],4,681279174),en=md5hh(en,J,et,er,K[ei],11,-358537222),er=md5hh(er,en,J,et,K[ei+3],16,-722521979),et=md5hh(et,er,en,J,K[ei+6],23,76029189),J=md5hh(J,et,er,en,K[ei+9],4,-640364487),en=md5hh(en,J,et,er,K[ei+12],11,-421815835),er=md5hh(er,en,J,et,K[ei+15],16,530742520),et=md5hh(et,er,en,J,K[ei+2],23,-995338651),J=md5ii(J,et,er,en,K[ei],6,-198630844),en=md5ii(en,J,et,er,K[ei+7],10,1126891415),er=md5ii(er,en,J,et,K[ei+14],15,-1416354905),et=md5ii(et,er,en,J,K[ei+5],21,-57434055),J=md5ii(J,et,er,en,K[ei+12],6,1700485571),en=md5ii(en,J,et,er,K[ei+3],10,-1894986606),er=md5ii(er,en,J,et,K[ei+10],15,-1051523),et=md5ii(et,er,en,J,K[ei+1],21,-2054922799),J=md5ii(J,et,er,en,K[ei+8],6,1873313359),en=md5ii(en,J,et,er,K[ei+15],10,-30611744),er=md5ii(er,en,J,et,K[ei+6],15,-1560198380),et=md5ii(et,er,en,J,K[ei+13],21,1309151649),J=md5ii(J,et,er,en,K[ei+4],6,-145523070),en=md5ii(en,J,et,er,K[ei+11],10,-1120210379),er=md5ii(er,en,J,et,K[ei+2],15,718787259),et=md5ii(et,er,en,J,K[ei+9],21,-343485551),J=safeAdd(J,eo),et=safeAdd(et,es),er=safeAdd(er,el),en=safeAdd(en,ec)}return[J,et,er,en]}(function(K){if(0===K.length)return[];for(var G=8*K.length,J=new Uint32Array(getOutputLength(G)),et=0;et<G;et+=8)J[et>>5]|=(255&K[et/8])<<et%32;return J}(K),8*K.length))}),esm_browser_v4=function(K,G,J){var et=(K=K||{}).random||(K.rng||rng)();if(et[6]=15&et[6]|64,et[8]=63&et[8]|128,G){J=J||0;for(var er=0;er<16;++er)G[J+er]=et[er];return G}return esm_browser_stringify(et)};function ROTL(K,G){return K<<G|K>>>32-G}var eh=v35("v5",80,function(K){var G=[1518500249,1859775393,2400959708,3395469782],J=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof K){var et=unescape(encodeURIComponent(K));K=[];for(var er=0;er<et.length;++er)K.push(et.charCodeAt(er))}else Array.isArray(K)||(K=Array.prototype.slice.call(K));K.push(128);for(var en=Math.ceil((K.length/4+2)/16),ei=Array(en),eo=0;eo<en;++eo){for(var es=new Uint32Array(16),el=0;el<16;++el)es[el]=K[64*eo+4*el]<<24|K[64*eo+4*el+1]<<16|K[64*eo+4*el+2]<<8|K[64*eo+4*el+3];ei[eo]=es}ei[en-1][14]=(K.length-1)*8/4294967296,ei[en-1][14]=Math.floor(ei[en-1][14]),ei[en-1][15]=(K.length-1)*8&4294967295;for(var ec=0;ec<en;++ec){for(var eu=new Uint32Array(80),ed=0;ed<16;++ed)eu[ed]=ei[ec][ed];for(var eh=16;eh<80;++eh)eu[eh]=ROTL(eu[eh-3]^eu[eh-8]^eu[eh-14]^eu[eh-16],1);for(var ep=J[0],ef=J[1],eg=J[2],em=J[3],ey=J[4],ev=0;ev<80;++ev){var eb=Math.floor(ev/20),eC=ROTL(ep,5)+function(K,G,J,et){switch(K){case 0:return G&J^~G&et;case 1:case 3:return G^J^et;case 2:return G&J^G&et^J&et}}(eb,ef,eg,em)+ey+G[eb]+eu[ev]>>>0;ey=em,em=eg,eg=ROTL(ef,30)>>>0,ef=ep,ep=eC}J[0]=J[0]+ep>>>0,J[1]=J[1]+ef>>>0,J[2]=J[2]+eg>>>0,J[3]=J[3]+em>>>0,J[4]=J[4]+ey>>>0}return[J[0]>>24&255,J[0]>>16&255,J[0]>>8&255,255&J[0],J[1]>>24&255,J[1]>>16&255,J[1]>>8&255,255&J[1],J[2]>>24&255,J[2]>>16&255,J[2]>>8&255,255&J[2],J[3]>>24&255,J[3]>>16&255,J[3]>>8&255,255&J[3],J[4]>>24&255,J[4]>>16&255,J[4]>>8&255,255&J[4]]}),ep="00000000-0000-0000-0000-000000000000",esm_browser_version=function(K){if(!esm_browser_validate(K))throw TypeError("Invalid UUID");return parseInt(K.substr(14,1),16)}},29472:function(K){/*!
80 * smooch 5.5.5 
81 * License : https://smooch.io/terms
82 * 
83 * All files located in the node_modules and external directories are
84 * externally maintained libraries used by this software which have their
85 * own licenses; we recommend you read them, as their terms may differ from
86 * the terms above.
87 * 
88 */K.exports=function(K){var G={};function n(J){if(G[J])return G[J].exports;var et=G[J]={i:J,l:!1,exports:{}};return K[J].call(et.exports,et,et.exports,n),et.l=!0,et.exports}return n.m=K,n.c=G,n.d=function(K,G,J){n.o(K,G)||Object.defineProperty(K,G,{enumerable:!0,get:J})},n.r=function(K){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},n.t=function(K,G){if(1&G&&(K=n(K)),8&G||4&G&&"object"==typeof K&&K&&K.__esModule)return K;var J=Object.create(null);if(n.r(J),Object.defineProperty(J,"default",{enumerable:!0,value:K}),2&G&&"string"!=typeof K)for(var et in K)n.d(J,et,(function(G){return K[G]}).bind(null,et));return J},n.n=function(K){var G=K&&K.__esModule?function(){return K.default}:function(){return K};return n.d(G,"a",G),G},n.o=function(K,G){return Object.prototype.hasOwnProperty.call(K,G)},n.p="https://cdn.smooch.io/",n(n.s=6)}([function(K,G,J){var et=J(3);K.exports=new et},function(K,G){K.exports={isFunction:function(K){return"function"==typeof K},isArray:function(K){return"[object Array]"===Object.prototype.toString.apply(K)},each:function(K,G){for(var J=0,et=K.length;J<et&&!1!==G(K[J],J);J++);}}},function(K,G,J){K.exports={iframe:"_2ChX4GFAl1-UBiWknYZyEQ",displayButton:"avcHn2VQJenBvoR5hilPG",widgetClosed:"_3fQbteJd3oQu4il3LpMKkX","iframe-button-close-lg":"_3FxKeTOOgcsFroUq6se9N7","iframe-button-close-md":"_1GmqPtlICLsWVMg2Kpdx_0","iframe-button-close-sm":"_36mHeCXpAKdhEsuuD5g8oV","iframe-button-close-xs":"_1ZWQW0p6AI6UGwBFbdBf9M",displayTab:"_3dtqBiGeC8k3yop4A-9Lwm",widgetOpened:"_2TELtk5nDKlQudVSivRjpt",widgetEmbedded:"_24n-ftZlG3wDvoWFR8zUnn"}},function(K,G,J){var et=J(4),er=J(1),en=er.each,ei=er.isFunction,eo=er.isArray;
88function c(){if(!window.matchMedia)throw Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,register:function(K,G,J){var er=this.queries,es=J&&this.browserIsIncapable;return er[K]||(er[K]=new et(K,es)),ei(G)&&(G={match:G}),eo(G)||(G=[G]),en(G,function(G){ei(G)&&(G={match:G}),er[K].addHandler(G)}),this},unregister:function(K,G){var J=this.queries[K];return J&&(G?J.removeHandler(G):(J.clear(),delete this.queries[K])),this}},K.exports=c},function(K,G,J){var et=J(5),er=J(1).each;function i(K,G){this.query=K,this.isUnconditional=G,this.handlers=[],this.mql=window.matchMedia(K);var J=this;this.listener=function(K){J.mql=K.currentTarget||K,J.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(K){var G=new et(K);this.handlers.push(G),this.matches()&&G.on()},removeHandler:function(K){var G=this.handlers;er(G,function(J,et){if(J.equals(K))return J.destroy(),!G.splice(et,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){er(this.handlers,function(K){K.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var K=this.matches()?"on":"off";er(this.handlers,function(G){G[K]()})}},K.exports=i},function(K,G){function n(K){this.options=K,K.deferSetup||this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(K){return this.options===K||this.options.match===K}},K.exports=n},function(K,G,J){"use strict";J.r(G);var et=J(2),er=J.n(et);function i(K){("complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState)&&document.body?K():document.addEventListener("DOMContentLoaded",function(){K()})}function a(K){var G=["screen"];return K.minHeight&&G.push("(min-height: ".concat(K.minHeight,"px)")),K.maxHeight&&G.push("(max-height: ".concat(K.maxHeight,"px)")),K.minWidth&&G.push("(min-width: ".concat(K.minWidth,"px)")),K.maxWidth&&G.push("(max-width: ".concat(K.maxWidth,"px)")),G.join(" and ")}var en=J(0),ei=J.n(en),eo={lg:{minHeight:668,minWidth:1200},md:[{minHeight:508,minWidth:768,maxWidth:1199},{minHeight:508,maxHeight:667,minWidth:768}],sm:{maxHeight:507,minWidth:768},xs:{maxWidth:767}},es=["lg","md","sm","xs"];function l(K){for(var G=0;G<es.length;G++){var J=es[G],et=eo[J];"[object Array]"!==Object.prototype.toString.call(et)&&(et=[et]);for(var er=0;er<et.length;er++)K({rule:et[er],size:J})}}function h(){return(h=Object.assign?Object.assign.bind():function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K}).apply(this,arguments)}function f(K){return function(K){if(Array.isArray(K))return p(K)}(K)||function(K){if("undefined"!=typeof Symbol&&null!=K[Symbol.iterator]||null!=K["@@iterator"])return Array.from(K)}(K)||function(K,G){if(K){if("string"==typeof K)return p(K,G);var J=Object.prototype.toString.call(K).slice(8,-1);if("Object"===J&&K.constructor&&(J=K.constructor.name),"Map"===J||"Set"===J)return Array.from(K);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return p(K,G)}}(K)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(K,G){(null==G||G>K.length)&&(G=K.length);for(var J=0,et=Array(G);J<G;J++)et[J]=K[J];return et}var el,ec,eu,ed,eh,ep={},ef=[],eg=[],em=/lebo|awle|pide|obo|rawli|dsbo/i.test(navigator.userAgent),ey=/PhantomJS/.test(navigator.userAgent)&&!0,ev=["init","login","on","off","logout","sendMessage","triggerPostback","createConversation","updateConversation","updateUser","getDisplayedConversation","getConversationById","getConversations","getMoreConversations","hasMoreConversations","getUser","open","close","isOpened","loadConversation","setDelegate","markAllAsRead","showNotificationChannelPrompt","setPredefinedMessage","startTyping","stopTyping"];if(em){var eb=document.createElement("a");eb.href="https://smooch.io/live-web-chat/?utm_source=widget",eb.text="Powered by Zendesk Sunshine",i(function(){document.body.appendChild(eb)})}function M(K){var G;window.__onWebMessengerFrameReady__=function(){},el=K,eu||(G=ec,l(function(K){var J=K.rule,et=K.size;ei.a.register(a(J),function(){G.contentWindow.postMessage({type:"sizeChange",value:et},"".concat(location.protocol,"//").concat(location.host))})}));for(var J=ev[0],et=0;et<ev.length;J=ev[++et])ep[J]=el[J];
88if(eg){for(var er,en=eg[0],eo=0;eo<eg.length;en=eg[++eo])(er=el).on.apply(er,f(en.args));eg=void 0}if(eh){var es,ed=(es=el).init.apply(es,f(eh));eh=void 0;for(var em=ef[0],ey=0;ey<ef.length;em=ef[++ey])ed="then"===em.type?ed.then(em.next):ed.catch(em.next);ef=[]}}var W=function(K){return K.contentWindow&&K.contentWindow.document},eC={VERSION:"5.5.5",on:function(){eg||(eg=[]);for(var K=arguments.length,G=Array(K),J=0;J<K;J++)G[J]=arguments[J];eg.push({args:G})},init:function(){for(var K=arguments.length,G=Array(K),J=0;J<K;J++)G[J]=arguments[J];eh=G,eu=G.length>0&&!!G[0].embedded,em||ey||i(function(){var K;(K=document.createElement("link")).rel="stylesheet",K.type="text/css",K.href="https://cdn.smooch.io/smooch.5.5.5.css",document.body.appendChild(K),function(){if(!ec){var K=null,G=!1;(ec=document.createElement("iframe")).id="web-messenger-container",ec.frameBorder=0,ec.allowFullscreen=!0,ec.allowTransparency=!0,ec.scrolling="no",ec.className=er.a.iframe;var n=function(){G=!0,clearInterval(K),delete ec.onload;var J=void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null,et=J?'nonce="'.concat(J,'"'):"",er="\n                    <!DOCTYPE html>\n                    <html>\n                        <head>\n                            ".concat("",'\n                            <link rel="stylesheet" href="').concat("https://cdn.smooch.io/frame.5.5.5.css",'" type="text/css" ').concat(et,' />\n                            <script src="').concat("https://cdn.smooch.io/frame.5.5.5.min.js",'" async crossorigin="anonymous" ').concat(et,'></script>\n                        </head>\n                        <body>\n                            <div id="mount"></div>\n                        </body>\n                    </html>\n                    ');if("srcdoc"in ec)ec.srcdoc=er;else{var en=W(ec);en.open(),en.write(er),en.close()}};K=setInterval(function(){var K=W(ec);G||!K||"complete"!==K.readyState&&"interactive"!==K.readyState||n()},1e3),ec.onload=function(){G||n()}}eu?ed&&(ed.appendChild(ec),ed=void 0):document.body.appendChild(ec)}()});var et={then:function(K){return ef.push({type:"then",next:K}),et},catch:function(K){return ef.push({type:"catch",next:K}),et}};return et},render:function(K){ec?K.appendChild(ec):ed=K},destroy:function(){el&&(el.destroy(),ec.remove?ec.remove():ec.parentNode.removeChild(ec),l(function(K){var G=K.rule;ei.a.unregister(a(G))}),I())}};function I(){if(!document.getElementById("web-messenger-container")){el=void 0,ec=void 0,window.__onWebMessengerFrameReady__=M;for(var K=ev[0],G=0;G<ev.length;K=ev[++G])ep[K]&&delete ep[K];h(ep,eC)}}I(),G.default=ep}])},41476:function(K,G,J){"use strict";var et=this&&this.__importDefault||function(K){return K&&K.__esModule?K:{default:K}};G.__esModule=!0;var er=et(J(57848)),en=J(26678);G.default=function(K,G){var J={};return K&&"string"==typeof K&&(0,er.default)(K,function(K,et){K&&et&&(J[(0,en.camelCase)(K,G)]=et)}),J}},26678:function(K,G){"use strict";G.__esModule=!0,G.camelCase=void 0;var J=/^--[a-zA-Z0-9-]+$/,et=/-([a-z])/g,er=/^[^-]+$/,en=/^-(webkit|moz|ms|o|khtml)-/,ei=/^-(ms)-/,capitalize=function(K,G){return G.toUpperCase()},trimHyphen=function(K,G){return"".concat(G,"-")};G.camelCase=function(K,G){var eo;return(void 0===G&&(G={}),!(eo=K)||er.test(eo)||J.test(eo))?K:(K=K.toLowerCase(),(K=G.reactCompat?K.replace(ei,trimHyphen):K.replace(en,trimHyphen)).replace(et,capitalize))}},57848:function(K,G,J){var et=J(18139);function StyleToObject(K,G){var J,er,en,ei=null;if(!K||"string"!=typeof K)return ei;for(var eo=et(K),es="function"==typeof G,el=0,ec=eo.length;el<ec;el++)er=(J=eo[el]).property,en=J.value,es?G(er,en,J):en&&(ei||(ei={}),ei[er]=en);return ei}K.exports=StyleToObject,K.exports.default=StyleToObject},20256:function(K,G,J){"use strict";J.d(G,{f6:function(){return Fe},vJ:function(){return We},iv:function(){return Ce},ZP:function(){return eJ},F4:function(){return Ue},Fg:function(){return Ze}});var et,er,en=J(59864),ei=J(67294),eo=J(96774),es=J.n(eo),stylis_browser_esm=function(K){function X(K,G,J){var et=G.trim().split(ei);G=et;var er=et.length,en=K.length;switch(en){case 0:case 1:var eo=0;for(K=0===en?"":K[0]+" ";eo<er;++eo)G[eo]=Z(K,G[eo],J).trim();break;default:var es=eo=0;for(G=[];eo<er;++eo)for(var el=0;el<en;++el)G[es++]=Z(K[el]+" ",et[eo],J).trim()}return G}function Z(K,G,J){var et=G.charCodeAt(0);switch(33>
vendor: 4,483 bytes, line 88
88et&&(et=(G=G.trim()).charCodeAt(0)),et){case 38:return G.replace(eo,"$1"+K.trim());case 58:return K.trim()+G.replace(eo,"$1"+K.trim());default:if(0<1*J&&0<G.indexOf("\f"))return G.replace(eo,(58===K.charCodeAt(0)?"":"$1")+K.trim())}return K+G}function P(K,G,J,ei){var eo=K+";",es=2*G+3*J+4*ei;if(944===es){K=eo.indexOf(":",9)+1;var el=eo.substring(K,eo.length-1).trim();return el=eo.substring(0,K).trim()+el+";",1===eC||2===eC&&L(el,1)?"-webkit-"+el+el:el}if(0===eC||2===eC&&!L(eo,1))return eo;switch(es){case 1015:return 97===eo.charCodeAt(10)?"-webkit-"+eo+eo:eo;case 951:return 116===eo.charCodeAt(3)?"-webkit-"+eo+eo:eo;case 963:return 110===eo.charCodeAt(5)?"-webkit-"+eo+eo:eo;case 1009:if(100!==eo.charCodeAt(4))break;case 969:case 942:return"-webkit-"+eo+eo;case 978:return"-webkit-"+eo+"-moz-"+eo+eo;case 1019:case 983:return"-webkit-"+eo+"-moz-"+eo+"-ms-"+eo+eo;case 883:if(45===eo.charCodeAt(8))return"-webkit-"+eo+eo;if(0<eo.indexOf("image-set(",11))return eo.replace(em,"$1-webkit-$2")+eo;break;case 932:if(45===eo.charCodeAt(4))switch(eo.charCodeAt(5)){case 103:return"-webkit-box-"+eo.replace("-grow","")+"-webkit-"+eo+"-ms-"+eo.replace("grow","positive")+eo;case 115:return"-webkit-"+eo+"-ms-"+eo.replace("shrink","negative")+eo;case 98:return"-webkit-"+eo+"-ms-"+eo.replace("basis","preferred-size")+eo}return"-webkit-"+eo+"-ms-"+eo+eo;case 964:return"-webkit-"+eo+"-ms-flex-"+eo+eo;case 1023:if(99!==eo.charCodeAt(8))break;return"-webkit-box-pack"+(el=eo.substring(eo.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+eo+"-ms-flex-pack"+el+eo;case 1005:return er.test(eo)?eo.replace(et,":-webkit-")+eo.replace(et,":-moz-")+eo:eo;case 1e3:switch(G=(el=eo.substring(13).trim()).indexOf("-")+1,el.charCodeAt(0)+el.charCodeAt(G)){case 226:el=eo.replace(eu,"tb");break;case 232:el=eo.replace(eu,"tb-rl");break;case 220:el=eo.replace(eu,"lr");break;default:return eo}return"-webkit-"+eo+"-ms-"+el+eo;case 1017:if(-1===eo.indexOf("sticky",9))break;case 975:switch(G=(eo=K).length-10,es=(el=(33===eo.charCodeAt(G)?eo.substring(0,G):eo).substring(K.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|el.charCodeAt(7))){case 203:if(111>el.charCodeAt(8))break;case 115:eo=eo.replace(el,"-webkit-"+el)+";"+eo;break;case 207:case 102:eo=eo.replace(el,"-webkit-"+(102<es?"inline-":"")+"box")+";"+eo.replace(el,"-webkit-"+el)+";"+eo.replace(el,"-ms-"+el+"box")+";"+eo}return eo+";";case 938:if(45===eo.charCodeAt(5))switch(eo.charCodeAt(6)){case 105:return el=eo.replace("-items",""),"-webkit-"+eo+"-webkit-box-"+el+"-ms-flex-"+el+eo;case 115:return"-webkit-"+eo+"-ms-flex-item-"+eo.replace(ep,"")+eo;default:return"-webkit-"+eo+"-ms-flex-line-pack"+eo.replace("align-content","").replace(ep,"")+eo}break;case 973:case 989:if(45!==eo.charCodeAt(3)||122===eo.charCodeAt(4))break;case 931:case 953:if(!0===eg.test(K))return 115===(el=K.substring(K.indexOf(":")+1)).charCodeAt(0)?P(K.replace("stretch","fill-available"),G,J,ei).replace(":fill-available",":stretch"):eo.replace(el,"-webkit-"+el)+eo.replace(el,"-moz-"+el.replace("fill-",""))+eo;break;case 962:if(eo="-webkit-"+eo+(102===eo.charCodeAt(5)?"-ms-"+eo:"")+eo,211===J+ei&&105===eo.charCodeAt(13)&&0<eo.indexOf("transform",10))return eo.substring(0,eo.indexOf(";",27)+1).replace(en,"$1-webkit-$2")+eo}return eo}function L(K,G){var J=K.indexOf(1===G?":":"{"),et=K.substring(0,3!==G?J:10);return J=K.substring(J+1,K.length-1),ek(2!==G?et:et.replace(ef,"$1"),J,G)}function ea(K,G){var J=P(G,G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2));return J!==G+";"?J.replace(eh," or ($1)").substring(4):"("+G+")"}function H(K,G,J,et,er,en,ei,eo,es,el){for(var ec,eu=0,ed=G;eu<eS;++eu)switch(ec=e_[eu].call(B,K,ed,J,et,er,en,ei,eo,es,el)){case void 0:case!1:case!0:case null:break;default:ed=ec}if(ed!==G)return ed}function U(K){return void 0!==(K=K.prefix)&&(ek=null,K?"function"!=typeof K?eC=1:(eC=2,ek=K):eC=0),U}function B(K,et){var er=K;if(33>er.charCodeAt(0)&&(er=er.trim()),er=[er],0<eS){var en=H(-1,et,er,er,ev,ey,0,0,0,0);void 0!==en&&"string"==typeof en&&(et=en)}var ei=function M(K,et,er,en,ei){for(var eo,eu,eh,ep,ef,eg=0,em=0,e_=0,ek=0,eE=0,eT=0,eI=eh=eo=0,eP=0,eO=0,eR=0,ex=0,eD=er.length,eM=eD-1,eN="",eL="",eF="",eB="";eP<eD;){if(eu=er.charCodeAt(eP),eP===eM&&0!==em+ek+e_+eg&&(0!==em&&(eu=47===em?10:47),ek=e_=eg=0,eD++,eM++),0===em+ek+e_+eg){if(eP===eM&&(0<eO&&(eN=eN.replace(J,"")),0<eN.trim().length)){switch(eu){case 32:case 9:case 59:case 13:case 10:break;default:eN+=er.charAt(eP)}eu=59}
vendor: 1,529 bytes, line 88
88switch(eu){case 123:for(eo=(eN=eN.trim()).charCodeAt(0),eh=1,ex=++eP;eP<eD;){switch(eu=er.charCodeAt(eP)){case 123:eh++;break;case 125:eh--;break;case 47:switch(eu=er.charCodeAt(eP+1)){case 42:case 47:e:{for(eI=eP+1;eI<eM;++eI)switch(er.charCodeAt(eI)){case 47:if(42===eu&&42===er.charCodeAt(eI-1)&&eP+2!==eI){eP=eI+1;break e}break;case 10:if(47===eu){eP=eI+1;break e}}eP=eI}}break;case 91:eu++;case 40:eu++;case 34:case 39:for(;eP++<eM&&er.charCodeAt(eP)!==eu;);}if(0===eh)break;eP++}if(eh=er.substring(ex,eP),0===eo&&(eo=(eN=eN.replace(G,"").trim()).charCodeAt(0)),64===eo){switch(0<eO&&(eN=eN.replace(J,"")),eu=eN.charCodeAt(1)){case 100:case 109:case 115:case 45:eO=et;break;default:eO=ew}if(ex=(eh=M(et,eO,eh,eu,ei+1)).length,0<eS&&(ef=H(3,eh,eO=X(ew,eN,eR),et,ev,ey,ex,eu,ei,en),eN=eO.join(""),void 0!==ef&&0===(ex=(eh=ef.trim()).length)&&(eu=0,eh="")),0<ex)switch(eu){case 115:eN=eN.replace(ed,ea);case 100:case 109:case 45:eh=eN+"{"+eh+"}";break;case 107:eh=(eN=eN.replace(es,"$1 $2"))+"{"+eh+"}",eh=1===eC||2===eC&&L("@"+eh,3)?"@-webkit-"+eh+"@"+eh:"@"+eh;break;default:eh=eN+eh,112===en&&(eL+=eh,eh="")}else eh=""}else eh=M(et,X(et,eN,eR),eh,en,ei+1);eF+=eh,eh=eR=eO=eI=eo=0,eN="",eu=er.charCodeAt(++eP);break;case 125:case 59:if(1<(ex=(eN=(0<eO?eN.replace(J,""):eN).trim()).length))switch(0===eI&&(45===(eo=eN.charCodeAt(0))||96<eo&&123>eo)&&(ex=(eN=eN.replace(" ",":")).length),0<eS&&void 0!==(ef=H(1,eN,et,K,ev,ey,eL.length,en,ei,en))&&0===(ex=(eN=ef.trim()).length)&&(eN="\x00\x00"),eo=eN.charCodeAt(0),eu=eN.charCo
88deAt(1),eo){case 0:break;case 64:if(105===eu||99===eu){eB+=eN+er.charAt(eP);break}default:58!==eN.charCodeAt(ex-1)&&(eL+=P(eN,eo,eu,eN.charCodeAt(2)))}eR=eO=eI=eo=0,eN="",eu=er.charCodeAt(++eP)}}switch(eu){case 13:case 10:47===em?em=0:0===1+eo&&107!==en&&0<eN.length&&(eO=1,eN+="\x00"),0<eS*eA&&H(0,eN,et,K,ev,ey,eL.length,en,ei,en),ey=1,ev++;break;case 59:case 125:if(0===em+ek+e_+eg){ey++;break}default:switch(ey++,ep=er.charAt(eP),eu){case 9:case 32:if(0===ek+eg+em)switch(eE){case 44:case 58:case 9:case 32:ep="";break;default:32!==eu&&(ep=" ")}break;case 0:ep="\\0";break;case 12:ep="\\f";break;case 11:ep="\\v";break;case 38:0===ek+em+eg&&(eO=eR=1,ep="\f"+ep);break;case 108:if(0===ek+em+eg+eb&&0<eI)switch(eP-eI){case 2:112===eE&&58===er.charCodeAt(eP-3)&&(eb=eE);case 8:111===eT&&(eb=eT)}break;case 58:0===ek+em+eg&&(eI=eP);break;case 44:0===em+e_+ek+eg&&(eO=1,ep+="\r");break;case 34:case 39:0===em&&(ek=ek===eu?0:0===ek?eu:ek);break;case 91:0===ek+em+e_&&eg++;break;case 93:0===ek+em+e_&&eg--;break;case 41:0===ek+em+eg&&e_--;break;case 40:0===ek+em+eg&&(0===eo&&(2*eE+3*eT==533||(eo=1)),e_++);break;case 64:0===em+e_+ek+eg+eI+eh&&(eh=1);break;case 42:case 47:if(!(0<ek+eg+e_))switch(em){case 0:switch(2*eu+3*er.charCodeAt(eP+1)){case 235:em=47;break;case 220:ex=eP,em=42}break;case 42:47===eu&&42===eE&&ex+2!==eP&&(33===er.charCodeAt(ex+2)&&(eL+=er.substring(ex,eP+1)),ep="",em=0)}}0===em&&(eN+=ep)}eT=eE,eE=eu,eP++}if(0<(ex=eL.length)){if(eO=et,0<eS&&void 0!==(ef=H(2,eL,eO,K,ev,ey,ex,en,ei,en))&&0===(eL=ef).length)return eB+eL+eF;if(eL=eO.join(",")+"{"+eL+"}",0!=eC*eb){switch(2!==eC||L(eL,2)||(eb=0),eb){case 111:eL=eL.replace(ec,":-moz-$1")+eL;break;case 112:eL=eL.replace(el,"::-webkit-input-$1")+eL.replace(el,"::-moz-$1")+eL.replace(el,":-ms-input-$1")+eL}eb=0}}return eB+eL+eF}(ew,er,et,0,0);return 0<eS&&void 0!==(en=H(-2,ei,er,er,ev,ey,ei.length,0,0,0))&&(ei=en),eb=0,ey=ev=1,ei}var G=/^\0+/g,J=/[\0\r\f]/g,et=/: */g,er=/zoo|gra/,en=/([,: ])(transform)/g,ei=/,\r+?/g,eo=/([\t\r\n ])*\f?&/g,es=/@(k\w+)\s*(\S*)\s*/,el=/::(place)/g,ec=/:(read-only)/g,eu=/[svh]\w+-[tblr]{2}/,ed=/\(\s*(.*)\s*\)/g,eh=/([\s\S]*?);/g,ep=/-self|flex-/g,ef=/[^]*?(:[rp][el]a[\w-]+)[^]*/,eg=/stretch|:\s*\w+\-(?:conte|avail)/,em=/([^-])(image-set\()/,ey=1,ev=1,eb=0,eC=1,ew=[],e_=[],eS=0,ek=null,eA=0;return B.use=function T(K){switch(K){case void 0:case null:eS=e_.length=0;break;default:if("function"==typeof K)e_[eS++]=K;else if("object"==typeof K)for(var G=0,J=K.length;G<J;++G)T(K[G]);else eA=0|!!K}return T},B.set=U,void 0!==K&&U(K),B},el={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},ec=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
88ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,eu=(er=Object.create(null),function(K){return void 0===er[K]&&(er[K]=ec.test(K)||111===K.charCodeAt(0)&&110===K.charCodeAt(1)&&91>K.charCodeAt(2)),er[K]}),ed=J(8679),eh=J.n(ed),ep=J(34155);function v(){return(v=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K}).apply(this,arguments)}var g=function(K,G){for(var J=[K[0]],et=0,er=G.length;et<er;et+=1)J.push(G[et],K[et+1]);return J},S=function(K){return null!==K&&"object"==typeof K&&"[object Object]"===(K.toString?K.toString():Object.prototype.toString.call(K))&&!(0,en.typeOf)(K)},ef=Object.freeze([]),eg=Object.freeze({});function b(K){return"function"==typeof K}function _(K){return K.displayName||K.name||"Component"}function N(K){return K&&"string"==typeof K.styledComponentId}var em=void 0!==ep&&void 0!==ep.env&&(ep.env.REACT_APP_SC_ATTR||ep.env.SC_ATTR)||"data-styled",ey="undefined"!=typeof window&&"HTMLElement"in window,ev=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==ep&&void 0!==ep.env&&(void 0!==ep.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==ep.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==ep.env.REACT_APP_SC_DISABLE_SPEEDY&&ep.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==ep.env.SC_DISABLE_SPEEDY&&""!==ep.env.SC_DISABLE_SPEEDY&&"false"!==ep.env.SC_DISABLE_SPEEDY&&ep.env.SC_DISABLE_SPEEDY)),eb={};function j(K){for(var G=arguments.length,J=Array(G>1?G-1:0),et=1;et<G;et++)J[et-1]=arguments[et];throw Error("An error occurred. See https://git.io/JUIaE#"+K+" for more information."+(J.length>0?" Args: "+J.join(", "):""))}var eC=function(){function e(K){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=K}var K=e.prototype;return K.indexOfGroup=function(K){for(var G=0,J=0;J<K;J++)G+=this.groupSizes[J];return G},K.insertRules=function(K,G){if(K>=this.groupSizes.length){for(var J=this.groupSizes,et=J.length,er=et;K>=er;)(er<<=1)<0&&j(16,""+K);this.groupSizes=new Uint32Array(er),this.groupSizes.set(J),this.length=er;for(var en=et;en<er;en++)this.groupSizes[en]=0}for(var ei=this.indexOfGroup(K+1),eo=0,es=G.length;eo<es;eo++)this.tag.insertRule(ei,G[eo])&&(this.groupSizes[K]++,ei++)},K.clearGroup=function(K){if(K<this.length){var G=this.groupSizes[K],J=this.indexOfGroup(K),et=J+G;this.groupSizes[K]=0;for(var er=J;er<et;er++)this.tag.deleteRule(J)}},K.getGroup=function(K){var G="";if(K>=this.length||0===this.groupSizes[K])return G;for(var J=this.groupSizes[K],et=this.indexOfGroup(K),er=et+J,en=et;en<er;en++)G+=this.tag.getRule(en)+"/*!sc*/\n";return G},e}(),ew=new Map,e_=new Map,eS=1,B=function(K){if(ew.has(K))return ew.get(K);for(;e_.has(eS);)eS++;var G=eS++;return ew.set(K,G),e_.set(G,K),G},M=function(K,G){G>=eS&&(eS=G+1),ew.set(K,G),e_.set(G,K)},ek="style["+em+'][data-styled-version="5.3.9"]',eA=RegExp("^"+em+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(K,G,J){for(var et,er=J.split(","),en=0,ei=er.length;en<ei;en++)(et=er[en])&&K.registerName(G,et)},Y=function(K,G){for(var J=(G.textContent||"").split("/*!sc*/\n"),et=[],er=0,en=J.length;er<en;er++){var ei=J[er].trim();if(ei){var eo=ei.match(eA);if(eo){var es=0|parseInt(eo[1],10),el=eo[2];0!==es&&(M(el,es),F(K,el,eo[3]),K.getTag().insertRules(es,et)),et.length=0}else et.push(ei)}}}
vendor: 3,272 bytes, line 88
88,q=function(){return J.nc},H=function(K){var G=document.head,J=K||G,et=document.createElement("style"),er=function(K){for(var G=K.childNodes,J=G.length;J>=0;J--){var et=G[J];if(et&&1===et.nodeType&&et.hasAttribute(em))return et}}(J),en=void 0!==er?er.nextSibling:null;et.setAttribute(em,"active"),et.setAttribute("data-styled-version","5.3.9");var ei=q();return ei&&et.setAttribute("nonce",ei),J.insertBefore(et,en),et},eE=function(){function e(K){var G=this.element=H(K);G.appendChild(document.createTextNode("")),this.sheet=function(K){if(K.sheet)return K.sheet;for(var G=document.styleSheets,J=0,et=G.length;J<et;J++){var er=G[J];if(er.ownerNode===K)return er}j(17)}(G),this.length=0}var K=e.prototype;return K.insertRule=function(K,G){try{return this.sheet.insertRule(G,K),this.length++,!0}catch(K){return!1}},K.deleteRule=function(K){this.sheet.deleteRule(K),this.length--},K.getRule=function(K){var G=this.sheet.cssRules[K];return void 0!==G&&"string"==typeof G.cssText?G.cssText:""},e}(),eT=function(){function e(K){var G=this.element=H(K);this.nodes=G.childNodes,this.length=0}var K=e.prototype;return K.insertRule=function(K,G){if(K<=this.length&&K>=0){var J=document.createTextNode(G),et=this.nodes[K];return this.element.insertBefore(J,et||null),this.length++,!0}return!1},K.deleteRule=function(K){this.element.removeChild(this.nodes[K]),this.length--},K.getRule=function(K){return K<this.length?this.nodes[K].textContent:""},e}(),eI=function(){function e(K){this.rules=[],this.length=0}var K=e.prototype;return K.insertRule=function(K,G){return K<=this.length&&(this.rules.splice(K,0,G),this.length++,!0)},K.deleteRule=function(K){this.rules.splice(K,1),this.length--},K.getRule=function(K){return K<this.length?this.rules[K]:""},e}(),eP=ey,eO={isServer:!ey,useCSSOMInjection:!ev},eR=function(){function e(K,G,J){void 0===K&&(K=eg),void 0===G&&(G={}),this.options=v({},eO,{},K),this.gs=G,this.names=new Map(J),this.server=!!K.isServer,!this.server&&ey&&eP&&(eP=!1,function(K){for(var G=document.querySelectorAll(ek),J=0,et=G.length;J<et;J++){var er=G[J];er&&"active"!==er.getAttribute(em)&&(Y(K,er),er.parentNode&&er.parentNode.removeChild(er))}}(this))}e.registerId=function(K){return B(K)};var K=e.prototype;return K.reconstructWithOptions=function(K,G){return void 0===G&&(G=!0),new e(v({},this.options,{},K),this.gs,G&&this.names||void 0)},K.allocateGSInstance=function(K){return this.gs[K]=(this.gs[K]||0)+1},K.getTag=function(){var K,G,J,et,er;return this.tag||(this.tag=(J=(G=this.options).isServer,et=G.useCSSOMInjection,er=G.target,K=J?new eI(er):et?new eE(er):new eT(er),new eC(K)))},K.hasNameForId=function(K,G){return this.names.has(K)&&this.names.get(K).has(G)},K.registerName=function(K,G){if(B(K),this.names.has(K))this.names.get(K).add(G);else{var J=new Set;J.add(G),this.names.set(K,J)}},K.insertRules=function(K,G,J){this.registerName(K,G),this.getTag().insertRules(B(K),J)},K.clearNames=function(K){this.names.has(K)&&this.names.get(K).clear()},K.clearRules=function(K){this.getTag().clearGroup(B(K)),this.clearNames(K)},K.clearTag=function(){this.tag=void 0},K.toString=function(){return function(K){for(var G=K.getTag(),J=G.length,et="",er=0;er<J;er++){var en,ei=(en=er,e_.get(en));if(void 0!==ei){var eo=K.names.get(ei),es=G.getGroup(er);
88if(eo&&es&&eo.size){var el=em+".g"+er+'[id="'+ei+'"]',ec="";void 0!==eo&&eo.forEach(function(K){K.length>0&&(ec+=K+",")}),et+=""+es+el+'{content:"'+ec+'"}/*!sc*/\n'}}}return et}(this)},e}(),ex=/(a)(d)/gi,Q=function(K){return String.fromCharCode(K+(K>25?39:97))};function ee(K){var G,J="";for(G=Math.abs(K);G>52;G=G/52|0)J=Q(G%52)+J;return(Q(G%52)+J).replace(ex,"$1-$2")}var te=function(K,G){for(var J=G.length;J;)K=33*K^G.charCodeAt(--J);return K},ne=function(K){return te(5381,K)};function re(K){for(var G=0;G<K.length;G+=1){var J=K[G];if(b(J)&&!N(J))return!1}return!0}var eD=ne("5.3.9"),eM=function(){function e(K,G,J){this.rules=K,this.staticRulesId="",this.isStatic=(void 0===J||J.isStatic)&&re(K),this.componentId=G,this.baseHash=te(eD,G),this.baseStyle=J,eR.registerId(G)}return e.prototype.generateAndInjectStyles=function(K,G,J){var et=this.componentId,er=[];if(this.baseStyle&&er.push(this.baseStyle.generateAndInjectStyles(K,G,J)),this.isStatic&&!J.hash){if(this.staticRulesId&&G.hasNameForId(et,this.staticRulesId))er.push(this.staticRulesId);else{var en=Ne(this.rules,K,G,J).join(""),ei=ee(te(this.baseHash,en)>>>0);if(!G.hasNameForId(et,ei)){var eo=J(en,"."+ei,void 0,et);G.insertRules(et,ei,eo)}er.push(ei),this.staticRulesId=ei}}else{for(var es=this.rules.length,el=te(this.baseHash,J.hash),ec="",eu=0;eu<es;eu++){var ed=this.rules[eu];if("string"==typeof ed)ec+=ed;else if(ed){var eh=Ne(ed,K,G,J),ep=Array.isArray(eh)?eh.join(""):eh;el=te(el,ep+eu),ec+=ep}}if(ec){var ef=ee(el>>>0);if(!G.hasNameForId(et,ef)){var eg=J(ec,"."+ef,void 0,et);G.insertRules(et,ef,eg)}er.push(ef)}}return er.join(" ")},e}(),eN=/^\s*\/\/.*$/gm,eL=[":","[",".","#"];function ce(K){var G,J,et,er,en=void 0===K?eg:K,ei=en.options,eo=void 0===ei?eg:ei,es=en.plugins,el=void 0===es?ef:es,ec=new stylis_browser_esm(eo),eu=[],ed=function(K){function t(G){if(G)try{K(G+"}")}catch(K){}}return function(G,J,et,er,en,ei,eo,es,el,ec){switch(G){case 1:if(0===el&&64===J.charCodeAt(0))return K(J+";"),"";break;case 2:if(0===es)return J+"/*|*/";break;case 3:switch(es){case 102:case 112:return K(et[0]+J),"";default:return J+(0===ec?"/*|*/":"")}case -2:J.split("/*|*/}").forEach(t)}}}(function(K){eu.push(K)}),f=function(K,et,en){return 0===et&&-1!==eL.indexOf(en[J.length])||en.match(er)?K:"."+G};function m(K,en,ei,eo){void 0===eo&&(eo="&");var es=K.replace(eN,""),el=en&&ei?ei+" "+en+" { "+es+" }":es;return G=eo,et=RegExp("\\"+(J=en)+"\\b","g"),er=RegExp("(\\"+J+"\\b){2,}"),ec(ei||!en?"":en,el)}return ec.use([].concat(el,[function(K,G,er){2===K&&er.length&&er[0].lastIndexOf(J)>0&&(er[0]=er[0].replace(et,f))},ed,function(K){if(-2===K){var G=eu;return eu=[],G}}])),m.hash=el.length?el.reduce(function(K,G){return G.name||j(15),te(K,G.name)},5381).toString():"",m}var eF=ei.createContext(),eB=(eF.Consumer,ei.createContext()),eU=(eB.Consumer,new eR),ez=ce();function fe(){return(0,ei.useContext)(eF)||eU}function me(){return(0,ei.useContext)(eB)||ez}function ye(K){var G=(0,ei.useState)(K.stylisPlugins),J=G[0],et=G[1],er=fe(),en=(0,ei.useMemo)(function(){var G=er;return K.sheet?G=K.sheet:K.target&&(G=G.reconstructWithOptions({target:K.target},!1)),K.disableCSSOMInjection&&(G=G.reconstructWithOptions({useCSSOMInjection:!1})),G},[K.disableCSSOMInjection,K.sheet,K.target]),eo=(0,ei.useMemo)(function(){return ce({options:{prefix:!K.disableVendorPrefixes},plugins:J})},[K.disableVendorPrefixes,J]);return(0,ei.useEffect)(function(){es()(J,K.stylisPlugins)||et(K.stylisPlugins)},[K.stylisPlugins]),ei.createElement(eF.Provider,{value:en},ei.createElement(eB.Provider,{value:eo},K.children))}var ej=function(){function e(K,G){var J=this;this.inject=function(K,G){void 0===G&&(G=ez);var et=J.name+G.hash;K.hasNameForId(J.id,et)||K.insertRules(J.id,et,G(J.rules,et,"@keyframes"))},this.toString=function(){return j(12,String(J.name))},this.name=K,this.id="sc-keyframes-"+K,this.rules=G}return e.prototype.getName=function(K){return void 0===K&&(K=ez),this.name+K.hash},e}(),eV=/([A-Z])/,eH=/([A-Z])/g,eq=/^ms-/,Ee=function(K){return"-"+K.toLowerCase()};function be(K){return eV.test(K)?K.replace(eH,Ee).replace(eq,"-ms-"):K}var _e=function(K){return null==K||!1===K||""===K};function Ne(K,G,J,et){if(Array.isArray(K)){for(var er,en=[],ei=0,eo=K.length;ei<eo;ei+=1)""!==(er=Ne(K[ei],G,J,et))&&(Array.isArray(er)?en.push.apply(en,er):en.push(er));return en}return _e(K)?"":N(K)?"."+K.styledComponentId:b(K)?"function"!=typeof K||K.prototype&&K.prototype.isReactComponent||!G?K:Ne(K(G),G,J,et):K instanceof ej?J?(K.inject(J,et),K.getName(et)):K:S(K)?function e(K,G){var J,et=[];for(var er in K)K.hasOwnProperty(er)&&!_e(K[er])&&(Array.isArray(K[er])&&K[er].isCss||b(K[er])?et.push(be(er)+":",K[er],";"):S(K[er])?et.push.apply(et,e(K[er],er)):et.push(be(er)+": "+(null==(J=K[er])||"boolean"==typeof J||""===J?"":"number"!=typeof J||0===J||er in el?String(J).trim():J+"px")+";"));return G?[G+" {"].concat(et,["}"]):et}(K):K.toString()}var Ae=function(K){return Array.isArray(K)&&(K.isCss=!0),K};function Ce(K){for(var G=arguments.length,J=Array(G>1?G-1:0),et=1;et<G;et++)J[et-1]=arguments[et];return b(K)||S(K)?Ae(Ne(g(ef,[K].concat(J)))):0===J.length&&1===K.length&&"string"==typeof K[0]?K:Ae(Ne(g(K,J)))}var Re=function(K,G,J){return void 0===J&&(J=eg),K.theme!==J.theme&&K.theme||G||J.theme},e$=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eK=/(^-|-$)/g;function Te(K){return K.replace(e$,"-").replace(eK,"")}var xe=function(K){return ee(ne(K)>>>0)};function ke(K){return"string"==typeof K}var Ve=function(K){return"function"==typeof K||"object"==typeof K&&null!==K&&!Array.isArray(K)},eW=ei.createContext();function Fe(K){var G=(0,ei.useContext)(eW),J=(0,ei.useMemo)(function(){var J;return(J=K.theme)?b(J)?J(G):Array.isArray(J)||"object"!=typeof J?j(8):G?v({},G,{},J):J:j(14)},[K.theme,G]);return K.children?ei.createElement(eW.Provider,{value:J},K.children):null}eW.Consumer;var eG={},He=function(K){return function e(K,G,J){if(void 0===J&&(J=eg),!(0,en.isValidElementType)(G))return j(1,String(G));var s=function(){return K(G,J,Ce.apply(void 0,arguments))};return s.withConfig=function(et){return e(K,G,v({},J,{},et))},s.attrs=function(et){return e(K,G,v({}
88,J,{attrs:Array.prototype.concat(J.attrs,et).filter(Boolean)}))},s}(function qe(K,G,J){var et=N(K),er=!ke(K),en=G.attrs,eo=void 0===en?ef:en,es=G.componentId,el=void 0===es?(ev=G.displayName,eb=G.parentComponentId,eG[eC="string"!=typeof ev?"sc":Te(ev)]=(eG[eC]||0)+1,ew=eC+"-"+xe("5.3.9"+eC+eG[eC]),eb?eb+"-"+ew:ew):es,ec=G.displayName,ed=void 0===ec?ke(K)?"styled."+K:"Styled("+_(K)+")":ec,ep=G.displayName&&G.componentId?Te(G.displayName)+"-"+G.componentId:G.componentId||el,em=et&&K.attrs?Array.prototype.concat(K.attrs,eo).filter(Boolean):eo,ey=G.shouldForwardProp;et&&K.shouldForwardProp&&(ey=G.shouldForwardProp?function(J,et,er){return K.shouldForwardProp(J,et,er)&&G.shouldForwardProp(J,et,er)}:K.shouldForwardProp);var ev,eb,eC,ew,e_,eS=new eM(J,ep,et?K.componentStyle:void 0),ek=eS.isStatic&&0===eo.length,O=function(K,G){return function(K,G,J,et){var er,en,eo,es,el,ec=K.attrs,ed=K.componentStyle,eh=K.defaultProps,ep=K.foldedComponentIds,ef=K.shouldForwardProp,em=K.styledComponentId,ey=K.target,ev=(void 0===(er=Re(G,(0,ei.useContext)(eW),eh)||eg)&&(er=eg),en=v({},G,{theme:er}),eo={},ec.forEach(function(K){var G,J,et,er=K;for(G in b(er)&&(er=er(en)),er)en[G]=eo[G]="className"===G?(J=eo[G],et=er[G],J&&et?J+" "+et:J||et):er[G]}),[en,eo]),eb=ev[0],eC=ev[1],ew=(es=fe(),el=me(),et?ed.generateAndInjectStyles(eg,es,el):ed.generateAndInjectStyles(eb,es,el)),e_=eC.$as||G.$as||eC.as||G.as||ey,eS=ke(e_),ek=eC!==G?v({},G,{},eC):G,eA={};for(var eE in ek)"$"!==eE[0]&&"as"!==eE&&("forwardedAs"===eE?eA.as=ek[eE]:(ef?ef(eE,eu,e_):!eS||eu(eE))&&(eA[eE]=ek[eE]));return G.style&&eC.style!==G.style&&(eA.style=v({},G.style,{},eC.style)),eA.className=Array.prototype.concat(ep,em,ew!==em?ew:null,G.className,eC.className).filter(Boolean).join(" "),eA.ref=J,(0,ei.createElement)(e_,eA)}(e_,K,G,ek)};return O.displayName=ed,(e_=ei.forwardRef(O)).attrs=em,e_.componentStyle=eS,e_.displayName=ed,e_.shouldForwardProp=ey,e_.foldedComponentIds=et?Array.prototype.concat(K.foldedComponentIds,K.styledComponentId):ef,e_.styledComponentId=ep,e_.target=et?K.target:K,e_.withComponent=function(K){var et=G.componentId,er=function(K,G){if(null==K)return{};var J,et,er={},en=Object.keys(K);for(et=0;et<en.length;et++)G.indexOf(J=en[et])>=0||(er[J]=K[J]);return er}(G,["componentId"]),en=et&&et+"-"+(ke(K)?K:Te(_(K)));return qe(K,v({},er,{attrs:em,componentId:en}),J)},Object.defineProperty(e_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(G){this._foldedDefaultProps=et?function Me(K){for(var G=arguments.length,J=Array(G>1?G-1:0),et=1;et<G;et++)J[et-1]=arguments[et];for(var er=0;er<J.length;er++){var en=J[er];if(Ve(en))for(var ei in en)"__proto__"!==ei&&"constructor"!==ei&&"prototype"!==ei&&function(K,G,J){var et=K[J];Ve(G)&&Ve(et)?Me(et,G):K[J]=G}(K,en[ei],ei)}return K}({},K.defaultProps,G):G}}),Object.defineProperty(e_,"toString",{value:function(){return"."+e_.styledComponentId}}),er&&eh()(e_,K,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),e_},K)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(K){He[K]=He(K)});var eZ=function(){function e(K,G){this.rules=K,this.componentId=G,this.isStatic=re(K),eR.registerId(this.componentId+1)}var K=e.prototype;return K.createStyles=function(K,G,J,et){var er=et(Ne(this.rules,G,J,et).join(""),""),en=this.componentId+K;J.insertRules(en,en,er)},K.removeStyles=function(K,G){G.clearRules(this.componentId+K)},K.renderStyles=function(K,G,J,et){K>2&&eR.registerId(this.componentId+K),this.removeStyles(K,J),this.createStyles(K,G,J,et)},e}();function We(K){for(var G=arguments.length,J=Array(G>1?G-1:0),et=1;et<G;et++)J[et-1]=arguments[et];var er=Ce.apply(void 0,[K].concat(J)),en="sc-global-"+xe(JSON.stringify(er)),eo=new eZ(er,en);
88function l(K){var G=fe(),J=me(),et=(0,ei.useContext)(eW),er=(0,ei.useRef)(G.allocateGSInstance(en)).current;return G.server&&h(er,K,G,et,J),(0,ei.useLayoutEffect)(function(){if(!G.server)return h(er,K,G,et,J),function(){return eo.removeStyles(er,G)}},[er,K,G,et,J]),null}function h(K,G,J,et,er){if(eo.isStatic)eo.renderStyles(K,eb,J,er);else{var en=v({},G,{theme:Re(G,et,l.defaultProps)});eo.renderStyles(K,en,J,er)}}return ei.memo(l)}function Ue(K){for(var G=arguments.length,J=Array(G>1?G-1:0),et=1;et<G;et++)J[et-1]=arguments[et];var er=Ce.apply(void 0,[K].concat(J)).join(""),en=xe(er);return new ej(en,er)}(et=(function(){var K=this;this._emitSheetCSS=function(){var G=K.instance.toString();if(!G)return"";var J=q();return"<style "+[J&&'nonce="'+J+'"',em+'="true"','data-styled-version="5.3.9"'].filter(Boolean).join(" ")+">"+G+"</style>"},this.getStyleTags=function(){return K.sealed?j(2):K._emitSheetCSS()},this.getStyleElement=function(){if(K.sealed)return j(2);var G,J=((G={})[em]="",G["data-styled-version"]="5.3.9",G.dangerouslySetInnerHTML={__html:K.instance.toString()},G),et=q();return et&&(J.nonce=et),[ei.createElement("style",v({},J,{key:"sc-0-0"}))]},this.seal=function(){K.sealed=!0},this.instance=new eR({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(K){return this.sealed?j(2):ei.createElement(ye,{sheet:this.instance},K)},et.interleaveWithNodeStream=function(K){return j(3)};var Ze=function(){return(0,ei.useContext)(eW)},eJ=He},79897:function(K,G,J){"use strict";J.d(G,{Z:function(){return S}});var et=J(57703),er=J(46545),en=J(27957);let p=class p extends et.wA{static defaultProps={onClick:()=>{},buttonColor:"black",buttonType:"plain"};render({buttonColor:K,buttonType:G}){return(0,et.az)("button",{type:"button","aria-label":this.props.i18n.get("payButton"),lang:this.props.i18n.languageCode,className:(0,en.Z)("adyen-checkout__applepay__button",`adyen-checkout__applepay__button--${K}`,`adyen-checkout__applepay__button--${G}`,"apple-pay","apple-pay-button",`apple-pay-button-${K}`,`apple-pay-button--type-${G}`),onClick:this.props.onClick})}};let ApplePayService_e=class ApplePayService_e{session;options;constructor(K,G){this.options=G,this.session=new ApplePaySession(G.version,K),this.session.onvalidatemerchant=K=>{this.onvalidatemerchant(K,G.onValidateMerchant)},this.session.onpaymentauthorized=K=>{this.onpaymentauthorized(K,G.onPaymentAuthorized)},this.session.oncancel=K=>{this.oncancel(K,G.onCancel)},"function"==typeof G.onPaymentMethodSelected&&(this.session.onpaymentmethodselected=K=>{this.onpaymentmethodselected(K,G.onPaymentMethodSelected)}),"function"==typeof G.onShippingContactSelected&&(this.session.onshippingcontactselected=K=>{this.onshippingcontactselected(K,G.onShippingContactSelected)}),"function"==typeof G.onShippingMethodSelected&&(this.session.onshippingmethodselected=K=>{this.onshippingmethodselected(K,G.onShippingMethodSelected)})}begin(){return this.session.begin()}onvalidatemerchant(K,G){return new Promise((J,et)=>G(J,et,K.validationURL)).then(K=>{this.session.completeMerchantValidation(K)}).catch(K=>{console.error(K),this.session.abort(),this.options.onError(K)})}onpaymentauthorized(K,G){return new Promise((J,et)=>G(J,et,K)).then(K=>{this.session.completePayment(K)}).catch(K=>{this.session.completePayment(K)})}onpaymentmethodselected(K,G){return new Promise((J,et)=>G(J,et,K)).then(K=>{this.session.completePaymentMethodSelection(K)}).catch(K=>{this.session.completePaymentMethodSelection(K)})}onshippingcontactselected(K,G){return new Promise((J,et)=>G(J,et,K)).then(K=>{this.session.completeShippingContactSelection(K)}).catch(K=>{this.session.completeShippingContactSelection(K)})}onshippingmethodselected(K,G){return new Promise((J,et)=>G(J,et,K)).then(K=>{this.session.completeShippingMethodSelection(K)}).catch(K=>{this.session.completeShippingMethodSelection(K)})}oncancel(K,G){G(K)}};var ei=J(74476);let eo={isExpress:!1,amount:{currency:"USD",value:0},totalPriceStatus:"final",initiative:"web",merchantCapabilities:["supports3DS"],supportedNetworks:["amex","discover","masterCard","visa"],buttonType:"plain",buttonColor:"black",onClick:K=>K()};var es=J(42549),el=J(94636);let payment_request_e=K=>{let{countryCode:G,companyName:J,amount:et,...er}=K,en=String((0,el.Qe)(et.value,et.currency));return G||console.warn("ApplePay - Make sure to set the countryCode in the AdyenCheckout configuration or in the Checkout Session creation"),{countryCode:G,currencyCode:et.currency,total:{label:er.totalPriceLabel,amount:en,type:er.totalPriceStatus},lineItems:er.lineItems,shippingMethods:er.shippingMethods,shippingType:er.shippingType,recurringPaymentRequest:er.recurringPaymentRequest,merchantCapabilities:er.merchantCapabilities,supportedCountries:er.supportedCountries,supportedNetworks:er.supportedNetworks,requiredShippingContactFields:er.requiredShippingContactFields,requiredBillingContactFields:er.requiredBillingContactFields,billingContact:er.billingContact,shippingContact:er.shippingContact,applicationData:er.applicationData}};function utils_t(K,G){if(K)return{city:K.locality,country:K.countryCode,houseNumberOrName:"ZZ",postalCode:K.postalCode,street:K.addressLines?.join(" ").trim(),...K.administrativeArea&&{stateOrProvince:K.administrativeArea},...G&&{firstName:K.givenName,lastName:K.familyName}}}var ec=J(11134),eu=J(60762),ed=J(54406),eh=J(29963);let S=class S extends er.u{static type=eu.C.applepay;static defaultProps=eo;constructor(K,G){super(K,G);let{isExpress:J,onShippingContactSelected:et,onShippingMethodSelected:er}=this.props;
88if(!1===J&&(et||er))throw new ec.ZP("IMPLEMENTATION_ERROR",'ApplePay - You must set "isExpress" flag to "true" in order to use "onShippingContactSelected" and/or "onShippingMethodSelected" callbacks');this.startSession=this.startSession.bind(this),this.submit=this.submit.bind(this),this.validateMerchant=this.validateMerchant.bind(this),this.collectOrderTrackingDetailsIfNeeded=this.collectOrderTrackingDetailsIfNeeded.bind(this),this.handleAuthorization=this.handleAuthorization.bind(this)}formatProps(K){let G=K.version||function(K){let G=[];for(let K=14;K>0;K--)G.push(K);try{return G.find(K=>K&&window.ApplePaySession&&ApplePaySession.supportsVersion(K))}catch(K){return console.warn(K),null}}(0),J=K.brands?.length?function(K){let G={mc:"masterCard",amex:"amex",visa:"visa",elodebit:"elo",elo:"elo",interac:"interac",discover:"discover",jcb:"jcb",electron:"electron",maestro:"maestro",girocard:"girocard",cartebancaire:"cartesBancaires",eftpos_australia:"eftpos"};return K.reduce((K,J)=>(G[J]&&!K.includes(G[J])&&K.push(G[J]),K),[])}(K.brands):K.supportedNetworks;return{...K,configuration:K.configuration,supportedNetworks:J,version:G,totalPriceLabel:K.totalPriceLabel||K.configuration?.merchantName}}formatData(){let{applePayToken:K,billingAddress:G,deliveryAddress:J}=this.state,{isExpress:et}=this.props;return{paymentMethod:{type:S.type,applePayToken:K,...et&&{subtype:"express"}},...G&&{billingAddress:G},...J&&{deliveryAddress:J}}}submitAnalytics(K){super.submitAnalytics({...K},this.props)}submit=()=>{this.props.isInstantPayment&&this.submitAnalytics({type:eh._5,target:eh.NE}),this.startSession()};startSession(){let{version:K,onValidateMerchant:G,onPaymentMethodSelected:J,onShippingMethodSelected:et,onShippingContactSelected:er}=this.props,en=payment_request_e({companyName:this.props.configuration.merchantName,countryCode:this.core.options.countryCode,...this.props}),ei=new ApplePayService_e(en,{version:K,onError:K=>{this.handleError(new ec.ZP("ERROR","ApplePay - Something went wrong on ApplePayService",{cause:K}))},onCancel:K=>{this.handleError(new ec.ZP("CANCEL","ApplePay UI dismissed",{cause:K}))},onPaymentMethodSelected:J,onShippingMethodSelected:et,onShippingContactSelected:er,onValidateMerchant:G||this.validateMerchant,onPaymentAuthorized:(K,G,J)=>{let et=utils_t(J.payment.billingContact),er=utils_t(J.payment.shippingContact,!0);this.setState({applePayToken:btoa(JSON.stringify(J.payment.token.paymentData)),authorizedEvent:J,...et&&{billingAddress:et},...er&&{deliveryAddress:er}}),this.handleAuthorization().then(this.makePaymentsCall).then(ed.Jp).then(ed.sq).then(this.collectOrderTrackingDetailsIfNeeded).then(({paymentResponse:G,orderDetails:J})=>(K({status:ApplePaySession.STATUS_SUCCESS,...J&&{orderDetails:J}}),G)).then(K=>{this.handleResponse(K)}).catch(K=>{let J=K?.error?.applePayError;G({status:ApplePaySession.STATUS_FAILURE,errors:J?Array.isArray(J)?J:[J]:void 0});let et={...K,error:{applePayError:J}};this.handleFailedResult(et)})}});return new Promise((K,G)=>this.props.onClick(K,G)).then(()=>{ei.begin()}).catch(()=>({}))}async handleAuthorization(){return new Promise((K,G)=>{this.props.onAuthorized||K();let{authorizedEvent:J,billingAddress:et,deliveryAddress:er}=this.state;this.props.onAuthorized({authorizedEvent:J,...et&&{billingAddress:et},...er&&{deliveryAddress:er}},{resolve:K,reject:G})}).catch(K=>Promise.reject({error:{applePayError:K}}))}async collectOrderTrackingDetailsIfNeeded(K){return new Promise((K,G)=>{if(!this.props.onOrderTrackingRequest)return K();this.props.onOrderTrackingRequest(K,G)}).then(G=>({paymentResponse:K,...G&&{orderDetails:G}})).catch(()=>({paymentResponse:K}))}async validateMerchant(K,G){let{hostname:J}=window.location,{clientKey:et,configuration:er,loadingContext:en,initiative:eo}=this.props,{merchantName:el,merchantId:ec}=er,eu={loadingContext:en,path:`v1/applePay/sessions?clientKey=${et}`};try{let et=await (0,es.Ko)(eu,{displayName:el,domainName:J,initiative:eo,merchantIdentifier:ec}),er=ei.ZP.decode(et.data);er.success?K(JSON.parse(er.data)):G("Could not decode Apple Pay session")}catch(K){G("Could not get Apple Pay session")}}get isValid(){return!0}async isAvailable(){if("https:"!==document.location.protocol)return Promise.reject(new ec.ZP("IMPLEMENTATION_ERROR","Trying to start an Apple Pay session from an insecure document"));if(!this.props.onValidateMerchant&&!this.props.clientKey)return Promise.reject(new ec.ZP("IMPLEMENTATION_ERROR","clientKey was not provided"));try{if(window.ApplePaySession&&ApplePaySession.canMakePayments()&&ApplePaySession.supportsVersion(this.props.version))return Promise.resolve()}catch(K){console.warn(K)}return Promise.reject(new ec.ZP("ERROR","Apple Pay is not available on this device"))}render(){return this.props.showPayButton?(0,et.az)(p,{i18n:this.props.i18n,buttonColor:this.props.buttonColor,buttonType:this.props.buttonType,onClick:K=>{K.preventDefault(),this.submit()}}):null}}},30117:function(K,G,J){"use strict";J.d(G,{u:function(){return ClickToPay_p}});var et,er,en=J(57703),ei=J(46545),eo=J(1087),es=J(39380);let c=({dpaLocale:K="en_US",dpaPresentationName:G=""})=>({dpaTransactionOptions:{dpaLocale:K,payloadTypeIndicator:"NON_PAYMENT",customInputData:{checkoutOrchestrator:"merchant"}},dpaData:{dpaPresentationName:G}}),r=({dpaLocale:K="en_US",dpaPresentationName:G=""})=>({dpaTransactionOptions:{dpaLocale:K,paymentOptions:{dynamicDataType:"CARD_APPLICATION_CRYPTOGRAM_SHORT_FORM"}
88,consumerNameRequested:!0,customInputData:{"com.mastercard.dcfExperience":"PAYMENT_SETTINGS"},confirmPayment:!1},dpaData:{dpaPresentationName:G}});let SrciError_e=class SrciError_e extends Error{reason;message;source;scheme;errorFromCardSchemeSdk;constructor(K,G,J){super();let et="error"in K?K?.error?.message:K?.message,er="error"in K?K?.error?.reason:K?.reason;this.message=et,this.reason=er,this.source=G,this.scheme=J,this.errorFromCardSchemeSdk=K}toString(){return`Reason: ${this.reason} / Source: ${this.source} / Scheme: ${this.scheme} / Message: ${this.message}`}};var el=J(71306);let i=class i{schemeSdk;customSdkConfiguration;sdkUrl;scriptElement=null;constructor(K,G){if(!K)throw Error("AbstractSrcInitiator: Invalid SDK URL");this.sdkUrl=K,this.customSdkConfiguration=G}async loadSdkScript(){this.isSdkIsAvailableOnWindow()||(this.scriptElement=new el.Z(this.sdkUrl),await this.scriptElement.load()),this.assignSdkReference()}removeSdkScript(){this.scriptElement.remove()}async checkout(K){try{return await this.schemeSdk.checkout(K)}catch(K){throw new SrciError_e(K,"checkout",this.schemeName)}}async unbindAppInstance(){try{await this.schemeSdk.unbindAppInstance()}catch(K){throw new SrciError_e(K,"unbindAppInstance",this.schemeName)}}async isRecognized(){try{return await this.schemeSdk.isRecognized()}catch(K){throw new SrciError_e(K,"isRecognized",this.schemeName)}}async initiateIdentityValidation(){try{return await this.schemeSdk.initiateIdentityValidation()}catch(K){throw new SrciError_e(K,"initiateIdentityValidation",this.schemeName)}}async getSrcProfile(K){try{return await this.schemeSdk.getSrcProfile({idTokens:K})}catch(K){throw new SrciError_e(K,"getSrcProfile",this.schemeName)}}};let ec={email:"EMAIL",telephoneNumber:"MOBILE_NUMBER"},eu={email:"EMAIL_ADDRESS",telephoneNumber:"MOBILE_PHONE_NUMBER"};var ed=J(11134);let promise_util_t=K=>"fulfilled"===K.status,promise_util_e=K=>"rejected"===K.status,eh={visa:class extends i{schemeName="visa";constructor(K,G){super(K.toLowerCase().includes("live")?"https://assets.secure.checkout.visa.com/checkout-widget/resources/js/src-i-adapter/visa-sdk.js?v2":"https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/src-i-adapter/visa-sdk.js?v2",G)}isSdkIsAvailableOnWindow(){return!!window.vAdapters?.VisaSRCI}assignSdkReference(){this.schemeSdk=new window.vAdapters.VisaSRCI}async init(K,G){try{let J={...K,...c(this.customSdkConfiguration),srciTransactionId:G};await this.schemeSdk.init(J)}catch(K){throw new SrciError_e(K,"init",this.schemeName)}}async identityLookup({identityValue:K,type:G}){try{let J={identityValue:K,type:ec[G]};return await this.schemeSdk.identityLookup(J)}catch(K){throw new SrciError_e(K,"identityLookup",this.schemeName)}}async completeIdentityValidation(K){try{return await this.schemeSdk.completeIdentityValidation(K)}catch(K){throw new SrciError_e(K,"completeIdentityValidation",this.schemeName)}}},mc:class extends i{schemeName="mc";constructor(K,G){super(K.toLowerCase().includes("live")?"https://src.mastercard.com/sdk/srcsdk.mastercard.js":"https://sandbox.src.mastercard.com/sdk/srcsdk.mastercard.js",G)}isSdkIsAvailableOnWindow(){return!!window.SRCSDK_MASTERCARD}assignSdkReference(){this.schemeSdk=window.SRCSDK_MASTERCARD}async init(K,G){try{let J={...K,...r(this.customSdkConfiguration),srciTransactionId:G};await this.schemeSdk.init(J)}catch(K){throw new SrciError_e(K,"init",this.schemeName)}}async identityLookup({identityValue:K,type:G}){try{let J={identityValue:K,identityType:eu[G]};return await this.schemeSdk.identityLookup({consumerIdentity:J})}catch(K){throw new SrciError_e(K,"identityLookup",this.schemeName)}}async completeIdentityValidation(K){try{return await this.schemeSdk.completeIdentityValidation({validationData:K})}catch(K){throw new SrciError_e(K,"completeIdentityValidation",this.schemeName)}}},default:null};let SrcSdkLoader_i=class SrcSdkLoader_i{schemes;customSdkConfiguration;constructor(K,{dpaLocale:G="en_US",dpaPresentationName:J=""}){this.schemes=K,this.customSdkConfiguration={dpaLocale:G,dpaPresentationName:J}}async load(K){if(!this.schemes||0===this.schemes.length)throw new ed.ZP("ERROR","ClickToPay -> SrcSdkLoader: There are no schemes set to be loaded");return new Promise((G,J)=>{let et=this.schemes.map(G=>((K,G,J)=>{let et=eh[K]||eh.default;return et?new et(G,J):null})(G,K,this.customSdkConfiguration)),er=et.map(K=>K.loadSdkScript());Promise.allSettled(er).then(K=>{K.every(promise_util_e)&&J(new ed.ZP("ERROR",`ClickToPay -> SrcSdkLoader # Unable to load network schemes: ${this.schemes.toString()}`));let er=et.filter((G,J)=>promise_util_t(K[J]));G(er)})})}};let ep={mc:"Mastercard",visa:"Visa"};let ShopperCard_a=class ShopperCard_a{dateOfCardLastUsed;dateOfCardCreated;panLastFour;srcDigitalCardId;scheme;artUri;srcCorrelationId;tokenId;isExpired;panExpirationMonth;panExpirationYear;descriptorName;status=null;constructor(K,G,J){this.dateOfCardLastUsed=K.dateOfCardLastUsed,this.dateOfCardCreated=K.dateOfCardCreated,this.panLastFour=K.panLastFour,this.srcDigitalCardId=K.srcDigitalCardId,this.descriptorName=K.digitalCardData.descriptorName,this.tokenId=K.tokenId,this.scheme=G,this.artUri=K.digitalCardData.artUri,this.srcCorrelationId=J,this.panExpirationMonth=K.panExpirationMonth,this.panExpirationYear=K.panExpirationYear,this.status=K.digitalCardData.status,this.isExpired=this.confirmCardIsExpired()}get title(){return"visa"===this.scheme?ep[this.scheme]:this.descriptorName||ep[this.scheme]}get isDcfPopupEmbedded(){return"mc"===this.scheme}confirmCardIsExpired(){if("ACTIVE"!==this.status)return!0;
88if(!this.panExpirationYear&&!this.panExpirationMonth)return!1;let[K,G]=[(new Date).getMonth()+1,(new Date).getFullYear()];return!(Number(this.panExpirationYear)>G)&&!(Number(this.panExpirationYear)===G&&Number(this.panExpirationMonth)>=K)}};let ef="ctpIframe";function services_utils_a(K,G){let{profiles:J,srcCorrelationId:et}=G,er=J.reduce((K,J)=>[...K,...J.maskedCards.map(K=>new ShopperCard_a(K,G.scheme,et))],[]);return[...K,...er]}function d(K,G){return new Date(G.dateOfCardLastUsed).getTime()-new Date(K.dateOfCardLastUsed).getTime()}function utils_t(K,G){return new Date(G.dateOfCardCreated).getTime()-new Date(K.dateOfCardCreated).getTime()}function n(K,G){return G.isExpired?K.expiredCards.push(G):K.availableCards.push(G),K}function utils_o(K,G){return G.dateOfCardLastUsed?K.usedCards.push(G):K.unusedCards.push(G),K}function utils_u(K){return!!K.reason}var eg=J(48972);let TimeoutError_r=class TimeoutError_r extends Error{constructor(K){super(K),this.name="TimeoutError"}toString(){return`Message: ${this.message}`}};function l(K,G,J){let et=new Promise((K,et)=>setTimeout(()=>et(J),G));return Promise.race([K(),et])}(et=er||(er={})).Idle="Idle",et.Loading="Loading",et.ShopperIdentified="ShopperIdentified",et.OneTimePassword="OneTimePassword",et.Ready="Ready",et.Login="Login",et.NotAvailable="NotAvailable";let m=class m{sdkLoader;schemesConfig;shopperIdentity;environment;onTimeout;srciTransactionId=(0,eg.Z)();sdks;validationSchemeSdk=null;stateSubscriber;state="Idle";shopperCards=null;identityValidationData=null;storeCookies=!1;constructor(K,G,J,et,er){this.sdkLoader=G,this.schemesConfig=K,this.shopperIdentity=et,this.environment=J,this.onTimeout=er}get shopperAccountFound(){return["Ready","ShopperIdentified"].includes(this.state)}get schemes(){return this.sdkLoader.schemes}updateStoreCookiesConsent(K){this.storeCookies=K}async initialize(){this.setState("Loading");try{this.sdks=await this.sdkLoader.load(this.environment),await this.initiateSdks();let{recognized:K=!1,idTokens:G=null}=await this.verifyIfShopperIsRecognized();
88if(K)return await this.getShopperProfile(G),void this.setState("Ready");if(!this.shopperIdentity)return void this.setState("NotAvailable");let{isEnrolled:J}=await this.verifyIfShopperIsEnrolled(this.shopperIdentity);if(J)return void this.setState("ShopperIdentified");this.setState("NotAvailable")}catch(K){if(K instanceof SrciError_e&&"REQUEST_TIMEOUT"===K?.reason){let G=new TimeoutError_r(`ClickToPayService - Timeout during ${K.source}() of the scheme '${K.scheme}'`);this.onTimeout?.(G)}else K instanceof TimeoutError_r?(console.warn(K.toString()),this.onTimeout?.(K)):K instanceof SrciError_e?console.warn(`Error at ClickToPayService # init: ${K.toString()}`):console.warn(K);this.setState("NotAvailable")}}subscribeOnStateChange(K){this.stateSubscriber=K}async startIdentityValidation(){if(!this.validationSchemeSdk)throw Error("startIdentityValidation: No ValidationSDK set for the validation process");let{maskedValidationChannel:K}=await this.validationSchemeSdk.initiateIdentityValidation();this.identityValidationData={maskedShopperContact:K.replace(/\*/g,"•"),selectedNetwork:ep[this.validationSchemeSdk.schemeName]},this.setState("OneTimePassword")}async finishIdentityValidation(K){if(!this.validationSchemeSdk)throw Error("finishIdentityValidation: No ValidationSDK set for the validation process");let G=await this.validationSchemeSdk.completeIdentityValidation(K);
88await this.getShopperProfile([G.idToken]),this.setState("Ready"),this.validationSchemeSdk=null}async checkout(K){if(!K)throw Error("ClickToPayService # checkout: Missing card data");let G=this.sdks.find(G=>G.schemeName===K.scheme),J=await G.checkout({srcDigitalCardId:K.srcDigitalCardId,srcCorrelationId:K.srcCorrelationId,...K.isDcfPopupEmbedded&&{windowRef:window.frames[ef]},...this.storeCookies&&{complianceSettings:{complianceResources:[{complianceType:"REMEMBER_ME",uri:""}]}}});if("COMPLETE"!==J.dcfActionCode)throw new ed.ZP("ERROR",`Checkout through Scheme DCF did not complete. DCF Action code received: ${J.dcfActionCode}`);return function(K,G,J){let{scheme:et,tokenId:er,srcDigitalCardId:en,srcCorrelationId:ei}=K;return"visa"===et?er?{srcScheme:et,srcCorrelationId:ei,srcTokenReference:J.toLowerCase().includes("live")?er:"987654321"}:{srcScheme:et,srcCheckoutPayload:G.checkoutResponse,srcCorrelationId:ei}:{srcScheme:et,srcDigitalCardId:en,srcCorrelationId:ei}}(K,J,this.environment)}async logout(){if(!this.sdks)throw new ed.ZP("ERROR","ClickToPayService is not initialized");try{let K=this.sdks.map(K=>K.unbindAppInstance());await Promise.all(K)}catch(K){K instanceof SrciError_e?console.warn(`Error at ClickToPayService # logout: ${K.toString()}`):console.warn(K)}this.shopperCards=null,this.identityValidationData=null,this.validationSchemeSdk=null,this.setState("Login")}async verifyIfShopperIsEnrolled(K){let{shopperEmail:G}=K;return new Promise((K,J)=>{let et=this.sdks.map(et=>{let er=l(()=>et.identityLookup({identityValue:G,type:"email"}),5e3,new TimeoutError_r(`ClickToPayService - Timeout during identityLookup() of the scheme '${et.schemeName}'`));return er.then(G=>{G.consumerPresent&&!this.validationSchemeSdk&&(this.setSdkForPerformingShopperIdentityValidation(et),K({isEnrolled:!0}))}).catch(K=>{J(K)}),er});Promise.allSettled(et).then(()=>{K({isEnrolled:!1})})})}setState(K){this.state=K,this.stateSubscriber?.(this.state)}setSdkForPerformingShopperIdentityValidation(K){this.validationSchemeSdk=K}async getShopperProfile(K){return new Promise((G,J)=>{let et=this.sdks.map(G=>G.getSrcProfile(K));Promise.allSettled(et).then(K=>{K.every(promise_util_e)&&J(K[0].reason);let et=K.map((K,G)=>promise_util_t(K)&&{...K.value,scheme:this.sdks[G].schemeName}).filter(K=>!!K);this.shopperCards=function(K){let G=K.reduce(services_utils_a,[]),{availableCards:J,expiredCards:et}=G.reduce(n,{availableCards:[],expiredCards:[]}),{unusedCards:er,usedCards:en}=J.reduce(utils_o,{unusedCards:[],usedCards:[]});return[...en.sort(d),...er.sort(utils_t),...et.sort(d)]}(et),G()})})}async verifyIfShopperIsRecognized(){return new Promise((K,G)=>{let J=this.sdks.map(J=>{let et=l(()=>J.isRecognized(),5e3,new TimeoutError_r(`ClickToPayService - Timeout during isRecognized() of the scheme '${J.schemeName}'`));return et.then(G=>G.recognized&&K(G)).catch(K=>G(K)),et});Promise.allSettled(J).then(()=>K({recognized:!1}))})}async initiateSdks(){let K=this.sdks.map(K=>{let G=this.schemesConfig[K.schemeName];return l(()=>K.init(G,this.srciTransactionId),5e3,new TimeoutError_r(`ClickToPayService - Timeout during init() of the scheme '${K.schemeName}'`))});await Promise.all(K)}};let create_clicktopay_service_n=(K,G)=>{let J={...K&&{shopperEmail:K}};return Object.keys(J).length>0?J:null},create_clicktopay_service_a=K=>{if(!K)return null;let{visaSrciDpaId:G,visaSrcInitiatorId:J,mcDpaId:et,mcSrcClientId:er}=K,en={...et&&er&&{mc:{srciDpaId:et,srcInitiatorId:er}},...G&&J&&{visa:{srciDpaId:G,srcInitiatorId:J}}};return 0===Object.keys(en).length?null:en},em=(0,en.kr)({status:null,onSubmit:null,onSetStatus:null,onError:null,onReady:null,amount:null,configuration:null,isStandaloneComponent:null,isCtpPrimaryPaymentMethod:null,isStoringCookies:!1,setIsCtpPrimaryPaymentMethod:null,logoutShopper:null,updateStoreCookiesConsent:null,ctpState:null,cards:[],schemes:[],otpMaskedContact:null,otpNetwork:null,checkout:null,verifyIfShopperIsEnrolled:null,startIdentityValidation:null,finishIdentityValidation:null});var ey=J(38482);let ClickToPayProvider_r=({isStandaloneComponent:K=!1,clickToPayService:G,amount:J,configuration:et,children:ei,setClickToPayRef:eo,onSubmit:es,onSetStatus:el,onError:ec})=>{let[eu]=(0,ey.eJ)(G),[ed,eh]=(0,ey.eJ)(G?.state||er.NotAvailable),[ep,ef]=(0,ey.eJ)(!0),[eg,ev]=(0,ey.eJ)("ready"),eb=(0,ey.sO)({}),eC=(0,ey.sO)(!1);(0,ey.d4)(()=>{eo(eb.current),eb.current.setStatus=ev},[]),(0,ey.d4)(()=>{eu?.subscribeOnStateChange(K=>eh(K))},[eu]);let ew=(0,ey.I4)(()=>{eC.current||(et.onReady?.(),eC.current=!0)},[et?.onReady]),e_=(0,ey.I4)(async K=>{await eu?.finishIdentityValidation(K)},[eu]),eS=(0,ey.I4)(async()=>await eu?.startIdentityValidation(),[eu]),ek=(0,ey.I4)(async K=>await eu?.checkout(K),[eu]),eA=(0,ey.I4)(async K=>await eu?.verifyIfShopperIsEnrolled(K),[eu]),eE=(0,ey.I4)(async()=>{await eu?.logout()},[eu]),eT=(0,ey.I4)(K=>{eu.updateStoreCookiesConsent(K)},[eu]);return(0,en.az)(em.Provider,{value:{status:eg,onSubmit:es,onError:ec,onSetStatus:el,amount:J,configuration:et,isStoringCookies:eu?.storeCookies,isStandaloneComponent:K,isCtpPrimaryPaymentMethod:ep,setIsCtpPrimaryPaymentMethod:ef,ctpState:ed,verifyIfShopperIsEnrolled:eA,cards:eu?.shopperCards,schemes:eu?.schemes,otpMaskedContact:eu?.identityValidationData?.maskedShopperContact,otpNetwork:eu?.identityValidationData?.selectedNetwork,checkout:ek,logoutShopper:eE,startIdentityValidation:eS,finishIdentityValidation:e_,updateStoreCookiesConsent:eT,onReady:ew}},ei)};function useClickToPayContext_e(){return(0,ey.qp)(em)}var ev=J(9694);let eb={otp:{validate:K=>!!K&&K.length>0,errorMessage:"",modes:["blur"]},default:{validate:K=>!!K&&K.length>0,errorMessage:"",modes:["blur"]}};var eC=J(27957),ew=J(13064);let Icon_s=({type:K,className:G="",alt:J="",height:et,width:er})=>{let ei=(0,ew.Z)(),eo=ei({imageFolder:"components/"})?.(K);return(0,en.az)("img",{className:(0,eC.Z)("adyen-checkout__icon",G),alt:J,src:eo,height:et,width:er})},e_="bento_",CtPResendOtpLink_l=({onError:K,onResendCode:G,disabled:J})=>{let[et,er]=(0,ey.eJ)(null),[ei,es]=(0,ey.eJ)(!1),{i18n:el}=(0,eo.m)(),{startIdentityValidation:ec}=useClickToPayContext_e();(0,ey.d4)(()=>{let K=null;return et>0&&(K=setTimeout(()=>er(et-1),1e3)),()=>clearTimeout(K)},[et]),(0,ey.d4)(()=>{let K=null;return ei&&(K=setTimeout(()=>{es(!1),er(60)},2e3)),()=>clearTimeout(K)},[ei]);let eu=(0,ey.I4)(async J=>{J.preventDefault();try{G(),es(!0),await ec()}catch(G){if(er(0),es(!1),!utils_u(G))return void console.error(G);K(G.reason)}},[ec,K,G]);return ei?(0,en.az)("div",{className:"adyen-checkout-ctp__otp-resend-code
88--confirmation"},el.get("ctp.otp.codeResent"),(0,en.az)(Icon_s,{type:`${e_}checkmark`,height:14,width:14})):et>0?(0,en.az)("div",{className:"adyen-checkout-ctp__otp-resend-code--disabled"},el.get("ctp.otp.resendCode")," -"," ",(0,en.az)("span",{className:"adyen-checkout-ctp__otp-resend-code-counter"}," ",et>0&&`${et}s`," ")):(0,en.az)("div",{role:"link",tabIndex:0,className:(0,eC.Z)("adyen-checkout-ctp__otp-resend-code",{"adyen-checkout-ctp__otp-resend-code--disabled":J}),onClick:eu},el.get("ctp.otp.resendCode"))};let ValidationRuleResult_s=class ValidationRuleResult_s{shouldValidate;isValid;errorMessage;constructor(K,G,J,et){this.shouldValidate=K.modes.includes(J),this.isValid=K.validate(G,et),this.errorMessage=K.errorMessage}hasError(K=!1){return K?!this.isValid&&this.shouldValidate:null!=this.isValid&&!this.isValid&&this.shouldValidate}};let Validator_t=class Validator_t{validationResults;constructor(K){this.validationResults=K}get isValid(){return this.validationResults.reduce((K,G)=>K&&G.isValid,!0)}hasError(K=!1){return!!this.getError(K)}getError(K=!1){return this.validationResults.find(G=>G.hasError(K))}getAllErrors(){return this.validationResults.filter(K=>K.hasError())}};let Validator_s=class Validator_s{rules={default:{validate:()=>!0,modes:["blur","input"]}};constructor(K){this.setRules(K)}setRules(K){this.rules={...this.rules,...K}}getRulesFor(K){let G=this.rules[K]??this.rules.default;return Array.isArray(G)||(G=[G]),G}validate({key:K,value:G,mode:J="blur"},et){let er=this.getRulesFor(K).map(K=>new ValidationRuleResult_s(K,G,J,et));return new Validator_t(er)}};let reducer_r=(K,G)=>Object.keys(K).filter(K=>!G.includes(K)).reduce((G,J)=>(G[J]=K[J],G),{}),reducer_e=(K,G,J,et,er)=>G.reduce((K,G)=>({...K,[G]:K[G]??er?.[G]??et?.[G]??J}),K);function reducer_a({schema:K,defaultData:G,processField:J,fieldProblems:et}){let d=K=>{if(void 0===G[K])return{valid:!1,errors:null,data:null,fieldProblems:et?.[K]??null};let[er,en]=J({key:K,value:G[K],mode:"blur"},{state:{data:G}});return{valid:en.isValid&&!et?.[K]||!1,errors:en.hasError()?en.getError():null,data:er,fieldProblems:et?.[K]??null}},er=K.reduce((K,G)=>{let{valid:J,errors:et,data:er,fieldProblems:en}=d(G);return{valid:{...K.valid,[G]:J},errors:{...K.errors,[G]:et},data:{...K.data,[G]:er},fieldProblems:{...K.fieldProblems,[G]:en}}},{data:{},valid:{},errors:{},fieldProblems:{}});return{schema:K,data:er.data,valid:er.valid,errors:er.errors,fieldProblems:er.fieldProblems}}function useForm_d(K){let{rules:G={},formatters:J={},defaultData:et={},fieldProblems:er={},schema:en=[]}=K,ei=(0,ey.Ye)(()=>new Validator_s(G),[G]),h=({key:K,value:G,mode:et},er)=>{let en=J?.[K],eo=en&&"formatterFn"in en?en.formatterFn:en,es=eo&&"function"==typeof eo?eo(G??"",er):G;return[es,ei.validate({key:K,value:es,mode:et},er)]},[eo,es]=(0,ey._Y)(function(K,{type:G,key:J,value:et,mode:er,schema:en,defaultData:ei,formValue:eo,selectedSchema:es,fieldProblems:el}){let ec=es||K.schema;switch(G){case"setData":return{...K,data:{...K.data,[J]:et}};case"setValid":return{...K,valid:{...K.valid,[J]:et}};case"setErrors":return{...K,errors:{...K.errors,[J]:et}};case"setFieldProblems":return K?.schema?.reduce((G,J)=>({...G,fieldProblems:{...K.fieldProblems,[J]:el?.[J]??null},valid:{...K.valid,[J]:K.valid?.[J]&&!el[J]}}),K)??K;case"updateField":{let[G,en]=h({key:J,value:et,mode:er},{state:K}),ei=K.data[J],eo={...K.fieldProblems};return ei!==G&&(eo[J]=null),{...K,data:{...K.data,[J]:G},errors:{...K.errors,[J]:en.hasError()?en.getError():null},valid:{...K.valid,[J]:en.isValid&&!eo[J]||!1},fieldProblems:eo}}case"mergeForm":{let G={...K,data:{...K.data,...eo.data},errors:{...K.errors,...eo.errors},valid:{...K.valid,...eo.valid},fieldProblems:{...K.fieldProblems,...eo.fieldProblems}};return G.valid&&(G.isValid=Object.values(G.valid).every(K=>K)),G}case"setSchema":{let G=reducer_a({schema:en,defaultData:ei,processField:h,fieldProblems:el}),J=K.schema.filter(K=>!en.includes(K)),et=en.filter(G=>!K.schema.includes(G)),er={data:reducer_r(K.data,et),errors:reducer_r(K.errors,et),valid:reducer_r(K.valid,et)},eo=reducer_e(reducer_r(K.data,J),et,null,G.data,K.local?.data),es=reducer_e(reducer_r(K.valid,J),et,!1,G.valid,K.local?.valid),ec=reducer_e(reducer_r(K.errors,J),et,null,G.errors,K.local?.errors);return{...K,schema:en,data:eo,valid:es,errors:ec,local:er}}case"validateForm":{let G=ec.reduce((G,J)=>
88{let[,et]=h({key:J,value:K.data[J],mode:"blur"},{state:K});return{valid:{...G.valid,[J]:et.isValid&&!K.fieldProblems[J]||!1},errors:{...G.errors,[J]:et.hasError(!0)?et.getError(!0):null}}},{valid:K.valid,errors:K.errors});return{...K,valid:G.valid,errors:G.errors}}default:throw Error("Undefined useForm action")}},{defaultData:et,schema:en??[],processField:h,fieldProblems:er},reducer_a),el=(0,ey.Ye)(()=>eo.schema.reduce((K,G)=>K&&eo.valid[G],!0),[eo.schema,eo.valid]),ec=(0,ey.I4)((K=null)=>{es({type:"validateForm",selectedSchema:K})},[]),eu=(0,ey.I4)((K,G)=>es({type:"setErrors",key:K,value:G}),[]),ed=(0,ey.I4)((K,G)=>es({type:"setValid",key:K,value:G}),[]),eh=(0,ey.I4)((K,G)=>es({type:"setData",key:K,value:G}),[]),ep=(0,ey.I4)(K=>es({type:"setSchema",schema:K,defaultData:et}),[eo.schema]),ef=(0,ey.I4)(K=>es({type:"mergeForm",formValue:K}),[]),eg=(0,ey.I4)(K=>es({type:"setFieldProblems",fieldProblems:K}),[eo.schema]);return(0,ey.d4)(()=>{eg(er??{})},[JSON.stringify(er)]),{handleChangeFor:(K,G)=>J=>{let et=J.target?"checkbox"===J.target.type?!eo.data[K]:J.target.value:J;es({type:"updateField",key:K,value:et,mode:G})},triggerValidation:ec,setSchema:ep,setData:eh,setValid:ed,setErrors:eu,isValid:el,mergeForm:ef,setFieldProblems:eg,schema:eo.schema,valid:eo.valid,errors:eo.errors,data:eo.data,fieldProblems:eo.fieldProblems}}var eS=J(58980),ek=J(57381);let eA=Date.now(),idGenerator_t=(K="field")=>(eA+=1,`${K}-${eA}`),Field_h=K=>{let{children:G,className:J,classNameModifiers:et,dir:er,disabled:ei,readOnly:eo,errorMessage:es,helper:el,inputWrapperModifiers:ec,isLoading:eu,isValid:ed,label:eh,labelEndAdornment:ep,name:ef,onBlur:eg,onFieldBlur:em,onF
88ocus:ev,onFocusField:eb,showValidIcon:ew,useLabelElement:eA,showErrorElement:eE,showContextualElement:eT,contextualText:eI,filled:eP,focused:eO,i18n:eR,contextVisibleToScreenReader:ex,renderAlternativeToLabel:eD}=K,eM=ex??!0,eN=eE&&"string"==typeof es&&es.length>0,eL=eT&&!eN&&eI?.length>0,eF=(0,ey.sO)(idGenerator_t(`adyen-checkout-${ef}`)),[eB,eU]=(0,ey.eJ)(!1),[ez,ej]=(0,ey.eJ)(!1);null!=eO&&eU(!!eO),null!=eP&&ej(!!eP);let eV=(0,ey.I4)(K=>{eU(!0),ev?.(K)},[ev]),eH=(0,ey.I4)(K=>{eU(!1),eg?.(K),em?.(K)},[eg,em]),eq=(0,ey.I4)(()=>(0,en.az)(en.HY,null,"string"==typeof eh&&(0,en.az)("span",{className:(0,eC.Z)({"adyen-checkout__label__text":!0,"adyen-checkout__label__text--error":es}),"data-id":ef},eh),"function"==typeof eh&&eh(),ep&&(0,en.az)("span",{className:"adyen-checkout__label-adornment--end"},ep),el&&(0,en.az)("span",{className:"adyen-checkout__helper-text"},el)),[eh,es,ep,el]),e$=(0,ey.I4)(()=>{let K=(0,en.az)("span",{className:(0,eC.Z)({"adyen-checkout-contextual-text--error":!0,"adyen-checkout-contextual-text--hidden":!eN}),...eM&&{id:`${eF.current}${ek.Df}`},"aria-hidden":eM?null:"true"},es),J=(0,en.az)("span",{className:(0,eC.Z)({"adyen-checkout-contextual-text":!0,"adyen-checkout-contextual-text--hidden":!eL}),...eM&&{id:`${eF.current}${ek.fy}`},"aria-hidden":eM?null:"true"},eI);return(0,en.az)(en.HY,null,(0,en.az)("div",{className:(0,eC.Z)(["adyen-checkout__input-wrapper",...ec.map(K=>`adyen-checkout__input-wrapper--${K}`)]),dir:er},(0,en.bR)(G).map(K=>{let G={isValid:ed,onFocusHandler:eV,onBlurHandler:eH,isInvalid:!!es,...ef&&{uniqueId:eF.current},showErrorElement:eE};return(0,en.Tm)(K,G)}),eu&&(0,en.az)("span",{className:"adyen-checkout-input__inline-validation adyen-checkout-input__inline-validation--loading"},(0,en.az)(eS.Z,{size:"small"})),ed&&!1!==ew&&(0,en.az)("span",{className:"adyen-checkout-input__inline-validation adyen-checkout-input__inline-validation--valid"},(0,en.az)(Icon_s,{type:`${e_}checkmark`,alt:eR?.get("field.valid")})),es&&(0,en.az)("span",{className:"adyen-checkout-input__inline-validation adyen-checkout-input__inline-validation--invalid"},(0,en.az)(Icon_s,{type:`${e_}field_error`,alt:eR?.get("error.title")}))),K,J)},[G,es,eI,eu,ed,eV,eH]),eK=(0,ey.I4)(({onFocusField:K,focused:G,filled:J,disabled:et,name:er,uniqueId:ei,useLabelElement:eo,isSecuredField:es,children:el,renderAlternativeToLabel:ec})=>{let eu={onClick:K,className:(0,eC.Z)({"adyen-checkout__label":!0,"adyen-checkout__label--focused":G,"adyen-checkout__label--filled":J,"adyen-checkout__label--disabled":et})};return eo?(0,en.az)("label",{...eu,...!es&&er&&{htmlFor:ei}},el):ec(eu,el,ei)},[]);return(0,en.az)("div",{className:(0,eC.Z)("adyen-checkout__field",J,et.map(K=>`adyen-checkout__field--${K}`),{"adyen-checkout__field--error":es,"adyen-checkout__field--valid":ed,"adyen-checkout__field--inactive":eo||ei})},(0,en.az)(eK,{onFocusField:eb,name:ef,disabled:ei,filled:ez,focused:eB,useLabelElement:eA,uniqueId:eF.current,isSecuredField:!eM,renderAlternativeToLabel:eD},eq()),e$())};function InputBase_t({setRef:K,...G}){let{autoCorrect:J,classNameModifiers:et,isInvalid:er,isValid:ei,readonly:eo=null,spellCheck:es,type:el,uniqueId:ec,disabled:eu}=G,ed=G.className;Object.prototype.hasOwnProperty.call(G,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");let eh=(0,ey.I4)(K=>{G.onInput(K)},[G.onInput]),ep=(0,ey.I4)(K=>{G?.onKeyPress&&G.onKeyPress(K)},[G?.onKeyPress]),ef=(0,ey.I4)(K=>{G?.onKeyUp&&G.onKeyUp(K)},[G?.onKeyUp]),eg=(0,ey.I4)(K=>{G?.onBlurHandler?.(K),G.trimOnBlur&&(K.target.value=K.target.value.trim()),G?.onBlur?.(K)},[G.onBlur,G.onBlurHandler]),em=(0,ey.I4)(K=>{G?.onFocusHandler?.(K)},[G.onFocusHandler]),ev=(0,eC.Z)("adyen-checkout__input",[`adyen-checkout__input--${el}`],ed,{"adyen-checkout__input--invalid":er,"adyen-checkout__input--valid":ei},et.map(K=>`adyen-checkout__input--${K}`)),{classNameModifiers:eb,uniqueId:ew,isInvalid:e_,isValid:eS,addContextualElement:eA,...eE}=G;return(0,en.az)("input",{id:ec,...eE,"aria-required":eE.required,type:el,className:ev,readOnly:eo,spellCheck:es,autoCorrect:J,"aria-describedby":`${ec}${er?ek.Df:ek.fy}`,"aria-invalid":er,onInput:eh,onBlur:eg,onFocus:em,onKeyUp:ef,onKeyPress:ep,disabled:eu,ref:K})}function InputText_t(K){return(0,en.az)(InputBase_t,{classNameModifiers:["large"],...K,"aria-required":K.required,type:"text"})}Field_h.defaultProps={className:"",classNameModifiers:[],inputWrapperModifiers:[],useLabelElement:!0,showErrorElement:!0,showContextualElement:!0,renderAlternativeToLabel:()=>null},InputBase_t.defaultProps={type:"text",classNameModifiers:[]};let CtPOneTimePasswordInput_c=K=>{let{i18n:G}=(0,eo.m)(),{configuration:{disableOtpAutoFocus:J}}=useClickToPayContext_e(),[et,er]=(0,ey.eJ)(null),{handleChangeFor:ei,data:es,triggerValidation:el,valid:ec,errors:eu,isValid:ed,setData:eh}=useForm_d({schema:["otp"],rules:eb}),ep=(0,ey.sO)({validateInput:null}),ef=(0,ey.sO)(null),[eg,em]=(0,ey.eJ)(!1),ev=(0,ey.I4)(()=>{em(!0),el()},[el]);(0,ey.d4)(()=>{es.otp&&em(!0)},[es.otp]),(0,ey.d4)(()=>{!J&&ef.current&&ef.current.focus()},[ef.current,J]),(0,ey.d4)(()=>{ep.current.validateInput=ev,K.onSetInputHandlers(ep.current)},[ev,K.onSetInputHandlers]);let eC=(0,ey.I4)(()=>{eh("otp",""),er(null),J||ef.current.focus(),K.onResendCode()},[K.onResendCode,ef.current,J]),ew=(0,ey.I4)(K=>{let J=G.get(`ctp.errors.${K}`);J&&er(J)},[G]),e_=(0,ey.I4)(G=>{"Enter"===G.key&&K.onPressEnter()},[K.onPressEnter]),eS=(0,ey.I4)(K=>{"Enter"===K.key&&K.preventDefault()},[]);return(0,ey.d4)(()=>
88{K.onChange({data:es,valid:ec,errors:eu,isValid:ed})},[es,ec,eu]),(0,en.az)(Field_h,{name:"oneTimePassword",label:G.get("ctp.otp.fieldLabel"),labelEndAdornment:!K.hideResendOtpButton&&(0,en.az)(CtPResendOtpLink_l,{disabled:K.isValidatingOtp,onError:ew,onResendCode:eC}),errorMessage:eg?et||K.errorMessage||!!eu.otp:null,classNameModifiers:["otp"]},(0,en.az)(InputText_t,{name:"otp",autocorrect:"off",spellcheck:!1,value:es.otp,disabled:K.disabled,onInput:ei("otp","input"),onBlur:ei("otp","blur"),onKeyUp:e_,onKeyPress:eS,setRef:K=>{ef.current=K}}))};var eE=J(8777);let CtPBrand_r=({classNameModifiers:K=[]})=>{let G=(0,ew.Z)(),{schemes:J}=useClickToPayContext_e(),et=G()("ctp"),er=G({imageFolder:"components/"})("pipe");return(0,en.az)("div",{className:(0,eC.Z)("adyen_checkout-ctp__brand-wrapper",K.map(K=>`adyen_checkout-ctp__brand-wrapper--${K}`))},(0,en.az)(eE.Z,{className:"adyen_checkout-ctp__brand-logo",src:et,alt:"Logo of Click to Pay"}),(0,en.az)(eE.Z,{className:"adyen_checkout-ctp__brand-pipe",src:er,alt:""}),J.map(K=>(0,en.az)(eE.Z,{key:K,className:(0,eC.Z)("adyen_checkout-ctp__brand-scheme",`adyen_checkout-ctp__brand-scheme-${K}`),src:G()(K),alt:`Logo of ${ep[K]}`})))},useTrapFocus_o=({rootElement:K,focusFirst:G,shouldTrap:J=!0})=>{let[et,er]=(0,ey.eJ)(G);(0,ey.d4)(()=>{J&&et?.focus()},[et,J]),(0,ey.d4)(()=>{if(!J)return;let et=K.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),en=et[0],ei=et[et.length-1];er(G||en);let r=K=>{if("Tab"===K.key||9===K.keyCode)return K.shiftKey&&document.activeElement===en?(ei.focus(),void K.preventDefault()):document.activeElement===ei?(en.focus(),void K.preventDefault()):void 0};return K.addEventListener("keydown",r),()=>{er(null),K.removeEventListener("keydown",r)}},[K,G,J])},useModal_t=({modalElement:K,isOpen:G,isDismissible:J,focusFirst:et,focusAfterClose:er,onClose:en})=>{useTrapFocus_o({rootElement:K,shouldTrap:G,focusFirst:et});let ei=(0,ey.I4)(()=>{er.focus(),en()},[en,er]),eo=(0,ey.I4)(G=>{J&&G.target instanceof HTMLElement&&!K.contains(G.target)&&ei()},[ei,J,K]);return(0,ey.d4)(()=>{if(!G||!K)return;let e=K=>{("Escape"===K.key||"Esc"===K.key||27===K.keyCode)&&ei()};return K.addEventListener("keydown",e),()=>K.removeEventListener("keydown",e)},[G,K,ei]),{closeModal:ei,handleClickOutside:eo}},Modal_r=({children:K,classNameModifiers:G=[],isOpen:J,onClose:et,isDismissible:er=!0,labelledBy:ei,describedBy:eo,focusFirst:es,focusAfterClose:el,...ec})=>{let eu=(0,ey.sO)(),{closeModal:ed,handleClickOutside:eh}=useModal_t({modalElement:eu.current,isOpen:J,isDismissible:er,focusFirst:es,focusAfterClose:el,onClose:et});return(0,en.az)("div",{className:(0,eC.Z)("adyen-checkout__modal-wrapper",G.map(K=>`adyen-checkout__modal-wrapper--${K}`),{"adyen-checkout__modal-wrapper--open":J}),role:"dialog","aria-labelledby":ei,"aria-describedby":eo,"aria-modal":"true","aria-hidden":!J,onClick:eh,...ec},(0,en.az)("div",{className:"adyen-checkout__modal",ref:eu},K({onCloseModal:ed})))},eT=Date.now();function p(){return eT+=1,`adyen-${eT}`}let CtPInfoModal_m=({isOpen:K,onClose:G,focusAfterClose:J})=>{let et=(0,ey.sO)(),{i18n:er}=(0,eo.m)(),ei=(0,ew.Z)(),es=p(),el=p();return(0,en.az)(Modal_r,{onClose:G,isOpen:K,classNameModifiers:["ctp"],labelledBy:es,describedBy:el,focusFirst:et.current,focusAfterClose:J},({onCloseModal:K})=>(0,en.az)(en.HY,null,(0,en.az)(eE.Z,{className:"adyen-checkout__ctp-modal-header-image",src:ei({imageFolder:"components/"})("ctp_landscape"),alt:""}),(0,en.az)("h1",{id:es,className:"adyen-checkout__ctp-modal-title"},er.get("ctp.infoPopup.title")),(0,en.az)("div",{id:el},(0,en.az)("p",{tabIndex:-1,ref:et,className:"adyen-checkout__ctp-modal-text"},er.get("ctp.infoPopup.subtitle")),(0,en.az)("ul",{className:"adyen-checkout__ctp-modal-text adyen-checkout__ctp-modal-benefits",type:"disc"},(0,en.az)("li",null,er.get("ctp.infoPopup.benefit1")),(0,en.az)("li",null,er.get("ctp.infoPopup.benefit2")),(0,en.az)("li",null,er.get("
88ctp.infoPopup.benefit3"))),(0,en.az)(CtPBrand_r,{classNameModifiers:["popup"]})),(0,en.az)(ev.Z,{onClick:K,label:er.get("close")})))},CtPInfo_c=()=>{let[K,G]=(0,ey.eJ)(!1),J=(0,ey.sO)(),{i18n:et}=(0,eo.m)(),er=(0,ew.Z)()({imageFolder:"components/"})("info"),ei=(0,ey.I4)(()=>{G(!1)},[]),es=(0,ey.I4)(()=>{G(!0)},[]);return(0,en.az)(en.HY,null,(0,en.az)("button",{ref:J,onClick:es,className:"adyen-web__ctp-info-button","aria-label":et.get("ctp.aria.infoModalButton"),type:"button"},(0,en.az)(eE.Z,{height:"15",src:er,ariaHidden:!0})),(0,en.az)(CtPInfoModal_m,{isOpen:K,onClose:ei,focusAfterClose:J.current}))},CtPLogoutLink_a=()=>{let{ctpState:K,logoutShopper:G,status:J,cards:et}=useClickToPayContext_e(),{i18n:ei}=(0,eo.m)();if(!1===[er.Ready,er.OneTimePassword].includes(K))return null;let es=(0,ey.Ye)(()=>K===er.Ready&&et.length>1?ei.get("ctp.logout.notYourCards"):K===er.Ready&&1===et.length?ei.get("ctp.logout.notYourCard"):K===er.Ready&&0===et.length?ei.get("ctp.logout.notYourProfile"):ei.get("ctp.logout.notYou"),[ei,K]);return(0,en.az)("span",{role:"button",tabIndex:0,className:(0,eC.Z)("adyen-checkout-ctp__section-logout-button",{"adyen-checkout-ctp__section-logout-button--disabled":"loading"===J}),onClick:G},es)},CtPSection_o=({children:K})=>{let{isStandaloneComponent:G}=useClickToPayContext_e();return(0,en.az)("div",{className:(0,eC.Z)("adyen-checkout-ctp__section",{"adyen-checkout-ctp__section--standalone":G})},(0,en.az)("div",{className:"adyen-checkout-ctp__section-brand"},(0,en.az)(CtPBrand_r,null),(0,en.az)(CtPLogoutLink_a,null)),K)};function Checkbox_t({classNameModifiers:K=[],label:G,isInvalid:J,onChange:et,...er}){let{uniqueId:ei,showErrorElement:eo,showContextualElement:es,...el}=er;return(0,en.az)("label",{className:"adyen-checkout__checkbox",htmlFor:ei},(0,en.az)("input",{id:ei,...el,...eo&&{"aria-describedby":`${ei}${ek.Df}`},...es&&{"aria-describedby":`${ei}${ek.fy}`},className:(0,eC.Z)(["adyen-checkout__checkbox__input",[er.className],{"adyen-checkout__checkbox__input--invalid":J},K.map(K=>`adyen-checkout__input--${K}`)]),type:"checkbox",onChange:et}),(0,en.az)("span",{className:"adyen-checkout__checkbox__label"},G))}CtPSection_o.Title=({endAdornment:K,children:G})=>(0,en.az)("div",{className:"adyen-checkout-ctp__section-header"},(0,en.az)("h1",{className:"adyen-checkout-ctp__section-header-title"},G),K&&(0,en.az)("span",{className:"adyen-checkout-ctp__section-header-adornment"},K)),CtPSection_o.Text=({children:K})=>(0,en.az)("p",{className:"adyen-checkout-ctp__section-text"},K),Checkbox_t.defaultProps={onChange:()=>{}};let isScreenSmall_a=()=>window.matchMedia("(max-width: 480px)").matches;function CtPSaveCookiesCheckbox_p(){let{i18n:K}=(0,eo.m)(),{updateStoreCookiesConsent:G,isStoringCookies:J}=useClickToPayContext_e(),[et,er]=(0,ey.eJ)(J),[ei,es]=(0,ey.eJ)(isScreenSmall_a()),el=(0,ey.I4)(()=>{let K=!et;er(K),G(K)},[G,er,et]);return(0,en.az)("div",{className:(0,eC.Z)("adyen-checkout-ctp__otp-checkbox-container",{"adyen-checkout-ctp__otp-checkbox-container--checked":et})},(0,en.az)(Field_h,{classNameModifiers:["consentCheckbox"],name:"clickToPayCookiesCheckbox",showContextualElement:!1,useLabelElement:!1,i18n:K},(0,en.az)(Checkbox_t,{name:"clickToPayCookiesCheckbox",onInput:el,label:K.get("ctp.otp.saveCookiesCheckbox.label"),checked:et,"aria-describedby":"adyen-ctp-cookies-info"})),(0,en.az)("p",{className:"adyen-checkout-ctp__otp-checkbox-info"},ei?(0,en.az)(en.HY,null,(0,en.az)("span",{id:"adyen-ctp-cookies-info"},K.get("ctp.otp.saveCookiesCheckbox.shorterInfo")," "),(0,en.az)("button",{className:"adyen-checkout-ctp__otp-readmore-button",onClick:()=>es(!1)},K.get("readMore"),"..")):(0,en.az)("span",{id:"adyen-ctp-cookies-info"},K.get("ctp.otp.saveCookiesCheckbox.information"))))}let CtPOneTimePassword_c=({onDisplayCardComponent:K})=>{let{i18n:G}=(0,eo.m)(),{finishIdentityValidation:J,otpMaskedContact:et,otpNetwork:er,isCtpPrimaryPaymentMethod:ei}=useClickToPayContext_e(),[es,el]=(0,ey.eJ)(null),[ec,eu]=(0,ey.eJ)(!1),[ed,eh]=(0,ey.eJ)(!1),[ep,ef]=(0,ey.eJ)(null),[eg,em]=(0,ey.eJ)(null),[eb,eC]=(0,ey.eJ)(!1),ew=(0,ey.I4)(K=>{em(K)},[]),e_=(0,ey.I4)(({data:K,isValid:G})=>{el(K.otp),eu(G)},[]),eS=(0,ey.I4)(()=>{ef(null)},[]),ek=(0,ey.I4)(async()=>
88{if(ef(null),ec){eh(!0);try{await J(es)}catch(G){if(!utils_u(G))return void eh(!1);ef(G?.reason),eh(!1),"ACCT_INACCESSIBLE"===G?.reason&&(eC(!0),K?.())}}else eg.validateInput()},[es,ec,eg,K]),eA=G.get("ctp.otp.subtitle").split("%@");return(0,en.az)(en.HY,null,(0,en.az)(CtPSection_o.Title,{endAdornment:(0,en.az)(CtPInfo_c,null)},G.get("ctp.otp.title")),(0,en.az)(CtPSection_o.Text,null,eA[0]," ",er," ",eA[1],(0,en.az)("span",{className:"adyen-checkout-ctp__otp-subtitle--highlighted"},et),eA[2]),(0,en.az)(CtPOneTimePasswordInput_c,{hideResendOtpButton:eb,onChange:e_,onSetInputHandlers:ew,disabled:ed,errorMessage:ep&&G.get(`ctp.errors.${ep}`),onPressEnter:ek,onResendCode:eS,isValidatingOtp:ed}),(0,en.az)(CtPSaveCookiesCheckbox_p,null),(0,en.az)(ev.Z,{disabled:eb,label:G.get("continue"),variant:ei?"primary":"secondary",onClick:ek,status:ed&&"loading"}))},CtPSingleCard_o=({card:K,errorMessage:G})=>{let{i18n:J}=(0,eo.m)(),et=(0,ew.Z)(),er=K.artUri||et()(K.scheme);return(0,en.az)(en.HY,null,(0,en.az)("div",{className:"adyen-checkout-ctp__card-list-single-card"},(0,en.az)(eE.Z,{src:er,height:24,className:"adyen-checkout-ctp__card-image"}),(0,en.az)("span",{className:(0,eC.Z)({"adyen-checkout-ctp__card-list-single-card-expired":K.isExpired})},K.title," ",`•••• ${K.panLastFour}`),K.isExpired&&(0,en.az)("span",{className:"adyen-checkout-ctp__expired-label"},J.get("ctp.cards.expiredCard"))),G&&(0,en.az)("div",{className:"adyen-checkout-contextual-text--error"},G))};var eI=J(71847),eP=J(11829);let isMobile_t=()=>window.matchMedia("(max-width: 768px)").matches&&/Android|iPhone|iPod/.test(navigator.userAgent);function SelectButton_a({filterable:K,toggleButtonRef:G,...J}){if(K){let{id:K,...et}=J;return(0,en.az)("div",{...et,ref:G})}return(0,en.az)("button",{id:J.id,"aria-describedby":J.ariaDescribedBy,type:"button",...J,ref:G})}function SelectButton_d(K){let{active:G,selected:J,inputText:et,readonly:er,showList:ei}=K,eo=J.selectedOptionName||J.name||K.placeholder||"",es=ei?et:eo,el=er?null:K.filterable?G=>{G.preventDefault(),document.activeElement===K.filterInputRef.current?K.showList||K.toggleList(G):K.filterInputRef.current&&K.filterInputRef.current.focus()}:K.toggleList,ec=er?null:K.onFocus,eu=G.id?`listItem-${G.id}`:"";return(0,en.az)(SelectButton_a,{className:(0,eC.Z)({"adyen-checkout__dropdown__button":!0,"adyen-checkout__dropdown__button--readonly":er,"adyen-checkout__dropdown__button--active":ei,"adyen-checkout__dropdown__button--invalid":K.isInvalid,"adyen-checkout__dropdown__button--valid":K.isValid,"adyen-checkout__dropdown__button--disabled":J.disabled}),disabled:K.disabled,filterable:K.filterable,onClick:el,onKeyDown:er?null:K.onButtonKeyDown,toggleButtonRef:K.toggleButtonRef,...K.allowIdOnButton&&K.id&&{id:K.id}},K.filterable?(0,en.az)(en.HY,null,!ei&&J.icon&&(0,en.az)(eE.Z,{className:"adyen-checkout__dropdown__button__icon",src:J.icon,alt:J.name}),(0,en.az)("input",{value:es,"aria-autocomplete":"list","aria-controls":K.selectListId,"aria-expanded":ei,"aria-owns":K.selectListId,autoComplete:"off",className:"adyen-checkout__filter-input",onInput:K.onInput,onFocus:ec,ref:K.filterInputRef,role:"combobox","aria-activedescendant":eu,type:"text",readOnly:K.readonly,id:K.id,"aria-describedby":K.ariaDescribedBy}),!ei&&J.secondaryText&&(0,en.az)("span",{className:"adyen-checkout__dropdown__button__secondary-text"},J.secondaryText)):(0,en.az)(en.HY,null,J.icon&&(0,en.az)(eE.Z,{className:"adyen-checkout__dropdown__button__icon",src:J.icon,alt:J.name}),(0,en.az)("span",{className:"adyen-checkout__dropdown__button__text"},eo),J.secondaryText&&(0,en.az)("span",{className:"adyen-checkout__dropdown__button__secondary-text"},J.secondaryText)))}let SelectListItem_d=({item:K,active:G,selected:J,...et})=>(0,en.az)("li",{"aria-disabled":!!K.disabled,"aria-selected":J,className:(0,eC.Z)(["adyen-checkout__dropdown__element",{"adyen-checkout__dropdown__element--active":G,"adyen-checkout__dropdown__element--disabled":!!K.disabled}]),"data-disabled":!0===K.disabled||null,"data-value":K.id,onClick:et.onSelect,onMouseEnter:et.onHover,role:"option",id:`listItem-${K.id}`},K.icon&&(0,en.az)(eE.Z,{className:"adyen-checkout__dropdown__element__icon",alt:K.name,src:K.icon}),(0,en.az)("span",{className:"adyen-checkout__dropdown__element__text"},K.name),K.secondaryText&&(0,en.az)("span",{className:"adyen-checkout__dropdown__element__secondary-text"},K.secondaryText),J&&(0,en.az)(Icon_s,{type:`${e_}checkmark`,height:14,width:14}));function SelectList_s({selected:K,active:G,filteredItems:J,showList:et,...er}){let{i18n:ei}=(0,eo.m)();return(0,en.az)("ul",{className:(0,eC.Z)({"adyen-checkout__dropdown__list":!0,"adyen-checkout__dropdown__list--active":et}),id:er.selectListId,ref:er.selectListRef,role:"listbox"},J.length?J.map(J=>(0,en.az)(SelectListItem_d,{active:J.id===G.id,item:J,key:J.id,onSelect:er.onSelect,onHover:er.onHover,selected:J.id===K.id})):(0,en.az)("div",{className:"adyen-checkout__dropdown__element adyen-checkout__dropdown__element--no-options"},ei.get("select.noOptionsFound")))}let eO={arrowDown:"ArrowDown",arrowUp:"ArrowUp",enter:"Enter",escape:"Escape",space:" ",tab:"Tab"},FormFields_utils_o=K=>{let G=K.parentNode,J=window.getComputedStyle(G,null),et=parseInt(J.getPropertyValue("border-top-width")),er=K.offsetTop-G.offsetTop<G.scrollTop,en=K.offsetTop-G.offsetTop+K.clientHeight-et>G.scrollTop+G.clientHeight;(er||en)&&(G.scrollTop=K.offsetTop-G.offsetTop-G.clientHeight/2-et+K.clientHeight/2)};function Select_f({items:K=[],className:G="",classNameModifiers:J=[],filterable:et=!0,readonly:er=!1,onChange:ei=()=>{},onInput:eo,selectedValue:es,name:el,isInvalid:ec,isValid:eu,placeholder:ed,uniqueId:eh,disabled:ep,disableTextFilter:ef,clearOnSelect:em,blurOnClose:ev,onListToggle:eb,allowIdOnButton:ew=!1}){let e_=(0,ey.sO)(null),eS=(0,ey.sO)(null),eA=(0,ey.sO)(null),eE=(0,ey.sO)(null),[eT,eI]=(0,ey.eJ)(null),[eP,eR]=(0,ey.eJ)(!1),ex=(0,ey.Ye)(()=>`select-${(0,eg.Z)()}`,[]),eD=K.find(K=>K.id===es)||{},[eM,eN]=(0,ey.eJ)(),[eL,eF]=(0,ey.eJ)(eD),eB=ef?K:K.filter(K=>!eT||K.name.toLowerCase().includes(eT.toLowerCase())),eU=eh?`${eh}${ec?ek.Df:ek.fy}`:null,Q=K=>{if(!K)return;let G=document.getElementById(`listItem-${K.id}`);FormFields_utils_o(G)},W=()=>{ev&&e_.current.blur(),eR(!1)},X=()=>{eR(!0)},Y=K=>{let G=K.currentTarget.getAttribute("data-value");return eB.find(K=>K.id==G)},Z=K=>{let G;K.preventDefault(),(G=K.currentTarget instanceof HTMLElement&&"option"===K.currentTarget.getAttribute("role")?Y(K):eL.id&&eB.some(K=>K.id===eL.id)?eL:eT?eB[0]:{id:es})&&!G.disabled&&(ei({target:{value:G.id,name:el}}),em&&eN(null),W())},ee=K=>{switch(K.key){case eO.space:case eO.enter:Z(K);break;case eO.arrowDown:K.preventDefault(),(()=>{if(!eB||eB.length<1)return;let K=eB.findIndex(K=>
88K===eL)+1,G=K<eB.length?K:0,J=eB[G];Q(J),eF(J)})();break;case eO.arrowUp:K.preventDefault(),(()=>{if(!eB||eB.length<1)return;let K=eB.findIndex(K=>K===eL)-1,G=K<0?eB.length-1:K,J=eB[G];Q(J),eF(J)})()}};return(0,ey.d4)(()=>{eP?eN(null):eI(null)},[eP]),(0,ey.d4)(()=>{eP&&et&&e_.current&&e_.current.focus(),eb?.(eP)},[eP]),(0,ey.d4)(()=>{function e(K){(K.composedPath?K.composedPath().includes(eS.current):eS.current.contains(K.target))||W()}return document.addEventListener("click",e,!1),()=>{document.removeEventListener("click",e,!1)}},[eS]),(0,en.az)("div",{className:(0,eC.Z)(["adyen-checkout__dropdown",G,...J.map(K=>`adyen-checkout__dropdown--${K}`)]),ref:eS},(0,en.az)(SelectButton_d,{inputText:eM,id:eh??null,active:eL,selected:eD,filterInputRef:e_,filterable:et,isInvalid:ec,isValid:eu,onButtonKeyDown:K=>{K.key===eO.enter&&et&&eP&&eT?Z(K):K.key===eO.escape?W():![eO.arrowUp,eO.arrowDown,eO.enter].includes(K.key)&&(K.key!==eO.space||et&&eP)?(K.shiftKey&&K.key===eO.tab||K.key===eO.tab)&&W():(K.preventDefault(),eP?ee(K):X())},onFocus:X,onInput:K=>{let G=K.target.value;eN(G),eI(G),eo&&eo(G)},placeholder:ed,readonly:er,selectListId:ex,showList:eP,toggleButtonRef:eA,toggleList:K=>{K.preventDefault(),eP?(eN(eD.name),W()):(eN(null),X())},disabled:ep,ariaDescribedBy:eU,allowIdOnButton:ew}),(0,en.az)(SelectList_s,{active:eL,filteredItems:eB,onHover:K=>{K.preventDefault();let G=Y(K);eF(G)},onSelect:Z,selected:eD,selectListId:ex,selectListRef:eE,showList:eP}))}Select_f.defaultProps={className:"",classNameModifiers:[],filterable:!0,items:[],readonly:!1,onChange:()=>{}};let eR=["srcDigitalCardId"],CtPCardsList_n=({cardSelected:K,cards:G,errorMessage:J,onChangeCard:et})=>{let{i18n:er}=(0,eo.m)(),ei=(0,ew.Z)(),{status:es}=useClickToPayContext_e(),{handleChangeFor:el,data:ec}=useForm_d({schema:eR,defaultData:{srcDigitalCardId:K.srcDigitalCardId}}),eu=(0,ey.Ye)(()=>G.map(K=>({icon:K.artUri||ei()(K.scheme),name:`${isMobile_t()?"":K.title} •••• ${K.panLastFour} `,secondaryText:K.isExpired&&er.get("ctp.cards.expiredCard"),id:K.srcDigitalCardId,disabled:K.isExpired})),[G]);return(0,ey.d4)(()=>{let{srcDigitalCardId:K}=ec,J=G.find(G=>G.srcDigitalCardId===K);et(J)},[ec,et]),(0,en.az)(Field_h,{name:"clickToPayCards",errorMessage:J,readOnly:"loading"===es},(0,en.az)(Select_f,{items:eu,selectedValue:ec.srcDigitalCardId,name:"cards",filterable:!1,className:"adyen-checkout-ctp__cards-list-dropdown",readonly:"loading"===es,onChange:el("srcDigitalCardId")}))};var ex=J(86578);function P(K,G){if(!K)return null;let J=G.get(`ctp.errors.${K}`);
88return J.includes("ctp.errors")?G.get("ctp.errors.UNKNOWN_ERROR"):J}let k=({onDisplayCardComponent:K})=>{let{i18n:G}=(0,eo.m)(),J=(0,ew.Z)(),{amount:et,cards:er,checkout:ei,isCtpPrimaryPaymentMethod:es,status:el,onSubmit:ec,onSetStatus:eu,onError:eh}=useClickToPayContext_e(),[ep,eg]=(0,ey.eJ)(er.find(K=>!K.isExpired)||er[0]),[em,ev]=(0,ey.eJ)(null),eb=er.every(K=>K.isExpired),[eC,eS]=(0,ey.eJ)(!1);(0,ey.d4)(()=>{(0===er.length||eb)&&K?.()},[K,eb,er]);let ek=(0,ey.I4)(async()=>{if(ep)try{eS(!0),ev(null),eu("loading");let K=await ei(ep);ec(K)}catch(K){K instanceof SrciError_e&&(ev(K?.reason),console.warn(`CtP - Checkout: Reason: ${K?.reason} / Source: ${K?.source} / Scheme: ${K?.scheme}`)),eS(!1),eh(K instanceof ed.ZP?K:new ed.ZP("ERROR","Error during ClickToPay checkout",{cause:K}))}},[ei,ep]),eA=(0,ey.I4)(K=>{eg(K)},[]),eE=eC&&"loading"===el&&ep?.isDcfPopupEmbedded;return(0,en.az)(en.HY,null,(0,en.az)(ex.Z,{name:ef,height:"380",width:"100%",classNameModifiers:[eE?"":"hidden"]}),("loading"!==el||!eE)&&(0,en.az)(en.HY,null,(0,en.az)(CtPSection_o.Title,null,G.get("ctp.cards.title")),(0,en.az)(CtPSection_o.Text,null,G.get("ctp.cards.subtitle")),0===er.length&&(0,en.az)("div",{className:"adyen-checkout-ctp__empty-cards"},G.get("ctp.emptyProfile.message")),1===er.length&&(0,en.az)(CtPSingleCard_o,{card:er[0],errorMessage:P(em,G)}),er.length>1&&(0,en.az)(CtPCardsList_n,{cardSelected:ep,cards:er,onChangeCard:eA,errorMessage:P(em,G)}),(0,en.az)(eI.Z,{disabled:eb,amount:et,label:ep?isMobile_t()?null:G.get("payButton.with",{values:{value:(0,eP._7)(G,et),maskedData:`•••• ${ep?.panLastFour}`}}):G.get("payButton"),status:el,variant:es?"primary":"secondary",icon:0!==er.length&&J({imageFolder:"components/"})(es?`${e_}lock`:`${e_}lock_black`),onClick:ek})))},CtPLoader_c=()=>{let{i18n:K}=(0,eo.m)();return(0,en.az)(en.HY,null,(0,en.az)("div",{className:"adyen-checkout-ctp__card-animation"},(0,en.az)("div",{className:"adyen-checkout-ctp__card-animation-layer"}),(0,en.az)("div",{className:"adyen-checkout-ctp__card-animation-layer"}),(0,en.az)("div",{className:"adyen-checkout-ctp__card-animation-layer"})),(0,en.az)("div",{className:"adyen-checkout-ctp__loading-subtitle"},K.get("ctp.loading.intro")))},eD={shopperLogin:{validate:K=>!!K&&K.length>0,errorMessage:"",modes:["blur"]},default:{validate:K=>!!K&&K.length>0,errorMessage:"",modes:["blur"]}};function InputEmail_a(K){return(0,en.az)(InputBase_t,{...K,type:"email",autoCapitalize:"off"})}let u=K=>{let{i18n:G}=(0,eo.m)(),{handleChangeFor:J,data:et,triggerValidation:er,valid:ei,errors:es,isValid:el}=useForm_d({schema:["shopperLogin"],rules:eD}),ec=(0,ey.sO)({validateInput:null}),[eu,ed]=(0,ey.eJ)(!1),eh=(0,ey.I4)(()=>{ed(!0),er()},[er]);(0,ey.d4)(()=>{et.shopperLogin&&ed(!0)},[et.shopperLogin]),(0,ey.d4)(()=>{ec.current.validateInput=eh,K.onSetInputHandlers(ec.current)},[eh,K.onSetInputHandlers]);let ep=(0,ey.I4)(G=>{"Enter"===G.key&&K.onPressEnter()},[K.onPressEnter]),ef=(0,ey.I4)(K=>{"Enter"===K.key&&K.preventDefault()},[]);return(0,ey.d4)(()=>{K.onChange({data:et,valid:ei,errors:es,isValid:el})},[et,ei,es]),(0,en.az)(Field_h,{name:"shopperLogin",label:G.get("ctp.login.inputLabel"),errorMessage:eu?K.errorMessage||!!es.shopperLogin:null,classNameModifiers:["shopperLogin"]},(0,en.az)(InputEmail_a,{name:"shopperLogin",autocorrect:"off",spellcheck:!1,value:et.shopperLogin,disabled:K.disabled,onInput:J("shopperLogin","input"),onBlur:J("shopperLogin","blur"),onKeyPress:ef,onKeyUp:ep}))},CtPLogin_d=()=>{let{i18n:K}=(0,eo.m)(),{isCtpPrimaryPaymentMethod:G,setIsCtpPrimaryPaymentMethod:J,verifyIfShopperIsEnrolled:et,startIdentityValidation:er}=useClickToPayContext_e(),[ei,es]=(0,ey.eJ)(null),[el,ec]=(0,ey.eJ)(!1),[eu,ed]=(0,ey.eJ)(null),[eh,ep]=(0,ey.eJ)(!1),[ef,eg]=(0,ey.eJ)(null),em=(0,ey.I4)(K=>{eg(K)},[]),eb=(0,ey.I4)(({data:K,isValid:G})=>{es(K.shopperLogin),ec(G),K?.shopperLogin?.length>0&&J(!0)},[]),eC=(0,ey.I4)(async()=>{if(ed(null),el){ep(!0);try{let{isEnrolled:K}=await et({shopperEmail:ei});K?await er():(ed("NOT_FOUND"),ep(!1))}catch(K){K instanceof SrciError_e&&console.warn(`CtP - Login error: ${K.toString()}`),K instanceof TimeoutError_r&&console.warn(K.toString()),utils_u(K)?ed(K?.reason):console.error(K),ep(!1)}}else ef.validateInput()},[et,er,ei,el,ef]);return(0,en.az)(en.HY,null,(0,en.az)(CtPSection_o.Title,{endAdornment:(0,en.az)(CtPInfo_c,null)},K.get("ctp.login.title")),(0,en.az)(CtPSection_o.Text,null,K.get("ctp.login.subtitle")),(0,en.az)(u,{onChange:eb,onSetInputHandlers:em,disabled:eh,errorMessage:eu&&K.get(`ctp.errors.${eu}`),onPressEnter:eC}),(0,en.az)(ev.Z,{label:K.get("continue"),variant:G?"primary":"secondary",status:eh&&"loading",onClick:()=>{eC()}}))},ClickToPayComponent_c=({onDisplayCardComponent:K})=>{let{ctpState:G,onReady:J,startIdentityValidation:et,logoutShopper:ei}=useClickToPayContext_e();return(0,ey.d4)(()=>{[er.OneTimePassword,er.Login,er.Ready].includes(G)&&J()},[G,J]),(0,ey.d4)(()=>{G===er.ShopperIdentified&&async function(){try{await et()}catch(K){K instanceof SrciError_e&&console.warn(`CtP - Identity Validation error: ${K.toString()}`),await ei()}}()},[G]),G===er.NotAvailable?null:(0,en.az)(CtPSection_o,null,[er.Loading,er.ShopperIdentified].includes(G)&&(0,en.az)(CtPLoader_c,null),G===er.OneTimePassword&&(0,en.az)(CtPOneTimePassword_c,{onDisplayCardComponent:K}),G===er.Ready&&(0,en.az)(k,{onDisplayCardComponent:K}),G===er.Login&&(0,en.az)(CtPLogin_d,null))};var eM=J(60762);let ClickToPay_p=class ClickToPay_p extends ei.u{static type=eM.C.clicktopay;clickToPayService;ctpConfiguration;constructor(K,G){super(K,G),this.ctpConfiguration={shopperEmail:this.props.shopperEmail,telephoneNumber:this.props.telep
88honeNumber,merchantDisplayName:this.props.merchantDisplayName,locale:this.props.locale,onReady:this.props.onReady,onTimeout:this.props.onTimeout},this.clickToPayService=function(K,G,J){let et=create_clicktopay_service_a(K);if(!et)return null;let er=create_clicktopay_service_n(G?.shopperEmail,G?.telephoneNumber),en=Object.keys(et),ei=new SrcSdkLoader_i(en,{dpaLocale:G?.locale,dpaPresentationName:G?.merchantDisplayName});return new m(et,ei,J,er,G?.onTimeout)}(this.props.configuration,this.ctpConfiguration,this.props.environment),this.clickToPayService?.initialize().catch(K=>{this.handleError(new ed.ZP("ERROR",K.toString(),{cause:K}))}),this.clickToPayService||console.warn("ClickToPay not initialized - Likely the payment method is not configured or its configuration is missing")}get isValid(){return!0}get browserInfo(){return(0,es.Z)()}formatData(){let{srcScheme:K,srcCorrelationId:G,srcTokenReference:J,srcCheckoutPayload:et,srcDigitalCardId:er}=this.state.data;return{paymentMethod:{type:ClickToPay_p.type,...K&&{srcScheme:K},...G&&{srcCorrelationId:G},...J&&{srcTokenReference:J},...et&&{srcCheckoutPayload:et},...er&&{srcDigitalCardId:er}},browserInfo:this.browserInfo,origin:window?.location?.origin}}formatProps(K){return{...K,disableOtpAutoFocus:K.disableOtpAutoFocus||!1,shopperEmail:K.shopperEmail||this.core.options?.session?.shopperEmail,telephoneNumber:K.telephoneNumber||this.core.options?.session?.telephoneNumber,locale:K.locale||K.i18n?.locale?.replace("-","_")}}async isAvailable(){return this.clickToPayService?this.clickToPayService.shopperAccountFound?Promise.resolve():new Promise((K,G)=>{this.clickToPayService.subscribeOnStateChange(J=>{this.clickToPayService.shopperAccountFound&&K(),J!==er.NotAvailable&&J!==er.Login&&J!==er.Idle||G()})}):Promise.reject()}handleClickToPaySubmit=K=>{this.setState({data:{...K},valid:{},errors:{},isValid:!0}),this.submit()};render(){return(0,en.az)(eo.k,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},(0,en.az)(ClickToPayProvider_r,{isStandaloneComponent:!0,configuration:this.ctpConfiguration,amount:this.props.amount,clickToPayService:this.clickToPayService,setClickToPayRef:this.setComponentRef,onSetStatus:this.setElementStatus,onSubmit:this.handleClickToPaySubmit,onError:this.handleError},(0,en.az)(ClickToPayComponent_c,null)))}}},6598:function(K,G,J){"use strict";let et;J.d(G,{_:function(){return CustomCard_c}});var er=J(57703),en=J(46545),ei=J(38482),eo=J(93556),es=J(71841),el=J(57381);let a=K=>K?Array.prototype.slice.call(K.querySelectorAll('[data-cse*="encrypted"]')).map(K=>K.getAttribute("data-cse")):[],y=(K,G)=>(G===eo.tj?(K[eo.LC]=!1,K[eo.L0]=!1):K[G]=!1,K),n=(K,G)=>(J,et)=>{let er=!0!==G.valid[et]?1!==K||et!==eo.LC&&et!==eo.L0?et:eo.tj:null;return(er=((K,G,J)=>{let{isFieldOfType:et,fieldIsValid:er}=J.reduce((J,et)=>(J.isFieldOfType||(J.isFieldOfType=K===et,J.fieldIsValid=!G.errors[et]),J),{isFieldOfType:!1,fieldIsValid:!1}),en=K===eo.Ph?"cvcPolicy":"expiryDatePolicy",ei="cvcPolicy"===en?eo.ze:eo.wc,es="cvcPolicy"===en?eo.bE:eo.uu;return(G[en]===ei||G[en]===es)&&er&&et?null:K})(er,G,[eo.Ph,eo.tj,eo.LC,eo.L0]))&&!J.includes(er)&&J.push(er),J},f=(K,G,J)=>({rootNode:G,fieldType:K,error:(0,es.Z)(J,`errors.${K}`)||el.oc[K],type:"card"});let AbstractCSF_e=class AbstractCSF_e{callbacks;config;props;state;validateForm;handleBrandFromBinLookup;callbacksHandler;configHandler;createCardSecuredFields;createNonCardSecuredFields;createSecuredFields;destroySecuredFields;handleIOSTouchEvents;destroyTouchendListener;destroyTouchstartListener;handleBinValue;handleEncryption;handleFocus;handleIframeConfigFeedback;handleValidation;handleSFShiftTab;handleShiftTab;isConfigured;postMessageToAllIframes;processAutoComplete;processBrand;sendBrandToCardSF;sendExpiryDatePolicyToSF;setFocusOnFrame;setupSecuredField;touchendListener;touchstartListener;hasGenuineTouchEvents;encryptedAttrName;hasRedundantCVCField;isSingleBrandedCard;securityCode;constructor(K){this.props=K,this.state={},this.config={},this.callbacks={}}};var ec=J(14166);let getCardGroupTypes_s=K=>(0,ec.kJ)(K)&&K.length?K:eo._T,eu="undefined"!=typeof window&&window.console&&window.console.error&&window.console.error.bind(window.console);"undefined"!=typeof window&&window.console&&window.console.info&&window.console.info.bind(window.console);let ed="undefined"!=typeof window&&window.console&&window.console.log&&window.console.log.bind(window.console),eh="undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.bind(window.console);function handleConfig_e(K){this.config.cardGroupTypes=getCardGroupTypes_s(K.cardGroupTypes);let G=K.loadingContext;if(!G)return void eh("WARNING Config :: no loadingContext has been specified!");this.config.loadingContext="/"===G.charAt(G.length-1)?G:`${G}/`,this.config.isCreditCardType=!1===eo.Tk.includes(K.type),this.config.iframeUIConfig=K.iframeUIConfig??{},this.config.autoFocus=!(!1===K.autoFocus||"false"===K.autoFocus),this.config.showWarnings=!0===K.showWarnings||"true"===K.showWarnings,this.config.trimTrailingSeparator=!(!1===K.trimTrailingSeparator||"false"===K.trimTrailingSeparator),this.config.keypadFix=!(!1===K.keypadFix||"false"===K.keypadFix),this.config.legacyInputMode=K.legacyInputMode||null,this.config.minimumExpiryDate=K.minimumExpiryDate||null,this.config.sfLogAtStart=!0===window._b$dl;let J=this.config.isCreditCardType?"card":K.type;
88J.indexOf("sepa")>-1&&(J="iban");let et=btoa(window.location.origin),er=`${J}${K.forceCompat||"function"!=typeof window.TextEncoder?"Compat":""}`;this.config.iframeSrc=`${this.config.loadingContext}securedfields/${K.clientKey}/${eo.Q8}/securedFields.html?type=${er}&d=${et}`}let configureCallbacks_o=()=>{};function configureCallbacks_n(K={}){this.callbacks.onLoad=K.onLoad?K.onLoad:configureCallbacks_o,this.callbacks.onConfigSuccess=K.onConfigSuccess?K.onConfigSuccess:configureCallbacks_o,this.callbacks.onFieldValid=K.onFieldValid?K.onFieldValid:configureCallbacks_o,this.callbacks.onAllValid=K.onAllValid?K.onAllValid:configureCallbacks_o,this.callbacks.onBrand=K.onBrand?K.onBrand:configureCallbacks_o,this.callbacks.onError=K.onError?K.onError:configureCallbacks_o,this.callbacks.onFocus=K.onFocus?K.onFocus:configureCallbacks_o,this.callbacks.onBinValue=K.onBinValue?K.onBinValue:configureCallbacks_o,this.callbacks.onAutoComplete=K.onAutoComplete?K.onAutoComplete:configureCallbacks_o,this.callbacks.onAdditionalSFConfig=K.onAdditionalSFConfig?K.onAdditionalSFConfig:configureCallbacks_o,this.callbacks.onAdditionalSFRemoved=K.onAdditionalSFRemoved?K.onAdditionalSFRemoved:configureCallbacks_o,this.callbacks.onTouchstartIOS=K.onTouchstartIOS?K.onTouchstartIOS:configureCallbacks_o,this.callbacks.onKeyPressed=K.onKeyPressed?K.onKeyPressed:configureCallbacks_o}let t=({fieldType:K,encryptedFieldName:G,uuid:J,isValid:et,txVariant:er,rootNode:en})=>({fieldType:K,encryptedFieldName:G,uid:J,valid:et,type:er,rootNode:en}),d=({fieldType:K,txVariant:G,rootNode:J})=>{let et,er,en,ei;let es=K===eo.tj,el=[],ec=["encryptedExpiryMonth","encryptedExpiryYear"],eu=es?2
88:1;for(et=0;et<eu;et+=1){en=es?ec[et]:K,er=`${G}-encrypted-${en}`,ei=es?en:K;let eo=t({fieldType:K,encryptedFieldName:ei,uuid:er,isValid:!1,txVariant:G,rootNode:J});el.push(eo)}return el},callbackUtils_r=({fieldType:K,txVariant:G,rootNode:J,encryptedObjArr:et})=>{let er,en,ei,eo,es;let el=[];for(er=0;er<et.length;er+=1){eo=(ei=et[er]).encryptedFieldName,en=`${G}-encrypted-${eo}`,es=ei.blob;let ec=t({fieldType:K,encryptedFieldName:eo,uuid:en,isValid:!0,txVariant:G,rootNode:J});ec.blob=es,el.push(ec)}return el};var ep=J(55069);let processErrors_e=(K,G,J,et,er)=>{if(!(0,ep.n)(K,"error"))return null;let en={rootNode:et,fieldType:K.fieldType,error:null,type:null},ei=""!==K.error;return ei||G.hasError?(en.error=ei?K.error:"",en.type=J,G.hasError=ei,G.errorType=en.error,er(en),en):null};function c(K){let G;let J=K.fieldType;if("card"===this.state.type&&(0,ep.n)(K,"cvcPolicy")&&(0,ec.hJ)(K.cvcPolicy)&&(0,ep.n)(this.state.securedFields,eo.Ph)&&(this.state.securedFields[eo.Ph].cvcPolicy=K.cvcPolicy),processErrors_e(K,this.state.securedFields[J],this.state.type,this.props.rootNode,this.callbacks.onError),this.state.securedFields[J].isEncrypted){G=d({fieldType:J,txVariant:this.state.type,rootNode:this.props.rootNode}),J===eo.o1&&(G[0].endDigits="");for(let K=0,J=G.length;K<J;K+=1)this.callbacks.onFieldValid(G[K]);this.state.securedFields[J].isEncrypted=!1}this.validateForm(),(0,ep.n)(K,"brand")&&this.processBrand(K)}let postMessageToIframe_s=(K,G,J)=>{if(G){let et=JSON.stringify(K);G.postMessage(et,J)}};function getIframeContentWin_e(K,G){return K.securedFields[G]?.iframeContentWindow||null}function handleEncryption_d(K){let G,J;let et=K.fieldType;this.config.autoFocus&&("year"!==K.type&&et!==eo.L0||this.setFocusOnFrame(eo.Ph),et===eo.LC&&this.setFocusOnFrame(eo.L0));let er=K[et];this.state.securedFields[et].isEncrypted=!0,processErrors_e({error:"",fieldType:et},this.state.securedFields[et],this.state.type,this.props.rootNode,this.callbacks.onError);let en=callbackUtils_r({fieldType:et,txVariant:this.state.type,rootNode:this.props.rootNode,encryptedObjArr:er});if(et===eo.LC&&(0,ep.n)(this.state.securedFields,eo.L0)){let G={txVariant:this.state.type,code:K.code,blob:er[0].blob,fieldType:eo.L0,numKey:this.state.securedFields[eo.L0].numKey};postMessageToIframe_s(G,getIframeContentWin_e(this.state,eo.L0),this.config.loadingContext)}for(et===eo.o1&&(0,ec.yb)(K.endDigits)&&(en[0].endDigits=K.endDigits),et===eo.o1&&(0,ec.yb)(K.issuerBin)&&(en[0].issuerBin=+K.issuerBin),et===eo.tj&&(0,ec.yb)(K.expiryDate)&&(en[1].expiryDate=K.expiryDate),G=0,J=en.length;G<J;G+=1)this.callbacks.onFieldValid(en[G]);this.validateForm()}let dom_e=(K,G)=>{let J=[];return K&&"function"==typeof K.querySelectorAll&&(J=[].slice.call(K.querySelectorAll(G))),J},dom_r=(K,G)=>{if(K)return K.querySelector(G)},dom_t=(K,G)=>{if(K)return K.getAttribute(G)},l=K=>{for(;K.firstChild;)K.removeChild(K.firstChild)},ef={__NO_BRAND:"noBrand",cards:[]};ef.cards.push({cardType:"mc",startingRules:[51,52,53,54,55,22,23,24,25,26,27],permittedLengths:[16],pattern:/^(5[1-5][0-9]{0,14}|2[2-7][0-9]{0,14})$/,securityCode:"CVC"}),ef.cards.push({cardType:"visadankort",startingRules:[4571],permittedLengths:[16],pattern:/^(4571)[0-9]{0,12}$/}),ef.cards.push({cardType:"visa",startingRules:[4],permittedLengths:[13,16,19],pattern:/^4[0-9]{0,18}$/,securityCode:"CVV"}),ef.cards.push({cardType:"amex",startingRules:[34,37],permittedLengths:[15],pattern:/^3[47][0-9]{0,13}$/,securityCode:"CID"}),ef.cards.push({cardType:"diners",startingRules:[36],permittedLengths:[14,16],pattern:/^(36)[0-9]{0,12}$/}),ef.cards.push({cardType:"maestrouk",startingRules:[6759],permittedLengths:[16,18,19],pattern:/^(6759)[0-9]{0,15}$/}),ef.cards.push({cardType:"solo",startingRules:[6767],permittedLengths:[16,18,19],pattern:/^(6767)[0-9]{0,15}$/}),ef.cards.push({cardType:"laser",startingRules:[6304,6706,677117,677120],permittedLengths:[16,17,18,19],pattern:/^(6304|6706|6709|6771)[0-9]{0,15}$/,cvcPolicy:"optional"}),ef.cards.push({cardType:"discover",startingRules:[6011,644,645,646,647,648,649,65],permittedLengths:[16,17,18,19],pattern:/^(6011[0-9]{0,12}|(644|645|646|647|648|649)[0-9]{0,13}|65[0-9]{0,14})$/}),ef.cards.push({cardType:"jcb",startingRules:[3528,3529,353,354,355,356,357,358],permittedLengths:[16,19],pattern:/^(352[8,9]{1}[0-9]{0,15}|35[4-8]{1}[0-9]{0,16})$/,securityCode:"CAV"}),ef.cards.push({cardType:"bcmc",startingRules:[6703,479658,606005],permittedLengths:[16,17,18,19],pattern:/^((6703)[0-9]{0,15}
88|(479658|606005)[0-9]{0,13})$/,cvcPolicy:"hidden"}),ef.cards.push({cardType:"bijcard",startingRules:[5100081],permittedLengths:[16],pattern:/^(5100081)[0-9]{0,9}$/}),ef.cards.push({cardType:"dankort",startingRules:[5019],permittedLengths:[16],pattern:/^(5019)[0-9]{0,12}$/}),ef.cards.push({cardType:"hipercard",startingRules:[606282],permittedLengths:[16],pattern:/^(606282)[0-9]{0,10}$/}),ef.cards.push({cardType:"cup",startingRules:[62,81],permittedLengths:[14,15,16,17,18,19],pattern:/^(62|81)[0-9]{0,17}$/}),ef.cards.push({cardType:"maestro",startingRules:[50,56,57,58,6],permittedLengths:[16,17,18,19],pattern:/^(5[0|6-8][0-9]{0,17}|6[0-9]{0,18})$/,cvcPolicy:"optional"}),ef.cards.push({cardType:"elo",startingRules:[506699,50670,50671,50672,50673,50674,50675,50676,506770,506771,506772,506773,506774,506775,506776,506777,506778,401178,438935,451416,457631,457632,504175,627780,636297,636368],permittedLengths:[16],pattern:/^((((506699)|(506770)|(506771)|(506772)|(506773)|(506774)|(506775)|(506776)|(506777)|(506778)|(401178)|(438935)|(451416)|(457631)|(457632)|(504175)|(627780)|(636368)|(636297))[0-9]{0,10})|((50676)|(50675)|(50674)|(50673)|(50672)|(50671)|(50670))[0-9]{0,11})$/}),ef.cards.push({cardType:"uatp",startingRules:[1],permittedLengths:[15],pattern:/^1[0-9]{0,14}$/,cvcPolicy:"optional"}),ef.cards.push({cardType:"cartebancaire",startingRules:[4,5,6],permittedLengths:[16],pattern:/^[4-6][0-9]{0,15}$/}),ef.cards.push({cardType:"visaalphabankbonus",startingRules:[450903],permittedLengths:[16],pattern:/^(450903)[0-9]{0,10}$/}),ef.cards.push({cardType:"mcalphabankbonus",startingRules:[510099],permittedLengths:[16],pattern:/^(510099)[0-9]{0,10}$/}),ef.cards.push({cardType:"hiper",startingRules:[637095,637568,637599,637609,637612],permittedLengths:[16],pattern:/^(637095|637568|637599|637609|637612)[0-9]{0,10}$/}),ef.cards.push({cardType:"oasis",startingRules:[982616],permittedLengths:[16],pattern:/^(982616)[0-9]{0,10}$/,cvcPolicy:"optional"}),ef.cards.push({cardType:"karenmillen",startingRules:[98261465],permittedLengths:[16],pattern:/^(98261465)[0-9]{0,8}$/,cvcPolicy:"optional"}),ef.cards.push({cardType:"warehouse",startingRules:[982633],permittedLengths:[16],pattern:/^(982633)[0-9]{0,10}$/,cvcPolicy:"optional"}),ef.cards.push({cardType:"mir",startingRules:[220],permittedLengths:[16,17,18,19],pattern:/^(220)[0-9]{0,16}$/}),ef.cards.push({cardType:"codensa",startingRules:[590712],permittedLengths:[16],pattern:/^(590712)[0-9]{0,10}$/}),ef.cards.push({cardType:"naranja",startingRules:[377798,377799,402917,402918,527571,527572,589562],permittedLengths:[16,17,18,19],pattern:/^(37|40|5[28])([279])\d*$/}),ef.cards.push({cardType:"cabal",startingRules:[589657,600691,603522,6042,6043,636908],permittedLengths:[16,17,18,19],pattern:/^(58|6[03])([03469])\d*$/}),ef.cards.push({cardType:"shopping",startingRules:[2799,589407,603488],permittedLengths:[16,17,18,19],pattern:/^(27|58|60)([39])\d*$/}),ef.cards.push({cardType:"argencard",startingRules:[501],permittedLengths:[16,17,18,19],pattern:/^(50)(1)\d*$/}),ef.cards.push({cardType:"troy",startingRules:[9792],permittedLengths:[16],pattern:/^(97)(9)\d*$/}),ef.cards.push({cardType:"forbrugsforeningen",startingRules:[600722],permittedLengths:[16],pattern:/^(60)(0)\d*$/}),ef.cards.push({cardType:"vpay",startingRules:[401,408,413,434,435,437,439,441,442,443,444,446,447,455,458,460,461,463,466,471,479,482,483,487],permittedLengths:[13,14,15,16,17,18,19],pattern:/^(40[1,8]|413|43[4,5]|44[1,2,3,4,6,7]|45[5,8]|46[0,1,3,6]|47[1,9]|48[2,3,7])[0-9]{0,16}$/}),ef.cards.push({cardType:"rupay",startingRules:[508528],permittedLengths:[16],pattern:/^(100003|508(2|[5-9])|60(69|[7-8])|652(1[5-9]|[2-5][0-9]|8[5-9])|65300[3-4]|8172([0-1]|[3-5]|7|9)|817(3[3-8]|40[6-9]|410)|35380([0-2]|[5-6]|9))[0-9]{0,12}$/}),ef.cards.push({cardType:"ticket",expiryDatePolicy:"hidden"});var eg={detectCard:(K,G)=>{let J,et,er;if(G&&(J=ef.cards.filter(K=>G.includes(K.cardType)).filter(G=>(0,ep.n)(G,"pattern")&&K.match(G.pattern))).length){if(1===J.length)return J[0];for(et=0,er=J.length;et<er;et+=1)if(!J[et].longestRule){let K=J[et].startingRules.reduce((K,G)=>K>G?K:G);J[et].longestRule=String(K).length}return J.reduce((K,G)=>K.longestRule>=G.longestRule?K:G)}return{cardType:ef.__NO_BRAND}},detectCardLength:(K,G)=>
88{let J,et,er=0,en=!1,ei=G,eo=K.cardType!==ef.__NO_BRAND?K.permittedLengths[K.permittedLengths.length-1]:0;if(eo&&ei>eo&&(er=ei.length-eo)>0&&(et=ei=ei.substring(0,ei.length-er)),K.permittedLengths.forEach(K=>{ei.length===K&&(en=!0)}),ei.length===eo){let G=Math.floor(ei.length/4);J=eo+(ei.length%4>0?G:G-1),"amex"===K.cardType.toLowerCase()&&(J=eo+2)}return{shortenedNewValue:et,maxLength:J,reachedValidLength:en}},getShortestPermittedCardLength:()=>{if(!et){let K=[];ef.cards.forEach(G=>{K=K.concat(G.permittedLengths??[])}),et=Math.min.apply(null,K)}return et},getCardByBrand:K=>ef.cards.filter(G=>G.cardType===K)[0],isGenericCardType:K=>{if(!K)throw Error("Error: isGenericCardType: type param has not been specified");return"card"===K||"scheme"===K},__NO_BRAND:ef.__NO_BRAND,allCards:ef.cards},em=J(13320);let postMessageValidation_e=(K,G,J)=>{let et=K.origin,er=G.indexOf("/checkoutshopper/"),en=er>-1?G.substring(0,er):G,ei=en.length-1;return"/"===en.charAt(ei)&&(en=en.substring(0,ei)),et===en||(J&&eh("WARNING postMessageValidation: postMessage listener for iframe::origin mismatch!\n Received message with origin:",et,"but the only allowed origin for messages to CSF is",en,"### event.data=",K.data),!1)},postMessageValidation_a=K=>K.data&&K.data.type&&"string"==typeof K.data.type&&K.data.type.indexOf("webpack")>-1,postMessageValidation_i=K=>K.data&&"string"==typeof K.data&&K.data.indexOf("cvox")>-1;function commonUtils_e(...K){let G=K.shift();return function(...J){return G.apply(this,K.concat(J))}}let AbstractSecuredField_a=class AbstractSecuredField_a{sfConfig;loadingContext;holderEl;iframeRef;loadToConfigTimeout;_isValid;_iframeContentWindow;_numKey;_isEncrypted;_hasError;_errorType;_cvcPolicy;_expiryDatePolicy;_iframeOnLoadListener;_postMessageListener;onIframeLoadedCallback;onConfigCallback;onEncryptionCallback;onValidationCallback;onFocusCallback;onBinValueCallback;onTouchstartCallback;onShiftTabCallback;onAutoCompleteCallback;onKeyPressedCallback;constructor(){this.sfConfig={}}};let utils_d=(K,G)=>Object.values(el.pv).reduce((J,et)=>(et.includes(G)&&(J[et]=K.get(et)),J),{}),p=(K,G,J)=>{let et={...K},er=g(J);return et.error=utils_d(G,er),et},b=(K,G)=>{let J=K;for(let[et,er]of Object.entries(G))if(er===K){J=et;break}return J?.toLowerCase().replace(/[_.\s]/g,"-")},g=K=>{let G;switch(K){case eo.o1:G=el.Ty.CC_NUM;break;case eo.tj:G=el.Ty.CC_DAT;break;case eo.LC:G=el.Ty.CC_MTH;break;case eo.L0:G=el.Ty.CC_YR;break;case eo.Ph:G=el.Ty.CC_CVC;break;case eo.gb:G=el.Ty.KCP_PWD;break;case eo.Rl:G=el.Ty.ACH_NUM;break;case eo.y5:G=el.Ty.ACH_LOC}return G};var addContextTranslations_r=(K,G,J,et)=>{let er={...K},en={};switch(J){case"ach":case eo.cx:break;default:if(et===eo.Ph)en[eo.IW]=G.get("creditCard.securityCode.contextualText.3digits"),en[eo.iB]=G.get("creditCard.securityCode.contextualText.4digits");else{let K=`creditCard.${eo.BD[et]}.contextualText`,J=G.get(K);J!==K&&(en[et]=J)}}return Object.keys(en).length&&(er.contextualTexts=en),er};let P=class P extends AbstractSecuredField_a{constructor(K,G){super();let J=(0,ec.d1)(["loadingContext","holderEl","iframeSrc","showContextualElement","placeholders"]).from(K);this.sfConfig={...J,iframeUIConfig:{...J.iframeUIConfig}};let{iframeSrc:et,placeholders:er,showContextualElement:en}=K;return this.loadingContext=K.loadingContext,this.holderEl=K.holderEl,this.isValid=!1,this.iframeC
88ontentWindow=null,this.numKey=function(){if(!window.crypto)return 4294967296*Math.random()|0;let K=new Uint32Array(1);return window.crypto.getRandomValues(K),K[0]}(),this.isEncrypted=!1,this.hasError=!1,this.errorType="",this.cvcPolicy=K.cvcPolicy,this.expiryDatePolicy=K.expiryDatePolicy,this.init(G,et,er,en)}init(K,G,J,et){let er=function(K,G,J,et){let er=["ach","giftcard"].includes(K)?K:"creditCard",en=J.get(`${er}.${G}.aria.iframeTitle`),ei=J.get(`${er}.${eo.BD[G]}.label`),es=J.locale,el=p({iframeTitle:en,label:ei},J,G);return et&&(el=addContextTranslations_r(el,J,K,G)),{...es&&{lang:es},[G]:el}}(this.sfConfig.txVariant,this.sfConfig.fieldType,K,et);this.sfConfig.iframeUIConfig.ariaConfig=er,this.sfConfig.iframeUIConfig.placeholders=function(K,G,J){switch(K){case"ach":case eo.cx:return{[G]:J[eo.BD[G]]??""};default:return G===eo.Ph?{[eo.IW]:J.securityCodeThreeDigits??"",[eo.iB]:J.securityCodeFourDigits??""}:{[G]:J[eo.BD[G]]??""}}}(this.sfConfig.txVariant,this.sfConfig.fieldType,J);let en={src:G,title:er[this.sfConfig.fieldType].iframeTitle,policy:"origin"},ei=function({src:K,title:G="iframe element",policy:J="origin"}){let et=document.createElement("iframe");et.setAttribute("src",K),et.classList.add("js-iframe"),""===G||0===G.trim().length||"none"===G?et.setAttribute("role","presentation"):et.setAttribute("title",G),et.setAttribute("allowtransparency","true"),et.setAttribute("referrerpolicy",J);let er=document.createTextNode("<p>Your browser does not support iframes.</p>");return et.appendChild(er),et}(en);this.holderEl.appendChild(ei);let es=dom_r(this.holderEl,".js-iframe");return es&&(this.iframeContentWindow=es.contentWindow,this.iframeOnLoadListener=this.iframeOnLoadListenerFn,(0,em.on)(es,"load",this.iframeOnLoadListener,!1)),this.iframeRef=es,this}iframeOnLoadListenerFn(){this.postMessageListener=this.postMessageListenerFn,(0,em.on)(window,"message",this.postMessageListener,!1);let K={...this.sfConfig,numKey:this.numKey};window._b$dl&&console.log("### SecuredField:::: onIframeLoaded:: created configObj=",K),postMessageToIframe_s(K,this.iframeC
88ontentWindow,this.loadingContext),this.onIframeLoadedCallback()}postMessageListenerFn(K){let G;if(postMessageValidation_e(K,this.loadingContext,this.sfConfig.showWarnings)){try{G=JSON.parse(K.data)}catch(G){return postMessageValidation_a(K)?void(this.sfConfig.showWarnings&&ed("### SecuredField::postMessageListenerFn:: PARSE FAIL - WEBPACK")):postMessageValidation_i(K)?void(this.sfConfig.showWarnings&&ed("### SecuredField::postMessageListenerFn:: PARSE FAIL - CHROMEVOX")):void(this.sfConfig.showWarnings&&ed("### SecuredField::postMessageListenerFn:: PARSE FAIL - UNKNOWN REASON: event.data=",K.data))}if((0,ep.n)(G,"action")&&(0,ep.n)(G,"numKey")){if(this.numKey===G.numKey)switch(G.action){case"encryption":this.isValid=!0,this.onEncryptionCallback(G);break;case"config":window._b$dl&&console.log("### SecuredField::postMessageListenerFn:: configured - calling onConfigCallback",G.fieldType),this.onConfigCallback(G);break;case"focus":this.onFocusCallback(G);break;case"binValue":this.onBinValueCallback(G);break;case"touch":this.onTouchstartCallback(G);break;case"shifttab":this.onShiftTabCallback(G);break;case"autoComplete":this.onAutoCompleteCallback(G);break;case"enterKeyPressed":this.onKeyPressedCallback(G);break;default:this.isValid=!1,this.onValidationCallback(G)}else this.sfConfig.showWarnings&&eh("WARNING SecuredField :: postMessage listener for iframe :: data mismatch! (Probably a message from an unrelated securedField)")}else this.sfConfig.showWarnings&&eh("WARNING SecuredField :: postMessage listener for iframe :: data mismatch!")}}destroy(){(0,em.S)(window,"message",this.postMessageListener,!1),(0,em.S)(this.iframeRef,"load",this.iframeOnLoadListener,!1),this.iframeC
88ontentWindow=null,l(this.holderEl)}isOptionalOrHidden(){if(this.sfConfig.fieldType===eo.tj||this.sfConfig.fieldType===eo.LC||this.sfConfig.fieldType===eo.L0)switch(this.expiryDatePolicy){case eo.uu:return!0;case eo.wc:return!this.hasError;default:return!1}if(this.sfConfig.fieldType===eo.Ph)switch(this.cvcPolicy){case eo.bE:return!0;case eo.ze:return!this.hasError}return!1}onIframeLoaded(K){return this.onIframeLoadedCallback=K,this}onEncryption(K){return this.onEncryptionCallback=K,this}onValidation(K){return this.onValidationCallback=K,this}onConfig(K){return this.onConfigCallback=K,this}onFocus(K){return this.onFocusCallback=K,this}onBinValue(K){return this.onBinValueCallback=K,this}onTouchstart(K){return this.onTouchstartCallback=K,this}onShiftTab(K){return this.onShiftTabCallback=K,this}onAutoComplete(K){return this.onAutoCompleteCallback=K,this}onKeyPressed(K){return this.onKeyPressedCallback=K,this}get errorType(){return this._errorType}set errorType(K){this._errorType=K}get hasError(){return this._hasError}set hasError(K){this._hasError=K}get isValid(){if(this.sfConfig.fieldType===eo.Ph)switch(this.cvcPolicy){case eo.bE:return!0;case eo.ze:return!this.hasError;default:return this._isValid}if(this.sfConfig.fieldType===eo.tj||this.sfConfig.fieldType===eo.LC||this.sfConfig.fieldType===eo.L0)switch(this.expiryDatePolicy){case eo.uu:return!0;case eo.wc:return!this.hasError}return this._isValid}set isValid(K){this._isValid=K}get cvcPolicy(){return this._cvcPolicy}set cvcPolicy(K){this.sfConfig.fieldType===eo.Ph&&K!==this.cvcPolicy&&(this._cvcPolicy=K,this.hasError&&"isValidated"===this.errorType&&(this.hasError=!1))}get expiryDatePolicy(){return this._expiryDatePolicy}set expiryDatePolicy(K){this.sfConfig.fieldType!==eo.tj&&this.sfConfig.fieldType!==eo.LC&&this.sfConfig.fieldType!==eo.L0||K!==this.expiryDatePolicy&&(this._expiryDatePolicy=K,this.hasError&&"isValidated"===this.errorType&&(this.hasError=!1))}get iframeContentWindow(){return this._iframeContentWindow}set iframeContentWindow(K){this._iframeContentWindow=K}get isEncrypted(){return this._isEncrypted}set isEncrypted(K){this._isEncrypted=K}
88get numKey(){return this._numKey}set numKey(K){this._numKey=K}get iframeOnLoadListener(){return this._iframeOnLoadListener}set iframeOnLoadListener(K){this._iframeOnLoadListener=K.bind(this)}get postMessageListener(){return this._postMessageListener}set postMessageListener(K){this._postMessageListener=K.bind(this)}};var ey=J(11134);function createSecuredFields_f(){this.encryptedAttrName=eo.Os;let K=dom_e(this.props.rootNode,`[${this.encryptedAttrName}]`).filter(K=>{let G=dom_t(K,this.encryptedAttrName),J=eo.Eg.includes(G);return J||console.warn(`WARNING: '${G}' is not a valid type for the '${this.encryptedAttrName}' attribute. A SecuredField will not be created for this element.`),J}),G=eo.X1,J=eo.xR;return this.config.isCreditCardType?(this.isSingleBrandedCard=!1,this.securityCode="",this.createCardSecuredFields(K,G,J)):this.createNonCardSecuredFields(K),K.length}async function m(K){for(let G=0;G<K.length;G++){let J=K[G];await this.setupSecuredField(J).catch(K=>{window._b$dl&&console.log("Secured fields setup failure. e=",K)})}}async function createSecuredFields_y(K,G,J){let et=this.state.type;if("card"===et&&1===this.config.cardGroupTypes.length&&(et=this.config.cardGroupTypes[0],this.state.type=et),this.isSingleBrandedCard="card"!==et,this.isSingleBrandedCard){let K=eg.getCardByBrand(et);(0,ec.hJ)(K)?(G=K.cvcPolicy||eo.X1,J=K.expiryDatePolicy||eo.xR,this.securityCode=K.securityCode):this.state.type="unrecognised-single-brand"}for(let et=0;et<K.length;et++){let er=K[et];window._b$dl&&console.log("\nAbout to set up securedField:",er),await this.setupSecuredField(er,G,J).catch(K=>{window._b$dl&&console.log("Secured fields setup failure. e=",K)}),window._b$dl&&console.log("Finished setting up securedField:",er)}if(window._b$dl&&console.log("Finished setting up all securedFields"),this.isSingleBrandedCard){let K={type:this.state.type,rootNode:this.props.rootNode,brand:et,cvcPolicy:G,expiryDatePolicy:J,cvcText:this.securityCode};setTimeout(()=>{this.callbacks.onBrand(K)},0)}}function createSecuredFields_g(K,G,J){return new Promise((et,er)=>{let en=dom_t(K,this.encryptedAttrName);en===eo.L0&&(this.state.hasSeparateDateFields=!0);let ei={fieldType:en,extraFieldData:dom_t(K,eo.j1),uid:dom_t(K,eo.f9),cvcPolicy:G,holderEl:K,expiryDatePolicy:J,txVariant:this.state.type,cardGroupTypes:this.config.cardGroupTypes,iframeUIConfig:this.config.iframeUIConfig,sfLogAtStart:this.config.sfLogAtStart,trimTrailingSeparator:this.config.trimTrailingSeparator,isCreditCardType:this.config.isCreditCardType,iframeSrc:this.config.iframeSrc,loadingContext:this.config.loadingContext,showWarnings:this.config.showWarnings,legacyInputMode:this.config.legacyInputMode,minimumExpiryDate:this.config.minimumExpiryDate,maskSecurityCode:this.props.maskSecurityCode,exposeExpiryDate:this.props.exposeExpiryDate,disableIOSArrowKeys:this.props.shouldDisableIOSArrowKeys,implementationType:this.props.implementationType,showContextualElement:this.props.showContextualElement,placeholders:this.props.placeholders},es=new P(ei,this.props.i18n).onIframeLoaded(()=>{if(this.state.iframeCount+=1,window._b$dl&&console.log("### createSecuredFields::onIframeLoaded:: this.state.iframeCount=",this.state.iframeCount),this.state.iframeCount>this.state.numIframes)throw this.destroySecuredFields(),new ey.ZP("ERROR",`One or more securedFields has just loaded new content. This should never happen. securedFields have been removed.
89                        iframe load count=${this.state.iframeCount}. Expected count:${this.state.numIframes}`);es.loadToConfigTimeout=setTimeout(()=>{er({type:ei.fieldType,failReason:"sf took too long to config"})},eo.YV),this.state.iframeCount===this.state.originalNumIframes&&this.callbacks.onLoad({iframesLoaded:!0})}).onConfig(K=>{this.handleIframeConfigFeedback(K),clearTimeout(es.loadToConfigTimeout),es.loadToConfigTimeout=null,et(K)}).onFocus(K=>{this.handleFocus(K)}).onBinValue(K=>{this.handleBinValue(K)}).onTouchstart(K=>{this.props.shouldDisableIOSArrowKeys&&(this.hasGenuineTouchEvents||K.hasGenuineTouchEvents)&&this.callbacks.onTouchstartIOS({fieldType:K.fieldType}),(K.hasGenuineTouchEvents||this.hasGenuineTouchEvents)&&this.postMessageToAllIframes({f
89ieldType:K.fieldType,fieldClick:!0})}).onShiftTab(K=>{this.handleSFShiftTab(K.fieldType)}).onEncryption(K=>{this.handleEncryption(K)}).onValidation(K=>{this.handleValidation(K)}).onAutoComplete(K=>{this.processAutoComplete(K)}).onKeyPressed(K=>{let{numKey:G,...J}=K;this.callbacks.onKeyPressed(J)});this.state.securedFields[en]=es})}var ev={__IS_ANDROID:"undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),__IS_IE:"undefined"!=typeof navigator&&function(){let K=navigator.userAgent,G=K.indexOf("MSIE ");if(G>0)return parseInt(K.substring(G+5,K.indexOf(".",G)),10);if(K.indexOf("Trident/")>0){let G=K.indexOf("rv:");return parseInt(K.substring(G+3,K.indexOf(".",G)),10)}let J=K.indexOf("Edge/");return J>0&&parseInt(K.substring(J+5,K.indexOf(".",J)),10)}(),__IS_IOS:"undefined"!=typeof navigator&&/iphone|ipod|ipad/i.test(navigator.userAgent),__IS_FIREFOX:"undefined"!=typeof navigator&&/(firefox)/i.test(navigator.userAgent),__IS_SAFARI:"undefined"!=typeof navigator&&/(safari)/i.test(navigator.userAgent)&&!/(chrome)/i.test(navigator.userAgent)},eb={touchendListener:function(K){let G=K.target;if(G instanceof HTMLInputElement||HTMLTextAreaElement&&G instanceof HTMLTextAreaElement){let K=G.value,J="selectionStart"in G?G.selectionStart:0,et=!1;J===K.length&&(J-=1,et=!0),G.value=K;try{G.setSelectionRange&&(G.focus(),G.setSelectionRange(J,J),et&&(J+=1,setTimeout(()=>{G.setSelectionRange(J,J)},0)))}catch(K){}}else if(this.config.keypadFix){let K=this.props.rootNode,G=document.createElement("input");G.style.width="1px",G.style.height="1px",G.style.opacity="0",G.style.fontSize="18px",K.appendChild(G),G.focus(),K.removeChild(G)}this.destroyTouchendListener(),this.state.registerFieldForIos=!1,this.postMessageToAllIframes({fieldType:"webInternalElement",fieldClick:!0})},touchstartListener:function(K){this.hasGenuineTouchEvents=!0;let G=K.target;if(G instanceof HTMLInputElement||G instanceof HTMLSpanElement){this.postMessageToAllIframes({fieldType:"webInternalElement",checkoutTouchEvent:!0});let K=G.getAttribute("name")??G.getAttribute("data-id");this.callbacks.onTouchstartIOS?.({fieldType:"webInternalElement",name:K})}},handleTouchend:function(){let K=dom_r(document,"body");K.style.cursor="pointer",(0,em.on)(K,"touchend",this.touchendListener),this.state.registerFieldForIos=!0},destroyTouchendListener:function(){if(!ev.__IS_IOS)return!1;let K=dom_r(document,"body");return K.style.cursor="auto",(0,em.S)(K,"touchend",this.touchendListener),!0},destroyTouchstartListener:function(){return!!ev.__IS_IOS&&((0,em.S)(document,"touchstart",this.touchstartListener),!0)}};let utils_n=(K,G,J)=>((K,G=!0)=>{let J=Array.prototype.slice.call(dom_e(document,"*[data-cse], a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), object, embed, *[tabindex], *[contenteditable]")),et=[];J.forEach(K=>{let G=K.getAttribute("tabindex"),J=!G||parseInt(G,10)>=0,er=K.getBoundingClientRect(),en=er.width>0&&er.height>0;J&&en&&et.push(K)});let er=((K,G)=>{for(let J=0;J<K.length;J+=1)if(G(K[J]))return J;return -1})(et,G=>G===K||K.contains(G));return et[er+(G?-1:1)]})(dom_r(G,`[data-cse=${K}]`),J),utils_o=K=>{K&&(K.focus(),K.blur(),K.focus())};var eC={handleShiftTab:function(K){let G,J;switch(this.state.type){case"ach":K===eo.y5&&(J=eo.Rl),G={fieldToFocus:J,additionalField:void 0};break;case"giftcard":G=function(K,G){let J,et;switch(K){case eo.o1:J=utils_n(eo.o1,G);break;case eo.Ph:et=eo.o1}return{fieldToFocus:et,additionalField:J}}(K,this.props.rootNode);break;default:G=this.state.isKCP?function(K,G,J){let et,er;switch(K){case eo.o1:et=utils_n(eo.o1,G);break;case eo.tj:case eo.LC:er=eo.o1;break;case eo.L0:er=eo.LC;break;case eo.Ph:er=J?eo.L0:eo.tj;break;case eo.gb:et=utils_n(K,G)}return{fieldToFocus:er,additionalField:et}}(K,this.props.rootNode,this.state.hasSeparateDateFields):function(K,G,J,et){let er,en;switch(K){case eo.o1:er=utils_n(eo.o1,G);break;case eo.tj:case eo.LC:en=eo.o1;break;case eo.L0:en=eo.LC;break;case eo.Ph:1===et?er=utils_n(eo.Ph,G):en=J?eo.L0:eo.tj}return{fieldToFocus:en,additionalField:er}}(K,this.props.rootNode,this.state.hasSeparateDateFields,this.state.numIframes)}let et=G.fieldToFocus,er=G.additionalField;et?this.setFocusOnFrame(et,!1):er&&utils_o(er)},handleSFShiftTab:function(K){(ev.__IS_FIREFOX||ev.__IS_IE&&ev.__IS_IE<=11)&&this.handleShiftTab(K)}};function handleBrandFromBinLookup_l(K){if((0,ep.n)(this.state.securedFields,eo.o1)){let G={txVariant:this.state.type,...K,fieldType:eo.o1,numKe
89y:this.state.securedFields[eo.o1].numKey};postMessageToIframe_s(G,getIframeContentWin_e(this.state,eo.o1),this.config.loadingContext)}}function h(K){((0,ep.n)(this.state.securedFields,eo.LC)&&(0,ep.n)(this.state.securedFields,eo.L0)?[eo.LC,eo.L0]:[eo.tj]).forEach(G=>{let J={txVariant:this.state.type,...K,fieldType:G,numKey:this.state.securedFields[G].numKey};postMessageToIframe_s(J,getIframeContentWin_e(this.state,G),this.config.loadingContext)})}function handleBrandFromBinLookup_y(K,G){let J="card"===this.state.type;if(!K||!Object.keys(K).length)return J?(this.sendBrandToCardSF({brand:"reset"}),this.sendExpiryDatePolicyToSF({expiryDatePolicy:eo.xR})):G&&this.processBrand({...G,fieldType:eo.o1}),void("card"===this.state.type&&(0,ep.n)(this.state.securedFields,eo.tj)&&(this.state.securedFields[eo.tj].expiryDatePolicy=eo.xR));let et=K.supportedBrands[0],er=et.brand,en=et.expiryDatePolicy??(!0===et.showExpiryDate?eo.xR:eo.uu),ei={brand:er,cvcPolicy:et.cvcPolicy,expiryDatePolicy:en,cvcText:"Security code",showSocialSecurityNumber:et.showSocialSecurityNumber??!1,fieldType:eo.o1};if(this.processBrand(ei),J){let G={brand:er,enableLuhnCheck:!1!==K.supportedBrands[0].enableLuhnCheck,...et?.panLength&&{panLength:et?.panLength}};this.sendBrandToCardSF(G),this.sendExpiryDatePolicyToSF({expiryDatePolicy:en})}(0,ep.n)(this.state.securedFields,eo.Ph)&&(this.state.securedFields[eo.Ph].cvcPolicy=et.cvcPolicy),(0,ep.n)(this.state.securedFields,eo.tj)?this.state.securedFields[eo.tj].expiryDatePolicy=en:(0,ep.n)(this.state.securedFields,eo.LC)&&(0,ep.n)(this.state.securedFields,eo.L0)&&(this.state.securedFields[eo.LC].expiryDatePolicy=en,this.state.securedFields[eo.L0].expiryDatePolicy=en),this.validateForm()}function setFocusOnFrame_r({csfState:K,csfConfig:G},J,et){if(!(0,ep.n)(K.securedFields,J))return;let er={txVariant:K.type,fieldType:J,focus:!0,numKey:K.securedFields[J].numKey};postMessageToIframe_s(er,getIframeContentWin_e(K,J),G.loadingContext)}function postMessageToAllIframes_s({csfState:K,csfConfig:G},J){let et=Object.keys(J||{});return!!et.length&&(Object.keys(K.securedFields).forEach(er=>{let en={txVariant:K.type,fieldType:er,numKey:K.securedFields[er].numKey};et.forEach(K=>{en[K]=J[K]}),postMessageToIframe_s(en,getIframeContentWin_e(K,er),G.loadingContext)}),!0)}function processBrand_n({csfState:K,csfConfig:G,csfProps:J,csfCallbacks:et},er){if(er.fieldType===eo.o1){let en={brand:er.brand,cvcPolicy:er.cvcPolicy,expiryDatePolicy:er.expiryDatePolicy,showSocialSecurityNumber:er.showSocialSecurityNumber},ei=!function commonUtils_n(K,G){let J=typeof K;return K&&G&&"object"===J&&J===typeof G?Object.keys(K).length===Object.keys(G).length&&Object.keys(K).every(J=>commonUtils_n(K[J],G[J])):K===G}(en,K.brand);if(!ei)return null;let es="card"===K.type||"bcmc"===K.type;if(es&&ei&&(K.brand=en,(0,ep.n)(K.securedFields,eo.Ph))){let J={txVariant:K.type,brand:en.brand,fieldType:eo.Ph,cvcPolicy:er.cvcPolicy,numKey:K.securedFields[eo.Ph].numKey};postMessageToIframe_s(J,getIframeContentWin_e(K,eo.Ph),G.loadingContext)}let el=es?(0,ec.ei)(["brand","cvcPolicy","cvcText","expiryDatePolicy","showSocialSecurityNumber"]).from(er):null;return el&&el.brand&&(el.type=K.type,el.rootNode=J.rootNode,et.onBrand(el)),!0}return!1}function processAutoComplete_r({csfState:K,csfConfig:G,csfCallbacks:J},et){if("cc-name"===et.name){let K={...et};return delete K.numKey,J.onAutoComplete(K),!0}if("cc-exp"===et.name){let J=et.value.replace(/[^0-9]/gi,"/").split("/");if(2!==J.length)return!1;1===J[0].length&&(J[0]=`0${J[0]}`);let er=J[0],en=J[1];if(!((4===en?.length||2===en?.length)&&!isNaN(parseInt(en))))return!1;let ei=en.slice(-2),es=`${er}/${ei}`;if((0,ep.n)(K.securedFields,eo.tj)){let J={txVariant:K.type,fieldType:eo.tj,autoComplete:es,numKey:K.securedFields[eo.tj].numKey};return postMessageToIframe_s(J,getIframeContentWin_e(K,eo.tj),G.loadingContext),!0}if((0,ep.n)(K.securedFields,eo.LC)){let J={txVariant:K.type,fieldType:eo.LC,autoComplete:er,numKey:K.securedFields[eo.LC].numKey};postMessageToIframe_s(J,getIframeContentWin_e(K,eo.LC),G.loadingContext)}return(0,ep.n)(K.securedFields,eo.L0)&&setTimeout(()=>{let J={txVariant:K.type,fieldType:eo.L0,autoComplete:ei,numKey:K.securedFields[eo.L0].numKey};postMessageToIframe_s(J,getIframeContentWin_e(K,eo.L0),G.loadingContext)},0),!0}return!1}
89function handleFocus_c({csfState:K,csfProps:G,csfCallbacks:J},et,er){let en={...er};delete en.numKey,en.rootNode=G.rootNode,en.type=K.type;let ei=en.fieldType;en.focus?K.currentFocusObject!==ei&&(K.currentFocusObject=ei,ev.__IS_IOS&&!K.registerFieldForIos&&et()):K.currentFocusObject===ei&&(K.currentFocusObject=null),en.currentFocusObject=K.currentFocusObject,J.onFocus(en)}function handleIframeConfigFeedback_e({csfState:K,csfCallbacks:G},J,et){if(K.iframeConfigCount+=1,window._b$dl&&console.log("### handleIframeConfigFeedback::csfState.iframeConfigCount:: ",K.iframeConfigCount,"who=",et.fieldType),K.isConfigured){let J={additionalIframeConfigured:!0,fieldType:et.fieldType,type:K.type};G.onAdditionalSFConfig(J)}else if(K.iframeConfigCount===K.originalNumIframes)return J(),!0;return!1}function isConfigured_r({csfState:K,csfConfig:G,csfProps:J,csfCallbacks:et},er){K.isConfigured=!0;let en={iframesConfigured:!0,type:K.type,rootNode:J.rootNode};if(et.onConfigSuccess(en),1===K.numIframes&&G.isCreditCardType){if("card"===K.type)return eu("ERROR: Payment method with a single secured field - but 'type' has not been set to a specific card brand"),!1;let G=eg.getCardByBrand(K.type);G&&(G.cvcPolicy??eo.X1)!==eo.X1&&er()}return!0}function validateForm_l({csfState:K,csfProps:G,csfCallbacks:J}){let et=(K=>{let G=Object.keys(K);for(let J=0,et=G.length;J<et;J+=1)if(!K[G[J]].isValid)return!1;return!0})(K.securedFields),er=et!==K.allValid;if(K.allValid=et,!et&&!er)return;let en={allValid:et,type:K.type,rootNode:G.rootNode};J.onAllValid(en)}function handleBinValue_e({csfState:K,csfCallbacks:G},J){let{binValue:et,encryptedBin:er,uuid:en}=J,ei={binValue:et,type:K.type};er&&(ei.encryptedBin=er,ei.uuid=en),G.onBinValue(ei)}function destroySecuredFields_s(){this.postMessageToAllIframes({destroy:!0}),Object.keys(this.state.securedFields).forEach(K=>{let G=this.state.securedFields[K];G&&G.destroy(),this.state.securedFields[K]=null}),this.destroyTouchendListener(),this.destroyTouchstartListener(),this.state.securedFields={}}let CSF_P=(K="You cannot use secured fields")=>{eh(`${K} - they are not yet configured. Use the 'onConfigSuccess' callback to know when this has happened.`)};let V=class V extends AbstractCSF_e{constructor(K){super(K),this.state={type:this.props.type,brand:"card"!==this.props.type?{brand:this.props.type,cvcPolicy:"required"}:{brand:null,cvcPolicy:"required"}
89,allValid:void 0,numIframes:0,originalNumIframes:0,iframeCount:0,iframeConfigCount:0,isConfigured:!1,hasSeparateDateFields:!1,currentFocusObject:null,registerFieldForIos:!1,securedFields:{},isKCP:!1};let G={csfState:this.state,csfConfig:this.config,csfProps:this.props,csfCallbacks:this.callbacks};this.configHandler=handleConfig_e,this.callbacksHandler=configureCallbacks_n,this.validateForm=commonUtils_e(validateForm_l,G),this.isConfigured=commonUtils_e(isConfigured_r,G,this.validateForm),this.handleIframeConfigFeedback=commonUtils_e(handleIframeConfigFeedback_e,G,this.isConfigured),this.processBrand=commonUtils_e(processBrand_n,G),this.handleValidation=c,this.handleEncryption=handleEncryption_d,this.createSecuredFields=createSecuredFields_f,this.createNonCardSecuredFields=m,this.createCardSecuredFields=createSecuredFields_y,this.setupSecuredField=createSecuredFields_g,this.postMessageToAllIframes=commonUtils_e(postMessageToAllIframes_s,G),this.handleIOSTouchEvents=eb.handleTouchend.bind(this),this.touchendListener=eb.touchendListener.bind(this),this.destroyTouchendListener=eb.destroyTouchendListener.bind(this),this.touchstartListener=eb.touchstartListener.bind(this),this.destroyTouchstartListener=eb.destroyTouchstartListener.bind(this),this.setFocusOnFrame=commonUtils_e(setFocusOnFrame_r,G),this.handleFocus=commonUtils_e(handleFocus_c,G,this.handleIOSTouchEvents),this.handleSFShiftTab=eC.handleSFShiftTab,this.handleShiftTab=eC.handleShiftTab,this.destroySecuredFields=destroySecuredFields_s,this.processAutoComplete=commonUtils_e(processAutoComplete_r,G),this.handleBinValue=commonUtils_e(handleBinValue_e,G),this.handleBrandFromBinLookup=handleBrandFromBinLookup_y,this.sendBrandToCardSF=handleBrandFromBinLookup_l,this.sendExpiryDatePolicyToSF=h,this.init()}init(){this.configHandler(this.props),this.callbacksHandler(this.props.callbacks);let K=this.createSecuredFields();this.state.numIframes=this.state.originalNumIframes=K,this.state.isKCP=!!this.props.isKCP,ev.__IS_IOS&&this.props.shouldDisableIOSArrowKeys&&(this.hasGenuineTouchEvents=!1,(0,em.on)(document,"touchstart",this.touchstartListener))}createReturnObject(){return{updateStyles:K=>{this.state.isConfigured?this.postMessageToAllIframes({styleObject:K}):eh("You cannot update the secured fields styling - they are not yet configured. Use the 'onConfigSuccess' callback to know when this has happened.")},setFocusOnFrame:K=>{this.state.isConfigured?this.setFocusOnFrame(K):CSF_P("You cannot set focus on any secured field")},isValidated:(K,G)=>{if(this.state.isConfigured){if((0,ep.n)(this.state.securedFields,K)){this.state.securedFields[K].hasError=!0,""===this.state.securedFields[K].errorType&&(this.state.securedFields[K].errorType="isValidated");let J={txVariant:this.state.type,fieldType:K,externalValidation:!0,code:G,numKey:this.state.securedFields[K].numKey};postMessageToIframe_s(J,getIframeContentWin_e(this.state,K),this.config.loadingContext)}}else CSF_P("You cannot set validated on any secured field")},hasUnsupportedCard:(K,G)=>{if(this.state.isConfigured){if((0,ep.n)(this.state.securedFields,K)){this.state.securedFields[K].hasError=!!G,this.state.securedFields[K].errorType=G;let J={txVariant:this.state.type,fieldType:K,unsupportedCard:!!G,code:G,numKey:this.state.securedFields[K].numKey};postMessageToIframe_s(J,getIframeContentWin_e(this.state,K),this.config.loadingContext)}}else CSF_P("You cannot set hasUnsupportedCard on any secured field")},destroy:()=>{this.state.isConfigured?this.destroySecuredFields():CSF_P("You cannot destroy secured fields")},brandsFromBinLookup:(K,G)=>{if(!this.config.isCreditCardType)return null;this.state.isConfigured?this.handleBrandFromBinLookup(K,G):CSF_P("You cannot set pass brands to secured fields")},addSecuredField:K=>{let G=dom_r(this.props.rootNode,`[data-cse="${K}"]`);G&&(this.state.numIframes+=1,this.setupSecuredField(G))},removeSecuredField:K=>{if(this.state.securedFields[K]){this.state.securedFields[K].destroy(),delete this.state.securedFields[K],this.state.numIframes-=1,this.state.iframeCount-=1;let G={additionalIframeRemoved:!0,fieldType:K,type:this.state.type};this.callbacks.onAdditionalSFRemoved(G)}},setKCPStatus:K=>{this.state.isKCP=K},sfIsOptionalOrHidden:K=>this.state.securedFields[K].isOptionalOrHidden()}}};let initCSF_c=K=>{if(!K)throw Error("No securedFields configuration object defined");let G={...K};try{let K=eg.isGenericCardType(G.type);G.type=K?"card":G.type}catch(K){G.type="card"}if(!(0,ep.n)(G,"rootNode"))return eu('ERROR: SecuredFields configuration object is missing a "rootNode" property');if((0,ec.k)(G.clientKey))return eh('WARNING: AdyenCheckout configuration object is missing a "clientKey" property.');let J=initCSF_d(G.rootNode);
89return J?(G.rootNode=J,new V(G).createReturnObject()):eu(`ERROR: SecuredFields cannot find a valid rootNode element for ${G.type}`)},initCSF_d=K=>{let G;return"object"==typeof K&&(G=K),"string"!=typeof K||(G=dom_r(document,K))?G:null},textUtils_e=K=>K.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),utils_s=(K,G)=>{let J="card"===K?"nocard":K||"nocard";return G.getImage({type:J,extension:"svg"})(J)},utils_e=K=>{let G=textUtils_e(K);return eo.Eg.includes(K)&&(G=G.substring(eo.ye.length+1)),G};function SecuredFieldsProviderHandlers_p(K,G,J,et){return(G!==eo.SZ&&G!==eo.A1||0!==J[K])&&et[K]}var ew={handleFocus:function(K){this.numCharsInField[K.fieldType]=K.numChars,this.props.onFocus(K)},handleOnAllValid:function(K){return!this.state.detectedUnsupportedBrands&&(this.setState({isSfpValid:K.allValid},()=>{this.props.onChange(this.state,{event:"handleOnAllValid"}),this.props.onAllValid(K)}),!0)},handleOnAutoComplete:function(K){this.setState({autoCompleteName:K.value},()=>{this.props.onChange(this.state,{event:"handleOnAutoComplete",fieldType:K.fieldType}),this.setState({autoCompleteName:null})}),this.props.onAutoComplete(K)},handleOnFieldValid:function(K){return(!this.state.detectedUnsupportedBrands||K.fieldType!==eo.o1)&&(this.setState(G=>({data:{...G.data,[K.encryptedFieldName]:K.blob},valid:{...G.valid,[K.encryptedFieldName]:K.valid},errors:{...G.errors,[K.fieldType]:G.errors[K.fieldType]??!1}}),()=>{this.props.onChange(this.state,{event:"handleOnFieldValid",fieldType:K.fieldType}),this.props.onFieldValid(K)}),!0)},handleOnLoad:function(K){clearTimeout(this.csfLoadFailTimeout),this.csfLoadFailTimeout=null,this.props.onLoad(K),this.csfConfigFailTimeout=setTimeout(()=>{"ready"!==this.state.status&&(this.setState({status:"csfConfigFailure"}),this.props.onError(new ey.ZP("ERROR","secured fields have failed to configure")))},this.csfConfigFailTimeoutMS)},handleOnConfigSuccess:function(K){clearTimeout(this.csfConfigFailTimeout),this.csfConfigFailTimeout=null,this.setState({status:"ready"},()=>{this.props.onConfigSuccess(K)})},handleOnBrand:function(K){this.setState(G=>{let J=SecuredFieldsProviderHandlers_p(eo.Ph,K.cvcPolicy,this.numCharsInField,G.errors),et=1===this.numDateFields?SecuredFieldsProviderHandlers_p(eo.tj,K.expiryDatePolicy,this.numCharsInField,G.errors):null,er=2===this.numDateFields?SecuredFieldsProviderHandlers_p(eo.LC,K.expiryDatePolicy,this.numCharsInField,G.errors):null,en=2===this.numDateFields?SecuredFieldsProviderHandlers_p(eo.L0,K.expiryDatePolicy,this.numCharsInField,G.errors):null;return{brand:K.brand,cvcPolicy:K.cvcPolicy??eo.X1,showSocialSecurityNumber:K.showSocialSecurityNumber,errors:{...G.errors,...(0,ec.hJ)(J)&&{[eo.Ph]:J},...(0,ec.hJ)(et)&&{[eo.tj]:et},...(0,ec.hJ)(er)&&{[eo.LC]:er},...(0,ec.hJ)(en)&&{[eo.L0]:en}},expiryDatePolicy:K.expiryDatePolicy??eo.xR}},()=>{this.props.onChange(this.state,{event:"handleOnBrand"});let G=this.props.brandsConfiguration[K.brand]?.icon??utils_s(K.brand,this.props.resources);this.props.onBrand({...K,brandImageUrl:G})})},handleOnError:function(K,G=null){let J=K.error;return this.setState(et=>({errors:{...et.errors,[K.fieldType]:J||!1},...G&&{data:{...et.data,[eo.o1]:void 0}},...G&&{valid:{...et.valid,[eo.o1]:!1}},...G&&{isSfpValid:!1}}),()=>{this.props.onChange(this.state,{event:"handleOnError",fieldType:K.fieldType})}),!0},handleOnNoDataRequired:function(){this.setState({status:"ready"},()=>this.props.onChange({isSfpValid:!0}))},handleOnTouchstartIOS:function(K){this.props.disableIOSArrowKeys?.(K)},handleKeyPressed:function(K){if("enterKeyPressed"===K.action){let K=new KeyboardEvent("keypress",{bubbles:!0,cancelable:!0,key:"Enter",code:"Enter"});this.props.handleKeyPress?.(K)}}},e_={type:"card",keypadFix:!0,rootNode:null,loadingContext:null,brands:[],showWarnings:!1,autoFocus:!0,trimTrailingSeparator:!0,onChange:()=>{},onLoad:()=>{},onConfigSuccess:()=>{},onAllValid:()=>{},onFieldValid:()=>{},onBrand:()=>{},onError:()=>{},onBinValue:()=>{},onFocus:()=>{},onAutoComplete:()=>{},handleKeyPress:()=>{},styles:{}};let SecuredFieldsProvider_F=class SecuredFieldsProvider_F extends er.wA{csfLoadFailTimeout;
89csfLoadFailTimeoutMS;csfConfigFailTimeout;csfConfigFailTimeoutMS;numCharsInField;rootNode;numDateFields;csf;handleOnLoad;handleOnConfigSuccess;handleOnFieldValid;handleOnAllValid;handleOnBrand;handleFocus;handleOnError;handleOnAutoComplete;handleOnNoDataRequired;handleOnTouchstartIOS;handleKeyPressed;state;props;issuingCountryCode;constructor(K){super(K);let G={status:"loading",brand:K.type,errors:{},valid:{},data:{},cvcPolicy:eo.X1,expiryDatePolicy:eo.xR,isSfpValid:!1,hasKoreanFields:K.hasKoreanFields};this.state=G,this.csfLoadFailTimeout=null,this.csfLoadFailTimeoutMS=3e4,this.csfConfigFailTimeout=null,this.csfConfigFailTimeoutMS=15e3,this.numCharsInField={},this.handleOnLoad=ew.handleOnLoad.bind(this),this.handleOnConfigSuccess=ew.handleOnConfigSuccess.bind(this),this.handleOnFieldValid=ew.handleOnFieldValid.bind(this),this.handleOnAllValid=ew.handleOnAllValid.bind(this),this.handleOnBrand=ew.handleOnBrand.bind(this),this.handleFocus=ew.handleFocus.bind(this),this.handleOnError=ew.handleOnError.bind(this),this.handleOnNoDataRequired=ew.handleOnNoDataRequired.bind(this),this.handleOnAutoComplete=ew.handleOnAutoComplete.bind(this),this.handleOnTouchstartIOS=ew.handleOnTouchstartIOS.bind(this),this.handleKeyPressed=ew.handleKeyPressed.bind(this),this.processBinLookupResponse=this.processBinLookupResponse.bind(this),this.setFocusOn=this.setFocusOn.bind(this),this.updateStyles=this.updateStyles.bind(this),this.handleUnsupportedCard=this.handleUnsupportedCard.bind(this),this.showValidation=this.showValidation.bind(this),this.destroy=this.destroy.bind(this)}static defaultProps=e_;componentDidMount(){this.props.rootNode&&this.setRootNode(this.props.rootNode);let K=a(this.rootNode),G=K.reduce(y,{});this.setState({valid:G}),K.forEach(K=>{this.numCharsInField[K]=0}),this.numDateFields=K.filter(K=>K.match(/Expiry/)).length,K.length?(this.destroy(),this.initializeCSF(this.rootNode)):this.handleOnNoDataRequired()}componentDidUpdate(){this.checkForKCPFields()}componentWillUnmount(){this.csf=null,clearTimeout(this.csfLoadFailTimeout),clearTimeout(this.csfConfigFailTimeout)}initializeCSF(K){let G=this.props.loadingContext,J={rootNode:K,type:this.props.type,clientKey:this.props.clientKey,cardGroupTypes:this.props.brands,autoFocus:this.props.autoFocus,trimTrailingSeparator:this.props.trimTrailingSeparator,loadingContext:G,keypadFix:this.props.keypadFix,showWarnings:this.props.showWarnings,iframeUIConfig:{sfStyles:this.props.styles},i18n:this.props.i18n,callbacks:{onLoad:this.handleOnLoad,onConfigSuccess:this.handleOnConfigSuccess,onFieldValid:this.handleOnFieldValid,onAllValid:this.handleOnAllValid,onBrand:this.handleOnBrand,onError:this.handleOnError,onFocus:this.handleFocus,onBinValue:this.props.onBinValue,onAutoComplete:this.handleOnAutoComplete,onAdditionalSFConfig:this.props.onAdditionalSFConfig,onAdditionalSFRemoved:this.props.onAdditionalSFRemoved,onTouchstartIOS:this.handleOnTouchstartIOS,onKeyPressed:this.handleKeyPressed},isKCP:this.state.hasKoreanFields,legacyInputMode:this.props.legacyInputMode,minimumExpiryDate:this.props.minimumExpiryDate,implementationType:this.props.implementationType||"components",forceCompat:this.props.forceCompat,maskSecurityCode:this.props.maskSecurityCode,exposeExpiryDate:this.props.exposeExpiryDate,shouldDisableIOSArrowKeys:!!this.props.disableIOSArrowKeys,placeholders:this.props.placeholders??{},showContextualElement:this.props.showContextualElement};this.csf=initCSF_c(J),this.csfLoadFailTimeout=setTimeout(()=>{"ready"!==this.state.status&&(this.setState({status:"csfLoadFailure"}),this.props.onError(new ey.ZP("ERROR","secured field iframes have failed to load")))},this.csfLoadFailTimeoutMS)}checkForKCPFields(){let K=!1;this.props.koreanAuthenticationRequired&&(K=this.issuingCountryCode?"kr"===this.issuingCountryCode:"kr"===this.props.countryCode),this.state.hasKoreanFields&&!K&&(this.setState(K=>({data:{...K.data,[eo.gb]:void 0},valid:{...K.valid,[eo.gb]:!1},errors:{...K.errors,[eo.gb]:!1},hasKoreanFields:!1}),()=>{this.props.onChange(this.state)}),this.csf.removeSecuredField(eo.gb),this.csf.setKCPStatus(!1)),!this.state.hasKoreanFields&&K&&(this.setState(K=>({valid:{...K.valid,[eo.gb]:!1},hasKoreanFields:!0,isSfpValid:!1}),()=>{this.props.onChange(this.state)}),this.csf.addSecuredField(eo.gb),this.csf.setKCPStatus(!0))}getChildContext(){return{i18n:this.props.i18n}}handleUnsupportedCard(K){let G=!!K.error;return G&&this.setState({detectedUnsupportedBrands:K.detectedBrands}),K.rootNode=this.rootNode,this.handleOnError(K,G),this.csf&&this.csf.hasUnsupportedCard(eo.o1,K.error),G}setFocusOn(K){this.csf&&this.csf.setFocusOnFrame(K)}updateStyles(K){this.csf&&this.csf.updateStyles(K)}sfIsOptionalOrHidden(K){return this.csf.sfIsOptionalOrHidden(K)}destroy(){this.csf&&this.csf.destroy()}showValidation(){let{numDateFields:K,state:G}=this;
89Object.keys(G.valid).reduce(n(K,G),[]).forEach(K=>{let J=f(K,this.rootNode,G);this.handleOnError(J,!!G.detectedUnsupportedBrands),this.csf&&this.csf.isValidated&&this.csf.isValidated(K,J.error)})}mapErrorsToValidationRuleResult(){return Object.keys(this.state.errors).reduce((K,G)=>{let J=this.state.errors[G];return K[G]=J?{isValid:!1,errorMessage:b(J,el.pv),errorI18n:this.props.i18n.get(J),error:J,rootNode:this.rootNode,...this.state.detectedUnsupportedBrands&&{detectedBrands:this.state.detectedUnsupportedBrands}}:null,K},{})}processBinLookupResponse(K,G){this.state.detectedUnsupportedBrands&&(this.setState(K=>({errors:{...K.errors,[eo.o1]:!1},detectedUnsupportedBrands:null})),this.csf&&K)&&this.handleUnsupportedCard({type:"card",fieldType:"encryptedCardNumber",error:""}),this.issuingCountryCode=K?.issuingCountryCode?.toLowerCase();let J=G?.brand,et=J&&eo.jm.includes(G.brand);et&&this.setState(G,()=>{this.props.onChange(this.state)}),this.csf&&this.csf.brandsFromBinLookup(K,et?G:null)}setRootNode=K=>{this.rootNode=K};render(K,G){return K.render({setRootNode:this.setRootNode,setFocusOn:this.setFocusOn},G)}};let extensions_t=(K,G)=>K.reduce((K,J)=>K||G.includes(J.brand),!1),extensions_r=K=>K.map(K=>({...K})),extensions_s=(K,G="mc",J="visa")=>{let et=extensions_r(K);return et[0].brand!==G&&et[0].brand!==J&&et.reverse(),et.length=1,et};function CustomCardInput_i(K){let G=(0,ei.sO)(null),[J,et]=(0,ei.eJ)({}),[en,es]=(0,ei.eJ)({}),[el,ec]=(0,ei.eJ)({}),[eu,ed]=(0,ei.eJ)(!1),[eh,ep]=(0,ei.eJ)(null),[ef,eg]=(0,ei.eJ)([]),[em,ey]=(0,ei.eJ)(""),ev=(0,ei.Ye)(()=>(function(K,G,J,et={}){let{type:er,cvcPolicy:en}=K,{sfp:ei}=G,{dualBrandSelectElements:es,setDualBrandSelectElements:el,setSelectedBrandValue:ec,issuingCountryCode:eu,setIssuingCountryCode:ed}=J;return{processBinLookup:(K,G)=>{let J=K?.issuingCountryCode?K.issuingCountryCode.toLowerCase():null;if(ed(J),!K||!Object.keys(K).length)return el([]),ec(""),ei.current.processBinLookupResponse(K,{brand:G&&"card"!==er?er:null,cvcPolicy:en}),void(et.current=0);if(K.supportedBrands?.length){let G=extensions_t(K.supportedBrands,eo.EG),J=G?extensions_s(K.supportedBrands):extensions_r(K.supportedBrands);if(J.length>1){let G=function(K){let[G,J]=K;return{dualBrandSelectElements:[{id:G.brand,brandObject:G},{id:J.brand,brandObject:J}],selectedBrandValue:"",leadBrand:G}}(J);el(G.dualBrandSelectElements),ec(G.selectedBrandValue),ei.current.processBinLookupResponse({issuingCountryCode:K.issuingCountryCode,supportedBrands:[G.leadBrand]}),G.leadBrand.panLength>0&&(et.current=G.leadBrand.panLength)}else el([]),ec(""),G||ec(J[0].brand),ei.current.processBinLookupResponse({issuingCountryCode:K.issuingCountryCode,supportedBrands:J}),J[0].panLength>0&&(et.current=J[0].panLength)}},handleDualBrandSelection:K=>{let G=K;if(K instanceof Event){let J=K.target;G=J.getAttribute("data-value")||J.getAttribute("alt")}let J=[];G&&(J=es.reduce((K,J)=>(J.brandObject.brand===G&&K.push(J.brandObject),K),[])).length&&(ec(G),ei.current.processBinLookupResponse({issuingCountryCode:eu,supportedBrands:J}))}}})(K,{sfp:G},{dualBrandSelectElements:ef,setDualBrandSelectElements:eg,setSelectedBrandValue:ey,issuingCountryCode:eh,setIssuingCountryCode:ep}),[ef,eh]);return this.processBinLookupResponse=(K,G)=>{ev.processBinLookup(K,G)},this.dualBrandingChangeHandler=ev.handleDualBrandSelection,(0,ei.d4)(()=>(this.setFocusOn=G.current.setFocusOn,this.updateStyles=G.current.updateStyles,this.showValidation=G.current.showValidation,this.handleUnsupportedCard=G.current.handleUnsupportedCard,()=>{G.current.destroy()}),[]),(0,ei.d4)(()=>{let et=G.current.mapErrorsToValidationRuleResult(),er={...J,...et};if(K.onChange({data:el,valid:en,errors:er,isValid:eu,selectedBrandValue:em}),Object.keys(er).length){let K=Object.entries(er).map(([K,G])=>({fieldType:K,...G||{error:"",rootNode:this.props.rootNode}}));this.props.onValidationError?.(K)}},[el,en,J,em]),(0,er.az)(SecuredFieldsProvider_F,{ref:G,...CustomCardInput_d(K),type:K.brand,onChange:K=>{ec({...el,...K.data}),et({...J,...K.errors}),es({...en,...K.valid}),ed(K.isSfpValid)},render:()=>null})}
89CustomCardInput_i.defaultProps={onChange:()=>{},onError:()=>{},onValidationError:()=>{}};let CustomCardInput_d=K=>({autoFocus:K.autoFocus,brands:K.brands,brandsConfiguration:K.brandsConfiguration,clientKey:K.clientKey,i18n:K.i18n,implementationType:K.implementationType,keypadFix:K.keypadFix,legacyInputMode:K.legacyInputMode,loadingContext:K.loadingContext,minimumExpiryDate:K.minimumExpiryDate,onAdditionalSFConfig:K.onAdditionalSFConfig,onAdditionalSFRemoved:K.onAdditionalSFRemoved,onAllValid:K.onAllValid,onAutoComplete:K.onAutoComplete,onBinValue:K.onBinValue,onBrand:K.onBrand,onConfigSuccess:K.onConfigSuccess,handleKeyPress:K.handleKeyPress,onError:K.onError,onFieldValid:K.onFieldValid,onFocus:K.onFocus,onLoad:K.onLoad,rootNode:K.rootNode,showWarnings:K.showWarnings,styles:K.styles,trimTrailingSeparator:K.trimTrailingSeparator,resources:K.resources,maskSecurityCode:K.maskSecurityCode,placeholders:K.placeholders});var eS=J(1087),ek=J(39380),eA=J(42549),triggerBinLookUp_s=K=>{let G=null;return J=>{!1!==K.props.doBinLookup&&(J.encryptedBin&&K.props.clientKey?(G=J.uuid,(0,eA.Ko)({loadingContext:K.props.loadingContext,path:`v3/bin/binLookup?token=${K.props.clientKey}`},{type:K.props.brand,supportedBrands:K.props.brands||eo._T,encryptedBin:J.encryptedBin,requestId:J.uuid}).then(et=>{if(et?.requestId===G){if(et.brands?.length){let G=et.brands.reduce((K,G)=>(K.detectedBrands.push(G.brand),K.paymentMethodVariants.push(G.paymentMethodVariant),!0===G.supported&&K.supportedBrands.push(G),K),{supportedBrands:[],detectedBrands:[],paymentMethodVariants:[]});if(G.supportedBrands.length)return K.processBinLookupResponse({issuingCountryCode:et.issuingCountryCode,supportedBrands:G.supportedBrands,...et.showSocialSecurityNumber?{showSocialSecurityNumber:et.showSocialSecurityNumber}:{}}),void K.onBinLookup({type:J.type,detectedBrands:G.detectedBrands,supportedBrands:G.supportedBrands.map(K=>K.brand),paymentMethodVariants:G.paymentMethodVariants,supportedBrandsRaw:G.supportedBrands,brands:K.props.brands||eo._T,issuingCountryCode:et.issuingCountryCode});if(G.detectedBrands.length){let et={type:"card",fieldType:"encryptedCardNumber",error:el.pv.ERROR_MSG_UNSUPPORTED_CARD_ENTERED,detectedBrands:G.detectedBrands};return K.handleUnsupportedCard(et),void K.onBinLookup({type:J.type,detectedBrands:G.detectedBrands,supportedBrands:null,paymentMethodVariants:G.paymentMethodVariants,brands:K.props.brands||eo._T})}}else K.onBinLookup({type:J.type,detectedBrands:null,supportedBrands:null,paymentMethodVariants:null,brands:K.props.brands||eo._T}),K.processBinLookupResponse({},!0)}else et?.requestId||K.props.onError(et||{errorType:"binLookup",message:"unknownError"})})):G&&(K.processBinLookupResponse(null,!0),G=null,K.handleUnsupportedCard({type:"card",fieldType:"encryptedCardNumber",error:""}),K.onBinLookup({isReset:!0}))),K.props.onBinValue&&K.props.onBinValue(J)}},eE=J(60762),eT=J(29963);let CustomCard_c=class CustomCard_c extends en.u{static type=eE.C.customCard;static analyticsType="custom-scheme";static defaultProps={onBinLookup:()=>{},brandsConfiguration:{}};formatProps(K){return{...K,type:eE.C.customCard,brand:eE.C.card}}formatData(){let K=this.state.selectedBrandValue;return{paymentMethod:{type:"scheme",...this.state.data,...K&&{brand:K}},browserInfo:this.browserInfo,origin:!!window&&window.location.origin}}submitAnalytics(K){super.submitAnalytics(K,this.props)}updateStyles(K){return this.componentRef?.updateStyles&&this.componentRef.updateStyles(K),this}setFocusOn(K){return this.componentRef?.setFocusOn&&this.componentRef.setFocusOn(K),this}processBinLookupResponse(K){return this.componentRef?.processBinLookupResponse&&this.componentRef.processBinLookupResponse(K),this}dualBrandingChangeHandler(K){return this.componentRef?.dualBrandingChangeHandler&&this.componentRef.dualBrandingChangeHandler(K),this}handleUnsupportedCard(K){return this.componentRef?.handleUnsupportedCard&&this.componentRef.handleUnsupportedCard(K),this}onBinLookup(K){let G={...K};
89G.rootNode=this._node,G.isReset||(G.supportedBrandsRaw=K.supportedBrandsRaw?.map(K=>(K.brandImageUrl=this.props.brandsConfiguration[K.brand]?.icon??utils_s(K.brand,this.resources),K))),this.props.onBinLookup(G)}onBinValue=triggerBinLookUp_s(this);get isValid(){return!!this.state.isValid}get browserInfo(){return(0,ek.Z)()}onFocus=K=>{this.submitAnalytics({type:!0===K.focus?eT.Yg:eT.xe,target:utils_e(K.fieldType)}),this.props.onFocus?.(K)};onEnterKeyPressed=(K,G)=>{this.props.onEnterKeyPressed?.(K,G)};render(){return(0,er.az)(eS.k,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},(0,er.az)(CustomCardInput_i,{ref:K=>{this.componentRef=K},...this.props,...this.state,handleKeyPress:this.handleKeyPress,rootNode:this._node,onChange:this.setState,onBinValue:this.onBinValue,implementationType:"custom",resources:this.resources,brand:this.props.brand,onFocus:this.onFocus}))}}},39536:function(K,G,J){"use strict";J.d(G,{Z:function(){return g}});var et=J(57703),er=J(46545),en=J(94636),ei={API_VERSION:2,API_VERSION_MINOR:0,GATEWAY:"adyen",URL:"https://pay.google.com/gp/p/js/pay.js"};function i({configuration:K,...G},J){return{apiVersion:ei.API_VERSION,apiVersionMinor:ei.API_VERSION_MINOR,transactionInfo:function({amount:K,countryCode:G="US",totalPriceStatus:J="FINAL",...et}){let er=String((0,en.Qe)(K.value,K.currency));return{countryCode:G,currencyCode:K.currency,totalPrice:er,totalPriceStatus:J,...et.transactionInfo}}({countryCode:J,...G}),merchantInfo:{merchantId:K.merchantId,merchantName:K.merchantName,...K.merchantOrigin?{merchantOrigin:K.merchantOrigin}:{},...K.authJwt?{authJwt:K.authJwt}:{}},allowedPaymentMethods:[{type:"CARD",tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:ei.GATEWAY,gatewayMerchantId:K.gatewayMerchantId}},parameters:{allowedAuthMethods:G.allowedAuthMethods,allowedCardNetworks:G.allowedCardNetworks,assuranceDetailsRequired:G.assuranceDetailsRequired,allowPrepaidCards:G.allowPrepaidCards,allowCreditCards:G.allowCreditCards,billingAddressRequired:G.billingAddressRequired,billingAddressParameters:G.billingAddressParameters}}],emailRequired:G.emailRequired,shippingAddressRequired:G.shippingAddressRequired,shippingAddressParameters:G.shippingAddressParameters,shippingOptionRequired:G.shippingOptionRequired,shippingOptionParameters:G.shippingOptionParameters,callbackIntents:G.callbackIntents}}function s(K,G){if(K)return{postalCode:K.postalCode,country:K.countryCode,street:[K.address1,K.address2,K.address3].join(" ").trim(),houseNumberOrName:"ZZ",city:K.locality||"",...K.administrativeArea&&{stateOrProvince:K.administrativeArea},...G&&{firstName:K.name}}}let eo=["en","ar","bg","ca","cs","da","de","el","es","et","fi","fr","hr","id","it","ja","ko","ms","nl","no","pl","pt","ru","sk","sl","sr","sv","th","tr","uk","zh"];var es=J(71306);let o=class o{paymentsClient;constructor(K,G){let J=function(K="TEST"){switch(K.toLowerCase()){case"production":case"live":case"live-au":case"live-apse":case"live-us":case"live-in":return"PRODUCTION";default:return"TEST"}}(K);this.paymentsClient=this.getGooglePaymentsClient({environment:J,paymentDataCallbacks:G})}async getGooglePaymentsClient(K){if(!window.google?.payments){let K=new es.Z(ei.URL);await K.load()}return new google.payments.api.PaymentsClient(K)}isReadyToPay(K){return this.paymentsClient?this.paymentsClient.then(G=>G.isReadyToPay(function({allowedAuthMethods:K,allowedCardNetworks:G,existingPaymentMethodRequired:J=!1}){return{apiVersion:ei.API_VERSION,apiVersionMinor:ei.API_VERSION_MINOR,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:K,allowedCardNetworks:G},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{}}}],existingPaymentMethodRequired:J}}(K))):Promise.reject(Error("Google Pay is not available"))}prefetchPaymentData(K,G){if(!this.paymentsClient)throw Error("Google Pay is not available");let J=i(K,G);this.paymentsClient.then(K=>K.prefetchPaymentData(J))}initiatePayment(K,G){if(!this.paymentsClient)throw Error("Google Pay is not available");let J=i(K,G);return this.paymentsClient.then(K=>K.loadPaymentData(J))}};var el=J(38482);let n=K=>{let G=(0,el.sO)(void 0);return(0,el.d4)(()=>{let{onClick:J,buttonRadius:et,buttonColor:er,buttonType:en,buttonLocale:ei,buttonSizeMode:eo,buttonRootNode:es,paymentsClient:el}=K;el.then(K=>K.createButton({onClick:J,buttonType:en,buttonColor:er,buttonLocale:ei,buttonSizeMode:eo,buttonRootNode:es,...et&&{buttonRadius:et}})).then(K=>{G.current&&G.current.appendChild(K)})},[K.buttonColor,K.buttonType,K.buttonLocale,K.buttonSizeMode,K.buttonRootNode,K.paymentsClient]),(0,et.az)("div",{"data-testid":"googlepay-button-container",className:"adyen-checkout__paywithgoogle",ref:G})},ec={isExpress:!1,existingPaymentMethodRequired:!1,buttonColor:"default",buttonType:"buy",buttonSizeMode:"fill",configuration:{gatewayMerchantId:"",merchantId:"",merchantName:""},amount:{value:0,currency:"USD"},totalPriceStatus:"FINAL",onClick:K=>K(),allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["AMEX","DISCOVER","JCB","MASTERCARD","VISA"],allowCreditCards:!0,allowPrepaidCards:!0,billingAddressRequired:!1,billingAddressParameters:void 0,assuranceDetailsRequired:!1,emailRequired:!1,shippingAddressRequired:!1,shippingAddressParameters:void 0,shippingOptionRequired:!1,shippingOptionParameters:void 0,callbackIntents:[]};var eu=J(39380),ed=J(11134),eh=J(60762),ep=J(54406),ef=J(29963);let g=class g extends er.u{static type=eh.C.googlepay;static txVariants=[eh.C.googlepay,eh.C.paywithgoogle];static defaultProps=ec;googlePay;constructor(K,G){super(K,G),this.handleAuthorization=this.handleAuthorization.bind(this);let{isExpress:J,paymentDataCallbacks:et}=this.props;if(!1===J&&et?.onPaymentDataChanged)throw new ed.ZP("IMPLEMENTATION_ERROR",'GooglePay - You must set "isExpress" flag to "true" in order to use "onPaymentDataChanged" callback');this.googlePay=new o(this.props.environment,{...J&&et?.onPaymentDataChanged&&{onPaymentDataChanged:et.onPaymentDataChanged},onPaymentAuthorized:this.onPaymentAuthorized})}formatProps(K){let G=K.buttonSizeMode??(K.isDropin?"fill":"static"),J=function(K=""){let G=K.toLowerCase().substring(0,2);return eo.includes(G)?G:null}(K.buttonLocale??K.i18n?.locale),et=[...K.callbackIntents,"PAYMENT_AUTHORIZATION"];return{...K,configuration:K.configuration,buttonSizeMode:G,buttonLocale:J,callbackIntents:et}}formatData(){let{googlePayCardNetwork:K,googlePayToken:G,billingAddress:J,deliveryAddress:et}=this.state,{isExpress:er}=this.props;
89return{paymentMethod:{type:this.type,googlePayCardNetwork:K,googlePayToken:G,...er&&{subtype:"express"}},browserInfo:this.browserInfo,origin:!!window&&window.location.origin,...J&&{billingAddress:J},...et&&{deliveryAddress:et}}}submitAnalytics(K){super.submitAnalytics({...K},this.props)}submit=()=>{this.props.isInstantPayment&&this.submitAnalytics({type:ef._5,target:ef.NE}),new Promise((K,G)=>this.props.onClick(K,G)).then(()=>this.googlePay.initiatePayment(this.props,this.core.options.countryCode)).catch(K=>{"CANCELED"===K.statusCode?this.handleError(new ed.ZP("CANCEL",K.toString(),{cause:K})):this.handleError(new ed.ZP("ERROR",K.toString(),{cause:K}))})};onPaymentAuthorized=async K=>{let G=s(K.paymentMethodData.info.billingAddress),J=s(K.shippingAddress,!0);return this.setState({authorizedEvent:K,googlePayToken:K.paymentMethodData.tokenizationData.token,googlePayCardNetwork:K.paymentMethodData.info.cardNetwork,...G&&{billingAddress:G},...J&&{deliveryAddress:J}}),new Promise(K=>{this.handleAuthorization().then(this.makePaymentsCall).then(ep.Jp).then(ep.sq).then(G=>(K({transactionState:"SUCCESS"}),G)).then(K=>{this.handleResponse(K)}).catch(G=>{this.setElementStatus("ready");let J=G?.error?.googlePayError,et=this.props.i18n.get("error.subtitle.payment"),er="string"==typeof J?{intent:"PAYMENT_AUTHORIZATION",reason:"OTHER_ERROR",message:J||et}:{intent:J?.intent||"PAYMENT_AUTHORIZATION",reason:J?.reason||"OTHER_ERROR",message:J?.message||et};K({transactionState:"ERROR",error:er});let en={...G,error:{googlePayError:er}};this.handleFailedResult(en)})})};async handleAuthorization(){return new Promise((K,G)=>{this.props.onAuthorized||K();let{authorizedEvent:J,billingAddress:et,deliveryAddress:er}=this.state;this.props.onAuthorized({authorizedEvent:J,...et&&{billingAddress:et},...er&&{deliveryAddress:er}},{resolve:K,reject:G})}).catch(K=>Promise.reject({error:{googlePayError:K}}))}get isValid(){return!!this.state.googlePayToken}async isAvailable(){return this.isReadyToPay().then(K=>{if(!K.result)throw new ed.ZP("ERROR","GooglePay is not available");if(!1===K.paymentMethodPresent)throw new ed.ZP("ERROR","GooglePay - No paymentMethodPresent");return Promise.resolve()}).catch(K=>Promise.reject(K))}isReadyToPay=()=>this.googlePay.isReadyToPay(this.props);prefetch=()=>this.googlePay.prefetchPaymentData(this.props,this.core.options.countryCode);get browserInfo(){return(0,eu.Z)()}get icon(){return this.props.icon??this.resources.getImage()("googlepay")}render(){return this.props.showPayButton?(0,et.az)(n,{buttonColor:this.props.buttonColor,buttonType:this.props.buttonType,buttonSizeMode:this.props.buttonSizeMode,buttonLocale:this.props.buttonLocale,buttonRootNode:this.props.buttonRootNode,buttonRadius:this.props.buttonRadius,paymentsClient:this.googlePay.paymentsClient,onClick:this.submit}):null}}},36318:function(K,G,J){"use strict";J.d(G,{Z:function(){return a}});var et=J(57703),er=J(71841),en=J(48972),ei=J(11134),eo=J(29963),es=J(13320);let a=class a{_id=`${this.constructor.type}-${(0,en.Z)()}`;core;props;state={};_component;_node=null;static defaultProps={};constructor(K,G){let J=!!K&&"function"==typeof K.initialize&&"function"==typeof K.createFromAction;if(!J)throw new ei.ZP("IMPLEMENTATION_ERROR",`Trying to initialise the component '${this.constructor.type}' without a reference to an instance of AdyenCheckout`);this.core=K,this.buildElementProps(G),this.handleKeyPress=this.handleKeyPress.bind(this)}buildElementProps(K){this.props=this.formatProps({...this.constructor.defaultProps,...K})}formatProps(K){return K}formatData(){return{}}setUpAnalytics(K){return null}submitAnalytics(K){return null}handleKeyPress(K){return null}setState(K){this.state={...this.state,...K}}get data(){let K=(0,er.Z)(this.props,"modules.risk.data"),G=er.Z(this.props,"modules.analytics.getCheckoutAttemptId")?.()??eo.Ai,J=this.state.order||this.props.order,et=this.formatData();if(et.paymentMethod&&G&&(et.paymentMethod.checkoutAttemptId=G),"riverty"!==this.props.type&&et.billingAddress){let{firstName:K,lastName:G,...J}=et.billingAddress;et.billingAddress={...J}}return{...K&&{riskData:{clientData:K}},...J&&{order:{orderData:J.orderData,pspReference:J.pspReference}},...et,clientStateDataIndicator:!0}}render(){throw Error("Payment method cannot be rendered.")}mount(K){let G="string"==typeof K?document.querySelector(K):K;if(!G)throw Error("Component could not mount. Root node was not found.");let J=!this._node;return this._node&&this.unmount(),this._node=G,(0,es.on)(this._node,"keypress",this.handleKeyPress),this._component=this.render(),(0,et.sY)(this._component,G),J&&this.props.modules&&this.props.modules.analytics&&this.setUpAnalytics({containerWidth:G&&G.offsetWidth,component:this.props.isDropin?"dropin":this.constructor.analyticsType??this.constructor.type,flavor:this.props.isDropin?"dropin":"components"}).then(()=>{this.props.isDropin||this.submitAnalytics({type:eo.nS})}),this}update(K){return this.props=this.formatProps({...this.props,...K}),this.state={},this.unmount().mount(this._node)}unmount(){return(0,es.S)(this._node,"keypress",this.handleKeyPress),this._node&&(0,et.sY)(null,this._node),this}remove(){this.unmount(),this.core&&this.core.remove(this)}}},9694:function(K,G,J){"use strict";J.d(G,{Z:function(){return i}});
89var et=J(57703),er=J(27957),en=J(58980),ei=J(1087);let i=class i extends et.wA{static defaultProps={status:"default",variant:"primary",disabled:!1,label:"",inline:!1,target:"_self",onClick:()=>{}};onClick=K=>{K.preventDefault(),this.props.disabled||this.props.onClick(K,{complete:this.complete})};complete=(K=1e3)=>{this.setState({completed:!0}),setTimeout(()=>{this.setState({completed:!1})},K)};render({classNameModifiers:K=[],disabled:G,href:J,icon:eo,inline:es,label:el,status:ec,variant:eu},{completed:ed}){let{i18n:eh}=(0,ei.m)(),ep=eo?(0,et.az)("img",{className:"adyen-checkout__button__icon",src:eo,alt:"","aria-hidden":"true"}):"",ef=[...K,..."primary"!==eu?[eu]:[],...es?["inline"]:[],...ed?["completed"]:[],..."loading"===ec||"redirect"===ec?["loading"]:[]],eg=(0,er.Z)(["adyen-checkout__button",...ef.map(K=>`adyen-checkout__button--${K}`)]),em={loading:(0,et.az)("span",{className:"adyen-checkout__button__content"},(0,et.az)(en.Z,{size:"medium",inline:!0}),(0,et.az)("span",{className:"adyen-checkout__button__text--sr-only"},eh.get("loading"))),redirect:(0,et.az)("span",{className:"adyen-checkout__button__content"},(0,et.az)(en.Z,{size:"medium",inline:!0}),eh.get("payButton.redirecting")),default:(0,et.az)("span",{className:"adyen-checkout__button__content"},ep,(0,et.az)("span",{className:"adyen-checkout__button__text"},el))},ey=em[ec]||em.default;return J?(0,et.az)("a",{className:eg,href:J,disabled:G,target:this.props.target,rel:this.props.rel},ey):(0,et.az)("button",{className:eg,type:"button",disabled:G,onClick:this.onClick},ey,"loading"!==ec&&"redirect"!==ec&&this.props.children)}}},86578:function(K,G,J){"use strict";J.d(G,{Z:function(){return a}});var et=J(57703),er=J(27957);let a=class a extends et.wA{static defaultProps={width:"0",height:"0",minWidth:"0",minHeight:"0",src:null,allow:null,title:"components iframe",classNameModifiers:[]};iframeEl;iframeOnLoad(){this.props.callback&&"function"==typeof this.props.callback&&this.props.callback(this.iframeEl.contentWindow)}componentDidMount(){this.iframeEl.addEventListener?this.iframeEl.addEventListener("load",this.iframeOnLoad.bind(this),!1):this.iframeEl.attachEvent?this.iframeEl.attachEvent("onload",this.iframeOnLoad.bind(this)):this.iframeEl.onload=this.iframeOnLoad.bind(this)}componentWillUnmount(){this.iframeEl.removeEventListener?this.iframeEl.removeEventListener("load",this.iframeOnLoad.bind(this),!1):this.iframeEl.detachEvent?this.iframeEl.detachEvent("onload",this.iframeOnLoad.bind(this)):this.iframeEl.onload=null}render({name:K,src:G,width:J,height:en,minWidth:ei,minHeight:eo,allow:es,title:el,classNameModifiers:ec}){let eu=ec.filter(K=>!!K);return(0,et.az)("iframe",{ref:K=>{this.iframeEl=K},allow:es,className:(0,er.Z)("adyen-checkout__iframe",`adyen-checkout__iframe--${K}`,eu.length&&ec.map(G=>`adyen-checkout__iframe--${K}-${G}`)),name:K,src:G,width:J,height:en,frameBorder:"0",title:el,referrerpolicy:"origin","min-width":ei,"min-height":eo})}}},8777:function(K,G,J){"use strict";J.d(G,{Z:function(){return o}});var et=J(38482),er=J(27957),en=J(57703);function o(K){let{backgroundUrl:G="",className:J="",classNameModifiers:ei=[],src:eo="",alt:es="",showOnError:el=!1}=K,[ec,eu]=(0,et.eJ)(!1),ed=(0,et.sO)(null),g=()=>{eu(!0)},eh=(0,er.Z)([J],"adyen-checkout__image",{"adyen-checkout__image--loaded":ec},...ei.map(K=>`adyen-checkout__image--${K}`));return(0,et.d4)(()=>{let K=G?new Image:ed.current;K.src=G||eo,K.onload=g,eu(!!K.complete)},[]),G?(0,en.az)("div",{"data-testid":"background",style:{backgroundUrl:G},...K,className:eh}):(0,en.az)("img",{...K,alt:es,ref:ed,className:eh,onError:()=>{eu(el)}})}},71847:function(K,G,J){"use strict";J.d(G,{Z:function(){return l}});var et=J(57703),er=J(9694),en=J(1087),ei=J(11829);let t=({label:K})=>(0,et.az)("span",{className:"checkout-secondary-button__text"},K),l=({amount:K,secondaryAmount:G,classNameModifiers:J=[],label:eo,...es})=>{let{i18n:el}=(0,en.m)(),ec=K&&({}).hasOwnProperty.call(K,"value")&&0===K.value,eu=ec?el.get("confirmPreauthorization"):(0,ei.Wk)(el,K),ed=!ec&&!eo&&K&&G&&Object.keys(G).length?(0,ei.er)(el,G):null;return(0,et.az)(er.Z,{...es,disabled:es.disabled||"loading"===es.status,classNameModifiers:[...J,"pay"],label:eo||eu},ed&&(0,et.az)(t,{label:ed}))}},11829:function(K,G,J){"use strict";J.d(G,{Wk:function(){return e},_7:function(){return c},er:function(){return u}});let c=(K,G)=>G?.value&&G?.currency?K.amount(G.value,G.currency,{currencyDisplay:G.currencyDisplay||"symbol"}):"",e=(K,G)=>`${K.get("payButton")} ${c(K,G)}`,u=(K,G)=>{let J=G&&G?.value&&G?.currency?K.amount(G.value,G.currency,{currencyDisplay:G.currencyDisplay||"symbol"}):"";return`${J.length?"/ ":""}${J}`}},93556:function(K,G,J){"use strict";J.d(G,{A1:function(){return ew},BD:function(){return ex},EG:function(){return eR},Eg:function(){return ey},IW:function(){return ed},L0:function(){return eo},LC:function(){return ei},Os:function(){return eI},Ph:function(){return es},Q8:function(){return ef},Rl:function(){return ec},SZ:function(){return eC},Tk:function(){return em},X1:function(){return e_},YV:function(){return eD},_T:function(){return eg},bE:function(){return ek},cx:function(){return ep},f9:function(){return eO},gb:function(){return el},iB:function(){return eh},j1:function(){return eP},jm:function(){return ev},o1:function(){return er},tj:function(){return en},uu:function(){return eT},wc:function(){return eE},xR:function(){return eA},y5:function(){return eu},ye:function(){return et},ze:function(){return eS}});let et="encrypted",er="encryptedCardNumber",en="encryptedExpiryDate",ei="encryptedExpiryMonth",eo="encryptedExpiryYear",es="encryptedSecurityCode",el="encryptedPassword",ec="encryptedBankAccountNumber",eu="encryptedBankLocationId",ed="encryptedSecurityCode3digits",eh="encryptedSecurityCode4digits",ep="giftcard",ef="5.3.0",eg=["amex","mc","visa"],em=["ach",ep],ey=[er,en,ei,eo,es,el].concat([ec,eu]),ev=["bcmc"],eb="required",eC="optional",ew="hidden",e_=eb,eS=eC,ek=ew,eA=eb,eE=eC,eT=ew,eI="data-cse",eP="data-info",eO="data-uid",eR=["accel","pulse","star","nyce"],ex={[er]:"cardNumber",[en]:"expiryDate",[es]:"securityCode",[ei]:"expiryMonth",[eo]:"expiryYear",[el]:"password",[ec]:"bankAccountNumber",[eu]:"bankLocationId",[ed]:"securityCodeThreeDigits",[eh]:"securityCodeFourDigits"},eD=6e3},58980:function(K,G,J){"use strict";J.d(G,{Z:function(){return n}});var et=J(57703);let n=({inline:K=!1,size:G="large"})=>(0,et.az)("div",{"data-testid":"spinner",className:"adyen-checkout__spinner__wrapper "+(K?"adyen-checkout__spinner__wrapper--inline":"")},(0,et.az)("div",{className:`adyen-checkout__spinner adyen-checkout__spinner--${G}`}))},46545:function(K,G,J){"use strict";J.d(G,{u:function(){return p}});
89var et=J(57703),er=J(36318),en=J(71847),ei=J(54406),eo=J(11134),es=J(55069),el=J(29963);let p=class p extends er.Z{componentRef;resources;elementRef;static type=void 0;static txVariants=[];constructor(K,G){super(K,G),this.core.register(this.constructor),this.submit=this.submit.bind(this),this.setState=this.setState.bind(this),this.onComplete=this.onComplete.bind(this),this.handleAction=this.handleAction.bind(this),this.handleOrder=this.handleOrder.bind(this),this.handleAdditionalDetails=this.handleAdditionalDetails.bind(this),this.handleResponse=this.handleResponse.bind(this),this.setElementStatus=this.setElementStatus.bind(this),this.submitAnalytics=this.submitAnalytics.bind(this),this.makePaymentsCall=this.makePaymentsCall.bind(this),this.makeAdditionalDetailsCall=this.makeAdditionalDetailsCall.bind(this),this.submitUsingSessionsFlow=this.submitUsingSessionsFlow.bind(this),this.elementRef=G&&G.elementRef||this,this.resources=this.props.modules?this.props.modules.resources:void 0,this.storeElementRefOnCore(this.props),this.onEnterKeyPressed=this.onEnterKeyPressed.bind(this)}buildElementProps(K){let G={showPayButton:!0,...this.core.getCorePropsForComponent(),...K?.isStoredPaymentMethod?{}:this.core.paymentMethodsResponse.find(K?.type||this.constructor.type),...K},J=(0,ei._n)(this);this.props=this.formatProps({...this.constructor.defaultProps,...(0,ei.XJ)(this.core.options.countryCode,J),...G})}storeElementRefOnCore(K){K?.isDropin||this.core.storeElementReference(this)}isAvailable(){return Promise.resolve()}setState(K){this.state={...this.state,...K},this.onChange()}showValidation(){return this.componentRef&&this.componentRef.showValidation&&this.componentRef.showValidation(),this}setElementStatus(K,G){return this.elementRef?.setStatus(K,G),this}setStatus(K,G){return this.componentRef?.setStatus&&this.componentRef.setStatus(K,G),this}onChange(){this.props.onChange?.({data:this.data,isValid:this.isValid,errors:this.state.errors,valid:this.state.valid},this.elementRef)}setUpAnalytics(K){let G=this.props.session?.id;return this.props.modules.analytics.setUp({...K,...G&&{sessionId:G}})}submitAnalytics(K,G){try{let J=this.constructor.analyticsType;J||(J="scheme"===this.constructor.type||"bcmc"===this.constructor.type?this.constructor.type:this.props.type),this.props.modules.analytics.sendAnalytics(J,K,G)}catch(K){console.warn("Failed to submit the analytics event. Error:",K)}}submit(){this.isValid?this.makePaymentsCall().then(ei.Jp).then(ei.sq).then(this.handleResponse).catch(this.handleFailedResult):this.showValidation()}makePaymentsCall(){return(this.setElementStatus("loading"),this.props.onSubmit)?this.submitUsingAdvancedFlow():this.core.session?(this.props.beforeSubmit?new Promise((K,G)=>this.props.beforeSubmit(this.data,this.elementRef,{resolve:K,reject:G})):Promise.resolve(this.data)).then(this.submitUsingSessionsFlow):void this.handleError(new eo.ZP("IMPLEMENTATION_ERROR",'It can not perform /payments call. Callback "onSubmit" is missing or Checkout session is not available'))}async submitUsingAdvancedFlow(){return new Promise((K,G)=>{this.submitAnalytics({type:el.cE}),this.props.onSubmit({data:this.data,isValid:this.isValid},this.elementRef,{resolve:K,reject:G})})}async submitUsingSessionsFlow(K){this.submitAnalytics({type:el.cE});try{return await this.core.session.submitPayment(K)}catch(K){return K instanceof eo.ZP?this.handleError(K):this.handleError(new eo.ZP("ERROR","Error when making /payments call",{cause:K})),Promise.reject(K)}}onComplete(K){this.props.onComplete&&this.props.onComplete(K,this.elementRef)}handleError=K=>{this.setElementStatus("ready"),this.props.onError&&this.props.onError(K,this.elementRef)};handleAdditionalDetails(K){this.makeAdditionalDetailsCall(K).then(ei.Jp).then(ei.sq).then(this.handleResponse).catch(this.handleFailedResult)}makeAdditionalDetailsCall(K){return this.props.onAdditionalDetails?new Promise((G,J)=>{this.props.onAdditionalDetails(K,this.elementRef,{resolve:G,reject:J})}):this.core.session?this.submitAdditionalDetailsUsingSessionsFlow(K.data):void this.handleError(new eo.ZP("IMPLEMENTATION_ERROR",'It can not perform /payments/details call. Callback "onAdditionalDetails" is missing or Checkout session is not available'))}async submitAdditionalDetailsUsingSessionsFlow(K){try{return await this.core.session.submitDetails(K)}catch(K){return K instanceof eo.ZP?this.handleError(K):this.handleError(new eo.ZP("ERROR","Error when making /details call",{cause:K})),Promise.reject(K)}}handleAction(K,G={}){if(!K||!K.type){if((0,es.n)(K,"action")&&(0,es.n)(K,"resultCode"))throw Error('handleAction::Invalid Action - the passed action object itself has an "action" property and a "resultCode": have you passed in the whole response object by mistake?');throw Error('handleAction::Invalid Action - the passed action object does not have a "type" property')}let J=this.core.createFromAction(K,{...this.elementRef.props,...G,onAdditionalDetails:this.handleAdditionalDetails});return J?(this.unmount(),J.mount(this._node)):null}handleOrder=K=>{let{order:G}=K;(this.core.session?this.core.update({order:G}):this.handleAdvanceFlowPaymentMethodsUpdate(G)).then(()=>{this.props.onOrderUpdated?.({order:G})})};handleFailedResult=K=>{(0,ei._n)(this.elementRef)&&this.elementRef.displayFinalAnimation("error"),(0,ei.YZ)(K),this.props.onPaymentFailed?.(K,this.elementRef)};handleSuccessResult=K=>{(0,ei._n)(this.elementRef)&&this.elementRef.displayFinalAnimation("success"),(0,ei.YZ)(K),this.props.onPaymentCompleted?.(K,this.elementRef)};handleResponse(K){let G=(0,ei.Jp)(K);G.action?this.elementRef.handleAction(G.action):G.order?.remainingAmou
89nt?.value>0?this.handleOrder(G):this.handleSuccessResult(G)}handleKeyPress(K){"Enter"!==K.key&&"Enter"!==K.code||(K.preventDefault(),this.onEnterKeyPressed(document?.activeElement,this))}onEnterKeyPressed(K,G){this.props.onEnterKeyPressed?this.props.onEnterKeyPressed(K,G):(K.blur(),this.submit())}updateParent(K={}){return this.elementRef.core.update(K)}setComponentRef=K=>{this.componentRef=K};get isValid(){return!1}get icon(){let K=this.props.paymentMethodType||this.type;return this.props.icon??this.resources.getImage()(K)}get displayName(){let K=this.core.paymentMethodsResponse?.paymentMethods?.find(K=>K.type===this.type);return this.props.name||K?.name||this.type}get accessibleName(){return this.displayName}get additionalInfo(){return null}get type(){return this.props.type||this.constructor.type}payButton=K=>(0,et.az)(en.Z,{...K,amount:this.props.amount,secondaryAmount:this.props.secondaryAmount,onClick:this.submit});async handleAdvanceFlowPaymentMethodsUpdate(K,G){return new Promise((G,J)=>{if(!this.props.onPaymentMethodsRequest)return G();this.props.onPaymentMethodsRequest({...K&&{order:{orderData:K.orderData,pspReference:K.pspReference}},locale:this.core.options.locale},{resolve:G,reject:J})}).catch(K=>{this.handleError(new eo.ZP("IMPLEMENTATION_ERROR","Something failed during payment methods update or onPaymentMethodsRequest was not implemented",{cause:K}))}).then(J=>this.core.update({...J&&{paymentMethodsResponse:J},order:K,amount:K?K.remainingAmount:G}))}}},54406:function(K,G,J){"use strict";J.d(G,{Jp:function(){return n},XJ:function(){return s},YZ:function(){return o},_n:function(){return r},sq:function(){return t}});let et=["action","resultCode","sessionData","order","sessionResult","donationToken","error"];function n(K){let G=[],J=Object.keys(K).reduce((J,er)=>(et.includes(er)?J[er]=K[er]:G.push(er),J),{});return G.length&&console.warn(`The following properties should not be passed to the client: ${G.join(", ")}`),J}function o(K){K&&(delete K.order,delete K.action,K.donationToken&&0!==K.donationToken.length||delete K.donationToken)}function t(K){return["Cancelled","Error","Refused"].includes(K.resultCode)?Promise.reject(K):Promise.resolve(K)}function r(K){return!!K&&"object"==typeof K.activePaymentMethod&&"function"==typeof K.closeActivePaymentMethod}function s(K,G){return"FI"===K&&G?{openFirstPaymentMethod:!1,openFirstStoredPaymentMethod:!1}:{}}},60762:function(K,G,J){"use strict";var et,er;J.d(G,{C:function(){return et}}),(er=et||(et={})).address="address",er.bankTransfer_IBAN="bankTransfer_IBAN",er.donation="donation",er.personal_details="personal_details",er.dropin="dropin",er.bcmc="bcmc",er.card="card",er.scheme="scheme",er.storedCard="storedCard",er.customCard="customcard",er.threeDS2Challenge="threeDS2Challenge",er.threeDS2Fingerprint="threeDS2Fingerprint",er.threeDS2DeviceFingerprint="threeDS2DeviceFingerprint",er.ach="ach",er.directdebit_GB="directdebit_GB",er.sepadirectdebit="sepadirectdebit",er.affirm="affirm",er.afterpay="afterpay",er.afterpay_default="afterpay_default",er.afterpay_b2b="afterpay_b2b",er.atome="atome",er.facilypay_3x="facilypay_3x",er.facilypay_4x="facilypay_4x",er.facilypay_6x="facilypay_6x",er.facilypay_10x="facilypay_10x",er.facilypay_12x="facilypay_12x",er.ratepay="ratepay",er.ratepay_directdebit="ratepay_directdebit",er.riverty="riverty",er.amazonpay="amazonpay",er.applepay="applepay",er.cashapp="cashapp",er.clicktopay="clicktopay",er.googlepay="googlepay",er.paypal="paypal",er.paywithgoogle="paywithgoogle",er.boletobancario="boletobancario",er.boletobancario_itau="boletobancario_itau",er.boletobancario_s
89antander="boletobancario_santander",er.primeiropay_boleto="primeiropay_boleto",er.doku="doku",er.doku_alfamart="doku_alfamart",er.doku_permata_lite_atm="doku_permata_lite_atm",er.doku_indomaret="doku_indomaret",er.doku_atm_mandiri_va="doku_atm_mandiri_va",er.doku_sinarmas_va="doku_sinarmas_va",er.doku_mandiri_va="doku_mandiri_va",er.doku_cimb_va="doku_cimb_va",er.doku_danamon_va="doku_danamon_va",er.doku_bri_va="doku_bri_va",er.doku_bni_va="doku_bni_va",er.doku_bca_va="doku_bca_va",er.doku_wallet="doku_wallet",er.oxxo="oxxo",er.billdesk_online="billdesk_online",er.billdesk_wallet="billdesk_wallet",er.dotpay="dotpay",er.eps="eps",er.molpay_ebanking_fpx_MY="molpay_ebanking_fpx_MY",er.molpay_ebanking_TH="molpay_ebanking_TH",er.molpay_ebanking_VN="molpay_ebanking_VN",er.onlineBanking_CZ="onlineBanking_CZ",er.onlinebanking_IN="onlinebanking_IN",er.onlineBanking_PL="onlineBanking_PL",er.onlineBanking_SK="onlineBanking_SK",er.paybybank="paybybank",er.payu_IN_cashcard="payu_IN_cashcard",er.payu_IN_nb="payu_IN_nb",er.wallet_IN="wallet_IN",er.dragonpay="dragonpay",er.dragonpay_ebanking="dragonpay_ebanking",er.dragonpay_otc_banking="dragonpay_otc_banking",er.dragonpay_otc_non_banking="dragonpay_otc_non_banking",er.dragonpay_otc_philippines="dragonpay_otc_philippines",er.econtext="econtext",er.econtext_atm="econtext_atm",er.econtext_online="econtext_online",er.econtext_seven_eleven="econtext_seven_eleven",er.econtext_stores="econtext_stores",er.giropay="giropay",er.multibanco="multibanco",er.redirect="redirect",er.twint="twint",er.vipps="vipps",er.trustly="trustly",er.klarna="klarna",er.klarna_account="klarna_account",er.klarna_paynow="klarna_paynow",er.klarna_b2b="klarna_b2b",er.bcmc_mobile="bcmc_mobile",er.bcmc_mobile_QR="bcmc_mobile_QR",er.pix="pix",er.swish="swish",er.wechatpay="wechatpay",er.wechatpayQR="wechatpayQR",er.promptpay="promptpay",er.paynow="paynow",er.duitnow="duitnow",er.blik="blik",er.mbway="mbway",er.ancv="ancv",er.upi="upi",er.upi_qr="upi_qr",er.upi_collect="upi_collect",er.upi_intent="upi_intent",er.giftcard="giftcard",er.mealVoucher_FR="mealVoucher_FR",er.mealVoucher_FR_natixis="mealVoucher_FR_natixis",er.mealVoucher_FR_sodexo="mealVoucher_FR_sodexo",er.mealVoucher_FR_groupeup="mealVoucher_FR_groupeup"},82907:function(K,G,J){"use strict";J.d(G,{w:function(){return AdyenCheckout_t}});var et,er,en=J(11134);function e(K){let G=K.replace("_","-"),J=/([a-z]{2})([-])([A-Z]{2})/;if(J.test(G))return G;let[et,er]=G.split("-");if(2!==et.length)throw new en.ZP("IMPLEMENTATION_ERROR",`Locale '${K}' does not match the expected format`);if(!er)return et.toLowerCase();let ei=[et.toLowerCase(),er.toUpperCase()].join("-");if(J.test(ei))return ei;throw new en.ZP("IMPLEMENTATION_ERROR",`Locale '${K}' does not match the expected format`)}let r=(K,G)=>K.replace(/%{(\w+)}/g,(K,J)=>G[J]||""),n=(K,G,J={values:{},count:0})=>{let et=`${G}__plural`,c=K=>`${G}__${K}`;return Object.prototype.hasOwnProperty.call(K,c(J.count))?r(K[c(J.count)],J.values):Object.prototype.hasOwnProperty.call(K,et)&&J.count>1?r(K[et],J.values):Object.prototype.hasOwnProperty.call(K,G)?r(K[G],J.values):null};var ei=J(94636);let a=class a{locale;languageCode;translations;customTranslations;timeFormatOptions={hour:"numeric",minute:"numeric"};timeAndDateFormatOptions={year:"numeric",month:"2-digit",day:"2-digit",...this.timeFormatOptions};timeAndDateFormatter;constructor(K){let{locale:G,translations:J,customTranslations:et}=K;if(!G)throw new en.ZP("IMPLEMENTATION_ERROR",'Language: "locale" property is not defined');this.locale=G,this.languageCode=this.locale.split("-")[0],this.customTranslations=et||{},this.timeAndDateFormatter=Intl.DateTimeFormat(this.locale,this.timeAndDateFormatOptions),this.translations={...J,...!!this.customTranslations[this.locale]&&this.customTranslations[this.locale]}}get(K,G){let J=n(this.translations,K,G);return null!==J?J:K}amount(K,G,J){return(0,ei.tO)(K,this.locale,G,J)}date(K,G={}){if(void 0===K)return"";let J={year:"numeric",month:"2-digit",day:"2-digit",...G};return new Date(K).toLocaleDateString(this.locale,J)}dateTime(K){return void 0===K?"":this.timeAndDateFormatter.format(new Date(K))}};var eo=J(57703),es=J(36318),el=J(86578);let promiseTimeout_e=(K,G,J)=>{let et;return{promise:new Promise((er,en)=>{et=setTimeout(()=>{en(J)},K),G.then(K=>{clearTimeout(et),er(K)}).catch(K=>{clearTimeout(et),en(K)})}),cancel:()=>{clearTimeout(et)}}},ec="deviceFingerprint",eu={result:{type:ec,value:"df-timedOut"},errorCode:"timeout"},ed={UNKNOWN:"unknownError"},eh={timeout:"iframe loading timed out",wrongOrigin:"Result did not come from the expected origin",wrongDataType:"Result data was not of the expected type",missingProperty:"Result data did not contain the expected properties",unknownError:"An unknown error occurred"};var ep=J(55069);let t=(K,G,J,et)=>J=>{let er={};if((J.origin||J.originalEvent.origin)!==K)return"Message was not sent from the expected domain";if("string"!=typeof J.data)return"Event data was not of type string";if(!J.data.length)return"Invalid event data string";try{let K=JSON.parse(J.data);if(!(0,ep.n)(K,"type")||K.type!==et)return"Event data was not of expected type";G(K)}catch(K){return er.type=`${et}-JSON-parse-error`,er.comment="failed to JSON parse event.data",er.extraInfo=`event.data = ${J.data}`,er.eventDataRaw=J.data,console.debug("get-process-message-handler::CATCH::Un-parseable JSON:: parseErrorObj=",er),!1}return!0},getOrigin_n=K=>{let G=/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/.exec(K);if(!G)return null;let[,J,et,er,en]=G;return J&&et&&er?`${J}:${et}${er}${en?`:${en}`:""}`:null};let p=class p extends eo.wA{postMessageDomain;processMessageHandler;deviceFingerPrintPromise;constructor(K){super(K),this.postMessageDomain=getOrigin_n(this.props.loadingContext)||this.props.loadingContext}getDfpPromise(){return new Promise((K,G)=>{this.processMessageHandler=t(this.postMessageDomain,K,G,ec),window.addEventListener("message",this.processMessageHandler)})}componentDidMount(){this.deviceFingerPrintPromise=promiseTimeout_e(2e4,this.getDfpPromise(),eu),this.deviceFingerPrintPromise.promise.then(K=>{this.props.onCompleteFingerprint(K),window.removeEventListener("message",this.processMessageHandler)}).catch(K=>{this.props.onErrorFingerprint(K),window.removeEventListener("message",this.processMessageHandler)})}render({dfpURL:K}){return(0,eo.az)("div",{className:"adyen-checkout-risk__device-fingerprint"},(0,eo.az)(el.Z,{name:"dfIframe",src:K,allow:"geolocation; microphone; camera;",title:"devicefingerprinting iframe"}))}};let utils_t=K=>({errorCode:K,message:eh[K]||eh[ed.UNKNOWN],type:ec});let DeviceFingerprint_i=class DeviceFingerprint_i extends eo.wA{constructor(K){super(K),K.clientKey&&(this.state={status:"retrievingFingerPrint",dfpURL:`${this.props.loadingContext}assets/html/${K.clientKey}/dfp.1.0.0.html`})}static defaultProps={onComplete:()=>{},onError:()=>{}};setStatusComplete(K){this.setState({status:"complete"},()=>{this.props.onComplete(K)})}render({loadingContext:K},{dfpURL:G}){return"retrievingFingerPrint"===this.state.status?(0,eo.az)("div",{className:"adyen-checkout-risk__device-fingerprint--wrapper",style:{position:"absolute",width:0,height:0}},(0,eo.az)(p,{loadingContext:K,dfpURL:G,onCompleteFingerprint:K=>{this.setStatusComplete(K)},onErrorFingerprint:K=>{this.props.onError(utils_t(K.errorCode)),this.setStatusComplete(K.result)}})):null}};var ef=J(74476);let RiskModule_i=class RiskModule_i extends es.Z{static type="risk";static defaultProps={risk:{enabled:!0,onComplete:()=>{},onError:()=>{},node:"body"}};nodeRiskContainer=null;constructor(K,G){super(K,G),this.setState({data:{[ec]:null}}),!0===this.props.risk.enabled&&(document.querySelector(this.props.risk.node)?(this.nodeRiskContainer=document.createElement("div"),document.querySelector(this.props.risk.node).appendChild(this.nodeRiskContainer),this.mount(this.nodeRiskContainer)):this.onError({message:"RiskModule node was not found"}))}formatProps(K){return{...K,risk:{...RiskModule_i.defaultProps.risk,...K.risk}}}onComplete=K=>{let G={...this.state.data,[K.type]:K.value,persistentCookie:K.persistentCookie,components:K.components};this.setState({data:G,isValid:!0}),this.props.risk.onComplete(this.data),this.cleanUp()};onError=K=>{this.props.risk.onError(K),this.cleanUp()};get isValid(){return this.state.isValid}get data(){if(this.isValid){let K={version:"1.0.0",...this.state.data};return ef.ZP.encode(JSON.stringify(K))}return!1}get enabled(){return this.props.risk.enabled}cleanUp=()=>{this.nodeRiskContainer&&this.nodeRiskContainer.parentNode&&this.nodeRiskContainer.parentNode.removeChild(this.nodeRiskContainer)};componentWillUnmount(){this.cleanUp()}render(){return(0,eo.az)(DeviceFingerprint_i,{...this.props,loadingContext:this.props.loadingContext,onComplete:this.onComplete,onError:this.onError})}};function filters_t(K){return!this.length||this.indexOf(K.type)>-1}function filters_e(K){return!this.length||0>this.indexOf(K.type)}function filters_n(K){return!!K&&!!K.supportedShopperInteractions&&K.supportedShopperInteractions.includes("Ecommerce")}let eg=["scheme","blik","twint","ach","cashapp"];function filters_r(K){return!!K&&!!K.type&&eg.includes(K.type)}let s=K=>({...K,storedPaymentMethodId:K.id,isStoredPaymentMethod:!0}),utils_n=(K,{allowPaymentMethods:G=[],removePaymentMethods:J=[]})=>K?K.filter(filters_t,G).filter(filters_e,J):[],utils_a=(K,{allowPaymentMethods:G=[],removePaymentMethods:J=[]})=>K?K.filter(filters_r).filter(filters_t,G).filter(filters_e,J).filter(filters_n).map(s):[],utils_d=K=>{if("string"==typeof K)throw Error('paymentMethodsResponse was provided but of an incorrect type (should be an object but a string was provided).Try JSON.parse("{...}") your paymentMethodsResponse.');if(K instanceof Array)throw Error("paymentMethodsResponse was provided but of an incorrect type (should be an object but an array was provided).Please check you are passing the whole response.");!K||K?.paymentMethods?.length||K?.storedPaymentMethods?.length||console.warn("paymentMethodsResponse was provided but no payment methods were found.")};let PaymentMethods_o=class PaymentMethods_o{paymentMethods=[];storedPaymentMethods=[];constructor(K,G={}){utils_d(K),this.paymentMethods=K?utils_n(K.paymentMethods,G):[],this.storedPaymentMethods=K?utils_a(K.storedPaymentMethods,G):[]}mapCreatedComponentType(K){return"card"===K?"scheme":K}has(K){return!!this.paymentMethods.find(G=>G.type===this.mapCreatedComponentType(K))}find(K){return this.paymentMethods.find(G=>G.type===this.mapCreatedComponentType(K))}};let em="threeDS2Fingerprint",ey="3DS2Fingerprint_Error",ev="callSubmit3DS2Fingerprint_Response",eb="threeDS2Challenge",eC="3DS2Challenge_Error",ew="threeDS2Error",e_="threeDS2",eS="3DS2",ek='Missing "token" property from threeDS2 action',eA="timeout",eE={result:{transStatus:"U"},type:"challengeResult",errorCode:eA},eT={result:{threeDSCompInd:"N"},type:"fingerPrintResult",errorCode:eA},eI={"01":["250px","400px"],"02":["390px","400px"],"03":["500px","600px"],"04":["600px","400px"],"05":["100%","100%"]};var eP=J(14166);let components_utils_a=K=>"success"in K&&!K.success,utils_o=K=>{let G=ef.ZP.decode(K);if(G.success)try{return JSON.parse(G.data)}catch(K){return{success:!1,error:"Could not JSON parse token"}}return G},utils_i=K=>{if(!K||!Object.keys(K).length)throw Error("No (populated) data object to encode");return ef.ZP.encode(JSON.stringify(K))},utils_c=K=>{let G=1===K.length?`0${K}`:K;return Object.prototype.hasOwnProperty.call(eI,G)?G:"02"},utils_p=K=>eI[utils_c(K)],components_utils_d=({token:K,size:G})=>{let J=utils_o(K);if(components_utils_a(J))return J;let{acsTransID:et,acsURL:er,messageVersion:en,threeDSNotificationURL:ei,threeDSServerTransID:eo}=J,es=getOrigin_n(ei);return{acsURL:er,cReqData:{acsTransID:et,messageVersion:en,threeDSServerTransID:eo,messageType:"CReq",challengeWindowSize:utils_c(G)}
89,iframeSizeArr:utils_p(G),postMessageDomain:es}},utils_l=({token:K,notificationURL:G})=>{let J=utils_o(K);if(components_utils_a(J))return J;let{threeDSMethodNotificationURL:et,threeDSMethodUrl:er,threeDSServerTransID:en}=J,ei=G||et;return{threeDSServerTransID:en,threeDSMethodURL:er,threeDSMethodNotificationURL:ei,postMessageDomain:getOrigin_n(ei)}},utils_u=(K,G,J)=>({data:{[K]:utils_i({threeDSCompInd:G.threeDSCompInd}),paymentData:J}}),utils_h=(K,G,J)=>({data:{details:{"threeds2.fingerprint":utils_i(G)},paymentData:J}}),m=(K,G,J)=>({data:{details:{[K]:utils_i({transStatus:G,authorisationToken:J})}}}),utils_D=(K,G,J)=>({data:{details:{"threeds2.challengeResult":utils_i({transStatus:G})},paymentData:J}}),utils_S=K=>{let G=window.btoa(K).split("=")[0];return(G=G.replace(/\+/g,"-")).replace(/\//g,"_")},eO=["elementRef"],eR=["createFromAction","onAdditionalDetails"],R=(K,G)=>{if("fingerprint"===K){let K=G.elementRef?eO:eR,J=(0,eP.ei)(K).from(G);return J.showSpinner=!G.isDropin,J.statusType="loading",J}return{statusType:"custom",i18n:G.i18n}};var ex=J(48972);let actionTypes_o=(K,G,J,et)=>{let er=G.getComponent(J);if(!er)throw Error(`Action Element of type ${J} not found in the registry`);return new er(K,{...et,id:`${J}-${(0,ex.Z)()}`})},actionTypes_n=K=>(G,J,et,er)=>{let en={...er,...et,onComplete:er.onAdditionalDetails,onError:er.onError,statusType:K};return actionTypes_o(G,J,et.paymentMethodType,en)},eD={redirect:(K,G,J,et)=>{let er={...et,...J,statusType:"redirect"};return actionTypes_o(K,G,"redirect",er)},threeDS2:(K,G,J,et)=>{let er="fingerprint"===J.subtype?"threeDS2DeviceFingerprint":"threeDS2Challenge",en="fingerprint"===J.subtype||et.isMDFlow?J.paymentData:J.authorisationToken,ei={core:K,token:J.token,paymentData:en,onActionHandled:et.onActionHandled,onComplete:et.isMDFlow?et.onComplete:et.onAdditionalDetails,onError:et.onError,isDropin:!!et.isDropin,loadingContext:et.loadingContext,clientKey:et.clientKey,paymentMethodType:et.paymentMethodType,challengeWindowSize:et.challengeWindowSize,isMDFlow:et.isMDFlow,modules:{analytics:et.modules?.analytics,resources:et.modules?.resources},...R(J.subtype,et)};return actionTypes_o(K,G,er,ei)},voucher:actionTypes_n("custom"),qrCode:actionTypes_n("custom"),await:actionTypes_n("custom"),bankTransfer:actionTypes_n("custom"),sdk:actionTypes_n("custom")};var eM=J(42549);let Storage_t=class Storage_t{storage;constructor(){this.storage={}}get length(){return Object.keys(this.storage).length}key(K){return Object.keys(this.storage)[K]}getItem(K){return this.storage[K]||null}setItem(K,G){return this.storage[K]=G}removeItem(K){delete this.storage[K]}clear(){this.storage={}}};let Storage_e=class Storage_e{prefix="adyen-checkout__";key;storage;constructor(K,G){try{if(this.storage=G?window[G]:window.localStorage,!this.storage)throw Error("storage does not exist")}catch(K){this.storage=new Storage_t}this.key=this.prefix+K}get(){try{return JSON.parse(this.storage.getItem(this.key))}catch(K){return null}}set(K){this.storage.setItem(this.key,JSON.stringify(K))}remove(){this.storage.removeItem(this.key)}clear(){this.storage.clear()}keyByIndex(K){return this.storage.key(K)}get length(){return this.storage.length}};let collect_id_n=({analyticsContext:K,clientKey:G,locale:J,analyticsPath:et,bundleType:er})=>{let en;let ei={errorLevel:"fatal",loadingContext:K,path:`${et}?clientKey=${G}`};return K=>{let et={version:"6.2.0",channel:"Web",platform:"Web",buildType:er,locale:J,referrer:window.location.href,screenWidth:window.screen.width,...K};if(en)return en;if(!G)return Promise.reject("no-client-key");let eo=new Storage_e("checkout-attempt-id","sessionStorage"),es=eo.get();return!function(K){if(!K?.id)return!1;let G=Date.now()-9e5;return K.timestamp>G}(es)?en=(0,eM.Ko)(ei,et).then(K=>{if(K?.checkoutAttemptId)return eo.set({id:K.checkoutAttemptId,timestamp:Date.now()}),K.checkoutAttemptId}).catch(()=>Promise.reject('WARNING: Failed to retrieve "checkoutAttemptId". Consequently, analytics will not be available for this payment. The payment process, however, will not be affected.')):Promise.resolve(es.id)}},EventsQueue_t=({analyticsContext:K,clientKey:G,analyticsPath:J})=>{let et={channel:"Web",platform:"Web",info:[],errors:[],logs:[]};return{add:(K,G)=>{et[K].push(G)},run:er=>{let en=et.info.length||et.logs.length||et.errors.length?(0,eM.Ko)({errorLevel:"silent",loadingContext:K,path:`${J}/${er}?clientKey=${G}`},et).then(()=>{}).catch(()=>{console.debug("### EventsQueue:::: send has failed")}):Promise.resolve(null);return et.info=[],et.errors=[],et.logs=[],en},getQueue:()=>et}};var eN=J(29963);let debounce_e=(K,G=300)=>{let J;return function(...et){clearTimeout(J),J=setTimeout(()=>K.apply(this,et),G)}},formatters_e=K=>K.replace(/[^0-9]/g,"");var eL=J(57381);(et=er||(er={})).full="full",et.partial="partial",et.none="none";var eF={type:"scheme",setComponentRef:()=>{},autoFocus:!0,billingAddressAllowedCountries:[],billingAddressMode:er.full,billingAddressRequired:!1,billingAddressRequiredFields:["street","houseNumberOrName","postalCode","city","stateOrProvince","country"],configuration:{koreanAuthenticationRequired:!1,socialSecurityNumberMode:"auto"},data:{billingAddress:{}},disableIOSArrowKeys:!1,enableStoreDetails:!1,exposeExpiryDate:!1,forceCompat:!1,hasHolderName:!1,holderNameRequired:!1,hasCVC:!0,hideCVC:!1,installmentOptions:{},keypadFix:!0,legacyInputMode:!1,maskSecurityCode:!1,minimumExpiryDate:null,name:null,placeholders:{},positionHolderNameOnTop:!1,showBrandIcon:!0,showInstallmentAmounts:null,styles:{},isPayButtonPrimaryVariant:!0,showContextualElement:!0,onLoad:()=>{},onConfigSuccess:()=>{},onAllValid:()=>{},onFieldValid:()=>{},onBrand:()=>{},onError:()=>{},onBinValue:()=>{},onBlur:()=>{},onFocus:()=>{},onChange:()=>{}},eB=J(93556);let Analytics_utils_c=()=>Date.now(),Analytics_utils_g=K=>({timestamp:String(Analytics_utils_c()),component:K.component,id:(0,ex.Z)(),..."error"===K.event&&{code:K.code,errorType:K.errorType,message:K.message},..."log"===K.event&&{type:K.type,message:K.message},..."log"===K.event&&(K.type===eN.QW||K.type===e_)&&{subType:K.subtype},..."log"===K.event&&K.type===e_&&{result:K.result},..."info"===K.event&&{type:K.type,target:K.target},..."info"===K.event&&K.issuer&&{issuer:K.issuer},..."info"===K.event&&{isExpress:K.isExpress,expressPage:K.expressPage},..."info"===K.event&&K.isStoredPaymentMethod&&{isStoredPaymentMethod:K.isStoredPaymentMethod,brand:K.brand},..."info"===K.event&&K.type===eN.Su&&{validationErrorCode:y(K.validationErrorCode,K.target),validationErrorMessage:K.validationErrorMessage},...K.configData&&{configData:K.configData}
89,...K.metadata&&{metadata:K.metadata}}),y=(K,G)=>{if(K===eL.mu||K===eL.bw)return eN.d2[`${K}.${G}`]??K;let J=eN.d2[K]??K;return isNaN(Number(J))&&(J=formatters_e(J)),J},Analytics_utils_h=K=>Object.keys(K).reduce((G,J)=>(eN.Gi.includes(J)&&(G[J]=K[J]),G),{}),b=K=>{let{autoFocus:G,billingAddressAllowedCountries:J,billingAddressMode:et,billingAddressRequired:er,billingAddressRequiredFields:en,brands:ei=eB._T,brandsConfiguration:eo,challengeWindowSize:es="02",configuration:el,countryCode:ec,data:eu,disclaimerMessage:ed,disableIOSArrowKeys:eh,doBinLookup:ep,enableStoreDetails:ef,exposeExpiryDate:eg,forceCompat:em,hasHolderName:ey,hideCVC:ev,holderNameRequired:eb,installmentOptions:eC,keypadFix:ew,legacyInputMode:e_,maskSecurityCode:eS,minimumExpiryDate:ek,name:eA,placeholders:eE,positionHolderNameOnTop:eT,showBrandIcon:eI,showInstallmentAmounts:eO,showPayButton:eR=!1,styles:ex,onAllValid:eD,onBinLookup:eM,onBinValue:eN,onBlur:eL,onBrand:eU,onConfigSuccess:ez,onEnterKeyPressed:ej,onFieldValid:eV,onFocus:eH,onLoad:eq}=K,e$=JSON.stringify(eF.data),eK=K.modules?.srPanel?.enabled,eW=K.modules?.srPanel?.moveFocus,eG=K.modules?.risk?.enabled,eZ=K.onAddressLookup?"lookup":et,eJ="none";return!0===el?.koreanAuthenticationRequired&&(eJ="kr"===ec?.toLowerCase()?"atStart":"auto"),{autoFocus:G,...J?.length>0&&{billingAddressAllowedCountries:J.toString().substring(0,128)},billingAddressMode:eZ,billingAddressRequired:er,billingAddressRequiredFields:en?.toString()?.substring(0,128),brands:ei?.toString()?.substring(0,128),challengeWindowSize:es,disableIOSArrowKeys:eh,doBinLookup:ep,enableStoreDetails:ef,exposeExpiryDate:eg,forceCompat:em,hasBrandsConfiguration:(0,eP.N6)(eo),hasData:eu&&JSON.stringify(K.data)!==e$,hasDisclaimerMessage:!!ed,hasHolderName:ey,hasInstallmentOptions:(0,eP.N6)(eC),hasPlaceholders:(0,eP.N6)(eE),hasStylesConfigured:(0,eP.N6)(ex),hideCVC:ev,holderNameRequired:eb,keypadFix:ew,legacyInputMode:e_,maskSecurityCode:eS,minimumExpiryDate:!!ek,name:eA,positionHolderNameOnTop:eT,riskEnabled:eG,showBrandIcon:eI,showInstallmentAmounts:!!eO,showKCPType:eJ,showPayButton:eR,socialSecurityNumberMode:el?.socialSecurityNumberMode,srPanelEnabled:eK,srPanelMoveFocus:eW,hasOnAllValid:eD!==eF.onAllValid,hasOnBinValue:eN!==eF.onBinValue,hasOnBlur:eL!==eF.onBlur,hasOnBrand:eU!==eF.onBrand,hasOnConfigSuccess:ez!==eF.onConfigSuccess,hasOnFieldValid:eV!==eF.onFieldValid,hasOnFocus:eH!==eF.onFocus,hasOnLoad:eq!==eF.onLoad,hasOnBinLookup:!!eM,hasOnEnterKeyPressed:!!ej}},analyticsPreProcessor_h=K=>(G,J,et={})=>{let{type:er,target:ei}=J;if(!er)throw new en.ZP(en.nd,"You are trying to create an analytics event without a type");switch(er){case eN.nS:{let{isStoredPaymentMethod:en,brand:ei,configData:eo}=J,{isExpress:es,expressPage:el}=et,ec=el&&eN.rr.includes(el),{type:eu}=et,ed=null;"scheme"!==eu&&"bcmc"!==eu&&"customcard"!==eu||(ed=b(et));let eh={component:G,type:er,..."boolean"==typeof en&&{isStoredPaymentMethod:en},...ei&&{brand:ei},..."boolean"==typeof es&&{isExpress:es},...!0===es&&ec&&{expressPage:el},...ed&&{configData:ed},...eo&&{configData:eo}};K.createAnalyticsEvent({event:eN.U2,data:eh});break}case eN.hf:{let{isStoredPaymentMethod:et,brand:en}=J;K.createAnalyticsEvent({event:eN.U2,data:{component:G,type:er,isStoredPaymentMethod:et,brand:en}});break}case eN.Yg:case eN.xe:case eN.c_:case eN.iN:case eN.FG:K.createAnalyticsEvent({event:eN.U2,data:{component:G,type:er,target:ei}});break;case eN._5:{let{issuer:et}=J;K.createAnalyticsEvent({event:eN.U2,data:{component:G,type:er,target:ei,issuer:et}});break}case eN.Su:{let{validationErrorCode:et,validationErrorMessage:en}=J;K.createAnalyticsEvent({event:eN.U2,data:{component:G,type:er,target:ei,validationErrorCode:et,validationErrorMessage:en}});break}case eN.cE:K.createAnalyticsEvent({event:eN.k3,data:{component:G,type:er,message:"Shopper clicked pay"}});break;case eN.QW:{let{subtype:et,message:en}=J;K.createAnalyticsEvent({event:eN.k3,data:{component:G,type:er,subtype:et,message:en}});break}case e_:{let{message:et,metadata:en,subtype:ei,result:eo}=J;K.createAnalyticsEvent({event:eN.k3,data:{component:G,type:er,message:et,metadata:en,subtype:ei,result:eo}});break}case ew:{let{message:et,code:en,errorType:ei}=J;K.createAnalyticsEvent({event:eN.Sb,data:{component:G,type:er,message:et,code:en,errorType:ei}});break}default:K.createAnalyticsEvent(J)}},eU=null,ez=null,Analytics_d=({locale:K,clientKey:G,analytics:J,amount:et,anal
89yticsContext:er,bundleType:en})=>{let ei={enabled:!0,checkoutAttemptId:null,analyticsData:{},...J},eo=collect_id_n({analyticsContext:er,clientKey:G,locale:K,amount:et,analyticsPath:eN.R3,bundleType:en}),es=EventsQueue_t({analyticsContext:er,clientKey:G,analyticsPath:eN.R3}),E=()=>eU?es.run(eU):Promise.resolve(null),el={setUp:async K=>{let{payload:G}=ei,J=Analytics_utils_h(ei.analyticsData);if(!eU)try{let et=await eo({...K,...G&&{...G},...Object.keys(J).length&&{...J}});eU=et}catch(K){console.warn("Fetching checkoutAttemptId failed."+(K?` Error=${K}`:""))}},getCheckoutAttemptId:()=>eU,getEventsQueue:()=>es,createAnalyticsEvent:({event:K,data:G})=>{if(!ei.enabled)return;let J=Analytics_utils_g({event:K,...G});return((K,G)=>{let J=K===eN.U2?K:`${K}s`;es.add(`${J}`,G),K===eN.U2&&(clearTimeout(ez),ez=setTimeout(()=>{E()},eN.Ee)),K!==eN.k3&&K!==eN.Sb||(clearTimeout(ez),debounce_e(E)())})(K,J),J},getEnabled:()=>ei.enabled,sendAnalytics:null};return el.sendAnalytics=!0===ei.enabled?analyticsPreProcessor_h(el):()=>{},el};var ej=J(39650),eV=J(39380);let CheckoutSession_c=class CheckoutSession_c{session;storage;clientKey;loadingContext;configuration;constructor(K,G,J){let et=function(K){if(!K||!K.id)throw new en.ZP("IMPLEMENTATION_ERROR","Invalid session");let{shopperLocale:G,shopperEmail:J,telephoneNumber:et,id:er}=K;return{id:er,...K.sessionData?{sessionData:K.sessionData}:{},...G&&{shopperLocale:G},...J&&{shopperEmail:J},...et&&{telephoneNumber:et}}}(K);if(!G)throw Error("No clientKey available");if(!J)throw Error("No loadingContext available");this.storage=new Storage_e("session","localStorage"),this.clientKey=G,this.loadingContext=J,this.session=et,this.session.sessionData?this.storeSession():this.session=this.getStoredSession()}get shopperLocale(){return this.session.shopperLocale}get id(){return this.session.id}get data(){return this.session.sessionData}updateSessionData(K){this.session.sessionData=K,this.storeSession()}setupSession(K){let G={...K,browserInfo:(0,eV.Z)()};return(function(K,G){let J=`v1/sessions/${K.id}/setup?clientKey=${K.clientKey}`,et={browserInfo:G.browserInfo,sessionData:K.data,...G.order?{order:{orderData:G.order.orderData,pspReference:G.order.pspReference}}:{}};return(0,eM.Ko)({loadingContext:K.loadingContext,path:J,errorLevel:"fatal"},et)})(this,G).then(K=>(K.configuration&&(this.configuration={...K.configuration}),K.sessionData&&this.updateSessionData(K.sessionData),K))}submitPayment(K){return(function(K,G){let J=`v1/sessions/${G.id}/payments?clientKey=${G.clientKey}`,et={sessionData:G.data,...K};return(0,eM.Ko)({loadingContext:G.loadingContext,path:J,errorLevel:"fatal"},et)})(K,this).then(K=>(K.sessionData&&this.updateSessionData(K.sessionData),K))}submitDetails(K){return(function(K,G){let J=`v1/sessions/${G.id}/paymentDetails?clientKey=${G.clientKey}`,et={sessionData:G.data,...K};return(0,eM.Ko)({loadingContext:G.loadingContext,path:J,errorLevel:"fatal"},et)})(K,this).then(K=>(K.sessionData&&this.updateSessionData(K.sessionData),K))}checkBalance(K){return(function(K,G){let J=`v1/sessions/${G.id}/paymentMethodBalance?clientKey=${G.clientKey}`,et={sessionData:G.data,...K};return(0,eM.Ko)({loadingContext:G.loadingContext,path:J,errorLevel:"fatal"},et)})(K,this).then(K=>(K.sessionData&&this.updateSessionData(K.sessionData),K))}createOrder(){return(function(K){let G=`v1/sessions/${K.id}/orders?clientKey=${K.clientKey}`,J={sessionData:K.data};return(0,eM.Ko)({loadingContext:K.loadingContext,path:G,errorLevel:"fatal"},J)})(this).then(K=>(K.sessionData&&this.updateSessionData(K.sessionData),K))}cancelOrder(K){return(function(K,G){let J=`v1/sessions/${G.id}/orders/cancel?clientKey=${G.clientKey}`,et={sessionData:G.data,order:K};return(0,eM.Ko)({loadingContext:G.loadingContext,path:J,errorLevel:"fatal"},et)})(K.order,this).then(K=>(K.sessionData&&this.updateSessionData(K.sessionData),K))}getStoredSession(){let K=this.storage.get();return this.id===K?.id?K:this.session}storeSession(){this.storage.set({id:this.session.id,sessionData:this.session.sessionData})}removeStoredSession(){this.storage.remove()}};let Resources_r=class Resources_r{resourceContext;constructor(K){if(!K)throw new en.ZP("IMPLEMENTATION_ERROR",'Resources module: "environmentsUrls.cdn" is not a valid URL');this.resourceContext=K}returnImage=({name:K,resourceContext:G,imageFolder:J="",parentFolder:et="",extension:er,size:en="",subFolder:ei=""})=>`${G}images/${J}${ei}${et}${K}${en}.${er}`;getImageUrl=({resourceContext:K,extension:G="svg",...J})=>et=>{let er={extension:G,resourceContext:K,imageFolder:"logos/",parentFolder:"",name:et,...J};return this.returnImage(er)};getImage(K={}){return this.getImageUrl({...K,resourceContext:this.resourceContext})}};var eH=J(38482);function SRMessages_n({setComponentRef:K}){let G=(0,eH.sO)({});Object.keys(G.current).length||K?.(G.current);let[J,et]=(0,eH.eJ)(null);return G.current.setMessages=K=>{et(K)},J?(0,eo.az)(eo.HY,null,J.map(K=>(0,eo.az)("div",{key:K,className:"adyen-checkout-sr-panel__msg"},K))):null}let SRPanel_o=class SRPanel_o extends es.Z{static type="srPanel";
89static defaultProps={enabled:!0,node:"body",showPanel:!1,id:"ariaLiveSRPanel",ariaAttributes:{"aria-relevant":"all","aria-live":"polite","aria-atomic":"true"}};srPanelContainer=null;id;showPanel;_enabled;_moveFocus;componentRef;constructor(K,G){if(super(K,G),this.id=this.props.id,this.showPanel=!1,this._enabled=!1,this._moveFocus=this.props.moveFocus??!0,this.props.enabled){if(this._enabled=!0,!document.querySelector(this.props.node))throw Error("Component could not mount. Root node was not found.");{let K=document.getElementById(this.id);K&&document.querySelector(this.props.node).removeChild(K),this.srPanelContainer=document.createElement("div"),this.srPanelContainer.className="sr-panel-holder",this.srPanelContainer.id=this.id,document.querySelector(this.props.node).appendChild(this.srPanelContainer),this.mount(this.srPanelContainer)}}}setComponentRef=K=>{this.componentRef=K};get enabled(){return this._enabled}get moveFocus(){return this._moveFocus}setAriaProps(K){let G=document.querySelector('[class^="adyen-checkout-sr-panel"]');for(let[J,et]of Object.entries(K))G.setAttribute(J,et);this.props={...this.props,ariaAttributes:{...this.props.ariaAttributes,...K}}}setMessages=K=>{if(!this.props.enabled)return;let G=null;K&&(G=Array.isArray(K)?K:[K]),this.componentRef.setMessages(G)};render(){return this.props.enabled?(0,eo.az)("div",{className:this.showPanel?"adyen-checkout-sr-panel":"adyen-checkout-sr-panel--sr-only",role:"log",...this.props.ariaAttributes},(0,eo.az)(SRMessages_n,{setComponentRef:this.setComponentRef})):null}};
89var eq=J(46545),e$=J(27957),eK=J(58980);let ThreeDS2Form_n=class ThreeDS2Form_n extends eo.wA{formEl;componentDidMount(){this.formEl.submit(),this.props.onFormSubmit(`${this.props.inputName} sent`)}render({name:K,action:G,target:J,inputName:et,inputValue:er}){return(0,eo.az)("form",{ref:K=>{this.formEl=K},method:"POST",className:(0,e$.Z)(["adyen-checkout__threeds2__form",`adyen-checkout__threeds2__form--${K}`]),name:K,action:G,target:J,style:{display:"none"}},(0,eo.az)("input",{name:et,value:er}))}};let eW="threeDSIframe";let DoChallenge3DS2_d=class DoChallenge3DS2_d extends eo.wA{processMessageHandler;challengePromise;constructor(K){super(K);let G=JSON.stringify(this.props.cReqData),J=utils_S(G);this.state={base64URLencodedData:J,status:"init"}}iframeCallback=()=>{this.setState({status:"iframeLoaded"}),"init"===this.state.status&&this.props.onActionHandled({componentType:"3DS2Challenge",actionDescription:`${eS} challenge iframe loaded`})};get3DS2ChallengePromise(){return new Promise((K,G)=>{this.processMessageHandler=t(this.props.postMessageDomain,K,G,"challengeResult"),window.addEventListener("message",this.processMessageHandler)})}componentDidMount(){this.challengePromise=promiseTimeout_e(6e5,this.get3DS2ChallengePromise(),eE),this.challengePromise.promise.then(K=>{window.removeEventListener("message",this.processMessageHandler),this.props.onCompleteChallenge(K)}).catch(K=>{window.removeEventListener("message",this.processMessageHandler),this.props.onErrorChallenge(K)})}componentWillUnmount(){this.challengePromise&&this.challengePromise.cancel(),window.removeEventListener("message",this.processMessageHandler)}render({acsURL:K,cReqData:G,iframeSizeArr:J,onFormSubmit:et},{base64URLencodedData:er,status:en}){let[ei,es]=J;return(0,eo.az)("div",{className:(0,e$.Z)(["adyen-checkout__threeds2__challenge",`adyen-checkout__threeds2__challenge--${G.challengeWindowSize}`])},"iframeLoaded"!==en&&(0,eo.az)(eK.Z,null),(0,eo.az)(el.Z,{name:eW,width:ei,height:es,callback:this.iframeCallback}),(0,eo.az)(ThreeDS2Form_n,{name:"cReqForm",action:K,target:eW,inputName:"creq",inputValue:er,onFormSubmit:et}))}};var eG=J(8777),eZ=J(13064);let isValidURL_t=(K,G=!1)=>{let J;try{J=new URL(K)}catch(K){return!1}return G&&"http:"===J.protocol||"https:"===J.protocol};let T=class T extends eo.wA{static defaultProps={onComplete:()=>{},onError:()=>{},onActionHandled:()=>{},isMDFlow:!1};constructor(K){if(super(K),this.props.token){let K=components_utils_d({token:this.props.token,size:this.props.challengeWindowSize||this.props.size});this.state={status:"init",challengeData:K}}else this.state={challengeData:{success:!1,error:ek}},console.debug(`${eC}: ${ek}`)}onActionHandled=K=>{this.props.onSubmitAnalytics({type:e_,message:K.actionDescription,subtype:eN.lA.CHALLENGE_IFRAME_LOADED}),this.props.onActionHandled(K)};onFormSubmit=K=>{this.props.onSubmitAnalytics({type:e_,message:K,subtype:eN.lA.CHALLENGE_DATA_SENT})};componentDidMount(){if(components_utils_a(this.state.challengeData)){let K=this.state.challengeData.error,G=K.indexOf(ek)>-1?eN.oc.ACTION_IS_MISSING_TOKEN:eN.oc.TOKEN_DECODE_OR_PARSING_FAILED;this.setError({errorInfo:K.indexOf(ek)>-1?`${eN.oc.ACTION_IS_MISSING_TOKEN}: ${this.props.i18n.get("err.gen.9102")}`:`${eN.oc.TOKEN_DECODE_OR_PARSING_FAILED}: ${this.props.i18n.get("err.gen.9102")}`},!0),this.props.onSubmitAnalytics({type:ew,code:G,errorType:eN.rK,message:`${eC}: ${K}`}),console.debug("### PrepareChallenge3DS2::exiting:: no challengeData")}else{let K="test"===this.props.environment&&this.props._environmentUrls?.api?.includes("http://localhost:8080"),{acsURL:G}=this.state.challengeData;if(!isValidURL_t(G,K)){this.setError({errorInfo:`${eN.oc.TOKEN_IS_MISSING_ACSURL}: ${this.props.i18n.get("err.gen.9102")}`},!0);let K={type:ew,code:eN.oc.TOKEN_IS_MISSING_ACSURL,errorType:eN.rK,message:`${eC}: Decoded token is missing a valid acsURL property`};return this.props.onSubmitAnalytics(K),void console.debug("### PrepareChallenge3DS2::exiting:: no valid acsURL")}let{acsTransID:J,messageVersion:et,threeDSServerTransID:er}=this.state.challengeData.cReqData;if(!J||!et||!er)return this.setError({errorInfo:`${eN.oc.TOKEN_IS_MISSING_OTHER_PROPS}: ${this.props.i18n.get("err.gen.9102")}`}
89,!0),this.props.onSubmitAnalytics({type:ew,code:eN.oc.TOKEN_IS_MISSING_OTHER_PROPS,errorType:eN.rK,message:`${eC}: Decoded token is missing one or more of the following properties (acsTransID | messageVersion | threeDSServerTransID)`}),void console.debug("### PrepareChallenge3DS2::exiting:: missing one or more of the following properties (acsTransID | messageVersion | threeDSServerTransID)");this.setState({status:"performingChallenge"})}}setStatusComplete(K,G=null){this.setState({status:"complete"},()=>{let J,et;let er=(this.props.isMDFlow?utils_D:m)(this.props.dataKey,K.transStatus,this.props.paymentData);G&&console.debug("### PrepareChallenge3DS2::errorCodeObject::",G);let en=G||K;if(en.errorCode){let K={code:"timeout"===en.errorCode?eN.oc.THREEDS2_TIMEOUT:eN.oc.NO_TRANSSTATUS,errorType:"timeout"===en.errorCode?eN.K6:eN.rK};J={type:ew,message:en.message,...K},this.props.onSubmitAnalytics(J)}switch(K?.transStatus){case"Y":et="success";break;case"N":et="failed";break;case"U":et=G?"timeout":"cancelled"}K?.errorCode&&(et="noTransStatus"),J={type:e_,message:`${eS} challenge has completed`,subtype:eN.lA.CHALLENGE_COMPLETED,result:et},this.props.onSubmitAnalytics(J),this.props.onComplete(er)})}setError(K,G){this.setState({status:"error",errorInfo:K.errorInfo}),G&&this.props.onError(new en.ZP(en.pn,K.errorInfo,{cause:K.errorObj}))}render(K,{challengeData:G}){let J=(0,eZ.Z)();return"performingChallenge"===this.state.status?(0,eo.az)(DoChallenge3DS2_d,{onCompleteChallenge:K=>{let G=null;if((0,ep.n)(K.result,"errorCode")&&K.result.errorCode.length&&(G={errorCode:K.result.errorCode,message:`${eC}: ${K.result.errorDescription?K.result.errorDescription:"no transStatus could be retrieved"}`},this.props.isMDFlow&&this.props.onError(new en.ZP(en.pn,`${eC}: ${K.result.errorDescription?K.result.errorDescription:"no transStatus could be retrieved"}`,{cause:K.result.errorCode}))),!K.result)return this.setError({errorInfo:`${eC}:  ${this.props.i18n.get("3ds.chal.805",{values:{result:'"result"'}})}`,errorObj:K},!0),this.props.onSubmitAnalytics({type:ew,code:eN.oc.CHALLENGE_RESOLVED_WITHOUT_RESULT_PROP,errorType:eN.rK,message:`${eC}: challenge resolved without a "result" object`}),void console.debug('### PrepareChallenge3DS2::exiting:: challenge resolved without a "result" object');this.setStatusComplete(K.result,G)},onErrorChallenge:K=>{if((0,ep.n)(K,"errorCode")){let G={errorCode:K.errorCode,message:`${eb}: ${K.errorCode}`};return this.props.isMDFlow&&this.props.onError(new en.ZP(en.pn,`${eC}: '3DS2 challenge timed out'`,{cause:K.errorCode})),void this.setStatusComplete(K.result,G)}},...G,onActionHandled:this.onActionHandled,onFormSubmit:this.onFormSubmit}):"error"===this.state.status?(0,eo.az)("div",{className:"adyen-checkout__threeds2-challenge-error"},(0,eo.az)(eG.Z,{className:"adyen-checkout__status__icon adyen-checkout__status__icon--error",src:J({imageFolder:"components/"})("error"),alt:""}),(0,eo.az)("div",{className:"adyen-checkout__status__text"},this.state.errorInfo?this.state.errorInfo:this.props.i18n.get("error.message.unknown"))):null}};var eJ=J(60762),eY=J(1087);let C=class C extends eq.u{static type=eJ.C.threeDS2Challenge;static defaultProps={dataKey:"threeDSResult",size:"02",type:eb};submitAnalytics=K=>{K.type!==eN.nS&&super.submitAnalytics(K)};onComplete(K){K&&super.onComplete(K),this.unmount()}render(){if(!(0,eP.hJ)(this.props.paymentData)){let K=(0,ep.n)(this.props,"isMDFlow")?"paymentData":"authorisationToken";return this.props.onError(new en.ZP(en.j5,`No ${K} received. 3DS2 Challenge cannot proceed`)),this.submitAnalytics({type:ew,code:eN.oc.ACTION_IS_MISSING_PAYMENT_DATA,errorType:eN.rK,message:`${eC}: Missing 'paymentData' property from threeDS2 action`}),null}return(0,eo.az)(eY.k,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},(0,eo.az)(T,{...this.props,onComplete:this.onComplete,onSubmitAnalytics:this.submitAnalytics,isMDFlow:this.props.paymentData.length<15}))}};let eQ="threeDSMethodIframe";let DoFingerprint3DS2_c=class DoFingerprint3DS2_c extends eo.wA{processMessageHandler;fingerPrintPromise;static defaultProps={showSpinner:!0};constructor(K){super(K);let{threeDSServerTransID:G,threeDSMethodNotificationURL:J}=this.props,et=JSON.stringify({threeDSServerTransID:G,threeDSMethodNotificationURL:J}),er=utils_S(et);this.state={base64URLencodedData:er}}get3DS2MethodPromise(){return new Promise((K,G)=>{this.processMessageHandler=t(this.props.postMessageDomain,K,G,"fingerPrintResult"),window.addEventListener("message",this.processMessageHandler)})}componentDidMount(){this.fingerPrintPromise=promiseTimeout_e(1e4,this.get3DS2MethodPromise(),eT),this.fingerPrintPromise.promise.then(K=>{window.removeEventListener("message",this.processMessageHandler),this.props.onCompleteFingerprint(K)}).catch(K=>{window.removeEventListener("message",this.processMessageHandler),this.props.onErrorFingerprint(K)})}componentWillUnmount(){this.fingerPrintPromise&&this.fingerPrintPromise.cancel(),window.removeEventListener("message",this.processMessageHandler)}render({threeDSMethodURL:K,onActionHandled:G,onFormSubmit:J},{base64URLencodedData:et}){return(0,eo.az)("div",{className:"adyen-checkout__3ds2-device-fingerprint"},this.props.showSpinner&&(0,eo.az)(eK.Z,null),(0,eo.az)("div",{style:{display:"none"}},(0,eo.az)(el.Z,{name:eQ,callback:()=>{G({componentType:"3DS2Fingerprint",actionDescription:`${eS} fingerprint iframe loaded`})}}),(0,eo.az)(ThreeDS2Form_n,{name:"threeDSMethodForm",action:K,target:eQ,inputName:"threeDSMethodData",inputValue:et,onFormSubmit:J})))}};let PrepareFingerprint3DS2_C=class PrepareFingerprint3DS2_C extends eo.wA{static type="scheme";static defaultProps={onComplete:()=>{},onError:()=>{},paymentData:"",showSpinner:!0,onActionHandled:()=>{},isMDFlow:!1}
89;constructor(K){super(K);let{token:G,notificationURL:J}=this.props;if(G){let K=utils_l({token:G,notificationURL:J});this.state={status:"init",fingerPrintData:K}}else this.state={fingerPrintData:{success:!1,error:ek}},console.debug(`${ey}: ${ek}`)}onActionHandled=K=>{this.props.onSubmitAnalytics({type:e_,message:K.actionDescription,subtype:eN.lA.FINGERPRINT_IFRAME_LOADED}),this.props.onActionHandled(K)};onFormSubmit=K=>{this.props.onSubmitAnalytics({type:e_,message:K,subtype:eN.lA.FINGERPRINT_DATA_SENT})};componentDidMount(){if(components_utils_a(this.state.fingerPrintData)){let K=this.state.fingerPrintData.error,G=K.indexOf(ek)>-1?eN.oc.ACTION_IS_MISSING_TOKEN:eN.oc.TOKEN_DECODE_OR_PARSING_FAILED;this.setStatusComplete({threeDSCompInd:"N"},{errorCode:G,message:`${ey}: ${K}`}),console.debug("### PrepareFingerprint3DS2:: token does not exist or could not be base64 decoded &/or JSON.parsed")}else{let K="test"===this.props.environment&&this.props._environmentUrls?.api?.includes("http://localhost:8080"),{threeDSMethodURL:G,threeDSMethodNotificationURL:J,postMessageDomain:et,threeDSServerTransID:er}=this.state.fingerPrintData;if(!isValidURL_t(G,K))return this.setStatusComplete({threeDSCompInd:"U"},{errorCode:eN.oc.TOKEN_IS_MISSING_THREEDSMETHODURL,message:`${ey}: Decoded token is missing a valid threeDSMethodURL property`}),void console.debug("### PrepareFingerprint3DS2::exiting:: no valid threeDSMethodURL");let en=isValidURL_t(J,K),ei=isValidURL_t(et,K),eo=er?.length;if(!en||!ei||!eo)return this.setStatusComplete({threeDSCompInd:"N"},{errorCode:eN.oc.TOKEN_IS_MISSING_OTHER_PROPS,message:`${ey}: Decoded token is missing one or more of the following properties (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)`}),void console.debug("### PrepareFingerprint3DS2::exiting:: Decoded token is missing one or more of the following properties (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)");this.setState({status:"retrievingFingerPrint"})}}setStatusComplete(K,G=null){this.setState({status:"complete"},()=>{let J,et;let er=(this.props.isMDFlow?utils_h:utils_u)(this.props.dataKey,K,this.props.paymentData),en=G||K;if(en.errorCode){let K={code:en.errorCode===eA?eN.oc.THREEDS2_TIMEOUT:en.errorCode,errorType:en.errorCode===eA?eN.K6:eN.rK};J={type:ew,message:en.message,...K},this.props.onSubmitAnalytics(J)}switch(K?.threeDSCompInd){case"Y":et="success";break;case"N":et=G?G.errorCode===eA?eA:"failedInternal":"failed";break;case"U":et="noThreeDSMethodURL"}J={type:e_,message:`${eS} fingerprinting has completed`,subtype:eN.lA.FINGERPRINT_COMPLETED,result:et},this.props.onSubmitAnalytics(J),this.props.onComplete(er)})}render({showSpinner:K},{status:G,fingerPrintData:J}){return"retrievingFingerPrint"===G?(0,eo.az)(DoFingerprint3DS2_c,{onCompleteFingerprint:K=>{this.setStatusComplete(K.result)},onErrorFingerprint:K=>{let G={errorCode:K.errorCode,message:`${em}: ${K.errorCode}`};this.setStatusComplete(K.result,G)},showSpinner:K,...J,onActionHandled:this.onActionHandled,onFormSubmit:this.onFormSubmit}):null}};function callSubmit3DS2Fingerprint_a({data:K}){(0,eM.Ko)({path:`v1/submitThreeDS2Fingerprint?token=${this.props.clientKey}`,loadingContext:this.props.loadingContext,errorLevel:"fatal"},{...K}).then(K=>{let G;if("completed"===K.type){let{details:J}=K;return K.details?this.onComplete({data:{details:J}}):(console.debug('Handled Error::callSubmit3DS2Fingerprint::FAILED:: no details object in a response indicating either a "frictionless" flow, or a "refused" response. resData=',K),G={type:ew,code:eN.oc.NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED,errorType:eN.rK,message:`${ev}: no details object in a response indicating either a "frictionless" flow, or a "refused" response`},void this.submitAnalytics(G))}if(!K.action)return console.debug('Handled Error::callSubmit3DS2Fingerprint::FAILED:: no action object in a response indicating a "challenge". resData=',K),G={type:ew,code:eN.oc.NO_ACTION_FOR_CHALLENGE,errorType:eN.rK,message:`${ev}: no action object in a response indicating a "challenge" flow`},void this.submitAnalytics(G);let J=this.props.elementRef??this;return J?"threeDS2"===K.action?.type?J.handleAction(K.action,(0,eP.ei)("challengeWindowSize").from(this.props)):"redirect"===K.action?.type?J.handleAction(K.action):void 0:(console.debug("Handled Error::callSubmit3DS2Fingerprint::FAILED:: no actionHandler"),G={type:ew,code:e
89N.oc.NO_COMPONENT_FOR_ACTION,errorType:eN.$r,message:`${ev}: no component defined to handle the action response`},void this.submitAnalytics(G))}).catch(K=>{this.handleError(K)})}let ThreeDS2DeviceFingerprint_h=class ThreeDS2DeviceFingerprint_h extends eq.u{static type=eJ.C.threeDS2Fingerprint;static defaultProps={dataKey:"fingerprintResult",type:em};callSubmit3DS2Fingerprint=callSubmit3DS2Fingerprint_a.bind(this);submitAnalytics=K=>{K.type!==eN.nS&&super.submitAnalytics(K)};onComplete(K){super.onComplete(K),this.unmount()}render(){return(0,eP.hJ)(this.props.paymentData)?(0,eo.az)(PrepareFingerprint3DS2_C,{...this.props,onComplete:this.props.isMDFlow?this.onComplete:this.callSubmit3DS2Fingerprint,onSubmitAnalytics:this.submitAnalytics,isMDFlow:this.props.paymentData.length<15}):(this.props.onError(new en.ZP(en.j5,"No paymentData received. 3DS2 Fingerprint cannot proceed")),this.submitAnalytics({type:ew,code:eN.oc.ACTION_IS_MISSING_PAYMENT_DATA,errorType:eN.rK,message:`${ey}: Missing 'paymentData' property from threeDS2 action`}),null)}};var detectInIframeInSameOrigin_t=()=>{try{if(window.parent.location.href)return window.location!==window.parent.location}catch(K){return!1}};let RedirectShopper_r=class RedirectShopper_r extends eo.wA{postForm;static defaultProps={beforeRedirect:K=>K(),method:"GET"};componentDidMount(){new Promise((K,G)=>{this.props.beforeRedirect(K,G,{url:this.props.url,method:this.props.method,...this.props.data?{data:this.props.data}:{}})}).then(()=>{this.postForm?this.postForm.submit():this.props.redirectFromTopWhenInIframe&&detectInIframeInSameOrigin_t()?window.top.location.assign?.(this.props.url):window.location.assign(this.props.url)}).catch(()=>{})}render({url:K,method:G,data:J={}}){return"POST"===G?(0,eo.az)("form",{method:"post",action:K,style:{display:"none"},ref:K=>{this.postForm=K},...this.props.redirectFromTopWhenInIframe&&detectInIframeInSameOrigin_t()&&{target:"_top"}},Object.keys(J).map(K=>(0,eo.az)("input",{type:"hidden",name:K,key:K,value:J[K]}))):null}};function RedirectButton_n({label:K=null,icon:G=null,payButton:J,onSubmit:et,amount:er=null,name:en,showPayButton:ei,...es}){let{i18n:el}=(0,eY.m)(),[ec,eu]=(0,eH.eJ)("ready");if(this.setStatus=K=>{eu(K)},ei)return(0,eo.az)(eo.HY,null,J({...es,status:ec,icon:G,classNameModifiers:["standalone"],label:K||(er&&({}).hasOwnProperty.call(er,"value")&&0===er.value?`${el.get("preauthorizeWith")} ${en}`:`${el.get("continueTo")} ${en}`),onClick:et}))}let Redirect_n=class Redirect_n extends eq.u{static type=eJ.C.redirect;static defaultProps={type:Redirect_n.type};formatData(){return{paymentMethod:{type:this.type},browserInfo:this.browserInfo}}get isValid(){return!0}get browserInfo(){return(0,eV.Z)()}render(){return this.props.url&&this.props.method?(0,eo.az)(RedirectShopper_r,{url:this.props.url,...this.props}):this.props.showPayButton?(0,eo.az)(eY.k,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},(0,eo.az)(RedirectButton_n,{...this.props,showPayButton:this.props.showPayButton,name:this.displayName,onSubmit:this.submit,payButton:this.payButton,ref:K=>{this.componentRef=K}})):null}};let eX={[eJ.C.redirect]:Redirect_n,[eJ.C.threeDS2Challenge]:C,[eJ.C.threeDS2DeviceFingerprint]:ThreeDS2DeviceFingerprint_h};var e0=new class{componentsMap=eX;supportedTxVariants=new Set(Object.values(eJ.C));add(...K){this.componentsMap={...this.componentsMap,...this.createComponentsMap(K)}}getComponent(K){let G=this.componentsMap[K];return G||(this.supportedTxVariants.has(K)?void 0:Redirect_n)}createComponentsMap(K){return K.reduce((K,G)=>("string"==typeof G.type&&G.type?"dropin"===G.type||[G.type,...G.txVariants].filter(K=>K).forEach(J=>{K={...K,[J]:G}}):console.error("CoreRegistry: Attempt to register Class failed. The Class is not a valid UIElement"),K),{})}},e1=J(54406);async function get_translations_t(K,G,J){try{return await (0,eM.kA)({loadingContext:K,errorLevel:"fatal",errorMessage:`Translations: Failed to fetch translations for locale "${J}"`,path:`sdk/${G}/translations/${J}.json`})}catch(et){return await (0,eM.kA)({loadingContext:K,errorLevel:"fatal",errorMessage:`Translations: Couldn't fetch translation for locale "${J}" nor the fallback translation "en-US"`,path:`sdk/${G}/translations/en-US.json`})}}let e2={exposeLibraryMetadata:!0,showPayButton:!0},e4={test:"https://checkoutshopper-test.adyen.com/checkoutshopper/",live:"https://checkoutshopper-live.adyen.com/checkoutshopper/","live-us":"https://checkoutshopper-live-us.adyen.com/checkoutshopper/","live-au":"https://checkoutshopper-live-au.adyen.com/checkoutshopper/","live-apse":"https://checkoutshopper-live-apse.adyen.com/checkoutshopper/","live-in":"https://checkoutshopper-live-in.adyen.com/checkoutshopper/",fallback:"https://checkoutshopper-live.adyen.com/checkoutshopper/"},e5={test:"https://checkoutshopper-test.cdn.adyen.com/checkoutshopper/",live:"https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/","live-us":"https://checkoutshopper-live-us.cdn.adyen.com/checkoutshopper/","live-au":"https://checkoutshopper-live-au.cdn.adyen.com/checkoutshopper/","live-apse":"https://checkoutshopper-live-apse.cdn.adyen.com/checkoutshopper/","live-in":"https://checkoutshopper-live-in.cdn.adyen.com/checkoutshopper/",fallback:"https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/"},e6={test:"https://checkoutanalytics-test.adyen.com/checkoutanalytics/",live:"https://checkoutanalytics-live.adyen.com/checkoutanalytics/","live-us":"https://checkoutanalytics-live-us.adyen.com/checkoutanalytics/","live-au":"https://checkoutanalytics-live-au.adyen.com/checkoutanalytics/","live-apse":"https://checkoutanalytics-live-apse.adyen.com/checkoutanalytics/","live-in":"https://checkoutanalytics-live-in.adyen.com/checkoutanalytics/",fallback:"https://checkoutanalytics-live.adyen.com/checkoutanalytics/"},Environment_t=(K,G,J)=>J||G[K?.toLowerCase()]||G.fallback,Environment_l=(K,G)=>({apiUrl:Environment_t(K,e4,G?.api),analyticsUrl:Environment_t(K,e6,G?.analytics),cdnImagesUrl:Environment_t(K,e5,G?.cdn?.images),cdnTranslationsUrl:Environment_t(K,e5,G?.cdn?.translations)});let P=class P{session;paymentMethodsResponse;modules;options;analyticsContext;loadingContext;cdnImagesUrl;cdnTranslationsUrl;components=[];static metadata={version:"6.2.0",bundleType:"esm"};static registry=e0;static setBundleType(K){P.metadata.bundleType=K}static register(...K){e0.add(...K)}register(...K){e0.add(...K)}getComponent(K){return e0.getComponent(K)}constructor(K){(function(K){let G=["session","environment","_environmentUrls","showPayButton","clientKey","locale","translations","paymentMethodsResponse","amount","secondaryAmount","countryCode","allowPaymentMethods","removePaymentMethods","srConfig","analytics","risk","order","exposeLibraryMetadata","beforeRedirect","beforeSubmit","onPaymentCompleted","onPaymentFailed","onSubmit","onAdditionalDetails","onActionHandled","onChange","onError","onBalanceCheck","onOrderRequest","onPaymentMethodsRequest","onOrderCancel","onOrderUpdated","loadingContext","onEnterKeyPressed"];
89Object.keys(K).forEach(K=>{G.includes(K)||console.warn(`AdyenCheckout - Configuration property "${K}" is not a valid AdyenCheckout property. If it is a payment method configuration, make sure to pass it directly to the Component. If you are using Drop-in, make sure to pass it to "paymentMethodsConfiguration" object`)})})(K),this.createFromAction=this.createFromAction.bind(this),this.setOptions({...e2,...K});let{apiUrl:G,analyticsUrl:J,cdnImagesUrl:et,cdnTranslationsUrl:er}=Environment_l(this.options.environment,this.options._environmentUrls);this.loadingContext=G,this.analyticsContext=J,this.cdnImagesUrl=et,this.cdnTranslationsUrl=er,this.session=this.options.session&&new CheckoutSession_c(this.options.session,this.options.clientKey,this.loadingContext);let ei=this.options.clientKey?.substring(0,4);if(("test"===ei||"live"===ei)&&!this.loadingContext.includes(ei))throw new en.ZP("IMPLEMENTATION_ERROR",`Error: you are using a ${ei} clientKey against the ${this.options._environmentUrls?.api||this.options.environment} environment`);"pub."===ei&&console.debug(`The value you are passing as your "clientKey" looks like an originKey (${this.options.clientKey?.substring(0,12)}..). Although this is supported it is not the recommended way to integrate. To generate a clientKey, see the documentation (https://docs.adyen.com/development-resources/client-side-authentication/migrate-from-origin-key-to-client-key/) for more details.`),this.options.exposeLibraryMetadata&&(window.AdyenWebMetadata=P.metadata)}async initialize(){return await this.initializeCore(),this.validateCoreConfiguration(),await this.createCoreModules(),this}async initializeCore(){return this.session?this.session.setupSession(this.options).then(K=>{let{amount:G,shopperLocale:J,countryCode:et,paymentMethods:er,...en}=K;return this.setOptions({...en,amount:this.options.order?this.options.order.remainingAmount:G,locale:this.options.locale||J,countryCode:this.options.countryCode||et}),this.createPaymentMethodsList(er),this}).catch(K=>(this.options.onError&&this.options.onError(K),Promise.reject(K))):(this.createPaymentMethodsList(),Promise.resolve(this))}async fetchLocaleTranslations(){try{return await get_translations_t(this.cdnTranslationsUrl,P.metadata.version,this.options.locale)}catch(K){K instanceof en.ZP?this.options.onError?.(K):this.options.onError?.(new en.ZP("ERROR","Failed to fetch translation",{cause:K}))}}validateCoreConfiguration(){if(this.options.paymentMethodsConfiguration&&console.warn('WARNING:  "paymentMethodsConfiguration" is supported only by Drop-in.'),!this.options.countryCode)throw new en.ZP(en.k7,"You must specify a countryCode when initializing checkout.");this.options.locale||this.setOptions({locale:"en-US"}),this.options.locale=e(this.options.locale),this.options.translations=function(K={}){return Object.keys(K).reduce((G,J)=>(G[e(J)]=K[J],G),{})}(this.options.translations)}submitDetails(K){let G=null;this.options.onAdditionalDetails&&(G=new Promise((G,J)=>{this.options.onAdditionalDetails({data:K},void 0,{resolve:G,reject:J})})),this.session&&(G=this.session.submitDetails(K).catch(K=>(this.options.onError?.(K),Promise.reject(K)))),G?G.then(e1.Jp).then(e1.sq).then(K=>{(0,e1.YZ)(K),this.options.onPaymentCompleted?.(K)}).catch(K=>{(0,e1.YZ)(K),this.options.onPaymentFailed?.(K)}):this.options.onError?.(new en.ZP("IMPLEMENTATION_ERROR",'It can not submit the details. The callback "onAdditionalDetails" or the Session is not setup correctly.'))}createFromAction(K,G={}){if(!K||!K.type){if((0,ep.n)(K,"action")&&(0,ep.n)(K,"resultCode"))throw Error('createFromAction::Invalid Action - the passed action object itself has an "action" property and a "resultCode": have you passed in the whole response object by mistake?');throw Error('createFromAction::Invalid Action - the passed action object does not have a "type" property')}if(K.type){let J=K.type===e_?`${K.type}${K.subtype}`:K.paymentMethodType;this.modules.analytics.sendAnalytics(J,{type:eN.QW,subtype:K.type,message:`${J} action was handled by the SDK`});let et={...this.getCorePropsForComponent(),...G};return function(K,G,J,et={}){let er=eD[J.type];if(er&&"function"==typeof er)return er(K,G,J,et);throw Error("Invalid Action")}(this,e0,K,et)}return this.handleCreateError()}update=(K={})=>(this.setOptions(K),this.initialize().then(()=>
89(this.components.forEach(G=>{let J={...K,...this.session&&{session:this.session}};G.update(J)}),this)));remove=K=>(this.components=this.components.filter(G=>G._id!==K._id),K.unmount(),this);setOptions=K=>{this.options={...this.options,...K,locale:K?.locale||this.options?.locale}};getCorePropsForComponent(){var K;return{...Object.keys(K=this.options).reduce((G,J)=>(ej.Dv.includes(J)&&(G[J]=K[J]),G),{}),core:this,i18n:this.modules.i18n,modules:this.modules,session:this.session,loadingContext:this.loadingContext,cdnContext:this.cdnImagesUrl,createFromAction:this.createFromAction}}storeElementReference(K){K&&this.components.push(K)}handleCreateError(K){let G=K?`${K?.name??"The passed payment method"} is not a valid Checkout Component. What was passed as a txVariant was: ${JSON.stringify(K)}. Check if this payment method is configured in the Backoffice or if the txVariant is a valid one`:"No Payment Method component was passed";throw Error(G)}createPaymentMethodsList(K){this.paymentMethodsResponse=new PaymentMethods_o(this.options.paymentMethodsResponse||K,this.options)}async createCoreModules(){if(this.modules)return;let K=await this.fetchLocaleTranslations();this.modules=Object.freeze({risk:new RiskModule_i(this,{...this.options,loadingContext:this.loadingContext}),analytics:Analytics_d({loadingContext:this.loadingContext,analyticsContext:this.analyticsContext,clientKey:this.options.clientKey,locale:this.options.locale,analytics:this.options.analytics,amount:this.options.amount,bundleType:P.metadata.bundleType}),resources:new Resources_r(this.cdnImagesUrl),i18n:new a({locale:this.options.locale,translations:K,customTranslations:this.options.translations}),srPanel:new SRPanel_o(this,{...this.options.srConfig})})}};async function AdyenCheckout_t(K){let G=new P(K);return await G.initialize()}AdyenCheckout_t.register=(...K)=>{P.register(...K)},AdyenCheckout_t.setBundleType=K=>{P.setBundleType(K)}},29963:function(K,G,J){"use strict";J.d(G,{$r:function(){return eA},Ai:function(){return eO},Ee:function(){return el},FG:function(){return ev},Gi:function(){return eP},K6:function(){return eE},NE:function(){return eS},QW:function(){return eh},R3:function(){return es},Sb:function(){return eu},Su:function(){return eb},U2:function(){return ed},Yg:function(){return eC},_5:function(){return ef},cE:function(){return ep},c_:function(){return em},d2:function(){return eT},hf:function(){return e_},iN:function(){return ey},k3:function(){return ec},lA:function(){return ei},nS:function(){return eg},oc:function(){return en},rK:function(){return ek},rr:function(){return eI},xe:function(){return ew}});var et,er,en,ei,eo=J(57381);let es="v3/analytics",el=1e4,ec="log",eu="error",ed="info",eh="action",ep="submit",ef="selected",eg="rendered",em="displayed",ey="input",ev="download",eb="validationError",eC="focus",ew="unfocus",e_="configured",eS="instant_payment_button",ek="ApiError",eA="SdkError",eE="Network";(et=en||(en={})).ACTION_IS_MISSING_PAYMENT_DATA="700",et.ACTION_IS_MISSING_TOKEN="701",et.TOKEN_IS_MISSING_THREEDSMETHODURL="702",et.TOKEN_IS_MISSING_OTHER_PROPS="703",et.TOKEN_DECODE_OR_PARSING_FAILED="704",et.THREEDS2_TIMEOUT="705",et.TOKEN_IS_MISSING_ACSURL="800",et.NO_TRANSSTATUS="801",et.NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED="802",et.NO_COMPONENT_FOR_ACTION="803",et.NO_ACTION_FOR_CHALLENGE="804",et.CHALLENGE_RESOLVED_WITHOUT_RESULT_PROP="805",(er=ei||(ei={})).FINGERPRINT_DATA_SENT="fingerprintDataSentWeb",er.FINGERPRINT_IFRAME_LOADED="fingerprintIframeLoaded",er.FINGERPRINT_COMPLETED="fingerprintCompleted",er.CHALLENGE_DATA_SENT="challengeDataSentWeb",er.CHALLENGE_IFRAME_LOADED="challengeIframeLoaded",er.CHALLENGE_COMPLETED="challengeCompleted";let eT={[eo.oV]:"925",[eo.Kq]:"942",[eo.km]:"926",[`${eo.mu}.country`]:"930",[`${eo.mu}.street`]:"931",[`${eo.mu}.house_number_or_name`]:"932",[`${eo.mu}.postal_code`]:"933",[`${eo.mu}.city`]:"935",[`${eo.mu}.state_or_province`]:"936",[`${eo.bw}.postal_code`]:"934"},eI=["cart","minicart","pdp","checkout"],eP=["applicationInfo","checkoutAttemptId"],eO="fetch-checkoutAttemptId-failed"},1087:function(K,G,J){"use strict";J.d(G,{k:function(){return n},m:function(){return a}});
89var et=J(57703),er=J(38482);let en=(0,et.kr)(void 0),n=({i18n:K,loadingContext:G,resources:J,children:ei})=>((0,er.d4)(()=>{K&&G&&J||console.error("CoreProvider - WARNING core provider is missing one of the following: i18n, loadingContext or resources")},[K,G,J]),(0,et.az)(en.Provider,{value:{i18n:K,loadingContext:G,resources:J}},(0,et.bR)(ei))),a=()=>{let K=(0,er.qp)(en);if(void 0===K)throw Error('"useCoreContext" must be used within a CoreProvider');return K}},13064:function(K,G,J){"use strict";J.d(G,{Z:function(){return e}});var et=J(1087),er=J(38482);function e(){let{resources:K}=(0,et.m)();return(0,er.I4)(G=>K?.getImage(G),[])}},11134:function(K,G,J){"use strict";J.d(G,{ZP:function(){return T},j5:function(){return er},k7:function(){return et},nd:function(){return ei},pn:function(){return en}});let et="IMPLEMENTATION_ERROR",er="API_ERROR",en="ERROR",ei="SDK_ERROR";let T=class T extends Error{static errorTypes={NETWORK_ERROR:"NETWORK_ERROR",CANCEL:"CANCEL",IMPLEMENTATION_ERROR:et,API_ERROR:er,ERROR:en,SCRIPT_ERROR:"SCRIPT_ERROR",SDK_ERROR:ei};cause;constructor(K,G,J){super(G),this.name=T.errorTypes[K],this.cause=J?.cause}}},57381:function(K,G,J){"use strict";J.d(G,{Df:function(){return es},Kq:function(){return eh},Ty:function(){return en},bw:function(){return eu},fy:function(){return el},km:function(){return ep},mu:function(){return ec},oV:function(){return ed},oc:function(){return ef},pv:function(){return ei}});var et,er,en,ei,eo=J(93556);let es="-ariaError",el="-ariaContext",ec="field.error.required",eu="invalid.format.expects",ed="creditCard.holderName.invalid",eh="creditCard.taxNumber.invalid",ep="boleto.socialSecurityNumber.invalid";(et=en||(en={})).CC_NUM="cc.num",et.CC_DAT="cc.dat",et.CC_MTH="cc.mth",et.CC_YR="cc.yr",et.CC_CVC="cc.cvc",et.KCP_PWD="kcp.pwd",et.ACH_NUM="ach.num",et.ACH_LOC="ach.loc",(er=ei||(ei={})).ERROR_MSG_INCOMPLETE_FIELD="err.gen.9100",er.ERROR_MSG_INVALID_FIELD="err.gen.9101",er.ERROR_MSG_LUHN_CHECK_FAILED="cc.num.902",er.ERROR_MSG_EMPTY_PAN="cc.num.900",er.ERROR_MSG_UNSUPPORTED_CARD_ENTERED="cc.num.903",er.ERROR_MSG_INCORRECTLY_FILLED_PAN="cc.num.901",er.ERROR_MSG_CARD_TOO_OLD="cc.dat.912",er.ERROR_MSG_CARD_TOO_FAR_IN_FUTURE="cc.dat.913",er.ERROR_MSG_CARD_EXPIRES_TOO_SOON="cc.dat.914",er.ERROR_MSG_EMPTY_DATE="cc.dat.910",er.ERROR_MSG_INCORRECTLY_FILLED__DATE="cc.dat.911",er.ERROR_MSG_EMPTY_YEAR="cc.yr.917",er.ERROR_MSG_INCORRECTLY_FILLED_YEAR="cc.yr.918",er.ERROR_MSG_EMPTY_MONTH="cc.mth.915",er.ERROR_MSG_EMPTY_CVC="cc.cvc.920",er.ERROR_MSG_INCORRECTLY_FILLED_CVC="cc.cvc.921",er.ERROR_MSG_EMPTY_KCP_PWD="kcp.pwd.940",er.ERROR_MSG_INCORRECTLY_FILLED_KCP_PWD="kcp.pwd.941",er.ERROR_MSG_EMPTY_ACH_ACCOUNT_NUMBER="ach.num.945",er.ERROR_MSG_INCORRECTLY_FILLED_ACH_ACCOUNT_NUMBER="ach.num.946",er.ERROR_MSG_EMPTY_ACH_BANK_LOCATION_ID="ach.loc.947",er.ERROR_MSG_INCORRECTLY_FILLED_ACH_BANK_LOCATION_ID="ach.loc.948";let ef={[eo.o1]:"cc.num.900",[eo.tj]:"cc.dat.910",[eo.LC]:"cc.mth.915",[eo.L0]:"cc.yr.917",[eo.Ph]:"cc.cvc.920",[eo.gb]:"kcp.pwd.940",[eo.Rl]:"ach.num.945",[eo.y5]:"ach.loc.947"}},42549:function(K,G,J){"use strict";J.d(G,{Ko:function(){return i},kA:function(){return a}});var et=J(39650),er=J(11134);function t(K,G){let{headers:J=[],errorLevel:en="warn",loadingContext:ei=et.zh,method:eo="GET",path:es,timeout:el=et.jz}=K,ec={method:eo,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"POST"===eo?"application/json":"text/plain",...J},redirect:"follow",referrerPolicy:"no-referrer-when-downgrade",...AbortSignal?.timeout&&{signal:AbortSignal?.timeout(el)},...G&&{body:JSON.stringify(G)}},eu=`${ei}${es}`;return fetch(eu,ec).then(async G=>{let J=await G.json();return G.ok?J:J&&J.errorCode&&J.errorType&&J.message&&J.status?void n(J.message,en,J):void n(K.errorMessage||`Service at ${eu} is not available`,en,J)}).catch(G=>{if(G instanceof er.ZP)throw G;n(K.errorMessage||`Call to ${eu} failed. Error= ${G}`,en,G)})}function n(K,G,J){switch(G){case"silent":break;case"info":case"warn":case"error":console[G](K);break;
89default:throw new er.ZP("NETWORK_ERROR",K,{cause:J})}}function a(K,G){return t({...K,method:"GET"},G)}function i(K,G){return t({...K,method:"POST"},G)}},39650:function(K,G,J){"use strict";J.d(G,{Dv:function(){return er},jz:function(){return en},zh:function(){return et}});let et="https://checkoutshopper-live.adyen.com/checkoutshopper/",er=["amount","secondaryAmount","countryCode","environment","_environmentUrls","loadingContext","i18n","modules","order","session","clientKey","showPayButton","redirectFromTopWhenInIframe","onPaymentCompleted","onPaymentFailed","beforeRedirect","beforeSubmit","onSubmit","onActionHandled","onAdditionalDetails","onChange","onEnterKeyPressed","onError","onBalanceCheck","onOrderCancel","onOrderRequest","onOrderUpdated","onPaymentMethodsRequest"],en=6e4},27957:function(K,G,J){"use strict";J.d(G,{Z:function(){return en}});var et,er={exports:{}};!function(){var K={}.hasOwnProperty;function t(){for(var G="",J=0;J<arguments.length;J++){var et=arguments[J];et&&(G=e(G,function(G){if("string"==typeof G||"number"==typeof G)return G;if("object"!=typeof G)return"";if(Array.isArray(G))return t.apply(null,G);if(G.toString!==Object.prototype.toString&&!G.toString.toString().includes("[native code]"))return G.toString();var J="";for(var et in G)K.call(G,et)&&G[et]&&(J=e(J,et));return J}(et)))}return G}function e(K,G){return G?K?K+" "+G:K+G:K}
89er.exports?(t.default=t,er.exports=t):window.classNames=t}();var en=(et=er.exports)&&et.__esModule&&Object.prototype.hasOwnProperty.call(et,"default")?et.default:et},57703:function(K,G,J){"use strict";J.d(G,{HY:function(){return g},Tm:function(){return $},YM:function(){return er},az:function(){return y},bR:function(){return function T(K,G){return G=G||[],null==K||"boolean"==typeof K||(em(K)?K.some(function(K){T(K,G)}):G.push(K)),G}},kr:function(){return O},sY:function(){return R},wA:function(){return k}});var et,er,en,ei,eo,es,el,ec,eu,ed,eh,ep={},ef=[],eg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,em=Array.isArray;function d(K,G){for(var J in G)K[J]=G[J];return K}function v(K){var G=K.parentNode;G&&G.removeChild(K)}function y(K,G,J){var er,en,ei,eo={};for(ei in G)"key"==ei?er=G[ei]:"ref"==ei?en=G[ei]:eo[ei]=G[ei];if(arguments.length>2&&(eo.children=arguments.length>3?et.call(arguments,2):J),"function"==typeof K&&null!=K.defaultProps)for(ei in K.defaultProps)void 0===eo[ei]&&(eo[ei]=K.defaultProps[ei]);return m(K,eo,er,en,null)}function m(K,G,J,et,ei){var eo={type:K,props:G,key:J,ref:et,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==ei?++en:ei,__i:-1,__u:0};return null==ei&&null!=er.vnode&&er.vnode(eo),eo}function g(K){return K.children}function k(K,G){this.props=K,this.context=G}function b(K,G){if(null==G)return K.__?b(K.__,K.__i+1):null;for(var J;G<K.__k.length;G++)if(null!=(J=K.__k[G])&&null!=J.__e)return J.__e;return"function"==typeof K.type?b(K):null}function C(K){(!K.__d&&(K.__d=!0)&&ei.push(K)&&!x.__r++||eo!==er.debounceRendering)&&((eo=er.debounceRendering)||es)(x)}function x(){var K,G,J,et,en,eo,es,ec;for(ei.sort(el);K=ei.shift();)K.__d&&(G=ei.length,et=void 0,eo=(en=(J=K).__v).__e,es=[],ec=[],J.__P&&((et=d({},en)).__v=en.__v+1,er.vnode&&er.vnode(et),L(J.__P,et,en,J.__n,J.__P.namespaceURI,32&en.__u?[eo]:null,es,null==eo?b(en):eo,!!(32&en.__u),ec),et.__v=en.__v,et.__.__k[et.__i]=et,F(es,et,ec),et.__e!=eo&&function w(K){var G,J;if(null!=(K=K.__)&&null!=K.__c){for(K.__e=K.__c.base=null,G=0;G<K.__k.length;G++)if(null!=(J=K.__k[G])&&null!=J.__e){K.__e=K.__c.base=J.__e;break}return w(K)}}(et)),ei.length>G&&ei.sort(el));x.__r=0}function P(K,G,J,et,er,en,ei,eo,es,el,ec){var eu,ed,eh,eg,ey,ev=et&&et.__k||ef,eb=G.length;for(J.__d=es,function(K,G,J){var et,er,en,ei,eo,es=G.length,el=J.length,ec=el,eu=0;for(K.__k=[],et=0;et<es;et++)ei=et+eu,null!=(er=K.__k[et]=null==(er=G[et])||"boolean"==typeof er||"function"==typeof er?null:"string"==typeof er||"number"==typeof er||"bigint"==typeof er||er.constructor==String?m(null,er,null,null,null):em(er)?m(g,{children:er},null,null,null):void 0===er.constructor&&er.__b>0?m(er.type,er.props,er.key,er.ref?er.ref:null,er.__v):er)?(er.__=K,er.__b=K.__b+1,eo=function(K,G,J,et){var er=K.key,en=K.type,ei=J-1,eo=J+1,es=G[J];if(null===es||es&&er==es.key&&en===es.type&&!(131072&es.__u))return J;if(et>(null==es||131072&es.__u?0:1))for(;ei>=0||eo<G.length;){if(ei>=0){if((es=G[ei])&&!(131072&es.__u)&&er==es.key&&en===es.type)return ei;ei--}if(eo<G.length){if((es=G[eo])&&!(131072&es.__u)&&er==es.key&&en===es.type)return eo;eo++}}return -1}(er,J,ei,ec),er.__i=eo,en=null,-1!==eo&&(ec--,(en=J[eo])&&(en.__u|=131072)),null==en||null===en.__v?(-1==eo&&eu--,"function"!=typeof er.type&&(er.__u|=65536)):eo!==ei&&(eo==ei-1?eu=eo-ei:eo==ei+1?eu++:eo>ei?ec>es-ei?eu+=eo-ei:eu--:eo<ei&&eu++,eo!==et+eu&&(er.__u|=65536))):(en=J[ei])&&null==en.key&&en.__e&&!(131072&en.__u)&&(en.__e==K.__d&&(K.__d=b(en)),H(en,en,!1),J[ei]=null,ec--);if(ec)for(et=0;et<el;et++)null==(en=J[et])||131072&en.__u||(en.__e==K.__d&&(K.__d=b(en)),H(en,en))}(J,G,ev),es=J.__d,eu=0;eu<eb;eu++)null!=(eh=J.__k[eu])&&"boolean"!=typeof eh&&"function"!=typeof eh&&(ed=-1===eh.__i?ep:ev[eh.__i]||ep,eh.__i=eu,L(K,eh,ed,er,en,ei,eo,es,el,ec),eg=eh.__e,eh.ref&&ed.ref!=eh.ref&&(ed.ref&&A(ed.ref,null,eh),ec.push(eh.ref,eh.__c||eg,eh)),null==ey&&null!=eg&&(ey=eg),65536&eh.__u||ed.__k===eh.__k?(es&&"string"==typeof eh.type&&!K.contains(es)&&(es=b(ed)),es=function U(K,G,J){var et,er;if("function"==typeof K.type){for(et=K.__k,er=0;et&&er<et.length;er++)et[er]&&(et[er].__=K,G=U(et[er],G,J));return G}K.__e!=G&&(J.insertBefore(K.__e,G||null),G=K.__e);do G=G&&G.nextSibling;while(null!=G&&8===G.nodeType);return G}(eh,es,K)):"function"==typeof eh.type&&void 0!==eh.__d?es=eh.__d:eg&&(es=eg.nextSibling),eh.__d=void 0,eh.__u&=-196609);
vendor: 5,470 bytes, line 89
89J.__d=es,J.__e=ey}function M(K,G,J){"-"===G[0]?K.setProperty(G,null==J?"":J):K[G]=null==J?"":"number"!=typeof J||eg.test(G)?J:J+"px"}function E(K,G,J,et,er){var en;t:if("style"===G){if("string"==typeof J)K.style.cssText=J;else{if("string"==typeof et&&(K.style.cssText=et=""),et)for(G in et)J&&G in J||M(K.style,G,"");if(J)for(G in J)et&&J[G]===et[G]||M(K.style,G,J[G])}}else if("o"===G[0]&&"n"===G[1])en=G!==(G=G.replace(/(PointerCapture)$|Capture$/i,"$1")),G=G.toLowerCase() in K||"onFocusOut"===G||"onFocusIn"===G?G.toLowerCase().slice(2):G.slice(2),K.l||(K.l={}),K.l[G+en]=J,J?et?J.u=et.u:(J.u=ec,K.addEventListener(G,en?ed:eu,en)):K.removeEventListener(G,en?ed:eu,en);else{if("http://www.w3.org/2000/svg"==er)G=G.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=G&&"height"!=G&&"href"!=G&&"list"!=G&&"form"!=G&&"tabIndex"!=G&&"download"!=G&&"rowSpan"!=G&&"colSpan"!=G&&"role"!=G&&"popover"!=G&&G in K)try{K[G]=null==J?"":J;break t}catch(K){}"function"==typeof J||(null==J||!1===J&&"-"!==G[4]?K.removeAttribute(G):K.setAttribute(G,"popover"==G&&1==J?"":J))}}function W(K){return function(G){if(this.l){var J=this.l[G.type+K];if(null==G.t)G.t=ec++;else if(G.t<J.u)return;return J(er.event?er.event(G):G)}}}function L(K,G,J,en,ei,eo,es,el,ec,eu){var ed,eh,ef,eg,ey,ev,eb,eC,ew,e_,eS,ek,eA,eE,eT,eI,eP=G.type;if(void 0!==G.constructor)return null;128&J.__u&&(ec=!!(32&J.__u),eo=[el=G.__e=J.__e]),(ed=er.__b)&&ed(G);t:if("function"==typeof eP)try{if(eC=G.props,ew="prototype"in eP&&eP.prototype.render,e_=(ed=eP.contextType)&&en[ed.__c],eS=ed?e_?e_.props.value:ed.__:en,J.__c?eb=(eh=G.__c=J.__c).__=eh.__E:(ew?G.__c=eh=new eP(eC,eS):(G.__c=eh=new k(eC,eS),eh.constructor=eP,eh.render=I),e_&&e_.sub(eh),eh.props=eC,eh.state||(eh.state={}),eh.context=eS,eh.__n=en,ef=eh.__d=!0,eh.__h=[],eh._sb=[]),ew&&null==eh.__s&&(eh.__s=eh.state),ew&&null!=eP.getDerivedStateFromProps&&(eh.__s==eh.state&&(eh.__s=d({},eh.__s)),d(eh.__s,eP.getDerivedStateFromProps(eC,eh.__s))),eg=eh.props,ey=eh.state,eh.__v=G,ef)ew&&null==eP.getDerivedStateFromProps&&null!=eh.componentWillMount&&eh.componentWillMount(),ew&&null!=eh.componentDidMount&&eh.__h.push(eh.componentDidMount);else{if(ew&&null==eP.getDerivedStateFromProps&&eC!==eg&&null!=eh.componentWillReceiveProps&&eh.componentWillReceiveProps(eC,eS),!eh.__e&&(null!=eh.shouldComponentUpdate&&!1===eh.shouldComponentUpdate(eC,eh.__s,eS)||G.__v===J.__v)){for(G.__v!==J.__v&&(eh.props=eC,eh.state=eh.__s,eh.__d=!1),G.__e=J.__e,G.__k=J.__k,G.__k.forEach(function(K){K&&(K.__=G)}),ek=0;ek<eh._sb.length;ek++)eh.__h.push(eh._sb[ek]);eh._sb=[],eh.__h.length&&es.push(eh);break t}null!=eh.componentWillUpdate&&eh.componentWillUpdate(eC,eh.__s,eS),ew&&null!=eh.componentDidUpdate&&eh.__h.push(function(){eh.componentDidUpdate(eg,ey,ev)})}if(eh.context=eS,eh.props=eC,eh.__P=K,eh.__e=!1,eA=er.__r,eE=0,ew){for(eh.state=eh.__s,eh.__d=!1,eA&&eA(G),ed=eh.render(eh.props,eh.state,eh.context),eT=0;eT<eh._sb.length;eT++)eh.__h.push(eh._sb[eT]);eh._sb=[]}else do eh.__d=!1,eA&&eA(G),ed=eh.render(eh.props,eh.state,eh.context),eh.state=eh.__s;while(eh.__d&&++eE<25);eh.state=eh.__s,null!=eh.getChildContext&&(en=d(d({},en),eh.getChildContext())),ew&&!ef&&null!=eh.getSnapshotBeforeUpdate&&(ev=eh.getSnapshotBeforeUpdate(eg,ey)),P(K,em(eI=null!=ed&&ed.type===g&&null==ed.key?ed.props.children:ed)?eI:[eI],G,J,en,ei,eo,es,el,ec,eu),eh.base=G.__e,G.__u&=-161,eh.__h.length&&es.push(eh),eb&&(eh.__E=eh.__=null)}catch(K){G.__v=null,ec||null!=eo?(G.__e=el,G.__u|=ec?160:32,eo[eo.indexOf(el)]=null):(G.__e=J.__e,G.__k=J.__k),er.__e(K,G,J)}else null==eo&&G.__v===J.__v?(G.__k=J.__k,G.__e=J.__e):G.__e=function(K,G,J,er,en,ei,eo,es,el){var ec,eu,ed,eh,ef,eg,ey,ev=J.props,eb=G.props,eC=G.type;if("svg"===eC?en="http://www.w3.org/2000/svg":"math"===eC?en="http://www.w3.org/1998/Math/MathML":en||(en="http://www.w3.org/1999/xhtml"),null!=ei){for(ec=0;ec<ei.length;ec++)if((ef=ei[ec])&&"setAttribute"in ef==!!eC&&(eC?ef.localName===eC:3===ef.nodeType)){K=ef,ei[ec]=null;break}}if(null==K){if(null===eC)return document.createTextNode(eb);K=document.createElementNS(en,eC,eb.is&&eb),ei=null,es=!1}if(null===eC)ev===eb||es&&K.data===eb||(K.data=eb);else{if(ei=ei&&et.call(K.childNodes),ev=J.props||ep,!es&&null!=ei)for(ev={},ec=0;ec<K.attributes.length;ec++)ev[(ef=K.attributes[ec]).name]=ef.value;for(ec in ev)if(ef=ev[ec],"children"==ec);else if("dangerouslySetInnerHTML"==ec)ed=ef;else if("key"!==ec&&!(ec in eb)){if("value"==ec&&"defaultValue"in eb||"checked"==ec&&"defaultChecked"in eb)continue;E(K,ec,null,ef,en)}for(ec in eb)ef=eb[ec],"children"==ec?eh=ef:"dangerouslySetInnerHTML"==ec?eu=ef:"value"==ec?eg=ef:"checked"==ec?ey=ef:"key"===ec||es&&"function"!=typeof ef||ev[ec]===ef||E(K,ec,ef,ev[ec],en);if(eu)es||ed&&(eu.__html===ed.__html||eu.__html===K.innerHTML)||(K.innerHTML=eu.__html),G.__k=[];else if(ed&&(K.innerHTML=""),P(K,em(eh)?eh:[eh],G,J,er,"foreignObject"===eC?"http://www.w3.org/1999/xhtml":en,ei,eo,ei?ei[0]:J.__k&&b(J,0),es,el),null!=ei)for(ec=ei.length;ec--;)null!=ei[ec]&&v(ei[ec]);es||(ec="value",void 0===eg||eg===K[ec]&&("progress"!==eC||eg)&&("option"!==eC||eg===ev[ec])||E(K,ec,eg,ev[ec],en),ec="checked",void 0!==ey&&ey!==K[ec]&&E(K,ec,ey,ev[ec],en))}return K}(J.__e,G,J,en,ei,eo,es,ec,eu);(ed=er.diffed)&&ed(G)}function F(K,G,J){G.__d=void 0;for(var et=0;et<J.length;et++)A(J[et],J[++et],J[++et]);er.__c&&er.__c(G,K),K.some(function(G){try{K=G.__h,G.__h=[],K.some(function(K){K.call(G)})}catch(K){er.__e(K,G.__v)}})}
89function A(K,G,J){try{"function"==typeof K?K(G):K.current=G}catch(K){er.__e(K,J)}}function H(K,G,J){var et,en;if(er.unmount&&er.unmount(K),(et=K.ref)&&(et.current&&et.current!==K.__e||A(et,null,G)),null!=(et=K.__c)){if(et.componentWillUnmount)try{et.componentWillUnmount()}catch(K){er.__e(K,G)}et.base=et.__P=null}if(et=K.__k)for(en=0;en<et.length;en++)et[en]&&H(et[en],G,J||"function"!=typeof K.type);J||null==K.__e||v(K.__e),K.__c=K.__=K.__e=K.__d=void 0}function I(K,G,J){return this.constructor(K,J)}function R(K,G,J){var en,ei,eo,es;er.__&&er.__(K,G),ei=(en="function"==typeof J)?null:G.__k,eo=[],es=[],L(G,K=(!en&&J||G).__k=y(g,null,[K]),ei||ep,ep,G.namespaceURI,!en&&J?[J]:ei?null:G.firstChild?et.call(G.childNodes):null,eo,!en&&J?J:ei?ei.__e:G.firstChild,en,es),F(eo,K,es)}function $(K,G,J){var er,en,ei,eo,es=d({},K.props);for(ei in K.type&&K.type.defaultProps&&(eo=K.type.defaultProps),G)"key"==ei?er=G[ei]:"ref"==ei?en=G[ei]:es[ei]=void 0===G[ei]&&void 0!==eo?eo[ei]:G[ei];return arguments.length>2&&(es.children=arguments.length>3?et.call(arguments,2):J),m(K.type,es,er||K.key,en||K.ref,null)}function O(K,G){var J={__c:G="__cC"+eh++,__:K,Consumer:function(K,G){return K.children(G)},Provider:function(K){var J,et;return this.getChildContext||(J=[],(et={})[G]=this,this.getChildContext=function(){return et},this.componentWillUnmount=function(){J=null},this.shouldComponentUpdate=function(K){this.props.value!==K.value&&J.some(function(K){K.__e=!0,C(K)})},this.sub=function(K){J.push(K);var G=K.componentWillUnmount;K.componentWillUnmount=function(){J&&J.splice(J.indexOf(K),1),G&&G.call(K)}}),K.children}};return J.Provider.__=J.Consumer.contextType=J}et=ef.slice,er={__e:function(K,G,J,et){for(var er,en,ei;G=G.__;)if((er=G.__c)&&!er.__)try{if((en=er.constructor)&&null!=en.getDerivedStateFromError&&(er.setState(en.getDerivedStateFromError(K)),ei=er.__d),null!=er.componentDidCatch&&(er.componentDidCatch(K,et||{}),ei=er.__d),ei)return er.__E=er}catch(G){K=G}throw K}},en=0,k.prototype.setState=function(K,G){var J;J=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof K&&(K=K(d({},J),this.props)),K&&d(J,K),null!=K&&this.__v&&(G&&this._sb.push(G),C(this))},k.prototype.forceUpdate=function(K){this.__v&&(this.__e=!0,K&&this.__h.push(K),C(this))},k.prototype.render=g,ei=[],es="function"==typeof Promise?Promise.prototype.then.bind(Prom
89ise.resolve()):setTimeout,el=function(K,G){return K.__v.__b-G.__v.__b},x.__r=0,ec=0,eu=W(!1),ed=W(!0),eh=0},38482:function(K,G,J){"use strict";J.d(G,{I4:function(){return y},Ye:function(){return N},_Y:function(){return p},d4:function(){return H},eJ:function(){return m},qp:function(){return A},sO:function(){return E}});var et,er,en,ei,eo=J(57703),es=0,el=[],ec=eo.YM,eu=ec.__b,ed=ec.__r,eh=ec.diffed,ep=ec.__c,ef=ec.unmount,eg=ec.__;function l(K,G){ec.__h&&ec.__h(er,K,es||G),es=0;var J=er.__H||(er.__H={__:[],__h:[]});return K>=J.__.length&&J.__.push({}),J.__[K]}function m(K){return es=1,p(U,K)}function p(K,G,J){var en=l(et++,2);if(en.t=K,!en.__c&&(en.__=[J?J(G):U(void 0,G),function(K){var G=en.__N?en.__N[0]:en.__[0],J=en.t(G,K);G!==J&&(en.__N=[J,en.__[1]],en.__c.setState({}))}],en.__c=er,!er.u)){var e=function(K,G,J){if(!en.__c.__H)return!0;var et=en.__c.__H.__.filter(function(K){return!!K.__c});if(et.every(function(K){return!K.__N}))return!ei||ei.call(this,K,G,J);var er=!1;return et.forEach(function(K){if(K.__N){var G=K.__[0];K.__=K.__N,K.__N=void 0,G!==K.__[0]&&(er=!0)}}),!(!er&&en.__c.props===K)&&(!ei||ei.call(this,K,G,J))};er.u=!0;var ei=er.shouldComponentUpdate,eo=er.componentWillUpdate;er.componentWillUpdate=function(K,G,J){if(this.__e){var et=ei;ei=void 0,e(K,G,J),ei=et}eo&&eo.call(this,K,G,J)},er.shouldComponentUpdate=e}return en.__N||en.__}function H(K,G){var J=l(et++,3);!ec.__s&&C(J.__H,G)&&(J.__=K,J.i=G,er.__H.__h.push(J))}function E(K){return es=5,N(function(){return{current:K}},[])}function N(K,G){var J=l(et++,7);return C(J.__H,G)&&(J.__=K(),J.__H=G,J.__h=K),J.__}function y(K,G){return es=8,N(function(){return K},G)}function A(K){var G=er.context[K.__c],J=l(et++,9);return J.c=K,G?(null==J.__&&(J.__=!0,G.sub(er)),G.props.value):K.__}function F(){for(var K;K=el.shift();)if(K.__P&&K.__H)try{K.__H.__h.forEach(k),K.__H.__h.forEach(q),K.__H.__h=[]}catch(G){K.__H.__h=[],ec.__e(G,K.__v)}}ec.__b=function(K){er=null,eu&&eu(K)},ec.__=function(K,G){K&&G.__k&&G.__k.__m&&(K.__m=G.__k.__m),eg&&eg(K,G)},ec.__r=function(K){ed&&ed(K),et=0;var G=(er=K.__c).__H;G&&(en===er?(G.__h=[],er.__h=[],G.__.forEach(function(K){K.__N&&(K.__=K.__N),K.i=K.__N=void 0})):(G.__h.forEach(k),G.__h.forEach(q),G.__h=[],et=0)),en=er},ec.diffed=function(K){eh&&eh(K);var G=K.__c;G&&G.__H&&(G.__H.__h.length&&(1!==el.push(G)&&ei===ec.requestAnimationFrame||((ei=ec.requestAnimationFrame)||function(K){var G,t=function(){clearTimeout(J),em&&cancelAnimationFrame(G),setTimeout(K)},J=setTimeout(t,100);em&&(G=requestAnimationFrame(t))})(F)),G.__H.__.forEach(function(K){K.i&&(K.__H=K.i),K.i=void 0})),en=er=null},ec.__c=function(K,G){G.some(function(K){try{K.__h.forEach(k),K.__h=K.__h.filter(function(K){return!K.__||q(K)})}catch(J){G.some(function(K){K.__h&&(K.__h=[])}),G=[],ec.__e(J,K.__v)}}),ep&&ep(K,G)},ec.unmount=function(K){ef&&ef(K);var G,J=K.__c;J&&J.__H&&(J.__H.__.forEach(function(K){try{k(K)}catch(K){G=K}}),J.__H=void 0,G&&ec.__e(G,J.__v))};var em="function"==typeof requestAnimationFrame;function k(K){var G=er,J=K.__c;"function"==typeof J&&(K.__c=void 0,J()),er=G}function q(K){var G=er;K.__c=K.__(),er=G}function C(K,G){return!K||K.length!==G.length||G.some(function(G,J){return G!==K[J]})}function U(K,G){return"function"==typeof G?G(K):G}},71306:function(K,G,J){"use strict";J.d(G,{Z:function(){return s}});var et=J(11134);let s=class s{src;node;attributes;dataAttributes;isScriptLoadCalled=!1;script;constructor(K,G="body",J={},et={}){this.src=K,this.node=G,this.attributes=J,this.dataAttributes=et}load=()=>{if(!this.isScriptLoadCalled)return new Promise((K,G)=>{let r=()=>{this.script.setAttribute("data-script-loaded","true"),K()},e=K=>{this.remove(),G(new et.ZP("SCRIPT_ERROR",`Unable to load script ${this.src}. Message: ${K.message}`,{cause:K.error}))};this.isScriptLoadCalled=!0;let J=document.querySelector(this.node);if(this.script=J.querySelector(`script[src="${this.src}"]`),this.script&&this.script.getAttribute("data-script-loaded"))K();else{if(this.script)return this.script.addEventListener("load",r),void this.script.addEventListener("error",e);this.script=document.createElement("script"),Object.assign(this.script,this.attributes),Object.assign(this.script.dataset,this.dataAttributes),this.script.src=this.src,this.script.async=!0,this.script.addEventListener("load",r),this.script.addEventListener("error",e),J.appendChild(this.script)}})};remove=()=>this.script.parentNode&&this.script.parentNode.removeChild(this.script)}},94636:function(K,G,J){"use strict";J.d(G,{Qe:function(){return c},tO:function(){return amount_util_e}});let et={IDR:1,JPY:1,KRW:1,VND:1,BYR:1,CVE:1,DJF:1,GHC:1,GNF:1,KMF:1,ISK:1,PYG:1,RWF:1,UGX:1,VUV:1,XAF:1,XOF:1,XPF:1,MRO:10,BHD:1e3,IQD:1e3,JOD:1e3,KWD:1e3,OMR:1e3,LYD:1e3,TND:1e3},er={RSD:{minimumFractionDigits:2},AFN:{minimumFractionDigits:2},ALL:{minimumFractionDigits:2},IRR:{minimumFractionDigits:2},LAK:{minimumFractionDigits:2},LBP:{minimumFractionDigits:2},MMK:{minimumFractionDigits:2},SOS:{minimumFractionDigits:2},SYP:{minimumFractionDigits:2},YER:{minimumFractionDigits:2},IQD:{minimumFractionDigits:3}},n=K=>et[K]||100,c=(K,G)=>{let J=n(G);return parseInt(String(K),10)/J},amount_util_e=(K,G,J,et={})=>{let en=K.toString(),ei=c(en,J),eo=G.replace("_","-"),es={style:"currency",currency:J,currencyDisplay:"symbol",...er[J]?{...et,...er[J]}:et};
89try{return ei.toLocaleString(eo,es)}catch(K){return en}}},74476:function(K,G,J){"use strict";J.d(G,{ZP:function(){return et}});let et={decode:K=>{if(!et.isBase64(K))return{success:!1,error:"not base64"};try{return{success:!0,data:decodeURIComponent(Array.prototype.map.call(window.atob(K),K=>`%${`00${K.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""))}}catch(K){return{success:!1,error:"malformed URI sequence"}}},encode:K=>window.btoa(K),isBase64:K=>{if(!K||K.length%4)return!1;try{return window.btoa(window.atob(K))===K}catch(K){return!1}}}},39380:function(K,G,J){"use strict";J.d(G,{Z:function(){return n}});var et=J(71841);function n(){let K=(0,et.Z)(window,"screen.colorDepth")||"",G=!!(0,et.Z)(window,"navigator.javaEnabled")&&window.navigator.javaEnabled(),J=(0,et.Z)(window,"screen.height")||"",er=(0,et.Z)(window,"screen.width")||"",en=(0,et.Z)(window,"navigator.userAgent")||"";return{acceptHeader:"*/*",colorDepth:K,language:(0,et.Z)(window,"navigator.language")||"en",javaEnabled:G,screenHeight:J,screenWidth:er,userAgent:en,timeZoneOffset:(new Date).getTimezoneOffset()}}},14166:function(K,G,J){"use strict";J.d(G,{N6:function(){return u},d1:function(){return i},ei:function(){return f},hJ:function(){return e},k:function(){return c},kJ:function(){return n},yb:function(){return r}});let et=Object.prototype.toString;function n(K){return"object"==typeof K&&null!==K&&"[object Array]"===Object.prototype.toString.call(K)}function e(K){return null!=K}function r(K){return!1!==K&&e(K)}function o(K){return!!K&&"object"==typeof K}function c(K){return!r(K)||!(!("number"==typeof K||o(K)&&"[object Number]"===et.call(K))||0!==K&&!Number.isNaN(K))||!(!n(K)&&!("string"==typeof K||o(K)&&"[object String]"===et.call(K))||0!==K.length)||!(!o(K)||0!==Object.keys(K).length)}function u(K){return!c(K)}function f(...K){let G=n(K[0])?K[0]:K;return{from:K=>G.map(G=>G in K?{[G]:K[G]}:{}).reduce((K,G)=>({...K,...G}),{})}}function i(...K){let G=n(K[0])?K[0]:K;return{from:K=>f(...Object.keys(K).filter(K=>!G.includes(K))).from(K)}}},71841:function(K,G,J){"use strict";J.d(G,{Z:function(){return e}});let e=(K,G)=>G.split(".").reduce((K,G)=>K&&K[G]?K[G]:void 0,K)},55069:function(K,G,J){"use strict";function t(K={},G){return Object.prototype.hasOwnProperty.call(K,G)}J.d(G,{n:function(){return t}})},13320:function(K,G,J){"use strict";J.d(G,{S:function(){return t},on:function(){return e}});let e=(K,G,J,et)=>!(!K||"function"!=typeof K.addEventListener)&&(K.addEventListener(G,J,et),!0),t=(K,G,J,et)=>!(!K||"function"!=typeof K.removeEventListener)&&(K.removeEventListener(G,J,et),!0)},48972:function(K,G,J){"use strict";function x(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,K=>{let G=16*Math.random()|0;return("x"==K?G:3&G|8).toString(16)})}J.d(G,{Z:function(){return x}})},61499:function(K,G,J){"use strict";function o(K){if(null==K)return null;if("string"==typeof K){let G=K.trim();return""===G?null:G}return"number"==typeof K||"boolean"==typeof K?String(K):null}function x(K){if(null==K)return null;if("boolean"==typeof K)return K;if("string"==typeof K){let G=K.toLowerCase().trim();if("true"===G)return!0;if("false"===G)return!1;if(""===G)return null}if("number"==typeof K){if(1===K)return!0;if(0===K)return!1}return null}function y(K){if(null==K)return null;if("number"==typeof K)return Number.isFinite(K)?K:null;if("string"==typeof K){let G=K.replace(",",".").trim();if(""===G)return null;let J=Number(G);return Number.isFinite(J)?J:null}return null}function v(){return"u">typeof globalThis&&"u">typeof globalThis.document}function T(K,G){if(!v()||!K)return null;let J=globalThis;return void 0!==J[K]?J[K]:(J[K]=G,G)}J.d(G,{Fr:function(){return eu},Oy:function(){return pe}});let E=K=>null==K||""===K,et="gtm_product_list_context",er={dataLayerName:"dataLayer",debug:!1};function m({eventPayload:K,config:G}){let{dataLayerName:J,debug:et}={...er,...G},en=T(J,[]);if(!en){et&&v()&&console.warn(`[headless-analytics/gtm] dataLayer "${J}" not available. Event dropped.`,K);return}en.push({ecommerce:null}),en.push(K)}function g(K,G){let J=G.filter(G=>E(K[G]));return J.length>0?`erro: campo(s) ${J.join(", ")} vazios`:null}function _(K,G){if(!K||0===K.length)return"erro: items vazio";for(let J=0;J<K.length;J++){let et=g(K[J],G);if(et)return et}return null}function O(K){return{item_id:K.id,item_name:K.name,item_brand:K.brand,item_variant:K.variant,price:K.price,quantity:K.quantity,discount:K.discount,item_category:K.categories[0],item_category2:K.categories[1],item_category3:K.categories[2],item_category4:K.categories[3],item_category5:K.categories[4],product_image_url:K.imageUrl,product_is_markdown:K.isMarkdown,coupon:null,index:K.index,product_recommendations:K.productRecommendations,item_list_id:K.itemListId,item_list_name:K.itemListName}}let en=["item_id","item_name"],ei=["method"],eo={add_to_cart:K=>_(K.ecommerce.items,en),view_item:K=>_(K.ecommerce.items,en),view_promotion:K=>_(K.ecommerce.items,en),select_promotion:K=>_(K.ecommerce.items,en),select_item:K=>_(K.ecommerce.items,en),remove_from_cart:K=>_(K.ecommerce.items,en),view_cart:K=>_(K.ecommerce.items,en),add_to_wishlist:K=>_(K.ecommerce.items,en),view_item_list:K=>_(K.ecommerce.items,en),search:K=>g(K,["search_term"]),share:K=>g(K,["method","content_type","item_id"]),login:K=>g(K,ei),sign_up:K=>g(K,ei),reset_password_recovery_option:K=>g(K,ei),reset_password_verification_code:K=>g(K,ei),reset_password_completed:K=>g(K,ei),begin_checkout:K=>_(K.ecommerce.items,en),add_shipping_info:K=>_(K.ecommerce.items,en),add_payment_info:K=>_(K.ecommerce.items,en),purchase:K=>_(K.ecommerce.items,en)};function u(K,G,{description:J,error:et,abTestOptions:er,customOptions:en={}}={}){let ei=eo[K],es=ei?ei(G):null,el=et||es,ec=er?{experiment_ab_test_unique:o(er.experimentABTestUnique),experiment_ab_test_name:o(er.experimentABTestName),experiment_ab_test_variant_name:o(er.experimentABTestVariantName),experiment_ab_test_variant_number:o(er.experimentABTestVariantNumber),experiment_ab_test_category:o(er.experimentABTestCategory),experiment_ab_test_id_exp_and_var:o(er.experimentABTestIdExpAndVar)}:{};return{event:K,status_event:el?"erro":"sucesso",status_event_description:el||J||"sucesso",...ec,...G,...en}}let es="N.A.";function p({products:K,options:G,isItemWithUnavailableSizes:J}){if(!K||0===K.length)return null;let er=[],en=0;for(let ei=0;ei<K.length;ei++){let eo=function({product:K,options:G={}}
89){let[J,et]=(K.code??"").split("-"),er=et||K.size,en=er?`${J}-${er}`:null,ei=K.brandContent?.name||G.brandName,eo=K.breadCrumbs?.map(K=>K.name).slice(0,-1)??[],es=K.discountPrice?.value,el=es||K.price?.value,ec=es?(K.price?.value??0)-es:0,eu=[...eo,...[,,,,,].fill(null)].slice(0,5),ed=K?.variantOptions?.filter(K=>!K.sellable).map(K=>K.displayText).join(" | ");return{id:o(J),name:o(K.name),brand:o(ei),categories:eu,variant:o(en),imageUrl:o(K.primaryImage?.url),price:y(el),currency:o(K.price?.currencyIso),discount:y(ec),isMarkdown:(K.discountPrice?.value??0)>0,quantity:y(K.quantity||1),unavailableSizes:o(ed),index:y((K.positionInList||0)+1),productRecommendations:x(K.productRecommendations||!1),itemListId:o(G.itemListId),itemListName:o(G.itemListName)}}({product:K[ei],options:G}),es=J?{...O(eo),product_unavailable_sizes:eo.unavailableSizes}:O(eo);if(!es.item_list_id||!es.item_list_name){let K=function(K){if(!K||!v())return null;try{let G=localStorage.getItem(et);return G&&JSON.parse(G)[K]||null}catch{return null}}(eo.id);K&&(es.item_list_id=K.item_list_id??null,es.item_list_name=K.item_list_name??null,es.index=K.item_list_index??null,es.product_recommendations=K.product_recommendations??!1)}er.push(es);let el=es.price||0,ec=es.quantity||1;en+=el*ec}return{items:er,value:en,currency:"BRL"}}function L({promotion:K,options:G}){if(!K)return null;let J=function({promotion:K,options:G}){return{name:o(K.name),position:o(G?.position),imageUrl:o(K.imageUrl),videoUrl:o(K.videoUrl)}}({promotion:K,options:G}),et=[function(K){let G=K.videoUrl||K.imageUrl;return{item_id:K.name,item_name:G,item_brand:null,item_variant:null,price:.01,quantity:1,discount:null,item_category:null,item_category2:null,item_category3:null,item_category4:null,item_category5:null,product_image_url:G,product_is_markdown:null,coupon:null,index:null,item_list_id:null,item_list_name:null,product_recommendations:null}}(J)],er=J.videoUrl||J.imageUrl||es;return{creative_name:er,creative_slot:J.position||es,promotion_id:J.name||es,promotion_name:er,items:et,currency:"BRL"}}let el=Object.freeze(Object.defineProperty({__proto__:null,addPaymentInfo:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G});if(!ei)return;let eo=u("add_payment_info",{checkoutPreviousStep:o(G?.checkoutPreviousStep),ecommerce:{coupon:o(G?.coupon),payment_type:o(G?.paymentType),...ei}},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},addShippingInfo:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G});if(!ei)return;let eo=u("add_shipping_info",{checkoutPreviousStep:o(G?.checkoutPreviousStep),ecommerce:{coupon:o(G?.coupon),shipping_tier_option1:o(G?.shippingTierOption1),shipping_tier_option2:o(G?.shippingTierOption2),shipping_tier_option3:o(G?.shippingTierOption3),...ei}},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},addToCart:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G});if(!ei)return;let eo=u("add_to_cart",{ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},addToWishlist:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G,isItemWithUnavailableSizes:!0});if(!ei)return;let eo=u("add_to_wishlist",{ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},beginCheckout:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G});if(!ei)return;let eo=u("begin_checkout",{checkoutPreviousStep:o(G?.checkoutPreviousStep),ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},lead:function({error:K,description:G,abTestOptions:J,customOptions:et}={}){let er=u("lead",{},{error:K,description:G,abTestOptions:J,customOptions:et});m({eventPayload:er})},login:function({method:K,error:G,description:J,abTestOptions:et,customOptions:er}){let en=u("login",{method:o(K)},{error:G,description:J,abTestOptions:et,customOptions:er});m({eventPayload:en})},purchase:function({products:K,options:G,error:J,description:er,abTestOptions:en,customOptions:ei}){let eo=p({products:K,options:G});if(!eo)return;let es={...eo,value:y(G?.transactionValue||eo.value)},el=u("purchase",{checkout_shipping_carrier_option1:o(G?.checkoutShippingCarrierOption1),checkout_shipping_estimated_delivery_time_option1:o(G?.checkoutShippingEstimatedDeliveryTimeOption1),checkout_shipping_free_option1:o(G?.checkoutShippingFreeOption1),checkout_shipping_shipment_ids_option1:o(G?.checkoutShippingShipmentIdsOption1),checkout_shipping_shipment_method_option1:o(G?.checkoutShippingShipmentMethodOption1),checkout_shipping_carrier_option2:o(G?.checkoutShippingCarrierOption2),checkout_shipping_estimated_delivery_time_option2:o(G?.checkoutShippingEstimatedDeliveryTimeOption2),checkout_shipping_free_option2:o(G?.checkoutShippingFreeOption2),checkout_shipping_shipment_ids_option2:o(G?.checkoutShippingShipmentIdsOption2),checkout_shipping_shipment_method_option2:o(G?.checkoutShippingShipmentMethodOption2),checkout_shipping_carrier_option3:o(G?.checkoutShippingCarrierOption3),checkout_shipping_estimated_delivery_time_option3:o(G?.checkoutShippingEstimatedDeliveryTimeOption3),checkout_shipping_free_option3:o(G?.checkoutShippingFreeOption3),checkout_shipping_shipment_ids_option3:o(G?.checkoutShippingShipmentIdsOption3),checkout_shipping_shipment_method_option3:o(G?.checkoutShippingShipmentMethodOption3),checkout_shipping_zip_delivery:o(G?.checkoutShippingZipDelivery),checkoutPreviousStep:o(G?.checkoutPreviousStep),ecommerce:{transaction_id:o(G?.transactionId),tax:y(G?.tax),shipping:y(G?.shipping),is_new_customer:x(G?.
89isNewCustomer),coupon:o(G?.coupon),payment_type:o(G?.paymentType),shipping_tier_option1:o(G?.shippingTierOption1),shipping_tier_option2:o(G?.shippingTierOption2),shipping_tier_option3:o(G?.shippingTierOption3),...es}},{error:J,description:er,abTestOptions:en,customOptions:ei});m({eventPayload:el}),function(){if(v())try{localStorage.removeItem(et)}catch(K){console.warn("[headless-analytics] Failed to clear list context from LocalStorage",K)}}()},removeFromCart:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G});if(!ei)return;let eo=u("remove_from_cart",{ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},resetPasswordCompleted:function({method:K,error:G,description:J,abTestOptions:et,customOptions:er}){let en=u("reset_password_completed",{method:o(K)},{error:G,description:J,abTestOptions:et,customOptions:er});m({eventPayload:en})},resetPasswordRecoveryOption:function({method:K,error:G,description:J,abTestOptions:et,customOptions:er}){let en=u("reset_password_recovery_option",{method:o(K)},{error:G,description:J,abTestOptions:et,customOptions:er});m({eventPayload:en})},resetPasswordStarted:function({error:K,description:G,abTestOptions:J,customOptions:et}={}){let er=u("reset_password_started",{},{error:K,description:G,abTestOptions:J,customOptions:et});m({eventPayload:er})},resetPasswordVerificationCode:function({method:K,error:G,description:J,abTestOptions:et,customOptions:er}){let en=u("reset_password_verification_code",{method:o(K)},{error:G,description:J,abTestOptions:et,customOptions:er});m({eventPayload:en})},search:function({searchTerm:K,error:G,description:J,abTestOptions:et,customOptions:er}){let en=u("search",{search_term:o(K)},{error:G,description:J,abTestOptions:et,customOptions:er});m({eventPayload:en})},selectItem:function({products:K,options:G,error:J,description:er,abTestOptions:en,customOptions:ei}){let eo=p({products:K,options:G});if(!eo)return;let es=u("select_item",{ecommerce:eo},{error:J,description:er,abTestOptions:en,customOptions:ei});m({eventPayload:es}),eo.items.forEach(K=>(function({item_id:K,item_list_id:G,item_list_name:J,item_list_index:er,product_recommendations:en}){if(!(!K||!v()))try{let ei=localStorage.getItem(et),eo=ei?JSON.parse(ei):{},es=new Map(Object.entries(eo));for(es.delete(String(K)),es.set(String(K),{item_list_id:G||"",item_list_name:J||"",item_list_index:er||1,product_recommendations:en||!1});es.size>15;){let K=es.keys().next().value;if(!K)break;es.delete(K)}let el=Object.fromEntries(es);localStorage.setItem(et,JSON.stringify(el))}catch(K){console.error("[headless-analytics] Failed to save list context to LocalStorage",K)}})({item_id:K.item_id,item_list_id:G?.itemListId,item_list_name:G?.itemListName,item_list_index:K.index,product_recommendations:K.product_recommendations}))},selectPromotion:function({promotion:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=L({promotion:K,options:G});if(!ei)return;let eo=u("select_promotion",{ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},share:function({method:K,contentType:G,itemId:J,error:et,description:er,abTestOptions:en,customOptions:ei}){let eo=u("share",{method:o(K),content_type:o(G),item_id:o(J)},{error:et,description:er,abTestOptions:en,customOptions:ei});m({eventPayload:eo})},signUp:function({method:K,error:G,description:J,abTestOptions:et,customOptions:er}){let en=u("sign_up",{method:o(K)},{error:G,description:J,abTestOptions:et,customOptions:er});m({eventPayload:en})},viewCart:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G});if(!ei)return;let eo=u("view_cart",{checkoutPreviousStep:o(G?.checkoutPreviousStep),ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},viewItem:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G,isItemWithUnavailableSizes:!0});if(!ei)return;let eo=u("view_item",{ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},viewItemList:function({products:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=p({products:K,options:G});if(!ei)return;let eo=u("view_item_list",{ecommerce:{item_list_id:o(G?.itemListId),item_list_name:o(G?.itemListName),items:ei.items,currency:ei.currency}},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},viewPromotion:function({promotion:K,options:G,error:J,description:et,abTestOptions:er,customOptions:en}){let ei=L({promotion:K,options:G});if(!ei)return;let eo=u("view_promotion",{ecommerce:ei},{error:J,description:et,abTestOptions:er,customOptions:en});m({eventPayload:eo})},webSiteError:function({error:K,description:G,abTestOptions:J,customOptions:et}={}){let er=u("web_site_error",{},{error:K,description:G,abTestOptions:J,customOptions:et});m({eventPayload:er})}},Symbol.toStringTag,{value:"Module"})),ec={namespace:"user_analytics",debug:!1};function pe({userProperties:K,config:G}){let{namespace:J,debug:et}={...ec,...G},er=T(J,K);if(!er){et&&v()&&console.warn(`[headless-analytics/gtm] "${J}" not available. User properties dropped.`);return}er!==K&&(Object.keys(er).forEach(K=>{delete er[K]}),Object.assign(er,K))}let eu={...el}},54368:function(K,G,J){"use strict";J.d(G,{PublicClientApplication:function(){return PublicClientApplication}});var et,er,en=J(15806),ei=J(73978),eo=J(31184),es=J(33499);/*! @azure/msal-common v16.5.1 2026-04-21 */let JoseHeaderError=class JoseHeaderError extends es.l4{constructor(K,G){super(K,G),this.name="JoseHeaderError",Object.setPrototypeOf(this,JoseHeaderError.prototype)}};/*! @azure/msal-common v16.5.1 2026-04-21 */let JoseHeader=class JoseHeader{constructor(K){this.typ=K.typ,this.alg=K.alg,this.kid=K.kid}static getShrHeaderString(K){if(!K.kid)throw new JoseHeaderError("missing_kid_error");
89if(!K.alg)throw new JoseHeaderError("missing_alg_error");let G=new JoseHeader({typ:K.typ||en.xd.Pop,kid:K.kid,alg:K.alg});return JSON.stringify(G)}};let el="standardInteractionClientGetDiscoveredAuthority",ec="nativeInteractionClientAcquireToken",eu="acquireTokenBySilentIframe",ed="initializeBaseRequest",eh="silentIframeClientTokenHelper",ep="silentHandlerInitiateAuthRequest",ef="silentHandlerMonitorIframeForHash",eg="standardInteractionClientCreateAuthCodeClient",em="standardInteractionClientGetClientConfiguration",ey="standardInteractionClientInitializeAuthorizationRequest",ev="handleResponseEar",eb="handleResponsePlatformBroker",eC="handleResponseCode",ew="deserializeResponse",e_="removeHiddenIframe",eS="generatePkceCodes",ek="generateHKDF",eA="decrypt",eE="generateEarKey";/*! @azure/msal-browser v5.8.0 2026-04-21 */function urlEncode(K){return encodeURIComponent(base64Encode(K).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function urlEncodeArr(K){return base64EncArr(K).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function base64Encode(K){return base64EncArr(new TextEncoder().encode(K))}function base64EncArr(K){let G=Array.from(K,K=>String.fromCodePoint(K)).join("");return btoa(G)}/*! @azure/msal-browser v5.8.0 2026-04-21 */function getDefaultErrorMessage(K){return`See https://aka.ms/msal.js.errors#${K} for details`}let BrowserAuthError=class BrowserAuthError extends es.l4{constructor(K,G){super(K,getDefaultErrorMessage(K),G),Object.setPrototypeOf(this,BrowserAuthError.prototype),this.name="BrowserAuthError"}};function createBrowserAuthError(K,G){return new BrowserAuthError(K,G)}/*! @azure/msal-browser v5.8.0 2026-04-21 */let eT="pkce_not_created",eI="ear_jwk_empty",eP="crypto_nonexistent",eO="empty_navigate_uri",eR="no_state_in_hash",ex="unable_to_parse_state",eD="user_cancelled",eM="silent_logout_unsupported",eN="non_browser_environment",eL="database_not_open",eF="no_network_connectivity",eB="failed_to_parse_response",eU="crypto_key_not_found",ez="database_unavailable",ej="native_connection_not_established",eV="uninitialized_public_client_application",eH="failed_to_decrypt_ear_response",eq="timed_out";/*! @azure/msal-browser v5.8.0 2026-04-21 */function base64Decode(K){return new TextDecoder().decode(base64DecToArr(K))}function base64DecToArr(K){let G=K.replace(/-/g,"+").replace(/_/g,"/");switch(G.length%4){case 0:break;case 2:G+="==";break;case 3:G+="=";break;default:throw createBrowserAuthError("invalid_base64_string")}let J=atob(G);return Uint8Array.from(J,K=>K.codePointAt(0)||0)}/*! @azure/msal-browser v5.8.0 2026-04-21 */let e$={INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",MSAL_SKU:"msal.js.browser"},eK={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS",MICROSOFT_ENTRA_BROKERID:"MicrosoftEntra",DOM_API_NAME:"DOM API",PLATFORM_DOM_APIS:"get-token-and-sign-out",PLATFORM_DOM_PROVIDER:"PlatformAuthDOMHandler",PLATFORM_EXTENSION_PROVIDER:"PlatformAuthExtensionHandler"},eW={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},eG={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},eZ={GET:"GET",POST:"POST"},eJ={SIGNIN:"signin",SIGNOUT:"signout"},eY={ORIGIN_URI:"request.origin",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",VERIFIER:"code.verifier",INTERACTION_STATUS_KEY:"interaction.status",NATIVE_REQUEST:"request.native"},eQ={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},eX={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962,hydrateCache:963},e0={861:"acquireTokenRedirect",862:"acquireTokenPopup",863:"ssoSilent",864:"acquireTokenSilent_authCode",865:"handleRedirectPromise",866:"acquireTokenByCode",61:"acquireTokenSilent_silentFlow",961:"logout",962:"logoutPopup",963:"hydrateCache",964:"loadExternalTokens"},apiIdToName=K=>"number"==typeof K&&K in e0?e0[K]:"unknown";(et=er||(er={})).Redirect="redirect",et.Popup="popup",et.Silent="silent",et.None="none";let e1={scopes:en.f_},e2="msal.db",e4=`${e2}.keys`,e5={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},e6=[e5.Default,e5.Skip,e5.RefreshTokenAndNetwork],e3="AES-GCM",e8="HKDF",e7="SHA-256",e9=new Uint8Array([1,0,1]),tt="0123456789abcdef",tr=new Uint32Array(1),tn="encrypt",ti="decrypt",to={name:"RSASSA-PKCS1-v1_5",hash:e7,modulusLength:2048,publicExponent:e9};async function sha256Digest(K){let G=new TextEncoder,J=G.encode(K);return window.crypto.subtle.digest(e7,J)}function getRandomValues(K){return window.crypto.getRandomValues(K)}function getRandomUint32(){return window.crypto.getRandomValues(tr),tr[0]}function BrowserCrypto_createNewGuid(){let K=Date.now(),G=1024*getRandomUint32()+(1023&getRandomUint32()),J=new Uint8Array(16),et=Math.trunc(G/1073741824),er=G&1073741824-1,en=getRandomUint32();J[0]=K/1099511627776,J[1]=K/4294967296,J[2]=K/16777216,J[3]=K/65536,J[4]=K/256,J[5]=K,J[6]=112|et>>>8,J[7]=et,J[8]=128|er>>>24,J[9]=er>>>16,J[10]=er>>>8,J[11]=er,J[12]=en>>>24,J[13]=en>>>16,J[14]=en>>>8,J[15]=en;let ei="";for(let K=0;K<J.length;K++)ei+=tt.charAt(J[K]>>>4)+tt.charAt(15&J[K]),(3===K||5===K||7===K||9===K)&&(ei+="-");return ei}async function generateKeyPair(K,G){return window.crypto.subtle.generateKey(to,K,G)}async function exportJwk(K){return window.crypto.subtle.exportKey("jwk",K)}async function importJwk(K,G,J){return window.crypto.subtle.importKey("jwk",K,to,G,J)}async function sign(K,G){return window.crypto.subtle.sign(to,K,G)}async function generateEarKey(){let K=await generateBaseKey(),G=urlEncodeArr(new Uint8Array(K));return base64Encode(JSON.stringify({alg:"dir",kty:"oct",k:G}))}async function importEarKey(K){let G=base64Decode(K),J=JSON.parse(G),et=J.k,er=base64DecToArr(et);return window.crypto.subtle.importKey("raw",er,e3,!1,[ti])}async function decryptEarResponse(K,G){let J=G.split(".");if(5!==J.length)throw createBrowserAuthError(eH,"jwe_length");let et=await importEarKey(K).catch(()=>{throw createBrowserAuthError(eH,"import_key")});try{let K=new TextEncoder().encode(J[0]),G=base64DecToArr(J[2]),er=base64DecToArr(J[3]),en=base64DecToArr(J[4]),ei=8*en.byteLength,eo=new Uint8Array(er.length+en.length);eo.set(er),eo.set(en,er.length);
89let es=await window.crypto.subtle.decrypt({name:e3,iv:G,tagLength:ei,additionalData:K},et,eo);return new TextDecoder().decode(es)}catch(K){throw createBrowserAuthError(eH,"decrypt")}}async function generateBaseKey(){let K=await window.crypto.subtle.generateKey({name:e3,length:256},!0,[tn,ti]);return window.crypto.subtle.exportKey("raw",K)}async function generateHKDF(K){return window.crypto.subtle.importKey("raw",K,e8,!1,["deriveKey"])}async function deriveKey(K,G,J){return window.crypto.subtle.deriveKey({name:e8,salt:G,hash:e7,info:new TextEncoder().encode(J)},K,{name:e3,length:256},!1,[tn,ti])}async function encrypt(K,G,J){let et=new TextEncoder().encode(G),er=window.crypto.getRandomValues(new Uint8Array(16)),en=await deriveKey(K,er,J),ei=await window.crypto.subtle.encrypt({name:e3,iv:new Uint8Array(12)},en,et);return{data:urlEncodeArr(new Uint8Array(ei)),nonce:urlEncodeArr(er)}}async function decrypt(K,G,J,et){let er=base64DecToArr(et),en=await deriveKey(K,base64DecToArr(G),J),ei=await window.crypto.subtle.decrypt({name:e3,iv:new Uint8Array(12)},en,er);return new TextDecoder().decode(ei)}async function hashString(K){let G=await sha256Digest(K),J=new Uint8Array(G);return urlEncodeArr(J)}/*! @azure/msal-browser v5.8.0 2026-04-21 */let DatabaseStorage=class DatabaseStorage{constructor(){this.dbName=e2,this.version=1,this.tableName=e4,this.dbOpen=!1}async open(){return new Promise((K,G)=>{let J=window.indexedDB.open(this.dbName,this.version);J.addEventListener("upgradeneeded",K=>{K.target.result.createObjectStore(this.tableName)}),J.addEventListener("success",G=>{this.db=G.target.result,this.dbOpen=!0,K()}),J.addEventListener("error",()=>G(createBrowserAuthError(ez)))})}closeConnection(){let K=this.db;K&&this.dbOpen&&(K.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(K){return await this.validateDbIsOpen(),new Promise((G,J)=>{if(!this.db)return J(createBrowserAuthError(eL));let et=this.db.transaction([this.tableName],"readonly"),er=et.objectStore(this.tableName),en=er.get(K);en.addEventListener("success",K=>{this.closeConnection(),G(K.target.result)}),en.addEventListener("error",K=>{this.closeConnection(),J(K)})})}async setItem(K,G){return await this.validateDbIsOpen(),new Promise((J,et)=>{if(!this.db)return et(createBrowserAuthError(eL));let er=this.db.transaction([this.tableName],"readwrite"),en=er.objectStore(this.tableName),ei=en.put(G,K);ei.addEventListener("success",()=>{this.closeConnection(),J()}),ei.addEventListener("error",K=>{this.closeConnection(),et(K)})})}async removeItem(K){return await this.validateDbIsOpen(),new Promise((G,J)=>{if(!this.db)return J(createBrowserAuthError(eL));let et=this.db.transaction([this.tableName],"readwrite"),er=et.objectStore(this.tableName),en=er.delete(K);en.addEventListener("success",()=>{this.closeConnection(),G()}),en.addEventListener("error",K=>{this.closeConnection(),J(K)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((K,G)=>{if(!this.db)return G(createBrowserAuthError(eL));let J=this.db.transaction([this.tableName],"readonly"),et=J.objectStore(this.tableName),er=et.getAllKeys();er.addEventListener("success",G=>{this.closeConnection(),K(G.target.result)}),er.addEventListener("error",K=>{this.closeConnection(),G(K)})})}async containsKey(K){return await this.validateDbIsOpen(),new Promise((G,J)=>{if(!this.db)return J(createBrowserAuthError(eL));let et=this.db.transaction([this.tableName],"readonly"),er=et.objectStore(this.tableName),en=er.count(K);en.addEventListener("success",K=>{this.closeConnection(),G(1===K.target.result)}),en.addEventListener("error",K=>{this.closeConnection(),J(K)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((K,G)=>{let J=window.indexedDB.deleteDatabase(e2),et=setTimeout(()=>G(!1),200);J.addEventListener("success",()=>(clearTimeout(et),K(!0))),J.addEventListener("blocked",()=>(clearTimeout(et),K(!0))),J.addEventListener("error",()=>(clearTimeout(et),G(!1)))})}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let MemoryStorage=class MemoryStorage{constructor(){this.cache=new Map}async initialize(){}getItem(K){return this.cache.get(K)||null}getUserData(K){return this.getItem(K)}setItem(K,G){this.cache.set(K,G)}async setUserData(K,G){this.setItem(K,G)}removeItem(K){this.cache.delete(K)}getKeys(){let K=[];return this.cache.forEach((G,J)=>{K.push(J)}),K}containsKey(K){return this.cache.has(K)}clear(){this.cache.clear()}decryptData(){return Promise.resolve(null)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let AsyncMemoryStorage=class AsyncMemoryStorage{constructor(K){this.inMemoryCache=new MemoryStorage,this.indexedDBCache=new DatabaseStorage,this.logger=K}handleDatabaseAccessError(K,G){if(K instanceof BrowserAuthError&&K.errorCode===ez)this.logger.error("1wx7zz",G);else throw K}async getItem(K,G){let J=this.inMemoryCache.getItem(K);if(!J)try{return this.logger.verbose("0naxpl",G),await this.indexedDBCache.getItem(K)}catch(K){this.handleDatabaseAccessError(K,G)}return J}async setItem(K,G,J){this.inMemoryCache.setItem(K,G);try{await this.indexedDBCache.setItem(K,G)}catch(K){this.handleDatabaseAccessError(K,J)}}async removeItem(K,G){this.inMemoryCache.removeItem(K);try{await this.indexedDBCache.removeItem(K)}catch(K){this.handleDatabaseAccessError(K,G)}}async getKeys(K){let G=this.inMemoryCache.getKeys();if(0===G.length)try{return this.logger.verbose("1iqrbq",K),await this.indexedDBCache.getKeys()}catch(G){this.handleDatabaseAccessError(G,K)}return G}async containsKey(K,G){let J=this.inMemoryCache.containsKey(K);if(!J)try{return this.logger.verbose("03zl2j",G),await this.indexedDBCache.containsKey(K)}catch(K){this.handleDatabaseAccessError(K,G)}return J}
89clearInMemory(K){this.logger.verbose("03r21p",K),this.inMemoryCache.clear(),this.logger.verbose("0uksk1",K)}async clearPersistent(K){try{this.logger.verbose("0rdqut",K);let G=await this.indexedDBCache.deleteDatabase();return G&&this.logger.verbose("149ouc",K),G}catch(G){return this.handleDatabaseAccessError(G,K),!1}}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let CryptoOps=class CryptoOps{constructor(K,G,J){this.logger=K,function(K){if(!window)throw createBrowserAuthError(eN);if(!window.crypto)throw createBrowserAuthError(eP);if(!K&&!window.crypto.subtle)throw createBrowserAuthError(eP,"crypto_subtle_undefined")}(J??!1),this.cache=new AsyncMemoryStorage(this.logger),this.performanceClient=G}createNewGuid(){return BrowserCrypto_createNewGuid()}base64Encode(K){return base64Encode(K)}base64Decode(K){return base64Decode(K)}base64UrlEncode(K){return urlEncode(K)}encodeKid(K){return this.base64UrlEncode(JSON.stringify({kid:K}))}async getPublicKeyThumbprint(K){let G=this.performanceClient?.startMeasurement("cryptoOptsGetPublicKeyThumbprint",K.correlationId),J=await generateKeyPair(CryptoOps.EXTRACTABLE,CryptoOps.POP_KEY_USAGES),et=await exportJwk(J.publicKey),er={e:et.e,kty:et.kty,n:et.n},en=getSortedObjectString(er),ei=await this.hashString(en),eo=await exportJwk(J.privateKey),es=await importJwk(eo,!1,["sign"]);return await this.cache.setItem(ei,{privateKey:es,publicKey:J.publicKey,requestMethod:K.resourceRequestMethod,requestUri:K.resourceRequestUri},K.correlationId),G&&G.end({success:!0}),ei}async removeTokenBindingKey(K,G){await this.cache.removeItem(K,G);let J=await this.cache.containsKey(K,G);if(J)throw(0,ei.z)(eo.ol)}async clearKeystore(K){this.cache.clearInMemory(K);try{return await this.cache.clearPersistent(K),!0}catch(G){return G instanceof Error?this.logger.error("1owpn8",K):this.logger.error("0yrmwo",K),!1}}async signJwt(K,G,J,et){let er=this.performanceClient?.startMeasurement("cryptoOptsSignJwt",et),en=await this.cache.getItem(G,et||"");if(!en)throw createBrowserAuthError(eU);let ei=await exportJwk(en.publicKey),eo=getSortedObjectString(ei),es=urlEncode(JSON.stringify({kid:G})),el=JoseHeader.getShrHeaderString({...J?.header,alg:ei.alg,kid:es}),ec=urlEncode(el);K.cnf={jwk:JSON.parse(eo)};let eu=urlEncode(JSON.stringify(K)),ed=`${ec}.${eu}`,eh=new TextEncoder,ep=eh.encode(ed),ef=await sign(en.privateKey,ep),eg=urlEncodeArr(new Uint8Array(ef)),em=`${ed}.${eg}`;return er&&er.end({success:!0}),em}async hashString(K){return hashString(K)}};function getSortedObjectString(K){return JSON.stringify(K,Object.keys(K).sort())}/*! @azure/msal-common v16.5.1 2026-04-21 */function enforceResourceParameter(K,G){if(K){if(G.resource&&(containsResourceParam(G.extraParameters)||containsResourceParam(G.extraQueryParameters)))throw(0,ei.z)(eo.Dw);if(!G.resource)throw(0,ei.z)(eo.zM)}}function containsResourceParam(K){return!!K&&Object.prototype.hasOwnProperty.call(K,"resource")}CryptoOps.POP_KEY_USAGES=["sign","verify"],CryptoOps.EXTRACTABLE=!0;/*! @azure/msal-common v16.5.1 2026-04-21 */let ta={createNewGuid:()=>{throw(0,ei.z)(eo.M2)},base64Decode:()=>{throw(0,ei.z)(eo.M2)},base64Encode:()=>{throw(0,ei.z)(eo.M2)},base64UrlEncode:()=>{throw(0,ei.z)(eo.M2)},encodeKid:()=>{throw(0,ei.z)(eo.M2)},async getPublicKeyThumbprint(){throw(0,ei.z)(eo.M2)},async removeTokenBindingKey(){throw(0,ei.z)(eo.M2)},async clearKeystore(){throw(0,ei.z)(eo.M2)},async signJwt(){throw(0,ei.z)(eo.M2)},async hashString(){throw(0,ei.z)(eo.M2)}},ts={Default:0,Adfs:1,Dsts:2,Ciam:3};var tl=J(53650);let tc=[{host:"login.microsoftonline.com"},{host:"login.chinacloudapi.cn",issuerHost:"login.partner.microsoftonline.cn"},{host:"login.microsoftonline.us"},{host:"login.sovcloud-identity.fr"},{host:"login.sovcloud-identity.de"},{host:"login.sovcloud-identity.sg"}].reduce((K,{host:G,issuerHost:J})=>(K[G]={token_endpoint:`https://${G}/{tenantid}/oauth2/v2.0/token`,jwks_uri:`https://${G}/{tenantid}/discovery/v2.0/keys`,issuer:`https://${J||G}/{tenantid}/v2.0`,authorization_endpoint:`https://${G}/{tenantid}/oauth2/v2.0/authorize`,end_session_endpoint:`https://${G}/{tenantid}/oauth2/v2.0/logout`},K),{}),tu={endpointMetadata:tc,instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]},{preferred_network:"login.sovcloud-identity.fr",preferred_cache:"login.sovcloud-identity.fr",aliases:["login.sovcloud-identity.fr"]},{preferred_network:"login.sovcloud-identity.de",preferred_cache:"login.sovcloud-identity.de",aliases:["login.sovcloud-identity.de"]},{preferred_network:"login.sovcloud-identity.sg",preferred_cache:"login.sovcloud-identity.sg",aliases:["login.sovcloud-identity.sg"]}]}},td=tu.endpointMetadata,th=tu.instanceDiscoveryMetadata,tp=new Set;function getAliasesFromMetadata(K,G,J,et,er){if(K.trace("1bmquz",G),J&&et){let er=getCloudDiscoveryMetadataFromNetworkResponse(et,J);if(er)return K.trace("1fotbt",G),er.aliases;K.trace("14avvj",G)}return null}function getCloudDiscoveryMetadataFromNetworkResponse(K,G){for(let J=0;J<K.length;J++){let et=K[J];if(et.aliases.includes(G))return et}return null}th.metadata.forEach(K=>
89{K.aliases.forEach(K=>{tp.add(K)})});var tf=J(43569);/*! @azure/msal-common v16.5.1 2026-04-21 */let tg={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"},tm={None:"none"},ty="refreshTokenClientAcquireTokenWithCachedRefreshToken",tv="getAuthCodeUrl",tb="handleCodeResponseFromServer",tC="popTokenGenerateCnf",tw="handleServerTokenResponse",t_="authorityUpdateMetadataWithRegionalInformation",tS="regionDiscoveryGetRegionFromIMDS",invoke=(K,G,J,et,er)=>(...en)=>{J.trace("1plfzx",er);let ei=et.startMeasurement(G,er);er&&et.incrementFields({[`ext.${G}CallCount`]:1},er);try{let G=K(...en);return ei.end({success:!0}),J.trace("1g8n6a",er),G}catch(K){J.trace("0cfd8i",er);try{J.trace(JSON.stringify(K),er)}catch(K){J.trace("00dty7",er)}throw ei.end({success:!1},K),K}},invokeAsync=(K,G,J,et,er)=>(...en)=>{J.trace("1plfzx",er);let ei=et.startMeasurement(G,er);return er&&et.incrementFields({[`ext.${G}CallCount`]:1},er),K(...en).then(K=>(J.trace("1g8n6a",er),ei.end({success:!0}),K)).catch(K=>{J.trace("0cfd8i",er);try{J.trace(JSON.stringify(K),er)}catch(K){J.trace("00dty7",er)}throw ei.end({success:!1},K),K})};/*! @azure/msal-common v16.5.1 2026-04-21 */let RegionDiscovery=class RegionDiscovery{constructor(K,G,J,et){this.networkInterface=K,this.logger=G,this.performanceClient=J,this.correlationId=et}async detectRegion(K,G){let J=K;if(J)G.region_source=en.W.ENVIRONMENT_VARIABLE;else{let K=RegionDiscovery.IMDS_OPTIONS;try{let et=await invokeAsync(this.getRegionFromIMDS.bind(this),tS,this.logger,this.performanceClient,this.correlationId)(en.e7,K);if(et.status===en.TD&&(J=et.body,G.region_source=en.W.IMDS),et.status===en.$h){let et=await invokeAsync(this.getCurrentVersion.bind(this),"regionDiscoveryGetCurrentVersion",this.logger,this.performanceClient,this.correlationId)(K);if(!et)return G.region_source=en.W.FAILED_AUTO_DETECTION,null;let er=await invokeAsync(this.getRegionFromIMDS.bind(this),tS,this.logger,this.performanceClient,this.correlationId)(et,K);er.status===en.TD&&(J=er.body,G.region_source=en.W.IMDS)}}catch(K){return G.region_source=en.W.FAILED_AUTO_DETECTION,null}}return J||(G.region_source=en.W.FAILED_AUTO_DETECTION),J||null}async getRegionFromIMDS(K,G){return this.networkInterface.sendGetRequestAsync(`${en.xM}?api-version=${K}&format=text`,G,en.sg)}async getCurrentVersion(K){try{let G=await this.networkInterface.sendGetRequestAsync(`${en.xM}?format=json`,K);if(G.status===en.$h&&G.body&&G.body["newest-versions"]&&G.body["newest-versions"].length>0)return G.body["newest-versions"][0];return null}catch(K){return null}}};/*! @azure/msal-common v16.5.1 2026-04-21 */function extractTokenClaims(K,G){let J=function(K){if(!K)throw(0,ei.z)(eo.PM);let G=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(K);if(!G||G.length<4)throw(0,ei.z)(eo.GH);return G[2]}(K);try{let K=G(J);return JSON.parse(K)}catch(K){throw(0,ei.z)(eo.GH)}}function isKmsi(K){if(!K.signin_state)return!1;let G=["kmsi","dvc_dmjd"];return K.signin_state.some(K=>G.includes(K.trim().toLowerCase()))}function checkMaxAge(K,G){if(0===G||Date.now()-3e5>K+G)throw(0,ei.z)(eo.Ao)}/*! @azure/msal-common v16.5.1 2026-04-21 */function nowSeconds(){return Math.round(new Date().getTime()/1e3)}function toSecondsFromDate(K){return K.getTime()/1e3}function toDateFromSeconds(K){return K?new Date(1e3*Number(K)):new Date}function isTokenExpired(K,G){let J=Number(K)||0,et=nowSeconds()+G;return et>J}function isCacheExpired(K,G){let J=Number(K)+864e5*G;return Date.now()>J}/*! @azure/msal-common v16.5.1 2026-04-21 */function createIdTokenEntity(K,G,J,et,er){let ei={credentialType:en.d3.ID_TOKEN,homeAccountId:K,environment:G,clientId:et,secret:J,realm:er,lastUpdatedAt:Date.now().toString()};return ei}function createAccessTokenEntity(K,G,J,et,er,es,el,ec,eu,ed,eh,ep,ef){let eg={homeAccountId:K,credentialType:en.d3.ACCESS_TOKEN,secret:J,cachedAt:nowSeconds().toString(),expiresOn:el.toString(),extendedExpiresOn:ec.toString(),environment:G,clientId:et,realm:er,target:es,tokenType:eh||en.hO.BEARER,lastUpdatedAt:Date.now().toString()};if(ep&&(eg.userAssertionHash=ep),ed&&(eg.refreshOn=ed.toString()),eg.tokenType?.toLowerCase()!==en.hO.BEARER.toLowerCase())switch(eg.credentialType=en.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME,eg.tokenType){case en.hO.POP:let em=extractTokenClaims(J,eu);if(!em?.cnf?.kid)throw(0,ei.z)(eo.P_);eg.keyId=em.cnf.kid;break;case en.hO.SSH:eg.keyId=ef}return eg}function isCredentialEntity(K){return K.hasOwnProperty("homeAccountId")&&K.hasOwnProperty("environment")&&K.hasOwnProperty("credentialType")&&K.hasOwnProperty("clientId")&&K.hasOwnProperty("secret")}function isAccessTokenEntity(K){return!!K&&isCredentialEntity(K)&&K.hasOwnProperty("realm")&&K.hasOwnProperty("target")&&(K.credentialType===en.d3.ACCESS_TOKEN||K.credentialType===en.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME)}function isRefreshTokenEntity(K){return!!K&&isCredentialEntity(K)&&K.credentialType===en.d3.REFRESH_TOKEN}function updateAuthorityEndpointMetadata(K,G,J){K.authorization_endpoint=G.authorization_endpoint,K.token_endpoint=G.token_endpoint,K.end_session_endpoint=G.end_session_endpoint,K.issuer=G.issuer,K.endpointsFromNetwork=J,K.jwks_uri=G.jwks_uri}function updateCloudDiscoveryMetadata(K,G,J){K.aliases=G.aliases,K.preferred_cache=G.preferred_cache,K.preferred_network=G.preferred_network,K.aliasesFromNetwork=J}function isAuthorityMetadataExpired(K){return K.expiresAt<=nowSeconds()}RegionDiscovery.IMDS_OPTIONS={headers:{Metadata:"true"}};var tk=J(9770);/*! @azure/msal-common v16.5.1 2026-04-21 */let Authority=class Authority{constructor(K,G,J,et,er,en,ei,eo){this.canonicalAuthority=K,this._canonicalAuthority.val
89idateAsUri(),this.networkInterface=G,this.cacheManager=J,this.authorityOptions=et,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=er,this.performanceClient=ei,this.correlationId=en,this.managedIdentity=eo||!1,this.regionDiscovery=new RegionDiscovery(G,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(K){if(K.HostNameAndPort.endsWith(en.qW))return ts.Ciam;let G=K.PathSegments;if(G.length)switch(G[0].toLowerCase()){case en.H4:return ts.Adfs;case en.wo:return ts.Dsts}return ts.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(K){this._canonicalAuthority=new tl.G(K),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw(0,ei.z)(eo.HO)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw(0,ei.z)(eo.HO)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw(0,ei.z)(eo.HO)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw(0,ei.z)(eo.ig);return this.replacePath(this.metadata.end_session_endpoint)}throw(0,ei.z)(eo.HO)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw(0,ei.z)(eo.HO)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw(0,ei.z)(eo.HO)}canReplaceTenant(K){return 1===K.PathSegments.length&&!Authority.reservedTenantDomains.has(K.PathSegments[0])&&this.getAuthorityType(K)===ts.Default&&this.protocolMode!==tg.OIDC}replaceTenant(K){return K.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(K){let G=K,J=new tl.G(this.metadata.canonical_authority),et=J.getUrlComponents(),er=et.PathSegments,en=this.canonicalAuthorityUrlComponents.PathSegments;return en.forEach((K,J)=>{let en=er[J];if(0===J&&this.canReplaceTenant(et)){let K=new tl.G(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];en!==K&&(this.logger.verbose("1q3g2x",this.correlationId),en=K)}K!==en&&(G=G.replace(`/${en}/`,`/${K}/`))}),this.replaceTenant(G)}get defaultOpenIdConfigurationEndpoint(){let K=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===ts.Adfs||this.protocolMode===tg.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(K)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){let K=this.getCurrentMetadataEntity(),G=await invokeAsync(this.updateCloudDiscoveryMetadata.bind(this),"authorityUpdateCloudDiscoveryMetadata",this.logger,this.performanceClient,this.correlationId)(K);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,K.preferred_network);let J=await invokeAsync(this.updateEndpointMetadata.bind(this),"authorityUpdateEndpointMetadata",this.logger,this.performanceClient,this.correlationId)(K);this.updateCachedMetadata(K,G,{source:J}),this.performanceClient?.addFields({cloudDiscoverySource:G,authorityEndpointSource:J},this.correlationId)}getCurrentMetadataEntity(){let K=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort,this.correlationId);return K||(K={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:nowSeconds()+en.oX,jwks_uri:""}),K}updateCachedMetadata(K,G,J){G!==en.pQ.CACHE&&J?.source!==en.pQ.CACHE&&(K.expiresAt=nowSeconds()+en.oX,K.canonical_authority=this.canonicalAuthority);let et=this.cacheManager.generateAuthorityMetadataCacheKey(K.preferred_cache,this.correlationId);this.cacheManager.setAuthorityMetadata(et,K,this.correlationId),this.metadata=K}async updateEndpointMetadata(K){let G=this.updateEndpointMetadataFromLocalSources(K);if(G){if(G.source===en.pQ.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&G.metadata){let J=await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this),t_,this.logger,this.performanceClient,this.correlationId)(G.metadata);updateAuthorityEndpointMetadata(K,J,!1),K.canonical_authority=this.canonicalAuthority}return G.source}let J=await invokeAsync(this.getEndpointMetadataFromNetwork.bind(this),"authorityGetEndpointMetadataFromNetwork",this.logger,this.performanceClient,this.correlationId)();if(J)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(J=await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this),t_,this.logger,this.performanceClient,this.correlationId)(J)),updateAuthorityEndpointMetadata(K,J,!0),en.pQ.NETWORK;throw(0,ei.z)(eo.Ce,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(K){this.logger.verbose("1fi0kc",this.correlationId);let G=this.getEndpointMetadataFromConfig();if(G)return this.logger.verbose("06t0uj",this.correlationId),updateAuthorityEndpointMetadata(K,G,!1),{source:en.pQ.CONFIG};this.logger.verbose("151k0p",this.correlationId);let J=this.getEndpointMetadataFromHardcodedValues();if(J)return updateAuthorityEndpointMetadata(K,J,!1),{source:en.pQ.HARDCODED_VALUES,metadata:J};this.logger.verbose("1imop5",this.correlationId);let et=isAuthorityMetadataExpired(K);return this.isAuthoritySameType(K)&&K.endpointsFromNetwork&&!et?(this.logger.verbose("16uq31",""),{source:en.pQ.CACHE}):(et&&this.logger.verbose("0uoibc",""),null)}isAuthoritySameType(K){let G=new tl.G(K.canonical_authority),J=G.getUrlComponents().PathSegments;return J.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(K){throw(0,tf.e)(tk.zx)}return null}async getEndpointMetadataFromNetwork(){let K=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose("1y65x6",this.correlationId);try{var G;let J=await this.networkInterface.sendGetRequestAsync(K,{}),et=(G=J.body).hasOwnProperty("authorization_endpoint")&&G.hasOwnProperty("token_endpoint")&&G.hasOwnProperty("issuer")&&G.hasOwnProperty("jwks_uri");if(et)return J.body;return this.logger.verbose("1koyv8",this.correlationId),null}catch(K){return this.logger.verbose("0a9wik",this.correlationId),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in td?td[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(K){let G=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(G){if(G!==en.RW)return this.regionDiscoveryMetadata.region_outcome=en.
89ki.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=G,Authority.replaceWithRegionalInformation(K,G);let J=await invokeAsync(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),"regionDiscoveryDetectRegion",this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(J)return this.regionDiscoveryMetadata.region_outcome=en.ki.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=J,Authority.replaceWithRegionalInformation(K,J);this.regionDiscoveryMetadata.region_outcome=en.ki.AUTO_DETECTION_REQUESTED_FAILED}return K}async updateCloudDiscoveryMetadata(K){let G=this.updateCloudDiscoveryMetadataFromLocalSources(K);if(G)return G;let J=await invokeAsync(this.getCloudDiscoveryMetadataFromNetwork.bind(this),"authorityGetCloudDiscoveryMetadataFromNetwork",this.logger,this.performanceClient,this.correlationId)();if(J)return updateCloudDiscoveryMetadata(K,J,!0),en.pQ.NETWORK;throw(0,tf.e)(tk.o_)}updateCloudDiscoveryMetadataFromLocalSources(K){this.logger.verbose("0jhlgt",this.correlationId),this.logger.verbosePii("1fy7uz",this.correlationId),this.logger.verbosePii("08zabj",this.correlationId),this.logger.verbosePii("1o1kv3",this.correlationId);let G=this.getCloudDiscoveryMetadataFromConfig();if(G)return this.logger.verbose("1nakio",this.correlationId),updateCloudDiscoveryMetadata(K,G,!1),en.pQ.CONFIG;this.logger.verbose("1x74aj",this.correlationId);let J=function(K){let G=getCloudDiscoveryMetadataFromNetworkResponse(th.metadata,K);return G}(this.hostnameAndPort);if(J)return this.logger.verbose("0by47c",this.correlationId),updateCloudDiscoveryMetadata(K,J,!1),en.pQ.HARDCODED_VALUES;this.logger.verbose("0r2fzy",this.correlationId);let et=isAuthorityMetadataExpired(K);return this.isAuthoritySameType(K)&&K.aliasesFromNetwork&&!et?(this.logger.verbose("1uffgh",""),en.pQ.CACHE):(et&&this.logger.verbose("0uoibc",""),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===ts.Ciam)return this.logger.verbose("04y84h",this.correlationId),Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("0gszr3",this.correlationId);try{this.logger.verbose("1iifkx",this.correlationId);let K=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),G=getCloudDiscoveryMetadataFromNetworkResponse(K.metadata,this.hostnameAndPort);if(this.logger.verbose("0q67e3",""),G)return this.logger.verbose("0hzfao",this.correlationId),G;this.logger.verbose("1ajz3u",this.correlationId)}catch(K){throw this.logger.verbose("1wq5tu",this.correlationId),(0,tf.e)(tk.E)}}return this.isInKnownAuthorities()?(this.logger.verbose("0mt9al",this.correlationId),Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){let K=`${en.Dy}${this.canonicalAuthority}oauth2/v2.0/authorize`,G=null;try{var J,et;let er;let ei=await this.networkInterface.sendGetRequestAsync(K,{});if((J=ei.body).hasOwnProperty("tenant_discovery_endpoint")&&J.hasOwnProperty("metadata"))er=ei.body.metadata,this.logger.verbosePii("1vglyt",this.correlationId);else{if(!((et=ei.body).hasOwnProperty("error")&&et.hasOwnProperty("error_description")))return this.logger.error("0768g0",this.correlationId),null;if(this.logger.warning("062uto",this.correlationId),ei.body.error===en.WE)return this.logger.error("1x90tm",this.correlationId),null;this.logger.warning("0wchdm",this.correlationId),this.logger.warning("1s5mpv",this.correlationId),this.logger.warning("1yhqpw",this.correlationId),er=[]}this.logger.verbose("1lrobr",this.correlationId),G=getCloudDiscoveryMetadataFromNetworkResponse(er,this.hostnameAndPort)}catch(K){return K instanceof es.l4?this.logger.error("0vwhc7",this.correlationId):this.logger.error("0s2z41",this.correlationId),null}return G||(this.logger.warning("0jp28q",this.correlationId),this.logger.verbose("130sd8",this.correlationId),G=Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),G}isInKnownAuthorities(){let K=this.authorityOptions.knownAuthorities.filter(K=>K&&tl.G.getDomainFromUrl(K).toLowerCase()===this.hostnameAndPort);return K.length>0}static generateAuthority(K,G){let J;if(G&&G.azureCloudInstance!==tm.None){let K=G.tenant?G.tenant:en.or;J=`${G.azureCloudInstance}/${K}/`}return J||K}static createCloudDiscoveryMetadataFromHost(K){return{preferred_network:K,preferred_cache:K,aliases:[K]}}getPreferredCache(){if(this.managedIdentity)return en.n$;if(this.discoveryComplete())return this.metadata.preferred_cache;throw(0,ei.z)(eo.HO)}isAlias(K){return this.metadata.aliases.indexOf(K)>-1}isAliasOfKnownMicrosoftAuthority(K){return tp.has(K)}static isPublicCloudAuthority(K){return en.r1.indexOf(K)>=0}static buildRegionalAuthorityString(K,G,J){let et=new tl.G(K);et.validateAsUri();let er=et.getUrlComponents(),ei=`${G}.${er.HostNameAndPort}`;this.isPublicCloudAuthority(er.HostNameAndPort)&&(ei=`${G}.${en.o4}`);let eo=tl.G.constructAuthorityUriFromObject({...et.getUrlComponents(),HostNameAndPort:ei}).urlString;return J?`${eo}?${J}`:eo}static replaceWithRegionalInformation(K,G){let J={...K};return J.authorization_endpoint=Authority.buildRegionalAuthorityString(J.authorization_endpoint,G),J.token_endpoint=Authority.buildRegionalAuthorityString(J.token_endpoint,G),J.end_session_endpoint&&(J.end_session_endpoint=Authority.buildRegionalAuthorityString(J.end_session_endpoint,G)),J}static transformCIAMAuthority(K){let G=K,J=new tl.G(K),et=J.getUrlComponents();if(0===et.PathSegments.length&&et.HostNameAndPort.endsWith(en.qW)){let K=et.HostNameAndPort.split(".")[0];G=`${G}${K}${en.iD}`}return G}};function formatAuthorityUri(K){return K.endsWith(en.xZ)?K:`${K}${en.xZ}`}Authority.reservedTenantDomains=new Set(["{tenant}","{tenantid}",en.cO.COMMON,en.cO.CONSUMERS,en.cO.ORGANIZATIONS]);/*! @azure/msal-common v16.5.1 2026-04-21 */let tA="no_tokens_found",tE="refresh_token_expired",tT="ux_not_allowed",tI="bad_token",tP=["interaction_required","consent_required","login_required",tI,tT,"interrupted_user"],tO=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token","ux_not_allowed","interrupted_user"];let InteractionRequiredAuthError=class InteractionRequiredAuthError extends es.l4{constructor(K,G,J,et,er,en,ei,eo){super(K,G,J),Object.setPrototypeOf(this,InteractionRequiredAuthError.prototype),this.timestamp=et||"",this.traceId=er||"",this.correlationId=en||"",this.claims=ei||"",this.name="InteractionRequiredAuthError",this.errorNo=eo}};function isInteractionRequiredError(K,G,J){let et=!!K&&tP.indexOf(K)>-1,er=!!J&&tO.indexOf(J)>
89-1,en=!!G&&tP.some(K=>G.indexOf(K)>-1);return et||en||er}function createInteractionRequiredAuthError(K,G){return new InteractionRequiredAuthError(K,G)}/*! @azure/msal-common v16.5.1 2026-04-21 */function buildClientInfo(K,G){if(!K)throw(0,ei.z)(eo.S7);try{let J=G(K);return JSON.parse(J)}catch(K){throw(0,ei.z)(eo.ZE)}}function buildClientInfoFromHomeAccountId(K){if(!K)throw(0,ei.z)(eo.ZE);let G=K.split(en.r$,2);return{uid:G[0],utid:G.length<2?"":G[1]}}/*! @azure/msal-common v16.5.1 2026-04-21 */function tenantIdMatchesHomeTenant(K,G){return!!K&&!!G&&K===G.split(".")[1]}function buildTenantProfile(K,G,J,et){if(!et)return{tenantId:J,localAccountId:G,username:"",isHomeTenant:tenantIdMatchesHomeTenant(J,K)};{let{oid:G,sub:J,tid:er,name:en,tfp:ei,acr:eo,preferred_username:es,upn:el,login_hint:ec}=et,eu=er||ei||eo||"";return{tenantId:eu,localAccountId:G||J||"",name:en,username:es||el||"",loginHint:ec,isHomeTenant:tenantIdMatchesHomeTenant(eu,K),upn:el}}}function updateAccountTenantProfileData(K,G,J,et){let er=K;if(G){let{isHomeTenant:J,...et}=G;er={...K,...et}}if(J){let{isHomeTenant:G,...en}=buildTenantProfile(K.homeAccountId,K.localAccountId,K.tenantId,J);er={...er,...en,idTokenClaims:J,idToken:et}}return er}/*! @azure/msal-common v16.5.1 2026-04-21 */function getTenantIdFromIdTokenClaims(K){if(K){let G=K.tid||K.tfp||K.acr;return G||null}return null}function getAccountInfo(K){let G=K.tenantProfiles||[];return 0===G.length&&K.realm&&K.localAccountId&&G.push(buildTenantProfile(K.homeAccountId,K.localAccountId,K.realm)),{homeAccountId:K.homeAccountId,environment:K.environment,tenantId:K.realm,username:K.username,localAccountId:K.localAccountId,loginHint:K.loginHint,name:K.name,nativeAccountId:K.nativeAccountId,authorityType:K.authorityType,tenantProfiles:new Map(G.map(K=>[K.tenantId,K])),dataBoundary:K.dataBoundary}}function generateHomeAccountId(K,G,J,et,er,en){if(!(G===ts.Adfs||G===ts.Dsts)){if(K)try{let G=buildClientInfo(K,et.base64Decode);if(G.uid&&G.utid)return`${G.uid}.${G.utid}`}catch(K){}J.warning("1ub6wv",er)}return en?.sub||""}/*! @azure/msal-common v16.5.1 2026-04-21 */function getRequestThumbprint(K,G,J){return{clientId:K,authority:G.authority,scopes:G.scopes,homeAccountIdentifier:J,claims:G.claims,authenticationScheme:G.authenticationScheme,resourceRequestMethod:G.resourceRequestMethod,resourceRequestUri:G.resourceRequestUri,shrClaims:G.shrClaims,sshKid:G.sshKid,embeddedClientId:G.embeddedClientId||G.extraParameters?.clientId}}let tR="acquireTokenRedirect";var tx=J(1639);/*! @azure/msal-common v16.5.1 2026-04-21 */let ScopeSet=class ScopeSet{constructor(K){let G=K?tx.x.trimArrayEntries([...K]):[],J=G?tx.x.removeEmptyStringsFromArray(G):[];if(!J||!J.length)throw(0,tf.e)(tk.vE);this.scopes=new Set,J.forEach(K=>this.scopes.add(K))}static fromString(K){let G=(K||"").split(" ");return new ScopeSet(G)}static createSearchScopes(K){let G=K&&K.length>0?K:[...en.f_],J=new ScopeSet(G);return J.containsOnlyOIDCScopes()?J.removeScope(en.U1):J.removeOIDCScopes(),J}containsScope(K){let G=this.printScopesLowerCase().split(" "),J=new ScopeSet(G);return!!K&&J.scopes.has(K.toLowerCase())}containsScopeSet(K){return!!K&&!(K.scopes.size<=0)&&this.scopes.size>=K.scopes.size&&K.asArray().every(K=>this.containsScope(K))}containsOnlyOIDCScopes(){let K=0;return en.$f.forEach(G=>{this.containsScope(G)&&(K+=1)}),this.scopes.size===K}appendScope(K){K&&this.scopes.add(K.trim())}appendScopes(K){try{K.forEach(K=>this.appendScope(K))}catch(K){throw(0,ei.z)(eo.f4)}}removeScope(K){if(!K)throw(0,ei.z)(eo.v1);this.scopes.delete(K.trim())}removeOIDCScopes(){en.$f.forEach(K=>{this.scopes.delete(K)})}unionScopeSets(K){if(!K)throw(0,ei.z)(eo.S);let G=new Set;return K.scopes.forEach(K=>G.add(K.toLowerCase())),this.scopes.forEach(K=>G.add(K.toLowerCase())),G}intersectingScopeSets(K){if(!K)throw(0,ei.z)(eo.S);K.containsOnlyOIDCScopes()||K.removeOIDCScopes();let G=this.unionScopeSets(K),J=K.getScopeCount(),et=this.getScopeCount(),er=G.size;return er<et+J}getScopeCount(){return this.scopes.size}asArray(){let K=[];return this.scopes.forEach(G=>K.push(G)),K}printScopes(){if(this.scopes){let K=this.asArray();return K.join(" ")}return""}printScopesLowerCase(){return this.printScopes().toLowerCase()}};/*! @azure/msal-common v16.5.1 2026-04-21 */let tD="@azure/msal-common",tM="16.5.1",tN="cache_quota_exceeded";/*! @azure/msal-common v16.5.1 2026-04-21 */let CacheError=class CacheError extends 
89Error{constructor(K,G){let J=G||(0,es.GV)(K);super(J),Object.setPrototypeOf(this,CacheError.prototype),this.name="CacheError",this.errorCode=K,this.errorMessage=J}};function createCacheError(K){return K instanceof Error?"QuotaExceededError"===K.name||"NS_ERROR_DOM_QUOTA_REACHED"===K.name||K.message.includes("exceeded the quota")?new CacheError(tN):new CacheError(K.name,K.message):new CacheError("cache_error_unknown")}/*! @azure/msal-common v16.5.1 2026-04-21 */let CacheManager=class CacheManager{constructor(K,G,J,et,er){this.clientId=K,this.cryptoImpl=G,this.commonLogger=J.clone(tD,tM),this.staticAuthorityOptions=er,this.performanceClient=et}getAllAccounts(K={},G){return this.buildTenantProfiles(this.getAccountsFilteredBy(K,G),G,K)}getAccountInfoFilteredBy(K,G){if(0===Object.keys(K).length||Object.values(K).every(K=>null==K||""===K))return this.commonLogger.warning("1skb02",G),null;let J=this.getAllAccounts(K,G);if(J.length>1){let K=J.sort(K=>K.idTokenClaims?-1:1);return K[0]}return 1===J.length?J[0]:null}getBaseAccountInfo(K,G){let J=this.getAccountsFilteredBy(K,G);return J.length>0?getAccountInfo(J[0]):null}buildTenantProfiles(K,G,J){return K.flatMap(K=>this.getTenantProfilesFromAccountEntity(K,G,J?.tenantId,J))}getTenantedAccountInfoByFilter(K,G,J,et,er){let en;if(er&&!this.tenantProfileMatchesFilter(J,er))return null;let ei=this.getIdToken(K,et,G,J.tenantId);return ei&&(en=extractTokenClaims(ei.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(en,er))?null:updateAccountTenantProfileData(K,J,en,ei?.secret)}getTenantProfilesFromAccountEntity(K,G,J,et){let er=getAccountInfo(K),en=er.tenantProfiles||new Map,ei=this.getTokenKeys();if(J){let K=en.get(J);if(!K)return[];en=new Map([[J,K]])}let eo=[];return en.forEach(K=>{let J=this.getTenantedAccountInfoByFilter(er,ei,K,G,et);J&&eo.push(J)}),eo}tenantProfileMatchesFilter(K,G){return(!G.localAccountId||!!this.matchLocalAccountIdFromTenantProfile(K,G.localAccountId))&&(!G.name||K.name===G.name)&&(void 0===G.isHomeTenant||K.isHomeTenant===G.isHomeTenant)&&(!G.username||!!(this.matchUsername(K.username,G.username)||!this.matchUsername(K.upn,G.username)))&&(!G.loginHint||!!this.matchLoginHintWithTenantProfile(K,G.loginHint))&&(!G.upn||K.upn===G.upn)}idTokenClaimsMatchTenantProfileFilter(K,G){return!G||(!G.localAccountId||!!this.matchLocalAccountIdFromTokenClaims(K,G.localAccountId))&&(!G.loginHint||!!this.matchLoginHintFromTokenClaims(K,G.loginHint))&&(!G.username||!!this.matchUsername(K.preferred_username,G.username)||!!this.matchUsername(K.upn,G.username))&&(!G.name||!!this.matchName(K,G.name))&&(!G.sid||!!this.matchSid(K,G.sid))}async saveCacheRecord(K,G,J,et,er){if(!K)throw(0,ei.z)(eo.mj);try{K.account&&await this.setAccount(K.account,G,J,et),K.idToken&&er?.idToken!==!1&&await this.setIdTokenCredential(K.idToken,G,J),K.accessToken&&er?.accessToken!==!1&&await this.saveAccessToken(K.accessToken,G,J),K.refreshToken&&er?.refreshToken!==!1&&await this.setRefreshTokenCredential(K.refreshToken,G,J),K.appMetadata&&this.setAppMetadata(K.appMetadata,G)}catch(K){if(this.commonLogger?.error("0j476p",G),K instanceof es.l4)throw K;throw createCacheError(K)}}async saveAccessToken(K,G,J){let et={clientId:K.clientId,credentialType:K.credentialType,environment:K.environment,homeAccountId:K.homeAccountId,realm:K.realm,tokenType:K.tokenType},er=this.getTokenKeys(),en=ScopeSet.fromString(K.target);er.accessToken.forEach(K=>{if(!this.accessTokenKeyMatchesFilter(K,et,!1))return;let J=this.getAccessTokenCredential(K,G);if(J&&this.credentialMatchesFilter(J,et,G)){let et=ScopeSet.fromString(J.target);et.intersectingScopeSets(en)&&this.removeAccessToken(K,G)}}),await this.setAccessTokenCredential(K,G,J)}getAccountsFilteredBy(K,G){let J=this.getAccountKeys(),et=[];return J.forEach(J=>{let er=this.getAccount(J,G);if(!er||K.homeAccountId&&!this.matchHomeAccountId(er,K.homeAccountId)||K.environment&&!this.matchEnvironment(er,K.environment,G)||K.realm&&!this.matchRealm(er,K.realm)||K.nativeAccountId&&!this.matchNativeAccountId(er,K.nativeAccountId)||K.authorityType&&!this.matchAuthorityType(er,K.authorityType))return;let en={localAccountId:K?.localAccountId,name:K?.name,username:K?.username,loginHint:K?.loginHint,upn:K?.upn},ei=er.tenantProfiles?.filter(K=>this.tenantProfileMatchesFilter(K,en));ei&&0===ei.length||et.push(er)}),et}credentialMatchesFilter(K,G,J){return!!((!G.clientId||this.matchClientId(K,G.clientId))&&(!G.userAssertionHash||this.matchUserAssertionHash(K,G.userAssertionHash))&&
89("string"!=typeof G.homeAccountId||this.matchHomeAccountId(K,G.homeAccountId))&&(!G.environment||this.matchEnvironment(K,G.environment,J))&&(!G.realm||this.matchRealm(K,G.realm))&&(!G.credentialType||this.matchCredentialType(K,G.credentialType))&&(!G.familyId||this.matchFamilyId(K,G.familyId))&&(!G.target||this.matchTarget(K,G.target))&&(K.credentialType!==en.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME||(!G.tokenType||this.matchTokenType(K,G.tokenType))&&(G.tokenType!==en.hO.SSH||!G.keyId||this.matchKeyId(K,G.keyId))))}getAppMetadataFilteredBy(K,G){let J=this.getKeys(),et={};return J.forEach(J=>{if(!this.isAppMetadata(J))return;let er=this.getAppMetadata(J,G);er&&(!K.environment||this.matchEnvironment(er,K.environment,G))&&(!K.clientId||this.matchClientId(er,K.clientId))&&(et[J]=er)}),et}getAuthorityMetadataByAlias(K,G){let J=this.getAuthorityMetadataKeys(),et=null;return J.forEach(J=>{if(!this.isAuthorityMetadata(J)||-1===J.indexOf(this.clientId))return;let er=this.getAuthorityMetadata(J,G);er&&-1!==er.aliases.indexOf(K)&&(et=er)}),et}removeAllAccounts(K){let G=this.getAllAccounts({},K);G.forEach(G=>{this.removeAccount(G,K)})}removeAccount(K,G){this.removeAccountContext(K,G);let J=this.getAccountKeys();J.filter(G=>G.includes(K.homeAccountId)&&G.includes(K.environment)).forEach(K=>{this.removeItem(K,G),this.performanceClient.incrementFields({accountsRemoved:1},G)})}removeAccountContext(K,G){let J=this.getTokenKeys(),keyFilter=G=>G.includes(K.homeAccountId)&&G.includes(K.environment);J.idToken.filter(keyFilter).forEach(K=>{this.removeIdToken(K,G)}),J.accessToken.filter(keyFilter).forEach(K=>{this.removeAccessToken(K,G)}),J.refreshToken.filter(keyFilter).forEach(K=>{this.removeRefreshToken(K,G)})}removeAccessToken(K,G){let J=this.getAccessTokenCredential(K,G);if(J&&(this.removeItem(K,G),this.performanceClient.incrementFields({accessTokensRemoved:1},G),J.credentialType.toLowerCase()===en.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&J.tokenType===en.hO.POP)){let K=J.keyId;K&&this.cryptoImpl.removeTokenBindingKey(K,G).catch(()=>{this.commonLogger.error("0cx291",G),this.performanceClient?.incrementFields({removeTokenBindingKeyFailure:1},G)})}}removeAppMetadata(K){let G=this.getKeys();return G.forEach(G=>{this.isAppMetadata(G)&&this.removeItem(G,K)}),!0}getIdToken(K,G,J,et){this.commonLogger.trace("1drz22",G);let er={homeAccountId:K.homeAccountId,environment:K.environment,credentialType:en.d3.ID_TOKEN,clientId:this.clientId,realm:et},ei=this.getIdTokensByFilter(er,G,J),eo=ei.size;if(eo<1)return this.commonLogger.info("1atvtd",G),null;if(eo>1){let J=ei;if(!et){let et=new Map;ei.forEach((G,J)=>{G.realm===K.tenantId&&et.set(J,G)});let er=et.size;if(er<1)return this.commonLogger.info("0ooalx",G),ei.values().next().value??null;if(1===er)return this.commonLogger.info("1eq2vc",G),et.values().next().value??null;J=et}return this.commonLogger.info("1ws328",G),J.forEach((K,J)=>{this.removeIdToken(J,G)}),this.performanceClient.addFields({multiMatchedID:ei.size},G),null}return this.commonLogger.info("1sm769",G),ei.values().next().value??null}getIdTokensByFilter(K,G,J){let et=J&&J.idToken||this.getTokenKeys().idToken,er=new Map;return et.forEach(J=>{if(!this.idTokenKeyMatchesFilter(J,{clientId:this.clientId,...K}))return;let et=this.getIdTokenCredential(J,G);et&&this.credentialMatchesFilter(et,K,G)&&er.set(J,et)}),er}idTokenKeyMatchesFilter(K,G){let J=K.toLowerCase();return(!G.clientId||-1!==J.indexOf(G.clientId.toLowerCase()))&&(!G.homeAccountId||-1!==J.indexOf(G.homeAccountId.toLowerCase()))}removeIdToken(K,G){this.removeItem(K,G)}removeRefreshToken(K,G){this.removeItem(K,G)}getAccessToken(K,G,J,et){let er=G.correlationId;this.commonLogger.trace("1t7hz1",er);let ei=ScopeSet.createSearchScopes(G.scopes),eo=G.authenticationScheme||en.hO.BEARER,es=eo&&eo.toLowerCase()!==en.hO.BEARER.toLowerCase()?en.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:en.d3.ACCESS_TOKEN,el={homeAccountId:K.homeAccountId,environment:K.environment,credentialType:es,clientId:this.clientId,realm:et||K.tenantId,target:ei,tokenType:eo,keyId:G.sshKid},ec=J&&J.accessToken||this.getTokenKeys().accessToken,eu=[];
89ec.forEach(K=>{if(this.accessTokenKeyMatchesFilter(K,el,!0)){let G=this.getAccessTokenCredential(K,er);G&&this.credentialMatchesFilter(G,el,er)&&eu.push(G)}});let ed=eu.length;return ed<1?(this.commonLogger.info("1nckna",er),null):ed>1?(this.commonLogger.info("1wkfwp",er),eu.forEach(K=>{this.removeAccessToken(this.generateCredentialKey(K),er)}),this.performanceClient.addFields({multiMatchedAT:eu.length},er),null):(this.commonLogger.info("06yt98",er),eu[0])}accessTokenKeyMatchesFilter(K,G,J){let et=K.toLowerCase();if(G.clientId&&-1===et.indexOf(G.clientId.toLowerCase())||G.homeAccountId&&-1===et.indexOf(G.homeAccountId.toLowerCase())||G.realm&&-1===et.indexOf(G.realm.toLowerCase()))return!1;if(G.target){let K=G.target.asArray();for(let G=0;G<K.length;G++){if(J&&!et.includes(K[G].toLowerCase()))return!1;if(!J&&et.includes(K[G].toLowerCase()))break}}return!0}getAccessTokensByFilter(K,G){let J=this.getTokenKeys(),et=[];return J.accessToken.forEach(J=>{if(!this.accessTokenKeyMatchesFilter(J,K,!0))return;let er=this.getAccessTokenCredential(J,G);er&&this.credentialMatchesFilter(er,K,G)&&et.push(er)}),et}getRefreshToken(K,G,J,et){this.commonLogger.trace("0x53vi",J);let er=G?en.ch:void 0,ei={homeAccountId:K.homeAccountId,environment:K.environment,credentialType:en.d3.REFRESH_TOKEN,clientId:this.clientId,familyId:er},eo=et&&et.refreshToken||this.getTokenKeys().refreshToken,es=[];eo.forEach(K=>{if(this.refreshTokenKeyMatchesFilter(K,ei)){let G=this.getRefreshTokenCredential(K,J);G&&this.credentialMatchesFilter(G,ei,J)&&es.push(G)}});let el=es.length;return el<1?(this.commonLogger.info("0dlw11",J),null):(el>1&&this.performanceClient.addFields({multiMatchedRT:el},J),this.commonLogger.info("0wcnep",J),es[0])}refreshTokenKeyMatchesFilter(K,G){let J=K.toLowerCase();return(!G.familyId||-1!==J.indexOf(G.familyId.toLowerCase()))&&(!!G.familyId||!G.clientId||-1!==J.indexOf(G.clientId.toLowerCase()))&&(!G.homeAccountId||-1!==J.indexOf(G.homeAccountId.toLowerCase()))}readAppMetadataFromCache(K,G){let J={environment:K,clientId:this.clientId},et=this.getAppMetadataFilteredBy(J,G),er=Object.keys(et).map(K=>et[K]),en=er.length;if(en<1)return null;if(en>1)throw(0,ei.z)(eo.EC);return er[0]}isAppMetadataFOCI(K,G){let J=this.readAppMetadataFromCache(K,G);return!!(J&&J.familyId===en.ch)}matchHomeAccountId(K,G){return!!("string"==typeof K.homeAccountId&&G===K.homeAccountId)}matchLocalAccountIdFromTokenClaims(K,G){let J=K.oid||K.sub;return G===J}matchLocalAccountIdFromTenantProfile(K,G){return K.localAccountId===G}matchName(K,G){return!(G.toLowerCase()!==K.name?.toLowerCase())}matchUsername(K,G){return!!(K&&"string"==typeof K&&G?.toLowerCase()===K.toLowerCase())}matchLoginHintWithTenantProfile(K,G){return K.loginHint===G||K.username===G||K.upn===G}matchUserAssertionHash(K,G){return!!(K.userAssertionHash&&G===K.userAssertionHash)}matchEnvironment(K,G,J){if(this.staticAuthorityOptions){let et=function(K,G,J){let et;let er=K.canonicalAuthority;if(er){let en=new tl.G(er).getUrlComponents().HostNameAndPort;et=getAliasesFromMetadata(G,J,en,K.cloudDiscoveryMetadata?.metadata)||getAliasesFromMetadata(G,J,en,th.metadata)||K.knownAuthorities}return et||[]}(this.staticAuthorityOptions,this.commonLogger,J);if(et.includes(G)&&et.includes(K.environment))return!0}let et=this.getAuthorityMetadataByAlias(G,J);return!!(et&&et.aliases.indexOf(K.environment)>-1)}matchCredentialType(K,G){return K.credentialType&&G.toLowerCase()===K.credentialType.toLowerCase()}matchClientId(K,G){return!!(K.clientId&&G===K.clientId)}matchFamilyId(K,G){return!!(K.familyId&&G===K.familyId)}matchRealm(K,G){return!(K.realm?.toLowerCase()!==G.toLowerCase())}matchNativeAccountId(K,G){return!!(K.nativeAccountId&&G===K.nativeAccountId)}matchLoginHintFromTokenClaims(K,G){return!!(K.login_hint===G||K.preferred_username===G||K.upn===G||K.emails&&K.emails.includes(G))}matchSid(K,G){return K.sid===G}matchAuthorityType(K,G){return!!(K.authorityType&&G.toLowerCase()===K.authorityType.toLowerCase())}matchTarget(K,G){let J=K.credentialType!==en.d3.ACCESS_TOKEN&&K.credentialType!==en.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(J||!K.target)return!1;let et=ScopeSet.fromString(K.target);return et.containsScopeSet(G)}matchTokenType(K,G){return!!(K.tokenType&&K.tokenType===G)}matchKeyId(K,G){return!!(K.keyId&&K.keyId===G)}isAppMetadata(K){return -1!==K.indexOf(en.dg)}isAuthorityMetadata(K){return -1!==K.indexOf(en.L4)}generateAuthorityMetadataCacheKey(K){return`${en.L4}-${this.clientId}-${K}`}static toObject(K,G){for(let J in G)K[J]=G[J];return K}};let DefaultStorageClass=class DefaultStorageClass extends CacheManager{async setAccount(){throw(0,ei.z)(eo.M2)}getAccount(){throw(0,ei.z)(eo.M2)}async setIdTokenCredential(){throw(0,ei.z)(eo.M2)}getIdTokenCredential(){throw(0,ei.z)(eo.M2)}async setAccessTokenCredential(){throw(0,ei.z)(eo.M2)}getAccessTokenCredential(){throw(0,ei.z)(eo.M2)}async setRefreshTokenCredential(){throw(0,ei.z)(eo.M2)}getRefreshTokenCredential(){throw(0,ei.z)(eo.M2)}setAppMetadata(){throw(0,ei.z)(eo.M2)}getAppMetadata(){throw(0,ei.z)(eo.M2)}setServerTelemetry(){throw(0,ei.z)(eo.M2)}getServerTelemetry(){throw(0,ei.z)(eo.M2)}setAuthorityMetadata(){throw(0,ei.z)(eo.M2)}getAuthorityMetadata(){throw(0,ei.z)(eo.M2)}getAuthorityMetadataKeys(){throw(0,ei.z)(eo.M2)}setThrottlingCache(){throw(0,ei.z)(eo.M2)}getThrottlingCache(){throw(0,ei.z)(eo.M2)}removeItem(){throw(0,ei.z)(eo.M2)}getKeys(){throw(0,ei.z)(eo.M2)}getAccountKeys(){throw(0,ei.z)(eo.M2)}getTokenKeys(){throw(0,ei.z)(eo.M2)}generateCredentialKey(){throw(0,ei.z)(eo.M2)}generateAccountKey(){throw(0,ei.z)(eo.M2)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let tL="msal",tF="browser",tB=`${tL}.${tF}.log.level`,tU=`${tL}.${tF}.log.pii`,tz=`${tL}.${tF}.platform.auth.dom`,tj=`${tL}.version`,tV="account.keys",tH="token.keys",tq=`${tL}.${tF}.sso.capable`;function getAccountKeysCacheKey(K=3){return K<1?`${tL}.${tV}`:`${tL}.${K}.${tV}`}function getTokenKeysCacheKey(K,G=3){return G<1?`${tL}.${tH}.${K}`:`${tL}.${G}.${tH}.${K}`}/*! @azure/msal-browser v5.8.0 2026-04-21 */let BrowserConfigurationAuthError=class BrowserConfigurationAuthError extends es.l4{constructor(K,G){super(K,G),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,BrowserConfigurationAuthError.prototype)}};function createBrowserConfigurationAuthError(K){return new BrowserConfigurationAuthError(K,getDefaultErrorMessage(K))}
89let t$={Lax:"Lax",None:"None"};let CookieStorage=class CookieStorage{initialize(){return Promise.resolve()}getItem(K){let G=`${encodeURIComponent(K)}`,J=document.cookie.split(";");for(let K=0;K<J.length;K++){let et=J[K],[er,...en]=decodeURIComponent(et).trim().split("="),ei=en.join("=");if(er===G)return ei}return""}getUserData(){throw(0,ei.z)(eo.M2)}setItem(K,G,J,et=!0,er=t$.Lax){let en=`${encodeURIComponent(K)}=${encodeURIComponent(G)};path=/;SameSite=${er};`;if(J){let K=function(K){let G=new Date,J=new Date(G.getTime()+864e5*K);return J.toUTCString()}(J);en+=`expires=${K};`}(et||er===t$.None)&&(en+="Secure;"),document.cookie=en}async setUserData(){return Promise.reject((0,ei.z)(eo.M2))}removeItem(K){this.setItem(K,"",-1)}getKeys(){let K=document.cookie.split(";"),G=[];return K.forEach(K=>{let J=decodeURIComponent(K).trim().split("=");G.push(J[0])}),G}containsKey(K){return this.getKeys().includes(K)}decryptData(){return Promise.resolve(null)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */function getAccountKeys(K,G){let J=K.getItem(getAccountKeysCacheKey(G));return J?JSON.parse(J):[]}function getTokenKeys(K,G,J){let et=G.getItem(getTokenKeysCacheKey(K,J));if(et){let K=JSON.parse(et);if(K&&K.hasOwnProperty("idToken")&&K.hasOwnProperty("accessToken")&&K.hasOwnProperty("refreshToken"))return K}return{idToken:[],accessToken:[],refreshToken:[]}}/*! @azure/msal-browser v5.8.0 2026-04-21 */function isEncrypted(K){return K.hasOwnProperty("id")&&K.hasOwnProperty("nonce")&&K.hasOwnProperty("data")}/*! @azure/msal-browser v5.8.0 2026-04-21 */let tK="storage_not_supported",tW="msal.cache.encryption";let LocalStorage=class LocalStorage{constructor(K,G,J){if(!window.localStorage)throw createBrowserConfigurationAuthError(tK);this.memoryStorage=new MemoryStorage,this.initialized=!1,this.clientId=K,this.logger=G,this.performanceClient=J,this.broadcast=new BroadcastChannel("msal.broadcast.cache")}async initialize(K){let G=new CookieStorage,J=G.getItem(tW),et={key:"",id:""};if(J)try{et=JSON.parse(J)}catch(K){}if(et.key&&et.id){let G=invoke(base64DecToArr,"base64Decode",this.logger,this.performanceClient,K)(et.key);this.encryptionCookie={id:et.id,key:await invokeAsync(generateHKDF,ek,this.logger,this.performanceClient,K)(G)}}else{let J=BrowserCrypto_createNewGuid(),et=await invokeAsync(generateBaseKey,"generateBaseKey",this.logger,this.performanceClient,K)(),er=invoke(urlEncodeArr,"urlEncodeArr",this.logger,this.performanceClient,K)(new Uint8Array(et));this.encryptionCookie={id:J,key:await invokeAsync(generateHKDF,ek,this.logger,this.performanceClient,K)(et)},G.setItem(tW,JSON.stringify({id:J,key:er}),0,!0,t$.None)}await invokeAsync(this.importExistingCache.bind(this),"importExistingCache",this.logger,this.performanceClient,K)(K),this.broadcast.addEventListener("message",G=>{this.updateCache(G,K)}),this.initialized=!0}getItem(K){return window.localStorage.getItem(K)}getUserData(K){if(!this.initialized)throw createBrowserAuthError(eV);return this.memoryStorage.getItem(K)}async decryptData(K,G,J){if(!this.initialized||!this.encryptionCookie)throw createBrowserAuthError(eV);if(G.id!==this.encryptionCookie.id)return this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},J),null;let et=await invokeAsync(decrypt,eA,this.logger,this.performanceClient,J)(this.encryptionCookie.key,G.nonce,this.getContext(K),G.data);if(!et)return null;try{return{...JSON.parse(et),lastUpdatedAt:G.lastUpdatedAt}}catch(K){return this.performanceClient.incrementFields({encryptedCacheCorruptionCount:1},J),null}}setItem(K,G){window.localStorage.setItem(K,G)}async setUserData(K,G,J,et,er){if(!this.initialized||!this.encryptionCookie)throw createBrowserAuthError(eV);if(er)this.setItem(K,G);else{let{data:er,nonce:en}=await invokeAsync(encrypt,"encrypt",this.logger,this.performanceClient,J)(this.encryptionCookie.key,G,this.getContext(K)),ei={id:this.encryptionCookie.id,nonce:en,data:er,lastUpdatedAt:et};this.setItem(K,JSON.stringify(ei))}this.memoryStorage.setItem(K,G),this.broadcast.postMessage({key:K,value:G,context:this.getContext(K)})}removeItem(K){this.memoryStorage.containsKey(K)&&(this.memoryStorage.removeItem(K),this.broadcast.postMessage({key:K,value:null,context:this.getContext(K)})),window.localStorage.removeItem(K)}getKeys(){return Object.keys(window.localStorage)}containsKey(K){return window.localStorage.hasOwnProperty(K)}clear(){this.memoryStorage.clear();let K=getAccountKeys(this);
89K.forEach(K=>this.removeItem(K));let G=getTokenKeys(this.clientId,this);G.idToken.forEach(K=>this.removeItem(K)),G.accessToken.forEach(K=>this.removeItem(K)),G.refreshToken.forEach(K=>this.removeItem(K)),this.getKeys().forEach(K=>{(K.startsWith(tL)||-1!==K.indexOf(this.clientId))&&this.removeItem(K)})}async importExistingCache(K){if(!this.encryptionCookie)return;let G=getAccountKeys(this);(G=await this.importArray(G,K)).length?this.setItem(getAccountKeysCacheKey(),JSON.stringify(G)):this.removeItem(getAccountKeysCacheKey());let J=getTokenKeys(this.clientId,this);J.idToken=await this.importArray(J.idToken,K),J.accessToken=await this.importArray(J.accessToken,K),J.refreshToken=await this.importArray(J.refreshToken,K),J.idToken.length||J.accessToken.length||J.refreshToken.length?this.setItem(getTokenKeysCacheKey(this.clientId),JSON.stringify(J)):this.removeItem(getTokenKeysCacheKey(this.clientId))}async getItemFromEncryptedCache(K,G){let J;if(!this.encryptionCookie)return null;let et=this.getItem(K);if(!et)return null;try{J=JSON.parse(et)}catch(K){return null}return isEncrypted(J)?J.id!==this.encryptionCookie.id?(this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},G),null):(this.performanceClient.incrementFields({encryptedCacheCount:1},G),invokeAsync(decrypt,eA,this.logger,this.performanceClient,G)(this.encryptionCookie.key,J.nonce,this.getContext(K),J.data)):(this.performanceClient.incrementFields({unencryptedCacheCount:1},G),et)}async importArray(K,G){let J=[],et=[];return K.forEach(K=>{let er=this.getItemFromEncryptedCache(K,G).then(G=>{G?(this.memoryStorage.setItem(K,G),J.push(K)):this.removeItem(K)});et.push(er)}),await Promise.all(et),J}getContext(K){let G="";return K.includes(this.clientId)&&(G=this.clientId),G}updateCache(K,G){this.logger.trace("17cxcm",G);let J=this.performanceClient.startMeasurement("localStorageUpdated");J.add({isBackground:!0});let{key:et,value:er,context:en}=K.data;if(!et){this.logger.error("0e10qr",G),J.end({success:!1,errorCode:"noKey"});return}if(en&&en!==this.clientId){this.logger.trace("04rtdy",G),J.end({success:!1,errorCode:"contextMismatch"});return}er?(this.memoryStorage.setItem(et,er),this.logger.verbose("1vzsgt",G)):(this.memoryStorage.removeItem(et),this.logger.verbose("04ypih",G)),J.end({success:!0})}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let SessionStorage=class SessionStorage{constructor(){if(!window.sessionStorage)throw createBrowserConfigurationAuthError(tK)}async initialize(){}getItem(K){return window.sessionStorage.getItem(K)}getUserData(K){return this.getItem(K)}setItem(K,G){window.sessionStorage.setItem(K,G)}async setUserData(K,G){this.setItem(K,G)}removeItem(K){window.sessionStorage.removeItem(K)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(K){return window.sessionStorage.hasOwnProperty(K)}decryptData(){return Promise.resolve(null)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let tG={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_SUCCESS:"msal:loginSuccess",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};var tZ=J(85943);/*! @azure/msal-common v16.5.1 2026-04-21 */function canonicalizeUrl(K){if(!K)return K;let G=K.toLowerCase();return tx.x.endsWith(G,"?")?G=G.slice(0,-1):tx.x.endsWith(G,"?/")&&(G=G.slice(0,-2)),tx.x.endsWith(G,"/")||(G+="/"),G}function stripLeadingHashOrQuery(K){return K.startsWith("#/")?K.substring(2):K.startsWith("#")||K.startsWith("?")?K.substring(1):K}function getDeserializedResponse(K){if(!K||0>K.indexOf("="))return null;try{let G=stripLeadingHashOrQuery(K),J=Object.fromEntries(new URLSearchParams(G));if(J.code||J.ear_jwe||J.error||J.error_description||J.state)return J}catch(K){throw(0,ei.z)(eo.b4)}return null}function mapToQueryString(K){let G=[];
89return K.forEach((K,J)=>{G.push(`${J}=${encodeURIComponent(K)}`)}),G.join("&")}function normalizeUrlForComparison(K){if(!K)return K;let G=K.split("#")[0];try{let K=new URL(G),J=K.origin+K.pathname+K.search;return canonicalizeUrl(J)}catch(K){return canonicalizeUrl(G)}}/*! @azure/msal-common v16.5.1 2026-04-21 */let tJ="client_id",tY="redirect_uri",tQ="token_type",tX="req_cnf",t0="return_spa_code",t1="brk_client_id",t2="brk_redirect_uri",t4="instance_aware";/*! @azure/msal-common v16.5.1 2026-04-21 */function instrumentBrokerParams(K,G,J){if(!G)return;let et=K.get(tJ);et&&K.has(t1)&&J?.addFields({embeddedClientId:et,embeddedRedirectUri:K.get(tY)},G)}function addResponseType(K,G){K.set("response_type",G)}function addScopes(K,G,J=!0,et=en.f_){!J||et.includes("openid")||G.includes("openid")||et.push("openid");let er=J?[...G||[],...et]:G||[],ei=new ScopeSet(er);K.set("scope",ei.printScopes())}function addLoginHint(K,G){K.set("login_hint",G)}function addCcsUpn(K,G){K.set(en.SZ.CCS_HEADER,`UPN:${G}`)}function addCcsOid(K,G){K.set(en.SZ.CCS_HEADER,`Oid:${G.uid}@${G.utid}`)}function addSid(K,G){K.set("sid",G)}function addClaims(K,G,J,et){let er=et&&K.has(t1)?void 0:J;if(!tx.x.isEmptyObj(G)||er&&er.length>0){let J=addClientCapabilitiesToClaims(G,er);try{JSON.parse(J)}catch(K){throw(0,tf.e)(tk.nm)}K.set("claims",J)}}function addCorrelationId(K,G){K.set("client-request-id",G)}function addLibraryInfo(K,G){K.set("x-client-SKU",G.sku),K.set("x-client-VER",G.version),G.os&&K.set("x-client-OS",G.os),G.cpu&&K.set("x-client-CPU",G.cpu)}function addApplicationTelemetry(K,G){G?.appName&&K.set("x-app-name",G.appName),G?.appVersion&&K.set("x-app-ver",G.appVersion)}function addState(K,G){G&&K.set("state",G)}function addCodeChallengeParams(K,G,J){if(G&&J)K.set("code_challenge",G),K.set("code_challenge_method",J);else throw(0,tf.e)(tk.TU)}function addClientSecret(K,G){K.set("client_secret",G)}function addClientAssertion(K,G){G&&K.set("client_assertion",G)}function addClientAssertionType(K,G){G&&K.set("client_assertion_type",G)}function addGrantType(K,G){K.set("grant_type",G)}function addClientInfo(K){K.set(en.sR,"1")}function addInstanceAware(K){K.has(t4)||K.set(t4,"true")}function addExtraParameters(K,G){Object.entries(G).forEach(([G,J])=>{!K.has(G)&&J&&K.set(G,J)})}function addClientCapabilitiesToClaims(K,G){let J;if(K)try{J=JSON.parse(K)}catch(K){throw(0,tf.e)(tk.nm)}else J={};return G&&G.length>0&&(J.hasOwnProperty(en.As.ACCESS_TOKEN)||(J[en.As.ACCESS_TOKEN]={}),J[en.As.ACCESS_TOKEN][en.As.XMS_CC]={values:G}),JSON.stringify(J)}function addPopToken(K,G){G&&(K.set(tQ,en.hO.POP),K.set(tX,G))}function addSshJwk(K,G){G&&(K.set(tQ,en.hO.SSH),K.set(tX,G))}function addServerTelemetry(K,G){K.set("x-client-current-telemetry",G.generateCurrentRequestHeaderValue()),K.set("x-client-last-telemetry",G.generateLastRequestHeaderValue())}function addThrottling(K){K.set("x-ms-lib-capability",en.sN)}function addBrokerParameters(K,G,J){K.has(t1)||K.set(t1,G),K.has(t2)||K.set(t2,J)}function addResource(K,G){G&&K.set("resource",G)}function clearHash(K){K.location.hash="","function"==typeof K.history.replaceState&&K.history.replaceState(null,"",`${K.location.origin}${K.location.pathname}${K.location.search}`)}function isInIframe(){return window.parent!==window}let t5=null;async function waitForBridgeResponse(K,G,J,et,er,en){return new Promise((ei,eo)=>{let es,el,ec;G.verbose("1rf6em",et.correlationId);let eu=et.correlationId;er.addFields({redirectBridgeTimeoutMs:K,lateResponseExperimentEnabled:en?.iframeTimeoutTelemetry||!1},eu);let{libraryState:ed}=tZ.Zq(J.base64Decode,et.state||""),eh=new BroadcastChannel(ed.id),ep=!1,ef=window.setTimeout(()=>{t5=null,en?.iframeTimeoutTelemetry?(el=er.startMeasurement("waitForBridgeLateResponse",eu),ep=!0,es=window.setTimeout(()=>{el?.end({success:!1}),clearTimeout(es),eh.close()},6e4)):eh.close(),eo(createBrowserAuthError(eq,"redirect_bridge_timeout"))},K);t5={timeoutId:ef,channel:eh,reject:eo},eh.onmessage=K=>{ec=K.data.payload;let G=K?.data&&"number"==typeof K.data.v?K.data.v:void 0;if(ep){el?.end({success:!!ec}),clearTimeout(es),eh.close();return}er.addFields({redirectBridgeMessageVersion:G},eu),t5=null,clearTimeout(ef),eh.close(),ec?ei(ec):eo(createBrowserAuthError("redirect_bridge_empty_response"))}})}function getCurrentUri(){return"undefined"!=typeof window&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function blockNonBrowserEnvironment(){if("undefined"==typeof window)throw createBrowserAuthError(eN)}function blockAPICallsBeforeInitialize(K){if(!K)throw createBrowserAuthError(eV)}function preflightCheck(K){blockNonBrowserEnvironment(),function(){let K=getDeserializedResponse(window.location.hash);if(K&&isInIframe())throw createBrowserAuthError("block_iframe_reload")}(),function(){if(function(){if(isInIframe())return!1;try{let{libraryState:K}=/*! @azure/msal-browser v5.8.0 2026-04-21 */function(){let K;let G=window.location.hash,J=window.location.search,et=!1,er=!1,en="";if(G&&G.length>1){let J="#"===G.charAt(0)?G.substring(1):G,er=new URLSearchParams(J);er.has("state")&&(et=!0,en=J,K=er)}if(J&&J.length>1){let G="?"===J.charAt(0)?J.substring(1):J,et=new URLSearchParams(G);et.has("state")&&(er=!0,en=G,K=et)}if(et&&er){let et="?"===J.charAt(0)?J.substring(1):J,er="#"===G.charAt(0)?G.substring(1):G;en=`${et}${er}`,K=new URLSearchParams(en)}if(!en||!K)throw createBrowserAuthError("empty_response");let ei=K.get("state");if(!ei)throw createBrowserAuthError(eR);let{libraryState:eo}=tZ.Zq(base64Decode,ei),{id:es,meta:el}=eo;if(!es||!el)throw createBrowserAuthError(ex,"missing_library_state");return{params:K,payload:en,urlHash:G,urlQuery:J,hasResponseInHash:et,hasResponseInQuery:er,libraryState:{id:es,meta:el}}}(),{meta:G}=K;return G.interactionType===er.Popup}catch(K){return!1}}())throw createBrowserAuthError("block_nested_popups")}(),blockAPICallsBeforeInitialize(K)}function redirectPreflightCheck(K,G){if(preflightCheck(K),!function(K){if(isInIframe()&&!K)throw createBrowserAuthError("redirect_in_iframe")}
89(G.system.allowRedirectInIframe),G.cache.cacheLocation===eG.MemoryStorage)throw createBrowserConfigurationAuthError("in_mem_redirect_unavailable")}function preconnect(K){let G=document.createElement("link");G.rel="preconnect",G.href=new URL(K).origin,G.crossOrigin="anonymous",document.head.appendChild(G),window.setTimeout(()=>{try{document.head.removeChild(G)}catch{}},1e4)}let t6="5.8.0";/*! @azure/msal-browser v5.8.0 2026-04-21 */function removeElementFromArray(K,G){let J=K.indexOf(G);J>-1&&K.splice(J,1)}/*! @azure/msal-browser v5.8.0 2026-04-21 */let BrowserCacheManager=class BrowserCacheManager extends CacheManager{constructor(K,G,J,et,er,en,ei){super(K,J,et,er,ei),this.cacheConfig=G,this.logger=et,this.internalStorage=new MemoryStorage,this.browserStorage=getStorageImplementation(K,G.cacheLocation,et,er),this.temporaryCacheStorage=getStorageImplementation(K,eG.SessionStorage,et,er),this.cookieStorage=new CookieStorage,this.eventHandler=en}async initialize(K){this.performanceClient.addFields({cacheLocation:this.cacheConfig.cacheLocation,cacheRetentionDays:this.cacheConfig.cacheRetentionDays},K),await this.browserStorage.initialize(K),await this.migrateExistingCache(K),this.trackVersionChanges(K)}async migrateExistingCache(K){let G=getAccountKeys(this.browserStorage),J=getTokenKeys(this.clientId,this.browserStorage);this.performanceClient.addFields({preMigrateAcntCount:G.length,preMigrateATCount:J.accessToken.length,preMigrateITCount:J.idToken.length,preMigrateRTCount:J.refreshToken.length},K);for(let G=0;G<3;G++){let J=G;await this.removeStaleAccounts(G,J,K)}for(let G=0;G<3;G++){let J=G;await this.migrateIdTokens(G,J,K)}let et=this.getKMSIValues();for(let G=0;G<3;G++)await this.migrateAccessTokens(G,et,K),await this.migrateRefreshTokens(G,et,K);G=getAccountKeys(this.browserStorage),J=getTokenKeys(this.clientId,this.browserStorage),this.performanceClient.addFields({postMigrateAcntCount:G.length,postMigrateATCount:J.accessToken.length,postMigrateITCount:J.idToken.length,postMigrateRTCount:J.refreshToken.length},K)}async updateOldEntry(K,G){let J=this.browserStorage.getItem(K),et=this.validateAndParseJson(J||"");if(!et)return this.browserStorage.removeItem(K),null;if(et.lastUpdatedAt){if(isCacheExpired(et.lastUpdatedAt,this.cacheConfig.cacheRetentionDays))return this.browserStorage.removeItem(K),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},G),null}else et.lastUpdatedAt=Date.now().toString(),this.setItem(K,JSON.stringify(et),G);let er=isEncrypted(et)?await this.browserStorage.decryptData(K,et,G):et;return er&&isCredentialEntity(er)?(isAccessTokenEntity(er)||isRefreshTokenEntity(er))&&er.expiresOn&&isTokenExpired(er.expiresOn,en.$A)?(this.browserStorage.removeItem(K),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},G),null):er:(this.performanceClient.incrementFields({invalidCacheCount:1},G),null)}async removeStaleAccounts(K,G,J){let et=getAccountKeys(this.browserStorage,K);if(0!==et.length){for(let K of[...et]){this.performanceClient.incrementFields({oldAcntCount:1},J);let er=this.browserStorage.getItem(K),en=this.validateAndParseJson(er||"");if(!en){removeElementFromArray(et,K);continue}if(en.lastUpdatedAt)isCacheExpired(en.lastUpdatedAt,this.cacheConfig.cacheRetentionDays)&&(await this.removeAccountOldSchema(K,en,G,J),removeElementFromArray(et,K));else{en.lastUpdatedAt=Date.now().toString(),this.setItem(K,JSON.stringify(en),J);continue}}this.setAccountKeys(et,J,K)}}async removeAccountOldSchema(K,G,J,et){let er=isEncrypted(G)?await this.browserStorage.decryptData(K,G,et):G,en=er?.homeAccountId;if(en){let K=this.getTokenKeys(J);[...K.idToken].filter(K=>K.includes(en)).forEach(G=>{this.browserStorage.removeItem(G),removeElementFromArray(K.idToken,G)}),[...K.accessToken].filter(K=>K.includes(en)).forEach(G=>{this.browserStorage.removeItem(G),removeElementFromArray(K.accessToken,G)}),[...K.refreshToken].filter(K=>K.includes(en)).forEach(G=>{this.browserStorage.removeItem(G),removeElementFromArray(K.refreshToken,G)}
89),this.setTokenKeys(K,et,J)}this.performanceClient.incrementFields({expiredAcntRemovedCount:1},et),this.browserStorage.removeItem(K)}getKMSIValues(){let K={},G=this.getTokenKeys().idToken;for(let J of G){let G=this.browserStorage.getUserData(J);if(G){let J=JSON.parse(G),et=extractTokenClaims(J.secret,base64Decode);et&&(K[J.homeAccountId]=isKmsi(et))}}return K}async migrateIdTokens(K,G,J){let et=getTokenKeys(this.clientId,this.browserStorage,K);if(0===et.idToken.length)return;let er=getTokenKeys(this.clientId,this.browserStorage,3),en=getAccountKeys(this.browserStorage),ei=getAccountKeys(this.browserStorage,G);for(let K of[...et.idToken]){this.performanceClient.incrementFields({oldITCount:1},J);let G=await this.updateOldEntry(K,J);if(!G){removeElementFromArray(et.idToken,K);continue}let eo=en.find(K=>K.includes(G.homeAccountId)),es=ei.find(K=>K.includes(G.homeAccountId)),el=null;if(eo)el=this.getAccount(eo,J);else if(es){let K=this.browserStorage.getItem(es),G=this.validateAndParseJson(K||"");el=G&&isEncrypted(G)?await this.browserStorage.decryptData(es,G,J):G}if(!el){this.performanceClient.incrementFields({skipITMigrateCount:1},J);continue}let ec=extractTokenClaims(G.secret,base64Decode),eu=this.generateCredentialKey(G),ed=this.getIdTokenCredential(eu,J),eh=Object.keys(ec).includes("signin_state"),ep=ed&&Object.keys(extractTokenClaims(ed.secret,base64Decode)||{}).includes("signin_state");if(!ed||G.lastUpdatedAt>ed.lastUpdatedAt&&(eh||!ep)){let K=el.tenantProfiles||[],et=getTenantIdFromIdTokenClaims(ec)||el.realm;if(et&&!K.find(K=>K.tenantId===et)){let G=buildTenantProfile(el.homeAccountId,el.localAccountId,et,ec);K.push(G)}el.tenantProfiles=K;let ei=this.generateAccountKey(getAccountInfo(el)),eo=isKmsi(ec);await this.setUserData(ei,JSON.stringify(el),J,el.lastUpdatedAt,eo),en.includes(ei)||en.push(ei),await this.setUserData(eu,JSON.stringify(G),J,G.lastUpdatedAt,eo),this.performanceClient.incrementFields({migratedITCount:1},J),er.idToken.includes(eu)||er.idToken.push(eu)}}this.setTokenKeys(et,J,K),this.setTokenKeys(er,J),this.setAccountKeys(en,J)}async migrateAccessTokens(K,G,J){let et=getTokenKeys(this.clientId,this.browserStorage,K);if(0===et.accessToken.length)return;let er=getTokenKeys(this.clientId,this.browserStorage,3);for(let K of[...et.accessToken]){this.performanceClient.incrementFields({oldATCount:1},J);let en=await this.updateOldEntry(K,J);if(!en){removeElementFromArray(et.accessToken,K);continue}if(!(en.homeAccountId in G)){this.performanceClient.incrementFields({skipATMigrateCount:1},J);continue}let ei=this.generateCredentialKey(en),eo=G[en.homeAccountId];if(er.accessToken.includes(ei)){let K=this.getAccessTokenCredential(ei,J);(!K||en.lastUpdatedAt>K.lastUpdatedAt)&&(await this.setUserData(ei,JSON.stringify(en),J,en.lastUpdatedAt,eo),this.performanceClient.incrementFields({migratedATCount:1},J))}else await this.setUserData(ei,JSON.stringify(en),J,en.lastUpdatedAt,eo),this.performanceClient.incrementFields({migratedATCount:1},J),er.accessToken.push(ei)}this.setTokenKeys(et,J,K),this.setTokenKeys(er,J)}async migrateRefreshTokens(K,G,J){let et=getTokenKeys(this.clientId,this.browserStorage,K);if(0===et.refreshToken.length)return;let er=getTokenKeys(this.clientId,this.browserStorage,3);for(let K of[...et.refreshToken]){this.performanceClient.incrementFields({oldRTCount:1},J);let en=await this.updateOldEntry(K,J);if(!en){removeElementFromArray(et.refreshToken,K);continue}if(!(en.homeAccountId in G)){this.performanceClient.incrementFields({skipRTMigrateCount:1},J);continue}let ei=this.generateCredentialKey(en),eo=G[en.homeAccountId];if(er.refreshToken.includes(ei)){let K=this.getRefreshTokenCredential(ei,J);(!K||en.lastUpdatedAt>K.lastUpdatedAt)&&(await this.setUserData(ei,JSON.stringify(en),J,en.lastUpdatedAt,eo),this.performanceClient.incrementFields({migratedRTCount:1},J))}else await this.setUserData(ei,JSON.stringify(en),J,en.lastUpdatedAt,eo),this.performanceClient.incrementFields({migratedRTCount:1},J),er.refreshToken.push(ei)}this.setTokenKeys(et,J,K),this.setTokenKeys(er,J)}trackVersionChanges(K){let G=this.browserStorage.getItem(tj);G&&(this.logger.info("1wuc87",K),this.performanceClient.addFields({previousLibraryVersion:G},K)),G!==t6&&this.setItem(tj,t6,K)}validateAndParseJson(K){if(!K)return null;try{let G=JSON.parse(K);return G&&"object"==typeof G?G:null}catch(K){return null}}setItem(K,G,J){let et=[,,,,].fill(0),er=[];for(let en=0;en<=20;en++)try{if(this.browserStorage.setItem(K,G),en>0)for(let K=0;K<=3;K++){let G=et.slice(0,K).reduce((K,G)=>K+G,0);if(G>=en)break;let ei=en>G+et[K]?G+et[K]:en;en>G&&et[K]>0&&this.removeAccessTokenKeys(er.slice(G,ei),J,K)}break}catch(eo){let ei=createCacheError(eo);if(ei.errorCode===tN&&en<20){if(!er.length)for(let J=0;J<=3;J++)if(K===getTokenKeysCacheKey(this.clientId,J)){let K=JSON.parse(G).accessToken;er.push(...K),et[J]=K.length}else{let K=this.getTokenKeys(J).accessToken;er.push(...K),et[J]=K.length}if(er.length<=en)throw ei;this.removeAccessToken(er[en],J,!1)}else throw ei}}async setUserData(K,G,J,et,er){let en=[,,,,].fill(0),ei=[];for(let eo=0;eo<=20;eo++)try{if(await invokeAsync(this.browserStorage.setUserData.bind(this.browserStorage),"setUserData",this.logger,this.performanceClient,J)(K,G,J,et,er),eo>0)for(let K=0;K<=3;K++){let G=en.slice(0,K).reduce((K,G)=>K+G,0);if(G>=eo)break;let et=eo>G+en[K]?G+en[K]:eo;eo>G&&en[K]>0&&this.removeAccessTokenKeys(ei.slice(G,et),J,K)}break}catch(G){let K=createCacheError(G);if(K.errorCode===tN&&eo<20){if(!ei.length)for(let K=0;K<=3;K++){let G=this.getTokenKeys(K).accessToken;ei.push(...G),en[K]=G.length}if(ei.length<=eo)throw K;this.removeAccessToken(ei[eo],J,!1)}else throw K}}getAccount(K,G){this.logger.trace("1lfvm6",G);let J=this.browserStorage.getUserData(K);if(!J)return this.removeAccountKeyFromMap(K,G),null;let et=this.validateAndParseJson(J);if(!et||!(et&&et.hasOwnProperty("homeAccountId")&&et.hasOwnProperty("environment")&&et.hasOwnProperty("realm")&&et.hasOwnProperty("localAccountId")&&et.hasOwnProperty("username")&&et.hasOwnProperty("authorityType")))return null;let er=CacheManager.toObject({},et);return this.performanceClient.addFields({accountCachedBy:apiIdToName(er.cachedByApiId)},G),er}async setAccount(K,G,J,et){this.logger.trace("1bz3wr",G);let er=this.generateAccountKey(getAccountInfo(K)),en=Date.now().toString();K.lastUpdatedAt=en,K.cachedByApiId=et,await this.setUserData(er,JSON.stringify(K),G,en,J),this.addAccountKeyToMap(er,G),this.performanceClient.addFields({kmsi:J},G)}setAccountKeys(K,G,J=3){0===K.length?this.removeItem(getAccountKeysCacheKey(J)):this.setItem(getAccountKeysCacheKey(J),JSON.stringify(K),G)}getAccountKeys(){return getAccountKeys(this.browserStorage)}addAccountKeyToMap(K,G){this.logger.trace("0rb85k",G),this.logger.tracePii("1l9bdo",G);let J=this.getAccountKeys();return -1===J.indexOf(K)?(J.push(K),this.setItem(getAccountKeysCacheKey(),JSON.stringify(J),G),this.logger.verbose("0xia39",G),!0):(this.logger.verbose("0161kk",G),!1)}removeAccountKeyFromMap(K,G){this.logger.trace("1jpigu",G),this.logger.tracePii("1xzspl",G);let J=this.getAccountKeys(),et=J.indexOf(K);et>-1?(J.splice(et,1),this.setAccountKeys(J,G)):this.logger.trace("1dytu2",G)}removeAccount(K,G){let J=this.getActiveAccount(G);J?.homeAccountId===K.homeAccountId&&J?.environment===K.environment&&this.setActiveAccount(null,G),super.removeAccount(K,G),this.removeAccountKeyFromMap(this.generateAccountKey(K),G),this.browserStorage.getKeys().forEac
89h(G=>{G.includes(K.homeAccountId)&&G.includes(K.environment)&&this.browserStorage.removeItem(G)})}removeIdToken(K,G){super.removeIdToken(K,G);let J=this.getTokenKeys(),et=J.idToken.indexOf(K);et>-1&&(this.logger.info("05udv9",G),J.idToken.splice(et,1),this.setTokenKeys(J,G))}removeAccessToken(K,G,J=!0){super.removeAccessToken(K,G),J&&this.removeAccessTokenKeys([K],G)}removeAccessTokenKeys(K,G,J=3){this.logger.trace("17o18n",G);let et=this.getTokenKeys(J),er=0;if(K.forEach(K=>{let G=et.accessToken.indexOf(K);G>-1&&(et.accessToken.splice(G,1),er++)}),er>0){this.logger.info("15i5d5",G),this.setTokenKeys(et,G,J);return}}removeRefreshToken(K,G){super.removeRefreshToken(K,G);let J=this.getTokenKeys(),et=J.refreshToken.indexOf(K);et>-1&&(this.logger.info("1f4fq3",G),J.refreshToken.splice(et,1),this.setTokenKeys(J,G))}getTokenKeys(K=3){return getTokenKeys(this.clientId,this.browserStorage,K)}setTokenKeys(K,G,J=3){if(0===K.idToken.length&&0===K.accessToken.length&&0===K.refreshToken.length){this.removeItem(getTokenKeysCacheKey(this.clientId,J));return}this.setItem(getTokenKeysCacheKey(this.clientId,J),JSON.stringify(K),G)}getIdTokenCredential(K,G){let J=this.browserStorage.getUserData(K);if(!J)return this.logger.trace("1jukz6",G),this.removeIdToken(K,G),null;let et=this.validateAndParseJson(J);return et&&et&&isCredentialEntity(et)&&et.hasOwnProperty("realm")&&et.credentialType===en.d3.ID_TOKEN?(this.logger.trace("01ju66",G),et):(this.logger.trace("1jukz6",G),null)}async setIdTokenCredential(K,G,J){this.logger.trace("13hjll",G);let et=this.generateCredentialKey(K),er=Date.now().toString();K.lastUpdatedAt=er,await this.setUserData(et,JSON.stringify(K),G,er,J);let en=this.getTokenKeys();-1===en.idToken.indexOf(et)&&(this.logger.info("07jy92",G),en.idToken.push(et),this.setTokenKeys(en,G))}getAccessTokenCredential(K,G){let J=this.browserStorage.getUserData(K);if(!J)return this.logger.trace("0bqvx8",G),this.removeAccessTokenKeys([K],G),null;let et=this.validateAndParseJson(J);return et&&isAccessTokenEntity(et)?(this.logger.trace("1o81rl",G),et):(this.logger.trace("0bqvx8",G),null)}async setAccessTokenCredential(K,G,J){this.logger.trace("1pondb",G);let et=this.generateCredentialKey(K),er=Date.now().toString();K.lastUpdatedAt=er,await this.setUserData(et,JSON.stringify(K),G,er,J);let en=this.getTokenKeys(),ei=en.accessToken.indexOf(et);-1!==ei&&en.accessToken.splice(ei,1),this.logger.trace("1onhey",G),en.accessToken.push(et),this.setTokenKeys(en,G)}getRefreshTokenCredential(K,G){let J=this.browserStorage.getUserData(K);if(!J)return this.logger.trace("0jlizt",G),this.removeRefreshToken(K,G),null;let et=this.validateAndParseJson(J);return et&&isRefreshTokenEntity(et)?(this.logger.trace("0nokxi",G),et):(this.logger.trace("0jlizt",G),null)}async setRefreshTokenCredential(K,G,J){this.logger.trace("0tcg8d",G);let et=this.generateCredentialKey(K),er=Date.now().toString();K.lastUpdatedAt=er,await this.setUserData(et,JSON.stringify(K),G,er,J);let en=this.getTokenKeys();-1===en.refreshToken.indexOf(et)&&(this.logger.info("0eckjs",G),en.refreshToken.push(et),this.setTokenKeys(en,G))}getAppMetadata(K,G){let J=this.browserStorage.getItem(K);if(!J)return this.logger.trace("1q101h",G),null;let et=this.validateAndParseJson(J);return et&&et&&0===K.indexOf(en.dg)&&et.hasOwnProperty("clientId")&&et.hasOwnProperty("environment")?(this.logger.trace("19pvg2",G),et):(this.logger.trace("1q101h",G),null)}setAppMetadata(K,G){this.logger.trace("0cyma6",G);let J=function({environment:K,clientId:G}){let J=[en.dg,K,G];return J.join(en.Ym).toLowerCase()}(K);this.setItem(J,JSON.stringify(K),G)}getServerTelemetry(K,G){let J=this.browserStorage.getItem(K);if(!J)return this.logger.trace("0jk19c",G),null;let et=this.validateAndParseJson(J);return et&&function(K,G){let J=0===K.indexOf(en.yR),et=!0;return G&&(et=G.hasOwnProperty("failedRequests")&&G.hasOwnProperty("errors")&&G.hasOwnProperty("cacheHits")),J&&et}(K,et)?(this.logger.trace("12jguk",G),et):(this.logger.trace("0jk19c",G),null)}setServerTelemetry(K,G,J){this.logger.trace("1poh61",J),this.setItem(K,JSON.stringify(G),J)}getAuthorityMetadata(K,G){let J=this.internalStorage.getItem(K);if(!J)return this.logger.trace("1r39oe",G),null;let et=this.validateAndParseJson(J);return et&&et&&0===K.indexOf(en.L4)&&et.hasOwnProperty("aliases")&&et.hasOwnProperty("preferred_cache")&&et.hasOwnProperty("preferred_network")&&et.hasOwnProperty("canonical_authority")&&et.hasOwnProperty("authorization_endpoint")&&et.hasOwnProperty("token_endpoint")&&et.hasOwnProperty("issuer")&&et.hasOwnProperty("aliasesFromNetwork")&&et.hasOwnProperty("endpointsFromNetwork")&&et.hasOwnProperty("expiresAt")&&et.hasOwnProperty("jwks_uri")?(this.logger.trace("1ohvk3",G),et):null}getAuthorityMetadataKeys(){let K=this.internalStorage.getKeys();return K.filter(K=>this.isAuthorityMetadata(K))}setWrapperMetadata(K,G){this.internalStorage.setItem(eQ.WRAPPER_SKU,K),this.internalStorage.setItem(eQ.WRAPPER_VER,G)}getWrapperMetadata(){let K=this.internalStorage.getItem(eQ.WRAPPER_SKU)||"",G=this.internalStorage.getItem(eQ.WRAPPER_VER)||"";return[K,G]}setAuthorityMetadata(K,G,J){this.logger.trace("07w8n2",J),this.internalStorage.setItem(K,JSON.stringify(G))}getActiveAccount(K){let G=this.generateCacheKey(en.Vi.ACTIVE_ACCOUNT_FILTERS),J=this.browserStorage.getItem(G);
89if(!J)return this.logger.trace("08gw0e",K),null;let et=this.validateAndParseJson(J);return et?(this.logger.trace("1t3ch7",K),this.getAccountInfoFilteredBy({homeAccountId:et.homeAccountId,localAccountId:et.localAccountId,tenantId:et.tenantId},K)):(this.logger.trace("0me1up",K),null)}setActiveAccount(K,G){let J=this.generateCacheKey(en.Vi.ACTIVE_ACCOUNT_FILTERS);if(K){this.logger.verbose("0rsj80",G);let et={homeAccountId:K.homeAccountId,localAccountId:K.localAccountId,tenantId:K.tenantId};this.setItem(J,JSON.stringify(et),G)}else this.logger.verbose("1bp5z5",G),this.browserStorage.removeItem(J);this.eventHandler.emitEvent(tG.ACTIVE_ACCOUNT_CHANGED,G)}getThrottlingCache(K,G){let J,et;let er=this.browserStorage.getItem(K);if(!er)return this.logger.trace("1h4wa6",G),null;let ei=this.validateAndParseJson(er);return ei&&(J=!1,K&&(J=0===K.indexOf(en.zR)),et=!0,ei&&(et=ei.hasOwnProperty("throttleTime")),J&&et)?(this.logger.trace("0of6n8",G),ei):(this.logger.trace("1h4wa6",G),null)}setThrottlingCache(K,G,J){this.logger.trace("0wfgh6",J),this.setItem(K,JSON.stringify(G),J)}getTemporaryCache(K,G,J){let et=J?this.generateCacheKey(K):K,er=this.temporaryCacheStorage.getItem(et);if(!er){if(this.cacheConfig.cacheLocation===eG.LocalStorage){let K=this.browserStorage.getItem(et);if(K)return this.logger.trace("1yt61y",G),K}return this.logger.trace("1qhy81",G),null}return er}setTemporaryCache(K,G,J){let et=J?this.generateCacheKey(K):K;this.temporaryCacheStorage.setItem(et,G)}removeItem(K){this.browserStorage.removeItem(K)}removeTemporaryItem(K){this.temporaryCacheStorage.removeItem(K)}getKeys(){return this.browserStorage.getKeys()}clear(K){this.removeAllAccounts(K),this.removeAppMetadata(K),this.temporaryCacheStorage.getKeys().forEach(K=>{(-1!==K.indexOf(tL)||-1!==K.indexOf(this.clientId))&&this.removeTemporaryItem(K)}),this.browserStorage.getKeys().forEach(K=>{(-1!==K.indexOf(tL)||-1!==K.indexOf(this.clientId))&&this.browserStorage.removeItem(K)}),this.internalStorage.clear()}generateCacheKey(K){return tx.x.startsWith(K,tL)?K:`${tL}.${this.clientId}.${K}`}generateCredentialKey(K){let G=K.credentialType===en.d3.REFRESH_TOKEN&&K.familyId||K.clientId,J=K.tokenType&&K.tokenType.toLowerCase()!==en.hO.BEARER.toLowerCase()?K.tokenType.toLowerCase():"",et=[`${tL}.3`,K.homeAccountId,K.environment,K.credentialType,G,K.realm||"",K.target||"",J];return et.join("|").toLowerCase()}generateAccountKey(K){let G=K.homeAccountId.split(".")[1],J=[`${tL}.3`,K.homeAccountId,K.environment,G||K.tenantId||""];return J.join("|").toLowerCase()}resetRequestCache(K){this.logger.trace("0h0ynu",K),this.removeTemporaryItem(this.generateCacheKey(eY.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(eY.VERIFIER)),this.removeTemporaryItem(this.generateCacheKey(eY.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(eY.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(eY.NATIVE_REQUEST)),this.setInteractionInProgress(!1,void 0)}cacheAuthorizeRequest(K,G,J){this.logger.trace("1tzef5",G);let et=base64Encode(JSON.stringify(K));if(this.setTemporaryCache(eY.REQUEST_PARAMS,et,!0),J){let K=base64Encode(J);this.setTemporaryCache(eY.VERIFIER,K,!0)}}getCachedRequest(K){let G;this.logger.trace("0uen20",K);let J=this.getTemporaryCache(eY.REQUEST_PARAMS,K,!0);if(!J)throw createBrowserAuthError("no_token_request_cache_error");let et=this.getTemporaryCache(eY.VERIFIER,K,!0),er="";try{G=JSON.parse(base64Decode(J)),et&&(er=base64Decode(et))}catch(G){throw this.logger.errorPii("0ewsey",K),this.logger.error("0tvdic",K),createBrowserAuthError("unable_to_parse_token_request_cache_error")}return[G,er]}getCachedNativeRequest(){this.logger.trace("1yxcdm","");let K=this.getTemporaryCache(eY.NATIVE_REQUEST,"",!0);if(!K)return this.logger.trace("0mnxd4",""),null;let G=this.validateAndParseJson(K);return G||(this.logger.error("0rrkip",""),null)}isInteractionInProgress(K){let G=this.getInteractionInProgress()?.clientId;return K?G===this.clientId:!!G}getInteractionInProgress(){let K=`${tL}.${eY.INTERACTION_STATUS_KEY}`,G=this.getTemporaryCache(K,"",!1);try{return G?JSON.parse(G):null}catch(G){return this.logger.error("0jjyys",""),this.removeTemporaryItem(K),this.resetRequestCache(""),clearHash(window),null}}setInteractionInProgress(K,G=eJ.SIGNIN,J=!1,et=""){let er=`${tL}.${eY.INTERACTION_STATUS_KEY}`;if(K){let K=this.getInteractionInProgress();if(K){if(J){var en;this.logger.warning("1pmscr",et),en=this.logger,t5&&(en.verbose("18y01k",et),clearTimeout(t5.timeoutId),t5.channel.close(),t5.reject(createBrowserAuthError("interaction_in_progress_cancelled")),t5=null),this.removeTemporaryItem(er)}else throw createBrowserAuthError("interaction_in_progress")}this.setTemporaryCache(er,JSON.stringify({clientId:this.clientId,type:G}),!1)}else K||this.getInteractionInProgress()?.clientId!==this.clientId||this.removeTemporaryItem(er)}async hydrateCache(K,G){let J=createIdTokenEntity(K.account.homeAccountId,K.account.environment,K.idToken,this.clientId,K.tenantId),et=createAccessTokenEntity(K.account.homeAccountId,K.account.environment,K.accessToken,this.clientId,K.tenantId,K.scopes.join(" "),K.expiresOn?toSecondsFromDate(K.expiresOn):0,K.extExpiresOn?toSecondsFromDate(K.extExpiresOn):0,base64Decode,void 0,K.tokenType,void 0,G.sshKid);
89return G.resource&&(et.resource=G.resource),this.saveCacheRecord({idToken:J,accessToken:et},K.correlationId,isKmsi(extractTokenClaims(K.idToken,base64Decode)),eX.hydrateCache)}async saveCacheRecord(K,G,J,et,er){try{await super.saveCacheRecord(K,G,J,et,er)}catch(K){if(K instanceof CacheError&&this.performanceClient&&G)try{let K=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:K.refreshToken.length,cacheIdCount:K.idToken.length,cacheAtCount:K.accessToken.length},G)}catch(K){}throw K}}};function getStorageImplementation(K,G,J,et){try{switch(G){case eG.LocalStorage:return new LocalStorage(K,J,et);case eG.SessionStorage:return new SessionStorage;case eG.MemoryStorage:}}catch(K){J.error(K,"")}return new MemoryStorage}let DEFAULT_BROWSER_CACHE_MANAGER=(K,G,J,et)=>{let er={cacheLocation:eG.MemoryStorage,cacheRetentionDays:5};return new BrowserCacheManager(K,er,ta,G,J,et)};var t3=J(84337);let EventHandler=class EventHandler{constructor(K){this.eventCallbacks=new Map,this.logger=K||new t3.Yd({}),"undefined"!=typeof BroadcastChannel&&(this.broadcastChannel=new BroadcastChannel("msal.broadcast.event")),this.invokeCrossTabCallbacks=this.invokeCrossTabCallbacks.bind(this)}addEventCallback(K,G,J){if("undefined"!=typeof window){let et=J||BrowserCrypto_createNewGuid();return this.eventCallbacks.has(et)?(this.logger.error("1578i0",""),null):(this.eventCallbacks.set(et,[K,G||[]]),this.logger.verbose("1cnec4",""),et)}return null}removeEventCallback(K){this.eventCallbacks.delete(K),this.logger.verbose("12zotd","")}emitEvent(K,G,J,et,er){let en={eventType:K,interactionType:J||null,payload:et||null,error:er||null,correlationId:G,timestamp:Date.now()};switch(K){case tG.LOGIN_SUCCESS:case tG.LOGOUT_SUCCESS:case tG.ACTIVE_ACCOUNT_CHANGED:this.broadcastChannel?.postMessage(en)}this.invokeCallbacks(en)}invokeCallbacks(K){this.eventCallbacks.forEach(([G,J],et)=>{(0===J.length||J.includes(K.eventType))&&(this.logger.verbose("15jpwk",""),G.apply(null,[K]))})}invokeCrossTabCallbacks(K){let G=K.data;this.invokeCallbacks(G)}subscribeCrossTab(){this.broadcastChannel?.addEventListener("message",this.invokeCrossTabCallbacks)}unsubscribeCrossTab(){this.broadcastChannel?.removeEventListener("message",this.invokeCrossTabCallbacks)}};/*! @azure/msal-common v16.5.1 2026-04-21 */let StubPerformanceClient_StubPerformanceClient=class StubPerformanceClient_StubPerformanceClient{generateId(){return"callback-id"}startMeasurement(K,G){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:1,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:K,startTimeMs:Date.now(),correlationId:G||""}}}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}};/*! @azure/msal-common v16.5.1 2026-04-21 */let t8={tokenRenewalOffsetSeconds:en.$A,preventCorsPreflight:!1},t7={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:t3.in.Info,correlationId:""},t9={async sendGetRequestAsync(){throw(0,ei.z)(eo.M2)},async sendPostRequestAsync(){throw(0,ei.z)(eo.M2)}},rt={sku:en.iZ,version:tM,cpu:"",os:""},rr={clientSecret:"",clientAssertion:void 0},rn={azureCloudInstance:tm.None,tenant:`${en.or}`},ri={application:{appName:"",appVersion:""}};function buildClientConfiguration({authOptions:K,systemOptions:G,loggerOptions:J,storageInterface:et,networkInterface:er,cryptoInterface:en,clientCredentials:ei,libraryInfo:eo,telemetry:es,serverTelemetryManager:el,persistencePlugin:ec,serializableCache:eu}){let ed={...t7,...J};return{authOptions:{clientCapabilities:[],azureCloudOptions:rn,instanceAware:!1,isMcp:!1,...K},systemOptions:{...t8,...G},loggerOptions:ed,storageInterface:et||new DefaultStorageClass(K.clientId,ta,new t3.Yd(ed),new StubPerformanceClient_StubPerformanceClient),networkInterface:er||t9,cryptoInterface:en||ta,clientCredentials:ei||rr,libraryInfo:{...rt,...eo},telemetry:{...ri,...es},serverTelemetryManager:el||null,persistencePlugin:ec||null,serializableCache:eu||null}}function isOidcProtocolMode(K){return K.authOptions.authority.options.protocolMode===tg.OIDC}/*! @azure/msal-common v16.5.1 2026-04-21 */let TokenCacheContext=class TokenCacheContext{constructor(K,G){this.cache=K,this.hasChanged=G}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}};let PopTokenGenerator=class PopTokenGenerator{constructor(K,G){this.cryptoUtils=K,this.performanceClient=G}async generateCnf(K,G){let J=await invokeAsync(this.generateKid.bind(this),tC,G,this.performanceClient,K.correlationId)(K),et=this.cryptoUtils.base64UrlEncode(JSON.stringify(J));return{kid:J.kid,reqCnfString:et}}async generateKid(K){let G=await this.cryptoUtils.getPublicKeyThumbprint(K);return{kid:G,xms_ksl:"sw"}}async signPopToken(K,G,J){return this.signPayload(K,G,J)}async signPayload(K,G,J,et){let{resourceRequestMethod:er,resourceRequestUri:en,shrClaims:ei,shrNonce:eo,shrOptions:es}=J,el=en?new tl.G(en):void 0,ec=el?.getUrlComponents();return this.cryptoUtils.signJwt({at:K,ts:nowSeconds(),m:er?.toUpperCase(),u:ec?.HostNameAndPort,nonce:eo||this.cryptoUtils.createNewGuid(),p:ec?.AbsolutePath,q:ec?.QueryString?[[],ec.QueryString]:void 0,client_claims:ei||void 0,...et},G,es,J.correlationId)}};/*! @azure/msal-common v16.5.1 2026-04-21 */let ServerError=class ServerError extends es.l4{constructor(K,G,J,et,er){super(K,G,J),this.name="ServerError",this.errorNo=et,this.status=er,Object.setPrototypeOf(this,ServerError.prototype)}};/*! @azure/msal-common v16.5.1 2026-04-21 */let ResponseHandler=class ResponseHandler{constructor(K,G,J,et,er,en,ei){this.clientId=K,this.cacheStorage=G,this.cryptoObj=J,this.logger=et,this.performanceClient=er,this.serializableCache=en,this.persistencePlugin=ei}validateTokenResponse(K,G,J){if(K.error||K.error_description||K.suberror){let et=`Error(s): ${K.error_codes||en.nu} - Timestamp: ${K.timestamp||en.nu} - Description: ${K.error_description||en.nu} - Correlation ID: ${K.correlation_id||en.nu} - Trace ID: ${K.trace_id||en.nu}`,er=K.error_codes?.length?K.error_codes[0]:void 0,ei=new ServerError(K.error,et,K.suberror,er,K.status);if(J&&K.status&&K.status>=en.h6&&K.status<=en._s){this.logger.warning("16ks7j",G);return}if(J&&K.status&&K.status>=en.lx&&K.status<=en.xI){this.logger.warning("0g61x3",G);return}if(isInteractionRequiredError(K.error,K.error_description,K.suberror))throw new InteractionRequiredAuthError(K.error,K.error_description,K.suberror,K.timestamp||"",K.trace_id||"",K.correlation_id||"",K.claims||"",er);throw ei}}async handleServerTokenResponse(K,G,J,et,er,en,es,el,ec,eu){let ed,eh,ep;if(K.id_token){if(ed=extractTokenClaims(K.id_token||"",this.cryptoObj.base64Decode),en&&en.nonce&&ed.nonce!==en.nonce)throw(0,ei.z)(eo.vR);if(et.maxAge||0===et.maxAge){let K=ed.auth_time;if(!K)throw(0,ei.z)(eo.w7);checkMaxAge(K,et.maxAge)}}this.homeAccountIdentifier=generateHomeAccountId(K.client_info||"",G.authorityType,this.logger,this.cryptoObj,et.correlationId,ed),en&&en.state&&(eh=(0,tZ.Zq)(this.cryptoObj.base64Decode,en.state)),K.key_id=K.key_id||et.sshKid||void 0;let ef=this.generateCacheRecord(K,G,J,et,ed,es,en);try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("0jbz5k",et.correlationId),ep=new TokenCacheContext(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(ep)),el&&!ec&&ef.account){let K=this.cacheStorage.getAllAccounts({homeAccountId:ef.account.homeAccountId,environment:ef.account.environment},et.correlationId);if(K.length<1)return this.logger.warning("1gmt66",et.correlationId),this.performanceClient?.addFields({acntLoggedOut:!0},et.correlationId),await ResponseHandler.generateAuthenticationResult(this.cryptoObj,G,ef,!1,et,this.performanceClient,ed,eh,void 0,eu)}await this.cacheStorage.saveCacheRecord(ef,et.correlationId,isKmsi(ed||{}),er,et.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&ep&&(this.logger.verbose("1bh17u",et.correlationId),await this.persistencePlugin.afterCacheAccess(ep))}return ResponseHandler.generateAuthenticationResult(this.cryptoObj,G,ef,!1,et,this.performanceClient,ed,eh,K,eu)}generateCacheRecord(K,G,J,et,er,es,el){let ec,eu;let ed=G.getPreferredCache();if(!ed)throw(0,ei.z)(eo.Q9);let eh=getTenantIdFromIdTokenClaims(er);K.id_token&&er&&(ec=createIdTokenEntity(this.homeAccountIdentifier,ed,K.id_token,this.clientId,eh||""),eu=buildAccountToCache(this.cacheStorage,G,this.homeAccountIdentifier,this.cryptoObj.base64Decode,et.correlationId,er,K.client_info,ed,eh,el,void 0,this.logger,this.performanceClient));let ep=null;if(K.access_token){let er=K.scope?ScopeSet.fromString(K.scope):new ScopeSet(et.scopes||[]),en=("string"==typeof K.expires_in?parseInt(K.expires_in,10):K.expires_in)||0,ei=("string"==typeof K.ext_expires_in?parseInt(K.ext_expires_in,10):K.ext_expires_in)||0,eo=("string"==typeof K.refresh_in?parseInt(K.refresh_in,10):K.refresh_in)||void 0,el=J+en,ec=el+ei,eu=eo&&eo>0?J+eo:void 0;ep=createAccessTokenEntity(this.homeAccountIdentifier,ed,K.access_token,this.clientId,eh||G.tenant||"",er.printScopes(),el,ec,this.cryptoObj.base64Decode,eu,K.token_type,es,K.key_id);let ef=et.resource||null;ef&&(ep.resource=ef)}let ef=null;if(K.refresh_token){let G;if(K.refresh_token_expires_in){let er="string"==typeof K.refresh_token_expires_in?parseInt(K.refresh_token_expires_in,10):K.refresh_token_expires_in;G=J+er,this.performanceClient?.addFields({ntwkRtExpiresOnSeconds:G},et.correlationId)}ef=function(K,G,J,et,er,ei,eo){let es={credentialType:en.d3.REFRESH_TOKEN,homeAccountId:K,environment:G,clientId:et,secret:J,lastUpdatedAt:Date.now().toString()};return ei&&(es.userAssertionHash=ei),er&&(es.familyId=er),eo&&(es.expiresOn=eo.toString()),es}(this.homeAccountIdentifier,ed,K.refresh_token,this.clientId,K.foci,es,G)}let eg=null;return K.foci&&(eg={clientId:this.clientId,environment:ed,familyId:K.foci}),{account:eu,idToken:ec,accessToken:ep,refreshToken:ef,appMetadata:eg}}static async generateAuthenticationResult(K,G,J,et,er,es,el,ec,eu,ed){let eh,ep,ef="",eg=[],em=null,ey="";if(J.accessToken){if(J.accessToken.tokenType!==en.hO.POP||er.popKid)ef=J.accessToken.secret;else{let G=new PopTokenGenerator(K,es),{secret:et,keyId:en}=J.accessToken;if(!en)throw(0,ei.z)(eo.Of);ef=await G.signPopToken(et,en,er)}eg=ScopeSet.fromString(J.accessToken.target).asArray(),em=toDateFromSeconds(J.accessToken.expiresOn),eh=toDateFromSeconds(J.accessToken.extendedExpiresOn),J.accessToken.refreshOn&&(ep=toDateFromSeconds(J.accessToken.refreshOn))}J.appMetadata&&(ey=J.appMetadata.familyId===en.ch?en.ch:"");let ev=el?.oid||el?.sub||"",eb=el?.tid||"";eu?.spa_accountid&&J.account&&(J.account.nativeAccountId=eu?.spa_accountid);let eC=J.account?updateAccountTenantProfileData(getAccountInfo(J.account),void 0,el,J.idToken?.secret):null;return{authority:G.canonicalAuthority,uniqueId:ev,tenantId:eb,scopes:eg,account:eC,idToken:J?.idToken?.secret||"",idTokenClaims:el||{},accessToken:ef,fromCache:et,expiresOn:em,extExpiresOn:eh,refreshOn:ep,correlationId:er.correlationId,requestId:ed||"",familyId:ey,tokenType:J.accessToken?.tokenType||"",state:ec?ec.userRequestState:"",cloudGraphHostName:J.account?.cloudGraphHostName||"",msGraphHost:J.account?.msGraphHost||"",code:eu?.spa_code,fromPlatformBroker:!1}}};function buildAccountToCache(K,G,J,et,er,es,el,ec,eu,ed,eh,ep,ef){ep?.verbose("09jz0t",er);let eg=ec||G.getPreferredCache(),em=K.getAccountsFilteredBy({homeAccountId:J,environment:eg},er);ef?.addFields({cacheMatchedAccounts:em.length},er),em.length>1&&ep?.warning("0x7ad1",er);let ey=1===em.length?em[0]:null,ev=ey||function(K,G,J){let et,er,es,el;et=G.authorityType===ts.Adfs?en.cB:G.protocolMode===tg.OIDC?en.hJ:en.Kh,K.clientInfo&&J&&(er=buildClientInfo(K.clientInfo,J)).xms_tdbr&&(es="EU"===er.xms_tdbr?"EU":"None");let ec=K.environment||G&&G.getPreferredCache();if(!ec)throw(0,ei.z)(eo.Q9);let eu=K.idTokenClaims?.preferred_username||K.idTokenClaims?.upn,ed=K.idTokenClaims?.emails?K.idTokenClaims.emails[0]:null,eh=K.idTokenClaims?.login_hint,ep=er?.utid||getTenantIdFromIdTokenClaims(K.idTokenClaims)||"",ef=er?.uid||K.idTokenClaims?.oid||K.idTokenClaims?.sub||"";if(K.tenantProfiles)el=K.tenantProfiles;else{let G=buildTenantProfile(K.homeAccountId,ef,ep,K.idTokenClaims);el=[G]}return{homeAccountId:K.homeAccountId,environment:ec,realm:ep,localAccountId:ef,username:eu||ed||"",authorityType:et,loginHint:eh,clientInfo:K.clientInfo,name:K.idTokenClaims?.name||"",lastModificationTime:void 0,lastModificationApp:void 0,cloudGraphHostName:K.cloudGraphHostName,msGraphHost:K.msGraphHost,nativeAccountId:K.nativeAccountId,tenantProfiles:el,dataBoundary:es}}({homeAccountId:J,idTokenClaims:es,clientInfo:el,environment:ec,cloudGraphHostName:ed?.cloud_graph_host_name,msGraphHost:ed?.msgraph_host,nativeAccountId:eh},G,et),eb=ev.tenantProfiles||[],eC=eu||ev.realm;
89if(eC&&!eb.find(K=>K.tenantId===eC)){let K=buildTenantProfile(J,ev.localAccountId,eC,es);eb.push(K)}return ev.tenantProfiles=eb,ev}/*! @azure/msal-common v16.5.1 2026-04-21 */let ro={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v16.5.1 2026-04-21 */async function getClientAssertion(K,G,J){return"string"==typeof K?K:K({clientId:G,tokenEndpoint:J})}/*! @azure/msal-common v16.5.1 2026-04-21 */let ThrottlingUtils=class ThrottlingUtils{static generateThrottlingStorageKey(K){return`${en.zR}.${JSON.stringify(K)}`}static preProcess(K,G,J){let et=ThrottlingUtils.generateThrottlingStorageKey(G),er=K.getThrottlingCache(et,J);if(er){if(er.throttleTime<Date.now()){K.removeItem(et,J);return}throw new ServerError(er.errorCodes?.join(" ")||"",er.errorMessage,er.subError)}}static postProcess(K,G,J,et){if(ThrottlingUtils.checkResponseStatus(J)||ThrottlingUtils.checkResponseForRetryAfter(J)){let er={throttleTime:ThrottlingUtils.calculateThrottleTime(parseInt(J.headers[en.SZ.RETRY_AFTER])),error:J.body.error,errorCodes:J.body.error_codes,errorMessage:J.body.error_description,subError:J.body.suberror};K.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(G),er,et)}}static checkResponseStatus(K){return 429===K.status||K.status>=500&&K.status<600}static checkResponseForRetryAfter(K){return!!K.headers&&K.headers.hasOwnProperty(en.SZ.RETRY_AFTER)&&(K.status<200||K.status>=300)}static calculateThrottleTime(K){let G=Date.now()/1e3;return Math.floor(1e3*Math.min(G+((K<=0?0:K)||en.sP),G+en.t2))}static removeThrottle(K,G,J,et){let er=getRequestThumbprint(G,J,et),en=this.generateThrottlingStorageKey(er);K.removeItem(en,J.correlationId)}};/*! @azure/msal-common v16.5.1 2026-04-21 */let NetworkError=class NetworkError extends es.l4{constructor(K,G,J){super(K.errorCode,K.errorMessage,K.subError),Object.setPrototypeOf(this,NetworkError.prototype),this.name="NetworkError",this.error=K,this.httpStatus=G,this.responseHeaders=J}};function createNetworkError(K,G,J,et){return K.errorMessage=`${K.errorMessage}, additionalErrorInfo: error.name:${et?.name}, error.message:${et?.message}`,new NetworkError(K,G,J)}/*! @azure/msal-common v16.5.1 2026-04-21 */function createTokenRequestHeaders(K,G,J){let et={};if(et[en.SZ.CONTENT_TYPE]=en.X2,!G&&J)switch(J.type){case ro.HOME_ACCOUNT_ID:try{let K=buildClientInfoFromHomeAccountId(J.credential);et[en.SZ.CCS_HEADER]=`Oid:${K.uid}@${K.utid}`}catch(G){K.verbose("1qhtee","")}break;case ro.UPN:et[en.SZ.CCS_HEADER]=`UPN: ${J.credential}`}return et}function createTokenQueryParameters(K,G,J,et){let er=new Map;return K.embeddedClientId&&addBrokerParameters(er,G,J),K.extraQueryParameters&&addExtraParameters(er,K.extraQueryParameters),addCorrelationId(er,K.correlationId),instrumentBrokerParams(er,K.correlationId,et),mapToQueryString(er)}async function executePostToTokenEndpoint(K,G,J,et,er,en,ei,eo,es,el){let ec=await sendPostRequest(et,K,{body:G,headers:J},er,en,ei,eo,es);return el&&ec.status<500&&429!==ec.status&&el.clearTelemetryCache(),ec}async function sendPostRequest(K,G,J,et,er,el,ec,eu){let ed;ThrottlingUtils.preProcess(er,K,et);try{ed=await invokeAsync(el.sendPostRequestAsync.bind(el),"networkClientSendPostRequestAsync",ec,eu,et)(G,J);let K=ed.headers||{};eu?.addFields({refreshTokenSize:ed.body.refresh_token?.length||0,httpVerToken:K[en.SZ.X_MS_HTTP_VERSION]||"",requestId:K[en.SZ.X_MS_REQUEST_ID]||""},et)}catch(K){if(K instanceof NetworkError){let G=K.responseHeaders;throw G&&eu?.addFields({httpVerToken:G[en.SZ.X_MS_HTTP_VERSION]||"",requestId:G[en.SZ.X_MS_REQUEST_ID]||"",contentTypeHeader:G[en.SZ.CONTENT_TYPE]||void 0,contentLengthHeader:G[en.SZ.CONTENT_LENGTH]||void 0,httpStatus:K.httpStatus},et),K.error}if(K instanceof es.l4)throw K;throw(0,ei.z)(eo.EF)}return ThrottlingUtils.postProcess(er,K,ed,et),ed}/*! @azure/msal-common v16.5.1 2026-04-21 */async function createDiscoveredInstance(K,G,J,et,er,en,es){let el=Authority.transformCIAMAuthority(formatAuthorityUri(K)),ec=new Authority(el,G,J,et,er,en,es);try{return await invokeAsync(ec.resolveEndpointsAsync.bind(ec),"authorityResolveEndpointsAsync",er,es,en)(),ec}catch(K){throw(0,ei.z)(eo.HO)}}/*! @azure/msal-common v16.5.1 2026-04-21 */let AuthorizationCodeClient=class AuthorizationCodeClient{constructor(K,G){this.includeRedirectUri=!0,this.config=buildClientConfiguration(K),this.logger=new t3.Yd(this.config.loggerOptions,tD,tM),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=G,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async acquireToken(K,G,J){if(!K.code)throw(0,ei.z)(eo.FU);J&&J.cloud_instance_host_name&&await invokeAsync(this.updateTokenEndpointAuthority.bind(this),"updateTokenEndpointAuthority",this.logger,this.performanceClient,K.correlationId)(J.cloud_instance_host_name,K.correlationId);let et=nowSeconds(),er=await invokeAsync(this.executeTokenRequest.bind(this),"authClientExecuteTokenRequest",this.logger,this.performanceClient,K.correlationId)(this.authority,K,this.serverTelemetryManager),es=er.headers?.[en.SZ.X_MS_REQUEST_ID],el=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return el.validateTokenResponse(er.body,K.correlationId),invokeAsync(el.handleServerTokenResponse.bind(el),tw,this.logger,this.performanceClient,K.correlationId)(er.body,this.authority,et,K,G,J,void 0,void 0,void 0,es)}getLogoutUri(K){if(!K)throw(0,tf.e)(tk.$h);let G=this.createLogoutUrlQueryString(K);return tl.G.appendQueryString(this.authority.endSessionEndpoint,G)}async executeTokenRequest(K,G,J){let et;let er=createTokenQueryParameters(G,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),ei=tl.G.appendQueryString(K.tokenEndpoint,er),eo=await invokeAsync(this.createTokenRequestBody.bind(this),"authClientCreateTokenRequestBody",this.logger,this.performanceClient,G.correlationId)(G);if(G.clientInfo)try{let K=buildClientInfo(G.clientInfo,this.cryptoUtils.base64Decode);et={credential:`${K.uid}${en.r$}${K.utid}`,type:ro.HOME_ACCOUNT_ID}}catch(K){this.logger.verbose("0wznt3",G.correlationId)}let es=createTokenRequestHeaders(this.logger,this.config.systemOptions.preventCorsPreflight,et||G.ccsCredential),el=getRequestThumbprint(this.config.authOptions.clientId,G);return invokeAsync(executePostToTokenEndpoint,"authorizationCodeClientExecutePostToTokenEndpoint",this.logger,this.performanceClient,G.correlationId)(ei,eo,es,el,G.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,J)}async createTokenRequestBody(K){let G;let J=new Map;if(!function(K,G){K.set(tJ,G)}(J,K.embeddedClientId||K.extraParameters?.[tJ]||this.config.authOptions.clientId),this.includeRedirectUri)!function(K,G){K.set(tY,G)}(J,K.redirectUri);else if(!K.redirectUri)throw(0,tf.e)(tk.RV);if(addScopes(J,K.scopes,!0,this.oidcDefaultScopes),addResource(J,K.resource),!function(K,G){K.set("co
89de",G)}(J,K.code),addLibraryInfo(J,this.config.libraryInfo),addApplicationTelemetry(J,this.config.telemetry.application),addThrottling(J),this.serverTelemetryManager&&!isOidcProtocolMode(this.config)&&addServerTelemetry(J,this.serverTelemetryManager),K.codeVerifier&&function(K,G){K.set("code_verifier",G)}(J,K.codeVerifier),this.config.clientCredentials.clientSecret&&addClientSecret(J,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let G=this.config.clientCredentials.clientAssertion;addClientAssertion(J,await getClientAssertion(G.assertion,this.config.authOptions.clientId,K.resourceRequestUri)),addClientAssertionType(J,G.assertionType)}if(addGrantType(J,en.qJ.AUTHORIZATION_CODE_GRANT),addClientInfo(J),K.authenticationScheme===en.hO.POP){let G;let et=new PopTokenGenerator(this.cryptoUtils,this.performanceClient);if(K.popKid)G=this.cryptoUtils.encodeKid(K.popKid);else{let J=await invokeAsync(et.generateCnf.bind(et),tC,this.logger,this.performanceClient,K.correlationId)(K,this.logger);G=J.reqCnfString}addPopToken(J,G)}else if(K.authenticationScheme===en.hO.SSH){if(K.sshJwk)addSshJwk(J,K.sshJwk);else throw(0,tf.e)(tk.dK)}if(K.clientInfo)try{let J=buildClientInfo(K.clientInfo,this.cryptoUtils.base64Decode);G={credential:`${J.uid}${en.r$}${J.utid}`,type:ro.HOME_ACCOUNT_ID}}catch(G){this.logger.verbose("0wznt3",K.correlationId)}else G=K.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&G)switch(G.type){case ro.HOME_ACCOUNT_ID:try{let K=buildClientInfoFromHomeAccountId(G.credential);addCcsOid(J,K)}catch(G){this.logger.verbose("1qhtee",K.correlationId)}break;case ro.UPN:addCcsUpn(J,G.credential)}return K.embeddedClientId&&addBrokerParameters(J,this.config.authOptions.clientId,this.config.authOptions.redirectUri),K.extraParameters&&addExtraParameters(J,K.extraParameters),!K.enableSpaAuthorizationCode||K.extraParameters&&K.extraParameters[t0]||addExtraParameters(J,{[t0]:"1"}),instrumentBrokerParams(J,K.correlationId,this.performanceClient),addClaims(J,K.claims,this.config.authOptions.clientCapabilities,K.skipBrokerClaims),mapToQueryString(J)}createLogoutUrlQueryString(K){let G=new Map;return K.postLogoutRedirectUri&&function(K,G){K.set("post_logout_redirect_uri",G)}(G,K.postLogoutRedirectUri),K.correlationId&&addCorrelationId(G,K.correlationId),K.idTokenHint&&function(K,G){K.set("id_token_hint",G)}(G,K.idTokenHint),K.state&&addState(G,K.state),K.logoutHint&&function(K,G){K.set("logout_hint",G)}(G,K.logoutHint),K.extraQueryParameters&&addExtraParameters(G,K.extraQueryParameters),this.config.authOptions.instanceAware&&addInstanceAware(G),mapToQueryString(G)}async updateTokenEndpointAuthority(K,G){let J=`https://${K}/${this.authority.tenant}/`,et=await createDiscoveredInstance(J,this.networkClient,this.cacheManager,this.authority.options,this.logger,G,this.performanceClient);this.authority=et}};let ServerTelemetryManager=class ServerTelemetryManager{constructor(K,G){this.cacheOutcome=en.To.NOT_APPLICABLE,this.cacheManager=G,this.apiId=K.apiId,this.correlationId=K.correlationId,this.wrapperSKU=K.wrapperSKU||"",this.wrapperVer=K.wrapperVer||"",this.telemetryCacheKey=en.yR+en.Ym+K.clientId}generateCurrentRequestHeaderValue(){let K=`${this.apiId}${en.wr}${this.cacheOutcome}`,G=[this.wrapperSKU,this.wrapperVer],J=this.getNativeBrokerErrorCode();J?.length&&G.push(`broker_error=${J}`);let et=G.join(en.wr),er=this.getRegionDiscoveryFields(),ei=[K,er].join(en.wr);return[en.sT,ei,et].join(en.Nd)}generateLastRequestHeaderValue(){let K=this.getLastRequests(),G=ServerTelemetryManager.maxErrorsToSend(K),J=K.failedRequests.slice(0,2*G).join(en.wr),et=K.errors.slice(0,G).join(en.wr),er=K.errors.length,ei=G<er?en.pU:en.T1,eo=[er,ei].join(en.wr);return[en.sT,K.cacheHits,J,et,eo].join(en.Nd)}cacheFailedRequest(K){let G=this.getLastRequests();G.errors.length>=en.$3&&(G.failedRequests.shift(),G.failedRequests.shift(),G.errors.shift()),G.failedRequests.push(this.apiId,this.correlationId),K instanceof Error&&K&&K.toString()?K instanceof es.l4?K.subError?G.errors.push(K.subError):K.errorCode?G.errors.push(K.errorCode):G.errors.push(K.toString()):G.errors.push(K.toString()):G.errors.push(en.q4),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,G,this.correlationId)}incrementCacheHits(){let K=this.getLastRequests();return K.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,K,this.correlationId),K.cacheHits}getLastRequests(){let K=this.cacheManager.getServerTelemetry(this.telemetryCacheKey,this.correlationId);return K||{failedRequests:[],errors:[],cacheHits:0}}clearTelemetryCache(){let K=this.getLastRequests(),G=ServerTelemetryManager.maxErrorsToSend(K),J=K.errors.length;if(G===J)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{let J={failedRequests:K.failedRequests.slice(2*G),errors:K.errors.slice(G),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,J,this.correlationId)}}static maxErrorsToSend(K){let G;let J=0,et=0,er=K.errors.length;for(G=0;G<er;G++){let er=K.failedRequests[2*G]||"",ei=K.failedRequests[2*G+1]||"",eo=K.errors[G]||"";if((et+=er.toString().length+ei.toString().length+eo.length+3)<en.z_)J+=1;else break}return J}getRegionDiscoveryFields(){let K=[];return K.push(this.regionUsed||""),K.push(this.regionSource||""),K.push(this.regionOutcome||""),K.join(",")}updateRegionDiscoveryMetadata(K){this.regionUsed=K.region_used,this.regionSource=K.region_source,this.regionOutcome=K.region_outcome}setCacheOutcome(K){this.cacheOutcome=K}setNativeBrokerErrorCode(K){let G=this.getLastRequests();G.nativeBrokerErrorCode=K,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,G,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){let K=this.getLastRequests();delete K.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,K,this.correlationId)}static makeExtraSkuString(K){return function(K){let{skus:G,libraryName:J,libraryVersion:et,extensionName:er,extensionVersion:en}=K,ei=new Map([[0,[J,et]],[2,[er,en]]]),eo=[];if(G?.length){if((eo=G.split(",")).length<4)return G}else eo=Array.from({length:4},()=>"|");
89return ei.forEach((K,G)=>{2===K.length&&K[0]?.length&&K[1]?.length&&function(K){let{skuArr:G,index:J,skuName:et,skuVersion:er}=K;J>=G.length||(G[J]=[et,er].join("|"))}({skuArr:eo,index:G,skuName:K[0],skuVersion:K[1]})}),eo.join(",")}(K)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let BaseInteractionClient=class BaseInteractionClient{constructor(K,G,J,et,er,en,ei,eo,es){this.config=K,this.browserStorage=G,this.browserCrypto=J,this.networkClient=this.config.system.networkClient,this.eventHandler=er,this.navigationClient=en,this.platformAuthProvider=es,this.correlationId=eo,this.logger=et.clone(e$.MSAL_SKU,t6),this.performanceClient=ei}};function getRedirectUri(K,G,J,et){J.verbose("0bd1la",et);let er=K||G||"";return tl.G.getAbsoluteUrl(er,getCurrentUri())}function initializeServerTelemetryManager(K,G,J,et,er,en){er.verbose("1p12tq",J);let ei={clientId:G,correlationId:J,apiId:K,forceRefresh:!1,wrapperSKU:et.getWrapperMetadata()[0],wrapperVer:et.getWrapperMetadata()[1]};return new ServerTelemetryManager(ei,et)}async function getDiscoveredAuthority(K,G,J,et,er,en,ei,eo,es){let el=eo&&eo.hasOwnProperty("instance_aware")?eo.instance_aware:void 0,ec={protocolMode:K.system.protocolMode,OIDCOptions:K.auth.OIDCOptions,knownAuthorities:K.auth.knownAuthorities,cloudDiscoveryMetadata:K.auth.cloudDiscoveryMetadata,authorityMetadata:K.auth.authorityMetadata},eu=en||K.auth.authority,ed=el?.length?"true"===el:K.auth.instanceAware,eh=es&&ed?K.auth.authority.replace(tl.G.getDomainFromUrl(eu),es.environment):eu,ep=Authority.generateAuthority(eh,ei||K.auth.azureCloudOptions),ef=await invokeAsync(createDiscoveredInstance,"authorityFactoryCreateDiscoveredInstance",er,J,G)(ep,K.system.networkClient,et,ec,er,G,J);if(es&&!ef.isAlias(es.environment))throw(0,tf.e)(tk.Hv);return ef}async function clearCacheOnLogout(K,G,J,et,er){if(er)try{K.removeAccount(er,et),J.verbose("0s4z6h",et)}catch(K){J.error("0mgg1d",et)}else try{J.verbose("0zj631",et),K.clear(et),await G.clearKeystore(et)}catch(K){J.error("12ih0c",et)}}/*! @azure/msal-browser v5.8.0 2026-04-21 */async function initializeBaseRequest(K,G,J,et,er){let ei=K.authority||G.auth.authority,eo=[...K&&K.scopes||[]],es={...K,correlationId:K.correlationId,authority:ei,scopes:eo};if(es.authenticationScheme){if(es.authenticationScheme===en.hO.SSH){if(!K.sshJwk)throw(0,tf.e)(tk.dK);if(!K.sshKid)throw(0,tf.e)(tk.hI)}et.verbose("1ecmns",er)}else es.authenticationScheme=en.hO.BEARER,et.verbose("1l4fwv",er);return es}async function initializeSilentRequest(K,G,J,et,er){let en=await invokeAsync(initializeBaseRequest,ed,er,et,K.correlationId)(K,J,et,er,K.correlationId);return{...K,...en,account:G,forceRefresh:K.forceRefresh||!1}}function validateRequestMethod(K,G){let J;let et=K.httpMethod;if(G===tg.EAR){if(et&&et!==en.w$.POST)throw(0,tf.e)(tk.Tq);J=en.w$.POST}else J=et||en.w$.GET;return J}/*! @azure/msal-browser v5.8.0 2026-04-21 */let StandardInteractionClient=class StandardInteractionClient extends BaseInteractionClient{initializeLogoutRequest(K){this.logger.verbose("0546u4",this.correlationId);let G={correlationId:this.correlationId,...K};if(K){if(K.logoutHint)this.logger.verbose("12k4l4",this.correlationId);else if(K.account){let J=this.getLogoutHintFromIdTokenClaims(K.account);J&&(this.logger.verbose("0st5di",this.correlationId),G.logoutHint=J)}else this.logger.verbose("0pdtc3",this.correlationId)}else this.logger.verbose("07ndze",this.correlationId);return K&&null===K.postLogoutRedirectUri?this.logger.verbose("0ljv63",G.correlationId):K&&K.postLogoutRedirectUri?(this.logger.verbose("1vamm6",G.correlationId),G.postLogoutRedirectUri=tl.G.getAbsoluteUrl(K.postLogoutRedirectUri,getCurrentUri())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("15m5g7",G.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("1f4xlz",G.correlationId),G.postLogoutRedirectUri=tl.G.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,getCurrentUri())):(this.logger.verbose("17s5rf",G.correlationId),G.postLogoutRedirectUri=tl.G.getAbsoluteUrl(getCurrentUri(),getCurrentUri())),G}getLogoutHintFromIdTokenClaims(K){let G=K.idTokenClaims;if(G){if(G.login_hint)return G.login_hint;this.logger.verbose("0mvp54",this.correlationId)}else this.logger.verbose("1e7bdp",this.correlationId);return null}async createAuthCodeClient(K){let G=await invokeAsync(this.getClientConfiguration.bind(this),em,this.logger,this.performanceClient,this.correlationId)(K);return new AuthorizationCodeClient(G,this.performanceClient)}async getClientConfiguration(K){let{serverTelemetryManager:G,requestAuthority:J,requestAzureCloudOptions:et,requestExtraQueryParameters:er,account:en}=K,ei=K.authority||await invokeAsync(getDiscoveredAuthority,el,this.logger,this.performanceClient,this.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,J,et,er,en),eo=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:ei,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri,isMcp:this.config.auth.isMcp},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:eo.loggerCallback,piiLoggingEnabled:eo.piiLoggingEnabled,logLevel:eo.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:G,libraryInfo:{sku:e$.MSAL_SKU,version:t6,cpu:"",os:""},telemetry:this.config.telemetry}}};async function initializeAuthorizationRequest(K,G,J,et,er,en,ei,eo){let es=getRedirectUri(K.redirectUri,J.auth.redirectUri,en,eo);new URL(es).origin!==new URL(window.location.href).origin&&(en.warning("08qbvw",eo),ei.addFields({isRedirectUriCrossOrigin:!0},eo));let el=tZ.J1(et,K&&K.state||"",{interactionType:G}),ec=await invokeAsync(initializeBaseRequest,ed,en,ei,eo)({...K,correlationId:eo},J,ei,en,eo),eu={...ec,redirectUri:es,state:el,nonce:K.nonce||BrowserCrypto_createNewGuid(),responseMode:J.auth.OIDCOptions.responseMode},eh={...eu,httpMethod:validateRequestMethod(eu,J.system.protocolMode)};if(K.loginHint||K.sid)return eh;let ep=K.account||er.getActiveAccount(eo);return ep&&(en.verbose("1eqlb3",eo),en.verbosePii("0tf99t",eo),eh.account=ep),eh}/*! @azure/msal-browser v5.8.0 2026-04-21 */function deserializeResponse(K,G,J,et){let er=getDeserializedResponse(K);if(!er){if(stripLeadingHashOrQuery(K))throw J.error("13pl0s",et),J.errorPii("1097vx",et),createBrowserAuthError("hash_does_not_contain_known_properties");throw J.error("18h0l1",et),createBrowserAuthError("hash_empty_error")}return er}function getAuthorizeUrl(K,G){let J=mapToQueryString(G);return tl.G.appendQueryString(K.authorizationEndpoint,J)}function validateAuthorizationResponse(K,G){let J,et;if(!K.state||!G)throw K.state?(0,ei.z)(eo.LV,"Cached State"):(0,ei.z)(eo.LV,"Server State");try{J=decodeURIComponent(K.state)}catch(G){throw(0,ei.z)(eo.r8,K.state)}try{et=decodeURIComponent(G)}catch(G){throw(0,ei.z)(eo.r8,K.state)}if(J!==et)throw(0,ei.z)(eo.Tu);if(K.error||K.error_description||K.suberror){let G=function(K){let G="code=",J=K.error_uri?.lastIndexOf(G);return J&&J>=0?K.error_uri?.substring(J+G.length):void 0}(K);if(isInteractionRequiredError(K.error,K.error_description,K.suberror))throw new InteractionRequiredAuthError(K.error||"",K.error_description,K.suberror,K.timestamp||"",K.trace_id||"",K.correlation_id||"",K.claims||"",G);throw new ServerError(K.error||"",K.error_description,K.suberror,G)}}/*! @azure/msal-browser v5.8.0 2026-04-21 */let InteractionHandler=class InteractionHandler{constructor(K,G,J,et,er){this.authModule=K,this.browserStorage=G,this.authCodeRequest=J,this.logger=et,this.performanceClient=er}async handleCodeResponse(K,G,J){let et;try{et=function(K,G){if(validateAuthorizationResponse(K,G),!K.code)throw(0,ei.z)(eo.Zv);return K}(K,G.state)}catch(K){if(K instanceof ServerError&&K.subError===eD)throw createBrowserAuthError(eD);throw K}return invokeAsync(this.handleCodeResponseFromServer.bind(this),tb,this.logger,this.performanceClient,G.correlationId)(et,G,J)}async handleCodeResponseFromServer(K,G,J,et=!0){if(this.logger.trace("0mf2hb",G.correlationId),this.authCodeRequest.code=K.code,et&&(K.nonce=G.nonce||void 0),K.state=G.state,K.client_info)this.authCodeRequest.clientInfo=K.client_info;else{let K=this.createCcsCredentials(G);K&&(this.authCodeRequest.ccsCredential=K)}let er=await invokeAsync(this.authModule.acquireToken.bind(this.authModule),"authClientAcquireToken",this.logger,this.performanceClient,G.correlationId)(this.authCodeRequest,J,K);return er}createCcsCredentials(K){return K.account?{credential:K.account.homeAccountId,type:ro.HOME_ACCOUNT_ID}:K.loginHint?{credential:K.loginHint,type:ro.UPN}:null}};let NativeAuthError=class NativeAuthError extends es.l4{constructor(K,G,J){super(K,G||getDefaultErrorMessage(K)),Object.setPrototypeOf(this,NativeAuthError.prototype),this.name="NativeAuthError",this.ext=J}};
89function isFatalNativeAuthError(K){if(K.ext&&K.ext.status&&"DISABLED"===K.ext.status||K.ext&&K.ext.error&&-2147186943===K.ext.error)return!0;switch(K.errorCode){case"ContentError":case"PageException":return!0;default:return!1}}function createNativeAuthError(K,G,J){if(J&&J.status)switch(J.status){case"ACCOUNT_UNAVAILABLE":return createInteractionRequiredAuthError("native_account_unavailable",getDefaultErrorMessage(K));case"USER_INTERACTION_REQUIRED":return new InteractionRequiredAuthError(K,G);case"USER_CANCEL":return createBrowserAuthError(eD);case"NO_NETWORK":return createBrowserAuthError(eF);case"UX_NOT_ALLOWED":return createInteractionRequiredAuthError(tT)}return new NativeAuthError(K,G,J)}/*! @azure/msal-common v16.5.1 2026-04-21 */let SilentFlowClient=class SilentFlowClient{constructor(K,G){this.config=buildClientConfiguration(K),this.logger=new t3.Yd(this.config.loggerOptions,tD,tM),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=G}async acquireCachedToken(K){let G=en.To.NOT_APPLICABLE;if(K.forceRefresh||!tx.x.isEmptyObj(K.claims))throw this.setCacheOutcome(en.To.FORCE_REFRESH_OR_CLAIMS,K.correlationId),(0,ei.z)(eo.s$);if(!K.account)throw(0,ei.z)(eo.D7);let J=K.account.tenantId||function(K){let G=new tl.G(K),J=G.getUrlComponents(),et=J.PathSegments.slice(-1)[0]?.toLowerCase();switch(et){case en.cO.COMMON:case en.cO.ORGANIZATIONS:case en.cO.CONSUMERS:return;default:return et}}(K.authority),et=this.cacheManager.getTokenKeys(),er=this.cacheManager.getAccessToken(K.account,K,et,J);if(er){if(function(K){let G=Number(K);return G>nowSeconds()}(er.cachedAt)||isTokenExpired(er.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(en.To.CACHED_ACCESS_TOKEN_EXPIRED,K.correlationId),(0,ei.z)(eo.s$);if(K.resource){if(er.resource!==K.resource)throw this.setCacheOutcome(en.To.NO_CACHED_ACCESS_TOKEN,K.correlationId),(0,ei.z)(eo.s$)}else er.refreshOn&&isTokenExpired(er.refreshOn,0)&&(G=en.To.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(en.To.NO_CACHED_ACCESS_TOKEN,K.correlationId),(0,ei.z)(eo.s$);let es=K.authority||this.authority.getPreferredCache(),el={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(K.account),K.correlationId),accessToken:er,idToken:this.cacheManager.getIdToken(K.account,K.correlationId,et,J),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(es,K.correlationId)};return this.setCacheOutcome(G,K.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await invokeAsync(this.generateResultFromCacheRecord.bind(this),"silentFlowClientGenerateResultFromCacheRecord",this.logger,this.performanceClient,K.correlationId)(el,K),G]}setCacheOutcome(K,G){this.serverTelemetryManager?.setCacheOutcome(K),this.performanceClient?.addFields({cacheOutcome:K},G),K!==en.To.NOT_APPLICABLE&&this.logger.info("09ingz",G)}async generateResultFromCacheRecord(K,G){let J;if(K.idToken&&(J=extractTokenClaims(K.idToken.secret,this.config.cryptoInterface.base64Decode)),G.maxAge||0===G.maxAge){let K=J?.auth_time;if(!K)throw(0,ei.z)(eo.w7);checkMaxAge(K,G.maxAge)}return ResponseHandler.generateAuthenticationResult(this.cryptoUtils,this.authority,K,!0,G,this.performanceClient,J)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let SilentCacheClient=class SilentCacheClient extends StandardInteractionClient{async acquireToken(K){let G=initializeServerTelemetryManager(eX.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),J=await invokeAsync(this.getClientConfiguration.bind(this),em,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:G,requestAuthority:K.authority,requestAzureCloudOptions:K.azureCloudOptions,account:K.account}),et=new SilentFlowClient(J,this.performanceClient);this.logger.verbose("0wa871",this.correlationId);try{let G=await invokeAsync(et.acquireCachedToken.bind(et),"silentFlowClientAcquireCachedToken",this.logger,this.performanceClient,K.correlationId)(K),J=G[0];return this.performanceClient.addFields({fromCache:!0},K.correlationId),J}catch(K){throw K instanceof BrowserAuthError&&K.errorCode===eU&&this.logger.verbose("06wena",this.correlationId),K}}logout(K){this.logger.verbose("1rkurh",this.correlationId);
89let G=this.initializeLogoutRequest(K);return clearCacheOnLogout(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,G.account)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let PlatformAuthInteractionClient=class PlatformAuthInteractionClient extends BaseInteractionClient{constructor(K,G,J,et,er,en,ei,eo,es,el,ec,eu){super(K,G,J,et,er,en,eo,eu,es),this.apiId=ei,this.accountId=el,this.platformAuthProvider=es,this.nativeStorageManager=ec,this.silentCacheClient=new SilentCacheClient(K,this.nativeStorageManager,J,et,er,en,eo,eu,es);let ed=this.platformAuthProvider.getExtensionName();this.skus=ServerTelemetryManager.makeExtraSkuString({libraryName:e$.MSAL_SKU,libraryVersion:t6,extensionName:ed,extensionVersion:this.platformAuthProvider.getExtensionVersion()})}addRequestSKUs(K){K.extraParameters={...K.extraParameters,"x-client-xtra-sku":this.skus}}async acquireToken(K,G){this.logger.trace("03qeos",this.correlationId);let J=this.performanceClient.startMeasurement(ec,this.correlationId),et=nowSeconds(),er=initializeServerTelemetryManager(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{let en=await this.initializePlatformRequest(K);try{let K=await this.acquireTokensFromCache(this.accountId,en);return J.end({success:!0,isNativeBroker:!1,fromCache:!0}),K}catch(K){if(G===e5.AccessToken)throw this.logger.info("0eitbc",this.correlationId),J.end({success:!1,brokerErrorCode:"cache_request_failed"}),K;this.logger.info("0957j1",this.correlationId)}let ei=await this.platformAuthProvider.sendMessage(en);return await this.handleNativeResponse(ei,en,et).then(K=>(J.end({success:!0,isNativeBroker:!0,requestId:K.requestId}),er.clearNativeBrokerErrorCode(),K)).catch(K=>{throw J.end({success:!1,errorCode:K.errorCode,subErrorCode:K.subError}),K})}catch(K){throw K instanceof NativeAuthError&&er.setNativeBrokerErrorCode(K.errorCode),J.end({success:!1}),K}}createSilentCacheRequest(K,G){return{authority:K.authority,correlationId:this.correlationId,scopes:ScopeSet.fromString(K.scope).asArray(),account:G,forceRefresh:!1}}async acquireTokensFromCache(K,G){if(!K)throw this.logger.warning("1ndf3e",this.correlationId),(0,ei.z)(eo.cX);let J=this.browserStorage.getBaseAccountInfo({nativeAccountId:K},this.correlationId);if(!J)throw(0,ei.z)(eo.cX);try{let K=this.createSilentCacheRequest(G,J),et=await this.silentCacheClient.acquireToken(K),er=this.browserStorage.getIdToken(J,this.correlationId,this.browserStorage.getTokenKeys(),J.tenantId),en=extractTokenClaims(er?.secret||"",base64Decode),ei=updateAccountTenantProfileData(J,void 0,en,er?.secret);return{...et,idToken:er?.secret||"",idTokenClaims:en,account:ei}}catch(K){throw K}}async acquireTokenRedirect(K,G,J){this.logger.trace("0luikq",this.correlationId);let et=await this.initializePlatformRequest(K),er=J?.navigateToLoginRequestUrl??!0;try{await this.platformAuthProvider.sendMessage(et)}catch(K){if(K instanceof NativeAuthError){let G=initializeServerTelemetryManager(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);if(G.setNativeBrokerErrorCode(K.errorCode),isFatalNativeAuthError(K))throw K}}this.browserStorage.setTemporaryCache(eY.NATIVE_REQUEST,JSON.stringify(et),!0);let en={apiId:eX.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},ei=er?window.location.href:getRedirectUri(K.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId);G.end({success:!0}),await this.navigationClient.navigateExternal(ei,en)}async handleRedirectPromise(){if(this.logger.trace("1c5lhw",this.correlationId),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",this.correlationId),null;let K=this.browserStorage.getCachedNativeRequest();if(!K)return this.logger.verbose("0a6zjb",this.correlationId),this.performanceClient?.addFields({errorCode:"no_cached_request"},this.correlationId),null;let{prompt:G,...J}=K;G&&this.logger.verbose("0ac34v",this.correlationId),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(eY.NATIVE_REQUEST));let et=nowSeconds();try{this.logger.verbose("003x5a",this.correlationId);let K=await this.platformAuthProvider.sendMessage(J),G=await this.handleNativeResponse(K,J,et),er=initializeServerTelemetryManager(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);return er.clearNativeBrokerErrorCode(),this.performanceClient?.addFields({isNativeBroker:!0},this.correlationId),G}catch(K){throw K}}logout(){return this.logger.trace("0u2sjm",this.correlationId),Promise.reject("Logout not implemented yet")}async handleNativeResponse(K,G,J){this.logger.trace("1bojln",this.correlationId);let et=extractTokenClaims(K.id_token,base64Decode),er=this.createHomeAccountIdentifier(K,et),en=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:G.accountId},this.correlationId)?.homeAccountId;if(G.extraParameters?.child_client_id&&K.account.id!==G.accountId)this.logger.info("1ub1in",this.correlationId);else if(er!==en&&K.account.id!==G.accountId)throw createNativeAuthError("user_switch");let ei=await getDiscoveredAuthority(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,G.authority),eo=buildAccountToCache(this.browserStorage,ei,er,base64Decode,this.correlationId,et,K.client_info,ei.getPreferredCache(),et.tid,void 0,K.account.id,this.logger,this.performanceClient);K.expires_in=Number(K.expires_in);let es=await this.generateAuthenticationResult(K,G,et,eo,ei.canonicalAuthority,J);return await this.cacheAccount(eo,isKmsi(et)),await this.cacheNativeTokens(K,G,er,et,es.tenantId,J,ei.getPreferredCache()),es}createHomeAccountIdentifier(K,G){let J=generateHomeAccountId(K.client_info||"",ts.Default,this.logger,this.browserCrypto,this.correlationId,G);return J}generateScopes(K,G){return G?ScopeSet.fromString(G):ScopeSet.fromString(K)}async generatePopAccessToken(K,G){if(G.tokenType!==en.hO.POP||!G.signPopToken)return K.access_token;{if(K.shr)return this.logger.trace("0coqhu",this.correlationId),K.shr;let J=new PopTokenGenerator(this.browserCrypto,this.performanceClient),et={resourceRequestMethod:G.resourceRequestMethod,resourceRequestUri:G.resourceRequestUri,shrClaims:G.shrClaims,shrNonce:G.shrNonce,correlationId:this.correlationId};if(!G.keyId)throw(0,ei.z)(eo.Of);return J.signPopToken(K.access_token,G.keyId,et)}}async generateAuthenticationResult(K,G,J,et,er,ei){let eo=this.addTelemetryFromNativeResponse(K.properties.MATS),es=this.generateScopes(G.scope,K.scope),el=K.account.properties||{},ec=el.UID||J.oid||J.sub||"",eu=el.TenantId||J.tid||"",ed=updateAccountTenantProfileData(getAccountInfo(et),void 0,J,K.id_token);ed.nativeAccountId!==K.account.id&&(ed.nativeAccountId=K.account.id);let eh=await this.generatePopAccessToken(K,G),ep=G.tokenType===en.hO.POP?en.hO.POP:en.hO.BEARER,ef={authority:er,uniqueId:ec,tenantId:eu,scopes:es.asArray(),account:ed,idToken:K.id_token,idTokenClaims:J,accessToken:eh,fromCache:!!eo&&this.isResponseFromCache(eo),expiresOn:toDateFromSeconds(ei+K.expires_in),tokenType:ep,correlationId:this.correlationId,state:K.state,fromPlatformBroker:!0,...G.resource&&{resource:G.resource}};return ef}async cacheAccount(K,G){await this.browserStorage.setAccount(K,this.correlationId,G,this.apiId),this.browserStorage.removeAccountContext(getAccountInfo(K),this.correlationId)}async cacheNativeTokens(K,G,J,et,er,ei,eo){let es=createIdTokenEntity(J,eo,K.id_token||"",G.clientId,et.tid||""),el=G.tokenType===en.hO.POP?en.Eg:("string"==typeof K.expires_in?parseInt(K.expires_in,10):K.expires_in)||0,ec=this.generateScopes(K.scope,G.scope),eu=createAccessTokenEntity(J,eo,K.access_token,G.clientId,et.tid||er,ec.printScopes(),ei+el,0,base64Decode,void 0,G.tokenType,void 0,G.keyId);return es&&G.storeInCache?.idToken!==!1&&await this.browserStorage.setIdTokenCredential(es,this.correlationId,isKmsi(et)),this.nativeStorageManager.saveCacheRecord({accessToken:eu},this.correlationId,isKmsi(et),this.apiId,G.storeInCache)}getExpiresInValue(K,G){return K===en.hO.POP?en.Eg:("string"==typeof G?parseInt(G,10):G)||0}addTelemetryFromNativeResponse(K){let G=this.getMATSFromResponse(K);return G?(this.performanceClient.addFields({extensionId:this.platformAuthProvider.getExtensionId(),extensionVersion:this.platformAuthProvider.getExtensionVersion(),matsBrokerVersion:G.broker_version,matsAccountJoinOnStart:G.account_join_on_
89start,matsAccountJoinOnEnd:G.account_join_on_end,matsDeviceJoin:G.device_join,matsPromptBehavior:G.prompt_behavior,matsApiErrorCode:G.api_error_code,matsUiVisible:G.ui_visible,matsSilentCode:G.silent_code,matsSilentBiSubCode:G.silent_bi_sub_code,matsSilentMessage:G.silent_message,matsSilentStatus:G.silent_status,matsHttpStatus:G.http_status,matsHttpEventCount:G.http_event_count},this.correlationId),G):null}getMATSFromResponse(K){if(K)try{return JSON.parse(K)}catch(K){this.logger.error("0b3l57",this.correlationId)}return null}isResponseFromCache(K){return void 0===K.is_cached?(this.logger.verbose("1okqev",this.correlationId),!1):!!K.is_cached}async initializePlatformRequest(K){this.logger.trace("1xdm2a",this.correlationId);let G=await this.getCanonicalAuthority(K),J=K.skipBrokerClaims&&K.embeddedClientId?void 0:this.config.auth.clientCapabilities,{scopes:et,claims:er,...ei}=K,eo=new ScopeSet(et||[]);eo.appendScopes(en.f_);let es=J&&J.length?addClientCapabilitiesToClaims(er,J):er,el={...ei,claims:es,accountId:this.accountId,clientId:this.config.auth.clientId,authority:G.urlString,scope:eo.printScopes(),redirectUri:getRedirectUri(K.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId),prompt:this.getPrompt(K.prompt),correlationId:this.correlationId,tokenType:K.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...K.extraParameters},extendedExpiryToken:!1,keyId:K.popKid};if(el.signPopToken&&K.popKid)throw createBrowserAuthError("invalid_pop_token_request");if(this.handleExtraBrokerParams(el),el.extraParameters=el.extraParameters||{},el.extraParameters.telemetry=eK.MATS_TELEMETRY,K.authenticationScheme===en.hO.POP){let G;let J={resourceRequestUri:K.resourceRequestUri,resourceRequestMethod:K.resourceRequestMethod,shrClaims:K.shrClaims,shrNonce:K.shrNonce,correlationId:this.correlationId},et=new PopTokenGenerator(this.browserCrypto,this.performanceClient);if(el.keyId)G=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:el.keyId})),el.signPopToken=!1;else{let K=await invokeAsync(et.generateCnf.bind(et),tC,this.logger,this.performanceClient,this.correlationId)(J,this.logger);G=K.reqCnfString,el.keyId=K.kid,el.signPopToken=!0}el.reqCnf=G}return this.addRequestSKUs(el),el}async getCanonicalAuthority(K){let G=K.authority||this.config.auth.authority,{azureCloudOptions:J,account:et}=K;et&&await getDiscoveredAuthority(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,G,J,void 0,et);let er=new tl.G(G);return er.validateAsUri(),er}getPrompt(K){switch(this.apiId){case eX.ssoSilent:case eX.acquireTokenSilent_silentFlow:return this.logger.trace("12n1y2",this.correlationId),en.NJ.NONE}if(!K){this.logger.trace("0uid1p",this.correlationId);return}switch(K){case en.NJ.NONE:case en.NJ.CONSENT:case en.NJ.LOGIN:return this.logger.trace("0i0hco",this.correlationId),K;default:throw this.logger.trace("0w3tpw",this.correlationId),createBrowserAuthError("native_prompt_not_supported")}}handleExtraBrokerParams(K){let G=K.extraParameters&&K.extraParameters.hasOwnProperty(t1)&&K.extraParameters.hasOwnProperty(t2)&&K.extraParameters.hasOwnProperty(tJ);if(!K.embeddedClientId&&!G)return;let J="",et=K.redirectUri;K.embeddedClientId?(K.redirectUri=this.config.auth.redirectUri,J=K.embeddedClientId):K.extraParameters&&(K.redirectUri=K.extraParameters[t2],J=K.extraParameters[tJ]),K.extraParameters={child_client_id:J,child_redirect_uri:et},this.performanceClient?.addFields({embeddedClientId:J,embeddedRedirectUri:et},this.correlationId)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let ra=new Map([["e","AAD"],["m","MSA"]]);function instrumentClientData(K,G,J){let et=function(K){if(!K)return null;try{let G=/%(?:[0-9A-Fa-f]{2})/.test(K),J=G?decodeURIComponent(K):K,et=J.split("|");if(et.length<5)return null;return{accountType:ra.get(et[0]?.trim()||"")||"",error:et[1]?.trim()||"",subError:et[2]?.trim()||"",cloudInstance:et[3]?.trim()||"",callerDataBoundary:et[4]?.trim()||""}}catch{return null}}(K.clientdata);et?.accountType&&J.addFields({accountType:et.accountType},G),et?.error&&J.addFields({serverErrorNo:et.error},G),et?.subError&&J.addFields({serverSubErrorNo:et.subError},G)}async function getStandardParameters(K,G,J,et,er){let ei=/*! @azure/msal-common v16.5.1 2026-04-21 */function(K,G,J,et){let er=G.correlationId,ei=new Map;!function(K,G){K.set(tJ,G)}(ei,G.embeddedClientId||G.extraQueryParameters?.[tJ]||K.clientId);let eo=[...G.scopes||[],...G.extraScopesToConsent||[]];if(addScopes(ei,eo,!0,K.authority.options.OIDCOptions?.defaultScopes),addResource(ei,G.resource),!function(K,G){K.set(tY,G)}(ei,G.redirectUri),addCorrelationId(ei,er),!function(K,G){K.set("response_mode",G||en.vw.QUERY)}(ei,G.responseMode),addClientInfo(ei),!function(K){K.set("clidata","1")}(ei),G.prompt&&(function(K,G){K.set("prompt",G)}(ei,G.prompt),et?.addFields({prompt:G.prompt},er)),G.domainHint&&(function(K,G){K.set("domain_hint",G)}(ei,G.domainHint),et?.addFields({domainHintFromRequest:!0},er)),G.prompt!==en.NJ.SELECT_ACCOUNT){if(G.sid&&G.prompt===en.NJ.NONE)J.verbose("1tvqyx",G.correlationId),addSid(ei,G.sid),et?.addFields({sidFromRequest:!0},er);else if(G.account){var es,el;let K=(es=G.account,es.idTokenClaims?.sid||null),eo=(el=G.account).loginHint||el.idTokenClaims?.login_hint||null;if(eo&&G.domainHint&&(J.warning("0wkg3v",G.correlationId),eo=null),eo){J.verbose("1eyfsw",G.correlationId),addLoginHint(ei,eo),et?.addFields({loginHintFromClaim:!0},er);try{let K=buildClientInfoFromHomeAccountId(G.account.homeAccountId);addCcsOid(ei,K)}catch(K){J.verbose("12ugck",G.correlationId)}}else if(K&&G.prompt===en.NJ.NONE){J.verbose("1rmd8s",G.correlationId),addSid(ei,K),et?.addFields({sidFromClaim:!0},er);try{let K=buildClientInfoFromHomeAccountId(G.account.homeAccountId);addCcsOid(ei,K)}catch(K){J.verbose("12ugck",G.correlationId)}}else if(G.loginHint)J.verbose("0y3007",G.correlationId),addLoginHint(ei,G.loginHint),addCcsUpn(ei,G.loginHint),et?.addFields({loginHintFromRequest:!0},er);else if(G.account.username){J.verbose("02f507",G.correlationId),addLoginHint(ei,G.account.username),et?.addFields({loginHintFromUpn:!0},er);try{let K=buildClientInfoFromHomeAccountId(G.account.homeAccountId);addCcsOid(ei,K)}catch(K){J.verbose("12ugck",G.correlationId)}}}else G.loginHint&&(J.verbose("0g01ey",G.correlationId),addLoginHint(ei,G.loginHint),addCcsUpn(ei,G.loginHint),et?.addFields({loginHintFromRequest:!0},er))}else J.verbose("169k9v",G.correlationId);return G.nonce&&function(K,G){K.set("nonce",G)}(ei,G.nonce),G.state&&addState(ei,G.state),G.embeddedClientId&&addBrokerParameters(ei,K.clientId,K.redirectUri),addClaims(ei,G.claims,K.clientCapabilities,G.skipBrokerClaims),!K.instanceAware||G.extraQueryParameters&&Object.keys(G.extraQueryParameters).includes(t4)||addInstanceAware(ei),ei}({...K.auth,authority:G},J,et,er);if(addLibraryInfo(ei,{sku:e$.MSAL_SKU,version:t6,os:"",cpu:""}),K.system.protocolMode!==tg.OIDC&&addApplicationTelemetry(ei,K.telemetry.application),J.platformBroker&&(function(K){K.set("nativebroker","1")}(ei),er.addFields({isPlatformAuthorizeRequest:!0},J.correlationId),J.authenticationScheme===en.hO.POP)){let K;let G=new CryptoOps(et,er),en=new PopTokenGenerator(G,er);if(J.popKid)K=G.encodeKid(J.popKid);else{let G=await invokeAsync(en.generateCnf.bind(en),tC,et,er,J.correlationId)(J,et);K=G.reqCnfString}addPopToken(ei,K)}return instrumentBrokerParams(ei,J.correlationId,er),ei}async function getAuthCodeRequestUrl(K,G,J,et,er){if(!J.codeChallenge)throw(0,tf.e)(tk.TU);let ei=await invokeAsync(getStandardParameters,"getStandardParams",et,er,J.correlationId)(K,G,J,et,er);return addResponseType(ei,en.bg.CODE),addCodeChallengeParams(ei,J.codeChallenge,en.Ts),addExtraParameters(ei,{...J.extraQueryParameters,...J.extraParameters}),getAuthorizeUrl(G,ei)}async function getEARForm(K,G,J,et,er,ei){var eo;if(!et.earJwk)throw createBrowserAuthError(eI);let es=await getStandardParameters(G,J,et,er,ei);addResponseType(es,en.bg.IDTOKEN_TOKEN_REFRESHTOKEN),eo=et.earJwk,es.set("ear_jwk",encodeURIComponent(eo)),es.set("ear_jwe_crypto","eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0"),addCodeChallengeParams(es,et.codeChallenge,en.Ts),addExtraParameters(es,{...et.extraParameters});let el=new Map;addExtraParameters(el,et.extraQueryParameters||{}),addCorrelationId(el,et.correlationId);let ec=getAuthorizeUrl(J,el);return createForm(K,ec,es)}async function getCodeForm(K,G,J,et,er,ei){let eo=await getStandardParameters(G,J,et,er,ei);addResponseType(eo,en.bg.CODE),addCodeChallengeParams(eo,et.codeChallenge,et.codeChallengeMethod||en.Ts),addExtraParameters(eo,{...et.extraParameters});let es=new Map;addExtraParameters(es,et.extraQueryParameters||{}),addCorrelationId(es,et.correlationId);let el=getAuthorizeUrl(J,es);return createForm(K,el,eo)}function createForm(K,G,J){let et=K.createElement("form");return et.method="post",et.action=G,J.forEach((G,J)=>{let er=K.createElement("input");er.hidden=!0,er.name=J,er.value=G,et.appendChild(er)}),K.body.appendChild(et),et}async function handleResponsePlatformBroker(K,G,J,et,er,en,ei,eo,es,el){if(eo.verbose("11qcow",K.correlationId),!el)throw createBrowserAuthError(ej);let eu=new CryptoOps(eo,es),ed=new PlatformAuthInteractionClient(et,er,eu,eo,ei,et.system.navigationClient,J,es,el,G,en,K.c
89orrelationId),{userRequestState:eh}=tZ.Zq(eu.base64Decode,K.state);return invokeAsync(ed.acquireToken.bind(ed),ec,eo,es,K.correlationId)({...K,state:eh,prompt:void 0})}async function handleResponseCode(K,G,J,et,er,en,ei,eo,es,el,ec,eu){if(ThrottlingUtils.removeThrottle(ei,er.auth.clientId,K),instrumentClientData(G,K.correlationId,ec),G.accountId)return invokeAsync(handleResponsePlatformBroker,eb,el,ec,K.correlationId)(K,G.accountId,et,er,ei,eo,es,el,ec,eu);let ed={...K,code:G.code||"",codeVerifier:J},eh=new InteractionHandler(en,ei,ed,el,ec),ep=await invokeAsync(eh.handleCodeResponse.bind(eh),"handleCodeResponse",el,ec,K.correlationId)(G,K,et);return ep}async function handleResponseEAR(K,G,J,et,er,en,ei,eo,es,el,ec){if(ThrottlingUtils.removeThrottle(en,et.auth.clientId,K),instrumentClientData(G,K.correlationId,el),validateAuthorizationResponse(G,K.state),!G.ear_jwe)throw createBrowserAuthError("ear_jwe_empty");if(!K.earJwk)throw createBrowserAuthError(eI);let eu=JSON.parse(await invokeAsync(decryptEarResponse,"decryptEarResponse",es,el,K.correlationId)(K.earJwk,G.ear_jwe));if(eu.accountId)return invokeAsync(handleResponsePlatformBroker,eb,es,el,K.correlationId)(K,eu.accountId,J,et,en,ei,eo,es,el,ec);let ed=new ResponseHandler(et.auth.clientId,en,new CryptoOps(es,el),es,el,null,null);ed.validateTokenResponse(eu,K.correlationId);let eh={code:"",state:K.state,nonce:K.nonce,client_info:eu.client_info,cloud_graph_host_name:eu.cloud_graph_host_name,cloud_instance_host_name:eu.cloud_instance_host_name,cloud_instance_name:eu.cloud_instance_name,msgraph_host:eu.msgraph_host};return await invokeAsync(ed.handleServerTokenResponse.bind(ed),tw,es,el,K.correlationId)(eu,er,nowSeconds(),K,J,eh,void 0,void 0,void 0,void 0)}async function generatePkceCodes(K,G,J){let et=invoke(generateCodeVerifier,"generateCodeVerifier",G,K,J)(K,G,J),er=await invokeAsync(generateCodeChallengeFromVerifier,"generateCodeChallengeFromVerifier",G,K,J)(et,K,G,J);return{verifier:et,challenge:er}}function generateCodeVerifier(K,G,J){try{let et=new Uint8Array(32);invoke(getRandomValues,"getRandomValues",G,K,J)(et);let er=urlEncodeArr(et);return er}catch(K){throw createBrowserAuthError(eT)}}async function generateCodeChallengeFromVerifier(K,G,J,et){try{let er=await invokeAsync(sha256Digest,"sha256Digest",J,G,et)(K);return urlEncodeArr(new Uint8Array(er))}catch(K){throw createBrowserAuthError(eT)}}/*! @azure/msal-common v16.5.1 2026-04-21 */let rs={sendGetRequestAsync:()=>Promise.reject((0,ei.z)(eo.M2)),sendPostRequestAsync:()=>Promise.reject((0,ei.z)(eo.M2))};/*! @azure/msal-browser v5.8.0 2026-04-21 */let NavigationClient=class NavigationClient{navigateInternal(K,G){return NavigationClient.defaultNavigateWindow(K,G)}navigateExternal(K,G){return NavigationClient.defaultNavigateWindow(K,G)}static defaultNavigateWindow(K,G){return G.noHistory?window.location.replace(K):window.location.assign(K),new Promise((K,J)=>{setTimeout(()=>{J(createBrowserAuthError(eq,"failed_to_redirect"))},G.timeout)})}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let FetchClient=class FetchClient{async sendGetRequestAsync(K,G){let J;let et={},er=0,en=getFetchHeaders(G);try{J=await fetch(K,{method:eZ.GET,headers:en})}catch(K){throw createNetworkError(createBrowserAuthError(window.navigator.onLine?"get_request_failed":eF),void 0,void 0,K)}et=getHeaderDict(J.headers);try{return er=J.status,{headers:et,body:await J.json(),status:er}}catch(K){throw createNetworkError(createBrowserAuthError(eB),er,et,K)}}async sendPostRequestAsync(K,G){let J;let et=G&&G.body||"",er=getFetchHeaders(G),en=0,ei={};try{J=await fetch(K,{method:eZ.POST,headers:er,body:et})}catch(K){throw createNetworkError(createBrowserAuthError(window.navigator.onLine?"post_request_failed":eF),void 0,void 0,K)}ei=getHeaderDict(J.headers);try{return en=J.status,{headers:ei,body:await J.json(),status:en}}catch(K){throw createNetworkError(createBrowserAuthError(eB),en,ei,K)}}};function getFetchHeaders(K){try{let G=new Headers;if(!(K&&K.headers))return G;let J=K.headers;return Object.entries(J).forEach(([K,J])=>{G.append(K,J)}),G}catch(K){throw createNetworkError(createBrowserAuthError("failed_to_build_headers"),void 0,void 0,K)}}function getHeaderDict(K){try{let G={};
89return K.forEach((K,J)=>{G[J]=K}),G}catch(K){throw createBrowserAuthError("failed_to_parse_headers")}}/*! @azure/msal-common v16.5.1 2026-04-21 */let rl="unexpected_error";/*! @azure/msal-browser v5.8.0 2026-04-21 */let PlatformAuthExtensionHandler=class PlatformAuthExtensionHandler{constructor(K,G,J,et){this.logger=K,this.handshakeTimeoutMs=G,this.extensionId=et,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=J,this.handshakeEvent=this.performanceClient.startMeasurement("nativeMessageHandlerHandshake"),this.platformAuthType=eK.PLATFORM_EXTENSION_PROVIDER}async sendMessage(K){this.logger.trace("0on4p2",K.correlationId);let G={method:eW.GetToken,request:K},J={channel:eK.CHANNEL_ID,extensionId:this.extensionId,responseId:BrowserCrypto_createNewGuid(),body:G};this.logger.trace("1qadfi",K.correlationId),this.logger.tracePii("1xm533",K.correlationId),this.messageChannel.port1.postMessage(J);let et=await new Promise((K,G)=>{this.resolvers.set(J.responseId,{resolve:K,reject:G})}),er=this.validatePlatformBrokerResponse(et);return er}static async createProvider(K,G,J,et){K.trace("15zfnw",et);try{let er=new PlatformAuthExtensionHandler(K,G,J,eK.PREFERRED_EXTENSION_ID);return await er.sendHandshakeRequest(et),er}catch(en){let er=new PlatformAuthExtensionHandler(K,G,J);return await er.sendHandshakeRequest(et),er}}async sendHandshakeRequest(K){this.logger.trace("1dpg9o",K),window.addEventListener("message",this.windowListener,!1);let G={channel:eK.CHANNEL_ID,extensionId:this.extensionId,responseId:BrowserCrypto_createNewGuid(),body:{method:eW.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=K=>{this.onChannelMessage(K)},window.postMessage(G,window.origin,[this.messageChannel.port2]),new Promise((K,J)=>{this.handshakeResolvers.set(G.responseId,{resolve:K,reject:J}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),J(createBrowserAuthError("native_handshake_timeout")),this.handshakeResolvers.delete(G.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(K){let G=BrowserCrypto_createNewGuid();if(this.logger.trace("0jpn5u",G),K.source!==window)return;let J=K.data;if(J.channel&&J.channel===eK.CHANNEL_ID&&(!J.extensionId||J.extensionId===this.extensionId)&&J.body.method===eW.HandshakeRequest){let K=this.handshakeResolvers.get(J.responseId);if(!K){this.logger.trace("07buhm",G);return}this.logger.verbose(J.extensionId?"0xrkug":"No extension installed",G),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),K.reject(createBrowserAuthError("native_extension_not_installed"))}}onChannelMessage(K){let G=BrowserCrypto_createNewGuid();this.logger.trace("1py8yf",G);let J=K.data,et=this.resolvers.get(J.responseId),er=this.handshakeResolvers.get(J.responseId);try{let K=J.body.method;if(K===eW.Response){if(!et)return;let K=J.body.response;if(this.logger.trace("19hpgm",G),this.logger.tracePii("179a24",G),"Success"!==K.status)et.reject(createNativeAuthError(K.code,K.description,K.ext));else if(K.result)K.result.code&&K.result.description?et.reject(createNativeAuthError(K.result.code,K.result.description,K.result.ext)):et.resolve(K.result);else throw(0,es.MD)(rl,"Event does not contain result.");this.resolvers.delete(J.responseId)}else if(K===eW.HandshakeResponse){if(!er){this.logger.trace("082qnt",G);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=J.extensionId,this.extensionVersion=J.body.version,this.logger.verbose("0yf5ib",G),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),er.resolve(),this.handshakeResolvers.delete(J.responseId)}}catch(K){this.logger.error("0xf978",G),this.logger.errorPii("04i99o",G),this.logger.errorPii("0xdvsy",G),et?et.reject(K):er&&er.reject(K)}}validatePlatformBrokerResponse(K){if(K.hasOwnProperty("access_token")&&K.hasOwnProperty("id_token")&&K.hasOwnProperty("client_info")&&K.hasOwnProperty("account")&&K.hasOwnProperty("scope")&&K.hasOwnProperty("expires_in"))return K;throw(0,es.MD)(rl,"Response missing expected properties.")}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}getExtensionName(){return this.getExtensionId()===eK.PREFERRED_EXTENSION_ID?"chrome":this.getExtensionId()?.length?"unknown":void 0}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let PlatformAuthDOMHandler=class PlatformAuthDOMHandler{constructor(K,G,J){this.logger=K,this.performanceClient=G,this.correlationId=J,this.platformAuthType=eK.PLATFORM_DOM_PRO
89VIDER}static async createProvider(K,G,J){if(K.trace("12mj4a",J),window.navigator?.platformAuthentication){let et=await window.navigator.platformAuthentication.getSupportedContracts(eK.MICROSOFT_ENTRA_BROKERID);if(et?.includes(eK.PLATFORM_DOM_APIS))return K.trace("1h5q1r",J),new PlatformAuthDOMHandler(K,G,J)}}getExtensionId(){return eK.MICROSOFT_ENTRA_BROKERID}getExtensionVersion(){return""}getExtensionName(){return eK.DOM_API_NAME}async sendMessage(K){this.logger.trace("02bcil",K.correlationId);try{let G=this.initializePlatformDOMRequest(K),J=await window.navigator.platformAuthentication.executeGetToken(G);return this.validatePlatformBrokerResponse(J,K.correlationId)}catch(G){throw this.logger.error("11im7g",K.correlationId),G}}initializePlatformDOMRequest(K){this.logger.trace("15d6yv",K.correlationId);let{accountId:G,clientId:J,authority:et,scope:er,redirectUri:en,correlationId:ei,state:eo,storeInCache:es,embeddedClientId:el,extraParameters:ec,...eu}=K,ed=this.getDOMExtraParams(eu,ei),eh={accountId:G,brokerId:this.getExtensionId(),authority:et,clientId:J,correlationId:ei||this.correlationId,extraParameters:{...ec,...ed},isSecurityTokenService:!1,redirectUri:en,scope:er,state:eo,storeInCache:es,embeddedClientId:el};return eh}validatePlatformBrokerResponse(K,G){if(K.hasOwnProperty("isSuccess")){if(K.hasOwnProperty("accessToken")&&K.hasOwnProperty("idToken")&&K.hasOwnProperty("clientInfo")&&K.hasOwnProperty("account")&&K.hasOwnProperty("scopes")&&K.hasOwnProperty("expiresIn"))return this.logger.trace("0h4vei",G),this.convertToPlatformBrokerResponse(K,G);if(K.hasOwnProperty("error")&&!1===K.isSuccess&&K.error&&K.error.code)throw this.logger.trace("0g92vm",G),createNativeAuthError(K.error.code,K.error.description,{error:parseInt(K.error.errorCode),protocol_error:K.error.protocolError,status:K.error.status,properties:K.error.properties})}throw(0,es.MD)(rl,"Response missing expected properties.")}convertToPlatformBrokerResponse(K,G){this.logger.trace("14913t",G);let J={access_token:K.accessToken,id_token:K.idToken,client_info:K.clientInfo,account:K.account,expires_in:K.expiresIn,scope:K.scopes,state:K.state||"",properties:K.properties||{},extendedLifetimeToken:K.extendedLifetimeToken??!1,shr:K.proofOfPossessionPayload};return J}getDOMExtraParams(K,G){try{let G={};for(let[J,et]of Object.entries(K))et&&("object"==typeof et?G[J]=JSON.stringify(et):G[J]=String(et));return G}catch(K){return this.logger.error("0eu9o3",G),this.logger.errorPii("17rpl5",G),{}}}};async function getPlatformAuthProvider(K,G,J,et){let er;K.trace("134j0v",J);let en=function(){let K;try{return K=window[eG.SessionStorage],K?.getItem(tz)==="true"}catch(K){return!1}}();
89K.trace("04c81g",J);try{en&&(er=await PlatformAuthDOMHandler.createProvider(K,G,J)),er||(K.trace("0l3na8",J),er=await PlatformAuthExtensionHandler.createProvider(K,et||2e3,G,J))}catch(G){K.trace("0icbd7",G)}return er}function isPlatformAuthAllowed(K,G,J,et,er){if(G.trace("0uko3r",J),!K.system.allowPlatformBroker)return G.trace("04hozs",J),!1;if(!et)return G.trace("0kvv1r",J),!1;if(er)switch(er){case en.hO.BEARER:case en.hO.POP:G.trace("18tev1",J);break;default:return G.trace("1dd2nh",J),!1}return!0}/*! @azure/msal-browser v5.8.0 2026-04-21 */let PopupClient=class PopupClient extends StandardInteractionClient{constructor(K,G,J,et,er,en,ei,eo,es,el){super(K,G,J,et,er,en,ei,es,el),this.nativeStorage=eo,this.eventHandler=er}acquireToken(K,G){let J;try{let et=this.generatePopupName(K.scopes||en.f_,K.authority||this.config.auth.authority);if(J={popupName:et,popupWindowAttributes:K.popupWindowAttributes||{},popupWindowParent:K.popupWindowParent??window},this.performanceClient.addFields({isAsyncPopup:!this.config.system.navigatePopups},this.correlationId),!this.config.system.navigatePopups)return this.logger.verbose("162h4u",this.correlationId),this.acquireTokenPopupAsync(K,J,G);{let et={...K,httpMethod:validateRequestMethod(K,this.config.system.protocolMode)};return this.logger.verbose("1f9ok3",this.correlationId),J.popup=this.openSizedPopup("about:blank",J),this.acquireTokenPopupAsync(et,J,G)}}catch(K){return Promise.reject(K)}}logout(K){try{this.logger.verbose("068rup",this.correlationId);let G=this.initializeLogoutRequest(K),J={popupName:this.generateLogoutPopupName(G),popupWindowAttributes:K?.popupWindowAttributes||{},popupWindowParent:K?.popupWindowParent??window},et=K&&K.authority,er=K&&K.mainWindowRedirectUri;if(!this.config.system.navigatePopups)return this.logger.verbose("1phd8u",this.correlationId),this.logoutPopupAsync(G,J,et,er);return this.logger.verbose("1a28da",this.correlationId),J.popup=this.openSizedPopup("about:blank",J),this.logoutPopupAsync(G,J,et,er)}catch(K){return Promise.reject(K)}}async acquireTokenPopupAsync(K,G,J){this.logger.verbose("1g77pg",this.correlationId);let et=await invokeAsync(initializeAuthorizationRequest,ey,this.logger,this.performanceClient,this.correlationId)(K,er.Popup,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);G.popup&&preconnect(et.authority);let en=isPlatformAuthAllowed(this.config,this.logger,this.correlationId,this.platformAuthProvider,K.authenticationScheme);return(et.platformBroker=en,this.config.system.protocolMode===tg.EAR)?this.executeEarFlow(et,G,J):this.executeCodeFlow(et,G,J)}async executeCodeFlow(K,G,J){let et=K.correlationId,ei=initializeServerTelemetryManager(eX.acquireTokenPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),eo=J||await invokeAsync(generatePkceCodes,eS,this.logger,this.performanceClient,et)(this.performanceClient,this.logger,et),el={...K,codeChallenge:eo.challenge};try{let J=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,et)({serverTelemetryManager:ei,requestAuthority:el.authority,requestAzureCloudOptions:el.azureCloudOptions,requestExtraQueryParameters:el.extraQueryParameters,account:el.account});if(el.httpMethod===en.w$.POST)return await this.executeCodeFlowWithPost(el,G,J,eo.verifier);{let en=await invokeAsync(getAuthCodeRequestUrl,tv,this.logger,this.performanceClient,et)(this.config,J.authority,el,this.logger,this.performanceClient),ei=this.initiateAuthRequest(en,G);this.eventHandler.emitEvent(tG.POPUP_OPENED,et,er.Popup,{popupWindow:ei},null);let es=await waitForBridgeResponse(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,K,this.performanceClient),ec=invoke(deserializeResponse,ew,this.logger,this.performanceClient,this.correlationId)(es,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return await invokeAsync(handleResponseCode,eC,this.logger,this.performanceClient,et)(K,ec,eo.verifier,eX.acquireTokenPopup,this.config,J,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}catch(K){throw G.popup?.close(),K instanceof es.l4&&(K.setCorrelationId(this.correlationId),ei.cacheFailedRequest(K)),K}}async executeEarFlow(K,G,J){let{correlationId:et,authority:er,azureCloudOptions:en,extraQueryParameters:ei,account:eo}=K,es=await invokeAsync(getDiscoveredAuthority,el,this.logger,this.performanceClient,et)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,er,en,ei,eo),ec=await invokeAsync(generateEarKey,eE,this.logger,this.performanceClient,et)(),eu=J||await invokeAsync(generatePkceCodes,eS,this.logger,this.performanceClient,et)(this.performanceClient,this.logger,et),ed={...K,earJwk:ec,codeChallenge:eu.challenge},eh=G.popup||this.openPopup("about:blank",G),ep=await getEARForm(eh.document,this.config,es,ed,this.logger,this.performanceClient);ep.submit();let em=await invokeAsync(waitForBridgeResponse,ef,this.logger,this.performanceClient,et)(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,ed,this.performanceClient),ey=invoke(deserializeResponse,ew,this.logger,this.performanceClient,this.correlationId)(em,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);if(ey.ear_jwe||!ey.code)return invokeAsync(handleResponseEAR,ev,this.logger,this.performanceClient,et)(ed,ey,eX.acquireTokenPopup,this.config,es,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider);{let G=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,et)({serverTelemetryManager:initializeServerTelemetryManager(eX.acquireTokenPopup,this.config.auth.clientId,et,this.browserStorage,this.logger),requestAuthority:K.authority,requestAzureCloudOptions:K.azureCloudOptions,requestExtraQueryParameters:K.extraQueryParameters,account:K.account,authority:es});return invokeAsync(handleResponseCode,eC,this.logger,this.performanceClient,et)(ed,ey,eu.verifier,eX.acquireTokenPopup,this.config,G,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}async executeCodeFlowWithPost(K,G,J,et){let er=K.correlationId,en=await invokeAsync(getDiscoveredAuthority,el,this.logger,this.performanceClient,er)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger),ei=G.popup||this.openPopup("about:blank",G),eo=await getCodeForm(ei.document,this.config,en,K,this.logger,this.performanceClient);eo.submit();let es=await invokeAsync(waitForBridgeResponse,ef,this.logger,this.performanceClient,er)(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,K,this.performanceClient),ec=invoke(deserializeResponse,ew,this.logger,this.performanceClient,this.correlationId)(es,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return invokeAsync(handleResponseCode,eC,this.logger,this.performanceClient,er)(K,ec,et,eX.acquireTokenPopup,this.config,J,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async logoutPopupAsync(K,G,J,et){this.logger.verbose("0b7yrk",this.correlationId),this.eventHandler.emitEvent(tG.LOGOUT_START,this.correlationId,er.Popup,K);let en=initializeServerTelemetryManager(eX.logoutPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{await clearCacheOnLogout(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,K.account);let ei=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:en,requestAuthority:J,account:K.account||void 0});try{ei.authority.endSessionEndpoint}catch{if(K.account?.homeAccountId&&K.postLogoutRedirectUri&&ei.authority.protocolMode===tg.OIDC){
89if(this.eventHandler.emitEvent(tG.LOGOUT_SUCCESS,K.correlationId,er.Popup,K),et){let K={apiId:eX.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},G=tl.G.getAbsoluteUrl(et,getCurrentUri());await this.navigationClient.navigateInternal(G,K)}G.popup?.close();return}}K.state=tZ.J1(this.browserCrypto,K.state||"",{interactionType:er.Popup});let eo=ei.getLogoutUri(K);this.eventHandler.emitEvent(tG.LOGOUT_SUCCESS,K.correlationId,er.Popup,K);let es=this.openPopup(eo,G);if(this.eventHandler.emitEvent(tG.POPUP_OPENED,K.correlationId,er.Popup,{popupWindow:es},null),await waitForBridgeResponse(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,K,this.performanceClient).catch(()=>{}),et){let K={apiId:eX.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},G=tl.G.getAbsoluteUrl(et,getCurrentUri());this.logger.verbose("0qcur2",this.correlationId),this.logger.verbosePii("0oj7lk",this.correlationId),await this.navigationClient.navigateInternal(G,K)}else this.logger.verbose("03zgcf",this.correlationId)}catch(K){throw G.popup?.close(),K instanceof es.l4&&(K.setCorrelationId(this.correlationId),en.cacheFailedRequest(K)),this.eventHandler.emitEvent(tG.LOGOUT_FAILURE,this.correlationId,er.Popup,null,K),this.eventHandler.emitEvent(tG.LOGOUT_END,this.correlationId,er.Popup),K}this.eventHandler.emitEvent(tG.LOGOUT_END,this.correlationId,er.Popup)}initiateAuthRequest(K,G){if(K)return this.logger.infoPii("1kcr9k",this.correlationId),this.openPopup(K,G);throw this.logger.error("1l7hyp",this.correlationId),createBrowserAuthError(eO)}openPopup(K,G){try{let J;if(G.popup?(J=G.popup,this.logger.verbosePii("0cgeo7",this.correlationId),J.location.assign(K)):void 0===G.popup&&(this.logger.verbosePii("0c2awd",this.correlationId),J=this.openSizedPopup(K,G)),!J)throw createBrowserAuthError("empty_window_error");return J.focus&&J.focus(),this.currentWindow=J,J}catch(K){throw this.logger.error("0dxfb9",this.correlationId),createBrowserAuthError("popup_window_error")}}openSizedPopup(K,{popupName:G,popupWindowAttributes:J,popupWindowParent:et}){let er=et.screenLeft?et.screenLeft:et.screenX,en=et.screenTop?et.screenTop:et.screenY,ei=et.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,eo=et.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,es=J.popupSize?.width,el=J.popupSize?.height,ec=J.popupPosition?.top,eu=J.popupPosition?.left;return(!es||es<0||es>ei)&&(this.logger.verbose("08vfmo",this.correlationId),es=e$.POPUP_WIDTH),(!el||el<0||el>eo)&&(this.logger.verbose("09cxa0",this.correlationId),el=e$.POPUP_HEIGHT),(!ec||ec<0||ec>eo)&&(this.logger.verbose("1qh4wo",this.correlationId),ec=Math.max(0,eo/2-e$.POPUP_HEIGHT/2+en)),(!eu||eu<0||eu>ei)&&(this.logger.verbose("1sz3en",this.correlationId),eu=Math.max(0,ei/2-e$.POPUP_WIDTH/2+er)),et.open(K,G,`width=${es}, height=${el}, top=${ec}, left=${eu}, scrollbars=yes`)}generatePopupName(K,G){return`${e$.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${K.join("-")}.${G}.${this.correlationId}`}generateLogoutPopupName(K){let G=K.account&&K.account.homeAccountId;return`${e$.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${G}.${this.correlationId}`}};let RedirectClient=class RedirectClient extends StandardInteractionClient{constructor(K,G,J,et,er,en,ei,eo,es,el){super(K,G,J,et,er,en,ei,es,el),this.nativeStorage=eo}async acquireToken(K){let G=await invokeAsync(initializeAuthorizationRequest,ey,this.logger,this.performanceClient,this.correlationId)(K,er.Redirect,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);G.platformBroker=isPlatformAuthAllowed(this.config,this.logger,this.correlationId,this.platformAuthProvider,K.authenticationScheme);let handleBackButton=K=>{K.persisted&&(this.logger.verbose("0udvtt",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),this.eventHandler.emitEvent(tG.RESTORE_FROM_BFCACHE,this.correlationId,er.Redirect))},J=this.getRedirectStartPage(K.redirectStartPage);this.logger.verbosePii("0zao0a",this.correlationId),this.browserStorage.setTemporaryCache(eY.ORIGIN_URI,J,!0),window.addEventListener("pageshow",handleBackButton);try{this.config.system.protocolMode===tg.EAR?await this.executeEarFlow(G):await this.executeCodeFlow(G)}catch(K){throw K instanceof es.l4&&K.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",handleBackButton),K}}async executeCodeFlow(K){let G=K.correlationId,J=initializeServerTelemetryManager(eX.acquireTokenRedirect,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),et=await invokeAsync(generatePkceCodes,eS,this.logger,this.performanceClient,G)(this.performanceClient,this.logger,G),er
89={...K,codeChallenge:et.challenge};this.browserStorage.cacheAuthorizeRequest(er,this.correlationId,et.verifier);try{if(er.httpMethod===en.w$.POST)return await this.executeCodeFlowWithPost(er);{let G=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:J,requestAuthority:er.authority,requestAzureCloudOptions:er.azureCloudOptions,requestExtraQueryParameters:er.extraQueryParameters,account:er.account}),et=await invokeAsync(getAuthCodeRequestUrl,tv,this.logger,this.performanceClient,K.correlationId)(this.config,G.authority,er,this.logger,this.performanceClient);return await this.initiateAuthRequest(et)}}catch(K){throw K instanceof es.l4&&(K.setCorrelationId(this.correlationId),J.cacheFailedRequest(K)),K}}async executeEarFlow(K){let{correlationId:G,authority:J,azureCloudOptions:et,extraQueryParameters:er,account:en}=K,ei=await invokeAsync(getDiscoveredAuthority,el,this.logger,this.performanceClient,G)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,J,et,er,en),eo=await invokeAsync(generateEarKey,eE,this.logger,this.performanceClient,G)(),es=await invokeAsync(generatePkceCodes,eS,this.logger,this.performanceClient,G)(this.performanceClient,this.logger,G),ec={...K,earJwk:eo,codeChallenge:es.challenge};this.browserStorage.cacheAuthorizeRequest(ec,this.correlationId,es.verifier);let eu=await getEARForm(document,this.config,ei,ec,this.logger,this.performanceClient);return eu.submit(),new Promise((K,G)=>{setTimeout(()=>{G(createBrowserAuthError(eq,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async executeCodeFlowWithPost(K){let G=K.correlationId,J=await invokeAsync(getDiscoveredAuthority,el,this.logger,this.performanceClient,G)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger);this.browserStorage.cacheAuthorizeRequest(K,this.correlationId);let et=await getCodeForm(document,this.config,J,K,this.logger,this.performanceClient);return et.submit(),new Promise((K,G)=>{setTimeout(()=>{G(createBrowserAuthError(eq,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async handleRedirectPromise(K,G,J,et){let er=initializeServerTelemetryManager(eX.handleRedirectPromise,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),en=et?.navigateToLoginRequestUrl??!0;try{let[ei,eo]=this.getRedirectResponse(et?.hash||"");if(!ei)return this.logger.info("1qmv0q",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),"back_forward"!==/*! @azure/msal-browser v5.8.0 2026-04-21 */function(){if("undefined"==typeof window||void 0===window.performance||"function"!=typeof window.performance.getEntriesByType)return;let K=window.performance.getEntriesByType("navigation"),G=K.length?K[0]:void 0;return G?.type}()?J.event.errorCode="no_server_response":this.logger.verbose("1eqegq",this.correlationId),null;let es=this.browserStorage.getTemporaryCache(eY.ORIGIN_URI,this.correlationId,!0)||"",el=normalizeUrlForComparison(es),ec=normalizeUrlForComparison(window.location.href);if(el===ec&&en){this.logger.verbose("11yred",this.correlationId),es.indexOf("#")>-1&&function(K){let G=K.split("#");G.shift(),window.location.hash=G.length>0?G.join("#"):""}(es);let J=await this.handleResponse(ei,K,G,er);return J}if(!en)return this.logger.verbose("0v4sdv",this.correlationId),await this.handleResponse(ei,K,G,er);if(!isInIframe()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(eY.URL_HASH,eo,!0);let J={apiId:eX.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},et=!0;if(es&&"null"!==es)this.logger.verbose("08jpy1",this.correlationId),et=await this.navigationClient.navigateInternal(es,J);else{let K=function(){let K=new tl.G(window.location.href),G=K.getUrlComponents();return`${G.Protocol}//${G.HostNameAndPort}/`}();this.browserStorage.setTemporaryCache(eY.ORIGIN_URI,K,!0),this.logger.warning("1dutq1",this.correlationId),et=await this.navigationClient.navigateInternal(K,J)}if(!et)return await this.handleResponse(ei,K,G,er)}return null}catch(K){throw K instanceof es.l4&&(K.setCorrelationId(this.correlationId),er.cacheFailedRequest(K)),K}}getRedirectResponse(K){this.logger.verbose("1c5i8m",this.correlationId);let G=K;G||(G=this.config.auth.OIDCOptions.responseMode===en.vw.QUERY?window.location.search:window.location.hash);let J=getDeserializedResponse(G);if(J){try{!function(K,G,J){if(!K.state)throw createBrowserAuthError(eR);let et=/*! @azure/msal-browser v5.8.0 2026-04-21 */function(K,G){if(!G)return null;try{let J=tZ.Zq(K.base64Decode,G);return J.libraryState.meta}catch(K){throw(0,ei.z)(eo.r8)}}(G,K.state);if(!et)throw createBrowserAuthError(ex);if(et.interactionType!==J)throw createBrowserAuthError("state_interaction_type_mismatch")}(J,this.browserCrypto,er.Redirect)}catch(K){return K instanceof es.l4&&this.logger.error("0bkq6p",this.correlationId),[null,""]}return clearHash(window),this.logger.verbose("00uvho",this.correlationId),[J,G]}let et=this.browserStorage.getTemporaryCache(eY.URL_HASH,this.correlationId,!0);return(this.browserStorage.removeItem(this.browserStorage.generateCacheKey(eY.URL_HASH)),et&&(J=getDe
89serializedResponse(et)))?(this.logger.verbose("001671",this.correlationId),[J,et]):[null,""]}async handleResponse(K,G,J,et){let er=K.state;if(!er)throw createBrowserAuthError(eR);let{authority:en,azureCloudOptions:ei,extraQueryParameters:eo,account:es}=G;if(K.ear_jwe){let J=await invokeAsync(getDiscoveredAuthority,el,this.logger,this.performanceClient,G.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,en,ei,eo,es);return invokeAsync(handleResponseEAR,ev,this.logger,this.performanceClient,G.correlationId)(G,K,eX.acquireTokenRedirect,this.config,J,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}let ec=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:et,requestAuthority:G.authority});return invokeAsync(handleResponseCode,eC,this.logger,this.performanceClient,G.correlationId)(G,K,J,eX.acquireTokenRedirect,this.config,ec,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async initiateAuthRequest(K){if(this.logger.verbose("0yaw2e",this.correlationId),K){this.logger.infoPii("1luf83",this.correlationId);let G={apiId:eX.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},J=this.config.auth.onRedirectNavigate;if("function"==typeof J){this.logger.verbose("1nehvl",this.correlationId);let et=J(K);if(!1!==et){this.logger.verbose("1a0jxh",this.correlationId),await this.navigationClient.navigateExternal(K,G);return}this.logger.verbose("09k5h5",this.correlationId);return}this.logger.verbose("0klwf7",this.correlationId),await this.navigationClient.navigateExternal(K,G);return}throw this.logger.info("0rlh4e",this.correlationId),createBrowserAuthError(eO)}async logout(K){this.logger.verbose("1rkurh",this.correlationId);let G=this.initializeLogoutRequest(K),J=initializeServerTelemetryManager(eX.logout,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{this.eventHandler.emitEvent(tG.LOGOUT_START,this.correlationId,er.Redirect,K),await clearCacheOnLogout(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,G.account);let et={apiId:eX.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},en=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:J,requestAuthority:K&&K.authority,requestExtraQueryParameters:K?.extraQueryParameters,account:K&&K.account||void 0});if(en.authority.protocolMode===tg.OIDC)try{en.authority.endSessionEndpoint}catch{if(G.account?.homeAccountId){this.eventHandler.emitEvent(tG.LOGOUT_SUCCESS,this.correlationId,er.Redirect,G);return}}G.state=tZ.J1(this.browserCrypto,G.state||"",{interactionType:er.Redirect});let ei=en.getLogoutUri(G);G.account?.homeAccountId&&this.eventHandler.emitEvent(tG.LOGOUT_SUCCESS,this.correlationId,er.Redirect,G);let eo=this.config.auth.onRedirectNavigate;if("function"==typeof eo){let K=eo(ei);if(!1!==K){this.logger.verbose("06v57e",this.correlationId),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,eJ.SIGNOUT),await this.navigationClient.navigateExternal(ei,et);return}this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("0xqes1",this.correlationId)}else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,eJ.SIGNOUT),await this.navigationClient.navigateExternal(ei,et);return}}catch(K){throw K instanceof es.l4&&(K.setCorrelationId(this.correlationId),J.cacheFailedRequest(K)),this.eventHandler.emitEvent(tG.LOGOUT_FAILURE,this.correlationId,er.Redirect,null,K),this.eventHandler.emitEvent(tG.LOGOUT_END,this.correlationId,er.Redirect),K}this.eventHandler.emitEvent(tG.LOGOUT_END,this.correlationId,er.Redirect)}getRedirectStartPage(K){let G=K||window.location.href;return tl.G.getAbsoluteUrl(G,getCurrentUri())}};/*! @azure/msal-browser v5.8.0 2026-04-21 */async function initiateCodeRequest
89(K,G,J,et){if(!K)throw J.info("1l7hyp",et),createBrowserAuthError(eO);return invoke(loadFrameSync,"silentHandlerLoadFrameSync",J,G,et)(K)}async function initiateCodeFlowWithPost(K,G,J,et,er){let en=createHiddenIframe();if(!en.contentDocument)throw"No document associated with iframe!";let ei=await getCodeForm(en.contentDocument,K,G,J,et,er);return ei.submit(),en}async function initiateEarRequest(K,G,J,et,er){let en=createHiddenIframe();if(!en.contentDocument)throw"No document associated with iframe!";let ei=await getEARForm(en.contentDocument,K,G,J,et,er);return ei.submit(),en}function loadFrameSync(K){let G=createHiddenIframe();return G.src=K,G}function createHiddenIframe(){let K=document.createElement("iframe");return K.className="msalSilentIframe",K.style.visibility="hidden",K.style.position="absolute",K.style.width=K.style.height="0",K.style.border="0",K.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),K.setAttribute("allow","local-network-access *"),document.body.appendChild(K),K}function removeHiddenIframe(K){document.body===K.parentNode&&document.body.removeChild(K)}/*! @azure/msal-browser v5.8.0 2026-04-21 */let SilentIframeClient=class SilentIframeClient extends StandardInteractionClient{constructor(K,G,J,et,er,en,ei,eo,es,el,ec){super(K,G,J,et,er,en,eo,el,ec),this.apiId=ei,this.nativeStorage=es}async acquireToken(K){K.loginHint||K.sid||K.account&&K.account.username||this.logger.warning("1kl318",this.correlationId);let G={...K};G.prompt?G.prompt!==en.NJ.NONE&&G.prompt!==en.NJ.NO_SESSION&&(this.logger.warning("0bmctg",this.correlationId),G.prompt=en.NJ.NONE):G.prompt=en.NJ.NONE;let J=await invokeAsync(initializeAuthorizationRequest,ey,this.logger,this.performanceClient,this.correlationId)(G,er.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);return(J.platformBroker=isPlatformAuthAllowed(this.config,this.logger,this.correlationId,this.platformAuthProvider,J.authenticationScheme),preconnect(J.authority),this.config.system.protocolMode===tg.EAR)?this.executeEarFlow(J):this.executeCodeFlow(J)}async executeCodeFlow(K){let G;let J=initializeServerTelemetryManager(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{return G=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,K.correlationId)({serverTelemetryManager:J,requestAuthority:K.authority,requestAzureCloudOptions:K.azureCloudOptions,requestExtraQueryParameters:K.extraQueryParameters,account:K.account}),await invokeAsync(this.silentTokenHelper.bind(this),eh,this.logger,this.performanceClient,K.correlationId)(G,K)}catch(et){if(et instanceof es.l4&&(et.setCorrelationId(this.correlationId),J.cacheFailedRequest(et)),!G||!(et instanceof es.l4)||et.errorCode!==e$.INVALID_GRANT_ERROR)throw et;return this.performanceClient.addFields({retryError:et.errorCode},this.correlationId),await invokeAsync(this.silentTokenHelper.bind(this),eh,this.logger,this.performanceClient,this.correlationId)(G,K)}}async executeEarFlow(K){let G;let{correlationId:J,authority:et,azureCloudOptions:er,extraQueryParameters:en,account:ei}=K,eo=await invokeAsync(getDiscoveredAuthority,el,this.logger,this.performanceClient,J)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,et,er,en,ei),es=await invokeAsync(generateEarKey,eE,this.logger,this.performanceClient,J)(),ec=await invokeAsync(generatePkceCodes,eS,this.logger,this.performanceClient,J)(this.performanceClient,this.logger,J),eu={...K,earJwk:es,codeChallenge:ec.challenge},ed=await invokeAsync(initiateEarRequest,ep,this.logger,this.performanceClient,J)(this.config,eo,eu,this.logger,this.performanceClient),eh=this.config.auth.OIDCOptions.responseMode;try{G=await invokeAsync(waitForBridgeResponse,ef,this.logger,this.performanceClient,J)(this.config.system.iframeBridgeTimeout,this.logger,this.browserCrypto,K,this.performanceClient,this.config.experimental)}finally{invoke(removeHiddenIframe,e_,this.logger,this.performanceClient,J)(ed)}let em=invoke(deserializeResponse,ew,this.logger,this.performanceClient,J)(G,eh,this.logger,this.correlationId);if(em.ear_jwe||!em.code)return invokeAsync(handleResponseEAR,ev,this.logger,this.performanceClient,J)(eu,em,this.apiId,this.config,eo,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider);{let G=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,J)({serverTelemetryManager:initializeServerTelemetryManager(this.apiId,this.config.auth.clientId,J,this.browserStorage,this.logger),requestAuthority:K.authority,requestAzureCloudOptions:K.azureCloudOptions,requestExtraQueryParameters:K.extraQueryParameters,account:K.account,authority:eo});return invokeAsync(handleResponseCode,eC,this.logger,this.performanceClient,J)(eu,em,ec.verifier,this.apiId,this.config,G,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}async verifySso(K){let G={...K};G.prompt||(G.prompt=en.NJ.NONE);let J=await invokeAsync(initializeAuthorizationRequest,ey,this.logger,this.performanceClient,this.correlationId)(G,er.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),et=await invokeAsync(this.createAuthCodeClient.bind(this),eg,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:initializeServerTelemetryManager(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),requestAuthority:J.authority,requestAzureCloudOptions:J.azureCloudOptions,requestExtraQueryParameters:J.extraQueryParameters,account:J.account}),{serverParams:ei}=await this.silentAuthorizeHelper(et,J),eo=J.correlationId;return(validateAuthorizationResponse(ei,J.state),ei.code)?(this.logger.verbose("0kkkcj",eo),!0):(this.logger.warning("0y34ti",eo),!1)}logout(){return Promise.reject(createBrowserAuthError(eM))}async silentTokenHelper(K,G){let{serverParams:J,pkceCodes:et}=await this.silentAuthorizeHelper(K,G);return invokeAsync(handleResponseCode,eC,this.logger,this.performanceClient,G.correlationId)(G,J,et.verifier,this.apiId,this.config,K,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async silentAuthorizeHelper(K,G){let J,et;let er=G.correlationId,ei=await invokeAsync(generatePkceCodes,eS,this.logger,this.performanceClient,er)(this.performanceClient,this.logger,er),eo={...G,codeChallenge:ei.challenge};if(G.httpMethod===en.w$.POST)J=await invokeAsync(initiateCodeFlowWithPost,ep,this.logger,this.performanceClient,er)(this.config,K.authority,eo,this.logger,this.performanceClient);else{let G=await invokeAsync(getAuthCodeRequestUrl,tv,this.logger,this.performanceClient,er)(this.config,K.authority,eo,this.logger,this.performanceClient);J=await invokeAsync(initiateCodeRequest,ep,this.logger,this.performanceClient,er)(G,this.performanceClient,this.logger,er)}let es=this.config.auth.OIDCOptions.responseMode;try{et=await invokeAsync(waitForBridgeResponse,ef,this.logger,this.performanceClient,er)(this.config.system.iframeBridgeTimeout,this.logger,this.browserCrypto,G,this.performanceClient,this.config.experimental)}finally{invoke(removeHiddenIframe,e_,this.logger,this.performanceClient,er)(J)}let el=invoke(deserializeResponse,ew,this.logger,this.performanceClient,er)(et,es,this.logger,this.correlationId);return{serverParams:el,pkceCodes:ei,silentRequest:eo}}};let RefreshTokenClient=class RefreshTokenClient{constructor(K,G){this.config=buildClientConfiguration(K),this.logger=new t3.Yd(this.config.loggerOptions,tD,tM),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=G}async acquireToken(K,G){let J=nowSeconds(),et=await invokeAsync(this.executeTokenRequest.bind(this),"refreshTokenClientExecuteTokenRequest",this.logger,this.performanceClient,K.correlationId)(K,this.authority),er=et.headers?.[en.SZ.X_MS_REQUEST_ID],ei=new ResponseHandler(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return ei.validateTokenResponse(et.body,K.correlationId),invokeAsync(ei.handleServerTokenResponse.bind(ei),tw,this.logger,this.performanceClient,K.correlationId)(et.body,this.authority,J,K,G,void 0,void 0,!0,K.forceCache,er)}async acquireTokenByRefreshToken(K,G){if(!K)throw(0,tf.e)(tk.dL);if(!K.account)throw(0,ei.z)(eo.D7);let J=this.cacheManager.isAppMetadataFOCI(K.account.environment,K.correlationId);if(J)try{return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ty,this.logger,this.performanceClient,K.correlationId)(K,!0,G)}catch(J){let K=J instanceof InteractionRequiredAuthError&&J.errorCode===tA,G=J instanceof ServerError&&J.errorCode===en.L&&J.subError===en.UN;if(K||G);else throw J}return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this),ty,this.logger,this.performanceClient,K.correlationId)(K,!1,G)}async acquireTokenWithCachedRefreshToken(K,G,J){let et=invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager),"cac
89heManagerGetRefreshToken",this.logger,this.performanceClient,K.correlationId)(K.account,G,K.correlationId,void 0);if(!et)throw createInteractionRequiredAuthError(tA);if(et.expiresOn){let G=K.refreshTokenExpirationOffsetSeconds||300;if(this.performanceClient?.addFields({cacheRtExpiresOnSeconds:Number(et.expiresOn),rtOffsetSeconds:G},K.correlationId),isTokenExpired(et.expiresOn,G))throw createInteractionRequiredAuthError(tE)}let er={...K,refreshToken:et.secret,authenticationScheme:K.authenticationScheme||en.hO.BEARER,ccsCredential:{credential:K.account.homeAccountId,type:ro.HOME_ACCOUNT_ID}};try{return await invokeAsync(this.acquireToken.bind(this),"refreshTokenClientAcquireToken",this.logger,this.performanceClient,K.correlationId)(er,J)}catch(G){if(G instanceof InteractionRequiredAuthError&&G.subError===tI){this.logger.verbose("1pg3ap",K.correlationId);let G=this.cacheManager.generateCredentialKey(et);this.cacheManager.removeRefreshToken(G,K.correlationId)}throw G}}async executeTokenRequest(K,G){let J=createTokenQueryParameters(K,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),et=tl.G.appendQueryString(G.tokenEndpoint,J),er=await invokeAsync(this.createTokenRequestBody.bind(this),"refreshTokenClientCreateTokenRequestBody",this.logger,this.performanceClient,K.correlationId)(K),en=createTokenRequestHeaders(this.logger,this.config.systemOptions.preventCorsPreflight,K.ccsCredential),ei=getRequestThumbprint(this.config.authOptions.clientId,K);return invokeAsync(executePostToTokenEndpoint,"refreshTokenClientExecutePostToTokenEndpoint",this.logger,this.performanceClient,K.correlationId)(et,er,en,ei,K.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,this.serverTelemetryManager)}async createTokenRequestBody(K){let G=new Map;if(!function(K,G){K.set(tJ,G)}(G,K.embeddedClientId||K.extraParameters?.[tJ]||this.config.authOptions.clientId),K.redirectUri&&function(K,G){K.set(tY,G)}(G,K.redirectUri),addScopes(G,K.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),addGrantType(G,en.qJ.REFRESH_TOKEN_GRANT),addClientInfo(G),addLibraryInfo(G,this.config.libraryInfo),addApplicationTelemetry(G,this.config.telemetry.application),addThrottling(G),this.serverTelemetryManager&&!isOidcProtocolMode(this.config)&&addServerTelemetry(G,this.serverTelemetryManager),!function(K,G){K.set("refresh_token",G)}(G,K.refreshToken),this.config.clientCredentials.clientSecret&&addClientSecret(G,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let J=this.config.clientCredentials.clientAssertion;addClientAssertion(G,await getClientAssertion(J.assertion,this.config.authOptions.clientId,K.resourceRequestUri)),addClientAssertionType(G,J.assertionType)}if(K.authenticationScheme===en.hO.POP){let J;let et=new PopTokenGenerator(this.cryptoUtils,this.performanceClient);if(K.popKid)J=this.cryptoUtils.encodeKid(K.popKid);else{let G=await invokeAsync(et.generateCnf.bind(et),tC,this.logger,this.performanceClient,K.correlationId)(K,this.logger);J=G.reqCnfString}addPopToken(G,J)}else if(K.authenticationScheme===en.hO.SSH){if(K.sshJwk)addSshJwk(G,K.sshJwk);else throw(0,tf.e)(tk.dK)}if(this.config.systemOptions.preventCorsPreflight&&K.ccsCredential)switch(K.ccsCredential.type){case ro.HOME_ACCOUNT_ID:try{let J=buildClientInfoFromHomeAccountId(K.ccsCredential.credential);addCcsOid(G,J)}catch(G){this.logger.verbose("1qhtee",K.correlationId)}break;case ro.UPN:addCcsUpn(G,K.ccsCredential.credential)}return K.embeddedClientId&&addBrokerParameters(G,this.config.authOptions.clientId,this.config.authOptions.redirectUri),K.extraParameters&&addExtraParameters(G,{...K.extraParameters}),instrumentBrokerParams(G,K.correlationId,this.performanceClient),addClaims(G,K.claims,this.config.authOptions.clientCapabilities,K.skipBrokerClaims),mapToQueryString(G)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let SilentRefreshClient=class SilentRefreshClient extends StandardInteractionClient{async acquireToken(K){let G=await invokeAsync(initializeBaseRequest,ed,this.logger,this.performanceClient,K.correlationId)(K,this.config,this.performanceClient,this.logger,this.correlationId),J={...K,...G};K.redirectUri&&(J.redirectUri=getRedirectUri(K.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId));let et=initializeServerTelemetryManager(eX.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),er=await this.createRefreshTokenClient({serverTelemetryManager:et,authorityUrl:J.authority,azureCloudOptions:J.azureCloudOptions,account:J.account});return invokeAsync(er.acquireTokenByRefreshToken.bind(er),"refreshTokenClientAcquireTokenByRefreshToken",this.logger,this.performanceClient,K.correlationId)(J,eX.acquireTokenSilent_silentFlow).catch(K=>
89{throw K.setCorrelationId(this.correlationId),et.cacheFailedRequest(K),K})}logout(){return Promise.reject(createBrowserAuthError(eM))}async createRefreshTokenClient(K){let G=await invokeAsync(this.getClientConfiguration.bind(this),em,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:K.serverTelemetryManager,requestAuthority:K.authorityUrl,requestAzureCloudOptions:K.azureCloudOptions,requestExtraQueryParameters:K.extraQueryParameters,account:K.account});return new RefreshTokenClient(G,this.performanceClient)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let HybridSpaAuthorizationCodeClient=class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient{constructor(K,G){super(K,G),this.includeRedirectUri=!1}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let SilentAuthCodeClient=class SilentAuthCodeClient extends StandardInteractionClient{constructor(K,G,J,et,er,en,ei,eo,es,el){super(K,G,J,et,er,en,eo,es,el),this.apiId=ei}async acquireToken(K){if(!K.code)throw createBrowserAuthError("auth_code_required");let G=await invokeAsync(initializeAuthorizationRequest,ey,this.logger,this.performanceClient,this.correlationId)(K,er.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),J=initializeServerTelemetryManager(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{let et={...G,code:K.code},er=await invokeAsync(this.getClientConfiguration.bind(this),em,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:J,requestAuthority:G.authority,requestAzureCloudOptions:G.azureCloudOptions,requestExtraQueryParameters:G.extraQueryParameters,account:G.account}),en=new HybridSpaAuthorizationCodeClient(er,this.performanceClient);this.logger.verbose("1uic5e",this.correlationId);let ei=new InteractionHandler(en,this.browserStorage,et,this.logger,this.performanceClient);return await invokeAsync(ei.handleCodeResponseFromServer.bind(ei),tb,this.logger,this.performanceClient,this.correlationId)({code:K.code,msgraph_host:K.msGraphHost,cloud_graph_host_name:K.cloudGraphHostName,cloud_instance_host_name:K.cloudInstanceHostName},G,this.apiId,!1)}catch(K){throw K instanceof es.l4&&(K.setCorrelationId(this.correlationId),J.cacheFailedRequest(K)),K}}logout(){return Promise.reject(createBrowserAuthError(eM))}};/*! @azure/msal-browser v5.8.0 2026-04-21 */function StandardController_preflightCheck(K,G,J,et){try{preflightCheck(K),enforceResourceParameter(J.auth.isMcp,et)}catch(K){throw G.end({success:!1},K,et.account),K}}let StandardController=class StandardController{constructor(K){this.operatingContext=K,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=K.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new CryptoOps(this.logger,this.performanceClient):ta,this.eventHandler=new EventHandler(this.logger),this.browserStorage=this.isBrowserEnvironment?new BrowserCacheManager(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,function(K){let G;let J=K.cloudDiscoveryMetadata;if(J)try{G=JSON.parse(J)}catch(K){throw(0,tf.e)(tk.E)}return{canonicalAuthority:K.authority?formatAuthorityUri(K.authority):void 0,knownAuthorities:K.knownAuthorities,cloudDiscoveryMetadata:G}}(this.config.auth)):DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler);let G={cacheLocation:eG.MemoryStorage,cacheRetentionDays:5};this.nativeInternalStorage=new BrowserCacheManager(this.config.auth.clientId,G,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler),this.activeSilentTokenRequests=new Map,this.trackStateChange=this.trackStateChange.bind(this),this.trackStateChangeWithMeasurement=this.trackStateChangeWithMeasurement.bind(this)}static async createController(K,G){let J=new StandardController(K);return await J.initialize(G),J}trackStateChange(K,G){K&&("visibilitychange"===G.type?(this.logger.info("16v6hv",K),this.performanceClient.incrementFields({visibilityChangeCount:1},K)):"online"===G.type?(this.logger.info("0zirfd",K),this.performanceClient.incrementFields({onlineStatusChangeCount:1},K)):"offline"===G.type&&(this.logger.info("1xk9ef",K),this.performanceClient.incrementFields({onlineStatusChangeCount:1},K)))}async initialize(K){let G=this.getRequestCorrelationId(K);if(this.logger.trace("1f7joy",G),this.initialized){this.logger.info("061m5x",G);return}if(!this.isBrowserEnvironment){this.logger.info("19fvpi",G),this.initialized=!0,this.eventHandler.emitEvent(tG.INITIALIZE_END,G);return}let J=this.config.system.allowPlatformBroker,et=this.performanceClient.startMeasurement("initializeClientApplication",G);if(this.eventHandler.emitEvent(tG.INITIALIZE_START,G),this.logMultipleInstances(et,G),et.add({isMcp:this.config.auth.isMcp}),await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage),"initializeCache",this.logger,this.performanceClient,G)(G),J)try{this.platformAuthProvider=await getPlatformAuthProvider(this.logger,this.performanceClient,G,this.config.system.nativeBrokerHandshakeTimeout)}catch(K){this.logger.verbose(K,G)}
89this.config.cache.cacheLocation===eG.LocalStorage&&this.eventHandler.subscribeCrossTab(),this.config.system.navigatePopups||await this.preGeneratePkceCodes(G),this.initialized=!0,this.eventHandler.emitEvent(tG.INITIALIZE_END,G),et.end({allowPlatformBroker:J,success:!0})}async handleRedirectPromise(K){if(this.logger.verbose("02l8bm",""),blockAPICallsBeforeInitialize(this.initialized),this.isBrowserEnvironment){let G=K?.hash||"",J=this.redirectResponse.get(G);return void 0===J?(J=this.handleRedirectPromiseInternal(K),this.redirectResponse.set(G,J),this.logger.verbose("1wn9kp","")):this.logger.verbose("0w0gm3",""),J}return this.logger.verbose("12xi63",""),null}async handleRedirectPromiseInternal(K){let G,J,et;if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",""),null;let en=this.browserStorage.getInteractionInProgress()?.type;if(en===eJ.SIGNOUT)return this.logger.verbose("1ywcv2",""),this.browserStorage.setInteractionInProgress(!1),Promise.resolve(null);let ei=this.getAllAccounts(),eo=this.browserStorage.getCachedNativeRequest(),es=eo&&!K?.hash;try{if(es&&this.platformAuthProvider){let K=eo?.correlationId||"";this.eventHandler.emitEvent(tG.HANDLE_REDIRECT_START,K,er.Redirect),G=this.performanceClient.startMeasurement(tR,K),this.logger.trace("12v7is",K),G.add({isPlatformBrokerRequest:!0});let et=new PlatformAuthInteractionClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,eX.handleRedirectPromise,this.performanceClient,this.platformAuthProvider,eo.accountId,this.nativeInternalStorage,eo.correlationId);J=invokeAsync(et.handleRedirectPromise.bind(et),"handleNativeRedirectPromise",this.logger,this.performanceClient,G.event.correlationId)()}else{let[en,ei]=this.browserStorage.getCachedRequest("");et=en;let eo=en.correlationId;this.eventHandler.emitEvent(tG.HANDLE_REDIRECT_START,eo,er.Redirect),G=this.performanceClient.startMeasurement(tR,eo),this.logger.trace("0znzs5",eo);let es=this.createRedirectClient(eo);J=invokeAsync(es.handleRedirectPromise.bind(es),"handleRedirectPromise",this.logger,this.performanceClient,G.event.correlationId)(en,ei,G,K)}}catch(K){throw this.browserStorage.resetRequestCache(""),K}return J.then(K=>{if(K){this.browserStorage.resetRequestCache(K.correlationId),this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_SUCCESS,K.correlationId,er.Redirect,K),this.logger.verbose("0ui8f5",K.correlationId);let J=ei.length<this.getAllAccounts().length;J&&(this.eventHandler.emitEvent(tG.LOGIN_SUCCESS,K.correlationId,er.Redirect,K.account),this.logger.verbose("16im3l",K.correlationId)),G.end({success:!0},void 0,K.account),this.verifySsoCapability(et,er.Redirect)}else G.event.errorCode?G.end({success:!1},void 0):G.discard();return this.eventHandler.emitEvent(tG.HANDLE_REDIRECT_END,G.event.correlationId,er.Redirect),K}).catch(K=>{throw this.browserStorage.resetRequestCache(G.event.correlationId),this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_FAILURE,G.event.correlationId,er.Redirect,null,K),this.eventHandler.emitEvent(tG.HANDLE_REDIRECT_END,G.event.correlationId,er.Redirect),G.end({success:!1},K),K})}async acquireTokenRedirect(K){let G=this.getRequestCorrelationId(K);this.logger.verbose("0os66p",G);let J=this.performanceClient.startMeasurement("acquireTokenPreRedirect",G);J.add({scenarioId:K.scenarioId});let et=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=G=>{let er="function"==typeof et?et(G):void 0;return J.add({navigateCallbackResult:!1!==er}),J.event=J.end({success:!0},void 0,K.account)||J.event,er};try{let et;if(redirectPreflightCheck(this.initialized,this.config),enforceResourceParameter(this.config.auth.isMcp,K),this.browserStorage.setInteractionInProgress(!0,eJ.SIGNIN),this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_START,G,er.Redirect,K),this.platformAuthProvider&&this.canUsePlatformBroker(K)){let er=new PlatformAuthInteractionClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,eX.acquireTokenRedirect,this.performanceClient,this.platformAuthProvider,this.getNativeAccountId(K),this.nativeInternalStorage,G);et=invokeAsync(er.acquireTokenRedirect.bind(er),"nativeInteractionClientAcquireToken",this.logger,this.performanceClient,G)(K,J).catch(et=>{if(J.add({brokerErrorName:et.name,brokerErrorCode:et.errorCode}
89),et instanceof NativeAuthError&&isFatalNativeAuthError(et)){this.platformAuthProvider=void 0;let J=this.createRedirectClient(G);return J.acquireToken(K)}if(et instanceof InteractionRequiredAuthError){this.logger.verbose("1ipyz4",G);let J=this.createRedirectClient(G);return J.acquireToken(K)}throw et})}else{let J=this.createRedirectClient(G);et=J.acquireToken(K)}return await et}catch(et){throw this.browserStorage.resetRequestCache(G),2===J.event.status?this.performanceClient.startMeasurement(tR,G).end({success:!1},et,K.account):J.end({success:!1},et,K.account),this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_FAILURE,G,er.Redirect,null,et),et}}acquireTokenPopup(K){let G;let J=this.getRequestCorrelationId(K),et=this.performanceClient.startMeasurement("acquireTokenPopup",J);et.add({scenarioId:K.scenarioId});try{this.logger.verbose("0ch87b",J),StandardController_preflightCheck(this.initialized,et,this.config,K),this.browserStorage.setInteractionInProgress(!0,eJ.SIGNIN,K.overrideInteractionInProgress,J)}catch(K){return Promise.reject(K)}let en=this.getAllAccounts();this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_START,J,er.Popup,K);let ei=this.getPreGeneratedPkceCodes(J);if(this.canUsePlatformBroker(K))et.add({isPlatformBrokerRequest:!0}),G=this.acquireTokenNative({...K,correlationId:J},eX.acquireTokenPopup).then(K=>(et.end({success:!0,isNativeBroker:!0},void 0,K.account),K)).catch(G=>{if(et.add({brokerErrorName:G.name,brokerErrorCode:G.errorCode}),G instanceof NativeAuthError&&isFatalNativeAuthError(G)){this.platformAuthProvider=void 0;let G=this.createPopupClient(J);return G.acquireToken(K,ei)}if(G instanceof InteractionRequiredAuthError){this.logger.verbose("0yy5fw",J);let G=this.createPopupClient(J);return G.acquireToken(K,ei)}throw G});else{let et=this.createPopupClient(J);G=et.acquireToken(K,ei)}return G.then(G=>{let ei=en.length<this.getAllAccounts().length;return this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_SUCCESS,J,er.Popup,G),ei&&this.eventHandler.emitEvent(tG.LOGIN_SUCCESS,J,er.Popup,G.account),et.end({success:!0,accessTokenSize:G.accessToken.length,idTokenSize:G.idToken.length},void 0,G.account),this.verifySsoCapability(K,er.Popup),G}).catch(G=>(this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_FAILURE,J,er.Popup,null,G),et.end({success:!1},G,K.account),Promise.reject(G))).finally(async()=>{this.browserStorage.setInteractionInProgress(!1),this.config.system.navigatePopups||await this.preGeneratePkceCodes(J)})}trackStateChangeWithMeasurement(K){let G=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;G&&("visibilitychange"===K.type?(this.logger.info("0yzimq",G.event.correlationId),G.increment({visibilityChangeCount:1})):"online"===K.type?(this.logger.info("1caf53",G.event.correlationId),G.increment({onlineStatusChangeCount:1})):"offline"===K.type&&(this.logger.info("0fdyk7",G.event.correlationId),G.increment({onlineStatusChangeCount:1})))}addStateChangeListeners(K){document.addEventListener("visibilitychange",K),window.addEventListener("online",K),window.addEventListener("offline",K)}removeStateChangeListeners(K){document.removeEventListener("visibilitychange",K),window.removeEventListener("online",K),window.removeEventListener("offline",K)}getCachedSsoCapable(){try{let K=window.localStorage.getItem(tq);if(K){let G=JSON.parse(K);if(G&&"boolean"==typeof G.ssoCapable&&G.expiresOn&&Date.now()<G.expiresOn)return G.ssoCapable}}catch{}}verifySsoCapability(K,G){if(!this.config.auth.verifySSO)return;let J=this.getCachedSsoCapable();if(void 0!==J){this.logger.verbose("13poou","");return}let et=BrowserCrypto_createNewGuid(),er=this.performanceClient.startMeasurement("ssoCapable",et);er.add({"ext.interactionType":G}),this.logger.verbose("0pbr0i",et),setTimeout(()=>{let G={...K,correlationId:et},J=this.createSilentIframeClient(et);J.verifySso(G).then(K=>{this.logger.verbose("1gd1iv",et);try{let G=JSON.stringify({ssoCapable:K,expiresOn:Date.now()+864e5});window.localStorage.setItem(tq,G)}catch{this.logger.warning("18lmoj",et)}er.end({fromCache:!1,success:K},void 0)}).catch(K=>{this.logger.warning("05g83w",et);try{window.localStorage.removeItem(tq)}catch{this.logger.warning("0nlf9q",et)}er.end({fromCache:!1,success:!1},K)})},0)}async ssoSilent(K){let G;let J=this.getRequestCorrelationId(K),et={...K,correlationId:J};this.ssoSilentMeasurement=this.performanceClient.startMeasurement("ssoSilent",J),this.ssoSilentMeasurement?.add({scenarioId:K.scenarioId,ssoCapable:this.getCachedSsoCapable()}),StandardController_preflightCheck(this.initialized,this.ssoSilentMeasurement,this.config,et),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);let en=this.getAllAccounts();if(this.logger.verbose("0w1b45",J),this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_START,J,er.Silent,et),this.canUsePlatformBroker(et))this.ssoSilentMeasurement?.add({isPlatformBrokerRequest:!0}),G=this.acquireTokenNative(et,eX.ssoSilent).catch(K=>{if(this.ssoSilentMeasurement?.add({brokerErrorName:K.name,brokerErrorCode:K.errorCode}
89),K instanceof NativeAuthError&&isFatalNativeAuthError(K)){this.platformAuthProvider=void 0;let K=this.createSilentIframeClient(et.correlationId);return K.acquireToken(et)}throw K});else{let K=this.createSilentIframeClient(et.correlationId);G=K.acquireToken(et)}return G.then(K=>{let G=en.length<this.getAllAccounts().length;return this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_SUCCESS,J,er.Silent,K),G&&this.eventHandler.emitEvent(tG.LOGIN_SUCCESS,J,er.Silent,K.account),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:K.fromPlatformBroker,accessTokenSize:K.accessToken.length,idTokenSize:K.idToken.length},void 0,K.account),K}).catch(G=>{throw this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_FAILURE,J,er.Silent,null,G),this.ssoSilentMeasurement?.end({success:!1},G,K.account),G}).finally(()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)})}async acquireTokenByCode(K){let G=this.getRequestCorrelationId(K);this.logger.trace("0ch6ga",G);let J=this.performanceClient.startMeasurement("acquireTokenByCode",G);StandardController_preflightCheck(this.initialized,J,this.config,K),this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_START,G,er.Silent,K),J.add({scenarioId:K.scenarioId});try{if(K.code&&K.nativeAccountId)throw createBrowserAuthError("spa_code_and_nativeAccountId_present");if(K.code){let et=K.code,en=this.hybridAuthCodeResponses.get(et);return en?(this.logger.verbose("0qgp28",G),J.discard()):(this.logger.verbose("06eh73",G),en=this.acquireTokenByCodeAsync({...K,correlationId:G}).then(K=>(this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_SUCCESS,G,er.Silent,K),this.hybridAuthCodeResponses.delete(et),J.end({success:!0,accessTokenSize:K.accessToken.length,idTokenSize:K.idToken.length},void 0,K.account),K)).catch(K=>{throw this.hybridAuthCodeResponses.delete(et),this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_FAILURE,G,er.Silent,null,K),J.end({success:!1},K),K}),this.hybridAuthCodeResponses.set(et,en)),await en}if(K.nativeAccountId){if(this.canUsePlatformBroker(K,K.nativeAccountId)){J.add({isPlatformBrokerRequest:!0});let et=await this.acquireTokenNative({...K,correlationId:G},eX.acquireTokenByCode,K.nativeAccountId).catch(K=>{throw J.add({brokerErrorName:K.name,brokerErrorCode:K.errorCode}),K instanceof NativeAuthError&&isFatalNativeAuthError(K)&&(this.platformAuthProvider=void 0),K});return J.end({success:!0},void 0,et.account),et}throw createBrowserAuthError("unable_to_acquire_token_from_native_platform")}throw createBrowserAuthError("auth_code_or_nativeAccountId_required")}catch(K){throw this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_FAILURE,G,er.Silent,null,K),J.end({success:!1},K),K}}async acquireTokenByCodeAsync(K){let G=this.getRequestCorrelationId(K);this.logger.trace("10d9hy",G),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement("acquireTokenByCodeAsync",G),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);let J=this.createSilentAuthCodeClient(G),et=await J.acquireToken(K).then(K=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:K.fromCache}),K)).catch(K=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({success:!1},K),K}).finally(()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)});return et}async acquireTokenFromCache(K,G){switch(G){case e5.Default:case e5.AccessToken:case e5.AccessTokenAndRefreshToken:let J=this.createSilentCacheClient(K.correlationId);return invokeAsync(J.acquireToken.bind(J),"silentCacheClientAcquireToken",this.logger,this.performanceClient,K.correlationId)(K);default:throw(0,ei.z)(eo.s$)}}async acquireTokenByRefreshToken(K,G){switch(G){case e5.Default:case e5.AccessTokenAndRefreshToken:case e5.RefreshToken:case e5.RefreshTokenAndNetwork:let J=this.createSilentRefreshClient(K.correlationId);return invokeAsync(J.acquireToken.bind(J),"silentRefreshClientAcquireToken",this.logger,this.performanceClient,K.correlationId)(K);default:throw(0,ei.z)(eo.s$)}}async acquireTokenBySilentIframe(K){let G=this.createSilentIframeClient(K.correlationId);return invokeAsync(G.acquireToken.bind(G),"silentIframeClientAcquireToken",this.logger,this.performanceClient,K.correlationId)(K)}async logoutRedirect(K){let G=this.getRequestCorrelationId(K);redirectPreflightCheck(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,eJ.SIGNOUT);let J=this.createRedirectClient(G);return J.logout(K)}logoutPopup(K){try{let G=this.getRequestCorrelationId(K);preflightCheck(this.initialized),this.browserStorage.setInteractionInProgress(!0,eJ.SIGNOUT);let J=this.createPopupClient(G);return J.logout(K).finally(()=>{this.browserStorage.setInteractionInProgress(!1)})}catch(K){return Promise.reject(K)}}async clearCache(K){if(!this.isBrowserEnvironment)return;let G=this.getRequestCorrelationId(K),J=this.createSilentCacheClient(G);return J.logout(K)}getAllAccounts(K){var G,J,et,er;return G=this.logger,J=this.browserStorage,et=this.isBrowserEnvironment,er=this.getRequestCorrelationId(),G.verbose("1yd030",er),et?J.getAllAccounts(K,er):[]}getAccount(K){return function(K,G,J,et){G.trace("0u7b90",et);let er=J.getAccountInfoFilteredBy(K,et);return er?(G.verbose("0btgll",et),er):(G.verbose("0ltaj5",et),null)}(K,this.logger,this.browserStorage,this.getRequestCorrelationId())}setActiveAccount(K){!function(K,G,J){G.setActiveAccount(K,J)}(K,this.browserStorage,this.getRequestCorrelationId())}getActiveAccount(){var K,G;return K=this.browserStorage,G=this.getRequestCorrelationId(),K.getActiveAccount(G)}async hydrateCache(K,G){this.logger.verbose("16jycr",K.correlationId);let J=function(K,G,J){let et=Array.from(K.tenantProfiles?.values()||[]);return 0===et.length&&K.tenantId&&K.localAccountId&&et.push(buildTenantProfile(K.homeAccountId,K.localAccountId,K.tenantId,K.idTokenClaims)),{authorityType:K.authorityType||en.hJ,homeAccountId:K.homeAccountId,localAccountId:K.localAccountId,nativeAccountId:K.nativeAccountId,realm:K.tenantId,environment:K.environment,username:K.username,loginHint:K.loginHint,name:K.name,cloudGraphHostName:G,msGraphHost:J,tenantProfiles:et,dataBoundary:K.dataBoundary}}(K.account,K.cloudGraphHostName,K.msGraphHost);if(await this.browserStorage.setAccount(J,K.correlationId,isKmsi(K.idTokenClaims),eX.hydrateCache),!K.fromPlatformBroker)return this.browserStorage.hydrateCache(K,G);{this.logger.verbose("1i5atf",K.correlationId);let J=createIdTokenEntity(K.account.homeAccountId,K.account.environment,K.idToken,this.config.auth.clientId,K.tenantId),et=createAccessTokenEntity(K.account.homeAccountId,K.account.environment,K.accessToken,this.config.auth.clientId,K.tenantId,K.scopes.join(" "),K.expiresOn?toSecondsFromDate(K.expiresOn):0,K.extExpiresOn?toSecondsFromDate(K.extExpiresOn):0,base64Decode,void 0,K.tokenType,void 0,G.sshKid);G.resource&&(et.resource=G.resource);let er=isKmsi(K.idTokenClaims);await this.browserStorage.setIdTokenCredential(J,K.correlationId,er),await this.nativeInternalStorage.setAccessTokenCredential(et,K.correlationId,er)}}async acquireTokenNative(K,G,J,et){let er=this.getRequestCorrelationId(K);if(this.logger.trace("0b9y3p",er),!this.platformAuthProvider)throw createBrowserAuthError(ej);let en=new PlatformAuthInteractionClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,G,this.performanceClient,this.platformAuthProvider,J||this.getNativeAccountId(K),this.nativeInternalStorage,er);return invokeAsync(en.acquireToken.bind(en),ec,this.logger,this.performanceClient,er)(K,et)}canUsePlatformBroker(K,G){let J=this.getRequestCorrelationId(K);if(this.logger.trace("1n9lbl",J),!this.platformAuthProvider)return this.logger.trace("0vnu11",J),!1;if(!isPlatformAuthAllowed(this.config,this.logger,J,this.platformAuthProvider,K.authenticationScheme))return this.logger.trace("0yoy1g",J),!1;if(K.prompt)switch(K.prompt){case en.NJ.NONE:case en.NJ.CONSENT:case en.NJ.LOGIN:this.logger.trace("0vdv8e",J);break;default:return this.logger.trace("0pdzw6",J),!1}return!!(G||this.getNativeAccountId(K))||(this.logger.trace("16lbtk",J),!1)}getNativeAccountId(K){let G=K.account||this.getAccount({loginHint:K.loginHint,sid:K.sid})||(K.loginHint||K.sid?null:this.getActiveAccount());return G&&G.nativeAccountId||""}createPopupClient(K){return new PopupClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,K,this.platformAuthProvider)}createRedirectClient(K){return new RedirectClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,K,this.platformAuthProvider)}createSilentIframeClient(K){return new SilentIframeClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,eX.ssoSilent,this.performanceClient,this.nativeInternalStorage,K,this.platformAuthProvider)}createSilentCacheClient(K){return new SilentCacheClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,K,this.platformAuthProvider)}createSilentRefreshClient(K){return new SilentRefreshClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,K,this.platformAuthProvider)}createSilentAuthCodeClient(K){return new SilentAuthCodeClient(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,eX.acquireTokenByCode,this.performanceClient,K,this.platformAuthProvider)}addEventCallback(K,G){return this.eventHandler.addEventCallback(K,G)}removeEventCallback(K){this.eventHandler.removeEventCallback(K)}addPerformanceCallback(K){return blockNonBrowserEnvironment(),this.performanceClient.addPerformanceCallback(K)}removePerformanceCallback(K){return this.performanceClient.removePerformanceCallback(K)}getLogger(){return this.logger}setLogger(K){this.logger=K}initializeWrapperLibrary(K,G){this.browserStorage.setWrapperMetadata(K,G)}setNavigationClient(K){this.navigationClient=K}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(K){return K?.correlationId?K.correlationId:this.isBrowserEnvironment?BrowserCrypto_createNewGuid():""}async loginRedirect(K){let G=this.getRequestCorrelationId(K);return this.logger.verbose("0lz9hf",G),this.acquireTokenRedirect({correlationId:G,...K||e1})}loginPopup(K){let G=this.getRequestCorrelationId(K);return this.logger.verbose("0qw7v5",G),this.acquireTokenPopup({correlationId:G,...K||e1})}async acquireTokenSilent(K){let G=this.getRequestCorrelationId(K),J=this.performanceClient.startMeasurement("acquireTokenSilent",G);J.add({cacheLookupPolicy:K.cacheLookupPolicy,scenarioId:K.scenarioId,ssoCapable:this.getCachedSsoCapable()}),StandardController_preflightCheck(this.initialized,J,this.config,K),this.logger.verbose("0x1c4s",G);let et=K.account||this.getActiveAccount();if(!et)throw createBrowserAuthError("no_account_error");return this.acquireTokenSilentDeduped(K,et,G).then(et=>(J.end({success:!0,fromCache:et.fromCache,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length},void 0,et.account),{...et,state:K.state,correlationId:G})).catch(K=>{throw K instanceof es.l4&&K.setCorrelationId(G),J.end({success:!1},K,et),K})}async acquireTokenSilentDeduped(K,G,J){let et=getRequestThumbprint(this.config.auth.clientId,{...K,authority:K.authority||this.config.auth.authority,correlationId:J},G.homeAccountId),er=JSON.stringify(et),en=this.activeSilentTokenRequests.get(er);if(void 0!==en)return this.logger.verbose("1yq7nb",J),this.performanceClient.addFields({deduped:!0},J),en;{this.logger.verbose("0fcjbk",J),this.performanceClient.addFields({deduped:!1},J);let et=invokeAsync(this.acquireTokenSilentAsync.bind(this),"acquireTokenSilentAsync",this.logger,this.performanceClient,J)({...K,correlationId:J},G);return this.activeSilentTokenRequests.set(er,et),et.finally(()=>{this.activeSilentTokenRequests.delete(er)})}}async acquireTokenSilentAsync(K,G){let trackStateChange=G=>this.trackStateChange(K.correlationId,G);this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_START,K.correlationId,er.Silent,K),K.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0,onlineStatusChangeCount:0},K.correlationId),this.addStateChangeListeners(trackStateChange);let J=await invokeAsync(initializeSilentRequest,"initializeSilentRequest",this.logger,this.performanceClient,K.correlationId)(K,G,this.config,this.performanceClient,this.logger),et=K.cacheLookupPolicy||e5.Default,en=this.acquireTokenSilentNoIframe(J,et).catch(async G=>{let er=function(K,G){let J=!(K instanceof InteractionRequiredAuthError&&K.subError
89!==tI),et=K.errorCode===e$.INVALID_GRANT_ERROR||K.errorCode===eo.s$,er=J&&et||K.errorCode===tA||K.errorCode===tE,en=e6.includes(G);return er&&en}(G,et);if(er){let er=`${G.errorCode}${G.subError?`|${G.subError}`:""}`;if(this.performanceClient.addFields({silentRefreshReason:er},K.correlationId),this.activeIframeRequest){if(et===e5.Skip)return this.logger.warning("1bd4p8",J.correlationId),invokeAsync(this.acquireTokenBySilentIframe.bind(this),eu,this.logger,this.performanceClient,J.correlationId)(J);{let[K,er]=this.activeIframeRequest;this.logger.verbose("1w8fso",J.correlationId);let en=this.performanceClient.startMeasurement("awaitConcurrentIframe",J.correlationId);en.add({awaitIframeCorrelationId:er});let ei=await K;if(en.end({success:ei}),ei)return this.logger.verbose("0ywzzi",J.correlationId),this.acquireTokenSilentNoIframe(J,et);throw this.logger.info("17y14q",J.correlationId),G}}{let K;return this.activeIframeRequest=[new Promise(G=>{K=G}),J.correlationId],this.logger.verbose("0rh08z",J.correlationId),invokeAsync(this.acquireTokenBySilentIframe.bind(this),eu,this.logger,this.performanceClient,J.correlationId)(J).then(G=>(K(!0),G)).catch(G=>{throw K(!1),G}).finally(()=>{this.activeIframeRequest=void 0})}}throw G});return en.then(G=>(this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_SUCCESS,K.correlationId,er.Silent,G),K.correlationId&&this.performanceClient.addFields({fromCache:G.fromCache,isNativeBroker:G.fromPlatformBroker},K.correlationId),G)).catch(G=>{throw this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_FAILURE,K.correlationId,er.Silent,null,G),G}).finally(()=>{this.removeStateChangeListeners(trackStateChange)})}async acquireTokenSilentNoIframe(K,G){return isPlatformAuthAllowed(this.config,this.logger,K.correlationId,this.platformAuthProvider,K.authenticationScheme)&&K.account.nativeAccountId?(this.logger.verbose("0sczo4",K.correlationId),this.performanceClient.addFields({isPlatformBrokerRequest:!0},K.correlationId),this.acquireTokenNative(K,eX.acquireTokenSilent_silentFlow,K.account.nativeAccountId,G).catch(async G=>{if(this.performanceClient.addFields({brokerErrorName:G.name,brokerErrorCode:G.errorCode},K.correlationId),G instanceof NativeAuthError&&isFatalNativeAuthError(G))throw this.logger.verbose("07rkmb",K.correlationId),this.platformAuthProvider=void 0,(0,ei.z)(eo.s$);throw G})):(this.logger.verbose("0ox81t",K.correlationId),G===e5.AccessToken&&this.logger.verbose("0fvwxe",K.correlationId),invokeAsync(this.acquireTokenFromCache.bind(this),"acquireTokenFromCache",this.logger,this.performanceClient,K.correlationId)(K,G).catch(J=>{if(G===e5.AccessToken)throw J;return this.eventHandler.emitEvent(tG.ACQUIRE_TOKEN_NETWORK_START,K.correlationId,er.Silent,K),invokeAsync(this.acquireTokenByRefreshToken.bind(this),"acquireTokenByRefreshToken",this.logger,this.performanceClient,K.correlationId)(K,G)}))}async preGeneratePkceCodes(K){return this.logger.verbose("1x6uj6",K),this.pkceCode=await invokeAsync(generatePkceCodes,eS,this.logger,this.performanceClient,K)(this.performanceClient,this.logger,K),Promise.resolve()}getPreGeneratedPkceCodes(K){let G=this.pkceCode?{...this.pkceCode}:void 0;return this.pkceCode=void 0,G?this.logger.verbose("12js1o",K):this.logger.verbose("1oe9ci",K),this.performanceClient.addFields({usePreGeneratedPkce:!!G},K),G}logMultipleInstances(K,G){let J=this.config.auth.clientId;if(!window)return;window.msal=window.msal||{},window.msal.clientIds=window.msal.clientIds||[];let et=window.msal.clientIds;et.length>0&&this.logger.verbose("1qtz3l",G),window.msal.clientIds.push(J),function(K,G,J,et){let er=window.msal?.clientIds||[],en=er.length,ei=er.filter(G=>G===K).length;ei>1&&J.warning("1e88vg",et),G.add({msalInstanceCount:en,sameClientIdInstanceCount:ei})}(J,K,this.logger,G)}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let BaseOperatingContext=class BaseOperatingContext{static loggerCallback(K,G){switch(K){case t3.in.Error:console.error(G);return;case t3.in.Info:console.info(G);return;case t3.in.Verbose:console.debug(G);return;case t3.in.Warning:console.warn(G);return;default:console.log(G);return}}constructor(K){let G;this.browserEnvironment="undefined"!=typeof window,this.config=function({auth:K,cache:G,system:J,experimental:et,telemetry:er},ei){let eo={clientId:"",authority:`${en.cE}`,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:"undefined"!=typeof window&&window.location?window.location.href.split("?")[0].split("#")[0]:"",postLogoutRedirectUri:"",clientCapabilities:[],OIDCOptions:{responseMode:en.vw.FRAGMENT,defaultScopes:[en.cl,en.di,en.U1]},azureCloudOptions:{azureCloudInstance:tm.None,tenant:""},instanceAware:!1,isMcp:!1,verifySSO:!1},es={cacheLocation:eG.SessionStorage,cacheRetentionDays:5},el={loggerCallback:()=>{},logLevel:t3.in.Info,piiLoggingEnabled:!1},ec={...t8,loggerOptions:el,networkClient:ei?new FetchClient:rs,navigationClient:new NavigationClient,popupBridgeTimeout:J?.popupBridgeTimeout||6e4,iframeBridgeTimeout:J?.iframeBridgeTimeout||1e4,redirectNavigationTimeout:3e4,allowRedirectInIframe:!1,navigatePopups:!0,allowPlatformBroker:!1,nativeBrokerHandshakeTimeout:J?.nativeBrokerHandshakeTimeout||2e3,protocolMode:tg.AAD},eu={...ec,...J,loggerOptions:J?.loggerOptions||el},ed={application:{appName:"",appVersion:""},client:new StubPerformanceClient_StubPerformanceClient};if(J?.protocolMode!==tg.OIDC&&K?.OIDCOptions){let K=new t3.Yd(eu.loggerOptions);K.warning(JSON.stringify((0,tf.e)(tk.qz)),"")}if(J?.protocolMode&&J.protocolMode===tg.OIDC&&eu?.allowPlatformBroker)throw(0,tf.e)(tk.sD);let eh={auth:{...eo,...K,OIDCOptions:{...eo.OIDCOptions,...K?.OIDCOptions}},cache:{...es,...G},system:eu,experimental:{iframeTimeoutTelemetry:!1,...et},telemetry:{...ed,...er}};return eh}(K,this.browserEnvironment);try{G=window[eG.SessionStorage]}catch(K){}let J=G?.getItem(tB),et=G?.getItem(tU)?.toLowerCase(),er="true"===et||"false"!==et&&void 0,ei={...this.config.system.loggerOptions},eo=J&&Object.keys(t3.in).includes(J)?t3.in[J]:void 0;eo&&(ei.loggerCallback=BaseOperatingContext.loggerCallback,ei.logLevel=eo),void 0!==er&&(ei.piiLoggingEnabled=er),this.logger=new t3.Yd(ei,"@azure/msal-browser",t6),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let StandardOperatingContext=class StandardOperatingContext extends BaseOperatingContext{getModuleName(){return StandardOperatingContext.MODULE_NAME}getId(){return StandardOperatingContext.ID}async initialize(K){return this.available="undefined"!=typeof window,this.available}};StandardOperatingContext.MODULE_NAME="",StandardOperatingContext.ID="StandardOperatingContext";/*! @azure/msal-browser v5.8.0 2026-04-21 */let PublicClientApplication=class PublicClientApplication{constructor(K,G){this.controller=G||new StandardController(new StandardOperatingContext(K))}async initialize(K){return this.controller.initialize(K)}async acquireTokenPopup(K){return this.controller.acquireTokenPopup(K)}acquireTokenRedirect(K){return this.controller.acquireTokenRedirect(K)}acquireTokenSilent(K){return this.controller.acquireTokenSilent(K)}acquireTokenByCode(K){return this.controller.acquireTokenByCode(K)}addEventCallback(K,G){return this.controller.addEventCallback(K,G)}removeEventCallback(K){return this.controller.removeEventCallback(K)}addPerformanceCallback(K){return this.controller.addPerformanceCallback(K)}removePerformanceCallback(K){return this.controller.removePerformanceCallback(K)}getAccount(K){return this.controller.getAccount(K)}getAllAccounts(K){return this.controller.getAllAccounts(K)}handleRedirectPromise(K){return this.controller.handleRedirectPromise(K)}loginPopup(K){return this.controller.loginPopup(K)}loginRedirect(K){return this.controller.loginRedirect(K)}logoutRedirect(K){return this.controller.logoutRedirect(K)}logoutPopup(K){return this.controller.logoutPopup(K)}ssoSilent(K){return this.controller.ssoSilent(K)}getLogger(){return this.controller.getLogger()}setLogger(K){this.controller.setLogger(K)}setActiveAccount(K){this.controller.setActiveAccount(K)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(K,G){return this.controller.initializeWrapperLibrary(K,G)}setNavigationClient(K){this.controller.setNavigationClient(K)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(K,G){return this.controller.hydrateCache(K,G)}clearCache(K){return this.controller.clearCache(K)}};en.hO,en.vw,en.NJ,en.xd,en.f_},64462:function(K,G,J){"use strict";J.r(G),J.d(G,{broadcastResponseToMainFrame:function(){return broadcastResponseToMainFrame}});var et,er,en=J(85943),ei=J(53650),eo=J(33499);let BrowserAuthError=class BrowserAuthError extends eo.l4{constructor(K,G){super(K,`See https://aka.ms/msal.js.errors#${K} for details`,G),Object.setPrototypeOf(this,BrowserAuthError.prototype),this.name="BrowserAuthError"}};function createBrowserAuthError(K,G){return new BrowserAuthError(K,G)}/*! @azure/msal-browser v5.8.0 2026-04-21 */function base64Decode(K){return new TextDecoder().decode(function(K){let G=K.replace(/-/g,"+").replace(/_/g,"/");switch(G.length%4){case 0:break;case 2:G+="==";break;case 3:G+="=";break;default:throw createBrowserAuthError("invalid_base64_string")}let J=atob(G);return Uint8Array.from(J,K=>K.codePointAt(0)||0)}(K))}/*! @azure/msal-browser v5.8.0 2026-04-21 */let es={SIGNOUT:"signout"},el={ORIGIN_URI:"request.origin",URL_HASH:"urlHash",INTERACTION_STATUS_KEY:"interaction.status"},ec={handleRedirectPromise:865,logout:961};(et=er||(er={})).Redirect="redirect",et.Popup="popup",et.Silent="silent",et.None="none";/*! @azure/msal-browser v5.8.0 2026-04-21 */let NavigationClient=class NavigationClient{navigateInternal(K,G){return NavigationClient.defaultNavigateWindow(K,G)}navigateExternal(K,G){return NavigationClient.defaultNavigateWindow(K,G)}static defaultNavigateWindow(K,G){return G.noHistory?window.location.replace(K):window.location.assign(K),new Promise((K,J)=>{setTimeout(()=>{J(createBrowserAuthError("timed_out","failed_to_redirect"))},G.timeout)})}};/*! @azure/msal-browser v5.8.0 2026-04-21 */let eu="msal";/*! @azure/msal-browser v5.8.0 2026-04-21 */async function broadcastResponseToMainFrame(K){let G;try{G=/*! @azure/msal-browser v5.8.0 2026-04-21 */function(){let K;let G=window.location.hash,J=window.location.search,et=!1,er=!1,ei="";if(G&&G.length>1){let J="#"===G.charAt(0)?G.substring(1):G,er=new URLSearchParams(J);er.has("state")&&(et=!0,ei=J,K=er)}if(J&&J.length>1){let G="?"===J.charAt(0)?J.substring(1):J,et=new URLSearchParams(G);et.has("state")&&(er=!0,ei=G,K=et)}if(et&&er){let et="?"===J.charAt(0)?J.substring(1):J,er="#"===G.charAt(0)?G.substring(1):G;ei=`${et}${er}`,K=new URLSearchParams(ei)}if(!ei||!K)throw createBrowserAuthError("empty_response");let eo=K.get("state");if(!eo)throw createBrowserAuthError("no_state_in_hash");let{libraryState:es}=en.Zq(base64Decode,eo),{id:el,meta:ec}=es;if(!el||!ec)throw createBrowserAuthError("unable_to_parse_state","missing_library_state");return{params:K,payload:ei,urlHash:G,urlQuery:J,hasResponseInHash:et,hasResponseInQuery:er,libraryState:{id:el,meta:ec}}}()}catch(K){throw"function"==typeof window.history.replaceState&&window.history.replaceState(null,"",`${window.location.origin}${window.location.pathname}`),K}let{payload:J,urlHash:et,urlQuery:eo,hasResponseInHash:ed,hasResponseInQuery:eh,libraryState:ep}=G,{id:ef,meta:eg}=ep;if(eg.interactionType===er.Redirect){let G=K||new NavigationClient,et="",er="",en="",eo=`${eu}.${el.INTERACTION_STATUS_KEY}`;try{let K=window.sessionStorage.getItem(eo),G=JSON.parse(K||"");if(er=G.clientId||"",en=G.type,er){let K=`${eu}.${er}.${el.ORIGIN_URI}`;et=window.sessionStorage.getItem(K)||""}}catch{}let ed={apiId:en===es.SIGNOUT?ec.logout:ec.handleRedirectPromise,noHistory:!0,timeout:3e4};if(er)try{window.sessionStorage.setItem(`${eu}.${er}.${el.URL_HASH}`,J)}catch{}let eh=et||function(){let K=new ei.G(window.location.href),G=K.getUrlComponents();return`${G.Protocol}//${G.HostNameAndPort}/`}(),ep=eh.endsWith("?")?eh.slice(0,-1):eh;await G.navigateInternal(ep,ed);return}if("function"==typeof window.history.replaceState){let K=`${window.location.origin}${window.location.pathname}`;!ed&&et&&(K+=et),!eh&&eo&&(K+=eo),window.history.replaceState(null,"",K)}let em=new BroadcastChannel(ef);em.postMessage({v:1,payload:J}),em.close();try{window.close()}catch{}}},33499:function(K,G,J){"use strict";/*! @azure/msal-common v16.5.1 2026-04-21 */function getDefaultErrorMessage(K){return`See https://aka.ms/msal.js.errors#${K} for details`}J.d(G,{GV:function(){return getDefaultErrorMessage},MD:function(){return createAuthError},l4:function(){return AuthError}});
89let AuthError=class AuthError extends Error{constructor(K,G,J){let et=G||(K?getDefaultErrorMessage(K):""),er=et?`${K}: ${et}`:K;super(er),Object.setPrototypeOf(this,AuthError.prototype),this.errorCode=K||"",this.errorMessage=et||"",this.subError=J||"",this.name="AuthError"}setCorrelationId(K){this.correlationId=K}};function createAuthError(K,G){return new AuthError(K,G||getDefaultErrorMessage(K))}},73978:function(K,G,J){"use strict";J.d(G,{z:function(){return createClientAuthError}});var et=J(33499);/*! @azure/msal-common v16.5.1 2026-04-21 */let ClientAuthError=class ClientAuthError extends et.l4{constructor(K,G){super(K,G),this.name="ClientAuthError",Object.setPrototypeOf(this,ClientAuthError.prototype)}};function createClientAuthError(K,G){return new ClientAuthError(K,G)}},31184:function(K,G,J){"use strict";J.d(G,{Ao:function(){return eg},Ce:function(){return el},D7:function(){return ew},Dw:function(){return eM},EC:function(){return em},EF:function(){return es},FU:function(){return ey},GH:function(){return en},HO:function(){return eo},LV:function(){return eh},M2:function(){return ex},Of:function(){return eR},PM:function(){return ei},P_:function(){return eT},Q9:function(){return eS},QL:function(){return eA},S:function(){return eC},S7:function(){return er},Tu:function(){return ed},ZE:function(){return et},Zv:function(){return eI},b4:function(){return ec},cX:function(){return ek},f4:function(){return eb},ig:function(){return eO},mj:function(){return e_},ol:function(){return eP},r8:function(){return eu},s$:function(){return eE},v1:function(){return ev},vR:function(){return ep},w7:function(){return ef},zM:function(){return eD}});/*! @azure/msal-common v16.5.1 2026-04-21 */let et="client_info_decoding_error",er="client_info_empty_error",en="token_parsing_error",ei="null_or_empty_token",eo="endpoints_resolution_error",es="network_error",el="openid_config_error",ec="hash_not_deserialized",eu="invalid_state",ed="state_mismatch",eh="state_not_found",ep="nonce_mismatch",ef="auth_time_not_found",eg="max_age_transpired",em="multiple_matching_appMetadata",ey="request_cannot_be_made",ev="cannot_remove_empty_scope",eb="cannot_append_scopeset",eC="empty_input_scopeset",ew="no_account_in_silent_request",e_="invalid_cache_record",eS="invalid_cache_environment",ek="no_account_found",eA="no_crypto_object",eE="token_refresh_required",eT="token_claims_cnf_required_for_signedjwt",eI="authorization_code_missing_from_server_response",eP="binding_key_not_removed",eO="end_session_endpoint_not_supported",eR="key_id_missing",ex="method_not_implemented",eD="resource_parameter_required",eM="misplaced_resource_parameter"},43569:function(K,G,J){"use strict";J.d(G,{e:function(){return createClientConfigurationError}});var et=J(33499);/*! @azure/msal-common v16.5.1 2026-04-21 */let ClientConfigurationError=class ClientConfigurationError extends et.l4{constructor(K){super(K),this.name="ClientConfigurationError",Object.setPrototypeOf(this,ClientConfigurationError.prototype)}};function createClientConfigurationError(K){return new ClientConfigurationError(K)}},9770:function(K,G,J){"use strict";J.d(G,{$h:function(){return ec},E:function(){return ed},Hv:function(){return ev},Oz:function(){return er},RV:function(){return et},TU:function(){return eu},To:function(){return ei},Tq:function(){return eb},dK:function(){return ef},dL:function(){return el},hI:function(){return eg},nm:function(){return es},o_:function(){return ep},qz:function(){return em},sD:function(){return ey},vE:function(){return eo},yH:function(){return en},zx:function(){return eh}});/*! @azure/msal-common v16.5.1 2026-04-21 */let et="redirect_uri_empty",er="authority_uri_insecure",en="url_parse_error",ei="empty_url_error",eo="empty_input_scopes_error",es="invalid_claims",el="token_request_empty",ec="logout_request_empty",eu="pkce_params_missing",ed="invalid_cloud_discovery_metadata",eh="invalid_authority_metadata",ep="untrusted_authority",ef="missing_ssh_jwk",eg="missing_ssh_kid",em="cannot_set_OIDCOptions",ey="cannot_allow_platform_broker",ev="authority_mismatch",eb="invalid_request_method_for_EAR"},84337:function(K,G,J){"use strict";var et,er;J.d(G,{Yd:function(){return Logger},in:function(){return et}}),(er=et||(et={}))[er.Error=0]="Error",er[er.Warning=1]="Warning",er[er.Info=2]="Info",er[er.Verbose=3]="Verbose",er[er.Trace=4]="Trace";let en=new Map;let Logger=class Logger{constructor(K,G,J){this.level=et.Info;let er=K||Logger.createDefaultLoggerOptions();this.localCallback=er.loggerCallback||(()=>{}),this.piiLoggingEnabled=er.piiLoggingEnabled||!1,this.level="number"==typeof er.logLevel?er.logLevel:et.Info,this.packageName=G||"",this.packageVersion=J||""}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:et.Info}}clone(K,G){return new Logger({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level},K,G)}logMessage(K,G){let J=G.correlationId,er=function(K){if(6!==K.length)return!1;for(let G=0;G<K.length;G++){let J=K[G],et=J>="a"&&J<="z"||J>="A"&&J<="Z"||J>="0"&&J<="9";if(!et)return!1}return!0}(K);if(er){let et={hash:K,level:G.logLevel,containsPii:G.containsPii||!1,milliseconds:0};!function(K,G){let J=Date.now(),et=en.get(K);if(et){var er;er=et,en.delete(K),en.set(K,er)}else if(et={logs:[],firstEventTime:J},en.set(K,et),en.size>50){let K=en.keys().next().value;K&&en.delete(K)}et.logs.push({...G,milliseconds:J-et.firstEventTime}),et.logs.length>500&&et.logs.shift()}(J,et)}if(G.logLevel>this.level||!this.piiLoggingEnabled&&G.containsPii)return;let ei=new Date().toUTCString(),eo=`[${ei}] : [${J}]`,es=`${eo} : ${this.packageName}@${this.packageVersion} : ${et[G.logLevel]} - ${K}`;this.executeCallback(G.logLevel,es,G.containsPii||!1)}executeCallback(K,G,J){this.localCallback&&this.localCallback(K,G,J)}error(K,G){this.logMessage(K,{logLevel:et.Error,containsPii:!1,correlationId:G})}errorPii(K,G){this.logMessage(K,{logLevel:et.Error,containsPii:!0,correlationId:G})}warning(K,G){this.logMessage(K,{logLevel:et.Warning,containsPii:!1,correlationId:G})}warningPii(K,G){this.logMessage(K,{logLevel:et.Warning,containsPii:!0,correlationId:G})}info(K,G){this.logMessage(K,{logLevel:et.Info,containsPii:!1,correlationId:G})}infoPii(K,G){this.logMessage(K,{logLevel:et.Info,containsPii:!0,correlationId:G})}verbose(K,G){this.logMessage(K,{logLevel:et.Verbose,containsPii:!1,correlationId:G})}verbosePii(K,G){this.logMessage(K,{logLevel:et.Verbose,containsPii:!0,correlationId:G})}trace(K,G){this.logMessage(K,{logLevel:et.Trace,containsPii:!1,correlationId:G})}tracePii(K,G){this.logMessage(K,{logLevel:et.Trace,containsPii:!0,correlationId:G})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}},53650:function(K,G,J){"use strict";J.d(G,{G:function(){return UrlString}});var et=J(43569),er=J(1639),en=J(15806),ei=J(9770);/*! @azure/msal-common v16.5.1 2026-04-21 */let UrlString=class UrlString{get urlString(){return this._urlString}constructor(K){if(this._urlString=K,!this._urlString)throw(0,et.e)(ei.To);K.includes("#")||(this._urlString=UrlString.canonicalizeUri(K))}static canonicalizeUri(K){if(K){let G=K.toLowerCase();return er.x.endsWith(G,"?")?G=G.slice(0,-1):er.x.endsWith(G,"?/")&&(G=G.slice(0,-2)),er.x.endsWith(G,"/")||(G+="/"),G}return K}validateAsUri(){let K;try{K=this.getUrlComponents()}catch(K){throw(0,et.e)(ei.yH)}if(!K.HostNameAndPort||!K.PathSegments)throw(0,et.e)(ei.yH);if(!K.Protocol||"https:"!==K.Protocol.toLowerCase())throw(0,et.e)(ei.Oz)}static appendQueryString(K,G){return G?0>K.indexOf("?")?`${K}?${G}`:`${K}&${G}`:K}static removeHashFromUrl(K){return UrlString.canonicalizeUri(K.split("#")[0])}replaceTenantPath(K){let G=this.getUrlComponents(),J=G.PathSegments;
89return K&&0!==J.length&&(J[0]===en.cO.COMMON||J[0]===en.cO.ORGANIZATIONS)&&(J[0]=K),UrlString.constructAuthorityUriFromObject(G)}getUrlComponents(){let K=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),G=this.urlString.match(K);if(!G)throw(0,et.e)(ei.yH);let J={Protocol:G[1],HostNameAndPort:G[4],AbsolutePath:G[5],QueryString:G[7]},er=J.AbsolutePath.split("/");return er=er.filter(K=>K&&K.length>0),J.PathSegments=er,J.QueryString&&J.QueryString.endsWith("/")&&(J.QueryString=J.QueryString.substring(0,J.QueryString.length-1)),J}static getDomainFromUrl(K){let G=RegExp("^([^:/?#]+://)?([^/?#]*)"),J=K.match(G);if(!J)throw(0,et.e)(ei.yH);return J[2]}static getAbsoluteUrl(K,G){if(K[0]===en.xZ){let J=new UrlString(G),et=J.getUrlComponents();return et.Protocol+"//"+et.HostNameAndPort+K}return K}static constructAuthorityUriFromObject(K){return new UrlString(K.Protocol+"//"+K.HostNameAndPort+"/"+K.PathSegments.join("/"))}}},15806:function(K,G,J){"use strict";J.d(G,{$3:function(){return e5},$A:function(){return tp},$f:function(){return eN},$h:function(){return eP},As:function(){return eU},Dy:function(){return el},Eg:function(){return eA},H4:function(){return eo},Kh:function(){return eq},L:function(){return ts},L4:function(){return eX},NJ:function(){return ez},Nd:function(){return e3},RW:function(){return e_},SZ:function(){return eL},T1:function(){return e9},TD:function(){return eT},To:function(){return td},Ts:function(){return eg},U1:function(){return ef},UN:function(){return tl},Vi:function(){return eF},W:function(){return tc},WE:function(){return eE},X2:function(){return em},Ym:function(){return eW},_s:function(){return ex},bg:function(){return ej},cB:function(){return e$},cE:function(){return er},cO:function(){return eB},ch:function(){return eQ},cl:function(){return eh},d3:function(){return eZ},dg:function(){return eJ},di:function(){return ep},e7:function(){return eC},f9:function(){return ed},f_:function(){return eM},h6:function(){return eR},hJ:function(){return eK},hO:function(){return tr},iD:function(){return eu},iZ:function(){return et},ki:function(){return tu},lx:function(){return eI},n$:function(){return en},nu:function(){return ey},o4:function(){return eS},oX:function(){return e0},or:function(){return ei},pQ:function(){return e1},pU:function(){return e7},q4:function(){return tt},qJ:function(){return eH},qW:function(){return ec},r$:function(){return eG},r1:function(){return ek},sN:function(){return ta},sP:function(){return tn},sR:function(){return eY},sT:function(){return e2},sg:function(){return ew},t2:function(){return ti},vw:function(){return eV},w$:function(){return eD},wo:function(){return es},wr:function(){return e8},xI:function(){return eO},xM:function(){return eb},xZ:function(){return ev},xd:function(){return th},yR:function(){return e6},zR:function(){return to},z_:function(){return e4}});/*! @azure/msal-common v16.5.1 2026-04-21 */let et="msal.js.common",er="https://login.microsoftonline.com/common/",en="login.microsoftonline.com",ei="common",eo="adfs",es="dstsv2",el=`${er}discovery/instance?api-version=1.1&authorization_endpoint=`,ec=".ciamlogin.com",eu=".onmicrosoft.com",ed="|",eh="openid",ep="profile",ef="offline_access",eg="S256",em="application/x-www-form-urlencoded;charset=utf-8",ey="Not Available",ev="/",eb="http://169.254.169.254/metadata/instance/compute/location",eC="2020-06-01",ew=2e3,e_="TryAutoDetect",eS="login.microsoft.com",ek=["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],eA=240,eE="invalid_instance",eT=200,eI=400,eP=400,eO=499,eR=500,ex=599,eD={GET:"GET",POST:"POST"},eM=[eh,ep,ef],eN=[...eM,"email"],eL={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},eF={ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},eB={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},eU={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},ez={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},ej={CODE:"code",IDTOKEN_TOKEN:"id_token token",IDTOKEN_TOKEN_REFRESHTOKEN:"id_token token refresh_token"},eV={QUERY:"query",FRAGMENT:"fragment",FORM_POST:"form_post"},eH={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"ur
89n:ietf:params:oauth:grant-type:jwt-bearer"},eq="MSSTS",e$="ADFS",eK="Generic",eW="-",eG=".",eZ={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},eJ="appmetadata",eY="client_info",eQ="1",eX="authority-metadata",e0=86400,e1={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},e2=5,e4=330,e5=50,e6="server-telemetry",e3="|",e8=",",e7="1",e9="0",tt="unknown_error",tr={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},tn=60,ti=3600,to="throttling",ta="retry-after, h429",ts="invalid_grant",tl="client_mismatch",tc={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},tu={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},td={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},th={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},tp=300},85943:function(K,G,J){"use strict";J.d(G,{J1:function(){return setRequestState},Zq:function(){return parseRequestState}});var et=J(15806),er=J(73978),en=J(31184);/*! @azure/msal-common v16.5.1 2026-04-21 */function setRequestState(K,G,J){let ei=function(K,G){if(!K)throw(0,er.z)(en.QL);let J={id:K.createNewGuid()};G&&(J.meta=G);let et=JSON.stringify(J);return K.base64Encode(et)}(K,J);return G?`${ei}${et.f9}${G}`:ei}function parseRequestState(K,G){if(!K)throw(0,er.z)(en.QL);if(!G)throw(0,er.z)(en.r8);try{let J=G.split(et.f9),er=J[0],en=J.length>1?J.slice(1).join(et.f9):"",ei=K(er),eo=JSON.parse(ei);return{userRequestState:en||"",libraryState:eo}}catch(K){throw(0,er.z)(en.r8)}}},1639:function(K,G,J){"use strict";J.d(G,{x:function(){return StringUtils}});/*! @azure/msal-common v16.5.1 2026-04-21 */let StringUtils=class StringUtils{static isEmptyObj(K){if(K)try{let G=JSON.parse(K);return 0===Object.keys(G).length}catch(K){}return!0}static startsWith(K,G){return 0===K.indexOf(G)}static endsWith(K,G){return K.length>=G.length&&K.lastIndexOf(G)===K.length-G.length}static queryStringToObject(K){let G={},J=K.split("&"),decode=K=>decodeURIComponent(K.replace(/\+/g," "));return J.forEach(K=>{if(K.trim()){let[J,et]=K.split(/=(.+)/g,2);J&&et&&(G[decode(J)]=decode(et))}}),G}static trimArrayEntries(K){return K.map(K=>K.trim())}static removeEmptyStringsFromArray(K){return K.filter(K=>!!K)}static jsonParseHelper(K){try{return JSON.parse(K)}catch(K){return null}}}},30907:function(K,G,J){"use strict";function _arrayLikeToArray(K,G){(null==G||G>K.length)&&(G=K.length);for(var J=0,et=Array(G);J<G;J++)et[J]=K[J];return et}J.d(G,{Z:function(){return _arrayLikeToArray}})},15671:function(K,G,J){"use strict";function _classCallCheck(K,G){if(!(K instanceof G))throw TypeError("Cannot call a class as a function")}J.d(G,{Z:function(){return _classCallCheck}})},43144:function(K,G,J){"use strict";J.d(G,{Z:function(){return _createClass}});var et=J(83997);function _defineProperties(K,G){for(var J=0;J<G.length;J++){var er=G[J];er.enumerable=er.enumerable||!1,er.configurable=!0,"value"in er&&(er.writable=!0),Object.defineProperty(K,(0,et.Z)(er.key),er)}}function _createClass(K,G,J){return G&&_defineProperties(K.prototype,G),J&&_defineProperties(K,J),Object.defineProperty(K,"prototype",{writable:!1}),K}},4942:function(K,G,J){"use strict";J.d(G,{Z:function(){return _defineProperty}});var et=J(83997);function _defineProperty(K,G,J){return(G=(0,et.Z)(G))in K?Object.defineProperty(K,G,{value:J,enumerable:!0,configurable:!0,writable:!0}):K[G]=J,K}},87462:function(K,G,J){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)Object.prototype.hasOwnProperty.call(J,et)&&(K[et]=J[et])}return K}).apply(this,arguments)}J.d(G,{Z:function(){return _extends}})},60136:function(K,G,J){"use strict";J.d(G,{Z:function(){return _inherits}});var et=J(89611);function _inherits(K,G){if("function"!=typeof G&&null!==G)throw TypeError("Super expression must either be null or a function");K.prototype=Object.create(G&&G.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),Object.defineProperty(K,"prototype",{writable:!1}),G&&(0,et.Z)(K,G)}},91:function(K,G,J){"use strict";function _objectWithoutProperties(K,G){if(null==K)return{};var J,et,er=function(K,G){if(null==K)return{};var J,et,er={},en=Object.keys(K);for(et=0;et<en.length;et++)J=en[et],G.indexOf(J)>=0||(er[J]=K[J]);return er}(K,G);if(Object.getOwnPropertySymbols){var en=Object.getOwnPropertySymbols(K);for(et=0;et<en.length;et++)J=en[et],!(G.indexOf(J)>=0)&&Object.prototype.propertyIsEnumerable.call(K,J)&&(er[J]=K[J])}return er}J.d(G,{Z:function(){return _objectWithoutProperties}})},89611:function(K,G,J){"use strict";function _setPrototypeOf(K,G){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,G){return K.__proto__=G,K})(K,G)}J.d(G,{Z:function(){return _setPrototypeOf}})},86854:function(K,G,J){"use strict";J.d(G,{Z:function(){return _slicedToArray}});var et=J(40181);function _slicedToArray(K,G){return function(K){if(Array.isArray(K))return K}
89(K)||function(K,G){var J=null==K?null:"undefined"!=typeof Symbol&&K[Symbol.iterator]||K["@@iterator"];if(null!=J){var et,er,en,ei,eo=[],es=!0,el=!1;try{if(en=(J=J.call(K)).next,0===G){if(Object(J)!==J)return;es=!1}else for(;!(es=(et=en.call(J)).done)&&(eo.push(et.value),eo.length!==G);es=!0);}catch(K){el=!0,er=K}finally{try{if(!es&&null!=J.return&&(ei=J.return(),Object(ei)!==ei))return}finally{if(el)throw er}}return eo}}(K,G)||(0,et.Z)(K,G)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},30168:function(K,G,J){"use strict";function _taggedTemplateLiteral(K,G){return G||(G=K.slice(0)),Object.freeze(Object.defineProperties(K,{raw:{value:Object.freeze(G)}}))}J.d(G,{Z:function(){return _taggedTemplateLiteral}})},41451:function(K,G,J){"use strict";J.d(G,{Z:function(){return _toConsumableArray}});var et=J(30907),er=J(40181);function _toConsumableArray(K){return function(K){if(Array.isArray(K))return(0,et.Z)(K)}(K)||function(K){if("undefined"!=typeof Symbol&&null!=K[Symbol.iterator]||null!=K["@@iterator"])return Array.from(K)}(K)||(0,er.Z)(K)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},83997:function(K,G,J){"use strict";J.d(G,{Z:function(){return _toPropertyKey}});var et=J(71002);function _toPropertyKey(K){var G=function(K,G){if("object"!==(0,et.Z)(K)||null===K)return K;var J=K[Symbol.toPrimitive];if(void 0!==J){var er=J.call(K,G||"default");if("object"!==(0,et.Z)(er))return er;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===G?String:Number)(K)}(K,"string");return"symbol"===(0,et.Z)(G)?G:String(G)}},71002:function(K,G,J){"use strict";function _typeof(K){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(K)}J.d(G,{Z:function(){return _typeof}})},40181:function(K,G,J){"use strict";J.d(G,{Z:function(){return _unsupportedIterableToArray}});var et=J(30907);function _unsupportedIterableToArray(K,G){if(K){if("string"==typeof K)return(0,et.Z)(K,G);var J=Object.prototype.toString.call(K).slice(8,-1);if("Object"===J&&K.constructor&&(J=K.constructor.name),"Map"===J||"Set"===J)return Array.from(K);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return(0,et.Z)(K,G)}}},47456:function(K,G,J){"use strict";let et,er;J.d(G,{Jn:function(){return eA},qX:function(){return _getProvider},Xd:function(){return _registerComponent},Mq:function(){return getApp},ZF:function(){return initializeApp},KN:function(){return registerVersion}});var en,ei=J(8463),eo=J(53333),es=J(74444);let instanceOfAny=(K,G)=>G.some(G=>K instanceof G),el=new WeakMap,ec=new WeakMap,eu=new WeakMap,ed=new WeakMap,eh=new WeakMap,ep={get(K,G,J){if(K instanceof IDBTransaction){if("done"===G)return ec.get(K);if("objectStoreNames"===G)return K.objectStoreNames||eu.get(K);if("store"===G)return J.objectStoreNames[1]?void 0:J.objectStore(J.objectStoreNames[0])}return wrap_idb_value_wrap(K[G])},set:(K,G,J)=>(K[G]=J,!0),has:(K,G)=>K instanceof IDBTransaction&&("done"===G||"store"===G)||G in K};function wrap_idb_value_wrap(K){var G;if(K instanceof IDBRequest)return function(K){let G=new Promise((G,J)=>{let unlisten=()=>{K.removeEventListener("success",success),K.removeEventListener("error",error)},success=()=>{G(wrap_idb_value_wrap(K.result)),unlisten()},error=()=>{J(K.error),unlisten()};K.addEventListener("success",success),K.addEventListener("error",error)});return G.then(G=>{G instanceof IDBCursor&&el.set(G,K)}).catch(()=>{}),eh.set(G,K),G}(K);if(ed.has(K))return ed.get(K);let J="function"==typeof(G=K)?G!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(er||(er=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(G)?function(...K){return G.apply(unwrap(this),K),wrap_idb_value_wrap(el.get(this))}:function(...K){return wrap_idb_value_wrap(G.apply(unwrap(this),K))}:function(K,...J){let et=G.call(unwrap(this),K,...J);return eu.set(et,K.sort?K.sort():[K]),wrap_idb_value_wrap(et)}:(G instanceof IDBTransaction&&function(K){if(ec.has(K))return;let G=new Promise((G,J)=>{let unlisten=()=>{K.removeEventListener("complete",complete),K.removeEventListener("error",error),K.removeEventListener("abort",error)},complete=()=>{G(),unlisten()},error=()=>{J(K.error||new DOMException("AbortError","AbortError")),unlisten()};K.addEventListener("complete",complete),K.addEventListener("error",error),K.addEventListener("abort",error)});ec.set(K,G)}(G),instanceOfAny(G,et||(et=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(G,ep):G;return J!==K&&(ed.set(K,J),eh.set(J,K)),J}let unwrap=K=>eh.get(K),ef=["get","getKey","getAll","getAllKeys","count"],eg=["put","add","delete","clear"],em=new Map;function getMethod(K,G){if(!(K instanceof IDBDatabase&&!(G in K)&&"string"==typeof G))return;if(em.get(G))return em.get(G);let J=G.replace(/FromIndex$/,""),et=G!==J,er=eg.includes(J);
89if(!(J in(et?IDBIndex:IDBObjectStore).prototype)||!(er||ef.includes(J)))return;let method=async function(K,...G){let en=this.transaction(K,er?"readwrite":"readonly"),ei=en.store;return et&&(ei=ei.index(G.shift())),(await Promise.all([ei[J](...G),er&&en.done]))[0]};return em.set(G,method),method}ep={...en=ep,get:(K,G,J)=>getMethod(K,G)||en.get(K,G,J),has:(K,G)=>!!getMethod(K,G)||en.has(K,G)};/**
90 * @license
91 * Copyright 2019 Google LLC
92 *
93 * Licensed under the Apache License, Version 2.0 (the "License");
94 * you may not use this file except in compliance with the License.
95 * You may obtain a copy of the License at
96 *
97 *   http://www.apache.org/licenses/LICENSE-2.0
98 *
99 * Unless required by applicable law or agreed to in writing, software
100 * distributed under the License is distributed on an "AS IS" BASIS,
101 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102 * See the License for the specific language governing permissions and
103 * limitations under the License.
104 */let PlatformLoggerServiceImpl=class PlatformLoggerServiceImpl{constructor(K){this.container=K}getPlatformInfoString(){let K=this.container.getProviders();return K.map(K=>{if(!function(K){let G=K.getComponent();return(null==G?void 0:G.type)==="VERSION"}(K))return null;{let G=K.getImmediate();return`${G.library}/${G.version}`}}).filter(K=>K).join(" ")}};let ey="@firebase/app",ev="0.9.19",eb=new eo.Yd("@firebase/app"),eC="[DEFAULT]",ew={[ey]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},e_=new Map,eS=new Map;function _registerComponent(K){let G=K.name;if(eS.has(G))return eb.debug(`There were multiple attempts to register component ${G}.`),!1;
104for(let J of(eS.set(G,K),e_.values()))!function(K,G){try{K.container.addComponent(G)}catch(J){eb.debug(`Component ${G.name} failed to register with FirebaseApp ${K.name}`,J)}}(J,K);return!0}function _getProvider(K,G){let J=K.container.getProvider("heartbeat").getImmediate({optional:!0});return J&&J.triggerHeartbeat(),K.container.getProvider(G)}let ek=new es.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});/**
105 * @license
106 * Copyright 2019 Google LLC
107 *
108 * Licensed under the Apache License, Version 2.0 (the "License");
109 * you may not use this file except in compliance with the License.
110 * You may obtain a copy of the License at
111 *
112 *   http://www.apache.org/licenses/LICENSE-2.0
113 *
114 * Unless required by applicable law or agreed to in writing, software
115 * distributed under the License is distributed on an "AS IS" BASIS,
116 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
117 * See the License for the specific language governing permissions and
118 * limitations under the License.
119 */let FirebaseAppImpl=class FirebaseAppImpl{constructor(K,G,J){this._isDeleted=!1,this._options=Object.assign({},K),this._config=Object.assign({},G),this._name=G.name,this._automaticDataCollectionEnabled=G.automaticDataCollectionEnabled,this._container=J,this.container.addComponent(new ei.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(K){this.checkDestroyed(),this._automaticDataCollectionEnabled=K}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(K){this._isDeleted=K}checkDestroyed(){if(this.isDeleted)throw ek.create("app-deleted",{appName:this._name})}};/**
120 * @license
121 * Copyright 2019 Google LLC
122 *
123 * Licensed under the Apache License, Version 2.0 (the "License");
124 * you may not use this file except in compliance with the License.
125 * You may obtain a copy of the License at
126 *
127 *   http://www.apache.org/licenses/LICENSE-2.0
128 *
129 * Unless required by applicable law or agreed to in writing, software
130 * distributed under the License is distributed on an "AS IS" BASIS,
131 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132 * See the License for the specific language governing permissions and
133 * limitations under the License.
134 */let eA="10.4.0";function initializeApp(K,G={}){let J=K;if("object"!=typeof G){let K=G;G={name:K}}let et=Object.assign({name:eC,automaticDataCollectionEnabled:!1},G),er=et.name;if("string"!=typeof er||!er)throw ek.create("bad-app-name",{appName:String(er)});if(J||(J=(0,es.aH)()),!J)throw ek.create("no-options");let en=e_.get(er);if(en){if((0,es.vZ)(J,en.options)&&(0,es.vZ)(et,en.config))return en;throw ek.create("duplicate-app",{appName:er})}let eo=new ei.H0(er);for(let K of eS.values())eo.addComponent(K);let el=new FirebaseAppImpl(J,et,eo);return e_.set(er,el),el}function getApp(K=eC){let G=e_.get(K);if(!G&&K===eC&&(0,es.aH)())return initializeApp();if(!G)throw ek.create("no-app",{appName:K});return G}function registerVersion(K,G,J){var et;let er=null!==(et=ew[K])&&void 0!==et?et:K;J&&(er+=`-${J}`);let en=er.match(/\s|\//),eo=G.match(/\s|\//);if(en||eo){let K=[`Unable to register library "${er}" with version "${G}":`];en&&K.push(`library name "${er}" contains illegal characters (whitespace or "/")`),en&&eo&&K.push("and"),eo&&K.push(`version name "${G}" contains illegal characters (whitespace or "/")`),eb.warn(K.join(" "));return}_registerComponent(new ei.wA(`${er}-version`,()=>({library:er,version:G}),"VERSION"))}let eE="firebase-heartbeat-store",eT=null;function getDbPromise(){return eT||(eT=(function(K,G,{blocked:J,upgrade:et,blocking:er,terminated:en}={}){let ei=indexedDB.open(K,1),eo=wrap_idb_value_wrap(ei);return et&&ei.addEventListener("upgradeneeded",K=>{et(wrap_idb_value_wrap(ei.result),K.oldVersion,K.newVersion,wrap_idb_value_wrap(ei.transaction),K)}),J&&ei.addEventListener("blocked",K=>J(K.oldVersion,K.newVersion,K)),eo.then(K=>{en&&K.addEventListener("close",()=>en()),er&&K.addEventListener("versionchange",K=>er(K.oldVersion,K.newVersion,K))}).catch(()=>{}),eo})("firebase-heartbeat-database",0,{upgrade:(K,G)=>{0===G&&K.createObjectStore(eE)}}).catch(K=>{throw ek.create("idb-open",{originalErrorMessage:K.message})})),eT}async function readHeartbeatsFromIndexedDB(K){try{let G=await getDbPromise(),J=await G.transaction(eE).objectStore(eE).get(computeKey(K));return J}
134catch(K){if(K instanceof es.ZR)eb.warn(K.message);else{let G=ek.create("idb-get",{originalErrorMessage:null==K?void 0:K.message});eb.warn(G.message)}}}async function writeHeartbeatsToIndexedDB(K,G){try{let J=await getDbPromise(),et=J.transaction(eE,"readwrite"),er=et.objectStore(eE);await er.put(G,computeKey(K)),await et.done}catch(K){if(K instanceof es.ZR)eb.warn(K.message);else{let G=ek.create("idb-set",{originalErrorMessage:null==K?void 0:K.message});eb.warn(G.message)}}}function computeKey(K){return`${K.name}!${K.options.appId}`}let HeartbeatServiceImpl=class HeartbeatServiceImpl{constructor(K){this.container=K,this._heartbeatsCache=null;let G=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(G),this._heartbeatsCachePromise=this._storage.read().then(K=>(this._heartbeatsCache=K,K))}async triggerHeartbeat(){let K=this.container.getProvider("platform-logger").getImmediate(),G=K.getPlatformInfoString(),J=getUTCDateString();return(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate===J||this._heartbeatsCache.heartbeats.some(K=>K.date===J))?void 0:(this._heartbeatsCache.heartbeats.push({date:J,agent:G}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(K=>{let G=new Date(K.date).valueOf(),J=Date.now();return J-G<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let K=getUTCDateString(),{heartbeatsToSend:G,unsentEntries:J}=function(K,G=1024){let J=[],et=K.slice();for(let er of K){let K=J.find(K=>K.agent===er.agent);if(K){if(K.dates.push(er.date),countBytes(J)>G){K.dates.pop();break}}else if(J.push({agent:er.agent,dates:[er.date]}),countBytes(J)>G){J.pop();break}et=et.slice(1)}return{heartbeatsToSend:J,unsentEntries:et}}(this._heartbeatsCache.heartbeats),et=(0,es.L)(JSON.stringify({version:2,heartbeats:G}));return this._heartbeatsCache.lastSentHeartbeatDate=K,J.length>0?(this._heartbeatsCache.heartbeats=J,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),et}};function getUTCDateString(){let K=new Date;return K.toISOString().substring(0,10)}let HeartbeatStorageImpl=class HeartbeatStorageImpl{constructor(K){this.app=K,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,es.hl)()&&(0,es.eu)().then(()=>!0).catch(()=>!1)}async read(){let K=await this._canUseIndexedDBPromise;if(!K)return{heartbeats:[]};{let K=await readHeartbeatsFromIndexedDB(this.app);return K||{heartbeats:[]}}}async overwrite(K){var G;let J=await this._canUseIndexedDBPromise;if(J){let J=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(G=K.lastSentHeartbeatDate)&&void 0!==G?G:J.lastSentHeartbeatDate,heartbeats:K.heartbeats})}}async add(K){var G;let J=await this._canUseIndexedDBPromise;if(J){let J=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(G=K.lastSentHeartbeatDate)&&void 0!==G?G:J.lastSentHeartbeatDate,heartbeats:[...J.heartbeats,...K.heartbeats]})}}};function countBytes(K){return(0,es.L)(JSON.stringify({version:2,heartbeats:K})).length}_registerComponent(new ei.wA("platform-logger",K=>new PlatformLoggerServiceImpl(K),"PRIVATE")),_registerComponent(new ei.wA("heartbeat",K=>new HeartbeatServiceImpl(K),"PRIVATE")),registerVersion(ey,ev,""),registerVersion(ey,ev,"esm2017"),registerVersion("fire-js","")},8463:function(K,G,J){"use strict";J.d(G,{H0:function(){return ComponentContainer},wA:function(){return Component}});var et=J(74444);let Component=class Component{constructor(K,G,J){this.name=K,this.instanceFactory=G,this.type=J,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(K){return this.instantiationMode=K,this}setMultipleInstances(K){return this.multipleInstances=K,this}setServiceProps(K){return this.serviceProps=K,this}setInstanceCreatedCallback(K){return this.onInstanceCreated=K,this}};/**
135 * @license
136 * Copyright 2019 Google LLC
137 *
138 * Licensed under the Apache License, Version 2.0 (the "License");
139 * you may not use this file except in compliance with the License.
140 * You may obtain a copy of the License at
141 *
142 *   http://www.apache.org/licenses/LICENSE-2.0
143 *
144 * Unless required by applicable law or agreed to in writing, software
145 * distributed under the License is distributed on an "AS IS" BASIS,
146 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
147 * See the License for the specific language governing permissions and
148 * limitations under the License.
149 */let er="[DEFAULT]";/**
150 * @license
151 * Copyright 2019 Google LLC
152 *
153 * Licensed under the Apache License, Version 2.0 (the "License");
154 * you may not use this file except in compliance with the License.
155 * You may obtain a copy of the License at
156 *
157 *   http://www.apache.org/licenses/LICENSE-2.0
158 *
159 * Unless required by applicable law or agreed to in writing, software
160 * distributed under the License is distributed on an "AS IS" BASIS,
161 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
162 * See the License for the specific language governing permissions and
163 * limitations under the License.
164 */let Provider=class Provider{constructor(K,G){this.name=K,this.container=G,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(K){let G=this.normalizeInstanceIdentifier(K);if(!this.instancesDeferred.has(G)){let K=new et.BH;if(this.instancesDeferred.set(G,K),this.isInitialized(G)||this.shouldAutoInitialize())try{let J=this.getOrInitializeService({instanceIdentifier:G});J&&K.resolve(J)}catch(K){}}return this.instancesDeferred.get(G).promise}getImmediate(K){var G;let J=this.normalizeInstanceIdentifier(null==K?void 0:K.identifier),et=null!==(G=null==K?void 0:K.optional)&&void 0!==G&&G;if(this.isInitialized(J)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:J})}catch(K){if(et)return null;throw K}else{if(et)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(K){if(K.name!==this.name)throw Error(`Mismatching Component ${K.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=K,this.shouldAutoInitialize()){if("EAGER"===K.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:er})}catch(K){}for(let[K,G]of this.instancesDeferred.entries()){let J=this.normalizeInstanceIdentifier(K);try{let K=this.getOrInitializeService({instanceIdentifier:J});G.resolve(K)}catch(K){}}}}clearInstance(K=er){this.instancesDeferred.delete(K),this.instancesOptions.delete(K),this.instances.delete(K)}async delete(){let K=Array.from(this.instances.values());await Promise.all([...K.filter(K=>"INTERNAL"in K).map(K=>K.INTERNAL.delete()),...K.filter(K=>"_delete"in K).map(K=>K._delete())])}isComponentSet(){return null!=this.component}isInitialized(K=er){return this.instances.has(K)}getOptions(K=er){return this.instancesOptions.get(K)||{}}initialize(K={}){let{options:G={}}=K,J=this.normalizeInstanceIdentifier(K.instanceIdentifier);if(this.isInitialized(J))throw Error(`${this.name}(${J}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let et=this.getOrInitializeService({instanceIdentifier:J,options:G});for(let[K,G]of this.instancesDeferred.entries()){let er=this.normalizeInstanceIdentifier(K);J===er&&G.resolve(et)}return et}onInit(K,G){var J;let et=this.normalizeInstanceIdentifier(G),er=null!==(J=this.onInitCallbacks.get(et))&&void 0!==J?J:new Set;er.add(K),this.onInitCallbacks.set(et,er);let en=this.instances.get(et);return en&&K(en,et),()=>{er.delete(K)}}invokeOnInitCallbacks(K,G){let J=this.onInitCallbacks.get(G);if(J)for(let et of J)try{et(K,G)}catch(K){}}getOrInitializeService({instanceIdentifier:K,options:G={}}){let J=this.instances.get(K);if(!J&&this.component&&(J=this.component.instanceFactory(this.container,{instanceIdentifier:K===er?void 0:K,options:G}),this.instances.set(K,J),this.instancesOptions.set(K,G),this.invokeOnInitCallbacks(J,K),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,K,J)}catch(K){}return J||null}normalizeInstanceIdentifier(K=er){return this.component?this.component.multipleInstances?K:er:K}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}};/**
165 * @license
166 * Copyright 2019 Google LLC
167 *
168 * Licensed under the Apache License, Version 2.0 (the "License");
169 * you may not use this file except in compliance with the License.
170 * You may obtain a copy of the License at
171 *
172 *   http://www.apache.org/licenses/LICENSE-2.0
173 *
174 * Unless required by applicable law or agreed to in writing, software
175 * distributed under the License is distributed on an "AS IS" BASIS,
176 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
177 * See the License for the specific language governing permissions and
178 * limitations under the License.
179 */let ComponentContainer=class ComponentContainer{constructor(K){this.name=K,this.providers=new Map}addComponent(K){let G=this.getProvider(K.name);if(G.isComponentSet())throw Error(`Component ${K.name} has already been registered with ${this.name}`);G.setComponent(K)}addOrOverwriteComponent(K){let G=this.getProvider(K.name);G.isComponentSet()&&this.providers.delete(K.name),this.addComponent(K)}getProvider(K){if(this.providers.has(K))return this.providers.get(K);let G=new Provider(K,this);return this.providers.set(K,G),G}getProviders(){return Array.from(this.providers.values())}}},53333:function(K,G,J){"use strict";var et,er;J.d(G,{Yd:function(){return Logger},in:function(){return et}});/**
180 * @license
181 * Copyright 2017 Google LLC
182 *
183 * Licensed under the Apache License, Version 2.0 (the "License");
184 * you may not use this file except in compliance with the License.
185 * You may obtain a copy of the License at
186 *
187 *   http://www.apache.org/licenses/LICENSE-2.0
188 *
189 * Unless required by applicable law or agreed to in writing, software
190 * distributed under the License is distributed on an "AS IS" BASIS,
191 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
192 * See the License for the specific language governing permissions and
193 * limitations under the License.
194 */let en=[];(er=et||(et={}))[er.DEBUG=0]="DEBUG",er[er.VERBOSE=1]="VERBOSE",er[er.INFO=2]="INFO",er[er.WARN=3]="WARN",er[er.ERROR=4]="ERROR",er[er.SILENT=5]="SILENT";let ei={debug:et.DEBUG,verbose:et.VERBOSE,info:et.INFO,warn:et.WARN,error:et.ERROR,silent:et.SILENT},eo=et.INFO,es={[et.DEBUG]:"log",[et.VERBOSE]:"log",[et.INFO]:"info",[et.WARN]:"warn",[et.ERROR]:"error"},defaultLogHandler=(K,G,...J)=>{if(G<K.logLevel)return;let et=new Date().toISOString(),er=es[G];if(er)console[er](`[${et}]  ${K.name}:`,...J);else throw Error(`Attempted to log a message with an invalid logType (value: ${G})`)};let Logger=class Logger{constructor(K){this.name=K,this._logLevel=eo,this._logHandler=defaultLogHandler,this._userLogHandler=null,en.push(this)}get logLevel(){return this._logLevel}set logLevel(K){if(!(K in et))throw TypeError(`Invalid value "${K}" assigned to \`logLevel\``);this._logLevel=K}setLogLevel(K){this._logLevel="string"==typeof K?ei[K]:K}get logHandler(){return this._logHandler}set logHandler(K){if("function"!=typeof K)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=K}get userLogHandler(){return this._userLogHandler}set userLogHandler(K){this._userLogHandler=K}debug(...K){this._userLogHandler&&this._userLogHandler(this,et.DEBUG,...K),this._logHandler(this,et.DEBUG,...K)}log(...K){this._userLogHandler&&this._userLogHandler(this,et.VERBOSE,...K),this._logHandler(this,et.VERBOSE,...K)}info(...K){this._userLogHandler&&this._userLogHandler(this,et.INFO,...K),this._logHandler(this,et.INFO,...K)}warn(...K){this._userLogHandler&&this._userLogHandler(this,et.WARN,...K),this._logHandler(this,et.WARN,...K)}error(...K){this._userLogHandler&&this._userLogHandler(this,et.ERROR,...K),this._logHandler(this,et.ERROR,...K)}}},96654:function(K,G,J){"use strict";function __awaiter(K,G,J,et){return new(J||(J=Promise))(function(er,en){function fulfilled(K){try{step(et.next(K))}catch(K){en(K)}}function rejected(K){try{step(et.throw(K))}catch(K){en(K)}}function step(K){var G;K.done?er(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})}J.d(G,{v:function(){return loadScript}}),"function"==typeof SuppressedError&&SuppressedError;let et={dev:".dev",staging:".staging",sandbox:".sandbox",prod:""},getUrl=(K={})=>{var G;let{env:J="prod",version:er="v1.3"}=K,en=null!==(G=et[J])&&void 0!==G?G:"",ei=`https://sdk-web${en}.y.uno/${er}/main.js`;return ei},er="yuno-script",injectScript=K=>__awaiter(void 0,[K],void 0,function*({url:K}){if(document.getElementById(er))return!!window.Yuno||new Promise((K,G)=>{window.addEventListener("yuno-sdk-ready",()=>{K(!0)}),window.addEventListener("yuno-sdk-error",K=>{G(K.detail)})});let G=document.getElementsByTagName("head")[0],J=document.createElement("script");return J.id=er,J.src=K,J.async=!0,J.defer=!0,new Promise((et,er)=>{window.addEventListener("yuno-sdk-ready",()=>{et(!0)}),J.onerror=G=>{let J=new CustomEvent("yuno-sdk-error",{detail:G});window.dispatchEvent(J),er(Error(`Failed to load script: ${K} - ${G}`))},G.appendChild(J)})}),loadScript=K=>__awaiter(void 0,void 0,void 0,function*(){let G=getUrl(K);return yield injectScript({url:G}),window.Yuno})},5121:function(K,G,J){"use strict";J.d(G,{Z:function(){return e3}});var et,er,en,ei={};function bind(K,G){return function(){return K.apply(G,arguments)}}
194J.r(ei),J.d(ei,{hasBrowserEnv:function(){return ez},hasStandardBrowserEnv:function(){return ej},hasStandardBrowserWebWorkerEnv:function(){return eV}});let{toString:eo}=Object.prototype,{getPrototypeOf:es}=Object,el=(et=Object.create(null),K=>{let G=eo.call(K);return et[G]||(et[G]=G.slice(8,-1).toLowerCase())}),kindOfTest=K=>(K=K.toLowerCase(),G=>el(G)===K),typeOfTest=K=>G=>typeof G===K,{isArray:ec}=Array,eu=typeOfTest("undefined"),ed=kindOfTest("ArrayBuffer"),eh=typeOfTest("string"),ep=typeOfTest("function"),ef=typeOfTest("number"),isObject=K=>null!==K&&"object"==typeof K,isPlainObject=K=>{if("object"!==el(K))return!1;let G=es(K);return(null===G||G===Object.prototype||null===Object.getPrototypeOf(G))&&!(Symbol.toStringTag in K)&&!(Symbol.iterator in K)},eg=kindOfTest("Date"),em=kindOfTest("File"),ey=kindOfTest("Blob"),ev=kindOfTest("FileList"),eb=kindOfTest("URLSearchParams");function forEach(K,G,{allOwnKeys:J=!1}={}){let et,er;if(null!=K){if("object"!=typeof K&&(K=[K]),ec(K))for(et=0,er=K.length;et<er;et++)G.call(null,K[et],et,K);else{let er;let en=J?Object.getOwnPropertyNames(K):Object.keys(K),ei=en.length;for(et=0;et<ei;et++)er=en[et],G.call(null,K[er],er,K)}}}function findKey(K,G){let J;G=G.toLowerCase();let et=Object.keys(K),er=et.length;for(;er-- >0;)if(G===(J=et[er]).toLowerCase())return J;return null}let eC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=K=>!eu(K)&&K!==eC,ew=(er="undefined"!=typeof Uint8Array&&es(Uint8Array),K=>er&&K instanceof er),e_=kindOfTest("HTMLFormElement"),eS=(({hasOwnProperty:K})=>(G,J)=>K.call(G,J))(Object.prototype),ek=kindOfTest("RegExp"),reduceDescriptors=(K,G)=>{let J=Object.getOwnPropertyDescriptors(K),et={};forEach(J,(J,er)=>{let en;!1!==(en=G(J,er,K))&&(et[er]=en||J)}),Object.defineProperties(K,et)},eA="abcdefghijklmnopqrstuvwxyz",eE="0123456789",eT={DIGIT:eE,ALPHA:eA,ALPHA_DIGIT:eA+eA.toUpperCase()+eE},eI=kindOfTest("AsyncFunction");var eP={isArray:ec,isArrayBuffer:ed,isBuffer:function(K){return null!==K&&!eu(K)&&null!==K.constructor&&!eu(K.constructor)&&ep(K.constructor.isBuffer)&&K.constructor.isBuffer(K)},isFormData:K=>{let G;return K&&("function"==typeof FormData&&K instanceof FormData||ep(K.append)&&("formdata"===(G=el(K))||"object"===G&&ep(K.toString)&&"[object FormData]"===K.toString()))},isArrayBufferView:function(K){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(K):K&&K.buffer&&ed(K.buffer)},isString:eh,isNumber:ef,isBoolean:K=>!0===K||!1===K,isObject,isPlainObject,isUndefined:eu,isDate:eg,isFile:em,isBlob:ey,isRegExp:ek,isFunction:ep,isStream:K=>isObject(K)&&ep(K.pipe),isURLSearchParams:eb,isTypedArray:ew,isFileList:ev,forEach,merge:function merge(){let{caseless:K}=isContextDefined(this)&&this||{},G={},assignValue=(J,et)=>{let er=K&&findKey(G,et)||et;isPlainObject(G[er])&&isPlainObject(J)?G[er]=merge(G[er],J):isPlainObject(J)?G[er]=merge({},J):ec(J)?G[er]=J.slice():G[er]=J};for(let K=0,G=arguments.length;K<G;K++)arguments[K]&&forEach(arguments[K],assignValue);return G},extend:(K,G,J,{allOwnKeys:et}={})=>(forEach(G,(G,et)=>{J&&ep(G)?K[et]=bind(G,J):K[et]=G},{allOwnKeys:et}),K),trim:K=>K.trim?K.trim():K.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:K=>(65279===K.charCodeAt(0)&&(K=K.slice(1)),K),inherits:(K,G,J,et)=>{K.prototype=Object.create(G.prototype,et),K.prototype.constructor=K,Object.defineProperty(K,"super",{value:G.prototype}),J&&Object.assign(K.prototype,J)},toFlatObject:(K,G,J,et)=>{let er,en,ei;let eo={};if(G=G||{},null==K)return G;do{for(en=(er=Object.getOwnPropertyNames(K)).length;en-- >0;)ei=er[en],(!et||et(ei,K,G))&&!eo[ei]&&(G[ei]=K[ei],eo[ei]=!0);K=!1!==J&&es(K)}while(K&&(!J||J(K,G))&&K!==Object.prototype);return G},kindOf:el,kindOfTest,endsWith:(K,G,J)=>{K=String(K),(void 0===J||J>K.length)&&(J=K.length),J-=G.length;let et=K.indexOf(G,J);return -1!==et&&et===J},toArray:K=>{if(!K)return null;if(ec(K))return K;let G=K.length;if(!ef(G))return null;let J=Array(G);for(;G-- >0;)J[G]=K[G];return J},forEachEntry:(K,G)=>{let J;let et=K&&K[Symbol.iterator],er=et.call(K);for(;(J=er.next())&&!J.done;){let et=J.value;G.call(K,et[0],et[1])}},matchAll:(K,G)=>{let J;let et=[];for(;null!==(J=K.exec(G));)et.push(J);return et},isHTMLForm:e_,hasOwnProperty:eS,hasOwnProp:eS,reduceDescriptors,freezeMethods:K=>
194{reduceDescriptors(K,(G,J)=>{if(ep(K)&&-1!==["arguments","caller","callee"].indexOf(J))return!1;let et=K[J];if(ep(et)){if(G.enumerable=!1,"writable"in G){G.writable=!1;return}G.set||(G.set=()=>{throw Error("Can not rewrite read-only method '"+J+"'")})}})},toObjectSet:(K,G)=>{let J={};return(K=>{K.forEach(K=>{J[K]=!0})})(ec(K)?K:String(K).split(G)),J},toCamelCase:K=>K.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(K,G,J){return G.toUpperCase()+J}),noop:()=>{},toFiniteNumber:(K,G)=>Number.isFinite(K=+K)?K:G,findKey,global:eC,isContextDefined,ALPHABET:eT,generateString:(K=16,G=eT.ALPHA_DIGIT)=>{let J="",{length:et}=G;for(;K--;)J+=G[Math.random()*et|0];return J},isSpecCompliantForm:function(K){return!!(K&&ep(K.append)&&"FormData"===K[Symbol.toStringTag]&&K[Symbol.iterator])},toJSONObject:K=>{let G=Array(10),visit=(K,J)=>{if(isObject(K)){if(G.indexOf(K)>=0)return;if(!("toJSON"in K)){G[J]=K;let et=ec(K)?[]:{};return forEach(K,(K,G)=>{let er=visit(K,J+1);eu(er)||(et[G]=er)}),G[J]=void 0,et}}return K};return visit(K,0)},isAsyncFn:eI,isThenable:K=>K&&(isObject(K)||ep(K))&&ep(K.then)&&ep(K.catch)};function AxiosError(K,G,J,et,er){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=K,this.name="AxiosError",G&&(this.code=G),J&&(this.config=J),et&&(this.request=et),er&&(this.response=er)}eP.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eP.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let eO=AxiosError.prototype,eR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(K=>{eR[K]={value:K}}),Object.defineProperties(AxiosError,eR),Object.defineProperty(eO,"isAxiosError",{value:!0}),AxiosError.from=(K,G,J,et,er,en)=>{let ei=Object.create(eO);return eP.toFlatObject(K,ei,function(K){return K!==Error.prototype},K=>"isAxiosError"!==K),AxiosError.call(ei,K.message,G,J,et,er),ei.cause=K,ei.name=K.name,en&&Object.assign(ei,en),ei};var ex=J(48764).lW;function isVisitable(K){return eP.isPlainObject(K)||eP.isArray(K)}function removeBrackets(K){return eP.endsWith(K,"[]")?K.slice(0,-2):K}function renderKey(K,G,J){return K?K.concat(G).map(function(K,G){return K=removeBrackets(K),!J&&G?"["+K+"]":K}).join(J?".":""):G}let eD=eP.toFlatObject(eP,{},null,function(K){return/^is[A-Z]/.test(K)});var helpers_toFormData=function(K,G,J){if(!eP.isObject(K))throw TypeError("target must be an object");G=G||new FormData,J=eP.toFlatObject(J,{metaTokens:!0,dots:!1,indexes:!1},!1,function(K,G){return!eP.isUndefined(G[K])});let et=J.metaTokens,er=J.visitor||defaultVisitor,en=J.dots,ei=J.indexes,eo=J.Blob||"undefined"!=typeof Blob&&Blob,es=eo&&eP.isSpecCompliantForm(G);if(!eP.isFunction(er))throw TypeError("visitor must be a function");function convertValue(K){if(null===K)return"";if(eP.isDate(K))return K.toISOString();if(!es&&eP.isBlob(K))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return eP.isArrayBuffer(K)||eP.isTypedArray(K)?es&&"function"==typeof Blob?new Blob([K]):ex.from(K):K}function defaultVisitor(K,J,er){let eo=K;if(K&&!er&&"object"==typeof K){if(eP.endsWith(J,"{}"))J=et?J:J.slice(0,-2),K=JSON.stringify(K);else{var es;if(eP.isArray(K)&&(es=K,eP.isArray(es)&&!es.some(isVisitable))||(eP.isFileList(K)||eP.endsWith(J,"[]"))&&(eo=eP.toArray(K)))return J=removeBrackets(J),eo.forEach(function(K,et){eP.isUndefined(K)||null===K||G.append(!0===ei?renderKey([J],et,en):null===ei?J:J+"[]",convertValue(K))}),!1}}return!!isVisitable(K)||(G.append(renderKey(er,J,en),convertValue(K)),!1)}let el=[],ec=Object.assign(eD,{defaultVisitor,convertValue,isVisitable});if(!eP.isObject(K))throw TypeError("data must be an object");return!function build(K,J){if(!eP.isUndefined(K)){if(-1!==el.indexOf(K))throw Error("Circular reference detected in "+J.join("."));el.push(K),eP.forEach(K,function(K,et){let en=!(eP.isUndefined(K)||null===K)&&er.call(G,K,eP.isString(et)?et.trim():et,J,ec);!0===en&&build(K,J?J.concat(et):[et])}),el.pop()}}(K),G};
194function encode(K){let G={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(K).replace(/[!'()~]|%20|%00/g,function(K){return G[K]})}function AxiosURLSearchParams(K,G){this._pairs=[],K&&helpers_toFormData(K,this,G)}let eM=AxiosURLSearchParams.prototype;function buildURL_encode(K){return encodeURIComponent(K).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(K,G,J){let et;if(!G)return K;let er=J&&J.encode||buildURL_encode,en=J&&J.serialize;if(et=en?en(G,J):eP.isURLSearchParams(G)?G.toString():new AxiosURLSearchParams(G,J).toString(er)){let G=K.indexOf("#");-1!==G&&(K=K.slice(0,G)),K+=(-1===K.indexOf("?")?"?":"&")+et}return K}eM.append=function(K,G){this._pairs.push([K,G])},eM.toString=function(K){let G=K?function(G){return K.call(this,G,encode)}:encode;return this._pairs.map(function(K){return G(K[0])+"="+G(K[1])},"").join("&")};var eN=class{constructor(){this.handlers=[]}use(K,G,J){return this.handlers.push({fulfilled:K,rejected:G,synchronous:!!J&&J.synchronous,runWhen:J?J.runWhen:null}),this.handlers.length-1}eject(K){this.handlers[K]&&(this.handlers[K]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(K){eP.forEach(this.handlers,function(G){null!==G&&K(G)})}},eL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eF="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,eB="undefined"!=typeof FormData?FormData:null,eU="undefined"!=typeof Blob?Blob:null;let ez="undefined"!=typeof window&&"undefined"!=typeof document,ej=(en="undefined"!=typeof navigator&&navigator.product,ez&&0>["ReactNative","NativeScript","NS"].indexOf(en)),eV="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var eH={...ei,isBrowser:!0,classes:{URLSearchParams:eF,FormData:eB,Blob:eU},protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(K){if(eP.isFormData(K)&&eP.isFunction(K.entries)){let G={};return eP.forEachEntry(K,(K,J)=>{!function buildPath(K,G,J,et){let er=K[et++];if("__proto__"===er)return!0;let en=Number.isFinite(+er),ei=et>=K.length;if(er=!er&&eP.isArray(J)?J.length:er,ei)return eP.hasOwnProp(J,er)?J[er]=[J[er],G]:J[er]=G,!en;J[er]&&eP.isObject(J[er])||(J[er]=[]);let eo=buildPath(K,G,J[er],et);return eo&&eP.isArray(J[er])&&(J[er]=function(K){let G,J;let et={},er=Object.keys(K),en=er.length;for(G=0;G<en;G++)et[J=er[G]]=K[J];return et}(J[er])),!en}(eP.matchAll(/\w+|\[(\w*)]/g,K).map(K=>"[]"===K[0]?"":K[1]||K[0]),J,G,0)}),G}return null};let eq={transitional:eL,adapter:["xhr","http"],transformRequest:[function(K,G){let J;let et=G.getContentType()||"",er=et.indexOf("application/json")>-1,en=eP.isObject(K);en&&eP.isHTMLForm(K)&&(K=new FormData(K));let ei=eP.isFormData(K);if(ei)return er&&er?JSON.stringify(helpers_formDataToJSON(K)):K;if(eP.isArrayBuffer(K)||eP.isBuffer(K)||eP.isStream(K)||eP.isFile(K)||eP.isBlob(K))return K;if(eP.isArrayBufferView(K))return K.buffer;if(eP.isURLSearchParams(K))return G.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),K.toString();if(en){if(et.indexOf("application/x-www-form-urlencoded")>-1){var eo,es;return(eo=K,es=this.formSerializer,helpers_toFormData(eo,new eH.classes.URLSearchParams,Object.assign({visitor:function(K,G,J,et){return eH.isNode&&eP.isBuffer(K)?(this.append(G,K.toString("base64")),!1):et.defaultVisitor.apply(this,arguments)}},es))).toString()}if((J=eP.isFileList(K))||et.indexOf("multipart/form-data")>-1){let G=this.env&&this.env.FormData;return helpers_toFormData(J?{"files[]":K}:K,G&&new G,this.formSerializer)}}return en||er?(G.setContentType("application/json",!1),function(K,G,J){if(eP.isString(K))try{return(0,JSON.parse)(K),eP.trim(K)}catch(K){if("SyntaxError"!==K.name)throw K}return(0,JSON.stringify)(K)}(K)):K}],transformResponse:[function(K){let G=this.transitional||eq.transitional,J=G&&G.forcedJSONParsing,et="json"===this.responseType;if(K&&eP.isString(K)&&(J&&!this.responseType||et)){let J=G&&G.silentJSONParsing;try{return JSON.parse(K)}catch(K){if(!J&&et){if("SyntaxError"===K.name)throw AxiosError.from(K,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw K}}}return K}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eH.classes.FormData,Blob:eH.classes.Blob},validateStatus:function(K){return K>=200&&K<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eP.forEach(["delete","get","head","post","put","patch"],K=>{eq.headers[K]={}});let e$=eP.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=K=>{let G,J,et;let er={};return K&&K.split("\n").forEach(function(K){et=K.indexOf(":"),G=K.substring(0,et).trim().toLowerCase(),J=K.substring(et+1).trim(),!G||er[G]&&e$[G]||("set-cookie"===G?er[G]?er[G].push(J):er[G]=[J]:er[G]=er[G]?er[G]+", "+J:J)}),er};let eK=Symbol("internals");function normalizeHeader(K){return K&&String(K).trim().toLowerCase()}function normalizeValue(K){return!1===K||null==K?K:eP.isArray(K)?K.map(normalizeValue):String(K)}let isValidHeaderName=K=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(K.trim());function matchHeaderValue(K,G,J,et,er){if(eP.isFunction(et))return et.call(this,G,J);if(er&&(G=J),eP.isString(G)){if(eP.isString(et))return -1!==G.indexOf(et);if(eP.isRegExp(et))return et.test(G)}}let AxiosHeaders=class AxiosHeaders{constructor(K){K&&this.set(K)}set(K,G,J){let et=this;function setHeader(K,G,J){let er=normalizeHeader(G);if(!er)throw Error("header name must be a non-empty string");let en=eP.findKey(et,er);en&&void 0!==et[en]&&!0!==J&&(void 0!==J||!1===et[en])||(et[en||G]=normalizeValue(K))}let setHeaders=(K,G)=>eP.forEach(K,(K,J)=>setHeader(K,J,G));return eP.isPlainObject(K)||K instanceof this.constructor?setHeaders(K,G):eP.isString(K)&&(K=K.trim())&&!isValidHeaderName(K)?setHeaders(parseHeaders(K),G):null!=K&&setHeader(G,K,J),this}get(K,G){if(K=normalizeHeader(K)){let J=eP.findKey(this,K);if(J){let K=this[J];if(!G)return K;if(!0===G)return function(K){let G;let J=Object.create(null),et=/([^\s,;
194=]+)\s*(?:=\s*([^,;]+))?/g;for(;G=et.exec(K);)J[G[1]]=G[2];return J}(K);if(eP.isFunction(G))return G.call(this,K,J);if(eP.isRegExp(G))return G.exec(K);throw TypeError("parser must be boolean|regexp|function")}}}has(K,G){if(K=normalizeHeader(K)){let J=eP.findKey(this,K);return!!(J&&void 0!==this[J]&&(!G||matchHeaderValue(this,this[J],J,G)))}return!1}delete(K,G){let J=this,et=!1;function deleteHeader(K){if(K=normalizeHeader(K)){let er=eP.findKey(J,K);er&&(!G||matchHeaderValue(J,J[er],er,G))&&(delete J[er],et=!0)}}return eP.isArray(K)?K.forEach(deleteHeader):deleteHeader(K),et}clear(K){let G=Object.keys(this),J=G.length,et=!1;for(;J--;){let er=G[J];(!K||matchHeaderValue(this,this[er],er,K,!0))&&(delete this[er],et=!0)}return et}normalize(K){let G=this,J={};return eP.forEach(this,(et,er)=>{let en=eP.findKey(J,er);if(en){G[en]=normalizeValue(et),delete G[er];return}let ei=K?er.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(K,G,J)=>G.toUpperCase()+J):String(er).trim();ei!==er&&delete G[er],G[ei]=normalizeValue(et),J[ei]=!0}),this}concat(...K){return this.constructor.concat(this,...K)}toJSON(K){let G=Object.create(null);return eP.forEach(this,(J,et)=>{null!=J&&!1!==J&&(G[et]=K&&eP.isArray(J)?J.join(", "):J)}),G}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([K,G])=>K+": "+G).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(K){return K instanceof this?K:new this(K)}static concat(K,...G){let J=new this(K);return G.forEach(K=>J.set(K)),J}static accessor(K){let G=this[eK]=this[eK]={accessors:{}},J=G.accessors,et=this.prototype;function defineAccessor(K){let G=normalizeHeader(K);J[G]||(!function(K,G){let J=eP.toCamelCase(" "+G);["get","set","has"].forEach(et=>{Object.defineProperty(K,et+J,{value:function(K,J,er){return this[et].call(this,G,K,J,er)},configurable:!0})})}(et,K),J[G]=!0)}return eP.isArray(K)?K.forEach(defineAccessor):defineAccessor(K),this}};function transformData(K,G){let J=this||eq,et=G||J,er=AxiosHeaders.from(et.headers),en=et.data;return eP.forEach(K,function(K){en=K.call(J,en,er.normalize(),G?G.status:void 0)}),er.normalize(),en}function isCancel(K){return!!(K&&K.__CANCEL__)}function CanceledError(K,G,J){AxiosError.call(this,null==K?"canceled":K,AxiosError.ERR_CANCELED,G,J),this.name="CanceledError"}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eP.reduceDescriptors(AxiosHeaders.prototype,({value:K},G)=>{let J=G[0].toUpperCase()+G.slice(1);return{get:()=>K,set(K){this[J]=K}}}),eP.freezeMethods(AxiosHeaders),eP.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var eW=eH.hasStandardBrowserEnv?{write(K,G,J,et,er,en){let ei=[K+"="+encodeURIComponent(G)];eP.isNumber(J)&&ei.push("expires="+new Date(J).toGMTString()),eP.isString(et)&&ei.push("path="+et),eP.isString(er)&&ei.push("domain="+er),!0===en&&ei.push("secure"),document.cookie=ei.join("; ")},read(K){let G=document.cookie.match(RegExp("(^|;\\s*)("+K+")=([^;]*)"));return G?decodeURIComponent(G[3]):null},remove(K){this.write(K,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function buildFullPath(K,G){return K&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(G)?G?K.replace(/\/?\/$/,"")+"/"+G.replace(/^\/+/,""):K:G}var eG=eH.hasStandardBrowserEnv?function(){let K;let G=/(msie|trident)/i.test(navigator.userAgent),J=document.createElement("a");function resolveURL(K){let et=K;return G&&(J.setAttribute("href",et),et=J.href),J.setAttribute("href",et),{href:J.href,protocol:J.protocol?J.protocol.replace(/:$/,""):"",host:J.host,search:J.search?J.search.replace(/^\?/,""):"",hash:J.hash?J.hash.replace(/^#/,""):"",hostname:J.hostname,port:J.port,pathname:"/"===J.pathname.charAt(0)?J.pathname:"/"+J.pathname}}return K=resolveURL(window.location.href),function(G){let J=eP.isString(G)?resolveURL(G):G;return J.protocol===K.protocol&&J.host===K.host}}():function(){return!0},helpers_speedometer=function(K,G){let J;K=K||10;let et=Array(K),er=Array(K),en=0,ei=0;return G=void 0!==G?G:1e3,function(eo){let es=Date.now(),el=er[ei];J||(J=es),et[en]=eo,er[en]=es;let ec=ei,eu=0;for(;ec!==en;)eu+=et[ec++],ec%=K;
194if((en=(en+1)%K)===ei&&(ei=(ei+1)%K),es-J<G)return;let ed=el&&es-el;return ed?Math.round(1e3*eu/ed):void 0}};function progressEventReducer(K,G){let J=0,et=helpers_speedometer(50,250);return er=>{let en=er.loaded,ei=er.lengthComputable?er.total:void 0,eo=en-J,es=et(eo),el=en<=ei;J=en;let ec={loaded:en,total:ei,progress:ei?en/ei:void 0,bytes:eo,rate:es||void 0,estimated:es&&ei&&el?(ei-en)/es:void 0,event:er};ec[G?"download":"upload"]=!0,K(ec)}}let eZ="undefined"!=typeof XMLHttpRequest;var eJ=eZ&&function(K){return new Promise(function(G,J){let et,er,en=K.data,ei=AxiosHeaders.from(K.headers).normalize(),{responseType:eo,withXSRFToken:es}=K;function done(){K.cancelToken&&K.cancelToken.unsubscribe(et),K.signal&&K.signal.removeEventListener("abort",et)}if(eP.isFormData(en)){if(eH.hasStandardBrowserEnv||eH.hasStandardBrowserWebWorkerEnv)ei.setContentType(!1);else if(!1!==(er=ei.getContentType())){let[K,...G]=er?er.split(";").map(K=>K.trim()).filter(Boolean):[];ei.setContentType([K||"multipart/form-data",...G].join("; "))}}let el=new XMLHttpRequest;if(K.auth){let G=K.auth.username||"",J=K.auth.password?unescape(encodeURIComponent(K.auth.password)):"";ei.set("Authorization","Basic "+btoa(G+":"+J))}let ec=buildFullPath(K.baseURL,K.url);function onloadend(){if(!el)return;let et=AxiosHeaders.from("getAllResponseHeaders"in el&&el.getAllResponseHeaders()),er=eo&&"text"!==eo&&"json"!==eo?el.response:el.responseText,en={data:er,status:el.status,statusText:el.statusText,headers:et,config:K,request:el};!function(K,G,J){let et=J.config.validateStatus;!J.status||!et||et(J.status)?K(J):G(new AxiosError("Request failed with status code "+J.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(J.status/100)-4],J.config,J.request,J))}(function(K){G(K),done()},function(K){J(K),done()},en),el=null}if(el.open(K.method.toUpperCase(),buildURL(ec,K.params,K.paramsSerializer),!0),el.timeout=K.timeout,"onloadend"in el?el.onloadend=onloadend:el.onreadystatechange=function(){el&&4===el.readyState&&(0!==el.status||el.responseURL&&0===el.responseURL.indexOf("file:"))&&setTimeout(onloadend)},el.onabort=function(){el&&(J(new AxiosError("Request aborted",AxiosError.ECONNABORTED,K,el)),el=null)},el.onerror=function(){J(new AxiosError("Network Error",AxiosError.ERR_NETWORK,K,el)),el=null},el.ontimeout=function(){let G=K.timeout?"timeout of "+K.timeout+"ms exceeded":"timeout exceeded",et=K.transitional||eL;K.timeoutErrorMessage&&(G=K.timeoutErrorMessage),J(new AxiosError(G,et.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,K,el)),el=null},eH.hasStandardBrowserEnv&&(es&&eP.isFunction(es)&&(es=es(K)),es||!1!==es&&eG(ec))){let G=K.xsrfHeaderName&&K.xsrfCookieName&&eW.read(K.xsrfCookieName);G&&ei.set(K.xsrfHeaderName,G)}void 0===en&&ei.setContentType(null),"setRequestHeader"in el&&eP.forEach(ei.toJSON(),function(K,G){el.setRequestHeader(G,K)}),eP.isUndefined(K.withCredentials)||(el.withCredentials=!!K.withCredentials),eo&&"json"!==eo&&(el.responseType=K.responseType),"function"==typeof K.onDownloadProgress&&el.addEventListener("progress",progressEventReducer(K.onDownloadProgress,!0)),"function"==typeof K.onUploadProgress&&el.upload&&el.upload.addEventListener("progress",progressEventReducer(K.onUploadProgress)),(K.cancelToken||K.signal)&&(et=G=>{el&&(J(!G||G.type?new CanceledError(null,K,el):G),el.abort(),el=null)},K.cancelToken&&K.cancelToken.subscribe(et),K.signal&&(K.signal.aborted?et():K.signal.addEventListener("abort",et)));let eu=function(K){let G=/^([-+\w]{1,25})(:?\/\/|:)/.exec(K);return G&&G[1]||""}(ec);if(eu&&-1===eH.protocols.indexOf(eu)){J(new AxiosError("Unsupported protocol "+eu+":",AxiosError.ERR_BAD_REQUEST,K));return}el.send(en||null)})};let eY={http:null,xhr:eJ};eP.forEach(eY,(K,G)=>{if(K){try{Object.defineProperty(K,"name",{value:G})}catch(K){}Object.defineProperty(K,"adapterName",{value:G})}});let renderReason=K=>`- ${K}`,isResolvedHandle=K=>eP.isFunction(K)||null===K||!1===K;var eQ={getAdapter:K=>{let G,J;K=eP.isArray(K)?K:[K];let{length:et}=K,er={};for(let en=0;en<et;en++){let et;if(J=G=K[en],!isResolvedHandle(G)&&void 0===(J=eY[(et=String(G)).toLowerCase()]))throw new AxiosError(`Unknown adapter '${et}'`);if(J)break;er[et||"#"+en]=J}if(!J){let K=Object.entries(er).map(([K,G])=>`adapter ${K} `+(!1===G?"is not supported by the environment":"is not available in the build")),G=et?K.length>
1941?"since :\n"+K.map(renderReason).join("\n"):" "+renderReason(K[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+G,"ERR_NOT_SUPPORT")}return J},adapters:eY};function throwIfCancellationRequested(K){if(K.cancelToken&&K.cancelToken.throwIfRequested(),K.signal&&K.signal.aborted)throw new CanceledError(null,K)}function dispatchRequest(K){throwIfCancellationRequested(K),K.headers=AxiosHeaders.from(K.headers),K.data=transformData.call(K,K.transformRequest),-1!==["post","put","patch"].indexOf(K.method)&&K.headers.setContentType("application/x-www-form-urlencoded",!1);let G=eQ.getAdapter(K.adapter||eq.adapter);return G(K).then(function(G){return throwIfCancellationRequested(K),G.data=transformData.call(K,K.transformResponse,G),G.headers=AxiosHeaders.from(G.headers),G},function(G){return!isCancel(G)&&(throwIfCancellationRequested(K),G&&G.response&&(G.response.data=transformData.call(K,K.transformResponse,G.response),G.response.headers=AxiosHeaders.from(G.response.headers))),Promise.reject(G)})}let headersToObject=K=>K instanceof AxiosHeaders?K.toJSON():K;function mergeConfig(K,G){G=G||{};let J={};function getMergedValue(K,G,J){return eP.isPlainObject(K)&&eP.isPlainObject(G)?eP.merge.call({caseless:J},K,G):eP.isPlainObject(G)?eP.merge({},G):eP.isArray(G)?G.slice():G}function mergeDeepProperties(K,G,J){return eP.isUndefined(G)?eP.isUndefined(K)?void 0:getMergedValue(void 0,K,J):getMergedValue(K,G,J)}function valueFromConfig2(K,G){if(!eP.isUndefined(G))return getMergedValue(void 0,G)}function defaultToConfig2(K,G){return eP.isUndefined(G)?eP.isUndefined(K)?void 0:getMergedValue(void 0,K):getMergedValue(void 0,G)}function mergeDirectKeys(J,et,er){return er in G?getMergedValue(J,et):er in K?getMergedValue(void 0,J):void 0}let et={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(K,G)=>mergeDeepProperties(headersToObject(K),headersToObject(G),!0)};return eP.forEach(Object.keys(Object.assign({},K,G)),function(er){let en=et[er]||mergeDeepProperties,ei=en(K[er],G[er],er);eP.isUndefined(ei)&&en!==mergeDirectKeys||(J[er]=ei)}),J}let eX="1.6.4",e0={};["object","boolean","number","function","string","symbol"].forEach((K,G)=>{e0[K]=function(J){return typeof J===K||"a"+(G<1?"n ":" ")+K}});let e1={};e0.transitional=function(K,G,J){function formatMessage(K,G){return"[Axios v"+eX+"] Transitional option '"+K+"'"+G+(J?". "+J:"")}return(J,et,er)=>{if(!1===K)throw new AxiosError(formatMessage(et," has been removed"+(G?" in "+G:"")),AxiosError.ERR_DEPRECATED);return G&&!e1[et]&&(e1[et]=!0,console.warn(formatMessage(et," has been deprecated since v"+G+" and will be removed in the near future"))),!K||K(J,et,er)}};var e2={assertOptions:function(K,G,J){if("object"!=typeof K)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let et=Object.keys(K),er=et.length;for(;er-- >0;){let en=et[er],ei=G[en];if(ei){let G=K[en],J=void 0===G||ei(G,en,K);if(!0!==J)throw new AxiosError("option "+en+" must be "+J,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==J)throw new AxiosError("Unknown option "+en,AxiosError.ERR_BAD_OPTION)}},validators:e0};let e4=e2.validators;let Axios=class Axios{constructor(K){this.defaults=K,this.interceptors={request:new eN,response:new eN}}request(K,G){let J,et;"string"==typeof K?(G=G||{}).url=K:G=K||{},G=mergeConfig(this.defaults,G);let{transitional:er,paramsSerializer:en,headers:ei}=G;void 0!==er&&e2.assertOptions(er,{silentJSONParsing:e4.transitional(e4.boolean),forcedJSONParsing:e4.transitional(e4.boolean),clarifyTimeoutError:e4.transitional(e4.boolean)}
194,!1),null!=en&&(eP.isFunction(en)?G.paramsSerializer={serialize:en}:e2.assertOptions(en,{encode:e4.function,serialize:e4.function},!0)),G.method=(G.method||this.defaults.method||"get").toLowerCase();let eo=ei&&eP.merge(ei.common,ei[G.method]);ei&&eP.forEach(["delete","get","head","post","put","patch","common"],K=>{delete ei[K]}),G.headers=AxiosHeaders.concat(eo,ei);let es=[],el=!0;this.interceptors.request.forEach(function(K){("function"!=typeof K.runWhen||!1!==K.runWhen(G))&&(el=el&&K.synchronous,es.unshift(K.fulfilled,K.rejected))});let ec=[];this.interceptors.response.forEach(function(K){ec.push(K.fulfilled,K.rejected)});let eu=0;if(!el){let K=[dispatchRequest.bind(this),void 0];for(K.unshift.apply(K,es),K.push.apply(K,ec),et=K.length,J=Promise.resolve(G);eu<et;)J=J.then(K[eu++],K[eu++]);return J}et=es.length;let ed=G;for(eu=0;eu<et;){let K=es[eu++],G=es[eu++];try{ed=K(ed)}catch(K){G.call(this,K);break}}try{J=dispatchRequest.call(this,ed)}catch(K){return Promise.reject(K)}for(eu=0,et=ec.length;eu<et;)J=J.then(ec[eu++],ec[eu++]);return J}getUri(K){K=mergeConfig(this.defaults,K);let G=buildFullPath(K.baseURL,K.url);return buildURL(G,K.params,K.paramsSerializer)}};eP.forEach(["delete","get","head","options"],function(K){Axios.prototype[K]=function(G,J){return this.request(mergeConfig(J||{},{method:K,url:G,data:(J||{}).data}))}}),eP.forEach(["post","put","patch"],function(K){function generateHTTPMethod(G){return function(J,et,er){return this.request(mergeConfig(er||{},{method:K,headers:G?{"Content-Type":"multipart/form-data"}:{},url:J,data:et}))}}Axios.prototype[K]=generateHTTPMethod(),Axios.prototype[K+"Form"]=generateHTTPMethod(!0)});let CancelToken=class CancelToken{constructor(K){let G;if("function"!=typeof K)throw TypeError("executor must be a function.");this.promise=new Promise(function(K){G=K});let J=this;this.promise.then(K=>{if(!J._listeners)return;let G=J._listeners.length;for(;G-- >0;)J._listeners[G](K);J._listeners=null}),this.promise.then=K=>{let G;let et=new Promise(K=>{J.subscribe(K),G=K}).then(K);return et.cancel=function(){J.unsubscribe(G)},et},K(function(K,et,er){J.reason||(J.reason=new CanceledError(K,et,er),G(J.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(K){if(this.reason){K(this.reason);return}this._listeners?this._listeners.push(K):this._listeners=[K]}unsubscribe(K){if(!this._listeners)return;let G=this._listeners.indexOf(K);-1!==G&&this._listeners.splice(G,1)}static source(){let K;let G=new CancelToken(function(G){K=G});return{token:G,cancel:K}}};let e5={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
194alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(e5).forEach(([K,G])=>{e5[G]=K});let e6=function createInstance(K){let G=new Axios(K),J=bind(Axios.prototype.request,G);return eP.extend(J,Axios.prototype,G,{allOwnKeys:!0}),eP.extend(J,G,null,{allOwnKeys:!0}),J.create=function(G){return createInstance(mergeConfig(K,G))},J}(eq);e6.Axios=Axios,e6.CanceledError=CanceledError,e6.CancelToken=CancelToken,e6.isCancel=isCancel,e6.VERSION=eX,e6.toFormData=helpers_toFormData,e6.AxiosError=AxiosError,e6.Cancel=e6.CanceledError,e6.all=function(K){return Promise.all(K)},e6.spread=function(K){return function(G){return K.apply(null,G)}},e6.isAxiosError=function(K){return eP.isObject(K)&&!0===K.isAxiosError},e6.mergeConfig=mergeConfig,e6.AxiosHeaders=AxiosHeaders,e6.formToJSON=K=>helpers_formDataToJSON(eP.isHTMLForm(K)?new FormData(K):K),e6.getAdapter=eQ.getAdapter,e6.HttpStatusCode=e5,e6.default=e6;var e3=e6},83977:function(K,G,J){"use strict";J.d(G,{ZF:function(){return et.ZF}});var et=J(47456);/**
195 * @license
196 * Copyright 2020 Google LLC
197 *
198 * Licensed under the Apache License, Version 2.0 (the "License");
199 * you may not use this file except in compliance with the License.
200 * You may obtain a copy of the License at
201 *
202 *   http://www.apache.org/licenses/LICENSE-2.0
203 *
204 * Unless required by applicable law or agreed to in writing, software
205 * distributed under the License is distributed on an "AS IS" BASIS,
206 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
207 * See the License for the specific language governing permissions and
208 * limitations under the License.
209 */(0,et.KN)("firebase","10.4.0","app")},12971:function(K,G,J){"use strict";let et,er;J.d(G,{xS:function(){return fetchAndActivate},go:function(){return getAll},sN:function(){return getRemoteConfig},NA:function(){return getValue}});var en,ei=J(47456),eo=J(74444),es=J(8463),el=J(53333);let instanceOfAny=(K,G)=>G.some(G=>K instanceof G),ec=new WeakMap,eu=new WeakMap,ed=new WeakMap,eh=new WeakMap,ep=new WeakMap,ef={get(K,G,J){if(K instanceof IDBTransaction){if("done"===G)return eu.get(K);if("objectStoreNames"===G)return K.objectStoreNames||ed.get(K);if("store"===G)return J.objectStoreNames[1]?void 0:J.objectStore(J.objectStoreNames[0])}return wrap_idb_value_wrap(K[G])},set:(K,G,J)=>(K[G]=J,!0),has:(K,G)=>K instanceof IDBTransaction&&("done"===G||"store"===G)||G in K};function wrap_idb_value_wrap(K){var G;if(K instanceof IDBRequest)return function(K){let G=new Promise((G,J)=>{let unlisten=()=>{K.removeEventListener("success",success),K.removeEventListener("error",error)},success=()=>{G(wrap_idb_value_wrap(K.result)),unlisten()},error=()=>{J(K.error),unlisten()};K.addEventListener("success",success),K.addEventListener("error",error)});return G.then(G=>{G instanceof IDBCursor&&ec.set(G,K)}).catch(()=>{}),ep.set(G,K),G}(K);if(eh.has(K))return eh.get(K);let J="function"==typeof(G=K)?G!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(er||(er=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(G)?function(...K){return G.apply(unwrap(this),K),wrap_idb_value_wrap(ec.get(this))}:function(...K){return wrap_idb_value_wrap(G.apply(unwrap(this),K))}:function(K,...J){let et=G.call(unwrap(this),K,...J);return ed.set(et,K.sort?K.sort():[K]),wrap_idb_value_wrap(et)}:(G instanceof IDBTransaction&&function(K){if(eu.has(K))return;let G=new Promise((G,J)=>{let unlisten=()=>{K.removeEventListener("complete",complete),K.removeEventListener("error",error),K.removeEventListener("abort",error)},complete=()=>{G(),unlisten()},error=()=>{J(K.error||new DOMException("AbortError","AbortError")),unlisten()};K.addEventListener("complete",complete),K.addEventListener("error",error),K.addEventListener("abort",error)});eu.set(K,G)}(G),instanceOfAny(G,et||(et=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(G,ef):G;return J!==K&&(eh.set(K,J),ep.set(J,K)),J}let unwrap=K=>ep.get(K),eg=["get","getKey","getAll","getAllKeys","count"],em=["put","add","delete","clear"],ey=new Map;function getMethod(K,G){if(!(K instanceof IDBDatabase&&!(G in K)&&"string"==typeof G))return;if(ey.get(G))return ey.get(G);let J=G.replace(/FromIndex$/,""),et=G!==J,er=em.includes(J);
209if(!(J in(et?IDBIndex:IDBObjectStore).prototype)||!(er||eg.includes(J)))return;let method=async function(K,...G){let en=this.transaction(K,er?"readwrite":"readonly"),ei=en.store;return et&&(ei=ei.index(G.shift())),(await Promise.all([ei[J](...G),er&&en.done]))[0]};return ey.set(G,method),method}ef={...en=ef,get:(K,G,J)=>getMethod(K,G)||en.get(K,G,J),has:(K,G)=>!!getMethod(K,G)||en.has(K,G)};let ev="@firebase/installations",eb="0.6.4",eC=`w:${eb}`,ew="FIS_v2",e_=new eo.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function isServerError(K){return K instanceof eo.ZR&&K.code.includes("request-failed")}/**
210 * @license
211 * Copyright 2019 Google LLC
212 *
213 * Licensed under the Apache License, Version 2.0 (the "License");
214 * you may not use this file except in compliance with the License.
215 * You may obtain a copy of the License at
216 *
217 *   http://www.apache.org/licenses/LICENSE-2.0
218 *
219 * Unless required by applicable law or agreed to in writing, software
220 * distributed under the License is distributed on an "AS IS" BASIS,
221 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
222 * See the License for the specific language governing permissions and
223 * limitations under the License.
224 */function getInstallationsEndpoint({projectId:K}){return`https://firebaseinstallations.googleapis.com/v1/projects/${K}/installations`}
224function extractAuthTokenInfoFromResponse(K){return{token:K.token,requestStatus:2,expiresIn:Number(K.expiresIn.replace("s","000")),creationTime:Date.now()}}async function getErrorFromResponse(K,G){let J=await G.json(),et=J.error;return e_.create("request-failed",{requestName:K,serverCode:et.code,serverMessage:et.message,serverStatus:et.status})}function getHeaders({apiKey:K}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":K})}async function retryIfServerError(K){let G=await K();return G.status>=500&&G.status<600?K():G}/**
225 * @license
226 * Copyright 2019 Google LLC
227 *
228 * Licensed under the Apache License, Version 2.0 (the "License");
229 * you may not use this file except in compliance with the License.
230 * You may obtain a copy of the License at
231 *
232 *   http://www.apache.org/licenses/LICENSE-2.0
233 *
234 * Unless required by applicable law or agreed to in writing, software
235 * distributed under the License is distributed on an "AS IS" BASIS,
236 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
237 * See the License for the specific language governing permissions and
238 * limitations under the License.
239 */async function createInstallationRequest({appConfig:K,heartbeatServiceProvider:G},{fid:J}){let et=getInstallationsEndpoint(K),er=getHeaders(K),en=G.getImmediate({optional:!0});if(en){let K=await en.getHeartbeatsHeader();K&&er.append("x-firebase-client",K)}let ei={fid:J,authVersion:ew,appId:K.appId,sdkVersion:eC},eo={method:"POST",headers:er,body:JSON.stringify(ei)},es=await retryIfServerError(()=>fetch(et,eo));if(es.ok){let K=await es.json(),G={fid:K.fid||J,registrationStatus:2,refreshToken:K.refreshToken,authToken:extractAuthTokenInfoFromRe
239sponse(K.authToken)};return G}throw await getErrorFromResponse("Create Installation",es)}/**
240 * @license
241 * Copyright 2019 Google LLC
242 *
243 * Licensed under the Apache License, Version 2.0 (the "License");
244 * you may not use this file except in compliance with the License.
245 * You may obtain a copy of the License at
246 *
247 *   http://www.apache.org/licenses/LICENSE-2.0
248 *
249 * Unless required by applicable law or agreed to in writing, software
250 * distributed under the License is distributed on an "AS IS" BASIS,
251 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
252 * See the License for the specific language governing permissions and
253 * limitations under the License.
254 */function sleep(K){return new Promise(G=>{setTimeout(G,K)})}/**
255 * @license
256 * Copyright 2019 Google LLC
257 *
258 * Licensed under the Apache License, Version 2.0 (the "License");
259 * you may not use this file except in compliance with the License.
260 * You may obtain a copy of the License at
261 *
262 *   http://www.apache.org/licenses/LICENSE-2.0
263 *
264 * Unless required by applicable law or agreed to in writing, software
265 * distributed under the License is distributed on an "AS IS" BASIS,
266 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
267 * See the License for the specific language governing permissions and
268 * limitations under the License.
269 */let eS=/^[cdef][\w-]{21}$/;/**
270 * @license
271 * Copyright 2019 Google LLC
272 *
273 * Licensed under the Apache License, Version 2.0 (the "License");
274 * you may not use this file except in compliance with the License.
275 * You may obtain a copy of the License at
276 *
277 *   http://www.apache.org/licenses/LICENSE-2.0
278 *
279 * Unless required by applicable law or agreed to in writing, software
280 * distributed under the License is distributed on an "AS IS" BASIS,
281 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
282 * See the License for the specific language governing permissions and
283 * limitations under the License.
284 */function getKey(K){return`${K.appName}!${K.appId}`}/**
285 * @license
286 * Copyright 2019 Google LLC
287 *
288 * Licensed under the Apache License, Version 2.0 (the "License");
289 * you may not use this file except in compliance with the License.
290 * You may obtain a copy of the License at
291 *
292 *   http://www.apache.org/licenses/LICENSE-2.0
293 *
294 * Unless required by applicable law or agreed to in writing, software
295 * distributed under the License is distributed on an "AS IS" BASIS,
296 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
297 * See the License for the specific language governing permissions and
298 * limitations under the License.
299 */let ek=new Map;function fidChanged(K,G){let J=getKey(K);callFidChangeCallbacks(J,G),function(K,G){let J=(!eA&&"BroadcastChannel"in self&&((eA=new BroadcastChannel("[Firebase] FID Change")).onmessage=K=>{callFidChangeCallbacks(K.data.key,K.data.fid)}),eA);J&&J.postMessage({key:K,fid:G}),0===ek.size&&eA&&(eA.close(),eA=null)}(J,G)}function callFidChangeCallbacks(K,G){let J=ek.get(K);if(J)for(let K of J)K(G)}let eA=null,eE="firebase-installations-store",eT=null;function getDbPromise(){return eT||(eT=function(K,G,{blocked:J,upgrade:et,blocking:er,terminated:en}={}){let ei=indexedDB.open(K,1),eo=wrap_idb_value_wrap(ei);return et&&ei.addEventListener("upgradeneeded",K=>{et(wrap_idb_value_wrap(ei.result),K.oldVersion,K.newVersion,wrap_idb_value_wrap(ei.transaction))}),J&&ei.addEventListener("blocked",()=>J()),eo.then(K=>{en&&K.addEventListener("close",()=>en()),er&&K.addEventListener("versionchange",()=>er())}).catch(()=>{}),eo}("firebase-installations-database",0,{upgrade:(K,G)=>{0===G&&K.createObjectStore(eE)}})),eT}async function set(K,G){let J=getKey(K),et=await getDbPromise(),er=et.transaction(eE,"readwrite"),en=er.objectStore(eE),ei=await en.get(J);return await en.put(G,J),await er.done,ei&&ei.fid===G.fid||fidChanged(K,G.fid),G}async function remove(K){let G=getKey(K),J=await getDbPromise(),et=J.transaction(eE,"readwrite");await et.objectStore(eE).delete(G),await et.done}
299async function update(K,G){let J=getKey(K),et=await getDbPromise(),er=et.transaction(eE,"readwrite"),en=er.objectStore(eE),ei=await en.get(J),eo=G(ei);return void 0===eo?await en.delete(J):await en.put(eo,J),await er.done,eo&&(!ei||ei.fid!==eo.fid)&&fidChanged(K,eo.fid),eo}/**
300 * @license
301 * Copyright 2019 Google LLC
302 *
303 * Licensed under the Apache License, Version 2.0 (the "License");
304 * you may not use this file except in compliance with the License.
305 * You may obtain a copy of the License at
306 *
307 *   http://www.apache.org/licenses/LICENSE-2.0
308 *
309 * Unless required by applicable law or agreed to in writing, software
310 * distributed under the License is distributed on an "AS IS" BASIS,
311 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
312 * See the License for the specific language governing permissions and
313 * limitations under the License.
314 */async function getInstallationEntry(K){let G;let J=await update(K.appConfig,J=>{let et=function(K){let G=K||{fid:function(){try{let K=new Uint8Array(17),G=self.crypto||self.msCrypto;G.getRandomValues(K),K[0]=112+K[0]%16;let J=function(K){let G=/**
315 * @license
316 * Copyright 2019 Google LLC
317 *
318 * Licensed under the Apache License, Version 2.0 (the "License");
319 * you may not use this file except in compliance with the License.
320 * You may obtain a copy of the License at
321 *
322 *   http://www.apache.org/licenses/LICENSE-2.0
323 *
324 * Unless required by applicable law or agreed to in writing, software
325 * distributed under the License is distributed on an "AS IS" BASIS,
326 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
327 * See the License for the specific language governing permissions and
328 * limitations under the License.
329 */function(K){let G=btoa(String.fromCharCode(...K));return G.replace(/\+/g,"-").replace(/\//g,"_")}(K);return G.substr(0,22)}(K);return eS.test(J)?J:""}catch(K){return""}}(),registrationStatus:0};return clearTimedOutRequest(G)}(J),er=function(K,G){if(0===G.registrationStatus){if(!navigator.onLine){let K=Promise.reject(e_.create("app-offline"));return{installationEntry:G,registrationPromise:K}}let J={fid:G.fid,registrationStatus:1,registrationTime:Date.now()},et=registerInstallation(K,J);return{installationEntry:J,registrationPromise:et}}return 1===G.registrationStatus?{installationEntry:G,registrationPromise:waitUntilFidRegistration(K)}:{installationEntry:G}}(K,et);return G=er.registrationPromise,er.installationEntry});return""===J.fid?{installationEntry:await G}:{installationEntry:J,registrationPromise:G}}async function registerInstallation(K,G){try{let J=await createInstallationRequest(K,G);return set(K.appConfig,J)}catch(J){throw isServerError(J)&&409===J.customData.serverCode?await remove(K.appConfig):await set(K.appConfig,{fid:G.fid,registrationStatus:0}),J}}async function waitUntilFidRegistration(K){let G=await updateInstallationRequest(K.appConfig);for(;1===G.registrationStatus;)await sleep(100),G=await updateInstallationRequest(K.appConfig);if(0===G.registrationStatus){let{installationEntry:G,registrationPromise:J}=await getInstallationEntry(K);return J||G}return G}function updateInstallationRequest(K){return update(K,K=>{if(!K)throw e_.create("installation-not-found");return clearTimedOutRequest(K)})}function clearTimedOutRequest(K){return 1===K.registrationStatus&&K.registrationTime+1e4<Date.now()?{fid:K.fid,registrationStatus:0}:K}/**
330 * @license
331 * Copyright 2019 Google LLC
332 *
333 * Licensed under the Apache License, Version 2.0 (the "License");
334 * you may not use this file except in compliance with the License.
335 * You may obtain a copy of the License at
336 *
337 *   http://www.apache.org/licenses/LICENSE-2.0
338 *
339 * Unless required by applicable law or agreed to in writing, software
340 * distributed under the License is distributed on an "AS IS" BASIS,
341 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
342 * See the License for the specific language governing permissions and
343 * limitations under the License.
344 */async function generateAuthTokenRequest({appConfig:K,heartbeatServiceProvider:G},J){let et=function(K,{fid:G}){return`${getInstallationsEndpoint(K)}/${G}/authTokens:generate`}(K,J),er=function(K,{refreshToken:G}){let J=getHeaders(K);return J.append("Authorization",`${ew} ${G}`),J}(K,J),en=G.getImmediate({optional:!0});if(en){let K=await en.getHeartbeatsHeader();K&&er.append("x-firebase-client",K)}let ei={installation:{sdkVersion:eC,appId:K.appId}},eo={method:"POST",headers:er,body:JSON.stringify(ei)},es=await retryIfServerError(()=>fetch(et,eo));
344if(es.ok){let K=await es.json(),G=extractAuthTokenInfoFromResponse(K);return G}throw await getErrorFromResponse("Generate Auth Token",es)}/**
345 * @license
346 * Copyright 2019 Google LLC
347 *
348 * Licensed under the Apache License, Version 2.0 (the "License");
349 * you may not use this file except in compliance with the License.
350 * You may obtain a copy of the License at
351 *
352 *   http://www.apache.org/licenses/LICENSE-2.0
353 *
354 * Unless required by applicable law or agreed to in writing, software
355 * distributed under the License is distributed on an "AS IS" BASIS,
356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
357 * See the License for the specific language governing permissions and
358 * limitations under the License.
359 */async function refreshAuthToken(K,G=!1){let J;let et=await update(K.appConfig,et=>{var er;if(!isEntryRegistered(et))throw e_.create("not-registered");let en=et.authToken;if(!G&&2===(er=en).requestStatus&&!function(K){let G=Date.now();return G<K.creationTime||K.creationTime+K.expiresIn<G+36e5}(er))return et;if(1===en.requestStatus)return J=waitUntilAuthTokenRequest(K,G),et;{if(!navigator.onLine)throw e_.create("app-offline");let G=function(K){let G={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},K),{authToken:G})}(et);return J=fetchAuthTokenFromServer(K,G),G}}),er=J?await J:et.authToken;return er}async function waitUntilAuthTokenRequest(K,G){let J=await updateAuthTokenRequest(K.appConfig);for(;1===J.authToken.requestStatus;)await sleep(100),J=await updateAuthTokenRequest(K.appConfig);let et=J.authToken;return 0===et.requestStatus?refreshAuthToken(K,G):et}function updateAuthTokenRequest(K){return update(K,K=>{if(!isEntryRegistered(K))throw e_.create("not-registered");let G=K.authToken;return 1===G.requestStatus&&G.requestTime+1e4<Date.now()?Object.assign(Object.assign({},K),{authToken:{requestStatus:0}}):K})}async function fetchAuthTokenFromServer(K,G){try{let J=await generateAuthTokenRequest(K,G),et=Object.assign(Object.assign({},G),{authToken:J});return await set(K.appConfig,et),J}catch(J){if(isServerError(J)&&(401===J.customData.serverCode||404===J.customData.serverCode))await remove(K.appConfig);else{let J=Object.assign(Object.assign({},G),{authToken:{requestStatus:0}});await set(K.appConfig,J)}throw J}}function isEntryRegistered(K){return void 0!==K&&2===K.registrationStatus}/**
360 * @license
361 * Copyright 2019 Google LLC
362 *
363 * Licensed under the Apache License, Version 2.0 (the "License");
364 * you may not use this file except in compliance with the License.
365 * You may obtain a copy of the License at
366 *
367 *   http://www.apache.org/licenses/LICENSE-2.0
368 *
369 * Unless required by applicable law or agreed to in writing, software
370 * distributed under the License is distributed on an "AS IS" BASIS,
371 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
372 * See the License for the specific language governing permissions and
373 * limitations under the License.
374 */async function getId(K){let{installationEntry:G,registrationPromise:J}=await getInstallationEntry(K);return J?J.catch(console.error):refreshAuthToken(K).catch(console.error),G.fid}/**
375 * @license
376 * Copyright 2019 Google LLC
377 *
378 * Licensed under the Apache License, Version 2.0 (the "License");
379 * you may not use this file except in compliance with the License.
380 * You may obtain a copy of the License at
381 *
382 *   http://www.apache.org/licenses/LICENSE-2.0
383 *
384 * Unless required by applicable law or agreed to in writing, software
385 * distributed under the License is distributed on an "AS IS" BASIS,
386 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
387 * See the License for the specific language governing permissions and
388 * limitations under the License.
389 */async function getToken(K,G=!1){await completeInstallationRegistration(K);let J=await refreshAuthToken(K,G);return J.token}async function completeInstallationRegistration(K){let{registrationPromise:G}=await getInstallationEntry(K);G&&await G}function getMissingValueError(K){return e_.create("missing-app-config-values",{valueName:K})}/**
390 * @license
391 * Copyright 2020 Google LLC
392 *
393 * Licensed under the Apache License, Version 2.0 (the "License");
394 * you may not use this file except in compliance with the License.
395 * You may obtain a copy of the License at
396 *
397 *   http://www.apache.org/licenses/LICENSE-2.0
398 *
399 * Unless required by applicable law or agreed to in writing, software
400 * distributed under the License is distributed on an "AS IS" BASIS,
401 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
402 * See the License for the specific language governing permissions and
403 * limitations under the License.
404 */let eI="installations";(0,ei.Xd)(new es.wA(eI,K=>{let G=K.getProvider("app").getImmediate(),J=/**
405 * @license
406 * Copyright 2019 Google LLC
407 *
408 * Licensed under the Apache License, Version 2.0 (the "License");
409 * you may not use this file except in compliance with the License.
410 * You may obtain a copy of the License at
411 *
412 *   http://www.apache.org/licenses/LICENSE-2.0
413 *
414 * Unless required by applicable law or agreed to in writing, software
415 * distributed under the License is distributed on an "AS IS" BASIS,
416 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
417 * See the License for the specific language governing permissions and
418 * limitations under the License.
419 */function(K){if(!K||!K.options)throw getMissingValueError("App Configuration");if(!K.name)throw getMissingValueError("App Name");for(let G of["projectId","apiKey","appId"])if(!K.options[G])throw getMissingValueError(G);return{appName:K.name,projectId:K.options.projectId,apiKey:K.options.apiKey,appId:K.options.appId}}(G),et=(0,ei.qX)(G,"heartbeat");return{app:G,appConfig:J,heartbeatServiceProvider:et,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,ei.Xd)(new es.wA("installations-internal",K=>{let G=K.getProvider("app").getImmediate(),J=(0,ei.qX)(G,eI).getImmediate();return{getId:()=>getId(J),getToken:K=>getToken(J,K)}},"PRIVATE")),(0,ei.KN)(ev,eb),(0,ei.KN)(ev,eb,"esm2017");let eP="@firebase/remote-config",eO="0.4.4";/**
420 * @license
421 * Copyright 2019 Google LLC
422 *
423 * Licensed under the Apache License, Version 2.0 (the "License");
424 * you may not use this file except in compliance with the License.
425 * You may obtain a copy of the License at
426 *
427 *   http://www.apache.org/licenses/LICENSE-2.0
428 *
429 * Unless required by applicable law or agreed to in writing, software
430 * distributed under the License is distributed on an "AS IS" BASIS,
431 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
432 * See the License for the specific language governing permissions and
433 * limitations under the License.
434 */let RemoteConfigAbortSignal=class RemoteConfigAbortSignal{constructor(){this.listeners=[]}addEventListener(K){this.listeners.push(K)}abort(){this.listeners.forEach(K=>K())}};/**
435 * @license
436 * Copyright 2020 Google LLC
437 *
438 * Licensed under the Apache License, Version 2.0 (the "License");
439 * you may not use this file except in compliance with the License.
440 * You may obtain a copy of the License at
441 *
442 *   http://www.apache.org/licenses/LICENSE-2.0
443 *
444 * Unless required by applicable law or agreed to in writing, software
445 * distributed under the License is distributed on an "AS IS" BASIS,
446 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
447 * See the License for the specific language governing permissions and
448 * limitations under the License.
449 */let eR="remote-config",ex=new eo.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"}),eD=["1","true","t","yes","y","on"];let Value=class Value{constructor(K,G=""){this._source=K,this._value=G}asString(){return this._value}asBoolean(){return"static"!==this._source&&eD.indexOf(this._value.toLowerCase())>=0}asNumber(){if("static"===this._source)return 0;let K=Number(this._value);return isNaN(K)&&(K=0),K}getSource(){return this._source}};/**
450 * @license
451 * Copyright 2020 Google LLC
452 *
453 * Licensed under the Apache License, Version 2.0 (the "License");
454 * you may not use this file except in compliance with the License.
455 * You may obtain a copy of the License at
456 *
457 *   http://www.apache.org/licenses/LICENSE-2.0
458 *
459 * Unless required by applicable law or agreed to in writing, software
460 * distributed under the License is distributed on an "AS IS" BASIS,
461 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
462 * See the License for the specific language governing permissions and
463 * limitations under the License.
464 */function getRemoteConfig(K=(0,ei.Mq)()){K=(0,eo.m9)(K);let G=(0,ei.qX)(K,eR);return G.getImmediate()}async function activate(K){let G=(0,eo.m9)(K),[J,et]=await Promise.all([G._storage.getLastSuccessfulFetchResponse(),G._storage.getActiveConfigEtag()]);return!!J&&!!J.config&&!!J.eTag&&J.eTag!==et&&(await Promise.all([G._storageCache.setActiveConfig(J.config),G._storage.setActiveConfigEtag(J.eTag)]),!0)}async function fetchConfig(K){let G=(0,eo.m9)(K),J=new RemoteConfigAbortSignal;setTimeout(async()=>{J.abort()},G.settings.fetchTimeoutMillis);try{await G._client.fetch({cacheMaxAgeMillis:G.settings.minimumFetchIntervalMillis,signal:J}),await G._storageCache.setLastFetchStatus("success")}catch(J){let K=J instanceof eo.ZR&&-1!==J.code.indexOf("fetch-throttle")?"throttle":"failure";throw await G._storageCache.setLastFetchStatus(K),J}}function getAll(K){let G=(0,eo.m9)(K);return(function(K={},G={}){return Object.keys(Object.assign(Object.assign({},K),G))})(G._storageCache.getActiveConfig(),G.defaultConfig).reduce((G,J)=>(G[J]=getValue(K,J),G),{})}function getValue(K,G){let J=(0,eo.m9)(K);J._isInitializationComplete||J._logger.debug(`A value was requested for key "${G}" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.`);let et=J._storageCache.getActiveConfig();return et&&void 0!==et[G]?new Value("remote",et[G]):J.defaultConfig&&void 0!==J.defaultConfig[G]?new Value("default",String(J.defaultConfig[G])):(J._logger.debug(`Returning static value for key "${G}". Define a default or remote value if this is unintentional.`),new Value("static"))}/**
465 * @license
466 * Copyright 2019 Google LLC
467 *
468 * Licensed under the Apache License, Version 2.0 (the "License");
469 * you may not use this file except in compliance with the License.
470 * You may obtain a copy of the License at
471 *
472 *   http://www.apache.org/licenses/LICENSE-2.0
473 *
474 * Unless required by applicable law or agreed to in writing, software
475 * distributed under the License is distributed on an "AS IS" BASIS,
476 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
477 * See the License for the specific language governing permissions and
478 * limitations under the License.
479 */let CachingClient=class CachingClient{constructor(K,G,J,et){this.client=K,this.storage=G,this.storageCache=J,this.logger=et}isCachedDataFresh(K,G){if(!G)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let J=Date.now()-G,et=J<=K;return this.logger.debug(`Config fetch cache check. Cache age millis: ${J}. Cache max age millis (minimumFetchIntervalMillis setting): ${K}. Is cache hit: ${et}.`),et}async fetch(K){let[G,J]=await Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(J&&this.isCachedDataFresh(K.cacheMaxAgeMillis,G))return J;K.eTag=J&&J.eTag;let et=await this.client.fetch(K),er=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===et.status&&er.push(this.storage.setLastSuccessfulFetchResponse(et)),await Promise.all(er),et}};/**
480 * @license
481 * Copyright 2019 Google LLC
482 *
483 * Licensed under the Apache License, Version 2.0 (the "License");
484 * you may not use this file except in compliance with the License.
485 * You may obtain a copy of the License at
486 *
487 *   http://www.apache.org/licenses/LICENSE-2.0
488 *
489 * Unless required by applicable law or agreed to in writing, software
490 * distributed under the License is distributed on an "AS IS" BASIS,
491 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
492 * See the License for the specific language governing permissions and
493 * limitations under the License.
494 */let RestClient=class RestClient{constructor(K,G,J,et,er,en){this.firebaseInstallations=K,this.sdkVersion=G,this.namespace=J,this.projectId=et,this.apiKey=er,this.appId=en}async fetch(K){let G,J,et;let[er,en]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),ei=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",eo=`${ei}/v1/projects/${this.projectId}/namespaces/${this.namespace}
494:fetch?key=${this.apiKey}`,es={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":K.eTag||"*"},el={sdk_version:this.sdkVersion,app_instance_id:er,app_instance_id_token:en,app_id:this.appId,language_code:/**
495 * @license
496 * Copyright 2019 Google LLC
497 *
498 * Licensed under the Apache License, Version 2.0 (the "License");
499 * you may not use this file except in compliance with the License.
500 * You may obtain a copy of the License at
501 *
502 *   http://www.apache.org/licenses/LICENSE-2.0
503 *
504 * Unless required by applicable law or agreed to in writing, software
505 * distributed under the License is distributed on an "AS IS" BASIS,
506 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
507 * See the License for the specific language governing permissions and
508 * limitations under the License.
509 */function(K=navigator){return K.languages&&K.languages[0]||K.language}()},ec={method:"POST",headers:es,body:JSON.stringify(el)},eu=fetch(eo,ec),ed=new Promise((G,J)=>{K.signal.addEventListener(()=>{let K=Error("The operation was aborted.");K.name="AbortError",J(K)})});try{await Promise.race([eu,ed]),G=await eu}catch(G){let K="fetch-client-network";throw(null==G?void 0:G.name)==="AbortError"&&(K="fetch-timeout"),ex.create(K,{originalErrorMessage:null==G?void 0:G.message})}let eh=G.status,ep=G.headers.get("ETag")||void 0;if(200===G.status){let K;try{K=await G.json()}catch(K){throw ex.create("fetch-client-parse",{originalErrorMessage:null==K?void 0:K.message})}J=K.entries,et=K.state}if("INSTANCE_STATE_UNSPECIFIED"===et?eh=500:"NO_CHANGE"===et?eh=304:("NO_TEMPLATE"===et||"EMPTY_CONFIG"===et)&&(J={}),304!==eh&&200!==eh)throw ex.create("fetch-status",{httpStatus:eh});return{status:eh,eTag:ep,config:J}}};let RetryingClient=class RetryingClient{constructor(K,G){this.client=K,this.storage=G}async fetch(K){let G=await this.storage.getThrottleMetadata()||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(K,G)}async attemptFetch(K,{throttleEndTimeMillis:G,backoffCount:J}){var et;await (et=K.signal,new Promise((K,J)=>{let er=Math.max(G-Date.now(),0),en=setTimeout(K,er);et.addEventListener(()=>{clearTimeout(en),J(ex.create("fetch-throttle",{throttleEndTimeMillis:G}))})}));try{let G=await this.client.fetch(K);return await this.storage.deleteThrottleMetadata(),G}catch(et){if(!function(K){if(!(K instanceof eo.ZR)||!K.customData)return!1;let G=Number(K.customData.httpStatus);return 429===G||500===G||503===G||504===G}(et))throw et;let G={throttleEndTimeMillis:Date.now()+(0,eo.$s)(J),backoffCount:J+1};return await this.storage.setThrottleMetadata(G),this.attemptFetch(K,G)}}};let RemoteConfig=class RemoteConfig{constructor(K,G,J,et,er){this.app=K,this._client=G,this._storageCache=J,this._storage=et,this._logger=er,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}};/**
510 * @license
511 * Copyright 2019 Google LLC
512 *
513 * Licensed under the Apache License, Version 2.0 (the "License");
514 * you may not use this file except in compliance with the License.
515 * You may obtain a copy of the License at
516 *
517 *   http://www.apache.org/licenses/LICENSE-2.0
518 *
519 * Unless required by applicable law or agreed to in writing, software
520 * distributed under the License is distributed on an "AS IS" BASIS,
521 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
522 * See the License for the specific language governing permissions and
523 * limitations under the License.
524 */function toFirebaseError(K,G){let J=K.target.error||void 0;return ex.create(G,{originalErrorMessage:J&&(null==J?void 0:J.message)})}let eM="app_namespace_store";let Storage=class Storage{constructor(K,G,J,et=new Promise((K,G)=>{try{let J=indexedDB.open("firebase_remote_config",1);J.onerror=K=>{G(toFirebaseError(K,"storage-open"))},J.onsuccess=G=>{K(G.target.result)},J.onupgradeneeded=K=>{let G=K.target.result;0===K.oldVersion&&G.createObjectStore(eM,{keyPath:"compositeKey"})}}catch(K){G(ex.create("storage-open",{originalErrorMessage:null==K?void 0:K.message}))}})){this.appId=K,this.appName=G,this.namespace=J,this.openDbPromise=et}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(K){return this.set("last_fetch_status",K)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(K){return this.set("last_successful_fetch_timestamp_millis",K)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(K){return this.set("last_successful_fetch_response",K)}getActiveConfig(){return this.get("active_config")}setActiveConfig(K){return this.set("active_config",K)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(K){return this.set("active_config_etag",K)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(K){return this.set("throttle_metadata",K)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}async get(K){let G=await this.openDbPromise;return new Promise((J,et)=>{let er=G.transaction([eM],"readonly"),en=er.objectStore(eM),ei=this.createCompositeKey(K);try{let K=en.get(ei);K.onerror=K=>{et(toFirebaseError(K,"storage-get"))},K.onsuccess=K=>{let G=K.target.result;G?J(G.value):J(void 0)}}catch(K){et(ex.create("storage-get",{originalErrorMessage:null==K?void 0:K.message}))}})}async set(K,G){let J=await this.openDbPromise;return new Promise((et,er)=>{let en=J.transaction([eM],"readwrite"),ei=en.objectStore(eM),eo=this.createCompositeKey(K);try{let K=ei.put({compositeKey:eo,value:G});K.onerror=K=>{er(toFirebaseError(K,"storage-set"))},K.onsuccess=()=>{et()}}catch(K){er(ex.create("storage-set",{originalErrorMessage:null==K?void 0:K.message}))}})}async delete(K){let G=await this.openDbPromise;return new Promise((J,et)=>{let er=G.transaction([eM],"readwrite"),en=er.objectStore(eM),ei=this.createCompositeKey(K);try{let K=en.delete(ei);K.onerror=K=>{et(toFirebaseError(K,"storage-delete"))},K.onsuccess=()=>{J()}}catch(K){et(ex.create("storage-delete",{originalErrorMessage:null==K?void 0:K.message}))}})}createCompositeKey(K){return[this.appId,this.appName,this.namespace,K].join()}};/**
525 * @license
526 * Copyright 2019 Google LLC
527 *
528 * Licensed under the Apache License, Version 2.0 (the "License");
529 * you may not use this file except in compliance with the License.
530 * You may obtain a copy of the License at
531 *
532 *   http://www.apache.org/licenses/LICENSE-2.0
533 *
534 * Unless required by applicable law or agreed to in writing, software
535 * distributed under the License is distributed on an "AS IS" BASIS,
536 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
537 * See the License for the specific language governing permissions and
538 * limitations under the License.
539 */let StorageCache=class StorageCache{constructor(K){this.storage=K}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}async loadFromStorage(){let K=this.storage.getLastFetchStatus(),G=this.storage.getLastSuccessfulFetchTimestampMillis(),J=this.storage.getActiveConfig(),et=await K;et&&(this.lastFetchStatus=et);let er=await G;er&&(this.lastSuccessfulFetchTimestampMillis=er);let en=await J;en&&(this.activeConfig=en)}setLastFetchStatus(K){return this.lastFetchStatus=K,this.storage.setLastFetchStatus(K)}setLastSuccessfulFetchTimestampMillis(K){return this.lastSuccessfulFetchTimestampMillis=K,this.storage.setLastSuccessfulFetchTimestampMillis(K)}setActiveConfig(K){return this.activeConfig=K,this.storage.setActiveConfig(K)}};/**
540 * @license
541 * Copyright 2020 Google LLC
542 *
543 * Licensed under the Apache License, Version 2.0 (the "License");
544 * you may not use this file except in compliance with the License.
545 * You may obtain a copy of the License at
546 *
547 *   http://www.apache.org/licenses/LICENSE-2.0
548 *
549 * Unless required by applicable law or agreed to in writing, software
550 * distributed under the License is distributed on an "AS IS" BASIS,
551 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
552 * See the License for the specific language governing permissions and
553 * limitations under the License.
554 */async function fetchAndActivate(K){return K=(0,eo.m9)(K),await fetchConfig(K),activate(K)}(0,ei.Xd)(new es.wA(eR,function(K,{instanceIdentifier:G}){let J=K.getProvider("app").getImmediate(),et=K.getProvider("installations-internal").getImmediate();if("undefined"==typeof window)throw ex.create("registration-window");if(!(0,eo.hl)())throw ex.create("indexed-db-unavailable");let{projectId:er,apiKey:en,appId:es}=J.options;if(!er)throw ex.create("registration-project-id");if(!en)throw ex.create("registration-api-key");if(!es)throw ex.create("registration-app-id");G=G||"firebase";let ec=new Storage(es,J.name,G),eu=new StorageCache(ec),ed=new el.Yd(eP);ed.logLevel=el.in.ERROR;let eh=new RestClient(et,ei.Jn,G,er,en,es),ep=new RetryingClient(eh,ec),ef=new CachingClient(ep,ec,eu,ed),eg=new RemoteConfig(J,ef,eu,ec,ed);return function(K){let G=(0,eo.m9)(K);G._initializePromise||(G._initializePromise=G._storageCache.loadFromStorage().then(()=>{G._isInitializationComplete=!0})),G._initializePromise}(eg),eg},"PUBLIC").setMultipleInstances(!0)),(0,ei.KN)(eP,eO),(0,ei.KN)(eP,eO,"esm2017")},25935:function(K,G,J){"use strict";var et=J(30488);et.domToReact,et.htmlToDOM,et.attributesToProps,et.Comment,et.Element,et.ProcessingInstruction,et.Text,G.ZP=et},31955:function(K,G){"use strict";/*! js-cookie v3.0.1 | MIT */function assign(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var et in J)K[et]=J[et]}return K}var J=function init(K,G){function set(J,et,er){if("undefined"!=typeof document){"number"==typeof(er=assign({},G,er)).expires&&(er.expires=new Date(Date.now()+864e5*er.expires)),er.expires&&(er.expires=er.expires.toUTCString()),J=encodeURIComponent(J).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var en="";for(var ei in er)er[ei]&&(en+="; "+ei,!0!==er[ei]&&(en+="="+er[ei].split(";")[0]));return document.cookie=J+"="+K.write(et,J)+en}}return Object.create({set:set,get:function(G){if("undefined"!=typeof document&&(!arguments.length||G)){for(var J=document.cookie?document.cookie.split("; "):[],et={},er=0;er<J.length;er++){var en=J[er].split("="),ei=en.slice(1).join("=");try{var eo=decodeURIComponent(en[0]);if(et[eo]=K.read(ei,eo),G===eo)break}catch(K){}}return G?et[G]:et}},remove:function(K,G){set(K,"",assign({},G,{expires:-1}))},withAttributes:function(K){return init(this.converter,assign({},this.attributes,K))},withConverter:function(K){return init(assign({},this.converter,K),this.attributes)}},{attributes:{value:Object.freeze(G)},converter:{value:Object.freeze(K)}})}({read:function(K){return'"'===K[0]&&(K=K.slice(1,-1)),K.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(K){return encodeURIComponent(K).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
554URIComponent)}},{path:"/"});G.Z=J},87536:function(K,G,J){"use strict";J.d(G,{Gc:function(){return useFormContext},Qr:function(){return Controller},RV:function(){return FormProvider},cI:function(){return useForm}});var et=J(67294),isCheckBoxInput=K=>"checkbox"===K.type,isDateObject=K=>K instanceof Date,isNullOrUndefined=K=>null==K;let isObjectType=K=>"object"==typeof K;var isObject=K=>!isNullOrUndefined(K)&&!Array.isArray(K)&&isObjectType(K)&&!isDateObject(K),getEventValue=K=>isObject(K)&&K.target?isCheckBoxInput(K.target)?K.target.checked:K.target.value:K,getNodeParentName=K=>K.substring(0,K.search(/\.\d+(\.|$)/))||K,isNameInFieldArray=(K,G)=>K.has(getNodeParentName(G)),isPlainObject=K=>{let G=K.constructor&&K.constructor.prototype;return isObject(G)&&G.hasOwnProperty("isPrototypeOf")},er="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function cloneObject(K){let G;let J=Array.isArray(K);if(K instanceof Date)G=new Date(K);else if(K instanceof Set)G=new Set(K);else if(!(!(er&&(K instanceof Blob||K instanceof FileList))&&(J||isObject(K))))return K;else if(G=J?[]:{},Array.isArray(K)||isPlainObject(K))for(let J in K)G[J]=cloneObject(K[J]);else G=K;return G}var compact=K=>Array.isArray(K)?K.filter(Boolean):[],isUndefined=K=>void 0===K,get=(K,G,J)=>{if(!G||!isObject(K))return J;let et=compact(G.split(/[,[\].]+?/)).reduce((K,G)=>isNullOrUndefined(K)?K:K[G],K);return isUndefined(et)||et===K?isUndefined(K[G])?J:K[G]:et};let en={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ei={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},eo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},es=et.createContext(null),useFormContext=()=>et.useContext(es),FormProvider=K=>{let{children:G,...J}=K;return et.createElement(es.Provider,{value:J},G)};var getProxyFormState=(K,G,J,et=!0)=>{let er={defaultValues:G._defaultValues};for(let en in K)Object.defineProperty(er,en,{get:()=>(G._proxyFormState[en]!==ei.all&&(G._proxyFormState[en]=!et||ei.all),J&&(J[en]=!0),K[en])});return er},isEmptyObject=K=>isObject(K)&&!Object.keys(K).length,shouldRenderFormState=(K,G,J,et)=>{J(K);let{name:er,...en}=K;return isEmptyObject(en)||Object.keys(en).length>=Object.keys(G).length||Object.keys(en).find(K=>G[K]===(!et||ei.all))},convertToArrayPayload=K=>Array.isArray(K)?K:[K],shouldSubscribeByName=(K,G,J)=>J&&G?K===G:!K||!G||K===G||convertToArrayPayload(K).some(K=>K&&(K.startsWith(G)||G.startsWith(K)));function useSubscribe(K){let G=et.useRef(K);G.current=K,et.useEffect(()=>{let J=!K.disabled&&G.current.subject&&G.current.subject.subscribe({next:G.current.next});return()=>{J&&J.unsubscribe()}},[K.disabled])}var isString=K=>"string"==typeof K,generateWatchOutput=(K,G,J,et,er)=>isString(K)?(et&&G.watch.add(K),get(J,K,er)):Array.isArray(K)?K.map(K=>(et&&G.watch.add(K),get(J,K))):(et&&(G.watchAll=!0),J),isKey=K=>/^\w*$/.test(K),stringToPath=K=>compact(K.replace(/["|']|\]/g,"").split(/\.|\[/));function set(K,G,J){let et=-1,er=isKey(G)?[G]:stringToPath(G),en=er.length,ei=en-1;for(;++et<en;){let G=er[et],en=J;if(et!==ei){let J=K[G];en=isObject(J)||Array.isArray(J)?J:isNaN(+er[et+1])?{}:[]}K[G]=en,K=K[G]}return K}let Controller=K=>K.render(function(K){let G=useFormContext(),{name:J,control:er=G.control,shouldUnregister:ei}=K,eo=isNameInFieldArray(er._names.array,J),es=function(K){let G=useFormContext(),{control:J=G.control,name:er,defaultValue:en,disabled:ei,exact:eo}=K||{},es=et.useRef(er);es.current=er,useSubscribe({disabled:ei,subject:J._subjects.values,next:K=>{shouldSubscribeByName(es.current,K.name,eo)&&ec(cloneObject(generateWatchOutput(es.current,J._names,K.values||J._formValues,!1,en)))}});let[el,ec]=et.useState(J._getWatch(er,en));return et.useEffect(()=>J._removeUnmounted()),el}({control:er,name:J,defaultValue:get(er._formValues,J,get(er._defaultValues,J,K.defaultValue)),exact:!0}),el=function(K){let G=useFormContext(),{control:J=G.control,disabled:er,name:en,exact:ei}=K||{},[eo,es]=et.useState(J._formState),el=et.useRef(!0),ec=et.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),eu=et.useRef(en);return eu.current=en,useSubscribe({disabled:er,next:K=>el.current&&shouldSubscribeByName(eu.current,K.name,ei)&&shouldRenderFormState(K,ec.current,J._updateFormState)&&es({...J._formState,...K}),subject:J._subjects.state}),et.useEffect(()=>
554(el.current=!0,ec.current.isValid&&J._updateValid(!0),()=>{el.current=!1}),[J]),getProxyFormState(eo,J,ec.current,!1)}({control:er,name:J}),ec=et.useRef(er.register(J,{...K.rules,value:es}));return et.useEffect(()=>{let K=er._options.shouldUnregister||ei,updateMounted=(K,G)=>{let J=get(er._fields,K);J&&(J._f.mount=G)};if(updateMounted(J,!0),K){let K=cloneObject(get(er._options.defaultValues,J));set(er._defaultValues,J,K),isUndefined(get(er._formValues,J))&&set(er._formValues,J,K)}return()=>{(eo?K&&!er._state.action:K)?er.unregister(J):updateMounted(J,!1)}},[J,er,eo,ei]),{field:{name:J,value:es,onChange:et.useCallback(K=>ec.current.onChange({target:{value:getEventValue(K),name:J},type:en.CHANGE}),[J]),onBlur:et.useCallback(()=>ec.current.onBlur({target:{value:get(er._formValues,J),name:J},type:en.BLUR}),[J,er]),ref:K=>{let G=get(er._fields,J);G&&K&&(G._f.ref={focus:()=>K.focus(),select:()=>K.select(),setCustomValidity:G=>K.setCustomValidity(G),reportValidity:()=>K.reportValidity()})}},formState:el,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(el.errors,J)},isDirty:{enumerable:!0,get:()=>!!get(el.dirtyFields,J)},isTouched:{enumerable:!0,get:()=>!!get(el.touchedFields,J)},error:{enumerable:!0,get:()=>get(el.errors,J)}})}}(K));var appendErrors=(K,G,J,et,er)=>G?{...J[K],types:{...J[K]&&J[K].types?J[K].types:{},[et]:er||!0}}:{};let focusFieldBy=(K,G,J)=>{for(let et of J||Object.keys(K)){let J=get(K,et);if(J){let{_f:K,...et}=J;if(K&&G(K.name)){if(K.ref.focus){K.ref.focus();break}if(K.refs&&K.refs[0].focus){K.refs[0].focus();break}}else isObject(et)&&focusFieldBy(et,G)}}};var getValidationModes=K=>({isOnSubmit:!K||K===ei.onSubmit,isOnBlur:K===ei.onBlur,isOnChange:K===ei.onChange,isOnAll:K===ei.all,isOnTouch:K===ei.onTouched}),isWatched=(K,G,J)=>!J&&(G.watchAll||G.watch.has(K)||[...G.watch].some(G=>K.startsWith(G)&&/^\.\w+/.test(K.slice(G.length)))),updateFieldArrayRootError=(K,G,J)=>{let et=compact(get(K,J));return set(et,"root",G[J]),set(K,J,et),K},isBoolean=K=>"boolean"==typeof K,isFileInput=K=>"file"===K.type,isFunction=K=>"function"==typeof K,isHTMLElement=K=>{if(!er)return!1;let G=K?K.ownerDocument:0;return K instanceof(G&&G.defaultView?G.defaultView.HTMLElement:HTMLElement)},isMessage=K=>isString(K),isRadioInput=K=>"radio"===K.type,isRegex=K=>K instanceof RegExp;let el={value:!1,isValid:!1},ec={value:!0,isValid:!0};var getCheckboxValue=K=>{if(Array.isArray(K)){if(K.length>1){let G=K.filter(K=>K&&K.checked&&!K.disabled).map(K=>K.value);return{value:G,isValid:!!G.length}}return K[0].checked&&!K[0].disabled?K[0].attributes&&!isUndefined(K[0].attributes.value)?isUndefined(K[0].value)||""===K[0].value?ec:{value:K[0].value,isValid:!0}:ec:el}return el};let eu={isValid:!1,value:null};var getRadioValue=K=>Array.isArray(K)?K.reduce((K,G)=>G&&G.checked&&!G.disabled?{isValid:!0,value:G.value}:K,eu):eu;function getValidateError(K,G,J="validate"){if(isMessage(K)||Array.isArray(K)&&K.every(isMessage)||isBoolean(K)&&!K)return{type:J,message:isMessage(K)?K:"",ref:G}}var getValueAndMessage=K=>isObject(K)&&!isRegex(K)?K:{value:K,message:""},validateField=async(K,G,J,et,er)=>{let{ref:en,refs:ei,required:es,maxLength:el,minLength:ec,min:eu,max:ed,pattern:eh,validate:ep,name:ef,valueAsNumber:eg,mount:em,disabled:ey}=K._f,ev=get(G,ef);
554if(!em||ey)return{};let eb=ei?ei[0]:en,setCustomValidity=K=>{et&&eb.reportValidity&&(eb.setCustomValidity(isBoolean(K)?"":K||""),eb.reportValidity())},eC={},ew=isRadioInput(en),e_=isCheckBoxInput(en),eS=(eg||isFileInput(en))&&isUndefined(en.value)&&isUndefined(ev)||isHTMLElement(en)&&""===en.value||""===ev||Array.isArray(ev)&&!ev.length,ek=appendErrors.bind(null,ef,J,eC),getMinMaxMessage=(K,G,J,et=eo.maxLength,er=eo.minLength)=>{let ei=K?G:J;eC[ef]={type:K?et:er,message:ei,ref:en,...ek(K?et:er,ei)}};if(er?!Array.isArray(ev)||!ev.length:es&&(!(ew||e_)&&(eS||isNullOrUndefined(ev))||isBoolean(ev)&&!ev||e_&&!getCheckboxValue(ei).isValid||ew&&!getRadioValue(ei).isValid)){let{value:K,message:G}=isMessage(es)?{value:!!es,message:es}:getValueAndMessage(es);if(K&&(eC[ef]={type:eo.required,message:G,ref:eb,...ek(eo.required,G)},!J))return setCustomValidity(G),eC}if(!eS&&(!isNullOrUndefined(eu)||!isNullOrUndefined(ed))){let K,G;let et=getValueAndMessage(ed),er=getValueAndMessage(eu);if(isNullOrUndefined(ev)||isNaN(ev)){let J=en.valueAsDate||new Date(ev),convertTimeToDate=K=>new Date(new Date().toDateString()+" "+K),ei="time"==en.type,eo="week"==en.type;isString(et.value)&&ev&&(K=ei?convertTimeToDate(ev)>convertTimeToDate(et.value):eo?ev>et.value:J>new Date(et.value)),isString(er.value)&&ev&&(G=ei?convertTimeToDate(ev)<convertTimeToDate(er.value):eo?ev<er.value:J<new Date(er.value))}else{let J=en.valueAsNumber||(ev?+ev:ev);isNullOrUndefined(et.value)||(K=J>et.value),isNullOrUndefined(er.value)||(G=J<er.value)}if((K||G)&&(getMinMaxMessage(!!K,et.message,er.message,eo.max,eo.min),!J))return setCustomValidity(eC[ef].message),eC}if((el||ec)&&!eS&&(isString(ev)||er&&Array.isArray(ev))){let K=getValueAndMessage(el),G=getValueAndMessage(ec),et=!isNullOrUndefined(K.value)&&ev.length>+K.value,er=!isNullOrUndefined(G.value)&&ev.length<+G.value;if((et||er)&&(getMinMaxMessage(et,K.message,G.message),!J))return setCustomValidity(eC[ef].message),eC}if(eh&&!eS&&isString(ev)){let{value:K,message:G}=getValueAndMessage(eh);if(isRegex(K)&&!ev.match(K)&&(eC[ef]={type:eo.pattern,message:G,ref:en,...ek(eo.pattern,G)},!J))return setCustomValidity(G),eC}if(ep){if(isFunction(ep)){let K=await ep(ev,G),et=getValidateError(K,eb);if(et&&(eC[ef]={...et,...ek(eo.validate,et.message)},!J))return setCustomValidity(et.message),eC}else if(isObject(ep)){let K={};for(let et in ep){if(!isEmptyObject(K)&&!J)break;let er=getValidateError(await ep[et](ev,G),eb,et);er&&(K={...er,...ek(et,er.message)},setCustomValidity(er.message),J&&(eC[ef]=K))}if(!isEmptyObject(K)&&(eC[ef]={ref:eb,...K},!J))return eC}}return setCustomValidity(!0),eC};function unset(K,G){let J=Array.isArray(G)?G:isKey(G)?[G]:stringToPath(G),et=1===J.length?K:function(K,G){let J=G.slice(0,-1).length,et=0;for(;et<J;)K=isUndefined(K)?et++:K[G[et++]];return K}(K,J),er=J.length-1,en=J[er];return et&&delete et[en],0!==er&&(isObject(et)&&isEmptyObject(et)||Array.isArray(et)&&function(K){for(let G in K)if(!isUndefined(K[G]))return!1;return!0}(et))&&unset(K,J.slice(0,-1)),K}function createSubject(){let K=[];return{get observers(){return K},next:G=>{for(let J of K)J.next&&J.next(G)},subscribe:G=>(K.push(G),{unsubscribe:()=>{K=K.filter(K=>K!==G)}}),unsubscribe:()=>{K=[]}}}var isPrimitive=K=>isNullOrUndefined(K)||!isObjectType(K);function deepEqual(K,G){if(isPrimitive(K)||isPrimitive(G))return K===G;if(isDateObject(K)&&isDateObject(G))return K.getTime()===G.getTime();let J=Object.keys(K),et=Object.keys(G);if(J.length!==et.length)return!1;for(let er of J){let J=K[er];if(!et.includes(er))return!1;if("ref"!==er){let K=G[er];if(isDateObject(J)&&isDateObject(K)||isObject(J)&&isObject(K)||Array.isArray(J)&&Array.isArray(K)?!deepEqual(J,K):J!==K)return!1}}return!0}var isMultipleSelect=K=>"select-multiple"===K.type,isRadioOrCheckbox=K=>isRadioInput(K)||isCheckBoxInput(K),live=K=>isHTMLElement(K)&&K.isConnected,objectHasFunction=K=>{for(let G in K)if(isFunction(K[G]))return!0;return!1};function markFieldsDirty(K,G={}){let J=Array.isArray(K);if(isObject(K)||J)for(let J in K)Array.isArray(K[J])||isObject(K[J])&&!objectHasFunction(K[J])?(G[J]=Array.isArray(K[J])?[]:{},markFieldsDirty(K[J],G[J])):isNullOrUndefined(K[J])||(G[J]=!0);return G}var getDirtyFields=(K,G)=>(function getDirtyFieldsFromDefaultValues(K,G,J){let et=Array.isArray(K);if(isObject(K)||et)for(let et in K)Array.isArray(K[et])||isObject(K[et])&&!objectHasFunction(K[et])?isUndefined(G)||isPrimitive(J[et])?J[et]=Array.isArray(K[et])?markFieldsDirty(K[et],[]):{...markFieldsDirty(K[et])}:getDirtyFieldsFromDefaultValues(K[et],isNullOrUndefined(G)?{}:G[et],J[et]):J[et]=!deepEqual(K[et],G[et]);return J})(K,G,markFieldsDirty(G)),getFieldValueAs=(K,{valueAsNumber:G,valueAsDate:J,setValueAs:et})=>isUndefined(K)?K:G?""===K?NaN:K?+K:K:J&&isString(K)?new Date(K):et?et(K):K;function getFieldValue(K){let G=K.ref;return(K.refs?K.refs.every(K=>K.disabled):G.disabled)?void 0:isFileInput(G)?G.files:isRadioInput(G)?getRadioValue(K.refs).value:isMultipleSelect(G)?[...G.selectedOptions].map(({value:K})=>K):isCheckBoxInput(G)?getCheckboxValue(K.refs).value:getFieldValueAs(isUndefined(G.value)?K.ref.value:G.value,K)}var getResolverOptions=(K,G,J,et)=>{let er={};for(let J of K){let K=get(G,J);K&&set(er,J,K._f)}return{criteriaMode:J,names:[...K],fields:er,shouldUseNativeValidation:et}},getRuleValue=K=>isUndefined(K)?K:isRegex(K)?K.source:isObject(K)?isRegex(K.value)?K.value.source:K.value:K,hasValidation=K=>K.mount&&(K.required||K.min||K.max||K.maxLength||K.minLength||K.pattern||K.validate);function schemaErrorLookup(K,G,J){let et=get(K,J);if(et||isKey(J))return{error:et,name:J};let er=J.split(".");for(;er.length;){let et=er.join("."),en=get(G,et),ei=get(K,et);if(en&&!Array.isArray(en)&&J!==et)break;if(ei&&ei.type)return{name:et,error:ei};er.pop()}return{name:J}}var skipValidation=(K,G,J,et,er)=>!er.isOnAll&&(!J&&er.isOnTouch?!(G||K):(J?et.isOnBlur:er.isOnBlur)?!K:(J?!et.isOnChange:!er.isOnChange)||K),unsetEmptyArray=(K,G)=>!compact(get(K,G)).length&&unset(K,G);let ed={mode:ei.onSubmit,reValidateMode:ei.onChange,shouldFocusError:!0};function useForm(K={}){let G=et.useRef(),[J,eo]=et.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(K.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:isFunction(K.defaultValues)?void 0:K.defaultValues});G.current||(G.current={...function(K={},G){let J,et={...ed,...K},eo={submitCount:0,isDirty:!1,isLoading:isFunction(et.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},es={},el=(isObject(et.defaultValues)||isObject(et.values))&&cloneObject(et.defaultValues||et.values)||{},ec=et.shouldUnregister?{}:cloneObject(el),eu={action:!1,mount:!1,watch:!1},eh={mount:new Set,unMount:new Set,array:new Set,watch:new Set},ep=0,ef={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},eg={values:createSubject(),array:createSubject(),state:createSubject()},em=K.resetOptions&&K.resetOptions.keepDirtyValues,ey=getValidationModes(et.mode),ev=getValidationModes(et.reValidateMode),eb=et.criteriaMode===ei.all,debounce=K=>G=>{clearTimeout(ep),ep=setTimeout(K,G)}
554,_updateValid=async K=>{if(ef.isValid||K){let K=et.resolver?isEmptyObject((await _executeSchema()).errors):await executeBuiltInValidation(es,!0);K!==eo.isValid&&eg.state.next({isValid:K})}},_updateIsValidating=K=>ef.isValidating&&eg.state.next({isValidating:K}),updateErrors=(K,G)=>{set(eo.errors,K,G),eg.state.next({errors:eo.errors})},updateValidAndValue=(K,G,J,et)=>{let er=get(es,K);if(er){let en=get(ec,K,isUndefined(J)?get(el,K):J);isUndefined(en)||et&&et.defaultChecked||G?set(ec,K,G?en:getFieldValue(er._f)):setFieldValue(K,en),eu.mount&&_updateValid()}},updateTouchAndDirty=(K,G,J,et,er)=>{let en=!1,ei=!1,es={name:K};if(!J||et){ef.isDirty&&(ei=eo.isDirty,eo.isDirty=es.isDirty=_getDirty(),en=ei!==es.isDirty);let J=deepEqual(get(el,K),G);ei=get(eo.dirtyFields,K),J?unset(eo.dirtyFields,K):set(eo.dirtyFields,K,!0),es.dirtyFields=eo.dirtyFields,en=en||ef.dirtyFields&&!J!==ei}if(J){let G=get(eo.touchedFields,K);G||(set(eo.touchedFields,K,J),es.touchedFields=eo.touchedFields,en=en||ef.touchedFields&&G!==J)}return en&&er&&eg.state.next(es),en?es:{}},shouldRenderByError=(G,et,er,en)=>{let ei=get(eo.errors,G),es=ef.isValid&&isBoolean(et)&&eo.isValid!==et;if(K.delayError&&er?(J=debounce(()=>updateErrors(G,er)))(K.delayError):(clearTimeout(ep),J=null,er?set(eo.errors,G,er):unset(eo.errors,G)),(er?!deepEqual(ei,er):ei)||!isEmptyObject(en)||es){let K={...en,...es&&isBoolean(et)?{isValid:et}:{},errors:eo.errors,name:G};eo={...eo,...K},eg.state.next(K)}_updateIsValidating(!1)},_executeSchema=async K=>et.resolver(ec,et.context,getResolverOptions(K||eh.mount,es,et.criteriaMode,et.shouldUseNativeValidation)),executeSchemaAndUpdateState=async K=>{let{errors:G}=await _executeSchema();if(K)for(let J of K){let K=get(G,J);K?set(eo.errors,J,K):unset(eo.errors,J)}else eo.errors=G;return G},executeBuiltInValidation=async(K,G,J={valid:!0})=>{for(let er in K){let en=K[er];if(en){let{_f:K,...er}=en;if(K){let er=eh.array.has(K.name),ei=await validateField(en,ec,eb,et.shouldUseNativeValidation&&!G,er);if(ei[K.name]&&(J.valid=!1,G))break;G||(get(ei,K.name)?er?updateFieldArrayRootError(eo.errors,ei,K.name):set(eo.errors,K.name,ei[K.name]):unset(eo.errors,K.name))}er&&await executeBuiltInValidation(er,G,J)}}return J.valid},_getDirty=(K,G)=>(K&&G&&set(ec,K,G),!deepEqual(getValues(),el)),_getWatch=(K,G,J)=>generateWatchOutput(K,eh,{...eu.mount?ec:isUndefined(G)?el:isString(K)?{[K]:G}:G},J,G),setFieldValue=(K,G,J={})=>{let et=get(es,K),er=G;if(et){let J=et._f;J&&(J.disabled||set(ec,K,getFieldValueAs(G,J)),er=isHTMLElement(J.ref)&&isNullOrUndefined(G)?"":G,isMultipleSelect(J.ref)?[...J.ref.options].forEach(K=>K.selected=er.includes(K.value)):J.refs?isCheckBoxInput(J.ref)?J.refs.length>1?J.refs.forEach(K=>(!K.defaultChecked||!K.disabled)&&(K.checked=Array.isArray(er)?!!er.find(G=>G===K.value):er===K.value)):J.refs[0]&&(J.refs[0].checked=!!er):J.refs.forEach(K=>K.checked=K.value===er):isFileInput(J.ref)?J.ref.value="":(J.ref.value=er,J.ref.type||eg.values.next({name:K,values:{...ec}})))}(J.shouldDirty||J.shouldTouch)&&updateTouchAndDirty(K,er,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&trigger(K)},setValues=(K,G,J)=>{for(let et in G){let er=G[et],en=`${K}.${et}`,ei=get(es,en);!eh.array.has(K)&&isPrimitive(er)&&(!ei||ei._f)||isDateObject(er)?setFieldValue(en,er,J):setValues(en,er,J)}},setValue=(K,J,et={})=>{let er=get(es,K),en=eh.array.has(K),ei=cloneObject(J);set(ec,K,ei),en?(eg.array.next({name:K,values:{...ec}}),(ef.isDirty||ef.dirtyFields)&&et.shouldDirty&&eg.state.next({name:K,dirtyFields:getDirtyFields(el,ec),isDirty:_getDirty(K,ei)})):!er||er._f||isNullOrUndefined(ei)?setFieldValue(K,ei,et):setValues(K,ei,et),isWatched(K,eh)&&eg.state.next({...eo}),eg.values.next({name:K,values:{...ec}}),eu.mount||G()},onChange=async K=>{let G=K.target,er=G.name,ei=!0,el=get(es,er);if(el){let eu,ed;let ep=G.type?getFieldValue(el._f):getEventValue(K),em=K.type===en.BLUR||K.type===en.FOCUS_OUT,eC=!hasValidation(el._f)&&!et.resolver&&!get(eo.errors,er)&&!el._f.deps||skipValidation(em,get(eo.touchedFields,er),eo.isSubmitted,ev,ey),ew=isWatched(er,eh,em);set(ec,er,ep),em?(el._f.onBlur&&el._f.onBlur(K),J&&J(0)):el._f.onChange&&el._f.onChange(K);let e_=updateTouchAndDirty(er,ep,em,!1),eS=!isEmptyObject(e_)||ew;if(em||eg.values.next({name:er,type:K.type,values:{...ec}}
554),eC)return ef.isValid&&_updateValid(),eS&&eg.state.next({name:er,...ew?{}:e_});if(!em&&ew&&eg.state.next({...eo}),_updateIsValidating(!0),et.resolver){let{errors:K}=await _executeSchema([er]),G=schemaErrorLookup(eo.errors,es,er),J=schemaErrorLookup(K,es,G.name||er);eu=J.error,er=J.name,ed=isEmptyObject(K)}else eu=(await validateField(el,ec,eb,et.shouldUseNativeValidation))[er],(ei=isNaN(ep)||ep===get(ec,er,ep))&&(eu?ed=!1:ef.isValid&&(ed=await executeBuiltInValidation(es,!0)));ei&&(el._f.deps&&trigger(el._f.deps),shouldRenderByError(er,ed,eu,e_))}},trigger=async(K,G={})=>{let J,er;let en=convertToArrayPayload(K);if(_updateIsValidating(!0),et.resolver){let G=await executeSchemaAndUpdateState(isUndefined(K)?K:en);J=isEmptyObject(G),er=K?!en.some(K=>get(G,K)):J}else K?((er=(await Promise.all(en.map(async K=>{let G=get(es,K);return await executeBuiltInValidation(G&&G._f?{[K]:G}:G)}))).every(Boolean))||eo.isValid)&&_updateValid():er=J=await executeBuiltInValidation(es);return eg.state.next({...!isString(K)||ef.isValid&&J!==eo.isValid?{}:{name:K},...et.resolver||!K?{isValid:J}:{},errors:eo.errors,isValidating:!1}),G.shouldFocus&&!er&&focusFieldBy(es,K=>K&&get(eo.errors,K),K?en:eh.mount),er},getValues=K=>{let G={...el,...eu.mount?ec:{}};return isUndefined(K)?G:isString(K)?get(G,K):K.map(K=>get(G,K))},getFieldState=(K,G)=>({invalid:!!get((G||eo).errors,K),isDirty:!!get((G||eo).dirtyFields,K),isTouched:!!get((G||eo).touchedFields,K),error:get((G||eo).errors,K)}),unregister=(K,G={})=>{for(let J of K?convertToArrayPayload(K):eh.mount)eh.mount.delete(J),eh.array.delete(J),G.keepValue||(unset(es,J),unset(ec,J)),G.keepError||unset(eo.errors,J),G.keepDirty||unset(eo.dirtyFields,J),G.keepTouched||unset(eo.touchedFields,J),et.shouldUnregister||G.keepDefaultValue||unset(el,J);eg.values.next({values:{...ec}}),eg.state.next({...eo,...G.keepDirty?{isDirty:_getDirty()}:{}}),G.keepIsValid||_updateValid()},register=(K,G={})=>{let J=get(es,K),er=isBoolean(G.disabled);return set(es,K,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:K}},name:K,mount:!0,...G}}),eh.mount.add(K),J?er&&set(ec,K,G.disabled?void 0:get(ec,K,getFieldValue(J._f))):updateValidAndValue(K,!0,G.value),{...er?{disabled:G.disabled}:{},...et.shouldUseNativeValidation?{required:!!G.required,min:getRuleValue(G.min),max:getRuleValue(G.max),minLength:getRuleValue(G.minLength),maxLength:getRuleValue(G.maxLength),pattern:getRuleValue(G.pattern)}:{},name:K,onChange,onBlur:onChange,ref:er=>{if(er){register(K,G),J=get(es,K);let et=isUndefined(er.value)&&er.querySelectorAll&&er.querySelectorAll("input,select,textarea")[0]||er,en=isRadioOrCheckbox(et),ei=J._f.refs||[];(en?ei.find(K=>K===et):et===J._f.ref)||(set(es,K,{_f:{...J._f,...en?{refs:[...ei.filter(live),et,...Array.isArray(get(el,K))?[{}]:[]],ref:{type:et.type,name:K}}:{ref:et}}}),updateValidAndValue(K,!1,void 0,et))}else(J=get(es,K,{}))._f&&(J._f.mount=!1),(et.shouldUnregister||G.shouldUnregister)&&!(isNameInFieldArray(eh.array,K)&&eu.action)&&eh.unMount.add(K)}}},_focusError=()=>et.shouldFocusError&&focusFieldBy(es,K=>K&&get(eo.errors,K),eh.mount),_reset=(J,et={})=>{let en=J||el,ei=cloneObject(en),ed=J&&!isEmptyObject(J)?ei:el;if(et.keepDefaultValues||(el=en),!et.keepValues){if(et.keepDirtyValues||em)for(let K of eh.mount)get(eo.dirtyFields,K)?set(ed,K,get(ec,K)):setValue(K,get(ed,K));else{if(er&&isUndefined(J))for(let K of eh.mount){let G=get(es,K);if(G&&G._f){let K=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(isHTMLElement(K)){let G=K.closest("form");if(G){G.reset();break}}}}es={}}ec=K.shouldUnregister?et.keepDefaultValues?cloneObject(el):{}:ei,eg.array.next({values:{...ed}}),eg.values.next({values:{...ed}})}eh={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},eu.mount||G(),eu.mount=!ef.isValid||!!et.keepIsValid,eu.watch=!!K.shouldUnregister,eg.state.next({submitCount:et.keepSubmitCount?eo.submitCount:0,isDirty:et.keepDirty?eo.isDirty:!!(et.keepDefaultValues&&!deepEqual(J,el)),isSubmitted:!!et.keepIsSubmitted&&eo.isSubmitted,dirtyFields:et.keepDirtyValues?eo.dirtyFields:et.keepDefaultValues&&J?getDirtyFields(el,J):{},touchedFields:et.keepTouched?eo.touchedFields:{},errors:et.keepErrors?eo.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},reset=(K,G)=>_reset(isFunction(K)?K(ec):K,G);return isFunction(et.defaultValues)&&et.defaultValues().then(K=>{reset(K,et.resetOptions),eg.state.next({isLoading:!1})}),{control:{register,unregister,getFieldState,_executeSchema,_getWatch,_getDirty,_updateV
554alid,_removeUnmounted:()=>{for(let K of eh.unMount){let G=get(es,K);G&&(G._f.refs?G._f.refs.every(K=>!live(K)):!live(G._f.ref))&&unregister(K)}eh.unMount=new Set},_updateFieldArray:(K,G=[],J,et,er=!0,en=!0)=>{if(et&&J){if(eu.action=!0,en&&Array.isArray(get(es,K))){let G=J(get(es,K),et.argA,et.argB);er&&set(es,K,G)}if(en&&Array.isArray(get(eo.errors,K))){let G=J(get(eo.errors,K),et.argA,et.argB);er&&set(eo.errors,K,G),unsetEmptyArray(eo.errors,K)}if(ef.touchedFields&&en&&Array.isArray(get(eo.touchedFields,K))){let G=J(get(eo.touchedFields,K),et.argA,et.argB);er&&set(eo.touchedFields,K,G)}ef.dirtyFields&&(eo.dirtyFields=getDirtyFields(el,ec)),eg.state.next({name:K,isDirty:_getDirty(K,G),dirtyFields:eo.dirtyFields,errors:eo.errors,isValid:eo.isValid})}else set(ec,K,G)},_getFieldArray:G=>compact(get(eu.mount?ec:el,G,K.shouldUnregister?get(el,G,[]):[])),_reset,_updateFormState:K=>{eo={...eo,...K}},_subjects:eg,_proxyFormState:ef,get _fields(){return es},get _formValues(){return ec},get _state(){return eu},set _state(value){eu=value},get _defaultValues(){return el},get _names(){return eh},set _names(value){eh=value},get _formState(){return eo},set _formState(value){eo=value},get _options(){return et},set _options(value){et={...et,...value}}},trigger,register,handleSubmit:(K,G)=>async J=>{J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let er=cloneObject(ec);if(eg.state.next({isSubmitting:!0}),et.resolver){let{errors:K,values:G}=await _executeSchema();eo.errors=K,er=G}else await executeBuiltInValidation(es);unset(eo.errors,"root"),isEmptyObject(eo.errors)?(eg.state.next({errors:{}}),await K(er,J)):(G&&await G({...eo.errors},J),_focusError(),setTimeout(_focusError)),eg.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(eo.errors),submitCount:eo.submitCount+1,errors:eo.errors})},watch:(K,G)=>isFunction(K)?eg.values.subscribe({next:J=>K(_getWatch(void 0,G),J)}):_getWatch(K,G,!0),setValue,getValues,reset,resetField:(K,G={})=>{get(es,K)&&(isUndefined(G.defaultValue)?setValue(K,get(el,K)):(setValue(K,G.defaultValue),set(el,K,G.defaultValue)),G.keepTouched||unset(eo.touchedFields,K),G.keepDirty||(unset(eo.dirtyFields,K),eo.isDirty=G.defaultValue?_getDirty(K,get(el,K)):_getDirty()),!G.keepError&&(unset(eo.errors,K),ef.isValid&&_updateValid()),eg.state.next({...eo}))},clearErrors:K=>
554{K&&convertToArrayPayload(K).forEach(K=>unset(eo.errors,K)),eg.state.next({errors:K?eo.errors:{}})},unregister,setError:(K,G,J)=>{let et=(get(es,K,{_f:{}})._f||{}).ref;set(eo.errors,K,{...G,ref:et}),eg.state.next({name:K,errors:eo.errors,isValid:!1}),J&&J.shouldFocus&&et&&et.focus&&et.focus()},setFocus:(K,G={})=>{let J=get(es,K),et=J&&J._f;if(et){let K=et.refs?et.refs[0]:et.ref;K.focus&&(K.focus(),G.shouldSelect&&K.select())}},getFieldState}}(K,()=>eo(K=>({...K}))),formState:J});let es=G.current.control;return es._options=K,useSubscribe({subject:es._subjects.state,next:K=>{shouldRenderFormState(K,es._proxyFormState,es._updateFormState,!0)&&eo({...es._formState})}}),et.useEffect(()=>{K.values&&!deepEqual(K.values,es._defaultValues)&&es._reset(K.values,es._options.resetOptions)},[K.values,es]),et.useEffect(()=>{es._state.mount||(es._updateValid(),es._state.mount=!0),es._state.watch&&(es._state.watch=!1,es._subjects.state.next({...es._formState})),es._removeUnmounted()}),G.current.formState=getProxyFormState(J,es),G.current}},47729:function(K,G,J){"use strict";J.d(G,{Z:function(){return ei}});var et=J(89611),er=J(67294);function s(K){return K&&K.stopPropagation&&K.stopPropagation(),K&&K.preventDefault&&K.preventDefault(),!1}function n(K){return null==K?[]:Array.isArray(K)?K.slice():[K]}function i(K){return null!==K&&1===K.length?K[0]:K.slice()}function o(K){Object.keys(K).forEach(G=>{"undefined"!=typeof document&&document.addEventListener(G,K[G],!1)})}function r(K,G){let J;return a(((J=K)<=G.min&&(J=G.min),J>=G.max&&(J=G.max),J),G)}function a(K,G){let J=(K-G.min)%G.step,et=K-J;return 2*Math.abs(J)>=G.step&&(et+=J>0?G.step:-G.step),parseFloat(et.toFixed(5))}let en=function(K){function u(G){var J;(J=K.call(this,G)||this).onKeyUp=()=>{J.onEnd()},J.onMouseUp=()=>{J.onEnd(J.getMouseEventMap())},J.onTouchEnd=()=>{J.onEnd(J.getTouchEventMap())},J.onBlur=()=>{J.setState({index:-1},J.onEnd(J.getKeyDownEventMap()))},J.onMouseMove=K=>{J.setState({pending:!0});let G=J.getMousePosition(K),et=J.getDiffPosition(G[0]),er=J.getValueFromPosition(et);J.move(er)},J.onTouchMove=K=>{if(K.touches.length>1)return;J.setState({pending:!0});let G=J.getTouchPosition(K);if(void 0===J.isScrolling){let K=G[0]-J.startPosition[0],et=G[1]-J.startPosition[1];J.isScrolling=Math.abs(et)>Math.abs(K)}if(J.isScrolling)return void J.setState({index:-1});let et=J.getDiffPosition(G[0]),er=J.getValueFromPosition(et);J.move(er)},J.onKeyDown=K=>{if(!(K.ctrlKey||K.shiftKey||K.altKey||K.metaKey))switch(J.setState({pending:!0}),K.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":K.preventDefault(),J.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":K.preventDefault(),J.moveUpByStep();break;case"Home":K.preventDefault(),J.move(J.props.min);break;case"End":K.preventDefault(),J.move(J.props.max);break;case"PageDown":K.preventDefault(),J.moveDownByStep(J.props.pageFn(J.props.step));break;case"PageUp":K.preventDefault(),J.moveUpByStep(J.props.pageFn(J.props.step))}},J.onSliderMouseDown=K=>{if(!J.props.disabled&&2!==K.button){if(J.setState({pending:!0}),!J.props.snapDragDisabled){let G=J.getMousePosition(K);J.forceValueFromPosition(G[0],K=>{J.start(K,G[0]),o(J.getMouseEventMap())})}s(K)}},J.onSliderClick=K=>{if(!J.props.disabled&&J.props.onSliderClick&&!J.hasMoved){let G=J.getMousePosition(K),et=r(J.calcValue(J.calcOffsetFromPosition(G[0])),J.props);J.props.onSliderClick(et)}},J.createOnKeyDown=K=>G=>{J.props.disabled||(J.start(K),o(J.getKeyDownEventMap()),s(G))},J.createOnMouseDown=K=>G=>{if(J.props.disabled||2===G.button)return;J.setState({pending:!0});let et=J.getMousePosition(G);J.start(K,et[0]),o(J.getMouseEventMap()),s(G)},J.createOnTouchStart=K=>G=>{if(J.props.disabled||G.touches.length>1)return;J.setState({pending:!0});let et=J.getTouchPosition(G);J.startPosition=et,J.isScrolling=void 0,J.start(K,et[0]),o(J.getTouchEventMap()),G.stopPropagation&&G.stopPropagation()},J.handleResize=()=>{let K=window.setTimeout(()=>{J.pendingResizeTimeouts.shift(),J.resize()},0);J.pendingResizeTimeouts.push(K)},J.renderThumb=(K,G)=>{let et=J.props.thumbClassName+" "+J.props.thumbClassName+"-"+G+" "+(J.state.index===G?J.props.thumbActiveClassName:""),er={ref:K=>{J["thumb"+G]=K},key:J.props.thumbClassName+"-"+G,className:et,style:K,onMouseDown:J.createOnMouseDown(G),onTouchStart:J.createOnTouchStart(G),onFocus:J.createOnKeyDown(G),tabIndex:0,role:"slider","aria-orientation":J.props.orientation,"aria-valuenow":J.state.value[G],"aria-valuemin":J.props.min,"aria-valuemax":J.props.max,"aria-label":Array.isArray(J.props.ariaLabel)?J.props.ariaLabel[G]:J.props.ariaLabel,"aria-labelledby":Array.isArray(J.props.ariaLabelledby)?J.props.ariaLabelledby[G]:J.props.ariaLabelledby},en={index:G,value:i(J.state.value),valueNow:J.state.value[G]};return J.props.ariaValuetext&&(er["aria-valuetext"]="string"==typeof J.props.ariaValuetext?J.props.ariaValuetext:J.props.ariaValuetext(en)),J.props.renderThumb(er,en)},J.renderTrack=(K,G,et)=>{let er={key:J.props.trackClassName+"-"+K,className:J.props.trackClassName+" "+J.props.trackClassName+"-"+K,style:J.buildTrackStyle(G,J.state.upperBound-et)},en={index:K,value:i(J.state.value)};return J.props.renderTrack(er,en)};let et=n(G.value);et.length||(et=n(G.defaultValue)),J.pendingResizeTimeouts=[];let en=[];for(let K=0;K<et.length;K+=1)et[K]=r(et[K],G),en.push(K);return J.resizeObserver=null,J.resizeElementRef=er.createRef(),J.state={index:-1,upperBound:0,sliderLength:0,value:et,zIndices:en},J}u.prototype=Object.create(K.prototype),u.prototype.constructor=u,(0,et.Z)(u,K);var G=u.prototype;return G.componentDidMount=function(){"undefined"!=typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},u.getDerivedStateFromProps=function(K,G){let J=n(K.value);return J.length?G.pending?null:{value:J.map(G=>
554r(G,K))}:null},G.componentDidUpdate=function(){0===this.state.upperBound&&this.resize()},G.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},G.onEnd=function(K){K&&function(K){Object.keys(K).forEach(G=>{"undefined"!=typeof document&&document.removeEventListener(G,K[G],!1)})}(K),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},G.getValue=function(){return i(this.state.value)},G.getClosestIndex=function(K){let G=Number.MAX_VALUE,J=-1,{value:et}=this.state,er=et.length;for(let en=0;en<er;en+=1){let er=this.calcOffset(et[en]),ei=Math.abs(K-er);ei<G&&(G=ei,J=en)}return J},G.getMousePosition=function(K){return[K["page"+this.axisKey()],K["page"+this.orthogonalAxisKey()]]},G.getTouchPosition=function(K){let G=K.touches[0];return[G["page"+this.axisKey()],G["page"+this.orthogonalAxisKey()]]},G.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},G.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},G.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},G.getValueFromPosition=function(K){let G=K/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return r(this.state.startValue+G,this.props)},G.getDiffPosition=function(K){let G=K-this.state.startPosition;return this.props.invert&&(G*=-1),G},G.resize=function(){let{slider:K,thumb0:G}=this;if(!K||!G)return;let J=this.sizeKey(),et=K.getBoundingClientRect(),er=K[J],en=et[this.posMaxKey()],ei=et[this.posMinKey()],eo=G.getBoundingClientRect()[J.replace("client","").toLowerCase()],es=er-eo,el=Math.abs(en-ei);this.state.upperBound===es&&this.state.sliderLength===el&&this.state.thumbSize===eo||this.setState({upperBound:es,sliderLength:el,thumbSize:eo})},G.calcOffset=function(K){let G=this.props.max-this.props.min;return 0===G?0:(K-this.props.min)/G*this.state.upperBound},G.calcValue=function(K){return K/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},G.calcOffsetFromPosition=function(K){let{slider:G}=this,J=G.getBoundingClientRect(),et=J[this.posMaxKey()],er=J[this.posMinKey()],en=K-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?et:er));return this.props.invert&&(en=this.state.sliderLength-en),en-=this.state.thumbSize/2},G.forceValueFromPosition=function(K,G){let J=this.calcOffsetFromPosition(K),et=this.getClosestIndex(J),er=r(this.calcValue(J),this.props),en=this.state.value.slice();en[et]=er;for(let K=0;K<en.length-1;K+=1)if(en[K+1]-en[K]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:en},()=>{G(et),this.fireChangeEvent("onChange")})},G.clearPendingResizeTimeouts=function(){do{let K=this.pendingResizeTimeouts.shift();clearTimeout(K)}while(this.pendingResizeTimeouts.length)},G.start=function(K,G){let J=this["thumb"+K];J&&J.focus();let{zIndices:et}=this.state;et.splice(et.indexOf(K),1),et.push(K),this.setState(J=>({startValue:J.value[K],startPosition:void 0!==G?G:J.startPosition,index:K,zIndices:et}))},G.moveUpByStep=function(K){void 0===K&&(K=this.props.step);let G=r(this.state.value[this.state.index]+K,this.props);
554this.move(Math.min(G,this.props.max))},G.moveDownByStep=function(K){void 0===K&&(K=this.props.step);let G=r(this.state.value[this.state.index]-K,this.props);this.move(Math.max(G,this.props.min))},G.move=function(K){let{index:G,value:J}=this.state,{length:et}=J,er=J[G];if(K===er)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:en,max:ei,min:eo,minDistance:es}=this.props;if(!en){if(G>0){let et=J[G-1];K<et+es&&(K=et+es)}if(G<et-1){let et=J[G+1];K>et-es&&(K=et-es)}}J[G]=K,en&&et>1&&(K>er?(this.pushSucceeding(J,es,G),function(K,G,J,et){for(let er=0;er<K;er+=1){let en=et-er*J;G[K-1-er]>en&&(G[K-1-er]=en)}}(et,J,es,ei)):K<er&&(this.pushPreceding(J,es,G),function(K,G,J,et){for(let er=0;er<K;er+=1){let K=et+er*J;G[er]<K&&(G[er]=K)}}(et,J,es,eo))),this.setState({value:J},this.fireChangeEvent.bind(this,"onChange"))},G.pushSucceeding=function(K,G,J){let et,er;for(er=K[et=J]+G;null!==K[et+1]&&er>K[et+1];et+=1,er=K[et]+G)K[et+1]=a(er,this.props)},G.pushPreceding=function(K,G,J){for(let et=J,er=K[et]-G;null!==K[et-1]&&er<K[et-1];et-=1,er=K[et]-G)K[et-1]=a(er,this.props)},G.axisKey=function(){return"vertical"===this.props.orientation?"Y":"X"},G.orthogonalAxisKey=function(){return"vertical"===this.props.orientation?"X":"Y"},G.posMinKey=function(){return"vertical"===this.props.orientation?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},G.posMaxKey=function(){return"vertical"===this.props.orientation?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},G.sizeKey=function(){return"vertical"===this.props.orientation?"clientHeight":"clientWidth"},G.fireChangeEvent=function(K){this.props[K]&&this.props[K](i(this.state.value),this.state.index)},G.buildThumbStyle=function(K,G){let J={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(G)+1};return J[this.posMinKey()]=K+"px",J},G.buildTrackStyle=function(K,G){let J={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return J[this.posMinKey()]=K,J[this.posMaxKey()]=G,J},G.buildMarkStyle=function(K){var G;return(G={position:"absolute"})[this.posMinKey()]=K,G},G.renderThumbs=function(K){let{length:G}=K,J=[];for(let et=0;et<G;et+=1)J[et]=this.buildThumbStyle(K[et],et);let et=[];for(let K=0;K<G;K+=1)et[K]=this.renderThumb(J[K],K);return et},G.renderTracks=function(K){let G=[],J=K.length-1;G.push(this.renderTrack(0,0,K[0]));for(let et=0;et<J;et+=1)G.push(this.renderTrack(et+1,K[et],K[et+1]));return G.push(this.renderTrack(J+1,K[J],this.state.upperBound)),G},G.renderMarks=function(){let{marks:K}=this.props,G=this.props.max-this.props.min+1;return"boolean"==typeof K?K=Array.from({length:G}).map((K,G)=>G):"number"==typeof K&&(K=Array.from({length:G}).map((K,G)=>G).filter(G=>G%K==0)),K.map(parseFloat).sort((K,G)=>K-G).map(K=>{let G=this.calcOffset(K),J={key:K,className:this.props.markClassName,style:this.buildMarkStyle(G)};return this.props.renderMark(J)})},G.render=function(){let K=[],{value:G}=this.state,J=G.length;for(let et=0;et<J;et+=1)K[et]=this.calcOffset(G[et],et);let et=this.props.withTracks?this.renderTracks(K):null,en=this.renderThumbs(K),ei=this.props.marks?this.renderMarks():null;return er.createElement("div",{ref:K=>{this.slider=K,this.resizeElementRef.current=K},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},et,en,ei)},u}(er.Component);en.displayName="ReactSlider",en.defaultProps={min:0,max:100,step:1,pageFn:K=>10*K,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:K=>er.createElement("div",K),renderTrack:K=>er.createElement("div",K),renderMark:K=>er.createElement("span",K)};var ei=en},27563:function(K,G,J){"use strict";J.d(G,{Ab:function(){return ei},Fr:function(){return eo},G$:function(){return en},JM:function(){return eu},K$:function(){return el},MS:function(){return et},h5:function(){return es},lK:function(){return ec},uj:function(){return er}});var et="-ms-",er="-moz-",en="-webkit-",ei="comm",eo="rule",es="decl",el="@import",ec="@keyframes",eu="@layer"},88160:function(K,G,J){"use strict";J.d(G,{cD:function(){return rulesheet},qR:function(){return middleware}});var et=J(26686);function middleware(K){var G=(0,et.Ei)(K);return function(J,et,er,en){for(var ei="",eo=0;eo<G;eo++)ei+=K[eo](J,et,er,en)||"";return ei}}function rulesheet(K){return function(G){!G.root&&(G=G.return)&&K(G)}}},92190:function(K,G,J){"use strict";J.d(G,{MY:function(){return compile}});var et=J(27563),er=J(26686),en=J(46411);function compile(K){return(0,en.cE)(function parse(K,G,J,ei,eo,es,el,ec,eu){for(var ed,eh=0,ep=0,ef=el,eg=0,em=0,ey=0,ev=1,eb=1,eC=1,ew=0,e_="",eS=eo,ek=es,eA=ei,eE=e_;eb;)switch(ey=ew,ew=(0,en.lp)()){case 40:if(108!=ey&&58==(0,er.uO)(eE,ef-1)){-1!=(0,er.Cw)(eE+=(0,er.gx)((0,en.iF)(ew),"&","&\f"),"&\f")&&(eC=-1);break}
554case 34:case 39:case 91:eE+=(0,en.iF)(ew);break;case 9:case 10:case 13:case 32:eE+=(0,en.Qb)(ey);break;case 92:eE+=(0,en.kq)((0,en.Ud)()-1,7);continue;case 47:switch((0,en.fj)()){case 42:case 47:(0,er.R3)((ed=(0,en.q6)((0,en.lp)(),(0,en.Ud)()),(0,en.dH)(ed,G,J,et.Ab,(0,er.Dp)((0,en.Tb)()),(0,er.tb)(ed,2,-2),0)),eu);break;default:eE+="/"}break;case 123*ev:ec[eh++]=(0,er.to)(eE)*eC;case 125*ev:case 59:case 0:switch(ew){case 0:case 125:eb=0;case 59+ep:-1==eC&&(eE=(0,er.gx)(eE,/\f/g,"")),em>0&&(0,er.to)(eE)-ef&&(0,er.R3)(em>32?declaration(eE+";",ei,J,ef-1):declaration((0,er.gx)(eE," ","")+";",ei,J,ef-2),eu);break;case 59:eE+=";";default:if((0,er.R3)(eA=ruleset(eE,G,J,eh,ep,eo,ec,e_,eS=[],ek=[],ef),es),123===ew){if(0===ep)parse(eE,G,eA,eA,eS,es,ef,ec,ek);else switch(99===eg&&110===(0,er.uO)(eE,3)?100:eg){case 100:case 108:case 109:case 115:parse(K,eA,eA,ei&&(0,er.R3)(ruleset(K,eA,eA,0,0,eo,ec,e_,eo,eS=[],ef),ek),eo,ek,ef,ec,ei?eS:ek);break;default:parse(eE,eA,eA,eA,[""],ek,0,ec,ek)}}}eh=ep=em=0,ev=eC=1,e_=eE="",ef=el;break;case 58:ef=1+(0,er.to)(eE),em=ey;default:if(ev<1){if(123==ew)--ev;else if(125==ew&&0==ev++&&125==(0,en.mp)())continue}switch(eE+=(0,er.Dp)(ew),ew*ev){case 38:eC=ep>0?1:(eE+="\f",-1);break;case 44:ec[eh++]=((0,er.to)(eE)-1)*eC,eC=1;break;case 64:45===(0,en.fj)()&&(eE+=(0,en.iF)((0,en.lp)())),eg=(0,en.fj)(),ep=ef=(0,er.to)(e_=eE+=(0,en.QU)((0,en.Ud)())),ew++;break;case 45:45===ey&&2==(0,er.to)(eE)&&(ev=0)}}return es}("",null,null,null,[""],K=(0,en.un)(K),0,[0],K))}function ruleset(K,G,J,ei,eo,es,el,ec,eu,ed,eh){for(var ep=eo-1,ef=0===eo?es:[""],eg=(0,er.Ei)(ef),em=0,ey=0,ev=0;em<ei;++em)for(var eb=0,eC=(0,er.tb)(K,ep+1,ep=(0,er.Wn)(ey=el[em])),ew=K;eb<eg;++eb)(ew=(0,er.fy)(ey>0?ef[eb]+" "+eC:(0,er.gx)(eC,/&\f/g,ef[eb])))&&(eu[ev++]=ew);return(0,en.dH)(K,G,J,0===eo?et.Fr:ec,eu,ed,eh)}function declaration(K,G,J,ei){return(0,en.dH)(K,G,J,et.h5,(0,er.tb)(K,0,ei),(0,er.tb)(K,ei+1,-1),ei)}},20211:function(K,G,J){"use strict";J.d(G,{P:function(){return stringify},q:function(){return serialize}});var et=J(27563),er=J(26686);function serialize(K,G){for(var J="",et=(0,er.Ei)(K),en=0;en<et;en++)J+=G(K[en],en,K,G)||"";return J}function stringify(K,G,J,en){switch(K.type){case et.JM:if(K.children.length)break;case et.K$:case et.h5:return K.return=K.return||K.value;case et.Ab:return"";case et.lK:return K.return=K.value+"{"+serialize(K.children,en)+"}";case et.Fr:K.value=K.props.join(",")}return(0,er.to)(J=serialize(K.children,en))?K.return=K.value+"{"+J+"}":""}},46411:function(K,G,J){"use strict";J.d(G,{FK:function(){return eo},JG:function(){return copy},QU:function(){return identifier},Qb:function(){return whitespace},Tb:function(){return char},Ud:function(){return caret},cE:function(){return dealloc},dH:function(){return node},fj:function(){return peek},iF:function(){return delimit},kq:function(){return escaping},lp:function(){return next},mp:function(){return prev},q6:function(){return commenter},r:function(){return token},tP:function(){return slice},un:function(){return alloc}});var et=J(26686),er=1,en=1,ei=0,eo=0,es=0,el="";function node(K,G,J,et,ei,eo,es){return{value:K,root:G,parent:J,type:et,props:ei,children:eo,line:er,column:en,length:es,return:""}}function copy(K,G){return(0,et.f0)(node("",null,null,"",null,null,0),K,{length:-K.length},G)}function char(){return es}function prev(){return es=eo>0?(0,et.uO)(el,--eo):0,en--,10===es&&(en=1,er--),es}function next(){return es=eo<ei?(0,et.uO)(el,eo++):0,en++,10===es&&(en=1,er++),es}function peek(){return(0,et.uO)(el,eo)}function caret(){return eo}function slice(K,G){return(0,et.tb)(el,K,G)}function token(K){switch(K){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(K){return er=en=1,ei=(0,et.to)(el=K),eo=0,[]}function dealloc(K){return el="",K}function delimit(K){return(0,et.fy)(slice(eo-1,function delimiter(K){for(;next();)switch(es){case K:return eo;case 34:case 39:34!==K&&39!==K&&delimiter(es);break;case 40:41===K&&delimiter(K);break;case 92:next()}return eo}(91===K?K+2:40===K?K+1:K)))}function whitespace(K){for(;es=peek();)if(es<33)next();else break;return token(K)>2||token(es)>3?"":" "}function escaping(K,G){for(;--G&&next()&&!(es<48)&&!(es>102)&&(!(es>57)||!(es<65))&&(!(es>70)||!(es<97)););return slice(K,eo+(G<6&&32==peek()&&32==next()))}function commenter(K,G){for(;next();)if(K+es===57)break;else if(K+es===84&&47===peek())break;return"/*"+slice(G,eo-1)+"*"+(0,et.Dp)(47===K?K:next())}function identifier(K){for(;!token(peek());)next();return slice(K,eo)}},26686:function(K,G,J){"use strict";J.d(G,{$e:function(){return combine},Cw:function(){return indexof},Dp:function(){return er},EQ:function(){return match},Ei:function(){return sizeof},R3:function(){return append},Wn:function(){return et},f0:function(){return en},fy:function(){return trim},gx:function(){return replace},tb:function(){return substr},to:function(){return strlen},uO:function(){return charat},vp:function(){return hash}});var et=Math.abs,er=String.fromCharCode,en=Object.assign;function hash(K,G){return 45^charat(K,0)?(((G<<2^charat(K,0))<<2^charat(K,
5541))<<2^charat(K,2))<<2^charat(K,3):0}function trim(K){return K.trim()}function match(K,G){return(K=G.exec(K))?K[0]:K}function replace(K,G,J){return K.replace(G,J)}function indexof(K,G){return K.indexOf(G)}function charat(K,G){return 0|K.charCodeAt(G)}function substr(K,G,J){return K.slice(G,J)}function strlen(K){return K.length}function sizeof(K){return K.length}function append(K,G){return G.push(K),K}function combine(K,G){return K.map(G).join("")}},8100:function(K,G,J){"use strict";J.d(G,{ZP:function(){return eI},kY:function(){return useSWRConfig}});var et,er=J(67294);/*! *****************************************************************************
555Copyright (c) Microsoft Corporation.
556
557Permission to use, copy, modify, and/or distribute this software for any
558purpose with or without fee is hereby granted.
559
560THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
561REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
562AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
563INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
564LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
565OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
566PERFORMANCE OF THIS SOFTWARE.
567***************************************************************************** */function __awaiter(K,G,J,et){return new(J||(J=Promise))(function(er,en){function fulfilled(K){try{step(et.next(K))}catch(K){en(K)}}function rejected(K){try{step(et.throw(K))}catch(K){en(K)}}function step(K){var G;K.done?er(K.value):((G=K.value)instanceof J?G:new J(function(K){K(G)})).then(fulfilled,rejected)}step((et=et.apply(K,G||[])).next())})}function __generator(K,G){var J,et,er,en,ei={label:0,sent:function(){if(1&er[0])throw er[1];return er[1]},trys:[],ops:[]};return en={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(en[Symbol.iterator]=function(){return this}),en;function verb(en){return function(eo){return function(en){if(J)throw TypeError("Generator is already executing.");for(;ei;)try{if(J=1,et&&(er=2&en[0]?et.return:en[0]?et.throw||((er=et.return)&&er.call(et),0):et.next)&&!(er=er.call(et,en[1])).done)return er;switch(et=0,er&&(en=[2&en[0],er.value]),en[0]){case 0:case 1:er=en;break;case 4:return ei.label++,{value:en[1],done:!1};case 5:ei.label++,et=en[1],en=[0];continue;case 7:en=ei.ops.pop(),ei.trys.pop();continue;default:if(!(er=(er=ei.trys).length>0&&er[er.length-1])&&(6===en[0]||2===en[0])){ei=0;continue}if(3===en[0]&&(!er||en[1]>er[0]&&en[1]<er[3])){ei.label=en[1];break}if(6===en[0]&&ei.label<er[1]){ei.label=er[1],er=en;break}if(er&&ei.label<er[2]){ei.label=er[2],ei.ops.push(en);break}er[2]&&ei.ops.pop(),ei.trys.pop();continue}en=G.call(K,ei)}catch(K){en=[6,K],et=0}finally{J=er=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([en,eo])}}}var noop=function(){},en=noop(),ei=Object,isUndefined=function(K){return K===en},isFunction=function(K){return"function"==typeof K},mergeObjects=function(K,G){return ei.assign({},K,G)},eo="undefined",hasWindow=function(){return typeof window!=eo},es=new WeakMap,el=0,stableHash=function(K){var G,J,et=typeof K,er=K&&K.constructor,en=er==Date;if(ei(K)!==K||en||er==RegExp)G=en?K.toJSON():"symbol"==et?K.toString():"string"==et?JSON.stringify(K):""+K;else{if(G=es.get(K))return G;if(G=++el+"~",es.set(K,G),er==Array){for(J=0,G="@";J<K.length;J++)G+=stableHash(K[J])+",";es.set(K,G)}if(er==ei){G="#";for(var eo=ei.keys(K).sort();!isUndefined(J=eo.pop());)isUndefined(K[J])||(G+=J+":"+stableHash(K[J])+",");es.set(K,G)}}return G},ec=!0,eu=hasWindow(),ed=typeof document!=eo,eh=eu&&window.addEventListener?window.addEventListener.bind(window):noop,ep=ed?document.addEventListener.bind(document):noop,ef=eu&&window.removeEventListener?window.removeEventListener.bind(window):noop,eg=ed?document.removeEventListener.bind(document):noop,em={initFocus:function(K){return ep("visibilitychange",K),eh("focus",K),function(){eg("visibilitychange",K),ef("focus",K)}},initReconnect:function(K){var onOnline=function(){ec=!0,K()},onOffline=function(){ec=!1};return eh("online",onOnline),eh("offline",onOffline),function(){ef("online",onOnline),ef("offline",onOffline)}}},ey=!hasWindow()||"Deno"in window,ev=ey?er.useEffect:er.useLayoutEffect,eb="undefined"!=typeof navigator&&navigator.connection,eC=!ey&&eb&&(["slow-2g","2g"].includes(eb.effectiveType)||eb.saveData),serialize=function(K){if(isFunction(K))try{K=K()}catch(G){K=""}
567var G=[].concat(K),J=(K="string"==typeof K?K:(Array.isArray(K)?K.length:K)?stableHash(K):"")?"$swr$"+K:"";return[K,G,J]},ew=new WeakMap,broadcastState=function(K,G,J,et,er,en,ei){void 0===ei&&(ei=!0);var eo=ew.get(K),es=eo[0],el=eo[1],ec=eo[3],eu=es[G],ed=el[G];if(ei&&ed)for(var eh=0;eh<ed.length;++eh)ed[eh](J,et,er);return en&&(delete ec[G],eu&&eu[0])?eu[0](2).then(function(){return K.get(G)}):K.get(G)},e_=0,getTimestamp=function(){return++e_},internalMutate=function(){for(var K=[],G=0;G<arguments.length;G++)K[G]=arguments[G];return __awaiter(void 0,void 0,void 0,function(){var G,J,et,er,ei,eo,es,el,ec,eu,ed,eh,ep,ef,eg,em,ey,ev,eb,eC;return __generator(this,function(e_){switch(e_.label){case 0:if(G=K[0],J=K[1],et=K[2],eo=!!isUndefined((ei="boolean"==typeof(er=K[3])?{revalidate:er}:er||{}).populateCache)||ei.populateCache,es=!1!==ei.revalidate,el=!1!==ei.rollbackOnError,ec=ei.optimisticData,ed=(eu=serialize(J))[0],eh=eu[2],!ed)return[2];if(ep=ew.get(G)[2],K.length<3)return[2,broadcastState(G,ed,G.get(ed),en,en,es,!0)];if(ef=et,em=getTimestamp(),ep[ed]=[em,0],ey=!isUndefined(ec),ev=G.get(ed),ey&&(eb=isFunction(ec)?ec(ev):ec,G.set(ed,eb),broadcastState(G,ed,eb)),isFunction(ef))try{ef=ef(G.get(ed))}catch(K){eg=K}if(!(ef&&isFunction(ef.then)))return[3,2];return[4,ef.catch(function(K){eg=K})];case 1:if(ef=e_.sent(),em!==ep[ed][0]){if(eg)throw eg;return[2,ef]}eg&&ey&&el&&(eo=!0,ef=ev,G.set(ed,ev)),e_.label=2;case 2:return eo&&(eg||(isFunction(eo)&&(ef=eo(ef,ev)),G.set(ed,ef)),G.set(eh,mergeObjects(G.get(eh),{error:eg}))),ep[ed][1]=getTimestamp(),[4,broadcastState(G,ed,ef,eg,en,es,!!eo)];case 3:if(eC=e_.sent(),eg)throw eg;return[2,eo?eC:ef]}})})},revalidateAllKeys=function(K,G){for(var J in K)K[J][0]&&K[J][0](G)},initCache=function(K,G){if(!ew.has(K)){var J=mergeObjects(em,G),et={},er=internalMutate.bind(en,K),ei=noop;if(ew.set(K,[et,{},{},{},er]),!ey){var eo=J.initFocus(setTimeout.bind(en,revalidateAllKeys.bind(en,et,0))),es=J.initReconnect(setTimeout.bind(en,revalidateAllKeys.bind(en,et,1)));ei=function(){eo&&eo(),es&&es(),ew.delete(K)}}return[K,er,ei]}return[K,ew.get(K)[4]]},eS=initCache(new Map),ek=eS[0],eA=mergeObjects({onLoadingSlow:noop,onSuccess:noop,onError:noop,onErrorRetry:function(K,G,J,et,er){var en=J.errorRetryCount,ei=er.retryCount,eo=~~((Math.random()+.5)*(1<<(ei<8?ei:8)))*J.errorRetryInterval;(isUndefined(en)||!(ei>en))&&setTimeout(et,eo,er)},onDiscarded:noop,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:eC?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:eC?5e3:3e3,compare:function(K,G){return stableHash(K)==stableHash(G)},isPaused:function(){return!1},cache:ek,mutate:eS[1],fallback:{}},{isOnline:function(){return ec},isVisible:function(){var K=ed&&document.visibilityState;return isUndefined(K)||"hidden"!==K}}),mergeConfigs=function(K,G){var J=mergeObjects(K,G);if(G){var et=K.use,er=K.fallback,en=G.use,ei=G.fallback;et&&en&&(J.use=et.concat(en)),er&&ei&&(J.fallback=mergeObjects(er,ei))}return J},eE=(0,er.createContext)({}),useStateWithDeps=function(K,G){var J=(0,er.useState)({})[1],et=(0,er.useRef)(K),en=(0,er.useRef)({data:!1,error:!1,isValidating:!1}),ei=(0,er.useCallback)(function(K){var er=!1,ei=et.current;for(var eo in K)ei[eo]!==K[eo]&&(ei[eo]=K[eo],en.current[eo]&&(er=!0));er&&!G.current&&J({})},[]);return ev(function(){et.current=K}),[et,en.current,ei]},useSWRConfig=function(){return mergeObjects(eA,(0,er.useContext)(eE))},subscribeCallback=function(K,G,J){var et=G[K]||(G[K]=[]);return et.push(J),function(){var K=et.indexOf(J);K>=0&&(et[K]=et[et.length-1],et.pop())}},eT={dedupe:!0};ei.defineProperty(function(K){var G=K.value,J=mergeConfigs((0,er.useContext)(eE),G),et=G&&G.provider,ei=(0,er.useState)(function(){return et?initCache(et(J.cache||ek),G):en})[0];return ei&&(J.cache=ei[0],J.mutate=ei[1]),ev(function(){return ei?ei[2]:en},[]),(0,er.createElement)(eE.Provider,mergeObjects(K,{value:J}))},"default",{value:eA});var eI=(et=function(K,G,J){var et=J.cache,ei=J.compare,es=J.fallbackData,el=J.suspense,ec=J.revalidateOnMount,eu=J.refreshInterval,ed=J.refreshWhenHidden,eh=J.refreshWhenOffline,ep=ew.get(et),ef=ep[0],eg=ep[1],em=ep[2],eb=ep[3],eC=serialize(K),e_=eC[0],eS=eC[1],ek=eC[2],eA=(0,er.useRef)(!1),eE=(0,er.useRef)(!1),eI=(0,er.useRef)(e_),eP=(0,er.useRef)(G),eO=(0,er.useRef)(J),getConfig=function(){return eO.current},isActive=function(){return getConfig().isVisible()&&getConfig().isOnline()},patchFetchInfo=function(K){return et.set(ek,mergeObjects(et.get(ek),K))},eR=et.get(e_),ex=isUndefined(es)?J.fallback[e_]:es,eD=isUndefined(eR)?ex:eR,eM=et.get(ek)||{},eN=eM.error,eL=!eA.current,shouldRevalidate=function(){return eL&&!isUndefined(ec)?ec:!getConfig().isPaused()&&(el?!isUndefined(eD)&&J.revalidateIfStale:isUndefined(eD)||J.revalidateIfStale)},eF=!!e_&&!!G&&(!!eM.isValidating||eL&&shouldRevalidate()),eB=useStateWithDeps({data:eD,error:eN,isValidating:eF},eE),eU=eB[0],ez=eB[1],ej=eB[2],eV=(0,er.useCallback)(function(K){return __awaiter(void 0,void 0,void 0,function(){var G,er,eo,es,el,ec,eu,ed,eh,ep,ef,eg,ey;return __generator(this,function(ev){switch(ev.label){case 0:if(G=eP.current,!e_||!G||eE.current||getConfig().isPaused())return[2,!1];es=!0,el=K||{},ec=!eb[e_]||!el.dedupe,eu=function(){return!eE.current&&e_===eI.
567current&&eA.current},ed=function(){var K=eb[e_];K&&K[1]===eo&&delete eb[e_]},eh={isValidating:!1},ep=function(){patchFetchInfo({isValidating:!1}),eu()&&ej(eh)},patchFetchInfo({isValidating:!0}),ej({isValidating:!0}),ev.label=1;case 1:return ev.trys.push([1,3,,4]),ec&&(broadcastState(et,e_,eU.current.data,eU.current.error,!0),J.loadingTimeout&&!et.get(e_)&&setTimeout(function(){es&&eu()&&getConfig().onLoadingSlow(e_,J)},J.loadingTimeout),eb[e_]=[G.apply(void 0,eS),getTimestamp()]),er=(ey=eb[e_])[0],eo=ey[1],[4,er];case 2:if(er=ev.sent(),ec&&setTimeout(ed,J.dedupingInterval),!eb[e_]||eb[e_][1]!==eo)return ec&&eu()&&getConfig().onDiscarded(e_),[2,!1];if(patchFetchInfo({error:en}),eh.error=en,!isUndefined(ef=em[e_])&&(eo<=ef[0]||eo<=ef[1]||0===ef[1]))return ep(),ec&&eu()&&getConfig().onDiscarded(e_),[2,!1];return ei(eU.current.data,er)?eh.data=eU.current.data:eh.data=er,ei(et.get(e_),er)||et.set(e_,er),ec&&eu()&&getConfig().onSuccess(er,e_,J),[3,4];case 3:return eg=ev.sent(),ed(),!getConfig().isPaused()&&(patchFetchInfo({error:eg}),eh.error=eg,ec&&eu()&&(getConfig().onError(eg,e_,J),("boolean"==typeof J.shouldRetryOnError&&J.shouldRetryOnError||isFunction(J.shouldRetryOnError)&&J.shouldRetryOnError(eg))&&isActive()&&getConfig().onErrorRetry(eg,e_,J,eV,{retryCount:(el.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return es=!1,ep(),eu()&&ec&&broadcastState(et,e_,eh.data,eh.error,!1),[2,!0]}})})},[e_]),eH=(0,er.useCallback)(internalMutate.bind(en,et,function(){return eI.current}),[]);if(ev(function(){eP.current=G,eO.current=J}),ev(function(){if(e_){var K=e_!==eI.current,G=eV.bind(en,eT),J=0,et=subscribeCallback(e_,eg,function(K,G,J){ej(mergeObjects({error:G,isValidating:J},ei(eU.current.data,K)?en:{data:K}))}),er=subscribeCallback(e_,ef,function(K){if(0==K){var et=Date.now();getConfig().revalidateOnFocus&&et>J&&isActive()&&(J=et+getConfig().focusThrottleInterval,G())}else if(1==K)getConfig().revalidateOnReconnect&&isActive()&&G();else if(2==K)return eV()});return eE.current=!1,eI.current=e_,eA.current=!0,K&&ej({data:eD,error:eN,isValidating:eF}),shouldRevalidate()&&(isUndefined(eD)||ey?G():hasWindow()&&typeof window.requestAnimationFrame!=eo?window.requestAnimationFrame(G):setTimeout(G,1)),function(){eE.current=!0,et(),er()}}},[e_,eV]),ev(function(){var K;function next(){var G=isFunction(eu)?eu(eD):eu;G&&-1!==K&&(K=setTimeout(execute,G))}function execute(){!eU.current.error&&(ed||getConfig().isVisible())&&(eh||getConfig().isOnline())?eV(eT).then(next):next()}return next(),function(){K&&(clearTimeout(K),K=-1)}},[eu,ed,eh,eV]),(0,er.useDebugValue)(eD),el&&isUndefined(eD)&&e_)throw eP.current=G,eO.current=J,eE.current=!1,isUndefined(eN)?eV(eT):eN;return{mutate:eH,get data(){return ez.data=!0,eD},get error(){return ez.error=!0,eN},get isValidating(){return ez.isValidating=!0,eF}}},function(){for(var K=[],G=0;G<arguments.length;G++)K[G]=arguments[G];var J=useSWRConfig(),er=isFunction(K[1])?[K[0],K[1],K[2]||{}]:[K[0],null,(null===K[1]?K[2]:K[1])||{}],en=er[0],ei=er[1],eo=mergeConfigs(J,er[2]),es=et,el=eo.use;if(el)for(var ec=el.length;ec-- >0;)es=el[ec](es);return es(en,ei||eo.fetcher,eo)})},49770:function(K,G,J){"use strict";J.d(G,{Z:function(){return ei}});var et,er,en=J(8100),__assign=function(){return(__assign=Object.assign||function(K){for(var G,J=1,et=arguments.length;J<et;J++)for(var er in G=arguments[J])Object.prototype.hasOwnProperty.call(G,er)&&(K[er]=G[er]);return K}).apply(this,arguments)},ei=(et=en.ZP,er=function(K){return function(G,J,et){return et.revalidateOnFocus=!1,et.revalidateIfStale=!1,et.revalidateOnReconnect=!1,K(G,J,et)}},function(){for(var K=[],G=0;G<arguments.length;G++)K[G]=arguments[G];var J="function"==typeof K[1]?[K[0],K[1],K[2]||{}]:[K[0],null,(null===K[1]?K[2]:K[1])||{}],en=J[0],ei=J[1],eo=J[2],es=(eo.use||[]).concat(er);return et(en,ei,__assign(__assign({},eo),{use:es}))})},44593:function(K,G,J){"use strict";J.d(G,{ZP:function(){return ed}});var et,er,en=J(67294),ei=J(8100),__assign=function(){return(__assign=Object.assign||function(K){for(var G,J=1,et=arguments.length;J<et;J++)for(var er in G=arguments[J])Object.prototype.hasOwnProperty.call(G,er)&&(K[er]=G[er]);return K}).apply(this,arguments)},noop=function(){},eo=noop(),es=Object,isUndefined=function(K){return K===eo},isFunction=function(K){return"function"==typeof K},el=!("undefined"!=typeof window)||"Deno"in window?en.useEffect:en.useLayoutEffect,ec=new WeakMap,eu=0,stableHash=function(K){var G,J,et=typeof K,er=K&&K.constructor,en=er==Date;
567if(es(K)!==K||en||er==RegExp)G=en?K.toJSON():"symbol"==et?K.toString():"string"==et?JSON.stringify(K):""+K;else{if(G=ec.get(K))return G;if(G=++eu+"~",ec.set(K,G),er==Array){for(J=0,G="@";J<K.length;J++)G+=stableHash(K[J])+",";ec.set(K,G)}if(er==es){G="#";for(var ei=es.keys(K).sort();!isUndefined(J=ei.pop());)isUndefined(K[J])||(G+=J+":"+stableHash(K[J])+",");ec.set(K,G)}}return G},serialize=function(K){if(isFunction(K))try{K=K()}catch(G){K=""}var G=[].concat(K),J=(K="string"==typeof K?K:(Array.isArray(K)?K.length:K)?stableHash(K):"")?"$swr$"+K:"";return[K,G,J]},ed=(et=ei.ZP,er=function(K){return function(G,J,et){var er=(0,en.useState)({})[1],ei=(0,en.useRef)(!1),es=(0,en.useRef)(),ec=et.cache,eu=et.initialSize,ed=void 0===eu?1:eu,eh=et.revalidateAll,ep=void 0!==eh&&eh,ef=et.persistSize,eg=void 0!==ef&&ef,em=et.revalidateFirstPage,ey=void 0===em||em,ev=et.revalidateOnMount,eb=null;try{eb=serialize(G?G(0,null):null)[0]}catch(K){}var eC=null,ew=null;eb&&(eC="$ctx$"+eb,ew="$len$"+eb);var e_=(0,en.useCallback)(function(){var K=ec.get(ew);return isUndefined(K)?ed:K},[ew,ed]),eS=(0,en.useRef)(e_());el(function(){if(!ei.current){ei.current=!0;return}eb&&ec.set(ew,eg?eS.current:ed)},[eb]);var ek=void 0!==ev&&ev&&!ei.current,eA=K(eb?"$inf$"+eb:null,function(){var K,er,en,ei;return K=void 0,er=void 0,en=void 0,ei=function(){var K,er,en,ei,eo,el,eu,ed,eh,ef,eg,em;return function(K,G){var J,et,er,en,ei={label:0,sent:function(){if(1&er[0])throw er[1];return er[1]},trys:[],ops:[]};return en={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(en[Symbol.iterator]=function(){return this}),en;function verb(en){return function(eo){return function(en){if(J)throw TypeError("Generator is already executing.");for(;ei;)try{if(J=1,et&&(er=2&en[0]?et.return:en[0]?et.throw||((er=et.return)&&er.call(et),0):et.next)&&!(er=er.call(et,en[1])).done)return er;switch(et=0,er&&(en=[2&en[0],er.value]),en[0]){case 0:case 1:er=en;break;case 4:return ei.label++,{value:en[1],done:!1};case 5:ei.label++,et=en[1],en=[0];continue;case 7:en=ei.ops.pop(),ei.trys.pop();continue;default:if(!(er=(er=ei.trys).length>0&&er[er.length-1])&&(6===en[0]||2===en[0])){ei=0;continue}if(3===en[0]&&(!er||en[1]>er[0]&&en[1]<er[3])){ei.label=en[1];break}if(6===en[0]&&ei.label<er[1]){ei.label=er[1],er=en;break}if(er&&ei.label<er[2]){ei.label=er[2],ei.ops.push(en);break}er[2]&&ei.ops.pop(),ei.trys.pop();continue}en=G.call(K,ei)}catch(K){en=[6,K],et=0}finally{J=er=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([en,eo])}}}(this,function(ev){switch(ev.label){case 0:er=(K=ec.get(eC)||[])[0],en=K[1],ei=[],eo=e_(),el=null,eu=0,ev.label=1;case 1:if(!(eu<eo)||(eh=(ed=serialize(G(eu,el)))[0],ef=ed[1],!eh))return[3,5];if(eg=ec.get(eh),em=ep||er||isUndefined(eg)||ey&&!eu&&!isUndefined(es.current)||ek||en&&!isUndefined(en[eu])&&!et.compare(en[eu],eg),!(J&&em))return[3,3];return[4,J.apply(void 0,ef)];case 2:eg=ev.sent(),ec.set(eh,eg),ev.label=3;case 3:ei.push(eg),el=eg,ev.label=4;case 4:return++eu,[3,1];case 5:return ec.delete(eC),[2,ei]}})},new(en||(en=Promise))(function(G,J){function fulfilled(K){try{step(ei.next(K))}catch(K){J(K)}}function rejected(K){try{step(ei.throw(K))}catch(K){J(K)}}function step(K){var J;K.done?G(K.value):((J=K.value)instanceof en?J:new en(function(K){K(J)})).then(fulfilled,rejected)}step((ei=ei.apply(K,er||[])).next())})},et);el(function(){es.current=eA.data},[eA.data]);var eE=(0,en.useCallback)(function(){for(var K=[],G=0;G<arguments.length;G++)K[G]=arguments[G];var J=K[0],et=!1!==K[1];if(eC){if(et){if(isUndefined(J))ec.set(eC,[!0]);else{var er=es.current;ec.set(eC,[!1,er])}}return K.length?eA.mutate(J,et):eA.mutate()}},[eC]),resolvePagesFromCache=function(K){for(var J=[],et=null,er=0;er<K;++er){var en=serialize(G(er,et))[0],ei=en?ec.get(en):eo;if(isUndefined(ei))return es.current;J.push(ei),et=ei}return J},eT=(0,en.useCallback)(function(K){var G;if(ew&&(isFunction(K)?G=K(e_()):"number"==typeof K&&(G=K),"number"==typeof G))return ec.set(ew,G),eS.current=G,er({}),eE(resolvePagesFromCache(G))},[ew,e_,eE]);return{size:e_(),setSize:eT,mutate:eE,get error(){return eA.error},get data(){return eA.data},get isValidating(){return eA.isValidating}}}},function(){for(var K=[],G=0;G<arguments.length;G++)K[G]=arguments[G];var J=isFunction(K[1])?[K[0],K[1],K[2]||{}]:[K[0],null,(null===K[1]?K[2]:K[1])||{}],en=J[0],ei=J[1],eo=J[2],es=(eo.use||[]).concat(er);return et(en,ei,__assign(__assign({},eo),{use:es}))})},98388:function(K,G,J){"use strict";J.d(G,{m6:function(){return ep},q7:function(){return extendTailwindMerge}});let et=/^\[(.+)\]$/;function getPart(K,G){let J=K;return G.split("-").forEach(K=>{J.nextPart.has(K)||J.nextPart.set(K,{nextPart:new Map,validators:[]}),J=J.nextPart.get(K)}),J}let er=/\s+/;function twJoin(){let K,G,J=0,et="";for(;J<arguments.length;)(K=arguments[J++])&&(G=function toValue(K){let G;if("string"==typeof K)return K;let J="";for(let et=0;et<K.length;et++)K[et]&&(G=toValue(K[et]))&&(J&&(J+=" "),J+=G);return J}(K))&&(et&&(et+=" "),et+=G);return et}function createTailwindMerge(K,...G){let J,en,ei;let functionToCall=function(er){let eo=G.reduce((K,G)=>G(K),K());return en=(J={cache:function(K){if(K<1)return{get:()=>void 0,set:()=>{}};let G=0,J=new Map,et=new Map;function update(er,en){J.set(er,en),++G>
567K&&(G=0,et=J,J=new Map)}return{get(K){let G=J.get(K);return void 0!==G?G:void 0!==(G=et.get(K))?(update(K,G),G):void 0},set(K,G){J.has(K)?J.set(K,G):update(K,G)}}}(eo.cacheSize),splitModifiers:function(K){let G=K.separator,J=1===G.length,et=G[0],er=G.length;return function(K){let en;let ei=[],eo=0,es=0;for(let el=0;el<K.length;el++){let ec=K[el];if(0===eo){if(ec===et&&(J||K.slice(el,el+er)===G)){ei.push(K.slice(es,el)),es=el+er;continue}if("/"===ec){en=el;continue}}"["===ec?eo++:"]"===ec&&eo--}let el=0===ei.length?K:K.substring(es),ec=el.startsWith("!"),eu=ec?el.substring(1):el,ed=en&&en>es?en-es:void 0;return{modifiers:ei,hasImportantModifier:ec,baseClassName:eu,maybePostfixModifierPosition:ed}}}(eo),...function(K){let G=function(K){var G;let{theme:J,prefix:et}=K,er={nextPart:new Map,validators:[]},en=(G=Object.entries(K.classGroups),et?G.map(([K,G])=>{let J=G.map(K=>"string"==typeof K?et+K:"object"==typeof K?Object.fromEntries(Object.entries(K).map(([K,G])=>[et+K,G])):K);return[K,J]}):G);return en.forEach(([K,G])=>{(function processClassesRecursively(K,G,J,et){K.forEach(K=>{if("string"==typeof K){let et=""===K?G:getPart(G,K);et.classGroupId=J;return}if("function"==typeof K){if(K.isThemeGetter){processClassesRecursively(K(et),G,J,et);return}G.validators.push({validator:K,classGroupId:J});return}
567Object.entries(K).forEach(([K,er])=>{processClassesRecursively(er,getPart(G,K),J,et)})})})(G,er,K,J)}),er}(K),{conflictingClassGroups:J,conflictingClassGroupModifiers:er}=K;return{getClassGroupId:function(K){let J=K.split("-");return""===J[0]&&1!==J.length&&J.shift(),function getGroupRecursive(K,G){if(0===K.length)return G.classGroupId;let J=K[0],et=G.nextPart.get(J),er=et?getGroupRecursive(K.slice(1),et):void 0;if(er)return er;if(0===G.validators.length)return;let en=K.join("-");return G.validators.find(({validator:K})=>K(en))?.classGroupId}(J,G)||function(K){if(et.test(K)){let G=et.exec(K)[1],J=G?.substring(0,G.indexOf(":"));if(J)return"arbitrary.."+J}}(K)},getConflictingClassGroupIds:function(K,G){let et=J[K]||[];return G&&er[K]?[...et,...er[K]]:et}}}(eo)}).cache.get,ei=J.cache.set,functionToCall=tailwindMerge,tailwindMerge(er)};function tailwindMerge(K){let G=en(K);if(G)return G;let et=function(K,G){let{splitModifiers:J,getClassGroupId:et,getConflictingClassGroupIds:en}=G,ei=new Set;return K.trim().split(er).map(K=>{let{modifiers:G,hasImportantModifier:er,baseClassName:en,maybePostfixModifierPosition:ei}=J(K),eo=et(ei?en.substring(0,ei):en),es=!!ei;if(!eo){if(!ei||!(eo=et(en)))return{isTailwindClass:!1,originalClassName:K};es=!1}let el=(function(K){if(K.length<=1)return K;let G=[],J=[];return K.forEach(K=>{let et="["===K[0];et?(G.push(...J.sort(),K),J=[]):J.push(K)}),G.push(...J.sort()),G})(G).join(":");return{isTailwindClass:!0,modifierId:er?el+"!":el,classGroupId:eo,originalClassName:K,hasPostfixModifier:es}}).reverse().filter(K=>{if(!K.isTailwindClass)return!0;let{modifierId:G,classGroupId:J,hasPostfixModifier:et}=K,er=G+J;return!ei.has(er)&&(ei.add(er),en(J,et).forEach(K=>ei.add(G+K)),!0)}).reverse().map(K=>K.originalClassName).join(" ")}(K,J);return ei(K,et),et}return function(){return functionToCall(twJoin.apply(null,arguments))}}function fromTheme(K){let themeGetter=G=>G[K]||[];return themeGetter.isThemeGetter=!0,themeGetter}let en=/^\[(?:([a-z-]+):)?(.+)\]$/i,ei=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),es=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,el=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ec=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function isLength(K){return isNumber(K)||eo.has(K)||ei.test(K)}function isArbitraryLength(K){return getIsArbitraryValue(K,"length",isLengthOnly)}function isNumber(K){return!!K&&!Number.isNaN(Number(K))}function isArbitraryNumber(K){return getIsArbitraryValue(K,"number",isNumber)}function isInteger(K){return!!K&&Number.isInteger(Number(K))}function isPercent(K){return K.endsWith("%")&&isNumber(K.slice(0,-1))}function isArbitraryValue(K){return en.test(K)}function isTshirtSize(K){return es.test(K)}let ed=new Set(["length","size","percentage"]);function isArbitrarySize(K){return getIsArbitraryValue(K,ed,isNever)}function isArbitraryPosition(K){return getIsArbitraryValue(K,"position",isNever)}let eh=new Set(["image","url"]);function isArbitraryImage(K){return getIsArbitraryValue(K,eh,isImage)}function isArbitraryShadow(K){return getIsArbitraryValue(K,"",isShadow)}function isAny(){return!0}function getIsArbitraryValue(K,G,J){let et=en.exec(K);return!!et&&(et[1]?"string"==typeof G?et[1]===G:G.has(et[1]):J(et[2]))}function isLengthOnly(K){return el.test(K)}function isNever(){return!1}function isShadow(K){return ec.test(K)}function isImage(K){return eu.test(K)}function getDefaultConfig(){let K=fromTheme("colors"),G=fromTheme("spacing"),J=fromTheme("blur"),et=fromTheme("brightness"),er=fromTheme("borderColor"),en=fromTheme("borderRadius"),ei=fromTheme("borderSpacing"),eo=fromTheme("borderWidth"),es=fromTheme("contrast"),el=fromTheme("grayscale"),ec=fromTheme("hueRotate"),eu=fromTheme("invert"),ed=fromTheme("gap"),eh=fromTheme("gradientColorStops"),ep=fromTheme("gradientColorStopPositions"),ef=fromTheme("inset"),eg=fromTheme("margin"),em=fromTheme("opacity"),ey=fromTheme("padding"),ev=fromTheme("saturate"),eb=fromTheme("scale"),eC=fromTheme("sepia"),ew=fromTheme("skew"),e_=fromTheme("space"),eS=fromTheme("translate"),getOverscroll=()=>["auto","contain","none"],getOverflow=()=>["auto","hidden","clip","visible","scroll"],getSpacingWithAutoAndArbitrary=()=>
vendor: 10,261 bytes, line 567
567["auto",isArbitraryValue,G],getSpacingWithArbitrary=()=>[isArbitraryValue,G],getLengthWithEmptyAndArbitrary=()=>["",isLength,isArbitraryLength],getNumberWithAutoAndArbitrary=()=>["auto",isNumber,isArbitraryValue],getPositions=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],getLineStyles=()=>["solid","dashed","dotted","double","none"],getBlendModes=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],getAlign=()=>["start","end","center","between","around","evenly","stretch"],getZeroAndEmpty=()=>["","0",isArbitraryValue],getBreaks=()=>["auto","avoid","all","avoid-page","page","left","right","column"],getNumber=()=>[isNumber,isArbitraryNumber],getNumberAndArbitrary=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumber(),borderColor:[K],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmptyAndArbitrary(),contrast:getNumber(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[K],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumber(),padding:getSpacingWithArbitrary(),saturate:getNumber(),scale:getNumber(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...getPositions(),isArbitraryValue]}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[ef]}],"inset-x":[{"inset-x":[ef]}],"inset-y":[{"inset-y":[ef]}],start:[{start:[ef]}],end:[{end:[ef]}],top:[{top:[ef]}],right:[{right:[ef]}],bottom:[{bottom:[ef]}],left:[{left:[ef]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[ed]}],"gap-x":[{"gap-x":[ed]}],"gap-y":[{"gap-y":[ed]}],"justify-content":[{justify:["normal",...getAlign()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...getAlign(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...getAlign(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[ey]}],px:[{px:[ey]}],py:[{py:[ey]}],ps:[{ps:[ey]}],pe:[{pe:[ey]}],pt:[{pt:[ey]}],pr:[{pr:[ey]}],pb:[{pb:[ey]}],pl:[{pl:[ey]}],m:[{m:[eg]}],mx:[{mx:[eg]}],my:[{my:[eg]}],ms:[{ms:[eg]}],me:[{me:[eg]}],mt:[{mt:[eg]}],mr:[{mr:[eg]}],mb:[{mb:[eg]}],ml:[{ml:[eg]}],"space-x":[{"space-x":[e_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[e_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",isArbitraryValue,G]}],"min-w":[{"min-w":["min","max","fit",isArbitraryValue,isLength]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize,isArbitraryValue]}],h:[{h:[isArbitraryValue,G,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",isLength,isArbitraryValue]}],"max-h":[{"max-h":[isArbitraryValue,G,"min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[K]}],"placeholder-opacity":[{"placeholder-opacity":[em]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[K]}],"text-opacity":[{"text-opacity":[em]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...getLineStyles(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[em]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...getPositions(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[K]}],"gradient-from-pos":[{from:[ep]}],"gradient-via-pos":[{via:[ep]}],"gradient-to-pos":[{to:[ep]}],"gradient-from":[{from:[eh]}],"gradient-via":[{via:[eh]}],"gradient-to":[{to:[eh]}],rounded:[{rounded:[en]}],"rounded-s":[{"rounded-s":[en]}],"rounded-e":[{"rounded-e":[en]}],"rounded-t":[{"rounded-t":[en]}],"rounded-r":[{"rounded-r":[en]}],"rounded-b":[{"rounded-b":[en]}],"rounded-l":[{"rounded-l":[en]}],"rounded-ss":[{"rounded-ss":[en]}],"rounded-se":[{"rounded-se":[en]}],"rounded-ee":[{"rounded-ee":[en]}],"rounded-es":[{"rounded-es":[en]}],"rounded-tl":[{"rounded-tl":[en]}],"rounded-tr":[{"rounded-tr":[en]}],"rounded-br":[{"rounded-br":[en]}],"rounded-bl":[{"rounded-bl":[en]}],"border-w":[{border:[eo]}],"border-w-x":[{"border-x":[eo]}],"border-w-y":[{"border-y":[eo]}],"border-w-s":[{"border-s":[eo]}],"border-w-e":[{"border-e":[eo]}],"border-w-t":[{"border-t":[eo]}],"border-w-r":[{"border-r":[eo]}],"border-w-b":[{"border-b":[eo]}],"border-w-l":[{"border-l":[eo]}],"border-opacity":[{"border-opacity":[em]}],"border-style":[{border:[...getLineStyles(),"hidden"]}],"divide-x":[{"divide-x":[eo]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[eo]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[em]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[er]}],"border-color-x":[{"border-x":[er]}],"border-color-y":[{"border-y":[er]}],"border-color-t":[{"border-t":[er]}],"border-color-r":[{"border-r":[er]}],"border-color-b":[{"border-b":[er]}],"border-color-l":[{"border-l":[er]}],"divide-color":[{divide:[er]}],"outline-style":[{outline:["",...getLineStyles()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[K]}
vendor: 4,108 bytes, line 567
567],"ring-w":[{ring:getLengthWithEmptyAndArbitrary()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[K]}],"ring-opacity":[{"ring-opacity":[em]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[K]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[em]}],"mix-blend":[{"mix-blend":getBlendModes()}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[J]}],brightness:[{brightness:[et]}],contrast:[{contrast:[es]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[el]}],"hue-rotate":[{"hue-rotate":[ec]}],invert:[{invert:[eu]}],saturate:[{saturate:[ev]}],sepia:[{sepia:[eC]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[J]}],"backdrop-brightness":[{"backdrop-brightness":[et]}],"backdrop-contrast":[{"backdrop-contrast":[es]}],"backdrop-grayscale":[{"backdrop-grayscale":[el]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ec]}],"backdrop-invert":[{"backdrop-invert":[eu]}],"backdrop-opacity":[{"backdrop-opacity":[em]}],"backdrop-saturate":[{"backdrop-saturate":[ev]}],"backdrop-sepia":[{"backdrop-sepia":[eC]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[ei]}],"border-spacing-x":[{"border-spacing-x":[ei]}],"border-spacing-y":[{"border-spacing-y":[ei]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[eb]}],"scale-x":[{"scale-x":[eb]}],"scale-y":[{"scale-y":[eb]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[eS]}],"translate-y":[{"translate-y":[eS]}],"skew-x":[{"skew-x":[ew]}],"skew-y":[{"skew-y":[ew]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",K]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[K]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
567],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[K,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[K,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function overrideProperty(K,G,J){void 0!==J&&(K[G]=J)}function extendTailwindMerge(K,...G){return"function"==typeof K?createTailwindMerge(getDefaultConfig,K,...G):createTailwindMerge(()=>(function(K,{cacheSize:G,prefix:J,separator:et,extend:er={},override:en={}}){for(let er in overrideProperty(K,"cacheSize",G),overrideProperty(K,"prefix",J),overrideProperty(K,"separator",et),en)!function(K,G){if(G)for(let J in G)overrideProperty(K,J,G[J])}(K[er],en[er]);for(let G in er)!function(K,G){if(G)for(let J in G){let et=G[J];void 0!==et&&(K[J]=(K[J]||[]).concat(et))}}(K[G],er[G]);return K})(getDefaultConfig(),K),...G)}let ep=createTailwindMerge(getDefaultConfig)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.